From bd4a26e1dca43ee4a3c89de065f9ffe2a5d993a2 Mon Sep 17 00:00:00 2001 From: Alexandr Balasyan Date: Tue, 27 Feb 2024 10:43:27 +0300 Subject: [PATCH] fixed bin actions --- bin/actions.js | 2 +- dist/client/metastocle.client.js | 4 ++-- package-lock.json | 12 ++++++------ package.json | 4 ++-- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/bin/actions.js b/bin/actions.js index 6599304..8791b27 100644 --- a/bin/actions.js +++ b/bin/actions.js @@ -1,7 +1,7 @@ import chalk from "chalk"; import yargs from "yargs"; import utils from "./utils.js"; -import * as _actions from "spreadable/bin/actions.js"; +import _actions from "spreadable/bin/actions.js"; const argv = yargs(process.argv).argv; const actions = Object.assign({}, _actions); diff --git a/dist/client/metastocle.client.js b/dist/client/metastocle.client.js index 37fa241..9366e0a 100644 --- a/dist/client/metastocle.client.js +++ b/dist/client/metastocle.client.js @@ -1,6 +1,6 @@ /*! * metastocle client - * @version 0.3.4 + * @version 0.3.5 * {@link https://github.com/ortexx/metastocle} */ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ClientMetastocle=e():t.ClientMetastocle=e()}(self,(()=>(()=>{var t={4148:(t,e,r)=>{"use strict";var n=r(5606),o=r(6763);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function s(t,e){for(var r=0;r1?r-1:0),o=1;o1?r-1:0),o=1;o1?r-1:0),o=1;o1?r-1:0),o=1;o{"use strict";var n=r(5606);function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t){for(var e=1;et.length)&&(r=t.length),t.substring(r-e.length,r)===e}var w="",E="",A="",j="",O={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function S(t){var e=Object.keys(t),r=Object.create(Object.getPrototypeOf(t));return e.forEach((function(e){r[e]=t[e]})),Object.defineProperty(r,"message",{value:t.message}),r}function _(t){return b(t,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function x(t,e,r){var o="",i="",s=0,a="",c=!1,u=_(t),f=u.split("\n"),l=_(e).split("\n"),p=0,h="";if("strictEqual"===r&&"object"===d(t)&&"object"===d(e)&&null!==t&&null!==e&&(r="strictEqualObject"),1===f.length&&1===l.length&&f[0]!==l[0]){var y=f[0].length+l[0].length;if(y<=10){if(!("object"===d(t)&&null!==t||"object"===d(e)&&null!==e||0===t&&0===e))return"".concat(O[r],"\n\n")+"".concat(f[0]," !== ").concat(l[0],"\n")}else if("strictEqualObject"!==r){if(y<(n.stderr&&n.stderr.isTTY?n.stderr.columns:80)){for(;f[0][p]===l[0][p];)p++;p>2&&(h="\n ".concat(function(t,e){if(e=Math.floor(e),0==t.length||0==e)return"";var r=t.length*e;for(e=Math.floor(Math.log(e)/Math.log(2));e;)t+=t,e--;return t+t.substring(0,r-t.length)}(" ",p),"^"),p=0)}}}for(var g=f[f.length-1],b=l[l.length-1];g===b&&(p++<2?a="\n ".concat(g).concat(a):o=g,f.pop(),l.pop(),0!==f.length&&0!==l.length);)g=f[f.length-1],b=l[l.length-1];var v=Math.max(f.length,l.length);if(0===v){var S=u.split("\n");if(S.length>30)for(S[26]="".concat(w,"...").concat(j);S.length>27;)S.pop();return"".concat(O.notIdentical,"\n\n").concat(S.join("\n"),"\n")}p>3&&(a="\n".concat(w,"...").concat(j).concat(a),c=!0),""!==o&&(a="\n ".concat(o).concat(a),o="");var x=0,T=O[r]+"\n".concat(E,"+ actual").concat(j," ").concat(A,"- expected").concat(j),R=" ".concat(w,"...").concat(j," Lines skipped");for(p=0;p1&&p>2&&(P>4?(i+="\n".concat(w,"...").concat(j),c=!0):P>3&&(i+="\n ".concat(l[p-2]),x++),i+="\n ".concat(l[p-1]),x++),s=p,o+="\n".concat(A,"-").concat(j," ").concat(l[p]),x++;else if(l.length1&&p>2&&(P>4?(i+="\n".concat(w,"...").concat(j),c=!0):P>3&&(i+="\n ".concat(f[p-2]),x++),i+="\n ".concat(f[p-1]),x++),s=p,i+="\n".concat(E,"+").concat(j," ").concat(f[p]),x++;else{var I=l[p],k=f[p],B=k!==I&&(!m(k,",")||k.slice(0,-1)!==I);B&&m(I,",")&&I.slice(0,-1)===k&&(B=!1,k+=","),B?(P>1&&p>2&&(P>4?(i+="\n".concat(w,"...").concat(j),c=!0):P>3&&(i+="\n ".concat(f[p-2]),x++),i+="\n ".concat(f[p-1]),x++),s=p,i+="\n".concat(E,"+").concat(j," ").concat(k),o+="\n".concat(A,"-").concat(j," ").concat(I),x+=2):(i+=o,o="",1!==P&&0!==p||(i+="\n ".concat(k),x++))}if(x>20&&p30)for(h[26]="".concat(w,"...").concat(j);h.length>27;)h.pop();e=1===h.length?p.call(this,"".concat(l," ").concat(h[0])):p.call(this,"".concat(l,"\n\n").concat(h.join("\n"),"\n"))}else{var y=_(s),g="",b=O[o];"notDeepEqual"===o||"notEqual"===o?(y="".concat(O[o],"\n\n").concat(y)).length>1024&&(y="".concat(y.slice(0,1021),"...")):(g="".concat(_(a)),y.length>512&&(y="".concat(y.slice(0,509),"...")),g.length>512&&(g="".concat(g.slice(0,509),"...")),"deepEqual"===o||"equal"===o?y="".concat(b,"\n\n").concat(y,"\n\nshould equal\n\n"):g=" ".concat(o," ").concat(g)),e=p.call(this,"".concat(y).concat(g))}return Error.stackTraceLimit=c,e.generatedMessage=!r,Object.defineProperty(f(e),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),e.code="ERR_ASSERTION",e.actual=s,e.expected=a,e.operator=o,Error.captureStackTrace&&Error.captureStackTrace(f(e),i),e.stack,e.name="AssertionError",u(e)}return s=m,(c=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:e,value:function(t,e){return b(this,i(i({},e),{},{customInspect:!1,depth:0}))}}])&&a(s.prototype,c),l&&a(s,l),Object.defineProperty(s,"prototype",{writable:!1}),m}(l(Error),b.custom);t.exports=T},9597:(t,e,r)=>{"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){for(var r=0;r2?"one of ".concat(e," ").concat(t.slice(0,r-1).join(", "),", or ")+t[r-1]:2===r?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}l("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),l("ERR_INVALID_ARG_TYPE",(function(t,e,o){var i,s,a,u;if(void 0===c&&(c=r(4148)),c("string"==typeof t,"'name' must be a string"),"string"==typeof e&&(s="not ",e.substr(!a||a<0?0:+a,s.length)===s)?(i="must not be",e=e.replace(/^not /,"")):i="must be",function(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}(t," argument"))u="The ".concat(t," ").concat(i," ").concat(p(e,"type"));else{var f=function(t,e,r){return"number"!=typeof r&&(r=0),!(r+e.length>t.length)&&-1!==t.indexOf(e,r)}(t,".")?"property":"argument";u='The "'.concat(t,'" ').concat(f," ").concat(i," ").concat(p(e,"type"))}return u+=". Received type ".concat(n(o))}),TypeError),l("ERR_INVALID_ARG_VALUE",(function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===u&&(u=r(537));var o=u.inspect(e);return o.length>128&&(o="".concat(o.slice(0,128),"...")),"The argument '".concat(t,"' ").concat(n,". Received ").concat(o)}),TypeError,RangeError),l("ERR_INVALID_RETURN_VALUE",(function(t,e,r){var o;return o=r&&r.constructor&&r.constructor.name?"instance of ".concat(r.constructor.name):"type ".concat(n(r)),"Expected ".concat(t,' to be returned from the "').concat(e,'"')+" function but got ".concat(o,".")}),TypeError),l("ERR_MISSING_ARGS",(function(){for(var t=arguments.length,e=new Array(t),n=0;n0,"At least one arg needs to be specified");var o="The ",i=e.length;switch(e=e.map((function(t){return'"'.concat(t,'"')})),i){case 1:o+="".concat(e[0]," argument");break;case 2:o+="".concat(e[0]," and ").concat(e[1]," arguments");break;default:o+=e.slice(0,i-1).join(", "),o+=", and ".concat(e[i-1]," arguments")}return"".concat(o," must be specified")}),TypeError),t.exports.codes=f},2299:(t,e,r)=>{"use strict";function n(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,s,a=[],c=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(a.push(n.value),a.length!==e);c=!0);}catch(t){u=!0,o=t}finally{try{if(!c&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw o}}return a}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r10)return!0;for(var e=0;e57)return!0}return 10===t.length&&t>=Math.pow(2,32)}function B(t){return Object.keys(t).filter(k).concat(f(t).filter(Object.prototype.propertyIsEnumerable.bind(t)))} @@ -24,4 +24,4 @@ const o=r(7526),i=r(251),s="function"==typeof Symbol&&"function"==typeof Symbol. * MIT Licensed */t.exports=function(t,e){if("string"==typeof t)return s(t);if("number"==typeof t)return i(t,e);return null},t.exports.format=i,t.exports.parse=s;var e=/\B(?=(\d{3})+(?!\d))/g,r=/(?:\.0*|(\.[^0]+)0+)$/,n={b:1,kb:1024,mb:1<<20,gb:1<<30,tb:Math.pow(1024,4),pb:Math.pow(1024,5)},o=/^((-|\+)?(\d+(?:\.\d+)?)) *(kb|mb|gb|tb|pb)$/i;function i(t,o){if(!Number.isFinite(t))return null;var i=Math.abs(t),s=o&&o.thousandsSeparator||"",a=o&&o.unitSeparator||"",c=o&&void 0!==o.decimalPlaces?o.decimalPlaces:2,u=Boolean(o&&o.fixedDecimals),f=o&&o.unit||"";f&&n[f.toLowerCase()]||(f=i>=n.pb?"PB":i>=n.tb?"TB":i>=n.gb?"GB":i>=n.mb?"MB":i>=n.kb?"KB":"B");var l=(t/n[f.toLowerCase()]).toFixed(c);return u||(l=l.replace(r,"$1")),s&&(l=l.split(".").map((function(t,r){return 0===r?t.replace(e,s):t})).join(".")),l+a+f}function s(t){if("number"==typeof t&&!isNaN(t))return t;if("string"!=typeof t)return null;var e,r=o.exec(t),i="b";return r?(e=parseFloat(r[1]),i=r[4].toLowerCase()):(e=parseInt(t,10),i="b"),isNaN(e)?null:Math.floor(n[i]*e)}},8075:(t,e,r)=>{"use strict";var n=r(453),o=r(487),i=o(n("String.prototype.indexOf"));t.exports=function(t,e){var r=n(t,!!e);return"function"==typeof r&&i(t,".prototype.")>-1?o(r):r}},487:(t,e,r)=>{"use strict";var n=r(6743),o=r(453),i=r(6897),s=r(9675),a=o("%Function.prototype.apply%"),c=o("%Function.prototype.call%"),u=o("%Reflect.apply%",!0)||n.call(c,a),f=r(655),l=o("%Math.max%");t.exports=function(t){if("function"!=typeof t)throw new s("a function is required");var e=u(n,c,arguments);return i(e,1+l(0,t.length-(arguments.length-1)),!0)};var p=function(){return u(n,a,arguments)};f?f(t.exports,"apply",{value:p}):t.exports.apply=p},6763:(t,e,r)=>{var n=r(537),o=r(4148);function i(){return(new Date).getTime()}var s,a=Array.prototype.slice,c={};s=void 0!==r.g&&r.g.console?r.g.console:"undefined"!=typeof window&&window.console?window.console:{};for(var u=[[function(){},"log"],[function(){s.log.apply(s,arguments)},"info"],[function(){s.log.apply(s,arguments)},"warn"],[function(){s.warn.apply(s,arguments)},"error"],[function(t){c[t]=i()},"time"],[function(t){var e=c[t];if(!e)throw new Error("No such label: "+t);delete c[t];var r=i()-e;s.log(t+": "+r+"ms")},"timeEnd"],[function(){var t=new Error;t.name="Trace",t.message=n.format.apply(null,arguments),s.error(t.stack)},"trace"],[function(t){s.log(n.inspect(t)+"\n")},"dir"],[function(t){if(!t){var e=a.call(arguments,1);o.ok(!1,n.format.apply(null,e))}},"assert"]],f=0;f{"use strict";var n=r(655),o=r(8068),i=r(9675),s=r(5795);t.exports=function(t,e,r){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new i("`obj` must be an object or a function`");if("string"!=typeof e&&"symbol"!=typeof e)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new i("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,f=arguments.length>6&&arguments[6],l=!!s&&s(t,e);if(n)n(t,e,{configurable:null===u&&l?l.configurable:!u,enumerable:null===a&&l?l.enumerable:!a,value:r,writable:null===c&&l?l.writable:!c});else{if(!f&&(a||c||u))throw new o("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");t[e]=r}}},8452:(t,e,r)=>{"use strict";var n=r(1189),o="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),i=Object.prototype.toString,s=Array.prototype.concat,a=r(41),c=r(592)(),u=function(t,e,r,n){if(e in t)if(!0===n){if(t[e]===r)return}else if("function"!=typeof(o=n)||"[object Function]"!==i.call(o)||!n())return;var o;c?a(t,e,r,!0):a(t,e,r)},f=function(t,e){var r=arguments.length>2?arguments[2]:{},i=n(e);o&&(i=s.call(i,Object.getOwnPropertySymbols(e)));for(var a=0;a{"use strict";var n=r(453)("%Object.defineProperty%",!0)||!1;if(n)try{n({},"a",{value:1})}catch(t){n=!1}t.exports=n},1237:t=>{"use strict";t.exports=EvalError},9383:t=>{"use strict";t.exports=Error},9290:t=>{"use strict";t.exports=RangeError},9538:t=>{"use strict";t.exports=ReferenceError},8068:t=>{"use strict";t.exports=SyntaxError},9675:t=>{"use strict";t.exports=TypeError},5345:t=>{"use strict";t.exports=URIError},2682:(t,e,r)=>{"use strict";var n=r(9600),o=Object.prototype.toString,i=Object.prototype.hasOwnProperty;t.exports=function(t,e,r){if(!n(e))throw new TypeError("iterator must be a function");var s;arguments.length>=3&&(s=r),"[object Array]"===o.call(t)?function(t,e,r){for(var n=0,o=t.length;n{t.exports="object"==typeof self?self.FormData:window.FormData},9353:t=>{"use strict";var e=Object.prototype.toString,r=Math.max,n=function(t,e){for(var r=[],n=0;n{"use strict";var n=r(9353);t.exports=Function.prototype.bind||n},453:(t,e,r)=>{"use strict";var n,o=r(9383),i=r(1237),s=r(9290),a=r(9538),c=r(8068),u=r(9675),f=r(5345),l=Function,p=function(t){try{return l('"use strict"; return ('+t+").constructor;")()}catch(t){}},h=Object.getOwnPropertyDescriptor;if(h)try{h({},"")}catch(t){h=null}var y=function(){throw new u},g=h?function(){try{return y}catch(t){try{return h(arguments,"callee").get}catch(t){return y}}}():y,d=r(4039)(),b=r(24)(),v=Object.getPrototypeOf||(b?function(t){return t.__proto__}:null),m={},w="undefined"!=typeof Uint8Array&&v?v(Uint8Array):n,E={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":d&&v?v([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":m,"%AsyncGenerator%":m,"%AsyncGeneratorFunction%":m,"%AsyncIteratorPrototype%":m,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":i,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":l,"%GeneratorFunction%":m,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":d&&v?v(v([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&d&&v?v((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":s,"%ReferenceError%":a,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&d&&v?v((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":d&&v?v(""[Symbol.iterator]()):n,"%Symbol%":d?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":g,"%TypedArray%":w,"%TypeError%":u,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":f,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};if(v)try{null.error}catch(t){var A=v(v(t));E["%Error.prototype%"]=A}var j=function t(e){var r;if("%AsyncFunction%"===e)r=p("async function () {}");else if("%GeneratorFunction%"===e)r=p("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=p("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var o=t("%AsyncGenerator%");o&&v&&(r=v(o.prototype))}return E[e]=r,r},O={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},S=r(6743),_=r(9957),x=S.call(Function.call,Array.prototype.concat),T=S.call(Function.apply,Array.prototype.splice),R=S.call(Function.call,String.prototype.replace),P=S.call(Function.call,String.prototype.slice),I=S.call(Function.call,RegExp.prototype.exec),k=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,B=/\\(\\)?/g,U=function(t,e){var r,n=t;if(_(O,n)&&(n="%"+(r=O[n])[0]+"%"),_(E,n)){var o=E[n];if(o===m&&(o=j(n)),void 0===o&&!e)throw new u("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new c("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new u('"allowMissing" argument must be a boolean');if(null===I(/^%?[^%]*%?$/,t))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(t){var e=P(t,0,1),r=P(t,-1);if("%"===e&&"%"!==r)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new c("invalid intrinsic syntax, expected opening `%`");var n=[];return R(t,k,(function(t,e,r,o){n[n.length]=r?R(o,B,"$1"):e||t})),n}(t),n=r.length>0?r[0]:"",o=U("%"+n+"%",e),i=o.name,s=o.value,a=!1,f=o.alias;f&&(n=f[0],T(r,x([0,1],f)));for(var l=1,p=!0;l=r.length){var b=h(s,y);s=(p=!!b)&&"get"in b&&!("originalValue"in b.get)?b.get:s[y]}else p=_(s,y),s=s[y];p&&!a&&(E[i]=s)}}return s}},5795:(t,e,r)=>{"use strict";var n=r(453)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(t){n=null}t.exports=n},592:(t,e,r)=>{"use strict";var n=r(655),o=function(){return!!n};o.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch(t){return!0}},t.exports=o},24:t=>{"use strict";var e={foo:{}},r=Object;t.exports=function(){return{__proto__:e}.foo===e.foo&&!({__proto__:null}instanceof r)}},4039:(t,e,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,o=r(1333);t.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&o())))}},1333:t=>{"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},9092:(t,e,r)=>{"use strict";var n=r(1333);t.exports=function(){return n()&&!!Symbol.toStringTag}},9957:(t,e,r)=>{"use strict";var n=Function.prototype.call,o=Object.prototype.hasOwnProperty,i=r(6743);t.exports=i.call(n,o)},251:(t,e)=>{ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ -e.read=function(t,e,r,n,o){var i,s,a=8*o-n-1,c=(1<>1,f=-7,l=r?o-1:0,p=r?-1:1,h=t[e+l];for(l+=p,i=h&(1<<-f)-1,h>>=-f,f+=a;f>0;i=256*i+t[e+l],l+=p,f-=8);for(s=i&(1<<-f)-1,i>>=-f,f+=n;f>0;s=256*s+t[e+l],l+=p,f-=8);if(0===i)i=1-u;else{if(i===c)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,n),i-=u}return(h?-1:1)*s*Math.pow(2,i-n)},e.write=function(t,e,r,n,o,i){var s,a,c,u=8*i-o-1,f=(1<>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:i-1,y=n?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=f):(s=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-s))<1&&(s--,c*=2),(e+=s+l>=1?p/c:p*Math.pow(2,1-l))*c>=2&&(s++,c/=2),s+l>=f?(a=0,s=f):s+l>=1?(a=(e*c-1)*Math.pow(2,o),s+=l):(a=e*Math.pow(2,l-1)*Math.pow(2,o),s=0));o>=8;t[r+h]=255&a,h+=y,a/=256,o-=8);for(s=s<0;t[r+h]=255&s,h+=y,s/=256,u-=8);t[r+h-y]|=128*g}},6698:t=>{"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},7244:(t,e,r)=>{"use strict";var n=r(9092)(),o=r(8075)("Object.prototype.toString"),i=function(t){return!(n&&t&&"object"==typeof t&&Symbol.toStringTag in t)&&"[object Arguments]"===o(t)},s=function(t){return!!i(t)||null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Array]"!==o(t)&&"[object Function]"===o(t.callee)},a=function(){return i(arguments)}();i.isLegacyArguments=s,t.exports=a?i:s},9600:t=>{"use strict";var e,r,n=Function.prototype.toString,o="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof o&&"function"==typeof Object.defineProperty)try{e=Object.defineProperty({},"length",{get:function(){throw r}}),r={},o((function(){throw 42}),null,e)}catch(t){t!==r&&(o=null)}else o=null;var i=/^\s*class\b/,s=function(t){try{var e=n.call(t);return i.test(e)}catch(t){return!1}},a=function(t){try{return!s(t)&&(n.call(t),!0)}catch(t){return!1}},c=Object.prototype.toString,u="function"==typeof Symbol&&!!Symbol.toStringTag,f=!(0 in[,]),l=function(){return!1};if("object"==typeof document){var p=document.all;c.call(p)===c.call(document.all)&&(l=function(t){if((f||!t)&&(void 0===t||"object"==typeof t))try{var e=c.call(t);return("[object HTMLAllCollection]"===e||"[object HTML document.all class]"===e||"[object HTMLCollection]"===e||"[object Object]"===e)&&null==t("")}catch(t){}return!1})}t.exports=o?function(t){if(l(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;try{o(t,null,e)}catch(t){if(t!==r)return!1}return!s(t)&&a(t)}:function(t){if(l(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if(u)return a(t);if(s(t))return!1;var e=c.call(t);return!("[object Function]"!==e&&"[object GeneratorFunction]"!==e&&!/^\[object HTML/.test(e))&&a(t)}},8184:(t,e,r)=>{"use strict";var n,o=Object.prototype.toString,i=Function.prototype.toString,s=/^\s*(?:function)?\*/,a=r(9092)(),c=Object.getPrototypeOf;t.exports=function(t){if("function"!=typeof t)return!1;if(s.test(i.call(t)))return!0;if(!a)return"[object GeneratorFunction]"===o.call(t);if(!c)return!1;if(void 0===n){var e=function(){if(!a)return!1;try{return Function("return function*() {}")()}catch(t){}}();n=!!e&&c(e)}return c(t)===n}},3003:t=>{"use strict";t.exports=function(t){return t!=t}},4133:(t,e,r)=>{"use strict";var n=r(487),o=r(8452),i=r(3003),s=r(6642),a=r(2464),c=n(s(),Number);o(c,{getPolyfill:s,implementation:i,shim:a}),t.exports=c},6642:(t,e,r)=>{"use strict";var n=r(3003);t.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:n}},2464:(t,e,r)=>{"use strict";var n=r(8452),o=r(6642);t.exports=function(){var t=o();return n(Number,{isNaN:t},{isNaN:function(){return Number.isNaN!==t}}),t}},5680:(t,e,r)=>{"use strict";var n=r(5767);t.exports=function(t){return!!n(t)}},9211:t=>{"use strict";var e=function(t){return t!=t};t.exports=function(t,r){return 0===t&&0===r?1/t==1/r:t===r||!(!e(t)||!e(r))}},7653:(t,e,r)=>{"use strict";var n=r(8452),o=r(487),i=r(9211),s=r(9394),a=r(6576),c=o(s(),Object);n(c,{getPolyfill:s,implementation:i,shim:a}),t.exports=c},9394:(t,e,r)=>{"use strict";var n=r(9211);t.exports=function(){return"function"==typeof Object.is?Object.is:n}},6576:(t,e,r)=>{"use strict";var n=r(9394),o=r(8452);t.exports=function(){var t=n();return o(Object,{is:t},{is:function(){return Object.is!==t}}),t}},8875:(t,e,r)=>{"use strict";var n;if(!Object.keys){var o=Object.prototype.hasOwnProperty,i=Object.prototype.toString,s=r(1093),a=Object.prototype.propertyIsEnumerable,c=!a.call({toString:null},"toString"),u=a.call((function(){}),"prototype"),f=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],l=function(t){var e=t.constructor;return e&&e.prototype===t},p={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("undefined"==typeof window)return!1;for(var t in window)try{if(!p["$"+t]&&o.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{l(window[t])}catch(t){return!0}}catch(t){return!0}return!1}();n=function(t){var e=null!==t&&"object"==typeof t,r="[object Function]"===i.call(t),n=s(t),a=e&&"[object String]"===i.call(t),p=[];if(!e&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var y=u&&r;if(a&&t.length>0&&!o.call(t,0))for(var g=0;g0)for(var d=0;d{"use strict";var n=Array.prototype.slice,o=r(1093),i=Object.keys,s=i?function(t){return i(t)}:r(8875),a=Object.keys;s.shim=function(){if(Object.keys){var t=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);t||(Object.keys=function(t){return o(t)?a(n.call(t)):a(t)})}else Object.keys=s;return Object.keys||s},t.exports=s},1093:t=>{"use strict";var e=Object.prototype.toString;t.exports=function(t){var r=e.call(t),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===e.call(t.callee)),n}},8403:(t,e,r)=>{"use strict";var n=r(1189),o=r(1333)(),i=r(8075),s=Object,a=i("Array.prototype.push"),c=i("Object.prototype.propertyIsEnumerable"),u=o?Object.getOwnPropertySymbols:null;t.exports=function(t,e){if(null==t)throw new TypeError("target must be an object");var r=s(t);if(1===arguments.length)return r;for(var i=1;i{"use strict";var n=r(8403);t.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var t="abcdefghijklmnopqrst",e=t.split(""),r={},n=0;n{var e,r,n=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(t){if(e===setTimeout)return setTimeout(t,0);if((e===o||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(r){try{return e.call(null,t,0)}catch(r){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:o}catch(t){e=o}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(t){r=i}}();var a,c=[],u=!1,f=-1;function l(){u&&a&&(u=!1,a.length?c=a.concat(c):f=-1,c.length&&p())}function p(){if(!u){var t=s(l);u=!0;for(var e=c.length;e;){for(a=c,c=[];++f1)for(var r=1;r{"use strict";function e(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,n,o,i){n=n||"&",o=o||"=";var s={};if("string"!=typeof t||0===t.length)return s;var a=/\+/g;t=t.split(n);var c=1e3;i&&"number"==typeof i.maxKeys&&(c=i.maxKeys);var u=t.length;c>0&&u>c&&(u=c);for(var f=0;f=0?(l=g.substr(0,d),p=g.substr(d+1)):(l=g,p=""),h=decodeURIComponent(l),y=decodeURIComponent(p),e(s,h)?r(s[h])?s[h].push(y):s[h]=[s[h],y]:s[h]=y}return s};var r=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},1590:t=>{"use strict";var e=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,i,s,a){return i=i||"&",s=s||"=",null===t&&(t=void 0),"object"==typeof t?n(o(t),(function(o){var a=encodeURIComponent(e(o))+s;return r(t[o])?n(t[o],(function(t){return a+encodeURIComponent(e(t))})).join(i):a+encodeURIComponent(e(t[o]))})).join(i):a?encodeURIComponent(e(a))+s+encodeURIComponent(e(t)):""};var r=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function n(t,e){if(t.map)return t.map(e);for(var r=[],n=0;n{"use strict";e.decode=e.parse=r(4930),e.encode=e.stringify=r(1590)},6897:(t,e,r)=>{"use strict";var n=r(453),o=r(41),i=r(592)(),s=r(5795),a=r(9675),c=n("%Math.floor%");t.exports=function(t,e){if("function"!=typeof t)throw new a("`fn` is not a function");if("number"!=typeof e||e<0||e>4294967295||c(e)!==e)throw new a("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,u=!0;if("length"in t&&s){var f=s(t,"length");f&&!f.configurable&&(n=!1),f&&!f.writable&&(u=!1)}return(n||u||!r)&&(i?o(t,"length",e,!0,!0):o(t,"length",e)),t}},318:t=>{var e=1e3,r=60*e,n=60*r,o=24*n,i=7*o,s=365.25*o;function a(t,e,r,n){var o=e>=1.5*r;return Math.round(t/r)+" "+n+(o?"s":"")}t.exports=function(t,c){c=c||{};var u=typeof t;if("string"===u&&t.length>0)return function(t){if((t=String(t)).length>100)return;var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(!a)return;var c=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*s;case"weeks":case"week":case"w":return c*i;case"days":case"day":case"d":return c*o;case"hours":case"hour":case"hrs":case"hr":case"h":return c*n;case"minutes":case"minute":case"mins":case"min":case"m":return c*r;case"seconds":case"second":case"secs":case"sec":case"s":return c*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(t);if("number"===u&&isFinite(t))return c.long?function(t){var i=Math.abs(t);if(i>=o)return a(t,i,o,"day");if(i>=n)return a(t,i,n,"hour");if(i>=r)return a(t,i,r,"minute");if(i>=e)return a(t,i,e,"second");return t+" ms"}(t):function(t){var i=Math.abs(t);if(i>=o)return Math.round(t/o)+"d";if(i>=n)return Math.round(t/n)+"h";if(i>=r)return Math.round(t/r)+"m";if(i>=e)return Math.round(t/e)+"s";return t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},6127:(t,e,r)=>{"use strict";var n=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==r.g)return r.g;throw new Error("unable to locate global object")}();t.exports=e=n.fetch,n.fetch&&(e.default=n.fetch.bind(n)),e.Headers=n.Headers,e.Request=n.Request,e.Response=n.Response},1135:t=>{t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},9032:(t,e,r)=>{"use strict";var n=r(7244),o=r(8184),i=r(5767),s=r(5680);function a(t){return t.call.bind(t)}var c="undefined"!=typeof BigInt,u="undefined"!=typeof Symbol,f=a(Object.prototype.toString),l=a(Number.prototype.valueOf),p=a(String.prototype.valueOf),h=a(Boolean.prototype.valueOf);if(c)var y=a(BigInt.prototype.valueOf);if(u)var g=a(Symbol.prototype.valueOf);function d(t,e){if("object"!=typeof t)return!1;try{return e(t),!0}catch(t){return!1}}function b(t){return"[object Map]"===f(t)}function v(t){return"[object Set]"===f(t)}function m(t){return"[object WeakMap]"===f(t)}function w(t){return"[object WeakSet]"===f(t)}function E(t){return"[object ArrayBuffer]"===f(t)}function A(t){return"undefined"!=typeof ArrayBuffer&&(E.working?E(t):t instanceof ArrayBuffer)}function j(t){return"[object DataView]"===f(t)}function O(t){return"undefined"!=typeof DataView&&(j.working?j(t):t instanceof DataView)}e.isArgumentsObject=n,e.isGeneratorFunction=o,e.isTypedArray=s,e.isPromise=function(t){return"undefined"!=typeof Promise&&t instanceof Promise||null!==t&&"object"==typeof t&&"function"==typeof t.then&&"function"==typeof t.catch},e.isArrayBufferView=function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):s(t)||O(t)},e.isUint8Array=function(t){return"Uint8Array"===i(t)},e.isUint8ClampedArray=function(t){return"Uint8ClampedArray"===i(t)},e.isUint16Array=function(t){return"Uint16Array"===i(t)},e.isUint32Array=function(t){return"Uint32Array"===i(t)},e.isInt8Array=function(t){return"Int8Array"===i(t)},e.isInt16Array=function(t){return"Int16Array"===i(t)},e.isInt32Array=function(t){return"Int32Array"===i(t)},e.isFloat32Array=function(t){return"Float32Array"===i(t)},e.isFloat64Array=function(t){return"Float64Array"===i(t)},e.isBigInt64Array=function(t){return"BigInt64Array"===i(t)},e.isBigUint64Array=function(t){return"BigUint64Array"===i(t)},b.working="undefined"!=typeof Map&&b(new Map),e.isMap=function(t){return"undefined"!=typeof Map&&(b.working?b(t):t instanceof Map)},v.working="undefined"!=typeof Set&&v(new Set),e.isSet=function(t){return"undefined"!=typeof Set&&(v.working?v(t):t instanceof Set)},m.working="undefined"!=typeof WeakMap&&m(new WeakMap),e.isWeakMap=function(t){return"undefined"!=typeof WeakMap&&(m.working?m(t):t instanceof WeakMap)},w.working="undefined"!=typeof WeakSet&&w(new WeakSet),e.isWeakSet=function(t){return w(t)},E.working="undefined"!=typeof ArrayBuffer&&E(new ArrayBuffer),e.isArrayBuffer=A,j.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&j(new DataView(new ArrayBuffer(1),0,1)),e.isDataView=O;var S="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function _(t){return"[object SharedArrayBuffer]"===f(t)}function x(t){return void 0!==S&&(void 0===_.working&&(_.working=_(new S)),_.working?_(t):t instanceof S)}function T(t){return d(t,l)}function R(t){return d(t,p)}function P(t){return d(t,h)}function I(t){return c&&d(t,y)}function k(t){return u&&d(t,g)}e.isSharedArrayBuffer=x,e.isAsyncFunction=function(t){return"[object AsyncFunction]"===f(t)},e.isMapIterator=function(t){return"[object Map Iterator]"===f(t)},e.isSetIterator=function(t){return"[object Set Iterator]"===f(t)},e.isGeneratorObject=function(t){return"[object Generator]"===f(t)},e.isWebAssemblyCompiledModule=function(t){return"[object WebAssembly.Module]"===f(t)},e.isNumberObject=T,e.isStringObject=R,e.isBooleanObject=P,e.isBigIntObject=I,e.isSymbolObject=k,e.isBoxedPrimitive=function(t){return T(t)||R(t)||P(t)||I(t)||k(t)},e.isAnyArrayBuffer=function(t){return"undefined"!=typeof Uint8Array&&(A(t)||x(t))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(t){Object.defineProperty(e,t,{enumerable:!1,value:function(){throw new Error(t+" is not supported in userland")}})}))},537:(t,e,r)=>{var n=r(5606),o=r(6763),i=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),r={},n=0;n=o)return t;switch(t){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return t}})),a=n[r];r=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),b(r)?n.showHidden=r:r&&e._extend(n,r),E(n.showHidden)&&(n.showHidden=!1),E(n.depth)&&(n.depth=2),E(n.colors)&&(n.colors=!1),E(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=l),h(n,t,n.depth)}function l(t,e){var r=f.styles[e];return r?"["+f.colors[r][0]+"m"+t+"["+f.colors[r][1]+"m":t}function p(t,e){return t}function h(t,r,n){if(t.customInspect&&r&&_(r.inspect)&&r.inspect!==e.inspect&&(!r.constructor||r.constructor.prototype!==r)){var o=r.inspect(n,t);return w(o)||(o=h(t,o,n)),o}var i=function(t,e){if(E(e))return t.stylize("undefined","undefined");if(w(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}if(m(e))return t.stylize(""+e,"number");if(b(e))return t.stylize(""+e,"boolean");if(v(e))return t.stylize("null","null")}(t,r);if(i)return i;var s=Object.keys(r),a=function(t){var e={};return t.forEach((function(t,r){e[t]=!0})),e}(s);if(t.showHidden&&(s=Object.getOwnPropertyNames(r)),S(r)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return y(r);if(0===s.length){if(_(r)){var c=r.name?": "+r.name:"";return t.stylize("[Function"+c+"]","special")}if(A(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(O(r))return t.stylize(Date.prototype.toString.call(r),"date");if(S(r))return y(r)}var u,f="",l=!1,p=["{","}"];(d(r)&&(l=!0,p=["[","]"]),_(r))&&(f=" [Function"+(r.name?": "+r.name:"")+"]");return A(r)&&(f=" "+RegExp.prototype.toString.call(r)),O(r)&&(f=" "+Date.prototype.toUTCString.call(r)),S(r)&&(f=" "+y(r)),0!==s.length||l&&0!=r.length?n<0?A(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special"):(t.seen.push(r),u=l?function(t,e,r,n,o){for(var i=[],s=0,a=e.length;s=0&&0,t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0);if(n>60)return r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1];return r[0]+e+" "+t.join(", ")+" "+r[1]}(u,f,p)):p[0]+f+p[1]}function y(t){return"["+Error.prototype.toString.call(t)+"]"}function g(t,e,r,n,o,i){var s,a,c;if((c=Object.getOwnPropertyDescriptor(e,o)||{value:e[o]}).get?a=c.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):c.set&&(a=t.stylize("[Setter]","special")),P(n,o)||(s="["+o+"]"),a||(t.seen.indexOf(c.value)<0?(a=v(r)?h(t,c.value,null):h(t,c.value,r-1)).indexOf("\n")>-1&&(a=i?a.split("\n").map((function(t){return" "+t})).join("\n").slice(2):"\n"+a.split("\n").map((function(t){return" "+t})).join("\n")):a=t.stylize("[Circular]","special")),E(s)){if(i&&o.match(/^\d+$/))return a;(s=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.slice(1,-1),s=t.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=t.stylize(s,"string"))}return s+": "+a}function d(t){return Array.isArray(t)}function b(t){return"boolean"==typeof t}function v(t){return null===t}function m(t){return"number"==typeof t}function w(t){return"string"==typeof t}function E(t){return void 0===t}function A(t){return j(t)&&"[object RegExp]"===x(t)}function j(t){return"object"==typeof t&&null!==t}function O(t){return j(t)&&"[object Date]"===x(t)}function S(t){return j(t)&&("[object Error]"===x(t)||t instanceof Error)}function _(t){return"function"==typeof t}function x(t){return Object.prototype.toString.call(t)}function T(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(t){if(t=t.toUpperCase(),!a[t])if(c.test(t)){var r=n.pid;a[t]=function(){var n=e.format.apply(e,arguments);o.error("%s %d: %s",t,r,n)}}else a[t]=function(){};return a[t]},e.inspect=f,f.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},f.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.types=r(9032),e.isArray=d,e.isBoolean=b,e.isNull=v,e.isNullOrUndefined=function(t){return null==t},e.isNumber=m,e.isString=w,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=E,e.isRegExp=A,e.types.isRegExp=A,e.isObject=j,e.isDate=O,e.types.isDate=O,e.isError=S,e.types.isNativeError=S,e.isFunction=_,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=r(1135);var R=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function P(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){var t,r;o.log("%s - %s",(t=new Date,r=[T(t.getHours()),T(t.getMinutes()),T(t.getSeconds())].join(":"),[t.getDate(),R[t.getMonth()],r].join(" ")),e.format.apply(e,arguments))},e.inherits=r(6698),e._extend=function(t,e){if(!e||!j(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t};var I="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function k(t,e){if(!t){var r=new Error("Promise was rejected with a falsy value");r.reason=t,t=r}return e(t)}e.promisify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');if(I&&t[I]){var e;if("function"!=typeof(e=t[I]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,I,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,r,n=new Promise((function(t,n){e=t,r=n})),o=[],i=0;i{"use strict";var n=r(2682),o=r(9209),i=r(487),s=r(8075),a=r(5795),c=s("Object.prototype.toString"),u=r(9092)(),f="undefined"==typeof globalThis?r.g:globalThis,l=o(),p=s("String.prototype.slice"),h=Object.getPrototypeOf,y=s("Array.prototype.indexOf",!0)||function(t,e){for(var r=0;r-1?e:"Object"===e&&function(t){var e=!1;return n(g,(function(r,n){if(!e)try{r(t),e=p(n,1)}catch(t){}})),e}(t)}return a?function(t){var e=!1;return n(g,(function(r,n){if(!e)try{"$"+r(t)===n&&(e=p(n,1))}catch(t){}})),e}(t):null}},9209:(t,e,r)=>{"use strict";var n=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],o="undefined"==typeof globalThis?r.g:globalThis;t.exports=function(){for(var t=[],e=0;e{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};return(()=>{"use strict";r.d(n,{default:()=>jo});var t={};r.r(t),r.d(t,{AccessError:()=>Mn,AuthError:()=>Fn,NotFoundError:()=>qn,WorkError:()=>$n});const e=function(){this.__data__=[],this.size=0};const o=function(t,e){return t===e||t!=t&&e!=e};const i=function(t,e){for(var r=t.length;r--;)if(o(t[r][0],e))return r;return-1};var s=Array.prototype.splice;const a=function(t){var e=this.__data__,r=i(e,t);return!(r<0)&&(r==e.length-1?e.pop():s.call(e,r,1),--this.size,!0)};const c=function(t){var e=this.__data__,r=i(e,t);return r<0?void 0:e[r][1]};const u=function(t){return i(this.__data__,t)>-1};const f=function(t,e){var r=this.__data__,n=i(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function l(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e-1&&t%1==0&&t<=9007199254740991};const Vt=function(t){return null!=t&&zt(t.length)&&!I(t)};const Gt=function(t){return Lt(t)&&Vt(t)};const Wt=function(){return!1};var Ht="object"==typeof exports&&exports&&!exports.nodeType&&exports,Jt=Ht&&"object"==typeof module&&module&&!module.nodeType&&module,Yt=Jt&&Jt.exports===Ht?m.Buffer:void 0;const Qt=(Yt?Yt.isBuffer:void 0)||Wt;var Kt=Function.prototype,Xt=Object.prototype,Zt=Kt.toString,te=Xt.hasOwnProperty,ee=Zt.call(Object);const re=function(t){if(!Lt(t)||"[object Object]"!=R(t))return!1;var e=kt(t);if(null===e)return!0;var r=te.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&Zt.call(r)==ee};var ne={};ne["[object Float32Array]"]=ne["[object Float64Array]"]=ne["[object Int8Array]"]=ne["[object Int16Array]"]=ne["[object Int32Array]"]=ne["[object Uint8Array]"]=ne["[object Uint8ClampedArray]"]=ne["[object Uint16Array]"]=ne["[object Uint32Array]"]=!0,ne["[object Arguments]"]=ne["[object Array]"]=ne["[object ArrayBuffer]"]=ne["[object Boolean]"]=ne["[object DataView]"]=ne["[object Date]"]=ne["[object Error]"]=ne["[object Function]"]=ne["[object Map]"]=ne["[object Number]"]=ne["[object Object]"]=ne["[object RegExp]"]=ne["[object Set]"]=ne["[object String]"]=ne["[object WeakMap]"]=!1;const oe=function(t){return Lt(t)&&zt(t.length)&&!!ne[R(t)]};const ie=function(t){return function(e){return t(e)}};var se="object"==typeof exports&&exports&&!exports.nodeType&&exports,ae=se&&"object"==typeof module&&module&&!module.nodeType&&module,ce=ae&&ae.exports===se&&b.process,ue=function(){try{var t=ae&&ae.require&&ae.require("util").types;return t||ce&&ce.binding&&ce.binding("util")}catch(t){}}();var fe=ue&&ue.isTypedArray;const le=fe?ie(fe):oe;const pe=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]};var he=Object.prototype.hasOwnProperty;const ye=function(t,e,r){var n=t[e];he.call(t,e)&&o(n,r)&&(void 0!==r||e in t)||bt(t,e,r)};const ge=function(t,e,r,n){var o=!r;r||(r={});for(var i=-1,s=e.length;++i-1&&t%1==0&&t0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(Be);const Le=function(t,e){return De(Ie(t,e,Te),t+"")};const $e=function(t,e,r){if(!P(r))return!1;var n=typeof e;return!!("number"==n?Vt(r)&&ve(e,r.length):"string"==n&&e in r)&&o(r[e],t)};const Fe=function(t){return Le((function(e,r){var n=-1,o=r.length,i=o>1?r[o-1]:void 0,s=o>2?r[2]:void 0;for(i=t.length>3&&"function"==typeof i?(o--,i):void 0,s&&$e(r[0],r[1],s)&&(i=o<3?void 0:i,o=1),e=Object(e);++na))return!1;var u=i.get(t),f=i.get(e);if(u&&f)return u==e&&f==t;var l=-1,p=!0,h=2&r?new cr:void 0;for(i.set(t,e),i.set(e,t);++l-1};const In=function(t,e,r){for(var n=-1,o=null==t?0:t.length;++n=200){var u=e?null:Un(t);if(u)return hr(u);s=!1,o=fr,c=new cr}else c=e?[]:a;t:for(;++nJSON.stringify(e,null,2);let i=null,s=!1;for(let t=0;tJSON.stringify(a,null,2);try{if(a.type!=n){const t=`Wrong data type "${n}" instead of "${a.type}" ${o()} for ${c()}`;throw new $n(t,"ERR_SPREADABLE_VALIDATE_SCHEMA_WRONG_DATA_TYPE")}if("array"==n){const t="function"==typeof a.minLength?t(e):a.minLength,r="function"==typeof a.maxLength?r(e):a.maxLength;if(t&&e.lengthr){const t=`Wrong array max length ${o()} for ${c()}`;throw new $n(t,"ERR_SPREADABLE_VALIDATE_SCHEMA_WRONG_ARRAY_MAX_LENGTH")}if(a.uniq){if((!0===a.uniq?Ln(e):Ln(e,a.uniq)).length!=e.length){const t=`Wrong array uniqueness ${o()} for ${c()}`;throw new $n(t,"ERR_SPREADABLE_VALIDATE_SCHEMA_WRONG_ARRAY_UNIQUENESS")}}a.items&&e.forEach((t=>this.validateSchema(a.items,t)))}else if("object"==n){const t=a.props||{},r=a.required;if(r&&!Array.isArray(r))throw new Error(`Option "required" for ${c()} must be an array`);if(a.canBeNull&&null===e){s=!0;continue}if(!1===a.canBeNull&&null===e){const t=`Data for ${c()} can't be null`;throw new $n(t,"ERR_SPREADABLE_VALIDATE_SCHEMA_NULL")}if(a.strict){const r=Object.keys(t).sort(),n=Object.keys(e).sort();if(r.toString()!=n.toString()){const t=`Wrong strict object structure ${o()} for ${c()}`;throw new $n(t,"ERR_SPREADABLE_VALIDATE_SCHEMA_STRICT")}}if(a.expected)for(let r in e)if(!Object.prototype.hasOwnProperty.call(t,r)){const t=`Wrong expected object structure ${o()} for ${c()}`;throw new $n(t,"ERR_SPREADABLE_VALIDATE_SCHEMA_EXPECTED")}const n={};r&&r.forEach((t=>n[t]=!0));for(let i in t)if(Object.prototype.hasOwnProperty.call(e,i))this.validateSchema(t[i],e[i]);else if(r&&n[i]){const t=`Property "${i}" is required in ${o()} for ${c()}`;throw new $n(t,"ERR_SPREADABLE_VALIDATE_SCHEMA_REQUIRED_PROPS")}}if(!Object.prototype.hasOwnProperty.call(a,"value")){s=!0;continue}let t;if("function"==typeof a.value)t=a.value(e);else if(a.value instanceof RegExp)t=String(e).match(a.value);else{t=-1!=(Array.isArray(a.value)?a.value:[a.value]).indexOf(e)}if(!t){const t=`Validation is failed for ${o()}`;throw new $n(t,"ERR_SPREADABLE_VALIDATE_SCHEMA_VALUE")}s=!0}catch(t){i=t}}if(!s&&i)throw i},isBrowserEnv:function(){return"object"==typeof window},getRandomElement:function(t){return t[Math.floor(Math.random()*t.length)]},getMs:function(t){return"string"!=typeof t||"auto"==t?t:or(t)},getBytes:function(t){return"string"!=typeof t||t.match("%")||"auto"==t?t:nr(t)},getCpuUsage:async function(t={}){return await new Promise(((e,r)=>{const n=Nn.cpuUsage(),o=Nn.hrtime();setTimeout((()=>{try{const t=Nn.cpuUsage(n),r=Nn.hrtime(o),i=1e6*r[0]+r[1]/1e3,s=100*(t.user+t.system)/i;e(s)}catch(t){r(t)}}),t.timeout||1e3)}))},isPortUsed:async function(t){return await tr.check(+t,"localhost")},getHostIp:async function(t){if("localhost"==t)return"127.0.0.1";if(this.isValidIp(t))return t;const e=this.dnsCache.get(t);if(e){if(e.createdAt+this.dnsCachePeriod>Date.now())return e.value;this.dnsCache.delete(t)}return await new Promise((e=>{tr.lookup(t,((r,n)=>{if(r||!n||/^127/.test(n))return e(null);if(this.isIpv6(n)&&(n=this.getFullIpv6(n)),this.dnsCache.set(t,{value:n,createdAt:Date.now()}),this.dnsCache.size>this.dnsCacheLimit){Array.from(this.dnsCache.keys()).slice(0,this.dnsCache.size-this.dnsCacheLimit).forEach((t=>this.dnsCache.delete(t)))}return e(n)}))}))},getAddressIp:async function(t){return await this.getHostIp(this.splitAddress(t)[0])},getRequestTimer:function(t,e={}){let r=Date.now();return(n,o)=>{if(o=Object.assign({},e,o),n&&!Array.isArray(n)&&(n=[n]),void 0===t)return n?n[0]:void 0;const i=Date.now();if(t-=i-r,r=i,n){let e=o.min,r=n.reduce(((t,e)=>t+e)),i=r/t,s=i>1?n[0]/i:n[0];return s>n[0]&&(s=n[0]),o.grabFree&&t>r&&(s+=(t-r)/n.length),e&&st&&(s=t),s>0?s:0}return t}},getExternalIp:async function(){let t=null;for(let e of this.ipLookupPoints)try{const r=await er(e,{signal:AbortSignal.timeout(1e3)}),n=await r.text();if(this.isValidIp(n)){t=n;break}}catch(t){continue}return t},getLocalIp:function(){const t=tr.networkInterfaces();let e;for(let r in t)for(let n in t[r]){const o=t[r][n];"IPv4"!==o.family||o.internal||(e=o.address)}return e},getRemoteIp:function(t,e={}){let r=t.connection.remoteAddress||t.socket.remoteAddress,n=!0;if(!r)return"";const o=t=>{if(!e.trusted||!e.trusted.length)return!0;for(let r=0;rt.trim())),i=n.slice(1);if(e.trusted){i.reduce(((t,e)=>o(e)?t+1:t),0)===i.length&&(r=n[0])}else r=n[0]}return r&&this.isIpv6(r)&&(r=this.getFullIpv6(r)),r},getFullIpv6:function(t){return tr.parse(t).toString({format:"v6",zeroElide:!1,zeroPad:!0})},isIpv6:function(t){return!("string"!=typeof t||!t.match(":")||!tr(t))},ipv4Tov6:function(t){return this.getFullIpv6("::ffff:"+t)},isIpEqual:function(t,e){return 0==tr.compare(tr.parse(t),tr.parse(e))},createAddress:function(t,e){return this.isIpv6(t)?`[${this.getFullIpv6(t)}]:${e}`:`${t}:${e}`},isValidPort:function(t){return!!["number","string"].includes(typeof t)&&(+t>=0&&+t<=65535)},isValidIp:function(t){return tr(t)},isValidDomain:function(t){return"string"==typeof t&&this.domainValidationRegex.test(t)},isValidHostname:function(t){return this.isValidDomain(t)||this.isValidIp(t)},isValidAddress:function(t){if(!t||"string"!=typeof t)return!1;const e=this.splitAddress(t),r=e[0],n=e[1];return this.isValidHostname(r)&&this.isValidPort(n)},splitAddress:function(t){let e;return t&&"string"==typeof t?t.match("]")?(e=t.split("]:"),[this.getFullIpv6(e[0].slice(1)),+e[1]]):(e=t.split(":"),[e[0],+e[1]]):[]},createDataHash:function(t){return tr.createHash("md5").update(t.join("+")).digest("hex")},getClosestPeriodTime:function(t,e){return Math.floor(t/e)*e},isHexColor:function(t){return"string"==typeof t&&/^#[0-9A-F]{6}$/i.test(t)},getRandomHexColor:function(){return"#"+Math.floor(16777216*Math.random()).toString(16).padStart(6,0)},invertHexColor:function(t){return"#"+(16777215^Number(`0x1${t.slice(1)}`)).toString(16).slice(1).toUpperCase()},createRequestTimeoutError:function(){const t=new Error("Request timed out");return t.code="ERR_SPREADABLE_REQUEST_TIMEDOUT",t},isRequestTimeoutError:function(t){return t instanceof Error&&(["ESOCKETTIMEDOUT","ETIMEDOUT","ERR_SPREADABLE_REQUEST_TIMEDOUT"].includes(t.code)||["request-timeout","body-timeout"].includes(t.type))},FilesQueue:class{constructor(t,e={}){this.folderPath=t,this.options=Object.assign({limit:5,ext:""},e),this.files=[],this.__queue=[]}async init(){await this.normalize()}async sort(){return this.files.sort(((t,e)=>t.index-e.index))}async info(t){return{filePath:t,stat:await tr.stat(t),index:parseInt(tr.basename(t))}}async normalize(){await tr.ensureDir(this.folderPath),this.files=await tr.readdir(this.folderPath);for(let t=0;t{const n=async()=>{let n,o;try{o=await t()}catch(t){n=t}n?r(n):e(o),this.__queue.shift(),this.__queue.length&&this.__queue[0]()};this.__queue.push(n),this.__queue.length<=1&&n()}))}getLast(){return this.files[this.files.length-1]||null}getFirst(){return this.files[0]||null}createName(t){return`${t}${this.options.ext?"."+this.options.ext:""}`}createNewName(){const t=this.getLast(),e=t?t.index+1:1;return this.createName(e)}}},zn=Cn;class Vn{constructor(){this.__services=[]}async init(){if(!this.node&&!this.__isMasterService)throw new Error(`You have to register the service "${this.constructor.name}" at first`);await this.initServices(),this.__initialized=Date.now()}async deinit(){await this.deinitServices(),this.__initialized=!1}async destroy(){await this.destroyServices(),await this.deinit()}async addService(t,e,r){const n=this.__services.findIndex((e=>e.name===t&&e.type===r));return-1!=n&&this.__services.splice(n,1),this.__services.push({service:e,name:t,type:r}),e.name=t,e.node=this,this.__initialized&&!e.__initialized&&await e.init(),e}async getService(t,e){const r=this.__services.find((r=>r.name===t&&r.type==e));return r?r.service:null}async removeService(t,e){const r=this.__services.findIndex((r=>r.name===t&&r.type==e));if(-1==r)return;const n=this.__services[r];await n.service.destroy(),this.__services.splice(r,1)}async initServices(){for(let t=0;t=0;t--)await this.__services[t].service.deinit()}async destroyServices(){for(let t=this.__services.length-1;t>=0;t--)await this.__services[t].service.destroy();this.__services=[]}isInitialized(){return!!this.__initialized}getVersion(){return`${this.constructor.codename}-${this.constructor.version.split(".").slice(0,-1).join(".")}`}}var Gn=r(6763);const Wn=class extends(Hn||Vn){constructor(t={}){super(...arguments),this.options=t,this.levels=["info","warn","error"],this.defaultLevel="info"}async init(){this.setLevel(void 0===this.options.level?this.defaultLevel:this.options.level),await super.init.apply(this,arguments)}async deinit(){this.setLevel(!1),await super.deinit.apply(this,arguments)}async log(){throw new Error('Method "log" is required for logger transport')}async info(...t){await this.log("info",...t)}async warn(...t){await this.log("warn",...t)}async error(...t){await this.log("error",...t)}isLevelActive(t){return!!this.level&&this.levels.indexOf(t)>=this.levels.indexOf(this.level)}setLevel(t){if(!1===t)return this.level=!1;if(-1==this.levels.indexOf(t))throw new Error(`Wrong logger level "${t}"`);this.level=t}};var Hn;const Jn=(t=>class extends(t||Vn){constructor(t={}){super(...arguments),this.options=Fe({showCompletionLogs:!0,showFailLogs:!0},t),this.tasks={}}async add(t,e,r,n){const o=Fe({interval:e,fn:r,name:t},n);return void 0===o.isStopped&&(o.isStopped=!0),this.tasks[t]=o,o.isStopped||(await this.stop(o),await this.start(o)),o}async get(t){return this.tasks[t]||null}async remove(t){const e=this.tasks[t];e&&(!e.isStopped&&await this.stop(e),delete this.tasks[t])}async init(){this.startAll(),await super.init.apply(this,arguments)}async deinit(){this.stopAll(),await super.deinit.apply(this,arguments)}async startAll(){for(let t in this.tasks)await this.start(this.tasks[t])}async stopAll(){for(let t in this.tasks)await this.stop(this.tasks[t])}async run(t){if(t.isStopped)this.options.showFailLogs&&this.node.logger.warn(`Task "${t.name}" should be started at first`);else if(t.isRun)this.options.showFailLogs&&this.node.logger.warn(`Task "${t.name}" has blocking operations`);else{t.isRun=!0;try{await t.fn(),this.options.showCompletionLogs&&this.node.logger.info(`Task "${t.name}" has been completed`)}catch(e){this.options.showFailLogs&&this.node.logger.error(`Task "${t.name}", ${e.stack}`)}t.isRun=!1}}async start(t){t.isStopped=!1}async stop(t){t.isStopped=!0}})(),Yn=JSON.parse('{"UU":"spreadable","rE":"0.3.5"}');var Qn=r(8287).hp;const Kn=(t=>class extends(t||Wn){constructor(){super(...arguments),this.colors={info:"white",warn:"yellow",error:"red"}}async log(t,e){this.isLevelActive(t)&&(Gn[t]||Gn.log)(zn.isBrowserEnv()?e:tr[this.colors[t]](e))}})(),Xn=(t=>class extends(t||Jn){async add(t,e,r,n){return super.add(t,zn.getMs(e),r,n)}async start(t){await super.start(t);const e=setInterval((()=>this.run(t)),t.interval);t.intervalObject=e}async stop(t){clearInterval(t.intervalObject),await super.stop(t)}})();const Zn=function(t,e){return function(r,n){if(null==r)return r;if(!Vt(r))return t(r,n);for(var o=r.length,i=e?o:-1,s=Object(r);(e?i--:++ie||i&&s&&c&&!a&&!u||n&&s&&c||!r&&c||!o)return 1;if(!n&&!i&&!u&&t=a?c:c*("desc"==r[n]?-1:1)}return t.index-e.index};const oo=function(t,e,r){e=e.length?Ve(e,(function(t){return Ct(t)?function(e){return dn(e,1===t.length?t[0]:t)}:t})):[Te];var n=-1;e=Ve(e,ie(Sn));var o=to(t,(function(t,r,o){return{criteria:Ve(e,(function(e){return e(t)})),index:++n,value:t}}));return eo(o,(function(t,e){return no(t,e,r)}))};const io=function(t,e,r,n){return null==t?[]:(Ct(e)||(e=null==e?[]:[e]),Ct(r=n?void 0:r)||(r=null==r?[]:[r]),oo(t,e,r))};const so=function(t,e,r,n){if(!P(t))return t;for(var o=-1,i=(e=yn(e,t)).length,s=i-1,a=t;null!=a&&++o0&&n(c)?r>1?t(c,r-1,n,o,i):br(i,c):o||(i[i.length]=c)}return i};const go=function(t){return(null==t?0:t.length)?yo(t,1):[]};const bo=function(t){return De(Ie(t,void 0,go),t+"")}((function(t,e){return null==t?{}:lo(t,e)})),vo=Object.assign({},t),mo=Object.assign({},zn);mo.DocumentsHandler=class{constructor(t){this.__documents=t}getDocuments(){return this.__documents}filterDocuments(t){this.__documents=this.__documents.filter((e=>this.checkDocumentValue(e,t)))}sortDocuments(t=[]){const e=[],r=[];if(!Array.isArray(t))throw new vo.WorkError("Sort rule must be an array","ERR_METASTOCLE_DOCUMENTS_HANDLER_SORT_TYPE");for(let n=0;nfo(e,((e,r)=>t.includes(r)||r.startsWith("$")))))}checkDocumentValue(t,e){if(!e||"object"!=typeof e||Array.isArray(e))return this.$eq(t,e);for(let r in e)if("$and"!=r)if("$or"!=r){if(r.startsWith("$")){if("function"!=typeof this[r])throw new vo.WorkError(`There is no filter for key "${r}"`,"ERR_METASTOCLE_DOCUMENTS_HANDLER_WRONG_FILTER");if(!this[r](t,e[r]))return!1}else if(!this.checkDocumentValue(bn(t,r),e[r]))return!1}else{let n=!1;for(let o=0;oe}$gte(t,e){return t>=e}$lt(t,e){return te}$lgte(t,e){return mo.validateSchema({type:"array"},t),t.length>=e}$llt(t,e){return mo.validateSchema({type:"array"},t),t.lengthclass extends(e||Vn){static get version(){return Yn.rE}static get codename(){return Yn.UU}static get utils(){return zn}static get errors(){return t}static get LoggerTransport(){return Kn}static get TaskTransport(){return Xn}static getAuthCookieValue(){if("object"!=typeof location||!location.hostname)return null;const t=`spreadableNetworkAuth[${this.getPageAddress()}]`,e=("; "+document.cookie).split("; "+t+"="),r=2==e.length&&e.pop().split(";").shift();return r?JSON.parse(atob(r)):null}static getPageAddress(){return"object"==typeof location&&location.hostname?`${location.hostname}:${location.port||("https"==this.getPageProtocol()?443:80)}`:""}static getPageProtocol(){return"object"==typeof location&&location.protocol?location.protocol.split(":")[0]:""}constructor(t={}){super(...arguments),this.options=Fe({request:{pingTimeout:"1s",clientTimeout:"10s",approvalQuestionTimeout:"20s",ignoreVersion:!1},auth:this.constructor.getAuthCookieValue(),address:this.constructor.getPageAddress(),https:"https"==this.constructor.getPageProtocol(),logger:{level:"info"},task:{workerChangeInterval:"30s"}},t),!this.options.logger&&(this.options.logger={level:!1}),"string"==typeof this.options.logger&&(this.options.logger={level:this.options.logger}),this.LoggerTransport=this.constructor.LoggerTransport,this.TaskTransport=this.constructor.TaskTransport,this.address=this.options.address,this.__isMasterService=!0,this.prepareOptions()}async init(){if(!this.address)throw new Error("You must pass the node address");await this.prepareServices(),await super.init.apply(this,arguments);let t=this.address;if(Array.isArray(t)&&(t=Xe(t)),this.availableAddress=await this.getAvailableAddress(t),!this.availableAddress)throw new Error("Provided addresses are not available");this.workerAddress=this.availableAddress}async prepareServices(){await this.prepareLogger(),await this.prepareTask()}async prepareLogger(){this.logger=await this.addService("logger",new this.LoggerTransport(this.options.logger))}async prepareTask(){this.options.task&&(this.task=await this.addService("task",new this.TaskTransport(this.options.task))),this.task&&this.options.task.workerChangeInterval&&await this.task.add("workerChange",this.options.task.workerChangeInterval,(()=>this.changeWorker()))}async getAvailableAddress(t){let e;!Array.isArray(t)&&(t=[t]);for(let r=0;r({address:t}))),p=await this.requestGroup(l,"add-approval-info",Object.assign({},r,{includeErrors:!0,timeout:o(this.options.request.clientTimeout),body:{action:t,key:a,info:e,startedAt:c}}));for(let t=0;t{this.request(e,Fe({address:s},r,i.options)).then(t).catch(t)})))}let o=await Promise.all(n);return!r.includeErrors&&(o=o.filter((t=>!(t instanceof Error)))),o}async request(t,e={}){let r=(e=Fe(this.createDefaultRequestOptions(),e)).formData||e.body||{};if(r.timeout=e.timeout,r.timestamp=Date.now(),e.approvalInfo){const t=e.approvalInfo;if(delete t.question,!Object.prototype.hasOwnProperty.call(t,"answer"))throw new Error('Request "approvalInfo" option must include "answer" property');r.approvalInfo=e.formData?JSON.stringify(t):t}if(e.formData){const t=new Ze;for(let e in r){let n=r[e];"object"==typeof n?t.append(e,n.value,n.options):t.append(e,n)}e.body=t,delete e.formData}else e.headers["content-type"]="application/json",e.body=JSON.stringify(r);e.timeout&&!e.signal&&(e.signal=AbortSignal.timeout(Math.floor(e.timeout))),e.url=this.createRequestUrl(t,e);const n=Date.now();let o={};try{if(o=await er(e.url,e),this.logger.info(`Request to "${e.url}": ${or(Date.now()-n)}`),o.ok)return e.getFullResponse?o:await o.json();const t=(o.headers.get("content-type")||"").match("application/json")?"json":"text",r=await o[t]();if(!r||"object"!=typeof r)throw new Error(r||"Unknown error");if(!r.code)throw new Error(r.message||r);throw new $n(r.message,r.code)}catch(t){throw e.timeout&&"aborted"==t.type&&(t.type="request-timeout"),zn.isRequestTimeoutError(t)&&(t=zn.createRequestTimeoutError()),t.response=o,t.requestOptions=e,t}}createRequestUrl(t,e={}){const r=e.query?rr.stringify(e.query):null,n=e.address||this.workerAddress;let o=`${this.getRequestProtocol()}://${n}/client/${t}`;return r&&(o+="?"+r),o}createDefaultRequestOptions(t={}){const e={method:"POST",timeout:this.options.request.clientTimeout};if(this.options.request.ignoreVersion||(e.headers={"client-version":this.getVersion()}),this.options.auth){const t=this.options.auth.username,r=this.options.auth.password;let n="Basic ";n+="function"==typeof Qn?Qn.from(t+":"+r).toString("base64"):btoa(t+":"+r),e.headers.authorization=n}return t.timeout&&(t.timeout=zn.getMs(t.timeout)),"object"==typeof this.options.https&&this.options.https.ca&&(tr.Agent?(t.agent=t.agent||new tr.Agent,t.agent.options.ca=this.options.https.ca):(t.agent=t.agent||{},t.agent.ca=this.options.https.ca)),Fe({},e,t)}createRequestTimer(t,e={}){return e=Object.assign({min:this.options.request.pingTimeout},e),zn.getRequestTimer(t,e)}prepareOptions(){this.options.request.pingTimeout=zn.getMs(this.options.request.pingTimeout),this.options.request.clientTimeout=zn.getMs(this.options.request.clientTimeout),this.options.request.approvalQuestionTimeout=zn.getMs(this.options.request.approvalQuestionTimeout)}getRequestProtocol(){return this.options.https?"https":"http"}envTest(t,e){const r=zn.isBrowserEnv();if(t&&!r)throw new Error(`You can't use "${e}" method in the nodejs environment`);if(!t&&r)throw new Error(`You can't use "${e}" method in the browser environment`)}})(),jo=(t=>class extends(t||Ao){static get version(){return Eo.rE}static get codename(){return Eo.UU}static get utils(){return wo}static get errors(){return vo}constructor(t={}){super(t=Fe({request:{documentAdditionTimeout:"10s",documentGettingTimeout:"10s",documentUpdateTimeout:"10s",documentDeletionTimeout:"10s"}},t))}async addDocument(t,e,r={}){e=wo.prepareDocumentFields(e);return(await this.request("add-document",{body:{collection:t,document:e,ignoreExistenceError:r.ignoreExistenceError},timeout:r.timeout||this.options.request.documentAdditionTimeout})).document}async updateDocuments(t,e,r={}){e=wo.prepareDocumentFields(e);const n=wo.prepareDocumentUpdateActions(r);return await this.request("update-documents",Object.assign({},r,{body:{collection:t,document:e,actions:n},timeout:r.timeout||this.options.request.documentUpdateTimeout}))}async deleteDocuments(t,e={}){const r=wo.prepareDocumentDeletionActions(e);return await this.request("delete-documents",Object.assign({},e,{body:{collection:t,actions:r},timeout:e.timeout||this.options.request.documentDeletionTimeout}))}async getDocuments(t,e={}){const r=wo.prepareDocumentGettingActions(e);return await this.request("get-documents",Object.assign({},e,{body:{collection:t,actions:r},timeout:e.timeout||this.options.request.documentGettingTimeout}))}async getDocumentsCount(t,e={}){const r=wo.prepareDocumentGettingActions(e);return(await this.request("get-documents-count",Object.assign({},e,{body:{collection:t,actions:r},timeout:e.timeout||this.options.request.documentGettingTimeout}))).count}async getDocumentByPk(t,e,r={}){return(await this.request("get-document-by-pk",Object.assign({},r,{body:{collection:t,pkValue:e},timeout:r.timeout||this.options.request.documentGettingTimeout}))).document}prepareOptions(){super.prepareOptions(),this.options.request.documentAdditionTimeout=wo.getMs(this.options.request.documentAdditionTimeout),this.options.request.documentGettingTimeout=wo.getMs(this.options.request.documentGettingTimeout),this.options.request.documentUpdateTimeout=wo.getMs(this.options.request.documentUpdateTimeout),this.options.request.documentDeletionTimeout=wo.getMs(this.options.request.documentDeletionTimeout)}})()})(),n=n.default})())); \ No newline at end of file +e.read=function(t,e,r,n,o){var i,s,a=8*o-n-1,c=(1<>1,f=-7,l=r?o-1:0,p=r?-1:1,h=t[e+l];for(l+=p,i=h&(1<<-f)-1,h>>=-f,f+=a;f>0;i=256*i+t[e+l],l+=p,f-=8);for(s=i&(1<<-f)-1,i>>=-f,f+=n;f>0;s=256*s+t[e+l],l+=p,f-=8);if(0===i)i=1-u;else{if(i===c)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,n),i-=u}return(h?-1:1)*s*Math.pow(2,i-n)},e.write=function(t,e,r,n,o,i){var s,a,c,u=8*i-o-1,f=(1<>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:i-1,y=n?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=f):(s=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-s))<1&&(s--,c*=2),(e+=s+l>=1?p/c:p*Math.pow(2,1-l))*c>=2&&(s++,c/=2),s+l>=f?(a=0,s=f):s+l>=1?(a=(e*c-1)*Math.pow(2,o),s+=l):(a=e*Math.pow(2,l-1)*Math.pow(2,o),s=0));o>=8;t[r+h]=255&a,h+=y,a/=256,o-=8);for(s=s<0;t[r+h]=255&s,h+=y,s/=256,u-=8);t[r+h-y]|=128*g}},6698:t=>{"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},7244:(t,e,r)=>{"use strict";var n=r(9092)(),o=r(8075)("Object.prototype.toString"),i=function(t){return!(n&&t&&"object"==typeof t&&Symbol.toStringTag in t)&&"[object Arguments]"===o(t)},s=function(t){return!!i(t)||null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Array]"!==o(t)&&"[object Function]"===o(t.callee)},a=function(){return i(arguments)}();i.isLegacyArguments=s,t.exports=a?i:s},9600:t=>{"use strict";var e,r,n=Function.prototype.toString,o="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof o&&"function"==typeof Object.defineProperty)try{e=Object.defineProperty({},"length",{get:function(){throw r}}),r={},o((function(){throw 42}),null,e)}catch(t){t!==r&&(o=null)}else o=null;var i=/^\s*class\b/,s=function(t){try{var e=n.call(t);return i.test(e)}catch(t){return!1}},a=function(t){try{return!s(t)&&(n.call(t),!0)}catch(t){return!1}},c=Object.prototype.toString,u="function"==typeof Symbol&&!!Symbol.toStringTag,f=!(0 in[,]),l=function(){return!1};if("object"==typeof document){var p=document.all;c.call(p)===c.call(document.all)&&(l=function(t){if((f||!t)&&(void 0===t||"object"==typeof t))try{var e=c.call(t);return("[object HTMLAllCollection]"===e||"[object HTML document.all class]"===e||"[object HTMLCollection]"===e||"[object Object]"===e)&&null==t("")}catch(t){}return!1})}t.exports=o?function(t){if(l(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;try{o(t,null,e)}catch(t){if(t!==r)return!1}return!s(t)&&a(t)}:function(t){if(l(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if(u)return a(t);if(s(t))return!1;var e=c.call(t);return!("[object Function]"!==e&&"[object GeneratorFunction]"!==e&&!/^\[object HTML/.test(e))&&a(t)}},8184:(t,e,r)=>{"use strict";var n,o=Object.prototype.toString,i=Function.prototype.toString,s=/^\s*(?:function)?\*/,a=r(9092)(),c=Object.getPrototypeOf;t.exports=function(t){if("function"!=typeof t)return!1;if(s.test(i.call(t)))return!0;if(!a)return"[object GeneratorFunction]"===o.call(t);if(!c)return!1;if(void 0===n){var e=function(){if(!a)return!1;try{return Function("return function*() {}")()}catch(t){}}();n=!!e&&c(e)}return c(t)===n}},3003:t=>{"use strict";t.exports=function(t){return t!=t}},4133:(t,e,r)=>{"use strict";var n=r(487),o=r(8452),i=r(3003),s=r(6642),a=r(2464),c=n(s(),Number);o(c,{getPolyfill:s,implementation:i,shim:a}),t.exports=c},6642:(t,e,r)=>{"use strict";var n=r(3003);t.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:n}},2464:(t,e,r)=>{"use strict";var n=r(8452),o=r(6642);t.exports=function(){var t=o();return n(Number,{isNaN:t},{isNaN:function(){return Number.isNaN!==t}}),t}},5680:(t,e,r)=>{"use strict";var n=r(5767);t.exports=function(t){return!!n(t)}},9211:t=>{"use strict";var e=function(t){return t!=t};t.exports=function(t,r){return 0===t&&0===r?1/t==1/r:t===r||!(!e(t)||!e(r))}},7653:(t,e,r)=>{"use strict";var n=r(8452),o=r(487),i=r(9211),s=r(9394),a=r(6576),c=o(s(),Object);n(c,{getPolyfill:s,implementation:i,shim:a}),t.exports=c},9394:(t,e,r)=>{"use strict";var n=r(9211);t.exports=function(){return"function"==typeof Object.is?Object.is:n}},6576:(t,e,r)=>{"use strict";var n=r(9394),o=r(8452);t.exports=function(){var t=n();return o(Object,{is:t},{is:function(){return Object.is!==t}}),t}},8875:(t,e,r)=>{"use strict";var n;if(!Object.keys){var o=Object.prototype.hasOwnProperty,i=Object.prototype.toString,s=r(1093),a=Object.prototype.propertyIsEnumerable,c=!a.call({toString:null},"toString"),u=a.call((function(){}),"prototype"),f=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],l=function(t){var e=t.constructor;return e&&e.prototype===t},p={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("undefined"==typeof window)return!1;for(var t in window)try{if(!p["$"+t]&&o.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{l(window[t])}catch(t){return!0}}catch(t){return!0}return!1}();n=function(t){var e=null!==t&&"object"==typeof t,r="[object Function]"===i.call(t),n=s(t),a=e&&"[object String]"===i.call(t),p=[];if(!e&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var y=u&&r;if(a&&t.length>0&&!o.call(t,0))for(var g=0;g0)for(var d=0;d{"use strict";var n=Array.prototype.slice,o=r(1093),i=Object.keys,s=i?function(t){return i(t)}:r(8875),a=Object.keys;s.shim=function(){if(Object.keys){var t=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);t||(Object.keys=function(t){return o(t)?a(n.call(t)):a(t)})}else Object.keys=s;return Object.keys||s},t.exports=s},1093:t=>{"use strict";var e=Object.prototype.toString;t.exports=function(t){var r=e.call(t),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===e.call(t.callee)),n}},8403:(t,e,r)=>{"use strict";var n=r(1189),o=r(1333)(),i=r(8075),s=Object,a=i("Array.prototype.push"),c=i("Object.prototype.propertyIsEnumerable"),u=o?Object.getOwnPropertySymbols:null;t.exports=function(t,e){if(null==t)throw new TypeError("target must be an object");var r=s(t);if(1===arguments.length)return r;for(var i=1;i{"use strict";var n=r(8403);t.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var t="abcdefghijklmnopqrst",e=t.split(""),r={},n=0;n{var e,r,n=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(t){if(e===setTimeout)return setTimeout(t,0);if((e===o||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(r){try{return e.call(null,t,0)}catch(r){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:o}catch(t){e=o}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(t){r=i}}();var a,c=[],u=!1,f=-1;function l(){u&&a&&(u=!1,a.length?c=a.concat(c):f=-1,c.length&&p())}function p(){if(!u){var t=s(l);u=!0;for(var e=c.length;e;){for(a=c,c=[];++f1)for(var r=1;r{"use strict";function e(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,n,o,i){n=n||"&",o=o||"=";var s={};if("string"!=typeof t||0===t.length)return s;var a=/\+/g;t=t.split(n);var c=1e3;i&&"number"==typeof i.maxKeys&&(c=i.maxKeys);var u=t.length;c>0&&u>c&&(u=c);for(var f=0;f=0?(l=g.substr(0,d),p=g.substr(d+1)):(l=g,p=""),h=decodeURIComponent(l),y=decodeURIComponent(p),e(s,h)?r(s[h])?s[h].push(y):s[h]=[s[h],y]:s[h]=y}return s};var r=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},1590:t=>{"use strict";var e=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,i,s,a){return i=i||"&",s=s||"=",null===t&&(t=void 0),"object"==typeof t?n(o(t),(function(o){var a=encodeURIComponent(e(o))+s;return r(t[o])?n(t[o],(function(t){return a+encodeURIComponent(e(t))})).join(i):a+encodeURIComponent(e(t[o]))})).join(i):a?encodeURIComponent(e(a))+s+encodeURIComponent(e(t)):""};var r=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function n(t,e){if(t.map)return t.map(e);for(var r=[],n=0;n{"use strict";e.decode=e.parse=r(4930),e.encode=e.stringify=r(1590)},6897:(t,e,r)=>{"use strict";var n=r(453),o=r(41),i=r(592)(),s=r(5795),a=r(9675),c=n("%Math.floor%");t.exports=function(t,e){if("function"!=typeof t)throw new a("`fn` is not a function");if("number"!=typeof e||e<0||e>4294967295||c(e)!==e)throw new a("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,u=!0;if("length"in t&&s){var f=s(t,"length");f&&!f.configurable&&(n=!1),f&&!f.writable&&(u=!1)}return(n||u||!r)&&(i?o(t,"length",e,!0,!0):o(t,"length",e)),t}},318:t=>{var e=1e3,r=60*e,n=60*r,o=24*n,i=7*o,s=365.25*o;function a(t,e,r,n){var o=e>=1.5*r;return Math.round(t/r)+" "+n+(o?"s":"")}t.exports=function(t,c){c=c||{};var u=typeof t;if("string"===u&&t.length>0)return function(t){if((t=String(t)).length>100)return;var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(!a)return;var c=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*s;case"weeks":case"week":case"w":return c*i;case"days":case"day":case"d":return c*o;case"hours":case"hour":case"hrs":case"hr":case"h":return c*n;case"minutes":case"minute":case"mins":case"min":case"m":return c*r;case"seconds":case"second":case"secs":case"sec":case"s":return c*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(t);if("number"===u&&isFinite(t))return c.long?function(t){var i=Math.abs(t);if(i>=o)return a(t,i,o,"day");if(i>=n)return a(t,i,n,"hour");if(i>=r)return a(t,i,r,"minute");if(i>=e)return a(t,i,e,"second");return t+" ms"}(t):function(t){var i=Math.abs(t);if(i>=o)return Math.round(t/o)+"d";if(i>=n)return Math.round(t/n)+"h";if(i>=r)return Math.round(t/r)+"m";if(i>=e)return Math.round(t/e)+"s";return t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},6127:(t,e,r)=>{"use strict";var n=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==r.g)return r.g;throw new Error("unable to locate global object")}();t.exports=e=n.fetch,n.fetch&&(e.default=n.fetch.bind(n)),e.Headers=n.Headers,e.Request=n.Request,e.Response=n.Response},1135:t=>{t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},9032:(t,e,r)=>{"use strict";var n=r(7244),o=r(8184),i=r(5767),s=r(5680);function a(t){return t.call.bind(t)}var c="undefined"!=typeof BigInt,u="undefined"!=typeof Symbol,f=a(Object.prototype.toString),l=a(Number.prototype.valueOf),p=a(String.prototype.valueOf),h=a(Boolean.prototype.valueOf);if(c)var y=a(BigInt.prototype.valueOf);if(u)var g=a(Symbol.prototype.valueOf);function d(t,e){if("object"!=typeof t)return!1;try{return e(t),!0}catch(t){return!1}}function b(t){return"[object Map]"===f(t)}function v(t){return"[object Set]"===f(t)}function m(t){return"[object WeakMap]"===f(t)}function w(t){return"[object WeakSet]"===f(t)}function E(t){return"[object ArrayBuffer]"===f(t)}function A(t){return"undefined"!=typeof ArrayBuffer&&(E.working?E(t):t instanceof ArrayBuffer)}function j(t){return"[object DataView]"===f(t)}function O(t){return"undefined"!=typeof DataView&&(j.working?j(t):t instanceof DataView)}e.isArgumentsObject=n,e.isGeneratorFunction=o,e.isTypedArray=s,e.isPromise=function(t){return"undefined"!=typeof Promise&&t instanceof Promise||null!==t&&"object"==typeof t&&"function"==typeof t.then&&"function"==typeof t.catch},e.isArrayBufferView=function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):s(t)||O(t)},e.isUint8Array=function(t){return"Uint8Array"===i(t)},e.isUint8ClampedArray=function(t){return"Uint8ClampedArray"===i(t)},e.isUint16Array=function(t){return"Uint16Array"===i(t)},e.isUint32Array=function(t){return"Uint32Array"===i(t)},e.isInt8Array=function(t){return"Int8Array"===i(t)},e.isInt16Array=function(t){return"Int16Array"===i(t)},e.isInt32Array=function(t){return"Int32Array"===i(t)},e.isFloat32Array=function(t){return"Float32Array"===i(t)},e.isFloat64Array=function(t){return"Float64Array"===i(t)},e.isBigInt64Array=function(t){return"BigInt64Array"===i(t)},e.isBigUint64Array=function(t){return"BigUint64Array"===i(t)},b.working="undefined"!=typeof Map&&b(new Map),e.isMap=function(t){return"undefined"!=typeof Map&&(b.working?b(t):t instanceof Map)},v.working="undefined"!=typeof Set&&v(new Set),e.isSet=function(t){return"undefined"!=typeof Set&&(v.working?v(t):t instanceof Set)},m.working="undefined"!=typeof WeakMap&&m(new WeakMap),e.isWeakMap=function(t){return"undefined"!=typeof WeakMap&&(m.working?m(t):t instanceof WeakMap)},w.working="undefined"!=typeof WeakSet&&w(new WeakSet),e.isWeakSet=function(t){return w(t)},E.working="undefined"!=typeof ArrayBuffer&&E(new ArrayBuffer),e.isArrayBuffer=A,j.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&j(new DataView(new ArrayBuffer(1),0,1)),e.isDataView=O;var S="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function _(t){return"[object SharedArrayBuffer]"===f(t)}function x(t){return void 0!==S&&(void 0===_.working&&(_.working=_(new S)),_.working?_(t):t instanceof S)}function T(t){return d(t,l)}function R(t){return d(t,p)}function P(t){return d(t,h)}function I(t){return c&&d(t,y)}function k(t){return u&&d(t,g)}e.isSharedArrayBuffer=x,e.isAsyncFunction=function(t){return"[object AsyncFunction]"===f(t)},e.isMapIterator=function(t){return"[object Map Iterator]"===f(t)},e.isSetIterator=function(t){return"[object Set Iterator]"===f(t)},e.isGeneratorObject=function(t){return"[object Generator]"===f(t)},e.isWebAssemblyCompiledModule=function(t){return"[object WebAssembly.Module]"===f(t)},e.isNumberObject=T,e.isStringObject=R,e.isBooleanObject=P,e.isBigIntObject=I,e.isSymbolObject=k,e.isBoxedPrimitive=function(t){return T(t)||R(t)||P(t)||I(t)||k(t)},e.isAnyArrayBuffer=function(t){return"undefined"!=typeof Uint8Array&&(A(t)||x(t))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(t){Object.defineProperty(e,t,{enumerable:!1,value:function(){throw new Error(t+" is not supported in userland")}})}))},537:(t,e,r)=>{var n=r(5606),o=r(6763),i=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),r={},n=0;n=o)return t;switch(t){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return t}})),a=n[r];r=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),b(r)?n.showHidden=r:r&&e._extend(n,r),E(n.showHidden)&&(n.showHidden=!1),E(n.depth)&&(n.depth=2),E(n.colors)&&(n.colors=!1),E(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=l),h(n,t,n.depth)}function l(t,e){var r=f.styles[e];return r?"["+f.colors[r][0]+"m"+t+"["+f.colors[r][1]+"m":t}function p(t,e){return t}function h(t,r,n){if(t.customInspect&&r&&_(r.inspect)&&r.inspect!==e.inspect&&(!r.constructor||r.constructor.prototype!==r)){var o=r.inspect(n,t);return w(o)||(o=h(t,o,n)),o}var i=function(t,e){if(E(e))return t.stylize("undefined","undefined");if(w(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}if(m(e))return t.stylize(""+e,"number");if(b(e))return t.stylize(""+e,"boolean");if(v(e))return t.stylize("null","null")}(t,r);if(i)return i;var s=Object.keys(r),a=function(t){var e={};return t.forEach((function(t,r){e[t]=!0})),e}(s);if(t.showHidden&&(s=Object.getOwnPropertyNames(r)),S(r)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return y(r);if(0===s.length){if(_(r)){var c=r.name?": "+r.name:"";return t.stylize("[Function"+c+"]","special")}if(A(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(O(r))return t.stylize(Date.prototype.toString.call(r),"date");if(S(r))return y(r)}var u,f="",l=!1,p=["{","}"];(d(r)&&(l=!0,p=["[","]"]),_(r))&&(f=" [Function"+(r.name?": "+r.name:"")+"]");return A(r)&&(f=" "+RegExp.prototype.toString.call(r)),O(r)&&(f=" "+Date.prototype.toUTCString.call(r)),S(r)&&(f=" "+y(r)),0!==s.length||l&&0!=r.length?n<0?A(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special"):(t.seen.push(r),u=l?function(t,e,r,n,o){for(var i=[],s=0,a=e.length;s=0&&0,t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0);if(n>60)return r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1];return r[0]+e+" "+t.join(", ")+" "+r[1]}(u,f,p)):p[0]+f+p[1]}function y(t){return"["+Error.prototype.toString.call(t)+"]"}function g(t,e,r,n,o,i){var s,a,c;if((c=Object.getOwnPropertyDescriptor(e,o)||{value:e[o]}).get?a=c.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):c.set&&(a=t.stylize("[Setter]","special")),P(n,o)||(s="["+o+"]"),a||(t.seen.indexOf(c.value)<0?(a=v(r)?h(t,c.value,null):h(t,c.value,r-1)).indexOf("\n")>-1&&(a=i?a.split("\n").map((function(t){return" "+t})).join("\n").slice(2):"\n"+a.split("\n").map((function(t){return" "+t})).join("\n")):a=t.stylize("[Circular]","special")),E(s)){if(i&&o.match(/^\d+$/))return a;(s=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.slice(1,-1),s=t.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=t.stylize(s,"string"))}return s+": "+a}function d(t){return Array.isArray(t)}function b(t){return"boolean"==typeof t}function v(t){return null===t}function m(t){return"number"==typeof t}function w(t){return"string"==typeof t}function E(t){return void 0===t}function A(t){return j(t)&&"[object RegExp]"===x(t)}function j(t){return"object"==typeof t&&null!==t}function O(t){return j(t)&&"[object Date]"===x(t)}function S(t){return j(t)&&("[object Error]"===x(t)||t instanceof Error)}function _(t){return"function"==typeof t}function x(t){return Object.prototype.toString.call(t)}function T(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(t){if(t=t.toUpperCase(),!a[t])if(c.test(t)){var r=n.pid;a[t]=function(){var n=e.format.apply(e,arguments);o.error("%s %d: %s",t,r,n)}}else a[t]=function(){};return a[t]},e.inspect=f,f.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},f.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.types=r(9032),e.isArray=d,e.isBoolean=b,e.isNull=v,e.isNullOrUndefined=function(t){return null==t},e.isNumber=m,e.isString=w,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=E,e.isRegExp=A,e.types.isRegExp=A,e.isObject=j,e.isDate=O,e.types.isDate=O,e.isError=S,e.types.isNativeError=S,e.isFunction=_,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=r(1135);var R=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function P(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){var t,r;o.log("%s - %s",(t=new Date,r=[T(t.getHours()),T(t.getMinutes()),T(t.getSeconds())].join(":"),[t.getDate(),R[t.getMonth()],r].join(" ")),e.format.apply(e,arguments))},e.inherits=r(6698),e._extend=function(t,e){if(!e||!j(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t};var I="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function k(t,e){if(!t){var r=new Error("Promise was rejected with a falsy value");r.reason=t,t=r}return e(t)}e.promisify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');if(I&&t[I]){var e;if("function"!=typeof(e=t[I]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,I,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,r,n=new Promise((function(t,n){e=t,r=n})),o=[],i=0;i{"use strict";var n=r(2682),o=r(9209),i=r(487),s=r(8075),a=r(5795),c=s("Object.prototype.toString"),u=r(9092)(),f="undefined"==typeof globalThis?r.g:globalThis,l=o(),p=s("String.prototype.slice"),h=Object.getPrototypeOf,y=s("Array.prototype.indexOf",!0)||function(t,e){for(var r=0;r-1?e:"Object"===e&&function(t){var e=!1;return n(g,(function(r,n){if(!e)try{r(t),e=p(n,1)}catch(t){}})),e}(t)}return a?function(t){var e=!1;return n(g,(function(r,n){if(!e)try{"$"+r(t)===n&&(e=p(n,1))}catch(t){}})),e}(t):null}},9209:(t,e,r)=>{"use strict";var n=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],o="undefined"==typeof globalThis?r.g:globalThis;t.exports=function(){for(var t=[],e=0;e{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};return(()=>{"use strict";r.d(n,{default:()=>jo});var t={};r.r(t),r.d(t,{AccessError:()=>Mn,AuthError:()=>Fn,NotFoundError:()=>qn,WorkError:()=>$n});const e=function(){this.__data__=[],this.size=0};const o=function(t,e){return t===e||t!=t&&e!=e};const i=function(t,e){for(var r=t.length;r--;)if(o(t[r][0],e))return r;return-1};var s=Array.prototype.splice;const a=function(t){var e=this.__data__,r=i(e,t);return!(r<0)&&(r==e.length-1?e.pop():s.call(e,r,1),--this.size,!0)};const c=function(t){var e=this.__data__,r=i(e,t);return r<0?void 0:e[r][1]};const u=function(t){return i(this.__data__,t)>-1};const f=function(t,e){var r=this.__data__,n=i(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function l(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e-1&&t%1==0&&t<=9007199254740991};const Vt=function(t){return null!=t&&zt(t.length)&&!I(t)};const Gt=function(t){return Lt(t)&&Vt(t)};const Wt=function(){return!1};var Ht="object"==typeof exports&&exports&&!exports.nodeType&&exports,Jt=Ht&&"object"==typeof module&&module&&!module.nodeType&&module,Yt=Jt&&Jt.exports===Ht?m.Buffer:void 0;const Qt=(Yt?Yt.isBuffer:void 0)||Wt;var Kt=Function.prototype,Xt=Object.prototype,Zt=Kt.toString,te=Xt.hasOwnProperty,ee=Zt.call(Object);const re=function(t){if(!Lt(t)||"[object Object]"!=R(t))return!1;var e=kt(t);if(null===e)return!0;var r=te.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&Zt.call(r)==ee};var ne={};ne["[object Float32Array]"]=ne["[object Float64Array]"]=ne["[object Int8Array]"]=ne["[object Int16Array]"]=ne["[object Int32Array]"]=ne["[object Uint8Array]"]=ne["[object Uint8ClampedArray]"]=ne["[object Uint16Array]"]=ne["[object Uint32Array]"]=!0,ne["[object Arguments]"]=ne["[object Array]"]=ne["[object ArrayBuffer]"]=ne["[object Boolean]"]=ne["[object DataView]"]=ne["[object Date]"]=ne["[object Error]"]=ne["[object Function]"]=ne["[object Map]"]=ne["[object Number]"]=ne["[object Object]"]=ne["[object RegExp]"]=ne["[object Set]"]=ne["[object String]"]=ne["[object WeakMap]"]=!1;const oe=function(t){return Lt(t)&&zt(t.length)&&!!ne[R(t)]};const ie=function(t){return function(e){return t(e)}};var se="object"==typeof exports&&exports&&!exports.nodeType&&exports,ae=se&&"object"==typeof module&&module&&!module.nodeType&&module,ce=ae&&ae.exports===se&&b.process,ue=function(){try{var t=ae&&ae.require&&ae.require("util").types;return t||ce&&ce.binding&&ce.binding("util")}catch(t){}}();var fe=ue&&ue.isTypedArray;const le=fe?ie(fe):oe;const pe=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]};var he=Object.prototype.hasOwnProperty;const ye=function(t,e,r){var n=t[e];he.call(t,e)&&o(n,r)&&(void 0!==r||e in t)||bt(t,e,r)};const ge=function(t,e,r,n){var o=!r;r||(r={});for(var i=-1,s=e.length;++i-1&&t%1==0&&t0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(Be);const Le=function(t,e){return De(Ie(t,e,Te),t+"")};const $e=function(t,e,r){if(!P(r))return!1;var n=typeof e;return!!("number"==n?Vt(r)&&ve(e,r.length):"string"==n&&e in r)&&o(r[e],t)};const Fe=function(t){return Le((function(e,r){var n=-1,o=r.length,i=o>1?r[o-1]:void 0,s=o>2?r[2]:void 0;for(i=t.length>3&&"function"==typeof i?(o--,i):void 0,s&&$e(r[0],r[1],s)&&(i=o<3?void 0:i,o=1),e=Object(e);++na))return!1;var u=i.get(t),f=i.get(e);if(u&&f)return u==e&&f==t;var l=-1,p=!0,h=2&r?new cr:void 0;for(i.set(t,e),i.set(e,t);++l-1};const In=function(t,e,r){for(var n=-1,o=null==t?0:t.length;++n=200){var u=e?null:Un(t);if(u)return hr(u);s=!1,o=fr,c=new cr}else c=e?[]:a;t:for(;++nJSON.stringify(e,null,2);let i=null,s=!1;for(let t=0;tJSON.stringify(a,null,2);try{if(a.type!=n){const t=`Wrong data type "${n}" instead of "${a.type}" ${o()} for ${c()}`;throw new $n(t,"ERR_SPREADABLE_VALIDATE_SCHEMA_WRONG_DATA_TYPE")}if("array"==n){const t="function"==typeof a.minLength?t(e):a.minLength,r="function"==typeof a.maxLength?r(e):a.maxLength;if(t&&e.lengthr){const t=`Wrong array max length ${o()} for ${c()}`;throw new $n(t,"ERR_SPREADABLE_VALIDATE_SCHEMA_WRONG_ARRAY_MAX_LENGTH")}if(a.uniq){if((!0===a.uniq?Ln(e):Ln(e,a.uniq)).length!=e.length){const t=`Wrong array uniqueness ${o()} for ${c()}`;throw new $n(t,"ERR_SPREADABLE_VALIDATE_SCHEMA_WRONG_ARRAY_UNIQUENESS")}}a.items&&e.forEach((t=>this.validateSchema(a.items,t)))}else if("object"==n){const t=a.props||{},r=a.required;if(r&&!Array.isArray(r))throw new Error(`Option "required" for ${c()} must be an array`);if(a.canBeNull&&null===e){s=!0;continue}if(!1===a.canBeNull&&null===e){const t=`Data for ${c()} can't be null`;throw new $n(t,"ERR_SPREADABLE_VALIDATE_SCHEMA_NULL")}if(a.strict){const r=Object.keys(t).sort(),n=Object.keys(e).sort();if(r.toString()!=n.toString()){const t=`Wrong strict object structure ${o()} for ${c()}`;throw new $n(t,"ERR_SPREADABLE_VALIDATE_SCHEMA_STRICT")}}if(a.expected)for(let r in e)if(!Object.prototype.hasOwnProperty.call(t,r)){const t=`Wrong expected object structure ${o()} for ${c()}`;throw new $n(t,"ERR_SPREADABLE_VALIDATE_SCHEMA_EXPECTED")}const n={};r&&r.forEach((t=>n[t]=!0));for(let i in t)if(Object.prototype.hasOwnProperty.call(e,i))this.validateSchema(t[i],e[i]);else if(r&&n[i]){const t=`Property "${i}" is required in ${o()} for ${c()}`;throw new $n(t,"ERR_SPREADABLE_VALIDATE_SCHEMA_REQUIRED_PROPS")}}if(!Object.prototype.hasOwnProperty.call(a,"value")){s=!0;continue}let t;if("function"==typeof a.value)t=a.value(e);else if(a.value instanceof RegExp)t=String(e).match(a.value);else{t=-1!=(Array.isArray(a.value)?a.value:[a.value]).indexOf(e)}if(!t){const t=`Validation is failed for ${o()}`;throw new $n(t,"ERR_SPREADABLE_VALIDATE_SCHEMA_VALUE")}s=!0}catch(t){i=t}}if(!s&&i)throw i},isBrowserEnv:function(){return"object"==typeof window},getRandomElement:function(t){return t[Math.floor(Math.random()*t.length)]},getMs:function(t){return"string"!=typeof t||"auto"==t?t:or(t)},getBytes:function(t){return"string"!=typeof t||t.match("%")||"auto"==t?t:nr(t)},getCpuUsage:async function(t={}){return await new Promise(((e,r)=>{const n=Nn.cpuUsage(),o=Nn.hrtime();setTimeout((()=>{try{const t=Nn.cpuUsage(n),r=Nn.hrtime(o),i=1e6*r[0]+r[1]/1e3,s=100*(t.user+t.system)/i;e(s)}catch(t){r(t)}}),t.timeout||1e3)}))},isPortUsed:async function(t){return await tr.check(+t,"localhost")},getHostIp:async function(t){if("localhost"==t)return"127.0.0.1";if(this.isValidIp(t))return t;const e=this.dnsCache.get(t);if(e){if(e.createdAt+this.dnsCachePeriod>Date.now())return e.value;this.dnsCache.delete(t)}return await new Promise((e=>{tr.lookup(t,((r,n)=>{if(r||!n||/^127/.test(n))return e(null);if(this.isIpv6(n)&&(n=this.getFullIpv6(n)),this.dnsCache.set(t,{value:n,createdAt:Date.now()}),this.dnsCache.size>this.dnsCacheLimit){Array.from(this.dnsCache.keys()).slice(0,this.dnsCache.size-this.dnsCacheLimit).forEach((t=>this.dnsCache.delete(t)))}return e(n)}))}))},getAddressIp:async function(t){return await this.getHostIp(this.splitAddress(t)[0])},getRequestTimer:function(t,e={}){let r=Date.now();return(n,o)=>{if(o=Object.assign({},e,o),n&&!Array.isArray(n)&&(n=[n]),void 0===t)return n?n[0]:void 0;const i=Date.now();if(t-=i-r,r=i,n){let e=o.min,r=n.reduce(((t,e)=>t+e)),i=r/t,s=i>1?n[0]/i:n[0];return s>n[0]&&(s=n[0]),o.grabFree&&t>r&&(s+=(t-r)/n.length),e&&st&&(s=t),s>0?s:0}return t}},getExternalIp:async function(){let t=null;for(let e of this.ipLookupPoints)try{const r=await er(e,{signal:AbortSignal.timeout(1e3)}),n=await r.text();if(this.isValidIp(n)){t=n;break}}catch(t){continue}return t},getLocalIp:function(){const t=tr.networkInterfaces();let e;for(let r in t)for(let n in t[r]){const o=t[r][n];"IPv4"!==o.family||o.internal||(e=o.address)}return e},getRemoteIp:function(t,e={}){let r=t.connection.remoteAddress||t.socket.remoteAddress,n=!0;if(!r)return"";const o=t=>{if(!e.trusted||!e.trusted.length)return!0;for(let r=0;rt.trim())),i=n.slice(1);if(e.trusted){i.reduce(((t,e)=>o(e)?t+1:t),0)===i.length&&(r=n[0])}else r=n[0]}return r&&this.isIpv6(r)&&(r=this.getFullIpv6(r)),r},getFullIpv6:function(t){return tr.parse(t).toString({format:"v6",zeroElide:!1,zeroPad:!0})},isIpv6:function(t){return!("string"!=typeof t||!t.match(":")||!tr(t))},ipv4Tov6:function(t){return this.getFullIpv6("::ffff:"+t)},isIpEqual:function(t,e){return 0==tr.compare(tr.parse(t),tr.parse(e))},createAddress:function(t,e){return this.isIpv6(t)?`[${this.getFullIpv6(t)}]:${e}`:`${t}:${e}`},isValidPort:function(t){return!!["number","string"].includes(typeof t)&&(+t>=0&&+t<=65535)},isValidIp:function(t){return tr(t)},isValidDomain:function(t){return"string"==typeof t&&this.domainValidationRegex.test(t)},isValidHostname:function(t){return this.isValidDomain(t)||this.isValidIp(t)},isValidAddress:function(t){if(!t||"string"!=typeof t)return!1;const e=this.splitAddress(t),r=e[0],n=e[1];return this.isValidHostname(r)&&this.isValidPort(n)},splitAddress:function(t){let e;return t&&"string"==typeof t?t.match("]")?(e=t.split("]:"),[this.getFullIpv6(e[0].slice(1)),+e[1]]):(e=t.split(":"),[e[0],+e[1]]):[]},createDataHash:function(t){return tr.createHash("md5").update(t.join("+")).digest("hex")},getClosestPeriodTime:function(t,e){return Math.floor(t/e)*e},isHexColor:function(t){return"string"==typeof t&&/^#[0-9A-F]{6}$/i.test(t)},getRandomHexColor:function(){return"#"+Math.floor(16777216*Math.random()).toString(16).padStart(6,0)},invertHexColor:function(t){return"#"+(16777215^Number(`0x1${t.slice(1)}`)).toString(16).slice(1).toUpperCase()},createRequestTimeoutError:function(){const t=new Error("Request timed out");return t.code="ERR_SPREADABLE_REQUEST_TIMEDOUT",t},isRequestTimeoutError:function(t){return t instanceof Error&&(["ESOCKETTIMEDOUT","ETIMEDOUT","ERR_SPREADABLE_REQUEST_TIMEDOUT"].includes(t.code)||["request-timeout","body-timeout"].includes(t.type))},FilesQueue:class{constructor(t,e={}){this.folderPath=t,this.options=Object.assign({limit:5,ext:""},e),this.files=[],this.__queue=[]}async init(){await this.normalize()}async sort(){return this.files.sort(((t,e)=>t.index-e.index))}async info(t){return{filePath:t,stat:await tr.stat(t),index:parseInt(tr.basename(t))}}async normalize(){await tr.ensureDir(this.folderPath),this.files=await tr.readdir(this.folderPath);for(let t=0;t{const n=async()=>{let n,o;try{o=await t()}catch(t){n=t}n?r(n):e(o),this.__queue.shift(),this.__queue.length&&this.__queue[0]()};this.__queue.push(n),this.__queue.length<=1&&n()}))}getLast(){return this.files[this.files.length-1]||null}getFirst(){return this.files[0]||null}createName(t){return`${t}${this.options.ext?"."+this.options.ext:""}`}createNewName(){const t=this.getLast(),e=t?t.index+1:1;return this.createName(e)}}},zn=Cn;class Vn{constructor(){this.__services=[]}async init(){if(!this.node&&!this.__isMasterService)throw new Error(`You have to register the service "${this.constructor.name}" at first`);await this.initServices(),this.__initialized=Date.now()}async deinit(){await this.deinitServices(),this.__initialized=!1}async destroy(){await this.destroyServices(),await this.deinit()}async addService(t,e,r){const n=this.__services.findIndex((e=>e.name===t&&e.type===r));return-1!=n&&this.__services.splice(n,1),this.__services.push({service:e,name:t,type:r}),e.name=t,e.node=this,this.__initialized&&!e.__initialized&&await e.init(),e}async getService(t,e){const r=this.__services.find((r=>r.name===t&&r.type==e));return r?r.service:null}async removeService(t,e){const r=this.__services.findIndex((r=>r.name===t&&r.type==e));if(-1==r)return;const n=this.__services[r];await n.service.destroy(),this.__services.splice(r,1)}async initServices(){for(let t=0;t=0;t--)await this.__services[t].service.deinit()}async destroyServices(){for(let t=this.__services.length-1;t>=0;t--)await this.__services[t].service.destroy();this.__services=[]}isInitialized(){return!!this.__initialized}getVersion(){return`${this.constructor.codename}-${this.constructor.version.split(".").slice(0,-1).join(".")}`}}var Gn=r(6763);const Wn=class extends(Hn||Vn){constructor(t={}){super(...arguments),this.options=t,this.levels=["info","warn","error"],this.defaultLevel="info"}async init(){this.setLevel(void 0===this.options.level?this.defaultLevel:this.options.level),await super.init.apply(this,arguments)}async deinit(){this.setLevel(!1),await super.deinit.apply(this,arguments)}async log(){throw new Error('Method "log" is required for logger transport')}async info(...t){await this.log("info",...t)}async warn(...t){await this.log("warn",...t)}async error(...t){await this.log("error",...t)}isLevelActive(t){return!!this.level&&this.levels.indexOf(t)>=this.levels.indexOf(this.level)}setLevel(t){if(!1===t)return this.level=!1;if(-1==this.levels.indexOf(t))throw new Error(`Wrong logger level "${t}"`);this.level=t}};var Hn;const Jn=(t=>class extends(t||Vn){constructor(t={}){super(...arguments),this.options=Fe({showCompletionLogs:!0,showFailLogs:!0},t),this.tasks={}}async add(t,e,r,n){const o=Fe({interval:e,fn:r,name:t},n);return void 0===o.isStopped&&(o.isStopped=!0),this.tasks[t]=o,o.isStopped||(await this.stop(o),await this.start(o)),o}async get(t){return this.tasks[t]||null}async remove(t){const e=this.tasks[t];e&&(!e.isStopped&&await this.stop(e),delete this.tasks[t])}async init(){this.startAll(),await super.init.apply(this,arguments)}async deinit(){this.stopAll(),await super.deinit.apply(this,arguments)}async startAll(){for(let t in this.tasks)await this.start(this.tasks[t])}async stopAll(){for(let t in this.tasks)await this.stop(this.tasks[t])}async run(t){if(t.isStopped)this.options.showFailLogs&&this.node.logger.warn(`Task "${t.name}" should be started at first`);else if(t.isRun)this.options.showFailLogs&&this.node.logger.warn(`Task "${t.name}" has blocking operations`);else{t.isRun=!0;try{await t.fn(),this.options.showCompletionLogs&&this.node.logger.info(`Task "${t.name}" has been completed`)}catch(e){this.options.showFailLogs&&this.node.logger.error(`Task "${t.name}", ${e.stack}`)}t.isRun=!1}}async start(t){t.isStopped=!1}async stop(t){t.isStopped=!0}})(),Yn=JSON.parse('{"UU":"spreadable","rE":"0.3.6"}');var Qn=r(8287).hp;const Kn=(t=>class extends(t||Wn){constructor(){super(...arguments),this.colors={info:"white",warn:"yellow",error:"red"}}async log(t,e){this.isLevelActive(t)&&(Gn[t]||Gn.log)(zn.isBrowserEnv()?e:tr[this.colors[t]](e))}})(),Xn=(t=>class extends(t||Jn){async add(t,e,r,n){return super.add(t,zn.getMs(e),r,n)}async start(t){await super.start(t);const e=setInterval((()=>this.run(t)),t.interval);t.intervalObject=e}async stop(t){clearInterval(t.intervalObject),await super.stop(t)}})();const Zn=function(t,e){return function(r,n){if(null==r)return r;if(!Vt(r))return t(r,n);for(var o=r.length,i=e?o:-1,s=Object(r);(e?i--:++ie||i&&s&&c&&!a&&!u||n&&s&&c||!r&&c||!o)return 1;if(!n&&!i&&!u&&t=a?c:c*("desc"==r[n]?-1:1)}return t.index-e.index};const oo=function(t,e,r){e=e.length?Ve(e,(function(t){return Ct(t)?function(e){return dn(e,1===t.length?t[0]:t)}:t})):[Te];var n=-1;e=Ve(e,ie(Sn));var o=to(t,(function(t,r,o){return{criteria:Ve(e,(function(e){return e(t)})),index:++n,value:t}}));return eo(o,(function(t,e){return no(t,e,r)}))};const io=function(t,e,r,n){return null==t?[]:(Ct(e)||(e=null==e?[]:[e]),Ct(r=n?void 0:r)||(r=null==r?[]:[r]),oo(t,e,r))};const so=function(t,e,r,n){if(!P(t))return t;for(var o=-1,i=(e=yn(e,t)).length,s=i-1,a=t;null!=a&&++o0&&n(c)?r>1?t(c,r-1,n,o,i):br(i,c):o||(i[i.length]=c)}return i};const go=function(t){return(null==t?0:t.length)?yo(t,1):[]};const bo=function(t){return De(Ie(t,void 0,go),t+"")}((function(t,e){return null==t?{}:lo(t,e)})),vo=Object.assign({},t),mo=Object.assign({},zn);mo.DocumentsHandler=class{constructor(t){this.__documents=t}getDocuments(){return this.__documents}filterDocuments(t){this.__documents=this.__documents.filter((e=>this.checkDocumentValue(e,t)))}sortDocuments(t=[]){const e=[],r=[];if(!Array.isArray(t))throw new vo.WorkError("Sort rule must be an array","ERR_METASTOCLE_DOCUMENTS_HANDLER_SORT_TYPE");for(let n=0;nfo(e,((e,r)=>t.includes(r)||r.startsWith("$")))))}checkDocumentValue(t,e){if(!e||"object"!=typeof e||Array.isArray(e))return this.$eq(t,e);for(let r in e)if("$and"!=r)if("$or"!=r){if(r.startsWith("$")){if("function"!=typeof this[r])throw new vo.WorkError(`There is no filter for key "${r}"`,"ERR_METASTOCLE_DOCUMENTS_HANDLER_WRONG_FILTER");if(!this[r](t,e[r]))return!1}else if(!this.checkDocumentValue(bn(t,r),e[r]))return!1}else{let n=!1;for(let o=0;oe}$gte(t,e){return t>=e}$lt(t,e){return te}$lgte(t,e){return mo.validateSchema({type:"array"},t),t.length>=e}$llt(t,e){return mo.validateSchema({type:"array"},t),t.lengthclass extends(e||Vn){static get version(){return Yn.rE}static get codename(){return Yn.UU}static get utils(){return zn}static get errors(){return t}static get LoggerTransport(){return Kn}static get TaskTransport(){return Xn}static getAuthCookieValue(){if("object"!=typeof location||!location.hostname)return null;const t=`spreadableNetworkAuth[${this.getPageAddress()}]`,e=("; "+document.cookie).split("; "+t+"="),r=2==e.length&&e.pop().split(";").shift();return r?JSON.parse(atob(r)):null}static getPageAddress(){return"object"==typeof location&&location.hostname?`${location.hostname}:${location.port||("https"==this.getPageProtocol()?443:80)}`:""}static getPageProtocol(){return"object"==typeof location&&location.protocol?location.protocol.split(":")[0]:""}constructor(t={}){super(...arguments),this.options=Fe({request:{pingTimeout:"1s",clientTimeout:"10s",approvalQuestionTimeout:"20s",ignoreVersion:!1},auth:this.constructor.getAuthCookieValue(),address:this.constructor.getPageAddress(),https:"https"==this.constructor.getPageProtocol(),logger:{level:"info"},task:{workerChangeInterval:"30s"}},t),!this.options.logger&&(this.options.logger={level:!1}),"string"==typeof this.options.logger&&(this.options.logger={level:this.options.logger}),this.LoggerTransport=this.constructor.LoggerTransport,this.TaskTransport=this.constructor.TaskTransport,this.address=this.options.address,this.__isMasterService=!0,this.prepareOptions()}async init(){if(!this.address)throw new Error("You must pass the node address");await this.prepareServices(),await super.init.apply(this,arguments);let t=this.address;if(Array.isArray(t)&&(t=Xe(t)),this.availableAddress=await this.getAvailableAddress(t),!this.availableAddress)throw new Error("Provided addresses are not available");this.workerAddress=this.availableAddress}async prepareServices(){await this.prepareLogger(),await this.prepareTask()}async prepareLogger(){this.logger=await this.addService("logger",new this.LoggerTransport(this.options.logger))}async prepareTask(){this.options.task&&(this.task=await this.addService("task",new this.TaskTransport(this.options.task))),this.task&&this.options.task.workerChangeInterval&&await this.task.add("workerChange",this.options.task.workerChangeInterval,(()=>this.changeWorker()))}async getAvailableAddress(t){let e;!Array.isArray(t)&&(t=[t]);for(let r=0;r({address:t}))),p=await this.requestGroup(l,"add-approval-info",Object.assign({},r,{includeErrors:!0,timeout:o(this.options.request.clientTimeout),body:{action:t,key:a,info:e,startedAt:c}}));for(let t=0;t{this.request(e,Fe({address:s},r,i.options)).then(t).catch(t)})))}let o=await Promise.all(n);return!r.includeErrors&&(o=o.filter((t=>!(t instanceof Error)))),o}async request(t,e={}){let r=(e=Fe(this.createDefaultRequestOptions(),e)).formData||e.body||{};if(r.timeout=e.timeout,r.timestamp=Date.now(),e.approvalInfo){const t=e.approvalInfo;if(delete t.question,!Object.prototype.hasOwnProperty.call(t,"answer"))throw new Error('Request "approvalInfo" option must include "answer" property');r.approvalInfo=e.formData?JSON.stringify(t):t}if(e.formData){const t=new Ze;for(let e in r){let n=r[e];"object"==typeof n?t.append(e,n.value,n.options):t.append(e,n)}e.body=t,delete e.formData}else e.headers["content-type"]="application/json",e.body=JSON.stringify(r);e.timeout&&!e.signal&&(e.signal=AbortSignal.timeout(Math.floor(e.timeout))),e.url=this.createRequestUrl(t,e);const n=Date.now();let o={};try{if(o=await er(e.url,e),this.logger.info(`Request to "${e.url}": ${or(Date.now()-n)}`),o.ok)return e.getFullResponse?o:await o.json();const t=(o.headers.get("content-type")||"").match("application/json")?"json":"text",r=await o[t]();if(!r||"object"!=typeof r)throw new Error(r||"Unknown error");if(!r.code)throw new Error(r.message||r);throw new $n(r.message,r.code)}catch(t){throw e.timeout&&"aborted"==t.type&&(t.type="request-timeout"),zn.isRequestTimeoutError(t)&&(t=zn.createRequestTimeoutError()),t.response=o,t.requestOptions=e,t}}createRequestUrl(t,e={}){const r=e.query?rr.stringify(e.query):null,n=e.address||this.workerAddress;let o=`${this.getRequestProtocol()}://${n}/client/${t}`;return r&&(o+="?"+r),o}createDefaultRequestOptions(t={}){const e={method:"POST",timeout:this.options.request.clientTimeout};if(this.options.request.ignoreVersion||(e.headers={"client-version":this.getVersion()}),this.options.auth){const t=this.options.auth.username,r=this.options.auth.password;let n="Basic ";n+="function"==typeof Qn?Qn.from(t+":"+r).toString("base64"):btoa(t+":"+r),e.headers.authorization=n}return t.timeout&&(t.timeout=zn.getMs(t.timeout)),"object"==typeof this.options.https&&this.options.https.ca&&(tr.Agent?(t.agent=t.agent||new tr.Agent,t.agent.options.ca=this.options.https.ca):(t.agent=t.agent||{},t.agent.ca=this.options.https.ca)),Fe({},e,t)}createRequestTimer(t,e={}){return e=Object.assign({min:this.options.request.pingTimeout},e),zn.getRequestTimer(t,e)}prepareOptions(){this.options.request.pingTimeout=zn.getMs(this.options.request.pingTimeout),this.options.request.clientTimeout=zn.getMs(this.options.request.clientTimeout),this.options.request.approvalQuestionTimeout=zn.getMs(this.options.request.approvalQuestionTimeout)}getRequestProtocol(){return this.options.https?"https":"http"}envTest(t,e){const r=zn.isBrowserEnv();if(t&&!r)throw new Error(`You can't use "${e}" method in the nodejs environment`);if(!t&&r)throw new Error(`You can't use "${e}" method in the browser environment`)}})(),jo=(t=>class extends(t||Ao){static get version(){return Eo.rE}static get codename(){return Eo.UU}static get utils(){return wo}static get errors(){return vo}constructor(t={}){super(t=Fe({request:{documentAdditionTimeout:"10s",documentGettingTimeout:"10s",documentUpdateTimeout:"10s",documentDeletionTimeout:"10s"}},t))}async addDocument(t,e,r={}){e=wo.prepareDocumentFields(e);return(await this.request("add-document",{body:{collection:t,document:e,ignoreExistenceError:r.ignoreExistenceError},timeout:r.timeout||this.options.request.documentAdditionTimeout})).document}async updateDocuments(t,e,r={}){e=wo.prepareDocumentFields(e);const n=wo.prepareDocumentUpdateActions(r);return await this.request("update-documents",Object.assign({},r,{body:{collection:t,document:e,actions:n},timeout:r.timeout||this.options.request.documentUpdateTimeout}))}async deleteDocuments(t,e={}){const r=wo.prepareDocumentDeletionActions(e);return await this.request("delete-documents",Object.assign({},e,{body:{collection:t,actions:r},timeout:e.timeout||this.options.request.documentDeletionTimeout}))}async getDocuments(t,e={}){const r=wo.prepareDocumentGettingActions(e);return await this.request("get-documents",Object.assign({},e,{body:{collection:t,actions:r},timeout:e.timeout||this.options.request.documentGettingTimeout}))}async getDocumentsCount(t,e={}){const r=wo.prepareDocumentGettingActions(e);return(await this.request("get-documents-count",Object.assign({},e,{body:{collection:t,actions:r},timeout:e.timeout||this.options.request.documentGettingTimeout}))).count}async getDocumentByPk(t,e,r={}){return(await this.request("get-document-by-pk",Object.assign({},r,{body:{collection:t,pkValue:e},timeout:r.timeout||this.options.request.documentGettingTimeout}))).document}prepareOptions(){super.prepareOptions(),this.options.request.documentAdditionTimeout=wo.getMs(this.options.request.documentAdditionTimeout),this.options.request.documentGettingTimeout=wo.getMs(this.options.request.documentGettingTimeout),this.options.request.documentUpdateTimeout=wo.getMs(this.options.request.documentUpdateTimeout),this.options.request.documentDeletionTimeout=wo.getMs(this.options.request.documentDeletionTimeout)}})()})(),n=n.default})())); \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 8259bc1..df75dfa 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "metastocle", - "version": "0.3.4", + "version": "0.3.5", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "metastocle", - "version": "0.3.4", + "version": "0.3.5", "license": "MIT", "dependencies": { "chalk": "^5.3.0", @@ -15,7 +15,7 @@ "lodash-es": "^4.17.21", "node-fetch": "^3.3.2", "object-sizeof": "^2.6.3", - "spreadable": "~0.3.5", + "spreadable": "~0.3.6", "uuid": "^9.0.1" }, "bin": { @@ -7650,9 +7650,9 @@ "license": "CC0-1.0" }, "node_modules/spreadable": { - "version": "0.3.5", - "resolved": "https://registry.npmjs.org/spreadable/-/spreadable-0.3.5.tgz", - "integrity": "sha512-IJAI3LqczC2wLEDQnW+JKFC/oKJWRo5sv4bcjk60w4Y/7pwfxw2vg3+Vdrf++GVfP3zmp57MJdlATZSKMQGOlA==", + "version": "0.3.6", + "resolved": "https://registry.npmjs.org/spreadable/-/spreadable-0.3.6.tgz", + "integrity": "sha512-iF2HQVnP6WT/L2QbbIRm3sWiwE3sheHs7rTqXVLJqYu6K/VZqrKAvCYX0WioPXrVMhD3CeCTsC/S99PBWkBwFA==", "dependencies": { "basic-auth": "^2.0.1", "bytes": "^3.1.2", diff --git a/package.json b/package.json index e147fc6..9a6d1f8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "metastocle", - "version": "0.3.4", + "version": "0.3.5", "description": "Decentralized data storage", "main": "./src/index.js", "type": "module", @@ -67,7 +67,7 @@ "lodash-es": "^4.17.21", "node-fetch": "^3.3.2", "object-sizeof": "^2.6.3", - "spreadable": "~0.3.5", + "spreadable": "~0.3.6", "uuid": "^9.0.1" }, "repository": {