@multiversx/sdk-dapp 2.22.0 → 2.22.1

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.
@@ -1,2 +1,2 @@
1
- "use strict";import"../../../__chunks__/chunk-WOY3DRDS.js";import{a}from"../../../__chunks__/chunk-XB34L3W3.js";import"../../../__chunks__/chunk-FTE2VXGC.js";import"../../../__chunks__/chunk-E2Q2BLG6.js";import"../../../__chunks__/chunk-LGBANZIL.js";import"../../../__chunks__/chunk-BEQE7IUL.js";import"../../../__chunks__/chunk-F2GLDVD4.js";import"../../../__chunks__/chunk-7U6U7YK7.js";import"../../../__chunks__/chunk-JCAUBGCB.js";import"../../../__chunks__/chunk-C7FDEP42.js";import"../../../__chunks__/chunk-WJGL6LVA.js";import"../../../__chunks__/chunk-OCMDIV3Q.js";import"../../../__chunks__/chunk-LK5TR7MI.js";import"../../../__chunks__/chunk-KMTPVLTX.js";import"../../../__chunks__/chunk-TKIIHBF2.js";import"../../../__chunks__/chunk-ATEFCARH.js";import"../../../__chunks__/chunk-JFXVZGSY.js";import"../../../__chunks__/chunk-TXAITGIS.js";import"../../../__chunks__/chunk-EV54OSTP.js";import"../../../__chunks__/chunk-KOH3SXG4.js";import"../../../__chunks__/chunk-NR47PJH7.js";import"../../../__chunks__/chunk-VC5MO5MK.js";import"../../../__chunks__/chunk-BC6ZREC3.js";import"../../../__chunks__/chunk-XAQNBFSL.js";import"../../../__chunks__/chunk-5HMS5KVK.js";import"../../../__chunks__/chunk-53GKFOIV.js";import"../../../__chunks__/chunk-NWZRIDQH.js";import"../../../__chunks__/chunk-YAR2KJ42.js";import"../../../__chunks__/chunk-BIRHD42W.js";import"../../../__chunks__/chunk-FZMRVALH.js";import"../../../__chunks__/chunk-CN2FDSOR.js";import"../../../__chunks__/chunk-37ZHJ2BK.js";import"../../../__chunks__/chunk-F7XKTZUU.js";import"../../../__chunks__/chunk-EA6JYINF.js";import"../../../__chunks__/chunk-ELWERAIL.js";import"../../../__chunks__/chunk-QUO3WQQP.js";import"../../../__chunks__/chunk-WGNJV6FV.js";import"../../../__chunks__/chunk-KZR7TQ7H.js";import"../../../__chunks__/chunk-XOZ662VA.js";import"../../../__chunks__/chunk-NAN2H6P3.js";import"../../../__chunks__/chunk-LO5NNAIV.js";import"../../../__chunks__/chunk-KTZ6NJYR.js";import"../../../__chunks__/chunk-4QFFFK6F.js";import"../../../__chunks__/chunk-Q7E4ZRPH.js";import"../../../__chunks__/chunk-5HIT6UUN.js";import"../../../__chunks__/chunk-QLIKP427.js";import"../../../__chunks__/chunk-UHAAGLFU.js";import"../../../__chunks__/chunk-HH5S5FOE.js";import"../../../__chunks__/chunk-NTHQWZZ3.js";import"../../../__chunks__/chunk-22UA5SNR.js";import"../../../__chunks__/chunk-YY5JNOQM.js";import"../../../__chunks__/chunk-BURHE673.js";import"../../../__chunks__/chunk-656RZ3WN.js";import"../../../__chunks__/chunk-C47S55X2.js";import"../../../__chunks__/chunk-J2MUUM2F.js";import"../../../__chunks__/chunk-KK4LJZOS.js";import"../../../__chunks__/chunk-MLJSHV5D.js";import"../../../__chunks__/chunk-JDPVEID2.js";import"../../../__chunks__/chunk-ANQNJBHH.js";import"../../../__chunks__/chunk-53AGKYIW.js";import"../../../__chunks__/chunk-5WNCIKLU.js";import"../../../__chunks__/chunk-V527ZUEP.js";import"../../../__chunks__/chunk-7WYU7PQV.js";import"../../../__chunks__/chunk-3ZDN74GT.js";import"../../../__chunks__/chunk-YZPNAKM3.js";import"../../../__chunks__/chunk-6QTFK4P6.js";import"../../../__chunks__/chunk-LL3QDDDA.js";import"../../../__chunks__/chunk-FBHNJJZH.js";import"../../../__chunks__/chunk-CVVADG26.js";import"../../../__chunks__/chunk-KEQTNP4F.js";import"../../../__chunks__/chunk-65QWOSRD.js";import"../../../__chunks__/chunk-JLZCJGHU.js";import"../../../__chunks__/chunk-4JP4CKHO.js";import"../../../__chunks__/chunk-YNBIYUSB.js";import"../../../__chunks__/chunk-HGNKRKKA.js";import"../../../__chunks__/chunk-3U7QBETU.js";import"../../../__chunks__/chunk-DBD6N2CW.js";import"../../../__chunks__/chunk-K7EQVIHG.js";import"../../../__chunks__/chunk-STLFRDLP.js";import"../../../__chunks__/chunk-VVGYXB6D.js";import"../../../__chunks__/chunk-W4I6IVR2.js";import"../../../__chunks__/chunk-C3PGSWQL.js";import"../../../__chunks__/chunk-ED6BJJBA.js";import"../../../__chunks__/chunk-56XNRIN5.js";import"../../../__chunks__/chunk-UWMYMEYR.js";import"../../../__chunks__/chunk-XNFCZFZP.js";import"../../../__chunks__/chunk-MIIBTD2F.js";import"../../../__chunks__/chunk-IHYE5CJR.js";import"../../../__chunks__/chunk-7WNIDY4A.js";import"../../../__chunks__/chunk-ORJ3F5OW.js";import"../../../__chunks__/chunk-BYDVRFNS.js";import"../../../__chunks__/chunk-T2OP32V2.js";import"../../../__chunks__/chunk-VMYGZ6FM.js";import"../../../__chunks__/chunk-E5RWYVP5.js";import"../../../__chunks__/chunk-EBWTYZ5R.js";import"../../../__chunks__/chunk-73E2DD7R.js";import"../../../__chunks__/chunk-52SRRYZK.js";import"../../../__chunks__/chunk-2WP7OVEE.js";import"../../../__chunks__/chunk-U3TQIHS4.js";import"../../../__chunks__/chunk-JRB2SSEU.js";import"../../../__chunks__/chunk-LVXEGFDX.js";import"../../../__chunks__/chunk-II4YGYVN.js";import"../../../__chunks__/chunk-26GS6QMF.js";import"../../../__chunks__/chunk-R7XFYQRR.js";import"../../../__chunks__/chunk-NFWRULG5.js";import"../../../__chunks__/chunk-CALTQQB2.js";import"../../../__chunks__/chunk-WOK66U3L.js";import"../../../__chunks__/chunk-MWUPZQEA.js";import"../../../__chunks__/chunk-WODTNYFW.js";import"../../../__chunks__/chunk-PFSDIGVC.js";import"../../../__chunks__/chunk-47XDMA2I.js";import"../../../__chunks__/chunk-IT36ZVBY.js";import"../../../__chunks__/chunk-TXFJLYWY.js";import"../../../__chunks__/chunk-PAN3P72O.js";import"../../../__chunks__/chunk-OGKASO74.js";import"../../../__chunks__/chunk-JTFC27T3.js";import"../../../__chunks__/chunk-NLU2B6MT.js";import"../../../__chunks__/chunk-SFQFF2AF.js";import"../../../__chunks__/chunk-LOEOBGHO.js";import"../../../__chunks__/chunk-THWVY45P.js";import"../../../__chunks__/chunk-JW7ZCUB4.js";import"../../../__chunks__/chunk-BZYEY4V6.js";import"../../../__chunks__/chunk-T2T274WL.js";import"../../../__chunks__/chunk-XK4XOW72.js";import"../../../__chunks__/chunk-KLFPAZSS.js";import"../../../__chunks__/chunk-HUMOP4SH.js";import"../../../__chunks__/chunk-OF3VHHUR.js";import"../../../__chunks__/chunk-XNGSESTQ.js";import"../../../__chunks__/chunk-QCDTSD7D.js";import"../../../__chunks__/chunk-EQSNZZK2.js";import"../../../__chunks__/chunk-X42PRFW5.js";import"../../../__chunks__/chunk-L4NUARXU.js";import"../../../__chunks__/chunk-2ZZGIRFH.js";import"../../../__chunks__/chunk-WX3GX6XK.js";import"../../../__chunks__/chunk-KMYVCLT7.js";import"../../../__chunks__/chunk-FO7X4ADW.js";import"../../../__chunks__/chunk-OLAMOBMX.js";import"../../../__chunks__/chunk-2H7LOAZX.js";import"../../../__chunks__/chunk-6CCBMGUV.js";import"../../../__chunks__/chunk-KWQPHBRJ.js";import"../../../__chunks__/chunk-F2S3MMT7.js";import"../../../__chunks__/chunk-7WXEH6OF.js";import"../../../__chunks__/chunk-FR666LAK.js";import"../../../__chunks__/chunk-YRZKLN43.js";import"../../../__chunks__/chunk-3YZTGC7D.js";import"../../../__chunks__/chunk-ZRD6IVNQ.js";import"../../../__chunks__/chunk-4M54TFO5.js";import"../../../__chunks__/chunk-AKZWT5Q4.js";import"../../../__chunks__/chunk-AWGSNOPF.js";import"../../../__chunks__/chunk-6OMT5BIR.js";import"../../../__chunks__/chunk-CWN3H5YB.js";import"../../../__chunks__/chunk-Y4I6Y7XD.js";import"../../../__chunks__/chunk-36NZZB3P.js";import"../../../__chunks__/chunk-O4MH3N25.js";import"../../../__chunks__/chunk-CXL6FFJW.js";import"../../../__chunks__/chunk-N3QTYKLF.js";import"../../../__chunks__/chunk-HGEGFQPE.js";import"../../../__chunks__/chunk-QSFNTANO.js";import"../../../__chunks__/chunk-SAVTSQ5J.js";import"../../../__chunks__/chunk-BQBE7OZR.js";import"../../../__chunks__/chunk-LVCWBXY5.js";import"../../../__chunks__/chunk-ZFTC563M.js";import"../../../__chunks__/chunk-7SDUISK7.js";import"../../../__chunks__/chunk-YWZIMKWY.js";import"../../../__chunks__/chunk-CUXQLR65.js";import"../../../__chunks__/chunk-LXRRORKB.js";import"../../../__chunks__/chunk-6YEGH564.js";import"../../../__chunks__/chunk-NCGVENKI.js";import"../../../__chunks__/chunk-7UE5IQU5.js";import"../../../__chunks__/chunk-ZHMC3BOL.js";import"../../../__chunks__/chunk-CCMLFI4B.js";import"../../../__chunks__/chunk-BQNI2XMA.js";import"../../../__chunks__/chunk-7TW5V77R.js";import"../../../__chunks__/chunk-IMICLZFX.js";import"../../../__chunks__/chunk-XE3PX4TH.js";import"../../../__chunks__/chunk-H6BZGL2Y.js";import"../../../__chunks__/chunk-UERHZXFA.js";import"../../../__chunks__/chunk-2D4V643M.js";import"../../../__chunks__/chunk-5Z26W46O.js";import"../../../__chunks__/chunk-J56MNMGD.js";import"../../../__chunks__/chunk-CCJG3WLD.js";import"../../../__chunks__/chunk-SNQ7GR7D.js";import"../../../__chunks__/chunk-2PCYLQVD.js";import"../../../__chunks__/chunk-TN3IL6YQ.js";import"../../../__chunks__/chunk-W3AEQVWC.js";import"../../../__chunks__/chunk-4BH73PZ7.js";import"../../../__chunks__/chunk-ZYJTJW6F.js";import"../../../__chunks__/chunk-FDI635JG.js";import"../../../__chunks__/chunk-N7MHQ6JT.js";import"../../../__chunks__/chunk-SAQ2TZS4.js";import"../../../__chunks__/chunk-5DJROO27.js";import"../../../__chunks__/chunk-3DHA63I3.js";import"../../../__chunks__/chunk-RWXEQYH5.js";import"../../../__chunks__/chunk-3KLD67LQ.js";import"../../../__chunks__/chunk-OEAXJ6GI.js";import"../../../__chunks__/chunk-RALSJ7UN.js";import"../../../__chunks__/chunk-GGMEVY45.js";import"../../../__chunks__/chunk-XSPZYR2Y.js";import"../../../__chunks__/chunk-PFIDFT7V.js";import"../../../__chunks__/chunk-CQQ3PEXQ.js";import"../../../__chunks__/chunk-CHYGQARZ.js";import"../../../__chunks__/chunk-E2MPP7IU.js";import"../../../__chunks__/chunk-PAWTNFV7.js";import"../../../__chunks__/chunk-NZODIBV5.js";import"../../../__chunks__/chunk-ENNL4J7D.js";import"../../../__chunks__/chunk-6CPBUAAL.js";import"../../../__chunks__/chunk-LT2CHT2Q.js";import"../../../__chunks__/chunk-QAEM4TEU.js";import"../../../__chunks__/chunk-NBV2WHBV.js";import"../../../__chunks__/chunk-Q6JNBK3G.js";import"../../../__chunks__/chunk-RILMOUCS.js";import"../../../__chunks__/chunk-BPYUN5PX.js";import"../../../__chunks__/chunk-WISLI42M.js";import"../../../__chunks__/chunk-W7SO52DM.js";import"../../../__chunks__/chunk-PXHBOM4A.js";import"../../../__chunks__/chunk-6XR6BLIB.js";import"../../../__chunks__/chunk-5KGDRZSV.js";import"../../../__chunks__/chunk-HGOHQNWK.js";import"../../../__chunks__/chunk-WTIKHG7D.js";import"../../../__chunks__/chunk-BIMLXPLA.js";import"../../../__chunks__/chunk-VDM7TRM2.js";import"../../../__chunks__/chunk-3JBACTOP.js";import"../../../__chunks__/chunk-J42ZO72F.js";import"../../../__chunks__/chunk-6ZGFYJ6T.js";import"../../../__chunks__/chunk-VNGKH6BT.js";import"../../../__chunks__/chunk-QPYVFYAD.js";import"../../../__chunks__/chunk-OWBHRN3S.js";import"../../../__chunks__/chunk-3HHAVSUJ.js";import"../../../__chunks__/chunk-VG7UO2NZ.js";import"../../../__chunks__/chunk-6WZ7DVP7.js";import"../../../__chunks__/chunk-IDD4XRFL.js";import"../../../__chunks__/chunk-JNKC425B.js";import"../../../__chunks__/chunk-X2JZA2ND.js";import"../../../__chunks__/chunk-BZUMXHQT.js";import"../../../__chunks__/chunk-WQFSDAGL.js";import"../../../__chunks__/chunk-RVXC64US.js";import"../../../__chunks__/chunk-7YHU2LQD.js";import"../../../__chunks__/chunk-A2R2BMVL.js";import"../../../__chunks__/chunk-FDSDVDKW.js";import"../../../__chunks__/chunk-27DX5WIQ.js";import"../../../__chunks__/chunk-326XWAT2.js";import"../../../__chunks__/chunk-4WSWGHWG.js";import"../../../__chunks__/chunk-YIHHOJCM.js";import"../../../__chunks__/chunk-4SD7Y2KM.js";import"../../../__chunks__/chunk-W6HPOJ7Z.js";import"../../../__chunks__/chunk-6LITAK4Z.js";import"../../../__chunks__/chunk-LIRR6LCS.js";import"../../../__chunks__/chunk-GVCPEY3I.js";import"../../../__chunks__/chunk-2C7GRV4K.js";import"../../../__chunks__/chunk-XTDLK5SN.js";import"../../../__chunks__/chunk-7CT2Q6BT.js";import"../../../__chunks__/chunk-XDZ2AX2X.js";import"../../../__chunks__/chunk-P7WGFKOM.js";import"../../../__chunks__/chunk-HBP5N4FR.js";export{a as WebWalletLoginButton};
1
+ "use strict";import"../../../__chunks__/chunk-WOY3DRDS.js";import{a}from"../../../__chunks__/chunk-OWPBBGMS.js";import"../../../__chunks__/chunk-FTE2VXGC.js";import"../../../__chunks__/chunk-E2Q2BLG6.js";import"../../../__chunks__/chunk-LGBANZIL.js";import"../../../__chunks__/chunk-BEQE7IUL.js";import"../../../__chunks__/chunk-F2GLDVD4.js";import"../../../__chunks__/chunk-7U6U7YK7.js";import"../../../__chunks__/chunk-JCAUBGCB.js";import"../../../__chunks__/chunk-C7FDEP42.js";import"../../../__chunks__/chunk-WJGL6LVA.js";import"../../../__chunks__/chunk-OCMDIV3Q.js";import"../../../__chunks__/chunk-LK5TR7MI.js";import"../../../__chunks__/chunk-KMTPVLTX.js";import"../../../__chunks__/chunk-TKIIHBF2.js";import"../../../__chunks__/chunk-ATEFCARH.js";import"../../../__chunks__/chunk-JFXVZGSY.js";import"../../../__chunks__/chunk-TXAITGIS.js";import"../../../__chunks__/chunk-EV54OSTP.js";import"../../../__chunks__/chunk-KOH3SXG4.js";import"../../../__chunks__/chunk-NR47PJH7.js";import"../../../__chunks__/chunk-VC5MO5MK.js";import"../../../__chunks__/chunk-BC6ZREC3.js";import"../../../__chunks__/chunk-XAQNBFSL.js";import"../../../__chunks__/chunk-5HMS5KVK.js";import"../../../__chunks__/chunk-53GKFOIV.js";import"../../../__chunks__/chunk-NWZRIDQH.js";import"../../../__chunks__/chunk-YAR2KJ42.js";import"../../../__chunks__/chunk-BIRHD42W.js";import"../../../__chunks__/chunk-FZMRVALH.js";import"../../../__chunks__/chunk-CN2FDSOR.js";import"../../../__chunks__/chunk-37ZHJ2BK.js";import"../../../__chunks__/chunk-F7XKTZUU.js";import"../../../__chunks__/chunk-EA6JYINF.js";import"../../../__chunks__/chunk-ELWERAIL.js";import"../../../__chunks__/chunk-QUO3WQQP.js";import"../../../__chunks__/chunk-WGNJV6FV.js";import"../../../__chunks__/chunk-KZR7TQ7H.js";import"../../../__chunks__/chunk-XOZ662VA.js";import"../../../__chunks__/chunk-NAN2H6P3.js";import"../../../__chunks__/chunk-LO5NNAIV.js";import"../../../__chunks__/chunk-KTZ6NJYR.js";import"../../../__chunks__/chunk-4QFFFK6F.js";import"../../../__chunks__/chunk-Q7E4ZRPH.js";import"../../../__chunks__/chunk-5HIT6UUN.js";import"../../../__chunks__/chunk-QLIKP427.js";import"../../../__chunks__/chunk-UHAAGLFU.js";import"../../../__chunks__/chunk-HH5S5FOE.js";import"../../../__chunks__/chunk-NTHQWZZ3.js";import"../../../__chunks__/chunk-22UA5SNR.js";import"../../../__chunks__/chunk-YY5JNOQM.js";import"../../../__chunks__/chunk-BURHE673.js";import"../../../__chunks__/chunk-656RZ3WN.js";import"../../../__chunks__/chunk-C47S55X2.js";import"../../../__chunks__/chunk-J2MUUM2F.js";import"../../../__chunks__/chunk-KK4LJZOS.js";import"../../../__chunks__/chunk-MLJSHV5D.js";import"../../../__chunks__/chunk-JDPVEID2.js";import"../../../__chunks__/chunk-ANQNJBHH.js";import"../../../__chunks__/chunk-53AGKYIW.js";import"../../../__chunks__/chunk-5WNCIKLU.js";import"../../../__chunks__/chunk-V527ZUEP.js";import"../../../__chunks__/chunk-7WYU7PQV.js";import"../../../__chunks__/chunk-3ZDN74GT.js";import"../../../__chunks__/chunk-YZPNAKM3.js";import"../../../__chunks__/chunk-6QTFK4P6.js";import"../../../__chunks__/chunk-LL3QDDDA.js";import"../../../__chunks__/chunk-FBHNJJZH.js";import"../../../__chunks__/chunk-CVVADG26.js";import"../../../__chunks__/chunk-KEQTNP4F.js";import"../../../__chunks__/chunk-65QWOSRD.js";import"../../../__chunks__/chunk-JLZCJGHU.js";import"../../../__chunks__/chunk-4JP4CKHO.js";import"../../../__chunks__/chunk-YNBIYUSB.js";import"../../../__chunks__/chunk-HGNKRKKA.js";import"../../../__chunks__/chunk-3U7QBETU.js";import"../../../__chunks__/chunk-DBD6N2CW.js";import"../../../__chunks__/chunk-K7EQVIHG.js";import"../../../__chunks__/chunk-STLFRDLP.js";import"../../../__chunks__/chunk-VVGYXB6D.js";import"../../../__chunks__/chunk-W4I6IVR2.js";import"../../../__chunks__/chunk-C3PGSWQL.js";import"../../../__chunks__/chunk-ED6BJJBA.js";import"../../../__chunks__/chunk-56XNRIN5.js";import"../../../__chunks__/chunk-UWMYMEYR.js";import"../../../__chunks__/chunk-XNFCZFZP.js";import"../../../__chunks__/chunk-MIIBTD2F.js";import"../../../__chunks__/chunk-IHYE5CJR.js";import"../../../__chunks__/chunk-7WNIDY4A.js";import"../../../__chunks__/chunk-ORJ3F5OW.js";import"../../../__chunks__/chunk-BYDVRFNS.js";import"../../../__chunks__/chunk-T2OP32V2.js";import"../../../__chunks__/chunk-VMYGZ6FM.js";import"../../../__chunks__/chunk-E5RWYVP5.js";import"../../../__chunks__/chunk-EBWTYZ5R.js";import"../../../__chunks__/chunk-73E2DD7R.js";import"../../../__chunks__/chunk-52SRRYZK.js";import"../../../__chunks__/chunk-2WP7OVEE.js";import"../../../__chunks__/chunk-U3TQIHS4.js";import"../../../__chunks__/chunk-JRB2SSEU.js";import"../../../__chunks__/chunk-LVXEGFDX.js";import"../../../__chunks__/chunk-II4YGYVN.js";import"../../../__chunks__/chunk-26GS6QMF.js";import"../../../__chunks__/chunk-R7XFYQRR.js";import"../../../__chunks__/chunk-NFWRULG5.js";import"../../../__chunks__/chunk-CALTQQB2.js";import"../../../__chunks__/chunk-WOK66U3L.js";import"../../../__chunks__/chunk-MWUPZQEA.js";import"../../../__chunks__/chunk-WODTNYFW.js";import"../../../__chunks__/chunk-PFSDIGVC.js";import"../../../__chunks__/chunk-47XDMA2I.js";import"../../../__chunks__/chunk-IT36ZVBY.js";import"../../../__chunks__/chunk-TXFJLYWY.js";import"../../../__chunks__/chunk-PAN3P72O.js";import"../../../__chunks__/chunk-OGKASO74.js";import"../../../__chunks__/chunk-JTFC27T3.js";import"../../../__chunks__/chunk-NLU2B6MT.js";import"../../../__chunks__/chunk-SFQFF2AF.js";import"../../../__chunks__/chunk-LOEOBGHO.js";import"../../../__chunks__/chunk-THWVY45P.js";import"../../../__chunks__/chunk-JW7ZCUB4.js";import"../../../__chunks__/chunk-BZYEY4V6.js";import"../../../__chunks__/chunk-T2T274WL.js";import"../../../__chunks__/chunk-XK4XOW72.js";import"../../../__chunks__/chunk-KLFPAZSS.js";import"../../../__chunks__/chunk-HUMOP4SH.js";import"../../../__chunks__/chunk-OF3VHHUR.js";import"../../../__chunks__/chunk-XNGSESTQ.js";import"../../../__chunks__/chunk-QCDTSD7D.js";import"../../../__chunks__/chunk-EQSNZZK2.js";import"../../../__chunks__/chunk-X42PRFW5.js";import"../../../__chunks__/chunk-L4NUARXU.js";import"../../../__chunks__/chunk-2ZZGIRFH.js";import"../../../__chunks__/chunk-WX3GX6XK.js";import"../../../__chunks__/chunk-KMYVCLT7.js";import"../../../__chunks__/chunk-FO7X4ADW.js";import"../../../__chunks__/chunk-OLAMOBMX.js";import"../../../__chunks__/chunk-2H7LOAZX.js";import"../../../__chunks__/chunk-6CCBMGUV.js";import"../../../__chunks__/chunk-KWQPHBRJ.js";import"../../../__chunks__/chunk-F2S3MMT7.js";import"../../../__chunks__/chunk-7WXEH6OF.js";import"../../../__chunks__/chunk-FR666LAK.js";import"../../../__chunks__/chunk-YRZKLN43.js";import"../../../__chunks__/chunk-3YZTGC7D.js";import"../../../__chunks__/chunk-ZRD6IVNQ.js";import"../../../__chunks__/chunk-4M54TFO5.js";import"../../../__chunks__/chunk-AKZWT5Q4.js";import"../../../__chunks__/chunk-AWGSNOPF.js";import"../../../__chunks__/chunk-6OMT5BIR.js";import"../../../__chunks__/chunk-CWN3H5YB.js";import"../../../__chunks__/chunk-Y4I6Y7XD.js";import"../../../__chunks__/chunk-36NZZB3P.js";import"../../../__chunks__/chunk-O4MH3N25.js";import"../../../__chunks__/chunk-CXL6FFJW.js";import"../../../__chunks__/chunk-N3QTYKLF.js";import"../../../__chunks__/chunk-HGEGFQPE.js";import"../../../__chunks__/chunk-QSFNTANO.js";import"../../../__chunks__/chunk-SAVTSQ5J.js";import"../../../__chunks__/chunk-BQBE7OZR.js";import"../../../__chunks__/chunk-LVCWBXY5.js";import"../../../__chunks__/chunk-ZFTC563M.js";import"../../../__chunks__/chunk-7SDUISK7.js";import"../../../__chunks__/chunk-YWZIMKWY.js";import"../../../__chunks__/chunk-CUXQLR65.js";import"../../../__chunks__/chunk-LXRRORKB.js";import"../../../__chunks__/chunk-6YEGH564.js";import"../../../__chunks__/chunk-NCGVENKI.js";import"../../../__chunks__/chunk-7UE5IQU5.js";import"../../../__chunks__/chunk-ZHMC3BOL.js";import"../../../__chunks__/chunk-CCMLFI4B.js";import"../../../__chunks__/chunk-BQNI2XMA.js";import"../../../__chunks__/chunk-7TW5V77R.js";import"../../../__chunks__/chunk-IMICLZFX.js";import"../../../__chunks__/chunk-XE3PX4TH.js";import"../../../__chunks__/chunk-H6BZGL2Y.js";import"../../../__chunks__/chunk-UERHZXFA.js";import"../../../__chunks__/chunk-2D4V643M.js";import"../../../__chunks__/chunk-5Z26W46O.js";import"../../../__chunks__/chunk-J56MNMGD.js";import"../../../__chunks__/chunk-CCJG3WLD.js";import"../../../__chunks__/chunk-SNQ7GR7D.js";import"../../../__chunks__/chunk-2PCYLQVD.js";import"../../../__chunks__/chunk-TN3IL6YQ.js";import"../../../__chunks__/chunk-W3AEQVWC.js";import"../../../__chunks__/chunk-4BH73PZ7.js";import"../../../__chunks__/chunk-ZYJTJW6F.js";import"../../../__chunks__/chunk-FDI635JG.js";import"../../../__chunks__/chunk-N7MHQ6JT.js";import"../../../__chunks__/chunk-SAQ2TZS4.js";import"../../../__chunks__/chunk-5DJROO27.js";import"../../../__chunks__/chunk-3DHA63I3.js";import"../../../__chunks__/chunk-RWXEQYH5.js";import"../../../__chunks__/chunk-3KLD67LQ.js";import"../../../__chunks__/chunk-OEAXJ6GI.js";import"../../../__chunks__/chunk-RALSJ7UN.js";import"../../../__chunks__/chunk-GGMEVY45.js";import"../../../__chunks__/chunk-XSPZYR2Y.js";import"../../../__chunks__/chunk-PFIDFT7V.js";import"../../../__chunks__/chunk-CQQ3PEXQ.js";import"../../../__chunks__/chunk-CHYGQARZ.js";import"../../../__chunks__/chunk-E2MPP7IU.js";import"../../../__chunks__/chunk-PAWTNFV7.js";import"../../../__chunks__/chunk-NZODIBV5.js";import"../../../__chunks__/chunk-ENNL4J7D.js";import"../../../__chunks__/chunk-6CPBUAAL.js";import"../../../__chunks__/chunk-LT2CHT2Q.js";import"../../../__chunks__/chunk-QAEM4TEU.js";import"../../../__chunks__/chunk-NBV2WHBV.js";import"../../../__chunks__/chunk-Q6JNBK3G.js";import"../../../__chunks__/chunk-RILMOUCS.js";import"../../../__chunks__/chunk-BPYUN5PX.js";import"../../../__chunks__/chunk-WISLI42M.js";import"../../../__chunks__/chunk-W7SO52DM.js";import"../../../__chunks__/chunk-PXHBOM4A.js";import"../../../__chunks__/chunk-6XR6BLIB.js";import"../../../__chunks__/chunk-5KGDRZSV.js";import"../../../__chunks__/chunk-HGOHQNWK.js";import"../../../__chunks__/chunk-WTIKHG7D.js";import"../../../__chunks__/chunk-BIMLXPLA.js";import"../../../__chunks__/chunk-VDM7TRM2.js";import"../../../__chunks__/chunk-3JBACTOP.js";import"../../../__chunks__/chunk-J42ZO72F.js";import"../../../__chunks__/chunk-6ZGFYJ6T.js";import"../../../__chunks__/chunk-VNGKH6BT.js";import"../../../__chunks__/chunk-QPYVFYAD.js";import"../../../__chunks__/chunk-OWBHRN3S.js";import"../../../__chunks__/chunk-3HHAVSUJ.js";import"../../../__chunks__/chunk-VG7UO2NZ.js";import"../../../__chunks__/chunk-6WZ7DVP7.js";import"../../../__chunks__/chunk-IDD4XRFL.js";import"../../../__chunks__/chunk-JNKC425B.js";import"../../../__chunks__/chunk-X2JZA2ND.js";import"../../../__chunks__/chunk-BZUMXHQT.js";import"../../../__chunks__/chunk-WQFSDAGL.js";import"../../../__chunks__/chunk-RVXC64US.js";import"../../../__chunks__/chunk-7YHU2LQD.js";import"../../../__chunks__/chunk-A2R2BMVL.js";import"../../../__chunks__/chunk-FDSDVDKW.js";import"../../../__chunks__/chunk-27DX5WIQ.js";import"../../../__chunks__/chunk-326XWAT2.js";import"../../../__chunks__/chunk-4WSWGHWG.js";import"../../../__chunks__/chunk-YIHHOJCM.js";import"../../../__chunks__/chunk-4SD7Y2KM.js";import"../../../__chunks__/chunk-W6HPOJ7Z.js";import"../../../__chunks__/chunk-6LITAK4Z.js";import"../../../__chunks__/chunk-LIRR6LCS.js";import"../../../__chunks__/chunk-GVCPEY3I.js";import"../../../__chunks__/chunk-2C7GRV4K.js";import"../../../__chunks__/chunk-XTDLK5SN.js";import"../../../__chunks__/chunk-7CT2Q6BT.js";import"../../../__chunks__/chunk-XDZ2AX2X.js";import"../../../__chunks__/chunk-P7WGFKOM.js";import"../../../__chunks__/chunk-HBP5N4FR.js";export{a as WebWalletLoginButton};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
1
  import{a as i}from"./chunk-FTE2VXGC.js";import{a as o}from"./chunk-F2GLDVD4.js";import{a as n}from"./chunk-7U6U7YK7.js";import{m as e}from"./chunk-HBP5N4FR.js";e();import L from"react";var v=({children:a,token:t,className:l="dapp-web-wallet-login",callbackRoute:s,buttonClassName:r,nativeAuth:p,"data-testid":d,loginButtonText:g="MultiversX Web Wallet",disabled:m,customWalletAddress:W})=>{let[b]=n({callbackRoute:s,nativeAuth:p,token:t,customWalletAddress:W}),u=o(t);return L.createElement(i,{onLogin:()=>{b()},className:l,btnClassName:r,text:g,"data-testid":d,disabled:m||u},a)};export{v as a};
2
- //# sourceMappingURL=chunk-XB34L3W3.js.map
2
+ //# sourceMappingURL=chunk-OWPBBGMS.js.map
@@ -1,2 +1,2 @@
1
- import{a as d}from"./chunk-XB34L3W3.js";import{a as p}from"./chunk-XFODQQBF.js";import{b as c}from"./chunk-V54HNRTY.js";import{a as g}from"./chunk-WVZ6SDRO.js";import{a as m}from"./chunk-I3OI6GN5.js";import{a as s}from"./chunk-KHUIBGLW.js";import{a}from"./chunk-UHAAGLFU.js";import{b as t}from"./chunk-K7EQVIHG.js";import{m as l}from"./chunk-HBP5N4FR.js";l();import o,{useEffect as N}from"react";import i from"classnames";var U=({loginRoute:e,title:x="Login",className:u="dapp-unlock-page",LedgerLoginButtonText:B="Ledger",description:L="Pick a login method",WalletConnectLoginButtonText:f="xPortal App",ExtensionLoginButtonText:b="Extension",OperaWalletLoginButtonText:T="Opera Crypto Wallet",WebWalletLoginButtonText:W="Web wallet"})=>{let n={wrapper:i(c.home,t.dFlex,t.flexFill,t.alignItemsCenter,u),title:t.mb4,description:t.mb4,cardContainer:t.mAuto,card:i(t.card,t.my4,t.textCenter),cardBody:i(t.cardBody,t.py4,t.px2,t.pxSm2,t.mxLg4)},{isLoggedIn:r}=a();return N(()=>{r&&window&&(window.location.href=e)},[r]),o.createElement("div",{className:n.wrapper},o.createElement("div",{className:n.cardContainer},o.createElement("div",{className:n.card},o.createElement("div",{className:n.cardBody},o.createElement("h4",{className:i(t.h4,t.title)},x),o.createElement("p",{className:n.description},L),o.createElement(s,{callbackRoute:e,loginButtonText:b}),o.createElement(g,{callbackRoute:e,loginButtonText:T}),o.createElement(d,{callbackRoute:e,loginButtonText:W}),o.createElement(m,{loginButtonText:B,callbackRoute:e}),o.createElement(p,{callbackRoute:e,loginButtonText:f})))))};export{U as a};
2
- //# sourceMappingURL=chunk-FS6DY7LA.js.map
1
+ import{a as d}from"./chunk-OWPBBGMS.js";import{a as p}from"./chunk-XFODQQBF.js";import{b as c}from"./chunk-V54HNRTY.js";import{a as g}from"./chunk-WVZ6SDRO.js";import{a as m}from"./chunk-I3OI6GN5.js";import{a as s}from"./chunk-KHUIBGLW.js";import{a}from"./chunk-UHAAGLFU.js";import{b as t}from"./chunk-K7EQVIHG.js";import{m as l}from"./chunk-HBP5N4FR.js";l();import o,{useEffect as N}from"react";import i from"classnames";var U=({loginRoute:e,title:x="Login",className:u="dapp-unlock-page",LedgerLoginButtonText:B="Ledger",description:L="Pick a login method",WalletConnectLoginButtonText:f="xPortal App",ExtensionLoginButtonText:b="Extension",OperaWalletLoginButtonText:T="Opera Crypto Wallet",WebWalletLoginButtonText:W="Web wallet"})=>{let n={wrapper:i(c.home,t.dFlex,t.flexFill,t.alignItemsCenter,u),title:t.mb4,description:t.mb4,cardContainer:t.mAuto,card:i(t.card,t.my4,t.textCenter),cardBody:i(t.cardBody,t.py4,t.px2,t.pxSm2,t.mxLg4)},{isLoggedIn:r}=a();return N(()=>{r&&window&&(window.location.href=e)},[r]),o.createElement("div",{className:n.wrapper},o.createElement("div",{className:n.cardContainer},o.createElement("div",{className:n.card},o.createElement("div",{className:n.cardBody},o.createElement("h4",{className:i(t.h4,t.title)},x),o.createElement("p",{className:n.description},L),o.createElement(s,{callbackRoute:e,loginButtonText:b}),o.createElement(g,{callbackRoute:e,loginButtonText:T}),o.createElement(d,{callbackRoute:e,loginButtonText:W}),o.createElement(m,{loginButtonText:B,callbackRoute:e}),o.createElement(p,{callbackRoute:e,loginButtonText:f})))))};export{U as a};
2
+ //# sourceMappingURL=chunk-QMHPDGFL.js.map
@@ -0,0 +1,2 @@
1
+ import{a as e}from"./chunk-QMHPDGFL.js";import{g as r,m as o}from"./chunk-HBP5N4FR.js";var a={};r(a,{UnlockPage:()=>e});o();export{a};
2
+ //# sourceMappingURL=chunk-VMCLKRIT.js.map
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- import { UseWebWalletLoginPropsType } from 'hooks/login/useWebWalletLogin';
2
+ import { UseWebWalletLoginPropsType } from '../../../hooks/login/useWebWalletLogin';
3
3
  import { WithClassnameType } from '../../types';
4
4
  export interface WebWalletLoginButtonPropsType extends UseWebWalletLoginPropsType, WithClassnameType {
5
5
  buttonClassName?: string;
@@ -1,4 +1,4 @@
1
- "use strict";var yi=Object.create;var Ce=Object.defineProperty,Ti=Object.defineProperties,bi=Object.getOwnPropertyDescriptor,Si=Object.getOwnPropertyDescriptors,wi=Object.getOwnPropertyNames,Xe=Object.getOwnPropertySymbols,vi=Object.getPrototypeOf,zo=Object.prototype.hasOwnProperty,Yn=Object.prototype.propertyIsEnumerable;var Xn=(e,o,n)=>o in e?Ce(e,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[o]=n,u=(e,o)=>{for(var n in o||(o={}))zo.call(o,n)&&Xn(e,n,o[n]);if(Xe)for(var n of Xe(o))Yn.call(o,n)&&Xn(e,n,o[n]);return e},b=(e,o)=>Ti(e,Si(o));var Ye=(e,o)=>{var n={};for(var r in e)zo.call(e,r)&&o.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Xe)for(var r of Xe(e))o.indexOf(r)<0&&Yn.call(e,r)&&(n[r]=e[r]);return n};var h=(e,o)=>()=>(e&&(o=e(e=0)),o);var F=(e,o)=>()=>(o||e((o={exports:{}}).exports,o),o.exports),_e=(e,o)=>{for(var n in o)Ce(e,n,{get:o[n],enumerable:!0})},Zn=(e,o,n,r)=>{if(o&&typeof o=="object"||typeof o=="function")for(let a of wi(o))!zo.call(e,a)&&a!==n&&Ce(e,a,{get:()=>o[a],enumerable:!(r=bi(o,a))||r.enumerable});return e};var T=(e,o,n)=>(n=e!=null?yi(vi(e)):{},Zn(o||!e||!e.__esModule?Ce(n,"default",{value:e,enumerable:!0}):n,e)),Re=e=>Zn(Ce({},"__esModule",{value:!0}),e);var k=(e,o,n)=>new Promise((r,a)=>{var s=l=>{try{d(n.next(l))}catch(f){a(f)}},m=l=>{try{d(n.throw(l))}catch(f){a(f)}},d=l=>l.done?r(l.value):Promise.resolve(l.value).then(s,m);d((n=n.apply(e,o)).next())});var et=F(Ze=>{"use strict";t();Ze.byteLength=Ai;Ze.toByteArray=Li;Ze.fromByteArray=Ci;var Y=[],$=[],ki=typeof Uint8Array!="undefined"?Uint8Array:Array,qo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(de=0,Jn=qo.length;de<Jn;++de)Y[de]=qo[de],$[qo.charCodeAt(de)]=de;var de,Jn;$["-".charCodeAt(0)]=62;$["_".charCodeAt(0)]=63;function Qn(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 Ai(e){var o=Qn(e),n=o[0],r=o[1];return(n+r)*3/4-r}function Ii(e,o,n){return(o+n)*3/4-n}function Li(e){var o,n=Qn(e),r=n[0],a=n[1],s=new ki(Ii(e,r,a)),m=0,d=a>0?r-4:r,l;for(l=0;l<d;l+=4)o=$[e.charCodeAt(l)]<<18|$[e.charCodeAt(l+1)]<<12|$[e.charCodeAt(l+2)]<<6|$[e.charCodeAt(l+3)],s[m++]=o>>16&255,s[m++]=o>>8&255,s[m++]=o&255;return a===2&&(o=$[e.charCodeAt(l)]<<2|$[e.charCodeAt(l+1)]>>4,s[m++]=o&255),a===1&&(o=$[e.charCodeAt(l)]<<10|$[e.charCodeAt(l+1)]<<4|$[e.charCodeAt(l+2)]>>2,s[m++]=o>>8&255,s[m++]=o&255),s}function Ei(e){return Y[e>>18&63]+Y[e>>12&63]+Y[e>>6&63]+Y[e&63]}function Ni(e,o,n){for(var r,a=[],s=o;s<n;s+=3)r=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(e[s+2]&255),a.push(Ei(r));return a.join("")}function Ci(e){for(var o,n=e.length,r=n%3,a=[],s=16383,m=0,d=n-r;m<d;m+=s)a.push(Ni(e,m,m+s>d?d:m+s));return r===1?(o=e[n-1],a.push(Y[o>>2]+Y[o<<4&63]+"==")):r===2&&(o=(e[n-2]<<8)+e[n-1],a.push(Y[o>>10]+Y[o>>4&63]+Y[o<<2&63]+"=")),a.join("")}});var ot=F(Ko=>{t();Ko.read=function(e,o,n,r,a){var s,m,d=a*8-r-1,l=(1<<d)-1,f=l>>1,y=-7,g=n?a-1:0,w=n?-1:1,v=e[o+g];for(g+=w,s=v&(1<<-y)-1,v>>=-y,y+=d;y>0;s=s*256+e[o+g],g+=w,y-=8);for(m=s&(1<<-y)-1,s>>=-y,y+=r;y>0;m=m*256+e[o+g],g+=w,y-=8);if(s===0)s=1-f;else{if(s===l)return m?NaN:(v?-1:1)*(1/0);m=m+Math.pow(2,r),s=s-f}return(v?-1:1)*m*Math.pow(2,s-r)};Ko.write=function(e,o,n,r,a,s){var m,d,l,f=s*8-a-1,y=(1<<f)-1,g=y>>1,w=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,v=r?0:s-1,S=r?1:-1,C=o<0||o===0&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(d=isNaN(o)?1:0,m=y):(m=Math.floor(Math.log(o)/Math.LN2),o*(l=Math.pow(2,-m))<1&&(m--,l*=2),m+g>=1?o+=w/l:o+=w*Math.pow(2,1-g),o*l>=2&&(m++,l/=2),m+g>=y?(d=0,m=y):m+g>=1?(d=(o*l-1)*Math.pow(2,a),m=m+g):(d=o*Math.pow(2,g-1)*Math.pow(2,a),m=0));a>=8;e[n+v]=d&255,v+=S,d/=256,a-=8);for(m=m<<a|d,f+=a;f>0;e[n+v]=m&255,v+=S,m/=256,f-=8);e[n+v-S]|=C*128}});var gt=F(be=>{"use strict";t();var Xo=et(),Te=ot(),nt=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;be.Buffer=_;be.SlowBuffer=Bi;be.INSPECT_MAX_BYTES=50;var Je=2147483647;be.kMaxLength=Je;_.TYPED_ARRAY_SUPPORT=Ri();!_.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 Ri(){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(_.prototype,"parent",{enumerable:!0,get:function(){if(!!_.isBuffer(this))return this.buffer}});Object.defineProperty(_.prototype,"offset",{enumerable:!0,get:function(){if(!!_.isBuffer(this))return this.byteOffset}});function te(e){if(e>Je)throw new RangeError('The value "'+e+'" is invalid for option "size"');var o=new Uint8Array(e);return Object.setPrototypeOf(o,_.prototype),o}function _(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 Qo(e)}return at(e,o,n)}_.poolSize=8192;function at(e,o,n){if(typeof e=="string")return Di(e,o);if(ArrayBuffer.isView(e))return Oi(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(Z(e,ArrayBuffer)||e&&Z(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Z(e,SharedArrayBuffer)||e&&Z(e.buffer,SharedArrayBuffer)))return Zo(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 _.from(r,o,n);var a=Mi(e);if(a)return a;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return _.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)}_.from=function(e,o,n){return at(e,o,n)};Object.setPrototypeOf(_.prototype,Uint8Array.prototype);Object.setPrototypeOf(_,Uint8Array);function it(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 Pi(e,o,n){return it(e),e<=0?te(e):o!==void 0?typeof n=="string"?te(e).fill(o,n):te(e).fill(o):te(e)}_.alloc=function(e,o,n){return Pi(e,o,n)};function Qo(e){return it(e),te(e<0?0:en(e)|0)}_.allocUnsafe=function(e){return Qo(e)};_.allocUnsafeSlow=function(e){return Qo(e)};function Di(e,o){if((typeof o!="string"||o==="")&&(o="utf8"),!_.isEncoding(o))throw new TypeError("Unknown encoding: "+o);var n=pt(e,o)|0,r=te(n),a=r.write(e,o);return a!==n&&(r=r.slice(0,a)),r}function Yo(e){for(var o=e.length<0?0:en(e.length)|0,n=te(o),r=0;r<o;r+=1)n[r]=e[r]&255;return n}function Oi(e){if(Z(e,Uint8Array)){var o=new Uint8Array(e);return Zo(o.buffer,o.byteOffset,o.byteLength)}return Yo(e)}function Zo(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,_.prototype),r}function Mi(e){if(_.isBuffer(e)){var o=en(e.length)|0,n=te(o);return n.length===0||e.copy(n,0,0,o),n}if(e.length!==void 0)return typeof e.length!="number"||on(e.length)?te(0):Yo(e);if(e.type==="Buffer"&&Array.isArray(e.data))return Yo(e.data)}function en(e){if(e>=Je)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Je.toString(16)+" bytes");return e|0}function Bi(e){return+e!=e&&(e=0),_.alloc(+e)}_.isBuffer=function(o){return o!=null&&o._isBuffer===!0&&o!==_.prototype};_.compare=function(o,n){if(Z(o,Uint8Array)&&(o=_.from(o,o.offset,o.byteLength)),Z(n,Uint8Array)&&(n=_.from(n,n.offset,n.byteLength)),!_.isBuffer(o)||!_.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,a=n.length,s=0,m=Math.min(r,a);s<m;++s)if(o[s]!==n[s]){r=o[s],a=n[s];break}return r<a?-1:a<r?1:0};_.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}};_.concat=function(o,n){if(!Array.isArray(o))throw new TypeError('"list" argument must be an Array of Buffers');if(o.length===0)return _.alloc(0);var r;if(n===void 0)for(n=0,r=0;r<o.length;++r)n+=o[r].length;var a=_.allocUnsafe(n),s=0;for(r=0;r<o.length;++r){var m=o[r];if(Z(m,Uint8Array))s+m.length>a.length?_.from(m).copy(a,s):Uint8Array.prototype.set.call(a,m,s);else if(_.isBuffer(m))m.copy(a,s);else throw new TypeError('"list" argument must be an Array of Buffers');s+=m.length}return a};function pt(e,o){if(_.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Z(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 a=!1;;)switch(o){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return Jo(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n*2;case"hex":return n>>>1;case"base64":return lt(e).length;default:if(a)return r?-1:Jo(e).length;o=(""+o).toLowerCase(),a=!0}}_.byteLength=pt;function Fi(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 Ki(this,o,n);case"utf8":case"utf-8":return st(this,o,n);case"ascii":return zi(this,o,n);case"latin1":case"binary":return qi(this,o,n);case"base64":return Hi(this,o,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Xi(this,o,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}_.prototype._isBuffer=!0;function le(e,o,n){var r=e[o];e[o]=e[n],e[n]=r}_.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)le(this,n,n+1);return this};_.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)le(this,n,n+3),le(this,n+1,n+2);return this};_.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)le(this,n,n+7),le(this,n+1,n+6),le(this,n+2,n+5),le(this,n+3,n+4);return this};_.prototype.toString=function(){var o=this.length;return o===0?"":arguments.length===0?st(this,0,o):Fi.apply(this,arguments)};_.prototype.toLocaleString=_.prototype.toString;_.prototype.equals=function(o){if(!_.isBuffer(o))throw new TypeError("Argument must be a Buffer");return this===o?!0:_.compare(this,o)===0};_.prototype.inspect=function(){var o="",n=be.INSPECT_MAX_BYTES;return o=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(o+=" ... "),"<Buffer "+o+">"};nt&&(_.prototype[nt]=_.prototype.inspect);_.prototype.compare=function(o,n,r,a,s){if(Z(o,Uint8Array)&&(o=_.from(o,o.offset,o.byteLength)),!_.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),a===void 0&&(a=0),s===void 0&&(s=this.length),n<0||r>o.length||a<0||s>this.length)throw new RangeError("out of range index");if(a>=s&&n>=r)return 0;if(a>=s)return-1;if(n>=r)return 1;if(n>>>=0,r>>>=0,a>>>=0,s>>>=0,this===o)return 0;for(var m=s-a,d=r-n,l=Math.min(m,d),f=this.slice(a,s),y=o.slice(n,r),g=0;g<l;++g)if(f[g]!==y[g]){m=f[g],d=y[g];break}return m<d?-1:d<m?1:0};function ct(e,o,n,r,a){if(e.length===0)return-1;if(typeof n=="string"?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,on(n)&&(n=a?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(a)return-1;n=e.length-1}else if(n<0)if(a)n=0;else return-1;if(typeof o=="string"&&(o=_.from(o,r)),_.isBuffer(o))return o.length===0?-1:tt(e,o,n,r,a);if(typeof o=="number")return o=o&255,typeof Uint8Array.prototype.indexOf=="function"?a?Uint8Array.prototype.indexOf.call(e,o,n):Uint8Array.prototype.lastIndexOf.call(e,o,n):tt(e,[o],n,r,a);throw new TypeError("val must be string, number or Buffer")}function tt(e,o,n,r,a){var s=1,m=e.length,d=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;s=2,m/=2,d/=2,n/=2}function l(v,S){return s===1?v[S]:v.readUInt16BE(S*s)}var f;if(a){var y=-1;for(f=n;f<m;f++)if(l(e,f)===l(o,y===-1?0:f-y)){if(y===-1&&(y=f),f-y+1===d)return y*s}else y!==-1&&(f-=f-y),y=-1}else for(n+d>m&&(n=m-d),f=n;f>=0;f--){for(var g=!0,w=0;w<d;w++)if(l(e,f+w)!==l(o,w)){g=!1;break}if(g)return f}return-1}_.prototype.includes=function(o,n,r){return this.indexOf(o,n,r)!==-1};_.prototype.indexOf=function(o,n,r){return ct(this,o,n,r,!0)};_.prototype.lastIndexOf=function(o,n,r){return ct(this,o,n,r,!1)};function Ui(e,o,n,r){n=Number(n)||0;var a=e.length-n;r?(r=Number(r),r>a&&(r=a)):r=a;var s=o.length;r>s/2&&(r=s/2);for(var m=0;m<r;++m){var d=parseInt(o.substr(m*2,2),16);if(on(d))return m;e[n+m]=d}return m}function Wi(e,o,n,r){return Qe(Jo(o,e.length-n),e,n,r)}function Vi(e,o,n,r){return Qe(Ji(o),e,n,r)}function $i(e,o,n,r){return Qe(lt(o),e,n,r)}function Gi(e,o,n,r){return Qe(Qi(o,e.length-n),e,n,r)}_.prototype.write=function(o,n,r,a){if(n===void 0)a="utf8",r=this.length,n=0;else if(r===void 0&&typeof n=="string")a=n,r=this.length,n=0;else if(isFinite(n))n=n>>>0,isFinite(r)?(r=r>>>0,a===void 0&&(a="utf8")):(a=r,r=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var s=this.length-n;if((r===void 0||r>s)&&(r=s),o.length>0&&(r<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");a||(a="utf8");for(var m=!1;;)switch(a){case"hex":return Ui(this,o,n,r);case"utf8":case"utf-8":return Wi(this,o,n,r);case"ascii":case"latin1":case"binary":return Vi(this,o,n,r);case"base64":return $i(this,o,n,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Gi(this,o,n,r);default:if(m)throw new TypeError("Unknown encoding: "+a);a=(""+a).toLowerCase(),m=!0}};_.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Hi(e,o,n){return o===0&&n===e.length?Xo.fromByteArray(e):Xo.fromByteArray(e.slice(o,n))}function st(e,o,n){n=Math.min(e.length,n);for(var r=[],a=o;a<n;){var s=e[a],m=null,d=s>239?4:s>223?3:s>191?2:1;if(a+d<=n){var l,f,y,g;switch(d){case 1:s<128&&(m=s);break;case 2:l=e[a+1],(l&192)===128&&(g=(s&31)<<6|l&63,g>127&&(m=g));break;case 3:l=e[a+1],f=e[a+2],(l&192)===128&&(f&192)===128&&(g=(s&15)<<12|(l&63)<<6|f&63,g>2047&&(g<55296||g>57343)&&(m=g));break;case 4:l=e[a+1],f=e[a+2],y=e[a+3],(l&192)===128&&(f&192)===128&&(y&192)===128&&(g=(s&15)<<18|(l&63)<<12|(f&63)<<6|y&63,g>65535&&g<1114112&&(m=g))}}m===null?(m=65533,d=1):m>65535&&(m-=65536,r.push(m>>>10&1023|55296),m=56320|m&1023),r.push(m),a+=d}return ji(r)}var rt=4096;function ji(e){var o=e.length;if(o<=rt)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<o;)n+=String.fromCharCode.apply(String,e.slice(r,r+=rt));return n}function zi(e,o,n){var r="";n=Math.min(e.length,n);for(var a=o;a<n;++a)r+=String.fromCharCode(e[a]&127);return r}function qi(e,o,n){var r="";n=Math.min(e.length,n);for(var a=o;a<n;++a)r+=String.fromCharCode(e[a]);return r}function Ki(e,o,n){var r=e.length;(!o||o<0)&&(o=0),(!n||n<0||n>r)&&(n=r);for(var a="",s=o;s<n;++s)a+=ep[e[s]];return a}function Xi(e,o,n){for(var r=e.slice(o,n),a="",s=0;s<r.length-1;s+=2)a+=String.fromCharCode(r[s]+r[s+1]*256);return a}_.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 a=this.subarray(o,n);return Object.setPrototypeOf(a,_.prototype),a};function N(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")}_.prototype.readUintLE=_.prototype.readUIntLE=function(o,n,r){o=o>>>0,n=n>>>0,r||N(o,n,this.length);for(var a=this[o],s=1,m=0;++m<n&&(s*=256);)a+=this[o+m]*s;return a};_.prototype.readUintBE=_.prototype.readUIntBE=function(o,n,r){o=o>>>0,n=n>>>0,r||N(o,n,this.length);for(var a=this[o+--n],s=1;n>0&&(s*=256);)a+=this[o+--n]*s;return a};_.prototype.readUint8=_.prototype.readUInt8=function(o,n){return o=o>>>0,n||N(o,1,this.length),this[o]};_.prototype.readUint16LE=_.prototype.readUInt16LE=function(o,n){return o=o>>>0,n||N(o,2,this.length),this[o]|this[o+1]<<8};_.prototype.readUint16BE=_.prototype.readUInt16BE=function(o,n){return o=o>>>0,n||N(o,2,this.length),this[o]<<8|this[o+1]};_.prototype.readUint32LE=_.prototype.readUInt32LE=function(o,n){return o=o>>>0,n||N(o,4,this.length),(this[o]|this[o+1]<<8|this[o+2]<<16)+this[o+3]*16777216};_.prototype.readUint32BE=_.prototype.readUInt32BE=function(o,n){return o=o>>>0,n||N(o,4,this.length),this[o]*16777216+(this[o+1]<<16|this[o+2]<<8|this[o+3])};_.prototype.readIntLE=function(o,n,r){o=o>>>0,n=n>>>0,r||N(o,n,this.length);for(var a=this[o],s=1,m=0;++m<n&&(s*=256);)a+=this[o+m]*s;return s*=128,a>=s&&(a-=Math.pow(2,8*n)),a};_.prototype.readIntBE=function(o,n,r){o=o>>>0,n=n>>>0,r||N(o,n,this.length);for(var a=n,s=1,m=this[o+--a];a>0&&(s*=256);)m+=this[o+--a]*s;return s*=128,m>=s&&(m-=Math.pow(2,8*n)),m};_.prototype.readInt8=function(o,n){return o=o>>>0,n||N(o,1,this.length),this[o]&128?(255-this[o]+1)*-1:this[o]};_.prototype.readInt16LE=function(o,n){o=o>>>0,n||N(o,2,this.length);var r=this[o]|this[o+1]<<8;return r&32768?r|4294901760:r};_.prototype.readInt16BE=function(o,n){o=o>>>0,n||N(o,2,this.length);var r=this[o+1]|this[o]<<8;return r&32768?r|4294901760:r};_.prototype.readInt32LE=function(o,n){return o=o>>>0,n||N(o,4,this.length),this[o]|this[o+1]<<8|this[o+2]<<16|this[o+3]<<24};_.prototype.readInt32BE=function(o,n){return o=o>>>0,n||N(o,4,this.length),this[o]<<24|this[o+1]<<16|this[o+2]<<8|this[o+3]};_.prototype.readFloatLE=function(o,n){return o=o>>>0,n||N(o,4,this.length),Te.read(this,o,!0,23,4)};_.prototype.readFloatBE=function(o,n){return o=o>>>0,n||N(o,4,this.length),Te.read(this,o,!1,23,4)};_.prototype.readDoubleLE=function(o,n){return o=o>>>0,n||N(o,8,this.length),Te.read(this,o,!0,52,8)};_.prototype.readDoubleBE=function(o,n){return o=o>>>0,n||N(o,8,this.length),Te.read(this,o,!1,52,8)};function P(e,o,n,r,a,s){if(!_.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(o>a||o<s)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}_.prototype.writeUintLE=_.prototype.writeUIntLE=function(o,n,r,a){if(o=+o,n=n>>>0,r=r>>>0,!a){var s=Math.pow(2,8*r)-1;P(this,o,n,r,s,0)}var m=1,d=0;for(this[n]=o&255;++d<r&&(m*=256);)this[n+d]=o/m&255;return n+r};_.prototype.writeUintBE=_.prototype.writeUIntBE=function(o,n,r,a){if(o=+o,n=n>>>0,r=r>>>0,!a){var s=Math.pow(2,8*r)-1;P(this,o,n,r,s,0)}var m=r-1,d=1;for(this[n+m]=o&255;--m>=0&&(d*=256);)this[n+m]=o/d&255;return n+r};_.prototype.writeUint8=_.prototype.writeUInt8=function(o,n,r){return o=+o,n=n>>>0,r||P(this,o,n,1,255,0),this[n]=o&255,n+1};_.prototype.writeUint16LE=_.prototype.writeUInt16LE=function(o,n,r){return o=+o,n=n>>>0,r||P(this,o,n,2,65535,0),this[n]=o&255,this[n+1]=o>>>8,n+2};_.prototype.writeUint16BE=_.prototype.writeUInt16BE=function(o,n,r){return o=+o,n=n>>>0,r||P(this,o,n,2,65535,0),this[n]=o>>>8,this[n+1]=o&255,n+2};_.prototype.writeUint32LE=_.prototype.writeUInt32LE=function(o,n,r){return o=+o,n=n>>>0,r||P(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};_.prototype.writeUint32BE=_.prototype.writeUInt32BE=function(o,n,r){return o=+o,n=n>>>0,r||P(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};_.prototype.writeIntLE=function(o,n,r,a){if(o=+o,n=n>>>0,!a){var s=Math.pow(2,8*r-1);P(this,o,n,r,s-1,-s)}var m=0,d=1,l=0;for(this[n]=o&255;++m<r&&(d*=256);)o<0&&l===0&&this[n+m-1]!==0&&(l=1),this[n+m]=(o/d>>0)-l&255;return n+r};_.prototype.writeIntBE=function(o,n,r,a){if(o=+o,n=n>>>0,!a){var s=Math.pow(2,8*r-1);P(this,o,n,r,s-1,-s)}var m=r-1,d=1,l=0;for(this[n+m]=o&255;--m>=0&&(d*=256);)o<0&&l===0&&this[n+m+1]!==0&&(l=1),this[n+m]=(o/d>>0)-l&255;return n+r};_.prototype.writeInt8=function(o,n,r){return o=+o,n=n>>>0,r||P(this,o,n,1,127,-128),o<0&&(o=255+o+1),this[n]=o&255,n+1};_.prototype.writeInt16LE=function(o,n,r){return o=+o,n=n>>>0,r||P(this,o,n,2,32767,-32768),this[n]=o&255,this[n+1]=o>>>8,n+2};_.prototype.writeInt16BE=function(o,n,r){return o=+o,n=n>>>0,r||P(this,o,n,2,32767,-32768),this[n]=o>>>8,this[n+1]=o&255,n+2};_.prototype.writeInt32LE=function(o,n,r){return o=+o,n=n>>>0,r||P(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};_.prototype.writeInt32BE=function(o,n,r){return o=+o,n=n>>>0,r||P(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 mt(e,o,n,r,a,s){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function _t(e,o,n,r,a){return o=+o,n=n>>>0,a||mt(e,o,n,4,34028234663852886e22,-34028234663852886e22),Te.write(e,o,n,r,23,4),n+4}_.prototype.writeFloatLE=function(o,n,r){return _t(this,o,n,!0,r)};_.prototype.writeFloatBE=function(o,n,r){return _t(this,o,n,!1,r)};function dt(e,o,n,r,a){return o=+o,n=n>>>0,a||mt(e,o,n,8,17976931348623157e292,-17976931348623157e292),Te.write(e,o,n,r,52,8),n+8}_.prototype.writeDoubleLE=function(o,n,r){return dt(this,o,n,!0,r)};_.prototype.writeDoubleBE=function(o,n,r){return dt(this,o,n,!1,r)};_.prototype.copy=function(o,n,r,a){if(!_.isBuffer(o))throw new TypeError("argument should be a Buffer");if(r||(r=0),!a&&a!==0&&(a=this.length),n>=o.length&&(n=o.length),n||(n=0),a>0&&a<r&&(a=r),a===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(a<0)throw new RangeError("sourceEnd out of bounds");a>this.length&&(a=this.length),o.length-n<a-r&&(a=o.length-n+r);var s=a-r;return this===o&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(n,r,a):Uint8Array.prototype.set.call(o,this.subarray(r,a),n),s};_.prototype.fill=function(o,n,r,a){if(typeof o=="string"){if(typeof n=="string"?(a=n,n=0,r=this.length):typeof r=="string"&&(a=r,r=this.length),a!==void 0&&typeof a!="string")throw new TypeError("encoding must be a string");if(typeof a=="string"&&!_.isEncoding(a))throw new TypeError("Unknown encoding: "+a);if(o.length===1){var s=o.charCodeAt(0);(a==="utf8"&&s<128||a==="latin1")&&(o=s)}}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 m;if(typeof o=="number")for(m=n;m<r;++m)this[m]=o;else{var d=_.isBuffer(o)?o:_.from(o,a),l=d.length;if(l===0)throw new TypeError('The value "'+o+'" is invalid for argument "value"');for(m=0;m<r-n;++m)this[m+n]=d[m%l]}return this};var Yi=/[^+/0-9A-Za-z-_]/g;function Zi(e){if(e=e.split("=")[0],e=e.trim().replace(Yi,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function Jo(e,o){o=o||1/0;for(var n,r=e.length,a=null,s=[],m=0;m<r;++m){if(n=e.charCodeAt(m),n>55295&&n<57344){if(!a){if(n>56319){(o-=3)>-1&&s.push(239,191,189);continue}else if(m+1===r){(o-=3)>-1&&s.push(239,191,189);continue}a=n;continue}if(n<56320){(o-=3)>-1&&s.push(239,191,189),a=n;continue}n=(a-55296<<10|n-56320)+65536}else a&&(o-=3)>-1&&s.push(239,191,189);if(a=null,n<128){if((o-=1)<0)break;s.push(n)}else if(n<2048){if((o-=2)<0)break;s.push(n>>6|192,n&63|128)}else if(n<65536){if((o-=3)<0)break;s.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((o-=4)<0)break;s.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw new Error("Invalid code point")}return s}function Ji(e){for(var o=[],n=0;n<e.length;++n)o.push(e.charCodeAt(n)&255);return o}function Qi(e,o){for(var n,r,a,s=[],m=0;m<e.length&&!((o-=2)<0);++m)n=e.charCodeAt(m),r=n>>8,a=n%256,s.push(a),s.push(r);return s}function lt(e){return Xo.toByteArray(Zi(e))}function Qe(e,o,n,r){for(var a=0;a<r&&!(a+n>=o.length||a>=e.length);++a)o[a+n]=e[a];return a}function Z(e,o){return e instanceof o||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===o.name}function on(e){return e!==e}var ep=function(){for(var e="0123456789abcdef",o=new Array(256),n=0;n<16;++n)for(var r=n*16,a=0;a<16;++a)o[r+a]=e[n]+e[a];return o}()});var yt=F((Ys,ht)=>{t();var E=ht.exports={},J,Q;function nn(){throw new Error("setTimeout has not been defined")}function tn(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?J=setTimeout:J=nn}catch(e){J=nn}try{typeof clearTimeout=="function"?Q=clearTimeout:Q=tn}catch(e){Q=tn}})();function ut(e){if(J===setTimeout)return setTimeout(e,0);if((J===nn||!J)&&setTimeout)return J=setTimeout,setTimeout(e,0);try{return J(e,0)}catch(o){try{return J.call(null,e,0)}catch(n){return J.call(this,e,0)}}}function op(e){if(Q===clearTimeout)return clearTimeout(e);if((Q===tn||!Q)&&clearTimeout)return Q=clearTimeout,clearTimeout(e);try{return Q(e)}catch(o){try{return Q.call(null,e)}catch(n){return Q.call(this,e)}}}var re=[],Se=!1,ge,eo=-1;function np(){!Se||!ge||(Se=!1,ge.length?re=ge.concat(re):eo=-1,re.length&&ft())}function ft(){if(!Se){var e=ut(np);Se=!0;for(var o=re.length;o;){for(ge=re,re=[];++eo<o;)ge&&ge[eo].run();eo=-1,o=re.length}ge=null,Se=!1,op(e)}}E.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];re.push(new xt(e,o)),re.length===1&&!Se&&ut(ft)};function xt(e,o){this.fun=e,this.array=o}xt.prototype.run=function(){this.fun.apply(null,this.array)};E.title="browser";E.browser=!0;E.env={};E.argv=[];E.version="";E.versions={};function ae(){}E.on=ae;E.addListener=ae;E.once=ae;E.off=ae;E.removeListener=ae;E.removeAllListeners=ae;E.emit=ae;E.prependListener=ae;E.prependOnceListener=ae;E.listeners=function(e){return[]};E.binding=function(e){throw new Error("process.binding is not supported")};E.cwd=function(){return"/"};E.chdir=function(e){throw new Error("process.chdir is not supported")};E.umask=function(){return 0}});var i,c,tp,p,t=h(()=>{i=T(gt()),c=T(yt()),tp=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),p=tp});var Tt,rn=h(()=>{"use strict";t();Tt="Action not allowed. User is logged in. Call logout() first"});var bt=h(()=>{"use strict";t()});var St=h(()=>{"use strict";t()});var wt=h(()=>{"use strict";t()});var an=h(()=>{"use strict";t()});var vt=h(()=>{"use strict";t()});var kt=h(()=>{"use strict";t()});var At=h(()=>{"use strict";t()});var It=h(()=>{"use strict";t()});var G=h(()=>{"use strict";t()});var Lt=h(()=>{"use strict";t()});var Et=h(()=>{"use strict";t()});var D=h(()=>{"use strict";t()});var Nt=h(()=>{"use strict";t()});var Ct=h(()=>{"use strict";t()});var Rt=h(()=>{"use strict";t()});var U=h(()=>{"use strict";t();kt();At();It();G();Lt();Et();D();Nt();Ct();Rt()});var pn,Pt,bm,Dt,Sm,Ot,wm,vm,km,Mt,Bt=h(()=>{"use strict";t();U();pn={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:"EGLD",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:Pt,egldLabel:bm}=pn["devnet"],{chainId:Dt,egldLabel:Sm}=pn["testnet"],{chainId:Ot,egldLabel:wm}=pn["mainnet"],vm={["devnet"]:Pt,["testnet"]:Dt,["mainnet"]:Ot},km={[Pt]:"devnet",[Dt]:"testnet",[Ot]:"mainnet"},Mt="multiversx://"});var Ft=h(()=>{"use strict";t()});var ee,Ut=h(()=>{"use strict";t();ee=require("@multiversx/sdk-web-wallet-provider")});var cn,sn,Wt,oo,Vt,we,A=h(()=>{"use strict";t();bt();rn();St();wt();an();vt();Bt();Ft();Ut();cn=5e4,sn=1e9,Wt=1,oo="logout",Vt="login",we="0"});var ve,no=h(()=>{"use strict";t();ve=()=>Date.now()/1e3});var $t=h(()=>{"use strict";t()});var Gt=h(()=>{"use strict";t()});var mn=h(()=>{"use strict";t();no();$t();Gt()});var _n={};_e(_n,{clear:()=>pp,getItem:()=>ap,localStorageKeys:()=>me,removeItem:()=>ip,setItem:()=>rp});var me,to,rp,ap,ip,pp,ke=h(()=>{"use strict";t();mn();me={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},to=typeof localStorage!="undefined",rp=({key:e,data:o,expires:n})=>{!to||localStorage.setItem(String(e),JSON.stringify({expires:n,data:o}))},ap=e=>{if(!to)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:ve()>=n.expires?(localStorage.removeItem(String(e)),null):n.data},ip=e=>{!to||localStorage.removeItem(String(e))},pp=()=>{!to||localStorage.clear()}});var dn={};_e(dn,{clear:()=>qt,getItem:()=>jt,removeItem:()=>zt,setItem:()=>Ht,storage:()=>cp});var Ht,jt,zt,qt,cp,Kt=h(()=>{"use strict";t();Ht=({key:e,data:o,expires:n})=>{sessionStorage.setItem(String(e),JSON.stringify({expires:n,data:o}))},jt=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},zt=e=>sessionStorage.removeItem(String(e)),qt=()=>sessionStorage.clear(),cp={setItem:Ht,getItem:jt,removeItem:zt,clear:qt}});var ue,Ae=h(()=>{"use strict";t();ke();Kt();ue={session:dn,local:_n}});var ln,I,Pe,O=h(()=>{"use strict";t();ln=require("@reduxjs/toolkit");A();I=(0,ln.createAction)(oo),Pe=(0,ln.createAction)(Vt,e=>({payload:e}))});var un,Xt,Yt,ro,gn,Zt,fn,n_,xn,t_,r_,a_,i_,p_,c_,s_,m_,ao,io=h(()=>{"use strict";t();un=require("@multiversx/sdk-core"),Xt=require("@reduxjs/toolkit"),Yt=require("redux-persist");A();Ae();ke();O();ro={balance:"...",address:"",isGuarded:!1,nonce:0,txCount:0,scrCount:0,claimableRewards:we},gn={address:"",websocketEvent:null,websocketBatchEvent:null,accounts:{"":ro},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},Zt=(0,Xt.createSlice)({name:"accountInfoSlice",initialState:gn,reducers:{setAddress:(e,o)=>{let n=o.payload;e.address=n,e.publicKey=new un.Address(n).hex()},setAccount:(e,o)=>{let n=e.address===o.payload.address;e.accounts={[e.address]:n?o.payload:ro},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}},setWebsocketBatchEvent:(e,o)=>{e.websocketBatchEvent={timestamp:Date.now(),data:o.payload}}},extraReducers:e=>{e.addCase(I,()=>(ue.local.removeItem(me.loginExpiresAt),gn)),e.addCase(Pe,(o,n)=>{let{address:r}=n.payload;o.address=r,o.publicKey=new un.Address(r).hex()}),e.addCase(Yt.REHYDRATE,(o,n)=>{var f;if(!((f=n.payload)!=null&&f.account))return;let{account:r}=n.payload,{address:a,shard:s,accounts:m,publicKey:d}=r;o.address=a,o.shard=s;let l=m&&a in m;o.accounts=l?m:gn.accounts,o.publicKey=d})}}),{setAccount:fn,setAddress:n_,setAccountNonce:xn,setAccountShard:t_,setLedgerAccount:r_,updateLedgerAccount:a_,setWalletConnectAccount:i_,setIsAccountLoading:p_,setAccountLoadingError:c_,setWebsocketEvent:s_,setWebsocketBatchEvent:m_}=Zt.actions,ao=Zt.reducer});function De(){return new Date().setHours(new Date().getHours()+24)}function Oe(e){ue.local.setItem({key:me.loginExpiresAt,data:e,expires:e})}var hn=h(()=>{"use strict";t();Ae();ke()});var Qt,Jt,er,T_,b_,S_,co,w_,or,nr,v_,so,mo=h(()=>{"use strict";t();Qt=require("@reduxjs/toolkit");hn();G();O();Jt={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,isLoginSessionInvalid:!1},er=(0,Qt.createSlice)({name:"loginInfoSlice",initialState:Jt,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(I,()=>Jt),e.addCase(Pe,(o,n)=>{o.isLoginSessionInvalid=!1,o.loginMethod=n.payload.loginMethod,Oe(De())})}}),{setLoginMethod:T_,setWalletConnectLogin:b_,setLedgerLogin:S_,setTokenLogin:co,setTokenLoginSignature:w_,setWalletLogin:or,invalidateLoginSession:nr,setLogoutRoute:v_}=er.actions,so=er.reducer});var rr,tr,ar,L_,E_,N_,C_,_o,lo=h(()=>{"use strict";t();rr=require("@reduxjs/toolkit");O();tr={},ar=(0,rr.createSlice)({name:"modalsSlice",initialState:tr,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(I,()=>tr)}}),{setTxSubmittedModal:L_,setNotificationModal:E_,clearTxSubmittedModal:N_,clearNotificationModal:C_}=ar.actions,_o=ar.reducer});var Me,Be=h(()=>{"use strict";t();Me=()=>typeof window!="undefined"&&typeof(window==null?void 0:window.location)!="undefined"});var W,q=h(()=>{"use strict";t();Be();W=()=>{if(!Me())return{pathname:"",hash:"",origin:"",href:"",search:""};let{location:{pathname:o,hash:n,origin:r,href:a,search:s}}=window;return{pathname:o,hash:n,origin:r,href:a,search:s}}});var go=h(()=>{"use strict";t()});var ir=h(()=>{"use strict";t();q();go()});function pr(e){return e[Math.floor(Math.random()*e.length)]}var cr=h(()=>{"use strict";t()});var sr=h(()=>{"use strict";t();an()});var mr=h(()=>{"use strict";t();ir();cr();sr()});var _r,dr,lr,yn,mp,gr,Z_,J_,ur,uo,fo=h(()=>{"use strict";t();_r=require("@reduxjs/toolkit"),dr=T(require("lodash.omit")),lr=require("redux-persist");O();mr();yn={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},mp={network:yn,chainID:"-1"},gr=(0,_r.createSlice)({name:"appConfig",initialState:mp,reducers:{initializeNetworkConfig:(e,o)=>{let n=pr(o.payload.walletConnectV2RelayAddresses),r=(0,dr.default)(o.payload,"walletConnectV2RelayAddresses");e.network=b(u(u({},e.network),r),{walletConnectV2RelayAddress:n})},setChainID:(e,o)=>{e.chainID=o.payload},setCustomWalletAddress:(e,o)=>{e.network.customWalletAddress=o.payload}},extraReducers:e=>{e.addCase(I,o=>{o.network.customWalletAddress=void 0}),e.addCase(lr.REHYDRATE,(o,n)=>{var a,s;if(!((s=(a=n.payload)==null?void 0:a.network)!=null&&s.customWalletAddress))return;let{network:{customWalletAddress:r}}=n.payload;o.network.customWalletAddress=r})}}),{initializeNetworkConfig:Z_,setChainID:J_,setCustomWalletAddress:ur}=gr.actions,uo=gr.reducer});var fr,Tn,xr,rd,ad,id,xo,ho=h(()=>{"use strict";t();fr=require("@reduxjs/toolkit");U();O();Tn={isSigning:!1,signedSessions:{}},xr=(0,fr.createSlice)({name:"signedMessageInfoSliceState",initialState:Tn,reducers:{setSignSession:(e,o)=>{let{sessionId:n,signedSession:r,errorMessage:a}=o.payload;a&&(e.errorMessage=a),e.isSigning=r.status==="pending",e.signedSessions[n]=r},setSignSessionState:(e,o)=>u(u({},e),o.payload),clearSignedMessageInfo:()=>Tn},extraReducers:e=>{e.addCase(I,()=>Tn)}}),{setSignSession:rd,clearSignedMessageInfo:ad,setSignSessionState:id}=xr.actions,xo=xr.reducer});var yr,Tr,hr,br,_p,dp,ld,gd,yo,To=h(()=>{"use strict";t();yr=require("@reduxjs/toolkit"),Tr=require("redux-persist");U();no();O();hr={customToasts:[],transactionToasts:[]},br=(0,yr.createSlice)({name:"toastsSlice",initialState:hr,reducers:{addCustomToast:(e,o)=>{let n=o.payload.toastId||`custom-toast-${e.customToasts.length+1}`,r=e.customToasts.findIndex(a=>a.toastId===n);if(r!==-1){e.customToasts[r]=b(u(u({},e.customToasts[r]),o.payload),{type:"custom",toastId:n});return}e.customToasts.push(b(u({},o.payload),{type:"custom",toastId:n}))},removeCustomToast:(e,o)=>{e.customToasts=e.customToasts.filter(n=>n.toastId!==o.payload)},addTransactionToast:(e,o)=>{e.transactionToasts.push({type:"transaction",startTimestamp:ve(),toastId:o.payload||`custom-toast-${e.transactionToasts.length+1}`})},removeTransactionToast:(e,o)=>{e.transactionToasts=e.transactionToasts.filter(n=>n.toastId!==o.payload)}},extraReducers:e=>{e.addCase(I,()=>hr),e.addCase(Tr.REHYDRATE,(o,n)=>{var a,s;let r=(s=(a=n.customToasts)==null?void 0:a.filter(m=>!("component"in m)))!=null?s:[];o.customToasts=r})}}),{addCustomToast:_p,removeCustomToast:dp,addTransactionToast:ld,removeTransactionToast:gd}=br.actions,yo=br.reducer});var Sr,Sn,wn,vn,lp,bn,wr,hd,yd,Td,bo,So=h(()=>{"use strict";t();Sr=require("@reduxjs/toolkit");O();Sn="Transaction failed",wn="Transaction successful",vn="Processing transaction",lp="Transaction submitted",bn={},wr=(0,Sr.createSlice)({name:"transactionsInfo",initialState:bn,reducers:{setTransactionsDisplayInfo(e,o){let{sessionId:n,transactionsDisplayInfo:r}=o.payload;n!=null&&(e[n]={errorMessage:(r==null?void 0:r.errorMessage)||Sn,successMessage:(r==null?void 0:r.successMessage)||wn,processingMessage:(r==null?void 0:r.processingMessage)||vn,submittedMessage:(r==null?void 0:r.submittedMessage)||lp,transactionDuration:r==null?void 0:r.transactionDuration})},clearTransactionsInfoForSessionId(e,o){o.payload!=null&&delete e[o.payload]},clearTransactionsInfo:()=>bn},extraReducers:e=>{e.addCase(I,()=>bn)}}),{clearTransactionsInfo:hd,setTransactionsDisplayInfo:yd,clearTransactionsInfoForSessionId:Td}=wr.actions,bo=wr.reducer});function vr(e){return e!=null&&(vp(e)||Ep(e))}function wo(e){return e!=null&&(kp(e)||Np(e))}function vo(e){return e!=null&&(Ap(e)||Cp(e))}function kr(e){return e!=null&&(Ip(e)||Rp(e))}function Ar(e){return e!=null&&Lp(e)}function vp(e){return e!=null&&up.includes(e)}function kp(e){return e!=null&&fp.includes(e)}function Ap(e){return e!=null&&xp.includes(e)}function Ip(e){return e!=null&&hp.includes(e)}function Lp(e){return e!=null&&yp.includes(e)}function Ep(e){return e!=null&&Tp.includes(e)}function Np(e){return e!=null&&bp.includes(e)}function Cp(e){return e!=null&&Sp.includes(e)}function Rp(e){return e!=null&&wp.includes(e)}var up,fp,xp,hp,yp,Tp,bp,Sp,wp,An=h(()=>{"use strict";t();G();up=["sent"],fp=["success"],xp=["fail","cancelled","timedOut"],hp=["invalid"],yp=["timedOut"],Tp=["pending"],bp=["success"],Sp=["fail","invalid"],wp=["not executed"]});var Ir,Lr,Fe,Pp,Er,Ed,Nd,Cd,Rd,Pd,Dd,Od,Md,Bd,Fd,Ud,ko,Ao=h(()=>{"use strict";t();Ir=require("@reduxjs/toolkit"),Lr=require("redux-persist");G();An();O();Fe={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},Pp={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},Er=(0,Ir.createSlice)({name:"transactionsSlice",initialState:Fe,reducers:{moveTransactionsToSignedState:(e,o)=>{var l,f;let{sessionId:n,transactions:r,errorMessage:a,status:s,redirectRoute:m,customTransactionInformation:d}=o.payload;e.customTransactionInformationForSessionId[n]=u(u(u({},Pp),((l=e.signedTransactions[n])==null?void 0:l.customTransactionInformation)||{}),e.customTransactionInformationForSessionId[n]||{}),e.signedTransactions[n]={transactions:r,status:s,errorMessage:a,redirectRoute:m,customTransactionInformation:u(u({},e.customTransactionInformationForSessionId[n]),d!=null?d:{})},((f=e==null?void 0:e.transactionsToSign)==null?void 0:f.sessionId)===n&&(e.transactionsToSign=Fe.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=u(u({},e.signedTransactions),o.payload)},updateSignedTransactions:(e,o)=>{let{sessionId:n,status:r,errorMessage:a,transactions:s}=o.payload;e.signedTransactions[n]!=null&&(e.signedTransactions[n].status=r,a!=null&&(e.signedTransactions[n].errorMessage=a),s!=null&&(e.signedTransactions[n].transactions=s))},updateSignedTransactionStatus:(e,o)=>{var l,f,y,g,w,v,S,C;let{sessionId:n,status:r,errorMessage:a,transactionHash:s,inTransit:m}=o.payload,d=(f=(l=e.signedTransactions)==null?void 0:l[n])==null?void 0:f.transactions;if(d!=null){e.signedTransactions[n].transactions=d.map(R=>R.hash===s?b(u({},R),{status:r,errorMessage:a,inTransit:m}):R);let V=(g=(y=e.signedTransactions[n])==null?void 0:y.transactions)==null?void 0:g.every(R=>wo(R.status)),j=(v=(w=e.signedTransactions[n])==null?void 0:w.transactions)==null?void 0:v.every(R=>vo(R.status)),z=(C=(S=e.signedTransactions[n])==null?void 0:S.transactions)==null?void 0:C.every(R=>kr(R.status));V&&(e.signedTransactions[n].status="success"),j&&(e.signedTransactions[n].status="fail"),z&&(e.signedTransactions[n].status="invalid")}},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=Fe.transactionsToSign,e.signTransactionsError=null},clearAllSignedTransactions:e=>{e.signedTransactions=Fe.signedTransactions},setSignTransactionsError:(e,o)=>{e.signTransactionsError=o.payload},setSignTransactionsCancelMessage:(e,o)=>{e.signTransactionsCancelMessage=o.payload},updateSignedTransactionsCustomTransactionInformation:(e,o)=>{let{sessionId:n,customTransactionInformationOverrides:r}=o.payload;e.signedTransactions[n]!=null&&(e.signedTransactions[n].customTransactionInformation=u(u({},e.signedTransactions[n].customTransactionInformation),r))}},extraReducers:e=>{e.addCase(I,()=>Fe),e.addCase(Lr.REHYDRATE,(o,n)=>{var m;if(o.signTransactionsCancelMessage=null,!((m=n.payload)!=null&&m.transactions))return;let{signedTransactions:r,customTransactionInformationForSessionId:a}=n.payload.transactions,s=Object.entries(r).reduce((d,[l,f])=>{let y=new Date(l),g=new Date;return g.setHours(g.getHours()+5),g-y>0||(d[l]=f),d},{});a!=null&&(o.customTransactionInformationForSessionId=a),r!=null&&(o.signedTransactions=s)})}}),{updateSignedTransactionStatus:Ed,updateSignedTransactions:Nd,setTransactionsToSign:Cd,clearAllTransactionsToSign:Rd,clearAllSignedTransactions:Pd,clearSignedTransaction:Dd,clearTransactionToSign:Od,setSignTransactionsError:Md,setSignTransactionsCancelMessage:Bd,moveTransactionsToSignedState:Fd,updateSignedTransactionsCustomTransactionInformation:Ud}=Er.actions,ko=Er.reducer});var Nr,In,Cr,Gd,Hd,jd,zd,Io,Lo=h(()=>{"use strict";t();Nr=require("@reduxjs/toolkit");O();In={},Cr=(0,Nr.createSlice)({name:"batchTransactionsSlice",initialState:In,reducers:{setBatchTransactions:(e,o)=>{e[o.payload.id]=o.payload},updateBatchTransactions:(e,o)=>{e[o.payload.id]=o.payload},clearBatchTransactions:(e,o)=>{delete e[o.payload.batchId]},clearAllBatchTransactions:()=>In},extraReducers:e=>{e.addCase(I,()=>In)}}),{setBatchTransactions:Gd,updateBatchTransactions:Hd,clearBatchTransactions:jd,clearAllBatchTransactions:zd}=Cr.actions,Io=Cr.reducer});var Pr,Rr,Dr,Yd,Or,Ln=h(()=>{"use strict";t();Pr=require("@reduxjs/toolkit");O();Rr={},Dr=(0,Pr.createSlice)({name:"dappConfigSlice",initialState:Rr,reducers:{setDappConfig:(e,o)=>{if(e&&o.payload){let{logoutRoute:n,shouldUseWebViewProvider:r,cancelTransactionToastDuration:a}=o.payload;e.logoutRoute=n,e.shouldUseWebViewProvider=r,e.cancelTransactionToastDuration=a}else e=o.payload}},extraReducers:e=>{e.addCase(I,()=>Rr)}}),{setDappConfig:Yd}=Dr.actions,Or=Dr.reducer});var K=h(()=>{"use strict";t();io();mo();lo();fo();ho();To();So();Ao();Lo();Ln()});var En=h(()=>{"use strict";t()});var Ur,Fr,Wr,yl,Tl,bl,Sl,wl,vl,Vr,$r=h(()=>{"use strict";t();Ur=require("@reduxjs/toolkit");O();Fr={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},Wr=(0,Ur.createSlice)({name:"dappModalsSlice",initialState:Fr,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=u({},o.payload)}},extraReducers:e=>{e.addCase(I,()=>Fr)}}),{setDappModalVisibility:yl,setDappModalHeaderVisibility:Tl,setDappModalFooterVisibility:bl,setDappModalHeaderText:Sl,setDappModalFooterText:wl,setDappModalConfig:vl}=Wr.actions,Vr=Wr.reducer});var Gr,Bp,Fp,fe,Co=h(()=>{"use strict";t();Gr=require("@reduxjs/toolkit");En();io();Lo();Ln();$r();mo();lo();fo();ho();To();So();Ao();Bp={["account"]:ao,["dappModal"]:Vr,["dappConfig"]:Or,["loginInfo"]:so,["modals"]:_o,["networkConfig"]:uo,["signedMessageInfo"]:xo,["toasts"]:yo,["transactionsInfo"]:bo,["transactions"]:ko,["batchTransactions"]:Io},Fp=(e={})=>(0,Gr.combineReducers)(u(u({},Bp),e)),fe=Fp});var qr={};_e(qr,{default:()=>ec,sessionStorageReducers:()=>Nn});function ie(e,o=[]){return{key:e,version:1,storage:jr.default,blacklist:o}}var M,Hr,jr,Up,Ue,Wp,Vp,$p,Gp,Hp,jp,zp,qp,Kp,Xp,zr,Yp,Nn,Zp,Jp,Qp,ec,Kr=h(()=>{"use strict";t();M=require("redux-persist"),Hr=T(require("redux-persist/lib/storage")),jr=T(require("redux-persist/lib/storage/session"));Co();K();io();Lo();mo();lo();fo();ho();To();So();Ao();En();Up={persistReducersStorageType:"localStorage"},Ue={["account"]:"sdk-dapp-account",["loginInfo"]:"sdk-dapp-login-info",["modals"]:"sdk-dapp-modals",["networkConfig"]:"sdk-dapp-network-config"},Wp=ie(Ue["account"]),Vp=ie(Ue["loginInfo"]),$p=ie(Ue["modals"]),Gp=ie(Ue["networkConfig"]),Hp={2:e=>b(u({},e),{networkConfig:yn})};jp=ie("sdk-dapp-transactionsInfo"),zp=ie("sdk-dapp-transactions",["transactionsToSign"]),qp=ie("sdk-dapp-batchTransactions",["batchTransactions"]),Kp=ie("sdk-dapp-toasts"),Xp=ie("sdk-dapp-signedMessageInfo"),zr={key:"sdk-dapp-store",version:2,storage:Hr.default,whitelist:Object.keys(Ue),migrate:(0,M.createMigrate)(Hp,{debug:!1})},Yp=b(u({},zr),{whitelist:[]}),Nn={["toasts"]:(0,M.persistReducer)(Kp,yo),["transactions"]:(0,M.persistReducer)(zp,ko),["transactionsInfo"]:(0,M.persistReducer)(jp,bo),["batchTransactions"]:(0,M.persistReducer)(qp,Io),["signedMessageInfo"]:(0,M.persistReducer)(Xp,xo)},Zp=b(u({},Nn),{["account"]:(0,M.persistReducer)(Wp,ao),["loginInfo"]:(0,M.persistReducer)(Vp,so),["modals"]:(0,M.persistReducer)($p,_o),["networkConfig"]:(0,M.persistReducer)(Gp,uo)}),Jp=Up.persistReducersStorageType==="localStorage",Qp=Jp?(0,M.persistReducer)(zr,fe(Nn)):(0,M.persistReducer)(Yp,fe(Zp)),ec=Qp});var Xr={};_e(Xr,{default:()=>oc});var oc,Yr=h(()=>{"use strict";t();Co();oc=fe()});var Zr={};_e(Zr,{default:()=>tc});var H,nc,tc,Jr=h(()=>{"use strict";t();H=require("redux-persist"),nc=[H.FLUSH,H.REHYDRATE,H.PAUSE,H.PERSIST,H.PURGE,H.REGISTER],tc=nc});var oa={};_e(oa,{default:()=>ea});function ea(e){return(0,Qr.persistStore)(e)}var Qr,na=h(()=>{"use strict";t();Qr=require("redux-persist")});var Ba=F((fk,Ma)=>{t();var ls=typeof p=="object"&&p&&p.Object===Object&&p;Ma.exports=ls});var Ua=F((xk,Fa)=>{t();var gs=Ba(),us=typeof self=="object"&&self&&self.Object===Object&&self,fs=gs||us||Function("return this")();Fa.exports=fs});var Gn=F((hk,Wa)=>{t();var xs=Ua(),hs=xs.Symbol;Wa.exports=hs});var Ha=F((yk,Ga)=>{t();var Va=Gn(),$a=Object.prototype,ys=$a.hasOwnProperty,Ts=$a.toString,je=Va?Va.toStringTag:void 0;function bs(e){var o=ys.call(e,je),n=e[je];try{e[je]=void 0;var r=!0}catch(s){}var a=Ts.call(e);return r&&(o?e[je]=n:delete e[je]),a}Ga.exports=bs});var za=F((Tk,ja)=>{t();var Ss=Object.prototype,ws=Ss.toString;function vs(e){return ws.call(e)}ja.exports=vs});var Ya=F((bk,Xa)=>{t();var qa=Gn(),ks=Ha(),As=za(),Is="[object Null]",Ls="[object Undefined]",Ka=qa?qa.toStringTag:void 0;function Es(e){return e==null?e===void 0?Ls:Is:Ka&&Ka in Object(e)?ks(e):As(e)}Xa.exports=Es});var Ja=F((Sk,Za)=>{t();var Ns=Array.isArray;Za.exports=Ns});var ei=F((wk,Qa)=>{t();function Cs(e){return e!=null&&typeof e=="object"}Qa.exports=Cs});var ni=F((vk,oi)=>{t();var Rs=Ya(),Ps=Ja(),Ds=ei(),Os="[object String]";function Ms(e){return typeof e=="string"||!Ps(e)&&Ds(e)&&Rs(e)==Os}oi.exports=Ms});var Gs={};_e(Gs,{WebWalletLoginButton:()=>$s});module.exports=Re(Gs);t();var gi=T(require("react"));t();var zn=require("react");rn();t();var ca=require("react"),Ie=require("react-redux");t();var Cn=require("@reduxjs/toolkit"),ia=require("react-redux/lib/utils/Subscription");K();t();var Mr=T(require("lodash.throttle"));A();K();hn();Ae();ke();var Dp=[oo],Eo=!1,Op=(0,Mr.default)(()=>{Oe(De())},5e3),Br=e=>o=>n=>{if(Dp.includes(n.type))return o(n);let r=e.getState(),a=ue.local.getItem(me.loginExpiresAt);if(!Boolean(r==null?void 0:r.account.address))return o(n);if(a==null)return Oe(De());let m=Date.now();return a-m<0&&!Eo?setTimeout(()=>{Eo=!0,e.dispatch(nr())},1e3):(Eo&&(Eo=!1),Op()),o(n)};t();t();function No(){return typeof sessionStorage!="undefined"}var ta=No()?(Kr(),Re(qr)).default:(Yr(),Re(Xr)).default,ra=No()?(Jr(),Re(Zr)).default:[],aa=No()?(na(),Re(oa)).default:e=>e;Co();var L=(0,Cn.configureStore)({reducer:ta,middleware:e=>e({serializableCheck:{ignoredActions:[...ra,xn.type,fn.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(Br)}),pa=(0,ia.createSubscription)(L),rg=aa(L),ag=(0,Cn.configureStore)({reducer:fe});var rc={store:L,subscription:pa},Rn=(0,ca.createContext)(rc),sg=(0,Ie.createStoreHook)(Rn),Ro=(0,Ie.createDispatchHook)(Rn),B=(0,Ie.createSelectorHook)(Rn);t();t();K();t();var sa=T(require("lodash.isequal")),Po=require("reselect"),x=(0,Po.createSelectorCreator)(Po.defaultMemoize,sa.default);var oe=e=>e.account,Do=x(oe,e=>e.address),Le=x(oe,Do,(e,o)=>o in e.accounts?e.accounts[o]:ro),ac=x(oe,Le,(e,o)=>{let a=e,{accounts:n}=a,r=Ye(a,["accounts"]);return b(u({},r),{account:o})}),gg=x(Le,e=>e.balance),ic=x(Le,e=>{var o;return((o=e==null?void 0:e.nonce)==null?void 0:o.valueOf())||0}),ug=x(oe,e=>e.shard),fg=x(oe,e=>e.ledgerAccount),xg=x(oe,e=>e.walletConnectAccount),hg=x(oe,e=>e.isAccountLoading),yg=x(oe,e=>e.accountLoadingError),pc=x(oe,e=>e.websocketEvent),Tg=x(oe,e=>e.websocketBatchEvent);t();var cc=e=>e.dappConfig,wg=x(cc,e=>e.shouldUseWebViewProvider);t();var X=e=>e.loginInfo,Ig=x(X,e=>e.loginMethod),Oo=x(X,Do,(e,o)=>Boolean(o)),Lg=x(X,e=>e.walletConnectLogin),Eg=x(X,e=>e.ledgerLogin),sc=x(X,e=>e.walletLogin),Ng=x(X,e=>e.isLoginSessionInvalid),We=x(X,e=>e.tokenLogin),Cg=x(X,e=>e.logoutRoute);t();var ma=e=>e.modals,Dg=x(ma,e=>e.txSubmittedModal),Og=x(ma,e=>e.notificationModal);t();var xe=e=>e.networkConfig,mc=x(xe,e=>e.chainID),Fg=x(xe,e=>e.network.walletConnectBridgeAddress),Ug=x(xe,e=>e.network.walletConnectV2RelayAddress),Wg=x(xe,e=>e.network.walletConnectV2ProjectId),Vg=x(xe,e=>e.network.walletConnectV2Options),$g=x(xe,e=>e.network.walletConnectDeepLink),pe=x(xe,e=>e.network),_c=x(pe,e=>e.apiAddress),_a=x(pe,e=>e.explorerAddress),Gg=x(pe,e=>{var o;return(o=e.customWalletAddress)!=null?o:e.walletAddress}),dc=x(pe,e=>e.egldLabel);t();var Mo=e=>e.signedMessageInfo,zg=x(Mo,e=>e.isSigning),qg=x(Mo,e=>e.errorMessage),Kg=x(Mo,e=>{let o=Object.keys(e.signedSessions),n=o.length;return e.signedSessions[o[n-1]]}),Xg=x(Mo,e=>{let o=Object.keys(e.signedSessions),n=o.length;return o.length>0?o[n-1]:""});t();var da=e=>e.toasts,Jg=x(da,e=>e.customToasts),Qg=x(da,e=>e.transactionToasts);t();K();var la={errorMessage:Sn,successMessage:wn,processingMessage:vn},lc=e=>e.transactionsInfo,tu=x(lc,(e,o)=>o,(e,o)=>o!=null&&(e==null?void 0:e[Number(o)])||la);t();t();var ne=require("@multiversx/sdk-core");A();t();var Pn=require("@multiversx/sdk-core/out");t();t();function Bo(e){try{let o=atob(e),n=btoa(o),r=i.Buffer.from(e,"base64").toString(),a=i.Buffer.from(r).toString("base64");if(e===n&&e===a||o===r)return!0}catch(o){return!1}return!1}function he(e){return Bo(e)?atob(e):e}t();t();t();t();var ga=e=>{let o=e!=null?e:"";return Bo(o)?Pn.TransactionPayload.fromEncoded(o):new Pn.TransactionPayload(o)};function Dn(e){var n,r,a;let o=new ne.Transaction(u(u(b(u(b(u({value:e.value.valueOf(),data:ga(e.data),nonce:e.nonce.valueOf(),receiver:new ne.Address(e.receiver)},e.receiverUsername?{receiverUsername:e.receiverUsername}:{}),{sender:new ne.Address(e.sender)}),e.senderUsername?{senderUsername:e.senderUsername}:{}),{gasLimit:(n=e.gasLimit.valueOf())!=null?n:cn,gasPrice:(r=e.gasPrice.valueOf())!=null?r:sn,chainID:e.chainID.valueOf(),version:new ne.TransactionVersion((a=e.version)!=null?a:Wt)}),e.options?{options:new ne.TransactionOptions(e.options)}:{}),e.guardian?{guardian:new ne.Address(e.guardian)}:{}));return e.guardianSignature&&o.applyGuardianSignature(i.Buffer.from(e.guardianSignature,"hex")),e.signature&&o.applySignature(i.Buffer.from(e.signature,"hex")),o}t();t();t();t();t();var fc=require("@multiversx/sdk-core/out");t();A();t();var ua=require("@multiversx/sdk-core");U();t();var xc=require("@multiversx/sdk-core");t();t();t();var hc=require("@multiversx/sdk-core"),yc=T(require("bignumber.js"));G();t();t();t();var Mn="blocks";t();t();t();t();D();t();t();D();t();t();t();var Ac=T(require("bignumber.js"));A();t();var kc=require("@multiversx/sdk-core"),Bn=T(require("bignumber.js"));A();t();var wc=T(require("bignumber.js"));t();Bn.default.config({ROUNDING_MODE:Bn.default.ROUND_FLOOR});t();t();t();A();t();t();t();t();A();t();A();t();var Ic=require("@multiversx/sdk-core");A();t();var $e=require("@multiversx/sdk-core"),Ec=require("@multiversx/sdk-network-providers");A();t();t();var Lc=T(require("bignumber.js"));A();t();A();t();t();t();t();t();t();A();t();A();t();A();t();D();var Cc=["reDelegateRewards","claimRewards","unBond"],Rc=["wrapEgld","unwrapEgld"],Pc=["unStake"],Dc=["unDelegate"];t();t();t();A();t();var Bc=T(require("bignumber.js"));t();t();D();t();var Fc=T(require("bignumber.js"));t();t();t();var Wc=T(require("bignumber.js"));U();t();t();t();t();G();t();var Gc=require("@multiversx/sdk-web-wallet-provider");A();t();var $c=T(require("qs"));t();t();t();q();t();q();Be();t();Be();var Wy={search:Me()?window.location.search:"",removeParams:[]};t();t();t();q();t();D();t();t();q();t();var Hc=T(require("linkifyjs"));t();A();t();var jc=T(require("bignumber.js"));t();U();t();t();G();t();G();t();t();t();D();t();D();t();var zc=T(require("bignumber.js"));A();D();t();D();t();var ba=require("react");U();t();t();D();t();t();var qc=require("@multiversx/sdk-core/out"),Kc=T(require("bignumber.js"));D();t();U();t();t();U();var Db=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];t();var Sa=require("react");U();q();t();var Yc=require("react");D();var $b=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];An();var Wo=e=>e.transactions,Ge=x(Wo,e=>e.signedTransactions),I0=x(Wo,e=>e.signTransactionsError),L0=x(Wo,e=>e.signTransactionsCancelMessage),Vo=e=>o=>Object.entries(o).reduce((n,[r,a])=>(e(a.status)&&(n[r]=a),n),{}),E0=x(Ge,Vo(vr)),N0=x(Ge,Vo(wo)),C0=x(Ge,Vo(vo)),R0=x(Ge,Vo(Ar)),P0=x(Wo,e=>{var o;return(e==null?void 0:e.transactionsToSign)==null?null:b(u({},e.transactionsToSign),{transactions:((o=e==null?void 0:e.transactionsToSign)==null?void 0:o.transactions.map(n=>Dn(n)))||[]})}),D0=x(Ge,(e,o)=>o,(e,o)=>o!=null?(e==null?void 0:e[o])||{}:{});K();t();t();t();q();t();t();var Zc=T(require("axios"));t();t();t();t();t();t();t();var Qc=require("@multiversx/sdk-extension-provider"),es=require("@multiversx/sdk-hw-provider"),os=require("@multiversx/sdk-opera-provider"),wa=require("@multiversx/sdk-web-wallet-provider");A();G();t();var ns="/dapp/init";var va=e=>new wa.WalletProvider(`${e}${ns}`);var se=e=>`Unable to perform ${e}, Provider not initialized`,$o=class{init(){return Promise.resolve(!1)}login(o){throw new Error(se(`login with options: ${o}`))}logout(o){throw new Error(se(`logout with options: ${o}`))}getAddress(){throw new Error(se("getAddress"))}isInitialized(){return!1}isConnected(){return Promise.resolve(!1)}sendTransaction(o,n){throw new Error(se(`sendTransaction with transactions: ${o} options: ${n}`))}signTransaction(o,n){throw new Error(se(`signTransaction with transactions: ${o} options: ${n}`))}signTransactions(o,n){throw new Error(se(`signTransactions with transactions: ${o} options: ${n}`))}signMessage(o,n){throw new Error(se(`signTransactions with ${o} and options ${n}`))}sendCustomMessage({method:o,params:n}){throw new Error(se(`sendCustomMessage with method: ${o} params: ${n}`))}sendCustomRequest(o){throw new Error(se(`sendSessionEvent with options: ${o}`))}ping(){return Promise.resolve(!1)}},ts=new $o;t();G();t();t();t();q();t();O();U();t();K();t();K();t();var Ia=require("@multiversx/sdk-core");t();mn();t();t();var as=T(require("platform"));t();function Wn(){return Oo(L.getState())}Be();t();O();U();go();Ae();ke();t();t();t();t();t();t();t();t();t();G();t();go();t();t();t();function La(e){return k(this,null,function*(){return yield new Promise(o=>{setTimeout(()=>o(),e)})})}t();var Ea=(e,o,n,r=0)=>k(void 0,null,function*(){try{return yield e(...n)}catch(a){return r<o.retries?((o==null?void 0:o.delay)!=null&&(yield La(o.delay)),yield Ea(e,o,n,r+1)):null}}),Na=(e,o={retries:5,delay:500})=>(...n)=>k(void 0,null,function*(){return yield Ea(e,o,n)});Ae();t();t();t();K();t();t();var is=T(require("axios"));q();t();var Ca=(e,o=["address"])=>{let n=new URL(e),r=new URLSearchParams(n.search);o.forEach(m=>r.delete(m));let a=Array.from(r.values()).length>0?"?":"",s=n.pathname==="/"&&!e.endsWith("/")?"":n.pathname;return n.protocol==="vscode:"?e:`${n.origin}${s}${a}${r.toString()}${n.hash}`};t();var pi=require("react"),Ho=require("@multiversx/sdk-core");t();t();t();var Vn=()=>B(Le);t();t();t();t();t();var He=T(require("react"));var Tv=(0,He.createContext)({}),bv=L.getState();t();var Pa=T(require("react"));t();var $n=T(require("react")),ps=T(require("axios"));t();t();t();t();var cs=require("react"),ss=T(require("swr"));K();t();t();var ii=require("@multiversx/sdk-native-auth-client");t();var Da=T(require("axios"));var ms=4,_s=3e4,Go={current:null},ye={current:null},ds=Na((e,o,n)=>k(void 0,null,function*(){if(n){let s=Math.floor(Date.now()/1e3);return{hash:yield n(),timestamp:s}}let{data:r}=yield Da.default.get(`${e}/${Mn}?from=${ms}&size=1&fields=hash,timestamp${o?"&shard="+o:""}`),[a]=r;return a}));function Oa(e,o,n,r){return k(this,null,function*(){if(e==null)throw new Error("missing api url");let a=Date.now();if(Go.current!=null&&a<Go.current.timestamp*1e3+_s&&!r)return Go.current;if(ye.current!=null)return yield ye.current;ye.current=ds(e,o,n);try{let s=yield ye.current;if(s==null)throw ye.current=null,new Error("could not get block hash");return Go.current={hash:s.hash,timestamp:s.timestamp},ye.current=null,s}catch(s){return ye.current=null,null}})}t();t();no();t();t();var ti=T(ni());var ze=e=>{if(!e||!(0,ti.default)(e))return null;let o=e.split(".");if(o.length!==4)return null;try{let[n,r,a,s]=o,m=JSON.parse(he(s)),d=he(n);return{ttl:Number(a),extraInfo:m,origin:d,blockHash:r}}catch(n){return console.error(`Error trying to decode ${e}:`,n),null}};function Bs(e){return Object.prototype.toString.call(e)==="[object String]"}var ri=e=>{var n;if(!e||!Bs(e))return null;let o=e.split(".");if(o.length!==3)return console.error("Invalid nativeAuthToken. You may be trying to decode a loginToken. Try using decodeLoginToken method instead"),null;try{let[r,a,s]=o,m=he(r),d=he(a),l=ze(d);if(!l)return{address:m,body:d,signature:s,blockHash:"",origin:"",ttl:0};let f=b(u({},l),{address:m,body:d,signature:s});return(n=l.extraInfo)!=null&&n.timestamp||delete f.extraInfo,f}catch(r){return null}};var Hn={isExpired:!1},ai=e=>{if(!e)return Hn;let o=ri(e);if(!o)return Hn;let n=ve(),{ttl:r,extraInfo:a}=o,s=a==null?void 0:a.timestamp;if(!s)return Hn;let m=s+r,d=n>m,l=m-n;return{isExpired:d,expiresAt:m,secondsUntilExpires:l}};t();q();var qe={origin:W().origin,apiAddress:"https://api.multiversx.com",expirySeconds:60*60*24,tokenExpirationToastWarningSeconds:5*60},Ke=e=>{var n,r,a,s,m,d;return e===!0?qe:{origin:(n=e==null?void 0:e.origin)!=null?n:qe.origin,blockHashShard:e==null?void 0:e.blockHashShard,expirySeconds:(r=e==null?void 0:e.expirySeconds)!=null?r:qe.expirySeconds,apiAddress:(a=e==null?void 0:e.apiAddress)!=null?a:qe.apiAddress,tokenExpirationToastWarningSeconds:(s=e==null?void 0:e.tokenExpirationToastWarningSeconds)!=null?s:qe.tokenExpirationToastWarningSeconds,extraInfo:(m=e==null?void 0:e.extraInfo)!=null?m:{},gatewayUrl:e==null?void 0:e.gatewayUrl,extraRequestHeaders:(d=e==null?void 0:e.extraRequestHeaders)!=null?d:{}}};var jn=e=>{let{origin:o,apiAddress:n,expirySeconds:r,blockHashShard:a,extraInfo:s,gatewayUrl:m,extraRequestHeaders:d}=Ke(e),l=new ii.NativeAuthClient({origin:o,apiUrl:n,expirySeconds:r,blockHashShard:a,gatewayUrl:m,extraRequestHeaders:d});return{getNativeAuthConfig:Ke,initialize:g=>k(void 0,null,function*(){var z,R;if(!n||!o)return"";let w=()=>l.getCurrentBlockHash(),v=(z=g==null?void 0:g.latestBlockInfo)!=null?z:yield Oa(n,a,w,g==null?void 0:g.noCache),{hash:S,timestamp:C}=v,V=l.encodeValue(JSON.stringify(u(u({},(R=g==null?void 0:g.extraInfo)!=null?R:s),C?{timestamp:C}:{})));return`${l.encodeValue(o)}.${S}.${r}.${V}`}),getToken:({address:g,token:w,signature:v})=>l.getToken(g,w,v),getTokenExpiration:ai}};var Fs=(e,o)=>{var n;return o?o===!0?e:(n=o.apiAddress)!=null?n:e:null},ci=e=>{let o=B(pe),n=B(We),r=(0,pi.useRef)(n==null?void 0:n.loginToken),a=Fs(o.apiAddress,e),s=Ke(u(u({},e===!0?{}:e),a?{apiAddress:a}:{})),m=Boolean(e),d=jn(s),{address:l}=Vn(),f=Ro(),y=S=>{r.current=S,f(co(u({loginToken:S},a?{nativeAuthConfig:s}:{})))},g=()=>{try{return d.initialize()}catch(S){console.error("Unable to get block. Login failed.",S);return}},w=({address:S,signature:C})=>{let V=r.current;if(!V)throw"Token not found. Call `setLoginToken` first.";if(!m){f(co({loginToken:V,signature:C}));return}let j=d.getToken({address:S,token:V,signature:C});return f(co(u({loginToken:V,signature:C,nativeAuthToken:j},a?{nativeAuthConfig:s}:{}))),j};return{configuration:s,setLoginToken:y,getNativeAuthLoginToken:g,setTokenLoginInfo:w,refreshNativeAuthTokenLogin:V=>k(void 0,[V],function*({signMessageCallback:S,nativeAuthClientConfig:C}){let z=yield jn(C||s).initialize({noCache:Boolean(C)});if(r.current=z,!z)return;let R=new Ho.SignableMessage({address:new Ho.Address(l),message:i.Buffer.from(`${l}${z}{}`)}),jo=yield S(R,{});return w({address:l,signature:jo.getSignature().toString("hex")})})}};var si=({callbackRoute:e,token:o,nativeAuth:n,redirectDelayMilliseconds:r=100,customWalletAddress:a})=>{let[s,m]=(0,zn.useState)(""),[d,l]=(0,zn.useState)(!1),f=B(pe),y=Ro(),g=Wn(),w=Boolean(n),v=ci(n),S=o;function C(){return k(this,null,function*(){if(g)throw new Error(Tt);y(ur(a));try{l(!0);let j=va(a!=null?a:f.walletAddress),z=new Date,R=z.setMinutes(z.getMinutes()+3)/1e3,jo={data:{},expires:R};if(w&&!S&&(S=yield v.getNativeAuthLoginToken(),!S)){console.warn("Login cancelled.");return}S&&v.setLoginToken(S);let{origin:Kn}=W(),ui=window!=null&&window.location?`${Kn}${e}`:`${e}`;new URLSearchParams(document.location.search).get("address")||y(or(jo));let fi=Ca(ui),xi=encodeURIComponent(fi),hi=b(u({callbackUrl:xi},S&&{token:S}),{redirectDelayMilliseconds:r});yield j.login(hi)}catch(j){console.error(j),m("error logging in"+j.message)}finally{l(!1)}})}let V=Boolean(s);return[C,{error:s,loginFailed:V,isLoading:d&&!V,isLoggedIn:g&&!V}]};t();t();A();var mi=e=>{var a;let o=B(We),n=(a=o==null?void 0:o.loginToken)!=null?a:e;if(!n)return;let r=ze(n);if(!!r)return r.origin.toLowerCase().startsWith(Mt)};t();t();t();var Us=T(require("bignumber.js"));t();var qn=T(require("react")),di=T(require("classnames"));t();var Ws=`.dapp-core-component__main__link-style {
1
+ "use strict";var yi=Object.create;var Ce=Object.defineProperty,Ti=Object.defineProperties,bi=Object.getOwnPropertyDescriptor,Si=Object.getOwnPropertyDescriptors,wi=Object.getOwnPropertyNames,Xe=Object.getOwnPropertySymbols,vi=Object.getPrototypeOf,zo=Object.prototype.hasOwnProperty,Yn=Object.prototype.propertyIsEnumerable;var Xn=(e,o,n)=>o in e?Ce(e,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[o]=n,u=(e,o)=>{for(var n in o||(o={}))zo.call(o,n)&&Xn(e,n,o[n]);if(Xe)for(var n of Xe(o))Yn.call(o,n)&&Xn(e,n,o[n]);return e},b=(e,o)=>Ti(e,Si(o));var Ye=(e,o)=>{var n={};for(var r in e)zo.call(e,r)&&o.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Xe)for(var r of Xe(e))o.indexOf(r)<0&&Yn.call(e,r)&&(n[r]=e[r]);return n};var h=(e,o)=>()=>(e&&(o=e(e=0)),o);var F=(e,o)=>()=>(o||e((o={exports:{}}).exports,o),o.exports),_e=(e,o)=>{for(var n in o)Ce(e,n,{get:o[n],enumerable:!0})},Zn=(e,o,n,r)=>{if(o&&typeof o=="object"||typeof o=="function")for(let a of wi(o))!zo.call(e,a)&&a!==n&&Ce(e,a,{get:()=>o[a],enumerable:!(r=bi(o,a))||r.enumerable});return e};var T=(e,o,n)=>(n=e!=null?yi(vi(e)):{},Zn(o||!e||!e.__esModule?Ce(n,"default",{value:e,enumerable:!0}):n,e)),Re=e=>Zn(Ce({},"__esModule",{value:!0}),e);var k=(e,o,n)=>new Promise((r,a)=>{var s=l=>{try{d(n.next(l))}catch(f){a(f)}},m=l=>{try{d(n.throw(l))}catch(f){a(f)}},d=l=>l.done?r(l.value):Promise.resolve(l.value).then(s,m);d((n=n.apply(e,o)).next())});var et=F(Ze=>{"use strict";t();Ze.byteLength=Ai;Ze.toByteArray=Li;Ze.fromByteArray=Ci;var Y=[],$=[],ki=typeof Uint8Array!="undefined"?Uint8Array:Array,qo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(de=0,Jn=qo.length;de<Jn;++de)Y[de]=qo[de],$[qo.charCodeAt(de)]=de;var de,Jn;$["-".charCodeAt(0)]=62;$["_".charCodeAt(0)]=63;function Qn(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 Ai(e){var o=Qn(e),n=o[0],r=o[1];return(n+r)*3/4-r}function Ii(e,o,n){return(o+n)*3/4-n}function Li(e){var o,n=Qn(e),r=n[0],a=n[1],s=new ki(Ii(e,r,a)),m=0,d=a>0?r-4:r,l;for(l=0;l<d;l+=4)o=$[e.charCodeAt(l)]<<18|$[e.charCodeAt(l+1)]<<12|$[e.charCodeAt(l+2)]<<6|$[e.charCodeAt(l+3)],s[m++]=o>>16&255,s[m++]=o>>8&255,s[m++]=o&255;return a===2&&(o=$[e.charCodeAt(l)]<<2|$[e.charCodeAt(l+1)]>>4,s[m++]=o&255),a===1&&(o=$[e.charCodeAt(l)]<<10|$[e.charCodeAt(l+1)]<<4|$[e.charCodeAt(l+2)]>>2,s[m++]=o>>8&255,s[m++]=o&255),s}function Ei(e){return Y[e>>18&63]+Y[e>>12&63]+Y[e>>6&63]+Y[e&63]}function Ni(e,o,n){for(var r,a=[],s=o;s<n;s+=3)r=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(e[s+2]&255),a.push(Ei(r));return a.join("")}function Ci(e){for(var o,n=e.length,r=n%3,a=[],s=16383,m=0,d=n-r;m<d;m+=s)a.push(Ni(e,m,m+s>d?d:m+s));return r===1?(o=e[n-1],a.push(Y[o>>2]+Y[o<<4&63]+"==")):r===2&&(o=(e[n-2]<<8)+e[n-1],a.push(Y[o>>10]+Y[o>>4&63]+Y[o<<2&63]+"=")),a.join("")}});var ot=F(Ko=>{t();Ko.read=function(e,o,n,r,a){var s,m,d=a*8-r-1,l=(1<<d)-1,f=l>>1,y=-7,g=n?a-1:0,w=n?-1:1,v=e[o+g];for(g+=w,s=v&(1<<-y)-1,v>>=-y,y+=d;y>0;s=s*256+e[o+g],g+=w,y-=8);for(m=s&(1<<-y)-1,s>>=-y,y+=r;y>0;m=m*256+e[o+g],g+=w,y-=8);if(s===0)s=1-f;else{if(s===l)return m?NaN:(v?-1:1)*(1/0);m=m+Math.pow(2,r),s=s-f}return(v?-1:1)*m*Math.pow(2,s-r)};Ko.write=function(e,o,n,r,a,s){var m,d,l,f=s*8-a-1,y=(1<<f)-1,g=y>>1,w=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,v=r?0:s-1,S=r?1:-1,C=o<0||o===0&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(d=isNaN(o)?1:0,m=y):(m=Math.floor(Math.log(o)/Math.LN2),o*(l=Math.pow(2,-m))<1&&(m--,l*=2),m+g>=1?o+=w/l:o+=w*Math.pow(2,1-g),o*l>=2&&(m++,l/=2),m+g>=y?(d=0,m=y):m+g>=1?(d=(o*l-1)*Math.pow(2,a),m=m+g):(d=o*Math.pow(2,g-1)*Math.pow(2,a),m=0));a>=8;e[n+v]=d&255,v+=S,d/=256,a-=8);for(m=m<<a|d,f+=a;f>0;e[n+v]=m&255,v+=S,m/=256,f-=8);e[n+v-S]|=C*128}});var gt=F(be=>{"use strict";t();var Xo=et(),Te=ot(),nt=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;be.Buffer=_;be.SlowBuffer=Bi;be.INSPECT_MAX_BYTES=50;var Je=2147483647;be.kMaxLength=Je;_.TYPED_ARRAY_SUPPORT=Ri();!_.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 Ri(){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(_.prototype,"parent",{enumerable:!0,get:function(){if(!!_.isBuffer(this))return this.buffer}});Object.defineProperty(_.prototype,"offset",{enumerable:!0,get:function(){if(!!_.isBuffer(this))return this.byteOffset}});function te(e){if(e>Je)throw new RangeError('The value "'+e+'" is invalid for option "size"');var o=new Uint8Array(e);return Object.setPrototypeOf(o,_.prototype),o}function _(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 Qo(e)}return at(e,o,n)}_.poolSize=8192;function at(e,o,n){if(typeof e=="string")return Di(e,o);if(ArrayBuffer.isView(e))return Oi(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(Z(e,ArrayBuffer)||e&&Z(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Z(e,SharedArrayBuffer)||e&&Z(e.buffer,SharedArrayBuffer)))return Zo(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 _.from(r,o,n);var a=Mi(e);if(a)return a;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return _.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)}_.from=function(e,o,n){return at(e,o,n)};Object.setPrototypeOf(_.prototype,Uint8Array.prototype);Object.setPrototypeOf(_,Uint8Array);function it(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 Pi(e,o,n){return it(e),e<=0?te(e):o!==void 0?typeof n=="string"?te(e).fill(o,n):te(e).fill(o):te(e)}_.alloc=function(e,o,n){return Pi(e,o,n)};function Qo(e){return it(e),te(e<0?0:en(e)|0)}_.allocUnsafe=function(e){return Qo(e)};_.allocUnsafeSlow=function(e){return Qo(e)};function Di(e,o){if((typeof o!="string"||o==="")&&(o="utf8"),!_.isEncoding(o))throw new TypeError("Unknown encoding: "+o);var n=pt(e,o)|0,r=te(n),a=r.write(e,o);return a!==n&&(r=r.slice(0,a)),r}function Yo(e){for(var o=e.length<0?0:en(e.length)|0,n=te(o),r=0;r<o;r+=1)n[r]=e[r]&255;return n}function Oi(e){if(Z(e,Uint8Array)){var o=new Uint8Array(e);return Zo(o.buffer,o.byteOffset,o.byteLength)}return Yo(e)}function Zo(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,_.prototype),r}function Mi(e){if(_.isBuffer(e)){var o=en(e.length)|0,n=te(o);return n.length===0||e.copy(n,0,0,o),n}if(e.length!==void 0)return typeof e.length!="number"||on(e.length)?te(0):Yo(e);if(e.type==="Buffer"&&Array.isArray(e.data))return Yo(e.data)}function en(e){if(e>=Je)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Je.toString(16)+" bytes");return e|0}function Bi(e){return+e!=e&&(e=0),_.alloc(+e)}_.isBuffer=function(o){return o!=null&&o._isBuffer===!0&&o!==_.prototype};_.compare=function(o,n){if(Z(o,Uint8Array)&&(o=_.from(o,o.offset,o.byteLength)),Z(n,Uint8Array)&&(n=_.from(n,n.offset,n.byteLength)),!_.isBuffer(o)||!_.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,a=n.length,s=0,m=Math.min(r,a);s<m;++s)if(o[s]!==n[s]){r=o[s],a=n[s];break}return r<a?-1:a<r?1:0};_.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}};_.concat=function(o,n){if(!Array.isArray(o))throw new TypeError('"list" argument must be an Array of Buffers');if(o.length===0)return _.alloc(0);var r;if(n===void 0)for(n=0,r=0;r<o.length;++r)n+=o[r].length;var a=_.allocUnsafe(n),s=0;for(r=0;r<o.length;++r){var m=o[r];if(Z(m,Uint8Array))s+m.length>a.length?_.from(m).copy(a,s):Uint8Array.prototype.set.call(a,m,s);else if(_.isBuffer(m))m.copy(a,s);else throw new TypeError('"list" argument must be an Array of Buffers');s+=m.length}return a};function pt(e,o){if(_.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Z(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 a=!1;;)switch(o){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return Jo(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n*2;case"hex":return n>>>1;case"base64":return lt(e).length;default:if(a)return r?-1:Jo(e).length;o=(""+o).toLowerCase(),a=!0}}_.byteLength=pt;function Fi(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 Ki(this,o,n);case"utf8":case"utf-8":return st(this,o,n);case"ascii":return zi(this,o,n);case"latin1":case"binary":return qi(this,o,n);case"base64":return Hi(this,o,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Xi(this,o,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}_.prototype._isBuffer=!0;function le(e,o,n){var r=e[o];e[o]=e[n],e[n]=r}_.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)le(this,n,n+1);return this};_.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)le(this,n,n+3),le(this,n+1,n+2);return this};_.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)le(this,n,n+7),le(this,n+1,n+6),le(this,n+2,n+5),le(this,n+3,n+4);return this};_.prototype.toString=function(){var o=this.length;return o===0?"":arguments.length===0?st(this,0,o):Fi.apply(this,arguments)};_.prototype.toLocaleString=_.prototype.toString;_.prototype.equals=function(o){if(!_.isBuffer(o))throw new TypeError("Argument must be a Buffer");return this===o?!0:_.compare(this,o)===0};_.prototype.inspect=function(){var o="",n=be.INSPECT_MAX_BYTES;return o=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(o+=" ... "),"<Buffer "+o+">"};nt&&(_.prototype[nt]=_.prototype.inspect);_.prototype.compare=function(o,n,r,a,s){if(Z(o,Uint8Array)&&(o=_.from(o,o.offset,o.byteLength)),!_.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),a===void 0&&(a=0),s===void 0&&(s=this.length),n<0||r>o.length||a<0||s>this.length)throw new RangeError("out of range index");if(a>=s&&n>=r)return 0;if(a>=s)return-1;if(n>=r)return 1;if(n>>>=0,r>>>=0,a>>>=0,s>>>=0,this===o)return 0;for(var m=s-a,d=r-n,l=Math.min(m,d),f=this.slice(a,s),y=o.slice(n,r),g=0;g<l;++g)if(f[g]!==y[g]){m=f[g],d=y[g];break}return m<d?-1:d<m?1:0};function ct(e,o,n,r,a){if(e.length===0)return-1;if(typeof n=="string"?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,on(n)&&(n=a?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(a)return-1;n=e.length-1}else if(n<0)if(a)n=0;else return-1;if(typeof o=="string"&&(o=_.from(o,r)),_.isBuffer(o))return o.length===0?-1:tt(e,o,n,r,a);if(typeof o=="number")return o=o&255,typeof Uint8Array.prototype.indexOf=="function"?a?Uint8Array.prototype.indexOf.call(e,o,n):Uint8Array.prototype.lastIndexOf.call(e,o,n):tt(e,[o],n,r,a);throw new TypeError("val must be string, number or Buffer")}function tt(e,o,n,r,a){var s=1,m=e.length,d=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;s=2,m/=2,d/=2,n/=2}function l(v,S){return s===1?v[S]:v.readUInt16BE(S*s)}var f;if(a){var y=-1;for(f=n;f<m;f++)if(l(e,f)===l(o,y===-1?0:f-y)){if(y===-1&&(y=f),f-y+1===d)return y*s}else y!==-1&&(f-=f-y),y=-1}else for(n+d>m&&(n=m-d),f=n;f>=0;f--){for(var g=!0,w=0;w<d;w++)if(l(e,f+w)!==l(o,w)){g=!1;break}if(g)return f}return-1}_.prototype.includes=function(o,n,r){return this.indexOf(o,n,r)!==-1};_.prototype.indexOf=function(o,n,r){return ct(this,o,n,r,!0)};_.prototype.lastIndexOf=function(o,n,r){return ct(this,o,n,r,!1)};function Ui(e,o,n,r){n=Number(n)||0;var a=e.length-n;r?(r=Number(r),r>a&&(r=a)):r=a;var s=o.length;r>s/2&&(r=s/2);for(var m=0;m<r;++m){var d=parseInt(o.substr(m*2,2),16);if(on(d))return m;e[n+m]=d}return m}function Wi(e,o,n,r){return Qe(Jo(o,e.length-n),e,n,r)}function Vi(e,o,n,r){return Qe(Ji(o),e,n,r)}function $i(e,o,n,r){return Qe(lt(o),e,n,r)}function Gi(e,o,n,r){return Qe(Qi(o,e.length-n),e,n,r)}_.prototype.write=function(o,n,r,a){if(n===void 0)a="utf8",r=this.length,n=0;else if(r===void 0&&typeof n=="string")a=n,r=this.length,n=0;else if(isFinite(n))n=n>>>0,isFinite(r)?(r=r>>>0,a===void 0&&(a="utf8")):(a=r,r=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var s=this.length-n;if((r===void 0||r>s)&&(r=s),o.length>0&&(r<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");a||(a="utf8");for(var m=!1;;)switch(a){case"hex":return Ui(this,o,n,r);case"utf8":case"utf-8":return Wi(this,o,n,r);case"ascii":case"latin1":case"binary":return Vi(this,o,n,r);case"base64":return $i(this,o,n,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Gi(this,o,n,r);default:if(m)throw new TypeError("Unknown encoding: "+a);a=(""+a).toLowerCase(),m=!0}};_.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Hi(e,o,n){return o===0&&n===e.length?Xo.fromByteArray(e):Xo.fromByteArray(e.slice(o,n))}function st(e,o,n){n=Math.min(e.length,n);for(var r=[],a=o;a<n;){var s=e[a],m=null,d=s>239?4:s>223?3:s>191?2:1;if(a+d<=n){var l,f,y,g;switch(d){case 1:s<128&&(m=s);break;case 2:l=e[a+1],(l&192)===128&&(g=(s&31)<<6|l&63,g>127&&(m=g));break;case 3:l=e[a+1],f=e[a+2],(l&192)===128&&(f&192)===128&&(g=(s&15)<<12|(l&63)<<6|f&63,g>2047&&(g<55296||g>57343)&&(m=g));break;case 4:l=e[a+1],f=e[a+2],y=e[a+3],(l&192)===128&&(f&192)===128&&(y&192)===128&&(g=(s&15)<<18|(l&63)<<12|(f&63)<<6|y&63,g>65535&&g<1114112&&(m=g))}}m===null?(m=65533,d=1):m>65535&&(m-=65536,r.push(m>>>10&1023|55296),m=56320|m&1023),r.push(m),a+=d}return ji(r)}var rt=4096;function ji(e){var o=e.length;if(o<=rt)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<o;)n+=String.fromCharCode.apply(String,e.slice(r,r+=rt));return n}function zi(e,o,n){var r="";n=Math.min(e.length,n);for(var a=o;a<n;++a)r+=String.fromCharCode(e[a]&127);return r}function qi(e,o,n){var r="";n=Math.min(e.length,n);for(var a=o;a<n;++a)r+=String.fromCharCode(e[a]);return r}function Ki(e,o,n){var r=e.length;(!o||o<0)&&(o=0),(!n||n<0||n>r)&&(n=r);for(var a="",s=o;s<n;++s)a+=ep[e[s]];return a}function Xi(e,o,n){for(var r=e.slice(o,n),a="",s=0;s<r.length-1;s+=2)a+=String.fromCharCode(r[s]+r[s+1]*256);return a}_.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 a=this.subarray(o,n);return Object.setPrototypeOf(a,_.prototype),a};function N(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")}_.prototype.readUintLE=_.prototype.readUIntLE=function(o,n,r){o=o>>>0,n=n>>>0,r||N(o,n,this.length);for(var a=this[o],s=1,m=0;++m<n&&(s*=256);)a+=this[o+m]*s;return a};_.prototype.readUintBE=_.prototype.readUIntBE=function(o,n,r){o=o>>>0,n=n>>>0,r||N(o,n,this.length);for(var a=this[o+--n],s=1;n>0&&(s*=256);)a+=this[o+--n]*s;return a};_.prototype.readUint8=_.prototype.readUInt8=function(o,n){return o=o>>>0,n||N(o,1,this.length),this[o]};_.prototype.readUint16LE=_.prototype.readUInt16LE=function(o,n){return o=o>>>0,n||N(o,2,this.length),this[o]|this[o+1]<<8};_.prototype.readUint16BE=_.prototype.readUInt16BE=function(o,n){return o=o>>>0,n||N(o,2,this.length),this[o]<<8|this[o+1]};_.prototype.readUint32LE=_.prototype.readUInt32LE=function(o,n){return o=o>>>0,n||N(o,4,this.length),(this[o]|this[o+1]<<8|this[o+2]<<16)+this[o+3]*16777216};_.prototype.readUint32BE=_.prototype.readUInt32BE=function(o,n){return o=o>>>0,n||N(o,4,this.length),this[o]*16777216+(this[o+1]<<16|this[o+2]<<8|this[o+3])};_.prototype.readIntLE=function(o,n,r){o=o>>>0,n=n>>>0,r||N(o,n,this.length);for(var a=this[o],s=1,m=0;++m<n&&(s*=256);)a+=this[o+m]*s;return s*=128,a>=s&&(a-=Math.pow(2,8*n)),a};_.prototype.readIntBE=function(o,n,r){o=o>>>0,n=n>>>0,r||N(o,n,this.length);for(var a=n,s=1,m=this[o+--a];a>0&&(s*=256);)m+=this[o+--a]*s;return s*=128,m>=s&&(m-=Math.pow(2,8*n)),m};_.prototype.readInt8=function(o,n){return o=o>>>0,n||N(o,1,this.length),this[o]&128?(255-this[o]+1)*-1:this[o]};_.prototype.readInt16LE=function(o,n){o=o>>>0,n||N(o,2,this.length);var r=this[o]|this[o+1]<<8;return r&32768?r|4294901760:r};_.prototype.readInt16BE=function(o,n){o=o>>>0,n||N(o,2,this.length);var r=this[o+1]|this[o]<<8;return r&32768?r|4294901760:r};_.prototype.readInt32LE=function(o,n){return o=o>>>0,n||N(o,4,this.length),this[o]|this[o+1]<<8|this[o+2]<<16|this[o+3]<<24};_.prototype.readInt32BE=function(o,n){return o=o>>>0,n||N(o,4,this.length),this[o]<<24|this[o+1]<<16|this[o+2]<<8|this[o+3]};_.prototype.readFloatLE=function(o,n){return o=o>>>0,n||N(o,4,this.length),Te.read(this,o,!0,23,4)};_.prototype.readFloatBE=function(o,n){return o=o>>>0,n||N(o,4,this.length),Te.read(this,o,!1,23,4)};_.prototype.readDoubleLE=function(o,n){return o=o>>>0,n||N(o,8,this.length),Te.read(this,o,!0,52,8)};_.prototype.readDoubleBE=function(o,n){return o=o>>>0,n||N(o,8,this.length),Te.read(this,o,!1,52,8)};function P(e,o,n,r,a,s){if(!_.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(o>a||o<s)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}_.prototype.writeUintLE=_.prototype.writeUIntLE=function(o,n,r,a){if(o=+o,n=n>>>0,r=r>>>0,!a){var s=Math.pow(2,8*r)-1;P(this,o,n,r,s,0)}var m=1,d=0;for(this[n]=o&255;++d<r&&(m*=256);)this[n+d]=o/m&255;return n+r};_.prototype.writeUintBE=_.prototype.writeUIntBE=function(o,n,r,a){if(o=+o,n=n>>>0,r=r>>>0,!a){var s=Math.pow(2,8*r)-1;P(this,o,n,r,s,0)}var m=r-1,d=1;for(this[n+m]=o&255;--m>=0&&(d*=256);)this[n+m]=o/d&255;return n+r};_.prototype.writeUint8=_.prototype.writeUInt8=function(o,n,r){return o=+o,n=n>>>0,r||P(this,o,n,1,255,0),this[n]=o&255,n+1};_.prototype.writeUint16LE=_.prototype.writeUInt16LE=function(o,n,r){return o=+o,n=n>>>0,r||P(this,o,n,2,65535,0),this[n]=o&255,this[n+1]=o>>>8,n+2};_.prototype.writeUint16BE=_.prototype.writeUInt16BE=function(o,n,r){return o=+o,n=n>>>0,r||P(this,o,n,2,65535,0),this[n]=o>>>8,this[n+1]=o&255,n+2};_.prototype.writeUint32LE=_.prototype.writeUInt32LE=function(o,n,r){return o=+o,n=n>>>0,r||P(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};_.prototype.writeUint32BE=_.prototype.writeUInt32BE=function(o,n,r){return o=+o,n=n>>>0,r||P(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};_.prototype.writeIntLE=function(o,n,r,a){if(o=+o,n=n>>>0,!a){var s=Math.pow(2,8*r-1);P(this,o,n,r,s-1,-s)}var m=0,d=1,l=0;for(this[n]=o&255;++m<r&&(d*=256);)o<0&&l===0&&this[n+m-1]!==0&&(l=1),this[n+m]=(o/d>>0)-l&255;return n+r};_.prototype.writeIntBE=function(o,n,r,a){if(o=+o,n=n>>>0,!a){var s=Math.pow(2,8*r-1);P(this,o,n,r,s-1,-s)}var m=r-1,d=1,l=0;for(this[n+m]=o&255;--m>=0&&(d*=256);)o<0&&l===0&&this[n+m+1]!==0&&(l=1),this[n+m]=(o/d>>0)-l&255;return n+r};_.prototype.writeInt8=function(o,n,r){return o=+o,n=n>>>0,r||P(this,o,n,1,127,-128),o<0&&(o=255+o+1),this[n]=o&255,n+1};_.prototype.writeInt16LE=function(o,n,r){return o=+o,n=n>>>0,r||P(this,o,n,2,32767,-32768),this[n]=o&255,this[n+1]=o>>>8,n+2};_.prototype.writeInt16BE=function(o,n,r){return o=+o,n=n>>>0,r||P(this,o,n,2,32767,-32768),this[n]=o>>>8,this[n+1]=o&255,n+2};_.prototype.writeInt32LE=function(o,n,r){return o=+o,n=n>>>0,r||P(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};_.prototype.writeInt32BE=function(o,n,r){return o=+o,n=n>>>0,r||P(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 mt(e,o,n,r,a,s){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function _t(e,o,n,r,a){return o=+o,n=n>>>0,a||mt(e,o,n,4,34028234663852886e22,-34028234663852886e22),Te.write(e,o,n,r,23,4),n+4}_.prototype.writeFloatLE=function(o,n,r){return _t(this,o,n,!0,r)};_.prototype.writeFloatBE=function(o,n,r){return _t(this,o,n,!1,r)};function dt(e,o,n,r,a){return o=+o,n=n>>>0,a||mt(e,o,n,8,17976931348623157e292,-17976931348623157e292),Te.write(e,o,n,r,52,8),n+8}_.prototype.writeDoubleLE=function(o,n,r){return dt(this,o,n,!0,r)};_.prototype.writeDoubleBE=function(o,n,r){return dt(this,o,n,!1,r)};_.prototype.copy=function(o,n,r,a){if(!_.isBuffer(o))throw new TypeError("argument should be a Buffer");if(r||(r=0),!a&&a!==0&&(a=this.length),n>=o.length&&(n=o.length),n||(n=0),a>0&&a<r&&(a=r),a===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(a<0)throw new RangeError("sourceEnd out of bounds");a>this.length&&(a=this.length),o.length-n<a-r&&(a=o.length-n+r);var s=a-r;return this===o&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(n,r,a):Uint8Array.prototype.set.call(o,this.subarray(r,a),n),s};_.prototype.fill=function(o,n,r,a){if(typeof o=="string"){if(typeof n=="string"?(a=n,n=0,r=this.length):typeof r=="string"&&(a=r,r=this.length),a!==void 0&&typeof a!="string")throw new TypeError("encoding must be a string");if(typeof a=="string"&&!_.isEncoding(a))throw new TypeError("Unknown encoding: "+a);if(o.length===1){var s=o.charCodeAt(0);(a==="utf8"&&s<128||a==="latin1")&&(o=s)}}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 m;if(typeof o=="number")for(m=n;m<r;++m)this[m]=o;else{var d=_.isBuffer(o)?o:_.from(o,a),l=d.length;if(l===0)throw new TypeError('The value "'+o+'" is invalid for argument "value"');for(m=0;m<r-n;++m)this[m+n]=d[m%l]}return this};var Yi=/[^+/0-9A-Za-z-_]/g;function Zi(e){if(e=e.split("=")[0],e=e.trim().replace(Yi,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function Jo(e,o){o=o||1/0;for(var n,r=e.length,a=null,s=[],m=0;m<r;++m){if(n=e.charCodeAt(m),n>55295&&n<57344){if(!a){if(n>56319){(o-=3)>-1&&s.push(239,191,189);continue}else if(m+1===r){(o-=3)>-1&&s.push(239,191,189);continue}a=n;continue}if(n<56320){(o-=3)>-1&&s.push(239,191,189),a=n;continue}n=(a-55296<<10|n-56320)+65536}else a&&(o-=3)>-1&&s.push(239,191,189);if(a=null,n<128){if((o-=1)<0)break;s.push(n)}else if(n<2048){if((o-=2)<0)break;s.push(n>>6|192,n&63|128)}else if(n<65536){if((o-=3)<0)break;s.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((o-=4)<0)break;s.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw new Error("Invalid code point")}return s}function Ji(e){for(var o=[],n=0;n<e.length;++n)o.push(e.charCodeAt(n)&255);return o}function Qi(e,o){for(var n,r,a,s=[],m=0;m<e.length&&!((o-=2)<0);++m)n=e.charCodeAt(m),r=n>>8,a=n%256,s.push(a),s.push(r);return s}function lt(e){return Xo.toByteArray(Zi(e))}function Qe(e,o,n,r){for(var a=0;a<r&&!(a+n>=o.length||a>=e.length);++a)o[a+n]=e[a];return a}function Z(e,o){return e instanceof o||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===o.name}function on(e){return e!==e}var ep=function(){for(var e="0123456789abcdef",o=new Array(256),n=0;n<16;++n)for(var r=n*16,a=0;a<16;++a)o[r+a]=e[n]+e[a];return o}()});var yt=F((Ys,ht)=>{t();var E=ht.exports={},J,Q;function nn(){throw new Error("setTimeout has not been defined")}function tn(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?J=setTimeout:J=nn}catch(e){J=nn}try{typeof clearTimeout=="function"?Q=clearTimeout:Q=tn}catch(e){Q=tn}})();function ut(e){if(J===setTimeout)return setTimeout(e,0);if((J===nn||!J)&&setTimeout)return J=setTimeout,setTimeout(e,0);try{return J(e,0)}catch(o){try{return J.call(null,e,0)}catch(n){return J.call(this,e,0)}}}function op(e){if(Q===clearTimeout)return clearTimeout(e);if((Q===tn||!Q)&&clearTimeout)return Q=clearTimeout,clearTimeout(e);try{return Q(e)}catch(o){try{return Q.call(null,e)}catch(n){return Q.call(this,e)}}}var re=[],Se=!1,ge,eo=-1;function np(){!Se||!ge||(Se=!1,ge.length?re=ge.concat(re):eo=-1,re.length&&ft())}function ft(){if(!Se){var e=ut(np);Se=!0;for(var o=re.length;o;){for(ge=re,re=[];++eo<o;)ge&&ge[eo].run();eo=-1,o=re.length}ge=null,Se=!1,op(e)}}E.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];re.push(new xt(e,o)),re.length===1&&!Se&&ut(ft)};function xt(e,o){this.fun=e,this.array=o}xt.prototype.run=function(){this.fun.apply(null,this.array)};E.title="browser";E.browser=!0;E.env={};E.argv=[];E.version="";E.versions={};function ae(){}E.on=ae;E.addListener=ae;E.once=ae;E.off=ae;E.removeListener=ae;E.removeAllListeners=ae;E.emit=ae;E.prependListener=ae;E.prependOnceListener=ae;E.listeners=function(e){return[]};E.binding=function(e){throw new Error("process.binding is not supported")};E.cwd=function(){return"/"};E.chdir=function(e){throw new Error("process.chdir is not supported")};E.umask=function(){return 0}});var i,c,tp,p,t=h(()=>{i=T(gt()),c=T(yt()),tp=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),p=tp});var Tt=h(()=>{"use strict";t()});var bt,rn=h(()=>{"use strict";t();bt="Action not allowed. User is logged in. Call logout() first"});var St=h(()=>{"use strict";t()});var wt=h(()=>{"use strict";t()});var an=h(()=>{"use strict";t()});var vt=h(()=>{"use strict";t()});var kt=h(()=>{"use strict";t()});var At=h(()=>{"use strict";t()});var It=h(()=>{"use strict";t()});var G=h(()=>{"use strict";t()});var Lt=h(()=>{"use strict";t()});var Et=h(()=>{"use strict";t()});var D=h(()=>{"use strict";t()});var Nt=h(()=>{"use strict";t()});var Ct=h(()=>{"use strict";t()});var Rt=h(()=>{"use strict";t()});var U=h(()=>{"use strict";t();kt();At();It();G();Lt();Et();D();Nt();Ct();Rt()});var pn,Pt,bm,Dt,Sm,Ot,wm,vm,km,Mt,Bt=h(()=>{"use strict";t();U();pn={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:"EGLD",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:Pt,egldLabel:bm}=pn["devnet"],{chainId:Dt,egldLabel:Sm}=pn["testnet"],{chainId:Ot,egldLabel:wm}=pn["mainnet"],vm={["devnet"]:Pt,["testnet"]:Dt,["mainnet"]:Ot},km={[Pt]:"devnet",[Dt]:"testnet",[Ot]:"mainnet"},Mt="multiversx://"});var Ft=h(()=>{"use strict";t()});var ee,Ut=h(()=>{"use strict";t();ee=require("@multiversx/sdk-web-wallet-provider")});var cn,sn,Wt,oo,Vt,we,A=h(()=>{"use strict";t();Tt();rn();St();wt();an();vt();Bt();Ft();Ut();cn=5e4,sn=1e9,Wt=1,oo="logout",Vt="login",we="0"});var ve,no=h(()=>{"use strict";t();ve=()=>Date.now()/1e3});var $t=h(()=>{"use strict";t()});var Gt=h(()=>{"use strict";t()});var mn=h(()=>{"use strict";t();no();$t();Gt()});var _n={};_e(_n,{clear:()=>pp,getItem:()=>ap,localStorageKeys:()=>me,removeItem:()=>ip,setItem:()=>rp});var me,to,rp,ap,ip,pp,ke=h(()=>{"use strict";t();mn();me={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},to=typeof localStorage!="undefined",rp=({key:e,data:o,expires:n})=>{!to||localStorage.setItem(String(e),JSON.stringify({expires:n,data:o}))},ap=e=>{if(!to)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:ve()>=n.expires?(localStorage.removeItem(String(e)),null):n.data},ip=e=>{!to||localStorage.removeItem(String(e))},pp=()=>{!to||localStorage.clear()}});var dn={};_e(dn,{clear:()=>qt,getItem:()=>jt,removeItem:()=>zt,setItem:()=>Ht,storage:()=>cp});var Ht,jt,zt,qt,cp,Kt=h(()=>{"use strict";t();Ht=({key:e,data:o,expires:n})=>{sessionStorage.setItem(String(e),JSON.stringify({expires:n,data:o}))},jt=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},zt=e=>sessionStorage.removeItem(String(e)),qt=()=>sessionStorage.clear(),cp={setItem:Ht,getItem:jt,removeItem:zt,clear:qt}});var ue,Ae=h(()=>{"use strict";t();ke();Kt();ue={session:dn,local:_n}});var ln,I,Pe,O=h(()=>{"use strict";t();ln=require("@reduxjs/toolkit");A();I=(0,ln.createAction)(oo),Pe=(0,ln.createAction)(Vt,e=>({payload:e}))});var un,Xt,Yt,ro,gn,Zt,fn,n_,xn,t_,r_,a_,i_,p_,c_,s_,m_,ao,io=h(()=>{"use strict";t();un=require("@multiversx/sdk-core"),Xt=require("@reduxjs/toolkit"),Yt=require("redux-persist");A();Ae();ke();O();ro={balance:"...",address:"",isGuarded:!1,nonce:0,txCount:0,scrCount:0,claimableRewards:we},gn={address:"",websocketEvent:null,websocketBatchEvent:null,accounts:{"":ro},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},Zt=(0,Xt.createSlice)({name:"accountInfoSlice",initialState:gn,reducers:{setAddress:(e,o)=>{let n=o.payload;e.address=n,e.publicKey=new un.Address(n).hex()},setAccount:(e,o)=>{let n=e.address===o.payload.address;e.accounts={[e.address]:n?o.payload:ro},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}},setWebsocketBatchEvent:(e,o)=>{e.websocketBatchEvent={timestamp:Date.now(),data:o.payload}}},extraReducers:e=>{e.addCase(I,()=>(ue.local.removeItem(me.loginExpiresAt),gn)),e.addCase(Pe,(o,n)=>{let{address:r}=n.payload;o.address=r,o.publicKey=new un.Address(r).hex()}),e.addCase(Yt.REHYDRATE,(o,n)=>{var f;if(!((f=n.payload)!=null&&f.account))return;let{account:r}=n.payload,{address:a,shard:s,accounts:m,publicKey:d}=r;o.address=a,o.shard=s;let l=m&&a in m;o.accounts=l?m:gn.accounts,o.publicKey=d})}}),{setAccount:fn,setAddress:n_,setAccountNonce:xn,setAccountShard:t_,setLedgerAccount:r_,updateLedgerAccount:a_,setWalletConnectAccount:i_,setIsAccountLoading:p_,setAccountLoadingError:c_,setWebsocketEvent:s_,setWebsocketBatchEvent:m_}=Zt.actions,ao=Zt.reducer});function De(){return new Date().setHours(new Date().getHours()+24)}function Oe(e){ue.local.setItem({key:me.loginExpiresAt,data:e,expires:e})}var hn=h(()=>{"use strict";t();Ae();ke()});var Qt,Jt,er,T_,b_,S_,co,w_,or,nr,v_,so,mo=h(()=>{"use strict";t();Qt=require("@reduxjs/toolkit");hn();G();O();Jt={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,isLoginSessionInvalid:!1},er=(0,Qt.createSlice)({name:"loginInfoSlice",initialState:Jt,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(I,()=>Jt),e.addCase(Pe,(o,n)=>{o.isLoginSessionInvalid=!1,o.loginMethod=n.payload.loginMethod,Oe(De())})}}),{setLoginMethod:T_,setWalletConnectLogin:b_,setLedgerLogin:S_,setTokenLogin:co,setTokenLoginSignature:w_,setWalletLogin:or,invalidateLoginSession:nr,setLogoutRoute:v_}=er.actions,so=er.reducer});var rr,tr,ar,L_,E_,N_,C_,_o,lo=h(()=>{"use strict";t();rr=require("@reduxjs/toolkit");O();tr={},ar=(0,rr.createSlice)({name:"modalsSlice",initialState:tr,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(I,()=>tr)}}),{setTxSubmittedModal:L_,setNotificationModal:E_,clearTxSubmittedModal:N_,clearNotificationModal:C_}=ar.actions,_o=ar.reducer});var Me,Be=h(()=>{"use strict";t();Me=()=>typeof window!="undefined"&&typeof(window==null?void 0:window.location)!="undefined"});var W,q=h(()=>{"use strict";t();Be();W=()=>{if(!Me())return{pathname:"",hash:"",origin:"",href:"",search:""};let{location:{pathname:o,hash:n,origin:r,href:a,search:s}}=window;return{pathname:o,hash:n,origin:r,href:a,search:s}}});var go=h(()=>{"use strict";t()});var ir=h(()=>{"use strict";t();q();go()});function pr(e){return e[Math.floor(Math.random()*e.length)]}var cr=h(()=>{"use strict";t()});var sr=h(()=>{"use strict";t();an()});var mr=h(()=>{"use strict";t();ir();cr();sr()});var _r,dr,lr,yn,mp,gr,Z_,J_,ur,uo,fo=h(()=>{"use strict";t();_r=require("@reduxjs/toolkit"),dr=T(require("lodash.omit")),lr=require("redux-persist");O();mr();yn={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},mp={network:yn,chainID:"-1"},gr=(0,_r.createSlice)({name:"appConfig",initialState:mp,reducers:{initializeNetworkConfig:(e,o)=>{let n=pr(o.payload.walletConnectV2RelayAddresses),r=(0,dr.default)(o.payload,"walletConnectV2RelayAddresses");e.network=b(u(u({},e.network),r),{walletConnectV2RelayAddress:n})},setChainID:(e,o)=>{e.chainID=o.payload},setCustomWalletAddress:(e,o)=>{e.network.customWalletAddress=o.payload}},extraReducers:e=>{e.addCase(I,o=>{o.network.customWalletAddress=void 0}),e.addCase(lr.REHYDRATE,(o,n)=>{var a,s;if(!((s=(a=n.payload)==null?void 0:a.network)!=null&&s.customWalletAddress))return;let{network:{customWalletAddress:r}}=n.payload;o.network.customWalletAddress=r})}}),{initializeNetworkConfig:Z_,setChainID:J_,setCustomWalletAddress:ur}=gr.actions,uo=gr.reducer});var fr,Tn,xr,rd,ad,id,xo,ho=h(()=>{"use strict";t();fr=require("@reduxjs/toolkit");U();O();Tn={isSigning:!1,signedSessions:{}},xr=(0,fr.createSlice)({name:"signedMessageInfoSliceState",initialState:Tn,reducers:{setSignSession:(e,o)=>{let{sessionId:n,signedSession:r,errorMessage:a}=o.payload;a&&(e.errorMessage=a),e.isSigning=r.status==="pending",e.signedSessions[n]=r},setSignSessionState:(e,o)=>u(u({},e),o.payload),clearSignedMessageInfo:()=>Tn},extraReducers:e=>{e.addCase(I,()=>Tn)}}),{setSignSession:rd,clearSignedMessageInfo:ad,setSignSessionState:id}=xr.actions,xo=xr.reducer});var yr,Tr,hr,br,_p,dp,ld,gd,yo,To=h(()=>{"use strict";t();yr=require("@reduxjs/toolkit"),Tr=require("redux-persist");U();no();O();hr={customToasts:[],transactionToasts:[]},br=(0,yr.createSlice)({name:"toastsSlice",initialState:hr,reducers:{addCustomToast:(e,o)=>{let n=o.payload.toastId||`custom-toast-${e.customToasts.length+1}`,r=e.customToasts.findIndex(a=>a.toastId===n);if(r!==-1){e.customToasts[r]=b(u(u({},e.customToasts[r]),o.payload),{type:"custom",toastId:n});return}e.customToasts.push(b(u({},o.payload),{type:"custom",toastId:n}))},removeCustomToast:(e,o)=>{e.customToasts=e.customToasts.filter(n=>n.toastId!==o.payload)},addTransactionToast:(e,o)=>{e.transactionToasts.push({type:"transaction",startTimestamp:ve(),toastId:o.payload||`custom-toast-${e.transactionToasts.length+1}`})},removeTransactionToast:(e,o)=>{e.transactionToasts=e.transactionToasts.filter(n=>n.toastId!==o.payload)}},extraReducers:e=>{e.addCase(I,()=>hr),e.addCase(Tr.REHYDRATE,(o,n)=>{var a,s;let r=(s=(a=n.customToasts)==null?void 0:a.filter(m=>!("component"in m)))!=null?s:[];o.customToasts=r})}}),{addCustomToast:_p,removeCustomToast:dp,addTransactionToast:ld,removeTransactionToast:gd}=br.actions,yo=br.reducer});var Sr,Sn,wn,vn,lp,bn,wr,hd,yd,Td,bo,So=h(()=>{"use strict";t();Sr=require("@reduxjs/toolkit");O();Sn="Transaction failed",wn="Transaction successful",vn="Processing transaction",lp="Transaction submitted",bn={},wr=(0,Sr.createSlice)({name:"transactionsInfo",initialState:bn,reducers:{setTransactionsDisplayInfo(e,o){let{sessionId:n,transactionsDisplayInfo:r}=o.payload;n!=null&&(e[n]={errorMessage:(r==null?void 0:r.errorMessage)||Sn,successMessage:(r==null?void 0:r.successMessage)||wn,processingMessage:(r==null?void 0:r.processingMessage)||vn,submittedMessage:(r==null?void 0:r.submittedMessage)||lp,transactionDuration:r==null?void 0:r.transactionDuration})},clearTransactionsInfoForSessionId(e,o){o.payload!=null&&delete e[o.payload]},clearTransactionsInfo:()=>bn},extraReducers:e=>{e.addCase(I,()=>bn)}}),{clearTransactionsInfo:hd,setTransactionsDisplayInfo:yd,clearTransactionsInfoForSessionId:Td}=wr.actions,bo=wr.reducer});function vr(e){return e!=null&&(vp(e)||Ep(e))}function wo(e){return e!=null&&(kp(e)||Np(e))}function vo(e){return e!=null&&(Ap(e)||Cp(e))}function kr(e){return e!=null&&(Ip(e)||Rp(e))}function Ar(e){return e!=null&&Lp(e)}function vp(e){return e!=null&&up.includes(e)}function kp(e){return e!=null&&fp.includes(e)}function Ap(e){return e!=null&&xp.includes(e)}function Ip(e){return e!=null&&hp.includes(e)}function Lp(e){return e!=null&&yp.includes(e)}function Ep(e){return e!=null&&Tp.includes(e)}function Np(e){return e!=null&&bp.includes(e)}function Cp(e){return e!=null&&Sp.includes(e)}function Rp(e){return e!=null&&wp.includes(e)}var up,fp,xp,hp,yp,Tp,bp,Sp,wp,An=h(()=>{"use strict";t();G();up=["sent"],fp=["success"],xp=["fail","cancelled","timedOut"],hp=["invalid"],yp=["timedOut"],Tp=["pending"],bp=["success"],Sp=["fail","invalid"],wp=["not executed"]});var Ir,Lr,Fe,Pp,Er,Ed,Nd,Cd,Rd,Pd,Dd,Od,Md,Bd,Fd,Ud,ko,Ao=h(()=>{"use strict";t();Ir=require("@reduxjs/toolkit"),Lr=require("redux-persist");G();An();O();Fe={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},Pp={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},Er=(0,Ir.createSlice)({name:"transactionsSlice",initialState:Fe,reducers:{moveTransactionsToSignedState:(e,o)=>{var l,f;let{sessionId:n,transactions:r,errorMessage:a,status:s,redirectRoute:m,customTransactionInformation:d}=o.payload;e.customTransactionInformationForSessionId[n]=u(u(u({},Pp),((l=e.signedTransactions[n])==null?void 0:l.customTransactionInformation)||{}),e.customTransactionInformationForSessionId[n]||{}),e.signedTransactions[n]={transactions:r,status:s,errorMessage:a,redirectRoute:m,customTransactionInformation:u(u({},e.customTransactionInformationForSessionId[n]),d!=null?d:{})},((f=e==null?void 0:e.transactionsToSign)==null?void 0:f.sessionId)===n&&(e.transactionsToSign=Fe.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=u(u({},e.signedTransactions),o.payload)},updateSignedTransactions:(e,o)=>{let{sessionId:n,status:r,errorMessage:a,transactions:s}=o.payload;e.signedTransactions[n]!=null&&(e.signedTransactions[n].status=r,a!=null&&(e.signedTransactions[n].errorMessage=a),s!=null&&(e.signedTransactions[n].transactions=s))},updateSignedTransactionStatus:(e,o)=>{var l,f,y,g,w,v,S,C;let{sessionId:n,status:r,errorMessage:a,transactionHash:s,inTransit:m}=o.payload,d=(f=(l=e.signedTransactions)==null?void 0:l[n])==null?void 0:f.transactions;if(d!=null){e.signedTransactions[n].transactions=d.map(R=>R.hash===s?b(u({},R),{status:r,errorMessage:a,inTransit:m}):R);let V=(g=(y=e.signedTransactions[n])==null?void 0:y.transactions)==null?void 0:g.every(R=>wo(R.status)),j=(v=(w=e.signedTransactions[n])==null?void 0:w.transactions)==null?void 0:v.every(R=>vo(R.status)),z=(C=(S=e.signedTransactions[n])==null?void 0:S.transactions)==null?void 0:C.every(R=>kr(R.status));V&&(e.signedTransactions[n].status="success"),j&&(e.signedTransactions[n].status="fail"),z&&(e.signedTransactions[n].status="invalid")}},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=Fe.transactionsToSign,e.signTransactionsError=null},clearAllSignedTransactions:e=>{e.signedTransactions=Fe.signedTransactions},setSignTransactionsError:(e,o)=>{e.signTransactionsError=o.payload},setSignTransactionsCancelMessage:(e,o)=>{e.signTransactionsCancelMessage=o.payload},updateSignedTransactionsCustomTransactionInformation:(e,o)=>{let{sessionId:n,customTransactionInformationOverrides:r}=o.payload;e.signedTransactions[n]!=null&&(e.signedTransactions[n].customTransactionInformation=u(u({},e.signedTransactions[n].customTransactionInformation),r))}},extraReducers:e=>{e.addCase(I,()=>Fe),e.addCase(Lr.REHYDRATE,(o,n)=>{var m;if(o.signTransactionsCancelMessage=null,!((m=n.payload)!=null&&m.transactions))return;let{signedTransactions:r,customTransactionInformationForSessionId:a}=n.payload.transactions,s=Object.entries(r).reduce((d,[l,f])=>{let y=new Date(l),g=new Date;return g.setHours(g.getHours()+5),g-y>0||(d[l]=f),d},{});a!=null&&(o.customTransactionInformationForSessionId=a),r!=null&&(o.signedTransactions=s)})}}),{updateSignedTransactionStatus:Ed,updateSignedTransactions:Nd,setTransactionsToSign:Cd,clearAllTransactionsToSign:Rd,clearAllSignedTransactions:Pd,clearSignedTransaction:Dd,clearTransactionToSign:Od,setSignTransactionsError:Md,setSignTransactionsCancelMessage:Bd,moveTransactionsToSignedState:Fd,updateSignedTransactionsCustomTransactionInformation:Ud}=Er.actions,ko=Er.reducer});var Nr,In,Cr,Gd,Hd,jd,zd,Io,Lo=h(()=>{"use strict";t();Nr=require("@reduxjs/toolkit");O();In={},Cr=(0,Nr.createSlice)({name:"batchTransactionsSlice",initialState:In,reducers:{setBatchTransactions:(e,o)=>{e[o.payload.id]=o.payload},updateBatchTransactions:(e,o)=>{e[o.payload.id]=o.payload},clearBatchTransactions:(e,o)=>{delete e[o.payload.batchId]},clearAllBatchTransactions:()=>In},extraReducers:e=>{e.addCase(I,()=>In)}}),{setBatchTransactions:Gd,updateBatchTransactions:Hd,clearBatchTransactions:jd,clearAllBatchTransactions:zd}=Cr.actions,Io=Cr.reducer});var Pr,Rr,Dr,Yd,Or,Ln=h(()=>{"use strict";t();Pr=require("@reduxjs/toolkit");O();Rr={},Dr=(0,Pr.createSlice)({name:"dappConfigSlice",initialState:Rr,reducers:{setDappConfig:(e,o)=>{if(e&&o.payload){let{logoutRoute:n,shouldUseWebViewProvider:r,cancelTransactionToastDuration:a}=o.payload;e.logoutRoute=n,e.shouldUseWebViewProvider=r,e.cancelTransactionToastDuration=a}else e=o.payload}},extraReducers:e=>{e.addCase(I,()=>Rr)}}),{setDappConfig:Yd}=Dr.actions,Or=Dr.reducer});var K=h(()=>{"use strict";t();io();mo();lo();fo();ho();To();So();Ao();Lo();Ln()});var En=h(()=>{"use strict";t()});var Ur,Fr,Wr,yl,Tl,bl,Sl,wl,vl,Vr,$r=h(()=>{"use strict";t();Ur=require("@reduxjs/toolkit");O();Fr={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},Wr=(0,Ur.createSlice)({name:"dappModalsSlice",initialState:Fr,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=u({},o.payload)}},extraReducers:e=>{e.addCase(I,()=>Fr)}}),{setDappModalVisibility:yl,setDappModalHeaderVisibility:Tl,setDappModalFooterVisibility:bl,setDappModalHeaderText:Sl,setDappModalFooterText:wl,setDappModalConfig:vl}=Wr.actions,Vr=Wr.reducer});var Gr,Bp,Fp,fe,Co=h(()=>{"use strict";t();Gr=require("@reduxjs/toolkit");En();io();Lo();Ln();$r();mo();lo();fo();ho();To();So();Ao();Bp={["account"]:ao,["dappModal"]:Vr,["dappConfig"]:Or,["loginInfo"]:so,["modals"]:_o,["networkConfig"]:uo,["signedMessageInfo"]:xo,["toasts"]:yo,["transactionsInfo"]:bo,["transactions"]:ko,["batchTransactions"]:Io},Fp=(e={})=>(0,Gr.combineReducers)(u(u({},Bp),e)),fe=Fp});var qr={};_e(qr,{default:()=>ec,sessionStorageReducers:()=>Nn});function ie(e,o=[]){return{key:e,version:1,storage:jr.default,blacklist:o}}var M,Hr,jr,Up,Ue,Wp,Vp,$p,Gp,Hp,jp,zp,qp,Kp,Xp,zr,Yp,Nn,Zp,Jp,Qp,ec,Kr=h(()=>{"use strict";t();M=require("redux-persist"),Hr=T(require("redux-persist/lib/storage")),jr=T(require("redux-persist/lib/storage/session"));Co();K();io();Lo();mo();lo();fo();ho();To();So();Ao();En();Up={persistReducersStorageType:"localStorage"},Ue={["account"]:"sdk-dapp-account",["loginInfo"]:"sdk-dapp-login-info",["modals"]:"sdk-dapp-modals",["networkConfig"]:"sdk-dapp-network-config"},Wp=ie(Ue["account"]),Vp=ie(Ue["loginInfo"]),$p=ie(Ue["modals"]),Gp=ie(Ue["networkConfig"]),Hp={2:e=>b(u({},e),{networkConfig:yn})};jp=ie("sdk-dapp-transactionsInfo"),zp=ie("sdk-dapp-transactions",["transactionsToSign"]),qp=ie("sdk-dapp-batchTransactions",["batchTransactions"]),Kp=ie("sdk-dapp-toasts"),Xp=ie("sdk-dapp-signedMessageInfo"),zr={key:"sdk-dapp-store",version:2,storage:Hr.default,whitelist:Object.keys(Ue),migrate:(0,M.createMigrate)(Hp,{debug:!1})},Yp=b(u({},zr),{whitelist:[]}),Nn={["toasts"]:(0,M.persistReducer)(Kp,yo),["transactions"]:(0,M.persistReducer)(zp,ko),["transactionsInfo"]:(0,M.persistReducer)(jp,bo),["batchTransactions"]:(0,M.persistReducer)(qp,Io),["signedMessageInfo"]:(0,M.persistReducer)(Xp,xo)},Zp=b(u({},Nn),{["account"]:(0,M.persistReducer)(Wp,ao),["loginInfo"]:(0,M.persistReducer)(Vp,so),["modals"]:(0,M.persistReducer)($p,_o),["networkConfig"]:(0,M.persistReducer)(Gp,uo)}),Jp=Up.persistReducersStorageType==="localStorage",Qp=Jp?(0,M.persistReducer)(zr,fe(Nn)):(0,M.persistReducer)(Yp,fe(Zp)),ec=Qp});var Xr={};_e(Xr,{default:()=>oc});var oc,Yr=h(()=>{"use strict";t();Co();oc=fe()});var Zr={};_e(Zr,{default:()=>tc});var H,nc,tc,Jr=h(()=>{"use strict";t();H=require("redux-persist"),nc=[H.FLUSH,H.REHYDRATE,H.PAUSE,H.PERSIST,H.PURGE,H.REGISTER],tc=nc});var oa={};_e(oa,{default:()=>ea});function ea(e){return(0,Qr.persistStore)(e)}var Qr,na=h(()=>{"use strict";t();Qr=require("redux-persist")});var va=F((z0,wa)=>{t();var Zc=typeof p=="object"&&p&&p.Object===Object&&p;wa.exports=Zc});var Aa=F((q0,ka)=>{t();var Jc=va(),Qc=typeof self=="object"&&self&&self.Object===Object&&self,es=Jc||Qc||Function("return this")();ka.exports=es});var Wn=F((K0,Ia)=>{t();var os=Aa(),ns=os.Symbol;Ia.exports=ns});var Ca=F((X0,Na)=>{t();var La=Wn(),Ea=Object.prototype,ts=Ea.hasOwnProperty,rs=Ea.toString,He=La?La.toStringTag:void 0;function as(e){var o=ts.call(e,He),n=e[He];try{e[He]=void 0;var r=!0}catch(s){}var a=rs.call(e);return r&&(o?e[He]=n:delete e[He]),a}Na.exports=as});var Pa=F((Y0,Ra)=>{t();var is=Object.prototype,ps=is.toString;function cs(e){return ps.call(e)}Ra.exports=cs});var Ba=F((Z0,Ma)=>{t();var Da=Wn(),ss=Ca(),ms=Pa(),_s="[object Null]",ds="[object Undefined]",Oa=Da?Da.toStringTag:void 0;function ls(e){return e==null?e===void 0?ds:_s:Oa&&Oa in Object(e)?ss(e):ms(e)}Ma.exports=ls});var Ua=F((J0,Fa)=>{t();var gs=Array.isArray;Fa.exports=gs});var Va=F((Q0,Wa)=>{t();function us(e){return e!=null&&typeof e=="object"}Wa.exports=us});var Ga=F((eS,$a)=>{t();var fs=Ba(),xs=Ua(),hs=Va(),ys="[object String]";function Ts(e){return typeof e=="string"||!xs(e)&&hs(e)&&fs(e)==ys}$a.exports=Ts});var Gs={};_e(Gs,{WebWalletLoginButton:()=>$s});module.exports=Re(Gs);t();var gi=T(require("react"));t();t();A();t();var ca=require("react"),Ie=require("react-redux");t();var Cn=require("@reduxjs/toolkit"),ia=require("react-redux/lib/utils/Subscription");K();t();var Mr=T(require("lodash.throttle"));A();K();hn();Ae();ke();var Dp=[oo],Eo=!1,Op=(0,Mr.default)(()=>{Oe(De())},5e3),Br=e=>o=>n=>{if(Dp.includes(n.type))return o(n);let r=e.getState(),a=ue.local.getItem(me.loginExpiresAt);if(!Boolean(r==null?void 0:r.account.address))return o(n);if(a==null)return Oe(De());let m=Date.now();return a-m<0&&!Eo?setTimeout(()=>{Eo=!0,e.dispatch(nr())},1e3):(Eo&&(Eo=!1),Op()),o(n)};t();t();function No(){return typeof sessionStorage!="undefined"}var ta=No()?(Kr(),Re(qr)).default:(Yr(),Re(Xr)).default,ra=No()?(Jr(),Re(Zr)).default:[],aa=No()?(na(),Re(oa)).default:e=>e;Co();var L=(0,Cn.configureStore)({reducer:ta,middleware:e=>e({serializableCheck:{ignoredActions:[...ra,xn.type,fn.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(Br)}),pa=(0,ia.createSubscription)(L),rg=aa(L),ag=(0,Cn.configureStore)({reducer:fe});var rc={store:L,subscription:pa},Rn=(0,ca.createContext)(rc),sg=(0,Ie.createStoreHook)(Rn),Ro=(0,Ie.createDispatchHook)(Rn),B=(0,Ie.createSelectorHook)(Rn);t();t();K();t();var sa=T(require("lodash.isequal")),Po=require("reselect"),x=(0,Po.createSelectorCreator)(Po.defaultMemoize,sa.default);var oe=e=>e.account,Do=x(oe,e=>e.address),Le=x(oe,Do,(e,o)=>o in e.accounts?e.accounts[o]:ro),ac=x(oe,Le,(e,o)=>{let a=e,{accounts:n}=a,r=Ye(a,["accounts"]);return b(u({},r),{account:o})}),gg=x(Le,e=>e.balance),ic=x(Le,e=>{var o;return((o=e==null?void 0:e.nonce)==null?void 0:o.valueOf())||0}),ug=x(oe,e=>e.shard),fg=x(oe,e=>e.ledgerAccount),xg=x(oe,e=>e.walletConnectAccount),hg=x(oe,e=>e.isAccountLoading),yg=x(oe,e=>e.accountLoadingError),pc=x(oe,e=>e.websocketEvent),Tg=x(oe,e=>e.websocketBatchEvent);t();var cc=e=>e.dappConfig,wg=x(cc,e=>e.shouldUseWebViewProvider);t();var X=e=>e.loginInfo,Ig=x(X,e=>e.loginMethod),Oo=x(X,Do,(e,o)=>Boolean(o)),Lg=x(X,e=>e.walletConnectLogin),Eg=x(X,e=>e.ledgerLogin),sc=x(X,e=>e.walletLogin),Ng=x(X,e=>e.isLoginSessionInvalid),We=x(X,e=>e.tokenLogin),Cg=x(X,e=>e.logoutRoute);t();var ma=e=>e.modals,Dg=x(ma,e=>e.txSubmittedModal),Og=x(ma,e=>e.notificationModal);t();var xe=e=>e.networkConfig,mc=x(xe,e=>e.chainID),Fg=x(xe,e=>e.network.walletConnectBridgeAddress),Ug=x(xe,e=>e.network.walletConnectV2RelayAddress),Wg=x(xe,e=>e.network.walletConnectV2ProjectId),Vg=x(xe,e=>e.network.walletConnectV2Options),$g=x(xe,e=>e.network.walletConnectDeepLink),pe=x(xe,e=>e.network),_c=x(pe,e=>e.apiAddress),_a=x(pe,e=>e.explorerAddress),Gg=x(pe,e=>{var o;return(o=e.customWalletAddress)!=null?o:e.walletAddress}),dc=x(pe,e=>e.egldLabel);t();var Mo=e=>e.signedMessageInfo,zg=x(Mo,e=>e.isSigning),qg=x(Mo,e=>e.errorMessage),Kg=x(Mo,e=>{let o=Object.keys(e.signedSessions),n=o.length;return e.signedSessions[o[n-1]]}),Xg=x(Mo,e=>{let o=Object.keys(e.signedSessions),n=o.length;return o.length>0?o[n-1]:""});t();var da=e=>e.toasts,Jg=x(da,e=>e.customToasts),Qg=x(da,e=>e.transactionToasts);t();K();var la={errorMessage:Sn,successMessage:wn,processingMessage:vn},lc=e=>e.transactionsInfo,tu=x(lc,(e,o)=>o,(e,o)=>o!=null&&(e==null?void 0:e[Number(o)])||la);t();t();var ne=require("@multiversx/sdk-core");A();t();var Pn=require("@multiversx/sdk-core/out");t();t();function Bo(e){try{let o=atob(e),n=btoa(o),r=i.Buffer.from(e,"base64").toString(),a=i.Buffer.from(r).toString("base64");if(e===n&&e===a||o===r)return!0}catch(o){return!1}return!1}function he(e){return Bo(e)?atob(e):e}t();t();t();t();var ga=e=>{let o=e!=null?e:"";return Bo(o)?Pn.TransactionPayload.fromEncoded(o):new Pn.TransactionPayload(o)};function Dn(e){var n,r,a;let o=new ne.Transaction(u(u(b(u(b(u({value:e.value.valueOf(),data:ga(e.data),nonce:e.nonce.valueOf(),receiver:new ne.Address(e.receiver)},e.receiverUsername?{receiverUsername:e.receiverUsername}:{}),{sender:new ne.Address(e.sender)}),e.senderUsername?{senderUsername:e.senderUsername}:{}),{gasLimit:(n=e.gasLimit.valueOf())!=null?n:cn,gasPrice:(r=e.gasPrice.valueOf())!=null?r:sn,chainID:e.chainID.valueOf(),version:new ne.TransactionVersion((a=e.version)!=null?a:Wt)}),e.options?{options:new ne.TransactionOptions(e.options)}:{}),e.guardian?{guardian:new ne.Address(e.guardian)}:{}));return e.guardianSignature&&o.applyGuardianSignature(i.Buffer.from(e.guardianSignature,"hex")),e.signature&&o.applySignature(i.Buffer.from(e.signature,"hex")),o}t();t();t();t();t();var fc=require("@multiversx/sdk-core/out");t();A();t();var ua=require("@multiversx/sdk-core");U();t();var xc=require("@multiversx/sdk-core");t();t();t();var hc=require("@multiversx/sdk-core"),yc=T(require("bignumber.js"));G();t();t();t();var Mn="blocks";t();t();t();t();D();t();t();D();t();t();t();var Ac=T(require("bignumber.js"));A();t();var kc=require("@multiversx/sdk-core"),Bn=T(require("bignumber.js"));A();t();var wc=T(require("bignumber.js"));t();Bn.default.config({ROUNDING_MODE:Bn.default.ROUND_FLOOR});t();t();t();A();t();t();t();t();A();t();A();t();var Ic=require("@multiversx/sdk-core");A();t();var $e=require("@multiversx/sdk-core"),Ec=require("@multiversx/sdk-network-providers");A();t();t();var Lc=T(require("bignumber.js"));A();t();A();t();t();t();t();t();t();A();t();A();t();A();t();D();var Cc=["reDelegateRewards","claimRewards","unBond"],Rc=["wrapEgld","unwrapEgld"],Pc=["unStake"],Dc=["unDelegate"];t();t();t();A();t();var Bc=T(require("bignumber.js"));t();t();D();t();var Fc=T(require("bignumber.js"));t();t();t();var Wc=T(require("bignumber.js"));U();t();t();t();t();G();t();var Gc=require("@multiversx/sdk-web-wallet-provider");A();t();var $c=T(require("qs"));t();t();t();q();t();q();Be();t();Be();var Wy={search:Me()?window.location.search:"",removeParams:[]};t();t();t();q();t();D();t();t();q();t();var Hc=T(require("linkifyjs"));t();A();t();var jc=T(require("bignumber.js"));t();U();t();t();G();t();G();t();t();t();D();t();D();t();var zc=T(require("bignumber.js"));A();D();t();D();t();var ba=require("react");U();t();t();D();t();t();var qc=require("@multiversx/sdk-core/out"),Kc=T(require("bignumber.js"));D();t();U();t();t();U();var Db=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];t();var Sa=require("react");U();q();t();var Yc=require("react");D();var $b=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];An();var Wo=e=>e.transactions,Ge=x(Wo,e=>e.signedTransactions),I0=x(Wo,e=>e.signTransactionsError),L0=x(Wo,e=>e.signTransactionsCancelMessage),Vo=e=>o=>Object.entries(o).reduce((n,[r,a])=>(e(a.status)&&(n[r]=a),n),{}),E0=x(Ge,Vo(vr)),N0=x(Ge,Vo(wo)),C0=x(Ge,Vo(vo)),R0=x(Ge,Vo(Ar)),P0=x(Wo,e=>{var o;return(e==null?void 0:e.transactionsToSign)==null?null:b(u({},e.transactionsToSign),{transactions:((o=e==null?void 0:e.transactionsToSign)==null?void 0:o.transactions.map(n=>Dn(n)))||[]})}),D0=x(Ge,(e,o)=>o,(e,o)=>o!=null?(e==null?void 0:e[o])||{}:{});t();var Ha=T(Ga());var je=e=>{if(!e||!(0,Ha.default)(e))return null;let o=e.split(".");if(o.length!==4)return null;try{let[n,r,a,s]=o,m=JSON.parse(he(s)),d=he(n);return{ttl:Number(a),extraInfo:m,origin:d,blockHash:r}}catch(n){return console.error(`Error trying to decode ${e}:`,n),null}};var ja=e=>{var a;let o=B(We),n=(a=o==null?void 0:o.loginToken)!=null?a:e;if(!n)return;let r=je(n);if(!!r)return r.origin.toLowerCase().startsWith(Mt)};t();function bs(e){return Object.prototype.toString.call(e)==="[object String]"}var za=e=>{var n;if(!e||!bs(e))return null;let o=e.split(".");if(o.length!==3)return console.error("Invalid nativeAuthToken. You may be trying to decode a loginToken. Try using decodeLoginToken method instead"),null;try{let[r,a,s]=o,m=he(r),d=he(a),l=je(d);if(!l)return{address:m,body:d,signature:s,blockHash:"",origin:"",ttl:0};let f=b(u({},l),{address:m,body:d,signature:s});return(n=l.extraInfo)!=null&&n.timestamp||delete f.extraInfo,f}catch(r){return null}};t();t();t();var Ss=T(require("bignumber.js"));t();var Ya=T(require("axios"));t();t();t();function qa(e){return k(this,null,function*(){return yield new Promise(o=>{setTimeout(()=>o(),e)})})}t();var Ka=(e,o,n,r=0)=>k(void 0,null,function*(){try{return yield e(...n)}catch(a){return r<o.retries?((o==null?void 0:o.delay)!=null&&(yield qa(o.delay)),yield Ka(e,o,n,r+1)):null}}),Xa=(e,o={retries:5,delay:500})=>(...n)=>k(void 0,null,function*(){return yield Ka(e,o,n)});var ws=4,vs=3e4,$o={current:null},ye={current:null},ks=Xa((e,o,n)=>k(void 0,null,function*(){if(n){let s=Math.floor(Date.now()/1e3);return{hash:yield n(),timestamp:s}}let{data:r}=yield Ya.default.get(`${e}/${Mn}?from=${ws}&size=1&fields=hash,timestamp${o?"&shard="+o:""}`),[a]=r;return a}));function Za(e,o,n,r){return k(this,null,function*(){if(e==null)throw new Error("missing api url");let a=Date.now();if($o.current!=null&&a<$o.current.timestamp*1e3+vs&&!r)return $o.current;if(ye.current!=null)return yield ye.current;ye.current=ks(e,o,n);try{let s=yield ye.current;if(s==null)throw ye.current=null,new Error("could not get block hash");return $o.current={hash:s.hash,timestamp:s.timestamp},ye.current=null,s}catch(s){return ye.current=null,null}})}t();var zn=require("react");rn();K();t();t();t();q();t();t();var As=T(require("axios"));t();t();t();t();t();t();t();var Ls=require("@multiversx/sdk-extension-provider"),Es=require("@multiversx/sdk-hw-provider"),Ns=require("@multiversx/sdk-opera-provider"),Ja=require("@multiversx/sdk-web-wallet-provider");A();G();t();var Cs="/dapp/init";var Qa=e=>new Ja.WalletProvider(`${e}${Cs}`);var se=e=>`Unable to perform ${e}, Provider not initialized`,Go=class{init(){return Promise.resolve(!1)}login(o){throw new Error(se(`login with options: ${o}`))}logout(o){throw new Error(se(`logout with options: ${o}`))}getAddress(){throw new Error(se("getAddress"))}isInitialized(){return!1}isConnected(){return Promise.resolve(!1)}sendTransaction(o,n){throw new Error(se(`sendTransaction with transactions: ${o} options: ${n}`))}signTransaction(o,n){throw new Error(se(`signTransaction with transactions: ${o} options: ${n}`))}signTransactions(o,n){throw new Error(se(`signTransactions with transactions: ${o} options: ${n}`))}signMessage(o,n){throw new Error(se(`signTransactions with ${o} and options ${n}`))}sendCustomMessage({method:o,params:n}){throw new Error(se(`sendCustomMessage with method: ${o} params: ${n}`))}sendCustomRequest(o){throw new Error(se(`sendSessionEvent with options: ${o}`))}ping(){return Promise.resolve(!1)}},Rs=new Go;t();G();t();t();t();q();t();O();U();t();K();t();K();t();var ni=require("@multiversx/sdk-core");t();mn();t();t();var Ds=T(require("platform"));t();function Vn(){return Oo(L.getState())}Be();t();O();U();go();Ae();ke();t();t();t();t();t();t();t();t();t();G();t();go();Ae();t();t();t();K();t();t();var Os=T(require("axios"));q();t();var ti=(e,o=["address"])=>{let n=new URL(e),r=new URLSearchParams(n.search);o.forEach(m=>r.delete(m));let a=Array.from(r.values()).length>0?"?":"",s=n.pathname==="/"&&!e.endsWith("/")?"":n.pathname;return n.protocol==="vscode:"?e:`${n.origin}${s}${a}${r.toString()}${n.hash}`};t();var ci=require("react"),Ho=require("@multiversx/sdk-core");t();t();t();var $n=()=>B(Le);t();t();t();t();t();var ze=T(require("react"));var rk=(0,ze.createContext)({}),ak=L.getState();t();var ai=T(require("react"));t();var Gn=T(require("react")),Ms=T(require("axios"));t();t();t();t();var Bs=require("react"),Fs=T(require("swr"));K();t();t();var pi=require("@multiversx/sdk-native-auth-client");t();t();no();var Hn={isExpired:!1},ii=e=>{if(!e)return Hn;let o=za(e);if(!o)return Hn;let n=ve(),{ttl:r,extraInfo:a}=o,s=a==null?void 0:a.timestamp;if(!s)return Hn;let m=s+r,d=n>m,l=m-n;return{isExpired:d,expiresAt:m,secondsUntilExpires:l}};t();q();var qe={origin:W().origin,apiAddress:"https://api.multiversx.com",expirySeconds:60*60*24,tokenExpirationToastWarningSeconds:5*60},Ke=e=>{var n,r,a,s,m,d;return e===!0?qe:{origin:(n=e==null?void 0:e.origin)!=null?n:qe.origin,blockHashShard:e==null?void 0:e.blockHashShard,expirySeconds:(r=e==null?void 0:e.expirySeconds)!=null?r:qe.expirySeconds,apiAddress:(a=e==null?void 0:e.apiAddress)!=null?a:qe.apiAddress,tokenExpirationToastWarningSeconds:(s=e==null?void 0:e.tokenExpirationToastWarningSeconds)!=null?s:qe.tokenExpirationToastWarningSeconds,extraInfo:(m=e==null?void 0:e.extraInfo)!=null?m:{},gatewayUrl:e==null?void 0:e.gatewayUrl,extraRequestHeaders:(d=e==null?void 0:e.extraRequestHeaders)!=null?d:{}}};var jn=e=>{let{origin:o,apiAddress:n,expirySeconds:r,blockHashShard:a,extraInfo:s,gatewayUrl:m,extraRequestHeaders:d}=Ke(e),l=new pi.NativeAuthClient({origin:o,apiUrl:n,expirySeconds:r,blockHashShard:a,gatewayUrl:m,extraRequestHeaders:d});return{getNativeAuthConfig:Ke,initialize:g=>k(void 0,null,function*(){var z,R;if(!n||!o)return"";let w=()=>l.getCurrentBlockHash(),v=(z=g==null?void 0:g.latestBlockInfo)!=null?z:yield Za(n,a,w,g==null?void 0:g.noCache),{hash:S,timestamp:C}=v,V=l.encodeValue(JSON.stringify(u(u({},(R=g==null?void 0:g.extraInfo)!=null?R:s),C?{timestamp:C}:{})));return`${l.encodeValue(o)}.${S}.${r}.${V}`}),getToken:({address:g,token:w,signature:v})=>l.getToken(g,w,v),getTokenExpiration:ii}};var Us=(e,o)=>{var n;return o?o===!0?e:(n=o.apiAddress)!=null?n:e:null},si=e=>{let o=B(pe),n=B(We),r=(0,ci.useRef)(n==null?void 0:n.loginToken),a=Us(o.apiAddress,e),s=Ke(u(u({},e===!0?{}:e),a?{apiAddress:a}:{})),m=Boolean(e),d=jn(s),{address:l}=$n(),f=Ro(),y=S=>{r.current=S,f(co(u({loginToken:S},a?{nativeAuthConfig:s}:{})))},g=()=>{try{return d.initialize()}catch(S){console.error("Unable to get block. Login failed.",S);return}},w=({address:S,signature:C})=>{let V=r.current;if(!V)throw"Token not found. Call `setLoginToken` first.";if(!m){f(co({loginToken:V,signature:C}));return}let j=d.getToken({address:S,token:V,signature:C});return f(co(u({loginToken:V,signature:C,nativeAuthToken:j},a?{nativeAuthConfig:s}:{}))),j};return{configuration:s,setLoginToken:y,getNativeAuthLoginToken:g,setTokenLoginInfo:w,refreshNativeAuthTokenLogin:V=>k(void 0,[V],function*({signMessageCallback:S,nativeAuthClientConfig:C}){let z=yield jn(C||s).initialize({noCache:Boolean(C)});if(r.current=z,!z)return;let R=new Ho.SignableMessage({address:new Ho.Address(l),message:i.Buffer.from(`${l}${z}{}`)}),jo=yield S(R,{});return w({address:l,signature:jo.getSignature().toString("hex")})})}};var mi=({callbackRoute:e,token:o,nativeAuth:n,redirectDelayMilliseconds:r=100,customWalletAddress:a})=>{let[s,m]=(0,zn.useState)(""),[d,l]=(0,zn.useState)(!1),f=B(pe),y=Ro(),g=Vn(),w=Boolean(n),v=si(n),S=o;function C(){return k(this,null,function*(){if(g)throw new Error(bt);y(ur(a));try{l(!0);let j=Qa(a!=null?a:f.walletAddress),z=new Date,R=z.setMinutes(z.getMinutes()+3)/1e3,jo={data:{},expires:R};if(w&&!S&&(S=yield v.getNativeAuthLoginToken(),!S)){console.warn("Login cancelled.");return}S&&v.setLoginToken(S);let{origin:Kn}=W(),ui=window!=null&&window.location?`${Kn}${e}`:`${e}`;new URLSearchParams(document.location.search).get("address")||y(or(jo));let fi=ti(ui),xi=encodeURIComponent(fi),hi=b(u({callbackUrl:xi},S&&{token:S}),{redirectDelayMilliseconds:r});yield j.login(hi)}catch(j){console.error(j),m("error logging in"+j.message)}finally{l(!1)}})}let V=Boolean(s);return[C,{error:s,loginFailed:V,isLoading:d&&!V,isLoggedIn:g&&!V}]};t();var qn=T(require("react")),di=T(require("classnames"));t();var Ws=`.dapp-core-component__main__link-style {
2
2
  color: #1392ff;
3
3
  }
4
4
 
@@ -2719,7 +2719,7 @@ a.dapp-core-component__main__side-link::after {
2719
2719
 
2720
2720
  .dapp-core-component__loginButtonStyles__button-icon {
2721
2721
  color: inherit;
2722
- }`;document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(Vs));var _i={"default-login-button":"dapp-core-component__loginButtonStyles__default-login-button",defaultLoginButton:"dapp-core-component__loginButtonStyles__default-login-button",wrapper:"dapp-core-component__loginButtonStyles__wrapper","login-text":"dapp-core-component__loginButtonStyles__login-text",loginText:"dapp-core-component__loginButtonStyles__login-text","button-wrapper":"dapp-core-component__loginButtonStyles__button-wrapper",buttonWrapper:"dapp-core-component__loginButtonStyles__button-wrapper","button-content":"dapp-core-component__loginButtonStyles__button-content",buttonContent:"dapp-core-component__loginButtonStyles__button-content","button-title":"dapp-core-component__loginButtonStyles__button-title",buttonTitle:"dapp-core-component__loginButtonStyles__button-title","button-icon":"dapp-core-component__loginButtonStyles__button-icon",buttonIcon:"dapp-core-component__loginButtonStyles__button-icon"};var li=({onLogin:e,text:o="Default Login Button",className:n="dapp-login-button",btnClassName:r="dapp-default-login-button",disabled:a,"data-testid":s,children:m})=>{let d={wrapper:(0,di.default)(Ne.btn,Ne.btnPrimary,Ne.px4,Ne.m1,Ne.mx3,{[r]:r!=null},n),loginText:_i.loginText,wrapperClassName:n};return qn.default.createElement("button",{"data-testid":s,disabled:a,className:d.wrapper,onClick:e},m||qn.default.createElement("span",{className:d.loginText},o))};var $s=({children:e,token:o,className:n="dapp-web-wallet-login",callbackRoute:r,buttonClassName:a,nativeAuth:s,"data-testid":m,loginButtonText:d="MultiversX Web Wallet",disabled:l,customWalletAddress:f})=>{let[y]=si({callbackRoute:r,nativeAuth:s,token:o,customWalletAddress:f}),g=mi(o);return gi.default.createElement(li,{onLogin:()=>{y()},className:n,btnClassName:a,text:d,"data-testid":m,disabled:l||g},e)};0&&(module.exports={WebWalletLoginButton});
2722
+ }`;document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(Vs));var _i={"default-login-button":"dapp-core-component__loginButtonStyles__default-login-button",defaultLoginButton:"dapp-core-component__loginButtonStyles__default-login-button",wrapper:"dapp-core-component__loginButtonStyles__wrapper","login-text":"dapp-core-component__loginButtonStyles__login-text",loginText:"dapp-core-component__loginButtonStyles__login-text","button-wrapper":"dapp-core-component__loginButtonStyles__button-wrapper",buttonWrapper:"dapp-core-component__loginButtonStyles__button-wrapper","button-content":"dapp-core-component__loginButtonStyles__button-content",buttonContent:"dapp-core-component__loginButtonStyles__button-content","button-title":"dapp-core-component__loginButtonStyles__button-title",buttonTitle:"dapp-core-component__loginButtonStyles__button-title","button-icon":"dapp-core-component__loginButtonStyles__button-icon",buttonIcon:"dapp-core-component__loginButtonStyles__button-icon"};var li=({onLogin:e,text:o="Default Login Button",className:n="dapp-login-button",btnClassName:r="dapp-default-login-button",disabled:a,"data-testid":s,children:m})=>{let d={wrapper:(0,di.default)(Ne.btn,Ne.btnPrimary,Ne.px4,Ne.m1,Ne.mx3,{[r]:r!=null},n),loginText:_i.loginText,wrapperClassName:n};return qn.default.createElement("button",{"data-testid":s,disabled:a,className:d.wrapper,onClick:e},m||qn.default.createElement("span",{className:d.loginText},o))};var $s=({children:e,token:o,className:n="dapp-web-wallet-login",callbackRoute:r,buttonClassName:a,nativeAuth:s,"data-testid":m,loginButtonText:d="MultiversX Web Wallet",disabled:l,customWalletAddress:f})=>{let[y]=mi({callbackRoute:r,nativeAuth:s,token:o,customWalletAddress:f}),g=ja(o);return gi.default.createElement(li,{onLogin:()=>{y()},className:n,btnClassName:a,text:d,"data-testid":m,disabled:l||g},e)};0&&(module.exports={WebWalletLoginButton});
2723
2723
  /*!
2724
2724
  * The buffer module from node.js, for the browser.
2725
2725
  *