UNPKG

@sofaws/dapp-core

Version:

A library to hold the main logic for a dapp on the Elrond Network

977 lines (843 loc) 122 kB
"use strict";var Be=Object.create;var R=Object.defineProperty;var Ae=Object.getOwnPropertyDescriptor;var Se=Object.getOwnPropertyNames;var Ie=Object.getPrototypeOf,Te=Object.prototype.hasOwnProperty;var Ue=(t,e)=>()=>(t&&(e=t(t=0)),e);var j=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Ce=(t,e)=>{for(var o in e)R(t,o,{get:e[o],enumerable:!0})},ee=(t,e,o,_)=>{if(e&&typeof e=="object"||typeof e=="function")for(let p of Se(e))!Te.call(t,p)&&p!==o&&R(t,p,{get:()=>e[p],enumerable:!(_=Ae(e,p))||_.enumerable});return t};var oe=(t,e,o)=>(o=t!=null?Be(Ie(t)):{},ee(e||!t||!t.__esModule?R(o,"default",{value:t,enumerable:!0}):o,t)),Le=t=>ee(R({},"__esModule",{value:!0}),t);var pe=j(D=>{"use strict";x();D.byteLength=Me;D.toByteArray=je;D.fromByteArray=We;var w=[],u=[],Ne=typeof Uint8Array!="undefined"?Uint8Array:Array,H="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(A=0,te=H.length;A<te;++A)w[A]=H[A],u[H.charCodeAt(A)]=A;var A,te;u["-".charCodeAt(0)]=62;u["_".charCodeAt(0)]=63;function _e(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var o=t.indexOf("=");o===-1&&(o=e);var _=o===e?0:4-o%4;return[o,_]}function Me(t){var e=_e(t),o=e[0],_=e[1];return(o+_)*3/4-_}function Re(t,e,o){return(e+o)*3/4-o}function je(t){var e,o=_e(t),_=o[0],p=o[1],n=new Ne(Re(t,_,p)),r=0,c=p>0?_-4:_,a;for(a=0;a<c;a+=4)e=u[t.charCodeAt(a)]<<18|u[t.charCodeAt(a+1)]<<12|u[t.charCodeAt(a+2)]<<6|u[t.charCodeAt(a+3)],n[r++]=e>>16&255,n[r++]=e>>8&255,n[r++]=e&255;return p===2&&(e=u[t.charCodeAt(a)]<<2|u[t.charCodeAt(a+1)]>>4,n[r++]=e&255),p===1&&(e=u[t.charCodeAt(a)]<<10|u[t.charCodeAt(a+1)]<<4|u[t.charCodeAt(a+2)]>>2,n[r++]=e>>8&255,n[r++]=e&255),n}function De(t){return w[t>>18&63]+w[t>>12&63]+w[t>>6&63]+w[t&63]}function ze(t,e,o){for(var _,p=[],n=e;n<o;n+=3)_=(t[n]<<16&16711680)+(t[n+1]<<8&65280)+(t[n+2]&255),p.push(De(_));return p.join("")}function We(t){for(var e,o=t.length,_=o%3,p=[],n=16383,r=0,c=o-_;r<c;r+=n)p.push(ze(t,r,r+n>c?c:r+n));return _===1?(e=t[o-1],p.push(w[e>>2]+w[e<<4&63]+"==")):_===2&&(e=(t[o-2]<<8)+t[o-1],p.push(w[e>>10]+w[e>>4&63]+w[e<<2&63]+"=")),p.join("")}});var ne=j(G=>{x();G.read=function(t,e,o,_,p){var n,r,c=p*8-_-1,a=(1<<c)-1,h=a>>1,i=-7,d=o?p-1:0,b=o?-1:1,f=t[e+d];for(d+=b,n=f&(1<<-i)-1,f>>=-i,i+=c;i>0;n=n*256+t[e+d],d+=b,i-=8);for(r=n&(1<<-i)-1,n>>=-i,i+=_;i>0;r=r*256+t[e+d],d+=b,i-=8);if(n===0)n=1-h;else{if(n===a)return r?NaN:(f?-1:1)*(1/0);r=r+Math.pow(2,_),n=n-h}return(f?-1:1)*r*Math.pow(2,n-_)};G.write=function(t,e,o,_,p,n){var r,c,a,h=n*8-p-1,i=(1<<h)-1,d=i>>1,b=p===23?Math.pow(2,-24)-Math.pow(2,-77):0,f=_?0:n-1,T=_?1:-1,Fe=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(c=isNaN(e)?1:0,r=i):(r=Math.floor(Math.log(e)/Math.LN2),e*(a=Math.pow(2,-r))<1&&(r--,a*=2),r+d>=1?e+=b/a:e+=b*Math.pow(2,1-d),e*a>=2&&(r++,a/=2),r+d>=i?(c=0,r=i):r+d>=1?(c=(e*a-1)*Math.pow(2,p),r=r+d):(c=e*Math.pow(2,d-1)*Math.pow(2,p),r=0));p>=8;t[o+f]=c&255,f+=T,c/=256,p-=8);for(r=r<<p|c,h+=p;h>0;t[o+f]=r&255,f+=T,r/=256,h-=8);t[o+f-T]|=Fe*128}});var be=j(C=>{"use strict";x();var Y=pe(),U=ne(),re=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;C.Buffer=m;C.SlowBuffer=Ve;C.INSPECT_MAX_BYTES=50;var W=2147483647;C.kMaxLength=W;m.TYPED_ARRAY_SUPPORT=Xe();!m.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 Xe(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch(o){return!1}}Object.defineProperty(m.prototype,"parent",{enumerable:!0,get:function(){if(!!m.isBuffer(this))return this.buffer}});Object.defineProperty(m.prototype,"offset",{enumerable:!0,get:function(){if(!!m.isBuffer(this))return this.byteOffset}});function E(t){if(t>W)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,m.prototype),e}function m(t,e,o){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return O(t)}return ae(t,e,o)}m.poolSize=8192;function ae(t,e,o){if(typeof t=="string")return He(t,e);if(ArrayBuffer.isView(t))return Ge(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(y(t,ArrayBuffer)||t&&y(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(y(t,SharedArrayBuffer)||t&&y(t.buffer,SharedArrayBuffer)))return J(t,e,o);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var _=t.valueOf&&t.valueOf();if(_!=null&&_!==t)return m.from(_,e,o);var p=Ye(t);if(p)return p;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return m.from(t[Symbol.toPrimitive]("string"),e,o);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}m.from=function(t,e,o){return ae(t,e,o)};Object.setPrototypeOf(m.prototype,Uint8Array.prototype);Object.setPrototypeOf(m,Uint8Array);function de(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function qe(t,e,o){return de(t),t<=0?E(t):e!==void 0?typeof o=="string"?E(t).fill(e,o):E(t).fill(e):E(t)}m.alloc=function(t,e,o){return qe(t,e,o)};function O(t){return de(t),E(t<0?0:Q(t)|0)}m.allocUnsafe=function(t){return O(t)};m.allocUnsafeSlow=function(t){return O(t)};function He(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!m.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var o=he(t,e)|0,_=E(o),p=_.write(t,e);return p!==o&&(_=_.slice(0,p)),_}function V(t){for(var e=t.length<0?0:Q(t.length)|0,o=E(e),_=0;_<e;_+=1)o[_]=t[_]&255;return o}function Ge(t){if(y(t,Uint8Array)){var e=new Uint8Array(t);return J(e.buffer,e.byteOffset,e.byteLength)}return V(t)}function J(t,e,o){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(o||0))throw new RangeError('"length" is outside of buffer bounds');var _;return e===void 0&&o===void 0?_=new Uint8Array(t):o===void 0?_=new Uint8Array(t,e):_=new Uint8Array(t,e,o),Object.setPrototypeOf(_,m.prototype),_}function Ye(t){if(m.isBuffer(t)){var e=Q(t.length)|0,o=E(e);return o.length===0||t.copy(o,0,0,e),o}if(t.length!==void 0)return typeof t.length!="number"||K(t.length)?E(0):V(t);if(t.type==="Buffer"&&Array.isArray(t.data))return V(t.data)}function Q(t){if(t>=W)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+W.toString(16)+" bytes");return t|0}function Ve(t){return+t!=t&&(t=0),m.alloc(+t)}m.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==m.prototype};m.compare=function(e,o){if(y(e,Uint8Array)&&(e=m.from(e,e.offset,e.byteLength)),y(o,Uint8Array)&&(o=m.from(o,o.offset,o.byteLength)),!m.isBuffer(e)||!m.isBuffer(o))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===o)return 0;for(var _=e.length,p=o.length,n=0,r=Math.min(_,p);n<r;++n)if(e[n]!==o[n]){_=e[n],p=o[n];break}return _<p?-1:p<_?1:0};m.isEncoding=function(e){switch(String(e).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}};m.concat=function(e,o){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return m.alloc(0);var _;if(o===void 0)for(o=0,_=0;_<e.length;++_)o+=e[_].length;var p=m.allocUnsafe(o),n=0;for(_=0;_<e.length;++_){var r=e[_];if(y(r,Uint8Array))n+r.length>p.length?m.from(r).copy(p,n):Uint8Array.prototype.set.call(p,r,n);else if(m.isBuffer(r))r.copy(p,n);else throw new TypeError('"list" argument must be an Array of Buffers');n+=r.length}return p};function he(t,e){if(m.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||y(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var o=t.length,_=arguments.length>2&&arguments[2]===!0;if(!_&&o===0)return 0;for(var p=!1;;)switch(e){case"ascii":case"latin1":case"binary":return o;case"utf8":case"utf-8":return P(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return o*2;case"hex":return o>>>1;case"base64":return ue(t).length;default:if(p)return _?-1:P(t).length;e=(""+e).toLowerCase(),p=!0}}m.byteLength=he;function Je(t,e,o){var _=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((o===void 0||o>this.length)&&(o=this.length),o<=0)||(o>>>=0,e>>>=0,o<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return _o(this,e,o);case"utf8":case"utf-8":return le(this,e,o);case"ascii":return oo(this,e,o);case"latin1":case"binary":return to(this,e,o);case"base64":return $e(this,e,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return po(this,e,o);default:if(_)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),_=!0}}m.prototype._isBuffer=!0;function S(t,e,o){var _=t[e];t[e]=t[o],t[o]=_}m.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var o=0;o<e;o+=2)S(this,o,o+1);return this};m.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var o=0;o<e;o+=4)S(this,o,o+3),S(this,o+1,o+2);return this};m.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var o=0;o<e;o+=8)S(this,o,o+7),S(this,o+1,o+6),S(this,o+2,o+5),S(this,o+3,o+4);return this};m.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?le(this,0,e):Je.apply(this,arguments)};m.prototype.toLocaleString=m.prototype.toString;m.prototype.equals=function(e){if(!m.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:m.compare(this,e)===0};m.prototype.inspect=function(){var e="",o=C.INSPECT_MAX_BYTES;return e=this.toString("hex",0,o).replace(/(.{2})/g,"$1 ").trim(),this.length>o&&(e+=" ... "),"<Buffer "+e+">"};re&&(m.prototype[re]=m.prototype.inspect);m.prototype.compare=function(e,o,_,p,n){if(y(e,Uint8Array)&&(e=m.from(e,e.offset,e.byteLength)),!m.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(o===void 0&&(o=0),_===void 0&&(_=e?e.length:0),p===void 0&&(p=0),n===void 0&&(n=this.length),o<0||_>e.length||p<0||n>this.length)throw new RangeError("out of range index");if(p>=n&&o>=_)return 0;if(p>=n)return-1;if(o>=_)return 1;if(o>>>=0,_>>>=0,p>>>=0,n>>>=0,this===e)return 0;for(var r=n-p,c=_-o,a=Math.min(r,c),h=this.slice(p,n),i=e.slice(o,_),d=0;d<a;++d)if(h[d]!==i[d]){r=h[d],c=i[d];break}return r<c?-1:c<r?1:0};function ie(t,e,o,_,p){if(t.length===0)return-1;if(typeof o=="string"?(_=o,o=0):o>2147483647?o=2147483647:o<-2147483648&&(o=-2147483648),o=+o,K(o)&&(o=p?0:t.length-1),o<0&&(o=t.length+o),o>=t.length){if(p)return-1;o=t.length-1}else if(o<0)if(p)o=0;else return-1;if(typeof e=="string"&&(e=m.from(e,_)),m.isBuffer(e))return e.length===0?-1:me(t,e,o,_,p);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?p?Uint8Array.prototype.indexOf.call(t,e,o):Uint8Array.prototype.lastIndexOf.call(t,e,o):me(t,[e],o,_,p);throw new TypeError("val must be string, number or Buffer")}function me(t,e,o,_,p){var n=1,r=t.length,c=e.length;if(_!==void 0&&(_=String(_).toLowerCase(),_==="ucs2"||_==="ucs-2"||_==="utf16le"||_==="utf-16le")){if(t.length<2||e.length<2)return-1;n=2,r/=2,c/=2,o/=2}function a(f,T){return n===1?f[T]:f.readUInt16BE(T*n)}var h;if(p){var i=-1;for(h=o;h<r;h++)if(a(t,h)===a(e,i===-1?0:h-i)){if(i===-1&&(i=h),h-i+1===c)return i*n}else i!==-1&&(h-=h-i),i=-1}else for(o+c>r&&(o=r-c),h=o;h>=0;h--){for(var d=!0,b=0;b<c;b++)if(a(t,h+b)!==a(e,b)){d=!1;break}if(d)return h}return-1}m.prototype.includes=function(e,o,_){return this.indexOf(e,o,_)!==-1};m.prototype.indexOf=function(e,o,_){return ie(this,e,o,_,!0)};m.prototype.lastIndexOf=function(e,o,_){return ie(this,e,o,_,!1)};function Pe(t,e,o,_){o=Number(o)||0;var p=t.length-o;_?(_=Number(_),_>p&&(_=p)):_=p;var n=e.length;_>n/2&&(_=n/2);for(var r=0;r<_;++r){var c=parseInt(e.substr(r*2,2),16);if(K(c))return r;t[o+r]=c}return r}function Oe(t,e,o,_){return X(P(e,t.length-o),t,o,_)}function Qe(t,e,o,_){return X(mo(e),t,o,_)}function Ke(t,e,o,_){return X(ue(e),t,o,_)}function Ze(t,e,o,_){return X(co(e,t.length-o),t,o,_)}m.prototype.write=function(e,o,_,p){if(o===void 0)p="utf8",_=this.length,o=0;else if(_===void 0&&typeof o=="string")p=o,_=this.length,o=0;else if(isFinite(o))o=o>>>0,isFinite(_)?(_=_>>>0,p===void 0&&(p="utf8")):(p=_,_=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var n=this.length-o;if((_===void 0||_>n)&&(_=n),e.length>0&&(_<0||o<0)||o>this.length)throw new RangeError("Attempt to write outside buffer bounds");p||(p="utf8");for(var r=!1;;)switch(p){case"hex":return Pe(this,e,o,_);case"utf8":case"utf-8":return Oe(this,e,o,_);case"ascii":case"latin1":case"binary":return Qe(this,e,o,_);case"base64":return Ke(this,e,o,_);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ze(this,e,o,_);default:if(r)throw new TypeError("Unknown encoding: "+p);p=(""+p).toLowerCase(),r=!0}};m.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function $e(t,e,o){return e===0&&o===t.length?Y.fromByteArray(t):Y.fromByteArray(t.slice(e,o))}function le(t,e,o){o=Math.min(t.length,o);for(var _=[],p=e;p<o;){var n=t[p],r=null,c=n>239?4:n>223?3:n>191?2:1;if(p+c<=o){var a,h,i,d;switch(c){case 1:n<128&&(r=n);break;case 2:a=t[p+1],(a&192)===128&&(d=(n&31)<<6|a&63,d>127&&(r=d));break;case 3:a=t[p+1],h=t[p+2],(a&192)===128&&(h&192)===128&&(d=(n&15)<<12|(a&63)<<6|h&63,d>2047&&(d<55296||d>57343)&&(r=d));break;case 4:a=t[p+1],h=t[p+2],i=t[p+3],(a&192)===128&&(h&192)===128&&(i&192)===128&&(d=(n&15)<<18|(a&63)<<12|(h&63)<<6|i&63,d>65535&&d<1114112&&(r=d))}}r===null?(r=65533,c=1):r>65535&&(r-=65536,_.push(r>>>10&1023|55296),r=56320|r&1023),_.push(r),p+=c}return eo(_)}var ce=4096;function eo(t){var e=t.length;if(e<=ce)return String.fromCharCode.apply(String,t);for(var o="",_=0;_<e;)o+=String.fromCharCode.apply(String,t.slice(_,_+=ce));return o}function oo(t,e,o){var _="";o=Math.min(t.length,o);for(var p=e;p<o;++p)_+=String.fromCharCode(t[p]&127);return _}function to(t,e,o){var _="";o=Math.min(t.length,o);for(var p=e;p<o;++p)_+=String.fromCharCode(t[p]);return _}function _o(t,e,o){var _=t.length;(!e||e<0)&&(e=0),(!o||o<0||o>_)&&(o=_);for(var p="",n=e;n<o;++n)p+=ao[t[n]];return p}function po(t,e,o){for(var _=t.slice(e,o),p="",n=0;n<_.length-1;n+=2)p+=String.fromCharCode(_[n]+_[n+1]*256);return p}m.prototype.slice=function(e,o){var _=this.length;e=~~e,o=o===void 0?_:~~o,e<0?(e+=_,e<0&&(e=0)):e>_&&(e=_),o<0?(o+=_,o<0&&(o=0)):o>_&&(o=_),o<e&&(o=e);var p=this.subarray(e,o);return Object.setPrototypeOf(p,m.prototype),p};function s(t,e,o){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>o)throw new RangeError("Trying to access beyond buffer length")}m.prototype.readUintLE=m.prototype.readUIntLE=function(e,o,_){e=e>>>0,o=o>>>0,_||s(e,o,this.length);for(var p=this[e],n=1,r=0;++r<o&&(n*=256);)p+=this[e+r]*n;return p};m.prototype.readUintBE=m.prototype.readUIntBE=function(e,o,_){e=e>>>0,o=o>>>0,_||s(e,o,this.length);for(var p=this[e+--o],n=1;o>0&&(n*=256);)p+=this[e+--o]*n;return p};m.prototype.readUint8=m.prototype.readUInt8=function(e,o){return e=e>>>0,o||s(e,1,this.length),this[e]};m.prototype.readUint16LE=m.prototype.readUInt16LE=function(e,o){return e=e>>>0,o||s(e,2,this.length),this[e]|this[e+1]<<8};m.prototype.readUint16BE=m.prototype.readUInt16BE=function(e,o){return e=e>>>0,o||s(e,2,this.length),this[e]<<8|this[e+1]};m.prototype.readUint32LE=m.prototype.readUInt32LE=function(e,o){return e=e>>>0,o||s(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};m.prototype.readUint32BE=m.prototype.readUInt32BE=function(e,o){return e=e>>>0,o||s(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};m.prototype.readIntLE=function(e,o,_){e=e>>>0,o=o>>>0,_||s(e,o,this.length);for(var p=this[e],n=1,r=0;++r<o&&(n*=256);)p+=this[e+r]*n;return n*=128,p>=n&&(p-=Math.pow(2,8*o)),p};m.prototype.readIntBE=function(e,o,_){e=e>>>0,o=o>>>0,_||s(e,o,this.length);for(var p=o,n=1,r=this[e+--p];p>0&&(n*=256);)r+=this[e+--p]*n;return n*=128,r>=n&&(r-=Math.pow(2,8*o)),r};m.prototype.readInt8=function(e,o){return e=e>>>0,o||s(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};m.prototype.readInt16LE=function(e,o){e=e>>>0,o||s(e,2,this.length);var _=this[e]|this[e+1]<<8;return _&32768?_|4294901760:_};m.prototype.readInt16BE=function(e,o){e=e>>>0,o||s(e,2,this.length);var _=this[e+1]|this[e]<<8;return _&32768?_|4294901760:_};m.prototype.readInt32LE=function(e,o){return e=e>>>0,o||s(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};m.prototype.readInt32BE=function(e,o){return e=e>>>0,o||s(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};m.prototype.readFloatLE=function(e,o){return e=e>>>0,o||s(e,4,this.length),U.read(this,e,!0,23,4)};m.prototype.readFloatBE=function(e,o){return e=e>>>0,o||s(e,4,this.length),U.read(this,e,!1,23,4)};m.prototype.readDoubleLE=function(e,o){return e=e>>>0,o||s(e,8,this.length),U.read(this,e,!0,52,8)};m.prototype.readDoubleBE=function(e,o){return e=e>>>0,o||s(e,8,this.length),U.read(this,e,!1,52,8)};function g(t,e,o,_,p,n){if(!m.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>p||e<n)throw new RangeError('"value" argument is out of bounds');if(o+_>t.length)throw new RangeError("Index out of range")}m.prototype.writeUintLE=m.prototype.writeUIntLE=function(e,o,_,p){if(e=+e,o=o>>>0,_=_>>>0,!p){var n=Math.pow(2,8*_)-1;g(this,e,o,_,n,0)}var r=1,c=0;for(this[o]=e&255;++c<_&&(r*=256);)this[o+c]=e/r&255;return o+_};m.prototype.writeUintBE=m.prototype.writeUIntBE=function(e,o,_,p){if(e=+e,o=o>>>0,_=_>>>0,!p){var n=Math.pow(2,8*_)-1;g(this,e,o,_,n,0)}var r=_-1,c=1;for(this[o+r]=e&255;--r>=0&&(c*=256);)this[o+r]=e/c&255;return o+_};m.prototype.writeUint8=m.prototype.writeUInt8=function(e,o,_){return e=+e,o=o>>>0,_||g(this,e,o,1,255,0),this[o]=e&255,o+1};m.prototype.writeUint16LE=m.prototype.writeUInt16LE=function(e,o,_){return e=+e,o=o>>>0,_||g(this,e,o,2,65535,0),this[o]=e&255,this[o+1]=e>>>8,o+2};m.prototype.writeUint16BE=m.prototype.writeUInt16BE=function(e,o,_){return e=+e,o=o>>>0,_||g(this,e,o,2,65535,0),this[o]=e>>>8,this[o+1]=e&255,o+2};m.prototype.writeUint32LE=m.prototype.writeUInt32LE=function(e,o,_){return e=+e,o=o>>>0,_||g(this,e,o,4,4294967295,0),this[o+3]=e>>>24,this[o+2]=e>>>16,this[o+1]=e>>>8,this[o]=e&255,o+4};m.prototype.writeUint32BE=m.prototype.writeUInt32BE=function(e,o,_){return e=+e,o=o>>>0,_||g(this,e,o,4,4294967295,0),this[o]=e>>>24,this[o+1]=e>>>16,this[o+2]=e>>>8,this[o+3]=e&255,o+4};m.prototype.writeIntLE=function(e,o,_,p){if(e=+e,o=o>>>0,!p){var n=Math.pow(2,8*_-1);g(this,e,o,_,n-1,-n)}var r=0,c=1,a=0;for(this[o]=e&255;++r<_&&(c*=256);)e<0&&a===0&&this[o+r-1]!==0&&(a=1),this[o+r]=(e/c>>0)-a&255;return o+_};m.prototype.writeIntBE=function(e,o,_,p){if(e=+e,o=o>>>0,!p){var n=Math.pow(2,8*_-1);g(this,e,o,_,n-1,-n)}var r=_-1,c=1,a=0;for(this[o+r]=e&255;--r>=0&&(c*=256);)e<0&&a===0&&this[o+r+1]!==0&&(a=1),this[o+r]=(e/c>>0)-a&255;return o+_};m.prototype.writeInt8=function(e,o,_){return e=+e,o=o>>>0,_||g(this,e,o,1,127,-128),e<0&&(e=255+e+1),this[o]=e&255,o+1};m.prototype.writeInt16LE=function(e,o,_){return e=+e,o=o>>>0,_||g(this,e,o,2,32767,-32768),this[o]=e&255,this[o+1]=e>>>8,o+2};m.prototype.writeInt16BE=function(e,o,_){return e=+e,o=o>>>0,_||g(this,e,o,2,32767,-32768),this[o]=e>>>8,this[o+1]=e&255,o+2};m.prototype.writeInt32LE=function(e,o,_){return e=+e,o=o>>>0,_||g(this,e,o,4,2147483647,-2147483648),this[o]=e&255,this[o+1]=e>>>8,this[o+2]=e>>>16,this[o+3]=e>>>24,o+4};m.prototype.writeInt32BE=function(e,o,_){return e=+e,o=o>>>0,_||g(this,e,o,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[o]=e>>>24,this[o+1]=e>>>16,this[o+2]=e>>>8,this[o+3]=e&255,o+4};function se(t,e,o,_,p,n){if(o+_>t.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("Index out of range")}function ge(t,e,o,_,p){return e=+e,o=o>>>0,p||se(t,e,o,4,34028234663852886e22,-34028234663852886e22),U.write(t,e,o,_,23,4),o+4}m.prototype.writeFloatLE=function(e,o,_){return ge(this,e,o,!0,_)};m.prototype.writeFloatBE=function(e,o,_){return ge(this,e,o,!1,_)};function fe(t,e,o,_,p){return e=+e,o=o>>>0,p||se(t,e,o,8,17976931348623157e292,-17976931348623157e292),U.write(t,e,o,_,52,8),o+8}m.prototype.writeDoubleLE=function(e,o,_){return fe(this,e,o,!0,_)};m.prototype.writeDoubleBE=function(e,o,_){return fe(this,e,o,!1,_)};m.prototype.copy=function(e,o,_,p){if(!m.isBuffer(e))throw new TypeError("argument should be a Buffer");if(_||(_=0),!p&&p!==0&&(p=this.length),o>=e.length&&(o=e.length),o||(o=0),p>0&&p<_&&(p=_),p===_||e.length===0||this.length===0)return 0;if(o<0)throw new RangeError("targetStart out of bounds");if(_<0||_>=this.length)throw new RangeError("Index out of range");if(p<0)throw new RangeError("sourceEnd out of bounds");p>this.length&&(p=this.length),e.length-o<p-_&&(p=e.length-o+_);var n=p-_;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(o,_,p):Uint8Array.prototype.set.call(e,this.subarray(_,p),o),n};m.prototype.fill=function(e,o,_,p){if(typeof e=="string"){if(typeof o=="string"?(p=o,o=0,_=this.length):typeof _=="string"&&(p=_,_=this.length),p!==void 0&&typeof p!="string")throw new TypeError("encoding must be a string");if(typeof p=="string"&&!m.isEncoding(p))throw new TypeError("Unknown encoding: "+p);if(e.length===1){var n=e.charCodeAt(0);(p==="utf8"&&n<128||p==="latin1")&&(e=n)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(o<0||this.length<o||this.length<_)throw new RangeError("Out of range index");if(_<=o)return this;o=o>>>0,_=_===void 0?this.length:_>>>0,e||(e=0);var r;if(typeof e=="number")for(r=o;r<_;++r)this[r]=e;else{var c=m.isBuffer(e)?e:m.from(e,p),a=c.length;if(a===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(r=0;r<_-o;++r)this[r+o]=c[r%a]}return this};var no=/[^+/0-9A-Za-z-_]/g;function ro(t){if(t=t.split("=")[0],t=t.trim().replace(no,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function P(t,e){e=e||1/0;for(var o,_=t.length,p=null,n=[],r=0;r<_;++r){if(o=t.charCodeAt(r),o>55295&&o<57344){if(!p){if(o>56319){(e-=3)>-1&&n.push(239,191,189);continue}else if(r+1===_){(e-=3)>-1&&n.push(239,191,189);continue}p=o;continue}if(o<56320){(e-=3)>-1&&n.push(239,191,189),p=o;continue}o=(p-55296<<10|o-56320)+65536}else p&&(e-=3)>-1&&n.push(239,191,189);if(p=null,o<128){if((e-=1)<0)break;n.push(o)}else if(o<2048){if((e-=2)<0)break;n.push(o>>6|192,o&63|128)}else if(o<65536){if((e-=3)<0)break;n.push(o>>12|224,o>>6&63|128,o&63|128)}else if(o<1114112){if((e-=4)<0)break;n.push(o>>18|240,o>>12&63|128,o>>6&63|128,o&63|128)}else throw new Error("Invalid code point")}return n}function mo(t){for(var e=[],o=0;o<t.length;++o)e.push(t.charCodeAt(o)&255);return e}function co(t,e){for(var o,_,p,n=[],r=0;r<t.length&&!((e-=2)<0);++r)o=t.charCodeAt(r),_=o>>8,p=o%256,n.push(p),n.push(_);return n}function ue(t){return Y.toByteArray(ro(t))}function X(t,e,o,_){for(var p=0;p<_&&!(p+o>=e.length||p>=t.length);++p)e[p+o]=t[p];return p}function y(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function K(t){return t!==t}var ao=function(){for(var t="0123456789abcdef",e=new Array(256),o=0;o<16;++o)for(var _=o*16,p=0;p<16;++p)e[_+p]=t[o]+t[p];return e}()});var ve=j((xo,ke)=>{x();var l=ke.exports={},k,v;function Z(){throw new Error("setTimeout has not been defined")}function $(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?k=setTimeout:k=Z}catch(t){k=Z}try{typeof clearTimeout=="function"?v=clearTimeout:v=$}catch(t){v=$}})();function xe(t){if(k===setTimeout)return setTimeout(t,0);if((k===Z||!k)&&setTimeout)return k=setTimeout,setTimeout(t,0);try{return k(t,0)}catch(e){try{return k.call(null,t,0)}catch(o){return k.call(this,t,0)}}}function ho(t){if(v===clearTimeout)return clearTimeout(t);if((v===$||!v)&&clearTimeout)return v=clearTimeout,clearTimeout(t);try{return v(t)}catch(e){try{return v.call(null,t)}catch(o){return v.call(this,t)}}}var F=[],L=!1,I,q=-1;function io(){!L||!I||(L=!1,I.length?F=I.concat(F):q=-1,F.length&&we())}function we(){if(!L){var t=xe(io);L=!0;for(var e=F.length;e;){for(I=F,F=[];++q<e;)I&&I[q].run();q=-1,e=F.length}I=null,L=!1,ho(t)}}l.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var o=1;o<arguments.length;o++)e[o-1]=arguments[o];F.push(new ye(t,e)),F.length===1&&!L&&xe(we)};function ye(t,e){this.fun=t,this.array=e}ye.prototype.run=function(){this.fun.apply(null,this.array)};l.title="browser";l.browser=!0;l.env={};l.argv=[];l.version="";l.versions={};function B(){}l.on=B;l.addListener=B;l.once=B;l.off=B;l.removeListener=B;l.removeAllListeners=B;l.emit=B;l.prependListener=B;l.prependOnceListener=B;l.listeners=function(t){return[]};l.binding=function(t){throw new Error("process.binding is not supported")};l.cwd=function(){return"/"};l.chdir=function(t){throw new Error("process.chdir is not supported")};l.umask=function(){return 0}});var N,M,wo,x=Ue(()=>{N=oe(be()),M=oe(ve()),wo=function(t){function e(){var _=this||self;return delete t.prototype.__magic__,_}if(typeof globalThis=="object")return globalThis;if(this)return e();t.defineProperty(t.prototype,"__magic__",{configurable:!0,get:e});var o=__magic__;return o}(Object)});var so={};Ce(so,{css:()=>Ee,default:()=>lo});module.exports=Le(so);x();var Ee=`.dapp-core-component__theme__link-style { color: #1392ff; } .dapp-core-component__theme__link-second-style { color: #9dabbd; } .dapp-core-component__theme__link-second-style:hover { color: #1392ff; } .dapp-core-component__theme__link-second-style:hover svg { color: #1392ff; } .dapp-core-component__theme__wrapper { min-height: 100vh; } .dapp-core-component__theme__opacity-6 { opacity: 0.6; } .dapp-core-component__theme__qr-code-svg-container { width: 15rem; height: 15rem; } .dapp-core-component__theme__pair-list { max-height: 20rem; overflow-y: auto; margin-bottom: -0.5rem; } .dapp-core-component__theme__pair-image { width: 4rem; overflow: hidden; height: auto; min-width: 2rem; } .dapp-core-component__theme__pair-remove { padding: 0 0.5rem; position: absolute; right: 0; top: 0; } .dapp-core-component__theme__dapp-icon { padding: 5px; border-radius: 50%; background-color: #fafafa; width: 4.6428571429rem; height: 4.6428571429rem; display: flex; align-items: center; justify-content: center; margin: 0 auto; } .dapp-core-component__theme__dapp-icon.dapp-core-component__theme__icon-medium { width: 80px; height: 80px; } .dapp-core-component__theme__centering { display: flex; justify-content: center; align-items: center; } .dapp-core-component__theme__border-n { border: none !important; } .dapp-core-component__theme__t-shadow { text-shadow: 0px 4px 7px rgba(0, 0, 0, 0.3); } .dapp-core-component__theme__btn { box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.04) !important; } .dapp-core-component__theme__media { display: flex; align-items: flex-start; } .dapp-core-component__theme__media-body { flex: 1; } .dapp-core-component__theme__connect-btns .dapp-core-component__theme__btn { display: flex; height: 48px; justify-content: center; align-items: center; color: #fff !important; background-color: #1392ff; padding: 15px 20px 15px 16px; border-radius: 6px; gap: 8px; } .dapp-core-component__theme__connect-btns .dapp-core-component__theme__btn:hover, .dapp-core-component__theme__connect-btns .dapp-core-component__theme__btn:active { background-color: #1392ff; background-image: linear-gradient(rgba(0, 0, 0, 0.1) 0 0); } .dapp-core-component__theme__connect-btns .dapp-core-component__theme__info { color: #1392ff; margin-left: 48px; } .dapp-core-component__theme__btn { transition: none !important; } .dapp-core-component__theme__trust-badge { width: 20px; height: 20px; } /* Navbar -------------------------------------------------- */ .dapp-core-component__theme__navbar .dapp-core-component__theme__dapp-name { display: flex; align-items: center; font-size: 1.7142857143rem; font-weight: 400; color: #9ba5b4; margin-left: 1.6428571429rem; } .dapp-core-component__theme__navbar .dapp-core-component__theme__dapp-name:before { content: ""; display: block; width: 1px; height: 3rem; margin-right: 1.7142857143rem; } /* Dashboard -------------------------------------------------- */ .dapp-core-component__theme__action-btn { display: flex; flex-direction: column; justify-content: center; align-items: center; color: #fff; margin: 0 7px; } .dapp-core-component__theme__action-btn button { border-radius: 50%; width: 40px; height: 40px; background-color: #fff; } .dapp-core-component__theme__action-btn button:hover { opacity: 0.9; } .dapp-core-component__theme__transactions .dapp-core-component__theme__transaction-icon { border-radius: 50%; width: 40px; height: 40px; } .dapp-core-component__theme__transactions.dapp-core-component__theme__table td { white-space: nowrap; vertical-align: middle; } .dapp-core-component__theme__transactions.dapp-core-component__theme__table tr:last-of-type td { border-bottom: 1px solid #dee2e6; } /* Loader, Transaction Success/Fail -------------------------------------------------- */ .dapp-core-component__theme__page-state .dapp-core-component__theme__lds-ellipsis { display: inline-block; position: relative; width: 64px; height: 64px; } .dapp-core-component__theme__page-state .dapp-core-component__theme__lds-ellipsis div { position: absolute; top: 27px; width: 11px; height: 11px; border-radius: 50%; background: rgba(0, 0, 0, 0.1); animation-timing-function: cubic-bezier(0, 1, 1, 0); } .dapp-core-component__theme__page-state .dapp-core-component__theme__bg-blue .dapp-core-component__theme__lds-ellipsis div { background: rgba(255, 255, 255, 0.4); } .dapp-core-component__theme__page-state .dapp-core-component__theme__lds-ellipsis div:nth-child(1) { left: 6px; animation: dapp-core-component__theme__lds-ellipsis1 0.6s infinite; } .dapp-core-component__theme__page-state .dapp-core-component__theme__lds-ellipsis div:nth-child(2) { left: 6px; animation: dapp-core-component__theme__lds-ellipsis2 0.6s infinite; } .dapp-core-component__theme__page-state .dapp-core-component__theme__lds-ellipsis div:nth-child(3) { left: 26px; animation: dapp-core-component__theme__lds-ellipsis2 0.6s infinite; } .dapp-core-component__theme__page-state .dapp-core-component__theme__lds-ellipsis div:nth-child(4) { left: 45px; animation: dapp-core-component__theme__lds-ellipsis3 0.6s infinite; } @keyframes dapp-core-component__theme__lds-ellipsis1 { 0% { transform: scale(0); } 100% { transform: scale(1); } } @keyframes dapp-core-component__theme__lds-ellipsis3 { 0% { transform: scale(1); } 100% { transform: scale(0); } } @keyframes dapp-core-component__theme__lds-ellipsis2 { 0% { transform: translate(0, 0); } 100% { transform: translate(19px, 0); } } .dapp-core-component__theme__btn { display: inline-block; font-weight: 400; color: #212529; text-align: center; vertical-align: middle; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; background-color: rgba(0, 0, 0, 0); border: 1px solid rgba(0, 0, 0, 0); padding: 0.375rem 0.75rem; font-size: 1rem; line-height: 1.5; border-radius: 0.25rem; transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; cursor: pointer; } .dapp-core-component__theme__btn .dapp-core-component__theme__focus { outline: 0; box-shadow: 0 0 0 0.2rem rgba(27, 70, 194, 0.25); } .dapp-core-component__theme__btn .dapp-core-component__theme__disabled { opacity: 0.65; cursor: default; } .dapp-core-component__theme__btn:hover { color: #212529; text-decoration: none; } .dapp-core-component__theme__btn:focus { outline: 0; box-shadow: 0 0 0 0.2rem rgba(27, 70, 194, 0.25); } .dapp-core-component__theme__btn:disabled { opacity: 0.65; cursor: default; } .dapp-core-component__theme__btn-primary { color: #fff; background-color: #1b46c2; border-color: #007bff; } .dapp-core-component__theme__btn-primary .dapp-core-component__theme__focus { color: #fff; background-color: #1b46c2; border-color: #0062cc; box-shadow: 0 0 0 0.2rem rgba(38, 143, 255, 0.5); } .dapp-core-component__theme__btn-primary .dapp-core-component__theme__disabled { color: #fff; background-color: #1b46c2; border-color: #007bff; } .dapp-core-component__theme__btn-primary:hover { color: #fff; background-color: #1b46c2; border-color: #0062cc; } .dapp-core-component__theme__btn-primary:focus { color: #fff; background-color: #1b46c2; border-color: #0062cc; box-shadow: 0 0 0 0.2rem rgba(38, 143, 255, 0.5); } .dapp-core-component__theme__btn-secondary { color: #fff; background-color: #6c757d; border-color: #007bff; } .dapp-core-component__theme__btn-secondary .dapp-core-component__theme__focus { color: #fff; background-color: #6c757d; border-color: #0062cc; box-shadow: 0 0 0 0.2rem rgba(38, 143, 255, 0.5); } .dapp-core-component__theme__btn-secondary .dapp-core-component__theme__disabled { color: #fff; background-color: #6c757d; border-color: #007bff; } .dapp-core-component__theme__btn-secondary:hover { color: #fff; background-color: #6c757d; border-color: #0062cc; } .dapp-core-component__theme__btn-secondary:focus { color: #fff; background-color: #6c757d; border-color: #0062cc; box-shadow: 0 0 0 0.2rem rgba(38, 143, 255, 0.5); } .dapp-core-component__theme__btn-warning { color: #212529; background-color: #ffc107; border-color: #ffc107; } .dapp-core-component__theme__btn-warning .dapp-core-component__theme__focus { color: #212529; background-color: #e0a800; border-color: #d39e00; box-shadow: 0 0 0 0.2rem rgba(222, 170, 12, 0.5); } .dapp-core-component__theme__btn-warning .dapp-core-component__theme__disabled { color: #212529; background-color: #ffc107; border-color: #ffc107; } .dapp-core-component__theme__btn-warning:hover { color: #212529; background-color: #e0a800; border-color: #d39e00; box-shadow: 0 0 0 0.2rem rgba(222, 170, 12, 0.5); } .dapp-core-component__theme__btn-warning:focus { color: #212529; background-color: #e0a800; border-color: #d39e00; box-shadow: 0 0 0 0.2rem rgba(222, 170, 12, 0.5); } .dapp-core-component__theme__btn-dark { color: #fff; background-color: #343a40; border-color: #343a40; } .dapp-core-component__theme__btn-dark .dapp-core-component__theme__focus { color: #fff; background-color: #23272b; border-color: #1d2124; box-shadow: 0 0 0 0.2rem rgba(82, 88, 93, 0.5); } .dapp-core-component__theme__btn-dark .dapp-core-component__theme__disabled { color: #fff; background-color: #343a40; border-color: #343a40; } .dapp-core-component__theme__btn-dark:hover { color: #fff; background-color: #23272b; border-color: #1d2124; } .dapp-core-component__theme__btn-dark:focus { color: #fff; background-color: #23272b; border-color: #1d2124; box-shadow: 0 0 0 0.2rem rgba(82, 88, 93, 0.5); } .dapp-core-component__theme__btn-link { font-weight: 400; color: #007bff; text-decoration: none; } .dapp-core-component__theme__btn-link:hover { color: #0056b3; text-decoration: underline; } .dapp-core-component__theme__btn-link:focus, .dapp-core-component__theme__btn-link.dapp-core-component__theme__focus { text-decoration: underline; } .dapp-core-component__theme__btn-link:disabled, .dapp-core-component__theme__btn-link.dapp-core-component__theme__disabled { color: #6c757d; pointer-events: none; } .dapp-core-component__theme__btn-light { color: #212529; background-color: #fafafa; border-color: #fafafa; } .dapp-core-component__theme__btn-light .dapp-core-component__theme__focus { color: #212529; background-color: #e2e6ea; border-color: #dae0e5; box-shadow: 0 0 0 0.2rem rgba(216, 217, 219, 0.5); } .dapp-core-component__theme__btn-light .dapp-core-component__theme__disabled { color: #212529; background-color: #f8f9fa; border-color: #f8f9fa; } .dapp-core-component__theme__btn-light:hover { color: #212529; background-color: #e2e6ea; border-color: #dae0e5; } .dapp-core-component__theme__btn-light:focus { color: #212529; background-color: #e2e6ea; border-color: #dae0e5; box-shadow: 0 0 0 0.2rem rgba(216, 217, 219, 0.5); } .dapp-core-component__theme__badge { display: inline-block; padding: 0.25em 0.4em; font-size: 75%; font-weight: 700; line-height: 1; text-align: center; white-space: nowrap; vertical-align: baseline; border-radius: 0.25rem; transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; } @media (prefers-reduced-motion: reduce) { .dapp-core-component__theme__badge { transition: none; } } a.dapp-core-component__theme__badge:hover, a.dapp-core-component__theme__badge:focus { text-decoration: none; } .dapp-core-component__theme__badge:empty { display: none; } .dapp-core-component__theme__btn .dapp-core-component__theme__badge { position: relative; top: -1px; } .dapp-core-component__theme__badge-pill { padding-right: 0.6em; padding-left: 0.6em; border-radius: 10rem; } .dapp-core-component__theme__badge-primary { color: #fff; background-color: #007bff; } a.dapp-core-component__theme__badge-primary:hover, a.dapp-core-component__theme__badge-primary:focus { color: #fff; background-color: #0062cc; } a.dapp-core-component__theme__badge-primary:focus, a.dapp-core-component__theme__badge-primary.dapp-core-component__theme__focus { outline: 0; box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.5); } .dapp-core-component__theme__badge-secondary { color: #fff; background-color: #6c757d; } a.dapp-core-component__theme__badge-secondary:hover, a.dapp-core-component__theme__badge-secondary:focus { color: #fff; background-color: #545b62; } a.dapp-core-component__theme__badge-secondary:focus, a.dapp-core-component__theme__badge-secondary.dapp-core-component__theme__focus { outline: 0; box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.5); } .dapp-core-component__theme__badge-success { color: #fff; background-color: #28a745; } a.dapp-core-component__theme__badge-success:hover, a.dapp-core-component__theme__badge-success:focus { color: #fff; background-color: #1e7e34; } a.dapp-core-component__theme__badge-success:focus, a.dapp-core-component__theme__badge-success.dapp-core-component__theme__focus { outline: 0; box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.5); } .dapp-core-component__theme__badge-info { color: #fff; background-color: #17a2b8; } a.dapp-core-component__theme__badge-info:hover, a.dapp-core-component__theme__badge-info:focus { color: #fff; background-color: #117a8b; } a.dapp-core-component__theme__badge-info:focus, a.dapp-core-component__theme__badge-info.dapp-core-component__theme__focus { outline: 0; box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.5); } .dapp-core-component__theme__badge-warning { color: #212529; background-color: #ffc107; } a.dapp-core-component__theme__badge-warning:hover, a.dapp-core-component__theme__badge-warning:focus { color: #212529; background-color: #d39e00; } a.dapp-core-component__theme__badge-warning:focus, a.dapp-core-component__theme__badge-warning.dapp-core-component__theme__focus { outline: 0; box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.5); } .dapp-core-component__theme__badge-danger { color: #fff; background-color: #dc3545; } a.dapp-core-component__theme__badge-danger:hover, a.dapp-core-component__theme__badge-danger:focus { color: #fff; background-color: #bd2130; } a.dapp-core-component__theme__badge-danger:focus, a.dapp-core-component__theme__badge-danger.dapp-core-component__theme__focus { outline: 0; box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.5); } .dapp-core-component__theme__badge-light { color: #212529; background-color: #f8f9fa; } a.dapp-core-component__theme__badge-light:hover, a.dapp-core-component__theme__badge-light:focus { color: #212529; background-color: #dae0e5; } a.dapp-core-component__theme__badge-light:focus, a.dapp-core-component__theme__badge-light.dapp-core-component__theme__focus { outline: 0; box-shadow: 0 0 0 0.2rem rgba(248, 249, 250, 0.5); } .dapp-core-component__theme__badge-dark { color: #fff; background-color: #343a40; } a.dapp-core-component__theme__badge-dark:hover, a.dapp-core-component__theme__badge-dark:focus { color: #fff; background-color: #1d2124; } a.dapp-core-component__theme__badge-dark:focus, a.dapp-core-component__theme__badge-dark.dapp-core-component__theme__focus { outline: 0; box-shadow: 0 0 0 0.2rem rgba(52, 58, 64, 0.5); } .dapp-core-component__theme__card { position: relative; display: flex; flex-direction: column; min-width: 0; word-wrap: break-word; background-color: #fff; background-clip: border-box; border: 1px solid rgba(0, 0, 0, 0.125); border-radius: 5px; } .dapp-core-component__theme__card > hr { margin-right: 0; margin-left: 0; } .dapp-core-component__theme__card > .dapp-core-component__theme__list-group { border-top: inherit; border-bottom: inherit; } .dapp-core-component__theme__card > .dapp-core-component__theme__list-group:first-child { border-top-width: 0; } .dapp-core-component__theme__card > .dapp-core-component__theme__list-group:last-child { border-bottom-width: 0; } .dapp-core-component__theme__card > .dapp-core-component__theme__card-header + .dapp-core-component__theme__list-group, .dapp-core-component__theme__card > .dapp-core-component__theme__list-group + .dapp-core-component__theme__card-footer { border-top: 0; } .dapp-core-component__theme__card .dapp-core-component__theme__card-header { border: 0; padding: 0; } .dapp-core-component__theme__card .dapp-core-component__theme__card-header:first-child { border-radius: calc(0.25rem - 1px) calc(0.25rem - 1px) 0 0; } .dapp-core-component__theme__card .dapp-core-component__theme__card-header .dapp-core-component__theme__card-header-item { border-bottom: 1px solid #dee2e6; padding: 1.1rem 1rem; } .dapp-core-component__theme__card .dapp-core-component__theme__card-header .dapp-core-component__theme__card-header-item h6, .dapp-core-component__theme__card .dapp-core-component__theme__card-header .dapp-core-component__theme__card-header-item .dapp-core-component__theme__h6 { line-height: 2.5rem; letter-spacing: unset; margin: 0; } .dapp-core-component__theme__card .dapp-core-component__theme__card-header .dapp-core-component__theme__card-header-item.dapp-core-component__theme__compact { padding-top: 0.75rem; padding-bottom: 0.75rem; background-color: #fafafa; } .dapp-core-component__theme__card-body { flex: 1 1 auto; min-height: 1px; padding: 1.25rem; } .dapp-core-component__theme__card-title { margin-bottom: 0.75rem; } .dapp-core-component__theme__card-subtitle { margin-top: -0.375rem; margin-bottom: 0; } .dapp-core-component__theme__card-text:last-child { margin-bottom: 0; } .dapp-core-component__theme__card-link:hover { text-decoration: none; } .dapp-core-component__theme__card-link + .dapp-core-component__theme__card-link { margin-left: 1.25rem; } .dapp-core-component__theme__card-header { padding: 0.75rem 1.25rem; margin-bottom: 0; background-color: #fff; border-bottom: 1px solid rgba(0, 0, 0, 0.125); } .dapp-core-component__theme__card-footer { padding: 0.75rem 1.25rem; background-color: #fff; border-top: 1px solid rgba(0, 0, 0, 0.125); } .dapp-core-component__theme__text { color: #9dabbd; } .dapp-core-component__theme__text-white { color: #fff; } .dapp-core-component__theme__text-monospace { font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; } .dapp-core-component__theme__table .dapp-core-component__theme__trim-size-xl .dapp-core-component__theme__trim { max-width: 13rem; } .dapp-core-component__theme__table .dapp-core-component__theme__trim { max-width: 10rem; } .dapp-core-component__theme__table .dapp-core-component__theme__trim-only-sm .dapp-core-component__theme__trim { max-width: none; } .dapp-core-component__theme__text-justify { text-align: justify; } .dapp-core-component__theme__text-wrap { white-space: normal; } .dapp-core-component__theme__text-nowrap { white-space: nowrap; } .dapp-core-component__theme__text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .dapp-core-component__theme__text-left { text-align: left; } .dapp-core-component__theme__text-right { text-align: right; } .dapp-core-component__theme__text-center { text-align: center; } .dapp-core-component__theme__text-primary { color: #1b46c2; } .dapp-core-component__theme__text-secondary { color: #6c757d; } .dapp-core-component__theme__text-primary-highlight { color: #1b46c2; } .dapp-core-component__theme__text-muted { color: #6c757d; } .dapp-core-component__theme__text-success { color: #28a745; } .dapp-core-component__theme__text-justify { text-align: justify; } .dapp-core-component__theme__text-wrap { white-space: normal; } .dapp-core-component__theme__text-nowrap { white-space: nowrap; } .dapp-core-component__theme__text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .dapp-core-component__theme__text-body { color: #212529; } .dapp-core-component__theme__text-muted { color: #6c757d; } .dapp-core-component__theme__text-black-50 { color: rgba(0, 0, 0, 0.5); } .dapp-core-component__theme__text-white-50 { color: rgba(255, 255, 255, 0.5); } @media (min-width: 992px) { .dapp-core-component__theme__text-lg-right { text-align: right; } } .dapp-core-component__theme__text-hide { font: 0/0 a; color: rgba(0, 0, 0, 0); text-shadow: none; background-color: rgba(0, 0, 0, 0); border: 0; } .dapp-core-component__theme__text-decoration-none { text-decoration: none; } .dapp-core-component__theme__text-break { word-break: break-word; word-wrap: break-word; } .dapp-core-component__theme__text-reset { color: inherit; } .dapp-core-component__theme__text-lowercase { text-transform: lowercase; } .dapp-core-component__theme__text-uppercase { text-transform: uppercase; } .dapp-core-component__theme__text-capitalize { text-transform: capitalize; } .dapp-core-component__theme__text-danger { color: #d9534f; } .dapp-core-component__theme__text-warning { color: #f0ad4e; } .dapp-core-component__theme__trim-fs-sm { color: inherit; } .dapp-core-component__theme__text-break { word-break: break-word; word-wrap: break-word; } .dapp-core-component__theme__mx-auto { margin-left: auto; margin-right: auto; } .dapp-core-component__theme__m-0 { margin: 0; } .dapp-core-component__theme__mt-0 { margin-top: 0; } .dapp-core-component__theme__my-0 { margin-top: 0; margin-bottom: 0; } .dapp-core-component__theme__mr-0 { margin-right: 0; } .dapp-core-component__theme__mx-0 { margin-right: 0; margin-left: 0; } .dapp-core-component__theme__mb-0 { margin-bottom: 0; } .dapp-core-component__theme__my-0 { margin-bottom: 0; margin-top: 0; } .dapp-core-component__theme__ml-0 { margin-left: 0; } .dapp-core-component__theme__mx-0 { margin-left: 0; margin-right: 0; } .dapp-core-component__theme__m-1 { margin: 0.25rem; } .dapp-core-component__theme__mt-1 { margin-top: 0.25rem; } .dapp-core-component__theme__my-1 { margin-top: 0.25rem; margin-bottom: 0.25rem; } .dapp-core-component__theme__mr-1 { margin-right: 0.25rem; } .dapp-core-component__theme__mx-1 { margin-left: 0.25rem; margin-right: 0.25rem; } .dapp-core-component__theme__mb-1 { margin-bottom: 0.25rem; } .dapp-core-component__theme__my-1 { margin-bottom: 0.25rem; margin-top: 0.25rem; } .dapp-core-component__theme__ml-1 { margin-left: 0.25rem; } .dapp-core-component__theme__mx-1 { margin-right: 0.25rem; margin-left: 0.25rem; } .dapp-core-component__theme__m-2 { margin: 0.5rem; } .dapp-core-component__theme__mt-2 { margin-top: 0.5rem; } .dapp-core-component__theme__my-2 { margin-bottom: 0.5rem; margin-top: 0.5rem; } .dapp-core-component__theme__mr-2 { margin-right: 0.5rem; } .dapp-core-component__theme__mx-2 { margin-right: 0.5rem; margin-left: 0.5rem; } .dapp-core-component__theme__mb-2 { margin-bottom: 0.5rem; } .dapp-core-component__theme__my-2 { margin-top: 0.5rem; margin-bottom: 0.5rem; } .dapp-core-component__theme__ml-2 { margin-left: 0.5rem; } .dapp-core-component__theme__mx-2 { margin-right: 0.5rem; margin-left: 0.5rem; } .dapp-core-component__theme__m-3 { margin: 1rem; } .dapp-core-component__theme__mt-3, .dapp-core-component__theme__my-3 { margin-top: 1rem; } .dapp-core-component__theme__mr-3 { margi