@sofaws/dapp-core
Version:
A library to hold the main logic for a dapp on the Elrond Network
86 lines (85 loc) • 33.3 kB
JavaScript
"use strict";var Br=Object.create;var D=Object.defineProperty;var Ar=Object.getOwnPropertyDescriptor;var Ur=Object.getOwnPropertyNames;var Ir=Object.getPrototypeOf,Cr=Object.prototype.hasOwnProperty;var Lr=(e,r)=>()=>(e&&(r=e(e=0)),r);var N=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Sr=(e,r)=>{for(var t in r)D(e,t,{get:r[t],enumerable:!0})},rr=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of Ur(r))!Cr.call(e,i)&&i!==t&&D(e,i,{get:()=>r[i],enumerable:!(n=Ar(r,i))||n.enumerable});return e};var tr=(e,r,t)=>(t=e!=null?Br(Ir(e)):{},rr(r||!e||!e.__esModule?D(t,"default",{value:e,enumerable:!0}):t,e)),kr=e=>rr(D({},"__esModule",{value:!0}),e);var ir=N(W=>{"use strict";d();W.byteLength=Rr;W.toByteArray=Nr;W.fromByteArray=qr;var b=[],w=[],Mr=typeof Uint8Array!="undefined"?Uint8Array:Array,X="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(A=0,er=X.length;A<er;++A)b[A]=X[A],w[X.charCodeAt(A)]=A;var A,er;w["-".charCodeAt(0)]=62;w["_".charCodeAt(0)]=63;function nr(e){var r=e.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=e.indexOf("=");t===-1&&(t=r);var n=t===r?0:4-t%4;return[t,n]}function Rr(e){var r=nr(e),t=r[0],n=r[1];return(t+n)*3/4-n}function Dr(e,r,t){return(r+t)*3/4-t}function Nr(e){var r,t=nr(e),n=t[0],i=t[1],a=new Mr(Dr(e,n,i)),o=0,c=i>0?n-4:n,p;for(p=0;p<c;p+=4)r=w[e.charCodeAt(p)]<<18|w[e.charCodeAt(p+1)]<<12|w[e.charCodeAt(p+2)]<<6|w[e.charCodeAt(p+3)],a[o++]=r>>16&255,a[o++]=r>>8&255,a[o++]=r&255;return i===2&&(r=w[e.charCodeAt(p)]<<2|w[e.charCodeAt(p+1)]>>4,a[o++]=r&255),i===1&&(r=w[e.charCodeAt(p)]<<10|w[e.charCodeAt(p+1)]<<4|w[e.charCodeAt(p+2)]>>2,a[o++]=r>>8&255,a[o++]=r&255),a}function Wr(e){return b[e>>18&63]+b[e>>12&63]+b[e>>6&63]+b[e&63]}function Yr(e,r,t){for(var n,i=[],a=r;a<t;a+=3)n=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(e[a+2]&255),i.push(Wr(n));return i.join("")}function qr(e){for(var r,t=e.length,n=t%3,i=[],a=16383,o=0,c=t-n;o<c;o+=a)i.push(Yr(e,o,o+a>c?c:o+a));return n===1?(r=e[t-1],i.push(b[r>>2]+b[r<<4&63]+"==")):n===2&&(r=(e[t-2]<<8)+e[t-1],i.push(b[r>>10]+b[r>>4&63]+b[r<<2&63]+"=")),i.join("")}});var ar=N(G=>{d();G.read=function(e,r,t,n,i){var a,o,c=i*8-n-1,p=(1<<c)-1,u=p>>1,h=-7,l=t?i-1:0,x=t?-1:1,m=e[r+l];for(l+=x,a=m&(1<<-h)-1,m>>=-h,h+=c;h>0;a=a*256+e[r+l],l+=x,h-=8);for(o=a&(1<<-h)-1,a>>=-h,h+=n;h>0;o=o*256+e[r+l],l+=x,h-=8);if(a===0)a=1-u;else{if(a===p)return o?NaN:(m?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-u}return(m?-1:1)*o*Math.pow(2,a-n)};G.write=function(e,r,t,n,i,a){var o,c,p,u=a*8-i-1,h=(1<<u)-1,l=h>>1,x=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,m=n?0:a-1,C=n?1:-1,vr=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(c=isNaN(r)?1:0,o=h):(o=Math.floor(Math.log(r)/Math.LN2),r*(p=Math.pow(2,-o))<1&&(o--,p*=2),o+l>=1?r+=x/p:r+=x*Math.pow(2,1-l),r*p>=2&&(o++,p/=2),o+l>=h?(c=0,o=h):o+l>=1?(c=(r*p-1)*Math.pow(2,i),o=o+l):(c=r*Math.pow(2,l-1)*Math.pow(2,i),o=0));i>=8;e[t+m]=c&255,m+=C,c/=256,i-=8);for(o=o<<i|c,u+=i;u>0;e[t+m]=o&255,m+=C,o/=256,u-=8);e[t+m-C]|=vr*128}});var xr=N(S=>{"use strict";d();var J=ir(),L=ar(),or=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;S.Buffer=s;S.SlowBuffer=Or;S.INSPECT_MAX_BYTES=50;var q=2147483647;S.kMaxLength=q;s.TYPED_ARRAY_SUPPORT=zr();!s.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function zr(){try{var e=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(e,r),e.foo()===42}catch(t){return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.buffer}});Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.byteOffset}});function F(e){if(e>q)throw new RangeError('The value "'+e+'" is invalid for option "size"');var r=new Uint8Array(e);return Object.setPrototypeOf(r,s.prototype),r}function s(e,r,t){if(typeof e=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return K(e)}return pr(e,r,t)}s.poolSize=8192;function pr(e,r,t){if(typeof e=="string")return Xr(e,r);if(ArrayBuffer.isView(e))return Gr(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(T(e,ArrayBuffer)||e&&T(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(T(e,SharedArrayBuffer)||e&&T(e.buffer,SharedArrayBuffer)))return Q(e,r,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return s.from(n,r,t);var i=Jr(e);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return s.from(e[Symbol.toPrimitive]("string"),r,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}s.from=function(e,r,t){return pr(e,r,t)};Object.setPrototypeOf(s.prototype,Uint8Array.prototype);Object.setPrototypeOf(s,Uint8Array);function lr(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function Hr(e,r,t){return lr(e),e<=0?F(e):r!==void 0?typeof t=="string"?F(e).fill(r,t):F(e).fill(r):F(e)}s.alloc=function(e,r,t){return Hr(e,r,t)};function K(e){return lr(e),F(e<0?0:Z(e)|0)}s.allocUnsafe=function(e){return K(e)};s.allocUnsafeSlow=function(e){return K(e)};function Xr(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!s.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var t=ur(e,r)|0,n=F(t),i=n.write(e,r);return i!==t&&(n=n.slice(0,i)),n}function O(e){for(var r=e.length<0?0:Z(e.length)|0,t=F(r),n=0;n<r;n+=1)t[n]=e[n]&255;return t}function Gr(e){if(T(e,Uint8Array)){var r=new Uint8Array(e);return Q(r.buffer,r.byteOffset,r.byteLength)}return O(e)}function Q(e,r,t){if(r<0||e.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<r+(t||0))throw new RangeError('"length" is outside of buffer bounds');var n;return r===void 0&&t===void 0?n=new Uint8Array(e):t===void 0?n=new Uint8Array(e,r):n=new Uint8Array(e,r,t),Object.setPrototypeOf(n,s.prototype),n}function Jr(e){if(s.isBuffer(e)){var r=Z(e.length)|0,t=F(r);return t.length===0||e.copy(t,0,0,r),t}if(e.length!==void 0)return typeof e.length!="number"||$(e.length)?F(0):O(e);if(e.type==="Buffer"&&Array.isArray(e.data))return O(e.data)}function Z(e){if(e>=q)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+q.toString(16)+" bytes");return e|0}function Or(e){return+e!=e&&(e=0),s.alloc(+e)}s.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==s.prototype};s.compare=function(r,t){if(T(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),T(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(r)||!s.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;for(var n=r.length,i=t.length,a=0,o=Math.min(n,i);a<o;++a)if(r[a]!==t[a]){n=r[a],i=t[a];break}return n<i?-1:i<n?1:0};s.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}};s.concat=function(r,t){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return s.alloc(0);var n;if(t===void 0)for(t=0,n=0;n<r.length;++n)t+=r[n].length;var i=s.allocUnsafe(t),a=0;for(n=0;n<r.length;++n){var o=r[n];if(T(o,Uint8Array))a+o.length>i.length?s.from(o).copy(i,a):Uint8Array.prototype.set.call(i,o,a);else if(s.isBuffer(o))o.copy(i,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=o.length}return i};function ur(e,r){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||T(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var t=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&t===0)return 0;for(var i=!1;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return V(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return wr(e).length;default:if(i)return n?-1:V(e).length;r=(""+r).toLowerCase(),i=!0}}s.byteLength=ur;function Qr(e,r,t){var n=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,r>>>=0,t<=r))return"";for(e||(e="utf8");;)switch(e){case"hex":return nt(this,r,t);case"utf8":case"utf-8":return fr(this,r,t);case"ascii":return tt(this,r,t);case"latin1":case"binary":return et(this,r,t);case"base64":return jr(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return it(this,r,t);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}s.prototype._isBuffer=!0;function U(e,r,t){var n=e[r];e[r]=e[t],e[t]=n}s.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 t=0;t<r;t+=2)U(this,t,t+1);return this};s.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 t=0;t<r;t+=4)U(this,t,t+3),U(this,t+1,t+2);return this};s.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 t=0;t<r;t+=8)U(this,t,t+7),U(this,t+1,t+6),U(this,t+2,t+5),U(this,t+3,t+4);return this};s.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?fr(this,0,r):Qr.apply(this,arguments)};s.prototype.toLocaleString=s.prototype.toString;s.prototype.equals=function(r){if(!s.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:s.compare(this,r)===0};s.prototype.inspect=function(){var r="",t=S.INSPECT_MAX_BYTES;return r=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(r+=" ... "),"<Buffer "+r+">"};or&&(s.prototype[or]=s.prototype.inspect);s.prototype.compare=function(r,t,n,i,a){if(T(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),!s.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(t===void 0&&(t=0),n===void 0&&(n=r?r.length:0),i===void 0&&(i=0),a===void 0&&(a=this.length),t<0||n>r.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&t>=n)return 0;if(i>=a)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,i>>>=0,a>>>=0,this===r)return 0;for(var o=a-i,c=n-t,p=Math.min(o,c),u=this.slice(i,a),h=r.slice(t,n),l=0;l<p;++l)if(u[l]!==h[l]){o=u[l],c=h[l];break}return o<c?-1:c<o?1:0};function hr(e,r,t,n,i){if(e.length===0)return-1;if(typeof t=="string"?(n=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,$(t)&&(t=i?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(i)return-1;t=e.length-1}else if(t<0)if(i)t=0;else return-1;if(typeof r=="string"&&(r=s.from(r,n)),s.isBuffer(r))return r.length===0?-1:sr(e,r,t,n,i);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):sr(e,[r],t,n,i);throw new TypeError("val must be string, number or Buffer")}function sr(e,r,t,n,i){var a=1,o=e.length,c=r.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||r.length<2)return-1;a=2,o/=2,c/=2,t/=2}function p(m,C){return a===1?m[C]:m.readUInt16BE(C*a)}var u;if(i){var h=-1;for(u=t;u<o;u++)if(p(e,u)===p(r,h===-1?0:u-h)){if(h===-1&&(h=u),u-h+1===c)return h*a}else h!==-1&&(u-=u-h),h=-1}else for(t+c>o&&(t=o-c),u=t;u>=0;u--){for(var l=!0,x=0;x<c;x++)if(p(e,u+x)!==p(r,x)){l=!1;break}if(l)return u}return-1}s.prototype.includes=function(r,t,n){return this.indexOf(r,t,n)!==-1};s.prototype.indexOf=function(r,t,n){return hr(this,r,t,n,!0)};s.prototype.lastIndexOf=function(r,t,n){return hr(this,r,t,n,!1)};function Vr(e,r,t,n){t=Number(t)||0;var i=e.length-t;n?(n=Number(n),n>i&&(n=i)):n=i;var a=r.length;n>a/2&&(n=a/2);for(var o=0;o<n;++o){var c=parseInt(r.substr(o*2,2),16);if($(c))return o;e[t+o]=c}return o}function Kr(e,r,t,n){return z(V(r,e.length-t),e,t,n)}function Zr(e,r,t,n){return z(st(r),e,t,n)}function $r(e,r,t,n){return z(wr(r),e,t,n)}function Pr(e,r,t,n){return z(ct(r,e.length-t),e,t,n)}s.prototype.write=function(r,t,n,i){if(t===void 0)i="utf8",n=this.length,t=0;else if(n===void 0&&typeof t=="string")i=t,n=this.length,t=0;else if(isFinite(t))t=t>>>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-t;if((n===void 0||n>a)&&(n=a),r.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return Vr(this,r,t,n);case"utf8":case"utf-8":return Kr(this,r,t,n);case"ascii":case"latin1":case"binary":return Zr(this,r,t,n);case"base64":return $r(this,r,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Pr(this,r,t,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}};s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function jr(e,r,t){return r===0&&t===e.length?J.fromByteArray(e):J.fromByteArray(e.slice(r,t))}function fr(e,r,t){t=Math.min(e.length,t);for(var n=[],i=r;i<t;){var a=e[i],o=null,c=a>239?4:a>223?3:a>191?2:1;if(i+c<=t){var p,u,h,l;switch(c){case 1:a<128&&(o=a);break;case 2:p=e[i+1],(p&192)===128&&(l=(a&31)<<6|p&63,l>127&&(o=l));break;case 3:p=e[i+1],u=e[i+2],(p&192)===128&&(u&192)===128&&(l=(a&15)<<12|(p&63)<<6|u&63,l>2047&&(l<55296||l>57343)&&(o=l));break;case 4:p=e[i+1],u=e[i+2],h=e[i+3],(p&192)===128&&(u&192)===128&&(h&192)===128&&(l=(a&15)<<18|(p&63)<<12|(u&63)<<6|h&63,l>65535&&l<1114112&&(o=l))}}o===null?(o=65533,c=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|o&1023),n.push(o),i+=c}return rt(n)}var cr=4096;function rt(e){var r=e.length;if(r<=cr)return String.fromCharCode.apply(String,e);for(var t="",n=0;n<r;)t+=String.fromCharCode.apply(String,e.slice(n,n+=cr));return t}function tt(e,r,t){var n="";t=Math.min(e.length,t);for(var i=r;i<t;++i)n+=String.fromCharCode(e[i]&127);return n}function et(e,r,t){var n="";t=Math.min(e.length,t);for(var i=r;i<t;++i)n+=String.fromCharCode(e[i]);return n}function nt(e,r,t){var n=e.length;(!r||r<0)&&(r=0),(!t||t<0||t>n)&&(t=n);for(var i="",a=r;a<t;++a)i+=pt[e[a]];return i}function it(e,r,t){for(var n=e.slice(r,t),i="",a=0;a<n.length-1;a+=2)i+=String.fromCharCode(n[a]+n[a+1]*256);return i}s.prototype.slice=function(r,t){var n=this.length;r=~~r,t=t===void 0?n:~~t,r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<r&&(t=r);var i=this.subarray(r,t);return Object.setPrototypeOf(i,s.prototype),i};function _(e,r,t){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+r>t)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(r,t,n){r=r>>>0,t=t>>>0,n||_(r,t,this.length);for(var i=this[r],a=1,o=0;++o<t&&(a*=256);)i+=this[r+o]*a;return i};s.prototype.readUintBE=s.prototype.readUIntBE=function(r,t,n){r=r>>>0,t=t>>>0,n||_(r,t,this.length);for(var i=this[r+--t],a=1;t>0&&(a*=256);)i+=this[r+--t]*a;return i};s.prototype.readUint8=s.prototype.readUInt8=function(r,t){return r=r>>>0,t||_(r,1,this.length),this[r]};s.prototype.readUint16LE=s.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||_(r,2,this.length),this[r]|this[r+1]<<8};s.prototype.readUint16BE=s.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||_(r,2,this.length),this[r]<<8|this[r+1]};s.prototype.readUint32LE=s.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||_(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};s.prototype.readUint32BE=s.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||_(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};s.prototype.readIntLE=function(r,t,n){r=r>>>0,t=t>>>0,n||_(r,t,this.length);for(var i=this[r],a=1,o=0;++o<t&&(a*=256);)i+=this[r+o]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*t)),i};s.prototype.readIntBE=function(r,t,n){r=r>>>0,t=t>>>0,n||_(r,t,this.length);for(var i=t,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*t)),o};s.prototype.readInt8=function(r,t){return r=r>>>0,t||_(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};s.prototype.readInt16LE=function(r,t){r=r>>>0,t||_(r,2,this.length);var n=this[r]|this[r+1]<<8;return n&32768?n|4294901760:n};s.prototype.readInt16BE=function(r,t){r=r>>>0,t||_(r,2,this.length);var n=this[r+1]|this[r]<<8;return n&32768?n|4294901760:n};s.prototype.readInt32LE=function(r,t){return r=r>>>0,t||_(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};s.prototype.readInt32BE=function(r,t){return r=r>>>0,t||_(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};s.prototype.readFloatLE=function(r,t){return r=r>>>0,t||_(r,4,this.length),L.read(this,r,!0,23,4)};s.prototype.readFloatBE=function(r,t){return r=r>>>0,t||_(r,4,this.length),L.read(this,r,!1,23,4)};s.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||_(r,8,this.length),L.read(this,r,!0,52,8)};s.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||_(r,8,this.length),L.read(this,r,!1,52,8)};function y(e,r,t,n,i,a){if(!s.isBuffer(e))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(t+n>e.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(r,t,n,i){if(r=+r,t=t>>>0,n=n>>>0,!i){var a=Math.pow(2,8*n)-1;y(this,r,t,n,a,0)}var o=1,c=0;for(this[t]=r&255;++c<n&&(o*=256);)this[t+c]=r/o&255;return t+n};s.prototype.writeUintBE=s.prototype.writeUIntBE=function(r,t,n,i){if(r=+r,t=t>>>0,n=n>>>0,!i){var a=Math.pow(2,8*n)-1;y(this,r,t,n,a,0)}var o=n-1,c=1;for(this[t+o]=r&255;--o>=0&&(c*=256);)this[t+o]=r/c&255;return t+n};s.prototype.writeUint8=s.prototype.writeUInt8=function(r,t,n){return r=+r,t=t>>>0,n||y(this,r,t,1,255,0),this[t]=r&255,t+1};s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||y(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2};s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(r,t,n){return r=+r,t=t>>>0,n||y(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2};s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(r,t,n){return r=+r,t=t>>>0,n||y(this,r,t,4,4294967295,0),this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255,t+4};s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(r,t,n){return r=+r,t=t>>>0,n||y(this,r,t,4,4294967295,0),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};s.prototype.writeIntLE=function(r,t,n,i){if(r=+r,t=t>>>0,!i){var a=Math.pow(2,8*n-1);y(this,r,t,n,a-1,-a)}var o=0,c=1,p=0;for(this[t]=r&255;++o<n&&(c*=256);)r<0&&p===0&&this[t+o-1]!==0&&(p=1),this[t+o]=(r/c>>0)-p&255;return t+n};s.prototype.writeIntBE=function(r,t,n,i){if(r=+r,t=t>>>0,!i){var a=Math.pow(2,8*n-1);y(this,r,t,n,a-1,-a)}var o=n-1,c=1,p=0;for(this[t+o]=r&255;--o>=0&&(c*=256);)r<0&&p===0&&this[t+o+1]!==0&&(p=1),this[t+o]=(r/c>>0)-p&255;return t+n};s.prototype.writeInt8=function(r,t,n){return r=+r,t=t>>>0,n||y(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1};s.prototype.writeInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||y(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2};s.prototype.writeInt16BE=function(r,t,n){return r=+r,t=t>>>0,n||y(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2};s.prototype.writeInt32LE=function(r,t,n){return r=+r,t=t>>>0,n||y(this,r,t,4,2147483647,-2147483648),this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24,t+4};s.prototype.writeInt32BE=function(r,t,n){return r=+r,t=t>>>0,n||y(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};function _r(e,r,t,n,i,a){if(t+n>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function yr(e,r,t,n,i){return r=+r,t=t>>>0,i||_r(e,r,t,4,34028234663852886e22,-34028234663852886e22),L.write(e,r,t,n,23,4),t+4}s.prototype.writeFloatLE=function(r,t,n){return yr(this,r,t,!0,n)};s.prototype.writeFloatBE=function(r,t,n){return yr(this,r,t,!1,n)};function mr(e,r,t,n,i){return r=+r,t=t>>>0,i||_r(e,r,t,8,17976931348623157e292,-17976931348623157e292),L.write(e,r,t,n,52,8),t+8}s.prototype.writeDoubleLE=function(r,t,n){return mr(this,r,t,!0,n)};s.prototype.writeDoubleBE=function(r,t,n){return mr(this,r,t,!1,n)};s.prototype.copy=function(r,t,n,i){if(!s.isBuffer(r))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),t>=r.length&&(t=r.length),t||(t=0),i>0&&i<n&&(i=n),i===n||r.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),r.length-t<i-n&&(i=r.length-t+n);var a=i-n;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,n,i):Uint8Array.prototype.set.call(r,this.subarray(n,i),t),a};s.prototype.fill=function(r,t,n,i){if(typeof r=="string"){if(typeof t=="string"?(i=t,t=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!s.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(r.length===1){var a=r.charCodeAt(0);(i==="utf8"&&a<128||i==="latin1")&&(r=a)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;t=t>>>0,n=n===void 0?this.length:n>>>0,r||(r=0);var o;if(typeof r=="number")for(o=t;o<n;++o)this[o]=r;else{var c=s.isBuffer(r)?r:s.from(r,i),p=c.length;if(p===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(o=0;o<n-t;++o)this[o+t]=c[o%p]}return this};var at=/[^+/0-9A-Za-z-_]/g;function ot(e){if(e=e.split("=")[0],e=e.trim().replace(at,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function V(e,r){r=r||1/0;for(var t,n=e.length,i=null,a=[],o=0;o<n;++o){if(t=e.charCodeAt(o),t>55295&&t<57344){if(!i){if(t>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=t;continue}if(t<56320){(r-=3)>-1&&a.push(239,191,189),i=t;continue}t=(i-55296<<10|t-56320)+65536}else i&&(r-=3)>-1&&a.push(239,191,189);if(i=null,t<128){if((r-=1)<0)break;a.push(t)}else if(t<2048){if((r-=2)<0)break;a.push(t>>6|192,t&63|128)}else if(t<65536){if((r-=3)<0)break;a.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((r-=4)<0)break;a.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return a}function st(e){for(var r=[],t=0;t<e.length;++t)r.push(e.charCodeAt(t)&255);return r}function ct(e,r){for(var t,n,i,a=[],o=0;o<e.length&&!((r-=2)<0);++o)t=e.charCodeAt(o),n=t>>8,i=t%256,a.push(i),a.push(n);return a}function wr(e){return J.toByteArray(ot(e))}function z(e,r,t,n){for(var i=0;i<n&&!(i+t>=r.length||i>=e.length);++i)r[i+t]=e[i];return i}function T(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function $(e){return e!==e}var pt=function(){for(var e="0123456789abcdef",r=new Array(256),t=0;t<16;++t)for(var n=t*16,i=0;i<16;++i)r[n+i]=e[t]+e[i];return r}()});var gr=N((xt,Er)=>{d();var f=Er.exports={},E,g;function P(){throw new Error("setTimeout has not been defined")}function j(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?E=setTimeout:E=P}catch(e){E=P}try{typeof clearTimeout=="function"?g=clearTimeout:g=j}catch(e){g=j}})();function dr(e){if(E===setTimeout)return setTimeout(e,0);if((E===P||!E)&&setTimeout)return E=setTimeout,setTimeout(e,0);try{return E(e,0)}catch(r){try{return E.call(null,e,0)}catch(t){return E.call(this,e,0)}}}function lt(e){if(g===clearTimeout)return clearTimeout(e);if((g===j||!g)&&clearTimeout)return g=clearTimeout,clearTimeout(e);try{return g(e)}catch(r){try{return g.call(null,e)}catch(t){return g.call(this,e)}}}var v=[],k=!1,I,H=-1;function ut(){!k||!I||(k=!1,I.length?v=I.concat(v):H=-1,v.length&&br())}function br(){if(!k){var e=dr(ut);k=!0;for(var r=v.length;r;){for(I=v,v=[];++H<r;)I&&I[H].run();H=-1,r=v.length}I=null,k=!1,lt(e)}}f.nextTick=function(e){var r=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)r[t-1]=arguments[t];v.push(new Tr(e,r)),v.length===1&&!k&&dr(br)};function Tr(e,r){this.fun=e,this.array=r}Tr.prototype.run=function(){this.fun.apply(null,this.array)};f.title="browser";f.browser=!0;f.env={};f.argv=[];f.version="";f.versions={};function B(){}f.on=B;f.addListener=B;f.once=B;f.off=B;f.removeListener=B;f.removeAllListeners=B;f.emit=B;f.prependListener=B;f.prependOnceListener=B;f.listeners=function(e){return[]};f.binding=function(e){throw new Error("process.binding is not supported")};f.cwd=function(){return"/"};f.chdir=function(e){throw new Error("process.chdir is not supported")};f.umask=function(){return 0}});var M,R,dt,d=Lr(()=>{M=tr(xr()),R=tr(gr()),dt=function(e){function r(){var n=this||self;return delete e.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return r();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:r});var t=__magic__;return t}(Object)});var ft={};Sr(ft,{css:()=>Fr,default:()=>ht});module.exports=kr(ft);d();var Fr=`.dapp-core-component__transactionsTable-styles__transactions-table {
border: none;
box-shadow: 0 0.75rem 1.875rem 0 rgba(90, 97, 105, 0.05);
border-radius: 0.75rem;
color: #000;
}
.dapp-core-component__transactionsTable-styles__transactions-table .dapp-core-component__transactionsTable-styles__transactions-table-header {
border-bottom: none !important;
border-radius: 0.75rem !important;
padding: 1.75rem 2rem;
}
.dapp-core-component__transactionsTable-styles__transactions-table .dapp-core-component__transactionsTable-styles__transactions-table-header h6 {
margin-bottom: 0;
}
.dapp-core-component__transactionsTable-styles__transactions-table .dapp-core-component__transactionsTable-styles__table-wrapper {
overflow-x: auto;
}
.dapp-core-component__transactionsTable-styles__transactions-table .dapp-core-component__transactionsTable-styles__table-wrapper .dapp-core-component__transactionsTable-styles__table {
white-space: nowrap;
max-height: 500px;
width: 100%;
}
.dapp-core-component__transactionsTable-styles__transactions-table .dapp-core-component__transactionsTable-styles__table-wrapper .dapp-core-component__transactionsTable-styles__table tr {
border-top: 1px solid #e2e2e2;
}
.dapp-core-component__transactionsTable-styles__transactions-table .dapp-core-component__transactionsTable-styles__table-wrapper .dapp-core-component__transactionsTable-styles__table th {
white-space: nowrap;
padding: 0.75rem !important;
background-color: #fbfbfb;
border: 0;
vertical-align: middle;
font-weight: 400;
}
.dapp-core-component__transactionsTable-styles__transactions-table .dapp-core-component__transactionsTable-styles__table-wrapper .dapp-core-component__transactionsTable-styles__table th:first-child {
padding-left: 2rem !important;
}
.dapp-core-component__transactionsTable-styles__transactions-table .dapp-core-component__transactionsTable-styles__table-wrapper .dapp-core-component__transactionsTable-styles__table td {
white-space: nowrap;
width: 0.1%;
white-space: nowrap;
}
.dapp-core-component__transactionsTable-styles__transactions-table .dapp-core-component__transactionsTable-styles__table-wrapper .dapp-core-component__transactionsTable-styles__table td:first-child {
padding-left: 1.25rem !important;
}
.dapp-core-component__transactionsTable-styles__transactions-table .dapp-core-component__transactionsTable-styles__table-wrapper .dapp-core-component__transactionsTable-styles__table .dapp-core-component__transactionsTable-styles__transaction-cell {
padding: 0;
margin: 0.75rem;
font-variant-numeric: slashed-zero;
color: #000;
}
.dapp-core-component__transactionsTable-styles__transactions-table .dapp-core-component__transactionsTable-styles__table-wrapper .dapp-core-component__transactionsTable-styles__table .dapp-core-component__transactionsTable-styles__transaction-cell a {
color: #1f43f4 !important;
font-weight: 500;
}
.dapp-core-component__transactionsTable-styles__transactions-table .dapp-core-component__transactionsTable-styles__table-wrapper .dapp-core-component__transactionsTable-styles__table .dapp-core-component__transactionsTable-styles__transaction-cell-margin {
margin-left: 0;
}
.dapp-core-component__transactionsTable-styles__transactions-table .dapp-core-component__transactionsTable-styles__table-wrapper .dapp-core-component__transactionsTable-styles__table .dapp-core-component__transactionsTable-styles__transaction-cell-margin [class*=left] span,
.dapp-core-component__transactionsTable-styles__transactions-table .dapp-core-component__transactionsTable-styles__table-wrapper .dapp-core-component__transactionsTable-styles__table .dapp-core-component__transactionsTable-styles__transaction-cell-margin [class*=right] span {
font-size: 1rem;
color: #1f43f4 !important;
}
.dapp-core-component__transactionsTable-styles__transactions-table .dapp-core-component__transactionsTable-styles__table-wrapper .dapp-core-component__transactionsTable-styles__table .dapp-core-component__transactionsTable-styles__transaction-cell-margin [class*=ellipsis] {
color: #1f43f4 !important;
}
.dapp-core-component__transactionsTable-styles__transactions-table .dapp-core-component__transactionsTable-styles__table-wrapper .dapp-core-component__transactionsTable-styles__table .dapp-core-component__transactionsTable-styles__transaction-cell-overflow {
max-width: 9rem;
overflow: hidden;
text-overflow: ellipsis;
}
.dapp-core-component__transactionsTable-styles__transactions-table .dapp-core-component__transactionsTable-styles__table-wrapper .dapp-core-component__transactionsTable-styles__table .dapp-core-component__transactionsTable-styles__transaction-cell-link {
position: relative;
text-decoration: none;
}
.dapp-core-component__transactionsTable-styles__transactions-table .dapp-core-component__transactionsTable-styles__table-wrapper .dapp-core-component__transactionsTable-styles__table .dapp-core-component__transactionsTable-styles__transaction-cell-font-small {
font-size: 0.75rem;
}`;document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(Fr));var ht={"transactions-table":"dapp-core-component__transactionsTable-styles__transactions-table",transactionsTable:"dapp-core-component__transactionsTable-styles__transactions-table","transactions-table-header":"dapp-core-component__transactionsTable-styles__transactions-table-header",transactionsTableHeader:"dapp-core-component__transactionsTable-styles__transactions-table-header","table-wrapper":"dapp-core-component__transactionsTable-styles__table-wrapper",tableWrapper:"dapp-core-component__transactionsTable-styles__table-wrapper",table:"dapp-core-component__transactionsTable-styles__table","transaction-cell":"dapp-core-component__transactionsTable-styles__transaction-cell",transactionCell:"dapp-core-component__transactionsTable-styles__transaction-cell","transaction-cell-margin":"dapp-core-component__transactionsTable-styles__transaction-cell-margin",transactionCellMargin:"dapp-core-component__transactionsTable-styles__transaction-cell-margin","transaction-cell-overflow":"dapp-core-component__transactionsTable-styles__transaction-cell-overflow",transactionCellOverflow:"dapp-core-component__transactionsTable-styles__transaction-cell-overflow","transaction-cell-link":"dapp-core-component__transactionsTable-styles__transaction-cell-link",transactionCellLink:"dapp-core-component__transactionsTable-styles__transaction-cell-link","transaction-cell-font-small":"dapp-core-component__transactionsTable-styles__transaction-cell-font-small",transactionCellFontSmall:"dapp-core-component__transactionsTable-styles__transaction-cell-font-small"};0&&(module.exports={css});
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
//# sourceMappingURL=transactionsTable.styles.js.map