@ultrade/shared 1.0.24 → 1.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/constants/index.js +1 -1
- package/dist/browser/types/index.js +1 -1
- package/dist/node/helpers/algo.helper.js +1 -1
- package/dist/node/helpers/assert.helper.js +1 -1
- package/dist/node/helpers/balance.helper.js +1 -1
- package/dist/node/helpers/pointSystem.helper.js +1 -1
- package/dist/node/types/index.js +1 -1
- package/dist/src/types/settings.type.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function W(){throw new Error("setTimeout has not been defined")}function H(){throw new Error("clearTimeout has not been defined")}var x=W,I=H;typeof globalThis.setTimeout=="function"&&(x=setTimeout);typeof globalThis.clearTimeout=="function"&&(I=clearTimeout);function V(t){if(x===setTimeout)return setTimeout(t,0);if((x===W||!x)&&setTimeout)return x=setTimeout,setTimeout(t,0);try{return x(t,0)}catch{try{return x.call(null,t,0)}catch{return x.call(this,t,0)}}}function sr(t){if(I===clearTimeout)return clearTimeout(t);if((I===H||!I)&&clearTimeout)return I=clearTimeout,clearTimeout(t);try{return I(t)}catch{try{return I.call(null,t)}catch{return I.call(this,t)}}}var m=[],D=!1,w,P=-1;function fr(){!D||!w||(D=!1,w.length?m=w.concat(m):P=-1,m.length&&X())}function X(){if(!D){var t=V(fr);D=!0;for(var r=m.length;r;){for(w=m,m=[];++P<r;)w&&w[P].run();P=-1,r=m.length}w=null,D=!1,sr(t)}}function pr(t){var r=new Array(arguments.length-1);if(arguments.length>1)for(var e=1;e<arguments.length;e++)r[e-1]=arguments[e];m.push(new Q(t,r)),m.length===1&&!D&&V(X)}function Q(t,r){this.fun=t,this.array=r}Q.prototype.run=function(){this.fun.apply(null,this.array)};var _r="browser",hr="browser",Tr=!0,dr={},Ar=[],gr="",br={},mr={},Rr={};function S(){}var xr=S,Ir=S,wr=S,Sr=S,Nr=S,yr=S,Or=S;function Dr(t){throw new Error("process.binding is not supported")}function Pr(){return"/"}function Cr(t){throw new Error("process.chdir is not supported")}function Lr(){return 0}var O=globalThis.performance||{},vr=O.now||O.mozNow||O.msNow||O.oNow||O.webkitNow||function(){return new Date().getTime()};function Mr(t){var r=vr.call(O)*.001,e=Math.floor(r),n=Math.floor(r%1*1e9);return t&&(e=e-t[0],n=n-t[1],n<0&&(e--,n+=1e9)),[e,n]}var Ur=new Date;function kr(){var t=new Date,r=t-Ur;return r/1e3}var p={nextTick:pr,title:_r,browser:Tr,env:dr,argv:Ar,version:gr,versions:br,on:xr,addListener:Ir,once:wr,off:Sr,removeListener:Nr,removeAllListeners:yr,emit:Or,binding:Dr,cwd:Pr,chdir:Cr,umask:Lr,hrtime:Mr,platform:hr,release:mr,config:Rr,uptime:kr},K={};Object.keys(K).forEach(t=>{let r=t.split("."),e=p;for(let n=0;n<r.length;n++){let i=r[n];n===r.length-1?e[i]=K[t]:e=e[i]||(e[i]={})}});var g=[],d=[],Br=typeof Uint8Array<"u"?Uint8Array:Array,Y=!1;function Z(){Y=!0;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=0,e=t.length;r<e;++r)g[r]=t[r],d[t.charCodeAt(r)]=r;d[45]=62,d[95]=63}function Yr(t){Y||Z();var r,e,n,i,o,a,c=t.length;if(c%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o=t[c-2]==="="?2:t[c-1]==="="?1:0,a=new Br(c*3/4-o),n=o>0?c-4:c;var E=0;for(r=0,e=0;r<n;r+=4,e+=3)i=d[t.charCodeAt(r)]<<18|d[t.charCodeAt(r+1)]<<12|d[t.charCodeAt(r+2)]<<6|d[t.charCodeAt(r+3)],a[E++]=i>>16&255,a[E++]=i>>8&255,a[E++]=i&255;return o===2?(i=d[t.charCodeAt(r)]<<2|d[t.charCodeAt(r+1)]>>4,a[E++]=i&255):o===1&&(i=d[t.charCodeAt(r)]<<10|d[t.charCodeAt(r+1)]<<4|d[t.charCodeAt(r+2)]>>2,a[E++]=i>>8&255,a[E++]=i&255),a}function Fr(t){return g[t>>18&63]+g[t>>12&63]+g[t>>6&63]+g[t&63]}function Gr(t,r,e){for(var n,i=[],o=r;o<e;o+=3)n=(t[o]<<16)+(t[o+1]<<8)+t[o+2],i.push(Fr(n));return i.join("")}function q(t){Y||Z();for(var r,e=t.length,n=e%3,i="",o=[],a=16383,c=0,E=e-n;c<E;c+=a)o.push(Gr(t,c,c+a>E?E:c+a));return n===1?(r=t[e-1],i+=g[r>>2],i+=g[r<<4&63],i+="=="):n===2&&(r=(t[e-2]<<8)+t[e-1],i+=g[r>>10],i+=g[r>>4&63],i+=g[r<<2&63],i+="="),o.push(i),o.join("")}u.TYPED_ARRAY_SUPPORT=globalThis.TYPED_ARRAY_SUPPORT!==void 0?globalThis.TYPED_ARRAY_SUPPORT:!0;function C(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function R(t,r){if(C()<r)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(r),t.__proto__=u.prototype):(t===null&&(t=new u(r)),t.length=r),t}function u(t,r,e){if(!u.TYPED_ARRAY_SUPPORT&&!(this instanceof u))return new u(t,r,e);if(typeof t=="number"){if(typeof r=="string")throw new Error("If encoding is specified then the first argument must be a string");return F(this,t)}return z(this,t,r,e)}u.poolSize=8192;u._augment=function(t){return t.__proto__=u.prototype,t};function z(t,r,e,n){if(typeof r=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&r instanceof ArrayBuffer?Hr(t,r,e,n):typeof r=="string"?Wr(t,r,e):Vr(t,r)}u.from=function(t,r,e){return z(null,t,r,e)};u.kMaxLength=C();u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&u[Symbol.species]);function j(t){if(typeof t!="number")throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function Kr(t,r,e,n){return j(r),r<=0?R(t,r):e!==void 0?typeof n=="string"?R(t,r).fill(e,n):R(t,r).fill(e):R(t,r)}u.alloc=function(t,r,e){return Kr(null,t,r,e)};function F(t,r){if(j(r),t=R(t,r<0?0:G(r)|0),!u.TYPED_ARRAY_SUPPORT)for(var e=0;e<r;++e)t[e]=0;return t}u.allocUnsafe=function(t){return F(null,t)};u.allocUnsafeSlow=function(t){return F(null,t)};function Wr(t,r,e){if((typeof e!="string"||e==="")&&(e="utf8"),!u.isEncoding(e))throw new TypeError('"encoding" must be a valid string encoding');var n=rr(r,e)|0;t=R(t,n);var i=t.write(r,e);return i!==n&&(t=t.slice(0,i)),t}function B(t,r){var e=r.length<0?0:G(r.length)|0;t=R(t,e);for(var n=0;n<e;n+=1)t[n]=r[n]&255;return t}function Hr(t,r,e,n){if(r.byteLength,e<0||r.byteLength<e)throw new RangeError("'offset' is out of bounds");if(r.byteLength<e+(n||0))throw new RangeError("'length' is out of bounds");return e===void 0&&n===void 0?r=new Uint8Array(r):n===void 0?r=new Uint8Array(r,e):r=new Uint8Array(r,e,n),u.TYPED_ARRAY_SUPPORT?(t=r,t.__proto__=u.prototype):t=B(t,r),t}function Vr(t,r){if(b(r)){var e=G(r.length)|0;return t=R(t,e),t.length===0||r.copy(t,0,0,e),t}if(r){if(typeof ArrayBuffer<"u"&&r.buffer instanceof ArrayBuffer||"length"in r)return typeof r.length!="number"||le(r.length)?R(t,0):B(t,r);if(r.type==="Buffer"&&Array.isArray(r.data))return B(t,r.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function G(t){if(t>=C())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+C().toString(16)+" bytes");return t|0}u.isBuffer=se;function b(t){return!!(t!=null&&t._isBuffer)}u.compare=function(r,e){if(!b(r)||!b(e))throw new TypeError("Arguments must be Buffers");if(r===e)return 0;for(var n=r.length,i=e.length,o=0,a=Math.min(n,i);o<a;++o)if(r[o]!==e[o]){n=r[o],i=e[o];break}return n<i?-1:i<n?1:0};u.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};u.concat=function(r,e){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return u.alloc(0);var n;if(e===void 0)for(e=0,n=0;n<r.length;++n)e+=r[n].length;var i=u.allocUnsafe(e),o=0;for(n=0;n<r.length;++n){var a=r[n];if(!b(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(i,o),o+=a.length}return i};function rr(t,r){if(b(t))return t.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;typeof t!="string"&&(t=""+t);var e=t.length;if(e===0)return 0;for(var n=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":case void 0:return L(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e*2;case"hex":return e>>>1;case"base64":return ur(t).length;default:if(n)return L(t).length;r=(""+r).toLowerCase(),n=!0}}u.byteLength=rr;function Xr(t,r,e){var n=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((e===void 0||e>this.length)&&(e=this.length),e<=0)||(e>>>=0,r>>>=0,e<=r))return"";for(t||(t="utf8");;)switch(t){case"hex":return te(this,r,e);case"utf8":case"utf-8":return nr(this,r,e);case"ascii":return re(this,r,e);case"latin1":case"binary":return ee(this,r,e);case"base64":return zr(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ne(this,r,e);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}u.prototype._isBuffer=!0;function N(t,r,e){var n=t[r];t[r]=t[e],t[e]=n}u.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<r;e+=2)N(this,e,e+1);return this};u.prototype.swap32=function(){var r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<r;e+=4)N(this,e,e+3),N(this,e+1,e+2);return this};u.prototype.swap64=function(){var r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<r;e+=8)N(this,e,e+7),N(this,e+1,e+6),N(this,e+2,e+5),N(this,e+3,e+4);return this};u.prototype.toString=function(){var r=this.length|0;return r===0?"":arguments.length===0?nr(this,0,r):Xr.apply(this,arguments)};u.prototype.equals=function(r){if(!b(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:u.compare(this,r)===0};u.prototype.compare=function(r,e,n,i,o){if(!b(r))throw new TypeError("Argument must be a Buffer");if(e===void 0&&(e=0),n===void 0&&(n=r?r.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),e<0||n>r.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&e>=n)return 0;if(i>=o)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,i>>>=0,o>>>=0,this===r)return 0;for(var a=o-i,c=n-e,E=Math.min(a,c),s=this.slice(i,o),f=r.slice(e,n),l=0;l<E;++l)if(s[l]!==f[l]){a=s[l],c=f[l];break}return a<c?-1:c<a?1:0};function er(t,r,e,n,i){if(t.length===0)return-1;if(typeof e=="string"?(n=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,isNaN(e)&&(e=i?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(i)return-1;e=t.length-1}else if(e<0)if(i)e=0;else return-1;if(typeof r=="string"&&(r=u.from(r,n)),b(r))return r.length===0?-1:J(t,r,e,n,i);if(typeof r=="number")return r=r&255,u.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(t,r,e):Uint8Array.prototype.lastIndexOf.call(t,r,e):J(t,[r],e,n,i);throw new TypeError("val must be string, number or Buffer")}function J(t,r,e,n,i){var o=1,a=t.length,c=r.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||r.length<2)return-1;o=2,a/=2,c/=2,e/=2}function E(T,y){return o===1?T[y]:T.readUInt16BE(y*o)}var s;if(i){var f=-1;for(s=e;s<a;s++)if(E(t,s)===E(r,f===-1?0:s-f)){if(f===-1&&(f=s),s-f+1===c)return f*o}else f!==-1&&(s-=s-f),f=-1}else for(e+c>a&&(e=a-c),s=e;s>=0;s--){for(var l=!0,A=0;A<c;A++)if(E(t,s+A)!==E(r,A)){l=!1;break}if(l)return s}return-1}u.prototype.includes=function(r,e,n){return this.indexOf(r,e,n)!==-1};u.prototype.indexOf=function(r,e,n){return er(this,r,e,n,!0)};u.prototype.lastIndexOf=function(r,e,n){return er(this,r,e,n,!1)};function Qr(t,r,e,n){e=Number(e)||0;var i=t.length-e;n?(n=Number(n),n>i&&(n=i)):n=i;var o=r.length;if(o%2!==0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;a<n;++a){var c=parseInt(r.substr(a*2,2),16);if(isNaN(c))return a;t[e+a]=c}return a}function qr(t,r,e,n){return U(L(r,t.length-e),t,e,n)}function tr(t,r,e,n){return U(ce(r),t,e,n)}function Jr(t,r,e,n){return tr(t,r,e,n)}function $r(t,r,e,n){return U(ur(r),t,e,n)}function Zr(t,r,e,n){return U(Ee(r,t.length-e),t,e,n)}u.prototype.write=function(r,e,n,i){if(e===void 0)i="utf8",n=this.length,e=0;else if(n===void 0&&typeof e=="string")i=e,n=this.length,e=0;else if(isFinite(e))e=e|0,isFinite(n)?(n=n|0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o=this.length-e;if((n===void 0||n>o)&&(n=o),r.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var a=!1;;)switch(i){case"hex":return Qr(this,r,e,n);case"utf8":case"utf-8":return qr(this,r,e,n);case"ascii":return tr(this,r,e,n);case"latin1":case"binary":return Jr(this,r,e,n);case"base64":return $r(this,r,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Zr(this,r,e,n);default:if(a)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),a=!0}};u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function zr(t,r,e){return r===0&&e===t.length?q(t):q(t.slice(r,e))}function nr(t,r,e){e=Math.min(t.length,e);for(var n=[],i=r;i<e;){var o=t[i],a=null,c=o>239?4:o>223?3:o>191?2:1;if(i+c<=e){var E,s,f,l;switch(c){case 1:o<128&&(a=o);break;case 2:E=t[i+1],(E&192)===128&&(l=(o&31)<<6|E&63,l>127&&(a=l));break;case 3:E=t[i+1],s=t[i+2],(E&192)===128&&(s&192)===128&&(l=(o&15)<<12|(E&63)<<6|s&63,l>2047&&(l<55296||l>57343)&&(a=l));break;case 4:E=t[i+1],s=t[i+2],f=t[i+3],(E&192)===128&&(s&192)===128&&(f&192)===128&&(l=(o&15)<<18|(E&63)<<12|(s&63)<<6|f&63,l>65535&&l<1114112&&(a=l))}}a===null?(a=65533,c=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|a&1023),n.push(a),i+=c}return jr(n)}var $=4096;function jr(t){var r=t.length;if(r<=$)return String.fromCharCode.apply(String,t);for(var e="",n=0;n<r;)e+=String.fromCharCode.apply(String,t.slice(n,n+=$));return e}function re(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(t[i]&127);return n}function ee(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(t[i]);return n}function te(t,r,e){var n=t.length;(!r||r<0)&&(r=0),(!e||e<0||e>n)&&(e=n);for(var i="",o=r;o<e;++o)i+=ue(t[o]);return i}function ne(t,r,e){for(var n=t.slice(r,e),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+n[o+1]*256);return i}u.prototype.slice=function(r,e){var n=this.length;r=~~r,e=e===void 0?n:~~e,r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),e<r&&(e=r);var i;if(u.TYPED_ARRAY_SUPPORT)i=this.subarray(r,e),i.__proto__=u.prototype;else{var o=e-r;i=new u(o,void 0);for(var a=0;a<o;++a)i[a]=this[a+r]}return i};function _(t,r,e){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+r>e)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUIntLE=function(r,e,n){r=r|0,e=e|0,n||_(r,e,this.length);for(var i=this[r],o=1,a=0;++a<e&&(o*=256);)i+=this[r+a]*o;return i};u.prototype.readUIntBE=function(r,e,n){r=r|0,e=e|0,n||_(r,e,this.length);for(var i=this[r+--e],o=1;e>0&&(o*=256);)i+=this[r+--e]*o;return i};u.prototype.readUInt8=function(r,e){return e||_(r,1,this.length),this[r]};u.prototype.readUInt16LE=function(r,e){return e||_(r,2,this.length),this[r]|this[r+1]<<8};u.prototype.readUInt16BE=function(r,e){return e||_(r,2,this.length),this[r]<<8|this[r+1]};u.prototype.readUInt32LE=function(r,e){return e||_(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};u.prototype.readUInt32BE=function(r,e){return e||_(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};u.prototype.readIntLE=function(r,e,n){r=r|0,e=e|0,n||_(r,e,this.length);for(var i=this[r],o=1,a=0;++a<e&&(o*=256);)i+=this[r+a]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*e)),i};u.prototype.readIntBE=function(r,e,n){r=r|0,e=e|0,n||_(r,e,this.length);for(var i=e,o=1,a=this[r+--i];i>0&&(o*=256);)a+=this[r+--i]*o;return o*=128,a>=o&&(a-=Math.pow(2,8*e)),a};u.prototype.readInt8=function(r,e){return e||_(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};u.prototype.readInt16LE=function(r,e){e||_(r,2,this.length);var n=this[r]|this[r+1]<<8;return n&32768?n|4294901760:n};u.prototype.readInt16BE=function(r,e){e||_(r,2,this.length);var n=this[r+1]|this[r]<<8;return n&32768?n|4294901760:n};u.prototype.readInt32LE=function(r,e){return e||_(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};u.prototype.readInt32BE=function(r,e){return e||_(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};u.prototype.readFloatLE=function(r,e){return e||_(r,4,this.length),k(this,r,!0,23,4)};u.prototype.readFloatBE=function(r,e){return e||_(r,4,this.length),k(this,r,!1,23,4)};u.prototype.readDoubleLE=function(r,e){return e||_(r,8,this.length),k(this,r,!0,52,8)};u.prototype.readDoubleBE=function(r,e){return e||_(r,8,this.length),k(this,r,!1,52,8)};function h(t,r,e,n,i,o){if(!b(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<o)throw new RangeError('"value" argument is out of bounds');if(e+n>t.length)throw new RangeError("Index out of range")}u.prototype.writeUIntLE=function(r,e,n,i){if(r=+r,e=e|0,n=n|0,!i){var o=Math.pow(2,8*n)-1;h(this,r,e,n,o,0)}var a=1,c=0;for(this[e]=r&255;++c<n&&(a*=256);)this[e+c]=r/a&255;return e+n};u.prototype.writeUIntBE=function(r,e,n,i){if(r=+r,e=e|0,n=n|0,!i){var o=Math.pow(2,8*n)-1;h(this,r,e,n,o,0)}var a=n-1,c=1;for(this[e+a]=r&255;--a>=0&&(c*=256);)this[e+a]=r/c&255;return e+n};u.prototype.writeUInt8=function(r,e,n){return r=+r,e=e|0,n||h(this,r,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(r=Math.floor(r)),this[e]=r&255,e+1};function v(t,r,e,n){r<0&&(r=65535+r+1);for(var i=0,o=Math.min(t.length-e,2);i<o;++i)t[e+i]=(r&255<<8*(n?i:1-i))>>>(n?i:1-i)*8}u.prototype.writeUInt16LE=function(r,e,n){return r=+r,e=e|0,n||h(this,r,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=r&255,this[e+1]=r>>>8):v(this,r,e,!0),e+2};u.prototype.writeUInt16BE=function(r,e,n){return r=+r,e=e|0,n||h(this,r,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=r>>>8,this[e+1]=r&255):v(this,r,e,!1),e+2};function M(t,r,e,n){r<0&&(r=4294967295+r+1);for(var i=0,o=Math.min(t.length-e,4);i<o;++i)t[e+i]=r>>>(n?i:3-i)*8&255}u.prototype.writeUInt32LE=function(r,e,n){return r=+r,e=e|0,n||h(this,r,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=r>>>24,this[e+2]=r>>>16,this[e+1]=r>>>8,this[e]=r&255):M(this,r,e,!0),e+4};u.prototype.writeUInt32BE=function(r,e,n){return r=+r,e=e|0,n||h(this,r,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255):M(this,r,e,!1),e+4};u.prototype.writeIntLE=function(r,e,n,i){if(r=+r,e=e|0,!i){var o=Math.pow(2,8*n-1);h(this,r,e,n,o-1,-o)}var a=0,c=1,E=0;for(this[e]=r&255;++a<n&&(c*=256);)r<0&&E===0&&this[e+a-1]!==0&&(E=1),this[e+a]=(r/c>>0)-E&255;return e+n};u.prototype.writeIntBE=function(r,e,n,i){if(r=+r,e=e|0,!i){var o=Math.pow(2,8*n-1);h(this,r,e,n,o-1,-o)}var a=n-1,c=1,E=0;for(this[e+a]=r&255;--a>=0&&(c*=256);)r<0&&E===0&&this[e+a+1]!==0&&(E=1),this[e+a]=(r/c>>0)-E&255;return e+n};u.prototype.writeInt8=function(r,e,n){return r=+r,e=e|0,n||h(this,r,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(r=Math.floor(r)),r<0&&(r=255+r+1),this[e]=r&255,e+1};u.prototype.writeInt16LE=function(r,e,n){return r=+r,e=e|0,n||h(this,r,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=r&255,this[e+1]=r>>>8):v(this,r,e,!0),e+2};u.prototype.writeInt16BE=function(r,e,n){return r=+r,e=e|0,n||h(this,r,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=r>>>8,this[e+1]=r&255):v(this,r,e,!1),e+2};u.prototype.writeInt32LE=function(r,e,n){return r=+r,e=e|0,n||h(this,r,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=r&255,this[e+1]=r>>>8,this[e+2]=r>>>16,this[e+3]=r>>>24):M(this,r,e,!0),e+4};u.prototype.writeInt32BE=function(r,e,n){return r=+r,e=e|0,n||h(this,r,e,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),u.TYPED_ARRAY_SUPPORT?(this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255):M(this,r,e,!1),e+4};function ir(t,r,e,n,i,o){if(e+n>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function or(t,r,e,n,i){return i||ir(t,r,e,4,34028234663852886e22,-34028234663852886e22),Er(t,r,e,n,23,4),e+4}u.prototype.writeFloatLE=function(r,e,n){return or(this,r,e,!0,n)};u.prototype.writeFloatBE=function(r,e,n){return or(this,r,e,!1,n)};function ar(t,r,e,n,i){return i||ir(t,r,e,8,17976931348623157e292,-17976931348623157e292),Er(t,r,e,n,52,8),e+8}u.prototype.writeDoubleLE=function(r,e,n){return ar(this,r,e,!0,n)};u.prototype.writeDoubleBE=function(r,e,n){return ar(this,r,e,!1,n)};u.prototype.copy=function(r,e,n,i){if(n||(n=0),!i&&i!==0&&(i=this.length),e>=r.length&&(e=r.length),e||(e=0),i>0&&i<n&&(i=n),i===n||r.length===0||this.length===0)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),r.length-e<i-n&&(i=r.length-e+n);var o=i-n,a;if(this===r&&n<e&&e<i)for(a=o-1;a>=0;--a)r[a+e]=this[a+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(a=0;a<o;++a)r[a+e]=this[a+n];else Uint8Array.prototype.set.call(r,this.subarray(n,n+o),e);return o};u.prototype.fill=function(r,e,n,i){if(typeof r=="string"){if(typeof e=="string"?(i=e,e=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),r.length===1){var o=r.charCodeAt(0);o<256&&(r=o)}if(i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!u.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else typeof r=="number"&&(r=r&255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;e=e>>>0,n=n===void 0?this.length:n>>>0,r||(r=0);var a;if(typeof r=="number")for(a=e;a<n;++a)this[a]=r;else{var c=b(r)?r:L(new u(r,i).toString()),E=c.length;for(a=0;a<n-e;++a)this[a+e]=c[a%E]}return this};var ie=/[^+\/0-9A-Za-z-_]/g;function oe(t){if(t=ae(t).replace(ie,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function ae(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function ue(t){return t<16?"0"+t.toString(16):t.toString(16)}function L(t,r){r=r||1/0;for(var e,n=t.length,i=null,o=[],a=0;a<n;++a){if(e=t.charCodeAt(a),e>55295&&e<57344){if(!i){if(e>56319){(r-=3)>-1&&o.push(239,191,189);continue}else if(a+1===n){(r-=3)>-1&&o.push(239,191,189);continue}i=e;continue}if(e<56320){(r-=3)>-1&&o.push(239,191,189),i=e;continue}e=(i-55296<<10|e-56320)+65536}else i&&(r-=3)>-1&&o.push(239,191,189);if(i=null,e<128){if((r-=1)<0)break;o.push(e)}else if(e<2048){if((r-=2)<0)break;o.push(e>>6|192,e&63|128)}else if(e<65536){if((r-=3)<0)break;o.push(e>>12|224,e>>6&63|128,e&63|128)}else if(e<1114112){if((r-=4)<0)break;o.push(e>>18|240,e>>12&63|128,e>>6&63|128,e&63|128)}else throw new Error("Invalid code point")}return o}function ce(t){for(var r=[],e=0;e<t.length;++e)r.push(t.charCodeAt(e)&255);return r}function Ee(t,r){for(var e,n,i,o=[],a=0;a<t.length&&!((r-=2)<0);++a)e=t.charCodeAt(a),n=e>>8,i=e%256,o.push(i),o.push(n);return o}function ur(t){return Yr(oe(t))}function U(t,r,e,n){for(var i=0;i<n&&!(i+e>=r.length||i>=t.length);++i)r[i+e]=t[i];return i}function le(t){return t!==t}function se(t){return t!=null&&(!!t._isBuffer||cr(t)||fe(t))}function cr(t){return!!t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function fe(t){return typeof t.readFloatLE=="function"&&typeof t.slice=="function"&&cr(t.slice(0,0))}function k(t,r,e,n,i){var o,a,c=i*8-n-1,E=(1<<c)-1,s=E>>1,f=-7,l=e?i-1:0,A=e?-1:1,T=t[r+l];for(l+=A,o=T&(1<<-f)-1,T>>=-f,f+=c;f>0;o=o*256+t[r+l],l+=A,f-=8);for(a=o&(1<<-f)-1,o>>=-f,f+=n;f>0;a=a*256+t[r+l],l+=A,f-=8);if(o===0)o=1-s;else{if(o===E)return a?NaN:(T?-1:1)*(1/0);a=a+Math.pow(2,n),o=o-s}return(T?-1:1)*a*Math.pow(2,o-n)}function Er(t,r,e,n,i,o){var a,c,E,s=o*8-i-1,f=(1<<s)-1,l=f>>1,A=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,T=n?0:o-1,y=n?1:-1,lr=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(c=isNaN(r)?1:0,a=f):(a=Math.floor(Math.log(r)/Math.LN2),r*(E=Math.pow(2,-a))<1&&(a--,E*=2),a+l>=1?r+=A/E:r+=A*Math.pow(2,1-l),r*E>=2&&(a++,E/=2),a+l>=f?(c=0,a=f):a+l>=1?(c=(r*E-1)*Math.pow(2,i),a=a+l):(c=r*Math.pow(2,l-1)*Math.pow(2,i),a=0));i>=8;t[e+T]=c&255,T+=y,c/=256,i-=8);for(a=a<<i|c,s+=i;s>0;t[e+T]=a&255,T+=y,a/=256,s-=8);t[e+T-y]|=lr*128}var xe=864e5,Ie=30;var ye=18,Oe=1e5,De=1e3,Pe=9e4,Ce=30,Le=60,ve=328,Me=1,Ue=18,ke=36,Be=248;var Ke={"0x4343545055534443000000000000000000000000000000000000000000000000":65537};var Xe={SUCCESS:200,CREATED:201,ACCEPTED:202,NOCONTENT:204,BADREQUEST:400,FORBIDDEN:403,NOTFOUND:404,TIMEOUT:408,TOOMANYREQ:429,INTERNALSERVER:500,BADGATEWAYS:502,SERVICEUNAVILABLE:503,GATEWAYTIMEOUT:504},Qe={INSERT:"Data has been saved successfully.",ERROR:"Some error has been occured. Please try again.",SUCCESS:"Your request is executed successfully!",REQUIRED:"coin_type or price param is required",CAPTCHATEXTNOTFOUND:"Captcha text not found.",CAPTCHA_VERIFICATION_FAILED:"Captcha is not verified.",NOTEMPTY:"coin_type or price should not be empty",PAIR_LIST:"Pair list",PAIR_STATUS:"Pair status has been changed",ACTIVE_USERS:"Active Users",SETTINGS_NOT_FOUND:"No settings found in DB.",TRADE_IS_HALT:"Trading is disabled.",KYC_REQUIRED:"KYC is required for this action.",EMAIL_NOT_VERIFIED:"Your email is not verified.Please verify first.",NOT_BETA_USER:"Trade only works for beta user.",WRONG_PAIR_KEY:"Pair key not found.",PAIRDISABLED:"Temporarily order placement has been disabled for this pair. Please try again later.",BALANCE_NOT_SUFFICIENT:"You have insufficient balance.",MIN_TRADE_NOT_MATCHED:"Minimum trade limit does not matched.",ORDER_PLACED_SUCCESSFULLY:"Order has been placed successfully.",ORDER_NOT_FOUND:"Sorry this order id does not found.",ORDER_ALREADY_MATCHED:"Order already matched.",ORDER_ALREADY_CANCELED:"Order already cancelled.",ORDER_CANCELED_SUCCESSFULLY:"order successfully cancelled",ORDER_LIST:"Order list fetched successfully.",ORDER_EXIT:"Successfully exited from the position.",PAIRERR:"please provide pair param",ORDERSIDE:"side param is required",ORDERTYPE:"type param is required",ORDERIDREQ:"order_id param is required",ORDERDETAIL:"order detail",COMMODITYORICE:"commodity price",COMMODITYSPOT:"commodity spot updated",TOKEN_INSERTED:"ERC token has been added",PARAMREQ:"Parameter missing",EXIST:"Token Already Exist",BREACHEDTOKENS:"List of breached tokens",API_EXPOSE:{TOKEN_NOT_FOUND:"Token not found, Please get token and set to header.",ERROR:"Something went wrong, Please try again later"},LIMITED_UNITS:"ONLY {{units}} units are available. You can place your order with this amount",UNITS_UNAVAIL:"Amount unavailable",ORDER:{ERROR:"An error has been occured",UNITS_UNAVAIL:"Amount unavailable",LIMITED_UNITS:"ONLY {{units}} units are available. You can place your order with this amount",PLACED:"Order has been placed",NOPARAMS:"empty body params",ORDER_NOT_FOUND:"Sorry this order id not found.",ORDER_ALREADY_MATCHED:"Order already matched.",ORDER_ALREADY_CANCELED:"Order already cancelled.",ORDER_CANCELED_SUCCESSFULLY:"Order cancelled successfully"},DOMAIN_NOT_FOUND:"domain not found"},qe={SMALLESTUNIT:p.env.SMALLEST_UNIT},Je={SMALLEST_UNITS:p.env.SMALLEST_UNIT},$e={AVAILABLE_ASSETS_PER_USER:1,AVAILABLE_ASSETS_PER_IP:3};var rt=`{"theme1":{"value":"${p.env.FRONTEND_URL}/Theme%3DDark.svg","active":true},"theme2":{"value":"${p.env.FRONTEND_URL}/Theme%3DLight.svg","active":true},"theme3":{"value":"${p.env.FRONTEND_URL}/Theme%3DLight.svg","active":true}}`;var at=["point-system.discordEnabled","point-system.telegramBotName","point-system.telegramBotId","point-system.telegramEnabled","point-system.telegramGroupId","point-system.telegramGroupName","point-system.twitterAccountId","point-system.twitterAccountName","point-system.twitterEnabled","point-system.twitterJobEnabled","point-system.guideLink"],ut=["obdex","kycTradeRequirementEnabled","newTab","reportButtons"],ct=["geoblock","pinnedPairs","customMenuItems","chartInt"];var ft=t=>`By signing this message, you confirm that the wallet is a trusted one ${t}; Data: `;var Tt=p.env.REACT_APP_API_URL,dt=p.env.REACT_APP_SOCKET_URL,At=p.env.REACT_APP_ALGO_SERVER,gt=p.env.REACT_APP_ALGO_SERVER_PORT||"",bt=p.env.REACT_APP_ALGOD_TOKEN||"",mt=p.env.REACT_APP_DISPENSER_LINK,pe=p.env.REACT_APP_FRONTEND_LINK||"",Rt=p.env.REACT_APP_ALGO_EXPLORER_LINK,xt=p.env.REACT_APP_ALGO_EXPLORER_ASSETS_URL,It=(p.env.REACT_APP_REQUIRE_ACCESS_CODE||"").toLowerCase()==="true",wt=p.env.REACT_APP_USERBACK_ACCESS_TOKEN,St=(p.env.REACT_APP_EXT_ORDER_TYPES||"").toLowerCase()==="true",Nt=4,yt=100,Ot=50,Dt=50,Pt=.001*10**6,Ct=.002*10**6,Lt="Ultrade",vt=["theme1","theme2","theme3"],Mt=p.env.REACT_APP_MASTER_APP_ID||"406",Ut=p.env.REACT_APP_AGG_APP_ID||"408",_e=Number(p.env.REACT_APP_CODEX_APP_ID||"467960617");console.log("CODEX_APP_ID",_e);var kt=3e3,he=p.env.REACT_APP_ALGO_NETWORK||"",Bt=.3,Yt=1,Ft=pe==="https://dev.ultradedev.net",Gt="00:00",Kt=1e6,Te=he.toLowerCase()==="mainnet"?"mainnet":"testnet",Wt=/[^\p{L}\p{N} .,!?:@$%()_-]/gui,Ht=Te==="mainnet"?416001:416002;export{Ut as AGG_APP_ID,bt as ALGOD_TOKEN,xt as ALGO_EXPLORER_ASSETS_URL,Rt as ALGO_EXPLORER_LINK,he as ALGO_NETWORK,At as ALGO_SERVER,gt as ALGO_SERVER_PORT,Tt as API_HOST,Ct as APP_CLOSEOUT_FEE,qe as BIGNUMBER,ut as BOOLEAN_SETTINGS,Je as CALCULATIONS,Ke as CCTP_UNIFIED_ASSETS,_e as CODEX_APP_ID,xe as DAY_MILLISECONDS,Bt as DEFAULT_AGG_FEE,Pe as DEFAULT_FEE_SHARE,Ce as DEFAULT_ORDER_EXPIRATION_DAYS,mt as DISPENSER_LINK,Lt as EXCHANGE_NAME,Ie as EXPIRE_DAYS,St as EXT_ORDER_TYPES,ye as FACTOR_PRICE_DECIMAL,Oe as FEE_SCALE,De as FRONTEND_FEE_SCALE,pe as FRONTEND_LINK,Kt as GASLIMIT,Nt as GLOWL_DECIMAL,Ft as IS_DEV,ct as JSON_ARRAY_SETTINGS,Dt as MARKET_TRADES_SIZE,Mt as MASTER_APP_ID,Ue as MAX_TOKEN_DECIMAL,Le as MIN_ORDER_EXPIRATION_MINS,Te as NETWORK,Ot as ORDER_BOOK_BUFFER,yt as ORDER_BOOK_SIZE,ve as ORDER_DATA_BYTES_LENGTH,Me as ORDER_MSG_VERSION,kt as PLATFORM_FEE,Ht as PeraChainId,at as PointSystemSettingsIds,It as REACT_APP_REQUIRE_ACCESS_CODE,Xe as RESPONSES,Qe as RES_MSG,$e as SERVER,ke as SHARE_DATA_LENGTH,dt as SOCKET_URL,vt as THEMES,Yt as ULTRADE_ID,wt as USERBACK_ACCESS_TOKEN,Be as WITHDRAW_DATA_BYTES_LENGTH,Pt as WITHDRAW_FEE,Gt as ZERO_TIMER,ft as messageForSigning,Wt as sanitizeRegex};
|
|
1
|
+
function W(){throw new Error("setTimeout has not been defined")}function H(){throw new Error("clearTimeout has not been defined")}var x=W,I=H;typeof globalThis.setTimeout=="function"&&(x=setTimeout);typeof globalThis.clearTimeout=="function"&&(I=clearTimeout);function V(t){if(x===setTimeout)return setTimeout(t,0);if((x===W||!x)&&setTimeout)return x=setTimeout,setTimeout(t,0);try{return x(t,0)}catch{try{return x.call(null,t,0)}catch{return x.call(this,t,0)}}}function sr(t){if(I===clearTimeout)return clearTimeout(t);if((I===H||!I)&&clearTimeout)return I=clearTimeout,clearTimeout(t);try{return I(t)}catch{try{return I.call(null,t)}catch{return I.call(this,t)}}}var m=[],D=!1,w,P=-1;function fr(){!D||!w||(D=!1,w.length?m=w.concat(m):P=-1,m.length&&X())}function X(){if(!D){var t=V(fr);D=!0;for(var r=m.length;r;){for(w=m,m=[];++P<r;)w&&w[P].run();P=-1,r=m.length}w=null,D=!1,sr(t)}}function pr(t){var r=new Array(arguments.length-1);if(arguments.length>1)for(var e=1;e<arguments.length;e++)r[e-1]=arguments[e];m.push(new Q(t,r)),m.length===1&&!D&&V(X)}function Q(t,r){this.fun=t,this.array=r}Q.prototype.run=function(){this.fun.apply(null,this.array)};var _r="browser",hr="browser",Tr=!0,Ar={},dr=[],gr="",br={},mr={},Rr={};function S(){}var xr=S,Ir=S,wr=S,Sr=S,Nr=S,yr=S,Or=S;function Dr(t){throw new Error("process.binding is not supported")}function Pr(){return"/"}function Cr(t){throw new Error("process.chdir is not supported")}function Lr(){return 0}var O=globalThis.performance||{},vr=O.now||O.mozNow||O.msNow||O.oNow||O.webkitNow||function(){return new Date().getTime()};function Mr(t){var r=vr.call(O)*.001,e=Math.floor(r),n=Math.floor(r%1*1e9);return t&&(e=e-t[0],n=n-t[1],n<0&&(e--,n+=1e9)),[e,n]}var Ur=new Date;function kr(){var t=new Date,r=t-Ur;return r/1e3}var p={nextTick:pr,title:_r,browser:Tr,env:Ar,argv:dr,version:gr,versions:br,on:xr,addListener:Ir,once:wr,off:Sr,removeListener:Nr,removeAllListeners:yr,emit:Or,binding:Dr,cwd:Pr,chdir:Cr,umask:Lr,hrtime:Mr,platform:hr,release:mr,config:Rr,uptime:kr},K={};Object.keys(K).forEach(t=>{let r=t.split("."),e=p;for(let n=0;n<r.length;n++){let i=r[n];n===r.length-1?e[i]=K[t]:e=e[i]||(e[i]={})}});var g=[],A=[],Br=typeof Uint8Array<"u"?Uint8Array:Array,Y=!1;function Z(){Y=!0;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=0,e=t.length;r<e;++r)g[r]=t[r],A[t.charCodeAt(r)]=r;A[45]=62,A[95]=63}function Yr(t){Y||Z();var r,e,n,i,o,a,c=t.length;if(c%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o=t[c-2]==="="?2:t[c-1]==="="?1:0,a=new Br(c*3/4-o),n=o>0?c-4:c;var E=0;for(r=0,e=0;r<n;r+=4,e+=3)i=A[t.charCodeAt(r)]<<18|A[t.charCodeAt(r+1)]<<12|A[t.charCodeAt(r+2)]<<6|A[t.charCodeAt(r+3)],a[E++]=i>>16&255,a[E++]=i>>8&255,a[E++]=i&255;return o===2?(i=A[t.charCodeAt(r)]<<2|A[t.charCodeAt(r+1)]>>4,a[E++]=i&255):o===1&&(i=A[t.charCodeAt(r)]<<10|A[t.charCodeAt(r+1)]<<4|A[t.charCodeAt(r+2)]>>2,a[E++]=i>>8&255,a[E++]=i&255),a}function Fr(t){return g[t>>18&63]+g[t>>12&63]+g[t>>6&63]+g[t&63]}function Gr(t,r,e){for(var n,i=[],o=r;o<e;o+=3)n=(t[o]<<16)+(t[o+1]<<8)+t[o+2],i.push(Fr(n));return i.join("")}function q(t){Y||Z();for(var r,e=t.length,n=e%3,i="",o=[],a=16383,c=0,E=e-n;c<E;c+=a)o.push(Gr(t,c,c+a>E?E:c+a));return n===1?(r=t[e-1],i+=g[r>>2],i+=g[r<<4&63],i+="=="):n===2&&(r=(t[e-2]<<8)+t[e-1],i+=g[r>>10],i+=g[r>>4&63],i+=g[r<<2&63],i+="="),o.push(i),o.join("")}u.TYPED_ARRAY_SUPPORT=globalThis.TYPED_ARRAY_SUPPORT!==void 0?globalThis.TYPED_ARRAY_SUPPORT:!0;function C(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function R(t,r){if(C()<r)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(r),t.__proto__=u.prototype):(t===null&&(t=new u(r)),t.length=r),t}function u(t,r,e){if(!u.TYPED_ARRAY_SUPPORT&&!(this instanceof u))return new u(t,r,e);if(typeof t=="number"){if(typeof r=="string")throw new Error("If encoding is specified then the first argument must be a string");return F(this,t)}return z(this,t,r,e)}u.poolSize=8192;u._augment=function(t){return t.__proto__=u.prototype,t};function z(t,r,e,n){if(typeof r=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&r instanceof ArrayBuffer?Hr(t,r,e,n):typeof r=="string"?Wr(t,r,e):Vr(t,r)}u.from=function(t,r,e){return z(null,t,r,e)};u.kMaxLength=C();u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&u[Symbol.species]);function j(t){if(typeof t!="number")throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function Kr(t,r,e,n){return j(r),r<=0?R(t,r):e!==void 0?typeof n=="string"?R(t,r).fill(e,n):R(t,r).fill(e):R(t,r)}u.alloc=function(t,r,e){return Kr(null,t,r,e)};function F(t,r){if(j(r),t=R(t,r<0?0:G(r)|0),!u.TYPED_ARRAY_SUPPORT)for(var e=0;e<r;++e)t[e]=0;return t}u.allocUnsafe=function(t){return F(null,t)};u.allocUnsafeSlow=function(t){return F(null,t)};function Wr(t,r,e){if((typeof e!="string"||e==="")&&(e="utf8"),!u.isEncoding(e))throw new TypeError('"encoding" must be a valid string encoding');var n=rr(r,e)|0;t=R(t,n);var i=t.write(r,e);return i!==n&&(t=t.slice(0,i)),t}function B(t,r){var e=r.length<0?0:G(r.length)|0;t=R(t,e);for(var n=0;n<e;n+=1)t[n]=r[n]&255;return t}function Hr(t,r,e,n){if(r.byteLength,e<0||r.byteLength<e)throw new RangeError("'offset' is out of bounds");if(r.byteLength<e+(n||0))throw new RangeError("'length' is out of bounds");return e===void 0&&n===void 0?r=new Uint8Array(r):n===void 0?r=new Uint8Array(r,e):r=new Uint8Array(r,e,n),u.TYPED_ARRAY_SUPPORT?(t=r,t.__proto__=u.prototype):t=B(t,r),t}function Vr(t,r){if(b(r)){var e=G(r.length)|0;return t=R(t,e),t.length===0||r.copy(t,0,0,e),t}if(r){if(typeof ArrayBuffer<"u"&&r.buffer instanceof ArrayBuffer||"length"in r)return typeof r.length!="number"||le(r.length)?R(t,0):B(t,r);if(r.type==="Buffer"&&Array.isArray(r.data))return B(t,r.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function G(t){if(t>=C())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+C().toString(16)+" bytes");return t|0}u.isBuffer=se;function b(t){return!!(t!=null&&t._isBuffer)}u.compare=function(r,e){if(!b(r)||!b(e))throw new TypeError("Arguments must be Buffers");if(r===e)return 0;for(var n=r.length,i=e.length,o=0,a=Math.min(n,i);o<a;++o)if(r[o]!==e[o]){n=r[o],i=e[o];break}return n<i?-1:i<n?1:0};u.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};u.concat=function(r,e){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return u.alloc(0);var n;if(e===void 0)for(e=0,n=0;n<r.length;++n)e+=r[n].length;var i=u.allocUnsafe(e),o=0;for(n=0;n<r.length;++n){var a=r[n];if(!b(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(i,o),o+=a.length}return i};function rr(t,r){if(b(t))return t.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;typeof t!="string"&&(t=""+t);var e=t.length;if(e===0)return 0;for(var n=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":case void 0:return L(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e*2;case"hex":return e>>>1;case"base64":return ur(t).length;default:if(n)return L(t).length;r=(""+r).toLowerCase(),n=!0}}u.byteLength=rr;function Xr(t,r,e){var n=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((e===void 0||e>this.length)&&(e=this.length),e<=0)||(e>>>=0,r>>>=0,e<=r))return"";for(t||(t="utf8");;)switch(t){case"hex":return te(this,r,e);case"utf8":case"utf-8":return nr(this,r,e);case"ascii":return re(this,r,e);case"latin1":case"binary":return ee(this,r,e);case"base64":return zr(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ne(this,r,e);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}u.prototype._isBuffer=!0;function N(t,r,e){var n=t[r];t[r]=t[e],t[e]=n}u.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<r;e+=2)N(this,e,e+1);return this};u.prototype.swap32=function(){var r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<r;e+=4)N(this,e,e+3),N(this,e+1,e+2);return this};u.prototype.swap64=function(){var r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<r;e+=8)N(this,e,e+7),N(this,e+1,e+6),N(this,e+2,e+5),N(this,e+3,e+4);return this};u.prototype.toString=function(){var r=this.length|0;return r===0?"":arguments.length===0?nr(this,0,r):Xr.apply(this,arguments)};u.prototype.equals=function(r){if(!b(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:u.compare(this,r)===0};u.prototype.compare=function(r,e,n,i,o){if(!b(r))throw new TypeError("Argument must be a Buffer");if(e===void 0&&(e=0),n===void 0&&(n=r?r.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),e<0||n>r.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&e>=n)return 0;if(i>=o)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,i>>>=0,o>>>=0,this===r)return 0;for(var a=o-i,c=n-e,E=Math.min(a,c),s=this.slice(i,o),f=r.slice(e,n),l=0;l<E;++l)if(s[l]!==f[l]){a=s[l],c=f[l];break}return a<c?-1:c<a?1:0};function er(t,r,e,n,i){if(t.length===0)return-1;if(typeof e=="string"?(n=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,isNaN(e)&&(e=i?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(i)return-1;e=t.length-1}else if(e<0)if(i)e=0;else return-1;if(typeof r=="string"&&(r=u.from(r,n)),b(r))return r.length===0?-1:J(t,r,e,n,i);if(typeof r=="number")return r=r&255,u.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(t,r,e):Uint8Array.prototype.lastIndexOf.call(t,r,e):J(t,[r],e,n,i);throw new TypeError("val must be string, number or Buffer")}function J(t,r,e,n,i){var o=1,a=t.length,c=r.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||r.length<2)return-1;o=2,a/=2,c/=2,e/=2}function E(T,y){return o===1?T[y]:T.readUInt16BE(y*o)}var s;if(i){var f=-1;for(s=e;s<a;s++)if(E(t,s)===E(r,f===-1?0:s-f)){if(f===-1&&(f=s),s-f+1===c)return f*o}else f!==-1&&(s-=s-f),f=-1}else for(e+c>a&&(e=a-c),s=e;s>=0;s--){for(var l=!0,d=0;d<c;d++)if(E(t,s+d)!==E(r,d)){l=!1;break}if(l)return s}return-1}u.prototype.includes=function(r,e,n){return this.indexOf(r,e,n)!==-1};u.prototype.indexOf=function(r,e,n){return er(this,r,e,n,!0)};u.prototype.lastIndexOf=function(r,e,n){return er(this,r,e,n,!1)};function Qr(t,r,e,n){e=Number(e)||0;var i=t.length-e;n?(n=Number(n),n>i&&(n=i)):n=i;var o=r.length;if(o%2!==0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;a<n;++a){var c=parseInt(r.substr(a*2,2),16);if(isNaN(c))return a;t[e+a]=c}return a}function qr(t,r,e,n){return U(L(r,t.length-e),t,e,n)}function tr(t,r,e,n){return U(ce(r),t,e,n)}function Jr(t,r,e,n){return tr(t,r,e,n)}function $r(t,r,e,n){return U(ur(r),t,e,n)}function Zr(t,r,e,n){return U(Ee(r,t.length-e),t,e,n)}u.prototype.write=function(r,e,n,i){if(e===void 0)i="utf8",n=this.length,e=0;else if(n===void 0&&typeof e=="string")i=e,n=this.length,e=0;else if(isFinite(e))e=e|0,isFinite(n)?(n=n|0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o=this.length-e;if((n===void 0||n>o)&&(n=o),r.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var a=!1;;)switch(i){case"hex":return Qr(this,r,e,n);case"utf8":case"utf-8":return qr(this,r,e,n);case"ascii":return tr(this,r,e,n);case"latin1":case"binary":return Jr(this,r,e,n);case"base64":return $r(this,r,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Zr(this,r,e,n);default:if(a)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),a=!0}};u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function zr(t,r,e){return r===0&&e===t.length?q(t):q(t.slice(r,e))}function nr(t,r,e){e=Math.min(t.length,e);for(var n=[],i=r;i<e;){var o=t[i],a=null,c=o>239?4:o>223?3:o>191?2:1;if(i+c<=e){var E,s,f,l;switch(c){case 1:o<128&&(a=o);break;case 2:E=t[i+1],(E&192)===128&&(l=(o&31)<<6|E&63,l>127&&(a=l));break;case 3:E=t[i+1],s=t[i+2],(E&192)===128&&(s&192)===128&&(l=(o&15)<<12|(E&63)<<6|s&63,l>2047&&(l<55296||l>57343)&&(a=l));break;case 4:E=t[i+1],s=t[i+2],f=t[i+3],(E&192)===128&&(s&192)===128&&(f&192)===128&&(l=(o&15)<<18|(E&63)<<12|(s&63)<<6|f&63,l>65535&&l<1114112&&(a=l))}}a===null?(a=65533,c=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|a&1023),n.push(a),i+=c}return jr(n)}var $=4096;function jr(t){var r=t.length;if(r<=$)return String.fromCharCode.apply(String,t);for(var e="",n=0;n<r;)e+=String.fromCharCode.apply(String,t.slice(n,n+=$));return e}function re(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(t[i]&127);return n}function ee(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(t[i]);return n}function te(t,r,e){var n=t.length;(!r||r<0)&&(r=0),(!e||e<0||e>n)&&(e=n);for(var i="",o=r;o<e;++o)i+=ue(t[o]);return i}function ne(t,r,e){for(var n=t.slice(r,e),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+n[o+1]*256);return i}u.prototype.slice=function(r,e){var n=this.length;r=~~r,e=e===void 0?n:~~e,r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),e<r&&(e=r);var i;if(u.TYPED_ARRAY_SUPPORT)i=this.subarray(r,e),i.__proto__=u.prototype;else{var o=e-r;i=new u(o,void 0);for(var a=0;a<o;++a)i[a]=this[a+r]}return i};function _(t,r,e){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+r>e)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUIntLE=function(r,e,n){r=r|0,e=e|0,n||_(r,e,this.length);for(var i=this[r],o=1,a=0;++a<e&&(o*=256);)i+=this[r+a]*o;return i};u.prototype.readUIntBE=function(r,e,n){r=r|0,e=e|0,n||_(r,e,this.length);for(var i=this[r+--e],o=1;e>0&&(o*=256);)i+=this[r+--e]*o;return i};u.prototype.readUInt8=function(r,e){return e||_(r,1,this.length),this[r]};u.prototype.readUInt16LE=function(r,e){return e||_(r,2,this.length),this[r]|this[r+1]<<8};u.prototype.readUInt16BE=function(r,e){return e||_(r,2,this.length),this[r]<<8|this[r+1]};u.prototype.readUInt32LE=function(r,e){return e||_(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};u.prototype.readUInt32BE=function(r,e){return e||_(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};u.prototype.readIntLE=function(r,e,n){r=r|0,e=e|0,n||_(r,e,this.length);for(var i=this[r],o=1,a=0;++a<e&&(o*=256);)i+=this[r+a]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*e)),i};u.prototype.readIntBE=function(r,e,n){r=r|0,e=e|0,n||_(r,e,this.length);for(var i=e,o=1,a=this[r+--i];i>0&&(o*=256);)a+=this[r+--i]*o;return o*=128,a>=o&&(a-=Math.pow(2,8*e)),a};u.prototype.readInt8=function(r,e){return e||_(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};u.prototype.readInt16LE=function(r,e){e||_(r,2,this.length);var n=this[r]|this[r+1]<<8;return n&32768?n|4294901760:n};u.prototype.readInt16BE=function(r,e){e||_(r,2,this.length);var n=this[r+1]|this[r]<<8;return n&32768?n|4294901760:n};u.prototype.readInt32LE=function(r,e){return e||_(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};u.prototype.readInt32BE=function(r,e){return e||_(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};u.prototype.readFloatLE=function(r,e){return e||_(r,4,this.length),k(this,r,!0,23,4)};u.prototype.readFloatBE=function(r,e){return e||_(r,4,this.length),k(this,r,!1,23,4)};u.prototype.readDoubleLE=function(r,e){return e||_(r,8,this.length),k(this,r,!0,52,8)};u.prototype.readDoubleBE=function(r,e){return e||_(r,8,this.length),k(this,r,!1,52,8)};function h(t,r,e,n,i,o){if(!b(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<o)throw new RangeError('"value" argument is out of bounds');if(e+n>t.length)throw new RangeError("Index out of range")}u.prototype.writeUIntLE=function(r,e,n,i){if(r=+r,e=e|0,n=n|0,!i){var o=Math.pow(2,8*n)-1;h(this,r,e,n,o,0)}var a=1,c=0;for(this[e]=r&255;++c<n&&(a*=256);)this[e+c]=r/a&255;return e+n};u.prototype.writeUIntBE=function(r,e,n,i){if(r=+r,e=e|0,n=n|0,!i){var o=Math.pow(2,8*n)-1;h(this,r,e,n,o,0)}var a=n-1,c=1;for(this[e+a]=r&255;--a>=0&&(c*=256);)this[e+a]=r/c&255;return e+n};u.prototype.writeUInt8=function(r,e,n){return r=+r,e=e|0,n||h(this,r,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(r=Math.floor(r)),this[e]=r&255,e+1};function v(t,r,e,n){r<0&&(r=65535+r+1);for(var i=0,o=Math.min(t.length-e,2);i<o;++i)t[e+i]=(r&255<<8*(n?i:1-i))>>>(n?i:1-i)*8}u.prototype.writeUInt16LE=function(r,e,n){return r=+r,e=e|0,n||h(this,r,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=r&255,this[e+1]=r>>>8):v(this,r,e,!0),e+2};u.prototype.writeUInt16BE=function(r,e,n){return r=+r,e=e|0,n||h(this,r,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=r>>>8,this[e+1]=r&255):v(this,r,e,!1),e+2};function M(t,r,e,n){r<0&&(r=4294967295+r+1);for(var i=0,o=Math.min(t.length-e,4);i<o;++i)t[e+i]=r>>>(n?i:3-i)*8&255}u.prototype.writeUInt32LE=function(r,e,n){return r=+r,e=e|0,n||h(this,r,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=r>>>24,this[e+2]=r>>>16,this[e+1]=r>>>8,this[e]=r&255):M(this,r,e,!0),e+4};u.prototype.writeUInt32BE=function(r,e,n){return r=+r,e=e|0,n||h(this,r,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255):M(this,r,e,!1),e+4};u.prototype.writeIntLE=function(r,e,n,i){if(r=+r,e=e|0,!i){var o=Math.pow(2,8*n-1);h(this,r,e,n,o-1,-o)}var a=0,c=1,E=0;for(this[e]=r&255;++a<n&&(c*=256);)r<0&&E===0&&this[e+a-1]!==0&&(E=1),this[e+a]=(r/c>>0)-E&255;return e+n};u.prototype.writeIntBE=function(r,e,n,i){if(r=+r,e=e|0,!i){var o=Math.pow(2,8*n-1);h(this,r,e,n,o-1,-o)}var a=n-1,c=1,E=0;for(this[e+a]=r&255;--a>=0&&(c*=256);)r<0&&E===0&&this[e+a+1]!==0&&(E=1),this[e+a]=(r/c>>0)-E&255;return e+n};u.prototype.writeInt8=function(r,e,n){return r=+r,e=e|0,n||h(this,r,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(r=Math.floor(r)),r<0&&(r=255+r+1),this[e]=r&255,e+1};u.prototype.writeInt16LE=function(r,e,n){return r=+r,e=e|0,n||h(this,r,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=r&255,this[e+1]=r>>>8):v(this,r,e,!0),e+2};u.prototype.writeInt16BE=function(r,e,n){return r=+r,e=e|0,n||h(this,r,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=r>>>8,this[e+1]=r&255):v(this,r,e,!1),e+2};u.prototype.writeInt32LE=function(r,e,n){return r=+r,e=e|0,n||h(this,r,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=r&255,this[e+1]=r>>>8,this[e+2]=r>>>16,this[e+3]=r>>>24):M(this,r,e,!0),e+4};u.prototype.writeInt32BE=function(r,e,n){return r=+r,e=e|0,n||h(this,r,e,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),u.TYPED_ARRAY_SUPPORT?(this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255):M(this,r,e,!1),e+4};function ir(t,r,e,n,i,o){if(e+n>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function or(t,r,e,n,i){return i||ir(t,r,e,4,34028234663852886e22,-34028234663852886e22),Er(t,r,e,n,23,4),e+4}u.prototype.writeFloatLE=function(r,e,n){return or(this,r,e,!0,n)};u.prototype.writeFloatBE=function(r,e,n){return or(this,r,e,!1,n)};function ar(t,r,e,n,i){return i||ir(t,r,e,8,17976931348623157e292,-17976931348623157e292),Er(t,r,e,n,52,8),e+8}u.prototype.writeDoubleLE=function(r,e,n){return ar(this,r,e,!0,n)};u.prototype.writeDoubleBE=function(r,e,n){return ar(this,r,e,!1,n)};u.prototype.copy=function(r,e,n,i){if(n||(n=0),!i&&i!==0&&(i=this.length),e>=r.length&&(e=r.length),e||(e=0),i>0&&i<n&&(i=n),i===n||r.length===0||this.length===0)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),r.length-e<i-n&&(i=r.length-e+n);var o=i-n,a;if(this===r&&n<e&&e<i)for(a=o-1;a>=0;--a)r[a+e]=this[a+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(a=0;a<o;++a)r[a+e]=this[a+n];else Uint8Array.prototype.set.call(r,this.subarray(n,n+o),e);return o};u.prototype.fill=function(r,e,n,i){if(typeof r=="string"){if(typeof e=="string"?(i=e,e=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),r.length===1){var o=r.charCodeAt(0);o<256&&(r=o)}if(i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!u.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else typeof r=="number"&&(r=r&255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;e=e>>>0,n=n===void 0?this.length:n>>>0,r||(r=0);var a;if(typeof r=="number")for(a=e;a<n;++a)this[a]=r;else{var c=b(r)?r:L(new u(r,i).toString()),E=c.length;for(a=0;a<n-e;++a)this[a+e]=c[a%E]}return this};var ie=/[^+\/0-9A-Za-z-_]/g;function oe(t){if(t=ae(t).replace(ie,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function ae(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function ue(t){return t<16?"0"+t.toString(16):t.toString(16)}function L(t,r){r=r||1/0;for(var e,n=t.length,i=null,o=[],a=0;a<n;++a){if(e=t.charCodeAt(a),e>55295&&e<57344){if(!i){if(e>56319){(r-=3)>-1&&o.push(239,191,189);continue}else if(a+1===n){(r-=3)>-1&&o.push(239,191,189);continue}i=e;continue}if(e<56320){(r-=3)>-1&&o.push(239,191,189),i=e;continue}e=(i-55296<<10|e-56320)+65536}else i&&(r-=3)>-1&&o.push(239,191,189);if(i=null,e<128){if((r-=1)<0)break;o.push(e)}else if(e<2048){if((r-=2)<0)break;o.push(e>>6|192,e&63|128)}else if(e<65536){if((r-=3)<0)break;o.push(e>>12|224,e>>6&63|128,e&63|128)}else if(e<1114112){if((r-=4)<0)break;o.push(e>>18|240,e>>12&63|128,e>>6&63|128,e&63|128)}else throw new Error("Invalid code point")}return o}function ce(t){for(var r=[],e=0;e<t.length;++e)r.push(t.charCodeAt(e)&255);return r}function Ee(t,r){for(var e,n,i,o=[],a=0;a<t.length&&!((r-=2)<0);++a)e=t.charCodeAt(a),n=e>>8,i=e%256,o.push(i),o.push(n);return o}function ur(t){return Yr(oe(t))}function U(t,r,e,n){for(var i=0;i<n&&!(i+e>=r.length||i>=t.length);++i)r[i+e]=t[i];return i}function le(t){return t!==t}function se(t){return t!=null&&(!!t._isBuffer||cr(t)||fe(t))}function cr(t){return!!t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function fe(t){return typeof t.readFloatLE=="function"&&typeof t.slice=="function"&&cr(t.slice(0,0))}function k(t,r,e,n,i){var o,a,c=i*8-n-1,E=(1<<c)-1,s=E>>1,f=-7,l=e?i-1:0,d=e?-1:1,T=t[r+l];for(l+=d,o=T&(1<<-f)-1,T>>=-f,f+=c;f>0;o=o*256+t[r+l],l+=d,f-=8);for(a=o&(1<<-f)-1,o>>=-f,f+=n;f>0;a=a*256+t[r+l],l+=d,f-=8);if(o===0)o=1-s;else{if(o===E)return a?NaN:(T?-1:1)*(1/0);a=a+Math.pow(2,n),o=o-s}return(T?-1:1)*a*Math.pow(2,o-n)}function Er(t,r,e,n,i,o){var a,c,E,s=o*8-i-1,f=(1<<s)-1,l=f>>1,d=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,T=n?0:o-1,y=n?1:-1,lr=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(c=isNaN(r)?1:0,a=f):(a=Math.floor(Math.log(r)/Math.LN2),r*(E=Math.pow(2,-a))<1&&(a--,E*=2),a+l>=1?r+=d/E:r+=d*Math.pow(2,1-l),r*E>=2&&(a++,E/=2),a+l>=f?(c=0,a=f):a+l>=1?(c=(r*E-1)*Math.pow(2,i),a=a+l):(c=r*Math.pow(2,l-1)*Math.pow(2,i),a=0));i>=8;t[e+T]=c&255,T+=y,c/=256,i-=8);for(a=a<<i|c,s+=i;s>0;t[e+T]=a&255,T+=y,a/=256,s-=8);t[e+T-y]|=lr*128}var xe=864e5,Ie=30;var ye=18,Oe=1e5,De=1e3,Pe=9e4,Ce=30,Le=60,ve=328,Me=1,Ue=18,ke=36,Be=248;var Ke={"0x4343545055534443000000000000000000000000000000000000000000000000":65537};var Xe={SUCCESS:200,CREATED:201,ACCEPTED:202,NOCONTENT:204,BADREQUEST:400,FORBIDDEN:403,NOTFOUND:404,TIMEOUT:408,TOOMANYREQ:429,INTERNALSERVER:500,BADGATEWAYS:502,SERVICEUNAVILABLE:503,GATEWAYTIMEOUT:504},Qe={INSERT:"Data has been saved successfully.",ERROR:"Some error has been occured. Please try again.",SUCCESS:"Your request is executed successfully!",REQUIRED:"coin_type or price param is required",CAPTCHATEXTNOTFOUND:"Captcha text not found.",CAPTCHA_VERIFICATION_FAILED:"Captcha is not verified.",NOTEMPTY:"coin_type or price should not be empty",PAIR_LIST:"Pair list",PAIR_STATUS:"Pair status has been changed",ACTIVE_USERS:"Active Users",SETTINGS_NOT_FOUND:"No settings found in DB.",TRADE_IS_HALT:"Trading is disabled.",KYC_REQUIRED:"KYC is required for this action.",EMAIL_NOT_VERIFIED:"Your email is not verified.Please verify first.",NOT_BETA_USER:"Trade only works for beta user.",WRONG_PAIR_KEY:"Pair key not found.",PAIRDISABLED:"Temporarily order placement has been disabled for this pair. Please try again later.",BALANCE_NOT_SUFFICIENT:"You have insufficient balance.",MIN_TRADE_NOT_MATCHED:"Minimum trade limit does not matched.",ORDER_PLACED_SUCCESSFULLY:"Order has been placed successfully.",ORDER_NOT_FOUND:"Sorry this order id does not found.",ORDER_ALREADY_MATCHED:"Order already matched.",ORDER_ALREADY_CANCELED:"Order already cancelled.",ORDER_CANCELED_SUCCESSFULLY:"order successfully cancelled",ORDER_LIST:"Order list fetched successfully.",ORDER_EXIT:"Successfully exited from the position.",PAIRERR:"please provide pair param",ORDERSIDE:"side param is required",ORDERTYPE:"type param is required",ORDERIDREQ:"order_id param is required",ORDERDETAIL:"order detail",COMMODITYORICE:"commodity price",COMMODITYSPOT:"commodity spot updated",TOKEN_INSERTED:"ERC token has been added",PARAMREQ:"Parameter missing",EXIST:"Token Already Exist",BREACHEDTOKENS:"List of breached tokens",API_EXPOSE:{TOKEN_NOT_FOUND:"Token not found, Please get token and set to header.",ERROR:"Something went wrong, Please try again later"},LIMITED_UNITS:"ONLY {{units}} units are available. You can place your order with this amount",UNITS_UNAVAIL:"Amount unavailable",ORDER:{ERROR:"An error has been occured",UNITS_UNAVAIL:"Amount unavailable",LIMITED_UNITS:"ONLY {{units}} units are available. You can place your order with this amount",PLACED:"Order has been placed",NOPARAMS:"empty body params",ORDER_NOT_FOUND:"Sorry this order id not found.",ORDER_ALREADY_MATCHED:"Order already matched.",ORDER_ALREADY_CANCELED:"Order already cancelled.",ORDER_CANCELED_SUCCESSFULLY:"Order cancelled successfully"},DOMAIN_NOT_FOUND:"domain not found"},qe={SMALLESTUNIT:p.env.SMALLEST_UNIT},Je={SMALLEST_UNITS:p.env.SMALLEST_UNIT},$e={AVAILABLE_ASSETS_PER_USER:1,AVAILABLE_ASSETS_PER_IP:3};var rt=`{"theme1":{"value":"${p.env.FRONTEND_URL}/Theme%3DDark.svg","active":true},"theme2":{"value":"${p.env.FRONTEND_URL}/Theme%3DLight.svg","active":true},"theme3":{"value":"${p.env.FRONTEND_URL}/Theme%3DLight.svg","active":true}}`;var at=["point-system.discordEnabled","point-system.telegramBotName","point-system.telegramBotId","point-system.telegramEnabled","point-system.telegramGroupId","point-system.telegramGroupName","point-system.twitterAccountId","point-system.twitterAccountName","point-system.twitterEnabled","point-system.twitterJobEnabled","point-system.guideLink"],ut=["obdex","kycTradeRequirementEnabled","newTab","reportButtons"],ct=["geoblock","pinnedPairs","customMenuItems","chartInt"];var ft=t=>`By signing this message, you confirm that the wallet is a trusted one ${t}; Data: `;var Tt=p.env.REACT_APP_API_URL,At=p.env.REACT_APP_SOCKET_URL,dt=p.env.REACT_APP_ALGO_SERVER,gt=p.env.REACT_APP_ALGO_SERVER_PORT||"",bt=p.env.REACT_APP_ALGOD_TOKEN||"",mt=p.env.REACT_APP_DISPENSER_LINK,pe=p.env.REACT_APP_FRONTEND_LINK||"",Rt=p.env.REACT_APP_ALGO_EXPLORER_LINK,xt=p.env.REACT_APP_ALGO_EXPLORER_ASSETS_URL,It=(p.env.REACT_APP_REQUIRE_ACCESS_CODE||"").toLowerCase()==="true",wt=p.env.REACT_APP_USERBACK_ACCESS_TOKEN,St=(p.env.REACT_APP_EXT_ORDER_TYPES||"").toLowerCase()==="true",Nt=4,yt=100,Ot=50,Dt=50,Pt=.001*10**6,Ct=.002*10**6,Lt="Ultrade",vt=["theme1","theme2","theme3"],Mt=p.env.REACT_APP_MASTER_APP_ID||"406",Ut=p.env.REACT_APP_AGG_APP_ID||"408",_e=Number(p.env.REACT_APP_CODEX_APP_ID||"467960617");console.log("CODEX_APP_ID",_e);var kt=3e3,he=p.env.REACT_APP_ALGO_NETWORK||"",Bt=.3,Yt=1,Ft=pe==="https://dev.ultradedev.net",Gt="00:00",Kt=1e6,Te=he.toLowerCase()==="mainnet"?"mainnet":"testnet",Wt=/[^\p{L}\p{N} .,!?:@$%()_-]/gui,Ht=Te==="mainnet"?416001:416002;export{Ut as AGG_APP_ID,bt as ALGOD_TOKEN,xt as ALGO_EXPLORER_ASSETS_URL,Rt as ALGO_EXPLORER_LINK,he as ALGO_NETWORK,dt as ALGO_SERVER,gt as ALGO_SERVER_PORT,Tt as API_HOST,Ct as APP_CLOSEOUT_FEE,qe as BIGNUMBER,ut as BOOLEAN_SETTINGS,Je as CALCULATIONS,Ke as CCTP_UNIFIED_ASSETS,_e as CODEX_APP_ID,xe as DAY_MILLISECONDS,Bt as DEFAULT_AGG_FEE,Pe as DEFAULT_FEE_SHARE,Ce as DEFAULT_ORDER_EXPIRATION_DAYS,mt as DISPENSER_LINK,Lt as EXCHANGE_NAME,Ie as EXPIRE_DAYS,St as EXT_ORDER_TYPES,ye as FACTOR_PRICE_DECIMAL,Oe as FEE_SCALE,De as FRONTEND_FEE_SCALE,pe as FRONTEND_LINK,Kt as GASLIMIT,Nt as GLOWL_DECIMAL,Ft as IS_DEV,ct as JSON_ARRAY_SETTINGS,Dt as MARKET_TRADES_SIZE,Mt as MASTER_APP_ID,Ue as MAX_TOKEN_DECIMAL,Le as MIN_ORDER_EXPIRATION_MINS,Te as NETWORK,Ot as ORDER_BOOK_BUFFER,yt as ORDER_BOOK_SIZE,ve as ORDER_DATA_BYTES_LENGTH,Me as ORDER_MSG_VERSION,kt as PLATFORM_FEE,Ht as PeraChainId,at as PointSystemSettingsIds,It as REACT_APP_REQUIRE_ACCESS_CODE,Xe as RESPONSES,Qe as RES_MSG,$e as SERVER,ke as SHARE_DATA_LENGTH,At as SOCKET_URL,vt as THEMES,Yt as ULTRADE_ID,wt as USERBACK_ACCESS_TOKEN,Be as WITHDRAW_DATA_BYTES_LENGTH,Pt as WITHDRAW_FEE,Gt as ZERO_TIMER,ft as messageForSigning,Wt as sanitizeRegex};
|
|
2
2
|
/*! Bundled license information:
|
|
3
3
|
|
|
4
4
|
@esbuild-plugins/node-globals-polyfill/Buffer.js:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function K(){throw new Error("setTimeout has not been defined")}function G(){throw new Error("clearTimeout has not been defined")}var A=K,R=G;typeof globalThis.setTimeout=="function"&&(A=setTimeout);typeof globalThis.clearTimeout=="function"&&(R=clearTimeout);function z(t){if(A===setTimeout)return setTimeout(t,0);if((A===K||!A)&&setTimeout)return A=setTimeout,setTimeout(t,0);try{return A(t,0)}catch{try{return A.call(null,t,0)}catch{return A.call(this,t,0)}}}function br(t){if(R===clearTimeout)return clearTimeout(t);if((R===G||!R)&&clearTimeout)return R=clearTimeout,clearTimeout(t);try{return R(t)}catch{try{return R.call(null,t)}catch{return R.call(this,t)}}}var y=[],S=!1,I,C=-1;function dr(){!S||!I||(S=!1,I.length?y=I.concat(y):C=-1,y.length&&X())}function X(){if(!S){var t=z(dr);S=!0;for(var r=y.length;r;){for(I=y,y=[];++C<r;)I&&I[C].run();C=-1,r=y.length}I=null,S=!1,br(t)}}function xr(t){var r=new Array(arguments.length-1);if(arguments.length>1)for(var e=1;e<arguments.length;e++)r[e-1]=arguments[e];y.push(new J(t,r)),y.length===1&&!S&&z(X)}function J(t,r){this.fun=t,this.array=r}J.prototype.run=function(){this.fun.apply(null,this.array)};var Er="browser",_r="browser",Tr=!0,yr={},wr=[],Ar="",Rr={},Ir={},vr={};function v(){}var kr=v,Nr=v,Pr=v,Sr=v,Cr=v,Br=v,Dr=v;function Or(t){throw new Error("process.binding is not supported")}function Mr(){return"/"}function Ur(t){throw new Error("process.chdir is not supported")}function Lr(){return 0}var P=globalThis.performance||{},Yr=P.now||P.mozNow||P.msNow||P.oNow||P.webkitNow||function(){return new Date().getTime()};function Fr(t){var r=Yr.call(P)*.001,e=Math.floor(r),n=Math.floor(r%1*1e9);return t&&(e=e-t[0],n=n-t[1],n<0&&(e--,n+=1e9)),[e,n]}var Wr=new Date;function Vr(){var t=new Date,r=t-Wr;return r/1e3}var h={nextTick:xr,title:Er,browser:Tr,env:yr,argv:wr,version:Ar,versions:Rr,on:kr,addListener:Nr,once:Pr,off:Sr,removeListener:Cr,removeAllListeners:Br,emit:Dr,binding:Or,cwd:Mr,chdir:Ur,umask:Lr,hrtime:Fr,platform:_r,release:Ir,config:vr,uptime:Vr},H={};Object.keys(H).forEach(t=>{let r=t.split("."),e=h;for(let n=0;n<r.length;n++){let i=r[n];n===r.length-1?e[i]=H[t]:e=e[i]||(e[i]={})}});var _=[],x=[],Hr=typeof Uint8Array<"u"?Uint8Array:Array,F=!1;function Q(){F=!0;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=0,e=t.length;r<e;++r)_[r]=t[r],x[t.charCodeAt(r)]=r;x[45]=62,x[95]=63}function Kr(t){F||Q();var r,e,n,i,a,o,s=t.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");a=t[s-2]==="="?2:t[s-1]==="="?1:0,o=new Hr(s*3/4-a),n=a>0?s-4:s;var c=0;for(r=0,e=0;r<n;r+=4,e+=3)i=x[t.charCodeAt(r)]<<18|x[t.charCodeAt(r+1)]<<12|x[t.charCodeAt(r+2)]<<6|x[t.charCodeAt(r+3)],o[c++]=i>>16&255,o[c++]=i>>8&255,o[c++]=i&255;return a===2?(i=x[t.charCodeAt(r)]<<2|x[t.charCodeAt(r+1)]>>4,o[c++]=i&255):a===1&&(i=x[t.charCodeAt(r)]<<10|x[t.charCodeAt(r+1)]<<4|x[t.charCodeAt(r+2)]>>2,o[c++]=i>>8&255,o[c++]=i&255),o}function Gr(t){return _[t>>18&63]+_[t>>12&63]+_[t>>6&63]+_[t&63]}function zr(t,r,e){for(var n,i=[],a=r;a<e;a+=3)n=(t[a]<<16)+(t[a+1]<<8)+t[a+2],i.push(Gr(n));return i.join("")}function q(t){F||Q();for(var r,e=t.length,n=e%3,i="",a=[],o=16383,s=0,c=e-n;s<c;s+=o)a.push(zr(t,s,s+o>c?c:s+o));return n===1?(r=t[e-1],i+=_[r>>2],i+=_[r<<4&63],i+="=="):n===2&&(r=(t[e-2]<<8)+t[e-1],i+=_[r>>10],i+=_[r>>4&63],i+=_[r<<2&63],i+="="),a.push(i),a.join("")}u.TYPED_ARRAY_SUPPORT=globalThis.TYPED_ARRAY_SUPPORT!==void 0?globalThis.TYPED_ARRAY_SUPPORT:!0;function B(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function w(t,r){if(B()<r)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(r),t.__proto__=u.prototype):(t===null&&(t=new u(r)),t.length=r),t}function u(t,r,e){if(!u.TYPED_ARRAY_SUPPORT&&!(this instanceof u))return new u(t,r,e);if(typeof t=="number"){if(typeof r=="string")throw new Error("If encoding is specified then the first argument must be a string");return W(this,t)}return j(this,t,r,e)}u.poolSize=8192;u._augment=function(t){return t.__proto__=u.prototype,t};function j(t,r,e,n){if(typeof r=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&r instanceof ArrayBuffer?qr(t,r,e,n):typeof r=="string"?Jr(t,r,e):$r(t,r)}u.from=function(t,r,e){return j(null,t,r,e)};u.kMaxLength=B();u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&u[Symbol.species]);function rr(t){if(typeof t!="number")throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function Xr(t,r,e,n){return rr(r),r<=0?w(t,r):e!==void 0?typeof n=="string"?w(t,r).fill(e,n):w(t,r).fill(e):w(t,r)}u.alloc=function(t,r,e){return Xr(null,t,r,e)};function W(t,r){if(rr(r),t=w(t,r<0?0:V(r)|0),!u.TYPED_ARRAY_SUPPORT)for(var e=0;e<r;++e)t[e]=0;return t}u.allocUnsafe=function(t){return W(null,t)};u.allocUnsafeSlow=function(t){return W(null,t)};function Jr(t,r,e){if((typeof e!="string"||e==="")&&(e="utf8"),!u.isEncoding(e))throw new TypeError('"encoding" must be a valid string encoding');var n=er(r,e)|0;t=w(t,n);var i=t.write(r,e);return i!==n&&(t=t.slice(0,i)),t}function Y(t,r){var e=r.length<0?0:V(r.length)|0;t=w(t,e);for(var n=0;n<e;n+=1)t[n]=r[n]&255;return t}function qr(t,r,e,n){if(r.byteLength,e<0||r.byteLength<e)throw new RangeError("'offset' is out of bounds");if(r.byteLength<e+(n||0))throw new RangeError("'length' is out of bounds");return e===void 0&&n===void 0?r=new Uint8Array(r):n===void 0?r=new Uint8Array(r,e):r=new Uint8Array(r,e,n),u.TYPED_ARRAY_SUPPORT?(t=r,t.__proto__=u.prototype):t=Y(t,r),t}function $r(t,r){if(T(r)){var e=V(r.length)|0;return t=w(t,e),t.length===0||r.copy(t,0,0,e),t}if(r){if(typeof ArrayBuffer<"u"&&r.buffer instanceof ArrayBuffer||"length"in r)return typeof r.length!="number"||he(r.length)?w(t,0):Y(t,r);if(r.type==="Buffer"&&Array.isArray(r.data))return Y(t,r.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function V(t){if(t>=B())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+B().toString(16)+" bytes");return t|0}u.isBuffer=be;function T(t){return!!(t!=null&&t._isBuffer)}u.compare=function(r,e){if(!T(r)||!T(e))throw new TypeError("Arguments must be Buffers");if(r===e)return 0;for(var n=r.length,i=e.length,a=0,o=Math.min(n,i);a<o;++a)if(r[a]!==e[a]){n=r[a],i=e[a];break}return n<i?-1:i<n?1:0};u.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};u.concat=function(r,e){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return u.alloc(0);var n;if(e===void 0)for(e=0,n=0;n<r.length;++n)e+=r[n].length;var i=u.allocUnsafe(e),a=0;for(n=0;n<r.length;++n){var o=r[n];if(!T(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(i,a),a+=o.length}return i};function er(t,r){if(T(t))return t.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;typeof t!="string"&&(t=""+t);var e=t.length;if(e===0)return 0;for(var n=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":case void 0:return D(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e*2;case"hex":return e>>>1;case"base64":return sr(t).length;default:if(n)return D(t).length;r=(""+r).toLowerCase(),n=!0}}u.byteLength=er;function Zr(t,r,e){var n=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((e===void 0||e>this.length)&&(e=this.length),e<=0)||(e>>>=0,r>>>=0,e<=r))return"";for(t||(t="utf8");;)switch(t){case"hex":return ue(this,r,e);case"utf8":case"utf-8":return ir(this,r,e);case"ascii":return ae(this,r,e);case"latin1":case"binary":return oe(this,r,e);case"base64":return ne(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return se(this,r,e);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}u.prototype._isBuffer=!0;function k(t,r,e){var n=t[r];t[r]=t[e],t[e]=n}u.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<r;e+=2)k(this,e,e+1);return this};u.prototype.swap32=function(){var r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<r;e+=4)k(this,e,e+3),k(this,e+1,e+2);return this};u.prototype.swap64=function(){var r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<r;e+=8)k(this,e,e+7),k(this,e+1,e+6),k(this,e+2,e+5),k(this,e+3,e+4);return this};u.prototype.toString=function(){var r=this.length|0;return r===0?"":arguments.length===0?ir(this,0,r):Zr.apply(this,arguments)};u.prototype.equals=function(r){if(!T(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:u.compare(this,r)===0};u.prototype.compare=function(r,e,n,i,a){if(!T(r))throw new TypeError("Argument must be a Buffer");if(e===void 0&&(e=0),n===void 0&&(n=r?r.length:0),i===void 0&&(i=0),a===void 0&&(a=this.length),e<0||n>r.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&e>=n)return 0;if(i>=a)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,i>>>=0,a>>>=0,this===r)return 0;for(var o=a-i,s=n-e,c=Math.min(o,s),f=this.slice(i,a),m=r.slice(e,n),p=0;p<c;++p)if(f[p]!==m[p]){o=f[p],s=m[p];break}return o<s?-1:s<o?1:0};function tr(t,r,e,n,i){if(t.length===0)return-1;if(typeof e=="string"?(n=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,isNaN(e)&&(e=i?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(i)return-1;e=t.length-1}else if(e<0)if(i)e=0;else return-1;if(typeof r=="string"&&(r=u.from(r,n)),T(r))return r.length===0?-1:$(t,r,e,n,i);if(typeof r=="number")return r=r&255,u.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(t,r,e):Uint8Array.prototype.lastIndexOf.call(t,r,e):$(t,[r],e,n,i);throw new TypeError("val must be string, number or Buffer")}function $(t,r,e,n,i){var a=1,o=t.length,s=r.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||r.length<2)return-1;a=2,o/=2,s/=2,e/=2}function c(d,N){return a===1?d[N]:d.readUInt16BE(N*a)}var f;if(i){var m=-1;for(f=e;f<o;f++)if(c(t,f)===c(r,m===-1?0:f-m)){if(m===-1&&(m=f),f-m+1===s)return m*a}else m!==-1&&(f-=f-m),m=-1}else for(e+s>o&&(e=o-s),f=e;f>=0;f--){for(var p=!0,E=0;E<s;E++)if(c(t,f+E)!==c(r,E)){p=!1;break}if(p)return f}return-1}u.prototype.includes=function(r,e,n){return this.indexOf(r,e,n)!==-1};u.prototype.indexOf=function(r,e,n){return tr(this,r,e,n,!0)};u.prototype.lastIndexOf=function(r,e,n){return tr(this,r,e,n,!1)};function Qr(t,r,e,n){e=Number(e)||0;var i=t.length-e;n?(n=Number(n),n>i&&(n=i)):n=i;var a=r.length;if(a%2!==0)throw new TypeError("Invalid hex string");n>a/2&&(n=a/2);for(var o=0;o<n;++o){var s=parseInt(r.substr(o*2,2),16);if(isNaN(s))return o;t[e+o]=s}return o}function jr(t,r,e,n){return U(D(r,t.length-e),t,e,n)}function nr(t,r,e,n){return U(me(r),t,e,n)}function re(t,r,e,n){return nr(t,r,e,n)}function ee(t,r,e,n){return U(sr(r),t,e,n)}function te(t,r,e,n){return U(ge(r,t.length-e),t,e,n)}u.prototype.write=function(r,e,n,i){if(e===void 0)i="utf8",n=this.length,e=0;else if(n===void 0&&typeof e=="string")i=e,n=this.length,e=0;else if(isFinite(e))e=e|0,isFinite(n)?(n=n|0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var a=this.length-e;if((n===void 0||n>a)&&(n=a),r.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return Qr(this,r,e,n);case"utf8":case"utf-8":return jr(this,r,e,n);case"ascii":return nr(this,r,e,n);case"latin1":case"binary":return re(this,r,e,n);case"base64":return ee(this,r,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return te(this,r,e,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}};u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ne(t,r,e){return r===0&&e===t.length?q(t):q(t.slice(r,e))}function ir(t,r,e){e=Math.min(t.length,e);for(var n=[],i=r;i<e;){var a=t[i],o=null,s=a>239?4:a>223?3:a>191?2:1;if(i+s<=e){var c,f,m,p;switch(s){case 1:a<128&&(o=a);break;case 2:c=t[i+1],(c&192)===128&&(p=(a&31)<<6|c&63,p>127&&(o=p));break;case 3:c=t[i+1],f=t[i+2],(c&192)===128&&(f&192)===128&&(p=(a&15)<<12|(c&63)<<6|f&63,p>2047&&(p<55296||p>57343)&&(o=p));break;case 4:c=t[i+1],f=t[i+2],m=t[i+3],(c&192)===128&&(f&192)===128&&(m&192)===128&&(p=(a&15)<<18|(c&63)<<12|(f&63)<<6|m&63,p>65535&&p<1114112&&(o=p))}}o===null?(o=65533,s=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|o&1023),n.push(o),i+=s}return ie(n)}var Z=4096;function ie(t){var r=t.length;if(r<=Z)return String.fromCharCode.apply(String,t);for(var e="",n=0;n<r;)e+=String.fromCharCode.apply(String,t.slice(n,n+=Z));return e}function ae(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(t[i]&127);return n}function oe(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(t[i]);return n}function ue(t,r,e){var n=t.length;(!r||r<0)&&(r=0),(!e||e<0||e>n)&&(e=n);for(var i="",a=r;a<e;++a)i+=fe(t[a]);return i}function se(t,r,e){for(var n=t.slice(r,e),i="",a=0;a<n.length;a+=2)i+=String.fromCharCode(n[a]+n[a+1]*256);return i}u.prototype.slice=function(r,e){var n=this.length;r=~~r,e=e===void 0?n:~~e,r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),e<r&&(e=r);var i;if(u.TYPED_ARRAY_SUPPORT)i=this.subarray(r,e),i.__proto__=u.prototype;else{var a=e-r;i=new u(a,void 0);for(var o=0;o<a;++o)i[o]=this[o+r]}return i};function g(t,r,e){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+r>e)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUIntLE=function(r,e,n){r=r|0,e=e|0,n||g(r,e,this.length);for(var i=this[r],a=1,o=0;++o<e&&(a*=256);)i+=this[r+o]*a;return i};u.prototype.readUIntBE=function(r,e,n){r=r|0,e=e|0,n||g(r,e,this.length);for(var i=this[r+--e],a=1;e>0&&(a*=256);)i+=this[r+--e]*a;return i};u.prototype.readUInt8=function(r,e){return e||g(r,1,this.length),this[r]};u.prototype.readUInt16LE=function(r,e){return e||g(r,2,this.length),this[r]|this[r+1]<<8};u.prototype.readUInt16BE=function(r,e){return e||g(r,2,this.length),this[r]<<8|this[r+1]};u.prototype.readUInt32LE=function(r,e){return e||g(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};u.prototype.readUInt32BE=function(r,e){return e||g(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};u.prototype.readIntLE=function(r,e,n){r=r|0,e=e|0,n||g(r,e,this.length);for(var i=this[r],a=1,o=0;++o<e&&(a*=256);)i+=this[r+o]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*e)),i};u.prototype.readIntBE=function(r,e,n){r=r|0,e=e|0,n||g(r,e,this.length);for(var i=e,a=1,o=this[r+--i];i>0&&(a*=256);)o+=this[r+--i]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*e)),o};u.prototype.readInt8=function(r,e){return e||g(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};u.prototype.readInt16LE=function(r,e){e||g(r,2,this.length);var n=this[r]|this[r+1]<<8;return n&32768?n|4294901760:n};u.prototype.readInt16BE=function(r,e){e||g(r,2,this.length);var n=this[r+1]|this[r]<<8;return n&32768?n|4294901760:n};u.prototype.readInt32LE=function(r,e){return e||g(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};u.prototype.readInt32BE=function(r,e){return e||g(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};u.prototype.readFloatLE=function(r,e){return e||g(r,4,this.length),L(this,r,!0,23,4)};u.prototype.readFloatBE=function(r,e){return e||g(r,4,this.length),L(this,r,!1,23,4)};u.prototype.readDoubleLE=function(r,e){return e||g(r,8,this.length),L(this,r,!0,52,8)};u.prototype.readDoubleBE=function(r,e){return e||g(r,8,this.length),L(this,r,!1,52,8)};function b(t,r,e,n,i,a){if(!T(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<a)throw new RangeError('"value" argument is out of bounds');if(e+n>t.length)throw new RangeError("Index out of range")}u.prototype.writeUIntLE=function(r,e,n,i){if(r=+r,e=e|0,n=n|0,!i){var a=Math.pow(2,8*n)-1;b(this,r,e,n,a,0)}var o=1,s=0;for(this[e]=r&255;++s<n&&(o*=256);)this[e+s]=r/o&255;return e+n};u.prototype.writeUIntBE=function(r,e,n,i){if(r=+r,e=e|0,n=n|0,!i){var a=Math.pow(2,8*n)-1;b(this,r,e,n,a,0)}var o=n-1,s=1;for(this[e+o]=r&255;--o>=0&&(s*=256);)this[e+o]=r/s&255;return e+n};u.prototype.writeUInt8=function(r,e,n){return r=+r,e=e|0,n||b(this,r,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(r=Math.floor(r)),this[e]=r&255,e+1};function O(t,r,e,n){r<0&&(r=65535+r+1);for(var i=0,a=Math.min(t.length-e,2);i<a;++i)t[e+i]=(r&255<<8*(n?i:1-i))>>>(n?i:1-i)*8}u.prototype.writeUInt16LE=function(r,e,n){return r=+r,e=e|0,n||b(this,r,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=r&255,this[e+1]=r>>>8):O(this,r,e,!0),e+2};u.prototype.writeUInt16BE=function(r,e,n){return r=+r,e=e|0,n||b(this,r,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=r>>>8,this[e+1]=r&255):O(this,r,e,!1),e+2};function M(t,r,e,n){r<0&&(r=4294967295+r+1);for(var i=0,a=Math.min(t.length-e,4);i<a;++i)t[e+i]=r>>>(n?i:3-i)*8&255}u.prototype.writeUInt32LE=function(r,e,n){return r=+r,e=e|0,n||b(this,r,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=r>>>24,this[e+2]=r>>>16,this[e+1]=r>>>8,this[e]=r&255):M(this,r,e,!0),e+4};u.prototype.writeUInt32BE=function(r,e,n){return r=+r,e=e|0,n||b(this,r,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255):M(this,r,e,!1),e+4};u.prototype.writeIntLE=function(r,e,n,i){if(r=+r,e=e|0,!i){var a=Math.pow(2,8*n-1);b(this,r,e,n,a-1,-a)}var o=0,s=1,c=0;for(this[e]=r&255;++o<n&&(s*=256);)r<0&&c===0&&this[e+o-1]!==0&&(c=1),this[e+o]=(r/s>>0)-c&255;return e+n};u.prototype.writeIntBE=function(r,e,n,i){if(r=+r,e=e|0,!i){var a=Math.pow(2,8*n-1);b(this,r,e,n,a-1,-a)}var o=n-1,s=1,c=0;for(this[e+o]=r&255;--o>=0&&(s*=256);)r<0&&c===0&&this[e+o+1]!==0&&(c=1),this[e+o]=(r/s>>0)-c&255;return e+n};u.prototype.writeInt8=function(r,e,n){return r=+r,e=e|0,n||b(this,r,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(r=Math.floor(r)),r<0&&(r=255+r+1),this[e]=r&255,e+1};u.prototype.writeInt16LE=function(r,e,n){return r=+r,e=e|0,n||b(this,r,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=r&255,this[e+1]=r>>>8):O(this,r,e,!0),e+2};u.prototype.writeInt16BE=function(r,e,n){return r=+r,e=e|0,n||b(this,r,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=r>>>8,this[e+1]=r&255):O(this,r,e,!1),e+2};u.prototype.writeInt32LE=function(r,e,n){return r=+r,e=e|0,n||b(this,r,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=r&255,this[e+1]=r>>>8,this[e+2]=r>>>16,this[e+3]=r>>>24):M(this,r,e,!0),e+4};u.prototype.writeInt32BE=function(r,e,n){return r=+r,e=e|0,n||b(this,r,e,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),u.TYPED_ARRAY_SUPPORT?(this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255):M(this,r,e,!1),e+4};function ar(t,r,e,n,i,a){if(e+n>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function or(t,r,e,n,i){return i||ar(t,r,e,4,34028234663852886e22,-34028234663852886e22),cr(t,r,e,n,23,4),e+4}u.prototype.writeFloatLE=function(r,e,n){return or(this,r,e,!0,n)};u.prototype.writeFloatBE=function(r,e,n){return or(this,r,e,!1,n)};function ur(t,r,e,n,i){return i||ar(t,r,e,8,17976931348623157e292,-17976931348623157e292),cr(t,r,e,n,52,8),e+8}u.prototype.writeDoubleLE=function(r,e,n){return ur(this,r,e,!0,n)};u.prototype.writeDoubleBE=function(r,e,n){return ur(this,r,e,!1,n)};u.prototype.copy=function(r,e,n,i){if(n||(n=0),!i&&i!==0&&(i=this.length),e>=r.length&&(e=r.length),e||(e=0),i>0&&i<n&&(i=n),i===n||r.length===0||this.length===0)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),r.length-e<i-n&&(i=r.length-e+n);var a=i-n,o;if(this===r&&n<e&&e<i)for(o=a-1;o>=0;--o)r[o+e]=this[o+n];else if(a<1e3||!u.TYPED_ARRAY_SUPPORT)for(o=0;o<a;++o)r[o+e]=this[o+n];else Uint8Array.prototype.set.call(r,this.subarray(n,n+a),e);return a};u.prototype.fill=function(r,e,n,i){if(typeof r=="string"){if(typeof e=="string"?(i=e,e=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),r.length===1){var a=r.charCodeAt(0);a<256&&(r=a)}if(i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!u.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else typeof r=="number"&&(r=r&255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;e=e>>>0,n=n===void 0?this.length:n>>>0,r||(r=0);var o;if(typeof r=="number")for(o=e;o<n;++o)this[o]=r;else{var s=T(r)?r:D(new u(r,i).toString()),c=s.length;for(o=0;o<n-e;++o)this[o+e]=s[o%c]}return this};var le=/[^+\/0-9A-Za-z-_]/g;function ce(t){if(t=pe(t).replace(le,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function pe(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function fe(t){return t<16?"0"+t.toString(16):t.toString(16)}function D(t,r){r=r||1/0;for(var e,n=t.length,i=null,a=[],o=0;o<n;++o){if(e=t.charCodeAt(o),e>55295&&e<57344){if(!i){if(e>56319){(r-=3)>-1&&a.push(239,191,189);continue}else if(o+1===n){(r-=3)>-1&&a.push(239,191,189);continue}i=e;continue}if(e<56320){(r-=3)>-1&&a.push(239,191,189),i=e;continue}e=(i-55296<<10|e-56320)+65536}else i&&(r-=3)>-1&&a.push(239,191,189);if(i=null,e<128){if((r-=1)<0)break;a.push(e)}else if(e<2048){if((r-=2)<0)break;a.push(e>>6|192,e&63|128)}else if(e<65536){if((r-=3)<0)break;a.push(e>>12|224,e>>6&63|128,e&63|128)}else if(e<1114112){if((r-=4)<0)break;a.push(e>>18|240,e>>12&63|128,e>>6&63|128,e&63|128)}else throw new Error("Invalid code point")}return a}function me(t){for(var r=[],e=0;e<t.length;++e)r.push(t.charCodeAt(e)&255);return r}function ge(t,r){for(var e,n,i,a=[],o=0;o<t.length&&!((r-=2)<0);++o)e=t.charCodeAt(o),n=e>>8,i=e%256,a.push(i),a.push(n);return a}function sr(t){return Kr(ce(t))}function U(t,r,e,n){for(var i=0;i<n&&!(i+e>=r.length||i>=t.length);++i)r[i+e]=t[i];return i}function he(t){return t!==t}function be(t){return t!=null&&(!!t._isBuffer||lr(t)||de(t))}function lr(t){return!!t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function de(t){return typeof t.readFloatLE=="function"&&typeof t.slice=="function"&&lr(t.slice(0,0))}function L(t,r,e,n,i){var a,o,s=i*8-n-1,c=(1<<s)-1,f=c>>1,m=-7,p=e?i-1:0,E=e?-1:1,d=t[r+p];for(p+=E,a=d&(1<<-m)-1,d>>=-m,m+=s;m>0;a=a*256+t[r+p],p+=E,m-=8);for(o=a&(1<<-m)-1,a>>=-m,m+=n;m>0;o=o*256+t[r+p],p+=E,m-=8);if(a===0)a=1-f;else{if(a===c)return o?NaN:(d?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-f}return(d?-1:1)*o*Math.pow(2,a-n)}function cr(t,r,e,n,i,a){var o,s,c,f=a*8-i-1,m=(1<<f)-1,p=m>>1,E=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:a-1,N=n?1:-1,hr=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(s=isNaN(r)?1:0,o=m):(o=Math.floor(Math.log(r)/Math.LN2),r*(c=Math.pow(2,-o))<1&&(o--,c*=2),o+p>=1?r+=E/c:r+=E*Math.pow(2,1-p),r*c>=2&&(o++,c/=2),o+p>=m?(s=0,o=m):o+p>=1?(s=(r*c-1)*Math.pow(2,i),o=o+p):(s=r*Math.pow(2,p-1)*Math.pow(2,i),o=0));i>=8;t[e+d]=s&255,d+=N,s/=256,i-=8);for(o=o<<i|s,f+=i;f>0;t[e+d]=o&255,d+=N,o/=256,f-=8);t[e+d-N]|=hr*128}var xe=(l=>(l.ENABLED="company.enabled",l.APP_TITLE="company.appTitle",l.DOMAIN="company.domain",l.LOGO="appearance.logo",l.AMM="product.amm",l.OBDEX="product.obdex",l.THEMES="appearance.themes",l.DIRECT_SETTLE="company.directSettlement",l.AMM_FEE="company.ammFee",l.FEE_SHARE="company.feeShare",l.MIN_FEE="company.minFee",l.MAKER_FEE="company.makerFee",l.TAKER_FEE="company.takerFee",l.GEOBLOCK="company.geoblock",l.EMBEDDED_APP_URL="company.embeddedAppUrl",l.PRODUCT_OBDEX="product.obdex",l.PRODUCT_AMM="product.amm",l.NEW_TAB="appearance.newTab",l.APPEARANCE_TARGET="appearance.target",l.CUSTOM_MENU_ITEMS="appearance.customMenuItems",l.REPORT_BUTTONS="appearance.reportButtons",l.APPEARANCE_CHART_TYPE="appearance.chartType",l.APPEARANCE_CHART_INT="appearance.chartInt",l.PINNED_PAIRS="markets.pinnedPairs",l.KYC_TRADE_REQUIREMENT_ENABLED="markets.kycTradeRequirementEnabled",l.AFFILIATE_DASHBOARD_VISIBILITY="product.affiliateDashboardVisibility",l.AFFILIATE_DASHBOARD_THRESHOLD="product.affiliateDashboardThreshold",l.AFFILIATE_DEFAULT_FEE_SHARE="product.affiliateDefaultFeeShare",l.AFFILIATE_POINTS_REWARD="product.affiliatePointsReward",l.POINT_SYSTEM_MODE="product.pointSystem",l.POINT_SYSTEM_TELEGRAM_API_TOKEN="point-system.telegramApiToken",l.POINT_SYSTEM_TELEGRAM_ENABLED="point-system.telegramEnabled",l.POINT_SYSTEM_TELEGRAM_GROUP_ID="point-system.telegramGroupId",l.POINT_SYSTEM_TELEGRAM_BOT_NAME="point-system.telegramBotName",l.POINT_SYSTEM_TELEGRAM_BOT_ID="point-system.telegramBotId",l.POINT_SYSTEM_TELEGRAM_GROUP_NAME="point-system.telegramGroupName",l.POINT_SYSTEM_TELEGRAM_WEBHOOK_TOKEN="point-system.telegramWebhookToken",l.POINT_SYSTEM_DISCORD_CLIENT_ID="point-system.discordClientId",l.POINT_SYSTEM_DISCORD_CLIENT_SECRET="point-system.discordClientSecret",l.POINT_SYSTEM_DISCORD_SERVER_ID="point-system.discordServerId",l.POINT_SYSTEM_DISCORD_ENABLED="point-system.discordEnabled",l.POINT_SYSTEM_TWITTER_CLIENT_ID="point-system.twitterClientId",l.POINT_SYSTEM_TWITTER_CLIENT_SECRET="point-system.twitterClientSecret",l.POINT_SYSTEM_TWITTER_BEARER_TOKEN="point-system.twitterBearerToken",l.POINT_SYSTEM_TWITTER_REFRESH_TOKEN="point-system.twitterRefreshToken",l.POINT_SYSTEM_TWITTER_ENABLED="point-system.twitterEnabled",l.POINT_SYSTEM_TWITTER_JOB_ENABLED="point-system.twitterJobEnabled",l.POINT_SYSTEM_TWITTER_HASHTAGS="point-system.twitterHashtags",l.POINT_SYSTEM_TWITTER_TWEET_EXP_TIME="point-system.twitterPostDefaultExpirationTime",l.POINT_SYSTEM_TWITTER_ACCOUNT_NAME="point-system.twitterAccountName",l.POINT_SYSTEM_TWITTER_ACCOUNT_ID="point-system.twitterAccountId",l.POINT_SYSTEM_TWITTER_WEBHOOK_TOKEN="point-system.twitterWebhookToken",l.POINT_SYSTEM_GUIDE_LINK="point-system.guideLink",l))(xe||{}),Ee=(n=>(n.DISABLED="disabled",n.ENABLED_FOR_ALL="enabled for all",n.ENABLED_FOR_AFFILIATES="enabled for affiliates",n))(Ee||{}),_e=(o=>(o.API_TOKEN="apiToken",o.CLIENT_ID="clientId",o.CLIENT_SECRET="clientSecret",o.BEARER_TOKEN="bearerToken",o.REFRESH_TOKEN="refreshToken",o.ACCESS_TOKEN="accessToken",o))(_e||{}),Ve={"point-system.telegramApiToken":"apiToken","point-system.discordClientId":"clientId","point-system.discordClientSecret":"clientSecret","point-system.twitterClientSecret":"clientSecret","point-system.twitterClientId":"clientId","point-system.twitterBearerToken":"bearerToken","point-system.twitterRefreshToken":"refreshToken"},He=["primary-1","primary-2","main-background","primary-text","module-background","buy-text","buy-background","sell-text","sell-background","secondary-text","input-background-default","input-background-hover","input-background-disabled","input-border-default","module-border","button-disabled","button-border","input-border-active","active-element-default","hover-element-default","dropdown-shadow","button-text","pair-active-row"],Ke=`{"theme1":{"value":"${h.env.FRONTEND_URL}/Theme%3DDark.svg","active":true},"theme2":{"value":"${h.env.FRONTEND_URL}/Theme%3DLight.svg","active":true},"theme3":{"value":"${h.env.FRONTEND_URL}/Theme%3DLight.svg","active":true}}`,Ge='{"theme1":{"name":"dark","active":true,"value":{"primary-1":"rgba(118, 63, 229, 1)","primary-2":"rgba(249, 132, 146, 1)","main-background":"rgba(1, 1, 1, 1)","primary-text":"rgba(255, 255, 255, 1)","module-background":"rgba(19, 23, 34, 1)","buy-text":"rgba(82, 164, 154, 1)","buy-background":"rgba(2, 199, 122, 0.25)","sell-text":"rgba(221, 94, 86, 1)","sell-background":"rgba(255, 59, 105, 0.25)","secondary-text":"rgba(127, 127, 127, 1)","input-background-default":"rgba(13, 15, 21, 1)","input-background-hover":"rgba(28, 33, 45, 1)","input-background-disabled":"rgba(25, 29, 41, 1)","input-border-default":"rgba(28, 33, 45, 1)","module-border":"rgba(28, 33, 45, 1)","button-disabled":"rgba(111, 113, 118, 1)","button-border":"rgba(255, 255, 255, 1)","input-border-active":"rgba(185, 163, 238, 1)","active-element-default":"rgba(230, 136, 150, 1)","hover-element-default":"rgba(185, 163, 238, 1)","dropdown-shadow":"rgba(154, 92, 253, 0.45)","button-text":"rgba(255, 255, 255, 1)","pair-active-row":"rgba(28, 33, 45, 1)"}},"theme2":{"name":"light","active":true,"value":{"primary-1":"rgba(118, 63, 229, 1)","primary-2":"rgba(249, 132, 146, 1)","main-background":"rgba(249, 248, 248, 1)","primary-text":"rgba(0, 0, 0, 1)","module-background":"rgba(255, 255, 255, 1)","buy-text":"rgba(0, 112, 98, 1)","buy-background":"rgba(0, 112, 98, 0.25)","sell-text":"rgba(195, 12, 1, 1)","sell-background":"rgba(255, 59, 105, 0.25)","secondary-text":"rgba(127, 127, 127, 1)","button-disabled":"rgba(203, 199, 199, 1)","input-background-default":"rgba(255, 255, 255, 1)","input-background-hover":"rgba(249, 248, 248, 1)","input-background-disabled":"rgba(249, 248, 248, 1)","input-border-default":"rgba(228, 225, 225, 1)","module-border":"rgba(228, 225, 225, 1)","button-border":"rgba(170, 167, 167, 1)","input-border-active":"rgba(0, 0, 0, 1)","active-element-default":"rgba(230, 136, 150, 1)","hover-element-default":"rgba(185, 163, 238, 1)","dropdown-shadow":"rgba(154, 92, 253, 0.45)","button-text":"rgba(255, 255, 255, 1)","pair-active-row":"rgb(249, 248, 248)"}},"theme3":{"name":"purple","active":true,"value":{"primary-1":"rgba(118, 63, 229, 1)","primary-2":"rgba(249, 132, 146, 1)","main-background":"rgba(255, 255, 255, 1)","primary-text":"rgba(0, 0, 0, 1)","secondary-text":"rgba(127, 127, 127, 1)","buy-text":"rgba(0, 112, 98, 1)","sell-text":"rgba(195, 12, 1, 1)","buy-background":"rgba(0, 112, 98, 0.25)","sell-background":"rgba(255, 59, 105, 0.25)","module-background":"rgba(254, 250, 255, 1)","module-border":"rgba(228, 225, 225, 1)","input-background-default":"rgba(255, 255, 255, 1)","input-background-hover":"rgba(249, 248, 248, 1)","input-background-disabled":"rgba(254, 250, 255, 1)","input-border-default":"rgba(228, 225, 225, 1)","input-border-active":"rgba(0, 0, 0, 1)","button-border":"rgba(170, 167, 167, 1)","button-disabled":"rgba(203, 199, 199, 1)","active-element-default":"rgba(230, 136, 150, 1)","hover-element-default":"rgba(185, 163, 238, 1)","dropdown-shadow":"rgba(154, 92, 253, 0.45)","button-text":"rgba(255, 255, 255, 1)","pair-active-row":"rgb(249, 248, 248)"}}}',Te=(n=>(n.theme1='{"name":"dark","id":"theme1","active":true, "chartColors":{"bullish_candle_color": "rgba(2, 199, 122, 0.25)","bearish_candle_color": "rgba(221, 94, 86, 1)","bullish_wick_color": "rgba(2, 199, 122, 0.25)","bearish_wick_color": "rgba(221, 94, 86, 1)","bullish_outline_color": "rgba(2, 199, 122, 0.25)","bearish_outline_color": "rgba(221, 94, 86, 1)","line_color": "rgba(41, 98, 255, 1)","chart_background": "rgba(19, 23, 34, 1)","chart_text": "rgba(127, 127, 127, 1)"}, "colors":{"primary-1":"rgba(118, 63, 229, 1)","primary-2":"rgba(249, 132, 146, 1)","main-background":"rgba(1, 1, 1, 1)","primary-text":"rgba(255, 255, 255, 1)","module-background":"rgba(19, 23, 34, 1)","buy-text":"rgba(82, 164, 154, 1)","buy-background":"rgba(2, 199, 122, 0.25)","sell-text":"rgba(221, 94, 86, 1)","sell-background":"rgba(255, 59, 105, 0.25)","secondary-text":"rgba(127, 127, 127, 1)","input-background-default":"rgba(13, 15, 21, 1)","input-background-hover":"rgba(28, 33, 45, 1)","input-background-disabled":"rgba(25, 29, 41, 1)","input-border-default":"rgba(28, 33, 45, 1)","module-border":"rgba(28, 33, 45, 1)","button-disabled":"rgba(111, 113, 118, 1)","button-border":"rgba(255, 255, 255, 1)","input-border-active":"rgba(185, 163, 238, 1)","active-element-default":"rgba(230, 136, 150, 1)","hover-element-default":"rgba(185, 163, 238, 1)","dropdown-shadow":"rgba(154, 92, 253, 0.45)","button-text":"rgba(255, 255, 255, 1)","pair-active-row":"rgba(28, 33, 45, 1)"}}',n.theme2='{"name":"light","id":"theme2","active":true, "chartColors":{"bullish_candle_color": "rgba(0, 112, 98, 1)","bearish_candle_color": "rgba(195, 12, 1, 1)","bullish_wick_color": "rgba(0, 112, 98, 1)","bearish_wick_color": "rgba(195, 12, 1, 1)","bullish_outline_color": "rgba(0, 112, 98, 1)","bearish_outline_color": "rgba(195, 12, 1, 1)","line_color": "rgba(41, 98, 255, 1)","chart_background": "rgba(255, 255, 255, 1)","chart_text": "rgba(127, 127, 127, 1)"}, "colors":{"primary-1":"rgba(118, 63, 229, 1)","primary-2":"rgba(249, 132, 146, 1)","main-background":"rgba(249, 248, 248, 1)","primary-text":"rgba(0, 0, 0, 1)","module-background":"rgba(255, 255, 255, 1)","buy-text":"rgba(0, 112, 98, 1)","buy-background":"rgba(0, 112, 98, 0.25)","sell-text":"rgba(195, 12, 1, 1)","sell-background":"rgba(255, 59, 105, 0.25)","secondary-text":"rgba(127, 127, 127, 1)","button-disabled":"rgba(203, 199, 199, 1)","input-background-default":"rgba(255, 255, 255, 1)","input-background-hover":"rgba(249, 248, 248, 1)","input-background-disabled":"rgba(249, 248, 248, 1)","input-border-default":"rgba(228, 225, 225, 1)","module-border":"rgba(228, 225, 225, 1)","button-border":"rgba(170, 167, 167, 1)","input-border-active":"rgba(0, 0, 0, 1)","active-element-default":"rgba(230, 136, 150, 1)","hover-element-default":"rgba(185, 163, 238, 1)","dropdown-shadow":"rgba(154, 92, 253, 0.45)","button-text":"rgba(255, 255, 255, 1)","pair-active-row":"rgb(249, 248, 248)"}}',n.theme3='{"name":"purple","id":"theme3","active":true, "chartColors":{"bullish_candle_color": "rgba(0, 112, 98, 1)","bearish_candle_color": "rgba(195, 12, 1, 1)","bullish_wick_color": "rgba(0, 112, 98, 1)","bearish_wick_color": "rgba(195, 12, 1, 1)","bullish_outline_color": "rgba(0, 112, 98, 1)","bearish_outline_color": "rgba(195, 12, 1, 1)","line_color": "rgba(41, 98, 255, 1)","chart_background": "rgba(254, 250, 255, 1)","chart_text": "rgba(127, 127, 127, 1)"}, "colors":{"primary-1":"rgba(118, 63, 229, 1)","primary-2":"rgba(249, 132, 146, 1)","main-background":"rgba(255, 255, 255, 1)","primary-text":"rgba(0, 0, 0, 1)","secondary-text":"rgba(127, 127, 127, 1)","buy-text":"rgba(0, 112, 98, 1)","sell-text":"rgba(195, 12, 1, 1)","buy-background":"rgba(0, 112, 98, 0.25)","sell-background":"rgba(255, 59, 105, 0.25)","module-background":"rgba(254, 250, 255, 1)","module-border":"rgba(228, 225, 225, 1)","input-background-default":"rgba(255, 255, 255, 1)","input-background-hover":"rgba(249, 248, 248, 1)","input-background-disabled":"rgba(254, 250, 255, 1)","input-border-default":"rgba(228, 225, 225, 1)","input-border-active":"rgba(0, 0, 0, 1)","button-border":"rgba(170, 167, 167, 1)","button-disabled":"rgba(203, 199, 199, 1)","active-element-default":"rgba(230, 136, 150, 1)","hover-element-default":"rgba(185, 163, 238, 1)","dropdown-shadow":"rgba(154, 92, 253, 0.45)","button-text":"rgba(255, 255, 255, 1)","pair-active-row":"rgb(249, 248, 248)"}}',n))(Te||{});var ye=(a=>(a.STABLE="stable",a.CPMM="constant_product",a.LEND="lending",a.NANO="nano",a.MVNANO="mvnano",a))(ye||{}),we=(a=>(a[a.ultrade=0]="ultrade",a[a.tinyman=1]="tinyman",a[a.pactfi=2]="pactfi",a[a.humble=3]="humble",a[a.algofi=4]="algofi",a))(we||{}),Ae=(a=>(a.ultrade="U",a.tinyman="T",a.pactfi="P",a.humble="H",a.algofi="A",a))(Ae||{}),Re=(a=>(a[a.ultrade=1]="ultrade",a[a.tinyman=2]="tinyman",a[a.pactfi=1]="pactfi",a[a.humble=1]="humble",a[a.algofi=2]="algofi",a))(Re||{}),pr={V1_1:"v1_1",V2:"v2"},qe={[pr.V1_1]:{testnet:62368684,mainnet:552635992},[pr.V2]:{testnet:148607e3,mainnet:1002541853}},Ie=(e=>(e.ASSETS="assets.json",e.TOP_ASSETS="topAssets.json",e))(Ie||{});var ve=(i=>(i.last_7_days="last_7_days",i.last_30_days="last_30_days",i.last_90_days="last_90_days",i.last_year="last_year",i))(ve||{}),fr=class{constructor(){this.timeRange="last_30_days";this.sortBy="volume_usd";this.order="desc";this.limit=20;this.page=1}},mr=class{constructor(){this.timeRange="last_30_days";this.sortBy="volume_usd";this.order="desc";this.limit=20;this.page=1}},ke=(i=>(i.volume="volume",i.fees="fees",i.orders="orders",i.dau="dau",i))(ke||{}),gr=class{constructor(){this.type="volume";this.timeRange="last_7_days"}};var Ne=(a=>(a.PREPARING="provisioning",a.STOPPING="stopping",a.RUNNING="running",a.STOPPED="stopped",a.FAILED="failed",a))(Ne||{});export{Ee as AffDashboardVisibilitySettingEnum,Ie as AmmBucketKeys,Ae as AmmChars,Re as AmmForeignResources,we as AmmIds,pr as CONTRACT_VERSION,gr as ChartQueryDto,_e as CredentialNameEnum,Ne as HummingbotInstanceStatus,fr as PairsQueryDto,ye as PoolType,xe as SettingIds,ve as SmallTimeframeEnum,ke as StatisticTypeQuery,mr as UsersQueryDto,qe as VALIDATOR_APP_ID,Ke as defaultLogoSettingValue,Ge as defaultThemeSettingValue,Te as defaultThemesValue,He as requiredColors,Ve as settingIdToSecretType};
|
|
1
|
+
function K(){throw new Error("setTimeout has not been defined")}function G(){throw new Error("clearTimeout has not been defined")}var A=K,R=G;typeof globalThis.setTimeout=="function"&&(A=setTimeout);typeof globalThis.clearTimeout=="function"&&(R=clearTimeout);function z(t){if(A===setTimeout)return setTimeout(t,0);if((A===K||!A)&&setTimeout)return A=setTimeout,setTimeout(t,0);try{return A(t,0)}catch{try{return A.call(null,t,0)}catch{return A.call(this,t,0)}}}function br(t){if(R===clearTimeout)return clearTimeout(t);if((R===G||!R)&&clearTimeout)return R=clearTimeout,clearTimeout(t);try{return R(t)}catch{try{return R.call(null,t)}catch{return R.call(this,t)}}}var y=[],P=!1,I,C=-1;function dr(){!P||!I||(P=!1,I.length?y=I.concat(y):C=-1,y.length&&X())}function X(){if(!P){var t=z(dr);P=!0;for(var r=y.length;r;){for(I=y,y=[];++C<r;)I&&I[C].run();C=-1,r=y.length}I=null,P=!1,br(t)}}function xr(t){var r=new Array(arguments.length-1);if(arguments.length>1)for(var e=1;e<arguments.length;e++)r[e-1]=arguments[e];y.push(new J(t,r)),y.length===1&&!P&&z(X)}function J(t,r){this.fun=t,this.array=r}J.prototype.run=function(){this.fun.apply(null,this.array)};var Er="browser",_r="browser",Tr=!0,yr={},wr=[],Ar="",Rr={},Ir={},vr={};function v(){}var kr=v,Nr=v,Sr=v,Pr=v,Cr=v,Br=v,Dr=v;function Or(t){throw new Error("process.binding is not supported")}function Mr(){return"/"}function Ur(t){throw new Error("process.chdir is not supported")}function Lr(){return 0}var S=globalThis.performance||{},Yr=S.now||S.mozNow||S.msNow||S.oNow||S.webkitNow||function(){return new Date().getTime()};function Fr(t){var r=Yr.call(S)*.001,e=Math.floor(r),n=Math.floor(r%1*1e9);return t&&(e=e-t[0],n=n-t[1],n<0&&(e--,n+=1e9)),[e,n]}var Wr=new Date;function Vr(){var t=new Date,r=t-Wr;return r/1e3}var h={nextTick:xr,title:Er,browser:Tr,env:yr,argv:wr,version:Ar,versions:Rr,on:kr,addListener:Nr,once:Sr,off:Pr,removeListener:Cr,removeAllListeners:Br,emit:Dr,binding:Or,cwd:Mr,chdir:Ur,umask:Lr,hrtime:Fr,platform:_r,release:Ir,config:vr,uptime:Vr},H={};Object.keys(H).forEach(t=>{let r=t.split("."),e=h;for(let n=0;n<r.length;n++){let i=r[n];n===r.length-1?e[i]=H[t]:e=e[i]||(e[i]={})}});var _=[],x=[],Hr=typeof Uint8Array<"u"?Uint8Array:Array,F=!1;function Q(){F=!0;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=0,e=t.length;r<e;++r)_[r]=t[r],x[t.charCodeAt(r)]=r;x[45]=62,x[95]=63}function Kr(t){F||Q();var r,e,n,i,a,o,s=t.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");a=t[s-2]==="="?2:t[s-1]==="="?1:0,o=new Hr(s*3/4-a),n=a>0?s-4:s;var c=0;for(r=0,e=0;r<n;r+=4,e+=3)i=x[t.charCodeAt(r)]<<18|x[t.charCodeAt(r+1)]<<12|x[t.charCodeAt(r+2)]<<6|x[t.charCodeAt(r+3)],o[c++]=i>>16&255,o[c++]=i>>8&255,o[c++]=i&255;return a===2?(i=x[t.charCodeAt(r)]<<2|x[t.charCodeAt(r+1)]>>4,o[c++]=i&255):a===1&&(i=x[t.charCodeAt(r)]<<10|x[t.charCodeAt(r+1)]<<4|x[t.charCodeAt(r+2)]>>2,o[c++]=i>>8&255,o[c++]=i&255),o}function Gr(t){return _[t>>18&63]+_[t>>12&63]+_[t>>6&63]+_[t&63]}function zr(t,r,e){for(var n,i=[],a=r;a<e;a+=3)n=(t[a]<<16)+(t[a+1]<<8)+t[a+2],i.push(Gr(n));return i.join("")}function q(t){F||Q();for(var r,e=t.length,n=e%3,i="",a=[],o=16383,s=0,c=e-n;s<c;s+=o)a.push(zr(t,s,s+o>c?c:s+o));return n===1?(r=t[e-1],i+=_[r>>2],i+=_[r<<4&63],i+="=="):n===2&&(r=(t[e-2]<<8)+t[e-1],i+=_[r>>10],i+=_[r>>4&63],i+=_[r<<2&63],i+="="),a.push(i),a.join("")}u.TYPED_ARRAY_SUPPORT=globalThis.TYPED_ARRAY_SUPPORT!==void 0?globalThis.TYPED_ARRAY_SUPPORT:!0;function B(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function w(t,r){if(B()<r)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(r),t.__proto__=u.prototype):(t===null&&(t=new u(r)),t.length=r),t}function u(t,r,e){if(!u.TYPED_ARRAY_SUPPORT&&!(this instanceof u))return new u(t,r,e);if(typeof t=="number"){if(typeof r=="string")throw new Error("If encoding is specified then the first argument must be a string");return W(this,t)}return j(this,t,r,e)}u.poolSize=8192;u._augment=function(t){return t.__proto__=u.prototype,t};function j(t,r,e,n){if(typeof r=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&r instanceof ArrayBuffer?qr(t,r,e,n):typeof r=="string"?Jr(t,r,e):$r(t,r)}u.from=function(t,r,e){return j(null,t,r,e)};u.kMaxLength=B();u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&u[Symbol.species]);function rr(t){if(typeof t!="number")throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function Xr(t,r,e,n){return rr(r),r<=0?w(t,r):e!==void 0?typeof n=="string"?w(t,r).fill(e,n):w(t,r).fill(e):w(t,r)}u.alloc=function(t,r,e){return Xr(null,t,r,e)};function W(t,r){if(rr(r),t=w(t,r<0?0:V(r)|0),!u.TYPED_ARRAY_SUPPORT)for(var e=0;e<r;++e)t[e]=0;return t}u.allocUnsafe=function(t){return W(null,t)};u.allocUnsafeSlow=function(t){return W(null,t)};function Jr(t,r,e){if((typeof e!="string"||e==="")&&(e="utf8"),!u.isEncoding(e))throw new TypeError('"encoding" must be a valid string encoding');var n=er(r,e)|0;t=w(t,n);var i=t.write(r,e);return i!==n&&(t=t.slice(0,i)),t}function Y(t,r){var e=r.length<0?0:V(r.length)|0;t=w(t,e);for(var n=0;n<e;n+=1)t[n]=r[n]&255;return t}function qr(t,r,e,n){if(r.byteLength,e<0||r.byteLength<e)throw new RangeError("'offset' is out of bounds");if(r.byteLength<e+(n||0))throw new RangeError("'length' is out of bounds");return e===void 0&&n===void 0?r=new Uint8Array(r):n===void 0?r=new Uint8Array(r,e):r=new Uint8Array(r,e,n),u.TYPED_ARRAY_SUPPORT?(t=r,t.__proto__=u.prototype):t=Y(t,r),t}function $r(t,r){if(T(r)){var e=V(r.length)|0;return t=w(t,e),t.length===0||r.copy(t,0,0,e),t}if(r){if(typeof ArrayBuffer<"u"&&r.buffer instanceof ArrayBuffer||"length"in r)return typeof r.length!="number"||he(r.length)?w(t,0):Y(t,r);if(r.type==="Buffer"&&Array.isArray(r.data))return Y(t,r.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function V(t){if(t>=B())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+B().toString(16)+" bytes");return t|0}u.isBuffer=be;function T(t){return!!(t!=null&&t._isBuffer)}u.compare=function(r,e){if(!T(r)||!T(e))throw new TypeError("Arguments must be Buffers");if(r===e)return 0;for(var n=r.length,i=e.length,a=0,o=Math.min(n,i);a<o;++a)if(r[a]!==e[a]){n=r[a],i=e[a];break}return n<i?-1:i<n?1:0};u.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};u.concat=function(r,e){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return u.alloc(0);var n;if(e===void 0)for(e=0,n=0;n<r.length;++n)e+=r[n].length;var i=u.allocUnsafe(e),a=0;for(n=0;n<r.length;++n){var o=r[n];if(!T(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(i,a),a+=o.length}return i};function er(t,r){if(T(t))return t.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;typeof t!="string"&&(t=""+t);var e=t.length;if(e===0)return 0;for(var n=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":case void 0:return D(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e*2;case"hex":return e>>>1;case"base64":return sr(t).length;default:if(n)return D(t).length;r=(""+r).toLowerCase(),n=!0}}u.byteLength=er;function Zr(t,r,e){var n=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((e===void 0||e>this.length)&&(e=this.length),e<=0)||(e>>>=0,r>>>=0,e<=r))return"";for(t||(t="utf8");;)switch(t){case"hex":return ue(this,r,e);case"utf8":case"utf-8":return ir(this,r,e);case"ascii":return ae(this,r,e);case"latin1":case"binary":return oe(this,r,e);case"base64":return ne(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return se(this,r,e);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}u.prototype._isBuffer=!0;function k(t,r,e){var n=t[r];t[r]=t[e],t[e]=n}u.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<r;e+=2)k(this,e,e+1);return this};u.prototype.swap32=function(){var r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<r;e+=4)k(this,e,e+3),k(this,e+1,e+2);return this};u.prototype.swap64=function(){var r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<r;e+=8)k(this,e,e+7),k(this,e+1,e+6),k(this,e+2,e+5),k(this,e+3,e+4);return this};u.prototype.toString=function(){var r=this.length|0;return r===0?"":arguments.length===0?ir(this,0,r):Zr.apply(this,arguments)};u.prototype.equals=function(r){if(!T(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:u.compare(this,r)===0};u.prototype.compare=function(r,e,n,i,a){if(!T(r))throw new TypeError("Argument must be a Buffer");if(e===void 0&&(e=0),n===void 0&&(n=r?r.length:0),i===void 0&&(i=0),a===void 0&&(a=this.length),e<0||n>r.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&e>=n)return 0;if(i>=a)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,i>>>=0,a>>>=0,this===r)return 0;for(var o=a-i,s=n-e,c=Math.min(o,s),f=this.slice(i,a),m=r.slice(e,n),p=0;p<c;++p)if(f[p]!==m[p]){o=f[p],s=m[p];break}return o<s?-1:s<o?1:0};function tr(t,r,e,n,i){if(t.length===0)return-1;if(typeof e=="string"?(n=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,isNaN(e)&&(e=i?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(i)return-1;e=t.length-1}else if(e<0)if(i)e=0;else return-1;if(typeof r=="string"&&(r=u.from(r,n)),T(r))return r.length===0?-1:$(t,r,e,n,i);if(typeof r=="number")return r=r&255,u.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(t,r,e):Uint8Array.prototype.lastIndexOf.call(t,r,e):$(t,[r],e,n,i);throw new TypeError("val must be string, number or Buffer")}function $(t,r,e,n,i){var a=1,o=t.length,s=r.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||r.length<2)return-1;a=2,o/=2,s/=2,e/=2}function c(d,N){return a===1?d[N]:d.readUInt16BE(N*a)}var f;if(i){var m=-1;for(f=e;f<o;f++)if(c(t,f)===c(r,m===-1?0:f-m)){if(m===-1&&(m=f),f-m+1===s)return m*a}else m!==-1&&(f-=f-m),m=-1}else for(e+s>o&&(e=o-s),f=e;f>=0;f--){for(var p=!0,E=0;E<s;E++)if(c(t,f+E)!==c(r,E)){p=!1;break}if(p)return f}return-1}u.prototype.includes=function(r,e,n){return this.indexOf(r,e,n)!==-1};u.prototype.indexOf=function(r,e,n){return tr(this,r,e,n,!0)};u.prototype.lastIndexOf=function(r,e,n){return tr(this,r,e,n,!1)};function Qr(t,r,e,n){e=Number(e)||0;var i=t.length-e;n?(n=Number(n),n>i&&(n=i)):n=i;var a=r.length;if(a%2!==0)throw new TypeError("Invalid hex string");n>a/2&&(n=a/2);for(var o=0;o<n;++o){var s=parseInt(r.substr(o*2,2),16);if(isNaN(s))return o;t[e+o]=s}return o}function jr(t,r,e,n){return U(D(r,t.length-e),t,e,n)}function nr(t,r,e,n){return U(me(r),t,e,n)}function re(t,r,e,n){return nr(t,r,e,n)}function ee(t,r,e,n){return U(sr(r),t,e,n)}function te(t,r,e,n){return U(ge(r,t.length-e),t,e,n)}u.prototype.write=function(r,e,n,i){if(e===void 0)i="utf8",n=this.length,e=0;else if(n===void 0&&typeof e=="string")i=e,n=this.length,e=0;else if(isFinite(e))e=e|0,isFinite(n)?(n=n|0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var a=this.length-e;if((n===void 0||n>a)&&(n=a),r.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return Qr(this,r,e,n);case"utf8":case"utf-8":return jr(this,r,e,n);case"ascii":return nr(this,r,e,n);case"latin1":case"binary":return re(this,r,e,n);case"base64":return ee(this,r,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return te(this,r,e,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}};u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ne(t,r,e){return r===0&&e===t.length?q(t):q(t.slice(r,e))}function ir(t,r,e){e=Math.min(t.length,e);for(var n=[],i=r;i<e;){var a=t[i],o=null,s=a>239?4:a>223?3:a>191?2:1;if(i+s<=e){var c,f,m,p;switch(s){case 1:a<128&&(o=a);break;case 2:c=t[i+1],(c&192)===128&&(p=(a&31)<<6|c&63,p>127&&(o=p));break;case 3:c=t[i+1],f=t[i+2],(c&192)===128&&(f&192)===128&&(p=(a&15)<<12|(c&63)<<6|f&63,p>2047&&(p<55296||p>57343)&&(o=p));break;case 4:c=t[i+1],f=t[i+2],m=t[i+3],(c&192)===128&&(f&192)===128&&(m&192)===128&&(p=(a&15)<<18|(c&63)<<12|(f&63)<<6|m&63,p>65535&&p<1114112&&(o=p))}}o===null?(o=65533,s=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|o&1023),n.push(o),i+=s}return ie(n)}var Z=4096;function ie(t){var r=t.length;if(r<=Z)return String.fromCharCode.apply(String,t);for(var e="",n=0;n<r;)e+=String.fromCharCode.apply(String,t.slice(n,n+=Z));return e}function ae(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(t[i]&127);return n}function oe(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(t[i]);return n}function ue(t,r,e){var n=t.length;(!r||r<0)&&(r=0),(!e||e<0||e>n)&&(e=n);for(var i="",a=r;a<e;++a)i+=fe(t[a]);return i}function se(t,r,e){for(var n=t.slice(r,e),i="",a=0;a<n.length;a+=2)i+=String.fromCharCode(n[a]+n[a+1]*256);return i}u.prototype.slice=function(r,e){var n=this.length;r=~~r,e=e===void 0?n:~~e,r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),e<r&&(e=r);var i;if(u.TYPED_ARRAY_SUPPORT)i=this.subarray(r,e),i.__proto__=u.prototype;else{var a=e-r;i=new u(a,void 0);for(var o=0;o<a;++o)i[o]=this[o+r]}return i};function g(t,r,e){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+r>e)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUIntLE=function(r,e,n){r=r|0,e=e|0,n||g(r,e,this.length);for(var i=this[r],a=1,o=0;++o<e&&(a*=256);)i+=this[r+o]*a;return i};u.prototype.readUIntBE=function(r,e,n){r=r|0,e=e|0,n||g(r,e,this.length);for(var i=this[r+--e],a=1;e>0&&(a*=256);)i+=this[r+--e]*a;return i};u.prototype.readUInt8=function(r,e){return e||g(r,1,this.length),this[r]};u.prototype.readUInt16LE=function(r,e){return e||g(r,2,this.length),this[r]|this[r+1]<<8};u.prototype.readUInt16BE=function(r,e){return e||g(r,2,this.length),this[r]<<8|this[r+1]};u.prototype.readUInt32LE=function(r,e){return e||g(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};u.prototype.readUInt32BE=function(r,e){return e||g(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};u.prototype.readIntLE=function(r,e,n){r=r|0,e=e|0,n||g(r,e,this.length);for(var i=this[r],a=1,o=0;++o<e&&(a*=256);)i+=this[r+o]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*e)),i};u.prototype.readIntBE=function(r,e,n){r=r|0,e=e|0,n||g(r,e,this.length);for(var i=e,a=1,o=this[r+--i];i>0&&(a*=256);)o+=this[r+--i]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*e)),o};u.prototype.readInt8=function(r,e){return e||g(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};u.prototype.readInt16LE=function(r,e){e||g(r,2,this.length);var n=this[r]|this[r+1]<<8;return n&32768?n|4294901760:n};u.prototype.readInt16BE=function(r,e){e||g(r,2,this.length);var n=this[r+1]|this[r]<<8;return n&32768?n|4294901760:n};u.prototype.readInt32LE=function(r,e){return e||g(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};u.prototype.readInt32BE=function(r,e){return e||g(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};u.prototype.readFloatLE=function(r,e){return e||g(r,4,this.length),L(this,r,!0,23,4)};u.prototype.readFloatBE=function(r,e){return e||g(r,4,this.length),L(this,r,!1,23,4)};u.prototype.readDoubleLE=function(r,e){return e||g(r,8,this.length),L(this,r,!0,52,8)};u.prototype.readDoubleBE=function(r,e){return e||g(r,8,this.length),L(this,r,!1,52,8)};function b(t,r,e,n,i,a){if(!T(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<a)throw new RangeError('"value" argument is out of bounds');if(e+n>t.length)throw new RangeError("Index out of range")}u.prototype.writeUIntLE=function(r,e,n,i){if(r=+r,e=e|0,n=n|0,!i){var a=Math.pow(2,8*n)-1;b(this,r,e,n,a,0)}var o=1,s=0;for(this[e]=r&255;++s<n&&(o*=256);)this[e+s]=r/o&255;return e+n};u.prototype.writeUIntBE=function(r,e,n,i){if(r=+r,e=e|0,n=n|0,!i){var a=Math.pow(2,8*n)-1;b(this,r,e,n,a,0)}var o=n-1,s=1;for(this[e+o]=r&255;--o>=0&&(s*=256);)this[e+o]=r/s&255;return e+n};u.prototype.writeUInt8=function(r,e,n){return r=+r,e=e|0,n||b(this,r,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(r=Math.floor(r)),this[e]=r&255,e+1};function O(t,r,e,n){r<0&&(r=65535+r+1);for(var i=0,a=Math.min(t.length-e,2);i<a;++i)t[e+i]=(r&255<<8*(n?i:1-i))>>>(n?i:1-i)*8}u.prototype.writeUInt16LE=function(r,e,n){return r=+r,e=e|0,n||b(this,r,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=r&255,this[e+1]=r>>>8):O(this,r,e,!0),e+2};u.prototype.writeUInt16BE=function(r,e,n){return r=+r,e=e|0,n||b(this,r,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=r>>>8,this[e+1]=r&255):O(this,r,e,!1),e+2};function M(t,r,e,n){r<0&&(r=4294967295+r+1);for(var i=0,a=Math.min(t.length-e,4);i<a;++i)t[e+i]=r>>>(n?i:3-i)*8&255}u.prototype.writeUInt32LE=function(r,e,n){return r=+r,e=e|0,n||b(this,r,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=r>>>24,this[e+2]=r>>>16,this[e+1]=r>>>8,this[e]=r&255):M(this,r,e,!0),e+4};u.prototype.writeUInt32BE=function(r,e,n){return r=+r,e=e|0,n||b(this,r,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255):M(this,r,e,!1),e+4};u.prototype.writeIntLE=function(r,e,n,i){if(r=+r,e=e|0,!i){var a=Math.pow(2,8*n-1);b(this,r,e,n,a-1,-a)}var o=0,s=1,c=0;for(this[e]=r&255;++o<n&&(s*=256);)r<0&&c===0&&this[e+o-1]!==0&&(c=1),this[e+o]=(r/s>>0)-c&255;return e+n};u.prototype.writeIntBE=function(r,e,n,i){if(r=+r,e=e|0,!i){var a=Math.pow(2,8*n-1);b(this,r,e,n,a-1,-a)}var o=n-1,s=1,c=0;for(this[e+o]=r&255;--o>=0&&(s*=256);)r<0&&c===0&&this[e+o+1]!==0&&(c=1),this[e+o]=(r/s>>0)-c&255;return e+n};u.prototype.writeInt8=function(r,e,n){return r=+r,e=e|0,n||b(this,r,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(r=Math.floor(r)),r<0&&(r=255+r+1),this[e]=r&255,e+1};u.prototype.writeInt16LE=function(r,e,n){return r=+r,e=e|0,n||b(this,r,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=r&255,this[e+1]=r>>>8):O(this,r,e,!0),e+2};u.prototype.writeInt16BE=function(r,e,n){return r=+r,e=e|0,n||b(this,r,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=r>>>8,this[e+1]=r&255):O(this,r,e,!1),e+2};u.prototype.writeInt32LE=function(r,e,n){return r=+r,e=e|0,n||b(this,r,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=r&255,this[e+1]=r>>>8,this[e+2]=r>>>16,this[e+3]=r>>>24):M(this,r,e,!0),e+4};u.prototype.writeInt32BE=function(r,e,n){return r=+r,e=e|0,n||b(this,r,e,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),u.TYPED_ARRAY_SUPPORT?(this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255):M(this,r,e,!1),e+4};function ar(t,r,e,n,i,a){if(e+n>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function or(t,r,e,n,i){return i||ar(t,r,e,4,34028234663852886e22,-34028234663852886e22),cr(t,r,e,n,23,4),e+4}u.prototype.writeFloatLE=function(r,e,n){return or(this,r,e,!0,n)};u.prototype.writeFloatBE=function(r,e,n){return or(this,r,e,!1,n)};function ur(t,r,e,n,i){return i||ar(t,r,e,8,17976931348623157e292,-17976931348623157e292),cr(t,r,e,n,52,8),e+8}u.prototype.writeDoubleLE=function(r,e,n){return ur(this,r,e,!0,n)};u.prototype.writeDoubleBE=function(r,e,n){return ur(this,r,e,!1,n)};u.prototype.copy=function(r,e,n,i){if(n||(n=0),!i&&i!==0&&(i=this.length),e>=r.length&&(e=r.length),e||(e=0),i>0&&i<n&&(i=n),i===n||r.length===0||this.length===0)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),r.length-e<i-n&&(i=r.length-e+n);var a=i-n,o;if(this===r&&n<e&&e<i)for(o=a-1;o>=0;--o)r[o+e]=this[o+n];else if(a<1e3||!u.TYPED_ARRAY_SUPPORT)for(o=0;o<a;++o)r[o+e]=this[o+n];else Uint8Array.prototype.set.call(r,this.subarray(n,n+a),e);return a};u.prototype.fill=function(r,e,n,i){if(typeof r=="string"){if(typeof e=="string"?(i=e,e=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),r.length===1){var a=r.charCodeAt(0);a<256&&(r=a)}if(i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!u.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else typeof r=="number"&&(r=r&255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;e=e>>>0,n=n===void 0?this.length:n>>>0,r||(r=0);var o;if(typeof r=="number")for(o=e;o<n;++o)this[o]=r;else{var s=T(r)?r:D(new u(r,i).toString()),c=s.length;for(o=0;o<n-e;++o)this[o+e]=s[o%c]}return this};var le=/[^+\/0-9A-Za-z-_]/g;function ce(t){if(t=pe(t).replace(le,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function pe(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function fe(t){return t<16?"0"+t.toString(16):t.toString(16)}function D(t,r){r=r||1/0;for(var e,n=t.length,i=null,a=[],o=0;o<n;++o){if(e=t.charCodeAt(o),e>55295&&e<57344){if(!i){if(e>56319){(r-=3)>-1&&a.push(239,191,189);continue}else if(o+1===n){(r-=3)>-1&&a.push(239,191,189);continue}i=e;continue}if(e<56320){(r-=3)>-1&&a.push(239,191,189),i=e;continue}e=(i-55296<<10|e-56320)+65536}else i&&(r-=3)>-1&&a.push(239,191,189);if(i=null,e<128){if((r-=1)<0)break;a.push(e)}else if(e<2048){if((r-=2)<0)break;a.push(e>>6|192,e&63|128)}else if(e<65536){if((r-=3)<0)break;a.push(e>>12|224,e>>6&63|128,e&63|128)}else if(e<1114112){if((r-=4)<0)break;a.push(e>>18|240,e>>12&63|128,e>>6&63|128,e&63|128)}else throw new Error("Invalid code point")}return a}function me(t){for(var r=[],e=0;e<t.length;++e)r.push(t.charCodeAt(e)&255);return r}function ge(t,r){for(var e,n,i,a=[],o=0;o<t.length&&!((r-=2)<0);++o)e=t.charCodeAt(o),n=e>>8,i=e%256,a.push(i),a.push(n);return a}function sr(t){return Kr(ce(t))}function U(t,r,e,n){for(var i=0;i<n&&!(i+e>=r.length||i>=t.length);++i)r[i+e]=t[i];return i}function he(t){return t!==t}function be(t){return t!=null&&(!!t._isBuffer||lr(t)||de(t))}function lr(t){return!!t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function de(t){return typeof t.readFloatLE=="function"&&typeof t.slice=="function"&&lr(t.slice(0,0))}function L(t,r,e,n,i){var a,o,s=i*8-n-1,c=(1<<s)-1,f=c>>1,m=-7,p=e?i-1:0,E=e?-1:1,d=t[r+p];for(p+=E,a=d&(1<<-m)-1,d>>=-m,m+=s;m>0;a=a*256+t[r+p],p+=E,m-=8);for(o=a&(1<<-m)-1,a>>=-m,m+=n;m>0;o=o*256+t[r+p],p+=E,m-=8);if(a===0)a=1-f;else{if(a===c)return o?NaN:(d?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-f}return(d?-1:1)*o*Math.pow(2,a-n)}function cr(t,r,e,n,i,a){var o,s,c,f=a*8-i-1,m=(1<<f)-1,p=m>>1,E=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:a-1,N=n?1:-1,hr=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(s=isNaN(r)?1:0,o=m):(o=Math.floor(Math.log(r)/Math.LN2),r*(c=Math.pow(2,-o))<1&&(o--,c*=2),o+p>=1?r+=E/c:r+=E*Math.pow(2,1-p),r*c>=2&&(o++,c/=2),o+p>=m?(s=0,o=m):o+p>=1?(s=(r*c-1)*Math.pow(2,i),o=o+p):(s=r*Math.pow(2,p-1)*Math.pow(2,i),o=0));i>=8;t[e+d]=s&255,d+=N,s/=256,i-=8);for(o=o<<i|s,f+=i;f>0;t[e+d]=o&255,d+=N,o/=256,f-=8);t[e+d-N]|=hr*128}var xe=(l=>(l.ENABLED="company.enabled",l.APP_TITLE="company.appTitle",l.DOMAIN="company.domain",l.LOGO="appearance.logo",l.AMM="product.amm",l.OBDEX="product.obdex",l.THEMES="appearance.themes",l.DIRECT_SETTLE="company.directSettlement",l.AMM_FEE="company.ammFee",l.FEE_SHARE="company.feeShare",l.MIN_FEE="company.minFee",l.MAKER_FEE="company.makerFee",l.TAKER_FEE="company.takerFee",l.GEOBLOCK="company.geoblock",l.EMBEDDED_APP_URL="company.embeddedAppUrl",l.PRODUCT_OBDEX="product.obdex",l.PRODUCT_AMM="product.amm",l.NEW_TAB="appearance.newTab",l.APPEARANCE_TARGET="appearance.target",l.CUSTOM_MENU_ITEMS="appearance.customMenuItems",l.REPORT_BUTTONS="appearance.reportButtons",l.APPEARANCE_CHART_TYPE="appearance.chartType",l.APPEARANCE_CHART_INT="appearance.chartInt",l.PINNED_PAIRS="markets.pinnedPairs",l.KYC_TRADE_REQUIREMENT_ENABLED="markets.kycTradeRequirementEnabled",l.FORCE_SETTING_FLAG="company.forceSetting",l.AFFILIATE_DASHBOARD_VISIBILITY="product.affiliateDashboardVisibility",l.AFFILIATE_DASHBOARD_THRESHOLD="product.affiliateDashboardThreshold",l.AFFILIATE_DEFAULT_FEE_SHARE="product.affiliateDefaultFeeShare",l.AFFILIATE_POINTS_REWARD="product.affiliatePointsReward",l.POINT_SYSTEM_MODE="product.pointSystem",l.POINT_SYSTEM_TELEGRAM_API_TOKEN="point-system.telegramApiToken",l.POINT_SYSTEM_TELEGRAM_ENABLED="point-system.telegramEnabled",l.POINT_SYSTEM_TELEGRAM_GROUP_ID="point-system.telegramGroupId",l.POINT_SYSTEM_TELEGRAM_BOT_NAME="point-system.telegramBotName",l.POINT_SYSTEM_TELEGRAM_BOT_ID="point-system.telegramBotId",l.POINT_SYSTEM_TELEGRAM_GROUP_NAME="point-system.telegramGroupName",l.POINT_SYSTEM_TELEGRAM_WEBHOOK_TOKEN="point-system.telegramWebhookToken",l.POINT_SYSTEM_DISCORD_CLIENT_ID="point-system.discordClientId",l.POINT_SYSTEM_DISCORD_CLIENT_SECRET="point-system.discordClientSecret",l.POINT_SYSTEM_DISCORD_SERVER_ID="point-system.discordServerId",l.POINT_SYSTEM_DISCORD_ENABLED="point-system.discordEnabled",l.POINT_SYSTEM_TWITTER_CLIENT_ID="point-system.twitterClientId",l.POINT_SYSTEM_TWITTER_CLIENT_SECRET="point-system.twitterClientSecret",l.POINT_SYSTEM_TWITTER_BEARER_TOKEN="point-system.twitterBearerToken",l.POINT_SYSTEM_TWITTER_REFRESH_TOKEN="point-system.twitterRefreshToken",l.POINT_SYSTEM_TWITTER_ENABLED="point-system.twitterEnabled",l.POINT_SYSTEM_TWITTER_JOB_ENABLED="point-system.twitterJobEnabled",l.POINT_SYSTEM_TWITTER_HASHTAGS="point-system.twitterHashtags",l.POINT_SYSTEM_TWITTER_TWEET_EXP_TIME="point-system.twitterPostDefaultExpirationTime",l.POINT_SYSTEM_TWITTER_ACCOUNT_NAME="point-system.twitterAccountName",l.POINT_SYSTEM_TWITTER_ACCOUNT_ID="point-system.twitterAccountId",l.POINT_SYSTEM_TWITTER_WEBHOOK_TOKEN="point-system.twitterWebhookToken",l.POINT_SYSTEM_GUIDE_LINK="point-system.guideLink",l))(xe||{}),Ee=(n=>(n.DISABLED="disabled",n.ENABLED_FOR_ALL="enabled for all",n.ENABLED_FOR_AFFILIATES="enabled for affiliates",n))(Ee||{}),_e=(o=>(o.API_TOKEN="apiToken",o.CLIENT_ID="clientId",o.CLIENT_SECRET="clientSecret",o.BEARER_TOKEN="bearerToken",o.REFRESH_TOKEN="refreshToken",o.ACCESS_TOKEN="accessToken",o))(_e||{}),Ve={"point-system.telegramApiToken":"apiToken","point-system.discordClientId":"clientId","point-system.discordClientSecret":"clientSecret","point-system.twitterClientSecret":"clientSecret","point-system.twitterClientId":"clientId","point-system.twitterBearerToken":"bearerToken","point-system.twitterRefreshToken":"refreshToken"},He=["primary-1","primary-2","main-background","primary-text","module-background","buy-text","buy-background","sell-text","sell-background","secondary-text","input-background-default","input-background-hover","input-background-disabled","input-border-default","module-border","button-disabled","button-border","input-border-active","active-element-default","hover-element-default","dropdown-shadow","button-text","pair-active-row"],Ke=`{"theme1":{"value":"${h.env.FRONTEND_URL}/Theme%3DDark.svg","active":true},"theme2":{"value":"${h.env.FRONTEND_URL}/Theme%3DLight.svg","active":true},"theme3":{"value":"${h.env.FRONTEND_URL}/Theme%3DLight.svg","active":true}}`,Ge='{"theme1":{"name":"dark","active":true,"value":{"primary-1":"rgba(118, 63, 229, 1)","primary-2":"rgba(249, 132, 146, 1)","main-background":"rgba(1, 1, 1, 1)","primary-text":"rgba(255, 255, 255, 1)","module-background":"rgba(19, 23, 34, 1)","buy-text":"rgba(82, 164, 154, 1)","buy-background":"rgba(2, 199, 122, 0.25)","sell-text":"rgba(221, 94, 86, 1)","sell-background":"rgba(255, 59, 105, 0.25)","secondary-text":"rgba(127, 127, 127, 1)","input-background-default":"rgba(13, 15, 21, 1)","input-background-hover":"rgba(28, 33, 45, 1)","input-background-disabled":"rgba(25, 29, 41, 1)","input-border-default":"rgba(28, 33, 45, 1)","module-border":"rgba(28, 33, 45, 1)","button-disabled":"rgba(111, 113, 118, 1)","button-border":"rgba(255, 255, 255, 1)","input-border-active":"rgba(185, 163, 238, 1)","active-element-default":"rgba(230, 136, 150, 1)","hover-element-default":"rgba(185, 163, 238, 1)","dropdown-shadow":"rgba(154, 92, 253, 0.45)","button-text":"rgba(255, 255, 255, 1)","pair-active-row":"rgba(28, 33, 45, 1)"}},"theme2":{"name":"light","active":true,"value":{"primary-1":"rgba(118, 63, 229, 1)","primary-2":"rgba(249, 132, 146, 1)","main-background":"rgba(249, 248, 248, 1)","primary-text":"rgba(0, 0, 0, 1)","module-background":"rgba(255, 255, 255, 1)","buy-text":"rgba(0, 112, 98, 1)","buy-background":"rgba(0, 112, 98, 0.25)","sell-text":"rgba(195, 12, 1, 1)","sell-background":"rgba(255, 59, 105, 0.25)","secondary-text":"rgba(127, 127, 127, 1)","button-disabled":"rgba(203, 199, 199, 1)","input-background-default":"rgba(255, 255, 255, 1)","input-background-hover":"rgba(249, 248, 248, 1)","input-background-disabled":"rgba(249, 248, 248, 1)","input-border-default":"rgba(228, 225, 225, 1)","module-border":"rgba(228, 225, 225, 1)","button-border":"rgba(170, 167, 167, 1)","input-border-active":"rgba(0, 0, 0, 1)","active-element-default":"rgba(230, 136, 150, 1)","hover-element-default":"rgba(185, 163, 238, 1)","dropdown-shadow":"rgba(154, 92, 253, 0.45)","button-text":"rgba(255, 255, 255, 1)","pair-active-row":"rgb(249, 248, 248)"}},"theme3":{"name":"purple","active":true,"value":{"primary-1":"rgba(118, 63, 229, 1)","primary-2":"rgba(249, 132, 146, 1)","main-background":"rgba(255, 255, 255, 1)","primary-text":"rgba(0, 0, 0, 1)","secondary-text":"rgba(127, 127, 127, 1)","buy-text":"rgba(0, 112, 98, 1)","sell-text":"rgba(195, 12, 1, 1)","buy-background":"rgba(0, 112, 98, 0.25)","sell-background":"rgba(255, 59, 105, 0.25)","module-background":"rgba(254, 250, 255, 1)","module-border":"rgba(228, 225, 225, 1)","input-background-default":"rgba(255, 255, 255, 1)","input-background-hover":"rgba(249, 248, 248, 1)","input-background-disabled":"rgba(254, 250, 255, 1)","input-border-default":"rgba(228, 225, 225, 1)","input-border-active":"rgba(0, 0, 0, 1)","button-border":"rgba(170, 167, 167, 1)","button-disabled":"rgba(203, 199, 199, 1)","active-element-default":"rgba(230, 136, 150, 1)","hover-element-default":"rgba(185, 163, 238, 1)","dropdown-shadow":"rgba(154, 92, 253, 0.45)","button-text":"rgba(255, 255, 255, 1)","pair-active-row":"rgb(249, 248, 248)"}}}',Te=(n=>(n.theme1='{"name":"dark","id":"theme1","active":true, "chartColors":{"bullish_candle_color": "rgba(2, 199, 122, 0.25)","bearish_candle_color": "rgba(221, 94, 86, 1)","bullish_wick_color": "rgba(2, 199, 122, 0.25)","bearish_wick_color": "rgba(221, 94, 86, 1)","bullish_outline_color": "rgba(2, 199, 122, 0.25)","bearish_outline_color": "rgba(221, 94, 86, 1)","line_color": "rgba(41, 98, 255, 1)","chart_background": "rgba(19, 23, 34, 1)","chart_text": "rgba(127, 127, 127, 1)"}, "colors":{"primary-1":"rgba(118, 63, 229, 1)","primary-2":"rgba(249, 132, 146, 1)","main-background":"rgba(1, 1, 1, 1)","primary-text":"rgba(255, 255, 255, 1)","module-background":"rgba(19, 23, 34, 1)","buy-text":"rgba(82, 164, 154, 1)","buy-background":"rgba(2, 199, 122, 0.25)","sell-text":"rgba(221, 94, 86, 1)","sell-background":"rgba(255, 59, 105, 0.25)","secondary-text":"rgba(127, 127, 127, 1)","input-background-default":"rgba(13, 15, 21, 1)","input-background-hover":"rgba(28, 33, 45, 1)","input-background-disabled":"rgba(25, 29, 41, 1)","input-border-default":"rgba(28, 33, 45, 1)","module-border":"rgba(28, 33, 45, 1)","button-disabled":"rgba(111, 113, 118, 1)","button-border":"rgba(255, 255, 255, 1)","input-border-active":"rgba(185, 163, 238, 1)","active-element-default":"rgba(230, 136, 150, 1)","hover-element-default":"rgba(185, 163, 238, 1)","dropdown-shadow":"rgba(154, 92, 253, 0.45)","button-text":"rgba(255, 255, 255, 1)","pair-active-row":"rgba(28, 33, 45, 1)"}}',n.theme2='{"name":"light","id":"theme2","active":true, "chartColors":{"bullish_candle_color": "rgba(0, 112, 98, 1)","bearish_candle_color": "rgba(195, 12, 1, 1)","bullish_wick_color": "rgba(0, 112, 98, 1)","bearish_wick_color": "rgba(195, 12, 1, 1)","bullish_outline_color": "rgba(0, 112, 98, 1)","bearish_outline_color": "rgba(195, 12, 1, 1)","line_color": "rgba(41, 98, 255, 1)","chart_background": "rgba(255, 255, 255, 1)","chart_text": "rgba(127, 127, 127, 1)"}, "colors":{"primary-1":"rgba(118, 63, 229, 1)","primary-2":"rgba(249, 132, 146, 1)","main-background":"rgba(249, 248, 248, 1)","primary-text":"rgba(0, 0, 0, 1)","module-background":"rgba(255, 255, 255, 1)","buy-text":"rgba(0, 112, 98, 1)","buy-background":"rgba(0, 112, 98, 0.25)","sell-text":"rgba(195, 12, 1, 1)","sell-background":"rgba(255, 59, 105, 0.25)","secondary-text":"rgba(127, 127, 127, 1)","button-disabled":"rgba(203, 199, 199, 1)","input-background-default":"rgba(255, 255, 255, 1)","input-background-hover":"rgba(249, 248, 248, 1)","input-background-disabled":"rgba(249, 248, 248, 1)","input-border-default":"rgba(228, 225, 225, 1)","module-border":"rgba(228, 225, 225, 1)","button-border":"rgba(170, 167, 167, 1)","input-border-active":"rgba(0, 0, 0, 1)","active-element-default":"rgba(230, 136, 150, 1)","hover-element-default":"rgba(185, 163, 238, 1)","dropdown-shadow":"rgba(154, 92, 253, 0.45)","button-text":"rgba(255, 255, 255, 1)","pair-active-row":"rgb(249, 248, 248)"}}',n.theme3='{"name":"purple","id":"theme3","active":true, "chartColors":{"bullish_candle_color": "rgba(0, 112, 98, 1)","bearish_candle_color": "rgba(195, 12, 1, 1)","bullish_wick_color": "rgba(0, 112, 98, 1)","bearish_wick_color": "rgba(195, 12, 1, 1)","bullish_outline_color": "rgba(0, 112, 98, 1)","bearish_outline_color": "rgba(195, 12, 1, 1)","line_color": "rgba(41, 98, 255, 1)","chart_background": "rgba(254, 250, 255, 1)","chart_text": "rgba(127, 127, 127, 1)"}, "colors":{"primary-1":"rgba(118, 63, 229, 1)","primary-2":"rgba(249, 132, 146, 1)","main-background":"rgba(255, 255, 255, 1)","primary-text":"rgba(0, 0, 0, 1)","secondary-text":"rgba(127, 127, 127, 1)","buy-text":"rgba(0, 112, 98, 1)","sell-text":"rgba(195, 12, 1, 1)","buy-background":"rgba(0, 112, 98, 0.25)","sell-background":"rgba(255, 59, 105, 0.25)","module-background":"rgba(254, 250, 255, 1)","module-border":"rgba(228, 225, 225, 1)","input-background-default":"rgba(255, 255, 255, 1)","input-background-hover":"rgba(249, 248, 248, 1)","input-background-disabled":"rgba(254, 250, 255, 1)","input-border-default":"rgba(228, 225, 225, 1)","input-border-active":"rgba(0, 0, 0, 1)","button-border":"rgba(170, 167, 167, 1)","button-disabled":"rgba(203, 199, 199, 1)","active-element-default":"rgba(230, 136, 150, 1)","hover-element-default":"rgba(185, 163, 238, 1)","dropdown-shadow":"rgba(154, 92, 253, 0.45)","button-text":"rgba(255, 255, 255, 1)","pair-active-row":"rgb(249, 248, 248)"}}',n))(Te||{});var ye=(a=>(a.STABLE="stable",a.CPMM="constant_product",a.LEND="lending",a.NANO="nano",a.MVNANO="mvnano",a))(ye||{}),we=(a=>(a[a.ultrade=0]="ultrade",a[a.tinyman=1]="tinyman",a[a.pactfi=2]="pactfi",a[a.humble=3]="humble",a[a.algofi=4]="algofi",a))(we||{}),Ae=(a=>(a.ultrade="U",a.tinyman="T",a.pactfi="P",a.humble="H",a.algofi="A",a))(Ae||{}),Re=(a=>(a[a.ultrade=1]="ultrade",a[a.tinyman=2]="tinyman",a[a.pactfi=1]="pactfi",a[a.humble=1]="humble",a[a.algofi=2]="algofi",a))(Re||{}),pr={V1_1:"v1_1",V2:"v2"},qe={[pr.V1_1]:{testnet:62368684,mainnet:552635992},[pr.V2]:{testnet:148607e3,mainnet:1002541853}},Ie=(e=>(e.ASSETS="assets.json",e.TOP_ASSETS="topAssets.json",e))(Ie||{});var ve=(i=>(i.last_7_days="last_7_days",i.last_30_days="last_30_days",i.last_90_days="last_90_days",i.last_year="last_year",i))(ve||{}),fr=class{constructor(){this.timeRange="last_30_days";this.sortBy="volume_usd";this.order="desc";this.limit=20;this.page=1}},mr=class{constructor(){this.timeRange="last_30_days";this.sortBy="volume_usd";this.order="desc";this.limit=20;this.page=1}},ke=(i=>(i.volume="volume",i.fees="fees",i.orders="orders",i.dau="dau",i))(ke||{}),gr=class{constructor(){this.type="volume";this.timeRange="last_7_days"}};var Ne=(a=>(a.PREPARING="provisioning",a.STOPPING="stopping",a.RUNNING="running",a.STOPPED="stopped",a.FAILED="failed",a))(Ne||{});export{Ee as AffDashboardVisibilitySettingEnum,Ie as AmmBucketKeys,Ae as AmmChars,Re as AmmForeignResources,we as AmmIds,pr as CONTRACT_VERSION,gr as ChartQueryDto,_e as CredentialNameEnum,Ne as HummingbotInstanceStatus,fr as PairsQueryDto,ye as PoolType,xe as SettingIds,ve as SmallTimeframeEnum,ke as StatisticTypeQuery,mr as UsersQueryDto,qe as VALIDATOR_APP_ID,Ke as defaultLogoSettingValue,Ge as defaultThemeSettingValue,Te as defaultThemesValue,He as requiredColors,Ve as settingIdToSecretType};
|
|
2
2
|
/*! Bundled license information:
|
|
3
3
|
|
|
4
4
|
@esbuild-plugins/node-globals-polyfill/Buffer.js:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var y=Object.create;var i=Object.defineProperty;var x=Object.getOwnPropertyDescriptor;var A=Object.getOwnPropertyNames;var h=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty;var N=(r,e)=>{for(var t in e)i(r,t,{get:e[t],enumerable:!0})},d=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of A(e))!k.call(r,o)&&o!==t&&i(r,o,{get:()=>e[o],enumerable:!(n=x(e,o))||n.enumerable});return r};var l=(r,e,t)=>(t=r!=null?y(h(r)):{},d(e||!r||!r.__esModule?i(t,"default",{value:r,enumerable:!0}):t,r)),I=r=>d(i({},"__esModule",{value:!0}),r);var U={};N(U,{createBoxes:()=>P,decodeAndNormalizeAddress:()=>M,decodeStateArray:()=>E,getAccountAssetBalances:()=>
|
|
1
|
+
var y=Object.create;var i=Object.defineProperty;var x=Object.getOwnPropertyDescriptor;var A=Object.getOwnPropertyNames;var h=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty;var N=(r,e)=>{for(var t in e)i(r,t,{get:e[t],enumerable:!0})},d=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of A(e))!k.call(r,o)&&o!==t&&i(r,o,{get:()=>e[o],enumerable:!(n=x(e,o))||n.enumerable});return r};var l=(r,e,t)=>(t=r!=null?y(h(r)):{},d(e||!r||!r.__esModule?i(t,"default",{value:r,enumerable:!0}):t,r)),I=r=>d(i({},"__esModule",{value:!0}),r);var U={};N(U,{createBoxes:()=>P,decodeAndNormalizeAddress:()=>M,decodeStateArray:()=>E,getAccountAssetBalances:()=>R,getAppBoxes:()=>D,getAppGlobalState:()=>w,getBoxByName:()=>v,getTxnParams:()=>L,isAssetOptedIn:()=>C,verifySignature:()=>B});module.exports=I(U);var c=l(require("algosdk"));var g=l(require("algosdk")),s=require("buffer"),b=require("algosdk");function m(r){return r.reduce((e,t)=>Uint8Array.from([...e,...t]))}function p(r){return r.map(e=>e instanceof Uint8Array?new Uint8Array(e):typeof e=="string"?S(e):(typeof e=="boolean"&&(e=BigInt(e?1:0)),typeof e=="number"&&(e=BigInt(e)),O(e)))}function S(r){return new Uint8Array(s.Buffer.from(r))}function O(r){let e=s.Buffer.alloc(8);for(let t=0;t<8;t++)e[7-t]=Number(BigInt(r)>>BigInt(t*8)&BigInt(255));return new Uint8Array(e)}function u(r){return s.Buffer.from(r,"base64")}var T=l(require("bignumber.js"));T.default.config({DECIMAL_PLACES:40,EXPONENTIAL_AT:45});var q=`{"theme1":{"value":"${process.env.FRONTEND_URL}/Theme%3DDark.svg","active":true},"theme2":{"value":"${process.env.FRONTEND_URL}/Theme%3DLight.svg","active":true},"theme3":{"value":"${process.env.FRONTEND_URL}/Theme%3DLight.svg","active":true}}`;var f={V1_1:"v1_1",V2:"v2"},X={[f.V1_1]:{testnet:62368684,mainnet:552635992},[f.V2]:{testnet:148607e3,mainnet:1002541853}};function _(r){return Object.keys(r).sort().reduce((e,t)=>({...e,[t]:r[t]}),{})}var P=(r,e)=>e.map(n=>({appIndex:r,name:m(p(["WLP_",n]))}));function E(r){let e={};return r.forEach(t=>{let n=u(t.key).toString(),o=t.value,a=o.type;a==2&&(o=o.uint),a==1&&(o=u(o.bytes)),n=="gov"?e.gov=(0,b.encodeAddress)(o):e[n]=o}),_(e)}var R=r=>{let e={0:r.amount},t=r.assets;for(let n=0;n<t.length;n++){let o=t[n]["asset-id"],a=t[n].amount;e[o]=a}return console.log(`Account ${r.address} balances`,JSON.stringify(e)),e},w=async(r,e)=>{let t=await r.getApplicationByID(e).do();return E(t.params["global-state"])},D=async(r,e)=>{let{boxes:t}=await r.getApplicationBoxes(e).do();console.log("boxes",e,t.map(n=>n.name).filter(n=>n.length===32).map(n=>Buffer.from(n).toString("base64")))},v=async(r,e,t)=>{try{let{value:n}=await r.getApplicationBoxByName(e,t).do();return n}catch(n){if(n.message.includes("box not found"))return console.log(`Box not found '${Buffer.from(t).toString("hex")}'`),null;throw n}},L=async(r,e=1)=>{let t=await r.getTransactionParams().do();return e>1&&(t.fee=c.default.ALGORAND_MIN_TX_FEE*e,t.flatFee=!0),{...t}},C=(r,e)=>Object.keys(r).includes(e.toString()),M=r=>c.default.decodeAddress(r.toUpperCase()).publicKey,B=(r,e,t,n)=>c.default.verifyBytes(new Uint8Array(Buffer.from(t,n)),u(r),e);0&&(module.exports={createBoxes,decodeAndNormalizeAddress,decodeStateArray,getAccountAssetBalances,getAppBoxes,getAppGlobalState,getBoxByName,getTxnParams,isAssetOptedIn,verifySignature});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var g=Object.create;var c=Object.defineProperty;var N=Object.getOwnPropertyDescriptor;var h=Object.getOwnPropertyNames;var O=Object.getPrototypeOf,C=Object.prototype.hasOwnProperty;var D=(e,r)=>{for(var t in r)c(e,t,{get:r[t],enumerable:!0})},b=(e,r,t,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of h(r))!C.call(e,a)&&a!==t&&c(e,a,{get:()=>r[a],enumerable:!(i=N(r,a))||i.enumerable});return e};var L=(e,r,t)=>(t=e!=null?g(O(e)):{},b(r||!e||!e.__esModule?c(t,"default",{value:e,enumerable:!0}):t,e)),x=e=>b(c({},"__esModule",{value:!0}),e);var
|
|
1
|
+
var g=Object.create;var c=Object.defineProperty;var N=Object.getOwnPropertyDescriptor;var h=Object.getOwnPropertyNames;var O=Object.getPrototypeOf,C=Object.prototype.hasOwnProperty;var D=(e,r)=>{for(var t in r)c(e,t,{get:r[t],enumerable:!0})},b=(e,r,t,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of h(r))!C.call(e,a)&&a!==t&&c(e,a,{get:()=>r[a],enumerable:!(i=N(r,a))||i.enumerable});return e};var L=(e,r,t)=>(t=e!=null?g(O(e)):{},b(r||!e||!e.__esModule?c(t,"default",{value:e,enumerable:!0}):t,e)),x=e=>b(c({},"__esModule",{value:!0}),e);var F={};D(F,{assertOrder:()=>I,assertOrderData:()=>v,assertOrderExpirationAtCreationMoment:()=>k});module.exports=x(F);var _=L(require("bignumber.js"));_.default.config({DECIMAL_PLACES:40,EXPONENTIAL_AT:45});function m(e,r){return E(e,r,"*")}function l(e,r){return!!E(e,r,">=")}function s(e,r){return!!E(e,r,">")}function n(e,r){return!!E(e,r,"==")}function S(e,r){return E(e,r,"mod")}function p(e,r){return n(S(e,r),0)}function E(e,r,t){switch(e=new _.default(String(e)),r=new _.default(String(r)),t.toLowerCase()){case"-":return e.minus(r).toString();case"+":return e.plus(r).toString();case"*":case"x":return e.multipliedBy(r).toString();case"\xF7":case"/":return e.dividedBy(r).toString();case">=":return e.isGreaterThanOrEqualTo(r);case">":return e.isGreaterThan(r);case"<=":return e.isLessThanOrEqualTo(r);case"<":return e.isLessThan(r);case"==":return e.isEqualTo(r);case"mod":return e.modulo(r);default:break}}var T=(e,r)=>String(e).toLowerCase()===String(r).toLowerCase();var K={SMALLESTUNIT:process.env.SMALLEST_UNIT},W={SMALLEST_UNITS:process.env.SMALLEST_UNIT};var X=`{"theme1":{"value":"${process.env.FRONTEND_URL}/Theme%3DDark.svg","active":true},"theme2":{"value":"${process.env.FRONTEND_URL}/Theme%3DLight.svg","active":true},"theme3":{"value":"${process.env.FRONTEND_URL}/Theme%3DLight.svg","active":true}}`;var Q=["point-system.discordEnabled","point-system.telegramBotName","point-system.telegramBotId","point-system.telegramEnabled","point-system.telegramGroupId","point-system.telegramGroupName","point-system.twitterAccountId","point-system.twitterAccountName","point-system.twitterEnabled","point-system.twitterJobEnabled","point-system.guideLink"];var Z=process.env.REACT_APP_API_URL,ee=process.env.REACT_APP_SOCKET_URL,re=process.env.REACT_APP_ALGO_SERVER,te=process.env.REACT_APP_ALGO_SERVER_PORT||"",oe=process.env.REACT_APP_ALGOD_TOKEN||"",ae=process.env.REACT_APP_DISPENSER_LINK,ne=process.env.REACT_APP_FRONTEND_LINK||"",ie=process.env.REACT_APP_ALGO_EXPLORER_LINK,se=process.env.REACT_APP_ALGO_EXPLORER_ASSETS_URL,pe=(process.env.REACT_APP_REQUIRE_ACCESS_CODE||"").toLowerCase()==="true",Ee=process.env.REACT_APP_USERBACK_ACCESS_TOKEN,ce=(process.env.REACT_APP_EXT_ORDER_TYPES||"").toLowerCase()==="true";var _e=.001*10**6,le=.002*10**6;var be=process.env.REACT_APP_MASTER_APP_ID||"406",me=process.env.REACT_APP_AGG_APP_ID||"408",P=Number(process.env.REACT_APP_CODEX_APP_ID||"467960617");console.log("CODEX_APP_ID",P);var y=process.env.REACT_APP_ALGO_NETWORK||"";var Te=y.toLowerCase()==="mainnet"?"mainnet":"testnet";var u=(a=>(a.GLOBAL_PAIR_DELISTING="GLOBAL_PAIR_DELISTING",a.GLOBAL_NEW_PAIR_LISTING="GLOBAL_NEW_PAIR_LISTING",a.GLOBAL_SYSTEM_MAINTENANCE="GLOBAL_SYSTEM_MAINTENANCE",a.GLOBAL_SMART_CONTRACT_UPDATE="GLOBAL_SMART_CONTRACT_UPDATE",a))(u||{}),d=(i=>(i.ACCOUNT_POINTS_UNLOCK_ACHIEVEMENT="ACCOUNT_POINTS_UNLOCK_ACHIEVEMENT",i.ACCOUNT_KYC_STATUS_CHANGED="ACCOUNT_KYC_STATUS_CHANGED",i.ACCOUNT_AFFILIATE_DASHBOARD_UNLOCKED="ACCOUNT_AFFILIATE_DASHBOARD_UNLOCKED",i))(d||{}),We={...u,...d};var v=(e,r)=>{R("base",{address:String(e.baseTokenAddress),chainId:e.baseTokenChainId},r.baseAsset),R("price",{address:String(e.priceTokenAddress),chainId:e.priceTokenChainId},r.priceAsset),I(e,r)},R=(e,r,t)=>{o(Number(r.chainId)===Number(t.chainId),`Invalid ${e}TokenChainId, must be ${t.chainId}`),o(t.chainId===1&&String(r.address)===String(t.address)||t.chainId===8&&Number(r.address)===Number(t.address)||T(r.address,t.address),`Invalid ${e}TokenAddress, must be ${t.address}`)},k=e=>{o(e.expiredTime>=Math.floor(Date.now()/1e3)+3600,"Expiration time shorter than 1 hour")},I=(e,r)=>{if(o(n(1,e.version),`Invalid order message version. Current is ${1}`),o(n(e.decimalPrice,0)||n(m(e.decimalPrice,10**18),e.price),"Invalid price or decimalPrice"),o(!isNaN(e.random),"Invalid random, must be a number"),o(e.random>0,"Invalid random, must be greater than 0"),o(e.random<=Number.MAX_SAFE_INTEGER,"Invalid random, must no more than 2^53-1"),o(e.expiredTime>=Math.floor(Date.now()/1e3),"Invalid expiration time"),o(["B","S"].includes(e.orderSide),"Invalid order side"),o(["L","P","I","M"].includes(e.orderType),"Invalid order type"),e.orderType==="M"&&e.orderSide==="S")o(n(e.price,0)&&s(e.amount,0),"Invalid market order amount or price"),o(p(e.amount,r.min_size_increment)&&l(e.amount,r.min_order_size),"Invalid market order amount");else{if(e.orderType==="M"&&e.orderSide==="B"&&n(e.amount,0))throw new Error("Buy murket order by total is not implemented yet");e.orderType==="M"&&e.orderSide==="B"&&s(e.amount,0)?o(s(e.price,0)&&p(e.amount,r.min_size_increment)&&l(e.amount,r.min_order_size),"Invalid buy market order by amount"):(o(s(e.price,0)&&s(e.amount,0),"Invalid order amount or price is zero"),o(p(e.amount,r.min_size_increment)&&l(e.amount,r.min_order_size)&&p(e.price,r.min_price_increment),"Invalid order amount or price"))}},o=(e,r)=>{if(!e)throw new Error(r)};0&&(module.exports={assertOrder,assertOrderData,assertOrderExpirationAtCreationMoment});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var J=Object.create;var m=Object.defineProperty;var Q=Object.getOwnPropertyDescriptor;var Z=Object.getOwnPropertyNames;var ee=Object.getPrototypeOf,re=Object.prototype.hasOwnProperty;var te=(e,r)=>{for(var t in r)m(e,t,{get:r[t],enumerable:!0})},
|
|
1
|
+
var J=Object.create;var m=Object.defineProperty;var Q=Object.getOwnPropertyDescriptor;var Z=Object.getOwnPropertyNames;var ee=Object.getPrototypeOf,re=Object.prototype.hasOwnProperty;var te=(e,r)=>{for(var t in r)m(e,t,{get:r[t],enumerable:!0})},B=(e,r,t,s)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of Z(r))!re.call(e,n)&&n!==t&&m(e,n,{get:()=>r[n],enumerable:!(s=Q(r,n))||s.enumerable});return e};var a=(e,r,t)=>(t=e!=null?J(ee(e)):{},B(r||!e||!e.__esModule?m(t,"default",{value:e,enumerable:!0}):t,e)),ne=e=>B(m({},"__esModule",{value:!0}),e);var Be={};te(Be,{mapToBalanceInfo:()=>Se,mapToCodexBalance:()=>Ce});module.exports=ne(Be);var l=a(require("bignumber.js"));l.default.config({DECIMAL_PLACES:40,EXPONENTIAL_AT:45});function x(e,r){return D(e,r,"*")}function c(e,r){return D(e,r,"/")}function D(e,r,t){switch(e=new l.default(String(e)),r=new l.default(String(r)),t.toLowerCase()){case"-":return e.minus(r).toString();case"+":return e.plus(r).toString();case"*":case"x":return e.multipliedBy(r).toString();case"\xF7":case"/":return e.dividedBy(r).toString();case">=":return e.isGreaterThanOrEqualTo(r);case">":return e.isGreaterThan(r);case"<=":return e.isLessThanOrEqualTo(r);case"<":return e.isLessThan(r);case"==":return e.isEqualTo(r);case"mod":return e.modulo(r);default:break}}var P=(t=>(t[t.Buy=0]="Buy",t[t.Sell=1]="Sell",t))(P||{}),p=P;var k=(n=>(n[n.Limit=0]="Limit",n[n.IOC=1]="IOC",n[n.POST=2]="POST",n[n.Market=3]="Market",n))(k||{}),g=k;var L=(n=>(n.GLOBAL_PAIR_DELISTING="GLOBAL_PAIR_DELISTING",n.GLOBAL_NEW_PAIR_LISTING="GLOBAL_NEW_PAIR_LISTING",n.GLOBAL_SYSTEM_MAINTENANCE="GLOBAL_SYSTEM_MAINTENANCE",n.GLOBAL_SMART_CONTRACT_UPDATE="GLOBAL_SMART_CONTRACT_UPDATE",n))(L||{}),U=(s=>(s.ACCOUNT_POINTS_UNLOCK_ACHIEVEMENT="ACCOUNT_POINTS_UNLOCK_ACHIEVEMENT",s.ACCOUNT_KYC_STATUS_CHANGED="ACCOUNT_KYC_STATUS_CHANGED",s.ACCOUNT_AFFILIATE_DASHBOARD_UNLOCKED="ACCOUNT_AFFILIATE_DASHBOARD_UNLOCKED",s))(U||{}),Ze={...L,...U};var _={"0x4343545055534443000000000000000000000000000000000000000000000000":65537};var Wr={SMALLESTUNIT:process.env.SMALLEST_UNIT},Hr={SMALLEST_UNITS:process.env.SMALLEST_UNIT};var Vr=`{"theme1":{"value":"${process.env.FRONTEND_URL}/Theme%3DDark.svg","active":true},"theme2":{"value":"${process.env.FRONTEND_URL}/Theme%3DLight.svg","active":true},"theme3":{"value":"${process.env.FRONTEND_URL}/Theme%3DLight.svg","active":true}}`;var zr=["point-system.discordEnabled","point-system.telegramBotName","point-system.telegramBotId","point-system.telegramEnabled","point-system.telegramGroupId","point-system.telegramGroupName","point-system.twitterAccountId","point-system.twitterAccountName","point-system.twitterEnabled","point-system.twitterJobEnabled","point-system.guideLink"];var Jr=process.env.REACT_APP_API_URL,Qr=process.env.REACT_APP_SOCKET_URL,Zr=process.env.REACT_APP_ALGO_SERVER,et=process.env.REACT_APP_ALGO_SERVER_PORT||"",rt=process.env.REACT_APP_ALGOD_TOKEN||"",tt=process.env.REACT_APP_DISPENSER_LINK,nt=process.env.REACT_APP_FRONTEND_LINK||"",ot=process.env.REACT_APP_ALGO_EXPLORER_LINK,st=process.env.REACT_APP_ALGO_EXPLORER_ASSETS_URL,at=(process.env.REACT_APP_REQUIRE_ACCESS_CODE||"").toLowerCase()==="true",it=process.env.REACT_APP_USERBACK_ACCESS_TOKEN,ct=(process.env.REACT_APP_EXT_ORDER_TYPES||"").toLowerCase()==="true";var pt=.001*10**6,ut=.002*10**6;var dt=process.env.REACT_APP_MASTER_APP_ID||"406",mt=process.env.REACT_APP_AGG_APP_ID||"408",se=Number(process.env.REACT_APP_CODEX_APP_ID||"467960617");console.log("CODEX_APP_ID",se);var ae=process.env.REACT_APP_ALGO_NETWORK||"";var lt=ae.toLowerCase()==="mainnet"?"mainnet":"testnet";var y=(e,r)=>c(e,10**(18-r)),w=(e,r)=>c(e,10**r);var R=a(require("algosdk")),Oe=a(require("bs58"));var ge=a(require("algosdk")),Y=a(require("bs58"));var v=a(require("algosdk"));var h=a(require("algosdk")),ce=require("buffer"),I=require("algosdk");function i(e){return e.reduce((r,t)=>Uint8Array.from([...r,...t]))}var M={V1_1:"v1_1",V2:"v2"},Lt={[M.V1_1]:{testnet:62368684,mainnet:552635992},[M.V2]:{testnet:148607e3,mainnet:1002541853}};var F=e=>v.default.decodeAddress(e.toUpperCase()).publicKey;var o=a(require("ethereumjs-util"));function de(e){return o.toUnsigned(new o.BN(String(e)))}function G(e){let r=de(e);if(r.length>32)throw new Error("Invalid value. The buffer length of the value is more than 32");return new Uint8Array(o.setLengthLeft(r,32))}var K=e=>new Uint8Array(o.setLengthLeft(b(e),32)),b=e=>Buffer.from(me(e),"hex"),me=e=>e.startsWith("0x")?e.slice(2):e;var N=e=>new Uint8Array(o.keccak256(Buffer.from(e)));var O=(e,r)=>r===8?F(e):r===1?Y.decode(e):K(e);var Ee=a(require("algosdk"));var Ae=a(require("algosdk"));var ye=a(require("algosdk"));var Ie=a(require("algosdk"));var Ne=a(require("algosdk"));var Re=(e,r)=>r===8?G(+e):_[e]?new Uint8Array(b(String(e))):O(String(e),r);var z=(e,r)=>{let t=X(e.address,e.chainId,r.address,r.chainId);return Buffer.from(N(t)).toString("hex")},X=(e,r,t,s)=>{let n=O(e,r),A=R.default.encodeUint64(r),d=R.default.encodeUint64(s),T=Re(t,s);return i([n,A,T,d])};var Se=(e,{userId:r,chainId:t,price:s,side:n,type:A,amount:d,total:T,id:S})=>{let{baseAsset:C,priceAsset:f}=e,j={address:r,chainId:t},q=n===p.Buy?f:C;return{action:"order",actionId:S,account:j,token:q,amount:n===p.Buy?A===g.Market?y(T,f.decimal):x(w(d,C.decimal),y(s,f.decimal)):d,ts:Date.now()}},Ce=(e,r,t,s="0")=>({hash:z(e,r),loginAddress:e.address,loginChainId:e.chainId,tokenId:r.address,tokenChainId:r.chainId,amount:t,lockedAmount:s});0&&(module.exports={mapToBalanceInfo,mapToCodexBalance});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var o=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var s=Object.getOwnPropertyNames;var u=Object.prototype.hasOwnProperty;var l=(r,e)=>{for(var t in e)o(r,t,{get:e[t],enumerable:!0})},
|
|
1
|
+
var o=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var s=Object.getOwnPropertyNames;var u=Object.prototype.hasOwnProperty;var l=(r,e)=>{for(var t in e)o(r,t,{get:e[t],enumerable:!0})},g=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of s(e))!u.call(r,a)&&a!==t&&o(r,a,{get:()=>e[a],enumerable:!(n=b(e,a))||n.enumerable});return r};var d=r=>g(o({},"__esModule",{value:!0}),r);var m={};l(m,{transformPointSystemSettings:()=>p});module.exports=d(m);var _=`{"theme1":{"value":"${process.env.FRONTEND_URL}/Theme%3DDark.svg","active":true},"theme2":{"value":"${process.env.FRONTEND_URL}/Theme%3DLight.svg","active":true},"theme3":{"value":"${process.env.FRONTEND_URL}/Theme%3DLight.svg","active":true}}`;var i={V1_1:"v1_1",V2:"v2"},E={[i.V1_1]:{testnet:62368684,mainnet:552635992},[i.V2]:{testnet:148607e3,mainnet:1002541853}};var p=r=>{let e={};return r.forEach(({settingId:t,value:n,setting:a})=>{a.type==="boolean"?e[t]=n==="true":e[t]=n}),{discordEnabled:e["point-system.discordEnabled"],telegramBotName:e["point-system.telegramBotName"],telegramBotId:e["point-system.telegramBotId"],telegramEnabled:e["point-system.telegramEnabled"],telegramGroupId:e["point-system.telegramGroupId"],telegramGroupName:e["point-system.telegramGroupName"],twitterAccountId:e["point-system.twitterAccountId"],twitterAccountName:e["point-system.twitterAccountName"],twitterEnabled:e["point-system.twitterEnabled"],twitterJobEnabled:e["point-system.twitterJobEnabled"],guideLink:e["point-system.guideLink"]}};0&&(module.exports={transformPointSystemSettings});
|
package/dist/node/types/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var s=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var P=Object.getOwnPropertyNames;var I=Object.prototype.hasOwnProperty;var R=(a,o)=>{for(var i in o)s(a,i,{get:o[i],enumerable:!0})},O=(a,o,i,n)=>{if(o&&typeof o=="object"||typeof o=="function")for(let t of P(o))!I.call(a,t)&&t!==i&&s(a,t,{get:()=>o[t],enumerable:!(n=A(o,t))||n.enumerable});return a};var v=a=>O(s({},"__esModule",{value:!0}),a);var M={};R(M,{AffDashboardVisibilitySettingEnum:()=>m,AmmBucketKeys:()=>N,AmmChars:()=>y,AmmForeignResources:()=>x,AmmIds:()=>E,CONTRACT_VERSION:()=>u,ChartQueryDto:()=>g,CredentialNameEnum:()=>c,HummingbotInstanceStatus:()=>k,PairsQueryDto:()=>l,PoolType:()=>T,SettingIds:()=>d,SmallTimeframeEnum:()=>f,StatisticTypeQuery:()=>h,UsersQueryDto:()=>p,VALIDATOR_APP_ID:()=>w,defaultLogoSettingValue:()=>D,defaultThemeSettingValue:()=>L,defaultThemesValue:()=>_,requiredColors:()=>C,settingIdToSecretType:()=>S});module.exports=v(M);var d=(e=>(e.ENABLED="company.enabled",e.APP_TITLE="company.appTitle",e.DOMAIN="company.domain",e.LOGO="appearance.logo",e.AMM="product.amm",e.OBDEX="product.obdex",e.THEMES="appearance.themes",e.DIRECT_SETTLE="company.directSettlement",e.AMM_FEE="company.ammFee",e.FEE_SHARE="company.feeShare",e.MIN_FEE="company.minFee",e.MAKER_FEE="company.makerFee",e.TAKER_FEE="company.takerFee",e.GEOBLOCK="company.geoblock",e.EMBEDDED_APP_URL="company.embeddedAppUrl",e.PRODUCT_OBDEX="product.obdex",e.PRODUCT_AMM="product.amm",e.NEW_TAB="appearance.newTab",e.APPEARANCE_TARGET="appearance.target",e.CUSTOM_MENU_ITEMS="appearance.customMenuItems",e.REPORT_BUTTONS="appearance.reportButtons",e.APPEARANCE_CHART_TYPE="appearance.chartType",e.APPEARANCE_CHART_INT="appearance.chartInt",e.PINNED_PAIRS="markets.pinnedPairs",e.KYC_TRADE_REQUIREMENT_ENABLED="markets.kycTradeRequirementEnabled",e.AFFILIATE_DASHBOARD_VISIBILITY="product.affiliateDashboardVisibility",e.AFFILIATE_DASHBOARD_THRESHOLD="product.affiliateDashboardThreshold",e.AFFILIATE_DEFAULT_FEE_SHARE="product.affiliateDefaultFeeShare",e.AFFILIATE_POINTS_REWARD="product.affiliatePointsReward",e.POINT_SYSTEM_MODE="product.pointSystem",e.POINT_SYSTEM_TELEGRAM_API_TOKEN="point-system.telegramApiToken",e.POINT_SYSTEM_TELEGRAM_ENABLED="point-system.telegramEnabled",e.POINT_SYSTEM_TELEGRAM_GROUP_ID="point-system.telegramGroupId",e.POINT_SYSTEM_TELEGRAM_BOT_NAME="point-system.telegramBotName",e.POINT_SYSTEM_TELEGRAM_BOT_ID="point-system.telegramBotId",e.POINT_SYSTEM_TELEGRAM_GROUP_NAME="point-system.telegramGroupName",e.POINT_SYSTEM_TELEGRAM_WEBHOOK_TOKEN="point-system.telegramWebhookToken",e.POINT_SYSTEM_DISCORD_CLIENT_ID="point-system.discordClientId",e.POINT_SYSTEM_DISCORD_CLIENT_SECRET="point-system.discordClientSecret",e.POINT_SYSTEM_DISCORD_SERVER_ID="point-system.discordServerId",e.POINT_SYSTEM_DISCORD_ENABLED="point-system.discordEnabled",e.POINT_SYSTEM_TWITTER_CLIENT_ID="point-system.twitterClientId",e.POINT_SYSTEM_TWITTER_CLIENT_SECRET="point-system.twitterClientSecret",e.POINT_SYSTEM_TWITTER_BEARER_TOKEN="point-system.twitterBearerToken",e.POINT_SYSTEM_TWITTER_REFRESH_TOKEN="point-system.twitterRefreshToken",e.POINT_SYSTEM_TWITTER_ENABLED="point-system.twitterEnabled",e.POINT_SYSTEM_TWITTER_JOB_ENABLED="point-system.twitterJobEnabled",e.POINT_SYSTEM_TWITTER_HASHTAGS="point-system.twitterHashtags",e.POINT_SYSTEM_TWITTER_TWEET_EXP_TIME="point-system.twitterPostDefaultExpirationTime",e.POINT_SYSTEM_TWITTER_ACCOUNT_NAME="point-system.twitterAccountName",e.POINT_SYSTEM_TWITTER_ACCOUNT_ID="point-system.twitterAccountId",e.POINT_SYSTEM_TWITTER_WEBHOOK_TOKEN="point-system.twitterWebhookToken",e.POINT_SYSTEM_GUIDE_LINK="point-system.guideLink",e))(d||{}),m=(n=>(n.DISABLED="disabled",n.ENABLED_FOR_ALL="enabled for all",n.ENABLED_FOR_AFFILIATES="enabled for affiliates",n))(m||{}),c=(b=>(b.API_TOKEN="apiToken",b.CLIENT_ID="clientId",b.CLIENT_SECRET="clientSecret",b.BEARER_TOKEN="bearerToken",b.REFRESH_TOKEN="refreshToken",b.ACCESS_TOKEN="accessToken",b))(c||{}),S={"point-system.telegramApiToken":"apiToken","point-system.discordClientId":"clientId","point-system.discordClientSecret":"clientSecret","point-system.twitterClientSecret":"clientSecret","point-system.twitterClientId":"clientId","point-system.twitterBearerToken":"bearerToken","point-system.twitterRefreshToken":"refreshToken"},C=["primary-1","primary-2","main-background","primary-text","module-background","buy-text","buy-background","sell-text","sell-background","secondary-text","input-background-default","input-background-hover","input-background-disabled","input-border-default","module-border","button-disabled","button-border","input-border-active","active-element-default","hover-element-default","dropdown-shadow","button-text","pair-active-row"],D=`{"theme1":{"value":"${process.env.FRONTEND_URL}/Theme%3DDark.svg","active":true},"theme2":{"value":"${process.env.FRONTEND_URL}/Theme%3DLight.svg","active":true},"theme3":{"value":"${process.env.FRONTEND_URL}/Theme%3DLight.svg","active":true}}`,L='{"theme1":{"name":"dark","active":true,"value":{"primary-1":"rgba(118, 63, 229, 1)","primary-2":"rgba(249, 132, 146, 1)","main-background":"rgba(1, 1, 1, 1)","primary-text":"rgba(255, 255, 255, 1)","module-background":"rgba(19, 23, 34, 1)","buy-text":"rgba(82, 164, 154, 1)","buy-background":"rgba(2, 199, 122, 0.25)","sell-text":"rgba(221, 94, 86, 1)","sell-background":"rgba(255, 59, 105, 0.25)","secondary-text":"rgba(127, 127, 127, 1)","input-background-default":"rgba(13, 15, 21, 1)","input-background-hover":"rgba(28, 33, 45, 1)","input-background-disabled":"rgba(25, 29, 41, 1)","input-border-default":"rgba(28, 33, 45, 1)","module-border":"rgba(28, 33, 45, 1)","button-disabled":"rgba(111, 113, 118, 1)","button-border":"rgba(255, 255, 255, 1)","input-border-active":"rgba(185, 163, 238, 1)","active-element-default":"rgba(230, 136, 150, 1)","hover-element-default":"rgba(185, 163, 238, 1)","dropdown-shadow":"rgba(154, 92, 253, 0.45)","button-text":"rgba(255, 255, 255, 1)","pair-active-row":"rgba(28, 33, 45, 1)"}},"theme2":{"name":"light","active":true,"value":{"primary-1":"rgba(118, 63, 229, 1)","primary-2":"rgba(249, 132, 146, 1)","main-background":"rgba(249, 248, 248, 1)","primary-text":"rgba(0, 0, 0, 1)","module-background":"rgba(255, 255, 255, 1)","buy-text":"rgba(0, 112, 98, 1)","buy-background":"rgba(0, 112, 98, 0.25)","sell-text":"rgba(195, 12, 1, 1)","sell-background":"rgba(255, 59, 105, 0.25)","secondary-text":"rgba(127, 127, 127, 1)","button-disabled":"rgba(203, 199, 199, 1)","input-background-default":"rgba(255, 255, 255, 1)","input-background-hover":"rgba(249, 248, 248, 1)","input-background-disabled":"rgba(249, 248, 248, 1)","input-border-default":"rgba(228, 225, 225, 1)","module-border":"rgba(228, 225, 225, 1)","button-border":"rgba(170, 167, 167, 1)","input-border-active":"rgba(0, 0, 0, 1)","active-element-default":"rgba(230, 136, 150, 1)","hover-element-default":"rgba(185, 163, 238, 1)","dropdown-shadow":"rgba(154, 92, 253, 0.45)","button-text":"rgba(255, 255, 255, 1)","pair-active-row":"rgb(249, 248, 248)"}},"theme3":{"name":"purple","active":true,"value":{"primary-1":"rgba(118, 63, 229, 1)","primary-2":"rgba(249, 132, 146, 1)","main-background":"rgba(255, 255, 255, 1)","primary-text":"rgba(0, 0, 0, 1)","secondary-text":"rgba(127, 127, 127, 1)","buy-text":"rgba(0, 112, 98, 1)","sell-text":"rgba(195, 12, 1, 1)","buy-background":"rgba(0, 112, 98, 0.25)","sell-background":"rgba(255, 59, 105, 0.25)","module-background":"rgba(254, 250, 255, 1)","module-border":"rgba(228, 225, 225, 1)","input-background-default":"rgba(255, 255, 255, 1)","input-background-hover":"rgba(249, 248, 248, 1)","input-background-disabled":"rgba(254, 250, 255, 1)","input-border-default":"rgba(228, 225, 225, 1)","input-border-active":"rgba(0, 0, 0, 1)","button-border":"rgba(170, 167, 167, 1)","button-disabled":"rgba(203, 199, 199, 1)","active-element-default":"rgba(230, 136, 150, 1)","hover-element-default":"rgba(185, 163, 238, 1)","dropdown-shadow":"rgba(154, 92, 253, 0.45)","button-text":"rgba(255, 255, 255, 1)","pair-active-row":"rgb(249, 248, 248)"}}}',_=(n=>(n.theme1='{"name":"dark","id":"theme1","active":true, "chartColors":{"bullish_candle_color": "rgba(2, 199, 122, 0.25)","bearish_candle_color": "rgba(221, 94, 86, 1)","bullish_wick_color": "rgba(2, 199, 122, 0.25)","bearish_wick_color": "rgba(221, 94, 86, 1)","bullish_outline_color": "rgba(2, 199, 122, 0.25)","bearish_outline_color": "rgba(221, 94, 86, 1)","line_color": "rgba(41, 98, 255, 1)","chart_background": "rgba(19, 23, 34, 1)","chart_text": "rgba(127, 127, 127, 1)"}, "colors":{"primary-1":"rgba(118, 63, 229, 1)","primary-2":"rgba(249, 132, 146, 1)","main-background":"rgba(1, 1, 1, 1)","primary-text":"rgba(255, 255, 255, 1)","module-background":"rgba(19, 23, 34, 1)","buy-text":"rgba(82, 164, 154, 1)","buy-background":"rgba(2, 199, 122, 0.25)","sell-text":"rgba(221, 94, 86, 1)","sell-background":"rgba(255, 59, 105, 0.25)","secondary-text":"rgba(127, 127, 127, 1)","input-background-default":"rgba(13, 15, 21, 1)","input-background-hover":"rgba(28, 33, 45, 1)","input-background-disabled":"rgba(25, 29, 41, 1)","input-border-default":"rgba(28, 33, 45, 1)","module-border":"rgba(28, 33, 45, 1)","button-disabled":"rgba(111, 113, 118, 1)","button-border":"rgba(255, 255, 255, 1)","input-border-active":"rgba(185, 163, 238, 1)","active-element-default":"rgba(230, 136, 150, 1)","hover-element-default":"rgba(185, 163, 238, 1)","dropdown-shadow":"rgba(154, 92, 253, 0.45)","button-text":"rgba(255, 255, 255, 1)","pair-active-row":"rgba(28, 33, 45, 1)"}}',n.theme2='{"name":"light","id":"theme2","active":true, "chartColors":{"bullish_candle_color": "rgba(0, 112, 98, 1)","bearish_candle_color": "rgba(195, 12, 1, 1)","bullish_wick_color": "rgba(0, 112, 98, 1)","bearish_wick_color": "rgba(195, 12, 1, 1)","bullish_outline_color": "rgba(0, 112, 98, 1)","bearish_outline_color": "rgba(195, 12, 1, 1)","line_color": "rgba(41, 98, 255, 1)","chart_background": "rgba(255, 255, 255, 1)","chart_text": "rgba(127, 127, 127, 1)"}, "colors":{"primary-1":"rgba(118, 63, 229, 1)","primary-2":"rgba(249, 132, 146, 1)","main-background":"rgba(249, 248, 248, 1)","primary-text":"rgba(0, 0, 0, 1)","module-background":"rgba(255, 255, 255, 1)","buy-text":"rgba(0, 112, 98, 1)","buy-background":"rgba(0, 112, 98, 0.25)","sell-text":"rgba(195, 12, 1, 1)","sell-background":"rgba(255, 59, 105, 0.25)","secondary-text":"rgba(127, 127, 127, 1)","button-disabled":"rgba(203, 199, 199, 1)","input-background-default":"rgba(255, 255, 255, 1)","input-background-hover":"rgba(249, 248, 248, 1)","input-background-disabled":"rgba(249, 248, 248, 1)","input-border-default":"rgba(228, 225, 225, 1)","module-border":"rgba(228, 225, 225, 1)","button-border":"rgba(170, 167, 167, 1)","input-border-active":"rgba(0, 0, 0, 1)","active-element-default":"rgba(230, 136, 150, 1)","hover-element-default":"rgba(185, 163, 238, 1)","dropdown-shadow":"rgba(154, 92, 253, 0.45)","button-text":"rgba(255, 255, 255, 1)","pair-active-row":"rgb(249, 248, 248)"}}',n.theme3='{"name":"purple","id":"theme3","active":true, "chartColors":{"bullish_candle_color": "rgba(0, 112, 98, 1)","bearish_candle_color": "rgba(195, 12, 1, 1)","bullish_wick_color": "rgba(0, 112, 98, 1)","bearish_wick_color": "rgba(195, 12, 1, 1)","bullish_outline_color": "rgba(0, 112, 98, 1)","bearish_outline_color": "rgba(195, 12, 1, 1)","line_color": "rgba(41, 98, 255, 1)","chart_background": "rgba(254, 250, 255, 1)","chart_text": "rgba(127, 127, 127, 1)"}, "colors":{"primary-1":"rgba(118, 63, 229, 1)","primary-2":"rgba(249, 132, 146, 1)","main-background":"rgba(255, 255, 255, 1)","primary-text":"rgba(0, 0, 0, 1)","secondary-text":"rgba(127, 127, 127, 1)","buy-text":"rgba(0, 112, 98, 1)","sell-text":"rgba(195, 12, 1, 1)","buy-background":"rgba(0, 112, 98, 0.25)","sell-background":"rgba(255, 59, 105, 0.25)","module-background":"rgba(254, 250, 255, 1)","module-border":"rgba(228, 225, 225, 1)","input-background-default":"rgba(255, 255, 255, 1)","input-background-hover":"rgba(249, 248, 248, 1)","input-background-disabled":"rgba(254, 250, 255, 1)","input-border-default":"rgba(228, 225, 225, 1)","input-border-active":"rgba(0, 0, 0, 1)","button-border":"rgba(170, 167, 167, 1)","button-disabled":"rgba(203, 199, 199, 1)","active-element-default":"rgba(230, 136, 150, 1)","hover-element-default":"rgba(185, 163, 238, 1)","dropdown-shadow":"rgba(154, 92, 253, 0.45)","button-text":"rgba(255, 255, 255, 1)","pair-active-row":"rgb(249, 248, 248)"}}',n))(_||{});var T=(r=>(r.STABLE="stable",r.CPMM="constant_product",r.LEND="lending",r.NANO="nano",r.MVNANO="mvnano",r))(T||{}),E=(r=>(r[r.ultrade=0]="ultrade",r[r.tinyman=1]="tinyman",r[r.pactfi=2]="pactfi",r[r.humble=3]="humble",r[r.algofi=4]="algofi",r))(E||{}),y=(r=>(r.ultrade="U",r.tinyman="T",r.pactfi="P",r.humble="H",r.algofi="A",r))(y||{}),x=(r=>(r[r.ultrade=1]="ultrade",r[r.tinyman=2]="tinyman",r[r.pactfi=1]="pactfi",r[r.humble=1]="humble",r[r.algofi=2]="algofi",r))(x||{}),u={V1_1:"v1_1",V2:"v2"},w={[u.V1_1]:{testnet:62368684,mainnet:552635992},[u.V2]:{testnet:148607e3,mainnet:1002541853}},N=(i=>(i.ASSETS="assets.json",i.TOP_ASSETS="topAssets.json",i))(N||{});var f=(t=>(t.last_7_days="last_7_days",t.last_30_days="last_30_days",t.last_90_days="last_90_days",t.last_year="last_year",t))(f||{}),l=class{constructor(){this.timeRange="last_30_days";this.sortBy="volume_usd";this.order="desc";this.limit=20;this.page=1}},p=class{constructor(){this.timeRange="last_30_days";this.sortBy="volume_usd";this.order="desc";this.limit=20;this.page=1}},h=(t=>(t.volume="volume",t.fees="fees",t.orders="orders",t.dau="dau",t))(h||{}),g=class{constructor(){this.type="volume";this.timeRange="last_7_days"}};var k=(r=>(r.PREPARING="provisioning",r.STOPPING="stopping",r.RUNNING="running",r.STOPPED="stopped",r.FAILED="failed",r))(k||{});0&&(module.exports={AffDashboardVisibilitySettingEnum,AmmBucketKeys,AmmChars,AmmForeignResources,AmmIds,CONTRACT_VERSION,ChartQueryDto,CredentialNameEnum,HummingbotInstanceStatus,PairsQueryDto,PoolType,SettingIds,SmallTimeframeEnum,StatisticTypeQuery,UsersQueryDto,VALIDATOR_APP_ID,defaultLogoSettingValue,defaultThemeSettingValue,defaultThemesValue,requiredColors,settingIdToSecretType});
|
|
1
|
+
var s=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var P=Object.getOwnPropertyNames;var R=Object.prototype.hasOwnProperty;var I=(a,o)=>{for(var i in o)s(a,i,{get:o[i],enumerable:!0})},O=(a,o,i,n)=>{if(o&&typeof o=="object"||typeof o=="function")for(let t of P(o))!R.call(a,t)&&t!==i&&s(a,t,{get:()=>o[t],enumerable:!(n=A(o,t))||n.enumerable});return a};var v=a=>O(s({},"__esModule",{value:!0}),a);var M={};I(M,{AffDashboardVisibilitySettingEnum:()=>m,AmmBucketKeys:()=>N,AmmChars:()=>y,AmmForeignResources:()=>x,AmmIds:()=>E,CONTRACT_VERSION:()=>u,ChartQueryDto:()=>g,CredentialNameEnum:()=>c,HummingbotInstanceStatus:()=>k,PairsQueryDto:()=>l,PoolType:()=>T,SettingIds:()=>d,SmallTimeframeEnum:()=>f,StatisticTypeQuery:()=>h,UsersQueryDto:()=>p,VALIDATOR_APP_ID:()=>w,defaultLogoSettingValue:()=>D,defaultThemeSettingValue:()=>L,defaultThemesValue:()=>_,requiredColors:()=>C,settingIdToSecretType:()=>S});module.exports=v(M);var d=(e=>(e.ENABLED="company.enabled",e.APP_TITLE="company.appTitle",e.DOMAIN="company.domain",e.LOGO="appearance.logo",e.AMM="product.amm",e.OBDEX="product.obdex",e.THEMES="appearance.themes",e.DIRECT_SETTLE="company.directSettlement",e.AMM_FEE="company.ammFee",e.FEE_SHARE="company.feeShare",e.MIN_FEE="company.minFee",e.MAKER_FEE="company.makerFee",e.TAKER_FEE="company.takerFee",e.GEOBLOCK="company.geoblock",e.EMBEDDED_APP_URL="company.embeddedAppUrl",e.PRODUCT_OBDEX="product.obdex",e.PRODUCT_AMM="product.amm",e.NEW_TAB="appearance.newTab",e.APPEARANCE_TARGET="appearance.target",e.CUSTOM_MENU_ITEMS="appearance.customMenuItems",e.REPORT_BUTTONS="appearance.reportButtons",e.APPEARANCE_CHART_TYPE="appearance.chartType",e.APPEARANCE_CHART_INT="appearance.chartInt",e.PINNED_PAIRS="markets.pinnedPairs",e.KYC_TRADE_REQUIREMENT_ENABLED="markets.kycTradeRequirementEnabled",e.FORCE_SETTING_FLAG="company.forceSetting",e.AFFILIATE_DASHBOARD_VISIBILITY="product.affiliateDashboardVisibility",e.AFFILIATE_DASHBOARD_THRESHOLD="product.affiliateDashboardThreshold",e.AFFILIATE_DEFAULT_FEE_SHARE="product.affiliateDefaultFeeShare",e.AFFILIATE_POINTS_REWARD="product.affiliatePointsReward",e.POINT_SYSTEM_MODE="product.pointSystem",e.POINT_SYSTEM_TELEGRAM_API_TOKEN="point-system.telegramApiToken",e.POINT_SYSTEM_TELEGRAM_ENABLED="point-system.telegramEnabled",e.POINT_SYSTEM_TELEGRAM_GROUP_ID="point-system.telegramGroupId",e.POINT_SYSTEM_TELEGRAM_BOT_NAME="point-system.telegramBotName",e.POINT_SYSTEM_TELEGRAM_BOT_ID="point-system.telegramBotId",e.POINT_SYSTEM_TELEGRAM_GROUP_NAME="point-system.telegramGroupName",e.POINT_SYSTEM_TELEGRAM_WEBHOOK_TOKEN="point-system.telegramWebhookToken",e.POINT_SYSTEM_DISCORD_CLIENT_ID="point-system.discordClientId",e.POINT_SYSTEM_DISCORD_CLIENT_SECRET="point-system.discordClientSecret",e.POINT_SYSTEM_DISCORD_SERVER_ID="point-system.discordServerId",e.POINT_SYSTEM_DISCORD_ENABLED="point-system.discordEnabled",e.POINT_SYSTEM_TWITTER_CLIENT_ID="point-system.twitterClientId",e.POINT_SYSTEM_TWITTER_CLIENT_SECRET="point-system.twitterClientSecret",e.POINT_SYSTEM_TWITTER_BEARER_TOKEN="point-system.twitterBearerToken",e.POINT_SYSTEM_TWITTER_REFRESH_TOKEN="point-system.twitterRefreshToken",e.POINT_SYSTEM_TWITTER_ENABLED="point-system.twitterEnabled",e.POINT_SYSTEM_TWITTER_JOB_ENABLED="point-system.twitterJobEnabled",e.POINT_SYSTEM_TWITTER_HASHTAGS="point-system.twitterHashtags",e.POINT_SYSTEM_TWITTER_TWEET_EXP_TIME="point-system.twitterPostDefaultExpirationTime",e.POINT_SYSTEM_TWITTER_ACCOUNT_NAME="point-system.twitterAccountName",e.POINT_SYSTEM_TWITTER_ACCOUNT_ID="point-system.twitterAccountId",e.POINT_SYSTEM_TWITTER_WEBHOOK_TOKEN="point-system.twitterWebhookToken",e.POINT_SYSTEM_GUIDE_LINK="point-system.guideLink",e))(d||{}),m=(n=>(n.DISABLED="disabled",n.ENABLED_FOR_ALL="enabled for all",n.ENABLED_FOR_AFFILIATES="enabled for affiliates",n))(m||{}),c=(b=>(b.API_TOKEN="apiToken",b.CLIENT_ID="clientId",b.CLIENT_SECRET="clientSecret",b.BEARER_TOKEN="bearerToken",b.REFRESH_TOKEN="refreshToken",b.ACCESS_TOKEN="accessToken",b))(c||{}),S={"point-system.telegramApiToken":"apiToken","point-system.discordClientId":"clientId","point-system.discordClientSecret":"clientSecret","point-system.twitterClientSecret":"clientSecret","point-system.twitterClientId":"clientId","point-system.twitterBearerToken":"bearerToken","point-system.twitterRefreshToken":"refreshToken"},C=["primary-1","primary-2","main-background","primary-text","module-background","buy-text","buy-background","sell-text","sell-background","secondary-text","input-background-default","input-background-hover","input-background-disabled","input-border-default","module-border","button-disabled","button-border","input-border-active","active-element-default","hover-element-default","dropdown-shadow","button-text","pair-active-row"],D=`{"theme1":{"value":"${process.env.FRONTEND_URL}/Theme%3DDark.svg","active":true},"theme2":{"value":"${process.env.FRONTEND_URL}/Theme%3DLight.svg","active":true},"theme3":{"value":"${process.env.FRONTEND_URL}/Theme%3DLight.svg","active":true}}`,L='{"theme1":{"name":"dark","active":true,"value":{"primary-1":"rgba(118, 63, 229, 1)","primary-2":"rgba(249, 132, 146, 1)","main-background":"rgba(1, 1, 1, 1)","primary-text":"rgba(255, 255, 255, 1)","module-background":"rgba(19, 23, 34, 1)","buy-text":"rgba(82, 164, 154, 1)","buy-background":"rgba(2, 199, 122, 0.25)","sell-text":"rgba(221, 94, 86, 1)","sell-background":"rgba(255, 59, 105, 0.25)","secondary-text":"rgba(127, 127, 127, 1)","input-background-default":"rgba(13, 15, 21, 1)","input-background-hover":"rgba(28, 33, 45, 1)","input-background-disabled":"rgba(25, 29, 41, 1)","input-border-default":"rgba(28, 33, 45, 1)","module-border":"rgba(28, 33, 45, 1)","button-disabled":"rgba(111, 113, 118, 1)","button-border":"rgba(255, 255, 255, 1)","input-border-active":"rgba(185, 163, 238, 1)","active-element-default":"rgba(230, 136, 150, 1)","hover-element-default":"rgba(185, 163, 238, 1)","dropdown-shadow":"rgba(154, 92, 253, 0.45)","button-text":"rgba(255, 255, 255, 1)","pair-active-row":"rgba(28, 33, 45, 1)"}},"theme2":{"name":"light","active":true,"value":{"primary-1":"rgba(118, 63, 229, 1)","primary-2":"rgba(249, 132, 146, 1)","main-background":"rgba(249, 248, 248, 1)","primary-text":"rgba(0, 0, 0, 1)","module-background":"rgba(255, 255, 255, 1)","buy-text":"rgba(0, 112, 98, 1)","buy-background":"rgba(0, 112, 98, 0.25)","sell-text":"rgba(195, 12, 1, 1)","sell-background":"rgba(255, 59, 105, 0.25)","secondary-text":"rgba(127, 127, 127, 1)","button-disabled":"rgba(203, 199, 199, 1)","input-background-default":"rgba(255, 255, 255, 1)","input-background-hover":"rgba(249, 248, 248, 1)","input-background-disabled":"rgba(249, 248, 248, 1)","input-border-default":"rgba(228, 225, 225, 1)","module-border":"rgba(228, 225, 225, 1)","button-border":"rgba(170, 167, 167, 1)","input-border-active":"rgba(0, 0, 0, 1)","active-element-default":"rgba(230, 136, 150, 1)","hover-element-default":"rgba(185, 163, 238, 1)","dropdown-shadow":"rgba(154, 92, 253, 0.45)","button-text":"rgba(255, 255, 255, 1)","pair-active-row":"rgb(249, 248, 248)"}},"theme3":{"name":"purple","active":true,"value":{"primary-1":"rgba(118, 63, 229, 1)","primary-2":"rgba(249, 132, 146, 1)","main-background":"rgba(255, 255, 255, 1)","primary-text":"rgba(0, 0, 0, 1)","secondary-text":"rgba(127, 127, 127, 1)","buy-text":"rgba(0, 112, 98, 1)","sell-text":"rgba(195, 12, 1, 1)","buy-background":"rgba(0, 112, 98, 0.25)","sell-background":"rgba(255, 59, 105, 0.25)","module-background":"rgba(254, 250, 255, 1)","module-border":"rgba(228, 225, 225, 1)","input-background-default":"rgba(255, 255, 255, 1)","input-background-hover":"rgba(249, 248, 248, 1)","input-background-disabled":"rgba(254, 250, 255, 1)","input-border-default":"rgba(228, 225, 225, 1)","input-border-active":"rgba(0, 0, 0, 1)","button-border":"rgba(170, 167, 167, 1)","button-disabled":"rgba(203, 199, 199, 1)","active-element-default":"rgba(230, 136, 150, 1)","hover-element-default":"rgba(185, 163, 238, 1)","dropdown-shadow":"rgba(154, 92, 253, 0.45)","button-text":"rgba(255, 255, 255, 1)","pair-active-row":"rgb(249, 248, 248)"}}}',_=(n=>(n.theme1='{"name":"dark","id":"theme1","active":true, "chartColors":{"bullish_candle_color": "rgba(2, 199, 122, 0.25)","bearish_candle_color": "rgba(221, 94, 86, 1)","bullish_wick_color": "rgba(2, 199, 122, 0.25)","bearish_wick_color": "rgba(221, 94, 86, 1)","bullish_outline_color": "rgba(2, 199, 122, 0.25)","bearish_outline_color": "rgba(221, 94, 86, 1)","line_color": "rgba(41, 98, 255, 1)","chart_background": "rgba(19, 23, 34, 1)","chart_text": "rgba(127, 127, 127, 1)"}, "colors":{"primary-1":"rgba(118, 63, 229, 1)","primary-2":"rgba(249, 132, 146, 1)","main-background":"rgba(1, 1, 1, 1)","primary-text":"rgba(255, 255, 255, 1)","module-background":"rgba(19, 23, 34, 1)","buy-text":"rgba(82, 164, 154, 1)","buy-background":"rgba(2, 199, 122, 0.25)","sell-text":"rgba(221, 94, 86, 1)","sell-background":"rgba(255, 59, 105, 0.25)","secondary-text":"rgba(127, 127, 127, 1)","input-background-default":"rgba(13, 15, 21, 1)","input-background-hover":"rgba(28, 33, 45, 1)","input-background-disabled":"rgba(25, 29, 41, 1)","input-border-default":"rgba(28, 33, 45, 1)","module-border":"rgba(28, 33, 45, 1)","button-disabled":"rgba(111, 113, 118, 1)","button-border":"rgba(255, 255, 255, 1)","input-border-active":"rgba(185, 163, 238, 1)","active-element-default":"rgba(230, 136, 150, 1)","hover-element-default":"rgba(185, 163, 238, 1)","dropdown-shadow":"rgba(154, 92, 253, 0.45)","button-text":"rgba(255, 255, 255, 1)","pair-active-row":"rgba(28, 33, 45, 1)"}}',n.theme2='{"name":"light","id":"theme2","active":true, "chartColors":{"bullish_candle_color": "rgba(0, 112, 98, 1)","bearish_candle_color": "rgba(195, 12, 1, 1)","bullish_wick_color": "rgba(0, 112, 98, 1)","bearish_wick_color": "rgba(195, 12, 1, 1)","bullish_outline_color": "rgba(0, 112, 98, 1)","bearish_outline_color": "rgba(195, 12, 1, 1)","line_color": "rgba(41, 98, 255, 1)","chart_background": "rgba(255, 255, 255, 1)","chart_text": "rgba(127, 127, 127, 1)"}, "colors":{"primary-1":"rgba(118, 63, 229, 1)","primary-2":"rgba(249, 132, 146, 1)","main-background":"rgba(249, 248, 248, 1)","primary-text":"rgba(0, 0, 0, 1)","module-background":"rgba(255, 255, 255, 1)","buy-text":"rgba(0, 112, 98, 1)","buy-background":"rgba(0, 112, 98, 0.25)","sell-text":"rgba(195, 12, 1, 1)","sell-background":"rgba(255, 59, 105, 0.25)","secondary-text":"rgba(127, 127, 127, 1)","button-disabled":"rgba(203, 199, 199, 1)","input-background-default":"rgba(255, 255, 255, 1)","input-background-hover":"rgba(249, 248, 248, 1)","input-background-disabled":"rgba(249, 248, 248, 1)","input-border-default":"rgba(228, 225, 225, 1)","module-border":"rgba(228, 225, 225, 1)","button-border":"rgba(170, 167, 167, 1)","input-border-active":"rgba(0, 0, 0, 1)","active-element-default":"rgba(230, 136, 150, 1)","hover-element-default":"rgba(185, 163, 238, 1)","dropdown-shadow":"rgba(154, 92, 253, 0.45)","button-text":"rgba(255, 255, 255, 1)","pair-active-row":"rgb(249, 248, 248)"}}',n.theme3='{"name":"purple","id":"theme3","active":true, "chartColors":{"bullish_candle_color": "rgba(0, 112, 98, 1)","bearish_candle_color": "rgba(195, 12, 1, 1)","bullish_wick_color": "rgba(0, 112, 98, 1)","bearish_wick_color": "rgba(195, 12, 1, 1)","bullish_outline_color": "rgba(0, 112, 98, 1)","bearish_outline_color": "rgba(195, 12, 1, 1)","line_color": "rgba(41, 98, 255, 1)","chart_background": "rgba(254, 250, 255, 1)","chart_text": "rgba(127, 127, 127, 1)"}, "colors":{"primary-1":"rgba(118, 63, 229, 1)","primary-2":"rgba(249, 132, 146, 1)","main-background":"rgba(255, 255, 255, 1)","primary-text":"rgba(0, 0, 0, 1)","secondary-text":"rgba(127, 127, 127, 1)","buy-text":"rgba(0, 112, 98, 1)","sell-text":"rgba(195, 12, 1, 1)","buy-background":"rgba(0, 112, 98, 0.25)","sell-background":"rgba(255, 59, 105, 0.25)","module-background":"rgba(254, 250, 255, 1)","module-border":"rgba(228, 225, 225, 1)","input-background-default":"rgba(255, 255, 255, 1)","input-background-hover":"rgba(249, 248, 248, 1)","input-background-disabled":"rgba(254, 250, 255, 1)","input-border-default":"rgba(228, 225, 225, 1)","input-border-active":"rgba(0, 0, 0, 1)","button-border":"rgba(170, 167, 167, 1)","button-disabled":"rgba(203, 199, 199, 1)","active-element-default":"rgba(230, 136, 150, 1)","hover-element-default":"rgba(185, 163, 238, 1)","dropdown-shadow":"rgba(154, 92, 253, 0.45)","button-text":"rgba(255, 255, 255, 1)","pair-active-row":"rgb(249, 248, 248)"}}',n))(_||{});var T=(r=>(r.STABLE="stable",r.CPMM="constant_product",r.LEND="lending",r.NANO="nano",r.MVNANO="mvnano",r))(T||{}),E=(r=>(r[r.ultrade=0]="ultrade",r[r.tinyman=1]="tinyman",r[r.pactfi=2]="pactfi",r[r.humble=3]="humble",r[r.algofi=4]="algofi",r))(E||{}),y=(r=>(r.ultrade="U",r.tinyman="T",r.pactfi="P",r.humble="H",r.algofi="A",r))(y||{}),x=(r=>(r[r.ultrade=1]="ultrade",r[r.tinyman=2]="tinyman",r[r.pactfi=1]="pactfi",r[r.humble=1]="humble",r[r.algofi=2]="algofi",r))(x||{}),u={V1_1:"v1_1",V2:"v2"},w={[u.V1_1]:{testnet:62368684,mainnet:552635992},[u.V2]:{testnet:148607e3,mainnet:1002541853}},N=(i=>(i.ASSETS="assets.json",i.TOP_ASSETS="topAssets.json",i))(N||{});var f=(t=>(t.last_7_days="last_7_days",t.last_30_days="last_30_days",t.last_90_days="last_90_days",t.last_year="last_year",t))(f||{}),l=class{constructor(){this.timeRange="last_30_days";this.sortBy="volume_usd";this.order="desc";this.limit=20;this.page=1}},p=class{constructor(){this.timeRange="last_30_days";this.sortBy="volume_usd";this.order="desc";this.limit=20;this.page=1}},h=(t=>(t.volume="volume",t.fees="fees",t.orders="orders",t.dau="dau",t))(h||{}),g=class{constructor(){this.type="volume";this.timeRange="last_7_days"}};var k=(r=>(r.PREPARING="provisioning",r.STOPPING="stopping",r.RUNNING="running",r.STOPPED="stopped",r.FAILED="failed",r))(k||{});0&&(module.exports={AffDashboardVisibilitySettingEnum,AmmBucketKeys,AmmChars,AmmForeignResources,AmmIds,CONTRACT_VERSION,ChartQueryDto,CredentialNameEnum,HummingbotInstanceStatus,PairsQueryDto,PoolType,SettingIds,SmallTimeframeEnum,StatisticTypeQuery,UsersQueryDto,VALIDATOR_APP_ID,defaultLogoSettingValue,defaultThemeSettingValue,defaultThemesValue,requiredColors,settingIdToSecretType});
|
|
@@ -24,6 +24,7 @@ export declare enum SettingIds {
|
|
|
24
24
|
APPEARANCE_CHART_INT = "appearance.chartInt",
|
|
25
25
|
PINNED_PAIRS = "markets.pinnedPairs",
|
|
26
26
|
KYC_TRADE_REQUIREMENT_ENABLED = "markets.kycTradeRequirementEnabled",
|
|
27
|
+
FORCE_SETTING_FLAG = "company.forceSetting",
|
|
27
28
|
AFFILIATE_DASHBOARD_VISIBILITY = "product.affiliateDashboardVisibility",
|
|
28
29
|
AFFILIATE_DASHBOARD_THRESHOLD = "product.affiliateDashboardThreshold",
|
|
29
30
|
AFFILIATE_DEFAULT_FEE_SHARE = "product.affiliateDefaultFeeShare",
|