@blackglory/estore-js 0.1.0

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