@blackglory/estore-js 0.1.3 → 0.1.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/README.md +188 -306
- package/dist/es2015/index.min.mjs +1 -1
- package/dist/es2015/index.min.mjs.map +1 -1
- package/dist/es2015/index.mjs +563 -949
- package/dist/es2015/index.mjs.map +1 -1
- package/dist/es2015/index.umd.js +563 -949
- package/dist/es2015/index.umd.js.map +1 -1
- package/dist/es2015/index.umd.min.js +2 -2
- package/dist/es2015/index.umd.min.js.map +1 -1
- package/dist/es2018/index.min.mjs +1 -1
- package/dist/es2018/index.min.mjs.map +1 -1
- package/dist/es2018/index.mjs +563 -949
- package/dist/es2018/index.mjs.map +1 -1
- package/dist/es2018/index.umd.js +563 -949
- package/dist/es2018/index.umd.js.map +1 -1
- package/dist/es2018/index.umd.min.js +2 -2
- package/dist/es2018/index.umd.min.js.map +1 -1
- package/lib/es2015/estore-client.js +1 -1
- package/lib/es2015/estore-client.js.map +1 -1
- package/lib/es2015/token-policy-client.js.map +1 -1
- package/lib/es2015/utils.d.ts +2 -1
- package/lib/es2015/utils.js +1 -1
- package/lib/es2015/utils.js.map +1 -1
- package/lib/es2018/estore-client.js +1 -1
- package/lib/es2018/estore-client.js.map +1 -1
- package/lib/es2018/token-policy-client.js.map +1 -1
- package/lib/es2018/utils.d.ts +2 -1
- package/lib/es2018/utils.js +1 -1
- package/lib/es2018/utils.js.map +1 -1
- package/package.json +1 -1
|
@@ -12,5 +12,5 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
|
12
12
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
13
13
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
14
14
|
PERFORMANCE OF THIS SOFTWARE.
|
|
15
|
-
***************************************************************************** */function t(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},r={},o={fetch:void 0};o.fetch=globalThis.fetch.bind(globalThis);var i={Headers:void 0};i.Headers=globalThis.Headers;var s={Request:void 0};s.Request=globalThis.Request;var a={Response:void 0};a.Response=globalThis.Response;var c={FormData:void 0};c.FormData=globalThis.FormData;var u={AbortController:void 0};u.AbortController=globalThis.AbortController;var l={AbortError:void 0};l.AbortError=globalThis.DOMException;var d={Blob:void 0};d.Blob=globalThis.Blob;var f,h,p,v={};v.EventSource=void 0,v.EventSource=globalThis.EventSource,f=r,h=n&&n.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),(p=n&&n.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||h(t,e,n)})(o,f),p(i,f),p(s,f),p(a,f),p(c,f),p(u,f),p(l,f),p(d,f),p(v,f);var y={},m={},g={},b={},w={};function A(e){return Array.isArray(e)}w.isntEmptyArray=w.isEmptyArray=w.isntArray=w.isArray=void 0,w.isArray=A,w.isntArray=function(e){return!A(e)},w.isEmptyArray=function(e){return 0===e.length},w.isntEmptyArray=function(e){return 0!==e.length};var _={},S={};function T(e){return null===e}S.isntNull=S.isNull=void 0,S.isNull=T,S.isntNull=function(e){return!T(e)};var E={};function k(e){return void 0===e}E.isntUndefined=E.isUndefined=void 0,E.isUndefined=k,E.isntUndefined=function(e){return!k(e)};var R={};function C(e){return"function"==typeof e}R.isntFunction=R.isFunction=void 0,R.isFunction=C,R.isntFunction=function(e){return!C(e)},_.isntAsyncIterable=_.isAsyncIterable=void 0;const O=S,x=E,P=R;function N(e){return(0,O.isntNull)(e)&&(0,x.isntUndefined)(e)&&(0,P.isFunction)(e[Symbol.asyncIterator])}_.isAsyncIterable=N,_.isntAsyncIterable=function(e){return!N(e)};var I={};function j(e){return"bigint"==typeof e}I.isntBigInt=I.isBigInt=void 0,I.isBigInt=j,I.isntBigInt=function(e){return!j(e)};var F={};function U(e){return"boolean"==typeof e}F.isntBoolean=F.isBoolean=void 0,F.isBoolean=U,F.isntBoolean=function(e){return!U(e)};var q={},L={};function M(e){return"string"==typeof e}L.isntString=L.isString=void 0,L.isString=M,L.isntString=function(e){return!M(e)},q.isntChar=q.isChar=void 0;const D=L;function B(e){return(0,D.isString)(e)&&1===e.length}q.isChar=B,q.isntChar=function(e){return!B(e)};var H={};function z(e){return e instanceof Date}H.isntDate=H.isDate=void 0,H.isDate=z,H.isntDate=function(e){return!z(e)};var $={};$.inEnum=void 0,$.inEnum=function(e,t){return Object.values(t).includes(e)};var J={};function W(e){return e instanceof Error}J.isntError=J.isError=void 0,J.isError=W,J.isntError=function(e){return!W(e)};var G={};function V(e){return!e}G.isntFalsy=G.isFalsy=void 0,G.isFalsy=V,G.isntFalsy=function(e){return!V(e)};var K={};K.isntIterable=K.isIterable=void 0;const Q=S,Z=E,X=R;function Y(e){return(0,Q.isntNull)(e)&&(0,Z.isntUndefined)(e)&&(0,X.isFunction)(e[Symbol.iterator])}K.isIterable=Y,K.isntIterable=function(e){return!Y(e)};var ee={},te={};function ne(e){return"number"==typeof e}function re(e){return Number.isNaN(e)}te.isntNaN=te.isNaN=te.isNegativeInfinity=te.isPositiveInfinity=te.isFinite=te.isntNumber=te.isNumber=void 0,te.isNumber=ne,te.isntNumber=function(e){return!ne(e)},te.isFinite=function(e){return Number.isFinite(e)},te.isPositiveInfinity=function(e){return e===1/0},te.isNegativeInfinity=function(e){return e===-1/0},te.isNaN=re,te.isntNaN=function(e){return!re(e)};var oe={},ie="object"==typeof n&&n&&n.Object===Object&&n,se="object"==typeof self&&self&&self.Object===Object&&self,ae=(ie||se||Function("return this")()).Symbol,ce=ae,ue=Object.prototype,le=ue.hasOwnProperty,de=ue.toString,fe=ce?ce.toStringTag:void 0;var he=function(e){var t=le.call(e,fe),n=e[fe];try{e[fe]=void 0;var r=!0}catch(e){}var o=de.call(e);return r&&(t?e[fe]=n:delete e[fe]),o},pe=Object.prototype.toString;var ve=he,ye=function(e){return pe.call(e)},me=ae?ae.toStringTag:void 0;var ge=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":me&&me in Object(e)?ve(e):ye(e)};var be=function(e,t){return function(n){return e(t(n))}}(Object.getPrototypeOf,Object);var we=ge,Ae=be,_e=function(e){return null!=e&&"object"==typeof e},Se=Function.prototype,Te=Object.prototype,Ee=Se.toString,ke=Te.hasOwnProperty,Re=Ee.call(Object);var Ce=function(e){if(!_e(e)||"[object Object]"!=we(e))return!1;var t=Ae(e);if(null===t)return!0;var n=ke.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ee.call(n)==Re},Oe=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};oe.isntEmptyObject=oe.isEmptyObject=oe.isntPlainObject=oe.isPlainObject=oe.isntObject=oe.isObject=void 0;const xe=Oe(Ce);function Pe(e){return null!==e&&"object"==typeof e}function Ne(e){return(0,xe.default)(e)}oe.isObject=Pe,oe.isntObject=function(e){return!Pe(e)},oe.isPlainObject=Ne,oe.isntPlainObject=function(e){return!Ne(e)},oe.isEmptyObject=function(e){return 0===Object.keys(e).length},oe.isntEmptyObject=function(e){return 0!==Object.keys(e).length},ee.isntJsonable=ee.isJsonable=ee.isntJson=ee.isJson=void 0;const Ie=S,je=F,Fe=L,Ue=te,qe=w,Le=oe;function Me(e){return(0,Ie.isNull)(e)||(0,je.isBoolean)(e)||(0,Fe.isString)(e)||(0,Ue.isNumber)(e)||(0,qe.isArray)(e)&&e.every(Me)||(0,Le.isPlainObject)(e)&&Object.values(e).every(Me)}ee.isJson=Me,ee.isntJson=function(e){return!Me(e)},ee.isJsonable=function(e){try{return JSON.stringify(e),!0}catch(e){return!1}},ee.isntJsonable=function e(t){return!e()};var De={};De.isPromiseLike=De.isntPromiseLike=De.isntPromise=De.isPromise=void 0;const Be=oe,He=R;function ze(e){return e instanceof Promise}function $e(e){return(0,Be.isObject)(e)&&(0,He.isFunction)(e.then)}De.isPromise=ze,De.isntPromise=function(e){return!ze(e)},De.isntPromiseLike=function(e){return!$e(e)},De.isPromiseLike=$e;var Je={};Je.isAbsoluteURL=void 0,Je.isAbsoluteURL=function(e){try{return new URL(e),!0}catch(e){return!1}};var We={};function Ge(e){return e instanceof RegExp}We.isntRegExp=We.isRegExp=void 0,We.isRegExp=Ge,We.isntRegExp=function(e){return!Ge(e)};var Ve={};function Ke(e){return"symbol"==typeof e}Ve.isntSymbol=Ve.isSymbol=void 0,Ve.isSymbol=Ke,Ve.isntSymbol=function(e){return!Ke(e)},function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=n&&n.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};r(w,e),r(_,e),r(I,e),r(F,e),r(q,e),r(H,e),r($,e),r(J,e),r(G,e),r(R,e),r(K,e),r(ee,e),r(S,e),r(te,e),r(oe,e),r(De,e),r(L,e),r(E,e),r(Je,e),r(We,e),r(Ve,e)}(b),g.del=g.patch=g.put=g.post=g.head=g.get=void 0;const Qe=r,Ze=b;function Xe(e,...t){const n=t.reduce(((e,t)=>(0,Ze.isFunction)(t)?t(e):e),{url:new URL("http://localhost"),headers:new Qe.Headers}),r=new Qe.Headers(n.headers);return new Qe.Request(n.url.href,{method:e,headers:r,signal:n.signal,body:n.payload,keepalive:n.keepalive})}g.get=function(...e){return Xe("GET",...e)},g.head=function(...e){return Xe("HEAD",...e)},g.post=function(...e){return Xe("POST",...e)},g.put=function(...e){return Xe("PUT",...e)},g.patch=function(...e){return Xe("PATCH",...e)},g.del=function(...e){return Xe("DELETE",...e)},function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=n&&n.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};r(m,e),r(g,e)}(y);var Ye={},et={};et.url=void 0,et.url=function(...e){return t=>({...t,url:new URL(e.reduce(((e,t)=>new URL(t,e).href)))})};var tt={text:void 0};const nt=r;tt.text=function(e){return t=>{const n=new nt.Headers(t.headers);return n.set("Content-Type","application/x-www-form-urlencoded"),{...t,headers:n,payload:e}}};var rt={json:void 0};const ot=r;rt.json=function(e){return t=>{const n=new ot.Headers(t.headers);return n.set("Content-Type","application/json"),{...t,headers:n,payload:JSON.stringify(e)}}};var it={},st={exports:{}};st.exports=function t(){var n="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n?n:{};function r(){var e=n.URL||n.webkitURL||null,r=t.toString();return c.BLOB_URL||(c.BLOB_URL=e.createObjectURL(new Blob(["(",r,")();"],{type:"text/javascript"})))}var o=!n.document&&!!n.postMessage,i=o&&/blob:/i.test((n.location||{}).protocol),s={},a=0,c={};if(c.parse=l,c.unparse=d,c.RECORD_SEP=String.fromCharCode(30),c.UNIT_SEP=String.fromCharCode(31),c.BYTE_ORDER_MARK="\ufeff",c.BAD_DELIMITERS=["\r","\n",'"',c.BYTE_ORDER_MARK],c.WORKERS_SUPPORTED=!o&&!!n.Worker,c.NODE_STREAM_INPUT=1,c.LocalChunkSize=10485760,c.RemoteChunkSize=5242880,c.DefaultDelimiter=",",c.Parser=w,c.ParserHandle=g,c.NetworkStreamer=h,c.FileStreamer=p,c.StringStreamer=v,c.ReadableStreamStreamer=y,"undefined"==typeof PAPA_BROWSER_CONTEXT&&(c.DuplexStreamStreamer=m),n.jQuery){var u=n.jQuery;u.fn.parse=function(e){var t=e.config||{},r=[];return this.each((function(e){if("INPUT"!==u(this).prop("tagName").toUpperCase()||"file"!==u(this).attr("type").toLowerCase()||!n.FileReader||!this.files||0===this.files.length)return!0;for(var o=0;o<this.files.length;o++)r.push({file:this.files[o],inputElem:this,instanceConfig:u.extend({},t)})})),o(),this;function o(){if(0!==r.length){var t=r[0];if(C(e.before)){var n=e.before(t.file,t.inputElem);if("object"==typeof n){if("abort"===n.action)return void i("AbortError",t.file,t.inputElem,n.reason);if("skip"===n.action)return void s();"object"==typeof n.config&&(t.instanceConfig=u.extend(t.instanceConfig,n.config))}else if("skip"===n)return void s()}var o=t.instanceConfig.complete;t.instanceConfig.complete=function(e){C(o)&&o(e,t.file,t.inputElem),s()},c.parse(t.file,t.instanceConfig)}else C(e.complete)&&e.complete()}function i(t,n,r,o){C(e.error)&&e.error({name:t},n,r,o)}function s(){r.splice(0,1),o()}}}function l(e,t){var r=(t=t||{}).dynamicTyping||!1;if(C(r)&&(t.dynamicTypingFunction=r,r={}),t.dynamicTyping=r,t.transform=!!C(t.transform)&&t.transform,t.worker&&c.WORKERS_SUPPORTED){var o=A();return o.userStep=t.step,o.userChunk=t.chunk,o.userComplete=t.complete,o.userError=t.error,t.step=C(t.step),t.chunk=C(t.chunk),t.complete=C(t.complete),t.error=C(t.error),delete t.worker,void o.postMessage({input:e,config:t,workerId:o.id})}var i=null;return e===c.NODE_STREAM_INPUT&&"undefined"==typeof PAPA_BROWSER_CONTEXT?(i=new m(t)).getStream():("string"==typeof e?i=t.download?new h(t):new v(t):!0===e.readable&&C(e.read)&&C(e.on)?i=new y(t):(n.File&&e instanceof File||e instanceof Object)&&(i=new p(t)),i.stream(e))}function d(e,t){var n=!1,r=!0,o=",",i="\r\n",s='"',a=s+s,u=!1,l=null,d=!1;h();var f=new RegExp(b(s),"g");if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return p(null,e,u);if("object"==typeof e[0])return p(l||Object.keys(e[0]),e,u)}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||l),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])),p(e.fields||[],e.data||[],u);throw new Error("Unable to serialize unrecognized input");function h(){if("object"==typeof t){if("string"!=typeof t.delimiter||c.BAD_DELIMITERS.filter((function(e){return-1!==t.delimiter.indexOf(e)})).length||(o=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||(u=t.skipEmptyLines),"string"==typeof t.newline&&(i=t.newline),"string"==typeof t.quoteChar&&(s=t.quoteChar),"boolean"==typeof t.header&&(r=t.header),Array.isArray(t.columns)){if(0===t.columns.length)throw new Error("Option columns is empty");l=t.columns}void 0!==t.escapeChar&&(a=t.escapeChar+s),("boolean"==typeof t.escapeFormulae||t.escapeFormulae instanceof RegExp)&&(d=t.escapeFormulae instanceof RegExp?t.escapeFormulae:/^[=+\-@\t\r].*$/)}}function p(e,t,n){var s="";"string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t));var a=Array.isArray(e)&&e.length>0,c=!Array.isArray(t[0]);if(a&&r){for(var u=0;u<e.length;u++)u>0&&(s+=o),s+=v(e[u],u);t.length>0&&(s+=i)}for(var l=0;l<t.length;l++){var d=a?e.length:t[l].length,f=!1,h=a?0===Object.keys(t[l]).length:0===t[l].length;if(n&&!a&&(f="greedy"===n?""===t[l].join("").trim():1===t[l].length&&0===t[l][0].length),"greedy"===n&&a){for(var p=[],y=0;y<d;y++){var m=c?e[y]:y;p.push(t[l][m])}f=""===p.join("").trim()}if(!f){for(var g=0;g<d;g++){g>0&&!h&&(s+=o);var b=a&&c?e[g]:g;s+=v(t[l][b],g)}l<t.length-1&&(!n||d>0&&!h)&&(s+=i)}}return s}function v(e,t){if(null==e)return"";if(e.constructor===Date)return JSON.stringify(e).slice(1,25);var r=!1;d&&"string"==typeof e&&d.test(e)&&(e="'"+e,r=!0);var i=e.toString().replace(f,a);return(r=r||!0===n||"function"==typeof n&&n(e,t)||Array.isArray(n)&&n[t]||y(i,c.BAD_DELIMITERS)||i.indexOf(o)>-1||" "===i.charAt(0)||" "===i.charAt(i.length-1))?s+i+s:i}function y(e,t){for(var n=0;n<t.length;n++)if(e.indexOf(t[n])>-1)return!0;return!1}}function f(e){function t(e){var t=k(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null),this._handle=new g(t),this._handle.streamer=this,this._config=t}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:{}},t.call(this,e),this.parseChunk=function(e,t){if(this.isFirstChunk&&C(this._config.beforeFirstChunk)){var r=this._config.beforeFirstChunk(e);void 0!==r&&(e=r)}this.isFirstChunk=!1,this._halted=!1;var o=this._partialLine+e;this._partialLine="";var s=this._handle.parse(o,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var a=s.meta.cursor;this._finished||(this._partialLine=o.substring(a-this._baseIndex),this._baseIndex=a),s&&s.data&&(this._rowCount+=s.data.length);var u=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(i)n.postMessage({results:s,workerId:c.WORKER_ID,finished:u});else if(C(this._config.chunk)&&!t){if(this._config.chunk(s,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);s=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(s.data),this._completeResults.errors=this._completeResults.errors.concat(s.errors),this._completeResults.meta=s.meta),this._completed||!u||!C(this._config.complete)||s&&s.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),u||s&&s.meta.paused||this._nextChunk(),s}this._halted=!0},this._sendError=function(e){C(this._config.error)?this._config.error(e):i&&this._config.error&&n.postMessage({workerId:c.WORKER_ID,error:e,finished:!1})}}function h(e){var t;function n(e){var t=e.getResponseHeader("Content-Range");return null===t?-1:parseInt(t.substring(t.lastIndexOf("/")+1))}(e=e||{}).chunkSize||(e.chunkSize=c.RemoteChunkSize),f.call(this,e),this._nextChunk=o?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(t=new XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCredentials),o||(t.onload=R(this._chunkLoaded,this),t.onerror=R(this._chunkError,this)),t.open(this._config.downloadRequestBody?"POST":"GET",this._input,!o),this._config.downloadRequestHeaders){var e=this._config.downloadRequestHeaders;for(var n in e)t.setRequestHeader(n,e[n])}if(this._config.chunkSize){var r=this._start+this._config.chunkSize-1;t.setRequestHeader("Range","bytes="+this._start+"-"+r)}try{t.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}o&&0===t.status&&this._chunkError()}},this._chunkLoaded=function(){4===t.readyState&&(t.status<200||t.status>=400?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:t.responseText.length,this._finished=!this._config.chunkSize||this._start>=n(t),this.parseChunk(t.responseText)))},this._chunkError=function(e){var n=t.statusText||e;this._sendError(new Error(n))}}function p(e){var t,n;(e=e||{}).chunkSize||(e.chunkSize=c.LocalChunkSize),f.call(this,e);var r="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,n=e.slice||e.webkitSlice||e.mozSlice,r?((t=new FileReader).onload=R(this._chunkLoaded,this),t.onerror=R(this._chunkError,this)):t=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 o=Math.min(this._start+this._config.chunkSize,this._input.size);e=n.call(e,this._start,o)}var i=t.readAsText(e,this._config.encoding);r||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(t.error)}}function v(e){var t;e=e||{},f.call(this,e),this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var e,n=this._config.chunkSize;return n?(e=t.substring(0,n),t=t.substring(n)):(e=t,t=""),this._finished=!t,this.parseChunk(e)}}}function y(e){e=e||{},f.call(this,e);var t=[],n=!0,r=!1;this.pause=function(){f.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){f.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()):n=!0},this._streamData=R((function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),n&&(n=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}}),this),this._streamError=R((function(e){this._streamCleanUp(),this._sendError(e)}),this),this._streamEnd=R((function(){this._streamCleanUp(),r=!0,this._streamData("")}),this),this._streamCleanUp=R((function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)}),this)}function m(t){var n=e.Duplex,r=k(t),o=!0,i=!1,s=[],a=null;this._onCsvData=function(e){var t=e.data;a.push(t)||this._handle.paused()||this._handle.pause()},this._onCsvComplete=function(){a.push(null)},r.step=R(this._onCsvData,this),r.complete=R(this._onCsvComplete,this),f.call(this,r),this._nextChunk=function(){i&&1===s.length&&(this._finished=!0),s.length?s.shift()():o=!0},this._addToParseQueue=function(e,t){s.push(R((function(){if(this.parseChunk("string"==typeof e?e:e.toString(r.encoding)),C(t))return t()}),this)),o&&(o=!1,this._nextChunk())},this._onRead=function(){this._handle.paused()&&this._handle.resume()},this._onWrite=function(e,t,n){this._addToParseQueue(e,n)},this._onWriteComplete=function(){i=!0,this._addToParseQueue("")},this.getStream=function(){return a},(a=new n({readableObjectMode:!0,decodeStrings:!1,read:R(this._onRead,this),write:R(this._onWrite,this)})).once("finish",R(this._onWriteComplete,this))}function g(e){var t,n,r,o=Math.pow(2,53),i=-o,s=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,a=/^(\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))$/,u=this,l=0,d=0,f=!1,h=!1,p=[],v={data:[],errors:[],meta:{}};if(C(e.step)){var y=e.step;e.step=function(t){if(v=t,_())A();else{if(A(),0===v.data.length)return;l+=t.data.length,e.preview&&l>e.preview?n.abort():(v.data=v.data[0],y(v,u))}}}function m(t){return"greedy"===e.skipEmptyLines?""===t.join("").trim():1===t.length&&0===t[0].length}function g(e){if(s.test(e)){var t=parseFloat(e);if(t>i&&t<o)return!0}return!1}function A(){return v&&r&&(P("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+c.DefaultDelimiter+"'"),r=!1),e.skipEmptyLines&&(v.data=v.data.filter((function(e){return!m(e)}))),_()&&S(),R()}function _(){return e.header&&0===p.length}function S(){if(v)if(Array.isArray(v.data[0])){for(var t=0;_()&&t<v.data.length;t++)v.data[t].forEach(n);v.data.splice(0,1)}else v.data.forEach(n);function n(t,n){C(e.transformHeader)&&(t=e.transformHeader(t,n)),p.push(t)}}function T(t){return e.dynamicTypingFunction&&void 0===e.dynamicTyping[t]&&(e.dynamicTyping[t]=e.dynamicTypingFunction(t)),!0===(e.dynamicTyping[t]||e.dynamicTyping)}function E(e,t){return T(e)?"true"===t||"TRUE"===t||"false"!==t&&"FALSE"!==t&&(g(t)?parseFloat(t):a.test(t)?new Date(t):""===t?null:t):t}function R(){if(!v||!e.header&&!e.dynamicTyping&&!e.transform)return v;function t(t,n){var r,o=e.header?{}:[];for(r=0;r<t.length;r++){var i=r,s=t[r];e.header&&(i=r>=p.length?"__parsed_extra":p[r]),e.transform&&(s=e.transform(s,i)),s=E(i,s),"__parsed_extra"===i?(o[i]=o[i]||[],o[i].push(s)):o[i]=s}return e.header&&(r>p.length?P("FieldMismatch","TooManyFields","Too many fields: expected "+p.length+" fields but parsed "+r,d+n):r<p.length&&P("FieldMismatch","TooFewFields","Too few fields: expected "+p.length+" fields but parsed "+r,d+n)),o}var n=1;return!v.data.length||Array.isArray(v.data[0])?(v.data=v.data.map(t),n=v.data.length):v.data=t(v.data,0),e.header&&v.meta&&(v.meta.fields=p),d+=n,v}function O(t,n,r,o,i){var s,a,u,l;i=i||[",","\t","|",";",c.RECORD_SEP,c.UNIT_SEP];for(var d=0;d<i.length;d++){var f=i[d],h=0,p=0,v=0;u=void 0;for(var y=new w({comments:o,delimiter:f,newline:n,preview:10}).parse(t),g=0;g<y.data.length;g++)if(r&&m(y.data[g]))v++;else{var b=y.data[g].length;p+=b,void 0!==u?b>0&&(h+=Math.abs(b-u),u=b):u=b}y.data.length>0&&(p/=y.data.length-v),(void 0===a||h<=a)&&(void 0===l||p>l)&&p>1.99&&(a=h,s=f,l=p)}return e.delimiter=s,{successful:!!s,bestDelimiter:s}}function x(e,t){e=e.substring(0,1048576);var n=new RegExp(b(t)+"([^]*?)"+b(t),"gm"),r=(e=e.replace(n,"")).split("\r"),o=e.split("\n"),i=o.length>1&&o[0].length<r[0].length;if(1===r.length||i)return"\n";for(var s=0,a=0;a<r.length;a++)"\n"===r[a][0]&&s++;return s>=r.length/2?"\r\n":"\r"}function P(e,t,n,r){var o={type:e,code:t,message:n};void 0!==r&&(o.row=r),v.errors.push(o)}this.parse=function(o,i,s){var a=e.quoteChar||'"';if(e.newline||(e.newline=x(o,a)),r=!1,e.delimiter)C(e.delimiter)&&(e.delimiter=e.delimiter(o),v.meta.delimiter=e.delimiter);else{var u=O(o,e.newline,e.skipEmptyLines,e.comments,e.delimitersToGuess);u.successful?e.delimiter=u.bestDelimiter:(r=!0,e.delimiter=c.DefaultDelimiter),v.meta.delimiter=e.delimiter}var l=k(e);return e.preview&&e.header&&l.preview++,t=o,n=new w(l),v=n.parse(t,i,s),A(),f?{meta:{paused:!0}}:v||{meta:{paused:!1}}},this.paused=function(){return f},this.pause=function(){f=!0,n.abort(),t=C(e.chunk)?"":t.substring(n.getCharIndex())},this.resume=function(){u.streamer._halted?(f=!1,u.streamer.parseChunk(t,!0)):setTimeout(u.resume,3)},this.aborted=function(){return h},this.abort=function(){h=!0,n.abort(),v.meta.aborted=!0,C(e.complete)&&e.complete(v),t=""}}function b(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function w(e){var t,n=(e=e||{}).delimiter,r=e.newline,o=e.comments,i=e.step,s=e.preview,a=e.fastMode,u=t=void 0===e.quoteChar||null===e.quoteChar?'"':e.quoteChar;if(void 0!==e.escapeChar&&(u=e.escapeChar),("string"!=typeof n||c.BAD_DELIMITERS.indexOf(n)>-1)&&(n=","),o===n)throw new Error("Comment character same as delimiter");!0===o?o="#":("string"!=typeof o||c.BAD_DELIMITERS.indexOf(o)>-1)&&(o=!1),"\n"!==r&&"\r"!==r&&"\r\n"!==r&&(r="\n");var l=0,d=!1;this.parse=function(e,c,f){if("string"!=typeof e)throw new Error("Input must be a string");var h=e.length,p=n.length,v=r.length,y=o.length,m=C(i);l=0;var g=[],w=[],A=[],_=0;if(!e)return U();if(a||!1!==a&&-1===e.indexOf(t)){for(var S=e.split(r),T=0;T<S.length;T++){if(A=S[T],l+=A.length,T!==S.length-1)l+=r.length;else if(f)return U();if(!o||A.substring(0,y)!==o){if(m){if(g=[],N(A.split(n)),q(),d)return U()}else N(A.split(n));if(s&&T>=s)return g=g.slice(0,s),U(!0)}}return U()}for(var E=e.indexOf(n,l),k=e.indexOf(r,l),R=new RegExp(b(u)+b(t),"g"),O=e.indexOf(t,l);;)if(e[l]!==t)if(o&&0===A.length&&e.substring(l,l+y)===o){if(-1===k)return U();l=k+v,k=e.indexOf(r,l),E=e.indexOf(n,l)}else if(-1!==E&&(E<k||-1===k))A.push(e.substring(l,E)),l=E+p,E=e.indexOf(n,l);else{if(-1===k)break;if(A.push(e.substring(l,k)),F(k+v),m&&(q(),d))return U();if(s&&g.length>=s)return U(!0)}else for(O=l,l++;;){if(-1===(O=e.indexOf(t,O+1)))return f||w.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:g.length,index:l}),j();if(O===h-1)return j(e.substring(l,O).replace(R,t));if(t!==u||e[O+1]!==u){if(t===u||0===O||e[O-1]!==u){-1!==E&&E<O+1&&(E=e.indexOf(n,O+1)),-1!==k&&k<O+1&&(k=e.indexOf(r,O+1));var x=I(-1===k?E:Math.min(E,k));if(e.substr(O+1+x,p)===n){A.push(e.substring(l,O).replace(R,t)),l=O+1+x+p,e[O+1+x+p]!==t&&(O=e.indexOf(t,l)),E=e.indexOf(n,l),k=e.indexOf(r,l);break}var P=I(k);if(e.substring(O+1+P,O+1+P+v)===r){if(A.push(e.substring(l,O).replace(R,t)),F(O+1+P+v),E=e.indexOf(n,l),O=e.indexOf(t,l),m&&(q(),d))return U();if(s&&g.length>=s)return U(!0);break}w.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:g.length,index:l}),O++}}else O++}return j();function N(e){g.push(e),_=l}function I(t){var n=0;if(-1!==t){var r=e.substring(O+1,t);r&&""===r.trim()&&(n=r.length)}return n}function j(t){return f||(void 0===t&&(t=e.substring(l)),A.push(t),l=h,N(A),m&&q()),U()}function F(t){l=t,N(A),A=[],k=e.indexOf(r,l)}function U(e){return{data:g,errors:w,meta:{delimiter:n,linebreak:r,aborted:d,truncated:!!e,cursor:_+(c||0)}}}function q(){i(U()),g=[],w=[]}},this.abort=function(){d=!0},this.getCharIndex=function(){return l}}function A(){if(!c.WORKERS_SUPPORTED)return!1;var e=r(),t=new n.Worker(e);return t.onmessage=_,t.id=a++,s[t.id]=t,t}function _(e){var t=e.data,n=s[t.workerId],r=!1;if(t.error)n.userError(t.error,t.file);else if(t.results&&t.results.data){var o={abort:function(){r=!0,S(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:T,resume:T};if(C(n.userStep)){for(var i=0;i<t.results.data.length&&(n.userStep({data:t.results.data[i],errors:t.results.errors,meta:t.results.meta},o),!r);i++);delete t.results}else C(n.userChunk)&&(n.userChunk(t.results,o,t.file),delete t.results)}t.finished&&!r&&S(t.workerId,t.results)}function S(e,t){var n=s[e];C(n.userComplete)&&n.userComplete(t),n.terminate(),delete s[e]}function T(){throw new Error("Not implemented.")}function E(e){var t=e.data;if(void 0===c.WORKER_ID&&t&&(c.WORKER_ID=t.workerId),"string"==typeof t.input)n.postMessage({workerId:c.WORKER_ID,results:c.parse(t.input,t.config),finished:!0});else if(n.File&&t.input instanceof File||t.input instanceof Object){var r=c.parse(t.input,t.config);r&&n.postMessage({workerId:c.WORKER_ID,results:r,finished:!0})}}function k(e){if("object"!=typeof e||null===e)return e;var t=Array.isArray(e)?[]:{};for(var n in e)t[n]=k(e[n]);return t}function R(e,t){return function(){e.apply(t,arguments)}}function C(e){return"function"==typeof e}return i&&(n.onmessage=E),h.prototype=Object.create(f.prototype),h.prototype.constructor=h,p.prototype=Object.create(f.prototype),p.prototype.constructor=p,v.prototype=Object.create(v.prototype),v.prototype.constructor=v,y.prototype=Object.create(f.prototype),y.prototype.constructor=y,"undefined"==typeof PAPA_BROWSER_CONTEXT&&(m.prototype=Object.create(f.prototype),m.prototype.constructor=m),c}();var at={},ct={},ut={},lt={},dt={},ft={},ht={};ht.go=void 0,ht.go=function(e){return e()};var pt={};pt.goMicrotask=void 0,pt.goMicrotask=function(e){return new Promise(((t,n)=>{queueMicrotask((async()=>{try{t(await e())}catch(e){n(e)}}))}))};var vt={},yt={},mt={},gt={},bt={};bt.random=void 0,bt.random=function(e,t){return Math.random()*(t-e)+e};var wt={};wt.randomInt=void 0,wt.randomInt=function(e,t){return e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e))+e};var At={};At.randomIntInclusive=void 0,At.randomIntInclusive=function(e,t){return e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e+1))+e},function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=n&&n.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};r(bt,e),r(wt,e),r(At,e)}(gt),mt.calculateExponentialBackoffTimeout=void 0;const _t=gt;mt.calculateExponentialBackoffTimeout=function({baseTimeout:e,retries:t,maxTimeout:n=1/0,factor:r=2,jitter:o=!0}){const i=Math.min(r**t*e,n);return o?(0,_t.randomIntInclusive)(0,i):i};var St={};St.setTimeout=void 0,St.setTimeout=function(e,t){const n=globalThis.setTimeout(t,e);return()=>clearTimeout(n)};var Tt={setSchedule:void 0};const Et=St;Tt.setSchedule=function(e,t){const n=e-Date.now();return(0,Et.setTimeout)(n,t)};var kt={};kt.setInterval=void 0,kt.setInterval=function(e,t){const n=globalThis.setInterval(t,e);return()=>clearInterval(n)};var Rt={setImmediate:void 0};const Ct=St;Rt.setImmediate=function(e){if(globalThis.setImmediate){const t=globalThis.setImmediate(e);return()=>clearImmediate(t)}return(0,Ct.setTimeout)(0,e)};var Ot={setTimeoutLoop:void 0};const xt=St;Ot.setTimeoutLoop=function(e,t){let n=!1,r=(0,xt.setTimeout)(e,(async function o(){await t(),n||(r=(0,xt.setTimeout)(e,o))}));return()=>{n=!0,r()}};var Pt={setDynamicTimeoutLoop:void 0};const Nt=St;Pt.setDynamicTimeoutLoop=function(e,t){let n=!1,r=(0,Nt.setTimeout)(e,(async function o(){const i=Date.now();await t();const s=Date.now()-i;n||(r=(0,Nt.setTimeout)(Math.max(e-s,0),o))}));return()=>{n=!0,r()}},function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=n&&n.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};r(mt,e),r(St,e),r(Tt,e),r(kt,e),r(Rt,e),r(Ot,e),r(Pt,e)}(yt),vt.goMacrotask=void 0;const It=yt;var jt;vt.goMacrotask=function(e){return new Promise(((t,n)=>{(0,It.setImmediate)((async()=>{try{t(await e())}catch(e){n(e)}}))}))},function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=n&&n.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};r(ht,e),r(pt,e),r(vt,e)}(ft);var Ft={},Ut={},qt={};function Lt(e){return Array.isArray(e)}qt.isntEmptyArray=qt.isEmptyArray=qt.isntArray=qt.isArray=void 0,qt.isArray=Lt,qt.isntArray=function(e){return!Lt(e)},qt.isEmptyArray=function(e){return 0===e.length},qt.isntEmptyArray=function(e){return 0!==e.length};var Mt={},Dt={};function Bt(e){return null===e}Dt.isntNull=Dt.isNull=void 0,Dt.isNull=Bt,Dt.isntNull=function(e){return!Bt(e)};var Ht={};function zt(e){return void 0===e}Ht.isntUndefined=Ht.isUndefined=void 0,Ht.isUndefined=zt,Ht.isntUndefined=function(e){return!zt(e)};var $t={};function Jt(e){return"function"==typeof e}$t.isntFunction=$t.isFunction=void 0,$t.isFunction=Jt,$t.isntFunction=function(e){return!Jt(e)},Mt.isntAsyncIterable=Mt.isAsyncIterable=void 0;const Wt=Dt,Gt=Ht,Vt=$t;function Kt(e){return(0,Wt.isntNull)(e)&&(0,Gt.isntUndefined)(e)&&(0,Vt.isFunction)(e[Symbol.asyncIterator])}Mt.isAsyncIterable=Kt,Mt.isntAsyncIterable=function(e){return!Kt(e)};var Qt={};function Zt(e){return"bigint"==typeof e}Qt.isntBigInt=Qt.isBigInt=void 0,Qt.isBigInt=Zt,Qt.isntBigInt=function(e){return!Zt(e)};var Xt={};function Yt(e){return"boolean"==typeof e}Xt.isntBoolean=Xt.isBoolean=void 0,Xt.isBoolean=Yt,Xt.isntBoolean=function(e){return!Yt(e)};var en={},tn={};function nn(e){return"string"==typeof e}tn.isntString=tn.isString=void 0,tn.isString=nn,tn.isntString=function(e){return!nn(e)},en.isntChar=en.isChar=void 0;const rn=tn;function on(e){return(0,rn.isString)(e)&&1===e.length}en.isChar=on,en.isntChar=function(e){return!on(e)};var sn={};function an(e){return e instanceof Date}sn.isntDate=sn.isDate=void 0,sn.isDate=an,sn.isntDate=function(e){return!an(e)};var cn={};cn.inEnum=void 0,cn.inEnum=function(e,t){return Object.values(t).includes(e)};var un={};function ln(e){return e instanceof Error}un.isntError=un.isError=void 0,un.isError=ln,un.isntError=function(e){return!ln(e)};var dn={};function fn(e){return!e}dn.isntFalsy=dn.isFalsy=void 0,dn.isFalsy=fn,dn.isntFalsy=function(e){return!fn(e)};var hn={};hn.isntIterable=hn.isIterable=void 0;const pn=Dt,vn=Ht,yn=$t;function mn(e){return(0,pn.isntNull)(e)&&(0,vn.isntUndefined)(e)&&(0,yn.isFunction)(e[Symbol.iterator])}hn.isIterable=mn,hn.isntIterable=function(e){return!mn(e)};var gn={},bn={};function wn(e){return"number"==typeof e}function An(e){return Number.isNaN(e)}bn.isntNaN=bn.isNaN=bn.isNegativeInfinity=bn.isPositiveInfinity=bn.isFinite=bn.isntNumber=bn.isNumber=void 0,bn.isNumber=wn,bn.isntNumber=function(e){return!wn(e)},bn.isFinite=function(e){return Number.isFinite(e)},bn.isPositiveInfinity=function(e){return e===1/0},bn.isNegativeInfinity=function(e){return e===-1/0},bn.isNaN=An,bn.isntNaN=function(e){return!An(e)};var _n={},Sn=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};_n.isntEmptyObject=_n.isEmptyObject=_n.isntPlainObject=_n.isPlainObject=_n.isntObject=_n.isObject=void 0;const Tn=Sn(Ce);function En(e){return null!==e&&"object"==typeof e}function kn(e){return(0,Tn.default)(e)}_n.isObject=En,_n.isntObject=function(e){return!En(e)},_n.isPlainObject=kn,_n.isntPlainObject=function(e){return!kn(e)},_n.isEmptyObject=function(e){return 0===Object.keys(e).length},_n.isntEmptyObject=function(e){return 0!==Object.keys(e).length},gn.isntJsonable=gn.isJsonable=gn.isntJson=gn.isJson=void 0;const Rn=Dt,Cn=Xt,On=tn,xn=bn,Pn=qt,Nn=_n;function In(e){return(0,Rn.isNull)(e)||(0,Cn.isBoolean)(e)||(0,On.isString)(e)||(0,xn.isNumber)(e)||(0,Pn.isArray)(e)&&e.every(In)||(0,Nn.isPlainObject)(e)&&Object.values(e).every(In)}gn.isJson=In,gn.isntJson=function(e){return!In(e)},gn.isJsonable=function(e){try{return JSON.stringify(e),!0}catch(e){return!1}},gn.isntJsonable=function e(t){return!e()};var jn={};jn.isPromiseLike=jn.isntPromiseLike=jn.isntPromise=jn.isPromise=void 0;const Fn=_n,Un=$t;function qn(e){return e instanceof Promise}function Ln(e){return(0,Fn.isObject)(e)&&(0,Un.isFunction)(e.then)}jn.isPromise=qn,jn.isntPromise=function(e){return!qn(e)},jn.isntPromiseLike=function(e){return!Ln(e)},jn.isPromiseLike=Ln;var Mn={};Mn.isAbsoluteURL=void 0,Mn.isAbsoluteURL=function(e){try{return new URL(e),!0}catch(e){return!1}};var Dn={};function Bn(e){return e instanceof RegExp}Dn.isntRegExp=Dn.isRegExp=void 0,Dn.isRegExp=Bn,Dn.isntRegExp=function(e){return!Bn(e)};var Hn={};function zn(e){return"symbol"==typeof e}Hn.isntSymbol=Hn.isSymbol=void 0,Hn.isSymbol=zn,Hn.isntSymbol=function(e){return!zn(e)},function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=n&&n.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};r(qt,e),r(Mt,e),r(Qt,e),r(Xt,e),r(en,e),r(sn,e),r(cn,e),r(un,e),r(dn,e),r($t,e),r(hn,e),r(gn,e),r(Dt,e),r(bn,e),r(_n,e),r(jn,e),r(tn,e),r(Ht,e),r(Mn,e),r(Dn,e),r(Hn,e)}(Ut),Ft.chunkByAsync=void 0;const $n=Ut;Ft.chunkByAsync=function(e,t){return(0,$n.isAsyncIterable)(e)?async function*(e,t){let n=[],r=0;for await(const o of e)n.push(o),await t(o,r)&&(yield n,n=[]),r++;n.length&&(yield n)}(e,t):async function*(e,t){let n=[],r=0;for(const o of e)n.push(o),await t(o,r)&&(yield n,n=[]),r++;n.length&&(yield n)}(e,t)};var Jn={};Jn.chunkBy=void 0,Jn.chunkBy=function*(e,t){let n=[],r=0;for(const o of e)n.push(o),t(o,r)&&(yield n,n=[]),r++;n.length&&(yield n)};var Wn,Gn={};var Vn={concatAsync:void 0};const Kn=Ut,Qn=ft;Vn.concatAsync=function(e,...t){return(0,Qn.go)((async function*(){for(const n of[e,...t])if((0,Kn.isAsyncIterable)(n))for await(const e of n)yield e;else for(const e of n)yield e}))};var Zn={concat:void 0};const Xn=ft;Zn.concat=function(e,...t){return(0,Xn.go)((function*(){for(const n of[e,...t])yield*n}))};var Yn,er={},tr={};tr.copyIterable=tr.copyAsyncIterable=void 0,tr.copyAsyncIterable=async function*(e){for await(const t of e)yield t},tr.copyIterable=function*(e){for(const t of e)yield t};var nr,rr={};var or,ir={};var sr={dropUntilAsync:void 0};const ar=Ut;sr.dropUntilAsync=function(e,t){return(0,ar.isAsyncIterable)(e)?async function*(e,t){var n;const r=e[Symbol.asyncIterator]();let o;try{let e,i=0;for(;!(({value:e,done:o}=await r.next()),o||await t(e,i++)););for(;!o;)yield e,({value:e,done:o}=await r.next())}finally{o||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}(e,t):async function*(e,t){var n;const r=e[Symbol.iterator]();let o;try{let e,i=0;for(;!(({value:e,done:o}=r.next()),o||await t(e,i++)););for(;!o;)yield e,({value:e,done:o}=r.next())}finally{o||null===(n=r.return)||void 0===n||n.call(r)}}(e,t)};var cr={};cr.dropUntil=void 0,cr.dropUntil=function*(e,t){var n;const r=e[Symbol.iterator]();let o;try{let e,i=0;for(;!(({value:e,done:o}=r.next()),o||t(e,i++)););for(;!o;)yield e,({value:e,done:o}=r.next())}finally{o||null===(n=r.return)||void 0===n||n.call(r)}};var ur,lr={};var dr={filterAsync:void 0};const fr=Ut;dr.filterAsync=function(e,t){return(0,fr.isAsyncIterable)(e)?async function*(e,t){let n=0;for await(const r of e)await t(r,n)&&(yield r),n++}(e,t):async function*(e,t){let n=0;for(const r of e)await t(r,n)&&(yield r),n++}(e,t)};var hr={};hr.filter=void 0,hr.filter=function*(e,t){let n=0;for(const r of e)t(r,n)&&(yield r),n++};var pr={},vr={},yr={flattenByAsync:void 0};const mr=Ut;async function*gr(e,t,n){for(const r of e)br(r)&&await t(r,n)?yield*gr(r,t,n+1):yield r}function br(e){return(0,mr.isIterable)(e)&&(0,mr.isntChar)(e)}var wr,Ar;function _r(){if(wr)return vr;wr=1,vr.flattenDeepAsync=void 0;const e=yr,t=ji();return vr.flattenDeepAsync=function(n,r=1/0){return(0,t.assert)(r===1/0||Number.isInteger(r),"The parameter depth must be an integer"),(0,t.assert)(r>=0,"The parameter depth must be greater than or equal to 0"),(0,e.flattenByAsync)(n,((e,t)=>t<=r))},vr}yr.flattenByAsync=function(e,t){return(0,mr.isAsyncIterable)(e)?async function*(e,t){const n=1;for await(const r of e)br(r)&&await t(r,n)?yield*gr(r,t,n+1):yield r}(e,t):function(e,t){return gr(e,t,1)}(e,t)};var Sr={flattenBy:void 0};const Tr=Ut;function*Er(e,t,n){for(const o of e)(0,Tr.isIterable)(r=o)&&(0,Tr.isntChar)(r)&&t(o,n)?yield*Er(o,t,n+1):yield o;var r}Sr.flattenBy=function(e,t){return Er(e,t,1)};var kr,Rr={};function Cr(){if(kr)return Rr;kr=1,Rr.flattenDeep=void 0;const e=Sr,t=ji();return Rr.flattenDeep=function(n,r=1/0){return(0,t.assert)(r===1/0||Number.isInteger(r),"The parameter depth must be an integer"),(0,t.assert)(r>=0,"The parameter depth must be greater than or equal to 0"),(0,e.flattenBy)(n,((e,t)=>t<=r))},Rr}var Or,xr={};var Pr={mapAsync:void 0};const Nr=Ut;Pr.mapAsync=function(e,t){return(0,Nr.isAsyncIterable)(e)?async function*(e,t){let n=0;for await(const r of e)yield await t(r,n),n++}(e,t):async function*(e,t){let n=0;for(const r of e)yield await t(r,n),n++}(e,t)};var Ir={};Ir.map=void 0,Ir.map=function*(e,t){let n=0;for(const r of e)yield t(r,n),n++};var jr,Fr={};function Ur(){if(jr)return Fr;jr=1,Fr.repeatAsync=void 0;const e=ft,t=ji();return Fr.repeatAsync=function(n,r){return(0,t.assert)(r===1/0||Number.isInteger(r),"The parameter times must be an integer"),(0,t.assert)(r>=0,"The parameter times must be greater than or equal to 0"),r===1/0&&function(){if("production"===process.env.NODE_ENV)return;console.warn("When iterable has no elements and times is Infinity, repeat() will be in dead loop")}(),(0,e.go)((async function*(){const e=[];if(r>0){for await(const t of n)yield t,e.push(t);r--}for(;r>0;)yield*e,r--}))},Fr}var qr,Lr={};function Mr(){if(qr)return Lr;qr=1,Lr.repeat=void 0;const e=ft,t=ji();return Lr.repeat=function(n,r){return(0,t.assert)(r===1/0||Number.isInteger(r),"The parameter times must be an integer"),(0,t.assert)(r>=0,"The parameter times must be greater than or equal to 0"),r===1/0&&function(){if("production"===process.env.NODE_ENV)return;console.warn("When iterable has no elements and times is Infinity, repeat() will be in dead loop")}(),(0,e.go)((function*(){const e=[];if(r>0){for(const t of n)yield t,e.push(t);r--}for(;r>0;)yield*e,r--}))},Lr}var Dr,Br={};var Hr,zr={};var $r={};$r.splitAsync=void 0,$r.splitAsync=async function*(e,t){let n=[];for await(const r of e)r===t?(yield n,n=[]):n.push(r);yield n};var Jr={splitByAsync:void 0};const Wr=Ut;Jr.splitByAsync=function(e,t){return(0,Wr.isAsyncIterable)(e)?async function*(e,t){let n=[],r=0;for await(const o of e)await t(o,r)?(yield n,n=[]):n.push(o),r++;yield n}(e,t):async function*(e,t){let n=[],r=0;for(const o of e)await t(o,r)?(yield n,n=[]):n.push(o),r++;yield n}(e,t)};var Gr={};Gr.splitBy=void 0,Gr.splitBy=function*(e,t){let n=[],r=0;for(const o of e)t(o,r)?(yield n,n=[]):n.push(o),r++;yield n};var Vr={};Vr.split=void 0,Vr.split=function*(e,t){let n=[];for(const r of e)r===t?(yield n,n=[]):n.push(r);yield n};var Kr,Qr={};var Zr,Xr={};var Yr,eo={};var to={takeUntilAsync:void 0};const no=Ut;to.takeUntilAsync=function(e,t){return(0,no.isAsyncIterable)(e)?async function*(e,t){let n=0;for await(const r of e){if(await t(r,n))break;yield r,n++}}(e,t):async function*(e,t){let n=0;for(const r of e){if(await t(r,n))break;yield r,n++}}(e,t)};var ro={};ro.takeUntil=void 0,ro.takeUntil=function*(e,t){let n=0;for(const r of e){if(t(r,n))break;yield r,n++}};var oo,io={};var so={tapAsync:void 0};const ao=Ut;so.tapAsync=function(e,t){return(0,ao.isAsyncIterable)(e)?async function*(e,t){let n=0;for await(const r of e)await t(r,n),yield r,n++}(e,t):async function*(e,t){let n=0;for(const r of e)await t(r,n),yield r,n++}(e,t)};var co={};co.tap=void 0,co.tap=function*(e,t){let n=0;for(const r of e)t(r,n),yield r,n++};var uo={};uo.toAsyncIterable=void 0,uo.toAsyncIterable=async function*(e){for(const t of e)yield t};var lo={};lo.transformAsync=void 0,lo.transformAsync=async function*(e,t){yield*t(e)};var fo={};fo.transform=void 0,fo.transform=function*(e,t){yield*t(e)};var ho={};ho.uniqAsync=void 0,ho.uniqAsync=async function*(e){const t=new Set;for await(const n of e)t.has(n)||(yield n,t.add(n))};var po={uniqByAsync:void 0};const vo=Ut;po.uniqByAsync=function(e,t){return(0,vo.isAsyncIterable)(e)?async function*(e,t){const n=new Set;let r=0;for await(const o of e){const e=await t(o,r);n.has(e)||(yield o,n.add(e)),r++}}(e,t):async function*(e,t){const n=new Set;let r=0;for(const o of e){const e=await t(o,r);n.has(e)||(yield o,n.add(e)),r++}}(e,t)};var yo={};yo.uniqBy=void 0,yo.uniqBy=function*(e,t){const n=new Set;let r=0;for(const o of e){const e=t(o,r);n.has(e)||(yield o,n.add(e)),r++}};var mo={};mo.uniq=void 0,mo.uniq=function*(e){const t=new Set;for(const n of e)t.has(n)||(yield n,t.add(n))};var go={zipAsync:void 0};const bo=Ut;var wo;!function(e){e[e.Sync=0]="Sync",e[e.Async=1]="Async"}(wo||(wo={})),go.zipAsync=function(e,...t){return async function*(...e){var t,n,r,o;const i=e.length,s=e.map((e=>(0,bo.isAsyncIterable)(e)?[wo.Async,e[Symbol.asyncIterator]()]:[wo.Sync,e[Symbol.iterator]()])),a=s.map((()=>!1));try{for(;;){const e=new Array(i);for(let t=0;t<i;t++){const[n,r]=s[t];let o;if(o=n===wo.Async?await r.next():r.next(),o.done)return void(a[t]=!0);e[t]=o.value}yield e}}finally{const e=s.filter(((e,t)=>!a[t]));for(const[i,s]of e)i===wo.Async?await(null===(n=(t=s).return)||void 0===n?void 0:n.call(t)):null===(o=(r=s).return)||void 0===o||o.call(r)}}(e,...t)};var Ao,_o={};function So(){return Ao||(Ao=1,function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=n&&n.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};r(function(){if(jt)return dt;jt=1,dt.chunkAsync=void 0;const e=ft,t=ji();return dt.chunkAsync=function(n,r){return(0,t.assert)(Number.isInteger(r),"The parameter size must be an integer"),(0,t.assert)(r>0,"The parameter size must be greater than 0"),(0,e.go)((async function*(){let e=[];for await(const t of n)e.push(t),e.length>=r&&(yield e,e=[]);e.length&&(yield e)}))},dt}(),e),r(Ft,e),r(Jn,e),r(function(){if(Wn)return Gn;Wn=1,Gn.chunk=void 0;const e=ft,t=ji();return Gn.chunk=function(n,r){return(0,t.assert)(Number.isInteger(r),"The parameter size must be an integer"),(0,t.assert)(r>0,"The parameter size must be greater than 0"),(0,e.go)((function*(){let e=[];for(const t of n)e.push(t),e.length>=r&&(yield e,e=[]);e.length&&(yield e)}))},Gn}(),e),r(Vn,e),r(Zn,e),r(function(){if(Yn)return er;Yn=1,er.dropAsync=void 0;const e=ft,t=tr,n=ji();return er.dropAsync=function(r,o){return(0,n.assert)(Number.isInteger(o),"The parameter count must be an integer"),(0,n.assert)(o>=0,"The parameter count must be greater than or equal to 0"),0===o?(0,t.copyAsyncIterable)(r):(0,e.go)((async function*(){var e;const t=r[Symbol.asyncIterator]();let n;try{let r;for(;({value:r,done:n}=await t.next()),!(n||o<=0);)o--;for(;!n;)yield r,({value:r,done:n}=await t.next())}finally{n||await(null===(e=t.return)||void 0===e?void 0:e.call(t))}}))},er}(),e),r(function(){if(nr)return rr;nr=1,rr.dropRightAsync=void 0;const e=ft,t=tr,n=ji();return rr.dropRightAsync=function(r,o){return(0,n.assert)(Number.isInteger(o),"The parameter count must be an integer"),(0,n.assert)(o>=0,"The parameter count must be greater than or equal to 0"),0===o?(0,t.copyAsyncIterable)(r):(0,e.go)((async function*(){const e=(await async function(e){const t=[];for await(const n of e)t.push(n);return t}(r)).slice(0,-o);for(const t of e)yield t}))},rr}(),e),r(function(){if(or)return ir;or=1,ir.dropRight=void 0;const e=ft,t=tr,n=ji();return ir.dropRight=function(r,o){return(0,n.assert)(Number.isInteger(o),"The parameter count must be an integer"),(0,n.assert)(o>=0,"The parameter count must be greater than or equal to 0"),0===o?(0,t.copyIterable)(r):(0,e.go)((function*(){const e=Array.from(r);yield*e.slice(0,-o)}))},ir}(),e),r(sr,e),r(cr,e),r(function(){if(ur)return lr;ur=1,lr.drop=void 0;const e=ft,t=tr,n=ji();return lr.drop=function(r,o){return(0,n.assert)(Number.isInteger(o),"The parameter count must be an integer"),(0,n.assert)(o>=0,"The parameter count must be greater than or equal to 0"),0===o?(0,t.copyIterable)(r):(0,e.go)((function*(){var e;const t=r[Symbol.iterator]();let n;try{let r;for(;({value:r,done:n}=t.next()),!(n||o<=0);)o--;for(;!n;)yield r,({value:r,done:n}=t.next())}finally{n||null===(e=t.return)||void 0===e||e.call(t)}}))},lr}(),e),r(dr,e),r(hr,e),r(function(){if(Ar)return pr;Ar=1,pr.flattenAsync=void 0;const e=_r();return pr.flattenAsync=function(t){return(0,e.flattenDeepAsync)(t,1)},pr}(),e),r(yr,e),r(Sr,e),r(_r(),e),r(Cr(),e),r(function(){if(Or)return xr;Or=1,xr.flatten=void 0;const e=Cr();return xr.flatten=function(t){return(0,e.flattenDeep)(t,1)},xr}(),e),r(Pr,e),r(Ir,e),r(Ur(),e),r(Mr(),e),r(function(){if(Dr)return Br;Dr=1,Br.sliceAsync=void 0;const e=ft,t=ji();return Br.sliceAsync=function(n,r,o=1/0){return(0,t.assert)(Number.isInteger(r),"The parameter start must be an integer"),(0,t.assert)(r>=0,"The parameter start must be greater than or equal to 0"),(0,t.assert)(Number.isInteger(o),"The parameter end must be an integer"),(0,t.assert)(o>=r,"The parameter end must be greater than or equal to start"),(0,e.go)((async function*(){let e=0;for await(const t of n){if(e>=o)break;e>=r&&(yield t),e++}}))},Br}(),e),r(function(){if(Hr)return zr;Hr=1,zr.slice=void 0;const e=ft,t=ji();return zr.slice=function(n,r,o=1/0){return(0,t.assert)(Number.isInteger(r),"The parameter start must be an integer"),(0,t.assert)(r>=0,"The parameter start must be greater than or equal to 0"),(0,t.assert)(Number.isInteger(o),"The parameter end must be an integer"),(0,t.assert)(o>=r,"The parameter end must be greater than or equal to start"),(0,e.go)((function*(){let e=0;for(const t of n){if(e>=o)break;e>=r&&(yield t),e++}}))},zr}(),e),r($r,e),r(Jr,e),r(Gr,e),r(Vr,e),r(function(){if(Kr)return Qr;Kr=1,Qr.takeAsync=void 0;const e=ft,t=ji();return Qr.takeAsync=function(n,r){return(0,t.assert)(Number.isInteger(r),"The parameter count must be an integer"),(0,t.assert)(r>=0,"The parameter count must be greater than or equal to 0"),(0,e.go)((async function*(){if(0!==r)for await(const e of n)if(yield e,0==--r)break}))},Qr}(),e),r(function(){if(Zr)return Xr;Zr=1,Xr.takeRightAsync=void 0;const e=ft,t=ji();return Xr.takeRightAsync=function(n,r){return(0,t.assert)(Number.isInteger(r),"The parameter count must be an integer"),(0,t.assert)(r>=0,"The parameter count must be greater than or equal to 0"),(0,e.go)((async function*(){var e;const t=n[Symbol.asyncIterator]();let o;try{const n=[];let i;for(;({value:i,done:o}=await t.next()),!o;)n.push(i),n.length>r&&n.shift();yield*n}finally{o||await(null===(e=t.return)||void 0===e?void 0:e.call(t))}}))},Xr}(),e),r(function(){if(Yr)return eo;Yr=1,eo.takeRight=void 0;const e=ft,t=ji();return eo.takeRight=function(n,r){return(0,t.assert)(Number.isInteger(r),"The parameter count must be an integer"),(0,t.assert)(r>=0,"The parameter count must be greater than or equal to 0"),(0,e.go)((function*(){var e;const t=n[Symbol.iterator]();let o;try{const n=[];let i;for(;({value:i,done:o}=t.next()),!o;)n.push(i),n.length>r&&n.shift();yield*n}finally{o||null===(e=t.return)||void 0===e||e.call(t)}}))},eo}(),e),r(to,e),r(ro,e),r(function(){if(oo)return io;oo=1,io.take=void 0;const e=ft,t=ji();return io.take=function(n,r){return(0,t.assert)(Number.isInteger(r),"The parameter count must be an integer"),(0,t.assert)(r>=0,"The parameter count must be greater than or equal to 0"),(0,e.go)((function*(){if(0!==r)for(const e of n)if(yield e,0==--r)break}))},io}(),e),r(so,e),r(co,e),r(uo,e),r(lo,e),r(fo,e),r(ho,e),r(po,e),r(yo,e),r(mo,e),r(go,e),r(_o,e)}(lt)),lt}_o.zip=void 0,_o.zip=function(e,...t){return function*(...e){const t=e.length,n=e.map((e=>e[Symbol.iterator]())),r=n.map((()=>!1));try{for(;;){const e=new Array(t);for(let o=0;o<t;o++){const{value:t,done:i}=n[o].next();if(i)return void(r[o]=!0);e[o]=t}yield e}}finally{n.filter(((e,t)=>!r[t])).forEach((e=>{var t;return null===(t=e.return)||void 0===t?void 0:t.call(e)}))}}(e,...t)};var To={},Eo={};Eo.consume=void 0,Eo.consume=function(e,t){return t(e)};var ko={eachAsync:void 0};const Ro=Ut;ko.eachAsync=function(e,t){return(0,Ro.isAsyncIterable)(e)?async function(e,t){let n=0;for await(const r of e)await t(r,n),n++}(e,t):async function(e,t){let n=0;for(const r of e)await t(r,n),n++}(e,t)};var Co={};Co.each=void 0,Co.each=function(e,t){let n=0;for(const r of e)t(r,n),n++};var Oo={everyAsync:void 0};const xo=Ut;Oo.everyAsync=function(e,t){return(0,xo.isAsyncIterable)(e)?async function(e,t){let n=0;for await(const r of e){if(!await t(r,n))return!1;n++}return!0}(e,t):async function(e,t){let n=0;for(const r of e){if(!await t(r,n))return!1;n++}return!0}(e,t)};var Po={};Po.every=void 0,Po.every=function(e,t){let n=0;for(const r of e){if(!t(r,n))return!1;n++}return!0};var No={findAsync:void 0};const Io=Ut;No.findAsync=function(e,t){return(0,Io.isAsyncIterable)(e)?async function(e,t){let n=0;for await(const r of e){if(await t(r,n))return r;n++}return}(e,t):async function(e,t){let n=0;for(const r of e){if(await t(r,n))return r;n++}return}(e,t)};var jo={};jo.find=void 0,jo.find=function(e,t){let n=0;for(const r of e){if(t(r,n))return r;n++}};var Fo={};Fo.firstAsync=void 0,Fo.firstAsync=async function(e){for await(const t of e)return t};var Uo={};Uo.first=void 0,Uo.first=function(e){for(const t of e)return t};var qo={};qo.includesAsync=void 0,qo.includesAsync=async function(e,t){for await(const n of e)if(n===t)return!0;return!1};var Lo={};Lo.includes=void 0,Lo.includes=function(e,t){for(const n of e)if(n===t)return!0;return!1};var Mo={};Mo.matchAsync=void 0,Mo.matchAsync=async function(e,t){const n=t.length;let r=0;for await(const o of e)if(o===t[r]&&r++,r===n)return!0;return!1};var Do={};Do.match=void 0,Do.match=function(e,t){const n=t.length;let r=0;for(const o of e)if(o===t[r]&&r++,r===n)return!0;return!1};var Bo={reduceAsync:void 0};const Ho=Ut;Bo.reduceAsync=function(e,t,n){return(0,Ho.isUndefined)(n)?function(e,t){return(0,Ho.isAsyncIterable)(e)?n(e):r(e);async function n(e){var n;const r=e[Symbol.asyncIterator]();let o;try{let e,s=await i(r),a=1;for(;({value:e,done:o}=await r.next()),!o;)s=await t(s,e,a++);return s}finally{o||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}async function i(e){const t=await e.next();if(t.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return t.value}}async function r(e){var n;const r=e[Symbol.iterator]();let o;try{let e,s=i(r),a=1;for(;({value:e,done:o}=r.next()),!o;)s=await t(s,e,a++);return s}finally{o||null===(n=r.return)||void 0===n||n.call(r)}function i(e){const t=e.next();if(t.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return t.value}}}(e,t):function(e,t,n){return(0,Ho.isAsyncIterable)(e)?o(e):r(e);async function r(e){let r=n,o=0;for(const n of e)r=await t(r,n,o++);return r}async function o(e){let r=n,o=0;for await(const n of e)r=await t(r,n,o++);return r}}(e,t,n)};var zo={reduce:void 0};const $o=Ut;zo.reduce=function(e,t,n){return(0,$o.isUndefined)(n)?function(e,t){var n;const r=e[Symbol.iterator]();let o;try{let e,s=i(r),a=1;for(;({value:e,done:o}=r.next()),!o;)s=t(s,e,a++);return s}finally{o||null===(n=r.return)||void 0===n||n.call(r)}function i(e){const t=e.next();if(t.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return t.value}}(e,t):function(e,t,n){let r=n,o=0;for(const n of e)r=t(r,n,o++);return r}(e,t,n)};var Jo={someAsync:void 0};const Wo=Ut;Jo.someAsync=function(e,t){return(0,Wo.isAsyncIterable)(e)?async function(e,t){let n=0;for await(const r of e){if(await t(r,n))return!0;n++}return!1}(e,t):async function(e,t){let n=0;for(const r of e){if(await t(r,n))return!0;n++}return!1}(e,t)};var Go={};Go.some=void 0,Go.some=function(e,t){let n=0;for(const r of e){if(t(r,n))return!0;n++}return!1};var Vo={};Vo.lastAsync=void 0,Vo.lastAsync=async function(e){var t;const n=e[Symbol.asyncIterator]();let r;try{let e,o;for(;({value:e,done:r}=await n.next()),!r;)o=e;return o}finally{r||await(null===(t=n.return)||void 0===t?void 0:t.call(n))}};var Ko={};Ko.last=void 0,Ko.last=function(e){var t;const n=e[Symbol.iterator]();let r;try{let e,o;for(;({value:e,done:r}=n.next()),!r;)o=e;return o}finally{r||null===(t=n.return)||void 0===t||t.call(n)}};var Qo={toArrayAsync:void 0};const Zo=Eo;Qo.toArrayAsync=function(e){return(0,Zo.consume)(e,(async e=>{const t=[];for await(const n of e)t.push(n);return t}))};var Xo={toArray:void 0};const Yo=Eo;Xo.toArray=function(e){return(0,Yo.consume)(e,(e=>Array.from(e)))};var ei={toSetAsync:void 0};const ti=Eo;ei.toSetAsync=function(e){return(0,ti.consume)(e,(async e=>{const t=new Set;for await(const n of e)t.add(n);return t}))};var ni={toSet:void 0};const ri=Eo;ni.toSet=function(e){return(0,ri.consume)(e,(e=>new Set(e)))};var oi={};oi.count=void 0,oi.count=function(e){let t=0;for(const n of e)t++;return t};var ii={};ii.countAsync=void 0,ii.countAsync=async function(e){let t=0;for await(const n of e)t++;return t};var si={groupBy:void 0};const ai=Co;si.groupBy=function(e,t){const n=new Map;return(0,ai.each)(e,((e,r)=>{const o=t(e,r);n.has(o)||n.set(o,[]),n.get(o).push(e)})),n};var ci={groupByAsync:void 0};const ui=ko;var li;function di(){return li||(li=1,function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=n&&n.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};r(So(),e),r(To,e)}(ut)),ut}ci.groupByAsync=async function(e,t){const n=new Map;return await(0,ui.eachAsync)(e,(async(e,r)=>{const o=await t(e,r);n.has(o)||n.set(o,[]),n.get(o).push(e)})),n},function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=n&&n.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};r(Eo,e),r(ko,e),r(Co,e),r(Oo,e),r(Po,e),r(No,e),r(jo,e),r(Fo,e),r(Uo,e),r(qo,e),r(Lo,e),r(Mo,e),r(Do,e),r(Bo,e),r(zo,e),r(Jo,e),r(Go,e),r(Vo,e),r(Ko,e),r(Qo,e),r(Xo,e),r(ei,e),r(ni,e),r(oi,e),r(ii,e),r(si,e),r(ci,e)}(To);var fi={},hi={};hi.traverseErrorPrototypeChain=void 0,hi.traverseErrorPrototypeChain=function*(e){let t=e;for(;(t=Object.getPrototypeOf(t))&&(yield t,t!==Error.prototype););},fi.getErrorNames=void 0;const pi=b,vi=hi;fi.getErrorNames=function*(e){var t;if((0,pi.isError)(e))for(const n of(0,vi.traverseErrorPrototypeChain)(e))(null===(t=n.constructor)||void 0===t?void 0:t.name)&&(yield n.constructor.name);else yield e.name,yield*e.ancestors};var yi={isSerializableError:void 0};const mi=b;var gi;function bi(){if(gi)return ct;gi=1,ct.CustomError=void 0;const e=di(),t=fi,n=b,r=yi;class o extends Error{get name(){var n,r;return null!==(r=null!==(n=(0,e.first)((0,t.getErrorNames)(this)))&&void 0!==n?n:o.name)&&void 0!==r?r:"CustomError"}static[Symbol.hasInstance](o){var i;if((0,n.isError)(o)||(0,r.isSerializableError)(o)){const n=[null!==(i=this.prototype.constructor.name)&&void 0!==i?i:this.name,...(0,t.getErrorNames)(this.prototype)].reverse(),r=(0,e.toArray)((0,t.getErrorNames)(o)).reverse();return n.every(((e,t)=>e===r[t]))}return!1}}return ct.CustomError=o,ct}yi.isSerializableError=function(e){return(0,mi.isObject)(e)&&(0,mi.isString)(e.name)&&(0,mi.isString)(e.message)&&((0,mi.isString)(e.stack)||(0,mi.isNull)(e.stack))&&(0,mi.isArray)(e.ancestors)&&e.ancestors.every(mi.isString)};var wi,Ai={};function _i(){if(wi)return Ai;wi=1,Ai.AssertionError=void 0;const e=bi();class t extends e.CustomError{}return Ai.AssertionError=t,Ai}var Si,Ti={};var Ei={},ki={},Ri={};Ri.pass=void 0,Ri.pass=function(){};var Ci={};Ci.passAsync=void 0,Ci.passAsync=async function(){},function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=n&&n.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};r(Ri,e),r(Ci,e)}(ki),Ei.hydrate=void 0;const Oi=ki;function xi(e,t){const n=function(){(0,Oi.pass)()};return(n.prototype=Object.create(e.prototype)).constructor=n,Object.defineProperty(n,"name",{value:t}),n}Ei.hydrate=function(e){var t;const n=[e.name,...e.ancestors].slice(0,-1).reverse();let r=Error;for(const e of n)r=xi(r,e);const o=new r;return o.name=e.name,o.message=e.message,o.stack=null!==(t=e.stack)&&void 0!==t?t:void 0,o};var Pi,Ni,Ii={};function ji(){return Ni||(Ni=1,function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=n&&n.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};r(bi(),e),r(_i(),e),r(yi,e),r(function(){if(Si)return Ti;Si=1,Ti.normalize=void 0;const e=fi,t=di();return Ti.normalize=function(n){var r;const[o,...i]=(0,t.toArray)((0,e.getErrorNames)(n));return{name:o,ancestors:i,message:n.message,stack:null!==(r=n.stack)&&void 0!==r?r:null}},Ti}(),e),r(Ei,e),r(function(){if(Pi)return Ii;Pi=1,Ii.assert=void 0;const e=_i();return Ii.assert=function(t,n){if(!t)throw new e.AssertionError(n)},Ii}(),e),r(fi,e),r(hi,e)}(at)),at}it.csv=void 0;const Fi=r,Ui=st.exports,qi=ji();function Li(e){const t=Object.keys(e[0]);return(0,Ui.unparse)({data:e,fields:t})}it.csv=function(e){return(0,qi.assert)(e.length>0,"payload must be a non-empty array"),t=>{const n=new Fi.Headers(t.headers);return n.set("Content-Type","text/csv"),{...t,headers:n,payload:Li(e)}}};var Mi={};Mi.signal=void 0,Mi.signal=function(e){return t=>({...t,signal:e})};var Di={header:void 0};const Bi=r;Di.header=function(e,t){return n=>{const r=new Bi.Headers(n.headers);return r.set(e,t),{...n,headers:r}}};var Hi={appendHeader:void 0};const zi=r;Hi.appendHeader=function(e,t){return n=>{const r=new zi.Headers(n.headers);return r.append(e,t),{...n,headers:r}}};var $i={headers:void 0};const Ji=r;$i.headers=function(e){return t=>{const n=new Ji.Headers(t.headers);for(const[t,r]of Object.entries(e))n.set(t,r);return{...t,headers:n}}};var Wi={accept:void 0};const Gi=Hi;Wi.accept=function(e){return(0,Gi.appendHeader)("Accept",e)};var Vi={};Vi.host=void 0,Vi.host=function(e){return t=>{const n=new URL(t.url.href);return n.host=e,{...t,url:n}}};var Ki={};Ki.port=void 0,Ki.port=function(e){return t=>{const n=new URL(t.url.href);return n.port=e.toString(),{...t,url:n}}};var Qi={};Qi.pathname=void 0,Qi.pathname=function(e){return t=>{const n=new URL(t.url.href);return n.pathname=e,{...t,url:n}}};var Zi={};Zi.search=void 0,Zi.search=function(e){return t=>{const n=new URL(t.url.href);return n.search=e,{...t,url:n}}};var Xi={};Xi.searchParam=void 0,Xi.searchParam=function(e,t){return n=>{const r=new URL(n.url.href),o=new URLSearchParams(r.searchParams);return o.set(e,t.toString()),r.search=o.toString(),{...n,url:r}}};var Yi={};Yi.searchParams=void 0,Yi.searchParams=function(e){return t=>{const n=new URL(t.url.href),r=new URLSearchParams(n.searchParams);for(const[t,n]of Object.entries(e))r.set(t,n.toString());return n.search=r.toString(),{...t,url:n}}};var es={};es.appendSearchParam=void 0,es.appendSearchParam=function(e,t){return n=>{const r=new URL(n.url.href),o=new URLSearchParams(r.searchParams);return o.append(e,t.toString()),r.search=o.toString(),{...n,url:r}}};var ts={formDataField:void 0};const ns=r,rs=b;ts.formDataField=function(e,t){return n=>{const r=n.payload instanceof ns.FormData?function(e){const t=new ns.FormData;for(const[n,r]of e.entries())t.append(n,r);return t}(n.payload):new ns.FormData;return(0,rs.isArray)(t)?t.forEach((t=>r.append(e,t))):r.append(e,t),{...n,payload:r}}};var os,is,ss,as,cs,us,ls,ds,fs,hs,ps,vs,ys,ms,gs,bs,ws,As,_s,Ss,Ts,Es,ks,Rs,Cs,Os,xs,Ps,Ns,Is,js,Fs,Us,qs,Ls,Ms,Ds,Bs,Hs,zs,$s,Js={},Ws={exports:{}};"undefined"!=typeof self?self:"undefined"!=typeof window&&window,Ws.exports=(is=os="3.7.2",ss="function"==typeof atob,as="function"==typeof btoa,cs="function"==typeof Buffer,us="function"==typeof TextDecoder?new TextDecoder:void 0,ls="function"==typeof TextEncoder?new TextEncoder:void 0,ds="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",fs=Array.prototype.slice.call(ds),$s={},fs.forEach((function(e,t){return $s[e]=t})),hs=$s,ps=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,vs=String.fromCharCode.bind(String),ys="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):function(e,t){return void 0===t&&(t=function(e){return e}),new Uint8Array(Array.prototype.slice.call(e,0).map(t))},ms=function(e){return e.replace(/=/g,"").replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"}))},gs=function(e){return e.replace(/[^A-Za-z0-9\+\/]/g,"")},bs=function(e){for(var t,n,r,o,i="",s=e.length%3,a=0;a<e.length;){if((n=e.charCodeAt(a++))>255||(r=e.charCodeAt(a++))>255||(o=e.charCodeAt(a++))>255)throw new TypeError("invalid character found");i+=fs[(t=n<<16|r<<8|o)>>18&63]+fs[t>>12&63]+fs[t>>6&63]+fs[63&t]}return s?i.slice(0,s-3)+"===".substring(s):i},As=cs?function(e){return Buffer.from(e).toString("base64")}:function(e){for(var t=4096,n=[],r=0,o=e.length;r<o;r+=t)n.push(vs.apply(null,e.subarray(r,r+t)));return ws(n.join(""))},Ss=function(e){if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?vs(192|t>>>6)+vs(128|63&t):vs(224|t>>>12&15)+vs(128|t>>>6&63)+vs(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return vs(240|t>>>18&7)+vs(128|t>>>12&63)+vs(128|t>>>6&63)+vs(128|63&t)},Ts=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,ks=cs?function(e){return Buffer.from(e,"utf8").toString("base64")}:ls?function(e){return As(ls.encode(e))}:function(e){return ws(Es(e))},Cs=function(e){return Rs(e,!0)},Os=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,xs=function(e){switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return vs(55296+(t>>>10))+vs(56320+(1023&t));case 3:return vs((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return vs((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},Ns=function(e){if(e=e.replace(/\s+/g,""),!ps.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(3&e.length));for(var t,n,r,o="",i=0;i<e.length;)t=hs[e.charAt(i++)]<<18|hs[e.charAt(i++)]<<12|(n=hs[e.charAt(i++)])<<6|(r=hs[e.charAt(i++)]),o+=64===n?vs(t>>16&255):64===r?vs(t>>16&255,t>>8&255):vs(t>>16&255,t>>8&255,255&t);return o},js=cs?function(e){return ys(Buffer.from(e,"base64"))}:function(e){return ys(Is(e),(function(e){return e.charCodeAt(0)}))},Fs=function(e){return js(qs(e))},Us=cs?function(e){return Buffer.from(e,"base64").toString("utf8")}:us?function(e){return us.decode(js(e))}:function(e){return Ps(Is(e))},qs=function(e){return gs(e.replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})))},Ms=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}},Ds=function(){var e=function(e,t){return Object.defineProperty(String.prototype,e,Ms(t))};e("fromBase64",(function(){return Ls(this)})),e("toBase64",(function(e){return Rs(this,e)})),e("toBase64URI",(function(){return Rs(this,!0)})),e("toBase64URL",(function(){return Rs(this,!0)})),e("toUint8Array",(function(){return Fs(this)}))},Bs=function(){var e=function(e,t){return Object.defineProperty(Uint8Array.prototype,e,Ms(t))};e("toBase64",(function(e){return _s(this,e)})),e("toBase64URI",(function(){return _s(this,!0)})),e("toBase64URL",(function(){return _s(this,!0)}))},Hs=function(){Ds(),Bs()},zs={version:os,VERSION:is,atob:Is=ss?function(e){return atob(gs(e))}:cs?function(e){return Buffer.from(e,"base64").toString("binary")}:Ns,atobPolyfill:Ns,btoa:ws=as?function(e){return btoa(e)}:cs?function(e){return Buffer.from(e,"binary").toString("base64")}:bs,btoaPolyfill:bs,fromBase64:Ls=function(e){return Us(qs(e))},toBase64:Rs=function(e,t){return void 0===t&&(t=!1),t?ms(ks(e)):ks(e)},encode:Rs,encodeURI:Cs,encodeURL:Cs,utob:Es=function(e){return e.replace(Ts,Ss)},btou:Ps=function(e){return e.replace(Os,xs)},decode:Ls,isValid:function(e){if("string"!=typeof e)return!1;var t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},fromUint8Array:_s=function(e,t){return void 0===t&&(t=!1),t?ms(As(e)):As(e)},toUint8Array:Fs,extendString:Ds,extendUint8Array:Bs,extendBuiltins:Hs,Base64:{}},Object.keys(zs).forEach((function(e){return zs.Base64[e]=zs[e]})),zs),Js.basicAuth=void 0;const Gs=Di,Vs=Ws.exports;Js.basicAuth=function(e,t){return(0,Gs.header)("Authorization","Basic "+(0,Vs.btoa)(`${e}:${t}`))};var Ks={bearerAuth:void 0};const Qs=Di;Ks.bearerAuth=function(e){return(0,Qs.header)("Authorization",`Bearer ${e}`)};var Zs={};Zs.keepalive=void 0,Zs.keepalive=function(e=!0){return t=>({...t,keepalive:e})},function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=n&&n.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};r(et,e),r(tt,e),r(rt,e),r(it,e),r(Mi,e),r(Di,e),r(Hi,e),r($i,e),r(Wi,e),r(Vi,e),r(Ki,e),r(Qi,e),r(Zi,e),r(Xi,e),r(Yi,e),r(es,e),r(ts,e),r(Js,e),r(Ks,e),r(Zs,e)}(Ye);var Xs={},Ys={},ea={},ta={},na={CustomError:void 0};class ra extends Error{get name(){return this.constructor.name}}na.CustomError=ra;var oa={ExpectedError:void 0};const ia=na;class sa extends ia.CustomError{}oa.ExpectedError=sa;var aa={AssertionError:void 0};const ca=na;class ua extends ca.CustomError{}aa.AssertionError=ua;var la={};la.normalize=void 0,la.normalize=function(e){var t;return{name:e.name,message:e.message,stack:null!==(t=e.stack)&&void 0!==t?t:null}};var da={refute:void 0};const fa=oa;da.refute=function(e,t){if(e)throw new fa.ExpectedError(t)};var ha={assert:void 0};const pa=aa;ha.assert=function(e,t){if(!e)throw new pa.AssertionError(t)},function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=n&&n.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};r(na,e),r(oa,e),r(aa,e),r(la,e),r(da,e),r(ha,e)}(ta),ea.HTTPError=void 0;const va=ta;ea.HTTPError=class extends va.CustomError{constructor(e,t){super(t),this.code=e}};var ya={},ma={};!function(e){e.ServerError=e.ClientError=e.Redirection=e.Successful=e.Informational=void 0,function(e){e[e.Continue=100]="Continue",e[e.SwitchingProtocol=101]="SwitchingProtocol",e[e.Processing=102]="Processing",e[e.EarlyHints=103]="EarlyHints"}(e.Informational||(e.Informational={})),function(e){e[e.OK=200]="OK",e[e.Created=201]="Created",e[e.Accepted=202]="Accepted",e[e.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",e[e.NoContent=204]="NoContent",e[e.ResetContent=205]="ResetContent",e[e.PartialContent=206]="PartialContent",e[e.MultiStatus=207]="MultiStatus",e[e.AlreadyReported=208]="AlreadyReported",e[e.IMUsed=226]="IMUsed"}(e.Successful||(e.Successful={})),function(e){e[e.MultipleChoice=300]="MultipleChoice",e[e.MovedPermanently=3011]="MovedPermanently",e[e.Found=302]="Found",e[e.SeeOther=303]="SeeOther",e[e.NotModified=304]="NotModified",e[e.TemporaryRedirect=307]="TemporaryRedirect",e[e.PermanentRedirect=308]="PermanentRedirect"}(e.Redirection||(e.Redirection={})),function(e){e[e.BadRequest=400]="BadRequest",e[e.Unauthorized=401]="Unauthorized",e[e.Forbidden=403]="Forbidden",e[e.NotFound=404]="NotFound",e[e.MethodNotAllowed=405]="MethodNotAllowed",e[e.NotAcceptable=406]="NotAcceptable",e[e.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",e[e.RequestTimeout=408]="RequestTimeout",e[e.Conflict=409]="Conflict",e[e.Gone=410]="Gone",e[e.LengthRequired=411]="LengthRequired",e[e.PreconditionFailed=412]="PreconditionFailed",e[e.PayloadTooLarge=413]="PayloadTooLarge",e[e.URITooLong=414]="URITooLong",e[e.UnsupportedMediaType=415]="UnsupportedMediaType",e[e.RangeNotSatisfiable=416]="RangeNotSatisfiable",e[e.ExpectationFailed=417]="ExpectationFailed",e[e.MisdirectedRequest=421]="MisdirectedRequest",e[e.UnprocessableEntity=422]="UnprocessableEntity",e[e.Locked=423]="Locked",e[e.FailedDependency=424]="FailedDependency",e[e.UpgradeRequired=426]="UpgradeRequired",e[e.PreconditionRequired=428]="PreconditionRequired",e[e.TooManyRequests=429]="TooManyRequests",e[e.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",e[e.UnavailableForLegalReasons=451]="UnavailableForLegalReasons"}(e.ClientError||(e.ClientError={})),function(e){e[e.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout",e[e.HTTPVersionNotSupported=505]="HTTPVersionNotSupported",e[e.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",e[e.InsufficientStorage=507]="InsufficientStorage",e[e.LoopDetected=508]="LoopDetected",e[e.NotExtended=510]="NotExtended",e[e.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired"}(e.ServerError||(e.ServerError={}))}(ma),ya.EarlyHints=ya.Processing=ya.SwitchingProtocol=ya.Continue=ya.HTTPInformational=void 0;const ga=ma;class ba{constructor(e,t){this.code=e,this.message=t}}ya.HTTPInformational=ba;ya.Continue=class extends ba{constructor(){super(ga.Informational.Continue,"Continue")}};ya.SwitchingProtocol=class extends ba{constructor(){super(ga.Informational.SwitchingProtocol,"Switching Protocol")}};ya.Processing=class extends ba{constructor(){super(ga.Informational.Processing,"Processing")}};ya.EarlyHints=class extends ba{constructor(){super(ga.Informational.EarlyHints,"Early Hints")}};var wa={};wa.IMUsed=wa.AlreadyReported=wa.MultiStatus=wa.PartialContent=wa.ResetContent=wa.NoContent=wa.NonAuthoritativeInformation=wa.Accepted=wa.Created=wa.OK=wa.HTTPSuccessful=void 0;const Aa=ma;class _a{constructor(e,t){this.code=e,this.message=t}}wa.HTTPSuccessful=_a;wa.OK=class extends _a{constructor(){super(Aa.Successful.OK,"OK")}};wa.Created=class extends _a{constructor(){super(Aa.Successful.Created,"Created")}};wa.Accepted=class extends _a{constructor(){super(Aa.Successful.Accepted,"Accepted")}};wa.NonAuthoritativeInformation=class extends _a{constructor(){super(Aa.Successful.NonAuthoritativeInformation,"Non-Authoritative Information")}};wa.NoContent=class extends _a{constructor(){super(Aa.Successful.NoContent,"No Content")}};wa.ResetContent=class extends _a{constructor(){super(Aa.Successful.ResetContent,"Reset Content")}};wa.PartialContent=class extends _a{constructor(){super(Aa.Successful.PartialContent,"Partial Content")}};wa.MultiStatus=class extends _a{constructor(){super(Aa.Successful.MultiStatus,"Multi-Status")}};wa.AlreadyReported=class extends _a{constructor(){super(Aa.Successful.AlreadyReported,"Already Reported")}};wa.IMUsed=class extends _a{constructor(){super(Aa.Successful.IMUsed,"IM Used")}};var Sa={};Sa.PermanentRedirect=Sa.TemporaryRedirect=Sa.NotModified=Sa.SeeOther=Sa.Found=Sa.MovedPermanently=Sa.MultipleChoice=Sa.HTTPRedirection=void 0;const Ta=ma;class Ea{constructor(e,t){this.code=e,this.message=t}}Sa.HTTPRedirection=Ea;Sa.MultipleChoice=class extends Ea{constructor(){super(Ta.Redirection.MultipleChoice,"Multiple Choice")}};Sa.MovedPermanently=class extends Ea{constructor(){super(Ta.Redirection.MovedPermanently,"Moved Permanently")}};Sa.Found=class extends Ea{constructor(){super(Ta.Redirection.Found,"Found")}};Sa.SeeOther=class extends Ea{constructor(){super(Ta.Redirection.SeeOther,"See Other")}};Sa.NotModified=class extends Ea{constructor(){super(Ta.Redirection.NotModified,"Not Modified")}};Sa.TemporaryRedirect=class extends Ea{constructor(){super(Ta.Redirection.TemporaryRedirect,"Temporary Redirect")}};Sa.PermanentRedirect=class extends Ea{constructor(){super(Ta.Redirection.PermanentRedirect,"Permanent Redirect")}};var ka={};ka.UnavailableForLegalReasons=ka.RequestHeaderFieldsTooLarge=ka.TooManyRequests=ka.PreconditionRequired=ka.UpgradeRequired=ka.FailedDependency=ka.Locked=ka.UnprocessableEntity=ka.MisdirectedRequest=ka.ExpectationFailed=ka.RangeNotSatisfiable=ka.UnsupportedMediaType=ka.URITooLong=ka.PayloadTooLarge=ka.PreconditionFailed=ka.LengthRequired=ka.Gone=ka.Conflict=ka.RequestTimeout=ka.ProxyAuthenticationRequired=ka.NotAcceptable=ka.MethodNotAllowed=ka.NotFound=ka.Forbidden=ka.Unauthorized=ka.BadRequest=ka.HTTPClientError=void 0;const Ra=ea,Ca=ma;class Oa extends Ra.HTTPError{}ka.HTTPClientError=Oa;ka.BadRequest=class extends Oa{constructor(e){super(Ca.ClientError.BadRequest,null!=e?e:"Bad Request")}};ka.Unauthorized=class extends Oa{constructor(e){super(Ca.ClientError.Unauthorized,null!=e?e:"Unauthorized")}};ka.Forbidden=class extends Oa{constructor(e){super(Ca.ClientError.Forbidden,null!=e?e:"Forbidden")}};ka.NotFound=class extends Oa{constructor(e){super(Ca.ClientError.NotFound,null!=e?e:"Not Found")}};ka.MethodNotAllowed=class extends Oa{constructor(e){super(Ca.ClientError.MethodNotAllowed,null!=e?e:"Method Not Allowed")}};ka.NotAcceptable=class extends Oa{constructor(e){super(Ca.ClientError.NotAcceptable,null!=e?e:"Not Acceptable")}};ka.ProxyAuthenticationRequired=class extends Oa{constructor(e){super(Ca.ClientError.ProxyAuthenticationRequired,null!=e?e:"Proxy Authentication Required")}};ka.RequestTimeout=class extends Oa{constructor(e){super(Ca.ClientError.RequestTimeout,null!=e?e:"Request Timeout")}};ka.Conflict=class extends Oa{constructor(e){super(Ca.ClientError.Conflict,null!=e?e:"Conflict")}};ka.Gone=class extends Oa{constructor(e){super(Ca.ClientError.Gone,null!=e?e:"Gone")}};ka.LengthRequired=class extends Oa{constructor(e){super(Ca.ClientError.LengthRequired,null!=e?e:"Length Required")}};ka.PreconditionFailed=class extends Oa{constructor(e){super(Ca.ClientError.PreconditionFailed,null!=e?e:"Precondition Failed")}};ka.PayloadTooLarge=class extends Oa{constructor(e){super(Ca.ClientError.PayloadTooLarge,null!=e?e:"Payload Too Large")}};ka.URITooLong=class extends Oa{constructor(e){super(Ca.ClientError.URITooLong,null!=e?e:"URI Too Long")}};ka.UnsupportedMediaType=class extends Oa{constructor(e){super(Ca.ClientError.UnsupportedMediaType,null!=e?e:"Unsupported Media Type")}};ka.RangeNotSatisfiable=class extends Oa{constructor(e){super(Ca.ClientError.RangeNotSatisfiable,null!=e?e:"Range Not Satisfiable")}};ka.ExpectationFailed=class extends Oa{constructor(e){super(Ca.ClientError.ExpectationFailed,null!=e?e:"Expectation Failed")}};ka.MisdirectedRequest=class extends Oa{constructor(e){super(Ca.ClientError.MisdirectedRequest,null!=e?e:"Misdirected Request")}};ka.UnprocessableEntity=class extends Oa{constructor(e){super(Ca.ClientError.UnprocessableEntity,null!=e?e:"Unprocessable Entity")}};ka.Locked=class extends Oa{constructor(e){super(Ca.ClientError.Locked,null!=e?e:"Locked")}};ka.FailedDependency=class extends Oa{constructor(e){super(Ca.ClientError.FailedDependency,null!=e?e:"Failed Dependency")}};ka.UpgradeRequired=class extends Oa{constructor(e){super(Ca.ClientError.UpgradeRequired,null!=e?e:"Upgrade Required")}};ka.PreconditionRequired=class extends Oa{constructor(e){super(Ca.ClientError.PreconditionRequired,null!=e?e:"Precondition Required")}};ka.TooManyRequests=class extends Oa{constructor(e){super(Ca.ClientError.TooManyRequests,null!=e?e:"Too Many Requests")}};ka.RequestHeaderFieldsTooLarge=class extends Oa{constructor(e){super(Ca.ClientError.RequestHeaderFieldsTooLarge,null!=e?e:"Request Header Fields Too Large")}};ka.UnavailableForLegalReasons=class extends Oa{constructor(e){super(Ca.ClientError.UnavailableForLegalReasons,null!=e?e:"Unavailable For Legal Reasons")}};var xa={};xa.NetworkAuthenticationRequired=xa.NotExtended=xa.LoopDetected=xa.InsufficientStorage=xa.VariantAlsoNegotiates=xa.HTTPVersionNotSupported=xa.GatewayTimeout=xa.ServiceUnavailable=xa.BadGateway=xa.NotImplemented=xa.InternalServerError=xa.HTTPServerError=void 0;const Pa=ea,Na=ma;class Ia extends Pa.HTTPError{}xa.HTTPServerError=Ia;xa.InternalServerError=class extends Ia{constructor(e){super(Na.ServerError.InternalServerError,null!=e?e:"Internal Server Error")}};xa.NotImplemented=class extends Ia{constructor(e){super(Na.ServerError.NotImplemented,null!=e?e:"Not Implemented")}};xa.BadGateway=class extends Ia{constructor(e){super(Na.ServerError.BadGateway,null!=e?e:"Bad Gateway")}};xa.ServiceUnavailable=class extends Ia{constructor(e){super(Na.ServerError.ServiceUnavailable,null!=e?e:"Service Unavailable")}};xa.GatewayTimeout=class extends Ia{constructor(e){super(Na.ServerError.GatewayTimeout,null!=e?e:"Gateway Timeout")}};xa.HTTPVersionNotSupported=class extends Ia{constructor(e){super(Na.ServerError.HTTPVersionNotSupported,null!=e?e:"HTTP Version Not Supported")}};xa.VariantAlsoNegotiates=class extends Ia{constructor(e){super(Na.ServerError.VariantAlsoNegotiates,null!=e?e:"Variant Also Negotiates")}};xa.InsufficientStorage=class extends Ia{constructor(e){super(Na.ServerError.InsufficientStorage,null!=e?e:"Insufficient Storage")}};xa.LoopDetected=class extends Ia{constructor(e){super(Na.ServerError.LoopDetected,null!=e?e:"Loop Detected")}};xa.NotExtended=class extends Ia{constructor(e){super(Na.ServerError.NotExtended,null!=e?e:"Not Extended")}};xa.NetworkAuthenticationRequired=class extends Ia{constructor(e){super(Na.ServerError.NetworkAuthenticationRequired,null!=e?e:"Network Authentication Required")}};var ja={};ja.fromCode=ja.UnknownHTTPStatusError=void 0;const Fa=ya,Ua=wa,qa=Sa,La=ka,Ma=xa;class Da extends Error{constructor(e){super(`The HTTP status code ${e} is unknown`),this.name=this.constructor.name}}ja.UnknownHTTPStatusError=Da,ja.fromCode=function(e,t){switch(e){case 100:return new Fa.Continue;case 101:return new Fa.SwitchingProtocol;case 102:return new Fa.Processing;case 103:return new Fa.EarlyHints;case 200:return new Ua.OK;case 201:return new Ua.Created;case 202:return new Ua.Accepted;case 203:return new Ua.NonAuthoritativeInformation;case 204:return new Ua.NoContent;case 205:return new Ua.ResetContent;case 206:return new Ua.PartialContent;case 207:return new Ua.MultiStatus;case 208:return new Ua.AlreadyReported;case 226:return new Ua.IMUsed;case 300:return new qa.MultipleChoice;case 301:return new qa.MovedPermanently;case 302:return new qa.Found;case 303:return new qa.SeeOther;case 304:return new qa.NotModified;case 307:return new qa.TemporaryRedirect;case 308:return new qa.PermanentRedirect;case 400:return new La.BadRequest(t);case 401:return new La.Unauthorized(t);case 403:return new La.Forbidden(t);case 404:return new La.NotFound(t);case 405:return new La.MethodNotAllowed(t);case 406:return new La.NotAcceptable(t);case 407:return new La.ProxyAuthenticationRequired(t);case 408:return new La.RequestTimeout(t);case 409:return new La.Conflict(t);case 410:return new La.Gone(t);case 411:return new La.LengthRequired(t);case 412:return new La.PreconditionFailed(t);case 413:return new La.PayloadTooLarge(t);case 414:return new La.URITooLong(t);case 415:return new La.UnsupportedMediaType(t);case 416:return new La.RangeNotSatisfiable(t);case 417:return new La.ExpectationFailed(t);case 421:return new La.MisdirectedRequest(t);case 422:return new La.UnprocessableEntity(t);case 423:return new La.Locked(t);case 424:return new La.FailedDependency(t);case 426:return new La.UpgradeRequired(t);case 428:return new La.PreconditionRequired(t);case 429:return new La.TooManyRequests(t);case 431:return new La.RequestHeaderFieldsTooLarge(t);case 451:return new La.UnavailableForLegalReasons(t);case 500:return new Ma.InternalServerError(t);case 501:return new Ma.NotImplemented(t);case 502:return new Ma.BadGateway(t);case 503:return new Ma.ServiceUnavailable(t);case 504:return new Ma.GatewayTimeout(t);case 505:return new Ma.HTTPVersionNotSupported(t);case 506:return new Ma.VariantAlsoNegotiates(t);case 507:return new Ma.InsufficientStorage(t);case 508:return new Ma.LoopDetected(t);case 510:return new Ma.NotExtended(t);case 511:return new Ma.NetworkAuthenticationRequired(t);default:throw new Da(e)}},function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=n&&n.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};r(Ys,e),r(ea,e),r(ya,e),r(wa,e),r(Sa,e),r(ka,e),r(xa,e),r(ja,e)}(Xs);var Ba={},Ha={};!function(e){e.ok=e.HTTPError=void 0;const t=Xs;var n=Xs;Object.defineProperty(e,"HTTPError",{enumerable:!0,get:function(){return n.HTTPError}}),e.ok=async function(e){if(!e.ok){const n=await e.text();throw(0,t.fromCode)(e.status,n)}return e}}(Ha);var za={};za.toJSON=void 0,za.toJSON=function(e){return e.json()};var $a={};$a.toText=void 0,$a.toText=async function(e,t){if(t){const n=await e.arrayBuffer();return new TextDecoder(t).decode(n)}return await e.text()};var Ja={};Ja.toLines=void 0,Ja.toLines=async function*(e){const t=e.body.pipeThrough(new TextDecoderStream).getReader();let n="";for(;;){const{value:e,done:r}=await t.read();if(r)break;let o=e;for(;o.includes("\n");){const e=o.indexOf("\n");yield o.slice(0,e),o=o.slice(e+1)}n+=o}n&&(yield n)};var Wa={toNDJSON:void 0};const Ga=di(),Va=Ja;Wa.toNDJSON=function(e){return(0,Ga.mapAsync)((0,Va.toLines)(e),(e=>JSON.parse(e)))};var Ka={toCSV:void 0};const Qa=st.exports;Ka.toCSV=async function(e){const t=await e.text();return(0,Qa.parse)(t,{header:!0,skipEmptyLines:"greedy"}).data},function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=n&&n.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};r(Ha,e),r(za,e),r($a,e),r(Ja,e),r(Wa,e),r(Ka,e)}(Ba);var Za={},Xa={},Ya={exports:{}};const{AbortController:ec,AbortSignal:tc}="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0;Ya.exports=ec,Ya.exports.AbortSignal=tc,Ya.exports.default=ec;var nc,rc=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Xa.AbortController=void 0;const oc=rc(Ya.exports);Xa.AbortController=null!==(nc=globalThis.AbortController)&&void 0!==nc?nc:oc.default;var ic={AbortError:void 0};const sc=ji(),ac=b,cc=di();class uc extends sc.CustomError{static[Symbol.hasInstance](e){return(0,ac.isError)(e)?(0,cc.some)((0,sc.getErrorNames)(e),(e=>"AbortError"===e)):super[Symbol.hasInstance](e)}}ic.AbortError=uc;var lc,dc={};dc.AbortSignal=void 0;const fc=Ya.exports;dc.AbortSignal=null!==(lc=globalThis.AbortSignal)&&void 0!==lc?lc:fc.AbortSignal;var hc={raceAbortSignals:void 0};const pc=Xa;hc.raceAbortSignals=function(e){const t=new pc.AbortController,n=[];for(const o of e)if(o){if(o.aborted){t.abort();break}o.addEventListener("abort",r),n.push(o)}return t.signal;function r(){t.abort(),n.forEach((e=>e.removeEventListener("abort",r)))}};var vc={timeoutSignal:void 0};const yc=Xa;vc.timeoutSignal=function(e){const t=new yc.AbortController;return setTimeout((()=>t.abort()),e),t.signal};var mc={withAbortSignal:void 0};const gc=ic;mc.withAbortSignal=async function(e,t){return new Promise((async(n,r)=>{if(e.aborted)return o();e.addEventListener("abort",o);try{n(await t())}catch(e){r(e)}finally{e.removeEventListener("abort",o)}function o(){r(new gc.AbortError)}}))},function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=n&&n.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};r(Xa,e),r(ic,e),r(dc,e),r(hc,e),r(vc,e),r(mc,e)}(Za);class bc{constructor(e){this.options=e}getCommonTransformers(e){var t,n;return[Ye.url(this.options.server),Ye.bearerAuth(this.options.adminPassword),Ye.signal(Za.raceAbortSignals([e.signal,!1!==e.timeout&&(null!==(t=e.timeout&&Za.timeoutSignal(e.timeout))&&void 0!==t?t:this.options.timeout&&Za.timeoutSignal(this.options.timeout))])),Ye.keepalive(null!==(n=e.keepalive)&&void 0!==n?n:this.options.keepalive),Ye.header("Accept-Version","0.1.0")]}}class wc{constructor(e){this.options=e}getCommonTransformers(e){var t,n,r;const o="token"in e&&null!==(t=e.token)&&void 0!==t?t:this.options.token,i=this.options.basicAuth;return[Ye.url(this.options.server),i&&Ye.basicAuth(i.username,i.password),o&&Ye.searchParams({token:o}),Ye.signal(Za.raceAbortSignals([e.signal,!1!==e.timeout&&(null!==(n=e.timeout&&Za.timeoutSignal(e.timeout))&&void 0!==n?n:this.options.timeout&&Za.timeoutSignal(this.options.timeout))])),Ye.keepalive(null!==(r=e.keepalive)&&void 0!==r?r:this.options.keepalive),Ye.header("Accept-Version","0.1.0")]}append(e,n,o,i,s={}){return t(this,void 0,void 0,(function*(){const t=y.post(...this.getCommonTransformers(s),Ye.pathname(`/estore/${e}/items/${n}/events`),b.isntUndefined(i)&&Ye.header("If-Match",`${i}`),Ye.json(o));yield r.fetch(t).then(Ba.ok)}))}getEvent(e,n,o,i={}){return t(this,void 0,void 0,(function*(){const t=y.get(...this.getCommonTransformers(i),Ye.pathname(`/estore/${e}/items/${n}/events/${o}`));try{return yield r.fetch(t).then(Ba.ok).then(Ba.toJSON)}catch(e){if(e instanceof Xs.NotFound)return;throw e}}))}getEvents(e,n,o={}){return t(this,void 0,void 0,(function*(){const t=y.get(...this.getCommonTransformers(o),Ye.pathname(`/estore/${e}/items/${n}/events`));try{return yield r.fetch(t).then(Ba.ok).then(Ba.toJSON)}catch(e){if(e instanceof Xs.NotFound)return;throw e}}))}getSize(e,n,o={}){return t(this,void 0,void 0,(function*(){const t=y.get(...this.getCommonTransformers(o),Ye.pathname(`/estore/${e}/items/${n}/size`));return yield r.fetch(t).then(Ba.ok).then(Ba.toJSON)}))}has(e,n,o={}){return t(this,void 0,void 0,(function*(){const t=y.head(...this.getCommonTransformers(o),Ye.pathname(`/estore/${e}/items/${n}`));try{return yield r.fetch(t).then(Ba.ok),!0}catch(e){if(e instanceof Xs.NotFound)return!1;throw e}}))}del(e,n,o={}){return t(this,void 0,void 0,(function*(){const t=y.del(...this.getCommonTransformers(o),Ye.pathname(`/estore/${e}/items/${n}`));yield r.fetch(t).then(Ba.ok)}))}clear(e,n={}){return t(this,void 0,void 0,(function*(){const t=y.del(...this.getCommonTransformers(n),Ye.pathname(`/estore/${e}`));yield r.fetch(t).then(Ba.ok)}))}getAllItemIds(e,n={}){return t(this,void 0,void 0,(function*(){const t=y.get(...this.getCommonTransformers(n),Ye.pathname(`/estore/${e}/items`));return yield r.fetch(t).then(Ba.ok).then(Ba.toJSON)}))}getAllNamespaces(e={}){return t(this,void 0,void 0,(function*(){const t=y.get(...this.getCommonTransformers(e),Ye.pathname("/estore"));return yield r.fetch(t).then(Ba.ok).then(Ba.toJSON)}))}stats(e,n={}){return t(this,void 0,void 0,(function*(){const t=y.get(...this.getCommonTransformers(n),Ye.pathname(`/estore/${e}/stats`));return yield r.fetch(t).then(Ba.ok).then(Ba.toJSON)}))}}class Ac extends bc{getNamespaces(e={}){return t(this,void 0,void 0,(function*(){const t=y.get(...this.getCommonTransformers(e),Ye.pathname("/admin/estore-with-json-schema"));return yield r.fetch(t).then(Ba.ok).then(Ba.toJSON)}))}get(e,n={}){return t(this,void 0,void 0,(function*(){const t=y.get(...this.getCommonTransformers(n),Ye.pathname(`/admin/estore/${e}/json-schema`));return yield r.fetch(t).then(Ba.ok).then(Ba.toJSON)}))}set(e,n,o={}){return t(this,void 0,void 0,(function*(){const t=y.put(...this.getCommonTransformers(o),Ye.pathname(`/admin/estore/${e}/json-schema`),Ye.json(n));yield r.fetch(t).then(Ba.ok)}))}remove(e,n={}){return t(this,void 0,void 0,(function*(){const t=y.del(...this.getCommonTransformers(n),Ye.pathname(`/admin/estore/${e}/json-schema`));yield r.fetch(t).then(Ba.ok)}))}}class _c extends bc{getNamespaces(e={}){return t(this,void 0,void 0,(function*(){const t=y.get(...this.getCommonTransformers(e),Ye.pathname("/admin/blacklist"));return yield r.fetch(t).then(Ba.ok).then(Ba.toJSON)}))}add(e,n={}){return t(this,void 0,void 0,(function*(){const t=y.put(...this.getCommonTransformers(n),Ye.pathname(`/admin/blacklist/${e}`));yield r.fetch(t).then(Ba.ok)}))}remove(e,n={}){return t(this,void 0,void 0,(function*(){const t=y.del(...this.getCommonTransformers(n),Ye.pathname(`/admin/blacklist/${e}`));yield r.fetch(t).then(Ba.ok)}))}}class Sc extends bc{getNamespaces(e={}){return t(this,void 0,void 0,(function*(){const t=y.get(...this.getCommonTransformers(e),Ye.pathname("/admin/whitelist"));return yield r.fetch(t).then(Ba.ok).then(Ba.toJSON)}))}add(e,n={}){return t(this,void 0,void 0,(function*(){const t=y.put(...this.getCommonTransformers(n),Ye.pathname(`/admin/whitelist/${e}`));yield r.fetch(t).then(Ba.ok)}))}remove(e,n={}){return t(this,void 0,void 0,(function*(){const t=y.del(...this.getCommonTransformers(n),Ye.pathname(`/admin/whitelist/${e}`));yield r.fetch(t).then(Ba.ok)}))}}class Tc extends bc{getNamespaces(e={}){return t(this,void 0,void 0,(function*(){const t=y.get(...this.getCommonTransformers(e),Ye.pathname("/admin/estore-with-token-policies"));return yield r.fetch(t).then(Ba.ok).then(Ba.toJSON)}))}get(e,n={}){return t(this,void 0,void 0,(function*(){const t=y.get(...this.getCommonTransformers(n),Ye.pathname(`/admin/estore/${e}/token-policies`));return yield r.fetch(t).then(Ba.ok).then(Ba.toJSON)}))}setWriteTokenRequired(e,n,o={}){return t(this,void 0,void 0,(function*(){const t=y.put(...this.getCommonTransformers(o),Ye.pathname(`/admin/estore/${e}/token-policies/write-token-required`),Ye.json(n));yield r.fetch(t).then(Ba.ok)}))}removeWriteTokenRequired(e,n={}){return t(this,void 0,void 0,(function*(){const t=y.del(...this.getCommonTransformers(n),Ye.pathname(`/admin/estore/${e}/token-policies/write-token-required`));yield r.fetch(t).then(Ba.ok)}))}setReadTokenRequired(e,n,o={}){return t(this,void 0,void 0,(function*(){const t=y.put(...this.getCommonTransformers(o),Ye.pathname(`/admin/estore/${e}/token-policies/read-token-required`),Ye.json(n));yield r.fetch(t).then(Ba.ok)}))}removeReadTokenRequired(e,n={}){return t(this,void 0,void 0,(function*(){const t=y.del(...this.getCommonTransformers(n),Ye.pathname(`/admin/estore/${e}/token-policies/read-token-required`));yield r.fetch(t).then(Ba.ok)}))}setDeleteTokenRequired(e,n,o={}){return t(this,void 0,void 0,(function*(){const t=y.put(...this.getCommonTransformers(o),Ye.pathname(`/admin/estore/${e}/token-policies/delete-token-required`),Ye.json(n));yield r.fetch(t).then(Ba.ok)}))}removeDeleteTokenRequired(e,n={}){return t(this,void 0,void 0,(function*(){const t=y.del(...this.getCommonTransformers(n),Ye.pathname(`/admin/estore/${e}/token-policies/delete-token-required`));yield r.fetch(t).then(Ba.ok)}))}}class Ec extends bc{getNamespaces(e={}){return t(this,void 0,void 0,(function*(){const t=y.get(...this.getCommonTransformers(e),Ye.pathname("/admin/estore-with-tokens"));return yield r.fetch(t).then(Ba.ok).then(Ba.toJSON)}))}getTokens(e,n={}){return t(this,void 0,void 0,(function*(){const t=y.get(...this.getCommonTransformers(n),Ye.pathname(`/admin/estore/${e}/tokens`));return yield r.fetch(t).then(Ba.ok).then(Ba.toJSON)}))}addWriteToken(e,n,o={}){return t(this,void 0,void 0,(function*(){const t=y.put(...this.getCommonTransformers(o),Ye.pathname(`/admin/estore/${e}/tokens/${n}/write`));yield r.fetch(t).then(Ba.ok)}))}removeWriteToken(e,n,o={}){return t(this,void 0,void 0,(function*(){const t=y.del(...this.getCommonTransformers(o),Ye.pathname(`/admin/estore/${e}/tokens/${n}/write`));yield r.fetch(t).then(Ba.ok)}))}addReadToken(e,n,o={}){return t(this,void 0,void 0,(function*(){const t=y.put(...this.getCommonTransformers(o),Ye.pathname(`/admin/estore/${e}/tokens/${n}/read`));yield r.fetch(t).then(Ba.ok)}))}removeReadToken(e,n,o={}){return t(this,void 0,void 0,(function*(){const t=y.del(...this.getCommonTransformers(o),Ye.pathname(`/admin/estore/${e}/tokens/${n}/read`));yield r.fetch(t).then(Ba.ok)}))}addDeleteToken(e,n,o={}){return t(this,void 0,void 0,(function*(){const t=y.put(...this.getCommonTransformers(o),Ye.pathname(`/admin/estore/${e}/tokens/${n}/delete`));yield r.fetch(t).then(Ba.ok)}))}removeDeleteToken(e,n,o={}){return t(this,void 0,void 0,(function*(){const t=y.del(...this.getCommonTransformers(o),Ye.pathname(`/admin/estore/${e}/tokens/${n}/delete`));yield r.fetch(t).then(Ba.ok)}))}}class kc{constructor(e){this.options=e,this.JsonSchema=new Ac(this.options),this.Blacklist=new _c(this.options),this.Whitelist=new Sc(this.options),this.TokenPolicy=new Tc(this.options),this.Token=new Ec(this.options)}}var Rc=r.AbortError,Cc=Xs.HTTPClientError,Oc=Ba.HTTPError;export{Rc as AbortError,wc as EStoreClient,kc as EStoreManager,Cc as HTTPClientError,Oc as HTTPError};
|
|
15
|
+
***************************************************************************** */function t(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},r={},o={fetch:void 0};o.fetch=globalThis.fetch.bind(globalThis);var i={Headers:void 0};i.Headers=globalThis.Headers;var s={Request:void 0};s.Request=globalThis.Request;var a={Response:void 0};a.Response=globalThis.Response;var c={FormData:void 0};c.FormData=globalThis.FormData;var u={AbortController:void 0};u.AbortController=globalThis.AbortController;var l={AbortError:void 0};l.AbortError=globalThis.DOMException;var d={Blob:void 0};d.Blob=globalThis.Blob;var f,h,p,v={};v.EventSource=void 0,v.EventSource=globalThis.EventSource,f=r,h=n&&n.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),(p=n&&n.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||h(t,e,n)})(o,f),p(i,f),p(s,f),p(a,f),p(c,f),p(u,f),p(l,f),p(d,f),p(v,f);var m={},y={},g={},b={},w={};function A(e){return Array.isArray(e)}w.isntEmptyArray=w.isEmptyArray=w.isntArray=w.isArray=void 0,w.isArray=A,w.isntArray=function(e){return!A(e)},w.isEmptyArray=function(e){return 0===e.length},w.isntEmptyArray=function(e){return 0!==e.length};var T={},_={};function S(e){return null===e}_.isntNull=_.isNull=void 0,_.isNull=S,_.isntNull=function(e){return!S(e)};var E={};function k(e){return void 0===e}E.isntUndefined=E.isUndefined=void 0,E.isUndefined=k,E.isntUndefined=function(e){return!k(e)};var R={};function C(e){return"function"==typeof e}R.isntFunction=R.isFunction=void 0,R.isFunction=C,R.isntFunction=function(e){return!C(e)},T.isntAsyncIterable=T.isAsyncIterable=void 0;const x=_,O=E,P=R;function I(e){return(0,x.isntNull)(e)&&(0,O.isntUndefined)(e)&&(0,P.isFunction)(e[Symbol.asyncIterator])}T.isAsyncIterable=I,T.isntAsyncIterable=function(e){return!I(e)};var N={};function j(e){return"bigint"==typeof e}N.isntBigInt=N.isBigInt=void 0,N.isBigInt=j,N.isntBigInt=function(e){return!j(e)};var q={};function F(e){return"boolean"==typeof e}q.isntBoolean=q.isBoolean=void 0,q.isBoolean=F,q.isntBoolean=function(e){return!F(e)};var U={},L={};function M(e){return"string"==typeof e}L.isntString=L.isString=void 0,L.isString=M,L.isntString=function(e){return!M(e)},U.isntChar=U.isChar=void 0;const D=L;function B(e){return(0,D.isString)(e)&&1===e.length}U.isChar=B,U.isntChar=function(e){return!B(e)};var H={};function z(e){return e instanceof Date}H.isntDate=H.isDate=void 0,H.isDate=z,H.isntDate=function(e){return!z(e)};var $={};$.inEnum=void 0,$.inEnum=function(e,t){return Object.values(t).includes(e)};var J={};function W(e){return e instanceof Error}J.isntError=J.isError=void 0,J.isError=W,J.isntError=function(e){return!W(e)};var G={};function V(e){return!e}G.isntFalsy=G.isFalsy=void 0,G.isFalsy=V,G.isntFalsy=function(e){return!V(e)};var K={};K.isntIterable=K.isIterable=void 0;const Q=_,Z=E,X=R;function Y(e){return(0,Q.isntNull)(e)&&(0,Z.isntUndefined)(e)&&(0,X.isFunction)(e[Symbol.iterator])}K.isIterable=Y,K.isntIterable=function(e){return!Y(e)};var ee={},te={};function ne(e){return"number"==typeof e}function re(e){return Number.isNaN(e)}te.isntNaN=te.isNaN=te.isNegativeInfinity=te.isPositiveInfinity=te.isFinite=te.isntNumber=te.isNumber=void 0,te.isNumber=ne,te.isntNumber=function(e){return!ne(e)},te.isFinite=function(e){return Number.isFinite(e)},te.isPositiveInfinity=function(e){return e===1/0},te.isNegativeInfinity=function(e){return e===-1/0},te.isNaN=re,te.isntNaN=function(e){return!re(e)};var oe={},ie="object"==typeof n&&n&&n.Object===Object&&n,se="object"==typeof self&&self&&self.Object===Object&&self,ae=(ie||se||Function("return this")()).Symbol,ce=ae,ue=Object.prototype,le=ue.hasOwnProperty,de=ue.toString,fe=ce?ce.toStringTag:void 0;var he=function(e){var t=le.call(e,fe),n=e[fe];try{e[fe]=void 0;var r=!0}catch(e){}var o=de.call(e);return r&&(t?e[fe]=n:delete e[fe]),o},pe=Object.prototype.toString;var ve=he,me=function(e){return pe.call(e)},ye=ae?ae.toStringTag:void 0;var ge=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":ye&&ye in Object(e)?ve(e):me(e)};var be=function(e,t){return function(n){return e(t(n))}}(Object.getPrototypeOf,Object);var we=ge,Ae=be,Te=function(e){return null!=e&&"object"==typeof e},_e=Function.prototype,Se=Object.prototype,Ee=_e.toString,ke=Se.hasOwnProperty,Re=Ee.call(Object);var Ce=function(e){if(!Te(e)||"[object Object]"!=we(e))return!1;var t=Ae(e);if(null===t)return!0;var n=ke.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ee.call(n)==Re},xe=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};oe.isntEmptyObject=oe.isEmptyObject=oe.isntPlainObject=oe.isPlainObject=oe.isntObject=oe.isObject=void 0;const Oe=xe(Ce);function Pe(e){return null!==e&&"object"==typeof e}function Ie(e){return(0,Oe.default)(e)}oe.isObject=Pe,oe.isntObject=function(e){return!Pe(e)},oe.isPlainObject=Ie,oe.isntPlainObject=function(e){return!Ie(e)},oe.isEmptyObject=function(e){return 0===Object.keys(e).length},oe.isntEmptyObject=function(e){return 0!==Object.keys(e).length},ee.isntJsonable=ee.isJsonable=ee.isntJson=ee.isJson=void 0;const Ne=_,je=q,qe=L,Fe=te,Ue=w,Le=oe;function Me(e){return(0,Ne.isNull)(e)||(0,je.isBoolean)(e)||(0,qe.isString)(e)||(0,Fe.isNumber)(e)||(0,Ue.isArray)(e)&&e.every(Me)||(0,Le.isPlainObject)(e)&&Object.values(e).every(Me)}ee.isJson=Me,ee.isntJson=function(e){return!Me(e)},ee.isJsonable=function(e){try{return JSON.stringify(e),!0}catch(e){return!1}},ee.isntJsonable=function e(t){return!e()};var De={};De.isPromiseLike=De.isntPromiseLike=De.isntPromise=De.isPromise=void 0;const Be=oe,He=R;function ze(e){return e instanceof Promise}function $e(e){return(0,Be.isObject)(e)&&(0,He.isFunction)(e.then)}De.isPromise=ze,De.isntPromise=function(e){return!ze(e)},De.isntPromiseLike=function(e){return!$e(e)},De.isPromiseLike=$e;var Je={};Je.isAbsoluteURL=void 0,Je.isAbsoluteURL=function(e){try{return new URL(e),!0}catch(e){return!1}};var We={};function Ge(e){return e instanceof RegExp}We.isntRegExp=We.isRegExp=void 0,We.isRegExp=Ge,We.isntRegExp=function(e){return!Ge(e)};var Ve={};function Ke(e){return"symbol"==typeof e}Ve.isntSymbol=Ve.isSymbol=void 0,Ve.isSymbol=Ke,Ve.isntSymbol=function(e){return!Ke(e)},function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=n&&n.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};r(w,e),r(T,e),r(N,e),r(q,e),r(U,e),r(H,e),r($,e),r(J,e),r(G,e),r(R,e),r(K,e),r(ee,e),r(_,e),r(te,e),r(oe,e),r(De,e),r(L,e),r(E,e),r(Je,e),r(We,e),r(Ve,e)}(b),g.del=g.patch=g.put=g.post=g.head=g.get=void 0;const Qe=r,Ze=b;function Xe(e,...t){const n=t.reduce(((e,t)=>(0,Ze.isFunction)(t)?t(e):e),{url:new URL("http://localhost"),headers:new Qe.Headers}),r=new Qe.Headers(n.headers);return new Qe.Request(n.url.href,{method:e,headers:r,signal:n.signal,body:n.payload,keepalive:n.keepalive})}g.get=function(...e){return Xe("GET",...e)},g.head=function(...e){return Xe("HEAD",...e)},g.post=function(...e){return Xe("POST",...e)},g.put=function(...e){return Xe("PUT",...e)},g.patch=function(...e){return Xe("PATCH",...e)},g.del=function(...e){return Xe("DELETE",...e)},function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=n&&n.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};r(y,e),r(g,e)}(m);var Ye={},et={};et.url=void 0,et.url=function(...e){return t=>({...t,url:new URL(e.reduce(((e,t)=>new URL(t,e).href)))})};var tt={text:void 0};const nt=r;tt.text=function(e){return t=>{const n=new nt.Headers(t.headers);return n.set("Content-Type","application/x-www-form-urlencoded"),{...t,headers:n,payload:e}}};var rt={json:void 0};const ot=r;rt.json=function(e){return t=>{const n=new ot.Headers(t.headers);return n.set("Content-Type","application/json"),{...t,headers:n,payload:JSON.stringify(e)}}};var it={},st={exports:{}};st.exports=function t(){var n="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n?n:{};function r(){var e=n.URL||n.webkitURL||null,r=t.toString();return c.BLOB_URL||(c.BLOB_URL=e.createObjectURL(new Blob(["(",r,")();"],{type:"text/javascript"})))}var o=!n.document&&!!n.postMessage,i=o&&/blob:/i.test((n.location||{}).protocol),s={},a=0,c={};if(c.parse=l,c.unparse=d,c.RECORD_SEP=String.fromCharCode(30),c.UNIT_SEP=String.fromCharCode(31),c.BYTE_ORDER_MARK="\ufeff",c.BAD_DELIMITERS=["\r","\n",'"',c.BYTE_ORDER_MARK],c.WORKERS_SUPPORTED=!o&&!!n.Worker,c.NODE_STREAM_INPUT=1,c.LocalChunkSize=10485760,c.RemoteChunkSize=5242880,c.DefaultDelimiter=",",c.Parser=w,c.ParserHandle=g,c.NetworkStreamer=h,c.FileStreamer=p,c.StringStreamer=v,c.ReadableStreamStreamer=m,"undefined"==typeof PAPA_BROWSER_CONTEXT&&(c.DuplexStreamStreamer=y),n.jQuery){var u=n.jQuery;u.fn.parse=function(e){var t=e.config||{},r=[];return this.each((function(e){if("INPUT"!==u(this).prop("tagName").toUpperCase()||"file"!==u(this).attr("type").toLowerCase()||!n.FileReader||!this.files||0===this.files.length)return!0;for(var o=0;o<this.files.length;o++)r.push({file:this.files[o],inputElem:this,instanceConfig:u.extend({},t)})})),o(),this;function o(){if(0!==r.length){var t=r[0];if(C(e.before)){var n=e.before(t.file,t.inputElem);if("object"==typeof n){if("abort"===n.action)return void i("AbortError",t.file,t.inputElem,n.reason);if("skip"===n.action)return void s();"object"==typeof n.config&&(t.instanceConfig=u.extend(t.instanceConfig,n.config))}else if("skip"===n)return void s()}var o=t.instanceConfig.complete;t.instanceConfig.complete=function(e){C(o)&&o(e,t.file,t.inputElem),s()},c.parse(t.file,t.instanceConfig)}else C(e.complete)&&e.complete()}function i(t,n,r,o){C(e.error)&&e.error({name:t},n,r,o)}function s(){r.splice(0,1),o()}}}function l(e,t){var r=(t=t||{}).dynamicTyping||!1;if(C(r)&&(t.dynamicTypingFunction=r,r={}),t.dynamicTyping=r,t.transform=!!C(t.transform)&&t.transform,t.worker&&c.WORKERS_SUPPORTED){var o=A();return o.userStep=t.step,o.userChunk=t.chunk,o.userComplete=t.complete,o.userError=t.error,t.step=C(t.step),t.chunk=C(t.chunk),t.complete=C(t.complete),t.error=C(t.error),delete t.worker,void o.postMessage({input:e,config:t,workerId:o.id})}var i=null;return e===c.NODE_STREAM_INPUT&&"undefined"==typeof PAPA_BROWSER_CONTEXT?(i=new y(t)).getStream():("string"==typeof e?i=t.download?new h(t):new v(t):!0===e.readable&&C(e.read)&&C(e.on)?i=new m(t):(n.File&&e instanceof File||e instanceof Object)&&(i=new p(t)),i.stream(e))}function d(e,t){var n=!1,r=!0,o=",",i="\r\n",s='"',a=s+s,u=!1,l=null,d=!1;h();var f=new RegExp(b(s),"g");if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return p(null,e,u);if("object"==typeof e[0])return p(l||Object.keys(e[0]),e,u)}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||l),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])),p(e.fields||[],e.data||[],u);throw new Error("Unable to serialize unrecognized input");function h(){if("object"==typeof t){if("string"!=typeof t.delimiter||c.BAD_DELIMITERS.filter((function(e){return-1!==t.delimiter.indexOf(e)})).length||(o=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||(u=t.skipEmptyLines),"string"==typeof t.newline&&(i=t.newline),"string"==typeof t.quoteChar&&(s=t.quoteChar),"boolean"==typeof t.header&&(r=t.header),Array.isArray(t.columns)){if(0===t.columns.length)throw new Error("Option columns is empty");l=t.columns}void 0!==t.escapeChar&&(a=t.escapeChar+s),("boolean"==typeof t.escapeFormulae||t.escapeFormulae instanceof RegExp)&&(d=t.escapeFormulae instanceof RegExp?t.escapeFormulae:/^[=+\-@\t\r].*$/)}}function p(e,t,n){var s="";"string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t));var a=Array.isArray(e)&&e.length>0,c=!Array.isArray(t[0]);if(a&&r){for(var u=0;u<e.length;u++)u>0&&(s+=o),s+=v(e[u],u);t.length>0&&(s+=i)}for(var l=0;l<t.length;l++){var d=a?e.length:t[l].length,f=!1,h=a?0===Object.keys(t[l]).length:0===t[l].length;if(n&&!a&&(f="greedy"===n?""===t[l].join("").trim():1===t[l].length&&0===t[l][0].length),"greedy"===n&&a){for(var p=[],m=0;m<d;m++){var y=c?e[m]:m;p.push(t[l][y])}f=""===p.join("").trim()}if(!f){for(var g=0;g<d;g++){g>0&&!h&&(s+=o);var b=a&&c?e[g]:g;s+=v(t[l][b],g)}l<t.length-1&&(!n||d>0&&!h)&&(s+=i)}}return s}function v(e,t){if(null==e)return"";if(e.constructor===Date)return JSON.stringify(e).slice(1,25);var r=!1;d&&"string"==typeof e&&d.test(e)&&(e="'"+e,r=!0);var i=e.toString().replace(f,a);return(r=r||!0===n||"function"==typeof n&&n(e,t)||Array.isArray(n)&&n[t]||m(i,c.BAD_DELIMITERS)||i.indexOf(o)>-1||" "===i.charAt(0)||" "===i.charAt(i.length-1))?s+i+s:i}function m(e,t){for(var n=0;n<t.length;n++)if(e.indexOf(t[n])>-1)return!0;return!1}}function f(e){function t(e){var t=k(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null),this._handle=new g(t),this._handle.streamer=this,this._config=t}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:{}},t.call(this,e),this.parseChunk=function(e,t){if(this.isFirstChunk&&C(this._config.beforeFirstChunk)){var r=this._config.beforeFirstChunk(e);void 0!==r&&(e=r)}this.isFirstChunk=!1,this._halted=!1;var o=this._partialLine+e;this._partialLine="";var s=this._handle.parse(o,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var a=s.meta.cursor;this._finished||(this._partialLine=o.substring(a-this._baseIndex),this._baseIndex=a),s&&s.data&&(this._rowCount+=s.data.length);var u=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(i)n.postMessage({results:s,workerId:c.WORKER_ID,finished:u});else if(C(this._config.chunk)&&!t){if(this._config.chunk(s,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);s=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(s.data),this._completeResults.errors=this._completeResults.errors.concat(s.errors),this._completeResults.meta=s.meta),this._completed||!u||!C(this._config.complete)||s&&s.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),u||s&&s.meta.paused||this._nextChunk(),s}this._halted=!0},this._sendError=function(e){C(this._config.error)?this._config.error(e):i&&this._config.error&&n.postMessage({workerId:c.WORKER_ID,error:e,finished:!1})}}function h(e){var t;function n(e){var t=e.getResponseHeader("Content-Range");return null===t?-1:parseInt(t.substring(t.lastIndexOf("/")+1))}(e=e||{}).chunkSize||(e.chunkSize=c.RemoteChunkSize),f.call(this,e),this._nextChunk=o?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(t=new XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCredentials),o||(t.onload=R(this._chunkLoaded,this),t.onerror=R(this._chunkError,this)),t.open(this._config.downloadRequestBody?"POST":"GET",this._input,!o),this._config.downloadRequestHeaders){var e=this._config.downloadRequestHeaders;for(var n in e)t.setRequestHeader(n,e[n])}if(this._config.chunkSize){var r=this._start+this._config.chunkSize-1;t.setRequestHeader("Range","bytes="+this._start+"-"+r)}try{t.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}o&&0===t.status&&this._chunkError()}},this._chunkLoaded=function(){4===t.readyState&&(t.status<200||t.status>=400?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:t.responseText.length,this._finished=!this._config.chunkSize||this._start>=n(t),this.parseChunk(t.responseText)))},this._chunkError=function(e){var n=t.statusText||e;this._sendError(new Error(n))}}function p(e){var t,n;(e=e||{}).chunkSize||(e.chunkSize=c.LocalChunkSize),f.call(this,e);var r="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,n=e.slice||e.webkitSlice||e.mozSlice,r?((t=new FileReader).onload=R(this._chunkLoaded,this),t.onerror=R(this._chunkError,this)):t=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 o=Math.min(this._start+this._config.chunkSize,this._input.size);e=n.call(e,this._start,o)}var i=t.readAsText(e,this._config.encoding);r||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(t.error)}}function v(e){var t;e=e||{},f.call(this,e),this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var e,n=this._config.chunkSize;return n?(e=t.substring(0,n),t=t.substring(n)):(e=t,t=""),this._finished=!t,this.parseChunk(e)}}}function m(e){e=e||{},f.call(this,e);var t=[],n=!0,r=!1;this.pause=function(){f.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){f.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()):n=!0},this._streamData=R((function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),n&&(n=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}}),this),this._streamError=R((function(e){this._streamCleanUp(),this._sendError(e)}),this),this._streamEnd=R((function(){this._streamCleanUp(),r=!0,this._streamData("")}),this),this._streamCleanUp=R((function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)}),this)}function y(t){var n=e.Duplex,r=k(t),o=!0,i=!1,s=[],a=null;this._onCsvData=function(e){var t=e.data;a.push(t)||this._handle.paused()||this._handle.pause()},this._onCsvComplete=function(){a.push(null)},r.step=R(this._onCsvData,this),r.complete=R(this._onCsvComplete,this),f.call(this,r),this._nextChunk=function(){i&&1===s.length&&(this._finished=!0),s.length?s.shift()():o=!0},this._addToParseQueue=function(e,t){s.push(R((function(){if(this.parseChunk("string"==typeof e?e:e.toString(r.encoding)),C(t))return t()}),this)),o&&(o=!1,this._nextChunk())},this._onRead=function(){this._handle.paused()&&this._handle.resume()},this._onWrite=function(e,t,n){this._addToParseQueue(e,n)},this._onWriteComplete=function(){i=!0,this._addToParseQueue("")},this.getStream=function(){return a},(a=new n({readableObjectMode:!0,decodeStrings:!1,read:R(this._onRead,this),write:R(this._onWrite,this)})).once("finish",R(this._onWriteComplete,this))}function g(e){var t,n,r,o=Math.pow(2,53),i=-o,s=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,a=/^(\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))$/,u=this,l=0,d=0,f=!1,h=!1,p=[],v={data:[],errors:[],meta:{}};if(C(e.step)){var m=e.step;e.step=function(t){if(v=t,T())A();else{if(A(),0===v.data.length)return;l+=t.data.length,e.preview&&l>e.preview?n.abort():(v.data=v.data[0],m(v,u))}}}function y(t){return"greedy"===e.skipEmptyLines?""===t.join("").trim():1===t.length&&0===t[0].length}function g(e){if(s.test(e)){var t=parseFloat(e);if(t>i&&t<o)return!0}return!1}function A(){return v&&r&&(P("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+c.DefaultDelimiter+"'"),r=!1),e.skipEmptyLines&&(v.data=v.data.filter((function(e){return!y(e)}))),T()&&_(),R()}function T(){return e.header&&0===p.length}function _(){if(v)if(Array.isArray(v.data[0])){for(var t=0;T()&&t<v.data.length;t++)v.data[t].forEach(n);v.data.splice(0,1)}else v.data.forEach(n);function n(t,n){C(e.transformHeader)&&(t=e.transformHeader(t,n)),p.push(t)}}function S(t){return e.dynamicTypingFunction&&void 0===e.dynamicTyping[t]&&(e.dynamicTyping[t]=e.dynamicTypingFunction(t)),!0===(e.dynamicTyping[t]||e.dynamicTyping)}function E(e,t){return S(e)?"true"===t||"TRUE"===t||"false"!==t&&"FALSE"!==t&&(g(t)?parseFloat(t):a.test(t)?new Date(t):""===t?null:t):t}function R(){if(!v||!e.header&&!e.dynamicTyping&&!e.transform)return v;function t(t,n){var r,o=e.header?{}:[];for(r=0;r<t.length;r++){var i=r,s=t[r];e.header&&(i=r>=p.length?"__parsed_extra":p[r]),e.transform&&(s=e.transform(s,i)),s=E(i,s),"__parsed_extra"===i?(o[i]=o[i]||[],o[i].push(s)):o[i]=s}return e.header&&(r>p.length?P("FieldMismatch","TooManyFields","Too many fields: expected "+p.length+" fields but parsed "+r,d+n):r<p.length&&P("FieldMismatch","TooFewFields","Too few fields: expected "+p.length+" fields but parsed "+r,d+n)),o}var n=1;return!v.data.length||Array.isArray(v.data[0])?(v.data=v.data.map(t),n=v.data.length):v.data=t(v.data,0),e.header&&v.meta&&(v.meta.fields=p),d+=n,v}function x(t,n,r,o,i){var s,a,u,l;i=i||[",","\t","|",";",c.RECORD_SEP,c.UNIT_SEP];for(var d=0;d<i.length;d++){var f=i[d],h=0,p=0,v=0;u=void 0;for(var m=new w({comments:o,delimiter:f,newline:n,preview:10}).parse(t),g=0;g<m.data.length;g++)if(r&&y(m.data[g]))v++;else{var b=m.data[g].length;p+=b,void 0!==u?b>0&&(h+=Math.abs(b-u),u=b):u=b}m.data.length>0&&(p/=m.data.length-v),(void 0===a||h<=a)&&(void 0===l||p>l)&&p>1.99&&(a=h,s=f,l=p)}return e.delimiter=s,{successful:!!s,bestDelimiter:s}}function O(e,t){e=e.substring(0,1048576);var n=new RegExp(b(t)+"([^]*?)"+b(t),"gm"),r=(e=e.replace(n,"")).split("\r"),o=e.split("\n"),i=o.length>1&&o[0].length<r[0].length;if(1===r.length||i)return"\n";for(var s=0,a=0;a<r.length;a++)"\n"===r[a][0]&&s++;return s>=r.length/2?"\r\n":"\r"}function P(e,t,n,r){var o={type:e,code:t,message:n};void 0!==r&&(o.row=r),v.errors.push(o)}this.parse=function(o,i,s){var a=e.quoteChar||'"';if(e.newline||(e.newline=O(o,a)),r=!1,e.delimiter)C(e.delimiter)&&(e.delimiter=e.delimiter(o),v.meta.delimiter=e.delimiter);else{var u=x(o,e.newline,e.skipEmptyLines,e.comments,e.delimitersToGuess);u.successful?e.delimiter=u.bestDelimiter:(r=!0,e.delimiter=c.DefaultDelimiter),v.meta.delimiter=e.delimiter}var l=k(e);return e.preview&&e.header&&l.preview++,t=o,n=new w(l),v=n.parse(t,i,s),A(),f?{meta:{paused:!0}}:v||{meta:{paused:!1}}},this.paused=function(){return f},this.pause=function(){f=!0,n.abort(),t=C(e.chunk)?"":t.substring(n.getCharIndex())},this.resume=function(){u.streamer._halted?(f=!1,u.streamer.parseChunk(t,!0)):setTimeout(u.resume,3)},this.aborted=function(){return h},this.abort=function(){h=!0,n.abort(),v.meta.aborted=!0,C(e.complete)&&e.complete(v),t=""}}function b(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function w(e){var t,n=(e=e||{}).delimiter,r=e.newline,o=e.comments,i=e.step,s=e.preview,a=e.fastMode,u=t=void 0===e.quoteChar||null===e.quoteChar?'"':e.quoteChar;if(void 0!==e.escapeChar&&(u=e.escapeChar),("string"!=typeof n||c.BAD_DELIMITERS.indexOf(n)>-1)&&(n=","),o===n)throw new Error("Comment character same as delimiter");!0===o?o="#":("string"!=typeof o||c.BAD_DELIMITERS.indexOf(o)>-1)&&(o=!1),"\n"!==r&&"\r"!==r&&"\r\n"!==r&&(r="\n");var l=0,d=!1;this.parse=function(e,c,f){if("string"!=typeof e)throw new Error("Input must be a string");var h=e.length,p=n.length,v=r.length,m=o.length,y=C(i);l=0;var g=[],w=[],A=[],T=0;if(!e)return F();if(a||!1!==a&&-1===e.indexOf(t)){for(var _=e.split(r),S=0;S<_.length;S++){if(A=_[S],l+=A.length,S!==_.length-1)l+=r.length;else if(f)return F();if(!o||A.substring(0,m)!==o){if(y){if(g=[],I(A.split(n)),U(),d)return F()}else I(A.split(n));if(s&&S>=s)return g=g.slice(0,s),F(!0)}}return F()}for(var E=e.indexOf(n,l),k=e.indexOf(r,l),R=new RegExp(b(u)+b(t),"g"),x=e.indexOf(t,l);;)if(e[l]!==t)if(o&&0===A.length&&e.substring(l,l+m)===o){if(-1===k)return F();l=k+v,k=e.indexOf(r,l),E=e.indexOf(n,l)}else if(-1!==E&&(E<k||-1===k))A.push(e.substring(l,E)),l=E+p,E=e.indexOf(n,l);else{if(-1===k)break;if(A.push(e.substring(l,k)),q(k+v),y&&(U(),d))return F();if(s&&g.length>=s)return F(!0)}else for(x=l,l++;;){if(-1===(x=e.indexOf(t,x+1)))return f||w.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:g.length,index:l}),j();if(x===h-1)return j(e.substring(l,x).replace(R,t));if(t!==u||e[x+1]!==u){if(t===u||0===x||e[x-1]!==u){-1!==E&&E<x+1&&(E=e.indexOf(n,x+1)),-1!==k&&k<x+1&&(k=e.indexOf(r,x+1));var O=N(-1===k?E:Math.min(E,k));if(e.substr(x+1+O,p)===n){A.push(e.substring(l,x).replace(R,t)),l=x+1+O+p,e[x+1+O+p]!==t&&(x=e.indexOf(t,l)),E=e.indexOf(n,l),k=e.indexOf(r,l);break}var P=N(k);if(e.substring(x+1+P,x+1+P+v)===r){if(A.push(e.substring(l,x).replace(R,t)),q(x+1+P+v),E=e.indexOf(n,l),x=e.indexOf(t,l),y&&(U(),d))return F();if(s&&g.length>=s)return F(!0);break}w.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:g.length,index:l}),x++}}else x++}return j();function I(e){g.push(e),T=l}function N(t){var n=0;if(-1!==t){var r=e.substring(x+1,t);r&&""===r.trim()&&(n=r.length)}return n}function j(t){return f||(void 0===t&&(t=e.substring(l)),A.push(t),l=h,I(A),y&&U()),F()}function q(t){l=t,I(A),A=[],k=e.indexOf(r,l)}function F(e){return{data:g,errors:w,meta:{delimiter:n,linebreak:r,aborted:d,truncated:!!e,cursor:T+(c||0)}}}function U(){i(F()),g=[],w=[]}},this.abort=function(){d=!0},this.getCharIndex=function(){return l}}function A(){if(!c.WORKERS_SUPPORTED)return!1;var e=r(),t=new n.Worker(e);return t.onmessage=T,t.id=a++,s[t.id]=t,t}function T(e){var t=e.data,n=s[t.workerId],r=!1;if(t.error)n.userError(t.error,t.file);else if(t.results&&t.results.data){var o={abort:function(){r=!0,_(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:S,resume:S};if(C(n.userStep)){for(var i=0;i<t.results.data.length&&(n.userStep({data:t.results.data[i],errors:t.results.errors,meta:t.results.meta},o),!r);i++);delete t.results}else C(n.userChunk)&&(n.userChunk(t.results,o,t.file),delete t.results)}t.finished&&!r&&_(t.workerId,t.results)}function _(e,t){var n=s[e];C(n.userComplete)&&n.userComplete(t),n.terminate(),delete s[e]}function S(){throw new Error("Not implemented.")}function E(e){var t=e.data;if(void 0===c.WORKER_ID&&t&&(c.WORKER_ID=t.workerId),"string"==typeof t.input)n.postMessage({workerId:c.WORKER_ID,results:c.parse(t.input,t.config),finished:!0});else if(n.File&&t.input instanceof File||t.input instanceof Object){var r=c.parse(t.input,t.config);r&&n.postMessage({workerId:c.WORKER_ID,results:r,finished:!0})}}function k(e){if("object"!=typeof e||null===e)return e;var t=Array.isArray(e)?[]:{};for(var n in e)t[n]=k(e[n]);return t}function R(e,t){return function(){e.apply(t,arguments)}}function C(e){return"function"==typeof e}return i&&(n.onmessage=E),h.prototype=Object.create(f.prototype),h.prototype.constructor=h,p.prototype=Object.create(f.prototype),p.prototype.constructor=p,v.prototype=Object.create(v.prototype),v.prototype.constructor=v,m.prototype=Object.create(f.prototype),m.prototype.constructor=m,"undefined"==typeof PAPA_BROWSER_CONTEXT&&(y.prototype=Object.create(f.prototype),y.prototype.constructor=y),c}();var at={},ct={},ut={},lt={},dt={},ft={},ht={};ht.go=void 0,ht.go=function(e){return e()};var pt={};pt.goMicrotask=void 0,pt.goMicrotask=function(e){return new Promise(((t,n)=>{queueMicrotask((async()=>{try{t(await e())}catch(e){n(e)}}))}))};var vt={},mt={},yt={},gt={},bt={};bt.random=void 0,bt.random=function(e,t){return Math.random()*(t-e)+e};var wt={};wt.randomInt=void 0,wt.randomInt=function(e,t){return e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e))+e};var At={};At.randomIntInclusive=void 0,At.randomIntInclusive=function(e,t){return e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e+1))+e},function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=n&&n.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};r(bt,e),r(wt,e),r(At,e)}(gt),yt.calculateExponentialBackoffTimeout=void 0;const Tt=gt;yt.calculateExponentialBackoffTimeout=function({baseTimeout:e,retries:t,maxTimeout:n=1/0,factor:r=2,jitter:o=!0}){const i=Math.min(r**t*e,n);return o?(0,Tt.randomIntInclusive)(0,i):i};var _t={};_t.setTimeout=void 0,_t.setTimeout=function(e,t){const n=globalThis.setTimeout(t,e);return()=>clearTimeout(n)};var St={setSchedule:void 0};const Et=_t;St.setSchedule=function(e,t){const n=e-Date.now();return(0,Et.setTimeout)(n,t)};var kt={};kt.setInterval=void 0,kt.setInterval=function(e,t){const n=globalThis.setInterval(t,e);return()=>clearInterval(n)};var Rt={setImmediate:void 0};const Ct=_t;Rt.setImmediate=function(e){if(globalThis.setImmediate){const t=globalThis.setImmediate(e);return()=>clearImmediate(t)}return(0,Ct.setTimeout)(0,e)};var xt={setTimeoutLoop:void 0};const Ot=_t;xt.setTimeoutLoop=function(e,t){let n=!1,r=(0,Ot.setTimeout)(e,(async function o(){await t(),n||(r=(0,Ot.setTimeout)(e,o))}));return()=>{n=!0,r()}};var Pt={setDynamicTimeoutLoop:void 0};const It=_t;Pt.setDynamicTimeoutLoop=function(e,t){let n=!1,r=(0,It.setTimeout)(e,(async function o(){const i=Date.now();await t();const s=Date.now()-i;n||(r=(0,It.setTimeout)(Math.max(e-s,0),o))}));return()=>{n=!0,r()}},function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=n&&n.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};r(yt,e),r(_t,e),r(St,e),r(kt,e),r(Rt,e),r(xt,e),r(Pt,e)}(mt),vt.goMacrotask=void 0;const Nt=mt;var jt;vt.goMacrotask=function(e){return new Promise(((t,n)=>{(0,Nt.setImmediate)((async()=>{try{t(await e())}catch(e){n(e)}}))}))},function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=n&&n.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};r(ht,e),r(pt,e),r(vt,e)}(ft);var qt={chunkByAsync:void 0};const Ft=b;qt.chunkByAsync=function(e,t){return(0,Ft.isAsyncIterable)(e)?async function*(e,t){let n=[],r=0;for await(const o of e)n.push(o),await t(o,r)&&(yield n,n=[]),r++;n.length&&(yield n)}(e,t):async function*(e,t){let n=[],r=0;for(const o of e)n.push(o),await t(o,r)&&(yield n,n=[]),r++;n.length&&(yield n)}(e,t)};var Ut={};Ut.chunkBy=void 0,Ut.chunkBy=function*(e,t){let n=[],r=0;for(const o of e)n.push(o),t(o,r)&&(yield n,n=[]),r++;n.length&&(yield n)};var Lt,Mt={};var Dt={concatAsync:void 0};const Bt=b,Ht=ft;Dt.concatAsync=function(e,...t){return(0,Ht.go)((async function*(){for(const n of[e,...t])if((0,Bt.isAsyncIterable)(n))for await(const e of n)yield e;else for(const e of n)yield e}))};var zt={concat:void 0};const $t=ft;zt.concat=function(e,...t){return(0,$t.go)((function*(){for(const n of[e,...t])yield*n}))};var Jt,Wt={},Gt={};Gt.copyIterable=Gt.copyAsyncIterable=void 0,Gt.copyAsyncIterable=async function*(e){for await(const t of e)yield t},Gt.copyIterable=function*(e){for(const t of e)yield t};var Vt,Kt={};var Qt,Zt={};var Xt={dropUntilAsync:void 0};const Yt=b;Xt.dropUntilAsync=function(e,t){return(0,Yt.isAsyncIterable)(e)?async function*(e,t){var n;const r=e[Symbol.asyncIterator]();let o;try{let e,i=0;for(;!(({value:e,done:o}=await r.next()),o||await t(e,i++)););for(;!o;)yield e,({value:e,done:o}=await r.next())}finally{o||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}(e,t):async function*(e,t){var n;const r=e[Symbol.iterator]();let o;try{let e,i=0;for(;!(({value:e,done:o}=r.next()),o||await t(e,i++)););for(;!o;)yield e,({value:e,done:o}=r.next())}finally{o||null===(n=r.return)||void 0===n||n.call(r)}}(e,t)};var en={};en.dropUntil=void 0,en.dropUntil=function*(e,t){var n;const r=e[Symbol.iterator]();let o;try{let e,i=0;for(;!(({value:e,done:o}=r.next()),o||t(e,i++)););for(;!o;)yield e,({value:e,done:o}=r.next())}finally{o||null===(n=r.return)||void 0===n||n.call(r)}};var tn,nn={};var rn={filterAsync:void 0};const on=b;rn.filterAsync=function(e,t){return(0,on.isAsyncIterable)(e)?async function*(e,t){let n=0;for await(const r of e)await t(r,n)&&(yield r),n++}(e,t):async function*(e,t){let n=0;for(const r of e)await t(r,n)&&(yield r),n++}(e,t)};var sn={};sn.filter=void 0,sn.filter=function*(e,t){let n=0;for(const r of e)t(r,n)&&(yield r),n++};var an={},cn={},un={flattenByAsync:void 0};const ln=b;async function*dn(e,t,n){for(const r of e)fn(r)&&await t(r,n)?yield*dn(r,t,n+1):yield r}function fn(e){return(0,ln.isIterable)(e)&&(0,ln.isntChar)(e)}var hn,pn;function vn(){if(hn)return cn;hn=1,cn.flattenDeepAsync=void 0;const e=un,t=Ro();return cn.flattenDeepAsync=function(n,r=1/0){return(0,t.assert)(r===1/0||Number.isInteger(r),"The parameter depth must be an integer"),(0,t.assert)(r>=0,"The parameter depth must be greater than or equal to 0"),(0,e.flattenByAsync)(n,((e,t)=>t<=r))},cn}un.flattenByAsync=function(e,t){return(0,ln.isAsyncIterable)(e)?async function*(e,t){const n=1;for await(const r of e)fn(r)&&await t(r,n)?yield*dn(r,t,n+1):yield r}(e,t):function(e,t){return dn(e,t,1)}(e,t)};var mn={flattenBy:void 0};const yn=b;function*gn(e,t,n){for(const o of e)r=o,(0,yn.isIterable)(r)&&(0,yn.isntChar)(r)&&t(o,n)?yield*gn(o,t,n+1):yield o;var r}mn.flattenBy=function(e,t){return gn(e,t,1)};var bn,wn={};function An(){if(bn)return wn;bn=1,wn.flattenDeep=void 0;const e=mn,t=Ro();return wn.flattenDeep=function(n,r=1/0){return(0,t.assert)(r===1/0||Number.isInteger(r),"The parameter depth must be an integer"),(0,t.assert)(r>=0,"The parameter depth must be greater than or equal to 0"),(0,e.flattenBy)(n,((e,t)=>t<=r))},wn}var Tn,_n={};var Sn={mapAsync:void 0};const En=b;Sn.mapAsync=function(e,t){return(0,En.isAsyncIterable)(e)?async function*(e,t){let n=0;for await(const r of e)yield await t(r,n),n++}(e,t):async function*(e,t){let n=0;for(const r of e)yield await t(r,n),n++}(e,t)};var kn={};kn.map=void 0,kn.map=function*(e,t){let n=0;for(const r of e)yield t(r,n),n++};var Rn,Cn={};function xn(){if(Rn)return Cn;Rn=1,Cn.repeatAsync=void 0;const e=ft,t=Ro();return Cn.repeatAsync=function(n,r){return(0,t.assert)(r===1/0||Number.isInteger(r),"The parameter times must be an integer"),(0,t.assert)(r>=0,"The parameter times must be greater than or equal to 0"),r===1/0&&function(){if("production"===process.env.NODE_ENV)return;console.warn("When iterable has no elements and times is Infinity, repeat() will be in dead loop")}(),(0,e.go)((async function*(){const e=[];if(r>0){for await(const t of n)yield t,e.push(t);r--}for(;r>0;)yield*e,r--}))},Cn}var On,Pn={};function In(){if(On)return Pn;On=1,Pn.repeat=void 0;const e=ft,t=Ro();return Pn.repeat=function(n,r){return(0,t.assert)(r===1/0||Number.isInteger(r),"The parameter times must be an integer"),(0,t.assert)(r>=0,"The parameter times must be greater than or equal to 0"),r===1/0&&function(){if("production"===process.env.NODE_ENV)return;console.warn("When iterable has no elements and times is Infinity, repeat() will be in dead loop")}(),(0,e.go)((function*(){const e=[];if(r>0){for(const t of n)yield t,e.push(t);r--}for(;r>0;)yield*e,r--}))},Pn}var Nn,jn={};var qn,Fn={};var Un={};Un.splitAsync=void 0,Un.splitAsync=async function*(e,t){let n=[];for await(const r of e)r===t?(yield n,n=[]):n.push(r);yield n};var Ln={splitByAsync:void 0};const Mn=b;Ln.splitByAsync=function(e,t){return(0,Mn.isAsyncIterable)(e)?async function*(e,t){let n=[],r=0;for await(const o of e)await t(o,r)?(yield n,n=[]):n.push(o),r++;yield n}(e,t):async function*(e,t){let n=[],r=0;for(const o of e)await t(o,r)?(yield n,n=[]):n.push(o),r++;yield n}(e,t)};var Dn={};Dn.splitBy=void 0,Dn.splitBy=function*(e,t){let n=[],r=0;for(const o of e)t(o,r)?(yield n,n=[]):n.push(o),r++;yield n};var Bn={};Bn.split=void 0,Bn.split=function*(e,t){let n=[];for(const r of e)r===t?(yield n,n=[]):n.push(r);yield n};var Hn,zn={};var $n,Jn={};var Wn,Gn={};var Vn={takeUntilAsync:void 0};const Kn=b;Vn.takeUntilAsync=function(e,t){return(0,Kn.isAsyncIterable)(e)?async function*(e,t){let n=0;for await(const r of e){if(await t(r,n))break;yield r,n++}}(e,t):async function*(e,t){let n=0;for(const r of e){if(await t(r,n))break;yield r,n++}}(e,t)};var Qn={};Qn.takeUntil=void 0,Qn.takeUntil=function*(e,t){let n=0;for(const r of e){if(t(r,n))break;yield r,n++}};var Zn,Xn={};var Yn={tapAsync:void 0};const er=b;Yn.tapAsync=function(e,t){return(0,er.isAsyncIterable)(e)?async function*(e,t){let n=0;for await(const r of e)await t(r,n),yield r,n++}(e,t):async function*(e,t){let n=0;for(const r of e)await t(r,n),yield r,n++}(e,t)};var tr={};tr.tap=void 0,tr.tap=function*(e,t){let n=0;for(const r of e)t(r,n),yield r,n++};var nr={};nr.toAsyncIterable=void 0,nr.toAsyncIterable=async function*(e){for(const t of e)yield t};var rr={};rr.transformAsync=void 0,rr.transformAsync=async function*(e,t){yield*t(e)};var or={};or.transform=void 0,or.transform=function*(e,t){yield*t(e)};var ir={};ir.uniqAsync=void 0,ir.uniqAsync=async function*(e){const t=new Set;for await(const n of e)t.has(n)||(yield n,t.add(n))};var sr={uniqByAsync:void 0};const ar=b;sr.uniqByAsync=function(e,t){return(0,ar.isAsyncIterable)(e)?async function*(e,t){const n=new Set;let r=0;for await(const o of e){const e=await t(o,r);n.has(e)||(yield o,n.add(e)),r++}}(e,t):async function*(e,t){const n=new Set;let r=0;for(const o of e){const e=await t(o,r);n.has(e)||(yield o,n.add(e)),r++}}(e,t)};var cr={};cr.uniqBy=void 0,cr.uniqBy=function*(e,t){const n=new Set;let r=0;for(const o of e){const e=t(o,r);n.has(e)||(yield o,n.add(e)),r++}};var ur={};ur.uniq=void 0,ur.uniq=function*(e){const t=new Set;for(const n of e)t.has(n)||(yield n,t.add(n))};var lr={zipAsync:void 0};const dr=b;var fr;!function(e){e[e.Sync=0]="Sync",e[e.Async=1]="Async"}(fr||(fr={})),lr.zipAsync=function(e,...t){return async function*(...e){var t,n,r,o;const i=e.length,s=e.map((e=>(0,dr.isAsyncIterable)(e)?[fr.Async,e[Symbol.asyncIterator]()]:[fr.Sync,e[Symbol.iterator]()])),a=s.map((()=>!1));try{for(;;){const e=new Array(i);for(let t=0;t<i;t++){const[n,r]=s[t];let o;if(o=n===fr.Async?await r.next():r.next(),o.done)return void(a[t]=!0);e[t]=o.value}yield e}}finally{const e=s.filter(((e,t)=>!a[t]));for(const[i,s]of e)i===fr.Async?await(null===(n=(t=s).return)||void 0===n?void 0:n.call(t)):null===(o=(r=s).return)||void 0===o||o.call(r)}}(e,...t)};var hr,pr={};function vr(){return hr||(hr=1,function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=n&&n.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};r(function(){if(jt)return dt;jt=1,dt.chunkAsync=void 0;const e=ft,t=Ro();return dt.chunkAsync=function(n,r){return(0,t.assert)(Number.isInteger(r),"The parameter size must be an integer"),(0,t.assert)(r>0,"The parameter size must be greater than 0"),(0,e.go)((async function*(){let e=[];for await(const t of n)e.push(t),e.length>=r&&(yield e,e=[]);e.length&&(yield e)}))},dt}(),e),r(qt,e),r(Ut,e),r(function(){if(Lt)return Mt;Lt=1,Mt.chunk=void 0;const e=ft,t=Ro();return Mt.chunk=function(n,r){return(0,t.assert)(Number.isInteger(r),"The parameter size must be an integer"),(0,t.assert)(r>0,"The parameter size must be greater than 0"),(0,e.go)((function*(){let e=[];for(const t of n)e.push(t),e.length>=r&&(yield e,e=[]);e.length&&(yield e)}))},Mt}(),e),r(Dt,e),r(zt,e),r(function(){if(Jt)return Wt;Jt=1,Wt.dropAsync=void 0;const e=ft,t=Gt,n=Ro();return Wt.dropAsync=function(r,o){return(0,n.assert)(Number.isInteger(o),"The parameter count must be an integer"),(0,n.assert)(o>=0,"The parameter count must be greater than or equal to 0"),0===o?(0,t.copyAsyncIterable)(r):(0,e.go)((async function*(){var e;const t=r[Symbol.asyncIterator]();let n;try{let r;for(;({value:r,done:n}=await t.next()),!(n||o<=0);)o--;for(;!n;)yield r,({value:r,done:n}=await t.next())}finally{n||await(null===(e=t.return)||void 0===e?void 0:e.call(t))}}))},Wt}(),e),r(function(){if(Vt)return Kt;Vt=1,Kt.dropRightAsync=void 0;const e=ft,t=Gt,n=Ro();return Kt.dropRightAsync=function(r,o){return(0,n.assert)(Number.isInteger(o),"The parameter count must be an integer"),(0,n.assert)(o>=0,"The parameter count must be greater than or equal to 0"),0===o?(0,t.copyAsyncIterable)(r):(0,e.go)((async function*(){const e=(await async function(e){const t=[];for await(const n of e)t.push(n);return t}(r)).slice(0,-o);for(const t of e)yield t}))},Kt}(),e),r(function(){if(Qt)return Zt;Qt=1,Zt.dropRight=void 0;const e=ft,t=Gt,n=Ro();return Zt.dropRight=function(r,o){return(0,n.assert)(Number.isInteger(o),"The parameter count must be an integer"),(0,n.assert)(o>=0,"The parameter count must be greater than or equal to 0"),0===o?(0,t.copyIterable)(r):(0,e.go)((function*(){const e=Array.from(r);yield*e.slice(0,-o)}))},Zt}(),e),r(Xt,e),r(en,e),r(function(){if(tn)return nn;tn=1,nn.drop=void 0;const e=ft,t=Gt,n=Ro();return nn.drop=function(r,o){return(0,n.assert)(Number.isInteger(o),"The parameter count must be an integer"),(0,n.assert)(o>=0,"The parameter count must be greater than or equal to 0"),0===o?(0,t.copyIterable)(r):(0,e.go)((function*(){var e;const t=r[Symbol.iterator]();let n;try{let r;for(;({value:r,done:n}=t.next()),!(n||o<=0);)o--;for(;!n;)yield r,({value:r,done:n}=t.next())}finally{n||null===(e=t.return)||void 0===e||e.call(t)}}))},nn}(),e),r(rn,e),r(sn,e),r(function(){if(pn)return an;pn=1,an.flattenAsync=void 0;const e=vn();return an.flattenAsync=function(t){return(0,e.flattenDeepAsync)(t,1)},an}(),e),r(un,e),r(mn,e),r(vn(),e),r(An(),e),r(function(){if(Tn)return _n;Tn=1,_n.flatten=void 0;const e=An();return _n.flatten=function(t){return(0,e.flattenDeep)(t,1)},_n}(),e),r(Sn,e),r(kn,e),r(xn(),e),r(In(),e),r(function(){if(Nn)return jn;Nn=1,jn.sliceAsync=void 0;const e=ft,t=Ro();return jn.sliceAsync=function(n,r,o=1/0){return(0,t.assert)(Number.isInteger(r),"The parameter start must be an integer"),(0,t.assert)(r>=0,"The parameter start must be greater than or equal to 0"),(0,t.assert)(Number.isInteger(o),"The parameter end must be an integer"),(0,t.assert)(o>=r,"The parameter end must be greater than or equal to start"),(0,e.go)((async function*(){let e=0;for await(const t of n){if(e>=o)break;e>=r&&(yield t),e++}}))},jn}(),e),r(function(){if(qn)return Fn;qn=1,Fn.slice=void 0;const e=ft,t=Ro();return Fn.slice=function(n,r,o=1/0){return(0,t.assert)(Number.isInteger(r),"The parameter start must be an integer"),(0,t.assert)(r>=0,"The parameter start must be greater than or equal to 0"),(0,t.assert)(Number.isInteger(o),"The parameter end must be an integer"),(0,t.assert)(o>=r,"The parameter end must be greater than or equal to start"),(0,e.go)((function*(){let e=0;for(const t of n){if(e>=o)break;e>=r&&(yield t),e++}}))},Fn}(),e),r(Un,e),r(Ln,e),r(Dn,e),r(Bn,e),r(function(){if(Hn)return zn;Hn=1,zn.takeAsync=void 0;const e=ft,t=Ro();return zn.takeAsync=function(n,r){return(0,t.assert)(Number.isInteger(r),"The parameter count must be an integer"),(0,t.assert)(r>=0,"The parameter count must be greater than or equal to 0"),(0,e.go)((async function*(){if(0!==r)for await(const e of n)if(yield e,0==--r)break}))},zn}(),e),r(function(){if($n)return Jn;$n=1,Jn.takeRightAsync=void 0;const e=ft,t=Ro();return Jn.takeRightAsync=function(n,r){return(0,t.assert)(Number.isInteger(r),"The parameter count must be an integer"),(0,t.assert)(r>=0,"The parameter count must be greater than or equal to 0"),(0,e.go)((async function*(){var e;const t=n[Symbol.asyncIterator]();let o;try{const n=[];let i;for(;({value:i,done:o}=await t.next()),!o;)n.push(i),n.length>r&&n.shift();yield*n}finally{o||await(null===(e=t.return)||void 0===e?void 0:e.call(t))}}))},Jn}(),e),r(function(){if(Wn)return Gn;Wn=1,Gn.takeRight=void 0;const e=ft,t=Ro();return Gn.takeRight=function(n,r){return(0,t.assert)(Number.isInteger(r),"The parameter count must be an integer"),(0,t.assert)(r>=0,"The parameter count must be greater than or equal to 0"),(0,e.go)((function*(){var e;const t=n[Symbol.iterator]();let o;try{const n=[];let i;for(;({value:i,done:o}=t.next()),!o;)n.push(i),n.length>r&&n.shift();yield*n}finally{o||null===(e=t.return)||void 0===e||e.call(t)}}))},Gn}(),e),r(Vn,e),r(Qn,e),r(function(){if(Zn)return Xn;Zn=1,Xn.take=void 0;const e=ft,t=Ro();return Xn.take=function(n,r){return(0,t.assert)(Number.isInteger(r),"The parameter count must be an integer"),(0,t.assert)(r>=0,"The parameter count must be greater than or equal to 0"),(0,e.go)((function*(){if(0!==r)for(const e of n)if(yield e,0==--r)break}))},Xn}(),e),r(Yn,e),r(tr,e),r(nr,e),r(rr,e),r(or,e),r(ir,e),r(sr,e),r(cr,e),r(ur,e),r(lr,e),r(pr,e)}(lt)),lt}pr.zip=void 0,pr.zip=function(e,...t){return function*(...e){const t=e.length,n=e.map((e=>e[Symbol.iterator]())),r=n.map((()=>!1));try{for(;;){const e=new Array(t);for(let o=0;o<t;o++){const{value:t,done:i}=n[o].next();if(i)return void(r[o]=!0);e[o]=t}yield e}}finally{n.filter(((e,t)=>!r[t])).forEach((e=>{var t;return null===(t=e.return)||void 0===t?void 0:t.call(e)}))}}(e,...t)};var mr={},yr={};yr.consume=void 0,yr.consume=function(e,t){return t(e)};var gr={eachAsync:void 0};const br=b;gr.eachAsync=function(e,t){return(0,br.isAsyncIterable)(e)?async function(e,t){let n=0;for await(const r of e)await t(r,n),n++}(e,t):async function(e,t){let n=0;for(const r of e)await t(r,n),n++}(e,t)};var wr={};wr.each=void 0,wr.each=function(e,t){let n=0;for(const r of e)t(r,n),n++};var Ar={everyAsync:void 0};const Tr=b;Ar.everyAsync=function(e,t){return(0,Tr.isAsyncIterable)(e)?async function(e,t){let n=0;for await(const r of e){if(!await t(r,n))return!1;n++}return!0}(e,t):async function(e,t){let n=0;for(const r of e){if(!await t(r,n))return!1;n++}return!0}(e,t)};var _r={};_r.every=void 0,_r.every=function(e,t){let n=0;for(const r of e){if(!t(r,n))return!1;n++}return!0};var Sr={findAsync:void 0};const Er=b;Sr.findAsync=function(e,t){return(0,Er.isAsyncIterable)(e)?async function(e,t){let n=0;for await(const r of e){if(await t(r,n))return r;n++}return}(e,t):async function(e,t){let n=0;for(const r of e){if(await t(r,n))return r;n++}return}(e,t)};var kr={};kr.find=void 0,kr.find=function(e,t){let n=0;for(const r of e){if(t(r,n))return r;n++}};var Rr={};Rr.firstAsync=void 0,Rr.firstAsync=async function(e){for await(const t of e)return t};var Cr={};Cr.first=void 0,Cr.first=function(e){for(const t of e)return t};var xr={};xr.includesAsync=void 0,xr.includesAsync=async function(e,t){for await(const n of e)if(n===t)return!0;return!1};var Or={};Or.includes=void 0,Or.includes=function(e,t){for(const n of e)if(n===t)return!0;return!1};var Pr={};Pr.matchAsync=void 0,Pr.matchAsync=async function(e,t){const n=t.length;let r=0;for await(const o of e)if(o===t[r]&&r++,r===n)return!0;return!1};var Ir={};Ir.match=void 0,Ir.match=function(e,t){const n=t.length;let r=0;for(const o of e)if(o===t[r]&&r++,r===n)return!0;return!1};var Nr={reduceAsync:void 0};const jr=b;Nr.reduceAsync=function(e,t,n){return(0,jr.isUndefined)(n)?function(e,t){return(0,jr.isAsyncIterable)(e)?n(e):r(e);async function n(e){var n;const r=e[Symbol.asyncIterator]();let o;try{let e,s=await i(r),a=1;for(;({value:e,done:o}=await r.next()),!o;)s=await t(s,e,a++);return s}finally{o||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}async function i(e){const t=await e.next();if(t.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return t.value}}async function r(e){var n;const r=e[Symbol.iterator]();let o;try{let e,s=i(r),a=1;for(;({value:e,done:o}=r.next()),!o;)s=await t(s,e,a++);return s}finally{o||null===(n=r.return)||void 0===n||n.call(r)}function i(e){const t=e.next();if(t.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return t.value}}}(e,t):function(e,t,n){return(0,jr.isAsyncIterable)(e)?o(e):r(e);async function r(e){let r=n,o=0;for(const n of e)r=await t(r,n,o++);return r}async function o(e){let r=n,o=0;for await(const n of e)r=await t(r,n,o++);return r}}(e,t,n)};var qr={reduce:void 0};const Fr=b;qr.reduce=function(e,t,n){return(0,Fr.isUndefined)(n)?function(e,t){var n;const r=e[Symbol.iterator]();let o;try{let e,s=i(r),a=1;for(;({value:e,done:o}=r.next()),!o;)s=t(s,e,a++);return s}finally{o||null===(n=r.return)||void 0===n||n.call(r)}function i(e){const t=e.next();if(t.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return t.value}}(e,t):function(e,t,n){let r=n,o=0;for(const n of e)r=t(r,n,o++);return r}(e,t,n)};var Ur={someAsync:void 0};const Lr=b;Ur.someAsync=function(e,t){return(0,Lr.isAsyncIterable)(e)?async function(e,t){let n=0;for await(const r of e){if(await t(r,n))return!0;n++}return!1}(e,t):async function(e,t){let n=0;for(const r of e){if(await t(r,n))return!0;n++}return!1}(e,t)};var Mr={};Mr.some=void 0,Mr.some=function(e,t){let n=0;for(const r of e){if(t(r,n))return!0;n++}return!1};var Dr={};Dr.lastAsync=void 0,Dr.lastAsync=async function(e){var t;const n=e[Symbol.asyncIterator]();let r;try{let e,o;for(;({value:e,done:r}=await n.next()),!r;)o=e;return o}finally{r||await(null===(t=n.return)||void 0===t?void 0:t.call(n))}};var Br={};Br.last=void 0,Br.last=function(e){var t;const n=e[Symbol.iterator]();let r;try{let e,o;for(;({value:e,done:r}=n.next()),!r;)o=e;return o}finally{r||null===(t=n.return)||void 0===t||t.call(n)}};var Hr={toArrayAsync:void 0};const zr=yr;Hr.toArrayAsync=function(e){return(0,zr.consume)(e,(async e=>{const t=[];for await(const n of e)t.push(n);return t}))};var $r={toArray:void 0};const Jr=yr;$r.toArray=function(e){return(0,Jr.consume)(e,(e=>Array.from(e)))};var Wr={toSetAsync:void 0};const Gr=yr;Wr.toSetAsync=function(e){return(0,Gr.consume)(e,(async e=>{const t=new Set;for await(const n of e)t.add(n);return t}))};var Vr={toSet:void 0};const Kr=yr;Vr.toSet=function(e){return(0,Kr.consume)(e,(e=>new Set(e)))};var Qr={};Qr.count=void 0,Qr.count=function(e){let t=0;for(const n of e)t++;return t};var Zr={};Zr.countAsync=void 0,Zr.countAsync=async function(e){let t=0;for await(const n of e)t++;return t};var Xr={groupBy:void 0};const Yr=wr;Xr.groupBy=function(e,t){const n=new Map;return(0,Yr.each)(e,((e,r)=>{const o=t(e,r);n.has(o)||n.set(o,[]),n.get(o).push(e)})),n};var eo={groupByAsync:void 0};const to=gr;var no;function ro(){return no||(no=1,function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=n&&n.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};r(vr(),e),r(mr,e)}(ut)),ut}eo.groupByAsync=async function(e,t){const n=new Map;return await(0,to.eachAsync)(e,(async(e,r)=>{const o=await t(e,r);n.has(o)||n.set(o,[]),n.get(o).push(e)})),n},function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=n&&n.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};r(yr,e),r(gr,e),r(wr,e),r(Ar,e),r(_r,e),r(Sr,e),r(kr,e),r(Rr,e),r(Cr,e),r(xr,e),r(Or,e),r(Pr,e),r(Ir,e),r(Nr,e),r(qr,e),r(Ur,e),r(Mr,e),r(Dr,e),r(Br,e),r(Hr,e),r($r,e),r(Wr,e),r(Vr,e),r(Qr,e),r(Zr,e),r(Xr,e),r(eo,e)}(mr);var oo={},io={};io.traverseErrorPrototypeChain=void 0,io.traverseErrorPrototypeChain=function*(e){let t=e;for(;(t=Object.getPrototypeOf(t))&&(yield t,t!==Error.prototype););},oo.getErrorNames=void 0;const so=b,ao=io;oo.getErrorNames=function*(e){var t;if((0,so.isError)(e))for(const n of(0,ao.traverseErrorPrototypeChain)(e))(null===(t=n.constructor)||void 0===t?void 0:t.name)&&(yield n.constructor.name);else yield e.name,yield*e.ancestors};var co={isSerializableError:void 0};const uo=b;var lo;function fo(){if(lo)return ct;lo=1,ct.CustomError=void 0;const e=ro(),t=oo,n=b,r=co;class o extends Error{get name(){var n,r;return null!==(r=null!==(n=(0,e.first)((0,t.getErrorNames)(this)))&&void 0!==n?n:o.name)&&void 0!==r?r:"CustomError"}static[Symbol.hasInstance](o){var i;if((0,n.isError)(o)||(0,r.isSerializableError)(o)){const n=[null!==(i=this.prototype.constructor.name)&&void 0!==i?i:this.name,...(0,t.getErrorNames)(this.prototype)].reverse(),r=(0,e.toArray)((0,t.getErrorNames)(o)).reverse();return n.every(((e,t)=>e===r[t]))}return!1}}return ct.CustomError=o,ct}co.isSerializableError=function(e){return(0,uo.isObject)(e)&&(0,uo.isString)(e.name)&&(0,uo.isString)(e.message)&&((0,uo.isString)(e.stack)||(0,uo.isNull)(e.stack))&&(0,uo.isArray)(e.ancestors)&&e.ancestors.every(uo.isString)};var ho,po={};function vo(){if(ho)return po;ho=1,po.AssertionError=void 0;const e=fo();class t extends e.CustomError{}return po.AssertionError=t,po}var mo,yo={};var go={},bo={},wo={};wo.pass=void 0,wo.pass=function(){};var Ao={};Ao.passAsync=void 0,Ao.passAsync=async function(){},function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=n&&n.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};r(wo,e),r(Ao,e)}(bo),go.hydrate=void 0;const To=bo;function _o(e,t){const n=function(){(0,To.pass)()};return(n.prototype=Object.create(e.prototype)).constructor=n,Object.defineProperty(n,"name",{value:t}),n}go.hydrate=function(e){var t;const n=[e.name,...e.ancestors].slice(0,-1).reverse();let r=Error;for(const e of n)r=_o(r,e);const o=new r;return o.name=e.name,o.message=e.message,o.stack=null!==(t=e.stack)&&void 0!==t?t:void 0,o};var So,Eo,ko={};function Ro(){return Eo||(Eo=1,function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=n&&n.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};r(fo(),e),r(vo(),e),r(co,e),r(function(){if(mo)return yo;mo=1,yo.normalize=void 0;const e=oo,t=ro();return yo.normalize=function(n){var r;const[o,...i]=(0,t.toArray)((0,e.getErrorNames)(n));return{name:o,ancestors:i,message:n.message,stack:null!==(r=n.stack)&&void 0!==r?r:null}},yo}(),e),r(go,e),r(function(){if(So)return ko;So=1,ko.assert=void 0;const e=vo();return ko.assert=function(t,n){if(!t)throw new e.AssertionError(n)},ko}(),e),r(oo,e),r(io,e)}(at)),at}it.csv=void 0;const Co=r,xo=st.exports,Oo=Ro();function Po(e){const t=Object.keys(e[0]);return(0,xo.unparse)({data:e,fields:t})}it.csv=function(e){return(0,Oo.assert)(e.length>0,"payload must be a non-empty array"),t=>{const n=new Co.Headers(t.headers);return n.set("Content-Type","text/csv"),{...t,headers:n,payload:Po(e)}}};var Io={};Io.signal=void 0,Io.signal=function(e){return t=>({...t,signal:e})};var No={header:void 0};const jo=r;No.header=function(e,t){return n=>{const r=new jo.Headers(n.headers);return r.set(e,t),{...n,headers:r}}};var qo={appendHeader:void 0};const Fo=r;qo.appendHeader=function(e,t){return n=>{const r=new Fo.Headers(n.headers);return r.append(e,t),{...n,headers:r}}};var Uo={headers:void 0};const Lo=r;Uo.headers=function(e){return t=>{const n=new Lo.Headers(t.headers);for(const[t,r]of Object.entries(e))n.set(t,r);return{...t,headers:n}}};var Mo={accept:void 0};const Do=qo;Mo.accept=function(e){return(0,Do.appendHeader)("Accept",e)};var Bo={};Bo.host=void 0,Bo.host=function(e){return t=>{const n=new URL(t.url.href);return n.host=e,{...t,url:n}}};var Ho={};Ho.port=void 0,Ho.port=function(e){return t=>{const n=new URL(t.url.href);return n.port=e.toString(),{...t,url:n}}};var zo={};zo.pathname=void 0,zo.pathname=function(e){return t=>{const n=new URL(t.url.href);return n.pathname=e,{...t,url:n}}};var $o={};$o.search=void 0,$o.search=function(e){return t=>{const n=new URL(t.url.href);return n.search=e,{...t,url:n}}};var Jo={};Jo.searchParam=void 0,Jo.searchParam=function(e,t){return n=>{const r=new URL(n.url.href),o=new URLSearchParams(r.searchParams);return o.set(e,t.toString()),r.search=o.toString(),{...n,url:r}}};var Wo={};Wo.searchParams=void 0,Wo.searchParams=function(e){return t=>{const n=new URL(t.url.href),r=new URLSearchParams(n.searchParams);for(const[t,n]of Object.entries(e))r.set(t,n.toString());return n.search=r.toString(),{...t,url:n}}};var Go={};Go.appendSearchParam=void 0,Go.appendSearchParam=function(e,t){return n=>{const r=new URL(n.url.href),o=new URLSearchParams(r.searchParams);return o.append(e,t.toString()),r.search=o.toString(),{...n,url:r}}};var Vo={formDataField:void 0};const Ko=r,Qo=b;Vo.formDataField=function(e,t){return n=>{const r=n.payload instanceof Ko.FormData?function(e){const t=new Ko.FormData;for(const[n,r]of e.entries())t.append(n,r);return t}(n.payload):new Ko.FormData;return(0,Qo.isArray)(t)?t.forEach((t=>r.append(e,t))):r.append(e,t),{...n,payload:r}}};var Zo,Xo,Yo,ei,ti,ni,ri,oi,ii,si,ai,ci,ui,li,di,fi,hi,pi,vi,mi,yi,gi,bi,wi,Ai,Ti,_i,Si,Ei,ki,Ri,Ci,xi,Oi,Pi,Ii,Ni,ji,qi,Fi,Ui,Li={},Mi={exports:{}};"undefined"!=typeof self?self:"undefined"!=typeof window&&window,Mi.exports=(Xo=Zo="3.7.2",Yo="function"==typeof atob,ei="function"==typeof btoa,ti="function"==typeof Buffer,ni="function"==typeof TextDecoder?new TextDecoder:void 0,ri="function"==typeof TextEncoder?new TextEncoder:void 0,oi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",ii=Array.prototype.slice.call(oi),Ui={},ii.forEach((function(e,t){return Ui[e]=t})),si=Ui,ai=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,ci=String.fromCharCode.bind(String),ui="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):function(e,t){return void 0===t&&(t=function(e){return e}),new Uint8Array(Array.prototype.slice.call(e,0).map(t))},li=function(e){return e.replace(/=/g,"").replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"}))},di=function(e){return e.replace(/[^A-Za-z0-9\+\/]/g,"")},fi=function(e){for(var t,n,r,o,i="",s=e.length%3,a=0;a<e.length;){if((n=e.charCodeAt(a++))>255||(r=e.charCodeAt(a++))>255||(o=e.charCodeAt(a++))>255)throw new TypeError("invalid character found");i+=ii[(t=n<<16|r<<8|o)>>18&63]+ii[t>>12&63]+ii[t>>6&63]+ii[63&t]}return s?i.slice(0,s-3)+"===".substring(s):i},pi=ti?function(e){return Buffer.from(e).toString("base64")}:function(e){for(var t=4096,n=[],r=0,o=e.length;r<o;r+=t)n.push(ci.apply(null,e.subarray(r,r+t)));return hi(n.join(""))},mi=function(e){if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?ci(192|t>>>6)+ci(128|63&t):ci(224|t>>>12&15)+ci(128|t>>>6&63)+ci(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return ci(240|t>>>18&7)+ci(128|t>>>12&63)+ci(128|t>>>6&63)+ci(128|63&t)},yi=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,bi=ti?function(e){return Buffer.from(e,"utf8").toString("base64")}:ri?function(e){return pi(ri.encode(e))}:function(e){return hi(gi(e))},Ai=function(e){return wi(e,!0)},Ti=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,_i=function(e){switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return ci(55296+(t>>>10))+ci(56320+(1023&t));case 3:return ci((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return ci((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},Ei=function(e){if(e=e.replace(/\s+/g,""),!ai.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(3&e.length));for(var t,n,r,o="",i=0;i<e.length;)t=si[e.charAt(i++)]<<18|si[e.charAt(i++)]<<12|(n=si[e.charAt(i++)])<<6|(r=si[e.charAt(i++)]),o+=64===n?ci(t>>16&255):64===r?ci(t>>16&255,t>>8&255):ci(t>>16&255,t>>8&255,255&t);return o},Ri=ti?function(e){return ui(Buffer.from(e,"base64"))}:function(e){return ui(ki(e),(function(e){return e.charCodeAt(0)}))},Ci=function(e){return Ri(Oi(e))},xi=ti?function(e){return Buffer.from(e,"base64").toString("utf8")}:ni?function(e){return ni.decode(Ri(e))}:function(e){return Si(ki(e))},Oi=function(e){return di(e.replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})))},Ii=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}},Ni=function(){var e=function(e,t){return Object.defineProperty(String.prototype,e,Ii(t))};e("fromBase64",(function(){return Pi(this)})),e("toBase64",(function(e){return wi(this,e)})),e("toBase64URI",(function(){return wi(this,!0)})),e("toBase64URL",(function(){return wi(this,!0)})),e("toUint8Array",(function(){return Ci(this)}))},ji=function(){var e=function(e,t){return Object.defineProperty(Uint8Array.prototype,e,Ii(t))};e("toBase64",(function(e){return vi(this,e)})),e("toBase64URI",(function(){return vi(this,!0)})),e("toBase64URL",(function(){return vi(this,!0)}))},qi=function(){Ni(),ji()},Fi={version:Zo,VERSION:Xo,atob:ki=Yo?function(e){return atob(di(e))}:ti?function(e){return Buffer.from(e,"base64").toString("binary")}:Ei,atobPolyfill:Ei,btoa:hi=ei?function(e){return btoa(e)}:ti?function(e){return Buffer.from(e,"binary").toString("base64")}:fi,btoaPolyfill:fi,fromBase64:Pi=function(e){return xi(Oi(e))},toBase64:wi=function(e,t){return void 0===t&&(t=!1),t?li(bi(e)):bi(e)},encode:wi,encodeURI:Ai,encodeURL:Ai,utob:gi=function(e){return e.replace(yi,mi)},btou:Si=function(e){return e.replace(Ti,_i)},decode:Pi,isValid:function(e){if("string"!=typeof e)return!1;var t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},fromUint8Array:vi=function(e,t){return void 0===t&&(t=!1),t?li(pi(e)):pi(e)},toUint8Array:Ci,extendString:Ni,extendUint8Array:ji,extendBuiltins:qi,Base64:{}},Object.keys(Fi).forEach((function(e){return Fi.Base64[e]=Fi[e]})),Fi),Li.basicAuth=void 0;const Di=No,Bi=Mi.exports;Li.basicAuth=function(e,t){return(0,Di.header)("Authorization","Basic "+(0,Bi.btoa)(`${e}:${t}`))};var Hi={bearerAuth:void 0};const zi=No;Hi.bearerAuth=function(e){return(0,zi.header)("Authorization",`Bearer ${e}`)};var $i={};$i.keepalive=void 0,$i.keepalive=function(e=!0){return t=>({...t,keepalive:e})},function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=n&&n.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};r(et,e),r(tt,e),r(rt,e),r(it,e),r(Io,e),r(No,e),r(qo,e),r(Uo,e),r(Mo,e),r(Bo,e),r(Ho,e),r(zo,e),r($o,e),r(Jo,e),r(Wo,e),r(Go,e),r(Vo,e),r(Li,e),r(Hi,e),r($i,e)}(Ye);var Ji={},Wi={},Gi={},Vi={},Ki={CustomError:void 0};class Qi extends Error{get name(){return this.constructor.name}}Ki.CustomError=Qi;var Zi={ExpectedError:void 0};const Xi=Ki;class Yi extends Xi.CustomError{}Zi.ExpectedError=Yi;var es={AssertionError:void 0};const ts=Ki;class ns extends ts.CustomError{}es.AssertionError=ns;var rs={};rs.normalize=void 0,rs.normalize=function(e){var t;return{name:e.name,message:e.message,stack:null!==(t=e.stack)&&void 0!==t?t:null}};var os={refute:void 0};const is=Zi;os.refute=function(e,t){if(e)throw new is.ExpectedError(t)};var ss={assert:void 0};const as=es;ss.assert=function(e,t){if(!e)throw new as.AssertionError(t)},function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=n&&n.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};r(Ki,e),r(Zi,e),r(es,e),r(rs,e),r(os,e),r(ss,e)}(Vi),Gi.HTTPError=void 0;const cs=Vi;Gi.HTTPError=class extends cs.CustomError{constructor(e,t){super(t),this.code=e}};var us={},ls={};!function(e){e.ServerError=e.ClientError=e.Redirection=e.Successful=e.Informational=void 0,function(e){e[e.Continue=100]="Continue",e[e.SwitchingProtocol=101]="SwitchingProtocol",e[e.Processing=102]="Processing",e[e.EarlyHints=103]="EarlyHints"}(e.Informational||(e.Informational={})),function(e){e[e.OK=200]="OK",e[e.Created=201]="Created",e[e.Accepted=202]="Accepted",e[e.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",e[e.NoContent=204]="NoContent",e[e.ResetContent=205]="ResetContent",e[e.PartialContent=206]="PartialContent",e[e.MultiStatus=207]="MultiStatus",e[e.AlreadyReported=208]="AlreadyReported",e[e.IMUsed=226]="IMUsed"}(e.Successful||(e.Successful={})),function(e){e[e.MultipleChoice=300]="MultipleChoice",e[e.MovedPermanently=3011]="MovedPermanently",e[e.Found=302]="Found",e[e.SeeOther=303]="SeeOther",e[e.NotModified=304]="NotModified",e[e.TemporaryRedirect=307]="TemporaryRedirect",e[e.PermanentRedirect=308]="PermanentRedirect"}(e.Redirection||(e.Redirection={})),function(e){e[e.BadRequest=400]="BadRequest",e[e.Unauthorized=401]="Unauthorized",e[e.Forbidden=403]="Forbidden",e[e.NotFound=404]="NotFound",e[e.MethodNotAllowed=405]="MethodNotAllowed",e[e.NotAcceptable=406]="NotAcceptable",e[e.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",e[e.RequestTimeout=408]="RequestTimeout",e[e.Conflict=409]="Conflict",e[e.Gone=410]="Gone",e[e.LengthRequired=411]="LengthRequired",e[e.PreconditionFailed=412]="PreconditionFailed",e[e.PayloadTooLarge=413]="PayloadTooLarge",e[e.URITooLong=414]="URITooLong",e[e.UnsupportedMediaType=415]="UnsupportedMediaType",e[e.RangeNotSatisfiable=416]="RangeNotSatisfiable",e[e.ExpectationFailed=417]="ExpectationFailed",e[e.MisdirectedRequest=421]="MisdirectedRequest",e[e.UnprocessableEntity=422]="UnprocessableEntity",e[e.Locked=423]="Locked",e[e.FailedDependency=424]="FailedDependency",e[e.UpgradeRequired=426]="UpgradeRequired",e[e.PreconditionRequired=428]="PreconditionRequired",e[e.TooManyRequests=429]="TooManyRequests",e[e.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",e[e.UnavailableForLegalReasons=451]="UnavailableForLegalReasons"}(e.ClientError||(e.ClientError={})),function(e){e[e.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout",e[e.HTTPVersionNotSupported=505]="HTTPVersionNotSupported",e[e.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",e[e.InsufficientStorage=507]="InsufficientStorage",e[e.LoopDetected=508]="LoopDetected",e[e.NotExtended=510]="NotExtended",e[e.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired"}(e.ServerError||(e.ServerError={}))}(ls),us.EarlyHints=us.Processing=us.SwitchingProtocol=us.Continue=us.HTTPInformational=void 0;const ds=ls;class fs{constructor(e,t){this.code=e,this.message=t}}us.HTTPInformational=fs;us.Continue=class extends fs{constructor(){super(ds.Informational.Continue,"Continue")}};us.SwitchingProtocol=class extends fs{constructor(){super(ds.Informational.SwitchingProtocol,"Switching Protocol")}};us.Processing=class extends fs{constructor(){super(ds.Informational.Processing,"Processing")}};us.EarlyHints=class extends fs{constructor(){super(ds.Informational.EarlyHints,"Early Hints")}};var hs={};hs.IMUsed=hs.AlreadyReported=hs.MultiStatus=hs.PartialContent=hs.ResetContent=hs.NoContent=hs.NonAuthoritativeInformation=hs.Accepted=hs.Created=hs.OK=hs.HTTPSuccessful=void 0;const ps=ls;class vs{constructor(e,t){this.code=e,this.message=t}}hs.HTTPSuccessful=vs;hs.OK=class extends vs{constructor(){super(ps.Successful.OK,"OK")}};hs.Created=class extends vs{constructor(){super(ps.Successful.Created,"Created")}};hs.Accepted=class extends vs{constructor(){super(ps.Successful.Accepted,"Accepted")}};hs.NonAuthoritativeInformation=class extends vs{constructor(){super(ps.Successful.NonAuthoritativeInformation,"Non-Authoritative Information")}};hs.NoContent=class extends vs{constructor(){super(ps.Successful.NoContent,"No Content")}};hs.ResetContent=class extends vs{constructor(){super(ps.Successful.ResetContent,"Reset Content")}};hs.PartialContent=class extends vs{constructor(){super(ps.Successful.PartialContent,"Partial Content")}};hs.MultiStatus=class extends vs{constructor(){super(ps.Successful.MultiStatus,"Multi-Status")}};hs.AlreadyReported=class extends vs{constructor(){super(ps.Successful.AlreadyReported,"Already Reported")}};hs.IMUsed=class extends vs{constructor(){super(ps.Successful.IMUsed,"IM Used")}};var ms={};ms.PermanentRedirect=ms.TemporaryRedirect=ms.NotModified=ms.SeeOther=ms.Found=ms.MovedPermanently=ms.MultipleChoice=ms.HTTPRedirection=void 0;const ys=ls;class gs{constructor(e,t){this.code=e,this.message=t}}ms.HTTPRedirection=gs;ms.MultipleChoice=class extends gs{constructor(){super(ys.Redirection.MultipleChoice,"Multiple Choice")}};ms.MovedPermanently=class extends gs{constructor(){super(ys.Redirection.MovedPermanently,"Moved Permanently")}};ms.Found=class extends gs{constructor(){super(ys.Redirection.Found,"Found")}};ms.SeeOther=class extends gs{constructor(){super(ys.Redirection.SeeOther,"See Other")}};ms.NotModified=class extends gs{constructor(){super(ys.Redirection.NotModified,"Not Modified")}};ms.TemporaryRedirect=class extends gs{constructor(){super(ys.Redirection.TemporaryRedirect,"Temporary Redirect")}};ms.PermanentRedirect=class extends gs{constructor(){super(ys.Redirection.PermanentRedirect,"Permanent Redirect")}};var bs={};bs.UnavailableForLegalReasons=bs.RequestHeaderFieldsTooLarge=bs.TooManyRequests=bs.PreconditionRequired=bs.UpgradeRequired=bs.FailedDependency=bs.Locked=bs.UnprocessableEntity=bs.MisdirectedRequest=bs.ExpectationFailed=bs.RangeNotSatisfiable=bs.UnsupportedMediaType=bs.URITooLong=bs.PayloadTooLarge=bs.PreconditionFailed=bs.LengthRequired=bs.Gone=bs.Conflict=bs.RequestTimeout=bs.ProxyAuthenticationRequired=bs.NotAcceptable=bs.MethodNotAllowed=bs.NotFound=bs.Forbidden=bs.Unauthorized=bs.BadRequest=bs.HTTPClientError=void 0;const ws=Gi,As=ls;class Ts extends ws.HTTPError{}bs.HTTPClientError=Ts;bs.BadRequest=class extends Ts{constructor(e){super(As.ClientError.BadRequest,null!=e?e:"Bad Request")}};bs.Unauthorized=class extends Ts{constructor(e){super(As.ClientError.Unauthorized,null!=e?e:"Unauthorized")}};bs.Forbidden=class extends Ts{constructor(e){super(As.ClientError.Forbidden,null!=e?e:"Forbidden")}};bs.NotFound=class extends Ts{constructor(e){super(As.ClientError.NotFound,null!=e?e:"Not Found")}};bs.MethodNotAllowed=class extends Ts{constructor(e){super(As.ClientError.MethodNotAllowed,null!=e?e:"Method Not Allowed")}};bs.NotAcceptable=class extends Ts{constructor(e){super(As.ClientError.NotAcceptable,null!=e?e:"Not Acceptable")}};bs.ProxyAuthenticationRequired=class extends Ts{constructor(e){super(As.ClientError.ProxyAuthenticationRequired,null!=e?e:"Proxy Authentication Required")}};bs.RequestTimeout=class extends Ts{constructor(e){super(As.ClientError.RequestTimeout,null!=e?e:"Request Timeout")}};bs.Conflict=class extends Ts{constructor(e){super(As.ClientError.Conflict,null!=e?e:"Conflict")}};bs.Gone=class extends Ts{constructor(e){super(As.ClientError.Gone,null!=e?e:"Gone")}};bs.LengthRequired=class extends Ts{constructor(e){super(As.ClientError.LengthRequired,null!=e?e:"Length Required")}};bs.PreconditionFailed=class extends Ts{constructor(e){super(As.ClientError.PreconditionFailed,null!=e?e:"Precondition Failed")}};bs.PayloadTooLarge=class extends Ts{constructor(e){super(As.ClientError.PayloadTooLarge,null!=e?e:"Payload Too Large")}};bs.URITooLong=class extends Ts{constructor(e){super(As.ClientError.URITooLong,null!=e?e:"URI Too Long")}};bs.UnsupportedMediaType=class extends Ts{constructor(e){super(As.ClientError.UnsupportedMediaType,null!=e?e:"Unsupported Media Type")}};bs.RangeNotSatisfiable=class extends Ts{constructor(e){super(As.ClientError.RangeNotSatisfiable,null!=e?e:"Range Not Satisfiable")}};bs.ExpectationFailed=class extends Ts{constructor(e){super(As.ClientError.ExpectationFailed,null!=e?e:"Expectation Failed")}};bs.MisdirectedRequest=class extends Ts{constructor(e){super(As.ClientError.MisdirectedRequest,null!=e?e:"Misdirected Request")}};bs.UnprocessableEntity=class extends Ts{constructor(e){super(As.ClientError.UnprocessableEntity,null!=e?e:"Unprocessable Entity")}};bs.Locked=class extends Ts{constructor(e){super(As.ClientError.Locked,null!=e?e:"Locked")}};bs.FailedDependency=class extends Ts{constructor(e){super(As.ClientError.FailedDependency,null!=e?e:"Failed Dependency")}};bs.UpgradeRequired=class extends Ts{constructor(e){super(As.ClientError.UpgradeRequired,null!=e?e:"Upgrade Required")}};bs.PreconditionRequired=class extends Ts{constructor(e){super(As.ClientError.PreconditionRequired,null!=e?e:"Precondition Required")}};bs.TooManyRequests=class extends Ts{constructor(e){super(As.ClientError.TooManyRequests,null!=e?e:"Too Many Requests")}};bs.RequestHeaderFieldsTooLarge=class extends Ts{constructor(e){super(As.ClientError.RequestHeaderFieldsTooLarge,null!=e?e:"Request Header Fields Too Large")}};bs.UnavailableForLegalReasons=class extends Ts{constructor(e){super(As.ClientError.UnavailableForLegalReasons,null!=e?e:"Unavailable For Legal Reasons")}};var _s={};_s.NetworkAuthenticationRequired=_s.NotExtended=_s.LoopDetected=_s.InsufficientStorage=_s.VariantAlsoNegotiates=_s.HTTPVersionNotSupported=_s.GatewayTimeout=_s.ServiceUnavailable=_s.BadGateway=_s.NotImplemented=_s.InternalServerError=_s.HTTPServerError=void 0;const Ss=Gi,Es=ls;class ks extends Ss.HTTPError{}_s.HTTPServerError=ks;_s.InternalServerError=class extends ks{constructor(e){super(Es.ServerError.InternalServerError,null!=e?e:"Internal Server Error")}};_s.NotImplemented=class extends ks{constructor(e){super(Es.ServerError.NotImplemented,null!=e?e:"Not Implemented")}};_s.BadGateway=class extends ks{constructor(e){super(Es.ServerError.BadGateway,null!=e?e:"Bad Gateway")}};_s.ServiceUnavailable=class extends ks{constructor(e){super(Es.ServerError.ServiceUnavailable,null!=e?e:"Service Unavailable")}};_s.GatewayTimeout=class extends ks{constructor(e){super(Es.ServerError.GatewayTimeout,null!=e?e:"Gateway Timeout")}};_s.HTTPVersionNotSupported=class extends ks{constructor(e){super(Es.ServerError.HTTPVersionNotSupported,null!=e?e:"HTTP Version Not Supported")}};_s.VariantAlsoNegotiates=class extends ks{constructor(e){super(Es.ServerError.VariantAlsoNegotiates,null!=e?e:"Variant Also Negotiates")}};_s.InsufficientStorage=class extends ks{constructor(e){super(Es.ServerError.InsufficientStorage,null!=e?e:"Insufficient Storage")}};_s.LoopDetected=class extends ks{constructor(e){super(Es.ServerError.LoopDetected,null!=e?e:"Loop Detected")}};_s.NotExtended=class extends ks{constructor(e){super(Es.ServerError.NotExtended,null!=e?e:"Not Extended")}};_s.NetworkAuthenticationRequired=class extends ks{constructor(e){super(Es.ServerError.NetworkAuthenticationRequired,null!=e?e:"Network Authentication Required")}};var Rs={};Rs.fromCode=Rs.UnknownHTTPStatusError=void 0;const Cs=us,xs=hs,Os=ms,Ps=bs,Is=_s;class Ns extends Error{constructor(e){super(`The HTTP status code ${e} is unknown`),this.name=this.constructor.name}}Rs.UnknownHTTPStatusError=Ns,Rs.fromCode=function(e,t){switch(e){case 100:return new Cs.Continue;case 101:return new Cs.SwitchingProtocol;case 102:return new Cs.Processing;case 103:return new Cs.EarlyHints;case 200:return new xs.OK;case 201:return new xs.Created;case 202:return new xs.Accepted;case 203:return new xs.NonAuthoritativeInformation;case 204:return new xs.NoContent;case 205:return new xs.ResetContent;case 206:return new xs.PartialContent;case 207:return new xs.MultiStatus;case 208:return new xs.AlreadyReported;case 226:return new xs.IMUsed;case 300:return new Os.MultipleChoice;case 301:return new Os.MovedPermanently;case 302:return new Os.Found;case 303:return new Os.SeeOther;case 304:return new Os.NotModified;case 307:return new Os.TemporaryRedirect;case 308:return new Os.PermanentRedirect;case 400:return new Ps.BadRequest(t);case 401:return new Ps.Unauthorized(t);case 403:return new Ps.Forbidden(t);case 404:return new Ps.NotFound(t);case 405:return new Ps.MethodNotAllowed(t);case 406:return new Ps.NotAcceptable(t);case 407:return new Ps.ProxyAuthenticationRequired(t);case 408:return new Ps.RequestTimeout(t);case 409:return new Ps.Conflict(t);case 410:return new Ps.Gone(t);case 411:return new Ps.LengthRequired(t);case 412:return new Ps.PreconditionFailed(t);case 413:return new Ps.PayloadTooLarge(t);case 414:return new Ps.URITooLong(t);case 415:return new Ps.UnsupportedMediaType(t);case 416:return new Ps.RangeNotSatisfiable(t);case 417:return new Ps.ExpectationFailed(t);case 421:return new Ps.MisdirectedRequest(t);case 422:return new Ps.UnprocessableEntity(t);case 423:return new Ps.Locked(t);case 424:return new Ps.FailedDependency(t);case 426:return new Ps.UpgradeRequired(t);case 428:return new Ps.PreconditionRequired(t);case 429:return new Ps.TooManyRequests(t);case 431:return new Ps.RequestHeaderFieldsTooLarge(t);case 451:return new Ps.UnavailableForLegalReasons(t);case 500:return new Is.InternalServerError(t);case 501:return new Is.NotImplemented(t);case 502:return new Is.BadGateway(t);case 503:return new Is.ServiceUnavailable(t);case 504:return new Is.GatewayTimeout(t);case 505:return new Is.HTTPVersionNotSupported(t);case 506:return new Is.VariantAlsoNegotiates(t);case 507:return new Is.InsufficientStorage(t);case 508:return new Is.LoopDetected(t);case 510:return new Is.NotExtended(t);case 511:return new Is.NetworkAuthenticationRequired(t);default:throw new Ns(e)}},function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=n&&n.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};r(Wi,e),r(Gi,e),r(us,e),r(hs,e),r(ms,e),r(bs,e),r(_s,e),r(Rs,e)}(Ji);var js={},qs={};!function(e){e.ok=e.HTTPError=void 0;const t=Ji;var n=Ji;Object.defineProperty(e,"HTTPError",{enumerable:!0,get:function(){return n.HTTPError}}),e.ok=async function(e){if(!e.ok){const n=await e.text();throw(0,t.fromCode)(e.status,n)}return e}}(qs);var Fs={};Fs.toJSON=void 0,Fs.toJSON=function(e){return e.json()};var Us={};Us.toText=void 0,Us.toText=async function(e,t){if(t){const n=await e.arrayBuffer();return new TextDecoder(t).decode(n)}return await e.text()};var Ls={};Ls.toLines=void 0,Ls.toLines=async function*(e){const t=e.body.pipeThrough(new TextDecoderStream).getReader();let n="";for(;;){const{value:e,done:r}=await t.read();if(r)break;let o=e;for(;o.includes("\n");){const e=o.indexOf("\n");yield o.slice(0,e),o=o.slice(e+1)}n+=o}n&&(yield n)};var Ms={toNDJSON:void 0};const Ds=ro(),Bs=Ls;Ms.toNDJSON=function(e){return(0,Ds.mapAsync)((0,Bs.toLines)(e),(e=>JSON.parse(e)))};var Hs={toCSV:void 0};const zs=st.exports;Hs.toCSV=async function(e){const t=await e.text();return(0,zs.parse)(t,{header:!0,skipEmptyLines:"greedy"}).data},function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=n&&n.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};r(qs,e),r(Fs,e),r(Us,e),r(Ls,e),r(Ms,e),r(Hs,e)}(js);var $s={},Js={},Ws={exports:{}};const{AbortController:Gs,AbortSignal:Vs}="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0;Ws.exports=Gs,Ws.exports.AbortSignal=Vs,Ws.exports.default=Gs;var Ks,Qs=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Js.AbortController=void 0;const Zs=Qs(Ws.exports);Js.AbortController=null!==(Ks=globalThis.AbortController)&&void 0!==Ks?Ks:Zs.default;var Xs={AbortError:void 0};const Ys=Ro(),ea=b,ta=ro();class na extends Ys.CustomError{static[Symbol.hasInstance](e){return(0,ea.isError)(e)?(0,ta.some)((0,Ys.getErrorNames)(e),(e=>"AbortError"===e)):super[Symbol.hasInstance](e)}}Xs.AbortError=na;var ra,oa={};oa.AbortSignal=void 0;const ia=Ws.exports;oa.AbortSignal=null!==(ra=globalThis.AbortSignal)&&void 0!==ra?ra:ia.AbortSignal;var sa={raceAbortSignals:void 0};const aa=Js;sa.raceAbortSignals=function(e){const t=new aa.AbortController,n=[];for(const o of e)if(o){if(o.aborted){t.abort();break}o.addEventListener("abort",r),n.push(o)}return t.signal;function r(){t.abort(),n.forEach((e=>e.removeEventListener("abort",r)))}};var ca={timeoutSignal:void 0};const ua=Js;ca.timeoutSignal=function(e){const t=new ua.AbortController;return setTimeout((()=>t.abort()),e),t.signal};var la={withAbortSignal:void 0};const da=Xs;la.withAbortSignal=async function(e,t){return new Promise((async(n,r)=>{if(e.aborted)return o();e.addEventListener("abort",o);try{n(await t())}catch(e){r(e)}finally{e.removeEventListener("abort",o)}function o(){r(new da.AbortError)}}))},function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=n&&n.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};r(Js,e),r(Xs,e),r(oa,e),r(sa,e),r(ca,e),r(la,e)}($s);class fa{constructor(e){this.options=e}getCommonTransformers(e){var t,n;return[Ye.url(this.options.server),Ye.bearerAuth(this.options.adminPassword),Ye.signal($s.raceAbortSignals([e.signal,!1!==e.timeout&&(null!==(t=e.timeout&&$s.timeoutSignal(e.timeout))&&void 0!==t?t:this.options.timeout&&$s.timeoutSignal(this.options.timeout))])),(null!==(n=e.keepalive)&&void 0!==n?n:this.options.keepalive)&&Ye.keepalive(),Ye.header("Accept-Version","0.1.0")]}}class ha{constructor(e){this.options=e}getCommonTransformers(e){var t,n,r;const o="token"in e&&null!==(t=e.token)&&void 0!==t?t:this.options.token,i=this.options.basicAuth;return[Ye.url(this.options.server),i&&Ye.basicAuth(i.username,i.password),o&&Ye.searchParams({token:o}),Ye.signal($s.raceAbortSignals([e.signal,!1!==e.timeout&&(null!==(n=e.timeout&&$s.timeoutSignal(e.timeout))&&void 0!==n?n:this.options.timeout&&$s.timeoutSignal(this.options.timeout))])),(null!==(r=e.keepalive)&&void 0!==r?r:this.options.keepalive)&&Ye.keepalive(),Ye.header("Accept-Version","0.1.0")]}append(e,n,o,i,s={}){return t(this,void 0,void 0,(function*(){const t=m.post(...this.getCommonTransformers(s),Ye.pathname(`/estore/${e}/items/${n}/events`),b.isntUndefined(i)&&Ye.header("If-Match",`${i}`),Ye.json(o));yield r.fetch(t).then(js.ok)}))}getEvent(e,n,o,i={}){return t(this,void 0,void 0,(function*(){const t=m.get(...this.getCommonTransformers(i),Ye.pathname(`/estore/${e}/items/${n}/events/${o}`));try{return yield r.fetch(t).then(js.ok).then(js.toJSON)}catch(e){if(e instanceof Ji.NotFound)return;throw e}}))}getEvents(e,n,o={}){return t(this,void 0,void 0,(function*(){const t=m.get(...this.getCommonTransformers(o),Ye.pathname(`/estore/${e}/items/${n}/events`));try{return yield r.fetch(t).then(js.ok).then(js.toJSON)}catch(e){if(e instanceof Ji.NotFound)return;throw e}}))}getSize(e,n,o={}){return t(this,void 0,void 0,(function*(){const t=m.get(...this.getCommonTransformers(o),Ye.pathname(`/estore/${e}/items/${n}/size`));return yield r.fetch(t).then(js.ok).then(js.toJSON)}))}has(e,n,o={}){return t(this,void 0,void 0,(function*(){const t=m.head(...this.getCommonTransformers(o),Ye.pathname(`/estore/${e}/items/${n}`));try{return yield r.fetch(t).then(js.ok),!0}catch(e){if(e instanceof Ji.NotFound)return!1;throw e}}))}del(e,n,o={}){return t(this,void 0,void 0,(function*(){const t=m.del(...this.getCommonTransformers(o),Ye.pathname(`/estore/${e}/items/${n}`));yield r.fetch(t).then(js.ok)}))}clear(e,n={}){return t(this,void 0,void 0,(function*(){const t=m.del(...this.getCommonTransformers(n),Ye.pathname(`/estore/${e}`));yield r.fetch(t).then(js.ok)}))}getAllItemIds(e,n={}){return t(this,void 0,void 0,(function*(){const t=m.get(...this.getCommonTransformers(n),Ye.pathname(`/estore/${e}/items`));return yield r.fetch(t).then(js.ok).then(js.toJSON)}))}getAllNamespaces(e={}){return t(this,void 0,void 0,(function*(){const t=m.get(...this.getCommonTransformers(e),Ye.pathname("/estore"));return yield r.fetch(t).then(js.ok).then(js.toJSON)}))}stats(e,n={}){return t(this,void 0,void 0,(function*(){const t=m.get(...this.getCommonTransformers(n),Ye.pathname(`/estore/${e}/stats`));return yield r.fetch(t).then(js.ok).then(js.toJSON)}))}}class pa extends fa{getNamespaces(e={}){return t(this,void 0,void 0,(function*(){const t=m.get(...this.getCommonTransformers(e),Ye.pathname("/admin/estore-with-json-schema"));return yield r.fetch(t).then(js.ok).then(js.toJSON)}))}get(e,n={}){return t(this,void 0,void 0,(function*(){const t=m.get(...this.getCommonTransformers(n),Ye.pathname(`/admin/estore/${e}/json-schema`));return yield r.fetch(t).then(js.ok).then(js.toJSON)}))}set(e,n,o={}){return t(this,void 0,void 0,(function*(){const t=m.put(...this.getCommonTransformers(o),Ye.pathname(`/admin/estore/${e}/json-schema`),Ye.json(n));yield r.fetch(t).then(js.ok)}))}remove(e,n={}){return t(this,void 0,void 0,(function*(){const t=m.del(...this.getCommonTransformers(n),Ye.pathname(`/admin/estore/${e}/json-schema`));yield r.fetch(t).then(js.ok)}))}}class va extends fa{getNamespaces(e={}){return t(this,void 0,void 0,(function*(){const t=m.get(...this.getCommonTransformers(e),Ye.pathname("/admin/blacklist"));return yield r.fetch(t).then(js.ok).then(js.toJSON)}))}add(e,n={}){return t(this,void 0,void 0,(function*(){const t=m.put(...this.getCommonTransformers(n),Ye.pathname(`/admin/blacklist/${e}`));yield r.fetch(t).then(js.ok)}))}remove(e,n={}){return t(this,void 0,void 0,(function*(){const t=m.del(...this.getCommonTransformers(n),Ye.pathname(`/admin/blacklist/${e}`));yield r.fetch(t).then(js.ok)}))}}class ma extends fa{getNamespaces(e={}){return t(this,void 0,void 0,(function*(){const t=m.get(...this.getCommonTransformers(e),Ye.pathname("/admin/whitelist"));return yield r.fetch(t).then(js.ok).then(js.toJSON)}))}add(e,n={}){return t(this,void 0,void 0,(function*(){const t=m.put(...this.getCommonTransformers(n),Ye.pathname(`/admin/whitelist/${e}`));yield r.fetch(t).then(js.ok)}))}remove(e,n={}){return t(this,void 0,void 0,(function*(){const t=m.del(...this.getCommonTransformers(n),Ye.pathname(`/admin/whitelist/${e}`));yield r.fetch(t).then(js.ok)}))}}class ya extends fa{getNamespaces(e={}){return t(this,void 0,void 0,(function*(){const t=m.get(...this.getCommonTransformers(e),Ye.pathname("/admin/estore-with-token-policies"));return yield r.fetch(t).then(js.ok).then(js.toJSON)}))}get(e,n={}){return t(this,void 0,void 0,(function*(){const t=m.get(...this.getCommonTransformers(n),Ye.pathname(`/admin/estore/${e}/token-policies`));return yield r.fetch(t).then(js.ok).then(js.toJSON)}))}setWriteTokenRequired(e,n,o={}){return t(this,void 0,void 0,(function*(){const t=m.put(...this.getCommonTransformers(o),Ye.pathname(`/admin/estore/${e}/token-policies/write-token-required`),Ye.json(n));yield r.fetch(t).then(js.ok)}))}removeWriteTokenRequired(e,n={}){return t(this,void 0,void 0,(function*(){const t=m.del(...this.getCommonTransformers(n),Ye.pathname(`/admin/estore/${e}/token-policies/write-token-required`));yield r.fetch(t).then(js.ok)}))}setReadTokenRequired(e,n,o={}){return t(this,void 0,void 0,(function*(){const t=m.put(...this.getCommonTransformers(o),Ye.pathname(`/admin/estore/${e}/token-policies/read-token-required`),Ye.json(n));yield r.fetch(t).then(js.ok)}))}removeReadTokenRequired(e,n={}){return t(this,void 0,void 0,(function*(){const t=m.del(...this.getCommonTransformers(n),Ye.pathname(`/admin/estore/${e}/token-policies/read-token-required`));yield r.fetch(t).then(js.ok)}))}setDeleteTokenRequired(e,n,o={}){return t(this,void 0,void 0,(function*(){const t=m.put(...this.getCommonTransformers(o),Ye.pathname(`/admin/estore/${e}/token-policies/delete-token-required`),Ye.json(n));yield r.fetch(t).then(js.ok)}))}removeDeleteTokenRequired(e,n={}){return t(this,void 0,void 0,(function*(){const t=m.del(...this.getCommonTransformers(n),Ye.pathname(`/admin/estore/${e}/token-policies/delete-token-required`));yield r.fetch(t).then(js.ok)}))}}class ga extends fa{getNamespaces(e={}){return t(this,void 0,void 0,(function*(){const t=m.get(...this.getCommonTransformers(e),Ye.pathname("/admin/estore-with-tokens"));return yield r.fetch(t).then(js.ok).then(js.toJSON)}))}getTokens(e,n={}){return t(this,void 0,void 0,(function*(){const t=m.get(...this.getCommonTransformers(n),Ye.pathname(`/admin/estore/${e}/tokens`));return yield r.fetch(t).then(js.ok).then(js.toJSON)}))}addWriteToken(e,n,o={}){return t(this,void 0,void 0,(function*(){const t=m.put(...this.getCommonTransformers(o),Ye.pathname(`/admin/estore/${e}/tokens/${n}/write`));yield r.fetch(t).then(js.ok)}))}removeWriteToken(e,n,o={}){return t(this,void 0,void 0,(function*(){const t=m.del(...this.getCommonTransformers(o),Ye.pathname(`/admin/estore/${e}/tokens/${n}/write`));yield r.fetch(t).then(js.ok)}))}addReadToken(e,n,o={}){return t(this,void 0,void 0,(function*(){const t=m.put(...this.getCommonTransformers(o),Ye.pathname(`/admin/estore/${e}/tokens/${n}/read`));yield r.fetch(t).then(js.ok)}))}removeReadToken(e,n,o={}){return t(this,void 0,void 0,(function*(){const t=m.del(...this.getCommonTransformers(o),Ye.pathname(`/admin/estore/${e}/tokens/${n}/read`));yield r.fetch(t).then(js.ok)}))}addDeleteToken(e,n,o={}){return t(this,void 0,void 0,(function*(){const t=m.put(...this.getCommonTransformers(o),Ye.pathname(`/admin/estore/${e}/tokens/${n}/delete`));yield r.fetch(t).then(js.ok)}))}removeDeleteToken(e,n,o={}){return t(this,void 0,void 0,(function*(){const t=m.del(...this.getCommonTransformers(o),Ye.pathname(`/admin/estore/${e}/tokens/${n}/delete`));yield r.fetch(t).then(js.ok)}))}}class ba{constructor(e){this.options=e,this.JsonSchema=new pa(this.options),this.Blacklist=new va(this.options),this.Whitelist=new ma(this.options),this.TokenPolicy=new ya(this.options),this.Token=new ga(this.options)}}var wa=r.AbortError,Aa=Ji.HTTPClientError,Ta=js.HTTPError;export{wa as AbortError,ha as EStoreClient,ba as EStoreManager,Aa as HTTPClientError,Ta as HTTPError};
|
|
16
16
|
//# sourceMappingURL=index.min.mjs.map
|