@multiversx/sdk-dapp 2.6.0 → 2.6.2
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/UI/SignTransactionsModals/SignTransactionsModals.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/SignStep.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithLedgerModal/index.js +1 -1
- package/UI/SignTransactionsModals/index.js +1 -1
- package/UI/TokenDetails/index.js +1 -1
- package/UI/index.js +1 -1
- package/UI/ledger/LedgerLoginButton/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/AddressRow.d.ts +2 -1
- package/UI/ledger/LedgerLoginContainer/AddressRow.js +1 -1
- package/UI/ledger/LedgerLoginContainer/AddressTable.js +1 -1
- package/UI/ledger/LedgerLoginContainer/index.js +1 -1
- package/UI/ledger/index.js +1 -1
- package/UI/pages/UnlockPage/index.js +1 -1
- package/UI/pages/index.js +1 -1
- package/__chunks__/{chunk-6KRG4LM3.js → chunk-32E6BHE7.js} +2 -2
- package/__chunks__/chunk-5JEI5B7T.js +2 -0
- package/__chunks__/chunk-5WVY343F.js +2 -0
- package/__chunks__/chunk-AOKD6R54.js +2 -0
- package/__chunks__/{chunk-FWDSY2GW.js → chunk-BH62KDKX.js} +2 -2
- package/__chunks__/chunk-DIO2MOTI.js +2 -0
- package/__chunks__/{chunk-QHPKVIYS.js → chunk-HQ3NIAYD.js} +2 -2
- package/__chunks__/{chunk-WVYISK4S.js → chunk-LR2EWIF5.js} +2 -2
- package/__chunks__/{chunk-4EYJORWI.js → chunk-R7TIYVAO.js} +2 -2
- package/__chunks__/{chunk-ELWIMVBK.js → chunk-UHLFOFON.js} +2 -2
- package/__chunks__/chunk-VIT4WLW2.js +2 -0
- package/__commonjs/UI/SignTransactionsModals/SignTransactionsModals.js +23 -23
- package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/SignStep.js +6 -6
- package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/index.js +8 -8
- package/__commonjs/UI/SignTransactionsModals/SignWithLedgerModal/index.js +8 -8
- package/__commonjs/UI/SignTransactionsModals/index.js +23 -23
- package/__commonjs/UI/TokenDetails/index.js +4 -4
- package/__commonjs/UI/index.js +93 -93
- package/__commonjs/UI/ledger/LedgerLoginButton/index.js +39 -39
- package/__commonjs/UI/ledger/LedgerLoginContainer/AddressRow.js +124 -124
- package/__commonjs/UI/ledger/LedgerLoginContainer/AddressTable.js +33 -33
- package/__commonjs/UI/ledger/LedgerLoginContainer/index.js +38 -38
- package/__commonjs/UI/ledger/index.js +39 -39
- package/__commonjs/UI/pages/UnlockPage/index.js +40 -40
- package/__commonjs/UI/pages/index.js +40 -40
- package/package.json +1 -1
- package/__chunks__/chunk-LZW5J2XF.js +0 -2
- package/__chunks__/chunk-QFSWBLGO.js +0 -2
- package/__chunks__/chunk-TLT7GLC4.js +0 -2
- package/__chunks__/chunk-WNPYLDRK.js +0 -2
- package/__chunks__/chunk-ZRZ3IURE.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Js=Object.create;var No=Object.defineProperty,Qs=Object.defineProperties,ec=Object.getOwnPropertyDescriptor,oc=Object.getOwnPropertyDescriptors,nc=Object.getOwnPropertyNames,Qo=Object.getOwnPropertySymbols,tc=Object.getPrototypeOf,qn=Object.prototype.hasOwnProperty,hr=Object.prototype.propertyIsEnumerable;var fr=(e,o,n)=>o in e?No(e,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[o]=n,y=(e,o)=>{for(var n in o||(o={}))qn.call(o,n)&&fr(e,n,o[n]);if(Qo)for(var n of Qo(o))hr.call(o,n)&&fr(e,n,o[n]);return e},A=(e,o)=>Qs(e,oc(o));var en=(e,o)=>{var n={};for(var r in e)qn.call(e,r)&&o.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Qo)for(var r of Qo(e))o.indexOf(r)<0&&hr.call(e,r)&&(n[r]=e[r]);return n};var b=(e,o)=>()=>(e&&(o=e(e=0)),o);var on=(e,o)=>()=>(o||e((o={exports:{}}).exports,o),o.exports),Ue=(e,o)=>{for(var n in o)No(e,n,{get:o[n],enumerable:!0})},yr=(e,o,n,r)=>{if(o&&typeof o=="object"||typeof o=="function")for(let c of nc(o))!qn.call(e,c)&&c!==n&&No(e,c,{get:()=>o[c],enumerable:!(r=ec(o,c))||r.enumerable});return e};var h=(e,o,n)=>(n=e!=null?Js(tc(e)):{},yr(o||!e||!e.__esModule?No(n,"default",{value:e,enumerable:!0}):n,e)),Eo=e=>yr(No({},"__esModule",{value:!0}),e);var S=(e,o,n)=>new Promise((r,c)=>{var p=m=>{try{_(n.next(m))}catch(g){c(g)}},d=m=>{try{_(n.throw(m))}catch(g){c(g)}},_=m=>m.done?r(m.value):Promise.resolve(m.value).then(p,d);_((n=n.apply(e,o)).next())});var br=on(nn=>{"use strict";t();nn.byteLength=ac;nn.toByteArray=sc;nn.fromByteArray=dc;var ge=[],ie=[],rc=typeof Uint8Array!="undefined"?Uint8Array:Array,Kn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(We=0,xr=Kn.length;We<xr;++We)ge[We]=Kn[We],ie[Kn.charCodeAt(We)]=We;var We,xr;ie["-".charCodeAt(0)]=62;ie["_".charCodeAt(0)]=63;function Tr(e){var o=e.length;if(o%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");n===-1&&(n=o);var r=n===o?0:4-n%4;return[n,r]}function ac(e){var o=Tr(e),n=o[0],r=o[1];return(n+r)*3/4-r}function ic(e,o,n){return(o+n)*3/4-n}function sc(e){var o,n=Tr(e),r=n[0],c=n[1],p=new rc(ic(e,r,c)),d=0,_=c>0?r-4:r,m;for(m=0;m<_;m+=4)o=ie[e.charCodeAt(m)]<<18|ie[e.charCodeAt(m+1)]<<12|ie[e.charCodeAt(m+2)]<<6|ie[e.charCodeAt(m+3)],p[d++]=o>>16&255,p[d++]=o>>8&255,p[d++]=o&255;return c===2&&(o=ie[e.charCodeAt(m)]<<2|ie[e.charCodeAt(m+1)]>>4,p[d++]=o&255),c===1&&(o=ie[e.charCodeAt(m)]<<10|ie[e.charCodeAt(m+1)]<<4|ie[e.charCodeAt(m+2)]>>2,p[d++]=o>>8&255,p[d++]=o&255),p}function cc(e){return ge[e>>18&63]+ge[e>>12&63]+ge[e>>6&63]+ge[e&63]}function pc(e,o,n){for(var r,c=[],p=o;p<n;p+=3)r=(e[p]<<16&16711680)+(e[p+1]<<8&65280)+(e[p+2]&255),c.push(cc(r));return c.join("")}function dc(e){for(var o,n=e.length,r=n%3,c=[],p=16383,d=0,_=n-r;d<_;d+=p)c.push(pc(e,d,d+p>_?_:d+p));return r===1?(o=e[n-1],c.push(ge[o>>2]+ge[o<<4&63]+"==")):r===2&&(o=(e[n-2]<<8)+e[n-1],c.push(ge[o>>10]+ge[o>>4&63]+ge[o<<2&63]+"=")),c.join("")}});var Sr=on(Xn=>{t();Xn.read=function(e,o,n,r,c){var p,d,_=c*8-r-1,m=(1<<_)-1,g=m>>1,u=-7,f=n?c-1:0,T=n?-1:1,C=e[o+f];for(f+=T,p=C&(1<<-u)-1,C>>=-u,u+=_;u>0;p=p*256+e[o+f],f+=T,u-=8);for(d=p&(1<<-u)-1,p>>=-u,u+=r;u>0;d=d*256+e[o+f],f+=T,u-=8);if(p===0)p=1-g;else{if(p===m)return d?NaN:(C?-1:1)*(1/0);d=d+Math.pow(2,r),p=p-g}return(C?-1:1)*d*Math.pow(2,p-r)};Xn.write=function(e,o,n,r,c,p){var d,_,m,g=p*8-c-1,u=(1<<g)-1,f=u>>1,T=c===23?Math.pow(2,-24)-Math.pow(2,-77):0,C=r?0:p-1,w=r?1:-1,I=o<0||o===0&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(_=isNaN(o)?1:0,d=u):(d=Math.floor(Math.log(o)/Math.LN2),o*(m=Math.pow(2,-d))<1&&(d--,m*=2),d+f>=1?o+=T/m:o+=T*Math.pow(2,1-f),o*m>=2&&(d++,m/=2),d+f>=u?(_=0,d=u):d+f>=1?(_=(o*m-1)*Math.pow(2,c),d=d+f):(_=o*Math.pow(2,f-1)*Math.pow(2,c),d=0));c>=8;e[n+C]=_&255,C+=w,_/=256,c-=8);for(d=d<<c|_,g+=c;g>0;e[n+C]=d&255,C+=w,d/=256,g-=8);e[n+C-w]|=I*128}});var Rr=on(ro=>{"use strict";t();var Yn=br(),to=Sr(),wr=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;ro.Buffer=l;ro.SlowBuffer=fc;ro.INSPECT_MAX_BYTES=50;var tn=2147483647;ro.kMaxLength=tn;l.TYPED_ARRAY_SUPPORT=mc();!l.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 mc(){try{var e=new Uint8Array(1),o={foo:function(){return 42}};return Object.setPrototypeOf(o,Uint8Array.prototype),Object.setPrototypeOf(e,o),e.foo()===42}catch(n){return!1}}Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(!!l.isBuffer(this))return this.buffer}});Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(!!l.isBuffer(this))return this.byteOffset}});function be(e){if(e>tn)throw new RangeError('The value "'+e+'" is invalid for option "size"');var o=new Uint8Array(e);return Object.setPrototypeOf(o,l.prototype),o}function l(e,o,n){if(typeof e=="number"){if(typeof o=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return et(e)}return kr(e,o,n)}l.poolSize=8192;function kr(e,o,n){if(typeof e=="string")return _c(e,o);if(ArrayBuffer.isView(e))return gc(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(ue(e,ArrayBuffer)||e&&ue(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(ue(e,SharedArrayBuffer)||e&&ue(e.buffer,SharedArrayBuffer)))return Jn(e,o,n);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(r!=null&&r!==e)return l.from(r,o,n);var c=uc(e);if(c)return c;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return l.from(e[Symbol.toPrimitive]("string"),o,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}l.from=function(e,o,n){return kr(e,o,n)};Object.setPrototypeOf(l.prototype,Uint8Array.prototype);Object.setPrototypeOf(l,Uint8Array);function Ir(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 lc(e,o,n){return Ir(e),e<=0?be(e):o!==void 0?typeof n=="string"?be(e).fill(o,n):be(e).fill(o):be(e)}l.alloc=function(e,o,n){return lc(e,o,n)};function et(e){return Ir(e),be(e<0?0:ot(e)|0)}l.allocUnsafe=function(e){return et(e)};l.allocUnsafeSlow=function(e){return et(e)};function _c(e,o){if((typeof o!="string"||o==="")&&(o="utf8"),!l.isEncoding(o))throw new TypeError("Unknown encoding: "+o);var n=Cr(e,o)|0,r=be(n),c=r.write(e,o);return c!==n&&(r=r.slice(0,c)),r}function Zn(e){for(var o=e.length<0?0:ot(e.length)|0,n=be(o),r=0;r<o;r+=1)n[r]=e[r]&255;return n}function gc(e){if(ue(e,Uint8Array)){var o=new Uint8Array(e);return Jn(o.buffer,o.byteOffset,o.byteLength)}return Zn(e)}function Jn(e,o,n){if(o<0||e.byteLength<o)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<o+(n||0))throw new RangeError('"length" is outside of buffer bounds');var r;return o===void 0&&n===void 0?r=new Uint8Array(e):n===void 0?r=new Uint8Array(e,o):r=new Uint8Array(e,o,n),Object.setPrototypeOf(r,l.prototype),r}function uc(e){if(l.isBuffer(e)){var o=ot(e.length)|0,n=be(o);return n.length===0||e.copy(n,0,0,o),n}if(e.length!==void 0)return typeof e.length!="number"||nt(e.length)?be(0):Zn(e);if(e.type==="Buffer"&&Array.isArray(e.data))return Zn(e.data)}function ot(e){if(e>=tn)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+tn.toString(16)+" bytes");return e|0}function fc(e){return+e!=e&&(e=0),l.alloc(+e)}l.isBuffer=function(o){return o!=null&&o._isBuffer===!0&&o!==l.prototype};l.compare=function(o,n){if(ue(o,Uint8Array)&&(o=l.from(o,o.offset,o.byteLength)),ue(n,Uint8Array)&&(n=l.from(n,n.offset,n.byteLength)),!l.isBuffer(o)||!l.isBuffer(n))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(o===n)return 0;for(var r=o.length,c=n.length,p=0,d=Math.min(r,c);p<d;++p)if(o[p]!==n[p]){r=o[p],c=n[p];break}return r<c?-1:c<r?1:0};l.isEncoding=function(o){switch(String(o).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}};l.concat=function(o,n){if(!Array.isArray(o))throw new TypeError('"list" argument must be an Array of Buffers');if(o.length===0)return l.alloc(0);var r;if(n===void 0)for(n=0,r=0;r<o.length;++r)n+=o[r].length;var c=l.allocUnsafe(n),p=0;for(r=0;r<o.length;++r){var d=o[r];if(ue(d,Uint8Array))p+d.length>c.length?l.from(d).copy(c,p):Uint8Array.prototype.set.call(c,d,p);else if(l.isBuffer(d))d.copy(c,p);else throw new TypeError('"list" argument must be an Array of Buffers');p+=d.length}return c};function Cr(e,o){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||ue(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 n=e.length,r=arguments.length>2&&arguments[2]===!0;if(!r&&n===0)return 0;for(var c=!1;;)switch(o){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return Qn(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n*2;case"hex":return n>>>1;case"base64":return Mr(e).length;default:if(c)return r?-1:Qn(e).length;o=(""+o).toLowerCase(),c=!0}}l.byteLength=Cr;function hc(e,o,n){var r=!1;if((o===void 0||o<0)&&(o=0),o>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,o>>>=0,n<=o))return"";for(e||(e="utf8");;)switch(e){case"hex":return Ic(this,o,n);case"utf8":case"utf-8":return Nr(this,o,n);case"ascii":return Ac(this,o,n);case"latin1":case"binary":return kc(this,o,n);case"base64":return wc(this,o,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Cc(this,o,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}l.prototype._isBuffer=!0;function Ge(e,o,n){var r=e[o];e[o]=e[n],e[n]=r}l.prototype.swap16=function(){var o=this.length;if(o%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var n=0;n<o;n+=2)Ge(this,n,n+1);return this};l.prototype.swap32=function(){var o=this.length;if(o%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var n=0;n<o;n+=4)Ge(this,n,n+3),Ge(this,n+1,n+2);return this};l.prototype.swap64=function(){var o=this.length;if(o%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var n=0;n<o;n+=8)Ge(this,n,n+7),Ge(this,n+1,n+6),Ge(this,n+2,n+5),Ge(this,n+3,n+4);return this};l.prototype.toString=function(){var o=this.length;return o===0?"":arguments.length===0?Nr(this,0,o):hc.apply(this,arguments)};l.prototype.toLocaleString=l.prototype.toString;l.prototype.equals=function(o){if(!l.isBuffer(o))throw new TypeError("Argument must be a Buffer");return this===o?!0:l.compare(this,o)===0};l.prototype.inspect=function(){var o="",n=ro.INSPECT_MAX_BYTES;return o=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(o+=" ... "),"<Buffer "+o+">"};wr&&(l.prototype[wr]=l.prototype.inspect);l.prototype.compare=function(o,n,r,c,p){if(ue(o,Uint8Array)&&(o=l.from(o,o.offset,o.byteLength)),!l.isBuffer(o))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof o);if(n===void 0&&(n=0),r===void 0&&(r=o?o.length:0),c===void 0&&(c=0),p===void 0&&(p=this.length),n<0||r>o.length||c<0||p>this.length)throw new RangeError("out of range index");if(c>=p&&n>=r)return 0;if(c>=p)return-1;if(n>=r)return 1;if(n>>>=0,r>>>=0,c>>>=0,p>>>=0,this===o)return 0;for(var d=p-c,_=r-n,m=Math.min(d,_),g=this.slice(c,p),u=o.slice(n,r),f=0;f<m;++f)if(g[f]!==u[f]){d=g[f],_=u[f];break}return d<_?-1:_<d?1:0};function Lr(e,o,n,r,c){if(e.length===0)return-1;if(typeof n=="string"?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,nt(n)&&(n=c?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(c)return-1;n=e.length-1}else if(n<0)if(c)n=0;else return-1;if(typeof o=="string"&&(o=l.from(o,r)),l.isBuffer(o))return o.length===0?-1:vr(e,o,n,r,c);if(typeof o=="number")return o=o&255,typeof Uint8Array.prototype.indexOf=="function"?c?Uint8Array.prototype.indexOf.call(e,o,n):Uint8Array.prototype.lastIndexOf.call(e,o,n):vr(e,[o],n,r,c);throw new TypeError("val must be string, number or Buffer")}function vr(e,o,n,r,c){var p=1,d=e.length,_=o.length;if(r!==void 0&&(r=String(r).toLowerCase(),r==="ucs2"||r==="ucs-2"||r==="utf16le"||r==="utf-16le")){if(e.length<2||o.length<2)return-1;p=2,d/=2,_/=2,n/=2}function m(C,w){return p===1?C[w]:C.readUInt16BE(w*p)}var g;if(c){var u=-1;for(g=n;g<d;g++)if(m(e,g)===m(o,u===-1?0:g-u)){if(u===-1&&(u=g),g-u+1===_)return u*p}else u!==-1&&(g-=g-u),u=-1}else for(n+_>d&&(n=d-_),g=n;g>=0;g--){for(var f=!0,T=0;T<_;T++)if(m(e,g+T)!==m(o,T)){f=!1;break}if(f)return g}return-1}l.prototype.includes=function(o,n,r){return this.indexOf(o,n,r)!==-1};l.prototype.indexOf=function(o,n,r){return Lr(this,o,n,r,!0)};l.prototype.lastIndexOf=function(o,n,r){return Lr(this,o,n,r,!1)};function yc(e,o,n,r){n=Number(n)||0;var c=e.length-n;r?(r=Number(r),r>c&&(r=c)):r=c;var p=o.length;r>p/2&&(r=p/2);for(var d=0;d<r;++d){var _=parseInt(o.substr(d*2,2),16);if(nt(_))return d;e[n+d]=_}return d}function xc(e,o,n,r){return rn(Qn(o,e.length-n),e,n,r)}function Tc(e,o,n,r){return rn(Ec(o),e,n,r)}function bc(e,o,n,r){return rn(Mr(o),e,n,r)}function Sc(e,o,n,r){return rn(Dc(o,e.length-n),e,n,r)}l.prototype.write=function(o,n,r,c){if(n===void 0)c="utf8",r=this.length,n=0;else if(r===void 0&&typeof n=="string")c=n,r=this.length,n=0;else if(isFinite(n))n=n>>>0,isFinite(r)?(r=r>>>0,c===void 0&&(c="utf8")):(c=r,r=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var p=this.length-n;if((r===void 0||r>p)&&(r=p),o.length>0&&(r<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");c||(c="utf8");for(var d=!1;;)switch(c){case"hex":return yc(this,o,n,r);case"utf8":case"utf-8":return xc(this,o,n,r);case"ascii":case"latin1":case"binary":return Tc(this,o,n,r);case"base64":return bc(this,o,n,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Sc(this,o,n,r);default:if(d)throw new TypeError("Unknown encoding: "+c);c=(""+c).toLowerCase(),d=!0}};l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function wc(e,o,n){return o===0&&n===e.length?Yn.fromByteArray(e):Yn.fromByteArray(e.slice(o,n))}function Nr(e,o,n){n=Math.min(e.length,n);for(var r=[],c=o;c<n;){var p=e[c],d=null,_=p>239?4:p>223?3:p>191?2:1;if(c+_<=n){var m,g,u,f;switch(_){case 1:p<128&&(d=p);break;case 2:m=e[c+1],(m&192)===128&&(f=(p&31)<<6|m&63,f>127&&(d=f));break;case 3:m=e[c+1],g=e[c+2],(m&192)===128&&(g&192)===128&&(f=(p&15)<<12|(m&63)<<6|g&63,f>2047&&(f<55296||f>57343)&&(d=f));break;case 4:m=e[c+1],g=e[c+2],u=e[c+3],(m&192)===128&&(g&192)===128&&(u&192)===128&&(f=(p&15)<<18|(m&63)<<12|(g&63)<<6|u&63,f>65535&&f<1114112&&(d=f))}}d===null?(d=65533,_=1):d>65535&&(d-=65536,r.push(d>>>10&1023|55296),d=56320|d&1023),r.push(d),c+=_}return vc(r)}var Ar=4096;function vc(e){var o=e.length;if(o<=Ar)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<o;)n+=String.fromCharCode.apply(String,e.slice(r,r+=Ar));return n}function Ac(e,o,n){var r="";n=Math.min(e.length,n);for(var c=o;c<n;++c)r+=String.fromCharCode(e[c]&127);return r}function kc(e,o,n){var r="";n=Math.min(e.length,n);for(var c=o;c<n;++c)r+=String.fromCharCode(e[c]);return r}function Ic(e,o,n){var r=e.length;(!o||o<0)&&(o=0),(!n||n<0||n>r)&&(n=r);for(var c="",p=o;p<n;++p)c+=Pc[e[p]];return c}function Cc(e,o,n){for(var r=e.slice(o,n),c="",p=0;p<r.length-1;p+=2)c+=String.fromCharCode(r[p]+r[p+1]*256);return c}l.prototype.slice=function(o,n){var r=this.length;o=~~o,n=n===void 0?r:~~n,o<0?(o+=r,o<0&&(o=0)):o>r&&(o=r),n<0?(n+=r,n<0&&(n=0)):n>r&&(n=r),n<o&&(n=o);var c=this.subarray(o,n);return Object.setPrototypeOf(c,l.prototype),c};function H(e,o,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+o>n)throw new RangeError("Trying to access beyond buffer length")}l.prototype.readUintLE=l.prototype.readUIntLE=function(o,n,r){o=o>>>0,n=n>>>0,r||H(o,n,this.length);for(var c=this[o],p=1,d=0;++d<n&&(p*=256);)c+=this[o+d]*p;return c};l.prototype.readUintBE=l.prototype.readUIntBE=function(o,n,r){o=o>>>0,n=n>>>0,r||H(o,n,this.length);for(var c=this[o+--n],p=1;n>0&&(p*=256);)c+=this[o+--n]*p;return c};l.prototype.readUint8=l.prototype.readUInt8=function(o,n){return o=o>>>0,n||H(o,1,this.length),this[o]};l.prototype.readUint16LE=l.prototype.readUInt16LE=function(o,n){return o=o>>>0,n||H(o,2,this.length),this[o]|this[o+1]<<8};l.prototype.readUint16BE=l.prototype.readUInt16BE=function(o,n){return o=o>>>0,n||H(o,2,this.length),this[o]<<8|this[o+1]};l.prototype.readUint32LE=l.prototype.readUInt32LE=function(o,n){return o=o>>>0,n||H(o,4,this.length),(this[o]|this[o+1]<<8|this[o+2]<<16)+this[o+3]*16777216};l.prototype.readUint32BE=l.prototype.readUInt32BE=function(o,n){return o=o>>>0,n||H(o,4,this.length),this[o]*16777216+(this[o+1]<<16|this[o+2]<<8|this[o+3])};l.prototype.readIntLE=function(o,n,r){o=o>>>0,n=n>>>0,r||H(o,n,this.length);for(var c=this[o],p=1,d=0;++d<n&&(p*=256);)c+=this[o+d]*p;return p*=128,c>=p&&(c-=Math.pow(2,8*n)),c};l.prototype.readIntBE=function(o,n,r){o=o>>>0,n=n>>>0,r||H(o,n,this.length);for(var c=n,p=1,d=this[o+--c];c>0&&(p*=256);)d+=this[o+--c]*p;return p*=128,d>=p&&(d-=Math.pow(2,8*n)),d};l.prototype.readInt8=function(o,n){return o=o>>>0,n||H(o,1,this.length),this[o]&128?(255-this[o]+1)*-1:this[o]};l.prototype.readInt16LE=function(o,n){o=o>>>0,n||H(o,2,this.length);var r=this[o]|this[o+1]<<8;return r&32768?r|4294901760:r};l.prototype.readInt16BE=function(o,n){o=o>>>0,n||H(o,2,this.length);var r=this[o+1]|this[o]<<8;return r&32768?r|4294901760:r};l.prototype.readInt32LE=function(o,n){return o=o>>>0,n||H(o,4,this.length),this[o]|this[o+1]<<8|this[o+2]<<16|this[o+3]<<24};l.prototype.readInt32BE=function(o,n){return o=o>>>0,n||H(o,4,this.length),this[o]<<24|this[o+1]<<16|this[o+2]<<8|this[o+3]};l.prototype.readFloatLE=function(o,n){return o=o>>>0,n||H(o,4,this.length),to.read(this,o,!0,23,4)};l.prototype.readFloatBE=function(o,n){return o=o>>>0,n||H(o,4,this.length),to.read(this,o,!1,23,4)};l.prototype.readDoubleLE=function(o,n){return o=o>>>0,n||H(o,8,this.length),to.read(this,o,!0,52,8)};l.prototype.readDoubleBE=function(o,n){return o=o>>>0,n||H(o,8,this.length),to.read(this,o,!1,52,8)};function Q(e,o,n,r,c,p){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(o>c||o<p)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}l.prototype.writeUintLE=l.prototype.writeUIntLE=function(o,n,r,c){if(o=+o,n=n>>>0,r=r>>>0,!c){var p=Math.pow(2,8*r)-1;Q(this,o,n,r,p,0)}var d=1,_=0;for(this[n]=o&255;++_<r&&(d*=256);)this[n+_]=o/d&255;return n+r};l.prototype.writeUintBE=l.prototype.writeUIntBE=function(o,n,r,c){if(o=+o,n=n>>>0,r=r>>>0,!c){var p=Math.pow(2,8*r)-1;Q(this,o,n,r,p,0)}var d=r-1,_=1;for(this[n+d]=o&255;--d>=0&&(_*=256);)this[n+d]=o/_&255;return n+r};l.prototype.writeUint8=l.prototype.writeUInt8=function(o,n,r){return o=+o,n=n>>>0,r||Q(this,o,n,1,255,0),this[n]=o&255,n+1};l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(o,n,r){return o=+o,n=n>>>0,r||Q(this,o,n,2,65535,0),this[n]=o&255,this[n+1]=o>>>8,n+2};l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(o,n,r){return o=+o,n=n>>>0,r||Q(this,o,n,2,65535,0),this[n]=o>>>8,this[n+1]=o&255,n+2};l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(o,n,r){return o=+o,n=n>>>0,r||Q(this,o,n,4,4294967295,0),this[n+3]=o>>>24,this[n+2]=o>>>16,this[n+1]=o>>>8,this[n]=o&255,n+4};l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(o,n,r){return o=+o,n=n>>>0,r||Q(this,o,n,4,4294967295,0),this[n]=o>>>24,this[n+1]=o>>>16,this[n+2]=o>>>8,this[n+3]=o&255,n+4};l.prototype.writeIntLE=function(o,n,r,c){if(o=+o,n=n>>>0,!c){var p=Math.pow(2,8*r-1);Q(this,o,n,r,p-1,-p)}var d=0,_=1,m=0;for(this[n]=o&255;++d<r&&(_*=256);)o<0&&m===0&&this[n+d-1]!==0&&(m=1),this[n+d]=(o/_>>0)-m&255;return n+r};l.prototype.writeIntBE=function(o,n,r,c){if(o=+o,n=n>>>0,!c){var p=Math.pow(2,8*r-1);Q(this,o,n,r,p-1,-p)}var d=r-1,_=1,m=0;for(this[n+d]=o&255;--d>=0&&(_*=256);)o<0&&m===0&&this[n+d+1]!==0&&(m=1),this[n+d]=(o/_>>0)-m&255;return n+r};l.prototype.writeInt8=function(o,n,r){return o=+o,n=n>>>0,r||Q(this,o,n,1,127,-128),o<0&&(o=255+o+1),this[n]=o&255,n+1};l.prototype.writeInt16LE=function(o,n,r){return o=+o,n=n>>>0,r||Q(this,o,n,2,32767,-32768),this[n]=o&255,this[n+1]=o>>>8,n+2};l.prototype.writeInt16BE=function(o,n,r){return o=+o,n=n>>>0,r||Q(this,o,n,2,32767,-32768),this[n]=o>>>8,this[n+1]=o&255,n+2};l.prototype.writeInt32LE=function(o,n,r){return o=+o,n=n>>>0,r||Q(this,o,n,4,2147483647,-2147483648),this[n]=o&255,this[n+1]=o>>>8,this[n+2]=o>>>16,this[n+3]=o>>>24,n+4};l.prototype.writeInt32BE=function(o,n,r){return o=+o,n=n>>>0,r||Q(this,o,n,4,2147483647,-2147483648),o<0&&(o=4294967295+o+1),this[n]=o>>>24,this[n+1]=o>>>16,this[n+2]=o>>>8,this[n+3]=o&255,n+4};function Er(e,o,n,r,c,p){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function Dr(e,o,n,r,c){return o=+o,n=n>>>0,c||Er(e,o,n,4,34028234663852886e22,-34028234663852886e22),to.write(e,o,n,r,23,4),n+4}l.prototype.writeFloatLE=function(o,n,r){return Dr(this,o,n,!0,r)};l.prototype.writeFloatBE=function(o,n,r){return Dr(this,o,n,!1,r)};function Pr(e,o,n,r,c){return o=+o,n=n>>>0,c||Er(e,o,n,8,17976931348623157e292,-17976931348623157e292),to.write(e,o,n,r,52,8),n+8}l.prototype.writeDoubleLE=function(o,n,r){return Pr(this,o,n,!0,r)};l.prototype.writeDoubleBE=function(o,n,r){return Pr(this,o,n,!1,r)};l.prototype.copy=function(o,n,r,c){if(!l.isBuffer(o))throw new TypeError("argument should be a Buffer");if(r||(r=0),!c&&c!==0&&(c=this.length),n>=o.length&&(n=o.length),n||(n=0),c>0&&c<r&&(c=r),c===r||o.length===0||this.length===0)return 0;if(n<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(c<0)throw new RangeError("sourceEnd out of bounds");c>this.length&&(c=this.length),o.length-n<c-r&&(c=o.length-n+r);var p=c-r;return this===o&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(n,r,c):Uint8Array.prototype.set.call(o,this.subarray(r,c),n),p};l.prototype.fill=function(o,n,r,c){if(typeof o=="string"){if(typeof n=="string"?(c=n,n=0,r=this.length):typeof r=="string"&&(c=r,r=this.length),c!==void 0&&typeof c!="string")throw new TypeError("encoding must be a string");if(typeof c=="string"&&!l.isEncoding(c))throw new TypeError("Unknown encoding: "+c);if(o.length===1){var p=o.charCodeAt(0);(c==="utf8"&&p<128||c==="latin1")&&(o=p)}}else typeof o=="number"?o=o&255:typeof o=="boolean"&&(o=Number(o));if(n<0||this.length<n||this.length<r)throw new RangeError("Out of range index");if(r<=n)return this;n=n>>>0,r=r===void 0?this.length:r>>>0,o||(o=0);var d;if(typeof o=="number")for(d=n;d<r;++d)this[d]=o;else{var _=l.isBuffer(o)?o:l.from(o,c),m=_.length;if(m===0)throw new TypeError('The value "'+o+'" is invalid for argument "value"');for(d=0;d<r-n;++d)this[d+n]=_[d%m]}return this};var Lc=/[^+/0-9A-Za-z-_]/g;function Nc(e){if(e=e.split("=")[0],e=e.trim().replace(Lc,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function Qn(e,o){o=o||1/0;for(var n,r=e.length,c=null,p=[],d=0;d<r;++d){if(n=e.charCodeAt(d),n>55295&&n<57344){if(!c){if(n>56319){(o-=3)>-1&&p.push(239,191,189);continue}else if(d+1===r){(o-=3)>-1&&p.push(239,191,189);continue}c=n;continue}if(n<56320){(o-=3)>-1&&p.push(239,191,189),c=n;continue}n=(c-55296<<10|n-56320)+65536}else c&&(o-=3)>-1&&p.push(239,191,189);if(c=null,n<128){if((o-=1)<0)break;p.push(n)}else if(n<2048){if((o-=2)<0)break;p.push(n>>6|192,n&63|128)}else if(n<65536){if((o-=3)<0)break;p.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((o-=4)<0)break;p.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw new Error("Invalid code point")}return p}function Ec(e){for(var o=[],n=0;n<e.length;++n)o.push(e.charCodeAt(n)&255);return o}function Dc(e,o){for(var n,r,c,p=[],d=0;d<e.length&&!((o-=2)<0);++d)n=e.charCodeAt(d),r=n>>8,c=n%256,p.push(c),p.push(r);return p}function Mr(e){return Yn.toByteArray(Nc(e))}function rn(e,o,n,r){for(var c=0;c<r&&!(c+n>=o.length||c>=e.length);++c)o[c+n]=e[c];return c}function ue(e,o){return e instanceof o||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===o.name}function nt(e){return e!==e}var Pc=function(){for(var e="0123456789abcdef",o=new Array(256),n=0;n<16;++n)for(var r=n*16,c=0;c<16;++c)o[r+c]=e[n]+e[c];return o}()});var Wr=on((Jm,Ur)=>{t();var U=Ur.exports={},fe,he;function tt(){throw new Error("setTimeout has not been defined")}function rt(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?fe=setTimeout:fe=tt}catch(e){fe=tt}try{typeof clearTimeout=="function"?he=clearTimeout:he=rt}catch(e){he=rt}})();function Or(e){if(fe===setTimeout)return setTimeout(e,0);if((fe===tt||!fe)&&setTimeout)return fe=setTimeout,setTimeout(e,0);try{return fe(e,0)}catch(o){try{return fe.call(null,e,0)}catch(n){return fe.call(this,e,0)}}}function Mc(e){if(he===clearTimeout)return clearTimeout(e);if((he===rt||!he)&&clearTimeout)return he=clearTimeout,clearTimeout(e);try{return he(e)}catch(o){try{return he.call(null,e)}catch(n){return he.call(this,e)}}}var Se=[],ao=!1,He,an=-1;function Rc(){!ao||!He||(ao=!1,He.length?Se=He.concat(Se):an=-1,Se.length&&Fr())}function Fr(){if(!ao){var e=Or(Rc);ao=!0;for(var o=Se.length;o;){for(He=Se,Se=[];++an<o;)He&&He[an].run();an=-1,o=Se.length}He=null,ao=!1,Mc(e)}}U.nextTick=function(e){var o=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)o[n-1]=arguments[n];Se.push(new Br(e,o)),Se.length===1&&!ao&&Or(Fr)};function Br(e,o){this.fun=e,this.array=o}Br.prototype.run=function(){this.fun.apply(null,this.array)};U.title="browser";U.browser=!0;U.env={};U.argv=[];U.version="";U.versions={};function we(){}U.on=we;U.addListener=we;U.once=we;U.off=we;U.removeListener=we;U.removeAllListeners=we;U.emit=we;U.prependListener=we;U.prependOnceListener=we;U.listeners=function(e){return[]};U.binding=function(e){throw new Error("process.binding is not supported")};U.cwd=function(){return"/"};U.chdir=function(e){throw new Error("process.chdir is not supported")};U.umask=function(){return 0}});var a,i,Qm,t=b(()=>{a=h(Rr()),i=h(Wr()),Qm=function(e){function o(){var r=this||self;return delete e.prototype.__magic__,r}if(typeof globalThis=="object")return globalThis;if(this)return o();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:o});var n=__magic__;return n}(Object)});var Do,$e=b(()=>{"use strict";t();Do="Action not allowed. User is logged in. Call logout() first"});var Gr=b(()=>{"use strict";t()});var Hr=b(()=>{"use strict";t()});var $r=b(()=>{"use strict";t()});var M=b(()=>{"use strict";t()});var Vr=b(()=>{"use strict";t()});var zr=b(()=>{"use strict";t()});var X=b(()=>{"use strict";t()});var jr=b(()=>{"use strict";t()});var qr=b(()=>{"use strict";t()});var Y=b(()=>{"use strict";t();Gr();Hr();$r();M();Vr();zr();X();jr();qr()});var at,Kr,yl,Xr,xl,Yr,Zr,Tl,bl,Jr=b(()=>{"use strict";t();Y();at={devnet:{id:"devnet",chainId:"D",name:"Devnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://devnet-wallet.multiversx.com",apiAddress:"https://devnet-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",apiTimeout:"4000"},testnet:{id:"testnet",chainId:"T",name:"Testnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://testnet-wallet.multiversx.com",apiAddress:"https://testnet-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",apiTimeout:"4000"},mainnet:{id:"mainnet",chainId:"1",name:"Mainnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://wallet.multiversx.com",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",apiTimeout:"4000"}},{chainId:Kr,egldLabel:yl}=at["devnet"],{chainId:Xr,egldLabel:xl}=at["testnet"],{chainId:Yr,egldLabel:Zr}=at["mainnet"],Tl={["devnet"]:Kr,["testnet"]:Xr,["mainnet"]:Yr},bl={[Kr]:"devnet",[Xr]:"testnet",[Yr]:"mainnet"}});var it,st=b(()=>{"use strict";t();it={36864:{code:"codeSuccess",message:"Success"},27013:{code:"ERR_USER_DENIED",message:"Rejected by user"},27904:{code:"ERR_UNKNOWN_INSTRUCTION",message:"Unknown instruction"},28160:{code:"ERR_WRONG_CLA",message:"Wrong CLA"},28161:{code:"ERR_INVALID_ARGUMENTS",message:"Invalid arguments"},28162:{code:"ERR_INVALID_MESSAGE",message:"Invalid message"},28163:{code:"ERR_INVALID_P1",message:"Invalid P1"},28164:{code:"ERR_MESSAGE_TOO_LONG",message:"Message too long"},28165:{code:"ERR_RECEIVER_TOO_LONG",message:"Receiver too long"},28166:{code:"ERR_AMOUNT_TOO_LONG",message:"Amount too long"},28167:{code:"ERR_CONTRACT_DATA_DISABLED",message:"Contract data disabled in app options"},28168:{code:"ERR_MESSAGE_INCOMPLETE",message:"Message incomplete"},28176:{code:"ERR_SIGNATURE_FAILED",message:"Signature failed"},28169:{code:"ERR_WRONG_TX_VERSION",message:"Wrong TX version"},28170:{code:"ERR_NONCE_TOO_LONG",message:"Nonce too long"},28171:{code:"ERR_INVALID_AMOUNT",message:"Invalid amount"},28172:{code:"ERR_INVALID_FEE",message:"Invalid fee"},28173:{code:"ERR_PRETTY_FAILED",message:"Pretty failed"},28174:{code:"ERR_DATA_TOO_LONG",message:"Data too long"},28175:{code:"ERR_WRONG_TX_OPTIONS",message:"Invalid transaction options"},28177:{code:"ERR_SIGN_TX_DEPRECATED",message:"Regular transaction signing is deprecated in this version. Use hash signing."}}});var Qr=b(()=>{"use strict";t()});var sn,ct=b(()=>{"use strict";t();sn="transaction-status-toast-id"});var ye,ea=b(()=>{"use strict";t();ye=require("@multiversx/sdk-web-wallet-provider")});var Po,cn,se,io,oa,na,pn,ta,xe,L=b(()=>{"use strict";t();$e();Jr();st();Qr();ct();ea();Po=5e4,cn=1e9,se=18,io=4,oa=1,na=1,pn="logout",ta="login",xe="0"});var so,dn=b(()=>{"use strict";t();so=()=>Date.now()/1e3});var ra=b(()=>{"use strict";t()});var aa=b(()=>{"use strict";t()});var pt=b(()=>{"use strict";t();dn();ra();aa()});var mt={};Ue(mt,{getItem:()=>Fc,localStorageKeys:()=>Ee,removeItem:()=>Bc,setItem:()=>Oc});var Ee,dt,Oc,Fc,Bc,co=b(()=>{"use strict";t();pt();Ee={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},dt=typeof localStorage!="undefined",Oc=({key:e,data:o,expires:n})=>{!dt||localStorage.setItem(String(e),JSON.stringify({expires:n,data:o}))},Fc=e=>{if(!dt)return;let o=localStorage.getItem(String(e));if(!o)return null;let n=JSON.parse(o);return!n||!n.hasOwnProperty("expires")||!n.hasOwnProperty("data")?null:so()>=n.expires?(localStorage.removeItem(String(e)),null):n.data},Bc=e=>{!dt||localStorage.removeItem(String(e))}});var lt={};Ue(lt,{clear:()=>pa,getItem:()=>sa,removeItem:()=>ca,setItem:()=>ia,storage:()=>Uc});var ia,sa,ca,pa,Uc,da=b(()=>{"use strict";t();ia=({key:e,data:o,expires:n})=>{sessionStorage.setItem(String(e),JSON.stringify({expires:n,data:o}))},sa=e=>{let o=sessionStorage.getItem(String(e));if(!o)return null;let n=JSON.parse(o);return!n||!n.hasOwnProperty("expires")||!n.hasOwnProperty("data")?null:Date.now()>=n.expires?(sessionStorage.removeItem(String(e)),null):n.data},ca=e=>sessionStorage.removeItem(String(e)),pa=()=>sessionStorage.clear(),Uc={setItem:ia,getItem:sa,removeItem:ca,clear:pa}});var Ve,po=b(()=>{"use strict";t();co();da();Ve={session:lt,local:mt}});var _t,j,ce,q=b(()=>{"use strict";t();_t=require("@reduxjs/toolkit");L();j=(0,_t.createAction)(pn),ce=(0,_t.createAction)(ta,e=>({payload:e}))});var ut,ma,la,mn,gt,_a,ft,Zl,ht,Jl,yt,ga,Ql,e_,o_,Wc,ua,xt=b(()=>{"use strict";t();ut=require("@multiversx/sdk-core"),ma=require("@reduxjs/toolkit"),la=require("redux-persist");L();po();co();q();mn={balance:"...",address:"",nonce:0,txCount:0,scrCount:0,claimableRewards:xe},gt={address:"",websocketEvent:null,accounts:{"":mn},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},_a=(0,ma.createSlice)({name:"accountInfoSlice",initialState:gt,reducers:{setAddress:(e,o)=>{let n=o.payload;e.address=n,e.publicKey=new ut.Address(n).hex()},setAccount:(e,o)=>{let n=e.address===o.payload.address;e.accounts={[e.address]:n?o.payload:mn},e.shard=o.payload.shard,e.isAccountLoading=!1,e.accountLoadingError=null},setAccountNonce:(e,o)=>{let{address:n}=e;e.accounts[n].nonce=o.payload},setAccountShard:(e,o)=>{e.shard=o.payload},setLedgerAccount:(e,o)=>{e.ledgerAccount=o.payload},updateLedgerAccount:(e,o)=>{e.ledgerAccount!=null&&(e.ledgerAccount.index=o.payload.index,e.ledgerAccount.address=o.payload.address)},setWalletConnectAccount:(e,o)=>{e.walletConnectAccount=o.payload},setIsAccountLoading:(e,o)=>{e.isAccountLoading=o.payload,e.accountLoadingError=null},setAccountLoadingError:(e,o)=>{e.accountLoadingError=o.payload,e.isAccountLoading=!1},setWebsocketEvent:(e,o)=>{e.websocketEvent={timestamp:Date.now(),message:o.payload}}},extraReducers:e=>{e.addCase(j,()=>(Ve.local.removeItem(Ee.loginExpiresAt),gt)),e.addCase(ce,(o,n)=>{let{address:r}=n.payload;o.address=r,o.publicKey=new ut.Address(r).hex()}),e.addCase(la.REHYDRATE,(o,n)=>{var g;if(!((g=n.payload)!=null&&g.account))return;let{account:r}=n.payload,{address:c,shard:p,accounts:d,publicKey:_}=r;o.address=c,o.shard=p;let m=d&&c in d;o.accounts=m?d:gt.accounts,o.publicKey=_})}}),{setAccount:ft,setAddress:Zl,setAccountNonce:ht,setAccountShard:Jl,setLedgerAccount:yt,updateLedgerAccount:ga,setWalletConnectAccount:Ql,setIsAccountLoading:e_,setAccountLoadingError:o_,setWebsocketEvent:Wc}=_a.actions,ua=_a.reducer});function Mo(){return new Date().setHours(new Date().getHours()+24)}function Ro(e){Ve.local.setItem({key:Ee.loginExpiresAt,data:e,expires:e})}var Tt=b(()=>{"use strict";t();po();co()});var ha,fa,ya,m_,xa,Ta,ln,l_,Gc,ba,__,Sa,bt=b(()=>{"use strict";t();ha=require("@reduxjs/toolkit");Tt();M();q();fa={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,isLoginSessionInvalid:!1},ya=(0,ha.createSlice)({name:"loginInfoSlice",initialState:fa,reducers:{setLoginMethod:(e,o)=>{e.loginMethod=o.payload},setTokenLogin:(e,o)=>{e.tokenLogin=o.payload},setTokenLoginSignature:(e,o)=>{(e==null?void 0:e.tokenLogin)!=null&&(e.tokenLogin.signature=o.payload)},setWalletLogin:(e,o)=>{e.walletLogin=o.payload},setWalletConnectLogin:(e,o)=>{e.walletConnectLogin=o.payload},setLedgerLogin:(e,o)=>{e.ledgerLogin=o.payload},invalidateLoginSession:e=>{e.isLoginSessionInvalid=!0},setLogoutRoute:(e,o)=>{e.logoutRoute=o.payload}},extraReducers:e=>{e.addCase(j,()=>fa),e.addCase(ce,(o,n)=>{o.loginMethod=n.payload.loginMethod,Ro(Mo())})}}),{setLoginMethod:m_,setWalletConnectLogin:xa,setLedgerLogin:Ta,setTokenLogin:ln,setTokenLoginSignature:l_,setWalletLogin:Gc,invalidateLoginSession:ba,setLogoutRoute:__}=ya.actions,Sa=ya.reducer});var va,wa,Aa,h_,Hc,y_,$c,ka,St=b(()=>{"use strict";t();va=require("@reduxjs/toolkit");q();wa={},Aa=(0,va.createSlice)({name:"modalsSlice",initialState:wa,reducers:{setTxSubmittedModal:(e,o)=>{e.txSubmittedModal=o.payload},setNotificationModal:(e,o)=>{e.notificationModal=o.payload},clearTxSubmittedModal:e=>{e.txSubmittedModal=void 0},clearNotificationModal:e=>{e.notificationModal=void 0}},extraReducers:e=>{e.addCase(j,()=>wa)}}),{setTxSubmittedModal:h_,setNotificationModal:Hc,clearTxSubmittedModal:y_,clearNotificationModal:$c}=Aa.actions,ka=Aa.reducer});var Vc,_n,Oo=b(()=>{"use strict";t();Vc=!1,_n=(e,o=0)=>{Vc||setTimeout(()=>{window.location.href=e,window.location.assign(e)},o)}});function ze({callbackRoute:e,onLoginRedirect:o,options:n}){let r=Boolean(e),c=typeof o=="function",p=c?0:zc;r&&e!=null&&setTimeout(()=>{if(c)return o(e,n);window.location.pathname.includes(e)||_n(e)},p)}var zc,Ia=b(()=>{"use strict";t();Oo();zc=200});function wt(e){return e[Math.floor(Math.random()*e.length)]}var Ca=b(()=>{"use strict";t()});function mo(e){let o=null;if((e==null?void 0:e.statusCode)in it){let n=e==null?void 0:e.statusCode,{message:r}=it[n];o=Kc.includes(n)?La:r}return{errorMessage:o,defaultErrorMessage:La}}var La,jc,qc,Kc,vt=b(()=>{"use strict";t();st();La="Check if the MultiversX app is open on Ledger",jc=28161,qc=28160,Kc=[jc,qc]});var je=b(()=>{"use strict";t();Ia();Ca();vt()});var Na,Ea,At,Xc,Da,D_,P_,Pa,kt=b(()=>{"use strict";t();Na=require("@reduxjs/toolkit"),Ea=h(require("lodash.omit"));je();At={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},Xc={network:At,chainID:"-1"},Da=(0,Na.createSlice)({name:"appConfig",initialState:Xc,reducers:{initializeNetworkConfig:(e,o)=>{let n=wt(o.payload.walletConnectBridgeAddresses),r=wt(o.payload.walletConnectV2RelayAddresses),c=(0,Ea.default)(o.payload,"walletConnectBridgeAddresses","walletConnectV2RelayAddresses");e.network=A(y(y({},e.network),c),{walletConnectBridgeAddress:n,walletConnectV2RelayAddress:r})},setChainID:(e,o)=>{e.chainID=o.payload}}}),{initializeNetworkConfig:D_,setChainID:P_}=Da.actions,Pa=Da.reducer});var Ma,It,Ra,U_,W_,G_,gn,un=b(()=>{"use strict";t();Ma=require("@reduxjs/toolkit");Y();q();It={isSigning:!1,signedSessions:{}},Ra=(0,Ma.createSlice)({name:"signedMessageInfoSliceState",initialState:It,reducers:{setSignSession:(e,o)=>{let{sessionId:n,signedSession:r,errorMessage:c}=o.payload;return A(y({},e),{errorMessage:c!=null?c:e.errorMessage,isSigning:r.status==="pending",signedSessions:A(y({},e.signedSessions),{[n]:r})})},setSignSessionState:(e,o)=>y(y({},e),o.payload),clearSignedMessageInfo:()=>It},extraReducers:e=>{e.addCase(j,()=>It)}}),{setSignSession:U_,clearSignedMessageInfo:W_,setSignSessionState:G_}=Ra.actions,gn=Ra.reducer});var Fa,Ba,Oa,Ua,Yc,Ct,X_,Y_,Z_,J_,fn,hn=b(()=>{"use strict";t();Fa=require("@reduxjs/toolkit"),Ba=require("redux-persist");ct();Y();dn();q();Oa={customToasts:[],transactionToasts:[],failTransactionToast:null},Ua=(0,Fa.createSlice)({name:"toastsSlice",initialState:Oa,reducers:{addCustomToast:(e,o)=>{e.customToasts.push(A(y({},o.payload),{type:"custom",toastId:o.payload.toastId||`custom-toast-${e.customToasts.length+1}`}))},removeCustomToast:(e,o)=>{e.customToasts=e.customToasts.filter(n=>n.toastId!==o.payload)},addTransactionToast:(e,o)=>{e.transactionToasts.push({type:"transaction",startTimestamp:so(),toastId:o.payload||`custom-toast-${e.transactionToasts.length+1}`})},removeTransactionToast:(e,o)=>{e.transactionToasts=e.transactionToasts.filter(n=>n.toastId!==o.payload)},addFailTransactionToast:(e,o)=>{e.failTransactionToast=A(y({},o.payload),{toastId:sn})},removeFailTransactionToast:e=>{e.failTransactionToast=null}},extraReducers:e=>{e.addCase(j,()=>Oa),e.addCase(Ba.REHYDRATE,(o,n)=>{var c,p;let r=(p=(c=n.customToasts)==null?void 0:c.filter(d=>!("component"in d)))!=null?p:[];o.customToasts=r})}}),{addCustomToast:Yc,removeCustomToast:Ct,addTransactionToast:X_,removeTransactionToast:Y_,addFailTransactionToast:Z_,removeFailTransactionToast:J_}=Ua.actions,fn=Ua.reducer});var Wa,Nt,Et,Dt,Zc,Lt,Ga,ng,Jc,Pt,yn,xn=b(()=>{"use strict";t();Wa=require("@reduxjs/toolkit");q();Nt="Transaction failed",Et="Transaction successful",Dt="Processing transaction",Zc="Transaction submitted",Lt={},Ga=(0,Wa.createSlice)({name:"transactionsInfo",initialState:Lt,reducers:{setTransactionsDisplayInfo(e,o){let{sessionId:n,transactionsDisplayInfo:r}=o.payload;n!=null&&(e[n]={errorMessage:(r==null?void 0:r.errorMessage)||Nt,successMessage:(r==null?void 0:r.successMessage)||Et,processingMessage:(r==null?void 0:r.processingMessage)||Dt,submittedMessage:(r==null?void 0:r.submittedMessage)||Zc,transactionDuration:r==null?void 0:r.transactionDuration})},clearTransactionsInfoForSessionId(e,o){o.payload!=null&&delete e[o.payload]},clearTransactionsInfo:()=>Lt},extraReducers:e=>{e.addCase(j,()=>Lt)}}),{clearTransactionsInfo:ng,setTransactionsDisplayInfo:Jc,clearTransactionsInfoForSessionId:Pt}=Ga.actions,yn=Ga.reducer});function lo(e){return e!=null&&(ip(e)||dp(e))}function _o(e){return e!=null&&(sp(e)||mp(e))}function go(e){return e!=null&&(cp(e)||lp(e))}function Mt(e){return e!=null&&pp(e)}function ip(e){return e!=null&&Qc.includes(e)}function sp(e){return e!=null&&ep.includes(e)}function cp(e){return e!=null&&op.includes(e)}function pp(e){return e!=null&&np.includes(e)}function dp(e){return e!=null&&tp.includes(e)}function mp(e){return e!=null&&rp.includes(e)}function lp(e){return e!=null&&ap.includes(e)}var Qc,ep,op,np,tp,rp,ap,uo=b(()=>{"use strict";t();M();Qc=["sent"],ep=["success"],op=["fail","cancelled","timedOut"],np=["timedOut"],tp=["pending"],rp=["success"],ap=["fail","invalid"]});var Ha,$a,Bo,_p,Va,za,ja,gp,Tn,up,fp,mg,hp,bn,Rt,Sn,wn=b(()=>{"use strict";t();Ha=require("@reduxjs/toolkit"),$a=require("redux-persist");M();uo();q();Bo={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},_p={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},Va=(0,Ha.createSlice)({name:"transactionsSlice",initialState:Bo,reducers:{moveTransactionsToSignedState:(e,o)=>{var m,g;let{sessionId:n,transactions:r,errorMessage:c,status:p,redirectRoute:d}=o.payload,_=((m=e.customTransactionInformationForSessionId)==null?void 0:m[n])||_p;e.signedTransactions[n]={transactions:r,status:p,errorMessage:c,redirectRoute:d,customTransactionInformation:_},((g=e==null?void 0:e.transactionsToSign)==null?void 0:g.sessionId)===n&&(e.transactionsToSign=Bo.transactionsToSign)},clearSignedTransaction:(e,o)=>{e.signedTransactions[o.payload]&&delete e.signedTransactions[o.payload]},clearTransactionToSign:e=>{e!=null&&e.transactionsToSign&&(e.transactionsToSign=null)},updateSignedTransaction:(e,o)=>{e.signedTransactions=y(y({},e.signedTransactions),o.payload)},updateSignedTransactions:(e,o)=>{let{sessionId:n,status:r,errorMessage:c,transactions:p}=o.payload;e.signedTransactions[n]!=null&&(e.signedTransactions[n].status=r,c!=null&&(e.signedTransactions[n].errorMessage=c),p!=null&&(e.signedTransactions[n].transactions=p))},updateSignedTransactionStatus:(e,o)=>{var _,m,g,u,f,T;let{sessionId:n,status:r,errorMessage:c,transactionHash:p}=o.payload,d=(m=(_=e.signedTransactions)==null?void 0:_[n])==null?void 0:m.transactions;if(d!=null){e.signedTransactions[n].transactions=d.map(I=>I.hash===p?A(y({},I),{status:r,errorMessage:c}):I);let C=(u=(g=e.signedTransactions[n])==null?void 0:g.transactions)==null?void 0:u.every(I=>_o(I.status)),w=(T=(f=e.signedTransactions[n])==null?void 0:f.transactions)==null?void 0:T.every(I=>go(I.status));C&&(e.signedTransactions[n].status="success"),w&&(e.signedTransactions[n].status="fail")}},setTransactionsToSign:(e,o)=>{e.transactionsToSign=o.payload;let{sessionId:n,customTransactionInformation:r}=o.payload;e.customTransactionInformationForSessionId[n]=r,e.signTransactionsError=null},clearAllTransactionsToSign:e=>{e.transactionsToSign=Bo.transactionsToSign,e.signTransactionsError=null},clearAllSignedTransactions:e=>{e.signedTransactions=Bo.signedTransactions},setSignTransactionsError:(e,o)=>{e.signTransactionsError=o.payload},setSignTransactionsCancelMessage:(e,o)=>{e.signTransactionsCancelMessage=o.payload}},extraReducers:e=>{e.addCase(j,()=>Bo),e.addCase($a.REHYDRATE,(o,n)=>{var d;if(o.signTransactionsCancelMessage=null,!((d=n.payload)!=null&&d.transactions))return;let{signedTransactions:r,customTransactionInformationForSessionId:c}=n.payload.transactions,p=Object.entries(r).reduce((_,[m,g])=>{let u=new Date(m),f=new Date;return f.setHours(f.getHours()+5),f-u>0||(_[m]=g),_},{});c!=null&&(o.customTransactionInformationForSessionId=c),r!=null&&(o.signedTransactions=p)})}}),{updateSignedTransactionStatus:za,updateSignedTransactions:ja,setTransactionsToSign:gp,clearAllTransactionsToSign:Tn,clearAllSignedTransactions:up,clearSignedTransaction:fp,clearTransactionToSign:mg,setSignTransactionsError:hp,setSignTransactionsCancelMessage:bn,moveTransactionsToSignedState:Rt}=Va.actions,Sn=Va.reducer});var N=b(()=>{"use strict";t();xt();bt();St();kt();un();hn();xn();wn()});var Ot=b(()=>{"use strict";t()});var Za,Ya,Ja,Ft,Rg,Og,Fg,Bg,Qa,ei,Bt=b(()=>{"use strict";t();Za=require("@reduxjs/toolkit");q();Ya={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},Ja=(0,Za.createSlice)({name:"dappModalsSlice",initialState:Ya,reducers:{setDappModalVisibility:(e,o)=>{e.visible=o.payload},setDappModalHeaderVisibility:(e,o)=>{e.modal.showHeader=o.payload},setDappModalFooterVisibility:(e,o)=>{e.modal.showFooter=o.payload},setDappModalHeaderText:(e,o)=>{e.modal.headerText=o.payload},setDappModalFooterText:(e,o)=>{e.modal.footerText=o.payload},setDappModalConfig:(e,o)=>{e.modal=y({},o.payload)}},extraReducers:e=>{e.addCase(j,()=>Ya)}}),{setDappModalVisibility:Ft,setDappModalHeaderVisibility:Rg,setDappModalFooterVisibility:Og,setDappModalHeaderText:Fg,setDappModalFooterText:Bg,setDappModalConfig:Qa}=Ja.actions,ei=Ja.reducer});var oi,bp,Sp,fo,In=b(()=>{"use strict";t();oi=require("@reduxjs/toolkit");Ot();xt();Bt();bt();St();kt();un();hn();xn();wn();bp={["account"]:ua,["dappModal"]:ei,["loginInfo"]:Sa,["modals"]:ka,["networkConfig"]:Pa,["signedMessageInfo"]:gn,["toasts"]:fn,["transactionsInfo"]:yn,["transactions"]:Sn},Sp=(e={})=>(0,oi.combineReducers)(y(y({},bp),e)),fo=Sp});var ri={};Ue(ri,{default:()=>Np});function Cn(e,o=[]){return{key:e,version:1,storage:ti.default,blacklist:o}}var De,ni,ti,wp,vp,Ap,kp,Ip,Cp,Lp,Np,ai=b(()=>{"use strict";t();De=require("redux-persist"),ni=h(require("redux-persist/lib/storage")),ti=h(require("redux-persist/lib/storage/session"));In();N();un();hn();xn();wn();Ot();wp={2:e=>A(y({},e),{networkConfig:At})};vp=Cn("sdk-dapp-transactionsInfo"),Ap=Cn("sdk-dapp-transactions",["transactionsToSign"]),kp=Cn("sdk-dapp-toasts"),Ip=Cn("sdk-dapp-signedMessageInfo"),Cp={key:"sdk-dapp-store",version:2,storage:ni.default,whitelist:["account","loginInfo","modals","networkConfig"],migrate:(0,De.createMigrate)(wp,{debug:!1})},Lp={["toasts"]:(0,De.persistReducer)(kp,fn),["transactions"]:(0,De.persistReducer)(Ap,Sn),["transactionsInfo"]:(0,De.persistReducer)(vp,yn),["signedMessageInfo"]:(0,De.persistReducer)(Ip,gn)},Np=(0,De.persistReducer)(Cp,fo(Lp))});var ii={};Ue(ii,{default:()=>Ep});var Ep,si=b(()=>{"use strict";t();In();Ep=fo()});var ci={};Ue(ci,{default:()=>Pp});var pe,Dp,Pp,pi=b(()=>{"use strict";t();pe=require("redux-persist"),Dp=[pe.FLUSH,pe.REHYDRATE,pe.PAUSE,pe.PERSIST,pe.PURGE,pe.REGISTER],Pp=Dp});var li={};Ue(li,{default:()=>mi});function mi(e){return(0,di.persistStore)(e)}var di,_i=b(()=>{"use strict";t();di=require("redux-persist")});var qm={};Ue(qm,{LedgerLoginContainer:()=>jm});module.exports=Eo(qm);t();var Lo=h(require("react"));t();t();var xi=require("react"),ho=require("react-redux");t();var Ut=require("@reduxjs/toolkit"),hi=require("react-redux/lib/utils/Subscription");N();t();var Ka=h(require("lodash.throttle"));L();t();var qa=h(require("lodash.isequal")),vn=require("reselect");Y();var x=(0,vn.createSelectorCreator)(vn.defaultMemoize,qa.default),Uo=(e,o)=>e!=""&&Boolean(o);N();Tt();po();co();var yp=[pn],An=!1,xp=(0,Ka.default)(()=>{Ro(Mo())},5e3),Xa=e=>o=>n=>{var m;if(yp.includes(n.type))return o(n);let r=e.getState(),c=Ve.local.getItem(Ee.loginExpiresAt);if(!Uo((m=r==null?void 0:r.loginInfo)==null?void 0:m.loginMethod,r==null?void 0:r.account.address))return o(n);if(c==null)return Ro(Mo());let d=Date.now();return c-d<0&&!An?setTimeout(()=>{An=!0,e.dispatch(ba())},1e3):(An&&(An=!1),xp()),o(n)};t();t();function kn(){return typeof sessionStorage!="undefined"}var gi=kn()?(ai(),Eo(ri)).default:(si(),Eo(ii)).default,ui=kn()?(pi(),Eo(ci)).default:[],fi=kn()?(_i(),Eo(li)).default:e=>e;In();var k=(0,Ut.configureStore)({reducer:gi,middleware:e=>e({serializableCheck:{ignoredActions:[...ui,ht.type,ft.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(Xa)}),yi=(0,hi.createSubscription)(k),mu=fi(k),lu=(0,Ut.configureStore)({reducer:fo});var Mp={store:k,subscription:yi},Wt=(0,xi.createContext)(Mp),fu=(0,ho.createStoreHook)(Wt),$=(0,ho.createDispatchHook)(Wt),v=(0,ho.createSelectorHook)(Wt);t();t();N();var ve=e=>e.account,yo=x(ve,e=>e.address),Ke=x(ve,yo,(e,o)=>o in e.accounts?e.accounts[o]:mn),Ti=x(ve,Ke,(e,o)=>{let c=e,{accounts:n}=c,r=en(c,["accounts"]);return A(y({},r),{account:o})}),Rp=x(Ke,e=>e.balance),Op=x(Ke,e=>{var o;return((o=e==null?void 0:e.nonce)==null?void 0:o.valueOf())||0}),Tu=x(ve,e=>e.shard),bi=x(ve,e=>e.ledgerAccount),bu=x(ve,e=>e.walletConnectAccount),Su=x(ve,e=>e.isAccountLoading),wu=x(ve,e=>e.accountLoadingError),Si=x(ve,e=>e.websocketEvent);t();var me=e=>e.loginInfo,Iu=x(me,e=>e.loginMethod),Ln=x(me,yo,(e,o)=>Uo(e.loginMethod,o)),Cu=x(me,e=>e.walletConnectLogin),Lu=x(me,e=>e.ledgerLogin),Fp=x(me,e=>e.walletLogin),Nu=x(me,e=>e.isLoginSessionInvalid),Nn=x(me,e=>e.tokenLogin),Eu=x(me,e=>e.logoutRoute);t();var wi=e=>e.modals,Mu=x(wi,e=>e.txSubmittedModal),Bp=x(wi,e=>e.notificationModal);t();var Ae=e=>e.networkConfig,En=x(Ae,e=>e.chainID),Up=x(Ae,e=>e.network.walletConnectBridgeAddress),Wp=x(Ae,e=>e.network.walletConnectV2RelayAddress),Gp=x(Ae,e=>e.network.walletConnectV2ProjectId),Hp=x(Ae,e=>e.network.walletConnectV2Options),vi=x(Ae,e=>e.network.walletConnectDeepLink),ke=x(Ae,e=>e.network),Gt=x(ke,e=>e.apiAddress),Ai=x(ke,e=>e.explorerAddress),Ht=x(ke,e=>e.egldLabel);t();var $t=e=>e.signedMessageInfo,Uu=x($t,e=>e.isSigning),Wu=x($t,e=>e.errorMessage),Gu=x($t,e=>{let o=Object.keys(e.signedSessions),n=o.length;return e.signedSessions[o[n-1]]});t();var Vt=e=>e.toasts,Vu=x(Vt,e=>e.customToasts),zu=x(Vt,e=>e.transactionToasts),ju=x(Vt,e=>e.failTransactionToast);t();N();var ki={errorMessage:Nt,successMessage:Et,processingMessage:Dt},$p=e=>e.transactionsInfo,Vp=x($p,(e,o)=>o,(e,o)=>o!=null&&(e==null?void 0:e[Number(o)])||ki);t();t();var te=require("@multiversx/sdk-core");L();t();function zt(e){try{return a.Buffer.from(e,"base64").toString()===atob(e)}catch(o){return!1}}function xo(e){return atob(e)}function Dn(e){var c,p,d;let{data:o}=e,n=zt(o!=null?o:"")?te.TransactionPayload.fromEncoded(o):new te.TransactionPayload(o),r=new te.Transaction(y({value:e.value.valueOf(),data:n,nonce:e.nonce.valueOf(),receiver:new te.Address(e.receiver),sender:new te.Address(e.sender),gasLimit:(c=e.gasLimit.valueOf())!=null?c:Po,gasPrice:(p=e.gasPrice.valueOf())!=null?p:cn,chainID:e.chainID.valueOf(),version:new te.TransactionVersion((d=e.version)!=null?d:oa)},e.options?{options:new te.TransactionOptions(e.options)}:{}));return r.applySignature({hex:()=>e.signature||""},new te.Address(e.sender)),r}t();uo();t();var jp=h(require("bignumber.js"));Y();t();t();t();t();var Kp=require("@multiversx/sdk-core"),Xp=h(require("bignumber.js"));M();t();var qp=require("@multiversx/sdk-core");t();t();t();var Zp=require("@multiversx/sdk-core/out");t();L();t();var Li=require("@multiversx/sdk-core");Y();t();t();t();t();M();t();t();t();t();t();t();t();var Pn="accounts";var qt="blocks";t();t();t();t();X();t();t();X();t();t();t();var nd=h(require("bignumber.js"));L();t();var Pi=require("@multiversx/sdk-core"),Pe=h(require("bignumber.js"));L();t();var Di=h(require("bignumber.js")),Wo=(e,o=!0)=>{let n=String(e);if(!n.match(/^[-]?\d+$/))return!1;let r=new Di.default(n),c=o?0:-1;return r.toString(10)===n&&r.comparedTo(0)>=c};t();function Ie(e){return{if:function(o){return o?{then:n=>n instanceof Function?Ie(n(e)):Ie(n)}:{then:()=>Ie(e)}},then:o=>o instanceof Function?Ie(o(e)):Ie(o),valueOf:function(){return e}}}Pe.default.config({ROUNDING_MODE:Pe.default.ROUND_FLOOR});function Xe({input:e,decimals:o=se,digits:n=io,showLastNonZeroDecimal:r=!0,showIsLessThanDecimalsLabel:c=!1,addCommas:p=!1}){if(!Wo(e,!1))throw new Error("Invalid input");let d=new Pe.default(e).isNegative(),_=e;return d&&(_=e.substring(1)),Ie(_).then(()=>Pi.TokenPayment.fungibleFromBigInteger("",_,o).toRationalNumber()).then(m=>{let g=new Pe.default(m);if(g.isZero())return xe;let u=g.toString(10),[f,T]=u.split("."),C=new Pe.default(T||0),w=Ie(0).if(Boolean(T&&r)).then(()=>Math.max(T.length,n)).if(C.isZero()&&!r).then(0).if(Boolean(T&&!r)).then(()=>Math.min(T.length,n)).valueOf(),I=T&&n>=1&&n<=T.length&&C.isGreaterThan(0)&&new Pe.default(T.substring(0,n)).isZero(),G=g.toFormat(w);return Ie(u).if(p).then(G).if(Boolean(I)).then(D=>{let oe=new Pe.default(f).isZero(),[F,J]=D.split("."),_e=new Array(n-1).fill(0),ae=[..._e,0].join(""),Be=[..._e,1].join("");return oe?c?`<${F}.${Be}`:r?`${F}.${J}`:F:`${F}.${ae}`}).if(Boolean(!I&&T)).then(D=>{let[oe]=D.split("."),F=T.substring(0,w);if(r){let J=n-F.length;if(J>0){let _e=Array(J).fill(0).join("");return F=`${F}${_e}`,`${oe}.${F}`}return D}return F?`${oe}.${F}`:oe}).valueOf()}).if(d).then(m=>`-${m}`).valueOf()}t();t();t();L();t();t();t();t();L();t();L();t();var td=require("@multiversx/sdk-core");L();t();var Go=require("@multiversx/sdk-core"),id=require("@multiversx/sdk-network-providers");L();t();t();var rd=h(require("bignumber.js"));L();t();L();t();t();t();t();t();L();t();X();var cd=["reDelegateRewards","claimRewards","unBond"],pd=["wrapEgld","unwrapEgld"],dd=["unStake"],md=["unDelegate"];t();t();t();L();t();var ud=h(require("bignumber.js"));t();t();t();X();t();var fd=h(require("bignumber.js"));t();t();t();t();X();t();t();t();var xd=h(require("linkifyjs"));t();L();t();var Td=h(require("bignumber.js"));t();Y();t();t();M();t();M();t();t();t();X();t();X();t();var bd=h(require("bignumber.js"));L();X();t();X();t();var Oi=require("react");Y();t();t();X();t();var Sd=require("@multiversx/sdk-core/out"),wd=h(require("bignumber.js"));X();t();X();t();t();M();var h0=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];t();var Fi=require("react");Y();t();var Ad=require("react");X();var v0=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];var On=e=>e.transactions,To=x(On,e=>e.signedTransactions),kd=x(On,e=>e.signTransactionsError),Bi=x(On,e=>e.signTransactionsCancelMessage),Fn=e=>o=>Object.entries(o).reduce((n,[r,c])=>(e(c.status)&&(n[r]=c),n),{}),Ui=x(To,Fn(lo)),Wi=x(To,Fn(_o)),Gi=x(To,Fn(go)),Id=x(To,Fn(Mt)),Hi=x(On,e=>{var o;return(e==null?void 0:e.transactionsToSign)==null?null:A(y({},e.transactionsToSign),{transactions:((o=e==null?void 0:e.transactionsToSign)==null?void 0:o.transactions.map(n=>Dn(n)))||[]})}),Cd=x(To,(e,o)=>o,(e,o)=>o!=null?(e==null?void 0:e[o])||{}:{});var Ho=()=>v(Ti);t();var Ko=require("react"),Wn=require("@multiversx/sdk-hw-provider");$e();t();t();t();var Ld=require("@multiversx/sdk-extension-provider"),Nd=require("@multiversx/sdk-hw-provider"),Ed=require("@multiversx/sdk-opera-provider"),Dd=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectProvider"),Pd=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectV2Provider"),Md=require("@multiversx/sdk-web-wallet-provider");L();M();var $i=e=>S(void 0,null,function*(){if(!e.isInitialized())throw new Error("Unable to get version. Provider not initialized");let o=e.hwApp,{contractData:n,version:r}=yield o.getAppConfiguration();return{version:r,dataEnabled:n===na}}),Ce=e=>`Unable to perform ${e}, Provider not initialized`,Xt=class{init(){return Promise.resolve(!1)}login(o){throw new Error(Ce(`login with options: ${o}`))}logout(o){throw new Error(Ce(`logout with options: ${o}`))}getAddress(){throw new Error(Ce("getAddress"))}isInitialized(){return!1}isConnected(){return Promise.resolve(!1)}sendTransaction(o,n){throw new Error(Ce(`sendTransaction with transactions: ${o} options: ${n}`))}signTransaction(o,n){throw new Error(Ce(`signTransaction with transactions: ${o} options: ${n}`))}signTransactions(o,n){throw new Error(Ce(`signTransactions with transactions: ${o} options: ${n}`))}signMessage(o,n){throw new Error(Ce(`signTransactions with ${o} and options ${n}`))}sendCustomMessage({method:o,params:n}){throw new Error(Ce(`sendCustomMessage with method: ${o} params: ${n}`))}sendCustomRequest(o){throw new Error(Ce(`sendSessionEvent with options: ${o}`))}ping(){return Promise.resolve(!1)}},Vi=new Xt;var Rd=Vi;function Ye(e){Rd=e}q();N();M();je();t();t();t();M();t();t();t();t();var ji=h(require("axios"));t();t();var zi=e=>{let o=e!=null?e:Gt(k.getState());return o.endsWith("/")?o.slice(0,-1):o};function qi(e){return S(this,null,function*(){if(!e)return null;let n=`${zi()}/${Pn}/${e}`;try{let{data:r}=yield ji.default.get(n);return r}catch(r){console.error("error fetching configuration for ",n)}return null})}function $o(e){return S(this,null,function*(){return yield qi(e)})}t();N();t();t();function Ki(e){return S(this,null,function*(){let o=e;o==null&&(o=Ke(k.getState()).address);let n=yield $o(o);if(n==null)throw"Could not read account, user not logged in";return n==null?void 0:n.balance})}t();N();t();var Zi=require("@multiversx/sdk-core");t();q();Y();t();t();pt();t();t();var Od=h(require("platform"));t();function Me(){return Ln(k.getState())}t();q();Y();Oo();po();co();t();t();t();t();t();function Ji(){return Ht(k.getState())}t();Oo();t();t();t();t();po();t();t();t();N();t();t();var Fd=h(require("axios"));t();var Je=require("react"),Bd=10,Qi=()=>{let[e,o]=(0,Je.useState)(""),[n,r]=(0,Je.useState)(!1),[c,p]=(0,Je.useState)(0),[d,_]=(0,Je.useState)([]),[m,g]=(0,Je.useState)(null),[u,f]=(0,Je.useState)(!1);return{accounts:d,setAccounts:_,isLoading:n,setIsLoading:r,setShowAddressList:f,showAddressList:u,startIndex:c,selectedAddress:m,onGoToPrevPage:()=>{g(null),p(I=>I===0?0:I-1)},onGoToNextPage:()=>{g(null),p(I=>I+1)},onSelectAddress:I=>{g(I)},error:e,setError:o,defaultAddressesPerPage:Bd}};t();var ps=require("react"),Un=require("@multiversx/sdk-core");t();t();var Vo=()=>v(Ke);t();t();t();t();t();var zo=h(require("react"));var u1=(0,zo.createContext)({}),f1=k.getState();t();var os=h(require("react"));t();var Zt=h(require("react")),Ud=h(require("axios"));t();t();t();N();t();t();t();var ns,jo={hostname:typeof window!="undefined"?(ns=window==null?void 0:window.location)==null?void 0:ns.hostname:"",apiAddress:"https://api.multiversx.com",expirySeconds:60*60*24,tokenExpirationToastWarningSeconds:5*60},qo=e=>{var n,r,c,p;return e===!0?jo:{hostname:(n=e==null?void 0:e.hostname)!=null?n:jo.hostname,expirySeconds:(r=e==null?void 0:e.expirySeconds)!=null?r:jo.expirySeconds,apiAddress:(c=e==null?void 0:e.apiAddress)!=null?c:jo.apiAddress,tokenExpirationToastWarningSeconds:(p=e==null?void 0:e.tokenExpirationToastWarningSeconds)!=null?p:jo.tokenExpirationToastWarningSeconds}};t();var Wd=e=>e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,""),bo=e=>Wd(a.Buffer.from(e,"utf8").toString("base64"));t();var ts=h(require("axios"));function rs(e){return S(this,null,function*(){let{data:o}=yield ts.default.get(`${e}/${qt}?size=1&fields=hash,timestamp`),[n]=o;return n})}t();t();t();function Gd(e){return Object.prototype.toString.call(e)==="[object String]"}var as=e=>{if(!e||!Gd(e))return null;try{let[o,n,r]=e.split("."),c=xo(o),p=xo(n),[d,_,m,g]=p.split("."),u=JSON.parse(xo(g)),f=xo(d),T={ttl:Number(m),address:c,extraInfo:u,host:f,signature:r,blockHash:_,body:p};return g==="e30"&&delete T.extraInfo,T}catch(o){return null}};var is=({address:e,token:o,signature:n})=>{let r=bo(e),c=bo(o);return`${r}.${c}.${n}`};t();dn();var ss=e=>{let o=as(e);if(!o)return{isExpired:!1};let n=so(),{ttl:r,extraInfo:c}=o,p=c.timestamp;if(!p)return{isExpired:!1};let d=p+r,_=n>d,m=d-n;return{isExpired:_,expiresAt:d,secondsUntilExpires:m}};var cs=e=>{let{hostname:o,apiAddress:n,expirySeconds:r}=qo(e);return{getNativeAuthConfig:qo,initialize:(...d)=>S(void 0,[...d],function*(p={}){let{hash:_,timestamp:m}=yield rs(n),g=bo(JSON.stringify(y(y({},p),m?{timestamp:m}:{})));return`${bo(o)}.${_}.${r}.${g}`}),getToken:is,getTokenExpiration:ss}};t();var Hd=(e,o)=>{var n;return o?o===!0?e:(n=o.apiAddress)!=null?n:e:null},Qe=e=>{let o=v(ke),n=v(Nn),r=(0,ps.useRef)(n==null?void 0:n.loginToken),c=Hd(o.apiAddress,e),p=qo(y(y({},e===!0?{}:e),c?{apiAddress:c}:{})),d=Boolean(e),_=cs(p),{address:m}=Vo(),g=$(),u=w=>{r.current=w,g(ln(y({loginToken:w},c?{nativeAuthConfig:p}:{})))},f=()=>S(void 0,null,function*(){try{return yield _.initialize()}catch(w){console.error("Unable to get block. Login failed.",w);return}}),T=({address:w,signature:I})=>{let G=r.current;if(!G)throw"Token not found. Call `setLoginToken` first.";if(!d){g(ln({loginToken:G,signature:I}));return}let Z=_.getToken({address:w,token:G,signature:I});g(ln(y({loginToken:G,signature:I,nativeAuthToken:Z},c?{nativeAuthConfig:p}:{})))};return{configuration:p,setLoginToken:u,getNativeAuthLoginToken:f,setTokenLoginInfo:T,refreshNativeAuthTokenLogin:I=>S(void 0,[I],function*({signMessageCallback:w}){let G=yield f();if(r.current=G,!G)return;let Z=new Un.SignableMessage({address:new Un.Address(m),message:a.Buffer.from(G)}),D=yield w(Z,{});T({address:m,signature:D.toJSON().signature})})}};var So="Check if the MultiversX App is open on Ledger";function Jt({callbackRoute:e,token:o,addressesPerPage:n,nativeAuth:r,onLoginRedirect:c}){let p=v(bi),d=$(),_=Me(),m=r!=null,g=Qe(r),u=o,{accounts:f,setAccounts:T,isLoading:C,setIsLoading:w,setShowAddressList:I,showAddressList:G,startIndex:Z,selectedAddress:D,onGoToPrevPage:oe,onGoToNextPage:F,onSelectAddress:J,error:_e,setError:ae,defaultAddressesPerPage:Be}=Qi(),Vn=n!=null?n:Be,no=new Wn.HWProvider,[mr,qs]=(0,Ko.useState)(""),[lr,Ks]=(0,Ko.useState)(!1);function _r({provider:E,address:P,index:B,signature:jn}){Ye(E),d(Ta({index:B,loginType:"ledger"})),jn&&g.setTokenLoginInfo({signature:jn,address:P}),d(ce({address:P,loginMethod:"ledger"})),ze({callbackRoute:e,onLoginRedirect:c,options:{address:P,signature:jn}})}let gr=(E,P="")=>{let{errorMessage:B}=mo(E);B&&ae(`${B}.${P}`),w(!1),console.warn(E),d(yt(null))};function Xs(E){return S(this,null,function*(){if(D==null)return!1;let{index:P}=D;if(m&&!u&&(u=yield g.getNativeAuthLoginToken(),!u)){console.warn("Fetching block failed. Login cancelled.");return}if(u){g.setLoginToken(u);try{let B=yield E.tokenLogin({token:a.Buffer.from(`${u}{}`),addressIndex:P});_r({address:B.address,provider:E,index:P,signature:B.signature.hex()})}catch(B){gr(B,". Update MultiversX App to continue.")}}else try{let B=yield E.login({addressIndex:P});_r({address:B,provider:E,index:P})}catch(B){return gr(B),!1}return!0})}function Ys(){return S(this,null,function*(){try{if(w(!0),D==null)return!1;d(p?ga(D):yt(A(y({},D),{version:mr,hasContractDataEnabled:lr})));let E=new Wn.HWProvider;if(!(yield E.init()))return ae(So),console.warn(So),!1;w(!1),yield Xs(E)}catch(E){let{errorMessage:P}=mo(E);P&&ae(P),console.warn(So,E)}finally{w(!1)}return I(!1),!0})}function ur(){return S(this,null,function*(){try{if(w(!0),!(yield no.init())){ae(So),console.warn(So),w(!1);return}let P=yield no.getAccounts(Z,Vn),B=yield $i(no);qs(B.version),Ks(B.dataEnabled),T(P),w(!1)}catch(E){let{errorMessage:P,defaultErrorMessage:B}=mo(E);ae(P!=null?P:B),console.error("error",E),w(!1)}})}function Zs(){return S(this,null,function*(){if(_)throw new Error(Do);ae("");try{if(w(!0),p!=null){let E=new Wn.HWProvider;if(!(yield E.init())||!D){console.warn(So);return}let B=yield E.login({addressIndex:D.index.valueOf()});if(Ye(E),!B){w(!1),console.warn("Login cancelled.");return}d(ce({address:B,loginMethod:"ledger"})),ze({callbackRoute:e,onLoginRedirect:c})}else(f==null?void 0:f.length)>0||(yield ur()),I(!0)}catch(E){console.error("error ",E);let{defaultErrorMessage:P}=mo();ae(P)}finally{w(!1)}})}(0,Ko.useEffect)(()=>{ur()},[Z]);let zn=Boolean(_e);return[Zs,{loginFailed:zn,isLoggedIn:_&&!zn,error:_e,isLoading:C&&!zn},{accounts:f,showAddressList:G,startIndex:Z,selectedAddress:D,version:mr,contractDataEnabled:lr,onGoToPrevPage:oe,onGoToNextPage:F,onSelectAddress:J,onConfirmSelectedAddress:Ys}]}t();t();var Ls=h(require("react"));t();t();t();var vo=h(require("react")),tr=h(require("classnames")),us=h(require("react-dom"));t();var $d=`.dapp-core-component__dappModalStyles__dappModal {
|
|
1
|
+
"use strict";var Js=Object.create;var Eo=Object.defineProperty,Qs=Object.defineProperties,ec=Object.getOwnPropertyDescriptor,oc=Object.getOwnPropertyDescriptors,nc=Object.getOwnPropertyNames,on=Object.getOwnPropertySymbols,tc=Object.getPrototypeOf,Kn=Object.prototype.hasOwnProperty,hr=Object.prototype.propertyIsEnumerable;var fr=(e,o,n)=>o in e?Eo(e,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[o]=n,y=(e,o)=>{for(var n in o||(o={}))Kn.call(o,n)&&fr(e,n,o[n]);if(on)for(var n of on(o))hr.call(o,n)&&fr(e,n,o[n]);return e},A=(e,o)=>Qs(e,oc(o));var nn=(e,o)=>{var n={};for(var r in e)Kn.call(e,r)&&o.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&on)for(var r of on(e))o.indexOf(r)<0&&hr.call(e,r)&&(n[r]=e[r]);return n};var b=(e,o)=>()=>(e&&(o=e(e=0)),o);var tn=(e,o)=>()=>(o||e((o={exports:{}}).exports,o),o.exports),Ge=(e,o)=>{for(var n in o)Eo(e,n,{get:o[n],enumerable:!0})},yr=(e,o,n,r)=>{if(o&&typeof o=="object"||typeof o=="function")for(let c of nc(o))!Kn.call(e,c)&&c!==n&&Eo(e,c,{get:()=>o[c],enumerable:!(r=ec(o,c))||r.enumerable});return e};var h=(e,o,n)=>(n=e!=null?Js(tc(e)):{},yr(o||!e||!e.__esModule?Eo(n,"default",{value:e,enumerable:!0}):n,e)),Do=e=>yr(Eo({},"__esModule",{value:!0}),e);var S=(e,o,n)=>new Promise((r,c)=>{var p=m=>{try{_(n.next(m))}catch(g){c(g)}},d=m=>{try{_(n.throw(m))}catch(g){c(g)}},_=m=>m.done?r(m.value):Promise.resolve(m.value).then(p,d);_((n=n.apply(e,o)).next())});var br=tn(rn=>{"use strict";t();rn.byteLength=ac;rn.toByteArray=sc;rn.fromByteArray=dc;var ge=[],ie=[],rc=typeof Uint8Array!="undefined"?Uint8Array:Array,Xn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(He=0,xr=Xn.length;He<xr;++He)ge[He]=Xn[He],ie[Xn.charCodeAt(He)]=He;var He,xr;ie["-".charCodeAt(0)]=62;ie["_".charCodeAt(0)]=63;function Tr(e){var o=e.length;if(o%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");n===-1&&(n=o);var r=n===o?0:4-n%4;return[n,r]}function ac(e){var o=Tr(e),n=o[0],r=o[1];return(n+r)*3/4-r}function ic(e,o,n){return(o+n)*3/4-n}function sc(e){var o,n=Tr(e),r=n[0],c=n[1],p=new rc(ic(e,r,c)),d=0,_=c>0?r-4:r,m;for(m=0;m<_;m+=4)o=ie[e.charCodeAt(m)]<<18|ie[e.charCodeAt(m+1)]<<12|ie[e.charCodeAt(m+2)]<<6|ie[e.charCodeAt(m+3)],p[d++]=o>>16&255,p[d++]=o>>8&255,p[d++]=o&255;return c===2&&(o=ie[e.charCodeAt(m)]<<2|ie[e.charCodeAt(m+1)]>>4,p[d++]=o&255),c===1&&(o=ie[e.charCodeAt(m)]<<10|ie[e.charCodeAt(m+1)]<<4|ie[e.charCodeAt(m+2)]>>2,p[d++]=o>>8&255,p[d++]=o&255),p}function cc(e){return ge[e>>18&63]+ge[e>>12&63]+ge[e>>6&63]+ge[e&63]}function pc(e,o,n){for(var r,c=[],p=o;p<n;p+=3)r=(e[p]<<16&16711680)+(e[p+1]<<8&65280)+(e[p+2]&255),c.push(cc(r));return c.join("")}function dc(e){for(var o,n=e.length,r=n%3,c=[],p=16383,d=0,_=n-r;d<_;d+=p)c.push(pc(e,d,d+p>_?_:d+p));return r===1?(o=e[n-1],c.push(ge[o>>2]+ge[o<<4&63]+"==")):r===2&&(o=(e[n-2]<<8)+e[n-1],c.push(ge[o>>10]+ge[o>>4&63]+ge[o<<2&63]+"=")),c.join("")}});var Sr=tn(Yn=>{t();Yn.read=function(e,o,n,r,c){var p,d,_=c*8-r-1,m=(1<<_)-1,g=m>>1,f=-7,u=n?c-1:0,T=n?-1:1,C=e[o+u];for(u+=T,p=C&(1<<-f)-1,C>>=-f,f+=_;f>0;p=p*256+e[o+u],u+=T,f-=8);for(d=p&(1<<-f)-1,p>>=-f,f+=r;f>0;d=d*256+e[o+u],u+=T,f-=8);if(p===0)p=1-g;else{if(p===m)return d?NaN:(C?-1:1)*(1/0);d=d+Math.pow(2,r),p=p-g}return(C?-1:1)*d*Math.pow(2,p-r)};Yn.write=function(e,o,n,r,c,p){var d,_,m,g=p*8-c-1,f=(1<<g)-1,u=f>>1,T=c===23?Math.pow(2,-24)-Math.pow(2,-77):0,C=r?0:p-1,w=r?1:-1,I=o<0||o===0&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(_=isNaN(o)?1:0,d=f):(d=Math.floor(Math.log(o)/Math.LN2),o*(m=Math.pow(2,-d))<1&&(d--,m*=2),d+u>=1?o+=T/m:o+=T*Math.pow(2,1-u),o*m>=2&&(d++,m/=2),d+u>=f?(_=0,d=f):d+u>=1?(_=(o*m-1)*Math.pow(2,c),d=d+u):(_=o*Math.pow(2,u-1)*Math.pow(2,c),d=0));c>=8;e[n+C]=_&255,C+=w,_/=256,c-=8);for(d=d<<c|_,g+=c;g>0;e[n+C]=d&255,C+=w,d/=256,g-=8);e[n+C-w]|=I*128}});var Rr=tn(ao=>{"use strict";t();var Zn=br(),ro=Sr(),wr=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;ao.Buffer=l;ao.SlowBuffer=fc;ao.INSPECT_MAX_BYTES=50;var an=2147483647;ao.kMaxLength=an;l.TYPED_ARRAY_SUPPORT=mc();!l.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 mc(){try{var e=new Uint8Array(1),o={foo:function(){return 42}};return Object.setPrototypeOf(o,Uint8Array.prototype),Object.setPrototypeOf(e,o),e.foo()===42}catch(n){return!1}}Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(!!l.isBuffer(this))return this.buffer}});Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(!!l.isBuffer(this))return this.byteOffset}});function Se(e){if(e>an)throw new RangeError('The value "'+e+'" is invalid for option "size"');var o=new Uint8Array(e);return Object.setPrototypeOf(o,l.prototype),o}function l(e,o,n){if(typeof e=="number"){if(typeof o=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return ot(e)}return kr(e,o,n)}l.poolSize=8192;function kr(e,o,n){if(typeof e=="string")return _c(e,o);if(ArrayBuffer.isView(e))return gc(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(ue(e,ArrayBuffer)||e&&ue(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(ue(e,SharedArrayBuffer)||e&&ue(e.buffer,SharedArrayBuffer)))return Qn(e,o,n);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(r!=null&&r!==e)return l.from(r,o,n);var c=uc(e);if(c)return c;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return l.from(e[Symbol.toPrimitive]("string"),o,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}l.from=function(e,o,n){return kr(e,o,n)};Object.setPrototypeOf(l.prototype,Uint8Array.prototype);Object.setPrototypeOf(l,Uint8Array);function Ir(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 lc(e,o,n){return Ir(e),e<=0?Se(e):o!==void 0?typeof n=="string"?Se(e).fill(o,n):Se(e).fill(o):Se(e)}l.alloc=function(e,o,n){return lc(e,o,n)};function ot(e){return Ir(e),Se(e<0?0:nt(e)|0)}l.allocUnsafe=function(e){return ot(e)};l.allocUnsafeSlow=function(e){return ot(e)};function _c(e,o){if((typeof o!="string"||o==="")&&(o="utf8"),!l.isEncoding(o))throw new TypeError("Unknown encoding: "+o);var n=Cr(e,o)|0,r=Se(n),c=r.write(e,o);return c!==n&&(r=r.slice(0,c)),r}function Jn(e){for(var o=e.length<0?0:nt(e.length)|0,n=Se(o),r=0;r<o;r+=1)n[r]=e[r]&255;return n}function gc(e){if(ue(e,Uint8Array)){var o=new Uint8Array(e);return Qn(o.buffer,o.byteOffset,o.byteLength)}return Jn(e)}function Qn(e,o,n){if(o<0||e.byteLength<o)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<o+(n||0))throw new RangeError('"length" is outside of buffer bounds');var r;return o===void 0&&n===void 0?r=new Uint8Array(e):n===void 0?r=new Uint8Array(e,o):r=new Uint8Array(e,o,n),Object.setPrototypeOf(r,l.prototype),r}function uc(e){if(l.isBuffer(e)){var o=nt(e.length)|0,n=Se(o);return n.length===0||e.copy(n,0,0,o),n}if(e.length!==void 0)return typeof e.length!="number"||tt(e.length)?Se(0):Jn(e);if(e.type==="Buffer"&&Array.isArray(e.data))return Jn(e.data)}function nt(e){if(e>=an)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+an.toString(16)+" bytes");return e|0}function fc(e){return+e!=e&&(e=0),l.alloc(+e)}l.isBuffer=function(o){return o!=null&&o._isBuffer===!0&&o!==l.prototype};l.compare=function(o,n){if(ue(o,Uint8Array)&&(o=l.from(o,o.offset,o.byteLength)),ue(n,Uint8Array)&&(n=l.from(n,n.offset,n.byteLength)),!l.isBuffer(o)||!l.isBuffer(n))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(o===n)return 0;for(var r=o.length,c=n.length,p=0,d=Math.min(r,c);p<d;++p)if(o[p]!==n[p]){r=o[p],c=n[p];break}return r<c?-1:c<r?1:0};l.isEncoding=function(o){switch(String(o).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}};l.concat=function(o,n){if(!Array.isArray(o))throw new TypeError('"list" argument must be an Array of Buffers');if(o.length===0)return l.alloc(0);var r;if(n===void 0)for(n=0,r=0;r<o.length;++r)n+=o[r].length;var c=l.allocUnsafe(n),p=0;for(r=0;r<o.length;++r){var d=o[r];if(ue(d,Uint8Array))p+d.length>c.length?l.from(d).copy(c,p):Uint8Array.prototype.set.call(c,d,p);else if(l.isBuffer(d))d.copy(c,p);else throw new TypeError('"list" argument must be an Array of Buffers');p+=d.length}return c};function Cr(e,o){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||ue(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 n=e.length,r=arguments.length>2&&arguments[2]===!0;if(!r&&n===0)return 0;for(var c=!1;;)switch(o){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return et(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n*2;case"hex":return n>>>1;case"base64":return Mr(e).length;default:if(c)return r?-1:et(e).length;o=(""+o).toLowerCase(),c=!0}}l.byteLength=Cr;function hc(e,o,n){var r=!1;if((o===void 0||o<0)&&(o=0),o>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,o>>>=0,n<=o))return"";for(e||(e="utf8");;)switch(e){case"hex":return Ic(this,o,n);case"utf8":case"utf-8":return Nr(this,o,n);case"ascii":return Ac(this,o,n);case"latin1":case"binary":return kc(this,o,n);case"base64":return wc(this,o,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Cc(this,o,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}l.prototype._isBuffer=!0;function $e(e,o,n){var r=e[o];e[o]=e[n],e[n]=r}l.prototype.swap16=function(){var o=this.length;if(o%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var n=0;n<o;n+=2)$e(this,n,n+1);return this};l.prototype.swap32=function(){var o=this.length;if(o%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var n=0;n<o;n+=4)$e(this,n,n+3),$e(this,n+1,n+2);return this};l.prototype.swap64=function(){var o=this.length;if(o%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var n=0;n<o;n+=8)$e(this,n,n+7),$e(this,n+1,n+6),$e(this,n+2,n+5),$e(this,n+3,n+4);return this};l.prototype.toString=function(){var o=this.length;return o===0?"":arguments.length===0?Nr(this,0,o):hc.apply(this,arguments)};l.prototype.toLocaleString=l.prototype.toString;l.prototype.equals=function(o){if(!l.isBuffer(o))throw new TypeError("Argument must be a Buffer");return this===o?!0:l.compare(this,o)===0};l.prototype.inspect=function(){var o="",n=ao.INSPECT_MAX_BYTES;return o=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(o+=" ... "),"<Buffer "+o+">"};wr&&(l.prototype[wr]=l.prototype.inspect);l.prototype.compare=function(o,n,r,c,p){if(ue(o,Uint8Array)&&(o=l.from(o,o.offset,o.byteLength)),!l.isBuffer(o))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof o);if(n===void 0&&(n=0),r===void 0&&(r=o?o.length:0),c===void 0&&(c=0),p===void 0&&(p=this.length),n<0||r>o.length||c<0||p>this.length)throw new RangeError("out of range index");if(c>=p&&n>=r)return 0;if(c>=p)return-1;if(n>=r)return 1;if(n>>>=0,r>>>=0,c>>>=0,p>>>=0,this===o)return 0;for(var d=p-c,_=r-n,m=Math.min(d,_),g=this.slice(c,p),f=o.slice(n,r),u=0;u<m;++u)if(g[u]!==f[u]){d=g[u],_=f[u];break}return d<_?-1:_<d?1:0};function Lr(e,o,n,r,c){if(e.length===0)return-1;if(typeof n=="string"?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,tt(n)&&(n=c?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(c)return-1;n=e.length-1}else if(n<0)if(c)n=0;else return-1;if(typeof o=="string"&&(o=l.from(o,r)),l.isBuffer(o))return o.length===0?-1:vr(e,o,n,r,c);if(typeof o=="number")return o=o&255,typeof Uint8Array.prototype.indexOf=="function"?c?Uint8Array.prototype.indexOf.call(e,o,n):Uint8Array.prototype.lastIndexOf.call(e,o,n):vr(e,[o],n,r,c);throw new TypeError("val must be string, number or Buffer")}function vr(e,o,n,r,c){var p=1,d=e.length,_=o.length;if(r!==void 0&&(r=String(r).toLowerCase(),r==="ucs2"||r==="ucs-2"||r==="utf16le"||r==="utf-16le")){if(e.length<2||o.length<2)return-1;p=2,d/=2,_/=2,n/=2}function m(C,w){return p===1?C[w]:C.readUInt16BE(w*p)}var g;if(c){var f=-1;for(g=n;g<d;g++)if(m(e,g)===m(o,f===-1?0:g-f)){if(f===-1&&(f=g),g-f+1===_)return f*p}else f!==-1&&(g-=g-f),f=-1}else for(n+_>d&&(n=d-_),g=n;g>=0;g--){for(var u=!0,T=0;T<_;T++)if(m(e,g+T)!==m(o,T)){u=!1;break}if(u)return g}return-1}l.prototype.includes=function(o,n,r){return this.indexOf(o,n,r)!==-1};l.prototype.indexOf=function(o,n,r){return Lr(this,o,n,r,!0)};l.prototype.lastIndexOf=function(o,n,r){return Lr(this,o,n,r,!1)};function yc(e,o,n,r){n=Number(n)||0;var c=e.length-n;r?(r=Number(r),r>c&&(r=c)):r=c;var p=o.length;r>p/2&&(r=p/2);for(var d=0;d<r;++d){var _=parseInt(o.substr(d*2,2),16);if(tt(_))return d;e[n+d]=_}return d}function xc(e,o,n,r){return sn(et(o,e.length-n),e,n,r)}function Tc(e,o,n,r){return sn(Ec(o),e,n,r)}function bc(e,o,n,r){return sn(Mr(o),e,n,r)}function Sc(e,o,n,r){return sn(Dc(o,e.length-n),e,n,r)}l.prototype.write=function(o,n,r,c){if(n===void 0)c="utf8",r=this.length,n=0;else if(r===void 0&&typeof n=="string")c=n,r=this.length,n=0;else if(isFinite(n))n=n>>>0,isFinite(r)?(r=r>>>0,c===void 0&&(c="utf8")):(c=r,r=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var p=this.length-n;if((r===void 0||r>p)&&(r=p),o.length>0&&(r<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");c||(c="utf8");for(var d=!1;;)switch(c){case"hex":return yc(this,o,n,r);case"utf8":case"utf-8":return xc(this,o,n,r);case"ascii":case"latin1":case"binary":return Tc(this,o,n,r);case"base64":return bc(this,o,n,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Sc(this,o,n,r);default:if(d)throw new TypeError("Unknown encoding: "+c);c=(""+c).toLowerCase(),d=!0}};l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function wc(e,o,n){return o===0&&n===e.length?Zn.fromByteArray(e):Zn.fromByteArray(e.slice(o,n))}function Nr(e,o,n){n=Math.min(e.length,n);for(var r=[],c=o;c<n;){var p=e[c],d=null,_=p>239?4:p>223?3:p>191?2:1;if(c+_<=n){var m,g,f,u;switch(_){case 1:p<128&&(d=p);break;case 2:m=e[c+1],(m&192)===128&&(u=(p&31)<<6|m&63,u>127&&(d=u));break;case 3:m=e[c+1],g=e[c+2],(m&192)===128&&(g&192)===128&&(u=(p&15)<<12|(m&63)<<6|g&63,u>2047&&(u<55296||u>57343)&&(d=u));break;case 4:m=e[c+1],g=e[c+2],f=e[c+3],(m&192)===128&&(g&192)===128&&(f&192)===128&&(u=(p&15)<<18|(m&63)<<12|(g&63)<<6|f&63,u>65535&&u<1114112&&(d=u))}}d===null?(d=65533,_=1):d>65535&&(d-=65536,r.push(d>>>10&1023|55296),d=56320|d&1023),r.push(d),c+=_}return vc(r)}var Ar=4096;function vc(e){var o=e.length;if(o<=Ar)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<o;)n+=String.fromCharCode.apply(String,e.slice(r,r+=Ar));return n}function Ac(e,o,n){var r="";n=Math.min(e.length,n);for(var c=o;c<n;++c)r+=String.fromCharCode(e[c]&127);return r}function kc(e,o,n){var r="";n=Math.min(e.length,n);for(var c=o;c<n;++c)r+=String.fromCharCode(e[c]);return r}function Ic(e,o,n){var r=e.length;(!o||o<0)&&(o=0),(!n||n<0||n>r)&&(n=r);for(var c="",p=o;p<n;++p)c+=Pc[e[p]];return c}function Cc(e,o,n){for(var r=e.slice(o,n),c="",p=0;p<r.length-1;p+=2)c+=String.fromCharCode(r[p]+r[p+1]*256);return c}l.prototype.slice=function(o,n){var r=this.length;o=~~o,n=n===void 0?r:~~n,o<0?(o+=r,o<0&&(o=0)):o>r&&(o=r),n<0?(n+=r,n<0&&(n=0)):n>r&&(n=r),n<o&&(n=o);var c=this.subarray(o,n);return Object.setPrototypeOf(c,l.prototype),c};function V(e,o,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+o>n)throw new RangeError("Trying to access beyond buffer length")}l.prototype.readUintLE=l.prototype.readUIntLE=function(o,n,r){o=o>>>0,n=n>>>0,r||V(o,n,this.length);for(var c=this[o],p=1,d=0;++d<n&&(p*=256);)c+=this[o+d]*p;return c};l.prototype.readUintBE=l.prototype.readUIntBE=function(o,n,r){o=o>>>0,n=n>>>0,r||V(o,n,this.length);for(var c=this[o+--n],p=1;n>0&&(p*=256);)c+=this[o+--n]*p;return c};l.prototype.readUint8=l.prototype.readUInt8=function(o,n){return o=o>>>0,n||V(o,1,this.length),this[o]};l.prototype.readUint16LE=l.prototype.readUInt16LE=function(o,n){return o=o>>>0,n||V(o,2,this.length),this[o]|this[o+1]<<8};l.prototype.readUint16BE=l.prototype.readUInt16BE=function(o,n){return o=o>>>0,n||V(o,2,this.length),this[o]<<8|this[o+1]};l.prototype.readUint32LE=l.prototype.readUInt32LE=function(o,n){return o=o>>>0,n||V(o,4,this.length),(this[o]|this[o+1]<<8|this[o+2]<<16)+this[o+3]*16777216};l.prototype.readUint32BE=l.prototype.readUInt32BE=function(o,n){return o=o>>>0,n||V(o,4,this.length),this[o]*16777216+(this[o+1]<<16|this[o+2]<<8|this[o+3])};l.prototype.readIntLE=function(o,n,r){o=o>>>0,n=n>>>0,r||V(o,n,this.length);for(var c=this[o],p=1,d=0;++d<n&&(p*=256);)c+=this[o+d]*p;return p*=128,c>=p&&(c-=Math.pow(2,8*n)),c};l.prototype.readIntBE=function(o,n,r){o=o>>>0,n=n>>>0,r||V(o,n,this.length);for(var c=n,p=1,d=this[o+--c];c>0&&(p*=256);)d+=this[o+--c]*p;return p*=128,d>=p&&(d-=Math.pow(2,8*n)),d};l.prototype.readInt8=function(o,n){return o=o>>>0,n||V(o,1,this.length),this[o]&128?(255-this[o]+1)*-1:this[o]};l.prototype.readInt16LE=function(o,n){o=o>>>0,n||V(o,2,this.length);var r=this[o]|this[o+1]<<8;return r&32768?r|4294901760:r};l.prototype.readInt16BE=function(o,n){o=o>>>0,n||V(o,2,this.length);var r=this[o+1]|this[o]<<8;return r&32768?r|4294901760:r};l.prototype.readInt32LE=function(o,n){return o=o>>>0,n||V(o,4,this.length),this[o]|this[o+1]<<8|this[o+2]<<16|this[o+3]<<24};l.prototype.readInt32BE=function(o,n){return o=o>>>0,n||V(o,4,this.length),this[o]<<24|this[o+1]<<16|this[o+2]<<8|this[o+3]};l.prototype.readFloatLE=function(o,n){return o=o>>>0,n||V(o,4,this.length),ro.read(this,o,!0,23,4)};l.prototype.readFloatBE=function(o,n){return o=o>>>0,n||V(o,4,this.length),ro.read(this,o,!1,23,4)};l.prototype.readDoubleLE=function(o,n){return o=o>>>0,n||V(o,8,this.length),ro.read(this,o,!0,52,8)};l.prototype.readDoubleBE=function(o,n){return o=o>>>0,n||V(o,8,this.length),ro.read(this,o,!1,52,8)};function oe(e,o,n,r,c,p){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(o>c||o<p)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}l.prototype.writeUintLE=l.prototype.writeUIntLE=function(o,n,r,c){if(o=+o,n=n>>>0,r=r>>>0,!c){var p=Math.pow(2,8*r)-1;oe(this,o,n,r,p,0)}var d=1,_=0;for(this[n]=o&255;++_<r&&(d*=256);)this[n+_]=o/d&255;return n+r};l.prototype.writeUintBE=l.prototype.writeUIntBE=function(o,n,r,c){if(o=+o,n=n>>>0,r=r>>>0,!c){var p=Math.pow(2,8*r)-1;oe(this,o,n,r,p,0)}var d=r-1,_=1;for(this[n+d]=o&255;--d>=0&&(_*=256);)this[n+d]=o/_&255;return n+r};l.prototype.writeUint8=l.prototype.writeUInt8=function(o,n,r){return o=+o,n=n>>>0,r||oe(this,o,n,1,255,0),this[n]=o&255,n+1};l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(o,n,r){return o=+o,n=n>>>0,r||oe(this,o,n,2,65535,0),this[n]=o&255,this[n+1]=o>>>8,n+2};l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(o,n,r){return o=+o,n=n>>>0,r||oe(this,o,n,2,65535,0),this[n]=o>>>8,this[n+1]=o&255,n+2};l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(o,n,r){return o=+o,n=n>>>0,r||oe(this,o,n,4,4294967295,0),this[n+3]=o>>>24,this[n+2]=o>>>16,this[n+1]=o>>>8,this[n]=o&255,n+4};l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(o,n,r){return o=+o,n=n>>>0,r||oe(this,o,n,4,4294967295,0),this[n]=o>>>24,this[n+1]=o>>>16,this[n+2]=o>>>8,this[n+3]=o&255,n+4};l.prototype.writeIntLE=function(o,n,r,c){if(o=+o,n=n>>>0,!c){var p=Math.pow(2,8*r-1);oe(this,o,n,r,p-1,-p)}var d=0,_=1,m=0;for(this[n]=o&255;++d<r&&(_*=256);)o<0&&m===0&&this[n+d-1]!==0&&(m=1),this[n+d]=(o/_>>0)-m&255;return n+r};l.prototype.writeIntBE=function(o,n,r,c){if(o=+o,n=n>>>0,!c){var p=Math.pow(2,8*r-1);oe(this,o,n,r,p-1,-p)}var d=r-1,_=1,m=0;for(this[n+d]=o&255;--d>=0&&(_*=256);)o<0&&m===0&&this[n+d+1]!==0&&(m=1),this[n+d]=(o/_>>0)-m&255;return n+r};l.prototype.writeInt8=function(o,n,r){return o=+o,n=n>>>0,r||oe(this,o,n,1,127,-128),o<0&&(o=255+o+1),this[n]=o&255,n+1};l.prototype.writeInt16LE=function(o,n,r){return o=+o,n=n>>>0,r||oe(this,o,n,2,32767,-32768),this[n]=o&255,this[n+1]=o>>>8,n+2};l.prototype.writeInt16BE=function(o,n,r){return o=+o,n=n>>>0,r||oe(this,o,n,2,32767,-32768),this[n]=o>>>8,this[n+1]=o&255,n+2};l.prototype.writeInt32LE=function(o,n,r){return o=+o,n=n>>>0,r||oe(this,o,n,4,2147483647,-2147483648),this[n]=o&255,this[n+1]=o>>>8,this[n+2]=o>>>16,this[n+3]=o>>>24,n+4};l.prototype.writeInt32BE=function(o,n,r){return o=+o,n=n>>>0,r||oe(this,o,n,4,2147483647,-2147483648),o<0&&(o=4294967295+o+1),this[n]=o>>>24,this[n+1]=o>>>16,this[n+2]=o>>>8,this[n+3]=o&255,n+4};function Er(e,o,n,r,c,p){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function Dr(e,o,n,r,c){return o=+o,n=n>>>0,c||Er(e,o,n,4,34028234663852886e22,-34028234663852886e22),ro.write(e,o,n,r,23,4),n+4}l.prototype.writeFloatLE=function(o,n,r){return Dr(this,o,n,!0,r)};l.prototype.writeFloatBE=function(o,n,r){return Dr(this,o,n,!1,r)};function Pr(e,o,n,r,c){return o=+o,n=n>>>0,c||Er(e,o,n,8,17976931348623157e292,-17976931348623157e292),ro.write(e,o,n,r,52,8),n+8}l.prototype.writeDoubleLE=function(o,n,r){return Pr(this,o,n,!0,r)};l.prototype.writeDoubleBE=function(o,n,r){return Pr(this,o,n,!1,r)};l.prototype.copy=function(o,n,r,c){if(!l.isBuffer(o))throw new TypeError("argument should be a Buffer");if(r||(r=0),!c&&c!==0&&(c=this.length),n>=o.length&&(n=o.length),n||(n=0),c>0&&c<r&&(c=r),c===r||o.length===0||this.length===0)return 0;if(n<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(c<0)throw new RangeError("sourceEnd out of bounds");c>this.length&&(c=this.length),o.length-n<c-r&&(c=o.length-n+r);var p=c-r;return this===o&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(n,r,c):Uint8Array.prototype.set.call(o,this.subarray(r,c),n),p};l.prototype.fill=function(o,n,r,c){if(typeof o=="string"){if(typeof n=="string"?(c=n,n=0,r=this.length):typeof r=="string"&&(c=r,r=this.length),c!==void 0&&typeof c!="string")throw new TypeError("encoding must be a string");if(typeof c=="string"&&!l.isEncoding(c))throw new TypeError("Unknown encoding: "+c);if(o.length===1){var p=o.charCodeAt(0);(c==="utf8"&&p<128||c==="latin1")&&(o=p)}}else typeof o=="number"?o=o&255:typeof o=="boolean"&&(o=Number(o));if(n<0||this.length<n||this.length<r)throw new RangeError("Out of range index");if(r<=n)return this;n=n>>>0,r=r===void 0?this.length:r>>>0,o||(o=0);var d;if(typeof o=="number")for(d=n;d<r;++d)this[d]=o;else{var _=l.isBuffer(o)?o:l.from(o,c),m=_.length;if(m===0)throw new TypeError('The value "'+o+'" is invalid for argument "value"');for(d=0;d<r-n;++d)this[d+n]=_[d%m]}return this};var Lc=/[^+/0-9A-Za-z-_]/g;function Nc(e){if(e=e.split("=")[0],e=e.trim().replace(Lc,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function et(e,o){o=o||1/0;for(var n,r=e.length,c=null,p=[],d=0;d<r;++d){if(n=e.charCodeAt(d),n>55295&&n<57344){if(!c){if(n>56319){(o-=3)>-1&&p.push(239,191,189);continue}else if(d+1===r){(o-=3)>-1&&p.push(239,191,189);continue}c=n;continue}if(n<56320){(o-=3)>-1&&p.push(239,191,189),c=n;continue}n=(c-55296<<10|n-56320)+65536}else c&&(o-=3)>-1&&p.push(239,191,189);if(c=null,n<128){if((o-=1)<0)break;p.push(n)}else if(n<2048){if((o-=2)<0)break;p.push(n>>6|192,n&63|128)}else if(n<65536){if((o-=3)<0)break;p.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((o-=4)<0)break;p.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw new Error("Invalid code point")}return p}function Ec(e){for(var o=[],n=0;n<e.length;++n)o.push(e.charCodeAt(n)&255);return o}function Dc(e,o){for(var n,r,c,p=[],d=0;d<e.length&&!((o-=2)<0);++d)n=e.charCodeAt(d),r=n>>8,c=n%256,p.push(c),p.push(r);return p}function Mr(e){return Zn.toByteArray(Nc(e))}function sn(e,o,n,r){for(var c=0;c<r&&!(c+n>=o.length||c>=e.length);++c)o[c+n]=e[c];return c}function ue(e,o){return e instanceof o||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===o.name}function tt(e){return e!==e}var Pc=function(){for(var e="0123456789abcdef",o=new Array(256),n=0;n<16;++n)for(var r=n*16,c=0;c<16;++c)o[r+c]=e[n]+e[c];return o}()});var Wr=tn((Zm,Ur)=>{t();var U=Ur.exports={},fe,he;function rt(){throw new Error("setTimeout has not been defined")}function at(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?fe=setTimeout:fe=rt}catch(e){fe=rt}try{typeof clearTimeout=="function"?he=clearTimeout:he=at}catch(e){he=at}})();function Or(e){if(fe===setTimeout)return setTimeout(e,0);if((fe===rt||!fe)&&setTimeout)return fe=setTimeout,setTimeout(e,0);try{return fe(e,0)}catch(o){try{return fe.call(null,e,0)}catch(n){return fe.call(this,e,0)}}}function Mc(e){if(he===clearTimeout)return clearTimeout(e);if((he===at||!he)&&clearTimeout)return he=clearTimeout,clearTimeout(e);try{return he(e)}catch(o){try{return he.call(null,e)}catch(n){return he.call(this,e)}}}var we=[],io=!1,Ve,cn=-1;function Rc(){!io||!Ve||(io=!1,Ve.length?we=Ve.concat(we):cn=-1,we.length&&Fr())}function Fr(){if(!io){var e=Or(Rc);io=!0;for(var o=we.length;o;){for(Ve=we,we=[];++cn<o;)Ve&&Ve[cn].run();cn=-1,o=we.length}Ve=null,io=!1,Mc(e)}}U.nextTick=function(e){var o=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)o[n-1]=arguments[n];we.push(new Br(e,o)),we.length===1&&!io&&Or(Fr)};function Br(e,o){this.fun=e,this.array=o}Br.prototype.run=function(){this.fun.apply(null,this.array)};U.title="browser";U.browser=!0;U.env={};U.argv=[];U.version="";U.versions={};function ve(){}U.on=ve;U.addListener=ve;U.once=ve;U.off=ve;U.removeListener=ve;U.removeAllListeners=ve;U.emit=ve;U.prependListener=ve;U.prependOnceListener=ve;U.listeners=function(e){return[]};U.binding=function(e){throw new Error("process.binding is not supported")};U.cwd=function(){return"/"};U.chdir=function(e){throw new Error("process.chdir is not supported")};U.umask=function(){return 0}});var a,i,Jm,t=b(()=>{a=h(Rr()),i=h(Wr()),Jm=function(e){function o(){var r=this||self;return delete e.prototype.__magic__,r}if(typeof globalThis=="object")return globalThis;if(this)return o();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:o});var n=__magic__;return n}(Object)});var Po,ze=b(()=>{"use strict";t();Po="Action not allowed. User is logged in. Call logout() first"});var Gr=b(()=>{"use strict";t()});var Hr=b(()=>{"use strict";t()});var $r=b(()=>{"use strict";t()});var O=b(()=>{"use strict";t()});var Vr=b(()=>{"use strict";t()});var zr=b(()=>{"use strict";t()});var J=b(()=>{"use strict";t()});var jr=b(()=>{"use strict";t()});var qr=b(()=>{"use strict";t()});var Q=b(()=>{"use strict";t();Gr();Hr();$r();O();Vr();zr();J();jr();qr()});var it,Kr,hl,Xr,yl,Yr,Zr,xl,Tl,Jr=b(()=>{"use strict";t();Q();it={devnet:{id:"devnet",chainId:"D",name:"Devnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://devnet-wallet.multiversx.com",apiAddress:"https://devnet-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",apiTimeout:"4000"},testnet:{id:"testnet",chainId:"T",name:"Testnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://testnet-wallet.multiversx.com",apiAddress:"https://testnet-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",apiTimeout:"4000"},mainnet:{id:"mainnet",chainId:"1",name:"Mainnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://wallet.multiversx.com",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",apiTimeout:"4000"}},{chainId:Kr,egldLabel:hl}=it["devnet"],{chainId:Xr,egldLabel:yl}=it["testnet"],{chainId:Yr,egldLabel:Zr}=it["mainnet"],xl={["devnet"]:Kr,["testnet"]:Xr,["mainnet"]:Yr},Tl={[Kr]:"devnet",[Xr]:"testnet",[Yr]:"mainnet"}});var st,ct=b(()=>{"use strict";t();st={36864:{code:"codeSuccess",message:"Success"},27013:{code:"ERR_USER_DENIED",message:"Rejected by user"},27904:{code:"ERR_UNKNOWN_INSTRUCTION",message:"Unknown instruction"},28160:{code:"ERR_WRONG_CLA",message:"Wrong CLA"},28161:{code:"ERR_INVALID_ARGUMENTS",message:"Invalid arguments"},28162:{code:"ERR_INVALID_MESSAGE",message:"Invalid message"},28163:{code:"ERR_INVALID_P1",message:"Invalid P1"},28164:{code:"ERR_MESSAGE_TOO_LONG",message:"Message too long"},28165:{code:"ERR_RECEIVER_TOO_LONG",message:"Receiver too long"},28166:{code:"ERR_AMOUNT_TOO_LONG",message:"Amount too long"},28167:{code:"ERR_CONTRACT_DATA_DISABLED",message:"Contract data disabled in app options"},28168:{code:"ERR_MESSAGE_INCOMPLETE",message:"Message incomplete"},28176:{code:"ERR_SIGNATURE_FAILED",message:"Signature failed"},28169:{code:"ERR_WRONG_TX_VERSION",message:"Wrong TX version"},28170:{code:"ERR_NONCE_TOO_LONG",message:"Nonce too long"},28171:{code:"ERR_INVALID_AMOUNT",message:"Invalid amount"},28172:{code:"ERR_INVALID_FEE",message:"Invalid fee"},28173:{code:"ERR_PRETTY_FAILED",message:"Pretty failed"},28174:{code:"ERR_DATA_TOO_LONG",message:"Data too long"},28175:{code:"ERR_WRONG_TX_OPTIONS",message:"Invalid transaction options"},28177:{code:"ERR_SIGN_TX_DEPRECATED",message:"Regular transaction signing is deprecated in this version. Use hash signing."}}});var Qr=b(()=>{"use strict";t()});var pn,pt=b(()=>{"use strict";t();pn="transaction-status-toast-id"});var ye,ea=b(()=>{"use strict";t();ye=require("@multiversx/sdk-web-wallet-provider")});var Mo,dn,se,so,oa,na,mn,ta,xe,L=b(()=>{"use strict";t();ze();Jr();ct();Qr();pt();ea();Mo=5e4,dn=1e9,se=18,so=4,oa=1,na=1,mn="logout",ta="login",xe="0"});var co,ln=b(()=>{"use strict";t();co=()=>Date.now()/1e3});var ra=b(()=>{"use strict";t()});var aa=b(()=>{"use strict";t()});var dt=b(()=>{"use strict";t();ln();ra();aa()});var lt={};Ge(lt,{getItem:()=>Fc,localStorageKeys:()=>De,removeItem:()=>Bc,setItem:()=>Oc});var De,mt,Oc,Fc,Bc,po=b(()=>{"use strict";t();dt();De={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},mt=typeof localStorage!="undefined",Oc=({key:e,data:o,expires:n})=>{!mt||localStorage.setItem(String(e),JSON.stringify({expires:n,data:o}))},Fc=e=>{if(!mt)return;let o=localStorage.getItem(String(e));if(!o)return null;let n=JSON.parse(o);return!n||!n.hasOwnProperty("expires")||!n.hasOwnProperty("data")?null:co()>=n.expires?(localStorage.removeItem(String(e)),null):n.data},Bc=e=>{!mt||localStorage.removeItem(String(e))}});var _t={};Ge(_t,{clear:()=>pa,getItem:()=>sa,removeItem:()=>ca,setItem:()=>ia,storage:()=>Uc});var ia,sa,ca,pa,Uc,da=b(()=>{"use strict";t();ia=({key:e,data:o,expires:n})=>{sessionStorage.setItem(String(e),JSON.stringify({expires:n,data:o}))},sa=e=>{let o=sessionStorage.getItem(String(e));if(!o)return null;let n=JSON.parse(o);return!n||!n.hasOwnProperty("expires")||!n.hasOwnProperty("data")?null:Date.now()>=n.expires?(sessionStorage.removeItem(String(e)),null):n.data},ca=e=>sessionStorage.removeItem(String(e)),pa=()=>sessionStorage.clear(),Uc={setItem:ia,getItem:sa,removeItem:ca,clear:pa}});var je,mo=b(()=>{"use strict";t();po();da();je={session:_t,local:lt}});var gt,K,ce,X=b(()=>{"use strict";t();gt=require("@reduxjs/toolkit");L();K=(0,gt.createAction)(mn),ce=(0,gt.createAction)(ta,e=>({payload:e}))});var ft,ma,la,_n,ut,_a,ht,Yl,yt,Zl,xt,ga,Jl,Ql,e_,Wc,ua,Tt=b(()=>{"use strict";t();ft=require("@multiversx/sdk-core"),ma=require("@reduxjs/toolkit"),la=require("redux-persist");L();mo();po();X();_n={balance:"...",address:"",nonce:0,txCount:0,scrCount:0,claimableRewards:xe},ut={address:"",websocketEvent:null,accounts:{"":_n},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},_a=(0,ma.createSlice)({name:"accountInfoSlice",initialState:ut,reducers:{setAddress:(e,o)=>{let n=o.payload;e.address=n,e.publicKey=new ft.Address(n).hex()},setAccount:(e,o)=>{let n=e.address===o.payload.address;e.accounts={[e.address]:n?o.payload:_n},e.shard=o.payload.shard,e.isAccountLoading=!1,e.accountLoadingError=null},setAccountNonce:(e,o)=>{let{address:n}=e;e.accounts[n].nonce=o.payload},setAccountShard:(e,o)=>{e.shard=o.payload},setLedgerAccount:(e,o)=>{e.ledgerAccount=o.payload},updateLedgerAccount:(e,o)=>{e.ledgerAccount!=null&&(e.ledgerAccount.index=o.payload.index,e.ledgerAccount.address=o.payload.address)},setWalletConnectAccount:(e,o)=>{e.walletConnectAccount=o.payload},setIsAccountLoading:(e,o)=>{e.isAccountLoading=o.payload,e.accountLoadingError=null},setAccountLoadingError:(e,o)=>{e.accountLoadingError=o.payload,e.isAccountLoading=!1},setWebsocketEvent:(e,o)=>{e.websocketEvent={timestamp:Date.now(),message:o.payload}}},extraReducers:e=>{e.addCase(K,()=>(je.local.removeItem(De.loginExpiresAt),ut)),e.addCase(ce,(o,n)=>{let{address:r}=n.payload;o.address=r,o.publicKey=new ft.Address(r).hex()}),e.addCase(la.REHYDRATE,(o,n)=>{var g;if(!((g=n.payload)!=null&&g.account))return;let{account:r}=n.payload,{address:c,shard:p,accounts:d,publicKey:_}=r;o.address=c,o.shard=p;let m=d&&c in d;o.accounts=m?d:ut.accounts,o.publicKey=_})}}),{setAccount:ht,setAddress:Yl,setAccountNonce:yt,setAccountShard:Zl,setLedgerAccount:xt,updateLedgerAccount:ga,setWalletConnectAccount:Jl,setIsAccountLoading:Ql,setAccountLoadingError:e_,setWebsocketEvent:Wc}=_a.actions,ua=_a.reducer});function Ro(){return new Date().setHours(new Date().getHours()+24)}function Oo(e){je.local.setItem({key:De.loginExpiresAt,data:e,expires:e})}var bt=b(()=>{"use strict";t();mo();po()});var ha,fa,ya,d_,xa,Ta,gn,m_,Gc,ba,l_,Sa,St=b(()=>{"use strict";t();ha=require("@reduxjs/toolkit");bt();O();X();fa={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,isLoginSessionInvalid:!1},ya=(0,ha.createSlice)({name:"loginInfoSlice",initialState:fa,reducers:{setLoginMethod:(e,o)=>{e.loginMethod=o.payload},setTokenLogin:(e,o)=>{e.tokenLogin=o.payload},setTokenLoginSignature:(e,o)=>{(e==null?void 0:e.tokenLogin)!=null&&(e.tokenLogin.signature=o.payload)},setWalletLogin:(e,o)=>{e.walletLogin=o.payload},setWalletConnectLogin:(e,o)=>{e.walletConnectLogin=o.payload},setLedgerLogin:(e,o)=>{e.ledgerLogin=o.payload},invalidateLoginSession:e=>{e.isLoginSessionInvalid=!0},setLogoutRoute:(e,o)=>{e.logoutRoute=o.payload}},extraReducers:e=>{e.addCase(K,()=>fa),e.addCase(ce,(o,n)=>{o.loginMethod=n.payload.loginMethod,Oo(Ro())})}}),{setLoginMethod:d_,setWalletConnectLogin:xa,setLedgerLogin:Ta,setTokenLogin:gn,setTokenLoginSignature:m_,setWalletLogin:Gc,invalidateLoginSession:ba,setLogoutRoute:l_}=ya.actions,Sa=ya.reducer});var va,wa,Aa,f_,Hc,h_,$c,ka,wt=b(()=>{"use strict";t();va=require("@reduxjs/toolkit");X();wa={},Aa=(0,va.createSlice)({name:"modalsSlice",initialState:wa,reducers:{setTxSubmittedModal:(e,o)=>{e.txSubmittedModal=o.payload},setNotificationModal:(e,o)=>{e.notificationModal=o.payload},clearTxSubmittedModal:e=>{e.txSubmittedModal=void 0},clearNotificationModal:e=>{e.notificationModal=void 0}},extraReducers:e=>{e.addCase(K,()=>wa)}}),{setTxSubmittedModal:f_,setNotificationModal:Hc,clearTxSubmittedModal:h_,clearNotificationModal:$c}=Aa.actions,ka=Aa.reducer});var Vc,un,Fo=b(()=>{"use strict";t();Vc=!1,un=(e,o=0)=>{Vc||setTimeout(()=>{window.location.href=e,window.location.assign(e)},o)}});function qe({callbackRoute:e,onLoginRedirect:o,options:n}){let r=Boolean(e),c=typeof o=="function",p=c?0:zc;r&&e!=null&&setTimeout(()=>{if(c)return o(e,n);window.location.pathname.includes(e)||un(e)},p)}var zc,Ia=b(()=>{"use strict";t();Fo();zc=200});function vt(e){return e[Math.floor(Math.random()*e.length)]}var Ca=b(()=>{"use strict";t()});function lo(e){let o=null;if((e==null?void 0:e.statusCode)in st){let n=e==null?void 0:e.statusCode,{message:r}=st[n];o=Kc.includes(n)?La:r}return{errorMessage:o,defaultErrorMessage:La}}var La,jc,qc,Kc,At=b(()=>{"use strict";t();ct();La="Check if the MultiversX app is open on Ledger",jc=28161,qc=28160,Kc=[jc,qc]});var Ke=b(()=>{"use strict";t();Ia();Ca();At()});var Na,Ea,kt,Xc,Da,E_,D_,Pa,It=b(()=>{"use strict";t();Na=require("@reduxjs/toolkit"),Ea=h(require("lodash.omit"));Ke();kt={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},Xc={network:kt,chainID:"-1"},Da=(0,Na.createSlice)({name:"appConfig",initialState:Xc,reducers:{initializeNetworkConfig:(e,o)=>{let n=vt(o.payload.walletConnectBridgeAddresses),r=vt(o.payload.walletConnectV2RelayAddresses),c=(0,Ea.default)(o.payload,"walletConnectBridgeAddresses","walletConnectV2RelayAddresses");e.network=A(y(y({},e.network),c),{walletConnectBridgeAddress:n,walletConnectV2RelayAddress:r})},setChainID:(e,o)=>{e.chainID=o.payload}}}),{initializeNetworkConfig:E_,setChainID:D_}=Da.actions,Pa=Da.reducer});var Ma,Ct,Ra,B_,U_,W_,fn,hn=b(()=>{"use strict";t();Ma=require("@reduxjs/toolkit");Q();X();Ct={isSigning:!1,signedSessions:{}},Ra=(0,Ma.createSlice)({name:"signedMessageInfoSliceState",initialState:Ct,reducers:{setSignSession:(e,o)=>{let{sessionId:n,signedSession:r,errorMessage:c}=o.payload;return A(y({},e),{errorMessage:c!=null?c:e.errorMessage,isSigning:r.status==="pending",signedSessions:A(y({},e.signedSessions),{[n]:r})})},setSignSessionState:(e,o)=>y(y({},e),o.payload),clearSignedMessageInfo:()=>Ct},extraReducers:e=>{e.addCase(K,()=>Ct)}}),{setSignSession:B_,clearSignedMessageInfo:U_,setSignSessionState:W_}=Ra.actions,fn=Ra.reducer});var Fa,Ba,Oa,Ua,Yc,Lt,K_,X_,Y_,Z_,yn,xn=b(()=>{"use strict";t();Fa=require("@reduxjs/toolkit"),Ba=require("redux-persist");pt();Q();ln();X();Oa={customToasts:[],transactionToasts:[],failTransactionToast:null},Ua=(0,Fa.createSlice)({name:"toastsSlice",initialState:Oa,reducers:{addCustomToast:(e,o)=>{e.customToasts.push(A(y({},o.payload),{type:"custom",toastId:o.payload.toastId||`custom-toast-${e.customToasts.length+1}`}))},removeCustomToast:(e,o)=>{e.customToasts=e.customToasts.filter(n=>n.toastId!==o.payload)},addTransactionToast:(e,o)=>{e.transactionToasts.push({type:"transaction",startTimestamp:co(),toastId:o.payload||`custom-toast-${e.transactionToasts.length+1}`})},removeTransactionToast:(e,o)=>{e.transactionToasts=e.transactionToasts.filter(n=>n.toastId!==o.payload)},addFailTransactionToast:(e,o)=>{e.failTransactionToast=A(y({},o.payload),{toastId:pn})},removeFailTransactionToast:e=>{e.failTransactionToast=null}},extraReducers:e=>{e.addCase(K,()=>Oa),e.addCase(Ba.REHYDRATE,(o,n)=>{var c,p;let r=(p=(c=n.customToasts)==null?void 0:c.filter(d=>!("component"in d)))!=null?p:[];o.customToasts=r})}}),{addCustomToast:Yc,removeCustomToast:Lt,addTransactionToast:K_,removeTransactionToast:X_,addFailTransactionToast:Y_,removeFailTransactionToast:Z_}=Ua.actions,yn=Ua.reducer});var Wa,Et,Dt,Pt,Zc,Nt,Ga,og,Jc,Mt,Tn,bn=b(()=>{"use strict";t();Wa=require("@reduxjs/toolkit");X();Et="Transaction failed",Dt="Transaction successful",Pt="Processing transaction",Zc="Transaction submitted",Nt={},Ga=(0,Wa.createSlice)({name:"transactionsInfo",initialState:Nt,reducers:{setTransactionsDisplayInfo(e,o){let{sessionId:n,transactionsDisplayInfo:r}=o.payload;n!=null&&(e[n]={errorMessage:(r==null?void 0:r.errorMessage)||Et,successMessage:(r==null?void 0:r.successMessage)||Dt,processingMessage:(r==null?void 0:r.processingMessage)||Pt,submittedMessage:(r==null?void 0:r.submittedMessage)||Zc,transactionDuration:r==null?void 0:r.transactionDuration})},clearTransactionsInfoForSessionId(e,o){o.payload!=null&&delete e[o.payload]},clearTransactionsInfo:()=>Nt},extraReducers:e=>{e.addCase(K,()=>Nt)}}),{clearTransactionsInfo:og,setTransactionsDisplayInfo:Jc,clearTransactionsInfoForSessionId:Mt}=Ga.actions,Tn=Ga.reducer});function _o(e){return e!=null&&(ip(e)||dp(e))}function go(e){return e!=null&&(sp(e)||mp(e))}function uo(e){return e!=null&&(cp(e)||lp(e))}function Rt(e){return e!=null&&pp(e)}function ip(e){return e!=null&&Qc.includes(e)}function sp(e){return e!=null&&ep.includes(e)}function cp(e){return e!=null&&op.includes(e)}function pp(e){return e!=null&&np.includes(e)}function dp(e){return e!=null&&tp.includes(e)}function mp(e){return e!=null&&rp.includes(e)}function lp(e){return e!=null&&ap.includes(e)}var Qc,ep,op,np,tp,rp,ap,fo=b(()=>{"use strict";t();O();Qc=["sent"],ep=["success"],op=["fail","cancelled","timedOut"],np=["timedOut"],tp=["pending"],rp=["success"],ap=["fail","invalid"]});var Ha,$a,Uo,_p,Va,za,ja,gp,Sn,up,fp,dg,hp,wn,Ot,vn,An=b(()=>{"use strict";t();Ha=require("@reduxjs/toolkit"),$a=require("redux-persist");O();fo();X();Uo={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},_p={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},Va=(0,Ha.createSlice)({name:"transactionsSlice",initialState:Uo,reducers:{moveTransactionsToSignedState:(e,o)=>{var m,g;let{sessionId:n,transactions:r,errorMessage:c,status:p,redirectRoute:d}=o.payload,_=((m=e.customTransactionInformationForSessionId)==null?void 0:m[n])||_p;e.signedTransactions[n]={transactions:r,status:p,errorMessage:c,redirectRoute:d,customTransactionInformation:_},((g=e==null?void 0:e.transactionsToSign)==null?void 0:g.sessionId)===n&&(e.transactionsToSign=Uo.transactionsToSign)},clearSignedTransaction:(e,o)=>{e.signedTransactions[o.payload]&&delete e.signedTransactions[o.payload]},clearTransactionToSign:e=>{e!=null&&e.transactionsToSign&&(e.transactionsToSign=null)},updateSignedTransaction:(e,o)=>{e.signedTransactions=y(y({},e.signedTransactions),o.payload)},updateSignedTransactions:(e,o)=>{let{sessionId:n,status:r,errorMessage:c,transactions:p}=o.payload;e.signedTransactions[n]!=null&&(e.signedTransactions[n].status=r,c!=null&&(e.signedTransactions[n].errorMessage=c),p!=null&&(e.signedTransactions[n].transactions=p))},updateSignedTransactionStatus:(e,o)=>{var _,m,g,f,u,T;let{sessionId:n,status:r,errorMessage:c,transactionHash:p}=o.payload,d=(m=(_=e.signedTransactions)==null?void 0:_[n])==null?void 0:m.transactions;if(d!=null){e.signedTransactions[n].transactions=d.map(I=>I.hash===p?A(y({},I),{status:r,errorMessage:c}):I);let C=(f=(g=e.signedTransactions[n])==null?void 0:g.transactions)==null?void 0:f.every(I=>go(I.status)),w=(T=(u=e.signedTransactions[n])==null?void 0:u.transactions)==null?void 0:T.every(I=>uo(I.status));C&&(e.signedTransactions[n].status="success"),w&&(e.signedTransactions[n].status="fail")}},setTransactionsToSign:(e,o)=>{e.transactionsToSign=o.payload;let{sessionId:n,customTransactionInformation:r}=o.payload;e.customTransactionInformationForSessionId[n]=r,e.signTransactionsError=null},clearAllTransactionsToSign:e=>{e.transactionsToSign=Uo.transactionsToSign,e.signTransactionsError=null},clearAllSignedTransactions:e=>{e.signedTransactions=Uo.signedTransactions},setSignTransactionsError:(e,o)=>{e.signTransactionsError=o.payload},setSignTransactionsCancelMessage:(e,o)=>{e.signTransactionsCancelMessage=o.payload}},extraReducers:e=>{e.addCase(K,()=>Uo),e.addCase($a.REHYDRATE,(o,n)=>{var d;if(o.signTransactionsCancelMessage=null,!((d=n.payload)!=null&&d.transactions))return;let{signedTransactions:r,customTransactionInformationForSessionId:c}=n.payload.transactions,p=Object.entries(r).reduce((_,[m,g])=>{let f=new Date(m),u=new Date;return u.setHours(u.getHours()+5),u-f>0||(_[m]=g),_},{});c!=null&&(o.customTransactionInformationForSessionId=c),r!=null&&(o.signedTransactions=p)})}}),{updateSignedTransactionStatus:za,updateSignedTransactions:ja,setTransactionsToSign:gp,clearAllTransactionsToSign:Sn,clearAllSignedTransactions:up,clearSignedTransaction:fp,clearTransactionToSign:dg,setSignTransactionsError:hp,setSignTransactionsCancelMessage:wn,moveTransactionsToSignedState:Ot}=Va.actions,vn=Va.reducer});var N=b(()=>{"use strict";t();Tt();St();wt();It();hn();xn();bn();An()});var Ft=b(()=>{"use strict";t()});var Za,Ya,Ja,Bt,Mg,Rg,Og,Fg,Qa,ei,Ut=b(()=>{"use strict";t();Za=require("@reduxjs/toolkit");X();Ya={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},Ja=(0,Za.createSlice)({name:"dappModalsSlice",initialState:Ya,reducers:{setDappModalVisibility:(e,o)=>{e.visible=o.payload},setDappModalHeaderVisibility:(e,o)=>{e.modal.showHeader=o.payload},setDappModalFooterVisibility:(e,o)=>{e.modal.showFooter=o.payload},setDappModalHeaderText:(e,o)=>{e.modal.headerText=o.payload},setDappModalFooterText:(e,o)=>{e.modal.footerText=o.payload},setDappModalConfig:(e,o)=>{e.modal=y({},o.payload)}},extraReducers:e=>{e.addCase(K,()=>Ya)}}),{setDappModalVisibility:Bt,setDappModalHeaderVisibility:Mg,setDappModalFooterVisibility:Rg,setDappModalHeaderText:Og,setDappModalFooterText:Fg,setDappModalConfig:Qa}=Ja.actions,ei=Ja.reducer});var oi,bp,Sp,ho,Ln=b(()=>{"use strict";t();oi=require("@reduxjs/toolkit");Ft();Tt();Ut();St();wt();It();hn();xn();bn();An();bp={["account"]:ua,["dappModal"]:ei,["loginInfo"]:Sa,["modals"]:ka,["networkConfig"]:Pa,["signedMessageInfo"]:fn,["toasts"]:yn,["transactionsInfo"]:Tn,["transactions"]:vn},Sp=(e={})=>(0,oi.combineReducers)(y(y({},bp),e)),ho=Sp});var ri={};Ge(ri,{default:()=>Np});function Nn(e,o=[]){return{key:e,version:1,storage:ti.default,blacklist:o}}var Pe,ni,ti,wp,vp,Ap,kp,Ip,Cp,Lp,Np,ai=b(()=>{"use strict";t();Pe=require("redux-persist"),ni=h(require("redux-persist/lib/storage")),ti=h(require("redux-persist/lib/storage/session"));Ln();N();hn();xn();bn();An();Ft();wp={2:e=>A(y({},e),{networkConfig:kt})};vp=Nn("sdk-dapp-transactionsInfo"),Ap=Nn("sdk-dapp-transactions",["transactionsToSign"]),kp=Nn("sdk-dapp-toasts"),Ip=Nn("sdk-dapp-signedMessageInfo"),Cp={key:"sdk-dapp-store",version:2,storage:ni.default,whitelist:["account","loginInfo","modals","networkConfig"],migrate:(0,Pe.createMigrate)(wp,{debug:!1})},Lp={["toasts"]:(0,Pe.persistReducer)(kp,yn),["transactions"]:(0,Pe.persistReducer)(Ap,vn),["transactionsInfo"]:(0,Pe.persistReducer)(vp,Tn),["signedMessageInfo"]:(0,Pe.persistReducer)(Ip,fn)},Np=(0,Pe.persistReducer)(Cp,ho(Lp))});var ii={};Ge(ii,{default:()=>Ep});var Ep,si=b(()=>{"use strict";t();Ln();Ep=ho()});var ci={};Ge(ci,{default:()=>Pp});var pe,Dp,Pp,pi=b(()=>{"use strict";t();pe=require("redux-persist"),Dp=[pe.FLUSH,pe.REHYDRATE,pe.PAUSE,pe.PERSIST,pe.PURGE,pe.REGISTER],Pp=Dp});var li={};Ge(li,{default:()=>mi});function mi(e){return(0,di.persistStore)(e)}var di,_i=b(()=>{"use strict";t();di=require("redux-persist")});var jm={};Ge(jm,{LedgerLoginContainer:()=>zm});module.exports=Do(jm);t();var No=h(require("react"));t();t();var xi=require("react"),yo=require("react-redux");t();var Wt=require("@reduxjs/toolkit"),hi=require("react-redux/lib/utils/Subscription");N();t();var Ka=h(require("lodash.throttle"));L();t();var qa=h(require("lodash.isequal")),kn=require("reselect");Q();var x=(0,kn.createSelectorCreator)(kn.defaultMemoize,qa.default),Wo=(e,o)=>e!=""&&Boolean(o);N();bt();mo();po();var yp=[mn],In=!1,xp=(0,Ka.default)(()=>{Oo(Ro())},5e3),Xa=e=>o=>n=>{var m;if(yp.includes(n.type))return o(n);let r=e.getState(),c=je.local.getItem(De.loginExpiresAt);if(!Wo((m=r==null?void 0:r.loginInfo)==null?void 0:m.loginMethod,r==null?void 0:r.account.address))return o(n);if(c==null)return Oo(Ro());let d=Date.now();return c-d<0&&!In?setTimeout(()=>{In=!0,e.dispatch(ba())},1e3):(In&&(In=!1),xp()),o(n)};t();t();function Cn(){return typeof sessionStorage!="undefined"}var gi=Cn()?(ai(),Do(ri)).default:(si(),Do(ii)).default,ui=Cn()?(pi(),Do(ci)).default:[],fi=Cn()?(_i(),Do(li)).default:e=>e;Ln();var k=(0,Wt.configureStore)({reducer:gi,middleware:e=>e({serializableCheck:{ignoredActions:[...ui,yt.type,ht.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(Xa)}),yi=(0,hi.createSubscription)(k),du=fi(k),mu=(0,Wt.configureStore)({reducer:ho});var Mp={store:k,subscription:yi},Gt=(0,xi.createContext)(Mp),uu=(0,yo.createStoreHook)(Gt),z=(0,yo.createDispatchHook)(Gt),v=(0,yo.createSelectorHook)(Gt);t();t();N();var Ae=e=>e.account,xo=x(Ae,e=>e.address),Ye=x(Ae,xo,(e,o)=>o in e.accounts?e.accounts[o]:_n),Ti=x(Ae,Ye,(e,o)=>{let c=e,{accounts:n}=c,r=nn(c,["accounts"]);return A(y({},r),{account:o})}),Rp=x(Ye,e=>e.balance),Op=x(Ye,e=>{var o;return((o=e==null?void 0:e.nonce)==null?void 0:o.valueOf())||0}),xu=x(Ae,e=>e.shard),bi=x(Ae,e=>e.ledgerAccount),Tu=x(Ae,e=>e.walletConnectAccount),bu=x(Ae,e=>e.isAccountLoading),Su=x(Ae,e=>e.accountLoadingError),Si=x(Ae,e=>e.websocketEvent);t();var le=e=>e.loginInfo,ku=x(le,e=>e.loginMethod),En=x(le,xo,(e,o)=>Wo(e.loginMethod,o)),Iu=x(le,e=>e.walletConnectLogin),Cu=x(le,e=>e.ledgerLogin),Fp=x(le,e=>e.walletLogin),Lu=x(le,e=>e.isLoginSessionInvalid),Dn=x(le,e=>e.tokenLogin),Nu=x(le,e=>e.logoutRoute);t();var wi=e=>e.modals,Pu=x(wi,e=>e.txSubmittedModal),Bp=x(wi,e=>e.notificationModal);t();var ke=e=>e.networkConfig,Pn=x(ke,e=>e.chainID),Up=x(ke,e=>e.network.walletConnectBridgeAddress),Wp=x(ke,e=>e.network.walletConnectV2RelayAddress),Gp=x(ke,e=>e.network.walletConnectV2ProjectId),Hp=x(ke,e=>e.network.walletConnectV2Options),vi=x(ke,e=>e.network.walletConnectDeepLink),Ie=x(ke,e=>e.network),Ht=x(Ie,e=>e.apiAddress),Ai=x(Ie,e=>e.explorerAddress),$t=x(Ie,e=>e.egldLabel);t();var Vt=e=>e.signedMessageInfo,Bu=x(Vt,e=>e.isSigning),Uu=x(Vt,e=>e.errorMessage),Wu=x(Vt,e=>{let o=Object.keys(e.signedSessions),n=o.length;return e.signedSessions[o[n-1]]});t();var zt=e=>e.toasts,$u=x(zt,e=>e.customToasts),Vu=x(zt,e=>e.transactionToasts),zu=x(zt,e=>e.failTransactionToast);t();N();var ki={errorMessage:Et,successMessage:Dt,processingMessage:Pt},$p=e=>e.transactionsInfo,Vp=x($p,(e,o)=>o,(e,o)=>o!=null&&(e==null?void 0:e[Number(o)])||ki);t();t();var te=require("@multiversx/sdk-core");L();t();function jt(e){try{return a.Buffer.from(e,"base64").toString()===atob(e)}catch(o){return!1}}function To(e){return atob(e)}function Mn(e){var c,p,d;let{data:o}=e,n=jt(o!=null?o:"")?te.TransactionPayload.fromEncoded(o):new te.TransactionPayload(o),r=new te.Transaction(y({value:e.value.valueOf(),data:n,nonce:e.nonce.valueOf(),receiver:new te.Address(e.receiver),sender:new te.Address(e.sender),gasLimit:(c=e.gasLimit.valueOf())!=null?c:Mo,gasPrice:(p=e.gasPrice.valueOf())!=null?p:dn,chainID:e.chainID.valueOf(),version:new te.TransactionVersion((d=e.version)!=null?d:oa)},e.options?{options:new te.TransactionOptions(e.options)}:{}));return r.applySignature({hex:()=>e.signature||""},new te.Address(e.sender)),r}t();fo();t();var jp=h(require("bignumber.js"));Q();t();t();t();t();var Kp=require("@multiversx/sdk-core"),Xp=h(require("bignumber.js"));O();t();var qp=require("@multiversx/sdk-core");t();t();t();var Zp=require("@multiversx/sdk-core/out");t();L();t();var Li=require("@multiversx/sdk-core");Q();t();t();t();t();O();t();t();t();t();t();t();t();var Rn="accounts";var Kt="blocks";t();t();t();t();J();t();t();J();t();t();t();var nd=h(require("bignumber.js"));L();t();var Pi=require("@multiversx/sdk-core"),Me=h(require("bignumber.js"));L();t();var Di=h(require("bignumber.js")),Go=(e,o=!0)=>{let n=String(e);if(!n.match(/^[-]?\d+$/))return!1;let r=new Di.default(n),c=o?0:-1;return r.toString(10)===n&&r.comparedTo(0)>=c};t();function Ce(e){return{if:function(o){return o?{then:n=>n instanceof Function?Ce(n(e)):Ce(n)}:{then:()=>Ce(e)}},then:o=>o instanceof Function?Ce(o(e)):Ce(o),valueOf:function(){return e}}}Me.default.config({ROUNDING_MODE:Me.default.ROUND_FLOOR});function Ze({input:e,decimals:o=se,digits:n=so,showLastNonZeroDecimal:r=!0,showIsLessThanDecimalsLabel:c=!1,addCommas:p=!1}){if(!Go(e,!1))throw new Error("Invalid input");let d=new Me.default(e).isNegative(),_=e;return d&&(_=e.substring(1)),Ce(_).then(()=>Pi.TokenPayment.fungibleFromBigInteger("",_,o).toRationalNumber()).then(m=>{let g=new Me.default(m);if(g.isZero())return xe;let f=g.toString(10),[u,T]=f.split("."),C=new Me.default(T||0),w=Ce(0).if(Boolean(T&&r)).then(()=>Math.max(T.length,n)).if(C.isZero()&&!r).then(0).if(Boolean(T&&!r)).then(()=>Math.min(T.length,n)).valueOf(),I=T&&n>=1&&n<=T.length&&C.isGreaterThan(0)&&new Me.default(T.substring(0,n)).isZero(),G=g.toFormat(w);return Ce(f).if(p).then(G).if(Boolean(I)).then(P=>{let Z=new Me.default(u).isZero(),[H,ae]=P.split("."),me=new Array(n-1).fill(0),R=[...me,0].join(""),$=[...me,1].join("");return Z?c?`<${H}.${$}`:r?`${H}.${ae}`:H:`${H}.${R}`}).if(Boolean(!I&&T)).then(P=>{let[Z]=P.split("."),H=T.substring(0,w);if(r){let ae=n-H.length;if(ae>0){let me=Array(ae).fill(0).join("");return H=`${H}${me}`,`${Z}.${H}`}return P}return H?`${Z}.${H}`:Z}).valueOf()}).if(d).then(m=>`-${m}`).valueOf()}t();t();t();L();t();t();t();t();L();t();L();t();var td=require("@multiversx/sdk-core");L();t();var Ho=require("@multiversx/sdk-core"),id=require("@multiversx/sdk-network-providers");L();t();t();var rd=h(require("bignumber.js"));L();t();L();t();t();t();t();t();L();t();J();var cd=["reDelegateRewards","claimRewards","unBond"],pd=["wrapEgld","unwrapEgld"],dd=["unStake"],md=["unDelegate"];t();t();t();L();t();var ud=h(require("bignumber.js"));t();t();t();J();t();var fd=h(require("bignumber.js"));t();t();t();t();J();t();t();t();var xd=h(require("linkifyjs"));t();L();t();var Td=h(require("bignumber.js"));t();Q();t();t();O();t();O();t();t();t();J();t();J();t();var bd=h(require("bignumber.js"));L();J();t();J();t();var Oi=require("react");Q();t();t();J();t();var Sd=require("@multiversx/sdk-core/out"),wd=h(require("bignumber.js"));J();t();J();t();t();O();var f0=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];t();var Fi=require("react");Q();t();var Ad=require("react");J();var w0=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];var Bn=e=>e.transactions,bo=x(Bn,e=>e.signedTransactions),kd=x(Bn,e=>e.signTransactionsError),Bi=x(Bn,e=>e.signTransactionsCancelMessage),Un=e=>o=>Object.entries(o).reduce((n,[r,c])=>(e(c.status)&&(n[r]=c),n),{}),Ui=x(bo,Un(_o)),Wi=x(bo,Un(go)),Gi=x(bo,Un(uo)),Id=x(bo,Un(Rt)),Hi=x(Bn,e=>{var o;return(e==null?void 0:e.transactionsToSign)==null?null:A(y({},e.transactionsToSign),{transactions:((o=e==null?void 0:e.transactionsToSign)==null?void 0:o.transactions.map(n=>Mn(n)))||[]})}),Cd=x(bo,(e,o)=>o,(e,o)=>o!=null?(e==null?void 0:e[o])||{}:{});var $o=()=>v(Ti);t();var Xo=require("react"),Hn=require("@multiversx/sdk-hw-provider");ze();t();t();t();var Ld=require("@multiversx/sdk-extension-provider"),Nd=require("@multiversx/sdk-hw-provider"),Ed=require("@multiversx/sdk-opera-provider"),Dd=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectProvider"),Pd=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectV2Provider"),Md=require("@multiversx/sdk-web-wallet-provider");L();O();var $i=e=>S(void 0,null,function*(){if(!e.isInitialized())throw new Error("Unable to get version. Provider not initialized");let o=e.hwApp,{contractData:n,version:r}=yield o.getAppConfiguration();return{version:r,dataEnabled:n===na}}),Le=e=>`Unable to perform ${e}, Provider not initialized`,Yt=class{init(){return Promise.resolve(!1)}login(o){throw new Error(Le(`login with options: ${o}`))}logout(o){throw new Error(Le(`logout with options: ${o}`))}getAddress(){throw new Error(Le("getAddress"))}isInitialized(){return!1}isConnected(){return Promise.resolve(!1)}sendTransaction(o,n){throw new Error(Le(`sendTransaction with transactions: ${o} options: ${n}`))}signTransaction(o,n){throw new Error(Le(`signTransaction with transactions: ${o} options: ${n}`))}signTransactions(o,n){throw new Error(Le(`signTransactions with transactions: ${o} options: ${n}`))}signMessage(o,n){throw new Error(Le(`signTransactions with ${o} and options ${n}`))}sendCustomMessage({method:o,params:n}){throw new Error(Le(`sendCustomMessage with method: ${o} params: ${n}`))}sendCustomRequest(o){throw new Error(Le(`sendSessionEvent with options: ${o}`))}ping(){return Promise.resolve(!1)}},Vi=new Yt;var Rd=Vi;function Je(e){Rd=e}X();N();O();Ke();t();t();t();O();t();t();t();t();var ji=h(require("axios"));t();t();var zi=e=>{let o=e!=null?e:Ht(k.getState());return o.endsWith("/")?o.slice(0,-1):o};function qi(e){return S(this,null,function*(){if(!e)return null;let n=`${zi()}/${Rn}/${e}`;try{let{data:r}=yield ji.default.get(n);return r}catch(r){console.error("error fetching configuration for ",n)}return null})}function Vo(e){return S(this,null,function*(){return yield qi(e)})}t();N();t();t();function Ki(e){return S(this,null,function*(){let o=e;o==null&&(o=Ye(k.getState()).address);let n=yield Vo(o);if(n==null)throw"Could not read account, user not logged in";return n==null?void 0:n.balance})}t();N();t();var Zi=require("@multiversx/sdk-core");t();X();Q();t();t();dt();t();t();var Od=h(require("platform"));t();function Re(){return En(k.getState())}t();X();Q();Fo();mo();po();t();t();t();t();t();function Ji(){return $t(k.getState())}t();Fo();t();t();t();t();mo();t();t();t();N();t();t();var Fd=h(require("axios"));t();var eo=require("react"),Bd=10,Qi=()=>{let[e,o]=(0,eo.useState)(""),[n,r]=(0,eo.useState)(!1),[c,p]=(0,eo.useState)(0),[d,_]=(0,eo.useState)([]),[m,g]=(0,eo.useState)(null),[f,u]=(0,eo.useState)(!1);return{accounts:d,setAccounts:_,isLoading:n,setIsLoading:r,setShowAddressList:u,showAddressList:f,startIndex:c,selectedAddress:m,onGoToPrevPage:()=>{g(null),p(I=>I===0?0:I-1)},onGoToNextPage:()=>{g(null),p(I=>I+1)},onSelectAddress:I=>{g(I)},error:e,setError:o,defaultAddressesPerPage:Bd}};t();var ps=require("react"),Gn=require("@multiversx/sdk-core");t();t();var zo=()=>v(Ye);t();t();t();t();t();var jo=h(require("react"));var g1=(0,jo.createContext)({}),u1=k.getState();t();var os=h(require("react"));t();var Jt=h(require("react")),Ud=h(require("axios"));t();t();t();N();t();t();t();var ns,qo={hostname:typeof window!="undefined"?(ns=window==null?void 0:window.location)==null?void 0:ns.hostname:"",apiAddress:"https://api.multiversx.com",expirySeconds:60*60*24,tokenExpirationToastWarningSeconds:5*60},Ko=e=>{var n,r,c,p;return e===!0?qo:{hostname:(n=e==null?void 0:e.hostname)!=null?n:qo.hostname,expirySeconds:(r=e==null?void 0:e.expirySeconds)!=null?r:qo.expirySeconds,apiAddress:(c=e==null?void 0:e.apiAddress)!=null?c:qo.apiAddress,tokenExpirationToastWarningSeconds:(p=e==null?void 0:e.tokenExpirationToastWarningSeconds)!=null?p:qo.tokenExpirationToastWarningSeconds}};t();var Wd=e=>e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,""),So=e=>Wd(a.Buffer.from(e,"utf8").toString("base64"));t();var ts=h(require("axios"));function rs(e){return S(this,null,function*(){let{data:o}=yield ts.default.get(`${e}/${Kt}?size=1&fields=hash,timestamp`),[n]=o;return n})}t();t();t();function Gd(e){return Object.prototype.toString.call(e)==="[object String]"}var as=e=>{if(!e||!Gd(e))return null;try{let[o,n,r]=e.split("."),c=To(o),p=To(n),[d,_,m,g]=p.split("."),f=JSON.parse(To(g)),u=To(d),T={ttl:Number(m),address:c,extraInfo:f,host:u,signature:r,blockHash:_,body:p};return g==="e30"&&delete T.extraInfo,T}catch(o){return null}};var is=({address:e,token:o,signature:n})=>{let r=So(e),c=So(o);return`${r}.${c}.${n}`};t();ln();var ss=e=>{let o=as(e);if(!o)return{isExpired:!1};let n=co(),{ttl:r,extraInfo:c}=o,p=c.timestamp;if(!p)return{isExpired:!1};let d=p+r,_=n>d,m=d-n;return{isExpired:_,expiresAt:d,secondsUntilExpires:m}};var cs=e=>{let{hostname:o,apiAddress:n,expirySeconds:r}=Ko(e);return{getNativeAuthConfig:Ko,initialize:(...d)=>S(void 0,[...d],function*(p={}){let{hash:_,timestamp:m}=yield rs(n),g=So(JSON.stringify(y(y({},p),m?{timestamp:m}:{})));return`${So(o)}.${_}.${r}.${g}`}),getToken:is,getTokenExpiration:ss}};t();var Hd=(e,o)=>{var n;return o?o===!0?e:(n=o.apiAddress)!=null?n:e:null},oo=e=>{let o=v(Ie),n=v(Dn),r=(0,ps.useRef)(n==null?void 0:n.loginToken),c=Hd(o.apiAddress,e),p=Ko(y(y({},e===!0?{}:e),c?{apiAddress:c}:{})),d=Boolean(e),_=cs(p),{address:m}=zo(),g=z(),f=w=>{r.current=w,g(gn(y({loginToken:w},c?{nativeAuthConfig:p}:{})))},u=()=>S(void 0,null,function*(){try{return yield _.initialize()}catch(w){console.error("Unable to get block. Login failed.",w);return}}),T=({address:w,signature:I})=>{let G=r.current;if(!G)throw"Token not found. Call `setLoginToken` first.";if(!d){g(gn({loginToken:G,signature:I}));return}let ee=_.getToken({address:w,token:G,signature:I});g(gn(y({loginToken:G,signature:I,nativeAuthToken:ee},c?{nativeAuthConfig:p}:{})))};return{configuration:p,setLoginToken:f,getNativeAuthLoginToken:u,setTokenLoginInfo:T,refreshNativeAuthTokenLogin:I=>S(void 0,[I],function*({signMessageCallback:w}){let G=yield u();if(r.current=G,!G)return;let ee=new Gn.SignableMessage({address:new Gn.Address(m),message:a.Buffer.from(G)}),P=yield w(ee,{});T({address:m,signature:P.toJSON().signature})})}};var wo="Check if the MultiversX App is open on Ledger";function Qt({callbackRoute:e,token:o,addressesPerPage:n,nativeAuth:r,onLoginRedirect:c}){let p=v(bi),d=z(),_=Re(),m=r!=null,g=oo(r),f=o,{accounts:u,setAccounts:T,isLoading:C,setIsLoading:w,setShowAddressList:I,showAddressList:G,startIndex:ee,selectedAddress:P,onGoToPrevPage:Z,onGoToNextPage:H,onSelectAddress:ae,error:me,setError:R,defaultAddressesPerPage:$}=Qi(),Ue=n!=null?n:$,We=new Hn.HWProvider,[en,qs]=(0,Xo.useState)(""),[lr,Ks]=(0,Xo.useState)(!1);function _r({provider:E,address:M,index:B,signature:qn}){Je(E),d(Ta({index:B,loginType:"ledger"})),qn&&g.setTokenLoginInfo({signature:qn,address:M}),d(ce({address:M,loginMethod:"ledger"})),qe({callbackRoute:e,onLoginRedirect:c,options:{address:M,signature:qn}})}let gr=(E,M="")=>{let{errorMessage:B}=lo(E);B&&R(`${B}.${M}`),w(!1),console.warn(E),d(xt(null))};function Xs(E){return S(this,null,function*(){if(P==null)return!1;let{index:M}=P;if(m&&!f&&(f=yield g.getNativeAuthLoginToken(),!f)){console.warn("Fetching block failed. Login cancelled.");return}if(f){g.setLoginToken(f);try{let B=yield E.tokenLogin({token:a.Buffer.from(`${f}{}`),addressIndex:M});_r({address:B.address,provider:E,index:M,signature:B.signature.hex()})}catch(B){gr(B,". Update MultiversX App to continue.")}}else try{let B=yield E.login({addressIndex:M});_r({address:B,provider:E,index:M})}catch(B){return gr(B),!1}return!0})}function Ys(){return S(this,null,function*(){try{if(w(!0),P==null)return!1;d(p?ga(P):xt(A(y({},P),{version:en,hasContractDataEnabled:lr})));let E=new Hn.HWProvider;if(!(yield E.init()))return R(wo),console.warn(wo),!1;w(!1),yield Xs(E)}catch(E){let{errorMessage:M}=lo(E);M&&R(M),console.warn(wo,E)}finally{w(!1)}return I(!1),!0})}function ur(){return S(this,null,function*(){try{if(w(!0),!(yield We.init())){R(wo),console.warn(wo),w(!1);return}let M=yield We.getAccounts(ee,Ue),B=yield $i(We);qs(B.version),Ks(B.dataEnabled),T(M),w(!1)}catch(E){let{errorMessage:M,defaultErrorMessage:B}=lo(E);R(M!=null?M:B),console.error("error",E),w(!1)}})}function Zs(){return S(this,null,function*(){if(_)throw new Error(Po);R("");try{if(w(!0),p!=null){let E=new Hn.HWProvider;if(!(yield E.init())||!P){console.warn(wo);return}let B=yield E.login({addressIndex:P.index.valueOf()});if(Je(E),!B){w(!1),console.warn("Login cancelled.");return}d(ce({address:B,loginMethod:"ledger"})),qe({callbackRoute:e,onLoginRedirect:c})}else(u==null?void 0:u.length)>0||(yield ur()),I(!0)}catch(E){console.error("error ",E);let{defaultErrorMessage:M}=lo();R(M)}finally{w(!1)}})}(0,Xo.useEffect)(()=>{ur()},[ee]);let jn=Boolean(me);return[Zs,{loginFailed:jn,isLoggedIn:_&&!jn,error:me,isLoading:C&&!jn},{accounts:u,showAddressList:G,startIndex:ee,selectedAddress:P,version:en,contractDataEnabled:lr,onGoToPrevPage:Z,onGoToNextPage:H,onSelectAddress:ae,onConfirmSelectedAddress:Ys}]}t();t();var Ls=h(require("react"));t();t();t();var Ao=h(require("react")),rr=h(require("classnames")),us=h(require("react-dom"));t();var $d=`.dapp-core-component__dappModalStyles__dappModal {
|
|
2
2
|
position: fixed;
|
|
3
3
|
z-index: 999;
|
|
4
4
|
padding-top: 100px;
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
color: #212529;
|
|
65
65
|
background-color: #dee2e6;
|
|
66
66
|
border-color: #e9ecef;
|
|
67
|
-
}`;document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode($d));var de={dappModal:"dapp-core-component__dappModalStyles__dappModal",dappModalContent:"dapp-core-component__dappModalStyles__dappModalContent",dappModalHeader:"dapp-core-component__dappModalStyles__dappModalHeader",dappModalHeaderText:"dapp-core-component__dappModalStyles__dappModalHeaderText",dappModalBody:"dapp-core-component__dappModalStyles__dappModalBody",dappModalFooter:"dapp-core-component__dappModalStyles__dappModalFooter",dappModalCloseButton:"dapp-core-component__dappModalStyles__dappModalCloseButton"};t();var ds=h(require("react")),ms=h(require("classnames"));var
|
|
67
|
+
}`;document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode($d));var de={dappModal:"dapp-core-component__dappModalStyles__dappModal",dappModalContent:"dapp-core-component__dappModalStyles__dappModalContent",dappModalHeader:"dapp-core-component__dappModalStyles__dappModalHeader",dappModalHeaderText:"dapp-core-component__dappModalStyles__dappModalHeaderText",dappModalBody:"dapp-core-component__dappModalStyles__dappModalBody",dappModalFooter:"dapp-core-component__dappModalStyles__dappModalFooter",dappModalCloseButton:"dapp-core-component__dappModalStyles__dappModalCloseButton"};t();var ds=h(require("react")),ms=h(require("classnames"));var er=({className:e,children:o})=>ds.default.createElement("div",{className:(0,ms.default)(de.dappModalBody,e)},o);t();var or=h(require("react")),ls=h(require("classnames"));var nr=({visible:e,customFooter:o,className:n,footerText:r})=>e?or.default.createElement("div",{className:(0,ls.default)(de.dappModalFooter,n)},o!=null?o:or.default.createElement("div",null,r)):null;t();var vo=h(require("react")),_s=require("@fortawesome/free-solid-svg-icons"),gs=require("@fortawesome/react-fontawesome"),Yo=h(require("classnames"));t();var Vd=`.dapp-core-component__main__link-style {
|
|
68
68
|
color: #1392ff;
|
|
69
69
|
}
|
|
70
70
|
|
|
@@ -2752,30 +2752,17 @@ a.dapp-core-component__main__side-link::after {
|
|
|
2752
2752
|
right: 0;
|
|
2753
2753
|
left: unset;
|
|
2754
2754
|
width: calc(100% - 1.85rem);
|
|
2755
|
-
}`;document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(Vd));var R={"link-style":"dapp-core-component__main__link-style",linkStyle:"dapp-core-component__main__link-style","link-second-style":"dapp-core-component__main__link-second-style",linkSecondStyle:"dapp-core-component__main__link-second-style",wrapper:"dapp-core-component__main__wrapper","opacity-6":"dapp-core-component__main__opacity-6",opacity6:"dapp-core-component__main__opacity-6","qr-code-svg-container":"dapp-core-component__main__qr-code-svg-container",qrCodeSvgContainer:"dapp-core-component__main__qr-code-svg-container","pair-list":"dapp-core-component__main__pair-list",pairList:"dapp-core-component__main__pair-list","pair-loader":"dapp-core-component__main__pair-loader",pairLoader:"dapp-core-component__main__pair-loader","pair-image":"dapp-core-component__main__pair-image",pairImage:"dapp-core-component__main__pair-image","pair-remove":"dapp-core-component__main__pair-remove",pairRemove:"dapp-core-component__main__pair-remove","dapp-icon":"dapp-core-component__main__dapp-icon",dappIcon:"dapp-core-component__main__dapp-icon","icon-medium":"dapp-core-component__main__icon-medium",iconMedium:"dapp-core-component__main__icon-medium",centering:"dapp-core-component__main__centering","border-n":"dapp-core-component__main__border-n",borderN:"dapp-core-component__main__border-n","t-shadow":"dapp-core-component__main__t-shadow",tShadow:"dapp-core-component__main__t-shadow",btn:"dapp-core-component__main__btn",media:"dapp-core-component__main__media","media-body":"dapp-core-component__main__media-body",mediaBody:"dapp-core-component__main__media-body","connect-btns":"dapp-core-component__main__connect-btns",connectBtns:"dapp-core-component__main__connect-btns",info:"dapp-core-component__main__info","trust-badge":"dapp-core-component__main__trust-badge",trustBadge:"dapp-core-component__main__trust-badge",navbar:"dapp-core-component__main__navbar","dapp-name":"dapp-core-component__main__dapp-name",dappName:"dapp-core-component__main__dapp-name","action-btn":"dapp-core-component__main__action-btn",actionBtn:"dapp-core-component__main__action-btn",transactions:"dapp-core-component__main__transactions","transaction-icon":"dapp-core-component__main__transaction-icon",transactionIcon:"dapp-core-component__main__transaction-icon",table:"dapp-core-component__main__table","page-state":"dapp-core-component__main__page-state",pageState:"dapp-core-component__main__page-state","lds-ellipsis":"dapp-core-component__main__lds-ellipsis",ldsEllipsis:"dapp-core-component__main__lds-ellipsis","bg-blue":"dapp-core-component__main__bg-blue",bgBlue:"dapp-core-component__main__bg-blue","lds-ellipsis1":"dapp-core-component__main__lds-ellipsis1",ldsEllipsis1:"dapp-core-component__main__lds-ellipsis1","lds-ellipsis2":"dapp-core-component__main__lds-ellipsis2",ldsEllipsis2:"dapp-core-component__main__lds-ellipsis2","lds-ellipsis3":"dapp-core-component__main__lds-ellipsis3",ldsEllipsis3:"dapp-core-component__main__lds-ellipsis3",focus:"dapp-core-component__main__focus",disabled:"dapp-core-component__main__disabled","btn-primary":"dapp-core-component__main__btn-primary",btnPrimary:"dapp-core-component__main__btn-primary","btn-secondary":"dapp-core-component__main__btn-secondary",btnSecondary:"dapp-core-component__main__btn-secondary","btn-warning":"dapp-core-component__main__btn-warning",btnWarning:"dapp-core-component__main__btn-warning","btn-dark":"dapp-core-component__main__btn-dark",btnDark:"dapp-core-component__main__btn-dark","btn-link":"dapp-core-component__main__btn-link",btnLink:"dapp-core-component__main__btn-link","btn-light":"dapp-core-component__main__btn-light",btnLight:"dapp-core-component__main__btn-light",badge:"dapp-core-component__main__badge","badge-pill":"dapp-core-component__main__badge-pill",badgePill:"dapp-core-component__main__badge-pill","badge-primary":"dapp-core-component__main__badge-primary",badgePrimary:"dapp-core-component__main__badge-primary","badge-secondary":"dapp-core-component__main__badge-secondary",badgeSecondary:"dapp-core-component__main__badge-secondary","badge-success":"dapp-core-component__main__badge-success",badgeSuccess:"dapp-core-component__main__badge-success","badge-info":"dapp-core-component__main__badge-info",badgeInfo:"dapp-core-component__main__badge-info","badge-warning":"dapp-core-component__main__badge-warning",badgeWarning:"dapp-core-component__main__badge-warning","badge-danger":"dapp-core-component__main__badge-danger",badgeDanger:"dapp-core-component__main__badge-danger","badge-light":"dapp-core-component__main__badge-light",badgeLight:"dapp-core-component__main__badge-light","badge-dark":"dapp-core-component__main__badge-dark",badgeDark:"dapp-core-component__main__badge-dark",card:"dapp-core-component__main__card","list-group":"dapp-core-component__main__list-group",listGroup:"dapp-core-component__main__list-group","card-header":"dapp-core-component__main__card-header",cardHeader:"dapp-core-component__main__card-header","card-footer":"dapp-core-component__main__card-footer",cardFooter:"dapp-core-component__main__card-footer","card-header-item":"dapp-core-component__main__card-header-item",cardHeaderItem:"dapp-core-component__main__card-header-item",h6:"dapp-core-component__main__h6",compact:"dapp-core-component__main__compact","card-body":"dapp-core-component__main__card-body",cardBody:"dapp-core-component__main__card-body","card-title":"dapp-core-component__main__card-title",cardTitle:"dapp-core-component__main__card-title","card-subtitle":"dapp-core-component__main__card-subtitle",cardSubtitle:"dapp-core-component__main__card-subtitle","card-text":"dapp-core-component__main__card-text",cardText:"dapp-core-component__main__card-text","card-link":"dapp-core-component__main__card-link",cardLink:"dapp-core-component__main__card-link",text:"dapp-core-component__main__text","text-white":"dapp-core-component__main__text-white",textWhite:"dapp-core-component__main__text-white","text-monospace":"dapp-core-component__main__text-monospace",textMonospace:"dapp-core-component__main__text-monospace","trim-size-xl":"dapp-core-component__main__trim-size-xl",trimSizeXl:"dapp-core-component__main__trim-size-xl",trim:"dapp-core-component__main__trim","trim-only-sm":"dapp-core-component__main__trim-only-sm",trimOnlySm:"dapp-core-component__main__trim-only-sm","text-justify":"dapp-core-component__main__text-justify",textJustify:"dapp-core-component__main__text-justify","text-wrap":"dapp-core-component__main__text-wrap",textWrap:"dapp-core-component__main__text-wrap","text-nowrap":"dapp-core-component__main__text-nowrap",textNowrap:"dapp-core-component__main__text-nowrap","text-truncate":"dapp-core-component__main__text-truncate",textTruncate:"dapp-core-component__main__text-truncate","text-left":"dapp-core-component__main__text-left",textLeft:"dapp-core-component__main__text-left","text-right":"dapp-core-component__main__text-right",textRight:"dapp-core-component__main__text-right","text-center":"dapp-core-component__main__text-center",textCenter:"dapp-core-component__main__text-center","text-primary":"dapp-core-component__main__text-primary",textPrimary:"dapp-core-component__main__text-primary","text-secondary":"dapp-core-component__main__text-secondary",textSecondary:"dapp-core-component__main__text-secondary","text-primary-highlight":"dapp-core-component__main__text-primary-highlight",textPrimaryHighlight:"dapp-core-component__main__text-primary-highlight","text-muted":"dapp-core-component__main__text-muted",textMuted:"dapp-core-component__main__text-muted","text-success":"dapp-core-component__main__text-success",textSuccess:"dapp-core-component__main__text-success","text-body":"dapp-core-component__main__text-body",textBody:"dapp-core-component__main__text-body","text-black-50":"dapp-core-component__main__text-black-50",textBlack50:"dapp-core-component__main__text-black-50","text-white-50":"dapp-core-component__main__text-white-50",textWhite50:"dapp-core-component__main__text-white-50","text-lg-right":"dapp-core-component__main__text-lg-right",textLgRight:"dapp-core-component__main__text-lg-right","text-hide":"dapp-core-component__main__text-hide",textHide:"dapp-core-component__main__text-hide","text-decoration-none":"dapp-core-component__main__text-decoration-none",textDecorationNone:"dapp-core-component__main__text-decoration-none","text-break":"dapp-core-component__main__text-break",textBreak:"dapp-core-component__main__text-break","text-reset":"dapp-core-component__main__text-reset",textReset:"dapp-core-component__main__text-reset","text-lowercase":"dapp-core-component__main__text-lowercase",textLowercase:"dapp-core-component__main__text-lowercase","text-uppercase":"dapp-core-component__main__text-uppercase",textUppercase:"dapp-core-component__main__text-uppercase","text-capitalize":"dapp-core-component__main__text-capitalize",textCapitalize:"dapp-core-component__main__text-capitalize","text-danger":"dapp-core-component__main__text-danger",textDanger:"dapp-core-component__main__text-danger","text-warning":"dapp-core-component__main__text-warning",textWarning:"dapp-core-component__main__text-warning","trim-fs-sm":"dapp-core-component__main__trim-fs-sm",trimFsSm:"dapp-core-component__main__trim-fs-sm","mx-auto":"dapp-core-component__main__mx-auto",mxAuto:"dapp-core-component__main__mx-auto","m-0":"dapp-core-component__main__m-0",m0:"dapp-core-component__main__m-0","mt-0":"dapp-core-component__main__mt-0",mt0:"dapp-core-component__main__mt-0","my-0":"dapp-core-component__main__my-0",my0:"dapp-core-component__main__my-0","mr-0":"dapp-core-component__main__mr-0",mr0:"dapp-core-component__main__mr-0","mx-0":"dapp-core-component__main__mx-0",mx0:"dapp-core-component__main__mx-0","mb-0":"dapp-core-component__main__mb-0",mb0:"dapp-core-component__main__mb-0","ml-0":"dapp-core-component__main__ml-0",ml0:"dapp-core-component__main__ml-0","m-1":"dapp-core-component__main__m-1",m1:"dapp-core-component__main__m-1","mt-1":"dapp-core-component__main__mt-1",mt1:"dapp-core-component__main__mt-1","my-1":"dapp-core-component__main__my-1",my1:"dapp-core-component__main__my-1","mr-1":"dapp-core-component__main__mr-1",mr1:"dapp-core-component__main__mr-1","mx-1":"dapp-core-component__main__mx-1",mx1:"dapp-core-component__main__mx-1","mb-1":"dapp-core-component__main__mb-1",mb1:"dapp-core-component__main__mb-1","ml-1":"dapp-core-component__main__ml-1",ml1:"dapp-core-component__main__ml-1","m-2":"dapp-core-component__main__m-2",m2:"dapp-core-component__main__m-2","mt-2":"dapp-core-component__main__mt-2",mt2:"dapp-core-component__main__mt-2","my-2":"dapp-core-component__main__my-2",my2:"dapp-core-component__main__my-2","mr-2":"dapp-core-component__main__mr-2",mr2:"dapp-core-component__main__mr-2","mx-2":"dapp-core-component__main__mx-2",mx2:"dapp-core-component__main__mx-2","mb-2":"dapp-core-component__main__mb-2",mb2:"dapp-core-component__main__mb-2","ml-2":"dapp-core-component__main__ml-2",ml2:"dapp-core-component__main__ml-2","m-3":"dapp-core-component__main__m-3",m3:"dapp-core-component__main__m-3","mt-3":"dapp-core-component__main__mt-3",mt3:"dapp-core-component__main__mt-3","my-3":"dapp-core-component__main__my-3",my3:"dapp-core-component__main__my-3","mr-3":"dapp-core-component__main__mr-3",mr3:"dapp-core-component__main__mr-3","mx-3":"dapp-core-component__main__mx-3",mx3:"dapp-core-component__main__mx-3","mb-3":"dapp-core-component__main__mb-3",mb3:"dapp-core-component__main__mb-3","ml-3":"dapp-core-component__main__ml-3",ml3:"dapp-core-component__main__ml-3","m-4":"dapp-core-component__main__m-4",m4:"dapp-core-component__main__m-4","mt-4":"dapp-core-component__main__mt-4",mt4:"dapp-core-component__main__mt-4","my-4":"dapp-core-component__main__my-4",my4:"dapp-core-component__main__my-4","mr-4":"dapp-core-component__main__mr-4",mr4:"dapp-core-component__main__mr-4","mx-4":"dapp-core-component__main__mx-4",mx4:"dapp-core-component__main__mx-4","mb-4":"dapp-core-component__main__mb-4",mb4:"dapp-core-component__main__mb-4","ml-4":"dapp-core-component__main__ml-4",ml4:"dapp-core-component__main__ml-4","m-5":"dapp-core-component__main__m-5",m5:"dapp-core-component__main__m-5","mt-5":"dapp-core-component__main__mt-5",mt5:"dapp-core-component__main__mt-5","my-5":"dapp-core-component__main__my-5",my5:"dapp-core-component__main__my-5","mr-5":"dapp-core-component__main__mr-5",mr5:"dapp-core-component__main__mr-5","mx-5":"dapp-core-component__main__mx-5",mx5:"dapp-core-component__main__mx-5","mb-5":"dapp-core-component__main__mb-5",mb5:"dapp-core-component__main__mb-5","ml-5":"dapp-core-component__main__ml-5",ml5:"dapp-core-component__main__ml-5","p-0":"dapp-core-component__main__p-0",p0:"dapp-core-component__main__p-0","pt-0":"dapp-core-component__main__pt-0",pt0:"dapp-core-component__main__pt-0","py-0":"dapp-core-component__main__py-0",py0:"dapp-core-component__main__py-0","pr-0":"dapp-core-component__main__pr-0",pr0:"dapp-core-component__main__pr-0","px-0":"dapp-core-component__main__px-0",px0:"dapp-core-component__main__px-0","pb-0":"dapp-core-component__main__pb-0",pb0:"dapp-core-component__main__pb-0","pl-0":"dapp-core-component__main__pl-0",pl0:"dapp-core-component__main__pl-0","p-1":"dapp-core-component__main__p-1",p1:"dapp-core-component__main__p-1","pt-1":"dapp-core-component__main__pt-1",pt1:"dapp-core-component__main__pt-1","py-1":"dapp-core-component__main__py-1",py1:"dapp-core-component__main__py-1","pr-1":"dapp-core-component__main__pr-1",pr1:"dapp-core-component__main__pr-1","px-1":"dapp-core-component__main__px-1",px1:"dapp-core-component__main__px-1","pb-1":"dapp-core-component__main__pb-1",pb1:"dapp-core-component__main__pb-1","pl-1":"dapp-core-component__main__pl-1",pl1:"dapp-core-component__main__pl-1","p-2":"dapp-core-component__main__p-2",p2:"dapp-core-component__main__p-2","pt-2":"dapp-core-component__main__pt-2",pt2:"dapp-core-component__main__pt-2","py-2":"dapp-core-component__main__py-2",py2:"dapp-core-component__main__py-2","pr-2":"dapp-core-component__main__pr-2",pr2:"dapp-core-component__main__pr-2","px-2":"dapp-core-component__main__px-2",px2:"dapp-core-component__main__px-2","pb-2":"dapp-core-component__main__pb-2",pb2:"dapp-core-component__main__pb-2","pl-2":"dapp-core-component__main__pl-2",pl2:"dapp-core-component__main__pl-2","p-3":"dapp-core-component__main__p-3",p3:"dapp-core-component__main__p-3","pt-3":"dapp-core-component__main__pt-3",pt3:"dapp-core-component__main__pt-3","py-3":"dapp-core-component__main__py-3",py3:"dapp-core-component__main__py-3","pr-3":"dapp-core-component__main__pr-3",pr3:"dapp-core-component__main__pr-3","px-3":"dapp-core-component__main__px-3",px3:"dapp-core-component__main__px-3","pb-3":"dapp-core-component__main__pb-3",pb3:"dapp-core-component__main__pb-3","pl-3":"dapp-core-component__main__pl-3",pl3:"dapp-core-component__main__pl-3","p-4":"dapp-core-component__main__p-4",p4:"dapp-core-component__main__p-4","pt-4":"dapp-core-component__main__pt-4",pt4:"dapp-core-component__main__pt-4","py-4":"dapp-core-component__main__py-4",py4:"dapp-core-component__main__py-4","pr-4":"dapp-core-component__main__pr-4",pr4:"dapp-core-component__main__pr-4","px-4":"dapp-core-component__main__px-4",px4:"dapp-core-component__main__px-4","pb-4":"dapp-core-component__main__pb-4",pb4:"dapp-core-component__main__pb-4","pl-4":"dapp-core-component__main__pl-4",pl4:"dapp-core-component__main__pl-4","p-5":"dapp-core-component__main__p-5",p5:"dapp-core-component__main__p-5","pt-5":"dapp-core-component__main__pt-5",pt5:"dapp-core-component__main__pt-5","py-5":"dapp-core-component__main__py-5",py5:"dapp-core-component__main__py-5","pr-5":"dapp-core-component__main__pr-5",pr5:"dapp-core-component__main__pr-5","px-5":"dapp-core-component__main__px-5",px5:"dapp-core-component__main__px-5","pb-5":"dapp-core-component__main__pb-5",pb5:"dapp-core-component__main__pb-5","pl-5":"dapp-core-component__main__pl-5",pl5:"dapp-core-component__main__pl-5","m-n1":"dapp-core-component__main__m-n1",mN1:"dapp-core-component__main__m-n1","mt-n1":"dapp-core-component__main__mt-n1",mtN1:"dapp-core-component__main__mt-n1","my-n1":"dapp-core-component__main__my-n1",myN1:"dapp-core-component__main__my-n1","mr-n1":"dapp-core-component__main__mr-n1",mrN1:"dapp-core-component__main__mr-n1","mx-n1":"dapp-core-component__main__mx-n1",mxN1:"dapp-core-component__main__mx-n1","mb-n1":"dapp-core-component__main__mb-n1",mbN1:"dapp-core-component__main__mb-n1","ml-n1":"dapp-core-component__main__ml-n1",mlN1:"dapp-core-component__main__ml-n1","m-n2":"dapp-core-component__main__m-n2",mN2:"dapp-core-component__main__m-n2","mt-n2":"dapp-core-component__main__mt-n2",mtN2:"dapp-core-component__main__mt-n2","my-n2":"dapp-core-component__main__my-n2",myN2:"dapp-core-component__main__my-n2","mr-n2":"dapp-core-component__main__mr-n2",mrN2:"dapp-core-component__main__mr-n2","mx-n2":"dapp-core-component__main__mx-n2",mxN2:"dapp-core-component__main__mx-n2","mb-n2":"dapp-core-component__main__mb-n2",mbN2:"dapp-core-component__main__mb-n2","ml-n2":"dapp-core-component__main__ml-n2",mlN2:"dapp-core-component__main__ml-n2","m-n3":"dapp-core-component__main__m-n3",mN3:"dapp-core-component__main__m-n3","mt-n3":"dapp-core-component__main__mt-n3",mtN3:"dapp-core-component__main__mt-n3","my-n3":"dapp-core-component__main__my-n3",myN3:"dapp-core-component__main__my-n3","mr-n3":"dapp-core-component__main__mr-n3",mrN3:"dapp-core-component__main__mr-n3","mx-n3":"dapp-core-component__main__mx-n3",mxN3:"dapp-core-component__main__mx-n3","mb-n3":"dapp-core-component__main__mb-n3",mbN3:"dapp-core-component__main__mb-n3","ml-n3":"dapp-core-component__main__ml-n3",mlN3:"dapp-core-component__main__ml-n3","m-n4":"dapp-core-component__main__m-n4",mN4:"dapp-core-component__main__m-n4","mt-n4":"dapp-core-component__main__mt-n4",mtN4:"dapp-core-component__main__mt-n4","my-n4":"dapp-core-component__main__my-n4",myN4:"dapp-core-component__main__my-n4","mr-n4":"dapp-core-component__main__mr-n4",mrN4:"dapp-core-component__main__mr-n4","mx-n4":"dapp-core-component__main__mx-n4",mxN4:"dapp-core-component__main__mx-n4","mb-n4":"dapp-core-component__main__mb-n4",mbN4:"dapp-core-component__main__mb-n4","ml-n4":"dapp-core-component__main__ml-n4",mlN4:"dapp-core-component__main__ml-n4","m-n5":"dapp-core-component__main__m-n5",mN5:"dapp-core-component__main__m-n5","mt-n5":"dapp-core-component__main__mt-n5",mtN5:"dapp-core-component__main__mt-n5","my-n5":"dapp-core-component__main__my-n5",myN5:"dapp-core-component__main__my-n5","mr-n5":"dapp-core-component__main__mr-n5",mrN5:"dapp-core-component__main__mr-n5","mx-n5":"dapp-core-component__main__mx-n5",mxN5:"dapp-core-component__main__mx-n5","mb-n5":"dapp-core-component__main__mb-n5",mbN5:"dapp-core-component__main__mb-n5","ml-n5":"dapp-core-component__main__ml-n5",mlN5:"dapp-core-component__main__ml-n5","m-auto":"dapp-core-component__main__m-auto",mAuto:"dapp-core-component__main__m-auto","mt-auto":"dapp-core-component__main__mt-auto",mtAuto:"dapp-core-component__main__mt-auto","my-auto":"dapp-core-component__main__my-auto",myAuto:"dapp-core-component__main__my-auto","mr-auto":"dapp-core-component__main__mr-auto",mrAuto:"dapp-core-component__main__mr-auto","mb-auto":"dapp-core-component__main__mb-auto",mbAuto:"dapp-core-component__main__mb-auto","ml-auto":"dapp-core-component__main__ml-auto",mlAuto:"dapp-core-component__main__ml-auto","mr-lg-1":"dapp-core-component__main__mr-lg-1",mrLg1:"dapp-core-component__main__mr-lg-1","mr-lg-4":"dapp-core-component__main__mr-lg-4",mrLg4:"dapp-core-component__main__mr-lg-4","mx-lg-4":"dapp-core-component__main__mx-lg-4",mxLg4:"dapp-core-component__main__mx-lg-4","mb-xl-2":"dapp-core-component__main__mb-xl-2",mbXl2:"dapp-core-component__main__mb-xl-2","pr-sm-2":"dapp-core-component__main__pr-sm-2",prSm2:"dapp-core-component__main__pr-sm-2","px-sm-2":"dapp-core-component__main__px-sm-2",pxSm2:"dapp-core-component__main__px-sm-2","pr-xl-0":"dapp-core-component__main__pr-xl-0",prXl0:"dapp-core-component__main__pr-xl-0","px-xl-0":"dapp-core-component__main__px-xl-0",pxXl0:"dapp-core-component__main__px-xl-0",col:"dapp-core-component__main__col",row:"dapp-core-component__main__row","col-xl":"dapp-core-component__main__col-xl",colXl:"dapp-core-component__main__col-xl","col-xl-auto":"dapp-core-component__main__col-xl-auto",colXlAuto:"dapp-core-component__main__col-xl-auto","col-xl-12":"dapp-core-component__main__col-xl-12",colXl12:"dapp-core-component__main__col-xl-12","col-xl-11":"dapp-core-component__main__col-xl-11",colXl11:"dapp-core-component__main__col-xl-11","col-xl-10":"dapp-core-component__main__col-xl-10",colXl10:"dapp-core-component__main__col-xl-10","col-xl-9":"dapp-core-component__main__col-xl-9",colXl9:"dapp-core-component__main__col-xl-9","col-xl-8":"dapp-core-component__main__col-xl-8",colXl8:"dapp-core-component__main__col-xl-8","col-xl-7":"dapp-core-component__main__col-xl-7",colXl7:"dapp-core-component__main__col-xl-7","col-xl-6":"dapp-core-component__main__col-xl-6",colXl6:"dapp-core-component__main__col-xl-6","col-xl-5":"dapp-core-component__main__col-xl-5",colXl5:"dapp-core-component__main__col-xl-5","col-xl-4":"dapp-core-component__main__col-xl-4",colXl4:"dapp-core-component__main__col-xl-4","col-xl-3":"dapp-core-component__main__col-xl-3",colXl3:"dapp-core-component__main__col-xl-3","col-xl-2":"dapp-core-component__main__col-xl-2",colXl2:"dapp-core-component__main__col-xl-2","col-xl-1":"dapp-core-component__main__col-xl-1",colXl1:"dapp-core-component__main__col-xl-1","col-lg":"dapp-core-component__main__col-lg",colLg:"dapp-core-component__main__col-lg","col-lg-auto":"dapp-core-component__main__col-lg-auto",colLgAuto:"dapp-core-component__main__col-lg-auto","col-lg-12":"dapp-core-component__main__col-lg-12",colLg12:"dapp-core-component__main__col-lg-12","col-lg-11":"dapp-core-component__main__col-lg-11",colLg11:"dapp-core-component__main__col-lg-11","col-lg-10":"dapp-core-component__main__col-lg-10",colLg10:"dapp-core-component__main__col-lg-10","col-lg-9":"dapp-core-component__main__col-lg-9",colLg9:"dapp-core-component__main__col-lg-9","col-lg-8":"dapp-core-component__main__col-lg-8",colLg8:"dapp-core-component__main__col-lg-8","col-lg-7":"dapp-core-component__main__col-lg-7",colLg7:"dapp-core-component__main__col-lg-7","col-lg-6":"dapp-core-component__main__col-lg-6",colLg6:"dapp-core-component__main__col-lg-6","col-lg-5":"dapp-core-component__main__col-lg-5",colLg5:"dapp-core-component__main__col-lg-5","col-lg-4":"dapp-core-component__main__col-lg-4",colLg4:"dapp-core-component__main__col-lg-4","col-lg-3":"dapp-core-component__main__col-lg-3",colLg3:"dapp-core-component__main__col-lg-3","col-lg-2":"dapp-core-component__main__col-lg-2",colLg2:"dapp-core-component__main__col-lg-2","col-lg-1":"dapp-core-component__main__col-lg-1",colLg1:"dapp-core-component__main__col-lg-1","col-md":"dapp-core-component__main__col-md",colMd:"dapp-core-component__main__col-md","col-md-auto":"dapp-core-component__main__col-md-auto",colMdAuto:"dapp-core-component__main__col-md-auto","col-md-12":"dapp-core-component__main__col-md-12",colMd12:"dapp-core-component__main__col-md-12","col-md-11":"dapp-core-component__main__col-md-11",colMd11:"dapp-core-component__main__col-md-11","col-md-10":"dapp-core-component__main__col-md-10",colMd10:"dapp-core-component__main__col-md-10","col-md-9":"dapp-core-component__main__col-md-9",colMd9:"dapp-core-component__main__col-md-9","col-md-8":"dapp-core-component__main__col-md-8",colMd8:"dapp-core-component__main__col-md-8","col-md-7":"dapp-core-component__main__col-md-7",colMd7:"dapp-core-component__main__col-md-7","col-md-6":"dapp-core-component__main__col-md-6",colMd6:"dapp-core-component__main__col-md-6","col-md-5":"dapp-core-component__main__col-md-5",colMd5:"dapp-core-component__main__col-md-5","col-md-4":"dapp-core-component__main__col-md-4",colMd4:"dapp-core-component__main__col-md-4","col-md-3":"dapp-core-component__main__col-md-3",colMd3:"dapp-core-component__main__col-md-3","col-md-2":"dapp-core-component__main__col-md-2",colMd2:"dapp-core-component__main__col-md-2","col-md-1":"dapp-core-component__main__col-md-1",colMd1:"dapp-core-component__main__col-md-1","col-sm":"dapp-core-component__main__col-sm",colSm:"dapp-core-component__main__col-sm","col-sm-auto":"dapp-core-component__main__col-sm-auto",colSmAuto:"dapp-core-component__main__col-sm-auto","col-sm-12":"dapp-core-component__main__col-sm-12",colSm12:"dapp-core-component__main__col-sm-12","col-sm-11":"dapp-core-component__main__col-sm-11",colSm11:"dapp-core-component__main__col-sm-11","col-sm-10":"dapp-core-component__main__col-sm-10",colSm10:"dapp-core-component__main__col-sm-10","col-sm-9":"dapp-core-component__main__col-sm-9",colSm9:"dapp-core-component__main__col-sm-9","col-sm-8":"dapp-core-component__main__col-sm-8",colSm8:"dapp-core-component__main__col-sm-8","col-sm-7":"dapp-core-component__main__col-sm-7",colSm7:"dapp-core-component__main__col-sm-7","col-sm-6":"dapp-core-component__main__col-sm-6",colSm6:"dapp-core-component__main__col-sm-6","col-sm-5":"dapp-core-component__main__col-sm-5",colSm5:"dapp-core-component__main__col-sm-5","col-sm-4":"dapp-core-component__main__col-sm-4",colSm4:"dapp-core-component__main__col-sm-4","col-sm-3":"dapp-core-component__main__col-sm-3",colSm3:"dapp-core-component__main__col-sm-3","col-sm-2":"dapp-core-component__main__col-sm-2",colSm2:"dapp-core-component__main__col-sm-2","col-sm-1":"dapp-core-component__main__col-sm-1",colSm1:"dapp-core-component__main__col-sm-1","col-auto":"dapp-core-component__main__col-auto",colAuto:"dapp-core-component__main__col-auto","col-12":"dapp-core-component__main__col-12",col12:"dapp-core-component__main__col-12","col-11":"dapp-core-component__main__col-11",col11:"dapp-core-component__main__col-11","col-10":"dapp-core-component__main__col-10",col10:"dapp-core-component__main__col-10","col-9":"dapp-core-component__main__col-9",col9:"dapp-core-component__main__col-9","col-8":"dapp-core-component__main__col-8",col8:"dapp-core-component__main__col-8","col-7":"dapp-core-component__main__col-7",col7:"dapp-core-component__main__col-7","col-6":"dapp-core-component__main__col-6",col6:"dapp-core-component__main__col-6","col-5":"dapp-core-component__main__col-5",col5:"dapp-core-component__main__col-5","col-4":"dapp-core-component__main__col-4",col4:"dapp-core-component__main__col-4","col-3":"dapp-core-component__main__col-3",col3:"dapp-core-component__main__col-3","col-2":"dapp-core-component__main__col-2",col2:"dapp-core-component__main__col-2","col-1":"dapp-core-component__main__col-1",col1:"dapp-core-component__main__col-1","flex-row":"dapp-core-component__main__flex-row",flexRow:"dapp-core-component__main__flex-row","flex-column":"dapp-core-component__main__flex-column",flexColumn:"dapp-core-component__main__flex-column","flex-row-reverse":"dapp-core-component__main__flex-row-reverse",flexRowReverse:"dapp-core-component__main__flex-row-reverse","flex-column-reverse":"dapp-core-component__main__flex-column-reverse",flexColumnReverse:"dapp-core-component__main__flex-column-reverse","flex-wrap":"dapp-core-component__main__flex-wrap",flexWrap:"dapp-core-component__main__flex-wrap","flex-nowrap":"dapp-core-component__main__flex-nowrap",flexNowrap:"dapp-core-component__main__flex-nowrap","flex-wrap-reverse":"dapp-core-component__main__flex-wrap-reverse",flexWrapReverse:"dapp-core-component__main__flex-wrap-reverse","flex-fill":"dapp-core-component__main__flex-fill",flexFill:"dapp-core-component__main__flex-fill","flex-grow-0":"dapp-core-component__main__flex-grow-0",flexGrow0:"dapp-core-component__main__flex-grow-0","flex-grow-1":"dapp-core-component__main__flex-grow-1",flexGrow1:"dapp-core-component__main__flex-grow-1","flex-shrink-0":"dapp-core-component__main__flex-shrink-0",flexShrink0:"dapp-core-component__main__flex-shrink-0","flex-shrink-1":"dapp-core-component__main__flex-shrink-1",flexShrink1:"dapp-core-component__main__flex-shrink-1","justify-content-start":"dapp-core-component__main__justify-content-start",justifyContentStart:"dapp-core-component__main__justify-content-start","justify-content-end":"dapp-core-component__main__justify-content-end",justifyContentEnd:"dapp-core-component__main__justify-content-end","justify-content-center":"dapp-core-component__main__justify-content-center",justifyContentCenter:"dapp-core-component__main__justify-content-center","justify-content-between":"dapp-core-component__main__justify-content-between",justifyContentBetween:"dapp-core-component__main__justify-content-between","justify-content-around":"dapp-core-component__main__justify-content-around",justifyContentAround:"dapp-core-component__main__justify-content-around","align-items-start":"dapp-core-component__main__align-items-start",alignItemsStart:"dapp-core-component__main__align-items-start","align-items-end":"dapp-core-component__main__align-items-end",alignItemsEnd:"dapp-core-component__main__align-items-end","align-items-center":"dapp-core-component__main__align-items-center",alignItemsCenter:"dapp-core-component__main__align-items-center","align-items-baseline":"dapp-core-component__main__align-items-baseline",alignItemsBaseline:"dapp-core-component__main__align-items-baseline","align-items-stretch":"dapp-core-component__main__align-items-stretch",alignItemsStretch:"dapp-core-component__main__align-items-stretch","align-content-start":"dapp-core-component__main__align-content-start",alignContentStart:"dapp-core-component__main__align-content-start","align-content-end":"dapp-core-component__main__align-content-end",alignContentEnd:"dapp-core-component__main__align-content-end","align-content-center":"dapp-core-component__main__align-content-center",alignContentCenter:"dapp-core-component__main__align-content-center","align-content-between":"dapp-core-component__main__align-content-between",alignContentBetween:"dapp-core-component__main__align-content-between","align-content-around":"dapp-core-component__main__align-content-around",alignContentAround:"dapp-core-component__main__align-content-around","align-content-stretch":"dapp-core-component__main__align-content-stretch",alignContentStretch:"dapp-core-component__main__align-content-stretch","align-self-auto":"dapp-core-component__main__align-self-auto",alignSelfAuto:"dapp-core-component__main__align-self-auto","align-self-start":"dapp-core-component__main__align-self-start",alignSelfStart:"dapp-core-component__main__align-self-start","align-self-end":"dapp-core-component__main__align-self-end",alignSelfEnd:"dapp-core-component__main__align-self-end","align-self-center":"dapp-core-component__main__align-self-center",alignSelfCenter:"dapp-core-component__main__align-self-center","align-self-baseline":"dapp-core-component__main__align-self-baseline",alignSelfBaseline:"dapp-core-component__main__align-self-baseline","align-self-stretch":"dapp-core-component__main__align-self-stretch",alignSelfStretch:"dapp-core-component__main__align-self-stretch","flex-sm-row":"dapp-core-component__main__flex-sm-row",flexSmRow:"dapp-core-component__main__flex-sm-row","flex-lg-row":"dapp-core-component__main__flex-lg-row",flexLgRow:"dapp-core-component__main__flex-lg-row","flex-lg-wrap":"dapp-core-component__main__flex-lg-wrap",flexLgWrap:"dapp-core-component__main__flex-lg-wrap","form-check":"dapp-core-component__main__form-check",formCheck:"dapp-core-component__main__form-check","form-check-label":"dapp-core-component__main__form-check-label",formCheckLabel:"dapp-core-component__main__form-check-label","form-check-input":"dapp-core-component__main__form-check-input",formCheckInput:"dapp-core-component__main__form-check-input","form-group":"dapp-core-component__main__form-group",formGroup:"dapp-core-component__main__form-group","form-control":"dapp-core-component__main__form-control",formControl:"dapp-core-component__main__form-control","form-label":"dapp-core-component__main__form-label",formLabel:"dapp-core-component__main__form-label","form-text":"dapp-core-component__main__form-text",formText:"dapp-core-component__main__form-text",border:"dapp-core-component__main__border","border-top":"dapp-core-component__main__border-top",borderTop:"dapp-core-component__main__border-top","border-right":"dapp-core-component__main__border-right",borderRight:"dapp-core-component__main__border-right","border-bottom":"dapp-core-component__main__border-bottom",borderBottom:"dapp-core-component__main__border-bottom","border-left":"dapp-core-component__main__border-left",borderLeft:"dapp-core-component__main__border-left","border-0":"dapp-core-component__main__border-0",border0:"dapp-core-component__main__border-0","border-top-0":"dapp-core-component__main__border-top-0",borderTop0:"dapp-core-component__main__border-top-0","border-right-0":"dapp-core-component__main__border-right-0",borderRight0:"dapp-core-component__main__border-right-0","border-bottom-0":"dapp-core-component__main__border-bottom-0",borderBottom0:"dapp-core-component__main__border-bottom-0","border-left-0":"dapp-core-component__main__border-left-0",borderLeft0:"dapp-core-component__main__border-left-0","rounded-sm":"dapp-core-component__main__rounded-sm",roundedSm:"dapp-core-component__main__rounded-sm",rounded:"dapp-core-component__main__rounded","rounded-top":"dapp-core-component__main__rounded-top",roundedTop:"dapp-core-component__main__rounded-top","rounded-right":"dapp-core-component__main__rounded-right",roundedRight:"dapp-core-component__main__rounded-right","rounded-bottom":"dapp-core-component__main__rounded-bottom",roundedBottom:"dapp-core-component__main__rounded-bottom","rounded-left":"dapp-core-component__main__rounded-left",roundedLeft:"dapp-core-component__main__rounded-left","rounded-lg":"dapp-core-component__main__rounded-lg",roundedLg:"dapp-core-component__main__rounded-lg","rounded-circle":"dapp-core-component__main__rounded-circle",roundedCircle:"dapp-core-component__main__rounded-circle","rounded-pill":"dapp-core-component__main__rounded-pill",roundedPill:"dapp-core-component__main__rounded-pill","rounded-0":"dapp-core-component__main__rounded-0",rounded0:"dapp-core-component__main__rounded-0",h1:"dapp-core-component__main__h1",h2:"dapp-core-component__main__h2",h3:"dapp-core-component__main__h3",h4:"dapp-core-component__main__h4",h5:"dapp-core-component__main__h5",lead:"dapp-core-component__main__lead","bg-primary":"dapp-core-component__main__bg-primary",bgPrimary:"dapp-core-component__main__bg-primary","bg-warning":"dapp-core-component__main__bg-warning",bgWarning:"dapp-core-component__main__bg-warning",warning:"dapp-core-component__main__warning","bg-danger":"dapp-core-component__main__bg-danger",bgDanger:"dapp-core-component__main__bg-danger",danger:"dapp-core-component__main__danger","bg-success":"dapp-core-component__main__bg-success",bgSuccess:"dapp-core-component__main__bg-success",success:"dapp-core-component__main__success","position-relative":"dapp-core-component__main__position-relative",positionRelative:"dapp-core-component__main__position-relative","position-absolute":"dapp-core-component__main__position-absolute",positionAbsolute:"dapp-core-component__main__position-absolute","w-25":"dapp-core-component__main__w-25",w25:"dapp-core-component__main__w-25","w-50":"dapp-core-component__main__w-50",w50:"dapp-core-component__main__w-50","w-75":"dapp-core-component__main__w-75",w75:"dapp-core-component__main__w-75","w-100":"dapp-core-component__main__w-100",w100:"dapp-core-component__main__w-100","w-auto":"dapp-core-component__main__w-auto",wAuto:"dapp-core-component__main__w-auto","h-25":"dapp-core-component__main__h-25",h25:"dapp-core-component__main__h-25","h-50":"dapp-core-component__main__h-50",h50:"dapp-core-component__main__h-50","h-75":"dapp-core-component__main__h-75",h75:"dapp-core-component__main__h-75","h-100":"dapp-core-component__main__h-100",h100:"dapp-core-component__main__h-100","h-auto":"dapp-core-component__main__h-auto",hAuto:"dapp-core-component__main__h-auto","mw-100":"dapp-core-component__main__mw-100",mw100:"dapp-core-component__main__mw-100","mh-100":"dapp-core-component__main__mh-100",mh100:"dapp-core-component__main__mh-100","min-vw-100":"dapp-core-component__main__min-vw-100",minVw100:"dapp-core-component__main__min-vw-100","min-vh-100":"dapp-core-component__main__min-vh-100",minVh100:"dapp-core-component__main__min-vh-100","vw-100":"dapp-core-component__main__vw-100",vw100:"dapp-core-component__main__vw-100","vh-100":"dapp-core-component__main__vh-100",vh100:"dapp-core-component__main__vh-100","locked-icon":"dapp-core-component__main__locked-icon",lockedIcon:"dapp-core-component__main__locked-icon","shadow-sm":"dapp-core-component__main__shadow-sm",shadowSm:"dapp-core-component__main__shadow-sm",shadow:"dapp-core-component__main__shadow","shadow-lg":"dapp-core-component__main__shadow-lg",shadowLg:"dapp-core-component__main__shadow-lg","shadow-none":"dapp-core-component__main__shadow-none",shadowNone:"dapp-core-component__main__shadow-none","d-none":"dapp-core-component__main__d-none",dNone:"dapp-core-component__main__d-none","d-inline":"dapp-core-component__main__d-inline",dInline:"dapp-core-component__main__d-inline","d-inline-block":"dapp-core-component__main__d-inline-block",dInlineBlock:"dapp-core-component__main__d-inline-block","d-block":"dapp-core-component__main__d-block",dBlock:"dapp-core-component__main__d-block","d-table":"dapp-core-component__main__d-table",dTable:"dapp-core-component__main__d-table","d-table-row":"dapp-core-component__main__d-table-row",dTableRow:"dapp-core-component__main__d-table-row","d-table-cell":"dapp-core-component__main__d-table-cell",dTableCell:"dapp-core-component__main__d-table-cell","d-flex":"dapp-core-component__main__d-flex",dFlex:"dapp-core-component__main__d-flex","d-inline-flex":"dapp-core-component__main__d-inline-flex",dInlineFlex:"dapp-core-component__main__d-inline-flex","d-sm-flex":"dapp-core-component__main__d-sm-flex",dSmFlex:"dapp-core-component__main__d-sm-flex","table-sm":"dapp-core-component__main__table-sm",tableSm:"dapp-core-component__main__table-sm","table-bordered":"dapp-core-component__main__table-bordered",tableBordered:"dapp-core-component__main__table-bordered","table-borderless":"dapp-core-component__main__table-borderless",tableBorderless:"dapp-core-component__main__table-borderless","table-striped":"dapp-core-component__main__table-striped",tableStriped:"dapp-core-component__main__table-striped","thead-dark":"dapp-core-component__main__thead-dark",theadDark:"dapp-core-component__main__thead-dark","thead-light":"dapp-core-component__main__thead-light",theadLight:"dapp-core-component__main__thead-light","table-dark":"dapp-core-component__main__table-dark",tableDark:"dapp-core-component__main__table-dark","table-hover":"dapp-core-component__main__table-hover",tableHover:"dapp-core-component__main__table-hover","table-responsive":"dapp-core-component__main__table-responsive",tableResponsive:"dapp-core-component__main__table-responsive","transaction-hash":"dapp-core-component__main__transaction-hash",transactionHash:"dapp-core-component__main__transaction-hash","font-weight-light":"dapp-core-component__main__font-weight-light",fontWeightLight:"dapp-core-component__main__font-weight-light","font-weight-lighter":"dapp-core-component__main__font-weight-lighter",fontWeightLighter:"dapp-core-component__main__font-weight-lighter","font-weight-normal":"dapp-core-component__main__font-weight-normal",fontWeightNormal:"dapp-core-component__main__font-weight-normal","font-weight-medium":"dapp-core-component__main__font-weight-medium",fontWeightMedium:"dapp-core-component__main__font-weight-medium","font-weight-bold":"dapp-core-component__main__font-weight-bold",fontWeightBold:"dapp-core-component__main__font-weight-bold","font-weight-bolder":"dapp-core-component__main__font-weight-bolder",fontWeightBolder:"dapp-core-component__main__font-weight-bolder","font-italic":"dapp-core-component__main__font-italic",fontItalic:"dapp-core-component__main__font-italic","icon-state":"dapp-core-component__main__icon-state",iconState:"dapp-core-component__main__icon-state",half:"dapp-core-component__main__half","side-icon":"dapp-core-component__main__side-icon",sideIcon:"dapp-core-component__main__side-icon","toast-messages":"dapp-core-component__main__toast-messages",toastMessages:"dapp-core-component__main__toast-messages",toast:"dapp-core-component__main__toast",clickable:"dapp-core-component__main__clickable","toast-visible":"dapp-core-component__main__toast-visible",toastVisible:"dapp-core-component__main__toast-visible",progress:"dapp-core-component__main__progress","progress-bar":"dapp-core-component__main__progress-bar",progressBar:"dapp-core-component__main__progress-bar","content-height":"dapp-core-component__main__content-height",contentHeight:"dapp-core-component__main__content-height","tx-description":"dapp-core-component__main__tx-description",txDescription:"dapp-core-component__main__tx-description",close:"dapp-core-component__main__close","data-field":"dapp-core-component__main__data-field",dataField:"dapp-core-component__main__data-field",textarea:"dapp-core-component__main__textarea",highlighted:"dapp-core-component__main__highlighted","sc-call":"dapp-core-component__main__sc-call",scCall:"dapp-core-component__main__sc-call","small-font":"dapp-core-component__main__small-font",smallFont:"dapp-core-component__main__small-font","progress-steps":"dapp-core-component__main__progress-steps",progressSteps:"dapp-core-component__main__progress-steps",steps:"dapp-core-component__main__steps",dot:"dapp-core-component__main__dot","side-link":"dapp-core-component__main__side-link",sideLink:"dapp-core-component__main__side-link"};var nr=({visible:e,headerText:o,customHeader:n,className:r,closeButtonClassName:c,headerTextClassName:p,onHide:d})=>e?n?wo.default.createElement("div",{className:(0,Xo.default)(de.dappModalHeader,r)},n):wo.default.createElement("div",{className:(0,Xo.default)(de.dappModalHeader,r)},wo.default.createElement("div",{className:(0,Xo.default)(de.dappModalHeaderText,p)},o),wo.default.createElement("button",{onClick:d,className:(0,Xo.default)(de.dappModalCloseButton,R.btn,R.btnLight,c)},wo.default.createElement(gs.FontAwesomeIcon,{size:"lg",icon:_s.faTimes}))):null;var zd={showHeader:!0,showFooter:!1,headerText:"",footerText:""},rr=({id:e="dapp-modal",visible:o,onHide:n,parentElement:r,config:c=zd,children:p,className:d="dapp-modal-dialog-wrapper"})=>{if(!o)return null;let{showHeader:_,showFooter:m,headerText:g,footerText:u,modalDialogClassName:f="dapp-modal-dialog",modalContentClassName:T="dapp-modal-dialog-content",modalHeaderClassName:C="dapp-modal-dialog-header",modalHeaderTextClassName:w="dapp-modal-dialog-header-text",modalCloseButtonClassName:I="dapp-modal-dialog-close-button",modalBodyClassName:G="dapp-modal-dialog-content-body",modalFooterClassName:Z="dapp-modal-dialog-footer",customModalHeader:D,customModalFooter:oe}=c;return us.default.createPortal(vo.default.createElement("div",{id:e,role:"dialog","aria-modal":"true",className:(0,tr.default)(f,de.dappModal,d)},vo.default.createElement("div",{className:(0,tr.default)(de.dappModalContent,T)},vo.default.createElement(nr,{visible:_,headerText:g,customHeader:D,className:C,headerTextClassName:w,closeButtonClassName:I,onHide:n}),vo.default.createElement(Qt,{className:G},p),vo.default.createElement(or,{visible:m,customFooter:oe,footerText:u,className:Z}))),r!=null?r:document==null?void 0:document.body)};t();t();var ko=require("react");t();t();t();var fs=require("react");t();N();t();t();t();var qd=require("react"),Kd=require("@multiversx/sdk-web-wallet-provider"),Xd=h(require("qs"));L();N();M();t();var xs=require("react"),nm=require("@multiversx/sdk-extension-provider");L();N();M();t();t();t();t();var ys=require("react"),Jd=require("@multiversx/sdk-extension-provider");L();N();t();t();var rm=h(require("axios")),am=h(require("swr"));t();t();var im=h(require("axios"));t();var bs=require("react");t();var Ts=require("react");vt();N();Y();Oo();t();$e();N();t();t();t();t();t();uo();t();t();t();var sm=h(require("axios"));t();var cm=h(require("axios"));t();var dm=h(require("axios"));t();t();var mm=h(require("axios"));t();var lm=h(require("axios"));t();N();M();t();uo();t();N();M();t();N();Y();t();var xm=require("react");t();t();t();N();t();t();var fm=h(require("bignumber.js"));L();N();Y();t();var um=h(require("bignumber.js"));L();t();var hm=require("@multiversx/sdk-core"),ym=h(require("bignumber.js"));L();M();uo();t();t();t();t();var ws=require("react");t();t();var Tm=require("react"),bm=require("@multiversx/sdk-extension-provider");$e();q();M();je();t();var Sm=require("react"),wm=require("@multiversx/sdk-opera-provider");$e();q();M();je();t();var vm=require("react");$e();N();t();t();var ir=require("react"),Im=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectProvider");q();N();M();je();t();var sr=require("react"),Cm=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectV2Provider");q();N();M();je();t();t();var vs=require("react");t();var Em=require("react");t();var cr=require("react"),Nm=require("socket.io-client");N();t();t();t();t();var As=e=>e.dappModal,ks=x(As,e=>e.visible),Ao=x(As,e=>e.modal),GN=x(Ao,e=>e.showHeader),HN=x(Ao,e=>e.showFooter),$N=x(Ao,e=>e.headerText),VN=x(Ao,e=>e.footerText);var Is=()=>v(ks);Bt();var Cs=e=>{var _;let o=$(),n=Is(),r=v(Ao),c=()=>{o(Ft(!0))},p=()=>{o(Ft(!1))},d=(0,ko.useCallback)(m=>{o(Qa(m))},[]);return(0,ko.useEffect)(()=>{e!=null&&e.modalConfig&&d(e==null?void 0:e.modalConfig)},[e==null?void 0:e.modalConfig]),(0,ko.useEffect)(()=>{var m;return(m=e==null?void 0:e.config)!=null&&m.openOnMount&&c(),()=>{p()}},[]),(0,ko.useEffect)(()=>{var m;typeof((m=e==null?void 0:e.config)==null?void 0:m.visible)=="boolean"&&(e.config.visible?c():p())},[(_=e==null?void 0:e.config)==null?void 0:_.visible]),{handleShowModal:c,handleHideModal:p,setModalConfig:d,visible:n,config:r}};t();var pr=e=>{let{handleHideModal:o,visible:n,config:r}=Cs({modalConfig:e.modalConfig,config:A(y({},e.modalInteractionConfig),{visible:e.visible})});return Ls.default.createElement(rr,{onHide:()=>{var p;o(),(p=e.onClose)==null||p.call(e)},visible:n,config:r,className:e.className},e.children)};t();var O=h(require("react")),$n=require("@fortawesome/free-solid-svg-icons"),dr=require("@fortawesome/react-fontawesome"),Oe=h(require("classnames"));t();t();var Co=h(require("react")),Ps=require("@fortawesome/free-solid-svg-icons"),Gn=h(require("classnames"));t();var Io=h(require("react")),Es=require("@fortawesome/react-fontawesome"),Yo=h(require("classnames"));t();var Dm=`.dapp-core-component__pageStateStyles__wrapper {
|
|
2755
|
+
}`;document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(Vd));var F={"link-style":"dapp-core-component__main__link-style",linkStyle:"dapp-core-component__main__link-style","link-second-style":"dapp-core-component__main__link-second-style",linkSecondStyle:"dapp-core-component__main__link-second-style",wrapper:"dapp-core-component__main__wrapper","opacity-6":"dapp-core-component__main__opacity-6",opacity6:"dapp-core-component__main__opacity-6","qr-code-svg-container":"dapp-core-component__main__qr-code-svg-container",qrCodeSvgContainer:"dapp-core-component__main__qr-code-svg-container","pair-list":"dapp-core-component__main__pair-list",pairList:"dapp-core-component__main__pair-list","pair-loader":"dapp-core-component__main__pair-loader",pairLoader:"dapp-core-component__main__pair-loader","pair-image":"dapp-core-component__main__pair-image",pairImage:"dapp-core-component__main__pair-image","pair-remove":"dapp-core-component__main__pair-remove",pairRemove:"dapp-core-component__main__pair-remove","dapp-icon":"dapp-core-component__main__dapp-icon",dappIcon:"dapp-core-component__main__dapp-icon","icon-medium":"dapp-core-component__main__icon-medium",iconMedium:"dapp-core-component__main__icon-medium",centering:"dapp-core-component__main__centering","border-n":"dapp-core-component__main__border-n",borderN:"dapp-core-component__main__border-n","t-shadow":"dapp-core-component__main__t-shadow",tShadow:"dapp-core-component__main__t-shadow",btn:"dapp-core-component__main__btn",media:"dapp-core-component__main__media","media-body":"dapp-core-component__main__media-body",mediaBody:"dapp-core-component__main__media-body","connect-btns":"dapp-core-component__main__connect-btns",connectBtns:"dapp-core-component__main__connect-btns",info:"dapp-core-component__main__info","trust-badge":"dapp-core-component__main__trust-badge",trustBadge:"dapp-core-component__main__trust-badge",navbar:"dapp-core-component__main__navbar","dapp-name":"dapp-core-component__main__dapp-name",dappName:"dapp-core-component__main__dapp-name","action-btn":"dapp-core-component__main__action-btn",actionBtn:"dapp-core-component__main__action-btn",transactions:"dapp-core-component__main__transactions","transaction-icon":"dapp-core-component__main__transaction-icon",transactionIcon:"dapp-core-component__main__transaction-icon",table:"dapp-core-component__main__table","page-state":"dapp-core-component__main__page-state",pageState:"dapp-core-component__main__page-state","lds-ellipsis":"dapp-core-component__main__lds-ellipsis",ldsEllipsis:"dapp-core-component__main__lds-ellipsis","bg-blue":"dapp-core-component__main__bg-blue",bgBlue:"dapp-core-component__main__bg-blue","lds-ellipsis1":"dapp-core-component__main__lds-ellipsis1",ldsEllipsis1:"dapp-core-component__main__lds-ellipsis1","lds-ellipsis2":"dapp-core-component__main__lds-ellipsis2",ldsEllipsis2:"dapp-core-component__main__lds-ellipsis2","lds-ellipsis3":"dapp-core-component__main__lds-ellipsis3",ldsEllipsis3:"dapp-core-component__main__lds-ellipsis3",focus:"dapp-core-component__main__focus",disabled:"dapp-core-component__main__disabled","btn-primary":"dapp-core-component__main__btn-primary",btnPrimary:"dapp-core-component__main__btn-primary","btn-secondary":"dapp-core-component__main__btn-secondary",btnSecondary:"dapp-core-component__main__btn-secondary","btn-warning":"dapp-core-component__main__btn-warning",btnWarning:"dapp-core-component__main__btn-warning","btn-dark":"dapp-core-component__main__btn-dark",btnDark:"dapp-core-component__main__btn-dark","btn-link":"dapp-core-component__main__btn-link",btnLink:"dapp-core-component__main__btn-link","btn-light":"dapp-core-component__main__btn-light",btnLight:"dapp-core-component__main__btn-light",badge:"dapp-core-component__main__badge","badge-pill":"dapp-core-component__main__badge-pill",badgePill:"dapp-core-component__main__badge-pill","badge-primary":"dapp-core-component__main__badge-primary",badgePrimary:"dapp-core-component__main__badge-primary","badge-secondary":"dapp-core-component__main__badge-secondary",badgeSecondary:"dapp-core-component__main__badge-secondary","badge-success":"dapp-core-component__main__badge-success",badgeSuccess:"dapp-core-component__main__badge-success","badge-info":"dapp-core-component__main__badge-info",badgeInfo:"dapp-core-component__main__badge-info","badge-warning":"dapp-core-component__main__badge-warning",badgeWarning:"dapp-core-component__main__badge-warning","badge-danger":"dapp-core-component__main__badge-danger",badgeDanger:"dapp-core-component__main__badge-danger","badge-light":"dapp-core-component__main__badge-light",badgeLight:"dapp-core-component__main__badge-light","badge-dark":"dapp-core-component__main__badge-dark",badgeDark:"dapp-core-component__main__badge-dark",card:"dapp-core-component__main__card","list-group":"dapp-core-component__main__list-group",listGroup:"dapp-core-component__main__list-group","card-header":"dapp-core-component__main__card-header",cardHeader:"dapp-core-component__main__card-header","card-footer":"dapp-core-component__main__card-footer",cardFooter:"dapp-core-component__main__card-footer","card-header-item":"dapp-core-component__main__card-header-item",cardHeaderItem:"dapp-core-component__main__card-header-item",h6:"dapp-core-component__main__h6",compact:"dapp-core-component__main__compact","card-body":"dapp-core-component__main__card-body",cardBody:"dapp-core-component__main__card-body","card-title":"dapp-core-component__main__card-title",cardTitle:"dapp-core-component__main__card-title","card-subtitle":"dapp-core-component__main__card-subtitle",cardSubtitle:"dapp-core-component__main__card-subtitle","card-text":"dapp-core-component__main__card-text",cardText:"dapp-core-component__main__card-text","card-link":"dapp-core-component__main__card-link",cardLink:"dapp-core-component__main__card-link",text:"dapp-core-component__main__text","text-white":"dapp-core-component__main__text-white",textWhite:"dapp-core-component__main__text-white","text-monospace":"dapp-core-component__main__text-monospace",textMonospace:"dapp-core-component__main__text-monospace","trim-size-xl":"dapp-core-component__main__trim-size-xl",trimSizeXl:"dapp-core-component__main__trim-size-xl",trim:"dapp-core-component__main__trim","trim-only-sm":"dapp-core-component__main__trim-only-sm",trimOnlySm:"dapp-core-component__main__trim-only-sm","text-justify":"dapp-core-component__main__text-justify",textJustify:"dapp-core-component__main__text-justify","text-wrap":"dapp-core-component__main__text-wrap",textWrap:"dapp-core-component__main__text-wrap","text-nowrap":"dapp-core-component__main__text-nowrap",textNowrap:"dapp-core-component__main__text-nowrap","text-truncate":"dapp-core-component__main__text-truncate",textTruncate:"dapp-core-component__main__text-truncate","text-left":"dapp-core-component__main__text-left",textLeft:"dapp-core-component__main__text-left","text-right":"dapp-core-component__main__text-right",textRight:"dapp-core-component__main__text-right","text-center":"dapp-core-component__main__text-center",textCenter:"dapp-core-component__main__text-center","text-primary":"dapp-core-component__main__text-primary",textPrimary:"dapp-core-component__main__text-primary","text-secondary":"dapp-core-component__main__text-secondary",textSecondary:"dapp-core-component__main__text-secondary","text-primary-highlight":"dapp-core-component__main__text-primary-highlight",textPrimaryHighlight:"dapp-core-component__main__text-primary-highlight","text-muted":"dapp-core-component__main__text-muted",textMuted:"dapp-core-component__main__text-muted","text-success":"dapp-core-component__main__text-success",textSuccess:"dapp-core-component__main__text-success","text-body":"dapp-core-component__main__text-body",textBody:"dapp-core-component__main__text-body","text-black-50":"dapp-core-component__main__text-black-50",textBlack50:"dapp-core-component__main__text-black-50","text-white-50":"dapp-core-component__main__text-white-50",textWhite50:"dapp-core-component__main__text-white-50","text-lg-right":"dapp-core-component__main__text-lg-right",textLgRight:"dapp-core-component__main__text-lg-right","text-hide":"dapp-core-component__main__text-hide",textHide:"dapp-core-component__main__text-hide","text-decoration-none":"dapp-core-component__main__text-decoration-none",textDecorationNone:"dapp-core-component__main__text-decoration-none","text-break":"dapp-core-component__main__text-break",textBreak:"dapp-core-component__main__text-break","text-reset":"dapp-core-component__main__text-reset",textReset:"dapp-core-component__main__text-reset","text-lowercase":"dapp-core-component__main__text-lowercase",textLowercase:"dapp-core-component__main__text-lowercase","text-uppercase":"dapp-core-component__main__text-uppercase",textUppercase:"dapp-core-component__main__text-uppercase","text-capitalize":"dapp-core-component__main__text-capitalize",textCapitalize:"dapp-core-component__main__text-capitalize","text-danger":"dapp-core-component__main__text-danger",textDanger:"dapp-core-component__main__text-danger","text-warning":"dapp-core-component__main__text-warning",textWarning:"dapp-core-component__main__text-warning","trim-fs-sm":"dapp-core-component__main__trim-fs-sm",trimFsSm:"dapp-core-component__main__trim-fs-sm","mx-auto":"dapp-core-component__main__mx-auto",mxAuto:"dapp-core-component__main__mx-auto","m-0":"dapp-core-component__main__m-0",m0:"dapp-core-component__main__m-0","mt-0":"dapp-core-component__main__mt-0",mt0:"dapp-core-component__main__mt-0","my-0":"dapp-core-component__main__my-0",my0:"dapp-core-component__main__my-0","mr-0":"dapp-core-component__main__mr-0",mr0:"dapp-core-component__main__mr-0","mx-0":"dapp-core-component__main__mx-0",mx0:"dapp-core-component__main__mx-0","mb-0":"dapp-core-component__main__mb-0",mb0:"dapp-core-component__main__mb-0","ml-0":"dapp-core-component__main__ml-0",ml0:"dapp-core-component__main__ml-0","m-1":"dapp-core-component__main__m-1",m1:"dapp-core-component__main__m-1","mt-1":"dapp-core-component__main__mt-1",mt1:"dapp-core-component__main__mt-1","my-1":"dapp-core-component__main__my-1",my1:"dapp-core-component__main__my-1","mr-1":"dapp-core-component__main__mr-1",mr1:"dapp-core-component__main__mr-1","mx-1":"dapp-core-component__main__mx-1",mx1:"dapp-core-component__main__mx-1","mb-1":"dapp-core-component__main__mb-1",mb1:"dapp-core-component__main__mb-1","ml-1":"dapp-core-component__main__ml-1",ml1:"dapp-core-component__main__ml-1","m-2":"dapp-core-component__main__m-2",m2:"dapp-core-component__main__m-2","mt-2":"dapp-core-component__main__mt-2",mt2:"dapp-core-component__main__mt-2","my-2":"dapp-core-component__main__my-2",my2:"dapp-core-component__main__my-2","mr-2":"dapp-core-component__main__mr-2",mr2:"dapp-core-component__main__mr-2","mx-2":"dapp-core-component__main__mx-2",mx2:"dapp-core-component__main__mx-2","mb-2":"dapp-core-component__main__mb-2",mb2:"dapp-core-component__main__mb-2","ml-2":"dapp-core-component__main__ml-2",ml2:"dapp-core-component__main__ml-2","m-3":"dapp-core-component__main__m-3",m3:"dapp-core-component__main__m-3","mt-3":"dapp-core-component__main__mt-3",mt3:"dapp-core-component__main__mt-3","my-3":"dapp-core-component__main__my-3",my3:"dapp-core-component__main__my-3","mr-3":"dapp-core-component__main__mr-3",mr3:"dapp-core-component__main__mr-3","mx-3":"dapp-core-component__main__mx-3",mx3:"dapp-core-component__main__mx-3","mb-3":"dapp-core-component__main__mb-3",mb3:"dapp-core-component__main__mb-3","ml-3":"dapp-core-component__main__ml-3",ml3:"dapp-core-component__main__ml-3","m-4":"dapp-core-component__main__m-4",m4:"dapp-core-component__main__m-4","mt-4":"dapp-core-component__main__mt-4",mt4:"dapp-core-component__main__mt-4","my-4":"dapp-core-component__main__my-4",my4:"dapp-core-component__main__my-4","mr-4":"dapp-core-component__main__mr-4",mr4:"dapp-core-component__main__mr-4","mx-4":"dapp-core-component__main__mx-4",mx4:"dapp-core-component__main__mx-4","mb-4":"dapp-core-component__main__mb-4",mb4:"dapp-core-component__main__mb-4","ml-4":"dapp-core-component__main__ml-4",ml4:"dapp-core-component__main__ml-4","m-5":"dapp-core-component__main__m-5",m5:"dapp-core-component__main__m-5","mt-5":"dapp-core-component__main__mt-5",mt5:"dapp-core-component__main__mt-5","my-5":"dapp-core-component__main__my-5",my5:"dapp-core-component__main__my-5","mr-5":"dapp-core-component__main__mr-5",mr5:"dapp-core-component__main__mr-5","mx-5":"dapp-core-component__main__mx-5",mx5:"dapp-core-component__main__mx-5","mb-5":"dapp-core-component__main__mb-5",mb5:"dapp-core-component__main__mb-5","ml-5":"dapp-core-component__main__ml-5",ml5:"dapp-core-component__main__ml-5","p-0":"dapp-core-component__main__p-0",p0:"dapp-core-component__main__p-0","pt-0":"dapp-core-component__main__pt-0",pt0:"dapp-core-component__main__pt-0","py-0":"dapp-core-component__main__py-0",py0:"dapp-core-component__main__py-0","pr-0":"dapp-core-component__main__pr-0",pr0:"dapp-core-component__main__pr-0","px-0":"dapp-core-component__main__px-0",px0:"dapp-core-component__main__px-0","pb-0":"dapp-core-component__main__pb-0",pb0:"dapp-core-component__main__pb-0","pl-0":"dapp-core-component__main__pl-0",pl0:"dapp-core-component__main__pl-0","p-1":"dapp-core-component__main__p-1",p1:"dapp-core-component__main__p-1","pt-1":"dapp-core-component__main__pt-1",pt1:"dapp-core-component__main__pt-1","py-1":"dapp-core-component__main__py-1",py1:"dapp-core-component__main__py-1","pr-1":"dapp-core-component__main__pr-1",pr1:"dapp-core-component__main__pr-1","px-1":"dapp-core-component__main__px-1",px1:"dapp-core-component__main__px-1","pb-1":"dapp-core-component__main__pb-1",pb1:"dapp-core-component__main__pb-1","pl-1":"dapp-core-component__main__pl-1",pl1:"dapp-core-component__main__pl-1","p-2":"dapp-core-component__main__p-2",p2:"dapp-core-component__main__p-2","pt-2":"dapp-core-component__main__pt-2",pt2:"dapp-core-component__main__pt-2","py-2":"dapp-core-component__main__py-2",py2:"dapp-core-component__main__py-2","pr-2":"dapp-core-component__main__pr-2",pr2:"dapp-core-component__main__pr-2","px-2":"dapp-core-component__main__px-2",px2:"dapp-core-component__main__px-2","pb-2":"dapp-core-component__main__pb-2",pb2:"dapp-core-component__main__pb-2","pl-2":"dapp-core-component__main__pl-2",pl2:"dapp-core-component__main__pl-2","p-3":"dapp-core-component__main__p-3",p3:"dapp-core-component__main__p-3","pt-3":"dapp-core-component__main__pt-3",pt3:"dapp-core-component__main__pt-3","py-3":"dapp-core-component__main__py-3",py3:"dapp-core-component__main__py-3","pr-3":"dapp-core-component__main__pr-3",pr3:"dapp-core-component__main__pr-3","px-3":"dapp-core-component__main__px-3",px3:"dapp-core-component__main__px-3","pb-3":"dapp-core-component__main__pb-3",pb3:"dapp-core-component__main__pb-3","pl-3":"dapp-core-component__main__pl-3",pl3:"dapp-core-component__main__pl-3","p-4":"dapp-core-component__main__p-4",p4:"dapp-core-component__main__p-4","pt-4":"dapp-core-component__main__pt-4",pt4:"dapp-core-component__main__pt-4","py-4":"dapp-core-component__main__py-4",py4:"dapp-core-component__main__py-4","pr-4":"dapp-core-component__main__pr-4",pr4:"dapp-core-component__main__pr-4","px-4":"dapp-core-component__main__px-4",px4:"dapp-core-component__main__px-4","pb-4":"dapp-core-component__main__pb-4",pb4:"dapp-core-component__main__pb-4","pl-4":"dapp-core-component__main__pl-4",pl4:"dapp-core-component__main__pl-4","p-5":"dapp-core-component__main__p-5",p5:"dapp-core-component__main__p-5","pt-5":"dapp-core-component__main__pt-5",pt5:"dapp-core-component__main__pt-5","py-5":"dapp-core-component__main__py-5",py5:"dapp-core-component__main__py-5","pr-5":"dapp-core-component__main__pr-5",pr5:"dapp-core-component__main__pr-5","px-5":"dapp-core-component__main__px-5",px5:"dapp-core-component__main__px-5","pb-5":"dapp-core-component__main__pb-5",pb5:"dapp-core-component__main__pb-5","pl-5":"dapp-core-component__main__pl-5",pl5:"dapp-core-component__main__pl-5","m-n1":"dapp-core-component__main__m-n1",mN1:"dapp-core-component__main__m-n1","mt-n1":"dapp-core-component__main__mt-n1",mtN1:"dapp-core-component__main__mt-n1","my-n1":"dapp-core-component__main__my-n1",myN1:"dapp-core-component__main__my-n1","mr-n1":"dapp-core-component__main__mr-n1",mrN1:"dapp-core-component__main__mr-n1","mx-n1":"dapp-core-component__main__mx-n1",mxN1:"dapp-core-component__main__mx-n1","mb-n1":"dapp-core-component__main__mb-n1",mbN1:"dapp-core-component__main__mb-n1","ml-n1":"dapp-core-component__main__ml-n1",mlN1:"dapp-core-component__main__ml-n1","m-n2":"dapp-core-component__main__m-n2",mN2:"dapp-core-component__main__m-n2","mt-n2":"dapp-core-component__main__mt-n2",mtN2:"dapp-core-component__main__mt-n2","my-n2":"dapp-core-component__main__my-n2",myN2:"dapp-core-component__main__my-n2","mr-n2":"dapp-core-component__main__mr-n2",mrN2:"dapp-core-component__main__mr-n2","mx-n2":"dapp-core-component__main__mx-n2",mxN2:"dapp-core-component__main__mx-n2","mb-n2":"dapp-core-component__main__mb-n2",mbN2:"dapp-core-component__main__mb-n2","ml-n2":"dapp-core-component__main__ml-n2",mlN2:"dapp-core-component__main__ml-n2","m-n3":"dapp-core-component__main__m-n3",mN3:"dapp-core-component__main__m-n3","mt-n3":"dapp-core-component__main__mt-n3",mtN3:"dapp-core-component__main__mt-n3","my-n3":"dapp-core-component__main__my-n3",myN3:"dapp-core-component__main__my-n3","mr-n3":"dapp-core-component__main__mr-n3",mrN3:"dapp-core-component__main__mr-n3","mx-n3":"dapp-core-component__main__mx-n3",mxN3:"dapp-core-component__main__mx-n3","mb-n3":"dapp-core-component__main__mb-n3",mbN3:"dapp-core-component__main__mb-n3","ml-n3":"dapp-core-component__main__ml-n3",mlN3:"dapp-core-component__main__ml-n3","m-n4":"dapp-core-component__main__m-n4",mN4:"dapp-core-component__main__m-n4","mt-n4":"dapp-core-component__main__mt-n4",mtN4:"dapp-core-component__main__mt-n4","my-n4":"dapp-core-component__main__my-n4",myN4:"dapp-core-component__main__my-n4","mr-n4":"dapp-core-component__main__mr-n4",mrN4:"dapp-core-component__main__mr-n4","mx-n4":"dapp-core-component__main__mx-n4",mxN4:"dapp-core-component__main__mx-n4","mb-n4":"dapp-core-component__main__mb-n4",mbN4:"dapp-core-component__main__mb-n4","ml-n4":"dapp-core-component__main__ml-n4",mlN4:"dapp-core-component__main__ml-n4","m-n5":"dapp-core-component__main__m-n5",mN5:"dapp-core-component__main__m-n5","mt-n5":"dapp-core-component__main__mt-n5",mtN5:"dapp-core-component__main__mt-n5","my-n5":"dapp-core-component__main__my-n5",myN5:"dapp-core-component__main__my-n5","mr-n5":"dapp-core-component__main__mr-n5",mrN5:"dapp-core-component__main__mr-n5","mx-n5":"dapp-core-component__main__mx-n5",mxN5:"dapp-core-component__main__mx-n5","mb-n5":"dapp-core-component__main__mb-n5",mbN5:"dapp-core-component__main__mb-n5","ml-n5":"dapp-core-component__main__ml-n5",mlN5:"dapp-core-component__main__ml-n5","m-auto":"dapp-core-component__main__m-auto",mAuto:"dapp-core-component__main__m-auto","mt-auto":"dapp-core-component__main__mt-auto",mtAuto:"dapp-core-component__main__mt-auto","my-auto":"dapp-core-component__main__my-auto",myAuto:"dapp-core-component__main__my-auto","mr-auto":"dapp-core-component__main__mr-auto",mrAuto:"dapp-core-component__main__mr-auto","mb-auto":"dapp-core-component__main__mb-auto",mbAuto:"dapp-core-component__main__mb-auto","ml-auto":"dapp-core-component__main__ml-auto",mlAuto:"dapp-core-component__main__ml-auto","mr-lg-1":"dapp-core-component__main__mr-lg-1",mrLg1:"dapp-core-component__main__mr-lg-1","mr-lg-4":"dapp-core-component__main__mr-lg-4",mrLg4:"dapp-core-component__main__mr-lg-4","mx-lg-4":"dapp-core-component__main__mx-lg-4",mxLg4:"dapp-core-component__main__mx-lg-4","mb-xl-2":"dapp-core-component__main__mb-xl-2",mbXl2:"dapp-core-component__main__mb-xl-2","pr-sm-2":"dapp-core-component__main__pr-sm-2",prSm2:"dapp-core-component__main__pr-sm-2","px-sm-2":"dapp-core-component__main__px-sm-2",pxSm2:"dapp-core-component__main__px-sm-2","pr-xl-0":"dapp-core-component__main__pr-xl-0",prXl0:"dapp-core-component__main__pr-xl-0","px-xl-0":"dapp-core-component__main__px-xl-0",pxXl0:"dapp-core-component__main__px-xl-0",col:"dapp-core-component__main__col",row:"dapp-core-component__main__row","col-xl":"dapp-core-component__main__col-xl",colXl:"dapp-core-component__main__col-xl","col-xl-auto":"dapp-core-component__main__col-xl-auto",colXlAuto:"dapp-core-component__main__col-xl-auto","col-xl-12":"dapp-core-component__main__col-xl-12",colXl12:"dapp-core-component__main__col-xl-12","col-xl-11":"dapp-core-component__main__col-xl-11",colXl11:"dapp-core-component__main__col-xl-11","col-xl-10":"dapp-core-component__main__col-xl-10",colXl10:"dapp-core-component__main__col-xl-10","col-xl-9":"dapp-core-component__main__col-xl-9",colXl9:"dapp-core-component__main__col-xl-9","col-xl-8":"dapp-core-component__main__col-xl-8",colXl8:"dapp-core-component__main__col-xl-8","col-xl-7":"dapp-core-component__main__col-xl-7",colXl7:"dapp-core-component__main__col-xl-7","col-xl-6":"dapp-core-component__main__col-xl-6",colXl6:"dapp-core-component__main__col-xl-6","col-xl-5":"dapp-core-component__main__col-xl-5",colXl5:"dapp-core-component__main__col-xl-5","col-xl-4":"dapp-core-component__main__col-xl-4",colXl4:"dapp-core-component__main__col-xl-4","col-xl-3":"dapp-core-component__main__col-xl-3",colXl3:"dapp-core-component__main__col-xl-3","col-xl-2":"dapp-core-component__main__col-xl-2",colXl2:"dapp-core-component__main__col-xl-2","col-xl-1":"dapp-core-component__main__col-xl-1",colXl1:"dapp-core-component__main__col-xl-1","col-lg":"dapp-core-component__main__col-lg",colLg:"dapp-core-component__main__col-lg","col-lg-auto":"dapp-core-component__main__col-lg-auto",colLgAuto:"dapp-core-component__main__col-lg-auto","col-lg-12":"dapp-core-component__main__col-lg-12",colLg12:"dapp-core-component__main__col-lg-12","col-lg-11":"dapp-core-component__main__col-lg-11",colLg11:"dapp-core-component__main__col-lg-11","col-lg-10":"dapp-core-component__main__col-lg-10",colLg10:"dapp-core-component__main__col-lg-10","col-lg-9":"dapp-core-component__main__col-lg-9",colLg9:"dapp-core-component__main__col-lg-9","col-lg-8":"dapp-core-component__main__col-lg-8",colLg8:"dapp-core-component__main__col-lg-8","col-lg-7":"dapp-core-component__main__col-lg-7",colLg7:"dapp-core-component__main__col-lg-7","col-lg-6":"dapp-core-component__main__col-lg-6",colLg6:"dapp-core-component__main__col-lg-6","col-lg-5":"dapp-core-component__main__col-lg-5",colLg5:"dapp-core-component__main__col-lg-5","col-lg-4":"dapp-core-component__main__col-lg-4",colLg4:"dapp-core-component__main__col-lg-4","col-lg-3":"dapp-core-component__main__col-lg-3",colLg3:"dapp-core-component__main__col-lg-3","col-lg-2":"dapp-core-component__main__col-lg-2",colLg2:"dapp-core-component__main__col-lg-2","col-lg-1":"dapp-core-component__main__col-lg-1",colLg1:"dapp-core-component__main__col-lg-1","col-md":"dapp-core-component__main__col-md",colMd:"dapp-core-component__main__col-md","col-md-auto":"dapp-core-component__main__col-md-auto",colMdAuto:"dapp-core-component__main__col-md-auto","col-md-12":"dapp-core-component__main__col-md-12",colMd12:"dapp-core-component__main__col-md-12","col-md-11":"dapp-core-component__main__col-md-11",colMd11:"dapp-core-component__main__col-md-11","col-md-10":"dapp-core-component__main__col-md-10",colMd10:"dapp-core-component__main__col-md-10","col-md-9":"dapp-core-component__main__col-md-9",colMd9:"dapp-core-component__main__col-md-9","col-md-8":"dapp-core-component__main__col-md-8",colMd8:"dapp-core-component__main__col-md-8","col-md-7":"dapp-core-component__main__col-md-7",colMd7:"dapp-core-component__main__col-md-7","col-md-6":"dapp-core-component__main__col-md-6",colMd6:"dapp-core-component__main__col-md-6","col-md-5":"dapp-core-component__main__col-md-5",colMd5:"dapp-core-component__main__col-md-5","col-md-4":"dapp-core-component__main__col-md-4",colMd4:"dapp-core-component__main__col-md-4","col-md-3":"dapp-core-component__main__col-md-3",colMd3:"dapp-core-component__main__col-md-3","col-md-2":"dapp-core-component__main__col-md-2",colMd2:"dapp-core-component__main__col-md-2","col-md-1":"dapp-core-component__main__col-md-1",colMd1:"dapp-core-component__main__col-md-1","col-sm":"dapp-core-component__main__col-sm",colSm:"dapp-core-component__main__col-sm","col-sm-auto":"dapp-core-component__main__col-sm-auto",colSmAuto:"dapp-core-component__main__col-sm-auto","col-sm-12":"dapp-core-component__main__col-sm-12",colSm12:"dapp-core-component__main__col-sm-12","col-sm-11":"dapp-core-component__main__col-sm-11",colSm11:"dapp-core-component__main__col-sm-11","col-sm-10":"dapp-core-component__main__col-sm-10",colSm10:"dapp-core-component__main__col-sm-10","col-sm-9":"dapp-core-component__main__col-sm-9",colSm9:"dapp-core-component__main__col-sm-9","col-sm-8":"dapp-core-component__main__col-sm-8",colSm8:"dapp-core-component__main__col-sm-8","col-sm-7":"dapp-core-component__main__col-sm-7",colSm7:"dapp-core-component__main__col-sm-7","col-sm-6":"dapp-core-component__main__col-sm-6",colSm6:"dapp-core-component__main__col-sm-6","col-sm-5":"dapp-core-component__main__col-sm-5",colSm5:"dapp-core-component__main__col-sm-5","col-sm-4":"dapp-core-component__main__col-sm-4",colSm4:"dapp-core-component__main__col-sm-4","col-sm-3":"dapp-core-component__main__col-sm-3",colSm3:"dapp-core-component__main__col-sm-3","col-sm-2":"dapp-core-component__main__col-sm-2",colSm2:"dapp-core-component__main__col-sm-2","col-sm-1":"dapp-core-component__main__col-sm-1",colSm1:"dapp-core-component__main__col-sm-1","col-auto":"dapp-core-component__main__col-auto",colAuto:"dapp-core-component__main__col-auto","col-12":"dapp-core-component__main__col-12",col12:"dapp-core-component__main__col-12","col-11":"dapp-core-component__main__col-11",col11:"dapp-core-component__main__col-11","col-10":"dapp-core-component__main__col-10",col10:"dapp-core-component__main__col-10","col-9":"dapp-core-component__main__col-9",col9:"dapp-core-component__main__col-9","col-8":"dapp-core-component__main__col-8",col8:"dapp-core-component__main__col-8","col-7":"dapp-core-component__main__col-7",col7:"dapp-core-component__main__col-7","col-6":"dapp-core-component__main__col-6",col6:"dapp-core-component__main__col-6","col-5":"dapp-core-component__main__col-5",col5:"dapp-core-component__main__col-5","col-4":"dapp-core-component__main__col-4",col4:"dapp-core-component__main__col-4","col-3":"dapp-core-component__main__col-3",col3:"dapp-core-component__main__col-3","col-2":"dapp-core-component__main__col-2",col2:"dapp-core-component__main__col-2","col-1":"dapp-core-component__main__col-1",col1:"dapp-core-component__main__col-1","flex-row":"dapp-core-component__main__flex-row",flexRow:"dapp-core-component__main__flex-row","flex-column":"dapp-core-component__main__flex-column",flexColumn:"dapp-core-component__main__flex-column","flex-row-reverse":"dapp-core-component__main__flex-row-reverse",flexRowReverse:"dapp-core-component__main__flex-row-reverse","flex-column-reverse":"dapp-core-component__main__flex-column-reverse",flexColumnReverse:"dapp-core-component__main__flex-column-reverse","flex-wrap":"dapp-core-component__main__flex-wrap",flexWrap:"dapp-core-component__main__flex-wrap","flex-nowrap":"dapp-core-component__main__flex-nowrap",flexNowrap:"dapp-core-component__main__flex-nowrap","flex-wrap-reverse":"dapp-core-component__main__flex-wrap-reverse",flexWrapReverse:"dapp-core-component__main__flex-wrap-reverse","flex-fill":"dapp-core-component__main__flex-fill",flexFill:"dapp-core-component__main__flex-fill","flex-grow-0":"dapp-core-component__main__flex-grow-0",flexGrow0:"dapp-core-component__main__flex-grow-0","flex-grow-1":"dapp-core-component__main__flex-grow-1",flexGrow1:"dapp-core-component__main__flex-grow-1","flex-shrink-0":"dapp-core-component__main__flex-shrink-0",flexShrink0:"dapp-core-component__main__flex-shrink-0","flex-shrink-1":"dapp-core-component__main__flex-shrink-1",flexShrink1:"dapp-core-component__main__flex-shrink-1","justify-content-start":"dapp-core-component__main__justify-content-start",justifyContentStart:"dapp-core-component__main__justify-content-start","justify-content-end":"dapp-core-component__main__justify-content-end",justifyContentEnd:"dapp-core-component__main__justify-content-end","justify-content-center":"dapp-core-component__main__justify-content-center",justifyContentCenter:"dapp-core-component__main__justify-content-center","justify-content-between":"dapp-core-component__main__justify-content-between",justifyContentBetween:"dapp-core-component__main__justify-content-between","justify-content-around":"dapp-core-component__main__justify-content-around",justifyContentAround:"dapp-core-component__main__justify-content-around","align-items-start":"dapp-core-component__main__align-items-start",alignItemsStart:"dapp-core-component__main__align-items-start","align-items-end":"dapp-core-component__main__align-items-end",alignItemsEnd:"dapp-core-component__main__align-items-end","align-items-center":"dapp-core-component__main__align-items-center",alignItemsCenter:"dapp-core-component__main__align-items-center","align-items-baseline":"dapp-core-component__main__align-items-baseline",alignItemsBaseline:"dapp-core-component__main__align-items-baseline","align-items-stretch":"dapp-core-component__main__align-items-stretch",alignItemsStretch:"dapp-core-component__main__align-items-stretch","align-content-start":"dapp-core-component__main__align-content-start",alignContentStart:"dapp-core-component__main__align-content-start","align-content-end":"dapp-core-component__main__align-content-end",alignContentEnd:"dapp-core-component__main__align-content-end","align-content-center":"dapp-core-component__main__align-content-center",alignContentCenter:"dapp-core-component__main__align-content-center","align-content-between":"dapp-core-component__main__align-content-between",alignContentBetween:"dapp-core-component__main__align-content-between","align-content-around":"dapp-core-component__main__align-content-around",alignContentAround:"dapp-core-component__main__align-content-around","align-content-stretch":"dapp-core-component__main__align-content-stretch",alignContentStretch:"dapp-core-component__main__align-content-stretch","align-self-auto":"dapp-core-component__main__align-self-auto",alignSelfAuto:"dapp-core-component__main__align-self-auto","align-self-start":"dapp-core-component__main__align-self-start",alignSelfStart:"dapp-core-component__main__align-self-start","align-self-end":"dapp-core-component__main__align-self-end",alignSelfEnd:"dapp-core-component__main__align-self-end","align-self-center":"dapp-core-component__main__align-self-center",alignSelfCenter:"dapp-core-component__main__align-self-center","align-self-baseline":"dapp-core-component__main__align-self-baseline",alignSelfBaseline:"dapp-core-component__main__align-self-baseline","align-self-stretch":"dapp-core-component__main__align-self-stretch",alignSelfStretch:"dapp-core-component__main__align-self-stretch","flex-sm-row":"dapp-core-component__main__flex-sm-row",flexSmRow:"dapp-core-component__main__flex-sm-row","flex-lg-row":"dapp-core-component__main__flex-lg-row",flexLgRow:"dapp-core-component__main__flex-lg-row","flex-lg-wrap":"dapp-core-component__main__flex-lg-wrap",flexLgWrap:"dapp-core-component__main__flex-lg-wrap","form-check":"dapp-core-component__main__form-check",formCheck:"dapp-core-component__main__form-check","form-check-label":"dapp-core-component__main__form-check-label",formCheckLabel:"dapp-core-component__main__form-check-label","form-check-input":"dapp-core-component__main__form-check-input",formCheckInput:"dapp-core-component__main__form-check-input","form-group":"dapp-core-component__main__form-group",formGroup:"dapp-core-component__main__form-group","form-control":"dapp-core-component__main__form-control",formControl:"dapp-core-component__main__form-control","form-label":"dapp-core-component__main__form-label",formLabel:"dapp-core-component__main__form-label","form-text":"dapp-core-component__main__form-text",formText:"dapp-core-component__main__form-text",border:"dapp-core-component__main__border","border-top":"dapp-core-component__main__border-top",borderTop:"dapp-core-component__main__border-top","border-right":"dapp-core-component__main__border-right",borderRight:"dapp-core-component__main__border-right","border-bottom":"dapp-core-component__main__border-bottom",borderBottom:"dapp-core-component__main__border-bottom","border-left":"dapp-core-component__main__border-left",borderLeft:"dapp-core-component__main__border-left","border-0":"dapp-core-component__main__border-0",border0:"dapp-core-component__main__border-0","border-top-0":"dapp-core-component__main__border-top-0",borderTop0:"dapp-core-component__main__border-top-0","border-right-0":"dapp-core-component__main__border-right-0",borderRight0:"dapp-core-component__main__border-right-0","border-bottom-0":"dapp-core-component__main__border-bottom-0",borderBottom0:"dapp-core-component__main__border-bottom-0","border-left-0":"dapp-core-component__main__border-left-0",borderLeft0:"dapp-core-component__main__border-left-0","rounded-sm":"dapp-core-component__main__rounded-sm",roundedSm:"dapp-core-component__main__rounded-sm",rounded:"dapp-core-component__main__rounded","rounded-top":"dapp-core-component__main__rounded-top",roundedTop:"dapp-core-component__main__rounded-top","rounded-right":"dapp-core-component__main__rounded-right",roundedRight:"dapp-core-component__main__rounded-right","rounded-bottom":"dapp-core-component__main__rounded-bottom",roundedBottom:"dapp-core-component__main__rounded-bottom","rounded-left":"dapp-core-component__main__rounded-left",roundedLeft:"dapp-core-component__main__rounded-left","rounded-lg":"dapp-core-component__main__rounded-lg",roundedLg:"dapp-core-component__main__rounded-lg","rounded-circle":"dapp-core-component__main__rounded-circle",roundedCircle:"dapp-core-component__main__rounded-circle","rounded-pill":"dapp-core-component__main__rounded-pill",roundedPill:"dapp-core-component__main__rounded-pill","rounded-0":"dapp-core-component__main__rounded-0",rounded0:"dapp-core-component__main__rounded-0",h1:"dapp-core-component__main__h1",h2:"dapp-core-component__main__h2",h3:"dapp-core-component__main__h3",h4:"dapp-core-component__main__h4",h5:"dapp-core-component__main__h5",lead:"dapp-core-component__main__lead","bg-primary":"dapp-core-component__main__bg-primary",bgPrimary:"dapp-core-component__main__bg-primary","bg-warning":"dapp-core-component__main__bg-warning",bgWarning:"dapp-core-component__main__bg-warning",warning:"dapp-core-component__main__warning","bg-danger":"dapp-core-component__main__bg-danger",bgDanger:"dapp-core-component__main__bg-danger",danger:"dapp-core-component__main__danger","bg-success":"dapp-core-component__main__bg-success",bgSuccess:"dapp-core-component__main__bg-success",success:"dapp-core-component__main__success","position-relative":"dapp-core-component__main__position-relative",positionRelative:"dapp-core-component__main__position-relative","position-absolute":"dapp-core-component__main__position-absolute",positionAbsolute:"dapp-core-component__main__position-absolute","w-25":"dapp-core-component__main__w-25",w25:"dapp-core-component__main__w-25","w-50":"dapp-core-component__main__w-50",w50:"dapp-core-component__main__w-50","w-75":"dapp-core-component__main__w-75",w75:"dapp-core-component__main__w-75","w-100":"dapp-core-component__main__w-100",w100:"dapp-core-component__main__w-100","w-auto":"dapp-core-component__main__w-auto",wAuto:"dapp-core-component__main__w-auto","h-25":"dapp-core-component__main__h-25",h25:"dapp-core-component__main__h-25","h-50":"dapp-core-component__main__h-50",h50:"dapp-core-component__main__h-50","h-75":"dapp-core-component__main__h-75",h75:"dapp-core-component__main__h-75","h-100":"dapp-core-component__main__h-100",h100:"dapp-core-component__main__h-100","h-auto":"dapp-core-component__main__h-auto",hAuto:"dapp-core-component__main__h-auto","mw-100":"dapp-core-component__main__mw-100",mw100:"dapp-core-component__main__mw-100","mh-100":"dapp-core-component__main__mh-100",mh100:"dapp-core-component__main__mh-100","min-vw-100":"dapp-core-component__main__min-vw-100",minVw100:"dapp-core-component__main__min-vw-100","min-vh-100":"dapp-core-component__main__min-vh-100",minVh100:"dapp-core-component__main__min-vh-100","vw-100":"dapp-core-component__main__vw-100",vw100:"dapp-core-component__main__vw-100","vh-100":"dapp-core-component__main__vh-100",vh100:"dapp-core-component__main__vh-100","locked-icon":"dapp-core-component__main__locked-icon",lockedIcon:"dapp-core-component__main__locked-icon","shadow-sm":"dapp-core-component__main__shadow-sm",shadowSm:"dapp-core-component__main__shadow-sm",shadow:"dapp-core-component__main__shadow","shadow-lg":"dapp-core-component__main__shadow-lg",shadowLg:"dapp-core-component__main__shadow-lg","shadow-none":"dapp-core-component__main__shadow-none",shadowNone:"dapp-core-component__main__shadow-none","d-none":"dapp-core-component__main__d-none",dNone:"dapp-core-component__main__d-none","d-inline":"dapp-core-component__main__d-inline",dInline:"dapp-core-component__main__d-inline","d-inline-block":"dapp-core-component__main__d-inline-block",dInlineBlock:"dapp-core-component__main__d-inline-block","d-block":"dapp-core-component__main__d-block",dBlock:"dapp-core-component__main__d-block","d-table":"dapp-core-component__main__d-table",dTable:"dapp-core-component__main__d-table","d-table-row":"dapp-core-component__main__d-table-row",dTableRow:"dapp-core-component__main__d-table-row","d-table-cell":"dapp-core-component__main__d-table-cell",dTableCell:"dapp-core-component__main__d-table-cell","d-flex":"dapp-core-component__main__d-flex",dFlex:"dapp-core-component__main__d-flex","d-inline-flex":"dapp-core-component__main__d-inline-flex",dInlineFlex:"dapp-core-component__main__d-inline-flex","d-sm-flex":"dapp-core-component__main__d-sm-flex",dSmFlex:"dapp-core-component__main__d-sm-flex","table-sm":"dapp-core-component__main__table-sm",tableSm:"dapp-core-component__main__table-sm","table-bordered":"dapp-core-component__main__table-bordered",tableBordered:"dapp-core-component__main__table-bordered","table-borderless":"dapp-core-component__main__table-borderless",tableBorderless:"dapp-core-component__main__table-borderless","table-striped":"dapp-core-component__main__table-striped",tableStriped:"dapp-core-component__main__table-striped","thead-dark":"dapp-core-component__main__thead-dark",theadDark:"dapp-core-component__main__thead-dark","thead-light":"dapp-core-component__main__thead-light",theadLight:"dapp-core-component__main__thead-light","table-dark":"dapp-core-component__main__table-dark",tableDark:"dapp-core-component__main__table-dark","table-hover":"dapp-core-component__main__table-hover",tableHover:"dapp-core-component__main__table-hover","table-responsive":"dapp-core-component__main__table-responsive",tableResponsive:"dapp-core-component__main__table-responsive","transaction-hash":"dapp-core-component__main__transaction-hash",transactionHash:"dapp-core-component__main__transaction-hash","font-weight-light":"dapp-core-component__main__font-weight-light",fontWeightLight:"dapp-core-component__main__font-weight-light","font-weight-lighter":"dapp-core-component__main__font-weight-lighter",fontWeightLighter:"dapp-core-component__main__font-weight-lighter","font-weight-normal":"dapp-core-component__main__font-weight-normal",fontWeightNormal:"dapp-core-component__main__font-weight-normal","font-weight-medium":"dapp-core-component__main__font-weight-medium",fontWeightMedium:"dapp-core-component__main__font-weight-medium","font-weight-bold":"dapp-core-component__main__font-weight-bold",fontWeightBold:"dapp-core-component__main__font-weight-bold","font-weight-bolder":"dapp-core-component__main__font-weight-bolder",fontWeightBolder:"dapp-core-component__main__font-weight-bolder","font-italic":"dapp-core-component__main__font-italic",fontItalic:"dapp-core-component__main__font-italic","icon-state":"dapp-core-component__main__icon-state",iconState:"dapp-core-component__main__icon-state",half:"dapp-core-component__main__half","side-icon":"dapp-core-component__main__side-icon",sideIcon:"dapp-core-component__main__side-icon","toast-messages":"dapp-core-component__main__toast-messages",toastMessages:"dapp-core-component__main__toast-messages",toast:"dapp-core-component__main__toast",clickable:"dapp-core-component__main__clickable","toast-visible":"dapp-core-component__main__toast-visible",toastVisible:"dapp-core-component__main__toast-visible",progress:"dapp-core-component__main__progress","progress-bar":"dapp-core-component__main__progress-bar",progressBar:"dapp-core-component__main__progress-bar","content-height":"dapp-core-component__main__content-height",contentHeight:"dapp-core-component__main__content-height","tx-description":"dapp-core-component__main__tx-description",txDescription:"dapp-core-component__main__tx-description",close:"dapp-core-component__main__close","data-field":"dapp-core-component__main__data-field",dataField:"dapp-core-component__main__data-field",textarea:"dapp-core-component__main__textarea",highlighted:"dapp-core-component__main__highlighted","sc-call":"dapp-core-component__main__sc-call",scCall:"dapp-core-component__main__sc-call","small-font":"dapp-core-component__main__small-font",smallFont:"dapp-core-component__main__small-font","progress-steps":"dapp-core-component__main__progress-steps",progressSteps:"dapp-core-component__main__progress-steps",steps:"dapp-core-component__main__steps",dot:"dapp-core-component__main__dot","side-link":"dapp-core-component__main__side-link",sideLink:"dapp-core-component__main__side-link"};var tr=({visible:e,headerText:o,customHeader:n,className:r,closeButtonClassName:c,headerTextClassName:p,onHide:d})=>e?n?vo.default.createElement("div",{className:(0,Yo.default)(de.dappModalHeader,r)},n):vo.default.createElement("div",{className:(0,Yo.default)(de.dappModalHeader,r)},vo.default.createElement("div",{className:(0,Yo.default)(de.dappModalHeaderText,p)},o),vo.default.createElement("button",{onClick:d,className:(0,Yo.default)(de.dappModalCloseButton,F.btn,F.btnLight,c)},vo.default.createElement(gs.FontAwesomeIcon,{size:"lg",icon:_s.faTimes}))):null;var zd={showHeader:!0,showFooter:!1,headerText:"",footerText:""},ar=({id:e="dapp-modal",visible:o,onHide:n,parentElement:r,config:c=zd,children:p,className:d="dapp-modal-dialog-wrapper"})=>{if(!o)return null;let{showHeader:_,showFooter:m,headerText:g,footerText:f,modalDialogClassName:u="dapp-modal-dialog",modalContentClassName:T="dapp-modal-dialog-content",modalHeaderClassName:C="dapp-modal-dialog-header",modalHeaderTextClassName:w="dapp-modal-dialog-header-text",modalCloseButtonClassName:I="dapp-modal-dialog-close-button",modalBodyClassName:G="dapp-modal-dialog-content-body",modalFooterClassName:ee="dapp-modal-dialog-footer",customModalHeader:P,customModalFooter:Z}=c;return us.default.createPortal(Ao.default.createElement("div",{id:e,role:"dialog","aria-modal":"true",className:(0,rr.default)(u,de.dappModal,d)},Ao.default.createElement("div",{className:(0,rr.default)(de.dappModalContent,T)},Ao.default.createElement(tr,{visible:_,headerText:g,customHeader:P,className:C,headerTextClassName:w,closeButtonClassName:I,onHide:n}),Ao.default.createElement(er,{className:G},p),Ao.default.createElement(nr,{visible:m,customFooter:Z,footerText:f,className:ee}))),r!=null?r:document==null?void 0:document.body)};t();t();var Io=require("react");t();t();t();var fs=require("react");t();N();t();t();t();var qd=require("react"),Kd=require("@multiversx/sdk-web-wallet-provider"),Xd=h(require("qs"));L();N();O();t();var xs=require("react"),nm=require("@multiversx/sdk-extension-provider");L();N();O();t();t();t();t();var ys=require("react"),Jd=require("@multiversx/sdk-extension-provider");L();N();t();t();var rm=h(require("axios")),am=h(require("swr"));t();t();var im=h(require("axios"));t();var bs=require("react");t();var Ts=require("react");At();N();Q();Fo();t();ze();N();t();t();t();t();t();fo();t();t();t();var sm=h(require("axios"));t();var cm=h(require("axios"));t();var dm=h(require("axios"));t();t();var mm=h(require("axios"));t();var lm=h(require("axios"));t();N();O();t();fo();t();N();O();t();N();Q();t();var xm=require("react");t();t();t();N();t();t();var fm=h(require("bignumber.js"));L();N();Q();t();var um=h(require("bignumber.js"));L();t();var hm=require("@multiversx/sdk-core"),ym=h(require("bignumber.js"));L();O();fo();t();t();t();t();var ws=require("react");t();t();var Tm=require("react"),bm=require("@multiversx/sdk-extension-provider");ze();X();O();Ke();t();var Sm=require("react"),wm=require("@multiversx/sdk-opera-provider");ze();X();O();Ke();t();var vm=require("react");ze();N();t();t();var sr=require("react"),Im=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectProvider");X();N();O();Ke();t();var cr=require("react"),Cm=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectV2Provider");X();N();O();Ke();t();t();var vs=require("react");t();var Em=require("react");t();var pr=require("react"),Nm=require("socket.io-client");N();t();t();t();t();var As=e=>e.dappModal,ks=x(As,e=>e.visible),ko=x(As,e=>e.modal),WN=x(ko,e=>e.showHeader),GN=x(ko,e=>e.showFooter),HN=x(ko,e=>e.headerText),$N=x(ko,e=>e.footerText);var Is=()=>v(ks);Ut();var Cs=e=>{var _;let o=z(),n=Is(),r=v(ko),c=()=>{o(Bt(!0))},p=()=>{o(Bt(!1))},d=(0,Io.useCallback)(m=>{o(Qa(m))},[]);return(0,Io.useEffect)(()=>{e!=null&&e.modalConfig&&d(e==null?void 0:e.modalConfig)},[e==null?void 0:e.modalConfig]),(0,Io.useEffect)(()=>{var m;return(m=e==null?void 0:e.config)!=null&&m.openOnMount&&c(),()=>{p()}},[]),(0,Io.useEffect)(()=>{var m;typeof((m=e==null?void 0:e.config)==null?void 0:m.visible)=="boolean"&&(e.config.visible?c():p())},[(_=e==null?void 0:e.config)==null?void 0:_.visible]),{handleShowModal:c,handleHideModal:p,setModalConfig:d,visible:n,config:r}};t();var dr=e=>{let{handleHideModal:o,visible:n,config:r}=Cs({modalConfig:e.modalConfig,config:A(y({},e.modalInteractionConfig),{visible:e.visible})});return Ls.default.createElement(ar,{onHide:()=>{var p;o(),(p=e.onClose)==null||p.call(e)},visible:n,config:r,className:e.className},e.children)};t();var D=h(require("react")),zn=require("@fortawesome/free-solid-svg-icons"),mr=require("@fortawesome/react-fontawesome"),Fe=h(require("classnames"));t();var Te=h(require("react")),Rs=h(require("classnames"));t();var Oe=h(require("react")),Ns=h(require("classnames"));L();t();var Dm=`.dapp-core-component__formatAmountStyles__int-amount {
|
|
2756
2756
|
color: inherit;
|
|
2757
2757
|
}
|
|
2758
2758
|
|
|
2759
|
-
.dapp-core-
|
|
2759
|
+
.dapp-core-component__formatAmountStyles__decimals {
|
|
2760
2760
|
color: inherit;
|
|
2761
|
-
}`;document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(Dm));var Ns={wrapper:"dapp-core-component__pageStateStyles__wrapper",state:"dapp-core-component__pageStateStyles__state"};var Ds=({icon:e,title:o,action:n,iconClass:r,dataTestId:c,description:p,iconBgClass:d,iconSize:_="5x",className:m="dapp-page-state"})=>{let g={wrapper:(0,Yo.default)(Ns.state,R.mAuto,R.p4,R.textCenter,m),iconContainer:(0,Yo.default)(R.iconState,R.mxAuto,{[d!=null?d:""]:Boolean(d)}),iconClass:(0,Yo.default)(r!=null&&r),title:(0,Yo.default)(R.h4,R.my4),description:R.mb3};return Io.default.createElement("div",{className:g.wrapper,"data-testid":c},e&&Io.default.createElement("span",{className:g.iconContainer},Io.default.createElement(Es.FontAwesomeIcon,{icon:e,className:g.iconClass,size:_})),o&&Io.default.createElement("p",{className:g.title},o),p&&Io.default.createElement("div",{className:g.description},p),n)};t();var Pm=`.dapp-core-component__ledgerLoadingStyles__ledger-loading-wrapper {
|
|
2762
|
-
text-align: center;
|
|
2763
|
-
padding: 40px 16px 0;
|
|
2764
2761
|
}
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
margin-bottom: 12px;
|
|
2770
|
-
}
|
|
2771
|
-
.dapp-core-component__ledgerLoadingStyles__ledger-loading-wrapper .dapp-core-component__ledgerLoadingStyles__ledger-loading-description {
|
|
2772
|
-
line-height: 1;
|
|
2773
|
-
font-size: 14px;
|
|
2774
|
-
margin-bottom: 0;
|
|
2775
|
-
}
|
|
2776
|
-
.dapp-core-component__ledgerLoadingStyles__ledger-loading-wrapper .dapp-core-component__ledgerLoadingStyles__ledger-loading-spinner {
|
|
2777
|
-
margin: 120px 0;
|
|
2778
|
-
}`;document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(Pm));var Zo={"ledger-loading-wrapper":"dapp-core-component__ledgerLoadingStyles__ledger-loading-wrapper",ledgerLoadingWrapper:"dapp-core-component__ledgerLoadingStyles__ledger-loading-wrapper","ledger-loading-heading":"dapp-core-component__ledgerLoadingStyles__ledger-loading-heading",ledgerLoadingHeading:"dapp-core-component__ledgerLoadingStyles__ledger-loading-heading","ledger-loading-description":"dapp-core-component__ledgerLoadingStyles__ledger-loading-description",ledgerLoadingDescription:"dapp-core-component__ledgerLoadingStyles__ledger-loading-description","ledger-loading-spinner":"dapp-core-component__ledgerLoadingStyles__ledger-loading-spinner",ledgerLoadingSpinner:"dapp-core-component__ledgerLoadingStyles__ledger-loading-spinner"};var Hn=({customSpinnerComponent:e,ledgerLoadingClassNames:o,customContentComponent:n})=>{let{ledgerModalSubtitleClassName:r,ledgerModalTitleClassName:c}=o||{};return Co.default.createElement("div",{className:Zo.ledgerLoadingWrapper},Co.default.createElement("div",{className:(0,Gn.default)(Zo.ledgerLoadingHeading,c)},"Waiting for device..."),Co.default.createElement("p",{className:(0,Gn.default)(Zo.ledgerLoadingDescription,r)},"It may take a few seconds..."),n,Co.default.createElement("div",{className:Zo.ledgerLoadingSpinner},e||Co.default.createElement(Ds,{iconSize:"10x",icon:Ps.faCircleNotch,iconClass:(0,Gn.default)("fa-spin",R.textPrimary)})))};t();var ee=h(require("react")),Us=h(require("classnames"));t();t();var W=h(require("react")),Ms=h(require("classnames")),Rs=h(require("lodash.debounce"));t();var Mm=`.dapp-core-component__trim-styles__trim {
|
|
2762
|
+
|
|
2763
|
+
.dapp-core-component__formatAmountStyles__symbol {
|
|
2764
|
+
color: inherit;
|
|
2765
|
+
}`;document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(Dm));var Zo={"int-amount":"dapp-core-component__formatAmountStyles__int-amount",intAmount:"dapp-core-component__formatAmountStyles__int-amount",decimals:"dapp-core-component__formatAmountStyles__decimals",symbol:"dapp-core-component__formatAmountStyles__symbol"};var Pm=e=>Oe.default.createElement("span",{"data-testid":e["data-testid"]?e["data-testid"]:"formatAmountComponent",className:e.className},Oe.default.createElement("span",{className:Zo["int-amount"],"data-testid":"formatAmountInt"},"...")),Mm=(e,o)=>{var u;let{value:n,showLastNonZeroDecimal:r=!1,showLabel:c=!0}=e,p=e.digits!=null?e.digits:so,d=e.decimals!=null?e.decimals:se,_=Ze({input:n,decimals:d,digits:p,showLastNonZeroDecimal:r,addCommas:!0}),m=_.split("."),g=m.length===1,f=_!==xe;if(p>0&&g&&f){let T="";for(let C=1;C<=p;C++)T=T+xe;m.push(T)}return Oe.default.createElement("span",{"data-testid":e["data-testid"]?e["data-testid"]:"formatAmountComponent",className:e.className},Oe.default.createElement("span",{className:Zo["int-amount"],"data-testid":"formatAmountInt"},m[0]),m.length>1&&Oe.default.createElement("span",{className:Zo.decimals,"data-testid":"formatAmountDecimals"},".",m[1]),c&&Oe.default.createElement("span",{className:(0,Ns.default)(Zo.symbol,e.token&&F.textMuted),"data-testid":"formatAmountSymbol"},` ${(u=e.token)!=null?u:o}`))},Rm=e=>{let{value:o}=e;return Go(o)?Mm(e,e.egldLabel||""):Pm(e)},Es=e=>{let o=e.egldLabel||Zr,n=A(y({},e),{egldLabel:o});return Oe.default.createElement(Rm,y({},n))};t();t();var W=h(require("react")),Ds=h(require("classnames")),Ps=h(require("lodash.debounce"));t();var Om=`.dapp-core-component__trim-styles__trim {
|
|
2779
2766
|
display: flex;
|
|
2780
2767
|
max-width: 100%;
|
|
2781
2768
|
overflow: hidden;
|
|
@@ -2895,17 +2882,7 @@ a > .dapp-core-component__trim-styles__trim span.dapp-core-component__trim-style
|
|
|
2895
2882
|
.dapp-core-component__trim-styles__table .dapp-core-component__trim-styles__trim-size-xl .dapp-core-component__trim-styles__trim {
|
|
2896
2883
|
max-width: 13rem;
|
|
2897
2884
|
}
|
|
2898
|
-
}`;document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(
|
|
2899
|
-
color: inherit;
|
|
2900
|
-
}
|
|
2901
|
-
|
|
2902
|
-
.dapp-core-component__formatAmountStyles__decimals {
|
|
2903
|
-
color: inherit;
|
|
2904
|
-
}
|
|
2905
|
-
|
|
2906
|
-
.dapp-core-component__formatAmountStyles__symbol {
|
|
2907
|
-
color: inherit;
|
|
2908
|
-
}`;document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(Rm));var Jo={"int-amount":"dapp-core-component__formatAmountStyles__int-amount",intAmount:"dapp-core-component__formatAmountStyles__int-amount",decimals:"dapp-core-component__formatAmountStyles__decimals",symbol:"dapp-core-component__formatAmountStyles__symbol"};var Om=e=>Re.default.createElement("span",{"data-testid":e["data-testid"]?e["data-testid"]:"formatAmountComponent",className:e.className},Re.default.createElement("span",{className:Jo["int-amount"],"data-testid":"formatAmountInt"},"...")),Fm=(e,o)=>{var f;let{value:n,showLastNonZeroDecimal:r=!1,showLabel:c=!0}=e,p=e.digits!=null?e.digits:io,d=e.decimals!=null?e.decimals:se,_=Xe({input:n,decimals:d,digits:p,showLastNonZeroDecimal:r,addCommas:!0}),m=_.split("."),g=m.length===1,u=_!==xe;if(p>0&&g&&u){let T="";for(let C=1;C<=p;C++)T=T+xe;m.push(T)}return Re.default.createElement("span",{"data-testid":e["data-testid"]?e["data-testid"]:"formatAmountComponent",className:e.className},Re.default.createElement("span",{className:Jo["int-amount"],"data-testid":"formatAmountInt"},m[0]),m.length>1&&Re.default.createElement("span",{className:Jo.decimals,"data-testid":"formatAmountDecimals"},".",m[1]),c&&Re.default.createElement("span",{className:(0,Fs.default)(Jo.symbol,e.token&&R.textMuted),"data-testid":"formatAmountSymbol"},` ${(f=e.token)!=null?f:o}`))},Bm=e=>{let{value:o}=e;return Wo(o)?Fm(e,e.egldLabel||""):Om(e)},Bs=e=>{let o=e.egldLabel||Zr,n=A(y({},e),{egldLabel:o});return Re.default.createElement(Bm,y({},n))};t();var Um=`.dapp-core-component__addressRowStyles__ledger-address-table-body-item {
|
|
2885
|
+
}`;document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(Om));var no={trim:"dapp-core-component__trim-styles__trim",overflow:"dapp-core-component__trim-styles__overflow",ellipsis:"dapp-core-component__trim-styles__ellipsis",left:"dapp-core-component__trim-styles__left",right:"dapp-core-component__trim-styles__right","hidden-text-ref":"dapp-core-component__trim-styles__hidden-text-ref",hiddenTextRef:"dapp-core-component__trim-styles__hidden-text-ref","trim-wrapper":"dapp-core-component__trim-styles__trim-wrapper",trimWrapper:"dapp-core-component__trim-styles__trim-wrapper","text-primary":"dapp-core-component__trim-styles__text-primary",textPrimary:"dapp-core-component__trim-styles__text-primary",table:"dapp-core-component__trim-styles__table","trim-only-sm":"dapp-core-component__trim-styles__trim-only-sm",trimOnlySm:"dapp-core-component__trim-styles__trim-only-sm","trim-fs-sm":"dapp-core-component__trim-styles__trim-fs-sm",trimFsSm:"dapp-core-component__trim-styles__trim-fs-sm","trim-size-xl":"dapp-core-component__trim-styles__trim-size-xl",trimSizeXl:"dapp-core-component__trim-styles__trim-size-xl"};var Ms=({text:e,className:o="dapp-trim",dataTestId:n="trim-text-component",color:r})=>{let[c,p]=(0,W.useState)(!1),d=(0,W.useRef)(document==null?void 0:document.createElement("span")),_=(0,W.useRef)(document==null?void 0:document.createElement("span")),m=(0,W.useCallback)((0,Ps.default)(()=>{if(d.current&&_.current){let f=_.current.offsetWidth-d.current.offsetWidth;p(f>1)}},300),[]);return(0,W.useEffect)(()=>(window.addEventListener("resize",m),()=>{window.removeEventListener("resize",m)})),(0,W.useEffect)(()=>{m()},[]),W.default.createElement("span",{ref:d,className:(0,Ds.default)(no.trim,r!=null?r:"",{[no.overflow]:c},o),"data-testid":n},W.default.createElement("span",{ref:_,className:no.hiddenTextRef},e),c?W.default.createElement(W.default.Fragment,null,W.default.createElement("span",{className:no.left},W.default.createElement("span",null,String(e).substring(0,Math.floor(e.length/2)))),W.default.createElement("span",{className:no.ellipsis},"..."),W.default.createElement("span",{className:no.right},W.default.createElement("span",null,String(e).substring(Math.ceil(e.length/2))))):W.default.createElement("span",null,e))};t();var Fm=`.dapp-core-component__addressRowStyles__ledger-address-table-body-item {
|
|
2909
2886
|
display: flex;
|
|
2910
2887
|
align-items: center;
|
|
2911
2888
|
padding: 16px;
|
|
@@ -2988,7 +2965,7 @@ a > .dapp-core-component__trim-styles__trim span.dapp-core-component__trim-style
|
|
|
2988
2965
|
.dapp-core-component__addressRowStyles__ledger-address-table-body-item .dapp-core-component__addressRowStyles__ledger-address-table-body-item-data .dapp-core-component__addressRowStyles__ledger-address-table-body-item-data-label .dapp-core-component__addressRowStyles__ledger-address-table-body-item-data-value > span {
|
|
2989
2966
|
max-width: 260px;
|
|
2990
2967
|
}
|
|
2991
|
-
}`;document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(
|
|
2968
|
+
}`;document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(Fm));var Ne={"ledger-address-table-body-item":"dapp-core-component__addressRowStyles__ledger-address-table-body-item",ledgerAddressTableBodyItem:"dapp-core-component__addressRowStyles__ledger-address-table-body-item","ledger-address-table-body-item-selected":"dapp-core-component__addressRowStyles__ledger-address-table-body-item-selected",ledgerAddressTableBodyItemSelected:"dapp-core-component__addressRowStyles__ledger-address-table-body-item-selected","ledger-address-table-body-item-data":"dapp-core-component__addressRowStyles__ledger-address-table-body-item-data",ledgerAddressTableBodyItemData:"dapp-core-component__addressRowStyles__ledger-address-table-body-item-data","ledger-address-table-body-item-data-input":"dapp-core-component__addressRowStyles__ledger-address-table-body-item-data-input",ledgerAddressTableBodyItemDataInput:"dapp-core-component__addressRowStyles__ledger-address-table-body-item-data-input","ledger-address-table-body-item-data-label":"dapp-core-component__addressRowStyles__ledger-address-table-body-item-data-label",ledgerAddressTableBodyItemDataLabel:"dapp-core-component__addressRowStyles__ledger-address-table-body-item-data-label","ledger-address-table-body-item-data-value":"dapp-core-component__addressRowStyles__ledger-address-table-body-item-data-value",ledgerAddressTableBodyItemDataValue:"dapp-core-component__addressRowStyles__ledger-address-table-body-item-data-value"};var Os=({address:e,index:o,balance:n,selectedAddress:r,onSelectAddress:c,className:p="dapp-ledger-address-row",ledgerModalTableSelectedItemClassName:d})=>{let _=m=>{let{checked:g}=m.target;g&&c({address:e,index:o})};return Te.default.createElement("div",{className:(0,Rs.default)(Ne.ledgerAddressTableBodyItem,{[d!=null?d:""]:r===e,[Ne.ledgerAddressTableBodyItemSelected]:r===e},p)},Te.default.createElement("div",{className:Ne.ledgerAddressTableBodyItemData},Te.default.createElement("input",{type:"radio",id:`check_${o}`,"data-testid":`check_${o}`,onChange:_,role:"button",checked:r===e,className:Ne.ledgerAddressTableBodyItemDataInput}),Te.default.createElement("label",{htmlFor:`check_${o}`,role:"button","data-testid":`label_${o}`,className:Ne.ledgerAddressTableBodyItemDataLabel},Te.default.createElement("div",{className:Ne.ledgerAddressTableBodyItemDataValue},Te.default.createElement(Ms,{text:e})))),Te.default.createElement("div",{className:Ne.ledgerAddressTableBodyItemData},Te.default.createElement(Es,{value:n,egldLabel:Ji()})),Te.default.createElement("div",{className:Ne.ledgerAddressTableBodyItemData},o))};t();var Bm=`.dapp-core-component__addressTableStyles__ledger-address-table-wrapper {
|
|
2992
2969
|
text-align: center;
|
|
2993
2970
|
padding: 48px 16px;
|
|
2994
2971
|
overflow: hidden;
|
|
@@ -3087,7 +3064,30 @@ a > .dapp-core-component__trim-styles__trim span.dapp-core-component__trim-style
|
|
|
3087
3064
|
font-weight: 600;
|
|
3088
3065
|
margin-top: 40px !important;
|
|
3089
3066
|
transition: all 200ms ease;
|
|
3090
|
-
}`;document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(
|
|
3067
|
+
}`;document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(Bm));var j={"ledger-address-table-wrapper":"dapp-core-component__addressTableStyles__ledger-address-table-wrapper",ledgerAddressTableWrapper:"dapp-core-component__addressTableStyles__ledger-address-table-wrapper","ledger-address-table-heading":"dapp-core-component__addressTableStyles__ledger-address-table-heading",ledgerAddressTableHeading:"dapp-core-component__addressTableStyles__ledger-address-table-heading","ledger-address-table-description":"dapp-core-component__addressTableStyles__ledger-address-table-description",ledgerAddressTableDescription:"dapp-core-component__addressTableStyles__ledger-address-table-description","ledger-address-table":"dapp-core-component__addressTableStyles__ledger-address-table",ledgerAddressTable:"dapp-core-component__addressTableStyles__ledger-address-table","ledger-address-table-header":"dapp-core-component__addressTableStyles__ledger-address-table-header",ledgerAddressTableHeader:"dapp-core-component__addressTableStyles__ledger-address-table-header","ledger-address-table-header-item":"dapp-core-component__addressTableStyles__ledger-address-table-header-item",ledgerAddressTableHeaderItem:"dapp-core-component__addressTableStyles__ledger-address-table-header-item","ledger-address-table-body":"dapp-core-component__addressTableStyles__ledger-address-table-body",ledgerAddressTableBody:"dapp-core-component__addressTableStyles__ledger-address-table-body","ledger-address-table-navigation":"dapp-core-component__addressTableStyles__ledger-address-table-navigation",ledgerAddressTableNavigation:"dapp-core-component__addressTableStyles__ledger-address-table-navigation","ledger-address-table-navigation-button":"dapp-core-component__addressTableStyles__ledger-address-table-navigation-button",ledgerAddressTableNavigationButton:"dapp-core-component__addressTableStyles__ledger-address-table-navigation-button","ledger-address-table-navigation-button-disabled":"dapp-core-component__addressTableStyles__ledger-address-table-navigation-button-disabled",ledgerAddressTableNavigationButtonDisabled:"dapp-core-component__addressTableStyles__ledger-address-table-navigation-button-disabled","ledger-address-table-navigation-button-label":"dapp-core-component__addressTableStyles__ledger-address-table-navigation-button-label",ledgerAddressTableNavigationButtonLabel:"dapp-core-component__addressTableStyles__ledger-address-table-navigation-button-label","ledger-address-table-button":"dapp-core-component__addressTableStyles__ledger-address-table-button",ledgerAddressTableButton:"dapp-core-component__addressTableStyles__ledger-address-table-button"};t();t();t();var Lo=h(require("react")),Ws=require("@fortawesome/free-solid-svg-icons"),$n=h(require("classnames"));t();var Co=h(require("react")),Bs=require("@fortawesome/react-fontawesome"),Jo=h(require("classnames"));t();var Um=`.dapp-core-component__pageStateStyles__wrapper {
|
|
3068
|
+
color: inherit;
|
|
3069
|
+
}
|
|
3070
|
+
|
|
3071
|
+
.dapp-core-component__pageStateStyles__state {
|
|
3072
|
+
color: inherit;
|
|
3073
|
+
}`;document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(Um));var Fs={wrapper:"dapp-core-component__pageStateStyles__wrapper",state:"dapp-core-component__pageStateStyles__state"};var Us=({icon:e,title:o,action:n,iconClass:r,dataTestId:c,description:p,iconBgClass:d,iconSize:_="5x",className:m="dapp-page-state"})=>{let g={wrapper:(0,Jo.default)(Fs.state,F.mAuto,F.p4,F.textCenter,m),iconContainer:(0,Jo.default)(F.iconState,F.mxAuto,{[d!=null?d:""]:Boolean(d)}),iconClass:(0,Jo.default)(r!=null&&r),title:(0,Jo.default)(F.h4,F.my4),description:F.mb3};return Co.default.createElement("div",{className:g.wrapper,"data-testid":c},e&&Co.default.createElement("span",{className:g.iconContainer},Co.default.createElement(Bs.FontAwesomeIcon,{icon:e,className:g.iconClass,size:_})),o&&Co.default.createElement("p",{className:g.title},o),p&&Co.default.createElement("div",{className:g.description},p),n)};t();var Wm=`.dapp-core-component__ledgerLoadingStyles__ledger-loading-wrapper {
|
|
3074
|
+
text-align: center;
|
|
3075
|
+
padding: 40px 16px 0;
|
|
3076
|
+
}
|
|
3077
|
+
.dapp-core-component__ledgerLoadingStyles__ledger-loading-wrapper .dapp-core-component__ledgerLoadingStyles__ledger-loading-heading {
|
|
3078
|
+
font-weight: 500;
|
|
3079
|
+
font-size: 24px;
|
|
3080
|
+
line-height: 1;
|
|
3081
|
+
margin-bottom: 12px;
|
|
3082
|
+
}
|
|
3083
|
+
.dapp-core-component__ledgerLoadingStyles__ledger-loading-wrapper .dapp-core-component__ledgerLoadingStyles__ledger-loading-description {
|
|
3084
|
+
line-height: 1;
|
|
3085
|
+
font-size: 14px;
|
|
3086
|
+
margin-bottom: 0;
|
|
3087
|
+
}
|
|
3088
|
+
.dapp-core-component__ledgerLoadingStyles__ledger-loading-wrapper .dapp-core-component__ledgerLoadingStyles__ledger-loading-spinner {
|
|
3089
|
+
margin: 120px 0;
|
|
3090
|
+
}`;document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(Wm));var Qo={"ledger-loading-wrapper":"dapp-core-component__ledgerLoadingStyles__ledger-loading-wrapper",ledgerLoadingWrapper:"dapp-core-component__ledgerLoadingStyles__ledger-loading-wrapper","ledger-loading-heading":"dapp-core-component__ledgerLoadingStyles__ledger-loading-heading",ledgerLoadingHeading:"dapp-core-component__ledgerLoadingStyles__ledger-loading-heading","ledger-loading-description":"dapp-core-component__ledgerLoadingStyles__ledger-loading-description",ledgerLoadingDescription:"dapp-core-component__ledgerLoadingStyles__ledger-loading-description","ledger-loading-spinner":"dapp-core-component__ledgerLoadingStyles__ledger-loading-spinner",ledgerLoadingSpinner:"dapp-core-component__ledgerLoadingStyles__ledger-loading-spinner"};var Vn=({customSpinnerComponent:e,ledgerLoadingClassNames:o,customContentComponent:n})=>{let{ledgerModalSubtitleClassName:r,ledgerModalTitleClassName:c}=o||{};return Lo.default.createElement("div",{className:Qo.ledgerLoadingWrapper},Lo.default.createElement("div",{className:(0,$n.default)(Qo.ledgerLoadingHeading,c)},"Waiting for device..."),Lo.default.createElement("p",{className:(0,$n.default)(Qo.ledgerLoadingDescription,r)},"It may take a few seconds..."),n,Lo.default.createElement("div",{className:Qo.ledgerLoadingSpinner},e||Lo.default.createElement(Us,{iconSize:"10x",icon:Ws.faCircleNotch,iconClass:(0,$n.default)("fa-spin",F.textPrimary)})))};var Gs=10,Hs=({loading:e,accounts:o,startIndex:n,selectedAddress:r,onGoToPrevPage:c,onGoToNextPage:p,onConfirmSelectedAddress:d,onSelectAddress:_,className:m="dapp-ledger-address-table",customContentComponent:g,addressTableClassNames:f})=>{let{ledgerModalTitleClassName:u,ledgerModalSubtitleClassName:T,ledgerModalTableHeadClassName:C,ledgerModalTableItemClassName:w,ledgerModalButtonClassName:I,ledgerModalTableNavigationButtonClassName:G,ledgerModalTableSelectedItemClassName:ee,ledgerModalTableNavigationButtonDisabledClassName:P}=f||{},[Z,H]=(0,D.useState)([]);(0,D.useEffect)(()=>{if(o.length>0&&!e&&(!r&&n===0)){let en=o[0];_({address:en,index:0})}},[o,r,e,n]);let ae=R=>S(void 0,null,function*(){try{let $=yield Ki(R);return{address:R,balance:$}}catch($){throw console.error("error fetching balance",$),Z}});if((0,D.useEffect)(()=>{let R=o.map($=>ae($));H(o.map($=>({address:$,balance:"..."}))),Promise.all(R).then($=>{H($)})},[o]),e)return D.default.createElement(Vn,null);let me=["Address","Balance","#"];return D.default.createElement("div",{className:(0,Fe.default)(j.ledgerAddressTableWrapper,m)},D.default.createElement("div",{className:j.ledgerAddressTableTop},D.default.createElement("div",{className:(0,Fe.default)(j.ledgerAddressTableHeading,u)},"Access your wallet"),D.default.createElement("p",{className:(0,Fe.default)(j.ledgerAddressTableDescription,T)},"Choose the wallet you want to access")),g,D.default.createElement("div",{className:j.ledgerAddressTable},D.default.createElement("div",{className:(0,Fe.default)(j.ledgerAddressTableHeader,C)},me.map(R=>D.default.createElement("div",{key:R,className:j.ledgerAddressTableHeaderItem},R))),D.default.createElement("div",{className:j.ledgerAddressTableBody},Z&&Z.map(({address:R,balance:$},Ue)=>D.default.createElement(Os,{address:R,balance:$,key:Ue+n*Gs,index:Ue+n*Gs,selectedAddress:r,onSelectAddress:_,className:w,ledgerModalTableSelectedItemClassName:ee})))),D.default.createElement("div",{className:j.ledgerAddressTableBottom},D.default.createElement("div",{className:j.ledgerAddressTableNavigation},D.default.createElement("button",{type:"button",onClick:c,"data-testid":"prevBtn",className:(0,Fe.default)(j.ledgerAddressTableNavigationButton,{[P!=null?P:""]:n===0,[j.ledgerAddressTableNavigationButtonDisabled]:n===0},G)},D.default.createElement(mr.FontAwesomeIcon,{size:"1x",icon:zn.faChevronLeft}),D.default.createElement("span",{className:j.ledgerAddressTableNavigationButtonLabel},"Prev")),D.default.createElement("button",{type:"button",onClick:p,"data-testid":"nextBtn",className:(0,Fe.default)(j.ledgerAddressTableNavigationButton,{[j.ledgerAddressTableNavigationButtonDisabled]:o.length<10},G)},D.default.createElement("span",{className:j.ledgerAddressTableNavigationButtonLabel},"Next"),D.default.createElement(mr.FontAwesomeIcon,{size:"1x",icon:zn.faChevronRight}))),D.default.createElement("button",{disabled:r==="",onClick:d,"data-testid":"confirmBtn",className:(0,Fe.default)(F.btn,F.btnPrimary,j.ledgerAddressTableButton,I)},"Access Wallet")))};t();var Y=h(require("react")),Ee=h(require("classnames"));t();var Gm=`.dapp-core-component__confirmAddressStyles__ledger-confirm-address {
|
|
3091
3091
|
text-align: center;
|
|
3092
3092
|
padding: 48px 16px;
|
|
3093
3093
|
overflow: hidden;
|
|
@@ -3141,12 +3141,12 @@ a > .dapp-core-component__trim-styles__trim span.dapp-core-component__trim-style
|
|
|
3141
3141
|
}
|
|
3142
3142
|
.dapp-core-component__confirmAddressStyles__ledger-confirm-address .dapp-core-component__confirmAddressStyles__ledger-confirm-address-footer a {
|
|
3143
3143
|
color: #1b46c2;
|
|
3144
|
-
}`;document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(
|
|
3144
|
+
}`;document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(Gm));var _e={"ledger-confirm-address":"dapp-core-component__confirmAddressStyles__ledger-confirm-address",ledgerConfirmAddress:"dapp-core-component__confirmAddressStyles__ledger-confirm-address","ledger-confirm-address-heading":"dapp-core-component__confirmAddressStyles__ledger-confirm-address-heading",ledgerConfirmAddressHeading:"dapp-core-component__confirmAddressStyles__ledger-confirm-address-heading","ledger-confirm-address-section":"dapp-core-component__confirmAddressStyles__ledger-confirm-address-section",ledgerConfirmAddressSection:"dapp-core-component__confirmAddressStyles__ledger-confirm-address-section","ledger-confirm-address-description":"dapp-core-component__confirmAddressStyles__ledger-confirm-address-description",ledgerConfirmAddressDescription:"dapp-core-component__confirmAddressStyles__ledger-confirm-address-description","ledger-confirm-address-data":"dapp-core-component__confirmAddressStyles__ledger-confirm-address-data",ledgerConfirmAddressData:"dapp-core-component__confirmAddressStyles__ledger-confirm-address-data","ledger-confirm-address-footer":"dapp-core-component__confirmAddressStyles__ledger-confirm-address-footer",ledgerConfirmAddressFooter:"dapp-core-component__confirmAddressStyles__ledger-confirm-address-footer"};var $s=({token:e,className:o="dapp-ledger-confirm-address",customContentComponent:n,confirmAddressClassNames:r})=>{var u,T;let{ledgerAccount:c}=$o(),{ledgerModalTitleClassName:p,ledgerModalConfirmDescriptionClassName:d,ledgerModalConfirmDataClassName:_,ledgerModalConfirmFooterClassName:m}=r||{},g=v(Dn),f=(u=g==null?void 0:g.loginToken)!=null?u:e;return Y.default.createElement("div",{className:(0,Ee.default)(_e.ledgerConfirmAddress,o)},Y.default.createElement("h4",{className:(0,Ee.default)(_e.ledgerConfirmAddressHeading,p)},"Confirm Ledger Address"),n,Y.default.createElement("div",{className:_e.ledgerConfirmAddressSection},Y.default.createElement("div",{className:(0,Ee.default)(_e.ledgerConfirmAddressDescription,d)},"For security, please confirm that your address:"),Y.default.createElement("div",{className:(0,Ee.default)(_e.ledgerConfirmAddressData,_)},Y.default.createElement(Y.default.Fragment,null,(T=c==null?void 0:c.address)!=null?T:""))),f&&Y.default.createElement("div",{className:_e.ledgerConfirmAddressSection},Y.default.createElement("div",{className:(0,Ee.default)(_e.ledgerConfirmAddressDescription,d)},"and Auth Token:"),Y.default.createElement("div",{className:(0,Ee.default)(_e.ledgerConfirmAddressData,_)},`${f}{}`),Y.default.createElement("div",{className:(0,Ee.default)(_e.ledgerConfirmAddressDescription,d)},f?"are the one shown on your Ledger device screen now.":"is the one shown on your Ledger device screen now.")),Y.default.createElement("div",{className:(0,Ee.default)(_e.ledgerConfirmAddressFooter,m)},Y.default.createElement("div",null,"Select Approve on your device to confirm."),Y.default.createElement("div",null,"Or, if it does not match, close this page and"," ",Y.default.createElement("a",{href:"https://help.multiversx.com/en/",target:"_blank",rel:"noreferrer"},"contact support"),".")))};t();var re=h(require("react")),Be=h(require("classnames"));t();var q=h(require("react")),Hm=e=>q.createElement("svg",y({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",id:"Layer_1",x:"0px",y:"0px",viewBox:"0 0 290 142.3",style:{enableBackground:"new 0 0 290 142.3"},xmlSpace:"preserve"},e),q.createElement("style",{type:"text/css"},`
|
|
3145
3145
|
.st0{filter:url(#Adobe_OpacityMaskFilter);}
|
|
3146
3146
|
.st1{fill-rule:evenodd;clip-rule:evenodd;fill:url(#SVGID_00000132080685600946463390000014083146887067534994_);}
|
|
3147
3147
|
.st2{mask:url(#SVGID_1_);fill-rule:evenodd;clip-rule:evenodd;fill:#212529;}
|
|
3148
3148
|
.st3{fill-rule:evenodd;clip-rule:evenodd;fill:#212529;}
|
|
3149
|
-
`),
|
|
3149
|
+
`),q.createElement("defs",null,q.createElement("filter",{id:"Adobe_OpacityMaskFilter",filterUnits:"userSpaceOnUse",x:1,y:21.7,width:92.7,height:6.3},q.createElement("feColorMatrix",{type:"matrix",values:"1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"}))),q.createElement("mask",{maskUnits:"userSpaceOnUse",x:1,y:21.7,width:92.7,height:6.3,id:"SVGID_1_"},q.createElement("g",{className:"st0"},q.createElement("linearGradient",{id:"SVGID_00000042721603501377086220000002945655816276772283_",gradientUnits:"userSpaceOnUse",x1:1,y1:24.85,x2:92.9,y2:24.85},q.createElement("stop",{offset:0,style:{stopColor:"#000000"}}),q.createElement("stop",{offset:.1864,style:{stopColor:"#000000"}}),q.createElement("stop",{offset:.8945,style:{stopColor:"#FFFFFF"}})),q.createElement("rect",{x:1,y:21.7,style:{fillRule:"evenodd",clipRule:"evenodd",fill:"url(#SVGID_00000042721603501377086220000002945655816276772283_)"},width:91.9,height:6.3}))),q.createElement("path",{className:"st2",d:"M1,26.6V28h92.7v-1.4H1z M1,21.7v1.4h92.7v-1.4H1z"}),q.createElement("g",null,q.createElement("path",{className:"st3",d:"M218.8,21h-38.1c-0.2,0-0.3,0.1-0.4,0.2c-0.1,0.1-0.2,0.2-0.2,0.4v5.6c0,0.2,0.1,0.3,0.2,0.4 c0.1,0.1,0.2,0.2,0.4,0.2h38.1c0.2,0,0.3-0.1,0.4-0.2c0.1-0.1,0.2-0.2,0.2-0.4v-5.6c0-0.1-0.1-0.3-0.2-0.4 C219.1,21.1,219,21,218.8,21z M185.2,25.4l-0.5,0.4l-0.6-0.9l0,0l-0.6,0.9l-0.5-0.4l0.6-0.8l0,0l-1-0.3l0.2-0.6l1,0.4l-0.1-1h0.7 l-0.1,1l1-0.4l0.2,0.6l-1,0.3l0,0L185.2,25.4z M189.6,25.4l-0.5,0.4l-0.6-0.9l0,0l-0.6,0.9l-0.5-0.4l0.6-0.8l0,0l-1-0.3l0.2-0.6 l1,0.4v-1h0.7l-0.1,1l1-0.4l0.2,0.6l-1,0.3l0,0L189.6,25.4z M194,25.4l-0.5,0.4l-0.6-0.9l0,0l-0.6,0.9l-0.5-0.4l0.6-0.8l0,0l-1-0.3 l0.2-0.6l1,0.4v-1h0.7l-0.1,1l1-0.4l0.2,0.6l-1,0.3l0,0L194,25.4z M198.4,25.4l-0.5,0.4l-0.6-0.9l0,0l-0.6,0.9l-0.5-0.4l0.7-0.8 l0,0l-1-0.3l0.1-0.6l1,0.4v-1h0.7l-0.1,1l1-0.4l0.2,0.6l-1,0.3l0,0L198.4,25.4z M202.8,25.4l-0.5,0.4l-0.6-0.9l0,0l-0.6,0.9 l-0.5-0.4l0.7-0.8l0,0l-1-0.3l0.2-0.6l1,0.4v-1h0.7l-0.1,1l1-0.4l0.2,0.6l-1,0.3l0,0L202.8,25.4z M207.1,25.4l-0.5,0.4l-0.6-0.9 l0,0l-0.6,0.9l-0.5-0.4l0.7-0.8l0,0l-1-0.3l0.2-0.6l1,0.4v-1h0.7l-0.1,1l1-0.4l0.2,0.6l-1,0.3l0,0L207.1,25.4z M211.5,25.4 l-0.5,0.4l-0.6-0.9l0,0l-0.6,0.9l-0.5-0.4l0.7-0.8l0,0l-1-0.3l0.2-0.6l1,0.4v-1h0.7l-0.1,1l1-0.4l0.2,0.6l-1,0.3l0,0L211.5,25.4z M215.9,25.4l-0.5,0.4l-0.6-0.9l0,0l-0.6,0.9l-0.5-0.4l0.7-0.8l0,0l-1-0.3l0.2-0.6l1,0.4l-0.1-1h0.7l-0.1,1l1-0.4l0.2,0.6l-1,0.3 l0,0L215.9,25.4z"}),q.createElement("path",{className:"st3",d:"M283.8,9.2l-0.1-0.1c-0.2-0.2-0.3-0.3-0.5-0.5s-0.3-0.3-0.5-0.5c-0.1-0.1-0.3-0.3-0.4-0.4 c-0.6-0.6-1.2-1.1-1.8-1.6c-3.9-3-8.7-4.7-13.9-4.7h-28.1c-0.1-0.2-0.2-0.3-0.3-0.5c-0.4-0.6-1.1-0.9-1.8-0.9h-14.7 c-0.8,0-1.4,0.4-1.8,0.9c-0.1,0.2-0.2,0.3-0.3,0.5h-42.3c-0.1-0.2-0.2-0.3-0.3-0.5c-0.4-0.6-1.1-0.9-1.8-0.9h-14.7 c-0.8,0-1.4,0.4-1.8,0.9c-0.1,0.2-0.2,0.3-0.3,0.5h-13c-1.1,0-2.1,0.4-2.8,1.2c-0.7,0.7-1.2,1.8-1.2,2.8v8.8c-0.1,0-0.2,0-0.2,0 h-0.3h-29.1c-1.7,0-3.2,0.7-4.4,1.8c-1.2,1.2-1.8,2.8-1.8,4.4v0.3H92.9v8.4h12.7v0.7c0,1.7,0.7,3.2,1.8,4.4 c1.2,1.2,2.7,1.8,4.4,1.8h29.1h0.3c0.1,0,0.2,0,0.2,0v7.4c0,1.1,0.4,2.1,1.2,2.8s1.8,1.2,2.8,1.2h72.3l-0.4,0.5l-53.4,63.6 c-0.3,0.4-0.6,0.9-0.7,1.4c-0.2,0.5-0.2,1-0.2,1.5s0.2,1,0.4,1.5s0.6,0.9,1,1.2l28.9,24.3c0.4,0.3,0.9,0.6,1.4,0.7 c0.5,0.2,1,0.2,1.5,0.2s1-0.2,1.5-0.4s0.9-0.6,1.2-1l82.5-98.3l2.9-3.5C291.8,30.3,291.3,17.5,283.8,9.2z M105.1,27.9h-11v-6h11 V27.9z M277.7,45.1l-79.8,95c-0.2,0.3-0.5,0.5-0.8,0.7s-0.7,0.3-1,0.3c-0.4,0-0.7,0-1.1-0.1c-0.3-0.1-0.7-0.3-0.9-0.5l-29-24.3 c-0.3-0.2-0.5-0.5-0.7-0.8s-0.3-0.7-0.3-1c0-0.4,0-0.7,0.1-1.1c0.1-0.3,0.3-0.7,0.5-0.9l54-64.4l0.4-0.5l1-1.2l8.1-9.7l0.3-0.3 l0.3-0.3l5.2-6.2l0.3-0.4l0.3-0.4L250,10.6c4.8-5.7,11.8-8.3,18.6-7.6c0.2,0,0.5,0,0.7,0.1c0.3,0,0.6,0.1,0.9,0.1 c0.2,0,0.5,0.1,0.7,0.1c0.4,0.1,0.7,0.2,1.1,0.3c0.6,0.2,1.2,0.3,1.8,0.5c0.3,0.1,0.6,0.2,0.9,0.3c0.3,0.1,0.6,0.2,0.9,0.4 c0.2,0.1,0.4,0.2,0.6,0.3c0.6,0.3,1.2,0.7,1.9,1c0.4,0.2,0.8,0.5,1.2,0.8l0,0c0.4,0.3,0.8,0.6,1.1,0.9c0.1,0.1,0.2,0.2,0.3,0.2 c0.1,0.1,0.2,0.2,0.3,0.2c0.2,0.1,0.3,0.3,0.5,0.4c0.1,0.1,0.2,0.2,0.4,0.4c7.9,7.8,8.6,20.6,1.3,29.3l-4.7,5.6L277.7,45.1z M234.2,27.8l-6.8,8.1h-60.6c-0.8,0-1.5-0.7-1.5-1.5v-20c0-0.8,0.7-1.5,1.5-1.5h65.9c0.8,0,1.5,0.7,1.5,1.5L234.2,27.8L234.2,27.8z M141.2,34.9h-0.3h-29.1c-1.3,0-2.6-0.5-3.5-1.5c-0.9-0.9-1.5-2.2-1.5-3.5v-9.5c0-1.3,0.5-2.6,1.5-3.5c0.9-0.9,2.2-1.5,3.5-1.5 h29.1h0.3c0.1,0,0.2,0,0.2,0.1v19.4C141.3,34.8,141.3,34.9,141.2,34.9z M145.4,46.2c-0.7,0-1.4-0.3-2-0.8c-0.5-0.5-0.8-1.2-0.8-2 v-8.2v-3.4V18.1V15V5.4c0-0.7,0.3-1.4,0.8-1.9s1.2-0.8,2-0.8h12.9h19.2h42h19.2h21.4c-4.1,1.2-7.8,3.6-10.8,7.1l-14.5,17.3V14.4 c0-1.2-0.9-2.1-2.1-2.1h-65.9c-1.2,0-2.1,0.9-2.1,2.1v20c0,1.2,0.9,2.1,2.1,2.1h60.1l-8.2,9.7C218.7,46.2,145.4,46.2,145.4,46.2z"}),q.createElement("path",{className:"st3",d:"M265.5,12.2c-6.8,0-12.2,5.4-12.2,12.2c0,6.7,5.5,12.2,12.2,12.2c6.8,0,12.2-5.4,12.2-12.2 C277.7,17.7,272.2,12.2,265.5,12.2z M265.5,35.9c-6.4,0-11.6-5.2-11.6-11.5s5.2-11.5,11.6-11.5s11.6,5.2,11.6,11.5 S271.9,35.9,265.5,35.9z"}))),Vs=Hm;t();var $m=`.dapp-core-component__ledgerConnectStyles__login-connect-container {
|
|
3150
3150
|
color: inherit;
|
|
3151
3151
|
width: 100%;
|
|
3152
3152
|
}
|
|
@@ -3201,7 +3201,7 @@ a > .dapp-core-component__trim-styles__trim span.dapp-core-component__trim-style
|
|
|
3201
3201
|
}
|
|
3202
3202
|
.dapp-core-component__ledgerConnectStyles__login-connect-container .dapp-core-component__ledgerConnectStyles__login-connect-container-content .dapp-core-component__ledgerConnectStyles__login-connect-container-footer .dapp-core-component__ledgerConnectStyles__login-connect-container-link:hover, .dapp-core-component__ledgerConnectStyles__login-connect-container .dapp-core-component__ledgerConnectStyles__login-connect-container-content .dapp-core-component__ledgerConnectStyles__login-connect-container-footer .dapp-core-component__ledgerConnectStyles__login-connect-container-link:active, .dapp-core-component__ledgerConnectStyles__login-connect-container .dapp-core-component__ledgerConnectStyles__login-connect-container-content .dapp-core-component__ledgerConnectStyles__login-connect-container-footer .dapp-core-component__ledgerConnectStyles__login-connect-container-link:focus {
|
|
3203
3203
|
text-decoration: none;
|
|
3204
|
-
}`;document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(
|
|
3204
|
+
}`;document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode($m));var be={"login-connect-container":"dapp-core-component__ledgerConnectStyles__login-connect-container",loginConnectContainer:"dapp-core-component__ledgerConnectStyles__login-connect-container","login-connect-container-content":"dapp-core-component__ledgerConnectStyles__login-connect-container-content",loginConnectContainerContent:"dapp-core-component__ledgerConnectStyles__login-connect-container-content","login-connect-container-heading":"dapp-core-component__ledgerConnectStyles__login-connect-container-heading",loginConnectContainerHeading:"dapp-core-component__ledgerConnectStyles__login-connect-container-heading","login-connect-container-description":"dapp-core-component__ledgerConnectStyles__login-connect-container-description",loginConnectContainerDescription:"dapp-core-component__ledgerConnectStyles__login-connect-container-description","login-connect-container-error":"dapp-core-component__ledgerConnectStyles__login-connect-container-error",loginConnectContainerError:"dapp-core-component__ledgerConnectStyles__login-connect-container-error","login-connect-container-icon":"dapp-core-component__ledgerConnectStyles__login-connect-container-icon",loginConnectContainerIcon:"dapp-core-component__ledgerConnectStyles__login-connect-container-icon","login-connect-container-footer":"dapp-core-component__ledgerConnectStyles__login-connect-container-footer",loginConnectContainerFooter:"dapp-core-component__ledgerConnectStyles__login-connect-container-footer","login-connect-container-button":"dapp-core-component__ledgerConnectStyles__login-connect-container-button",loginConnectContainerButton:"dapp-core-component__ledgerConnectStyles__login-connect-container-button","login-connect-container-link":"dapp-core-component__ledgerConnectStyles__login-connect-container-link",loginConnectContainerLink:"dapp-core-component__ledgerConnectStyles__login-connect-container-link"};var zs=({onClick:e,error:o,connectPageContent:n,customContentComponent:r,className:c="dapp-ledger-connect-button",ledgerConnectClassNames:p})=>{let{ledgerModalTitleClassName:d,ledgerModalSubtitleClassName:_,ledgerModalErrorClassName:m,ledgerModalIconClassName:g,ledgerModalButtonClassName:f,ledgerModalFooterLinkClassName:u}=p||{};return re.default.createElement("div",{className:(0,Be.default)(be.loginConnectContainer,c)},re.default.createElement("div",{className:be.loginConnectContainerContent},n||re.default.createElement(re.default.Fragment,null,re.default.createElement("div",{className:(0,Be.default)(be.loginConnectContainerHeading,d)},"Connect Ledger"),re.default.createElement("p",{className:(0,Be.default)(be.loginConnectContainerDescription,_)},"Unlock your device & open the MultiversX App"),o&&re.default.createElement("p",{className:(0,Be.default)(be.loginConnectContainerError,m)},o),r,re.default.createElement("div",{className:(0,Be.default)(be.loginConnectContainerIcon,g)},re.default.createElement(Vs,null))),re.default.createElement("div",{className:be.loginConnectContainerFooter},re.default.createElement("button",{onClick:e,"data-testid":"connectBtn",className:(0,Be.default)(F.btn,F.btnPrimary,be.loginConnectContainerButton,f)},"Connect Ledger"),re.default.createElement("a",{href:"#",className:(0,Be.default)(be.loginConnectContainerLink,u)},"Having connection issues?"))))};t();var Vm=`.dapp-core-component__ledgerLoginContainerStyles__ledger-login-container {
|
|
3205
3205
|
padding: 48px 16px;
|
|
3206
3206
|
}
|
|
3207
3207
|
@media (min-width: 768px) {
|
|
@@ -3246,7 +3246,7 @@ a > .dapp-core-component__trim-styles__trim span.dapp-core-component__trim-style
|
|
|
3246
3246
|
padding: 0;
|
|
3247
3247
|
justify-content: center;
|
|
3248
3248
|
overflow: hidden;
|
|
3249
|
-
}`;document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(
|
|
3249
|
+
}`;document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(Vm));var to={"ledger-login-container":"dapp-core-component__ledgerLoginContainerStyles__ledger-login-container",ledgerLoginContainer:"dapp-core-component__ledgerLoginContainerStyles__ledger-login-container","ledger-modal-dialog-content":"dapp-core-component__ledgerLoginContainerStyles__ledger-modal-dialog-content",ledgerModalDialogContent:"dapp-core-component__ledgerLoginContainerStyles__ledger-modal-dialog-content","ledger-modal-header":"dapp-core-component__ledgerLoginContainerStyles__ledger-modal-header",ledgerModalHeader:"dapp-core-component__ledgerLoginContainerStyles__ledger-modal-header","ledger-modal-header-text":"dapp-core-component__ledgerLoginContainerStyles__ledger-modal-header-text",ledgerModalHeaderText:"dapp-core-component__ledgerLoginContainerStyles__ledger-modal-header-text","ledger-modal-close-button":"dapp-core-component__ledgerLoginContainerStyles__ledger-modal-close-button",ledgerModalCloseButton:"dapp-core-component__ledgerLoginContainerStyles__ledger-modal-close-button","ledger-modal-body":"dapp-core-component__ledgerLoginContainerStyles__ledger-modal-body",ledgerModalBody:"dapp-core-component__ledgerLoginContainerStyles__ledger-modal-body"};var js=h(require("classnames")),zm=({callbackRoute:e,className:o="dapp-ledger-login-container",wrapContentInsideModal:n=!0,onClose:r,onLoginRedirect:c,token:p,nativeAuth:d,customSpinnerComponent:_,customContentComponent:m,innerLedgerComponentsClasses:g})=>{let{ledgerAccount:f}=$o(),[u,{error:T,isLoading:C},{showAddressList:w,accounts:I,onGoToPrevPage:G,onGoToNextPage:ee,onSelectAddress:P,onConfirmSelectedAddress:Z,startIndex:H,selectedAddress:ae}]=Qt({callbackRoute:e,token:p,onLoginRedirect:c,nativeAuth:d}),{addressTableClassNames:me,confirmAddressClassNames:R,ledgerConnectClassNames:$,ledgerLoadingClassNames:Ue}=g||{},We=()=>C?No.default.createElement(Vn,{customSpinnerComponent:_,customContentComponent:m,ledgerLoadingClassNames:Ue}):f!=null&&!T?No.default.createElement($s,{token:p,customContentComponent:m,confirmAddressClassNames:R}):w&&!T?No.default.createElement(Hs,{accounts:I,loading:C,onGoToNextPage:ee,onGoToPrevPage:G,onSelectAddress:P,startIndex:H,selectedAddress:ae==null?void 0:ae.address,onConfirmSelectedAddress:Z,customContentComponent:m,addressTableClassNames:me}):No.default.createElement(zs,{error:T,onClick:u,customContentComponent:m,ledgerConnectClassNames:$});return n?No.default.createElement(dr,{onClose:r,modalConfig:{headerText:"Login with ledger",showHeader:!0,modalContentClassName:to.ledgerModalDialogContent,modalHeaderClassName:to.ledgerModalHeader,modalHeaderTextClassName:to.ledgerModalHeaderText,modalCloseButtonClassName:to.ledgerModalCloseButton,modalBodyClassName:to.ledgerModalBody,modalDialogClassName:(0,js.default)(to.ledgerLoginContainer,o)}},We()):We()};0&&(module.exports={LedgerLoginContainer});
|
|
3250
3250
|
/*!
|
|
3251
3251
|
* The buffer module from node.js, for the browser.
|
|
3252
3252
|
*
|