@wormhole-foundation/wormhole-connect 2.1.0-beta.3-development → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.js +2 -2
- package/lib/{aptos-UPRxA7V-.mjs → aptos-BqK7cMly.mjs} +2 -2
- package/lib/{aptos-D3_AGWR7.js → aptos-C7pCAbUg.js} +2 -2
- package/lib/{aptos-BzXZvGaH.js → aptos-DYNyya4r.js} +1 -1
- package/lib/{aptos-BzWhIYlr.mjs → aptos-hNRlQB2L.mjs} +5 -5
- package/lib/{base64-DVjW5Kcf.mjs → base64-BVPj2zYr.mjs} +1 -1
- package/lib/{base64-DRH1vfG7.js → base64-KSl9zI2U.js} +1 -1
- package/lib/{ccip-wLlfyIvk.mjs → ccip-B6vHFB5O.mjs} +1 -1
- package/lib/{ccip-BB23_sIM.js → ccip-zobR3MWX.js} +1 -1
- package/lib/{chunk-IMTC3J2M-CBauIJwr.js → chunk-IMTC3J2M-Clcv-kNR.js} +1 -1
- package/lib/{chunk-IMTC3J2M-DNVBjBib.mjs → chunk-IMTC3J2M-D7LWAYQa.mjs} +3 -3
- package/lib/{events-IHlp1dj4.mjs → events-FSoXRy3T.mjs} +1 -1
- package/lib/{events-CKwRCNdA.js → events-bGzCAvB8.js} +1 -1
- package/lib/{evm-BabY832Q.mjs → evm-BLO6Qv4a.mjs} +5 -5
- package/lib/{evm-C2f5n9qH.js → evm-CG-xuonQ.js} +3 -3
- package/lib/{evm-CogaB9FQ.mjs → evm-CN1iRHbr.mjs} +5 -5
- package/lib/{evm-CyaMnZnL.js → evm-DYzdDx7h.js} +1 -1
- package/lib/{index-Bk1zihOK.js → index--GEXYLpJ.js} +1 -1
- package/lib/{index-qAojYF7t.mjs → index-0sRAi_-E.mjs} +14 -13
- package/lib/{index-DUGSEVtX.mjs → index-B4iVrVli.mjs} +2 -2
- package/lib/{index-5VUxPYxW.js → index-B5H5W-MP.js} +3 -3
- package/lib/{index-DiEuvJoC.js → index-BDTERphb.js} +1 -1
- package/lib/{index-B60oaJsI.mjs → index-BK9yAEqb.mjs} +2 -2
- package/lib/{index-y5-IYFyD.mjs → index-Ba7hi5Nv.mjs} +2 -2
- package/lib/{index-zfWv19dx.js → index-Bb1cX9pM.js} +1 -1
- package/lib/{index-BQ9dR-yJ.mjs → index-BdpPXZHn.mjs} +2 -2
- package/lib/{index-DIVxdT0X.js → index-BnZRt2Rd.js} +1 -1
- package/lib/{index-D6VdydhT.js → index-Bu6Mzk1B.js} +1 -1
- package/lib/{index-BtaC2yLu.js → index-BwcOlw60.js} +1 -1
- package/lib/{index-C1sV2FAp.mjs → index-BxEy7t5U.mjs} +2 -2
- package/lib/{index-CNvVpBBa.mjs → index-BztaZVVL.mjs} +2 -2
- package/lib/{index-BM78yUJC.js → index-C-Fyx20B.js} +1 -1
- package/lib/{index-C407bW0H.js → index-CEyJtiJA.js} +1 -1
- package/lib/{index-CBlNoKKQ.js → index-CIr2v4IG.js} +1 -1
- package/lib/{index-ItME4Ygf.js → index-CtaGVEFZ.js} +1 -1
- package/lib/{index-BxevXfo4.mjs → index-D1_1z7Wk.mjs} +1 -1
- package/lib/{index-Dfo6fMQc.js → index-D27hH8sY.js} +1 -1
- package/lib/{index-ImA899Nn.js → index-D75bWNLu.js} +1 -1
- package/lib/{index-Bket7LZZ.js → index-D8RCiuJ0.js} +1 -1
- package/lib/{index-CV8YMcz4.js → index-DGrbzOIm.js} +1 -1
- package/lib/{index-CTm08KJA.mjs → index-DI6kRBN0.mjs} +5 -5
- package/lib/{index-BhivGLAi.mjs → index-DJMHyNjD.mjs} +2 -2
- package/lib/{index-DrO4MMc6.mjs → index-DK3F1NhB.mjs} +4 -4
- package/lib/{index-Cs0blatJ.mjs → index-DVHcJTqD.mjs} +1 -1
- package/lib/{index-BZETHtjN.js → index-D_LeK8MJ.js} +1 -1
- package/lib/{index-BG8PXjVw.mjs → index-DcrVBUpc.mjs} +1 -1
- package/lib/{index-B2wyWEm0.mjs → index-DdL20a7t.mjs} +2 -2
- package/lib/{index-DhpLGCAx.js → index-DqmfSmiO.js} +1 -1
- package/lib/{index-M6UZ-4MJ.js → index-IzqkKy3R.js} +1 -1
- package/lib/{index-D19sSkOu.mjs → index-O6PU89nP.mjs} +2 -2
- package/lib/{index-Bn72ykZ2.mjs → index-QgCTXUa6.mjs} +3 -3
- package/lib/{index-DqlsWTi0.js → index-QtOAv51B.js} +1 -1
- package/lib/{index-DT-Qo8X9.js → index-gn107iCo.js} +1 -1
- package/lib/{index-B9LgOPw7.mjs → index-grCrWNvp.mjs} +1 -1
- package/lib/{index-BvuTcXfv.js → index-iaMEYhF5.js} +1 -1
- package/lib/{index-or7CYt4J.mjs → index-nCiFssoC.mjs} +1 -1
- package/lib/{index-FVwpVvZ7.mjs → index-xTX46Yw9.mjs} +1 -1
- package/lib/{index-CzwViHJ0.mjs → index-yt4URWzh.mjs} +1 -1
- package/lib/{index-B5jfHVNH.mjs → index-zb82e-lE.mjs} +3 -3
- package/lib/{index.es-C3FF2T3n.js → index.es-DCYCSMuK.js} +2 -2
- package/lib/{index.es-dld457ym.mjs → index.es-ffyJdlAz.mjs} +6 -6
- package/lib/index.js +1 -1
- package/lib/index.mjs +1 -1
- package/lib/{signer-BBccJJ2M.mjs → signer-BBbBI9Ch.mjs} +1 -1
- package/lib/{signer-BpeTLqjx.js → signer-C8bS-IbV.js} +1 -1
- package/lib/{solana-Ds-NCQtw.mjs → solana-7uRxf9WX.mjs} +5 -5
- package/lib/{solana-BIaWIfzq.js → solana-BVyz5H3z.js} +1 -1
- package/lib/{solana-zqUypMcM.mjs → solana-BfVL9dAW.mjs} +4 -4
- package/lib/solana-DPZR_Eze.js +1 -0
- package/lib/{solanaEmbed.esm-DRkknJ2o.mjs → solanaEmbed.esm-BXeUQQ1f.mjs} +2 -2
- package/lib/{solanaEmbed.esm-BxikN_Mz.js → solanaEmbed.esm-BylLsCAU.js} +1 -1
- package/lib/{sui-710wCQpP.js → sui-BcGOZHgb.js} +1 -1
- package/lib/{sui-5OP1jpsj.mjs → sui-CBeaWzBm.mjs} +1 -1
- package/lib/{sui-n-MTTZiA.mjs → sui-NQaMhA2C.mjs} +5 -5
- package/lib/{sui-8bnax2uU.js → sui-fKD7sV9G.js} +2 -2
- package/package.json +17 -17
- package/lib/solana-4RJ4XeTx.js +0 -1
package/dist/main.js
CHANGED
|
@@ -64,7 +64,7 @@ Error generating stack: `+r.message+`
|
|
|
64
64
|
`)+`
|
|
65
65
|
`)!==he(this,Sw))throw new Error(`BIP39 Wordlist for ${this.locale} FAILED`);Se(this,i8,r)}return he(this,i8)};const gUe="0erleonalorenseinceregesticitStanvetearctssi#ch2Athck&tneLl0And#Il.yLeOutO=S|S%b/ra@SurdU'0Ce[Cid|CountCu'Hie=IdOu,-Qui*Ro[TT]T%T*[Tu$0AptDD-tD*[Ju,M.UltV<)Vi)0Rob-0FairF%dRaid0A(EEntRee0Ead0MRRp%tS!_rmBumCoholErtI&LLeyLowMo,O}PhaReadySoT Ways0A>urAz(gOngOuntU'd0Aly,Ch%Ci|G G!GryIm$K!Noun)Nu$O` Sw T&naTiqueXietyY1ArtOlogyPe?P!Pro=Ril1ChCt-EaEnaGueMMedM%MyOundR<+Re,Ri=RowTTefa@Ti,Tw%k0KPe@SaultSetSi,SumeThma0H!>OmTa{T&dT.udeTra@0Ct]D.Gu,NtTh%ToTumn0Era+OcadoOid0AkeA*AyEsomeFulKw?d0Is:ByChel%C#D+GL<)Lc#y~MbooN<aNn RRelyRga(R*lSeS-SketTt!3A^AnAutyCau'ComeEfF%eG(Ha=H(dLie=LowLtN^Nef./TrayTt Twe&Y#d3Cyc!DKeNdOlogyRdR`Tt _{AdeAmeAnketA,EakE[IndOodO[omOu'UeUrUsh_rdAtDyIlMbNeNusOkO,Rd R(gRrowSsTtomUn)XY_{etA(AndA[A=EadEezeI{Id+IefIghtIngIskOccoliOk&OnzeOomO` OwnUsh2Bb!DdyD+tFf$oIldLbLkL!tNd!Nk Rd&Rg R,SS(e[SyTt Y Zz:Bba+B(B!CtusGeKe~LmM aMpNN$N)lNdyNn#NoeNvasNy#Pab!P.$Pta(RRb#RdRgoRpetRryRtSeShS(o/!Su$TT$ogT^Teg%yTt!UghtU'Ut]Ve3Il(gL yM|NsusNturyRe$Rta(_irAlkAmp]An+AosApt Ar+A'AtEapE{Ee'EfErryE,I{&IefIldIm}yOi)Oo'R#-U{!UnkUrn0G?Nnam#Rc!Tiz&TyVil_imApArifyAwAyE<ErkEv I{I|IffImbIn-IpO{OgO'O`OudOwnUbUmpU, Ut^_^A,C#utDeFfeeIlInL!@L%LumnMb(eMeMf%tM-Mm#Mp<yNc tNdu@NfirmNg*[N}@Nsid NtrolNv()OkOlPp PyR$ReRnR*@/Tt#U^UntryUp!Ur'Us(V Yo>_{Ad!AftAmA}AshAt AwlAzyEamEd.EekEwI{etImeIspIt-OpO[Ou^OwdUci$UelUi'Umb!Un^UshYY,$2BeLtu*PPbo?dRiousRr|Rta(R=Sh]/omTe3C!:DMa+MpN)Ng R(gShUght WnY3AlBa>BrisCadeCemb CideCl(eC%a>C*a'ErF&'F(eFyG*eLayLiv M<dMi'Ni$Nti,NyP?tP&dPos.P`PutyRi=ScribeS tSignSkSpair/royTailTe@VelopVi)Vo>3AgramAlAm#dAryCeE'lEtFf G.$Gn.yLemmaNn NosaurRe@RtSag*eScov Sea'ShSmi[S%d Splay/<)V tVideV%)Zzy5Ct%Cum|G~Lph(Ma(Na>NkeyN%OrSeUb!Ve_ftAg#AmaA,-AwEamE[IftIllInkIpI=OpUmY2CkMbNeR(g/T^Ty1Arf1Nam-:G G!RlyRnR`Sily/Sy1HoOlogyOnomy0GeItUca>1F%t0G1GhtTh 2BowD E@r-Eg<tEm|Eph<tEvat%I>Se0B?kBodyBra)Er+Ot]PloyPow Pty0Ab!A@DD![D%'EmyErgyF%)Ga+G(eH<)JoyLi,OughR-hRollSu*T Ti*TryVelope1Isode0U$Uip0AA'OdeOs]R%Upt0CapeSayS&)Ta>0Ern$H-s1Id&)IlOkeOl=1A@Amp!Ce[Ch<+C.eCludeCu'Ecu>Erci'Hau,Hib.I!I,ItOt-P<dPe@Pi*Pla(Po'P*[T&dTra0EEbrow:Br-CeCultyDeIntI`~L'MeMilyMousNNcyNtasyRmSh]TT$Th TigueUltV%.e3Atu*Bru?yD $EEdElMa!N)/iv$T^V W3B Ct]EldGu*LeLmLt N$NdNeNg NishReRmR,Sc$ShTT}[X_gAmeAshAtAv%EeIghtIpOatO{O%Ow UidUshY_mCusGIlLd~owOdOtR)Re,R+tRkRtu}RumRw?dSsil/ UndX_gi!AmeEqu|EshI&dIn+OgOntO,OwnOz&U.2ElNNnyRna)RyTu*:D+tInLaxy~ yMePRa+Rba+Rd&Rl-Rm|SSpTeTh U+Ze3N $NiusN*Nt!Nu(e/u*2O,0AntFtGg!Ng RaffeRlVe_dAn)A*A[IdeImp'ObeOomOryO=OwUe_tDde[LdOdO'RillaSpelSsipV nWn_bA)A(AntApeA[Av.yEatE&IdIefItOc yOupOwUnt_rdE[IdeIltIt?N3M:B.IrLfMm M, NdPpyRb%RdRshR=,TVeWkZ?d3AdAl`ArtAvyD+hogIght~oLmetLpNRo3Dd&Gh~NtPRe/%y5BbyCkeyLdLeLiday~owMeNeyOdPeRnRr%R'Sp.$/TelUrV 5BGeM<Mb!M%Nd*dNgryNtRd!RryRtSb<d3Brid:1EOn0EaEntifyLe2N%e4LLeg$L}[0A+Ita>M&'Mu}Pa@Po'Pro=Pul'0ChCludeComeC*a'DexD-a>Do%Du,ryF<tFl-tF%mHa!H .Iti$Je@JuryMa>N Noc|PutQuiryS<eSe@SideSpi*/$lTa@T e,ToVe,V.eVol=3On0L<dOla>Sue0Em1Ory:CketGu?RZz3AlousAns~yWel9BInKeUr}yY5D+I)MpNg!Ni%Nk/:Ng?oo3EnEpT^upY3CkDD}yNdNgdomSsTT^&TeTt&Wi4EeIfeO{Ow:BBelB%Dd DyKeMpNgua+PtopR+T T(UghUndryVaWWnWsu.Y Zy3Ad AfArnA=Ctu*FtGG$G&dIsu*M#NdNg`NsOp?dSs#Tt Vel3ArB tyBr?yC&'FeFtGhtKeMbM.NkOnQuid/Tt!VeZ?d5AdAnB, C$CkG-NelyNgOpTt yUdUn+VeY$5CkyGga+Mb N?N^Xury3R-s:Ch(eDG-G}tIdIlInJ%KeMm$NNa+Nda>NgoNs]Nu$P!Rb!R^Rg(R(eRketRria+SkSs/ T^T i$ThTrixTt XimumZe3AdowAnAsu*AtCh<-D$DiaLodyLtMb M%yNt]NuRcyR+R.RryShSsa+T$Thod3Dd!DnightLk~]M-NdNimumN%Nu>Rac!Rr%S ySs/akeXXedXtu*5Bi!DelDifyMM|N.%NkeyN, N`OnR$ReRn(gSqu.oTh T]T%Unta(U'VeVie5ChFf(LeLtiplySc!SeumShroomS-/Tu$3Self/ yTh:I=MePk(Rrow/yT]Tu*3ArCkEdGati=G!@I` PhewR=/TTw%kUtr$V WsXt3CeGht5B!I'M(eeOd!Rm$R`SeTab!TeTh(gTi)VelW5C!?Mb R'T:K0EyJe@Li+Scu*S =Ta(Vious0CurE<Tob 0Or1FF Fi)T&2L1Ay0DI=Ymp-0It0CeEI#L(eLy1EnEraIn]Po'T]1An+B.Ch?dD D(?yG<I|Ig($Ph<0Tr-h0H 0Tdo%T TputTside0AlEnEr0NN 0Yg&0/ 0O}:CtDd!GeIrLa)LmNdaNelN-N` P RadeR|RkRrotRtySsT^ThTi|TrolTt nU'VeYm|3A)AnutArAs<tL-<NN$tyNcilOp!Pp Rfe@Rm.Rs#T2O}OtoRa'Ys-$0AnoCn-Ctu*E)GGe#~LotNkO} Pe/olT^Zza_)A}tA,-A>AyEa'Ed+U{UgUn+2EmEtIntL?LeLi)NdNyOlPul?Rt]S.]Ssib!/TatoTt yV tyWd W _@i)Ai'Ed-tEf Epa*Es|EttyEv|I)IdeIm?yIntI%.yIs#Iva>IzeOb!mO)[Odu)Of.OgramOje@Omo>OofOp tyOsp O>@OudOvide2Bl-Dd(g~LpL'Mpk(N^PilPpyR^a'R.yRpo'R'ShTZz!3Ramid:99Al.yAntumArt E,]I{ItIzO>:Bb.Cco#CeCkD?DioIlInI'~yMpN^NdomN+PidReTeTh V&WZ%3AdyAlAs#BelBuildC$lCei=CipeC%dCyc!Du)F!@F%mFu'G]G*tGul?Je@LaxLea'LiefLyMa(Memb M(dMo=Nd NewNtOp&PairPeatPla)P%tQui*ScueSemb!Si,Sour)Sp#'SultTi*T*atTurnUn]Ve$ViewW?d2Y`m0BBb#CeChDeD+F!GhtGidNgOtPp!SkTu$V$V 5AdA,BotBu,CketM<)OfOkieOmSeTa>UghUndU>Y$5Bb DeGLeNNwayR$:DDd!D}[FeIlLadLm#L#LtLu>MeMp!NdTisfyToshiU)Usa+VeY1A!AnA*Att E}HemeHoolI&)I[%sOrp]OutRapRe&RiptRub1AAr^As#AtC#dC*tCt]Cur.yEdEkGm|Le@~M(?Ni%N'Nt&)RiesRvi)Ss]Tt!TupV&_dowAftAllowA*EdEllEriffIeldIftI}IpIv O{OeOotOpOrtOuld O=RimpRugUff!Y0Bl(gCkDeE+GhtGnL|Lk~yLv Mil?Mp!N)NgR&/ Tua>XZe1A>Et^IIllInIrtUll0AbAmEepEnd I)IdeIghtImOg<OtOwUsh0AllArtI!OkeOo`0A{AkeApIffOw0ApCc Ci$CkDaFtL?Ldi LidLut]L=Me#eNgOnRryRtUlUndUpUr)U`0A)A*Ati$AwnEakEci$EedEllEndH eI)Id IkeInIr.L.OilOns%O#OrtOtRayReadR(gY0Ua*UeezeUir*l_b!AdiumAffA+AirsAmpAndArtA>AyEakEelEmEpE*oI{IllIngO{Oma^O}OolOryO=Ra>gyReetRikeR#gRugg!Ud|UffUmb!Y!0Bje@Bm.BwayC)[ChDd&Ff G?G+,ItMm NNnyN'tP PplyP*meReRfa)R+Rpri'RroundR=ySpe@/a(1AllowAmpApArmE?EetIftImIngIt^Ord1MbolMptomRup/em:B!Ck!GIlL|LkNkPeR+tSk/eTtooXi3A^Am~NN<tNnisNtRm/Xt_nkAtEmeEnE%yE*EyIngIsOughtReeRi=RowUmbUnd 0CketDeG LtMb MeNyPRedSsueT!5A,BaccoDayDdl EGe` I!tK&MatoM%rowNeNgueNightOlO`PP-Pp!R^RnadoRtoi'SsT$Uri,W?dW WnY_{AdeAff-Ag-A(Ansf ApAshA=lAyEatEeEndI$IbeI{Igg ImIpOphyOub!U{UeUlyUmpetU,U`Y2BeIt]Mb!NaN}lRkeyRnRt!1El=EntyI)InI,O1PeP-$:5Ly5B*lla0Ab!Awa*C!Cov D DoFairFoldHappyIf%mIqueItIv 'KnownLo{TilUsu$Veil1Da>GradeHoldOnP Set1B<Ge0A+EEdEfulE![U$0Il.y:C<tCuumGueLidL!yL=NNishP%Rious/Ult3H-!L=tNd%Ntu*NueRbRifyRs]RyS'lT <3Ab!Br<tCiousCt%yDeoEw~a+Nta+Ol(Rtu$RusSaS.Su$T$Vid5C$I)IdLc<oLumeTeYa+:GeG#ItLk~LnutNtRfa*RmRri%ShSp/eT VeY3Al`Ap#ArA'lA` BDd(gEk&dIrdLcome/T_!AtEatEelEnE*IpIsp 0DeD`FeLd~NNdowNeNgNkNn Nt ReSdomSeShT}[5LfM<Nd OdOlRdRkRldRryR`_pE{E,!I,I>Ong::Rd3Ar~ow9UUngU`:3BraRo9NeO",yUe="0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60";let ZL=null;class z8 extends bUe{constructor(){super("en",gUe,yUe)}static wordlist(){return ZL==null&&(ZL=new z8),ZL}}function sme(t){return(1<<t)-1<<8-t&255}function vUe(t){return(1<<t)-1&255}function QL(t,e){$8e("NFKD"),e==null&&(e=z8.wordlist());const r=e.split(t);Be(r.length%3===0&&r.length>=12&&r.length<=24,"invalid mnemonic length","mnemonic","[ REDACTED ]");const n=new Uint8Array(Math.ceil(11*r.length/8));let a=0;for(let l=0;l<r.length;l++){let d=e.getWordIndex(r[l].normalize("NFKD"));Be(d>=0,`invalid mnemonic word at index ${l}`,"mnemonic","[ REDACTED ]");for(let h=0;h<11;h++)d&1<<10-h&&(n[a>>3]|=1<<7-a%8),a++}const i=32*r.length/3,s=r.length/3,o=sme(s),c=ar(H1(n.slice(0,i/8)))[0]&o;return Be(c===(n[n.length-1]&o),"invalid mnemonic checksum","mnemonic","[ REDACTED ]"),Lt(n.slice(0,i/8))}function JL(t,e){Be(t.length%4===0&&t.length>=16&&t.length<=32,"invalid entropy size","entropy","[ REDACTED ]"),e==null&&(e=z8.wordlist());const r=[0];let n=11;for(let s=0;s<t.length;s++)n>8?(r[r.length-1]<<=8,r[r.length-1]|=t[s],n-=8):(r[r.length-1]<<=n,r[r.length-1]|=t[s]>>8-n,r.push(t[s]&vUe(8-n)),n+=3);const a=t.length/4,i=parseInt(H1(t).substring(2,4),16)&sme(a);return r[r.length-1]<<=a,r[r.length-1]|=i>>8-a,e.join(r.map(s=>e.getWord(s)))}const XL={};class B9{constructor(e,r,n,a,i){ce(this,"phrase");ce(this,"password");ce(this,"wordlist");ce(this,"entropy");a==null&&(a=""),i==null&&(i=z8.wordlist()),m3(e,XL,"Mnemonic"),fr(this,{phrase:n,password:a,wordlist:i,entropy:r})}computeSeed(){const e=Cs("mnemonic"+this.password,"NFKD");return s5(Cs(this.phrase,"NFKD"),e,2048,64,"sha512")}static fromPhrase(e,r,n){const a=QL(e,n);return e=JL(ar(a),n),new B9(XL,a,e,r,n)}static fromEntropy(e,r,n){const a=ar(e,"entropy"),i=JL(a,n);return new B9(XL,Lt(a),i,r,n)}static entropyToPhrase(e,r){const n=ar(e,"entropy");return JL(n,r)}static phraseToEntropy(e,r){return QL(e,r)}static isValidMnemonic(e,r){try{return QL(e,r),!0}catch{}return!1}}/*! MIT License. Copyright 2015-2022 Richard Moore <me@ricmoo.com>. See LICENSE.txt. */var b0=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},eB=function(t,e,r,n,a){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!a:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?a.call(t,r):a?a.value=r:e.set(t,r),r},nC,t1,nl;const xUe={16:10,24:12,32:14},wUe=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],Ko=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],LA=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],MUe=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],AUe=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],SUe=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],EUe=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],CUe=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],TUe=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],IUe=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],DUe=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],NUe=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],kUe=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],_Ue=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],LUe=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function tB(t){const e=[];for(let r=0;r<t.length;r+=4)e.push(t[r]<<24|t[r+1]<<16|t[r+2]<<8|t[r+3]);return e}class KH{get key(){return b0(this,nC,"f").slice()}constructor(e){if(nC.set(this,void 0),t1.set(this,void 0),nl.set(this,void 0),!(this instanceof KH))throw Error("AES must be instanitated with `new`");eB(this,nC,new Uint8Array(e),"f");const r=xUe[this.key.length];if(r==null)throw new TypeError("invalid key size (must be 16, 24 or 32 bytes)");eB(this,nl,[],"f"),eB(this,t1,[],"f");for(let d=0;d<=r;d++)b0(this,nl,"f").push([0,0,0,0]),b0(this,t1,"f").push([0,0,0,0]);const n=(r+1)*4,a=this.key.length/4,i=tB(this.key);let s;for(let d=0;d<a;d++)s=d>>2,b0(this,nl,"f")[s][d%4]=i[d],b0(this,t1,"f")[r-s][d%4]=i[d];let o=0,c=a,l;for(;c<n;){if(l=i[a-1],i[0]^=Ko[l>>16&255]<<24^Ko[l>>8&255]<<16^Ko[l&255]<<8^Ko[l>>24&255]^wUe[o]<<24,o+=1,a!=8)for(let y=1;y<a;y++)i[y]^=i[y-1];else{for(let y=1;y<a/2;y++)i[y]^=i[y-1];l=i[a/2-1],i[a/2]^=Ko[l&255]^Ko[l>>8&255]<<8^Ko[l>>16&255]<<16^Ko[l>>24&255]<<24;for(let y=a/2+1;y<a;y++)i[y]^=i[y-1]}let d=0,h,m;for(;d<a&&c<n;)h=c>>2,m=c%4,b0(this,nl,"f")[h][m]=i[d],b0(this,t1,"f")[r-h][m]=i[d++],c++}for(let d=1;d<r;d++)for(let h=0;h<4;h++)l=b0(this,t1,"f")[d][h],b0(this,t1,"f")[d][h]=NUe[l>>24&255]^kUe[l>>16&255]^_Ue[l>>8&255]^LUe[l&255]}encrypt(e){if(e.length!=16)throw new TypeError("invalid plaintext size (must be 16 bytes)");const r=b0(this,nl,"f").length-1,n=[0,0,0,0];let a=tB(e);for(let o=0;o<4;o++)a[o]^=b0(this,nl,"f")[0][o];for(let o=1;o<r;o++){for(let c=0;c<4;c++)n[c]=MUe[a[c]>>24&255]^AUe[a[(c+1)%4]>>16&255]^SUe[a[(c+2)%4]>>8&255]^EUe[a[(c+3)%4]&255]^b0(this,nl,"f")[o][c];a=n.slice()}const i=new Uint8Array(16);let s=0;for(let o=0;o<4;o++)s=b0(this,nl,"f")[r][o],i[4*o]=(Ko[a[o]>>24&255]^s>>24)&255,i[4*o+1]=(Ko[a[(o+1)%4]>>16&255]^s>>16)&255,i[4*o+2]=(Ko[a[(o+2)%4]>>8&255]^s>>8)&255,i[4*o+3]=(Ko[a[(o+3)%4]&255]^s)&255;return i}decrypt(e){if(e.length!=16)throw new TypeError("invalid ciphertext size (must be 16 bytes)");const r=b0(this,t1,"f").length-1,n=[0,0,0,0];let a=tB(e);for(let o=0;o<4;o++)a[o]^=b0(this,t1,"f")[0][o];for(let o=1;o<r;o++){for(let c=0;c<4;c++)n[c]=CUe[a[c]>>24&255]^TUe[a[(c+3)%4]>>16&255]^IUe[a[(c+2)%4]>>8&255]^DUe[a[(c+1)%4]&255]^b0(this,t1,"f")[o][c];a=n.slice()}const i=new Uint8Array(16);let s=0;for(let o=0;o<4;o++)s=b0(this,t1,"f")[r][o],i[4*o]=(LA[a[o]>>24&255]^s>>24)&255,i[4*o+1]=(LA[a[(o+3)%4]>>16&255]^s>>16)&255,i[4*o+2]=(LA[a[(o+2)%4]>>8&255]^s>>8)&255,i[4*o+3]=(LA[a[(o+1)%4]&255]^s)&255;return i}}nC=new WeakMap,t1=new WeakMap,nl=new WeakMap;class ome{constructor(e,r,n){if(n&&!(this instanceof n))throw new Error(`${e} must be instantiated with "new"`);Object.defineProperties(this,{aes:{enumerable:!0,value:new KH(r)},name:{enumerable:!0,value:e}})}}var BA=function(t,e,r,n,a){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!a:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?a.call(t,r):a?a.value=r:e.set(t,r),r},U3=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},R7,Ku;class ZH extends ome{constructor(e,r){if(super("ECC",e,ZH),R7.set(this,void 0),Ku.set(this,void 0),r){if(r.length%16)throw new TypeError("invalid iv size (must be 16 bytes)");BA(this,R7,new Uint8Array(r),"f")}else BA(this,R7,new Uint8Array(16),"f");BA(this,Ku,this.iv,"f")}get iv(){return new Uint8Array(U3(this,R7,"f"))}encrypt(e){if(e.length%16)throw new TypeError("invalid plaintext size (must be multiple of 16 bytes)");const r=new Uint8Array(e.length);for(let n=0;n<e.length;n+=16){for(let a=0;a<16;a++)U3(this,Ku,"f")[a]^=e[n+a];BA(this,Ku,this.aes.encrypt(U3(this,Ku,"f")),"f"),r.set(U3(this,Ku,"f"),n)}return r}decrypt(e){if(e.length%16)throw new TypeError("invalid ciphertext size (must be multiple of 16 bytes)");const r=new Uint8Array(e.length);for(let n=0;n<e.length;n+=16){const a=this.aes.decrypt(e.subarray(n,n+16));for(let i=0;i<16;i++)r[n+i]=a[i]^U3(this,Ku,"f")[i],U3(this,Ku,"f")[i]=e[n+i]}return r}}R7=new WeakMap,Ku=new WeakMap;var W3=function(t,e,r,n,a){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!a:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?a.call(t,r):a?a.value=r:e.set(t,r),r},Zo=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},F7,Kp,r1;class j9 extends ome{constructor(e,r){super("CTR",e,j9),F7.set(this,void 0),Kp.set(this,void 0),r1.set(this,void 0),W3(this,r1,new Uint8Array(16),"f"),Zo(this,r1,"f").fill(0),W3(this,F7,Zo(this,r1,"f"),"f"),W3(this,Kp,16,"f"),r==null&&(r=1),typeof r=="number"?this.setCounterValue(r):this.setCounterBytes(r)}get counter(){return new Uint8Array(Zo(this,r1,"f"))}setCounterValue(e){if(!Number.isInteger(e)||e<0||e>Number.MAX_SAFE_INTEGER)throw new TypeError("invalid counter initial integer value");for(let r=15;r>=0;--r)Zo(this,r1,"f")[r]=e%256,e=Math.floor(e/256)}setCounterBytes(e){if(e.length!==16)throw new TypeError("invalid counter initial Uint8Array value length");Zo(this,r1,"f").set(e)}increment(){for(let e=15;e>=0;e--)if(Zo(this,r1,"f")[e]===255)Zo(this,r1,"f")[e]=0;else{Zo(this,r1,"f")[e]++;break}}encrypt(e){var r,n;const a=new Uint8Array(e);for(let i=0;i<a.length;i++)Zo(this,Kp,"f")===16&&(W3(this,F7,this.aes.encrypt(Zo(this,r1,"f")),"f"),W3(this,Kp,0,"f"),this.increment()),a[i]^=Zo(this,F7,"f")[W3(this,Kp,(n=Zo(this,Kp,"f"),r=n++,n),"f"),r];return a}decrypt(e){return this.encrypt(e)}}F7=new WeakMap,Kp=new WeakMap,r1=new WeakMap;function BUe(t){if(t.length<16)throw new TypeError("PKCS#7 invalid length");const e=t[t.length-1];if(e>16)throw new TypeError("PKCS#7 padding byte out of range");const r=t.length-e;for(let n=0;n<e;n++)if(t[r+n]!==e)throw new TypeError("PKCS#7 invalid padding byte");return new Uint8Array(t.subarray(0,r))}function cme(t){return typeof t=="string"&&!t.startsWith("0x")&&(t="0x"+t),L0(t)}function $y(t,e){for(t=String(t);t.length<e;)t="0"+t;return t}function nM(t){return typeof t=="string"?Cs(t,"NFKC"):L0(t)}function yi(t,e){const r=e.match(/^([a-z0-9$_.-]*)(:([a-z]+))?(!)?$/i);Be(r!=null,"invalid path","path",e);const n=r[1],a=r[3],i=r[4]==="!";let s=t;for(const o of n.toLowerCase().split(".")){if(Array.isArray(s)){if(!o.match(/^[0-9]+$/))break;s=s[parseInt(o)]}else if(typeof s=="object"){let c=null;for(const l in s)if(l.toLowerCase()===o){c=s[l];break}s=c}else s=null;if(s==null)break}if(Be(!i||s!=null,"missing required value","path",n),a&&s!=null){if(a==="int"){if(typeof s=="string"&&s.match(/^-?[0-9]+$/))return parseInt(s);if(Number.isSafeInteger(s))return s}if(a==="number"&&typeof s=="string"&&s.match(/^-?[0-9.]*$/))return parseFloat(s);if(a==="data"&&typeof s=="string")return cme(s);if(a==="array"&&Array.isArray(s)||a===typeof s)return s;Be(!1,`wrong type found for ${a} `,"path",n)}return s}const lme="m/44'/60'/0'/0/0";function eae(t){try{const e=JSON.parse(t);if((e.version!=null?parseInt(e.version):0)===3)return!0}catch{}return!1}function jUe(t,e,r){if(yi(t,"crypto.cipher:string")==="aes-128-ctr"){const a=yi(t,"crypto.cipherparams.iv:data!"),i=new j9(e,a);return Lt(i.decrypt(r))}bt(!1,"unsupported cipher","UNSUPPORTED_OPERATION",{operation:"decrypt"})}function FT(t,e){const r=ar(e),n=yi(t,"crypto.ciphertext:data!"),a=Lt(Va($n([r.slice(16,32),n]))).substring(2);Be(a===yi(t,"crypto.mac:string!").toLowerCase(),"incorrect password","password","[ REDACTED ]");const i=jUe(t,r.slice(0,16),n),s=Jw(i);if(t.address){let l=t.address.toLowerCase();l.startsWith("0x")||(l="0x"+l),Be(ln(l)===s,"keystore address/privateKey mismatch","address",t.address)}const o={address:s,privateKey:i};if(yi(t,"x-ethers.version:string")==="0.1"){const l=r.slice(32,64),d=yi(t,"x-ethers.mnemonicCiphertext:data!"),h=yi(t,"x-ethers.mnemonicCounter:data!"),m=new j9(l,h);o.mnemonic={path:yi(t,"x-ethers.path:string")||lme,locale:yi(t,"x-ethers.locale:string")||"en",entropy:Lt(ar(m.decrypt(d)))}}return o}function ume(t){const e=yi(t,"crypto.kdf:string");if(e&&typeof e=="string"){if(e.toLowerCase()==="scrypt"){const r=yi(t,"crypto.kdfparams.salt:data!"),n=yi(t,"crypto.kdfparams.n:int!"),a=yi(t,"crypto.kdfparams.r:int!"),i=yi(t,"crypto.kdfparams.p:int!");Be(n>0&&(n&n-1)===0,"invalid kdf.N","kdf.N",n),Be(a>0&&i>0,"invalid kdf","kdf",e);const s=yi(t,"crypto.kdfparams.dklen:int!");return Be(s===32,"invalid kdf.dklen","kdf.dflen",s),{name:"scrypt",salt:r,N:n,r:a,p:i,dkLen:64}}else if(e.toLowerCase()==="pbkdf2"){const r=yi(t,"crypto.kdfparams.salt:data!"),n=yi(t,"crypto.kdfparams.prf:string!"),a=n.split("-").pop();Be(a==="sha256"||a==="sha512","invalid kdf.pdf","kdf.pdf",n);const i=yi(t,"crypto.kdfparams.c:int!"),s=yi(t,"crypto.kdfparams.dklen:int!");return Be(s===32,"invalid kdf.dklen","kdf.dklen",s),{name:"pbkdf2",salt:r,count:i,dkLen:s,algorithm:a}}}Be(!1,"unsupported key-derivation function","kdf",e)}function zUe(t,e){const r=JSON.parse(t),n=nM(e),a=ume(r);if(a.name==="pbkdf2"){const{salt:h,count:m,dkLen:y,algorithm:x}=a,M=s5(n,h,m,y,x);return FT(r,M)}bt(a.name==="scrypt","cannot be reached","UNKNOWN_ERROR",{params:a});const{salt:i,N:s,r:o,p:c,dkLen:l}=a,d=jg(n,i,s,o,c,l);return FT(r,d)}function tae(t){return new Promise(e=>{setTimeout(()=>{e()},t)})}async function PUe(t,e,r){const n=JSON.parse(t),a=nM(e),i=ume(n);if(i.name==="pbkdf2"){r&&(r(0),await tae(0));const{salt:m,count:y,dkLen:x,algorithm:M}=i,E=s5(a,m,y,x,M);return r&&(r(1),await tae(0)),FT(n,E)}bt(i.name==="scrypt","cannot be reached","UNKNOWN_ERROR",{params:i});const{salt:s,N:o,r:c,p:l,dkLen:d}=i,h=await Bg(a,s,o,c,l,d,r);return FT(n,h)}function dme(t){const e=t.salt!=null?ar(t.salt,"options.salt"):Qd(32);let r=1<<17,n=8,a=1;return t.scrypt&&(t.scrypt.N&&(r=t.scrypt.N),t.scrypt.r&&(n=t.scrypt.r),t.scrypt.p&&(a=t.scrypt.p)),Be(typeof r=="number"&&r>0&&Number.isSafeInteger(r)&&(BigInt(r)&BigInt(r-1))===BigInt(0),"invalid scrypt N parameter","options.N",r),Be(typeof n=="number"&&n>0&&Number.isSafeInteger(n),"invalid scrypt r parameter","options.r",n),Be(typeof a=="number"&&a>0&&Number.isSafeInteger(a),"invalid scrypt p parameter","options.p",a),{name:"scrypt",dkLen:32,salt:e,N:r,r:n,p:a}}function fme(t,e,r,n){const a=ar(r.privateKey,"privateKey"),i=n.iv!=null?ar(n.iv,"options.iv"):Qd(16);Be(i.length===16,"invalid options.iv length","options.iv",n.iv);const s=n.uuid!=null?ar(n.uuid,"options.uuid"):Qd(16);Be(s.length===16,"invalid options.uuid length","options.uuid",n.iv);const o=t.slice(0,16),c=t.slice(16,32),l=new j9(o,i),d=ar(l.encrypt(a)),h=Va($n([c,d])),m={address:r.address.substring(2).toLowerCase(),id:Oze(s),version:3,Crypto:{cipher:"aes-128-ctr",cipherparams:{iv:Lt(i).substring(2)},ciphertext:Lt(d).substring(2),kdf:"scrypt",kdfparams:{salt:Lt(e.salt).substring(2),n:e.N,dklen:32,p:e.p,r:e.r},mac:h.substring(2)}};if(r.mnemonic){const y=n.client!=null?n.client:`ethers/${W8e}`,x=r.mnemonic.path||lme,M=r.mnemonic.locale||"en",E=t.slice(32,64),S=ar(r.mnemonic.entropy,"account.mnemonic.entropy"),T=Qd(16),D=new j9(E,T),k=ar(D.encrypt(S)),_=new Date,O="UTC--"+(_.getUTCFullYear()+"-"+$y(_.getUTCMonth()+1,2)+"-"+$y(_.getUTCDate(),2)+"T"+$y(_.getUTCHours(),2)+"-"+$y(_.getUTCMinutes(),2)+"-"+$y(_.getUTCSeconds(),2)+".0Z")+"--"+m.address;m["x-ethers"]={client:y,gethFilename:O,path:x,locale:M,mnemonicCounter:Lt(T).substring(2),mnemonicCiphertext:Lt(k).substring(2),version:"0.1"}}return JSON.stringify(m)}function pme(t,e,r){r==null&&(r={});const n=nM(e),a=dme(r),i=jg(n,a.salt,a.N,a.r,a.p,64);return fme(ar(i),a,t,r)}async function hme(t,e,r){r==null&&(r={});const n=nM(e),a=dme(r),i=await Bg(n,a.salt,a.N,a.r,a.p,64,r.progressCallback);return fme(ar(i),a,t,r)}const rB="m/44'/60'/0'/0/0",OUe=new Uint8Array([66,105,116,99,111,105,110,32,115,101,101,100]),lm=2147483648,RUe=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),FUe="0123456789abcdef";function UT(t,e){let r="";for(;t;)r=FUe[t%16]+r,t=Math.trunc(t/16);for(;r.length<e*2;)r="0"+r;return"0x"+r}function pU(t){const e=ar(t),r=ga(H1(H1(e)),0,4),n=$n([e,r]);return Y8e(n)}const ul={};function mme(t,e,r,n){const a=new Uint8Array(37);t&lm?(bt(n!=null,"cannot derive child of neutered node","UNSUPPORTED_OPERATION",{operation:"deriveChild"}),a.set(ar(n),1)):a.set(ar(r));for(let s=24;s>=0;s-=8)a[33+(s>>3)]=t>>24-s&255;const i=ar(_g("sha512",e,a));return{IL:i.slice(0,32),IR:i.slice(32)}}function bme(t,e){const r=e.split("/");Be(r.length>0,"invalid path","path",e),r[0]==="m"&&(Be(t.depth===0,`cannot derive root path (i.e. path starting with "m/") for a node at non-zero depth ${t.depth}`,"path",e),r.shift());let n=t;for(let a=0;a<r.length;a++){const i=r[a];if(i.match(/^[0-9]+'$/)){const s=parseInt(i.substring(0,i.length-1));Be(s<lm,"invalid path index",`path[${a}]`,i),n=n.deriveChild(lm+s)}else if(i.match(/^[0-9]+$/)){const s=parseInt(i);Be(s<lm,"invalid path index",`path[${a}]`,i),n=n.deriveChild(s)}else Be(!1,"invalid path component",`path[${a}]`,i)}return n}var Cw,hU,s8,U7;const fc=class fc extends OT{constructor(r,n,a,i,s,o,c,l,d){super(n,d);nt(this,Cw);ce(this,"publicKey");ce(this,"fingerprint");ce(this,"parentFingerprint");ce(this,"mnemonic");ce(this,"chainCode");ce(this,"path");ce(this,"index");ce(this,"depth");m3(r,ul,"HDNodeWallet"),fr(this,{publicKey:n.compressedPublicKey});const h=ga(Lg(H1(this.publicKey)),0,4);fr(this,{parentFingerprint:a,fingerprint:h,chainCode:i,path:s,index:o,depth:c}),fr(this,{mnemonic:l})}connect(r){return new fc(ul,this.signingKey,this.parentFingerprint,this.chainCode,this.path,this.index,this.depth,this.mnemonic,r)}async encrypt(r,n){return await hme(zt(this,Cw,hU).call(this),r,{progressCallback:n})}encryptSync(r){return pme(zt(this,Cw,hU).call(this),r)}get extendedKey(){return bt(this.depth<256,"Depth too deep","UNSUPPORTED_OPERATION",{operation:"extendedKey"}),pU($n(["0x0488ADE4",UT(this.depth,1),this.parentFingerprint,UT(this.index,4),this.chainCode,$n(["0x00",this.privateKey])]))}hasPath(){return this.path!=null}neuter(){return new Tx(ul,this.address,this.publicKey,this.parentFingerprint,this.chainCode,this.path,this.index,this.depth,this.provider)}deriveChild(r){const n=Kr(r,"index");Be(n<=4294967295,"invalid index","index",n);let a=this.path;a&&(a+="/"+(n&2147483647),n&lm&&(a+="'"));const{IR:i,IL:s}=mme(n,this.chainCode,this.publicKey,this.privateKey),o=new Ql(df((pN(s)+BigInt(this.privateKey))%RUe,32));return new fc(ul,o,this.fingerprint,Lt(i),a,n,this.depth+1,this.mnemonic,this.provider)}derivePath(r){return bme(this,r)}static fromExtendedKey(r){const n=ss(Mze(r));Be(n.length===82||pU(n.slice(0,78))===r,"invalid extended key","extendedKey","[ REDACTED ]");const a=n[4],i=Lt(n.slice(5,9)),s=parseInt(Lt(n.slice(9,13)).substring(2),16),o=Lt(n.slice(13,45)),c=n.slice(45,78);switch(Lt(n.slice(0,4))){case"0x0488b21e":case"0x043587cf":{const l=Lt(c);return new Tx(ul,Jw(l),l,i,o,null,s,a,null)}case"0x0488ade4":case"0x04358394 ":if(c[0]!==0)break;return new fc(ul,new Ql(c.slice(1)),i,o,null,s,a,null,null)}Be(!1,"invalid extended key prefix","extendedKey","[ REDACTED ]")}static createRandom(r,n,a){var s;r==null&&(r=""),n==null&&(n=rB),a==null&&(a=z8.wordlist());const i=B9.fromEntropy(Qd(16),r,a);return zt(s=fc,s8,U7).call(s,i.computeSeed(),i).derivePath(n)}static fromMnemonic(r,n){var a;return n||(n=rB),zt(a=fc,s8,U7).call(a,r.computeSeed(),r).derivePath(n)}static fromPhrase(r,n,a,i){var o;n==null&&(n=""),a==null&&(a=rB),i==null&&(i=z8.wordlist());const s=B9.fromPhrase(r,n,i);return zt(o=fc,s8,U7).call(o,s.computeSeed(),s).derivePath(a)}static fromSeed(r){var n;return zt(n=fc,s8,U7).call(n,r,null)}};Cw=new WeakSet,hU=function(){const r={address:this.address,privateKey:this.privateKey},n=this.mnemonic;return this.path&&n&&n.wordlist.locale==="en"&&n.password===""&&(r.mnemonic={path:this.path,locale:"en",entropy:n.entropy}),r},s8=new WeakSet,U7=function(r,n){Be(uN(r),"invalid seed","seed","[REDACTED]");const a=ar(r,"seed");Be(a.length>=16&&a.length<=64,"invalid seed","seed","[REDACTED]");const i=ar(_g("sha512",OUe,a)),s=new Ql(Lt(i.slice(0,32)));return new fc(ul,s,"0x00000000",Lt(i.slice(32)),"m",0,0,n,null)},nt(fc,s8);let yv=fc;class Tx extends sU{constructor(r,n,a,i,s,o,c,l,d){super(n,d);ce(this,"publicKey");ce(this,"fingerprint");ce(this,"parentFingerprint");ce(this,"chainCode");ce(this,"path");ce(this,"index");ce(this,"depth");m3(r,ul,"HDNodeVoidWallet"),fr(this,{publicKey:a});const h=ga(Lg(H1(a)),0,4);fr(this,{publicKey:a,fingerprint:h,parentFingerprint:i,chainCode:s,path:o,index:c,depth:l})}connect(r){return new Tx(ul,this.address,this.publicKey,this.parentFingerprint,this.chainCode,this.path,this.index,this.depth,r)}get extendedKey(){return bt(this.depth<256,"Depth too deep","UNSUPPORTED_OPERATION",{operation:"extendedKey"}),pU($n(["0x0488B21E",UT(this.depth,1),this.parentFingerprint,UT(this.index,4),this.chainCode,this.publicKey]))}hasPath(){return this.path!=null}deriveChild(r){const n=Kr(r,"index");Be(n<=4294967295,"invalid index","index",n);let a=this.path;a&&(a+="/"+(n&2147483647),n&lm&&(a+="'"));const{IR:i,IL:s}=mme(n,this.chainCode,this.publicKey,null),o=Ql.addPoints(s,this.publicKey,!0),c=Jw(o);return new Tx(ul,c,o,this.fingerprint,Lt(i),a,n,this.depth+1,this.provider)}derivePath(r){return bme(this,r)}}function rae(t){try{if(JSON.parse(t).encseed)return!0}catch{}return!1}function nae(t,e){const r=JSON.parse(t),n=nM(e),a=ln(yi(r,"ethaddr:string!")),i=cme(yi(r,"encseed:string!"));Be(i&&i.length%16===0,"invalid encseed","json",t);const s=ar(s5(n,n,2e3,32,"sha256")).slice(0,16),o=i.slice(0,16),c=i.slice(16),l=new ZH(s,o),d=BUe(ar(l.decrypt(c)));let h="";for(let m=0;m<d.length;m++)h+=String.fromCharCode(d[m]);return{address:a,privateKey:hf(h)}}function aae(t){return new Promise(e=>{setTimeout(()=>{e()},t)})}var Tw,Hl,mU;let UUe=(Hl=class extends OT{constructor(e,r){typeof e=="string"&&!e.startsWith("0x")&&(e="0x"+e);let n=typeof e=="string"?new Ql(e):e;super(n,r)}connect(e){return new Hl(this.signingKey,e)}async encrypt(e,r){const n={address:this.address,privateKey:this.privateKey};return await hme(n,e,{progressCallback:r})}encryptSync(e){const r={address:this.address,privateKey:this.privateKey};return pme(r,e)}static async fromEncryptedJson(e,r,n){var i;let a=null;return eae(e)?a=await PUe(e,r,n):rae(e)&&(n&&(n(0),await aae(0)),a=nae(e,r),n&&(n(1),await aae(0))),zt(i=Hl,Tw,mU).call(i,a)}static fromEncryptedJsonSync(e,r){var a;let n=null;return eae(e)?n=zUe(e,r):rae(e)?n=nae(e,r):Be(!1,"invalid JSON wallet","json","[ REDACTED ]"),zt(a=Hl,Tw,mU).call(a,n)}static createRandom(e){const r=yv.createRandom();return e?r.connect(e):r}static fromPhrase(e,r){const n=yv.fromPhrase(e);return r?n.connect(r):n}},Tw=new WeakSet,mU=function(e){if(Be(e,"invalid JSON wallet","json","[ REDACTED ]"),"mnemonic"in e&&e.mnemonic&&e.mnemonic.locale==="en"){const n=B9.fromEntropy(e.mnemonic.entropy),a=yv.fromMnemonic(n,e.mnemonic.path);if(a.address===e.address&&a.privateKey===e.privateKey)return a;console.log("WARNING: JSON mismatch address/privateKey != mnemonic; fallback onto private key")}const r=new Hl(e.privateKey);return Be(r.address===e.address,"address/privateKey mismatch","json","[ REDACTED ]"),r},nt(Hl,Tw),Hl);class WUe{constructor(){ce(this,"domains");ce(this,"providers");ce(this,"signers");this.domains=new Map,this.providers=new Map,this.signers=new Map}registerDomain(e){this.domains.set(e.name,e)}get registeredDomains(){return Array.from(this.domains.values())}get domainNumbers(){return this.registeredDomains.map(e=>e.domain)}get domainNames(){return Array.from(this.domains.keys())}get missingProviders(){return this.domainNames.filter(e=>!this.providers.has(e))}resolveDomain(e){let r;if(typeof e=="number"?r=this.registeredDomains.find(n=>(n==null?void 0:n.domain)===e):typeof e=="string"&&(r=this.registeredDomains.find(n=>(n==null?void 0:n.name.toLowerCase())===e.toLowerCase())),!r)throw new jA(this,e);return r.domain}resolveDomainName(e){let r;if(typeof e=="number"?r=this.registeredDomains.find(n=>(n==null?void 0:n.domain)===e):typeof e=="string"&&(r=this.registeredDomains.find(n=>(n==null?void 0:n.name.toLowerCase())===e.toLowerCase())),!r)throw new jA(this,e);return r.name}knownDomain(e){try{return this.resolveDomain(e),!0}catch{return!1}}getDomain(e){let r=e;if(typeof r!="string"&&(r=this.resolveDomainName(e)),!!r)return this.domains.get(r)}mustGetDomain(e){const r=this.getDomain(e);if(!r)throw new jA(this,e);return r}registerProvider(e,r){const n=this.mustGetDomain(e).name;try{const a=this.signers.get(n);a&&this.signers.set(n,a.connect(r))}catch{this.unregisterSigner(n)}this.providers.set(n,r)}registerRpcProvider(e,r){const n=this.resolveDomain(e);if(r.startsWith("http://")||r.startsWith("https://")){const a=new ime(r);this.registerProvider(n,a)}else if(r.startsWith("ws://")||r.startsWith("wss://")){const a=new dUe(r);this.registerProvider(n,a)}else throw new Error("Unknown RPC string scheme. Expected an http or websocket URI")}getProvider(e){const r=this.resolveDomainName(e);return this.providers.get(r)}mustGetProvider(e){const r=this.getProvider(e);if(!r)throw new nB(this,e);return r}registerSigner(e,r){const n=this.resolveDomainName(e),a=this.providers.get(n);if(!a&&!r.provider)throw new nB(this,e);if(a)try{r=r.connect(a),this.signers.set(n,r);return}catch{}if(!r.provider)throw new Error("Signer does not permit reconnect and has no provider");this.signers.set(n,r)}unregisterSigner(e){const r=this.resolveDomainName(e);if(!this.signers.has(r))return;const n=this.signers.get(r);if(n==null||n.provider==null)throw new VUe("signer was missing provider.");this.signers.delete(r),this.getProvider(e)||this.providers.set(r,n.provider)}clearSigners(){this.domainNumbers.forEach(e=>this.unregisterSigner(e))}registerWalletSigner(e,r){const n=this.resolveDomain(e),a=new UUe(r);this.registerSigner(n,a)}getSigner(e){const r=this.resolveDomainName(e);return this.signers.get(r)}mustGetSigner(e){const r=this.getSigner(e);if(!r)throw new jA(this,e);return r}getConnection(e){return this.getSigner(e)??this.getProvider(e)}mustGetConnection(e){const r=this.getConnection(e);if(!r)throw new nB(this,e);return r}async getAddress(e){const r=this.getSigner(e);return await(r==null?void 0:r.getAddress())}}class VUe extends Error{constructor(e){super(`Unreachable. You should not see this Error. Please file an issue at https://github.com/nomad-xyz/monorepo, including the full error output. Extra info: ${e??"none"}`)}}class gme extends Error{constructor(r,n){super(n);ce(this,"provider");this.provider=r}}class jA extends gme{constructor(r,n){super(r,`Attempted to access an unknown domain: ${n}.
|
|
66
66
|
Hint: have you called \`context.registerDomain(...)\` yet?`);ce(this,"domain");this.name="UnknownDomainError",this.domain=n}}class nB extends gme{constructor(r,n){const a=r.resolveDomainName(n),i=r.resolveDomain(n);super(r,`Missing provider for domain: ${i} : ${a}.
|
|
67
|
-
Hint: Have you called \`context.registerProvider(${n}, provider)\` yet?`);ce(this,"domain");ce(this,"domainName");ce(this,"domainNumber");this.name="NoProviderError",this.domain=n,this.domainName=a,this.domainNumber=i}}const WT=t=>[...Array(t).keys()],yme=(t,e)=>t.map(r=>r[e]),Mh=t=>WT(t[0].length).map(e=>WT(t.length).map(r=>t[r][e])),$Ue=(t,e,r)=>{const n=new Set(Array.isArray(e)?e:[e]);return t.filter((a,i)=>n.has(i)!==r)};function Mkt(t,e=!1){if(t.length===0)throw new Error("Can't calculate median of empty array");const r=e?t:[...t].sort((s,o)=>s>o?1:s<o?-1:0),n=Math.floor(r.length/2);if(r.length%2===1)return r[n];const a=r[n-1],i=r[n];if(typeof a=="bigint"&&typeof i=="bigint")return(a+i)/2n;if(typeof a=="number"&&typeof i=="number")return(a+i)/2;throw new Error("Can't calculate median of array with mixed number and bigint")}function HUe(t){return["string","number","symbol","bigint","boolean"].includes(typeof t)}const iae=t=>t.length===2&&!Array.isArray(t[0])&&Array.isArray(t[1]),VT=t=>t.length===0?[]:Array.isArray(t[0])?t.map(([e,r])=>Array.isArray(r)?(iae(r)?VT(r):r).map(n=>[e,n].flat()):[[e,r]]).flat():iae(t)?VT(t[1]).map(e=>[t[0],e]):t,qUe=(t,e)=>{const r=VT(t);if(r.length===0)throw new Error("Invalid mapping: empty");const n=e===void 0?[WT(r[0].length-1),[r[0].length-1]]:e.map(m=>typeof m=="number"?[m]:m);let a=[],i=!0;const s=(m,y)=>{const x=Array.from(new Set(m[0]).values()),M=new Map(x.map(S=>[S,[]]));for(const[S,T]of m[0].entries())M.get(T).push(S);if(m.length===1){const S=Object.fromEntries(x.map(T=>[T,M.get(T).map(D=>y[D].length===1?y[D][0]:y[D])]));if(i){for(const T of M.values())if(T.length>1)return i=!1,S;a.push(S)}return S}const E=Mh(m.slice(1));return Object.fromEntries(x.map(S=>{const T=M.get(S),D=Mh(T.map(_=>E[_])),k=T.map(_=>y[_]);return[S,s(D,k)]}))},o=Mh(r),c=m=>{const y=o[m];if(y===void 0)throw new Error(`Invalid shape: column ${m} does not exist`);return y},[l,d]=n.map(m=>m.map(y=>c(y)));if(l.length===0)throw new Error("Invalid shape: empty key set");if(d.length===0)throw new Error("Invalid shape: empty value set");for(const m of l)for(const y of m)if(!HUe(y))throw new Error(`Invalid key: ${y} in ${m}`);const h=s(l,Mh(d));if(i)for(const m of a)for(const y of Object.keys(m))m[y]=m[y][0];return h};function Br(t,e){const r=qUe(t,e),n=(...a)=>a.reduce((i,s)=>i?i[s.toString()]??void 0:void 0,r);return Object.assign(n,{has:(...a)=>n(...a)!==void 0,get:(...a)=>n(...a),subMap:a=>r[a.toString()]})}function vme(t){let e=null;return()=>(e||(e=t()),e)}function GUe(t){try{return t(),!1}catch{return!0}}function Akt(t,e,r){return t<e?e:t>r?r:t}var YUe=["int","uint","bytes","array","switch"],xme="big",TN=6,P8=t=>typeof t=="number"||typeof t=="bigint",zg=t=>t instanceof Uint8Array,KUe=t=>P8(t)||zg(t),Ix=t=>YUe.includes(t==null?void 0:t.binary),ZUe=t=>Ix(t)||Array.isArray(t)&&t.every(Ix),QUe=t=>typeof(t==null?void 0:t.from)=="number",JUe=t=>typeof(t==null?void 0:t.from)=="bigint",XUe=t=>QUe(t)||JUe(t),Pg=t=>zg(t==null?void 0:t.from),eWe=t=>XUe(t)||Pg(t),wme=(t,e)=>{if(t!==e)throw new Error(`size mismatch: layout size: ${t}, data size: ${e}`);return e},aC=(t,e)=>"size"in t&&t.size!==void 0?wme(t.size,e):e,bU=(t,e)=>{if(t!=e)throw new Error(`value mismatch: (constant) layout value: ${t}, data value: ${e}`)},gU=(t,e,r)=>{const n=(l,d)=>d===void 0?[0,l.length]:Array.isArray(d)?d:[d,l.length],[a,i]=n(t,r==null?void 0:r.customSlice),[s,o]=n(e,r==null?void 0:r.dataSlize),c=i-a;wme(c,o-s);for(let l=0;l<t.length;++l)if(t[l+a]!==e[l+s])throw new Error(`binary data mismatch: layout value: ${t}, offset: ${a}, data value: ${e}, offset: ${s}`)};function Mme(t,e){const r=e[t.idTag??"id"];return t.layouts.find(([n])=>(Array.isArray(n)?n[1]:n)==r)}function Ame(t){return nh(t,g1)}var g1=Symbol("staticCalc");function tWe(t,e){const r=[],n=nh(t,e,r);if(n===null)throw new Error(`coding error: couldn't calculate layout size for layout ${t} with data ${e}`);return[n,r]}function sae(t,e,r){const n=a=>(r!==void 0&&r.push(a),a);switch(t.binary){case"int":case"uint":return t.size;case"bytes":{const a="lengthSize"in t?t.lengthSize|0:0;if("layout"in t){const{custom:s}=t,o=nh(t.layout,s===void 0?e:typeof s.from=="function"?e!==g1?n(s.from(e)):g1:s.from,r);return o===null?"size"in t?t.size??null:null:a+aC(t,o)}const{custom:i}=t;return zg(i)?a+i.length:Pg(i)?a+i.from.length:i===void 0?e!==g1?a+aC(t,e.length):null:e!==g1?a+aC(t,n(i.from(e)).length):null}case"array":{const a="length"in t?t.length:void 0;if(e===g1){if(a!==void 0){const s=nh(t.layout,g1,r);return s!==null?a*s:null}return null}let i=0;if(a!==void 0&&a!==e.length)throw new Error(`array length mismatch: layout length: ${a}, data length: ${e.length}`);"lengthSize"in t&&t.lengthSize!==void 0&&(i+=t.lengthSize);for(let s=0;s<e.length;++s){const o=nh(t.layout,e[s],r);if(o===null)return null;i+=o}return i}case"switch":{if(e!==g1){const[i,s]=Mme(t,e),o=nh(s,e,r);return o!==null?t.idSize+o:null}let a=null;for(const[i,s]of t.layouts){const o=nh(s,g1,r);if(a===null)a=o;else if(o!==a)return null}return t.idSize+a}}}function nh(t,e,r){if(Ix(t))return sae(t,e,r);let n=0;for(const a of t){let i;if(e===g1)i=g1;else if(!("omit"in a)||!a.omit){if(!(a.name in e))throw new Error(`missing data for layout item: ${a.name}`);i=e[a.name]}const s=sae(a,i,r);if(s===null){if(e!==g1)throw new Error(`coding error: couldn't calculate size for layout item: ${a.name}`);return null}n+=s}return n}var aB=(t,e)=>{t.bytes.set(e,t.offset),t.offset+=e.length},oae=t=>t.bytesConversions[t.position++];function G1(t,e,r){const[n,a]=tWe(t,e),i={bytes:r??new Uint8Array(n),offset:0};if(iC(t,e,i,{bytesConversions:a,position:0}),i.offset!==i.bytes.length)throw new Error(`encoded data is shorter than expected: ${i.bytes.length} > ${i.offset}`);return r?i.offset:i.bytes}var rWe=2**(TN*8);function Ah(t,e,r,n=xme,a=!1){if(!a&&t<0)throw new Error(`Value ${t} is negative but unsigned`);if(typeof t=="number"){if(!Number.isInteger(t))throw new Error(`Value ${t} is not an integer`);if(e>TN){if(t>=rWe)throw new Error(`Value ${t} is too large to be safely converted into an integer`);if(a&&t<-281474976710656)throw new Error(`Value ${t} is too small to be safely converted into an integer`)}}const i=2n**BigInt(e*8-(a?1:0));if(t>=i)throw new Error(`Value ${t} is too large for ${e} bytes`);if(a&&t<-i)throw new Error(`Value ${t} is too small for ${e} bytes`);for(let s=0;s<e;++s)r.bytes[r.offset+s]=Number(BigInt(t)>>BigInt(8*(n==="big"?e-s-1:s))&0xffn);r.offset+=e}function iC(t,e,r,n){if(Ix(t))cae(t,e,r,n);else for(const a of t)try{cae(a,e[a.name],r,n)}catch(i){throw i.message=`when serializing item '${a.name}': ${i.message}`,i}}function cae(t,e,r,n){switch(t.binary){case"int":case"uint":{const a=(()=>{var i;return P8(t.custom)?("omit"in t&&t.omit||bU(t.custom,e),t.custom):P8((i=t==null?void 0:t.custom)==null?void 0:i.from)?t.custom.from:t.custom!==void 0?t.custom.from(e):e})();Ah(a,t.size,r,t.endianness,t.binary==="int");break}case"bytes":{const a=r.offset;if("lengthSize"in t&&t.lengthSize!==void 0&&(r.offset+=t.lengthSize),"layout"in t){const{custom:i}=t;let s;i===void 0?s=e:typeof i.from!="function"?s=i.from:s=oae(n),iC(t.layout,s,r,n)}else{const{custom:i}=t;zg(i)?("omit"in t&&t.omit||gU(i,e),aB(r,i)):Pg(i)?aB(r,i.from):aB(r,i!==void 0?oae(n):e)}if("lengthSize"in t&&t.lengthSize!==void 0){const i=r.offset-a-t.lengthSize,s=r.offset;r.offset=a,Ah(i,t.lengthSize,r,t.lengthEndianness),r.offset=s}else aC(t,r.offset-a);break}case"array":{if("length"in t&&t.length!==e.length)throw new Error(`array length mismatch: layout length: ${t.length}, data length: ${e.length}`);"lengthSize"in t&&t.lengthSize!==void 0&&Ah(e.length,t.lengthSize,r,t.lengthEndianness);for(let a=0;a<e.length;++a)iC(t.layout,e[a],r,n);break}case"switch":{const[a,i]=Mme(t,e),s=Array.isArray(a)?a[0]:a;Ah(s,t.idSize,r,t.idEndianness),iC(i,e,r,n);break}}}function Sme(t){const e=t.custom;if(!("cachedSerializedFrom"in e)&&(e.cachedSerializedFrom=G1(t.layout,e.from),"size"in t&&t.size!==void 0&&t.size!==e.cachedSerializedFrom.length))throw new Error("Layout specification error: custom.from does not serialize to specified size");return e.cachedSerializedFrom}function Y1(t,e,r){const n=r??!0,a={bytes:e,offset:0,end:e.length},i=W7(t,a);if(n&&a.offset!==a.end)throw new Error(`encoded data is longer than expected: ${a.end} > ${a.offset}`);return n?i:[i,a.offset]}function sC(t,e){const r=t.offset+e;if(r>t.end)throw new Error(`chunk is shorter than expected: ${t.end} < ${r}`);t.offset=r}function W7(t,e){if(!Array.isArray(t))return lae(t,e);let r={};for(const n of t)try{(n.omit?{}:r)[n.name]=lae(n,e)}catch(a){throw a.message=`when deserializing item '${n.name}': ${a.message}`,a}return r}function zA(t,e,r=xme,n=!1){let a=0n;for(let i=0;i<e;++i)a|=BigInt(t.bytes[t.offset+i])<<BigInt(8*(r==="big"?e-i-1:i));return n&&t.bytes[t.offset+(r==="big"?0:e-1)]&128&&(a-=1n<<BigInt(8*e)),sC(t,e),e>TN?a:Number(a)}function lae(t,e){switch(t.binary){case"int":case"uint":{const r=zA(e,t.size,t.endianness,t.binary==="int"),{custom:n}=t;return P8(n)?(bU(n,r),n):P8(n==null?void 0:n.from)?(bU(n.from,r),n.to):n!==void 0?n.to(r):r}case"bytes":{const r="lengthSize"in t&&t.lengthSize!==void 0?zA(e,t.lengthSize,t.lengthEndianness):t==null?void 0:t.size;if("layout"in t){const{custom:o}=t,c=e.offset;let l;if(r===void 0)l=W7(t.layout,e);else{const d={...e,end:e.offset+r};if(sC(e,r),l=W7(t.layout,d),d.offset!==d.end)throw new Error(`read less data than expected: ${d.offset-e.offset} < ${r}`)}return o!==void 0?typeof o.from!="function"?(gU(Sme(t),e.bytes,{dataSlize:[c,e.offset]}),o.to):o.to(l):l}const{custom:n}=t;{let o,c;if(zg(n)?o=n:Pg(n)&&(o=n.from,c=n.to),o!==void 0){const l=r??o.length,d=e.bytes.subarray(e.offset,e.offset+l);return gU(o,d),sC(e,l),c??o}}const a=e.offset,i=r!==void 0?e.offset+r:e.end;sC(e,i-a);const s=e.bytes.subarray(a,i);return n!==void 0?n.to(s):s}case"array":{let r=[];const{layout:n}=t,a=()=>{const s=W7(n,e);r.push(s)};let i=null;if("length"in t&&t.length!==void 0?i=t.length:"lengthSize"in t&&t.lengthSize!==void 0&&(i=zA(e,t.lengthSize,t.lengthEndianness)),i!==null)for(let s=0;s<i;++s)a();else for(;e.offset<e.end;)a();return r}case"switch":{const r=zA(e,t.idSize,t.idEndianness),{layouts:n}=t;if(n.length===0)throw new Error("switch item has no layouts");const a=typeof n[0][0]=="number",i=n.find(([l])=>a?l===r:l[0]===r);if(i===void 0)throw new Error(`unknown id value: ${r}`);const[s,o]=i,c=W7(o,e);return{[t.idTag??"id"]:a?r:s[1],...c}}}}function uae(t,e){return oC(t,e)}function dae(t,e){switch(t.binary){case"bytes":if("layout"in t){const{custom:r}=t;return r===void 0||typeof r.from!="function"?oC(t.layout,r?r.from:e):e}case"int":case"uint":{const{custom:r}=t;return t!=null&&t.omit?void 0:KUe(r)?r:eWe(r)?r.to:e}case"array":return Array.isArray(e)?e.map(r=>oC(t.layout,r)):void 0;case"switch":{const r=e[t.idTag??"id"],[n,a]=t.layouts.find(([i])=>(Array.isArray(i)?i[1]:i)==r);return{[t.idTag??"id"]:r,...oC(a,e)}}}}function oC(t,e){if(e=e??{},Ix(t))return dae(t,e);const r={};for(const n of t){const a=dae(n,e[n.name]??{});a!==void 0&&(r[n.name]=a)}return r}function nWe(t,e){const[r,n]=iWe(t);if(!r)throw new Error("Cannot uniquely distinguished the given layouts");return a=>{const i=n(a);return i.length===0?null:i[0]}}function yU(t){return t.reduce((e,r)=>e|BigInt(1)<<BigInt(r),BigInt(0))}function PA(t){const e=[];for(let r=0n;t>0n;t>>=1n,++r)t&1n&&e.push(Number(r));return e}function Ri(t){let e=0;for(;t>0n;t>>=1n)e+=Number(t&1n);return e}var fae=t=>t>0?2**(8*t)-1:1/0;function pae(t,e,r){var n;switch(t.binary){case"int":case"uint":{const a=P8(t.custom)?t.custom:P8((n=t==null?void 0:t.custom)==null?void 0:n.from)?t.custom.from:null;if(a!==null&&e!==null){const i={bytes:new Uint8Array(t.size),offset:0};Ah(a,t.size,i,t.endianness,t.binary==="int"),r.push([e,i.bytes])}return[t.size,t.size]}case"bytes":{const a="lengthSize"in t?t.lengthSize|0:0;let i,s;if("layout"in t){const{custom:c}=t;if(c!==void 0&&typeof c.from!="function")i=Sme(t),s=i.length;else{const l=Ame(t.layout);l!==null&&(s=l)}}else{const{custom:c}=t;zg(c)?(i=c,s=c.length):Pg(c)&&(i=c.from,s=c.from.length)}if(a>0&&e!==null){if(s!==void 0){const c={bytes:new Uint8Array(a),offset:0},l=t.lengthEndianness;Ah(s,a,c,l,!1),r.push([e,c.bytes])}e+=a}if(i!==void 0)return e!==null&&r.push([e,i]),[a+i.length,a+i.length];const o="size"in t&&t.size!==void 0?[t.size,t.size]:void 0;if("layout"in t){const c=cC(t.layout,e,r);return o??[a+c[0],a+c[1]]}return o??[a,fae(a)]}case"array":{if("length"in t){let i=[];const s=cC(t.layout,0,i);if(e!==null)if(s[0]!==s[1]){if(t.length>0)for(const[o,c]of i)r.push([e+o,c])}else for(let o=0;o<t.length;++o)for(const[c,l]of i)r.push([e+c+o*s[0],l]);return[t.length*s[0],t.length*s[1]]}const a=t.lengthSize|0;return[a,fae(a)]}case"switch":{const a=t.layouts.map(c=>[]),{idSize:i,idEndianness:s}=t,o=t.layouts.map(([c,l],d)=>{const h=Array.isArray(c)?c[0]:c;if(e!==null){const y={bytes:new Uint8Array(i),offset:0};Ah(h,i,y,s),a[d].push([0,y.bytes])}const m=cC(l,e!==null?i:null,a[d]);return[m[0]+i,m[1]+i]});return e!==null&&a.every(c=>c.length>0)&&(()=>{const c=Math.min(...a.map(d=>d.at(-1)[0]+d.at(-1)[1].length)),l=a.map(d=>0);for(let d=0;d<c;){let h=null,m=0;for(;m<a.length;){let y=l[m];const x=a[m],[M,E]=x[y];if(M+E.length<=d){if(++y,y===x.length)return;l[m]=y,d=x[y][0];break}const S=E[d-M];if(h===null&&(h=S),S!==h){++d;break}++m}m===a.length&&(r.push([e+d,new Uint8Array([h])]),++d)}})(),[Math.min(...o.map(([c])=>c)),Math.max(...o.map(([c,l])=>l))]}}}function cC(t,e,r){if(!Array.isArray(t))return pae(t,e,r);let n=[0,0];for(const a of t){const i=pae(a,e,r);n[0]+=i[0],n[1]+=i[1],e!==null&&(e=i[0]===i[1]?e+i[0]:null)}return n}function aWe(t){const e=new Map;let r=[];const n=a=>{for(;r.length>0&&r[0][0]<a;){const i=r[0][0]+1,s=r.findIndex(([o])=>i<=o);s===-1?r=[]:r.splice(0,s),e.set(i,yU(r.map(([,o])=>o)))}};for(const[[a,i],s]of t){n(a);const o=r.findIndex(([c])=>c>i);o===-1?r.push([i,s]):r.splice(o,0,[i,s]),e.set(a,yU(r.map(([,c])=>c)))}return n(1/0),e}function iWe(t){if(t.length===0)throw new Error("Cannot discriminate empty set of layouts");const e=0n,r=(1n<<BigInt(t.length))-1n,n=t.map(()=>[]),a=t.map((D,k)=>cC(D,0,n[k])),i=a.map((D,k)=>[D,k]).sort(([[D]],[[k]])=>D-k),s=(()=>{let D=r;const k=new Map;for(const[[_],L]of i)D^=1n<<BigInt(L),k.set(_,D);return k})(),o=aWe(i),c=t.length-Math.max(...[...o.values()].map(D=>Ri(D))),l=D=>{let k=r;for(const[_,L]of s){if(D<_)break;k=L}return k},d=D=>{let k=e;for(const[_,L]of o){if(D<_)break;k=L}return k},h=Array.from({length:Math.max(...n.map(D=>D.length>0?D.at(-1)[0]+D.at(-1)[1].length:0))}).map(()=>[]);for(let D=0;D<n.length;++D)for(const[k,_]of n[D])for(let L=0;L<_.length;++L)h[k+L].push([_[L],D]);let m=[];for(const[D,k]of h.entries()){const _=l(D),L=_^yU(k.map(([,F])=>F)),O=r^_,B=new Map;for(const[F,I]of k)B.has(F)||B.set(F,e),B.set(F,B.get(F)|1n<<BigInt(I));let z=t.length-Math.max(Ri(L),Ri(O));for(const F of B.values()){const I=k.length-Ri(F)+Ri(O);z=Math.min(z,I)}if(z!==0){if(z===t.length-1)return[!0,F=>PA(F.length<=D?O:B.get(F[D])??e)];m.push([z,D,O,B,L])}}if(c===t.length-1)return[!0,D=>PA(d(D.length))];m.sort(([D],[k])=>k-D);let y=!0;const x=new Map,M=new Map,E=(D,k)=>{x.set(D,k),M.has(Ri(D))||M.set(Ri(D),[]),M.get(Ri(D)).push(D)},S=(D,k)=>{if(Ri(D)<=1||x.has(D))return;let _=0;const L=new Map;for(const B of PA(D)){const z=a[B][0],F=o.get(z)&D;L.set(z,F),_=Math.max(_,Ri(F))}_=Ri(D)-_;const O=[];for(const[B,z,F,I,u]of k){const f=new Map;let b=0;for(const[A,N]of I){const w=N&D;Ri(w)>0&&(f.set(A,w),b+=Ri(w))}const g=F&D;let v=f.size>0?B:0;for(const A of f.values()){const N=b-Ri(A)+Ri(g);v=Math.min(v,N)}if(v!==0){if(v===Ri(D)-1){E(D,[z,g,f]);return}O.push([v,z,g,f,u&D])}}if(_===Ri(D)-1){E(D,"size");return}if(O.sort(([B],[z])=>z-B),O.length>0&&O[0][0]>=_){const[,B,z,F,I]=O[0];E(D,[B,z,F]),S(z,O);for(const u of F.values())S(u|I,O.slice(1));return}if(_>0){E(D,"size");for(const B of L.values())S(B,O);return}E(D,"indistinguishable"),y=!1};S(r,m);const T=D=>{for(let k=Ri(D)+1;k<t.length-2;++k)for(const _ of M.get(k)??[])if((D&_)==D)return x.get(_);throw new Error("Implementation error in layout discrimination algorithm")};return[y,D=>{let k=r,_=x.get(k);for(;_!=="indistinguishable";){if(_==="size")k&=d(D.length);else{const[L,O,B]=_;if(D.length<=L)k&=O;else{const z=D[L];for(const[F,I]of B)F!==z&&(k^=k&I);k^=k&O}}if(Ri(k)<=1)break;_=x.get(k)??T(k)}return PA(k)}]}var O8=(t,e)=>({...t,binary:"bytes",...e===void 0?{}:ZUe(e)?{layout:e}:e instanceof Uint8Array||Pg(e)||!Array.isArray(e)?{custom:e}:{layout:e[0],custom:e[1]}});function sWe(t,e){const r=Object.fromEntries(t.map(([a,i])=>[i,a])),n=Object.fromEntries(t);return{binary:"uint",size:(e==null?void 0:e.size)??1,endianness:(e==null?void 0:e.endianness)??"big",custom:{to:a=>{const i=r[a];if(i===void 0)throw new Error(`Invalid enum value: ${a}`);return i},from:a=>n[a]}}}function oWe(t,e){return{binary:"uint",size:Math.ceil(t.length/8),custom:{to:r=>{const n={};for(let a=0;a<t.length;++a)t[a]&&(n[t[a]]=(BigInt(r)&1n<<BigInt(a))!==0n);return n},from:r=>{let n=0n;for(let a=0;a<t.length;++a)t[a]&&r[t[a]]&&(n|=1n<<BigInt(a));return t.length>TN?n:Number(n)}}}}function cWe(t,e){return Number(Number(t).toFixed(e))}function m8(t,e){if(lWe(t,e),t=t.toString(),t.includes("e"))throw new Error("Scientific notation is not supported yet by Amount");const r=t.split(".");if(r.length>2)throw"Too many decimals";let[n,a]=r.length===0?["0",""]:r.length===1?[r[0],""]:r;if(a=a.padEnd(e,"0"),a.length>e){if(BigInt(a.substring(e))!==0n)throw new Error("Amount: invalid input. Decimals too low.");a=a.substring(0,e)}return{amount:BigInt(n+a).toString(),decimals:e}}function Is(t,e){if(t.decimals<=e)return t;const r=BigInt(t.decimals-e);return{amount:(Pr(t)/10n**r*10n**r).toString(),decimals:t.decimals}}function d2(t,e){if(t.decimals===e)return t;if(t.amount==="0")return{amount:t.amount,decimals:e};const r=e-t.decimals;if(r>0)return{amount:t.amount+"0".repeat(r),decimals:e};if(BigInt(t.amount.substring(t.amount.length+r))===0n)return{amount:t.amount.substring(0,t.amount.length+r),decimals:e};throw new Error(`scaleAmount(${JSON.stringify(t)}, ${e}) would result in altered amount. Use truncateAmount first if you intended to truncate it.`)}function da(t,e){return{amount:t.toString(),decimals:e}}function Pr(t){return Eme(t),BigInt(t.amount)}function di(t,e){Eme(t);let r=t.amount.substring(0,t.amount.length-t.decimals).padStart(1,"0"),n=t.amount.substring(t.amount.length-t.decimals).padStart(t.decimals,"0");if(e!==void 0){for(;n.length>e&&n[n.length-1]==="0";)n=n.substring(0,n.length-1);n=n.padEnd(e,"0")}else n=n.replace(/0+$/,"");return n.length>0?`${r}.${n}`:r}function _c(t){return Number(di(t))}function hae(t,e){return di(da(t,e))}function lWe(t,e){if(typeof t=="number"){if(!isFinite(t))throw new Error("Amount: invalid input. Amount must be finite");if(t<0)throw new Error("Amount: invalid input. Amount cannot be negative")}else if(!/^[0-9\.]*$/.test(t))throw new Error("Amount: invalid input. Must only contain digits.");if(!isFinite(e))throw new Error("Amount: invalid input. Decimals must be finite")}function Eme(t){if(!/^[0-9]*$/.test(t.amount))throw new Error("Amount: invalid input. Must only contain digits.");if(t.decimals<0)throw new Error("Amount: invalid input. Decimals must be >= 0");if(!isFinite(t.decimals))throw new Error("Amount: invalid input. Decimals must be a finite number.")}/*! scure-base - MIT License (c) 2022 Paul Miller (paulmillr.com) */function Dx(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&t.constructor.name==="Uint8Array"}function Cme(t,e){return Array.isArray(e)?e.length===0?!0:t?e.every(r=>typeof r=="string"):e.every(r=>Number.isSafeInteger(r)):!1}function Tme(t){if(typeof t!="function")throw new Error("function expected");return!0}function z9(t,e){if(typeof e!="string")throw new Error(`${t}: string expected`);return!0}function Og(t){if(!Number.isSafeInteger(t))throw new Error(`invalid integer: ${t}`)}function $T(t){if(!Array.isArray(t))throw new Error("array expected")}function HT(t,e){if(!Cme(!0,e))throw new Error(`${t}: array of strings expected`)}function QH(t,e){if(!Cme(!1,e))throw new Error(`${t}: array of numbers expected`)}function aM(...t){const e=i=>i,r=(i,s)=>o=>i(s(o)),n=t.map(i=>i.encode).reduceRight(r,e),a=t.map(i=>i.decode).reduce(r,e);return{encode:n,decode:a}}function IN(t){const e=typeof t=="string"?t.split(""):t,r=e.length;HT("alphabet",e);const n=new Map(e.map((a,i)=>[a,i]));return{encode:a=>($T(a),a.map(i=>{if(!Number.isSafeInteger(i)||i<0||i>=r)throw new Error(`alphabet.encode: digit index outside alphabet "${i}". Allowed: ${t}`);return e[i]})),decode:a=>($T(a),a.map(i=>{z9("alphabet.decode",i);const s=n.get(i);if(s===void 0)throw new Error(`Unknown letter: "${i}". Allowed: ${t}`);return s}))}}function DN(t=""){return z9("join",t),{encode:e=>(HT("join.decode",e),e.join(t)),decode:e=>(z9("join.decode",e),e.split(t))}}function uWe(t,e="="){return Og(t),z9("padding",e),{encode(r){for(HT("padding.encode",r);r.length*t%8;)r.push(e);return r},decode(r){HT("padding.decode",r);let n=r.length;if(n*t%8)throw new Error("padding: invalid, string should have whole number of bytes");for(;n>0&&r[n-1]===e;n--)if((n-1)*t%8===0)throw new Error("padding: invalid, string has too much padding");return r.slice(0,n)}}}function mae(t,e,r){if(e<2)throw new Error(`convertRadix: invalid from=${e}, base cannot be less than 2`);if(r<2)throw new Error(`convertRadix: invalid to=${r}, base cannot be less than 2`);if($T(t),!t.length)return[];let n=0;const a=[],i=Array.from(t,o=>{if(Og(o),o<0||o>=e)throw new Error(`invalid integer: ${o}`);return o}),s=i.length;for(;;){let o=0,c=!0;for(let l=n;l<s;l++){const d=i[l],h=e*o,m=h+d;if(!Number.isSafeInteger(m)||h/e!==o||m-d!==h)throw new Error("convertRadix: carry overflow");const y=m/r;o=m%r;const x=Math.floor(y);if(i[l]=x,!Number.isSafeInteger(x)||x*r+o!==m)throw new Error("convertRadix: carry overflow");if(c)x?c=!1:n=l;else continue}if(a.push(o),c)break}for(let o=0;o<t.length-1&&t[o]===0;o++)a.push(0);return a.reverse()}const Ime=(t,e)=>e===0?t:Ime(e,t%e),qT=(t,e)=>t+(e-Ime(t,e)),lC=(()=>{let t=[];for(let e=0;e<40;e++)t.push(2**e);return t})();function vU(t,e,r,n){if($T(t),e<=0||e>32)throw new Error(`convertRadix2: wrong from=${e}`);if(r<=0||r>32)throw new Error(`convertRadix2: wrong to=${r}`);if(qT(e,r)>32)throw new Error(`convertRadix2: carry overflow from=${e} to=${r} carryBits=${qT(e,r)}`);let a=0,i=0;const s=lC[e],o=lC[r]-1,c=[];for(const l of t){if(Og(l),l>=s)throw new Error(`convertRadix2: invalid data word=${l} from=${e}`);if(a=a<<e|l,i+e>32)throw new Error(`convertRadix2: carry overflow pos=${i} from=${e}`);for(i+=e;i>=r;i-=r)c.push((a>>i-r&o)>>>0);const d=lC[i];if(d===void 0)throw new Error("invalid carry");a&=d-1}if(a=a<<r-i&o,!n&&i>=e)throw new Error("Excess padding");if(!n&&a>0)throw new Error(`Non-zero padding: ${a}`);return n&&i>0&&c.push(a>>>0),c}function dWe(t){Og(t);const e=2**8;return{encode:r=>{if(!Dx(r))throw new Error("radix.encode input should be Uint8Array");return mae(Array.from(r),e,t)},decode:r=>(QH("radix.decode",r),Uint8Array.from(mae(r,t,e)))}}function JH(t,e=!1){if(Og(t),t<=0||t>32)throw new Error("radix2: bits should be in (0..32]");if(qT(8,t)>32||qT(t,8)>32)throw new Error("radix2: carry overflow");return{encode:r=>{if(!Dx(r))throw new Error("radix2.encode input should be Uint8Array");return vU(Array.from(r),8,t,!e)},decode:r=>(QH("radix2.decode",r),Uint8Array.from(vU(r,t,8,e)))}}function bae(t){return Tme(t),function(...e){try{return t.apply(null,e)}catch{}}}function fWe(t,e){return Og(t),Tme(e),{encode(r){if(!Dx(r))throw new Error("checksum.encode: input should be Uint8Array");const n=e(r).slice(0,t),a=new Uint8Array(r.length+t);return a.set(r),a.set(n,r.length),a},decode(r){if(!Dx(r))throw new Error("checksum.decode: input should be Uint8Array");const n=r.slice(0,-t),a=r.slice(-t),i=e(n).slice(0,t);for(let s=0;s<t;s++)if(i[s]!==a[s])throw new Error("Invalid checksum");return n}}}const gae=aM(JH(4),IN("0123456789ABCDEF"),DN("")),yae=aM(JH(6),IN("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),uWe(6),DN("")),pWe=t=>aM(dWe(58),IN(t),DN("")),xU=pWe("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),Skt=t=>aM(fWe(4,e=>t(t(e))),xU),wU=aM(IN("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),DN("")),vae=[996825010,642813549,513874426,1027748829,705979059];function Hy(t){const e=t>>25;let r=(t&33554431)<<5;for(let n=0;n<vae.length;n++)(e>>n&1)===1&&(r^=vae[n]);return r}function xae(t,e,r=1){const n=t.length;let a=1;for(let i=0;i<n;i++){const s=t.charCodeAt(i);if(s<33||s>126)throw new Error(`Invalid prefix (${t})`);a=Hy(a)^s>>5}a=Hy(a);for(let i=0;i<n;i++)a=Hy(a)^t.charCodeAt(i)&31;for(let i of e)a=Hy(a)^i;for(let i=0;i<6;i++)a=Hy(a);return a^=r,wU.encode(vU([a%lC[30]],30,5,!1))}function hWe(t){const e=t==="bech32"?1:734539939,r=JH(5),n=r.decode,a=r.encode,i=bae(n);function s(h,m,y=90){z9("bech32.encode prefix",h),Dx(m)&&(m=Array.from(m)),QH("bech32.encode",m);const x=h.length;if(x===0)throw new TypeError(`Invalid prefix length ${x}`);const M=x+7+m.length;if(y!==!1&&M>y)throw new TypeError(`Length ${M} exceeds limit ${y}`);const E=h.toLowerCase(),S=xae(E,m,e);return`${E}1${wU.encode(m)}${S}`}function o(h,m=90){z9("bech32.decode input",h);const y=h.length;if(y<8||m!==!1&&y>m)throw new TypeError(`invalid string length: ${y} (${h}). Expected (8..${m})`);const x=h.toLowerCase();if(h!==x&&h!==h.toUpperCase())throw new Error("String must be lowercase or uppercase");const M=x.lastIndexOf("1");if(M===0||M===-1)throw new Error('Letter "1" must be present between prefix and data only');const E=x.slice(0,M),S=x.slice(M+1);if(S.length<6)throw new Error("Data must be at least 6 characters long");const T=wU.decode(S).slice(0,-6),D=xae(E,T,e);if(!S.endsWith(D))throw new Error(`Invalid checksum in ${h}: expected "${D}"`);return{prefix:E,words:T}}const c=bae(o);function l(h){const{prefix:m,words:y}=o(h,!1);return{prefix:m,words:y,bytes:n(y)}}function d(h,m){return s(h,a(m))}return{encode:s,decode:o,encodeFromBytes:d,decodeToBytes:l,decodeUnsafe:c,fromWords:n,fromWordsUnsafe:i,toWords:a}}const B4=hWe("bech32"),Dme=(t,e)=>e.startsWith(t)?e.slice(t.length):e,mWe=/^(?:0x)?[0-9a-fA-F]+$/,Pn={valid:t=>mWe.test(t),decode:t=>gae.decode(Dme("0x",t).toUpperCase()),encode:(t,e=!1)=>(t=typeof t=="string"?sa.encode(t):t,(e?"0x":"")+gae.encode(t).toLowerCase())},bWe=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/,iM={valid:t=>bWe.test(t),decode:yae.decode,encode:t=>yae.encode(typeof t=="string"?sa.encode(t):t)},Nme={decode:xU.decode,encode:t=>xU.encode(typeof t=="string"?sa.encode(t):t)},Jl={decode:t=>(typeof t!="string"&&(t=Pn.encode(t,!0)),t===""||t==="0x"?0n:BigInt(t)),encode:(t,e=!1)=>Jl.toString(t,e),toString:(t,e=!1)=>{let r=t.toString(16);return r=r.length%2===1?r="0"+r:r,e?"0x"+r:r},toBytes:(t,e)=>{typeof t=="number"&&(t=Jl.toBigInt(t));const r=Pn.decode(Jl.toString(t));if(!e)return r;if(e<r.length)throw new Error(`Can't fit ${t} into ${e} bytes.`);return sa.zpad(r,e)},toNumber:t=>{if(t>BigInt(Number.MAX_SAFE_INTEGER))throw new Error(`Invalid cast: ${t} exceeds MAX_SAFE_INTEGER`);return Number(t)},toBigInt:t=>{if(t>Number.MAX_SAFE_INTEGER)throw new Error(`Invalid cast: ${t} exceeds MAX_SAFE_INTEGER`);return BigInt(t)}},sa={encode:t=>new TextEncoder().encode(t),decode:t=>new TextDecoder().decode(t),equals:(t,e)=>t.length===e.length&&t.every((r,n)=>r===e[n]),zpad:(t,e,r=!0)=>r?sa.concat(new Uint8Array(e-t.length),t):sa.concat(t,new Uint8Array(e-t.length)),concat:(...t)=>{const e=t.reduce((a,i)=>a+i.length,0),r=new Uint8Array(e);let n=0;return t.forEach(a=>{r.set(a,n),n+=a.length}),r}},XH=[[1,"Solana"],[2,"Ethereum"],[3,"Terra"],[4,"Bsc"],[5,"Polygon"],[6,"Avalanche"],[7,"Oasis"],[8,"Algorand"],[9,"Aurora"],[10,"Fantom"],[11,"Karura"],[12,"Acala"],[13,"Klaytn"],[14,"Celo"],[15,"Near"],[16,"Moonbeam"],[17,"Neon"],[18,"Terra2"],[19,"Injective"],[20,"Osmosis"],[21,"Sui"],[22,"Aptos"],[23,"Arbitrum"],[24,"Optimism"],[25,"Gnosis"],[26,"Pythnet"],[28,"Xpla"],[29,"Btc"],[30,"Base"],[32,"Sei"],[33,"Rootstock"],[34,"Scroll"],[35,"Mantle"],[36,"Blast"],[37,"Xlayer"],[38,"Linea"],[39,"Berachain"],[40,"Seievm"],[43,"Snaxchain"],[44,"Unichain"],[45,"Worldchain"],[46,"Ink"],[47,"HyperEVM"],[48,"Monad"],[3104,"Wormchain"],[4e3,"Cosmoshub"],[4001,"Evmos"],[4002,"Kujira"],[4003,"Neutron"],[4004,"Celestia"],[4005,"Stargaze"],[4006,"Seda"],[4007,"Dymension"],[4008,"Provenance"],[4009,"Noble"],[10002,"Sepolia"],[10003,"ArbitrumSepolia"],[10004,"BaseSepolia"],[10005,"OptimismSepolia"],[10006,"Holesky"],[10007,"PolygonSepolia"],[5e4,"Hyperliquid"]],[Ekt,kme]=Mh(XH),NN=Br(XH,[1,0]),Vd=Br(XH),Rg=t=>NN.has(t),MU=t=>Vd.has(t),pn=t=>{switch(typeof t){case"string":if(Rg(t))return NN(t);break;case"number":if(MU(t))return t;break}throw Error(`Cannot convert to ChainId: ${t}`)},k2=t=>{switch(typeof t){case"string":if(Rg(t))return t;break;case"number":if(MU(t))return Vd(t);break;case"bigint":if(MU(Number(t)))return Vd.get(Number(t));break}throw Error(`Cannot convert to Chain: ${t}`)},eq=[["Evm",["Acala","Arbitrum","Aurora","Avalanche","Base","Bsc","Celo","Ethereum","Fantom","Gnosis","Karura","Klaytn","Moonbeam","Neon","Oasis","Optimism","Polygon","Rootstock","Sepolia","ArbitrumSepolia","BaseSepolia","OptimismSepolia","Holesky","PolygonSepolia","Mantle","Scroll","Blast","Xlayer","Linea","Berachain","Seievm","Snaxchain","Unichain","Worldchain","Ink","HyperEVM","Monad","Hyperliquid"]],["Solana",["Solana","Pythnet"]],["Cosmwasm",["Cosmoshub","Evmos","Injective","Kujira","Osmosis","Sei","Terra","Terra2","Wormchain","Xpla","Dymension","Neutron","Stargaze","Celestia","Seda","Provenance","Noble"]],["Btc",["Btc"]],["Algorand",["Algorand"]],["Sui",["Sui"]],["Aptos",["Aptos"]],["Near",["Near"]]];yme(eq,0);const _me=Br(eq),fs=Br(eq,[1,0]),gWe=[["Evm","hex"],["Solana","base58"],["Cosmwasm","bech32"],["Btc","bech32"],["Algorand","algorandAppId"],["Sui","hex"],["Aptos","hex"],["Near","sha256"]],yWe=Br(gWe),R8={byAddress:(t,e)=>Object.values(t).find(r=>vWe(r.address,e)),native:t=>R8.byAddress(t,"native"),bySymbol:(t,e)=>{const r=Object.values(t).filter(n=>n.symbol===e);return r&&r.length>0?r:void 0},byKey:(t,e)=>{const r=Object.entries(t).find(([n])=>e===n);return r?r[1]:void 0}},vWe=(t,e)=>t.toLowerCase()===e.toLowerCase();var wae;(function(t){t[t.Finalized=1]="Finalized",t[t.Immediate=200]="Immediate",t[t.Safe=201]="Safe"})(wae||(wae={}));const xWe=[["Ethereum",32]];Br(xWe);const wWe=[["Solana",32],["Ethereum",72],["Bsc",15],["Optimism",512],["Base",512],["Arbitrum",4096],["Blast",512],["Xlayer",300],["Scroll",300],["Mantle",512],["Worldchain",512],["Polygon",32],["Fantom",1],["Celo",1],["Moonbeam",1],["Karura",1],["Acala",1],["Oasis",1],["Avalanche",0],["Sui",0],["Algorand",0],["Aptos",0],["Klaytn",0],["Sei",0],["Near",0],["Osmosis",0],["Terra",0],["Terra2",0],["Xpla",0],["Injective",0],["Berachain",1],["Seievm",1],["Snaxchain",512],["Unichain",1024],["Ink",512],["HyperEVM",1],["Monad",1],["Cosmoshub",0],["Evmos",0],["Kujira",0],["Neutron",0],["Celestia",0],["Stargaze",0],["Dymension",0],["Provenance",0],["Noble",0],["Sepolia",72],["ArbitrumSepolia",4096],["BaseSepolia",512],["OptimismSepolia",512],["PolygonSepolia",32]],Lme=Br(wWe),MWe=[["Acala",12e3],["Algorand",3300],["Aptos",4e3],["Arbitrum",260],["ArbitrumSepolia",260],["Aurora",3e3],["Avalanche",2e3],["Base",2e3],["BaseSepolia",2e3],["Blast",2e3],["Bsc",3e3],["Celo",5e3],["Cosmoshub",5e3],["Ethereum",15e3],["Evmos",2e3],["Fantom",2500],["Gnosis",5e3],["Holesky",15e3],["Injective",2500],["Karura",12e3],["Klaytn",1e3],["Kujira",3e3],["Mantle",2e3],["Moonbeam",12e3],["Monad",1e3],["Near",1500],["Neon",3e4],["Oasis",6e3],["Optimism",2e3],["OptimismSepolia",2e3],["Osmosis",6e3],["Polygon",2e3],["PolygonSepolia",2e3],["Rootstock",3e4],["Scroll",3e3],["Sei",400],["Sepolia",15e3],["Solana",400],["Sui",3e3],["Terra",6e3],["Terra2",6e3],["Unichain",1e3],["Xpla",5e3],["Xlayer",3e3],["Worldchain",2e3],["Wormchain",5e3],["Btc",6e5],["Pythnet",400],["Dymension",5e3],["Celestia",5e3],["Neutron",5e3],["Stargaze",5e3],["Seda",7500]],Bme=Br(MWe);function tq(t){const e=Lme.get(t);if(e===void 0)throw new Error("Cannot find finality for "+t);const r=Bme.get(t);if(r===void 0)throw new Error("Cannot find block time for "+t);return e*r}const AWe=[["Evm",18],["Solana",9],["Sui",9],["Aptos",8],["Cosmwasm",6],["Algorand",6],["Btc",8],["Near",12]],rq=Br(AWe),SWe=[["Mainnet",[["Ethereum",{name:"Etherscan",baseUrl:"https://etherscan.io/",endpoints:{tx:"tx/",account:"address/"}}],["Solana",{name:"Solana Explorer",baseUrl:"https://explorer.solana.com/",endpoints:{tx:"tx/",account:"address/"}}],["Polygon",{name:"PolygonScan",baseUrl:"https://polygonscan.com/",endpoints:{tx:"tx/",account:"address/"}}],["Bsc",{name:"BscScan",baseUrl:"https://bscscan.com/",endpoints:{tx:"tx/",account:"address/"}}],["Avalanche",{name:"Snowtrace",baseUrl:"https://snowtrace.io/",endpoints:{tx:"tx/",account:"address/"}}],["Fantom",{name:"FTMscan",baseUrl:"https://ftmscan.com/",endpoints:{tx:"tx/",account:"address/"}}],["Celo",{name:"Celo Explorer",baseUrl:"https://explorer.celo.org/mainnet/",endpoints:{tx:"tx/",account:"address/"}}],["Moonbeam",{name:"Moonscan",baseUrl:"https://moonscan.io/",endpoints:{tx:"tx/",account:"address/"}}],["Sui",{name:"Sui Explorer",baseUrl:"https://explorer.sui.io/",endpoints:{tx:"txblock/",account:"address/"}}],["Aptos",{name:"Aptos Explorer",baseUrl:"https://explorer.aptoslabs.com/",endpoints:{tx:"txn/",account:"account/"}}],["Sei",{name:"Sei Explorer",baseUrl:"https://sei.explorers.guru/",endpoints:{tx:"transaction/",account:"address/"}}],["Karura",{name:"Karura Explorer",baseUrl:"https://blockscout.karura.network/",endpoints:{tx:"tx/",account:"address/"}}],["Acala",{name:"Acala Explorer",baseUrl:"https://blockscout.acala.network/",endpoints:{tx:"tx/",account:"address/"}}]]],["Testnet",[["Ethereum",{name:"Etherscan",baseUrl:"https://goerli.etherscan.io/",endpoints:{tx:"tx/",account:"address/"}}],["Polygon",{name:"PolygonScan",baseUrl:"https://mumbai.polygonscan.com/",endpoints:{tx:"tx/",account:"address/"}}],["Bsc",{name:"BscScan",baseUrl:"https://testnet.bscscan.com/",endpoints:{tx:"tx/",account:"address/"}}],["Avalanche",{name:"Snowtrace",baseUrl:"https://testnet.snowtrace.io/",endpoints:{tx:"tx/",account:"address/"}}],["Fantom",{name:"FTMscan",baseUrl:"https://testnet.ftmscan.com/",endpoints:{tx:"tx/",account:"address/"}}],["Celo",{name:"Celo Explorer",baseUrl:"https://explorer.celo.org/alfajores/",endpoints:{tx:"tx/",account:"address/"}}],["Moonbeam",{name:"Moonscan",baseUrl:"https://moonbase.moonscan.io/",endpoints:{tx:"tx/",account:"address/"}}],["Solana",{name:"Solana Explorer",baseUrl:"https://explorer.solana.com/",endpoints:{tx:"tx/",account:"address/"},networkQuery:{default:"Devnet",Testnet:"?cluster=testnet",Devnet:"?cluster=devnet"}}],["Sui",{name:"Sui Explorer",baseUrl:"https://explorer.sui.io/",endpoints:{tx:"txblock/",account:"address/"},networkQuery:{default:"Testnet",Testnet:"?network=testnet",Devnet:"?network=devnet"}}],["Aptos",{name:"Aptos Explorer",baseUrl:"https://explorer.aptoslabs.com/",endpoints:{tx:"txn/",account:"account/"},networkQuery:{default:"Testnet",Testnet:"?network=testnet",Devnet:"?network=devnet"}}],["Sei",{name:"Sei Explorer",baseUrl:"https://sei.explorers.guru/",endpoints:{tx:"transaction/",account:"address/"}}],["Karura",{name:"Karura Explorer",baseUrl:"https://blockscout.karura-testnet.aca-staging.network/",endpoints:{tx:"tx/",account:"address/"}}],["Acala",{name:"Acala Explorer",baseUrl:"https://blockscout.acala-dev.aca-dev.network/",endpoints:{tx:"tx/",account:"address/"}}]]]],EWe=Br(SWe),CWe=(t,e)=>t==="Devnet"?void 0:EWe.get(t,e),TWe=[["Mainnet",[["Ethereum","https://rpc.ankr.com/eth"],["Solana","https://api.mainnet-beta.solana.com"],["Polygon","https://rpc.ankr.com/polygon"],["Bsc","https://bscrpc.com"],["Avalanche","https://rpc.ankr.com/avalanche"],["Fantom","https://rpcapi.fantom.network"],["Celo","https://rpc.ankr.com/celo"],["Moonbeam","https://rpc.ankr.com/moonbeam"],["Sui","https://rpc.mainnet.sui.io"],["Aptos","https://fullnode.mainnet.aptoslabs.com/v1"],["Arbitrum","https://arb1.arbitrum.io/rpc"],["Optimism","https://mainnet.optimism.io"],["Base","https://mainnet.base.org"],["Osmosis","https://osmosis-rpc.polkachu.com"],["Cosmoshub","https://cosmos-rpc.publicnode.com:443"],["Evmos","https://evmos-rpc.polkachu.com"],["Injective","https://sentry.tm.injective.network"],["Wormchain","https://wormchain-rpc.quickapi.com"],["Xpla","https://dimension-rpc.xpla.dev"],["Sei","https://sei-rpc.polkachu.com/"],["Algorand","https://mainnet-api.algonode.cloud"],["Terra","https://terra-classic-rpc.publicnode.com"],["Terra2","https://terra-rpc.polkachu.com"],["Karura","https://eth-rpc-karura.aca-api.network"],["Acala","https://eth-rpc-acala.aca-api.network"],["Oasis","https://emerald.oasis.dev"],["Dymension","https://dymension-rpc.polkachu.com/"],["Stargaze","https://stargaze-rpc.polkachu.com/"],["Celestia","https://celestia-rpc.polkachu.com/"],["Neutron","https://neutron-rpc.polkachu.com/"],["Blast","https://rpc.blast.io"],["Provenance","https://rpc.provenance.io/"],["Noble","https://noble-rpc.polkachu.com/"],["Linea","https://rpc.linea.build"],["Scroll","https://rpc.ankr.com/scroll"],["Xlayer","https://xlayerrpc.okx.com/"],["Gnosis","https://rpc.ankr.com/gnosis"],["Rootstock","https://public-node.rsk.co"],["Mantle","https://rpc.mantle.xyz"],["Klaytn","https://rpc.ankr.com/klaytn"],["Snaxchain","https://mainnet.snaxchain.io"],["Berachain","https://rpc.berachain.com"],["Unichain","https://mainnet.unichain.org"],["Worldchain","https://worldchain-mainnet.g.alchemy.com/public"]]],["Testnet",[["Ethereum","https://eth-sepolia.public.blastapi.io"],["Polygon","https://rpc-mumbai.polygon.technology"],["Bsc","https://data-seed-prebsc-1-s3.binance.org:8545"],["Avalanche","https://api.avax-test.network/ext/bc/C/rpc"],["Fantom","https://rpc.testnet.fantom.network"],["Celo","https://alfajores-forno.celo-testnet.org"],["Solana","https://api.devnet.solana.com"],["Oasis","https://testnet.emerald.oasis.io"],["Moonbeam","https://rpc.api.moonbase.moonbeam.network"],["Sui","https://fullnode.testnet.sui.io"],["Aptos","https://fullnode.testnet.aptoslabs.com/v1"],["Sei","https://sei-testnet-rpc.polkachu.com"],["Arbitrum","https://arbitrum-goerli.public.blastapi.io"],["Optimism","https://optimism-goerli.public.blastapi.io"],["Base","https://base-goerli.public.blastapi.io"],["Injective","https://testnet.sentry.tm.injective.network"],["Osmosis","https://rpc.testnet.osmosis.zone"],["Cosmoshub","https://rpc.sentry-02.theta-testnet.polypore.xyz"],["Evmos","https://evmos-testnet-rpc.polkachu.com"],["Wormchain","https://gateway.testnet.xlabs.xyz/"],["Xpla","https://cube-rpc.xpla.dev"],["Sepolia","https://ethereum-sepolia.publicnode.com"],["Algorand","https://testnet-api.algonode.cloud"],["Terra","https://bombay.stakesystems.io"],["Terra2","https://terra-testnet-rpc.polkachu.com"],["ArbitrumSepolia","https://sepolia-rollup.arbitrum.io/rpc"],["OptimismSepolia","https://sepolia.optimism.io"],["BaseSepolia","https://sepolia.base.org"],["PolygonSepolia","https://rpc-amoy.polygon.technology/"],["Mantle","https://mantle-sepolia.drpc.org"],["Karura","https://eth-rpc-karura-testnet.aca-staging.network"],["Acala","https://eth-rpc-acala-testnet.aca-staging.network"],["Blast","https://sepolia.blast.io"],["Berachain","https://artio.rpc.berachain.com"],["Seievm","https://evm-rpc-testnet.sei-apis.com/"],["Linea","https://rpc.sepolia.linea.build"],["Xlayer","https://testrpc.xlayer.tech/"],["Scroll","https://rpc.ankr.com/scroll_sepolia_testnet"],["Rootstock","https://public-node.testnet.rsk.co"],["Gnosis","https://rpc.chiadochain.net"],["Klaytn","https://rpc.ankr.com/klaytn_testnet"],["Snaxchain","https://testnet.snaxchain.io"],["Unichain","https://sepolia.unichain.org"],["Worldchain","https://worldchain-sepolia.g.alchemy.com/public"],["Ink","https://rpc-qnd-sepolia.inkonchain.com"],["HyperEVM","https://api.hyperliquid-testnet.xyz/evm"],["Monad","https://testnet-rpc.monad.xyz"],["Noble","https://noble-testnet-rpc.polkachu.com/"]]],["Devnet",[["Ethereum","http://eth-devnet:8545"],["Bsc","http://eth-devnet2:8545"],["Solana","http://solana-devnet:8899"]]]],IWe=Br(TWe),jme=(t,e)=>IWe.get(t,e)??"",zme=[["Mainnet",[["Aptos",1n],["Algorand","mainnet-v1.0"],["Near","mainnet"],["Cosmoshub","cosmoshub-4"],["Evmos","evmos_9001-2"],["Injective","injective-1"],["Osmosis","osmosis-1"],["Sei","pacific-1"],["Terra","columbus-5"],["Terra2","phoenix-1"],["Wormchain","wormchain"],["Xpla","dimension_37-1"],["Kujira","kaiyo-1"],["Solana","5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d"],["Sui","35834a8a"],["Acala",787n],["Arbitrum",42161n],["Aurora",1313161554n],["Avalanche",43114n],["Base",8453n],["Bsc",56n],["Celo",42220n],["Ethereum",1n],["Fantom",250n],["Gnosis",100n],["Karura",686n],["Klaytn",8217n],["Moonbeam",1284n],["Neon",245022934n],["Oasis",42262n],["Optimism",10n],["Polygon",137n],["Rootstock",30n],["Neutron","neutron-1"],["Stargaze","stargaze-1"],["Celestia","celestia"],["Dymension","dymension_1100-1"],["Provenance","pio-mainnet-1"],["Noble","noble-1"],["Xlayer",196n],["Mantle",5000n],["Scroll",534352n],["Blast",81457n],["Linea",59144n],["Snaxchain",2192n],["Berachain",80094n],["Unichain",130n],["Worldchain",480n]]],["Testnet",[["Aptos",2n],["Algorand","testnet-v1.0"],["Near","testnet"],["Cosmoshub","theta-testnet-001"],["Evmos","evmos_9000-4"],["Injective","injective-888"],["Osmosis","osmo-test-5"],["Sei","atlantic-2"],["Terra","bombay-12"],["Terra2","pisco-1"],["Wormchain","wormchain-testnet-0"],["Xpla","cube_47-5"],["Kujira","harpoon-4"],["Solana","EtWTRABZaYq6iMfeYKouRu166VU2xqa1wcaWoxPkrZBG"],["Sui","4c78adac"],["Acala",597n],["Arbitrum",421613n],["Aurora",1313161555n],["Avalanche",43113n],["Base",84531n],["Bsc",97n],["Celo",44787n],["Ethereum",5n],["Fantom",4002n],["Gnosis",10200n],["Karura",596n],["Klaytn",1001n],["Moonbeam",1287n],["Neon",245022940n],["Oasis",42261n],["Optimism",420n],["Polygon",80001n],["Rootstock",31n],["Sepolia",11155111n],["ArbitrumSepolia",421614n],["BaseSepolia",84532n],["OptimismSepolia",11155420n],["PolygonSepolia",80002n],["Holesky",17000n],["Neutron","pion-1"],["Celestia","mocha-4"],["Seda","seda-1-testnet"],["Noble","grand-1"],["Blast",168587773n],["Mantle",5003n],["Scroll",534351n],["Berachain",80084n],["Seievm",1328n],["Snaxchain",13001n],["Unichain",1301n],["Worldchain",4801n],["Ink",763373n],["HyperEVM",998n],["Xlayer",195n],["Linea",59141n],["Monad",10143n]]],["Devnet",[["Aptos",0n],["Algorand","sandnet-v1.0"],["Bsc",1397n],["Ethereum",1337n],["Injective","injective_devnet_fake"],["Solana","8wF6jKV3cKwyaVkWcoV9KpDqmkjvEYno9hKZrKx8TbZn"]]]],nq=Br(zme),DWe=Br(zme,[2,[0,1]]);function Pme(t,e){const n=DWe(e).filter(([a,i])=>fs(i)===t);if(n.length!==1)throw new Error(`Platform ${t} has multiple chains with native chain id ${e}`);return n[0]}const NWe=[["Mainnet","https://iris-api.circle.com/v1/attestations"],["Testnet","https://iris-api-sandbox.circle.com/v1/attestations"]],Mae=Br(NWe),kWe=[["Mainnet",[["Ethereum","0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"],["Avalanche","0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E"],["Optimism","0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85"],["Arbitrum","0xaf88d065e77c8cC2239327C5EDb3A432268e5831"],["Solana","EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"],["Base","0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"],["Polygon","0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359"],["Sui","0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7::usdc::USDC"],["Aptos","0xbae207659db88bea0cbead6da0ed00aac12edcdda169e591cd41c94180b46f3b"],["Unichain","0x078D782b760474a361dDA0AF3839290b0EF57AD6"]]],["Testnet",[["Sepolia","0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238"],["Avalanche","0x5425890298aed601595a70AB815c96711a31Bc65"],["OptimismSepolia","0x5fd84259d66Cd46123540766Be93DFE6D43130D7"],["ArbitrumSepolia","0x75faf114eafb1BDbe2F0316DF893fd58CE46AA4d"],["Solana","4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU"],["BaseSepolia","0x036CbD53842c5426634e7929541eC2318f3dCF7e"],["Polygon","0x9999f7Fea5938fD3b1E26A12c3f2fb024e194f97"],["Sui","0xa1ec7fc00a6f40db9693ad1415d0c193ad3906494428cf252621037bd7117e29::usdc::USDC"],["Aptos","0x69091fbab5f7d635ee7ac5098cf0c1efbe31d68fec0f2cd565e8d168daf52832"],["Unichain","0x31d0220469e10c4E71834a79b1f276d740d3768F"]]]],B0=Br(kWe),aq=[["Mainnet",[["Ethereum",0],["Avalanche",1],["Optimism",2],["Arbitrum",3],["Solana",5],["Base",6],["Polygon",7],["Sui",8],["Aptos",9],["Unichain",10]]],["Testnet",[["Sepolia",0],["Avalanche",1],["OptimismSepolia",2],["ArbitrumSepolia",3],["Solana",5],["BaseSepolia",6],["Polygon",7],["Sui",8],["Aptos",9],["Unichain",10]]]],_We=Br(aq,[[0,1],2]),AU=Br(aq,[[0,2],1]),[Ckt,Tkt]=Mh(aq),SU=(t,e)=>_We.has(t,e),Aae=(t,e)=>AU.has(t,e),Sae=(t,e)=>B0.has(t,e),iB=(t,e)=>{switch(typeof e){case"string":if(SU(t,e))return e;break;case"number":if(Aae(t,e))return AU(t,e);break;case"bigint":const r=Number(e);if(Aae(t,r))return AU(t,r);break}throw Error(`Cannot convert to Chain: ${e}`)},LWe=[["Mainnet",[["Solana","worm2ZoG2kUd4vFXhvjh93UUH596ayRfgQ2MgjNMTth"],["Ethereum","0x98f3c9e6E3fAce36bAAd05FE09d375Ef1464288B"],["Terra","terra1dq03ugtd40zu9hcgdzrsq6z2z4hwhc9tqk2uy5"],["Bsc","0x98f3c9e6E3fAce36bAAd05FE09d375Ef1464288B"],["Polygon","0x7A4B5a56256163F07b2C80A7cA55aBE66c4ec4d7"],["Avalanche","0x54a8e5f9c4CbA08F9943965859F6c34eAF03E26c"],["Oasis","0xfE8cD454b4A1CA468B57D79c0cc77Ef5B6f64585"],["Algorand","842125965"],["Aurora","0xa321448d90d4e5b0A732867c18eA198e75CAC48E"],["Fantom","0x126783A6Cb203a3E35344528B26ca3a0489a1485"],["Karura","0xa321448d90d4e5b0A732867c18eA198e75CAC48E"],["Acala","0xa321448d90d4e5b0A732867c18eA198e75CAC48E"],["Klaytn","0x0C21603c4f3a6387e241c0091A7EA39E43E90bb7"],["Celo","0xa321448d90d4e5b0A732867c18eA198e75CAC48E"],["Near","contract.wormhole_crypto.near"],["Injective","inj17p9rzwnnfxcjp32un9ug7yhhzgtkhvl9l2q74d"],["Aptos","0x5bc11445584a763c1fa7ed39081f1b920954da14e04b32440cba863d03e19625"],["Sui","0xaeab97f96cf9877fee2883315d459552b2b921edc16d7ceac6eab944dd88919c"],["Moonbeam","0xC8e2b0cD52Cf01b0Ce87d389Daa3d414d4cE29f3"],["Terra2","terra12mrnzvhx3rpej6843uge2yyfppfyd3u9c3uq223q8sl48huz9juqffcnhp"],["Arbitrum","0xa5f208e072434bC67592E4C49C1B991BA79BCA46"],["Optimism","0xEe91C335eab126dF5fDB3797EA9d6aD93aeC9722"],["Gnosis","0xa321448d90d4e5b0A732867c18eA198e75CAC48E"],["Pythnet","H3fxXJ86ADW2PNuDDmZJg6mzTtPxkYCpNuQUTgmJ7AjU"],["Base","0xbebdb6C8ddC678FfA9f8748f85C815C556Dd8ac6"],["Rootstock","0xbebdb6C8ddC678FfA9f8748f85C815C556Dd8ac6"],["Xlayer","0x194B123c5E96B9b2E49763619985790Dc241CAC0"],["Xpla","xpla1jn8qmdda5m6f6fqu9qv46rt7ajhklg40ukpqchkejcvy8x7w26cqxamv3w"],["Sei","sei1gjrrme22cyha4ht2xapn3f08zzw6z3d4uxx6fyy9zd5dyr3yxgzqqncdqn"],["Wormchain","wormhole1ufs3tlq4umljk0qfe8k5ya0x6hpavn897u2cnf9k0en9jr7qarqqaqfk2j"],["Neutron","neutron16rerygcpahqcxx5t8vjla46ym8ccn7xz7rtc6ju5ujcd36cmc7zs9zrunh"],["Blast","0xbebdb6C8ddC678FfA9f8748f85C815C556Dd8ac6"],["Scroll","0xbebdb6C8ddC678FfA9f8748f85C815C556Dd8ac6"],["Mantle","0xbebdb6C8ddC678FfA9f8748f85C815C556Dd8ac6"],["Snaxchain","0xc1BA3CC4bFE724A08FbbFbF64F8db196738665f4"],["Berachain","0xCa1D5a146B03f6303baF59e5AD5615ae0b9d146D"],["Unichain","0xCa1D5a146B03f6303baF59e5AD5615ae0b9d146D"],["Worldchain","0xcbcEe4e081464A15d8Ad5f58BB493954421eB506"]]],["Testnet",[["Solana","3u8hJUVTA4jH1wYAyUur7FFZVQ8H635K3tSHHF4ssjQ5"],["Ethereum","0x706abc4E45D419950511e474C7B9Ed348A4a716c"],["Terra","terra1pd65m0q9tl3v8znnz5f5ltsfegyzah7g42cx5v"],["Bsc","0x68605AD7b15c732a30b1BbC62BE8F2A509D74b4D"],["Polygon","0x0CBE91CF822c73C2315FB05100C2F714765d5c20"],["Avalanche","0x7bbcE28e64B3F8b84d876Ab298393c38ad7aac4C"],["Oasis","0xc1C338397ffA53a2Eb12A7038b4eeb34791F8aCb"],["Algorand","86525623"],["Aurora","0xBd07292de7b505a4E803CEe286184f7Acf908F5e"],["Fantom","0x1BB3B4119b7BA9dfad76B0545fb3F531383c3bB7"],["Karura","0x64fb09E405D2043ed7785a29E296C766D56F2056"],["Acala","0x64fb09E405D2043ed7785a29E296C766D56F2056"],["Klaytn","0x1830CC6eE66c84D2F177B94D544967c774E624cA"],["Celo","0x88505117CA88e7dd2eC6EA1E13f0948db2D50D56"],["Near","wormhole.wormhole.testnet"],["Injective","inj1xx3aupmgv3ce537c0yce8zzd3sz567syuyedpg"],["Osmosis","osmo1hggkxr0hpw83f8vuft7ruvmmamsxmwk2hzz6nytdkzyup9krt0dq27sgyx"],["Aptos","0x5bc11445584a763c1fa7ed39081f1b920954da14e04b32440cba863d03e19625"],["Sui","0x31358d198147da50db32eda2562951d53973a0c0ad5ed738e9b17d88b213d790"],["Moonbeam","0xa5B7D85a8f27dd7907dc8FdC21FA5657D5E2F901"],["Neon","0x268557122Ffd64c85750d630b716471118F323c8"],["Terra2","terra19nv3xr5lrmmr7egvrk2kqgw4kcn43xrtd5g0mpgwwvhetusk4k7s66jyv0"],["Arbitrum","0xC7A204bDBFe983FCD8d8E61D02b475D4073fF97e"],["Optimism","0x6b9C8671cdDC8dEab9c719bB87cBd3e782bA6a35"],["Gnosis","0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"],["Pythnet","EUrRARh92Cdc54xrDn6qzaqjA77NRrCcfbr8kPwoTL4z"],["Xpla","xpla1upkjn4mthr0047kahvn0llqx4qpqfn75lnph4jpxfn8walmm8mqsanyy35"],["Base","0x23908A62110e21C04F3A4e011d24F901F911744A"],["Sei","sei1nna9mzp274djrgzhzkac2gvm3j27l402s4xzr08chq57pjsupqnqaj0d5s"],["Sepolia","0x4a8bc80Ed5a4067f1CCf107057b8270E0cC11A78"],["Rootstock","0xbebdb6C8ddC678FfA9f8748f85C815C556Dd8ac6"],["Wormchain","wormhole16jzpxp0e8550c9aht6q9svcux30vtyyyyxv5w2l2djjra46580wsazcjwp"],["ArbitrumSepolia","0x6b9C8671cdDC8dEab9c719bB87cBd3e782bA6a35"],["BaseSepolia","0x79A1027a6A159502049F10906D333EC57E95F083"],["OptimismSepolia","0x31377888146f3253211EFEf5c676D41ECe7D58Fe"],["Holesky","0xa10f2eF61dE1f19f586ab8B6F2EbA89bACE63F7a"],["Neutron","neutron1enf63k37nnv9cugggpm06mg70emcnxgj9p64v2s8yx7a2yhhzk2q6xesk4"],["Mantle","0x376428e7f26D5867e69201b275553C45B09EE090"],["PolygonSepolia","0x6b9C8671cdDC8dEab9c719bB87cBd3e782bA6a35"],["Scroll","0x055F47F1250012C6B20c436570a76e52c17Af2D5"],["Blast","0x473e002D7add6fB67a4964F13bFd61280Ca46886"],["Berachain","0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"],["Seievm","0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"],["Snaxchain","0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"],["Unichain","0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"],["Worldchain","0xe5E02cD12B6FcA153b0d7fF4bF55730AE7B3C93A"],["Ink","0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"],["HyperEVM","0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"],["Xlayer","0xA31aa3FDb7aF7Db93d18DDA4e19F811342EDF780"],["Linea","0x79A1027a6A159502049F10906D333EC57E95F083"],["Monad","0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"]]],["Devnet",[["Solana","Bridge1p5gheXUvJ6jGWGeCsgPKgnE3YgdGKRVCMY9o"],["Ethereum","0xC89Ce4735882C9F0f0FE26686c53074E09B0D550"],["Terra","terra14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9ssrc8au"],["Bsc","0xC89Ce4735882C9F0f0FE26686c53074E09B0D550"],["Algorand","1004"],["Near","wormhole.test.near"],["Aptos","0xde0036a9600559e295d5f6802ef6f3f802f510366e0c23912b0655d972166017"],["Sui","0x5a5160ca3c2037f4b4051344096ef7a48ebf4400b3f385e57ea90e1628a8bde0"],["Terra2","terra14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9ssrc8au"],["Wormchain","wormhole17p9rzwnnfxcjp32un9ug7yhhzgtkhvl9jfksztgw5uh69wac2pgshdnj3k"]]]],Ome=[["Mainnet",[["Solana","wormDTUJ6AWPNvk59vGQbDvGJmqbDTdgWgAqcLBCgUb"],["Ethereum","0x3ee18B2214AFF97000D974cf647E7C347E8fa585"],["Terra","terra10nmmwe8r3g99a9newtqa7a75xfgs2e8z87r2sf"],["Bsc","0xB6F6D86a8f9879A9c87f643768d9efc38c1Da6E7"],["Polygon","0x5a58505a96D1dbf8dF91cB21B54419FC36e93fdE"],["Avalanche","0x0e082F06FF657D94310cB8cE8B0D9a04541d8052"],["Oasis","0x5848C791e09901b40A9Ef749f2a6735b418d7564"],["Algorand","842126029"],["Aurora","0x51b5123a7b0F9b2bA265f9c4C8de7D78D52f510F"],["Fantom","0x7C9Fc5741288cDFdD83CeB07f3ea7e22618D79D2"],["Karura","0xae9d7fe007b3327AA64A32824Aaac52C42a6E624"],["Acala","0xae9d7fe007b3327AA64A32824Aaac52C42a6E624"],["Klaytn","0x5b08ac39EAED75c0439FC750d9FE7E1F9dD0193F"],["Celo","0x796Dff6D74F3E27060B71255Fe517BFb23C93eed"],["Near","contract.portalbridge.near"],["Injective","inj1ghd753shjuwexxywmgs4xz7x2q732vcnxxynfn"],["Aptos","0x576410486a2da45eee6c949c995670112ddf2fbeedab20350d506328eefc9d4f"],["Sui","0xc57508ee0d4595e5a8728974a4a93a787d38f339757230d441e895422c07aba9"],["Moonbeam","0xb1731c586ca89a23809861c6103f0b96b3f57d92"],["Terra2","terra153366q50k7t8nn7gec00hg66crnhkdggpgdtaxltaq6xrutkkz3s992fw9"],["Arbitrum","0x0b2402144Bb366A632D14B83F244D2e0e21bD39c"],["Optimism","0x1D68124e65faFC907325e3EDbF8c4d84499DAa8b"],["Base","0x8d2de8d2f73F1F4cAB472AC9A881C9b123C79627"],["Xlayer","0x5537857664B0f9eFe38C9f320F75fEf23234D904"],["Xpla","xpla137w0wfch2dfmz7jl2ap8pcmswasj8kg06ay4dtjzw7tzkn77ufxqfw7acv"],["Sei","sei1smzlm9t79kur392nu9egl8p8je9j92q4gzguewj56a05kyxxra0qy0nuf3"],["Wormchain","wormhole1466nf3zuxpya8q9emxukd7vftaf6h4psr0a07srl5zw74zh84yjq4lyjmh"],["Blast","0x24850c6f61C438823F01B7A3BF2B89B72174Fa9d"],["Scroll","0x24850c6f61C438823F01B7A3BF2B89B72174Fa9d"],["Mantle","0x24850c6f61C438823F01B7A3BF2B89B72174Fa9d"],["Snaxchain","0x8B94bfE456B48a6025b92E11Be393BAa86e68410"],["Berachain","0x3Ff72741fd67D6AD0668d93B41a09248F4700560"],["Unichain","0x3Ff72741fd67D6AD0668d93B41a09248F4700560"],["Worldchain","0xc309275443519adca74c9136b02A38eF96E3a1f6"]]],["Testnet",[["Solana","DZnkkTmCiFWfYTfT41X3Rd1kDgozqzxWaHqsw6W4x2oe"],["Ethereum","0xF890982f9310df57d00f659cf4fd87e65adEd8d7"],["Terra","terra1pseddrv0yfsn76u4zxrjmtf45kdlmalswdv39a"],["Bsc","0x9dcF9D205C9De35334D646BeE44b2D2859712A09"],["Polygon","0x377D55a7928c046E18eEbb61977e714d2a76472a"],["Avalanche","0x61E44E506Ca5659E6c0bba9b678586fA2d729756"],["Oasis","0x88d8004A9BdbfD9D28090A02010C19897a29605c"],["Algorand","86525641"],["Aurora","0xD05eD3ad637b890D68a854d607eEAF11aF456fba"],["Fantom","0x599CEa2204B4FaECd584Ab1F2b6aCA137a0afbE8"],["Karura","0xe157115ef34c93145Fec2FE53706846853B07F42"],["Acala","0xe157115ef34c93145Fec2FE53706846853B07F42"],["Klaytn","0xC7A13BE098720840dEa132D860fDfa030884b09A"],["Celo","0x05ca6037eC51F8b712eD2E6Fa72219FEaE74E153"],["Near","token.wormhole.testnet"],["Injective","inj1q0e70vhrv063eah90mu97sazhywmeegp7myvnh"],["Aptos","0x576410486a2da45eee6c949c995670112ddf2fbeedab20350d506328eefc9d4f"],["Sui","0x6fb10cdb7aa299e9a4308752dadecb049ff55a892de92992a1edbd7912b3d6da"],["Moonbeam","0xbc976D4b9D57E57c3cA52e1Fd136C45FF7955A96"],["Neon","0xEe3dB83916Ccdc3593b734F7F2d16D630F39F1D0"],["Terra2","terra1c02vds4uhgtrmcw7ldlg75zumdqxr8hwf7npseuf2h58jzhpgjxsgmwkvk"],["Arbitrum","0x23908A62110e21C04F3A4e011d24F901F911744A"],["ArbitrumSepolia","0xC7A204bDBFe983FCD8d8E61D02b475D4073fF97e"],["Optimism","0xC7A204bDBFe983FCD8d8E61D02b475D4073fF97e"],["OptimismSepolia","0x99737Ec4B815d816c49A385943baf0380e75c0Ac"],["Xpla","xpla1kek6zgdaxcsu35nqfsyvs2t9vs87dqkkq6hjdgczacysjn67vt8sern93x"],["Base","0xA31aa3FDb7aF7Db93d18DDA4e19F811342EDF780"],["BaseSepolia","0x86F55A04690fd7815A3D802bD587e83eA888B239"],["Sei","sei1jv5xw094mclanxt5emammy875qelf3v62u4tl4lp5nhte3w3s9ts9w9az2"],["Sepolia","0xDB5492265f6038831E89f495670FF909aDe94bd9"],["Wormchain","wormhole1aaf9r6s7nxhysuegqrxv0wpm27ypyv4886medd3mrkrw6t4yfcnst3qpex"],["Holesky","0x76d093BbaE4529a342080546cAFEec4AcbA59EC6"],["Mantle","0x75Bfa155a9D7A3714b0861c8a8aF0C4633c45b5D"],["PolygonSepolia","0xC7A204bDBFe983FCD8d8E61D02b475D4073fF97e"],["Scroll","0x22427d90B7dA3fA4642F7025A854c7254E4e45BF"],["Blast","0x430855B4D43b8AEB9D2B9869B74d58dda79C0dB2"],["Xlayer","0xdA91a06299BBF302091B053c6B9EF86Eff0f930D"],["Berachain","0xa10f2eF61dE1f19f586ab8B6F2EbA89bACE63F7a"],["Seievm","0x23908A62110e21C04F3A4e011d24F901F911744A"],["Snaxchain","0xa10f2eF61dE1f19f586ab8B6F2EbA89bACE63F7a"],["Unichain","0xa10f2eF61dE1f19f586ab8B6F2EbA89bACE63F7a"],["Worldchain","0x430855B4D43b8AEB9D2B9869B74d58dda79C0dB2"],["Ink","0x376428e7f26D5867e69201b275553C45B09EE090"],["HyperEVM","0x4a8bc80Ed5a4067f1CCf107057b8270E0cC11A78"],["Linea","0xC7A204bDBFe983FCD8d8E61D02b475D4073fF97e"],["Monad","0xF323dcDe4d33efe83cf455F78F9F6cc656e6B659"]]],["Devnet",[["Solana","B6RHG3mfcckmrYN1UhmJzyS1XX3fZKbkeUcpJe9Sy3FE"],["Ethereum","0x0290FB167208Af455bB137780163b7B7a9a10C16"],["Terra","terra1nc5tatafv6eyq7llkr2gv50ff9e22mnf70qgjlv737ktmt4eswrquka9l6"],["Bsc","0x0290FB167208Af455bB137780163b7B7a9a10C16"],["Algorand","1006"],["Near","token.test.near"],["Aptos","0x84a5f374d29fc77e370014dce4fd6a55b58ad608de8074b0be5571701724da31"],["Sui","0xa6a3da85bbe05da5bfd953708d56f1a3a023e7fb58e5a824a3d4de3791e8f690"],["Terra2","terra1nc5tatafv6eyq7llkr2gv50ff9e22mnf70qgjlv737ktmt4eswrquka9l6"],["Wormchain","wormhole1ghd753shjuwexxywmgs4xz7x2q732vcnkm6h2pyv9s6ah3hylvrqtm7t3h"]]]],Rme=[["Mainnet",[["Ethereum","0xcafd2f0a35a4459fa40c0517e17e6fa2939441ca"],["Bsc","0xcafd2f0a35a4459fa40c0517e17e6fa2939441ca"],["Polygon","0xcafd2f0a35a4459fa40c0517e17e6fa2939441ca"],["Avalanche","0xcafd2f0a35a4459fa40c0517e17e6fa2939441ca"],["Fantom","0xcafd2f0a35a4459fa40c0517e17e6fa2939441ca"],["Celo","0xcafd2f0a35a4459fa40c0517e17e6fa2939441ca"],["Sui","0x57f4e0ba41a7045e29d435bc66cc4175f381eb700e6ec16d4fdfe92e5a4dff9f"],["Solana","3vxKRPwUTiEkeUVyoZ9MXFe1V71sRLbLqu1gRYaWmehQ"],["Base","0xaE8dc4a7438801Ec4edC0B035EcCCcF3807F4CC1"],["Moonbeam","0xcafd2f0a35a4459fa40c0517e17e6fa2939441ca"],["Arbitrum","0xaE8dc4a7438801Ec4edC0B035EcCCcF3807F4CC1"],["Optimism","0xaE8dc4a7438801Ec4edC0B035EcCCcF3807F4CC1"]]],["Testnet",[["Ethereum","0x9563a59c15842a6f322b10f69d1dd88b41f2e97b"],["Bsc","0x9563a59c15842a6f322b10f69d1dd88b41f2e97b"],["Polygon","0x9563a59c15842a6f322b10f69d1dd88b41f2e97b"],["Avalanche","0x9563a59c15842a6f322b10f69d1dd88b41f2e97b"],["Fantom","0x9563a59c15842a6f322b10f69d1dd88b41f2e97b"],["Celo","0x9563a59c15842a6f322b10f69d1dd88b41f2e97b"],["Sui","0xb30040e5120f8cb853b691cb6d45981ae884b1d68521a9dc7c3ae881c0031923"],["Base","0xae8dc4a7438801ec4edc0b035eccccf3807f4cc1"],["Moonbeam","0x9563a59c15842a6f322b10f69d1dd88b41f2e97b"],["Solana","3bPRWXqtSfUaCw3S4wdgvypQtsSzcmvDeaqSqPDkncrg"],["Sepolia",""],["ArbitrumSepolia","0xaE8dc4a7438801Ec4edC0B035EcCCcF3807F4CC1"],["OptimismSepolia","0xaE8dc4a7438801Ec4edC0B035EcCCcF3807F4CC1"],["BaseSepolia",""]]]],BWe=[["Mainnet",[["Solana","WnFt12ZrnzZrFZkt2xsNsaNWoQribnuQ5B5FrDbwDhD"],["Ethereum","0x6FFd7EdE62328b3Af38FCD61461Bbfc52F5651fE"],["Bsc","0x5a58505a96D1dbf8dF91cB21B54419FC36e93fdE"],["Polygon","0x90BBd86a6Fe93D3bc3ed6335935447E75fAb7fCf"],["Avalanche","0xf7B6737Ca9c4e08aE573F75A97B73D7a813f5De5"],["Oasis","0x04952D522Ff217f40B5Ef3cbF659EcA7b952a6c1"],["Aurora","0x6dcC0484472523ed9Cdc017F711Bcbf909789284"],["Fantom","0xA9c7119aBDa80d4a4E0C06C8F4d8cF5893234535"],["Karura","0xb91e3638F82A1fACb28690b37e3aAE45d2c33808"],["Acala","0xb91e3638F82A1fACb28690b37e3aAE45d2c33808"],["Klaytn","0x3c3c561757BAa0b78c5C025CdEAa4ee24C1dFfEf"],["Celo","0xA6A377d75ca5c9052c9a77ED1e865Cc25Bd97bf3"],["Aptos","0x1bdffae984043833ed7fe223f7af7a3f8902d04129b14f801823e64827da7130"],["Moonbeam","0x453cfbe096c0f8d763e8c5f24b441097d577bde2"],["Arbitrum","0x3dD14D553cFD986EAC8e3bddF629d82073e188c8"],["Base","0xDA3adC6621B2677BEf9aD26598e6939CF0D92f88"],["Optimism","0xfE8cD454b4A1CA468B57D79c0cc77Ef5B6f64585"]]],["Testnet",[["Solana","2rHhojZ7hpu1zA91nvZmT8TqWWvMcKmmNBCr2mKTtMq4"],["Ethereum","0xD8E4C2DbDd2e2bd8F1336EA691dBFF6952B1a6eB"],["Bsc","0xcD16E5613EF35599dc82B24Cb45B5A93D779f1EE"],["Polygon","0x51a02d0dcb5e52F5b92bdAA38FA013C91c7309A9"],["Avalanche","0xD601BAf2EEE3C028344471684F6b27E789D9075D"],["Oasis","0xC5c25B41AB0b797571620F5204Afa116A44c0ebA"],["Aurora","0x8F399607E9BA2405D87F5f3e1B78D950b44b2e24"],["Fantom","0x63eD9318628D26BdCB15df58B53BB27231D1B227"],["Klaytn","0x94c994fC51c13101062958b567e743f1a04432dE"],["Celo","0xaCD8190F647a31E56A656748bC30F69259f245Db"],["Moonbeam","0x98A0F4B96972b32Fcb3BD03cAeB66A44a6aB9Edb"],["Neon","0x66E5BcFD45D2F3f166c567ADa663f9d2ffb292B4"],["Arbitrum","0xEe3dB83916Ccdc3593b734F7F2d16D630F39F1D0"],["Optimism","0x23908A62110e21C04F3A4e011d24F901F911744A"],["Base","0xF681d1cc5F25a3694E348e7975d7564Aa581db59"],["Sepolia","0x6a0B52ac198e4870e5F3797d5B403838a5bbFD99"],["Aptos","0x1bdffae984043833ed7fe223f7af7a3f8902d04129b14f801823e64827da7130"],["ArbitrumSepolia","0x23908A62110e21C04F3A4e011d24F901F911744A"],["BaseSepolia","0x268557122Ffd64c85750d630b716471118F323c8"],["OptimismSepolia","0x27812285fbe85BA1DF242929B906B31EE3dd1b9f"],["Holesky","0xc8941d483c45eF8FB72E4d1F9dDE089C95fF8171"],["PolygonSepolia","0x23908A62110e21C04F3A4e011d24F901F911744A"],["Mantle","0xD7D732C8Bf5eBF620EA55b5828eae20418eEF083"],["Scroll","0x47B9a1406BEe29a3001BFEB7e45aE45fFFB40c18"]]],["Devnet",[["Solana","NFTWqJR8YnRVqPDvTJrYuLrQDitTG5AScqbeghi4zSA"],["Ethereum","0x26b4afb60d6c903165150c6f0aa14f8016be4aec"],["Terra","terra1plju286nnfj3z54wgcggd4enwaa9fgf5kgrgzl"],["Bsc","0x26b4afb60d6c903165150c6f0aa14f8016be4aec"],["Aptos","0x46da3d4c569388af61f951bdd1153f4c875f90c2991f6b2d0a38e2161a40852c"]]]],jWe=[["Mainnet",[["Ethereum","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Bsc","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Polygon","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Avalanche","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Fantom","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Klaytn","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Celo","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Moonbeam","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Base","0x706f82e9bb5b0813501714ab5974216704980e31"],["Arbitrum","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Optimism","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Blast","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Scroll","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Mantle","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Xlayer","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Worldchain","0x1520cc9e779c56dab5866bebfb885c86840c33d3"],["Snaxchain","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"]]],["Testnet",[["Ethereum","0x28D8F1Be96f97C1387e94A53e00eCcFb4E75175a"],["Bsc","0x80aC94316391752A193C1c47E27D382b507c93F3"],["Polygon","0x0591C25ebd0580E0d4F27A82Fc2e24E7489CB5e0"],["Avalanche","0xA3cF45939bD6260bcFe3D66bc73d60f19e49a8BB"],["Fantom","0x9563a59c15842a6f322b10f69d1dd88b41f2e97b"],["Celo","0x306B68267Deb7c5DfCDa3619E22E9Ca39C374f84"],["Seievm","0x362fca37E45fe1096b42021b543f462D49a5C8df"],["Moonbeam","0x0591C25ebd0580E0d4F27A82Fc2e24E7489CB5e0"],["Arbitrum","0xAd753479354283eEE1b86c9470c84D42f229FF43"],["Optimism","0x01A957A525a5b7A72808bA9D10c389674E459891"],["Base","0xea8029CD7FCAEFFcD1F53686430Db0Fc8ed384E1"],["Sepolia","0x7B1bD7a6b4E61c2a123AC6BC2cbfC614437D0470"],["ArbitrumSepolia","0x7B1bD7a6b4E61c2a123AC6BC2cbfC614437D0470"],["BaseSepolia","0x93BAD53DDfB6132b0aC8E37f6029163E63372cEE"],["OptimismSepolia","0x93BAD53DDfB6132b0aC8E37f6029163E63372cEE"],["Berachain","0x362fca37E45fe1096b42021b543f462D49a5C8df"],["Unichain","0x362fca37E45fe1096b42021b543f462D49a5C8df"],["Ink","0x362fca37E45fe1096b42021b543f462D49a5C8df"],["Monad","0x362fca37E45fe1096b42021b543f462D49a5C8df"]]],["Devnet",[["Ethereum","0xcC680D088586c09c3E0E099a676FA4b6e42467b4"],["Bsc","0xcC680D088586c09c3E0E099a676FA4b6e42467b4"]]]],Fme=[["Mainnet",[["Ethereum",{tokenMessenger:"0xbd3fa81b58ba92a82136038b25adec7066af3155",messageTransmitter:"0x0a992d191deec32afe36203ad87d7d289a738f81",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0xAaDA05BD399372f0b0463744C09113c137636f6a"}],["Avalanche",{tokenMessenger:"0x6b25532e1060ce10cc3b0a99e5683b91bfde6982",messageTransmitter:"0x8186359af5f57fbb40c6b14a588d2a59c0c29880",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x09Fb06A271faFf70A651047395AaEb6265265F13"}],["Optimism",{tokenMessenger:"0x2B4069517957735bE00ceE0fadAE88a26365528f",messageTransmitter:"0x4d41f22c5a0e5c74090899e5a8fb597a8842b3e8",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x2703483B1a5a7c577e8680de9Df8Be03c6f30e3c"}],["Arbitrum",{tokenMessenger:"0x19330d10D9Cc8751218eaf51E8885D058642E08A",messageTransmitter:"0xC30362313FBBA5cf9163F0bb16a0e01f01A896ca",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x2703483B1a5a7c577e8680de9Df8Be03c6f30e3c"}],["Base",{tokenMessenger:"0x1682Ae6375C4E4A97e4B583BC394c861A46D8962",messageTransmitter:"0xAD09780d193884d503182aD4588450C416D6F9D4",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x03faBB06Fa052557143dC28eFCFc63FC12843f1D"}],["Solana",{tokenMessenger:"CCTPiPYPc6AsJuwueEnWgSgucamXDZwBd53dQ11YiKX3",messageTransmitter:"CCTPmbSD7gX1bxKPAmg77w8oFzNFpaQiQUWD43TKaecd",wormholeRelayer:"",wormhole:""}],["Polygon",{tokenMessenger:"0x9daF8c91AEFAE50b9c0E69629D3F6Ca40cA3B3FE",messageTransmitter:"0xF3be9355363857F3e001be68856A2f96b4C39Ba9",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x0FF28217dCc90372345954563486528aa865cDd6"}],["Sui",{tokenMessenger:"0x2aa6c5d56376c371f88a6cc42e852824994993cb9bab8d3e6450cbe3cb32b94e",messageTransmitter:"0x08d87d37ba49e785dde270a83f8e979605b03dc552b5548f26fdf2f49bf7ed1b",wormholeRelayer:"",wormhole:""}],["Aptos",{tokenMessenger:"0x9e6702a472080ea3caaf6ba9dfaa6effad2290a9ba9adaacd5af5c618e42782d",messageTransmitter:"0x177e17751820e4b4371873ca8c30279be63bdea63b88ed0f2239c2eea10f1772",wormholeRelayer:"",wormhole:""}],["Unichain",{tokenMessenger:"0x4e744b28E787c3aD0e810eD65A24461D4ac5a762",messageTransmitter:"0x353bE9E2E38AB1D19104534e4edC21c643Df86f4",wormholeRelayer:"",wormhole:""}]]],["Testnet",[["Sepolia",{tokenMessenger:"0x9f3B8679c73C2Fef8b59B4f3444d4e156fb70AA5",messageTransmitter:"0x7865fAfC2db2093669d92c0F33AeEF291086BEFD",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x2703483B1a5a7c577e8680de9Df8Be03c6f30e3c"}],["Avalanche",{tokenMessenger:"0xeb08f243e5d3fcff26a9e38ae5520a669f4019d0",messageTransmitter:"0xa9fb1b3009dcb79e2fe346c16a604b8fa8ae0a79",wormholeRelayer:"0x774a70bbd03327c21460b60f25b677d9e46ab458",wormhole:"0x58f4c17449c90665891c42e14d34aae7a26a472e"}],["OptimismSepolia",{tokenMessenger:"0x9f3B8679c73C2Fef8b59B4f3444d4e156fb70AA5",messageTransmitter:"0x7865fAfC2db2093669d92c0F33AeEF291086BEFD",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x2703483B1a5a7c577e8680de9Df8Be03c6f30e3c"}],["ArbitrumSepolia",{tokenMessenger:"0x9f3B8679c73C2Fef8b59B4f3444d4e156fb70AA5",messageTransmitter:"0xaCF1ceeF35caAc005e15888dDb8A3515C41B4872",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x2703483B1a5a7c577e8680de9Df8Be03c6f30e3c"}],["Solana",{tokenMessenger:"CCTPiPYPc6AsJuwueEnWgSgucamXDZwBd53dQ11YiKX3",messageTransmitter:"CCTPmbSD7gX1bxKPAmg77w8oFzNFpaQiQUWD43TKaecd",wormholeRelayer:"",wormhole:""}],["BaseSepolia",{tokenMessenger:"0x9f3B8679c73C2Fef8b59B4f3444d4e156fb70AA5",messageTransmitter:"0x7865fAfC2db2093669d92c0F33AeEF291086BEFD",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x2703483B1a5a7c577e8680de9Df8Be03c6f30e3c"}],["Polygon",{tokenMessenger:"0x9f3B8679c73C2Fef8b59B4f3444d4e156fb70AA5",messageTransmitter:"0xe09A679F56207EF33F5b9d8fb4499Ec00792eA73",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x2703483B1a5a7c577e8680de9Df8Be03c6f30e3c"}],["Sui",{tokenMessenger:"0x31cc14d80c175ae39777c0238f20594c6d4869cfab199f40b69f3319956b8beb",messageTransmitter:"0x4931e06dce648b3931f890035bd196920770e913e43e45990b383f6486fdd0a5",wormholeRelayer:"",wormhole:""}],["Aptos",{tokenMessenger:"0x5f9b937419dda90aa06c1836b7847f65bbbe3f1217567758dc2488be31a477b9",messageTransmitter:"0x081e86cebf457a0c6004f35bd648a2794698f52e0dde09a48619dcd3d4cc23d9",wormholeRelayer:"",wormhole:""}],["Unichain",{tokenMessenger:"0x8ed94B8dAd2Dc5453862ea5e316A8e71AAed9782",messageTransmitter:"0xbc498c326533d675cf571B90A2Ced265ACb7d086",wormholeRelayer:"",wormhole:""}]]]],zWe=[["Mainnet",[["Wormchain","wormhole14ejqjyq8um4p3xfqj74yld5waqljf88fz25yxnma0cngspxe3les00fpjx"]]],["Testnet",[["Wormchain","wormhole1ctnjk7an90lz5wjfvr3cf6x984a8cjnv8dpmztmlpcq4xteaa2xs9pwmzk"]]]],PWe=[["Mainnet",[["Sei","sei189adguawugk3e55zn63z8r9ll29xrjwca636ra7v7gxuzn98sxyqwzt47l"]]],["Testnet",[["Sei","sei1dkdwdvknx0qav5cp5kw68mkn3r99m3svkyjfvkztwh97dv2lm0ksj6xrak"]]]],OWe=[["Mainnet",[["Polygon",["Ethereum","0x86E4Dc95c7FBdBf52e33D563BbDB00823894C287"]],["Optimism",["Ethereum","0xdfe97868233d1aa22e815a266982f2cf17685a27"]],["Arbitrum",["Ethereum","0x1c479675ad559dc151f6ec7ed3fbf8cee79582b6"]]]],["Testnet",[["Polygon",["Ethereum","0x2890ba17efe978480615e330ecb65333b880928e"]],["Optimism",["Ethereum","0xe6dfba0953616bacab0c9a8ecb3a9bba77fc15c0"]],["Arbitrum",["Ethereum","0x45af9ed1d03703e480ce7d328fb684bb67da5049"]]]]],Ume=[["Mainnet",[["Ethereum",{porticoUniswap:"0x48b6101128C0ed1E208b7C910e60542A2ee6f476",uniswapQuoterV2:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",porticoPancakeSwap:"0x4db1683d60e0a933A9A477a19FA32F472bB9d06e",pancakeSwapQuoterV2:"0xB048Bbc1Ee6b733FFfCFb9e9CeF7375518e25997"}],["Polygon",{porticoUniswap:"0x227bABe533fa9a1085f5261210E0B7137E44437B",uniswapQuoterV2:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",porticoPancakeSwap:void 0,pancakeSwapQuoterV2:void 0}],["Bsc",{porticoUniswap:"0x05498574BD0Fa99eeCB01e1241661E7eE58F8a85",uniswapQuoterV2:"0x78D78E420Da98ad378D7799bE8f4AF69033EB077",porticoPancakeSwap:"0xF352DC165783538A26e38A536e76DceF227d90F2",pancakeSwapQuoterV2:"0xB048Bbc1Ee6b733FFfCFb9e9CeF7375518e25997"}],["Avalanche",{porticoUniswap:"0xE565E118e75304dD3cF83dff409c90034b7EA18a",uniswapQuoterV2:"0xbe0F5544EC67e9B3b2D979aaA43f18Fd87E6257F",porticoPancakeSwap:void 0,pancakeSwapQuoterV2:void 0}],["Arbitrum",{porticoUniswap:"0x48fa7528bFD6164DdF09dF0Ed22451cF59c84130",uniswapQuoterV2:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",porticoPancakeSwap:"0xE70946692E2e56ae47BfAe2d93d31bd60952B090",pancakeSwapQuoterV2:"0xB048Bbc1Ee6b733FFfCFb9e9CeF7375518e25997"}],["Optimism",{porticoUniswap:"0x9ae506cDDd27DEe1275fd1fe6627E5dc65257061",uniswapQuoterV2:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",porticoPancakeSwap:void 0,pancakeSwapQuoterV2:void 0}],["Base",{porticoUniswap:"0x610d4DFAC3EC32e0be98D18DDb280DACD76A1889",uniswapQuoterV2:"0x3d4e44Eb1374240CE5F1B871ab261CD16335B76a",porticoPancakeSwap:"0x4568aa1eA0ED54db666c58B4526B3FC9BD9be9bf",pancakeSwapQuoterV2:"0xB048Bbc1Ee6b733FFfCFb9e9CeF7375518e25997"}],["Celo",{porticoUniswap:"0xE565E118e75304dD3cF83dff409c90034b7EA18a",uniswapQuoterV2:"0x82825d0554fA07f7FC52Ab63c961F330fdEFa8E8",porticoPancakeSwap:void 0,pancakeSwapQuoterV2:void 0}]]]],RWe=Br(LWe),FWe=Br(Ome),UWe=Br(Rme),WWe=Br(BWe),VWe=Br(jWe),Eae=Br(zWe),Cae=Br(PWe),Tae=Br(Ume),EU=Br(Fme);Br(OWe);const $We=Br(Ome,[0,1]),Iae=Br(Rme,[0,1]),GT=Br(Fme,[0,1]),Dae=Br(Ume,[0,1]),iq=[["Mainnet",[["0x58CC3AE5C097b213cE3c81979e1B9f9570746AA5","JumpCrypto"],["0xfF6CB952589BDE862c25Ef4392132fb9D4A42157","Staked"],["0x114De8460193bdf3A2fCf81f86a09765F4762fD1","Figment"],["0x107A0086b32d7A0977926A205131d8731D39cbEB","ChainodeTech"],["0x8C82B2fd82FaeD2711d59AF0F2499D16e726f6b2","Inotel"],["0x11b39756C042441BE6D8650b69b54EbE715E2343","HashQuark"],["0x54Ce5B4D348fb74B958e8966e2ec3dBd4958a7cd","Chainlayer"],["0x15e7cAF07C4e3DC8e7C469f92C8Cd88FB8005a20","xLabs"],["0x74a3bf913953D695260D88BC1aA25A4eeE363ef0","Forbole"],["0x000aC0076727b35FBea2dAc28fEE5cCB0fEA768e","StakingFund"],["0xAF45Ced136b9D9e24903464AE889F5C8a723FC14","MoonletWallet"],["0xf93124b7c738843CBB89E864c862c38cddCccF95","P2PValidator"],["0xD2CC37A4dc036a8D232b48f62cDD4731412f4890","01Node"],["0xDA798F6896A3331F64b48c12D1D57Fd9cbe70811","MCF"],["0x71AA1BE1D36CaFE3867910F99C09e347899C19C3","Everstake"],["0x8192b6E7387CCd768277c17DAb1b7a5027c0b3Cf","ChorusOne"],["0x178e21ad2E77AE06711549CFBB1f9c7a9d8096e8","Syncnode"],["0x5E1487F35515d02A92753504a8D75471b9f49EdB","Triton"],["0x6FbEBc898F403E4773E95feB15E80C9A99c8348d","StakingFacilities"]]],["Testnet",[["0x13947Bd48b18E53fdAeEe77F3473391aC727C638","Testnet guardian"]]]],[Ikt,Dkt]=$Ue(Mh(VT(iq)),[1,2]);Br(iq,[[0,2],1]);Br(iq,[1,[0,2]]);const Wme=5;function b8(t){if(!Number.isSafeInteger(t)||t<0)throw new Error("positive integer expected, got "+t)}function HWe(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&t.constructor.name==="Uint8Array"}function Fg(t,...e){if(!HWe(t))throw new Error("Uint8Array expected");if(e.length>0&&!e.includes(t.length))throw new Error("Uint8Array expected of length "+e+", got length="+t.length)}function qWe(t){if(typeof t!="function"||typeof t.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");b8(t.outputLen),b8(t.blockLen)}function _2(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function sq(t,e){Fg(t);const r=e.outputLen;if(t.length<r)throw new Error("digestInto() expects output buffer of length at least "+r)}const V3=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */function Nx(t){return new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4))}function sB(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function Kc(t,e){return t<<32-e|t>>>e}function Nkt(t,e){return t<<e|t>>>32-e>>>0}const id=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function Vme(t){return t<<24&4278190080|t<<8&16711680|t>>>8&65280|t>>>24&255}const Zu=id?t=>t:t=>Vme(t);function u6(t){for(let e=0;e<t.length;e++)t[e]=Vme(t[e])}const GWe=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function kkt(t){Fg(t);let e="";for(let r=0;r<t.length;r++)e+=GWe[t[r]];return e}const ku={_0:48,_9:57,A:65,F:70,a:97,f:102};function Nae(t){if(t>=ku._0&&t<=ku._9)return t-ku._0;if(t>=ku.A&&t<=ku.F)return t-(ku.A-10);if(t>=ku.a&&t<=ku.f)return t-(ku.a-10)}function _kt(t){if(typeof t!="string")throw new Error("hex string expected, got "+typeof t);const e=t.length,r=e/2;if(e%2)throw new Error("hex string expected, got unpadded hex of length "+e);const n=new Uint8Array(r);for(let a=0,i=0;a<r;a++,i+=2){const s=Nae(t.charCodeAt(i)),o=Nae(t.charCodeAt(i+1));if(s===void 0||o===void 0){const c=t[i]+t[i+1];throw new Error('hex string expected, got non-hex character "'+c+'" at index '+i)}n[a]=s*16+o}return n}function YWe(t){if(typeof t!="string")throw new Error("utf8ToBytes expected string, got "+typeof t);return new Uint8Array(new TextEncoder().encode(t))}function Xd(t){return typeof t=="string"&&(t=YWe(t)),Fg(t),t}function KWe(...t){let e=0;for(let n=0;n<t.length;n++){const a=t[n];Fg(a),e+=a.length}const r=new Uint8Array(e);for(let n=0,a=0;n<t.length;n++){const i=t[n];r.set(i,a),a+=i.length}return r}class kN{clone(){return this._cloneInto()}}function Lkt(t,e){if(e!==void 0&&{}.toString.call(e)!=="[object Object]")throw new Error("Options should be object or undefined");return Object.assign(t,e)}function _N(t){const e=n=>t().update(Xd(n)).digest(),r=t();return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=()=>t(),e}function ZWe(t){const e=(n,a)=>t(a).update(Xd(n)).digest(),r=t({});return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=n=>t(n),e}function $me(t=32){if(V3&&typeof V3.getRandomValues=="function")return V3.getRandomValues(new Uint8Array(t));if(V3&&typeof V3.randomBytes=="function")return V3.randomBytes(t);throw new Error("crypto.getRandomValues must be defined")}function QWe(t,e,r,n){if(typeof t.setBigUint64=="function")return t.setBigUint64(e,r,n);const a=BigInt(32),i=BigInt(4294967295),s=Number(r>>a&i),o=Number(r&i),c=n?4:0,l=n?0:4;t.setUint32(e+c,s,n),t.setUint32(e+l,o,n)}function JWe(t,e,r){return t&e^~t&r}function XWe(t,e,r){return t&e^t&r^e&r}class Hme extends kN{constructor(e,r,n,a){super(),this.blockLen=e,this.outputLen=r,this.padOffset=n,this.isLE=a,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=sB(this.buffer)}update(e){_2(this);const{view:r,buffer:n,blockLen:a}=this;e=Xd(e);const i=e.length;for(let s=0;s<i;){const o=Math.min(a-this.pos,i-s);if(o===a){const c=sB(e);for(;a<=i-s;s+=a)this.process(c,s);continue}n.set(e.subarray(s,s+o),this.pos),this.pos+=o,s+=o,this.pos===a&&(this.process(r,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){_2(this),sq(e,this),this.finished=!0;const{buffer:r,view:n,blockLen:a,isLE:i}=this;let{pos:s}=this;r[s++]=128,this.buffer.subarray(s).fill(0),this.padOffset>a-s&&(this.process(n,0),s=0);for(let h=s;h<a;h++)r[h]=0;QWe(n,a-8,BigInt(this.length*8),i),this.process(n,0);const o=sB(e),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const l=c/4,d=this.get();if(l>d.length)throw new Error("_sha2: outputLen bigger than state");for(let h=0;h<l;h++)o.setUint32(4*h,d[h],i)}digest(){const{buffer:e,outputLen:r}=this;this.digestInto(e);const n=e.slice(0,r);return this.destroy(),n}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());const{blockLen:r,buffer:n,length:a,finished:i,destroyed:s,pos:o}=this;return e.length=a,e.pos=o,e.finished=i,e.destroyed=s,a%r&&e.buffer.set(n),e}}const eVe=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),$f=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Hf=new Uint32Array(64);class tVe extends Hme{constructor(){super(64,32,8,!1),this.A=$f[0]|0,this.B=$f[1]|0,this.C=$f[2]|0,this.D=$f[3]|0,this.E=$f[4]|0,this.F=$f[5]|0,this.G=$f[6]|0,this.H=$f[7]|0}get(){const{A:e,B:r,C:n,D:a,E:i,F:s,G:o,H:c}=this;return[e,r,n,a,i,s,o,c]}set(e,r,n,a,i,s,o,c){this.A=e|0,this.B=r|0,this.C=n|0,this.D=a|0,this.E=i|0,this.F=s|0,this.G=o|0,this.H=c|0}process(e,r){for(let h=0;h<16;h++,r+=4)Hf[h]=e.getUint32(r,!1);for(let h=16;h<64;h++){const m=Hf[h-15],y=Hf[h-2],x=Kc(m,7)^Kc(m,18)^m>>>3,M=Kc(y,17)^Kc(y,19)^y>>>10;Hf[h]=M+Hf[h-7]+x+Hf[h-16]|0}let{A:n,B:a,C:i,D:s,E:o,F:c,G:l,H:d}=this;for(let h=0;h<64;h++){const m=Kc(o,6)^Kc(o,11)^Kc(o,25),y=d+m+JWe(o,c,l)+eVe[h]+Hf[h]|0,M=(Kc(n,2)^Kc(n,13)^Kc(n,22))+XWe(n,a,i)|0;d=l,l=c,c=o,o=s+y|0,s=i,i=a,a=n,n=y+M|0}n=n+this.A|0,a=a+this.B|0,i=i+this.C|0,s=s+this.D|0,o=o+this.E|0,c=c+this.F|0,l=l+this.G|0,d=d+this.H|0,this.set(n,a,i,s,o,c,l,d)}roundClean(){Hf.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const L2=_N(()=>new tVe),OA=BigInt(2**32-1),CU=BigInt(32);function qme(t,e=!1){return e?{h:Number(t&OA),l:Number(t>>CU&OA)}:{h:Number(t>>CU&OA)|0,l:Number(t&OA)|0}}function Gme(t,e=!1){let r=new Uint32Array(t.length),n=new Uint32Array(t.length);for(let a=0;a<t.length;a++){const{h:i,l:s}=qme(t[a],e);[r[a],n[a]]=[i,s]}return[r,n]}const rVe=(t,e)=>BigInt(t>>>0)<<CU|BigInt(e>>>0),nVe=(t,e,r)=>t>>>r,aVe=(t,e,r)=>t<<32-r|e>>>r,iVe=(t,e,r)=>t>>>r|e<<32-r,sVe=(t,e,r)=>t<<32-r|e>>>r,oVe=(t,e,r)=>t<<64-r|e>>>r-32,cVe=(t,e,r)=>t>>>r-32|e<<64-r,lVe=(t,e)=>e,uVe=(t,e)=>t,Yme=(t,e,r)=>t<<r|e>>>32-r,Kme=(t,e,r)=>e<<r|t>>>32-r,Zme=(t,e,r)=>e<<r-32|t>>>64-r,Qme=(t,e,r)=>t<<r-32|e>>>64-r;function dVe(t,e,r,n){const a=(e>>>0)+(n>>>0);return{h:t+r+(a/2**32|0)|0,l:a|0}}const fVe=(t,e,r)=>(t>>>0)+(e>>>0)+(r>>>0),pVe=(t,e,r,n)=>e+r+n+(t/2**32|0)|0,hVe=(t,e,r,n)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0),mVe=(t,e,r,n,a)=>e+r+n+a+(t/2**32|0)|0,bVe=(t,e,r,n,a)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0)+(a>>>0),gVe=(t,e,r,n,a,i)=>e+r+n+a+i+(t/2**32|0)|0,br={fromBig:qme,split:Gme,toBig:rVe,shrSH:nVe,shrSL:aVe,rotrSH:iVe,rotrSL:sVe,rotrBH:oVe,rotrBL:cVe,rotr32H:lVe,rotr32L:uVe,rotlSH:Yme,rotlSL:Kme,rotlBH:Zme,rotlBL:Qme,add:dVe,add3L:fVe,add3H:pVe,add4L:hVe,add4H:mVe,add5H:gVe,add5L:bVe},Jme=[],Xme=[],e9e=[],yVe=BigInt(0),qy=BigInt(1),vVe=BigInt(2),xVe=BigInt(7),wVe=BigInt(256),MVe=BigInt(113);for(let t=0,e=qy,r=1,n=0;t<24;t++){[r,n]=[n,(2*r+3*n)%5],Jme.push(2*(5*n+r)),Xme.push((t+1)*(t+2)/2%64);let a=yVe;for(let i=0;i<7;i++)e=(e<<qy^(e>>xVe)*MVe)%wVe,e&vVe&&(a^=qy<<(qy<<BigInt(i))-qy);e9e.push(a)}const[AVe,SVe]=Gme(e9e,!0),kae=(t,e,r)=>r>32?Zme(t,e,r):Yme(t,e,r),_ae=(t,e,r)=>r>32?Qme(t,e,r):Kme(t,e,r);function EVe(t,e=24){const r=new Uint32Array(10);for(let n=24-e;n<24;n++){for(let s=0;s<10;s++)r[s]=t[s]^t[s+10]^t[s+20]^t[s+30]^t[s+40];for(let s=0;s<10;s+=2){const o=(s+8)%10,c=(s+2)%10,l=r[c],d=r[c+1],h=kae(l,d,1)^r[o],m=_ae(l,d,1)^r[o+1];for(let y=0;y<50;y+=10)t[s+y]^=h,t[s+y+1]^=m}let a=t[2],i=t[3];for(let s=0;s<24;s++){const o=Xme[s],c=kae(a,i,o),l=_ae(a,i,o),d=Jme[s];a=t[d],i=t[d+1],t[d]=c,t[d+1]=l}for(let s=0;s<50;s+=10){for(let o=0;o<10;o++)r[o]=t[s+o];for(let o=0;o<10;o++)t[s+o]^=~r[(o+2)%10]&r[(o+4)%10]}t[0]^=AVe[n],t[1]^=SVe[n]}r.fill(0)}class oq extends kN{constructor(e,r,n,a=!1,i=24){if(super(),this.blockLen=e,this.suffix=r,this.outputLen=n,this.enableXOF=a,this.rounds=i,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,b8(n),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=Nx(this.state)}keccak(){id||u6(this.state32),EVe(this.state32,this.rounds),id||u6(this.state32),this.posOut=0,this.pos=0}update(e){_2(this);const{blockLen:r,state:n}=this;e=Xd(e);const a=e.length;for(let i=0;i<a;){const s=Math.min(r-this.pos,a-i);for(let o=0;o<s;o++)n[this.pos++]^=e[i++];this.pos===r&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:e,suffix:r,pos:n,blockLen:a}=this;e[n]^=r,r&128&&n===a-1&&this.keccak(),e[a-1]^=128,this.keccak()}writeInto(e){_2(this,!1),Fg(e),this.finish();const r=this.state,{blockLen:n}=this;for(let a=0,i=e.length;a<i;){this.posOut>=n&&this.keccak();const s=Math.min(n-this.posOut,i-a);e.set(r.subarray(this.posOut,this.posOut+s),a),this.posOut+=s,a+=s}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return b8(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(sq(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){const{blockLen:r,suffix:n,outputLen:a,rounds:i,enableXOF:s}=this;return e||(e=new oq(r,n,a,s,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=n,e.outputLen=a,e.enableXOF=s,e.destroyed=this.destroyed,e}}const t9e=(t,e,r)=>_N(()=>new oq(e,t,r)),Bkt=t9e(6,136,256/8),F8=t9e(1,136,256/8),[CVe,TVe]=br.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(t=>BigInt(t))),qf=new Uint32Array(80),Gf=new Uint32Array(80);class r9e extends Hme{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:e,Al:r,Bh:n,Bl:a,Ch:i,Cl:s,Dh:o,Dl:c,Eh:l,El:d,Fh:h,Fl:m,Gh:y,Gl:x,Hh:M,Hl:E}=this;return[e,r,n,a,i,s,o,c,l,d,h,m,y,x,M,E]}set(e,r,n,a,i,s,o,c,l,d,h,m,y,x,M,E){this.Ah=e|0,this.Al=r|0,this.Bh=n|0,this.Bl=a|0,this.Ch=i|0,this.Cl=s|0,this.Dh=o|0,this.Dl=c|0,this.Eh=l|0,this.El=d|0,this.Fh=h|0,this.Fl=m|0,this.Gh=y|0,this.Gl=x|0,this.Hh=M|0,this.Hl=E|0}process(e,r){for(let D=0;D<16;D++,r+=4)qf[D]=e.getUint32(r),Gf[D]=e.getUint32(r+=4);for(let D=16;D<80;D++){const k=qf[D-15]|0,_=Gf[D-15]|0,L=br.rotrSH(k,_,1)^br.rotrSH(k,_,8)^br.shrSH(k,_,7),O=br.rotrSL(k,_,1)^br.rotrSL(k,_,8)^br.shrSL(k,_,7),B=qf[D-2]|0,z=Gf[D-2]|0,F=br.rotrSH(B,z,19)^br.rotrBH(B,z,61)^br.shrSH(B,z,6),I=br.rotrSL(B,z,19)^br.rotrBL(B,z,61)^br.shrSL(B,z,6),u=br.add4L(O,I,Gf[D-7],Gf[D-16]),f=br.add4H(u,L,F,qf[D-7],qf[D-16]);qf[D]=f|0,Gf[D]=u|0}let{Ah:n,Al:a,Bh:i,Bl:s,Ch:o,Cl:c,Dh:l,Dl:d,Eh:h,El:m,Fh:y,Fl:x,Gh:M,Gl:E,Hh:S,Hl:T}=this;for(let D=0;D<80;D++){const k=br.rotrSH(h,m,14)^br.rotrSH(h,m,18)^br.rotrBH(h,m,41),_=br.rotrSL(h,m,14)^br.rotrSL(h,m,18)^br.rotrBL(h,m,41),L=h&y^~h&M,O=m&x^~m&E,B=br.add5L(T,_,O,TVe[D],Gf[D]),z=br.add5H(B,S,k,L,CVe[D],qf[D]),F=B|0,I=br.rotrSH(n,a,28)^br.rotrBH(n,a,34)^br.rotrBH(n,a,39),u=br.rotrSL(n,a,28)^br.rotrBL(n,a,34)^br.rotrBL(n,a,39),f=n&i^n&o^i&o,b=a&s^a&c^s&c;S=M|0,T=E|0,M=y|0,E=x|0,y=h|0,x=m|0,{h,l:m}=br.add(l|0,d|0,z|0,F|0),l=o|0,d=c|0,o=i|0,c=s|0,i=n|0,s=a|0;const g=br.add3L(F,u,b);n=br.add3H(g,z,I,f),a=g|0}({h:n,l:a}=br.add(this.Ah|0,this.Al|0,n|0,a|0)),{h:i,l:s}=br.add(this.Bh|0,this.Bl|0,i|0,s|0),{h:o,l:c}=br.add(this.Ch|0,this.Cl|0,o|0,c|0),{h:l,l:d}=br.add(this.Dh|0,this.Dl|0,l|0,d|0),{h,l:m}=br.add(this.Eh|0,this.El|0,h|0,m|0),{h:y,l:x}=br.add(this.Fh|0,this.Fl|0,y|0,x|0),{h:M,l:E}=br.add(this.Gh|0,this.Gl|0,M|0,E|0),{h:S,l:T}=br.add(this.Hh|0,this.Hl|0,S|0,T|0),this.set(n,a,i,s,o,c,l,d,h,m,y,x,M,E,S,T)}roundClean(){qf.fill(0),Gf.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}class IVe extends r9e{constructor(){super(),this.Ah=573645204,this.Al=-64227540,this.Bh=-1621794909,this.Bl=-934517566,this.Ch=596883563,this.Cl=1867755857,this.Dh=-1774684391,this.Dl=1497426621,this.Eh=-1775747358,this.El=-1467023389,this.Fh=-1101128155,this.Fl=1401305490,this.Gh=721525244,this.Gl=746961066,this.Hh=246885852,this.Hl=-2117784414,this.outputLen=32}}const DVe=_N(()=>new r9e),NVe=_N(()=>new IVe);class n9e extends kN{constructor(e,r){super(),this.finished=!1,this.destroyed=!1,qWe(e);const n=Xd(r);if(this.iHash=e.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const a=this.blockLen,i=new Uint8Array(a);i.set(n.length>a?e.create().update(n).digest():n);for(let s=0;s<i.length;s++)i[s]^=54;this.iHash.update(i),this.oHash=e.create();for(let s=0;s<i.length;s++)i[s]^=106;this.oHash.update(i),i.fill(0)}update(e){return _2(this),this.iHash.update(e),this}digestInto(e){_2(this),Fg(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){const e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));const{oHash:r,iHash:n,finished:a,destroyed:i,blockLen:s,outputLen:o}=this;return e=e,e.finished=a,e.destroyed=i,e.blockLen=s,e.outputLen=o,e.oHash=r._cloneInto(e.oHash),e.iHash=n._cloneInto(e.iHash),e}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const a9e=(t,e,r)=>new n9e(t,e).update(r).digest();a9e.create=(t,e)=>new n9e(t,e);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const LN=BigInt(0),BN=BigInt(1),kVe=BigInt(2);function U8(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&t.constructor.name==="Uint8Array"}function sM(t){if(!U8(t))throw new Error("Uint8Array expected")}function ef(t,e){if(typeof e!="boolean")throw new Error(t+" boolean expected, got "+e)}const _Ve=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function W8(t){sM(t);let e="";for(let r=0;r<t.length;r++)e+=_Ve[t[r]];return e}function j4(t){const e=t.toString(16);return e.length&1?"0"+e:e}function cq(t){if(typeof t!="string")throw new Error("hex string expected, got "+typeof t);return t===""?LN:BigInt("0x"+t)}const _u={_0:48,_9:57,A:65,F:70,a:97,f:102};function Lae(t){if(t>=_u._0&&t<=_u._9)return t-_u._0;if(t>=_u.A&&t<=_u.F)return t-(_u.A-10);if(t>=_u.a&&t<=_u.f)return t-(_u.a-10)}function P9(t){if(typeof t!="string")throw new Error("hex string expected, got "+typeof t);const e=t.length,r=e/2;if(e%2)throw new Error("hex string expected, got unpadded hex of length "+e);const n=new Uint8Array(r);for(let a=0,i=0;a<r;a++,i+=2){const s=Lae(t.charCodeAt(i)),o=Lae(t.charCodeAt(i+1));if(s===void 0||o===void 0){const c=t[i]+t[i+1];throw new Error('hex string expected, got non-hex character "'+c+'" at index '+i)}n[a]=s*16+o}return n}function g8(t){return cq(W8(t))}function um(t){return sM(t),cq(W8(Uint8Array.from(t).reverse()))}function O9(t,e){return P9(t.toString(16).padStart(e*2,"0"))}function kx(t,e){return O9(t,e).reverse()}function LVe(t){return P9(j4(t))}function Ni(t,e,r){let n;if(typeof e=="string")try{n=P9(e)}catch(i){throw new Error(t+" must be hex string or Uint8Array, cause: "+i)}else if(U8(e))n=Uint8Array.from(e);else throw new Error(t+" must be hex string or Uint8Array");const a=n.length;if(typeof r=="number"&&a!==r)throw new Error(t+" of length "+r+" expected, got "+a);return n}function V8(...t){let e=0;for(let n=0;n<t.length;n++){const a=t[n];sM(a),e+=a.length}const r=new Uint8Array(e);for(let n=0,a=0;n<t.length;n++){const i=t[n];r.set(i,a),a+=i.length}return r}function BVe(t,e){if(t.length!==e.length)return!1;let r=0;for(let n=0;n<t.length;n++)r|=t[n]^e[n];return r===0}function jVe(t){if(typeof t!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(t))}const oB=t=>typeof t=="bigint"&&LN<=t;function jN(t,e,r){return oB(t)&&oB(e)&&oB(r)&&e<=t&&t<r}function I1(t,e,r,n){if(!jN(e,r,n))throw new Error("expected valid "+t+": "+r+" <= n < "+n+", got "+e)}function i9e(t){let e;for(e=0;t>LN;t>>=BN,e+=1);return e}function zVe(t,e){return t>>BigInt(e)&BN}function PVe(t,e,r){return t|(r?BN:LN)<<BigInt(e)}const lq=t=>(kVe<<BigInt(t-1))-BN,cB=t=>new Uint8Array(t),Bae=t=>Uint8Array.from(t);function s9e(t,e,r){if(typeof t!="number"||t<2)throw new Error("hashLen must be a number");if(typeof e!="number"||e<2)throw new Error("qByteLen must be a number");if(typeof r!="function")throw new Error("hmacFn must be a function");let n=cB(t),a=cB(t),i=0;const s=()=>{n.fill(1),a.fill(0),i=0},o=(...h)=>r(a,n,...h),c=(h=cB())=>{a=o(Bae([0]),h),n=o(),h.length!==0&&(a=o(Bae([1]),h),n=o())},l=()=>{if(i++>=1e3)throw new Error("drbg: tried 1000 values");let h=0;const m=[];for(;h<e;){n=o();const y=n.slice();m.push(y),h+=n.length}return V8(...m)};return(h,m)=>{s(),c(h);let y;for(;!(y=m(l()));)c();return s(),y}}const OVe={bigint:t=>typeof t=="bigint",function:t=>typeof t=="function",boolean:t=>typeof t=="boolean",string:t=>typeof t=="string",stringOrUint8Array:t=>typeof t=="string"||U8(t),isSafeInteger:t=>Number.isSafeInteger(t),array:t=>Array.isArray(t),field:(t,e)=>e.Fp.isValid(t),hash:t=>typeof t=="function"&&Number.isSafeInteger(t.outputLen)};function Ug(t,e,r={}){const n=(a,i,s)=>{const o=OVe[i];if(typeof o!="function")throw new Error("invalid validator function");const c=t[a];if(!(s&&c===void 0)&&!o(c,t))throw new Error("param "+String(a)+" is invalid. Expected "+i+", got "+c)};for(const[a,i]of Object.entries(e))n(a,i,!1);for(const[a,i]of Object.entries(r))n(a,i,!0);return t}const RVe=()=>{throw new Error("not implemented")};function _x(t){const e=new WeakMap;return(r,...n)=>{const a=e.get(r);if(a!==void 0)return a;const i=t(r,...n);return e.set(r,i),i}}const FVe=Object.freeze(Object.defineProperty({__proto__:null,aInRange:I1,abool:ef,abytes:sM,bitGet:zVe,bitLen:i9e,bitMask:lq,bitSet:PVe,bytesToHex:W8,bytesToNumberBE:g8,bytesToNumberLE:um,concatBytes:V8,createHmacDrbg:s9e,ensureBytes:Ni,equalBytes:BVe,hexToBytes:P9,hexToNumber:cq,inRange:jN,isBytes:U8,memoized:_x,notImplemented:RVe,numberToBytesBE:O9,numberToBytesLE:kx,numberToHexUnpadded:j4,numberToVarBytesBE:LVe,utf8ToBytes:jVe,validateObject:Ug},Symbol.toStringTag,{value:"Module"}));/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const d0=BigInt(0),Ua=BigInt(1),ah=BigInt(2),UVe=BigInt(3),TU=BigInt(4),jae=BigInt(5),zae=BigInt(8);function ka(t,e){const r=t%e;return r>=d0?r:e+r}function WVe(t,e,r){if(e<d0)throw new Error("invalid exponent, negatives unsupported");if(r<=d0)throw new Error("invalid modulus");if(r===Ua)return d0;let n=Ua;for(;e>d0;)e&Ua&&(n=n*t%r),t=t*t%r,e>>=Ua;return n}function ei(t,e,r){let n=t;for(;e-- >d0;)n*=n,n%=r;return n}function IU(t,e){if(t===d0)throw new Error("invert: expected non-zero number");if(e<=d0)throw new Error("invert: expected positive modulus, got "+e);let r=ka(t,e),n=e,a=d0,i=Ua;for(;r!==d0;){const o=n/r,c=n%r,l=a-i*o;n=r,r=c,a=i,i=l}if(n!==Ua)throw new Error("invert: does not exist");return ka(a,e)}function VVe(t){const e=(t-Ua)/ah;let r,n,a;for(r=t-Ua,n=0;r%ah===d0;r/=ah,n++);for(a=ah;a<t&&WVe(a,e,t)!==t-Ua;a++)if(a>1e3)throw new Error("Cannot find square root: likely non-prime P");if(n===1){const s=(t+Ua)/TU;return function(c,l){const d=c.pow(l,s);if(!c.eql(c.sqr(d),l))throw new Error("Cannot find square root");return d}}const i=(r+Ua)/ah;return function(o,c){if(o.pow(c,e)===o.neg(o.ONE))throw new Error("Cannot find square root");let l=n,d=o.pow(o.mul(o.ONE,a),r),h=o.pow(c,i),m=o.pow(c,r);for(;!o.eql(m,o.ONE);){if(o.eql(m,o.ZERO))return o.ZERO;let y=1;for(let M=o.sqr(m);y<l&&!o.eql(M,o.ONE);y++)M=o.sqr(M);const x=o.pow(d,Ua<<BigInt(l-y-1));d=o.sqr(x),h=o.mul(h,x),m=o.mul(m,d),l=y}return h}}function $Ve(t){if(t%TU===UVe){const e=(t+Ua)/TU;return function(n,a){const i=n.pow(a,e);if(!n.eql(n.sqr(i),a))throw new Error("Cannot find square root");return i}}if(t%zae===jae){const e=(t-jae)/zae;return function(n,a){const i=n.mul(a,ah),s=n.pow(i,e),o=n.mul(a,s),c=n.mul(n.mul(o,ah),s),l=n.mul(o,n.sub(c,n.ONE));if(!n.eql(n.sqr(l),a))throw new Error("Cannot find square root");return l}}return VVe(t)}const HVe=(t,e)=>(ka(t,e)&Ua)===Ua,qVe=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function GVe(t){const e={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},r=qVe.reduce((n,a)=>(n[a]="function",n),e);return Ug(t,r)}function YVe(t,e,r){if(r<d0)throw new Error("invalid exponent, negatives unsupported");if(r===d0)return t.ONE;if(r===Ua)return e;let n=t.ONE,a=e;for(;r>d0;)r&Ua&&(n=t.mul(n,a)),a=t.sqr(a),r>>=Ua;return n}function KVe(t,e){const r=new Array(e.length),n=e.reduce((i,s,o)=>t.is0(s)?i:(r[o]=i,t.mul(i,s)),t.ONE),a=t.inv(n);return e.reduceRight((i,s,o)=>t.is0(s)?i:(r[o]=t.mul(i,r[o]),t.mul(i,s)),a),r}function o9e(t,e){const r=e!==void 0?e:t.toString(2).length,n=Math.ceil(r/8);return{nBitLength:r,nByteLength:n}}function zN(t,e,r=!1,n={}){if(t<=d0)throw new Error("invalid field: expected ORDER > 0, got "+t);const{nBitLength:a,nByteLength:i}=o9e(t,e);if(i>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let s;const o=Object.freeze({ORDER:t,isLE:r,BITS:a,BYTES:i,MASK:lq(a),ZERO:d0,ONE:Ua,create:c=>ka(c,t),isValid:c=>{if(typeof c!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof c);return d0<=c&&c<t},is0:c=>c===d0,isOdd:c=>(c&Ua)===Ua,neg:c=>ka(-c,t),eql:(c,l)=>c===l,sqr:c=>ka(c*c,t),add:(c,l)=>ka(c+l,t),sub:(c,l)=>ka(c-l,t),mul:(c,l)=>ka(c*l,t),pow:(c,l)=>YVe(o,c,l),div:(c,l)=>ka(c*IU(l,t),t),sqrN:c=>c*c,addN:(c,l)=>c+l,subN:(c,l)=>c-l,mulN:(c,l)=>c*l,inv:c=>IU(c,t),sqrt:n.sqrt||(c=>(s||(s=$Ve(t)),s(o,c))),invertBatch:c=>KVe(o,c),cmov:(c,l,d)=>d?l:c,toBytes:c=>r?kx(c,i):O9(c,i),fromBytes:c=>{if(c.length!==i)throw new Error("Field.fromBytes: expected "+i+" bytes, got "+c.length);return r?um(c):g8(c)}});return Object.freeze(o)}function c9e(t){if(typeof t!="bigint")throw new Error("field order must be bigint");const e=t.toString(2).length;return Math.ceil(e/8)}function l9e(t){const e=c9e(t);return e+Math.ceil(e/2)}function ZVe(t,e,r=!1){const n=t.length,a=c9e(e),i=l9e(e);if(n<16||n<i||n>1024)throw new Error("expected "+i+"-1024 bytes of input, got "+n);const s=r?um(t):g8(t),o=ka(s,e-Ua)+Ua;return r?kx(o,a):O9(o,a)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Pae=BigInt(0),RA=BigInt(1);function lB(t,e){const r=e.negate();return t?r:e}function u9e(t,e){if(!Number.isSafeInteger(t)||t<=0||t>e)throw new Error("invalid window size, expected [1.."+e+"], got W="+t)}function uB(t,e){u9e(t,e);const r=Math.ceil(e/t)+1,n=2**(t-1);return{windows:r,windowSize:n}}function QVe(t,e){if(!Array.isArray(t))throw new Error("array expected");t.forEach((r,n)=>{if(!(r instanceof e))throw new Error("invalid point at index "+n)})}function JVe(t,e){if(!Array.isArray(t))throw new Error("array of scalars expected");t.forEach((r,n)=>{if(!e.isValid(r))throw new Error("invalid scalar at index "+n)})}const dB=new WeakMap,d9e=new WeakMap;function fB(t){return d9e.get(t)||1}function f9e(t,e){return{constTimeNegate:lB,hasPrecomputes(r){return fB(r)!==1},unsafeLadder(r,n,a=t.ZERO){let i=r;for(;n>Pae;)n&RA&&(a=a.add(i)),i=i.double(),n>>=RA;return a},precomputeWindow(r,n){const{windows:a,windowSize:i}=uB(n,e),s=[];let o=r,c=o;for(let l=0;l<a;l++){c=o,s.push(c);for(let d=1;d<i;d++)c=c.add(o),s.push(c);o=c.double()}return s},wNAF(r,n,a){const{windows:i,windowSize:s}=uB(r,e);let o=t.ZERO,c=t.BASE;const l=BigInt(2**r-1),d=2**r,h=BigInt(r);for(let m=0;m<i;m++){const y=m*s;let x=Number(a&l);a>>=h,x>s&&(x-=d,a+=RA);const M=y,E=y+Math.abs(x)-1,S=m%2!==0,T=x<0;x===0?c=c.add(lB(S,n[M])):o=o.add(lB(T,n[E]))}return{p:o,f:c}},wNAFUnsafe(r,n,a,i=t.ZERO){const{windows:s,windowSize:o}=uB(r,e),c=BigInt(2**r-1),l=2**r,d=BigInt(r);for(let h=0;h<s;h++){const m=h*o;if(a===Pae)break;let y=Number(a&c);if(a>>=d,y>o&&(y-=l,a+=RA),y===0)continue;let x=n[m+Math.abs(y)-1];y<0&&(x=x.negate()),i=i.add(x)}return i},getPrecomputes(r,n,a){let i=dB.get(n);return i||(i=this.precomputeWindow(n,r),r!==1&&dB.set(n,a(i))),i},wNAFCached(r,n,a){const i=fB(r);return this.wNAF(i,this.getPrecomputes(i,r,a),n)},wNAFCachedUnsafe(r,n,a,i){const s=fB(r);return s===1?this.unsafeLadder(r,n,i):this.wNAFUnsafe(s,this.getPrecomputes(s,r,a),n,i)},setWindowSize(r,n){u9e(n,e),d9e.set(r,n),dB.delete(r)}}}function p9e(t,e,r,n){if(QVe(r,t),JVe(n,e),r.length!==n.length)throw new Error("arrays of points and scalars must have equal length");const a=t.ZERO,i=i9e(BigInt(r.length)),s=i>12?i-3:i>4?i-2:i?2:1,o=(1<<s)-1,c=new Array(o+1).fill(a),l=Math.floor((e.BITS-1)/s)*s;let d=a;for(let h=l;h>=0;h-=s){c.fill(a);for(let y=0;y<n.length;y++){const x=n[y],M=Number(x>>BigInt(h)&BigInt(o));c[M]=c[M].add(r[y])}let m=a;for(let y=c.length-1,x=a;y>0;y--)x=x.add(c[y]),m=m.add(x);if(d=d.add(m),h!==0)for(let y=0;y<s;y++)d=d.double()}return d}function uq(t){return GVe(t.Fp),Ug(t,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...o9e(t.n,t.nBitLength),...t,p:t.Fp.ORDER})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function Oae(t){t.lowS!==void 0&&ef("lowS",t.lowS),t.prehash!==void 0&&ef("prehash",t.prehash)}function XVe(t){const e=uq(t);Ug(e,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:r,Fp:n,a}=e;if(r){if(!n.eql(a,n.ZERO))throw new Error("invalid endomorphism, can only be defined for Koblitz curves that have a=0");if(typeof r!="object"||typeof r.beta!="bigint"||typeof r.splitScalar!="function")throw new Error("invalid endomorphism, expected beta: bigint and splitScalar: function")}return Object.freeze({...e})}const{bytesToNumberBE:e$e,hexToBytes:t$e}=FVe;class r$e extends Error{constructor(e=""){super(e)}}const sd={Err:r$e,_tlv:{encode:(t,e)=>{const{Err:r}=sd;if(t<0||t>256)throw new r("tlv.encode: wrong tag");if(e.length&1)throw new r("tlv.encode: unpadded data");const n=e.length/2,a=j4(n);if(a.length/2&128)throw new r("tlv.encode: long form length too big");const i=n>127?j4(a.length/2|128):"";return j4(t)+i+a+e},decode(t,e){const{Err:r}=sd;let n=0;if(t<0||t>256)throw new r("tlv.encode: wrong tag");if(e.length<2||e[n++]!==t)throw new r("tlv.decode: wrong tlv");const a=e[n++],i=!!(a&128);let s=0;if(!i)s=a;else{const c=a&127;if(!c)throw new r("tlv.decode(long): indefinite length not supported");if(c>4)throw new r("tlv.decode(long): byte length is too big");const l=e.subarray(n,n+c);if(l.length!==c)throw new r("tlv.decode: length bytes not complete");if(l[0]===0)throw new r("tlv.decode(long): zero leftmost byte");for(const d of l)s=s<<8|d;if(n+=c,s<128)throw new r("tlv.decode(long): not minimal encoding")}const o=e.subarray(n,n+s);if(o.length!==s)throw new r("tlv.decode: wrong value length");return{v:o,l:e.subarray(n+s)}}},_int:{encode(t){const{Err:e}=sd;if(t<Nd)throw new e("integer: negative integers are not allowed");let r=j4(t);if(Number.parseInt(r[0],16)&8&&(r="00"+r),r.length&1)throw new e("unexpected DER parsing assertion: unpadded hex");return r},decode(t){const{Err:e}=sd;if(t[0]&128)throw new e("invalid signature integer: negative");if(t[0]===0&&!(t[1]&128))throw new e("invalid signature integer: unnecessary leading zero");return e$e(t)}},toSig(t){const{Err:e,_int:r,_tlv:n}=sd,a=typeof t=="string"?t$e(t):t;sM(a);const{v:i,l:s}=n.decode(48,a);if(s.length)throw new e("invalid signature: left bytes after parsing");const{v:o,l:c}=n.decode(2,i),{v:l,l:d}=n.decode(2,c);if(d.length)throw new e("invalid signature: left bytes after parsing");return{r:r.decode(o),s:r.decode(l)}},hexFromSig(t){const{_tlv:e,_int:r}=sd,n=e.encode(2,r.encode(t.r)),a=e.encode(2,r.encode(t.s)),i=n+a;return e.encode(48,i)}},Nd=BigInt(0),Ji=BigInt(1);BigInt(2);const Rae=BigInt(3);BigInt(4);function n$e(t){const e=XVe(t),{Fp:r}=e,n=zN(e.n,e.nBitLength),a=e.toBytes||((M,E,S)=>{const T=E.toAffine();return V8(Uint8Array.from([4]),r.toBytes(T.x),r.toBytes(T.y))}),i=e.fromBytes||(M=>{const E=M.subarray(1),S=r.fromBytes(E.subarray(0,r.BYTES)),T=r.fromBytes(E.subarray(r.BYTES,2*r.BYTES));return{x:S,y:T}});function s(M){const{a:E,b:S}=e,T=r.sqr(M),D=r.mul(T,M);return r.add(r.add(D,r.mul(M,E)),S)}if(!r.eql(r.sqr(e.Gy),s(e.Gx)))throw new Error("bad generator point: equation left != right");function o(M){return jN(M,Ji,e.n)}function c(M){const{allowedPrivateKeyLengths:E,nByteLength:S,wrapPrivateKey:T,n:D}=e;if(E&&typeof M!="bigint"){if(U8(M)&&(M=W8(M)),typeof M!="string"||!E.includes(M.length))throw new Error("invalid private key");M=M.padStart(S*2,"0")}let k;try{k=typeof M=="bigint"?M:g8(Ni("private key",M,S))}catch{throw new Error("invalid private key, expected hex or "+S+" bytes, got "+typeof M)}return T&&(k=ka(k,D)),I1("private key",k,Ji,D),k}function l(M){if(!(M instanceof m))throw new Error("ProjectivePoint expected")}const d=_x((M,E)=>{const{px:S,py:T,pz:D}=M;if(r.eql(D,r.ONE))return{x:S,y:T};const k=M.is0();E==null&&(E=k?r.ONE:r.inv(D));const _=r.mul(S,E),L=r.mul(T,E),O=r.mul(D,E);if(k)return{x:r.ZERO,y:r.ZERO};if(!r.eql(O,r.ONE))throw new Error("invZ was invalid");return{x:_,y:L}}),h=_x(M=>{if(M.is0()){if(e.allowInfinityPoint&&!r.is0(M.py))return;throw new Error("bad point: ZERO")}const{x:E,y:S}=M.toAffine();if(!r.isValid(E)||!r.isValid(S))throw new Error("bad point: x or y not FE");const T=r.sqr(S),D=s(E);if(!r.eql(T,D))throw new Error("bad point: equation left != right");if(!M.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});class m{constructor(E,S,T){if(this.px=E,this.py=S,this.pz=T,E==null||!r.isValid(E))throw new Error("x required");if(S==null||!r.isValid(S))throw new Error("y required");if(T==null||!r.isValid(T))throw new Error("z required");Object.freeze(this)}static fromAffine(E){const{x:S,y:T}=E||{};if(!E||!r.isValid(S)||!r.isValid(T))throw new Error("invalid affine point");if(E instanceof m)throw new Error("projective point not allowed");const D=k=>r.eql(k,r.ZERO);return D(S)&&D(T)?m.ZERO:new m(S,T,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(E){const S=r.invertBatch(E.map(T=>T.pz));return E.map((T,D)=>T.toAffine(S[D])).map(m.fromAffine)}static fromHex(E){const S=m.fromAffine(i(Ni("pointHex",E)));return S.assertValidity(),S}static fromPrivateKey(E){return m.BASE.multiply(c(E))}static msm(E,S){return p9e(m,n,E,S)}_setWindowSize(E){x.setWindowSize(this,E)}assertValidity(){h(this)}hasEvenY(){const{y:E}=this.toAffine();if(r.isOdd)return!r.isOdd(E);throw new Error("Field doesn't support isOdd")}equals(E){l(E);const{px:S,py:T,pz:D}=this,{px:k,py:_,pz:L}=E,O=r.eql(r.mul(S,L),r.mul(k,D)),B=r.eql(r.mul(T,L),r.mul(_,D));return O&&B}negate(){return new m(this.px,r.neg(this.py),this.pz)}double(){const{a:E,b:S}=e,T=r.mul(S,Rae),{px:D,py:k,pz:_}=this;let L=r.ZERO,O=r.ZERO,B=r.ZERO,z=r.mul(D,D),F=r.mul(k,k),I=r.mul(_,_),u=r.mul(D,k);return u=r.add(u,u),B=r.mul(D,_),B=r.add(B,B),L=r.mul(E,B),O=r.mul(T,I),O=r.add(L,O),L=r.sub(F,O),O=r.add(F,O),O=r.mul(L,O),L=r.mul(u,L),B=r.mul(T,B),I=r.mul(E,I),u=r.sub(z,I),u=r.mul(E,u),u=r.add(u,B),B=r.add(z,z),z=r.add(B,z),z=r.add(z,I),z=r.mul(z,u),O=r.add(O,z),I=r.mul(k,_),I=r.add(I,I),z=r.mul(I,u),L=r.sub(L,z),B=r.mul(I,F),B=r.add(B,B),B=r.add(B,B),new m(L,O,B)}add(E){l(E);const{px:S,py:T,pz:D}=this,{px:k,py:_,pz:L}=E;let O=r.ZERO,B=r.ZERO,z=r.ZERO;const F=e.a,I=r.mul(e.b,Rae);let u=r.mul(S,k),f=r.mul(T,_),b=r.mul(D,L),g=r.add(S,T),v=r.add(k,_);g=r.mul(g,v),v=r.add(u,f),g=r.sub(g,v),v=r.add(S,D);let A=r.add(k,L);return v=r.mul(v,A),A=r.add(u,b),v=r.sub(v,A),A=r.add(T,D),O=r.add(_,L),A=r.mul(A,O),O=r.add(f,b),A=r.sub(A,O),z=r.mul(F,v),O=r.mul(I,b),z=r.add(O,z),O=r.sub(f,z),z=r.add(f,z),B=r.mul(O,z),f=r.add(u,u),f=r.add(f,u),b=r.mul(F,b),v=r.mul(I,v),f=r.add(f,b),b=r.sub(u,b),b=r.mul(F,b),v=r.add(v,b),u=r.mul(f,v),B=r.add(B,u),u=r.mul(A,v),O=r.mul(g,O),O=r.sub(O,u),u=r.mul(g,f),z=r.mul(A,z),z=r.add(z,u),new m(O,B,z)}subtract(E){return this.add(E.negate())}is0(){return this.equals(m.ZERO)}wNAF(E){return x.wNAFCached(this,E,m.normalizeZ)}multiplyUnsafe(E){const{endo:S,n:T}=e;I1("scalar",E,Nd,T);const D=m.ZERO;if(E===Nd)return D;if(this.is0()||E===Ji)return this;if(!S||x.hasPrecomputes(this))return x.wNAFCachedUnsafe(this,E,m.normalizeZ);let{k1neg:k,k1:_,k2neg:L,k2:O}=S.splitScalar(E),B=D,z=D,F=this;for(;_>Nd||O>Nd;)_&Ji&&(B=B.add(F)),O&Ji&&(z=z.add(F)),F=F.double(),_>>=Ji,O>>=Ji;return k&&(B=B.negate()),L&&(z=z.negate()),z=new m(r.mul(z.px,S.beta),z.py,z.pz),B.add(z)}multiply(E){const{endo:S,n:T}=e;I1("scalar",E,Ji,T);let D,k;if(S){const{k1neg:_,k1:L,k2neg:O,k2:B}=S.splitScalar(E);let{p:z,f:F}=this.wNAF(L),{p:I,f:u}=this.wNAF(B);z=x.constTimeNegate(_,z),I=x.constTimeNegate(O,I),I=new m(r.mul(I.px,S.beta),I.py,I.pz),D=z.add(I),k=F.add(u)}else{const{p:_,f:L}=this.wNAF(E);D=_,k=L}return m.normalizeZ([D,k])[0]}multiplyAndAddUnsafe(E,S,T){const D=m.BASE,k=(L,O)=>O===Nd||O===Ji||!L.equals(D)?L.multiplyUnsafe(O):L.multiply(O),_=k(this,S).add(k(E,T));return _.is0()?void 0:_}toAffine(E){return d(this,E)}isTorsionFree(){const{h:E,isTorsionFree:S}=e;if(E===Ji)return!0;if(S)return S(m,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:E,clearCofactor:S}=e;return E===Ji?this:S?S(m,this):this.multiplyUnsafe(e.h)}toRawBytes(E=!0){return ef("isCompressed",E),this.assertValidity(),a(m,this,E)}toHex(E=!0){return ef("isCompressed",E),W8(this.toRawBytes(E))}}m.BASE=new m(e.Gx,e.Gy,r.ONE),m.ZERO=new m(r.ZERO,r.ONE,r.ZERO);const y=e.nBitLength,x=f9e(m,e.endo?Math.ceil(y/2):y);return{CURVE:e,ProjectivePoint:m,normPrivateKeyToScalar:c,weierstrassEquation:s,isWithinCurveOrder:o}}function a$e(t){const e=uq(t);return Ug(e,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...e})}function i$e(t){const e=a$e(t),{Fp:r,n}=e,a=r.BYTES+1,i=2*r.BYTES+1;function s(b){return ka(b,n)}function o(b){return IU(b,n)}const{ProjectivePoint:c,normPrivateKeyToScalar:l,weierstrassEquation:d,isWithinCurveOrder:h}=n$e({...e,toBytes(b,g,v){const A=g.toAffine(),N=r.toBytes(A.x),w=V8;return ef("isCompressed",v),v?w(Uint8Array.from([g.hasEvenY()?2:3]),N):w(Uint8Array.from([4]),N,r.toBytes(A.y))},fromBytes(b){const g=b.length,v=b[0],A=b.subarray(1);if(g===a&&(v===2||v===3)){const N=g8(A);if(!jN(N,Ji,r.ORDER))throw new Error("Point is not on curve");const w=d(N);let p;try{p=r.sqrt(w)}catch(R){const $=R instanceof Error?": "+R.message:"";throw new Error("Point is not on curve"+$)}const C=(p&Ji)===Ji;return(v&1)===1!==C&&(p=r.neg(p)),{x:N,y:p}}else if(g===i&&v===4){const N=r.fromBytes(A.subarray(0,r.BYTES)),w=r.fromBytes(A.subarray(r.BYTES,2*r.BYTES));return{x:N,y:w}}else{const N=a,w=i;throw new Error("invalid Point, expected length of "+N+", or uncompressed "+w+", got "+g)}}}),m=b=>W8(O9(b,e.nByteLength));function y(b){const g=n>>Ji;return b>g}function x(b){return y(b)?s(-b):b}const M=(b,g,v)=>g8(b.slice(g,v));class E{constructor(g,v,A){this.r=g,this.s=v,this.recovery=A,this.assertValidity()}static fromCompact(g){const v=e.nByteLength;return g=Ni("compactSignature",g,v*2),new E(M(g,0,v),M(g,v,2*v))}static fromDER(g){const{r:v,s:A}=sd.toSig(Ni("DER",g));return new E(v,A)}assertValidity(){I1("r",this.r,Ji,n),I1("s",this.s,Ji,n)}addRecoveryBit(g){return new E(this.r,this.s,g)}recoverPublicKey(g){const{r:v,s:A,recovery:N}=this,w=L(Ni("msgHash",g));if(N==null||![0,1,2,3].includes(N))throw new Error("recovery id invalid");const p=N===2||N===3?v+e.n:v;if(p>=r.ORDER)throw new Error("recovery id 2 or 3 invalid");const C=N&1?"03":"02",P=c.fromHex(C+m(p)),R=o(p),$=s(-w*R),Y=s(A*R),V=c.BASE.multiplyAndAddUnsafe(P,$,Y);if(!V)throw new Error("point at infinify");return V.assertValidity(),V}hasHighS(){return y(this.s)}normalizeS(){return this.hasHighS()?new E(this.r,s(-this.s),this.recovery):this}toDERRawBytes(){return P9(this.toDERHex())}toDERHex(){return sd.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return P9(this.toCompactHex())}toCompactHex(){return m(this.r)+m(this.s)}}const S={isValidPrivateKey(b){try{return l(b),!0}catch{return!1}},normPrivateKeyToScalar:l,randomPrivateKey:()=>{const b=l9e(e.n);return ZVe(e.randomBytes(b),e.n)},precompute(b=8,g=c.BASE){return g._setWindowSize(b),g.multiply(BigInt(3)),g}};function T(b,g=!0){return c.fromPrivateKey(b).toRawBytes(g)}function D(b){const g=U8(b),v=typeof b=="string",A=(g||v)&&b.length;return g?A===a||A===i:v?A===2*a||A===2*i:b instanceof c}function k(b,g,v=!0){if(D(b))throw new Error("first arg must be private key");if(!D(g))throw new Error("second arg must be public key");return c.fromHex(g).multiply(l(b)).toRawBytes(v)}const _=e.bits2int||function(b){if(b.length>8192)throw new Error("input is too large");const g=g8(b),v=b.length*8-e.nBitLength;return v>0?g>>BigInt(v):g},L=e.bits2int_modN||function(b){return s(_(b))},O=lq(e.nBitLength);function B(b){return I1("num < 2^"+e.nBitLength,b,Nd,O),O9(b,e.nByteLength)}function z(b,g,v=F){if(["recovered","canonical"].some(G=>G in v))throw new Error("sign() legacy options not supported");const{hash:A,randomBytes:N}=e;let{lowS:w,prehash:p,extraEntropy:C}=v;w==null&&(w=!0),b=Ni("msgHash",b),Oae(v),p&&(b=Ni("prehashed msgHash",A(b)));const P=L(b),R=l(g),$=[B(R),B(P)];if(C!=null&&C!==!1){const G=C===!0?N(r.BYTES):C;$.push(Ni("extraEntropy",G))}const Y=V8(...$),V=P;function U(G){const Q=_(G);if(!h(Q))return;const re=o(Q),q=c.BASE.multiply(Q).toAffine(),H=s(q.x);if(H===Nd)return;const Z=s(re*s(V+H*R));if(Z===Nd)return;let ae=(q.x===H?0:2)|Number(q.y&Ji),de=Z;return w&&y(Z)&&(de=x(Z),ae^=1),new E(H,de,ae)}return{seed:Y,k2sig:U}}const F={lowS:e.lowS,prehash:!1},I={lowS:e.lowS,prehash:!1};function u(b,g,v=F){const{seed:A,k2sig:N}=z(b,g,v),w=e;return s9e(w.hash.outputLen,w.nByteLength,w.hmac)(A,N)}c.BASE._setWindowSize(8);function f(b,g,v,A=I){var ae;const N=b;g=Ni("msgHash",g),v=Ni("publicKey",v);const{lowS:w,prehash:p,format:C}=A;if(Oae(A),"strict"in A)throw new Error("options.strict was renamed to lowS");if(C!==void 0&&C!=="compact"&&C!=="der")throw new Error("format must be compact or der");const P=typeof N=="string"||U8(N),R=!P&&!C&&typeof N=="object"&&N!==null&&typeof N.r=="bigint"&&typeof N.s=="bigint";if(!P&&!R)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");let $,Y;try{if(R&&($=new E(N.r,N.s)),P){try{C!=="compact"&&($=E.fromDER(N))}catch(de){if(!(de instanceof sd.Err))throw de}!$&&C!=="der"&&($=E.fromCompact(N))}Y=c.fromHex(v)}catch{return!1}if(!$||w&&$.hasHighS())return!1;p&&(g=e.hash(g));const{r:V,s:U}=$,G=L(g),Q=o(U),re=s(G*Q),q=s(V*Q),H=(ae=c.BASE.multiplyAndAddUnsafe(Y,re,q))==null?void 0:ae.toAffine();return H?s(H.x)===V:!1}return{CURVE:e,getPublicKey:T,getSharedSecret:k,sign:u,verify:f,ProjectivePoint:c,Signature:E,utils:S}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function s$e(t){return{hash:t,hmac:(e,...r)=>a9e(t,e,KWe(...r)),randomBytes:$me}}function o$e(t,e){const r=n=>i$e({...t,...s$e(n)});return{...r(e),create:r}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const h9e=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),Fae=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),c$e=BigInt(1),DU=BigInt(2),Uae=(t,e)=>(t+e/DU)/e;function l$e(t){const e=h9e,r=BigInt(3),n=BigInt(6),a=BigInt(11),i=BigInt(22),s=BigInt(23),o=BigInt(44),c=BigInt(88),l=t*t*t%e,d=l*l*t%e,h=ei(d,r,e)*d%e,m=ei(h,r,e)*d%e,y=ei(m,DU,e)*l%e,x=ei(y,a,e)*y%e,M=ei(x,i,e)*x%e,E=ei(M,o,e)*M%e,S=ei(E,c,e)*E%e,T=ei(S,o,e)*M%e,D=ei(T,r,e)*d%e,k=ei(D,s,e)*x%e,_=ei(k,n,e)*l%e,L=ei(_,DU,e);if(!NU.eql(NU.sqr(L),t))throw new Error("Cannot find square root");return L}const NU=zN(h9e,void 0,void 0,{sqrt:l$e}),H6=o$e({a:BigInt(0),b:BigInt(7),Fp:NU,n:Fae,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:t=>{const e=Fae,r=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),n=-c$e*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),a=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),i=r,s=BigInt("0x100000000000000000000000000000000"),o=Uae(i*t,e),c=Uae(-n*t,e);let l=ka(t-o*r-c*a,e),d=ka(-o*n-c*i,e);const h=l>s,m=d>s;if(h&&(l=e-l),m&&(d=e-d),l>s||d>s)throw new Error("splitScalar: Endomorphism failed, k="+t);return{k1neg:h,k1:l,k2neg:m,k2:d}}}},L2);BigInt(0);H6.ProjectivePoint;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const uc=BigInt(0),zs=BigInt(1),FA=BigInt(2),u$e=BigInt(8),d$e={zip215:!0};function f$e(t){const e=uq(t);return Ug(t,{hash:"function",a:"bigint",d:"bigint",randomBytes:"function"},{adjustScalarBytes:"function",domain:"function",uvRatio:"function",mapToCurve:"function"}),Object.freeze({...e})}function p$e(t){const e=f$e(t),{Fp:r,n,prehash:a,hash:i,randomBytes:s,nByteLength:o,h:c}=e,l=FA<<BigInt(o*8)-zs,d=r.create,h=zN(e.n,e.nBitLength),m=e.uvRatio||((v,A)=>{try{return{isValid:!0,value:r.sqrt(v*r.inv(A))}}catch{return{isValid:!1,value:uc}}}),y=e.adjustScalarBytes||(v=>v),x=e.domain||((v,A,N)=>{if(ef("phflag",N),A.length||N)throw new Error("Contexts/pre-hash are not supported");return v});function M(v,A){I1("coordinate "+v,A,uc,l)}function E(v){if(!(v instanceof D))throw new Error("ExtendedPoint expected")}const S=_x((v,A)=>{const{ex:N,ey:w,ez:p}=v,C=v.is0();A==null&&(A=C?u$e:r.inv(p));const P=d(N*A),R=d(w*A),$=d(p*A);if(C)return{x:uc,y:zs};if($!==zs)throw new Error("invZ was invalid");return{x:P,y:R}}),T=_x(v=>{const{a:A,d:N}=e;if(v.is0())throw new Error("bad point: ZERO");const{ex:w,ey:p,ez:C,et:P}=v,R=d(w*w),$=d(p*p),Y=d(C*C),V=d(Y*Y),U=d(R*A),G=d(Y*d(U+$)),Q=d(V+d(N*d(R*$)));if(G!==Q)throw new Error("bad point: equation left != right (1)");const re=d(w*p),q=d(C*P);if(re!==q)throw new Error("bad point: equation left != right (2)");return!0});class D{constructor(A,N,w,p){this.ex=A,this.ey=N,this.ez=w,this.et=p,M("x",A),M("y",N),M("z",w),M("t",p),Object.freeze(this)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static fromAffine(A){if(A instanceof D)throw new Error("extended point not allowed");const{x:N,y:w}=A||{};return M("x",N),M("y",w),new D(N,w,zs,d(N*w))}static normalizeZ(A){const N=r.invertBatch(A.map(w=>w.ez));return A.map((w,p)=>w.toAffine(N[p])).map(D.fromAffine)}static msm(A,N){return p9e(D,h,A,N)}_setWindowSize(A){L.setWindowSize(this,A)}assertValidity(){T(this)}equals(A){E(A);const{ex:N,ey:w,ez:p}=this,{ex:C,ey:P,ez:R}=A,$=d(N*R),Y=d(C*p),V=d(w*R),U=d(P*p);return $===Y&&V===U}is0(){return this.equals(D.ZERO)}negate(){return new D(d(-this.ex),this.ey,this.ez,d(-this.et))}double(){const{a:A}=e,{ex:N,ey:w,ez:p}=this,C=d(N*N),P=d(w*w),R=d(FA*d(p*p)),$=d(A*C),Y=N+w,V=d(d(Y*Y)-C-P),U=$+P,G=U-R,Q=$-P,re=d(V*G),q=d(U*Q),H=d(V*Q),Z=d(G*U);return new D(re,q,Z,H)}add(A){E(A);const{a:N,d:w}=e,{ex:p,ey:C,ez:P,et:R}=this,{ex:$,ey:Y,ez:V,et:U}=A;if(N===BigInt(-1)){const qe=d((C-p)*(Y+$)),Me=d((C+p)*(Y-$)),ue=d(Me-qe);if(ue===uc)return this.double();const ke=d(P*FA*U),te=d(R*FA*V),me=te+ke,We=Me+qe,X=te-ke,W=d(me*ue),K=d(We*X),ne=d(me*X),fe=d(ue*We);return new D(W,K,fe,ne)}const G=d(p*$),Q=d(C*Y),re=d(R*w*U),q=d(P*V),H=d((p+C)*($+Y)-G-Q),Z=q-re,ae=q+re,de=d(Q-N*G),ye=d(H*Z),je=d(ae*de),we=d(H*de),ve=d(Z*ae);return new D(ye,je,ve,we)}subtract(A){return this.add(A.negate())}wNAF(A){return L.wNAFCached(this,A,D.normalizeZ)}multiply(A){const N=A;I1("scalar",N,zs,n);const{p:w,f:p}=this.wNAF(N);return D.normalizeZ([w,p])[0]}multiplyUnsafe(A,N=D.ZERO){const w=A;return I1("scalar",w,uc,n),w===uc?_:this.is0()||w===zs?this:L.wNAFCachedUnsafe(this,w,D.normalizeZ,N)}isSmallOrder(){return this.multiplyUnsafe(c).is0()}isTorsionFree(){return L.unsafeLadder(this,n).is0()}toAffine(A){return S(this,A)}clearCofactor(){const{h:A}=e;return A===zs?this:this.multiplyUnsafe(A)}static fromHex(A,N=!1){const{d:w,a:p}=e,C=r.BYTES;A=Ni("pointHex",A,C),ef("zip215",N);const P=A.slice(),R=A[C-1];P[C-1]=R&-129;const $=um(P),Y=N?l:r.ORDER;I1("pointHex.y",$,uc,Y);const V=d($*$),U=d(V-zs),G=d(w*V-p);let{isValid:Q,value:re}=m(U,G);if(!Q)throw new Error("Point.fromHex: invalid y coordinate");const q=(re&zs)===zs,H=(R&128)!==0;if(!N&&re===uc&&H)throw new Error("Point.fromHex: x=0 and x_0=1");return H!==q&&(re=d(-re)),D.fromAffine({x:re,y:$})}static fromPrivateKey(A){return z(A).point}toRawBytes(){const{x:A,y:N}=this.toAffine(),w=kx(N,r.BYTES);return w[w.length-1]|=A&zs?128:0,w}toHex(){return W8(this.toRawBytes())}}D.BASE=new D(e.Gx,e.Gy,zs,d(e.Gx*e.Gy)),D.ZERO=new D(uc,zs,zs,uc);const{BASE:k,ZERO:_}=D,L=f9e(D,o*8);function O(v){return ka(v,n)}function B(v){return O(um(v))}function z(v){const A=r.BYTES;v=Ni("private key",v,A);const N=Ni("hashed private key",i(v),2*A),w=y(N.slice(0,A)),p=N.slice(A,2*A),C=B(w),P=k.multiply(C),R=P.toRawBytes();return{head:w,prefix:p,scalar:C,point:P,pointBytes:R}}function F(v){return z(v).pointBytes}function I(v=new Uint8Array,...A){const N=V8(...A);return B(i(x(N,Ni("context",v),!!a)))}function u(v,A,N={}){v=Ni("message",v),a&&(v=a(v));const{prefix:w,scalar:p,pointBytes:C}=z(A),P=I(N.context,w,v),R=k.multiply(P).toRawBytes(),$=I(N.context,R,C,v),Y=O(P+$*p);I1("signature.s",Y,uc,n);const V=V8(R,kx(Y,r.BYTES));return Ni("result",V,r.BYTES*2)}const f=d$e;function b(v,A,N,w=f){const{context:p,zip215:C}=w,P=r.BYTES;v=Ni("signature",v,2*P),A=Ni("message",A),N=Ni("publicKey",N,P),C!==void 0&&ef("zip215",C),a&&(A=a(A));const R=um(v.slice(P,2*P));let $,Y,V;try{$=D.fromHex(N,C),Y=D.fromHex(v.slice(0,P),C),V=k.multiplyUnsafe(R)}catch{return!1}if(!C&&$.isSmallOrder())return!1;const U=I(p,Y.toRawBytes(),$.toRawBytes(),A);return Y.add($.multiplyUnsafe(U)).subtract(V).clearCofactor().equals(D.ZERO)}return k._setWindowSize(8),{CURVE:e,getPublicKey:F,sign:u,verify:b,ExtendedPoint:D,utils:{getExtendedPublicKey:z,randomPrivateKey:()=>s(r.BYTES),precompute(v=8,A=D.BASE){return A._setWindowSize(v),A.multiply(BigInt(3)),A}}}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const dq=BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949"),Wae=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752");BigInt(0);const h$e=BigInt(1),Vae=BigInt(2);BigInt(3);const m$e=BigInt(5),b$e=BigInt(8);function g$e(t){const e=BigInt(10),r=BigInt(20),n=BigInt(40),a=BigInt(80),i=dq,o=t*t%i*t%i,c=ei(o,Vae,i)*o%i,l=ei(c,h$e,i)*t%i,d=ei(l,m$e,i)*l%i,h=ei(d,e,i)*d%i,m=ei(h,r,i)*h%i,y=ei(m,n,i)*m%i,x=ei(y,a,i)*y%i,M=ei(x,a,i)*y%i,E=ei(M,e,i)*d%i;return{pow_p_5_8:ei(E,Vae,i)*t%i,b2:o}}function y$e(t){return t[0]&=248,t[31]&=127,t[31]|=64,t}function v$e(t,e){const r=dq,n=ka(e*e*e,r),a=ka(n*n*e,r),i=g$e(t*a).pow_p_5_8;let s=ka(t*n*i,r);const o=ka(e*s*s,r),c=s,l=ka(s*Wae,r),d=o===t,h=o===ka(-t,r),m=o===ka(-t*Wae,r);return d&&(s=c),(h||m)&&(s=l),HVe(s,r)&&(s=ka(-s,r)),{isValid:d||h,value:s}}const x$e=zN(dq,void 0,!0),w$e={a:BigInt(-1),d:BigInt("37095705934669439343138083508754565189542113879843219016388785533085940283555"),Fp:x$e,n:BigInt("7237005577332262213973186563042994240857116359379907606001950938285454250989"),h:b$e,Gx:BigInt("15112221349535400772501151409588531511454012693041857206046113283949847762202"),Gy:BigInt("46316835694926478169428394003475163141307993866256225615783033603165251855960"),hash:DVe,randomBytes:$me,adjustScalarBytes:y$e,uvRatio:v$e},B2=p$e(w$e),M$e=[{name:"appIdPrefix",binary:"bytes",custom:sa.encode("appID"),omit:!0},{name:"appId",binary:"uint",size:8}],sl=class sl{constructor(e,r="hex"){ce(this,"address");this.address=typeof e=="string"?sl.stringToUint8Array(e,r):e}toNative(e){return Ns(e,this)}unwrap(){return this.address}toString(){return Pn.encode(this.address,!0)}toUint8Array(){return this.address}toUniversalAddress(){return this}equals(e){return sa.equals(this.address,e.address)}static isValidAddress(e,r="hex"){return!GUe(()=>sl.stringToUint8Array(e,r))}static instanceof(e){return typeof e=="object"&&"constructor"in e&&e.constructor.type===sl.type}static stringToUint8Array(e,r){const n=(()=>{switch(r){case"hex":if(![40,2*this.byteSize].includes(e.length-(e.startsWith("0x")?2:0)))throw new Error(`string ${e} has invalid length for format ${r}`);return Pn.decode(e);case"base58":return Nme.decode(e);case"bech32":return B4.decodeToBytes(e).bytes;case"algorandAppId":return NVe(G1(M$e,{appId:BigInt(e)}));case"sha256":return L2(e)}})();if(n.length>sl.byteSize)throw new Error(`string ${e} has invalid length for format ${r}`);return n.length<sl.byteSize?sa.zpad(n,sl.byteSize):n}};ce(sl,"byteSize",32),ce(sl,"type","Universal");let fa=sl;function A$e(t){return typeof t=="object"&&"setChain"in t}const kU=new Map;function Wg(t,e){kU.has(t)||kU.set(t,e)}function Ns(t,e){const r=fs.get(t),n=kU.get(r);if(!n)throw new Error(`No native address type registered for platform ${r}, import the platform directly or, if using sdk package, import the addresses conditional export`);try{const a=new n(e);return A$e(a)&&a.setChain(t),a}catch(a){const i=`Error parsing address as a native ${t} address: ${a.message}`;if(fa.instanceof(e))throw i;return new fa(e).toNative(t)}}function $8(t,e){const r=fs.get(t);return new fa(e,yWe.get(r))}function S$e(t){return"getVersion"in t}const q6={};function PN(t,e,r){e in q6||(q6[e]={});const n=q6[e];if(t in n)throw new Error(`Protocol ${t} for protocol ${e} has already registered`);q6[e][t]=r}function E$e(t,e){const r=Rg(t)?fs.get(t):t;return e in q6?r in q6[e]:!1}function m9e(t,e){if(e in q6){const r=q6[e];if(r&&t in r){const n=r[t];if(n)return n}}throw new Error(`No protocols registered for ${t}:${e}. This may be because the platform specific protocol implementation is not registered (by installing and importing it) or no implementation exists for this platform`)}const C$e=(t,e,r,n)=>m9e(t,e).fromRpc(r,n),_U=(t,e)=>t?`${t}:${e}`:e,LU=new Map;function T$e(t,e,r){const n=_U(t,e);if(LU.has(n))throw new Error(`Payload type ${n} already registered`);LU.set(n,r)}function m0(t,e){for(const[r,n]of e)T$e(t,r,n)}const F0={binary:"uint",size:32},I$e={binary:"uint",size:2},cs=t=>({...I$e,custom:{to:e=>{if(e===0){if(!(t!=null&&t.allowNull))throw new Error("ChainId 0 is not valid for this protocol and action");return null}const r=k2(e),n=(t==null?void 0:t.allowedChains)??kme;if(!n.includes(r))throw new Error(`Chain ${r} not in allowed chains ${n}`);return r},from:e=>e==null?0:NN(e)}}),Lx={binary:"uint",size:4},fq={binary:"uint",size:8},b9e={binary:"uint",size:4},j2=t=>({name:"payloadId",binary:"uint",size:1,custom:t,omit:!0}),pq={binary:"uint",size:8};class D$e{constructor(e,r,n){ce(this,"r");ce(this,"s");ce(this,"v");this.r=e,this.s=r,this.v=n}encode(){return G1(BU,this)}static decode(e){return Y1(BU,e)}}var $ae;(function(t){function e(i){return H6.getPublicKey(i)}t.toPubkey=e;function r(i,s){if(s.length!=32)throw new Error("hash.length != 32");return H6.sign(s,i)}t.sign=r;function n(i,s,o){const{r:c,s:l}=i;return H6.verify({r:c,s:l},o,s)}t.validate=n;function a(i,s){const{r:o,s:c,v:l}=i,d=new H6.Signature(o,c);return d.recovery=l,d.recoverPublicKey(s).toRawBytes()}t.recover=a})($ae||($ae={}));const N$e=[{name:"r",binary:"uint",size:32},{name:"s",binary:"uint",size:32},{name:"v",binary:"uint",size:1}],BU={binary:"bytes",layout:N$e,custom:{to:t=>new D$e(t.r,t.s,t.v),from:t=>({r:t.r,s:t.s,v:t.v})}},_r={binary:"bytes",size:32,custom:{to:t=>new fa(t),from:t=>t.toUint8Array()}},k$e=t=>{const e=t.findIndex(r=>r!==0);return-1<e?t.slice(e):new Uint8Array([])},_$e={to:sa.decode,from:sa.encode},g9e=t=>({binary:"bytes",size:t,custom:{to:e=>sa.decode(k$e(e)),from:e=>sa.zpad(sa.encode(e),t)}});function y9e(t){const e=t.indexOf(":");return e!==-1?[t.slice(0,e),t.slice(e+1)]:[null,t]}const L$e=[{name:"guardianIndex",binary:"uint",size:1},{name:"signature",...BU}],hq=[{name:"version",binary:"uint",size:1,custom:1,omit:!0},{name:"guardianSet",...b9e},{name:"signatures",binary:"array",lengthSize:1,layout:L$e}],mq=[{name:"timestamp",binary:"uint",size:4},{name:"nonce",binary:"uint",size:4},{name:"emitterChain",...cs()},{name:"emitterAddress",..._r},{name:"sequence",...pq},{name:"consistencyLevel",binary:"uint",size:1}],B$e=[...hq,...mq];function Bx(t){const e=LU.get(t);if(!e)throw new Error(`No layout registered for payload type ${t}`);return e}function v9e(t){return{name:"payload",binary:"bytes",...t==="Uint8Array"?{}:{layout:Bx(t)}}}function YT(t){const e=[...B$e,v9e(t.payloadLiteral)];return G1(e,t)}function j$e(t,e){if(t==="Uint8Array")return e;const r=Bx(t);return G1(r,e)}function x9e(t,e){const r=(()=>{if(Array.isArray(t[0]))return t.flatMap(([s,o])=>o.map(c=>_U(s,c)));if(typeof t[1]=="string")return t;const[a,i]=t;return i.map(s=>_U(a,s))})(),n=nWe(r.map(a=>Bx(a)));return a=>{typeof a=="string"&&(a=Pn.decode(a));const i=n(a);return Array.isArray(i)?i.map(s=>r[s]):i!==null?r[i]:null}}function KT(t,e){typeof e=="string"&&(e=Pn.decode(e));const[r,n]=Y1(hq,e,!1);for(let y=1;y<r.signatures.length;++y)if(r.signatures[y].guardianIndex<=r.signatures[y-1].guardianIndex)throw new Error("Guardian signatures must be in ascending order of guardian set index");const a=n,[i,s]=Y1(mq,e.subarray(a),!1),o=a+s,[c,l]=typeof t=="string"?[t,Hae(t,e.subarray(o))]:Hae(t,e.subarray(o)),[d,h]=y9e(c),m=F8(e.slice(a));return{protocolName:d,payloadName:h,payloadLiteral:c,...r,...i,payload:l,hash:m}}function Hae(t,e,r=0){return(()=>{if(typeof e=="string"&&(e=Pn.decode(e)),t==="Uint8Array")return e.slice(r);if(typeof t=="string")return Y1(Bx(t),e.subarray(r));const n=t(e.slice(r));if(n===null)throw new Error(`Encoded data does not match any of the given payload types - ${e}`);return[n,Y1(Bx(n),e.subarray(r))]})()}function qae(t){return[...mq,v9e(t)]}function w9e(t,e){const[r,n]=y9e(t),a=uae(qae(t),e);return{protocolName:r,payloadName:n,payloadLiteral:t,...uae(hq,e),...a,hash:F8(G1(qae(t),a))}}class M9e{constructor(e,r){ce(this,"network");ce(this,"config");this.network=e,this.config=r}utils(){return this.constructor}getProtocol(e,r){return C$e(this.utils()._platform,e,r,this.config)}getProtocolInitializer(e){return m9e(this.utils()._platform,e)}async parseWormholeMessages(e,r,n){return(await this.getProtocol("WormholeCore",r)).parseTransaction(n)}}const z$e=[["Ethereum",[["ETH",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETH"}],["WETH",{symbol:"WETH",decimals:18,address:"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0x2260fac5e5542a773aa44fbcfedf7c193bc2c599"}],["USDT",{symbol:"USDT",decimals:6,address:"0xdac17f958d2ee523a2206206994597c13d831ec7"}],["DAI",{symbol:"DAI",decimals:18,address:"0x6b175474e89094c44da98b954eedeac495271d0f"}],["BUSD",{symbol:"BUSD",decimals:18,address:"0x4fabb145d64652a948d72533023f6e7a623c7c53"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x7c9f4C87d911613Fe9ca58b579f737911AAD2D43",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x418D75f65a02b3D53B2418FB8E1fe493759c7605",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x7cd167B101D2808Cfd2C45d17b2E7EA9F46b74B6",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x85f138bfEE4ef8e540890CFb48F620571d67Eda3",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x39EbF69137D98FB7659Ef8D4ea21ec26394389d7",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x4cD2690d86284e044cb63E60F1EB218a825a7e92",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x3294395e62F4eB6aF3f1Fcf89f5602D90Fb3Ef69",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x93d3696A9F879b331f40CB5059e37015423A3Bd0",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xD31a59c85aE9D8edEFeC411D448f90841571b89c",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x41f7B8b9b897276b7AAE926a9016935280b44E97",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x84074EA631dEc7a4edcD5303d164D5dEa4c653D6",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x8CDf7AF57E4c8B930e1B23c477c22f076530585e",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0xb945E3F853B5f8033C8513Cf3cE9F8AD9beBB1c9",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xCFc006a32a98031C2338BF9d5ff8ED2c0Cae4a9e",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x8B5653Ae095529155462eDa8CF664eD96773F557",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x1D4241F7370253C0f12EFC536B7e16E462Fb3526",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x18084fbA666a33d37592fA2633fD49a74DD93a88"}],["tBTCpolygon",{symbol:"tBTC",decimals:18,address:"0xb4c624dBC50804dA086cf2380cD55dEBC0d22E96",original:"Polygon"}],["tBTCoptimism",{symbol:"tBTC",decimals:18,address:"0xB8d1E0642bFD3744CaBd2ca8830cFabE19b2Ca54",original:"Optimism"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x4F3819A6cfF717BFfE801a75c73A984141c76589",original:"Arbitrum"}],["tBTCbase",{symbol:"tBTC",decimals:18,address:"0x733F28B3e315046Db01dAbC292D6F0F7F26C4551",original:"Base"}],["wstETH",{symbol:"wstETH",decimals:18,address:"0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x9AEA32B459e96C8eF5010f69130bf95fd129ac05",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0xeFc0CED4B3D536103e76a1c4c74F0385C8F4Bdd3",original:"Solana"}]]],["Bsc",[["WETH",{symbol:"WETH",decimals:18,address:"0x4DB5a66E937A9F4473fA95b1cAF1d1E1D62E29EA",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0xB04906e95AB5D797aDA81508115611fee694c2b3",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0x43359676E1A3F9FbB5de095333f8e9c1B46dFA44",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x524bC91Dc82d6b90EF29F76A3ECAaBAffFD490Bc",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x3413a030EF81a3dD5a302F4B4D11d911e12ed337",original:"Ethereum"}],["BUSD",{symbol:"BUSD",decimals:18,address:"0x035de3679E692C471072d1A09bEb9298fBB2BD31",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0xc836d8dC361E44DbE64c4862D55BA041F88Ddd39",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0xe6d82Bbe75041E42E51d755e922cE1BA91af9c4d",original:"Polygon"}],["BNB",{symbol:"BNB",decimals:18,address:"native",wrappedKey:"WBNB"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x96412902aa9aFf61E13f085e70D3152C6ef2a817",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xc88Dc63bf0c8c8198C97Db0945E3eF25Ca89A8e4",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0xbF8413EE8612E0E4f66Aa63B5ebE27f3C5883d47",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x2A335e327a55b177f5B40132fEC5D7298aa0D7e6",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x1C063db3c621BF901FC6C1D03328b08b2F9bbfba",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xfA54fF1a158B5189Ebba6ae130CEd6bbd3aEA76e",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x91Ca579B0D47E5cfD5D0862c21D5659d39C8eCf0",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x8314f6Bf1B4dd8604A0fC33C84F9AF2fc07AABC8",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x2Ba98cf7Edd2c5C794e21bc3Dc6973D3C2585eE3",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0xaA1eEdABC48D078350ccBdD620bD088848e299E5",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0x5caa170b465122D15a6D20FD9A804a9613CE7882",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x94AEc09B5e2CE591e39DC6aa58A3A6E85Ed45265",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0xa41ae127D04F7ee73B5058E2C60Fb7c7A2D21F79",original:"Optimism"}],["WETHbsc",{symbol:"WETH",decimals:18,address:"0x2170Ed0880ac9A755fd29B2688956BD959F933F8"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x9dc152F4941cE1A138326e70c3600385bf0C22dD",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x55CaD531c8E303Cab8B3BE4bB4744Db4f896ac81",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x94c97dd3Bde5bC1406BCe82E7941A6365968521D",original:"Ethereum"}],["wstETH",{symbol:"wstETH",decimals:18,address:"0xad80E1A9B5824234afA9dE1F3bbDb8a994796169",original:"Ethereum"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0xEA970e7b7D131Ea36c3051C9Ca11e785462fE00c",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0xb0188B0bb2cD4a6D2744637fC83C94a284B247Da",original:"Solana"}],["USDTbsc",{symbol:"USDT",decimals:18,address:"0x55d398326f99059fF775485246999027B3197955"}]]],["Polygon",[["WETH",{symbol:"WETH",decimals:18,address:"0x11CD37bb86F65419713f30673A480EA33c826872",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x4318CB63A2b8edf2De971E2F17F77097e499459D",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0x5D49c278340655B56609FdF8976eb0612aF3a0C3",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x9417669fBF23357D2774e9D421307bd5eA1006d2",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x732EB1747ecCFC431fF19bc359ffc83755B1918c",original:"Ethereum"}],["BUSD",{symbol:"BUSD",decimals:18,address:"0x95ea750420da26bE1Ab0891e209e921bCd84763f",original:"Ethereum"}],["MATIC",{symbol:"MATIC",decimals:18,address:"native",wrappedKey:"WMATIC"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270"}],["WETHpolygon",{symbol:"WETH",decimals:18,address:"0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0x3c499c542cef5e3811e1192ce70d8cc03d5c3359"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xeCDCB5B88F8e3C15f95c720C51c71c9E2080525d",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x4B3a922c773BDCF3BA8f1A4FDAc2029E1D0E9868",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x7Bb11E7f8b10E9e571E5d8Eace04735fDFB2358a",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xAEA5CC14DefbC1b845FDE729E563B717Ee6825ae",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x3726831304D77f585f1Aca9d9841cc3Ef80dAa62",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x922F49a9911effc034eE756196E59BE7b90D43b3",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0xcC48d6CF842083fEc0E01d913fB964b585975F05",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xd93f7E271cB87c23AaA73edC008A79646d1F9912",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x576Cf361711cd940CD9C397BB98C4C896cBd38De",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x34bE049fEbfc6C64Ffd82Da08a8931A9a45f2cc8",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0xa4ef199d3ad524E9C3C51Ac46B303B103A307Cef",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x6a5c59AB16268d2c872916054C50440B999e417C",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0x7800FE8951cdc1cDea748d878fAce63018D97960",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x8182De59485Bb646542Db8C7E5958148Dc699319",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0x31F12aCb60C3c32EE884F3894a873347C097D925",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x5BCf8d8c097FbB35C371F921E3FF3e6F6Eb54B41",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x1eeCaB0F75fE93abbFa0cDFfb4fB13d1dC8706c8",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x3362b2B92b331925F09F9E5bCA3E8C43921a435C",original:"Ethereum"}],["tBTCpolygon",{symbol:"tBTC",decimals:18,address:"0x236aa50979D5f3De3Bd1Eeb40E81137F22ab794b"}],["tBTCoptimism",{symbol:"tBTC",decimals:18,address:"0x68A8797da1c8ED592600d70A5151886A92D2183C",original:"Optimism"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x045D8c62D5326aa51a31518ECF3aF80C17421Aba",original:"Arbitrum"}],["wstETH",{symbol:"wstETH",decimals:18,address:"0xe082a7Fc696De18172Ad08D956569Ee80BC37f06",original:"Ethereum"}],["wstETHpolygon",{symbol:"wstETH",decimals:18,address:"0x03b54A6e9a984069379fae1a4fC4dBAE93B3bCCD"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x415ce980fde17F1FF102e1c6e4ce860Acc615D74",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0xFa4B761A1e07909Ba31331a5dfa12390E3ff5583",original:"Solana"}],["USDTpolygon",{symbol:"USDT",decimals:6,address:"0xc2132D05D31c914a87C6611C10748AEb04B58e8F"}]]],["Avalanche",[["WETH",{symbol:"WETH",decimals:18,address:"0x8b82A291F83ca07Af22120ABa21632088fC92931",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0xB24CA28D4e2742907115fECda335b40dbda07a4C",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0x1C0e79C5292c59bbC13C9F9f209D204cf4d65aD6",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x9d228444FC4B7E15A2C481b48E10247A03351FD8",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0xca319f81D147559e19A522A0a0310Dd43A96cA0F",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0xf2f13f0B7008ab2FA4A2418F4ccC3684E49D20Eb",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0xDb2d08f5A9C9ADBBA0DE5a69bbB1E9Ca03411692",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x442F7f22b1EE2c842bEAFf52880d4573E9201158",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x6145E8a910aE937913426BF32De2b26039728ACF",original:"Bsc"}],["AVAX",{symbol:"AVAX",decimals:18,address:"native",wrappedKey:"WAVAX"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E"}],["WETHavax",{symbol:"WETH",decimals:18,address:"0x49d5c2bdffac6ce2bfdb6640f4f80f226bc10bab"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0xd19abc09B7b36F7558929b97a866f499a26c2f83",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x494317B8521c5a5287a06DEE467dd6fe285dA4a8",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x375aA6C67BF499fBf01804A9f92C03c0776F372d",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xFE6B19286885a4F7F55AdAD09C3Cd1f906D2478F",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x0950Fc1AD509358dAeaD5eB8020a3c7d8b43b9DA",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x1703CB0F762D2a435199B64Ea47E5349B7C17480",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x43c588459b3243fA541B98CC4B2E995b3de553A2",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0xDfDA518A1612030536bD77Fd67eAcbe90dDC52Ab",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0x4b5fE357Eb11c735078e47526D6e853DBff18541",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0xDf11535274c0FD2Fe41A88bd1bBF802D72296037",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0xBe04f76A0ba2100c3F2d6Aa1FD8484F415469573",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0xFA83178c66fE51ee99109b5cC912f8098Ff812eF",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0xab933e939a9236BD439F7d29b87CE712f42bAC06",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x3F531c038A0D2d9c7D19FC3554cd0439791526c4",original:"Ethereum"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x126C03982Ad6D7ef7E6aF020bF219e87185a6BC3",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0x8A0691e602B7a5FCc51a27E4a08376dE50889B42",original:"Solana"}],["USDTavax",{symbol:"USDT",decimals:6,address:"0x9702230a8ea53601f5cd2dc00fdbc13d4df4a8c7"}]]],["Fantom",[["WETH",{symbol:"WETH",decimals:18,address:"0x2A126f043BDEBe5A0A9841c51915E562D9B07289",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x2Ec752329c3EB419136ca5e4432Aa2CDb1eA23e6",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0x87e9E225aD8a0755B9958fd95BE43DD6A91FF3A7",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x14BCb86aEed6a74D3452550a25D37f1c30AA0A66",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0xEE786D3D73Ea645365c7248E4e40eDba08B1169F",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0xb88A6064B1F3FF5B9AE4A82fFD52560b0dF9FBD3",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0xB4DcfD221048a1Dad989D39456BBd87762c26F06",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xc033551e05907Ddd643AE14b6D4a9CA72BfF509B",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x0FcbDAC44c67A43607D3E95886dB19871ADc985F",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x358CE030DC6116Cc296E8B9F002728e65459C146",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xEfE7701cb2B80664385Be226d0300912CA92f66A",original:"Avalanche"}],["FTM",{symbol:"FTM",decimals:18,address:"native",wrappedKey:"WFTM"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x21be370d5312f44cb42ce377bc9b8a0cef1a4c83"}],["CELO",{symbol:"CELO",decimals:18,address:"0xF432490C6c96C9d3bF523a499a1CEaFd8208A373",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0xBF227E92D6754EB4BFE26C40cb299ff2809Da45f",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xd99021C2A33e4Cf243010539c9e9b7c52E0236c1",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0xb8398DA4FB3BC4306B9D9d9d13d9573e7d0E299f",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0xC277423a21F6e32D886BF85Ef6cCB945d5D28347",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x3Cd9162Ca5256b8E26A0e3Ad14CCfF7C0Da0F174",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0xE8367853A0823515D37b1538331B4704089becb4",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0x2228703672906fEe5eD681Ec28e42B4506b8c336",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0xe8E8f941377A955bFA72880ec0dc2319dbC827a8",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0x385b219f0C4fa2e84EfE5aaf9692a821C57B8248",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0xd3365E7355230c78098b44B172eE27DAB95B041A",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0xd9E4C283d8A49Dc3767A6F5a4dFdc1d0cEf21604",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0xeE27799cF29D7F64647B92f47d543B382B49f83E",original:"Ethereum"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x787e2F3509583C0F03A339Be0826463C839CBE5E",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0x77ad3B2dA29FBd208F12c3C701E969F4422aAD79",original:"Solana"}]]],["Celo",[["WETH",{symbol:"WETH",decimals:18,address:"0x66803FB87aBd4aaC3cbB3fAd7C3aa01f6F3FB207",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x37f750B7cC259A2f741AF45294f6a16572CF5cAd",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0xd71Ffd0940c920786eC4DbB5A12306669b5b81EF",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x617f3112bf5397D0467D315cC709EF968D9ba546",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x97926a82930bb7B33178E3c2f4ED1BFDc91A9FBF",original:"Ethereum"}],["BUSD",{symbol:"BUSD",decimals:18,address:"0x1dd42c0785ca90B677adc2ABad01dfc5ECcD0b4d",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x9C234706292b1144133ED509ccc5B3CD193BF712",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0x42c76808f3179A091Ee007A2955aF2522978ADE7",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xBf2554ce8A4D1351AFeB1aC3E5545AaF7591042d",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x9d9abAE97a9344e3854527b4efbB366a1564bfEb",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0xFFdb274b4909fC2efE26C8e4Ddc9fe91963cAA4d",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x62FFf2D2D1692D52eAf043AeeC727F7918d269D3",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0xd1A342eE2210238233a347FEd61EE7Faf9f251ce",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x471ece3750da237f93b8e339c536989b8978a438"}],["USDT",{symbol:"USDT",decimals:6,address:"0x48065fbBE25f71C9282ddf5e1cD6D6A887483D5e"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x383A5513AbE4Fe36e0E00d484F710148E348Aa9D",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x4581E64115d46CcdeE65Be2336bEc86c9BA54C01",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x8B6eef6C449D3Ac723a9C06a9eaE2dCd7d308BA9",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x1Cb9859B1A16A67ef83A0c7b9A21eeC17d9a97Dc",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x89F2b718Ca518db39d377F0ABBa6B42582b549F7",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0xc6F962fCcb140ece554AfD0E589f971532A57f14",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xA41a62567d9eb960D84b72663FdaeBE0BCdE2683",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x8d53771b1Ec7461f8e45Bca2609c45bC0bbd0677",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0xEe48963C003e21EaCEdFA8a0A19BB3cbF7E776Fe",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x905CADB645684140E285e2D09D39dF5a2082BC87",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x2e2acb1782Aad0490f8446b6fD4626C467987bD6",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0xFaED7314060FCEc652ED91D9eac6c980DCA9D3B8",original:"Ethereum"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x72878E7d3A8746e0c91b9F16F0b8ee4fDE9DDc06",original:"Arbitrum"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0xe304254de5c2048F9bFb042dDFB54f84d1d77730",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0x985aa4814419ba338379A634785216301e51113D",original:"Solana"}]]],["Moonbeam",[["WETH",{symbol:"WETH",decimals:18,address:"0xab3f0245B83feB11d15AAffeFD7AD465a59817eD",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x931715FEE2d06333043d11F658C8CE934aC61D0c",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0xE57eBd2d67B462E9926e04a8e33f01cD0D64346D",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0xc30E9cA94CF52f3Bf5692aaCF81353a27052c46f",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x06e605775296e851FF43b4dAa541Bb0984E9D6fD",original:"Ethereum"}],["BUSD",{symbol:"BUSD",decimals:18,address:"0xa2284e1F98E4d0B7Eb6a6b4f3C57f1b209C755F3",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x82DbDa803bb52434B1f4F41A6F0Acb1242A7dFa3",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0x4415BfBDee669446550d55c749007EF60B520FC8",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xE3b841C3f96e647E6dc01b468d6D0AD3562a9eeb",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x7f433E22366E03a3758CE22cCf82887d828078f8",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0xd4937A95BeC789CC1AE1640714C61c160279B22F",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xd4918c40cA9f02d42Cb53d06587aF42017Bc345D",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x609AedD990bf45926bca9E4eE988b4Fb98587D3A",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0xc1a792041985F65c17Eb65E66E254DC879CF380b",original:"Celo"}],["GLMR",{symbol:"GLMR",decimals:18,address:"native",wrappedKey:"WGLMR"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0xAcc15dC74880C9944775448304B263D191c6077F"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x99Fec54a5Ad36D50A4Bba3a41CAB983a5BB86A7d",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x098d6eE48341D6a0a0A72dE5baaF80A10E0F6082",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x484eCCE6775143D3335Ed2C7bCB22151C53B9F49",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x25331575641d35D9765e1934acC8F0991c58e904",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x18872b45c603eD2EbC508b9C5514a85c2e2791FB",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0xd4870F7F5AD8Ae5139E1a5D8AD4ac55204aE4490",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0x7143e8EA96e158381057a58AfdDF44601c7e532C",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x6C6f83366A42fcA4D30a2D3f1914284de995Ac3a",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0xE6d02a875CcC153c076fe418f33De3A5C420f505",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0xeCd65E4B89495Ae63b4f11cA872a23680A7c419c",original:"Ethereum"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0xf0a9476E4712123A807859f9Fd25fe98213379BD",original:"Klaytn"}]]],["Solana",[["WETH",{symbol:"WETH",decimals:8,address:"7vfCXTUXx5WJV5JADk17DUJ4ksgau7utNKj4b963voxs",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"A9mUU4qviSctJVPJdBJWkb28deg915LYJKrzQ19ji3FM",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"3NZ9JMVBmGAqocybic2c7LQCJScmgsAZ6vQqTDzcqmJh",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"Dn4noZ5jgGfkntzcQSUZ8czkreiZ1ForXYoV2H8Dm7S1",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"EjmyN6qEC1Tf1JxiG1ae7UTJhUxSwk1TCWNWqxWV4J6o",original:"Ethereum"}],["BUSD",{symbol:"BUSD",decimals:8,address:"33fsBLA8djQm82RpHmE3SuVrPGtZBWNYExsEUeKX1HXX",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"Gz7VkD4MacbEB6yC5XD3HcumEiYx2EtDYYrfikGsvopG",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"9gP2kCy3wA1ctvYWQk75guqXuHfrEomqydHLtcTCqiLa",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:8,address:"FCqfQSujuPxy6V42UvafBhsysWtEq1vhjfMN1PUbgaxA",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"KgV1GvrHQmRBY8sHQQeUKwTm2r2h8t4C8qt12Cw1HVE",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"FHfba3ov5P3RjaiLVgh8FTv4oirxQDoVXuoUUDvHuXax",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"DRQBDBEWmwWGK13fRTLhSPzjbvMSUavhV6nW4RUH8W6T",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"9kvAcwQbqejuJMd59mKuw2bfSsLRaQ7zuvaTVHEeBBec",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"7ixSaXGsHAFy34wogPk2YXiUX3BMmQMFdercdaHLnBby",original:"Moonbeam"}],["SOL",{symbol:"SOL",decimals:9,address:"native",wrappedKey:"WSOL"}],["WSOL",{symbol:"WSOL",decimals:9,address:"So11111111111111111111111111111111111111112"}],["USDCsol",{symbol:"USDC",decimals:6,address:"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"}],["SUI",{symbol:"SUI",decimals:8,address:"G1vJEgzepqhnVu35BN4jrkv3wVwkujYWFFCxhbEZ1CZr",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"6LNeTYMqtNm1pBFN8PfhQaoLyegAH8GD32WmHU9erXKN",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"CSD6JQMvLi46psjHdpfFdr826mF336pEVMJgjwcoS1m4",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"CR4xnGrhsu1fWNPoX4KbTUUtqGMF3mzRLfj4S6YEs1Yo",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:8,address:"8M6d63oL7dvMZ1gNbgGe3h8afMSWJEKEhtPTFM2u8h3c",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:8,address:"DWXe1hxpnb8LAH21iyXcjvMbiAGzoYyuCVQtRLvZdLYd",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"EfqRM8ZGWhDTKJ7BHmFvNagKVu3AxQRDQs8WMMaoBCu6",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:8,address:"25rXTx9zDZcHyTav5sRqM6YBvTGu9pPH9yv83uAEqbgG",original:"Ethereum"}],["tBTCsol",{symbol:"tBTC",decimals:8,address:"6DNSN2BJsaPFdFFc1zP37kkeNe4Usc1Sqkzr9C9vPWcU"}],["wstETH",{symbol:"wstETH",decimals:8,address:"ZScHuTtqZukUrtZS43teTKGs2VqkKL8k4QCouR2n6Uo",original:"Ethereum"}],["PYTH",{symbol:"PYTH",decimals:6,address:"HZ1JovNiVvGrGNiiYvEozEVgZ58xaU3RKwX8eACQBCt3"}]]],["Sui",[["WETH",{symbol:"WETH",decimals:8,address:"0xaf8cd5edc19c4512f4259f0bee101a40d41ebed738ade5874359610ef8eeced5::coin::COIN",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x5d4b302506645c37ff133b98c4b50a5ae14841659738d6d733d59d0d217a93bf::coin::COIN",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0x27792d9fed7f9844eb4839566001bb6f6cb4804f66aa2da6fe1ee242d896881::coin::COIN",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0xc060006111016b8a020ad5b33834984a437aaa7d3c74c18e09a95d48aceab08c::coin::COIN",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"0xdbe380b13a6d0f5cdedd58de8f04625263f113b3f9db32b3e1983f49e2841676::coin::COIN",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0x5c8c9082401982e8c2519a5c12883a5475295bf5cec4a0a13c26d35dd9a20d73::coin::COIN",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"0xb848cce11ef3a8f62eccea6eb5b35a12c4c2b1ee1af7755d02d7bd6218e8226f::coin::COIN",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:8,address:"0x909cba62ce96d54de25bec9502de5ca7b4f28901747bbf96b76c2e63ec5f1cba::coin::COIN",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"0x1e8b532cca6569cab9f9b9ebc73f8c13885012ade714729aa3b450e0339ac766::coin::COIN",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xe596782fbaebef51ae99ffac8731aed98a80642b9dc193ed659c97fbc2cc0f84::coin::COIN",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"0x6081300950a4f1e2081580e919c210436a1bed49080502834950d31ee55a2396::coin::COIN",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"0xa198f3be41cda8c07b3bf3fee02263526e535d682499806979a111e88a5a8d0f::coin::COIN",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"0x66f87084e49c38f76502d17f87d17f943f183bb94117561eb573e075fdc5ff75::coin::COIN",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"0xb7844e289a8410e50fb3ca48d69eb9cf29e27d223ef90353fe1bd8e27ff8f3f8::coin::COIN",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0xb231fcda8bbddb31f2ef02e6161444aec64a514e2c89279584ac9806ce9cf037::coin::COIN",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x2::sui::SUI"}],["APT",{symbol:"APT",decimals:8,address:"0x3a5143bb1196e3bcdfab6203d1683ae29edd26294fc8bfeafe4aaa9d2704df37::coin::COIN",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"0x33744e7df340a4d01c23f6b18c13563f767545ea95f976f8045f056358419da3::coin::COIN",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xc3f8927de33d3deb52c282a836082a413bc73c6ee0bd4d7ec7e3b6b4c28e9abf::coin::COIN",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:8,address:"0xaab14ec22908de73d1b0619f5e03842398f8e68262981bd35ef44b42d22b23a::coin::COIN",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0x6037801f060f0f54b3817bca05e3c8b9b9ffaa2da8e93fd5b80fa662aa3c9e55::coin::COIN",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:8,address:"0xaecbc804fa7ca7cffc74c9a05eb6ae86fda0c68375b5c1724204a1065bcb239a::coin::COIN",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x7e3e74afcc1913aa9491c8cee89b02131a6e5519b090f16b54321835c1241cfb::coin::COIN",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:8,address:"0xbc3a676894871284b3ccfb2eec66f428612000e2a6e6d23f592ce8833c27c973::coin::COIN",original:"Ethereum"}],["WKLAY",{symbol:"WKLAY",decimals:8,address:"0xa5ec915864d7f37b25ca9144b2db6ebcf29e73603c2ccf9d0e765adcd9049a98::coin::COIN",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0x9c6d76eb273e6b5ba2ec8d708b7fa336a5531f6be59f326b5be8d4d8b12348a4::coin::COIN",original:"Solana"}]]],["Aptos",[["WETH",{symbol:"WETH",decimals:8,address:"0xcc8a89c8dce9693d354449f1f73e60e14e347417854f029db5bc8e7454008abb::coin::T",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x5e156f1207d0ebfa19a9eeff00d62a282278fb8719f4fab3a586a0a2c0fffbea::coin::T",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0xae478ff7d83ed072dbc5e264250e67ef58f57c99d89b447efd8a0a2e8b2be76e::coin::T",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0xa2eda21a58856fda86451436513b867c97eecb4ba099da5775520e0f7492e852::coin::T",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"0x407a220699982ebb514568d007938d2447d33667e4418372ffec1ddb24491b6c::coin::T",original:"Ethereum"}],["BUSD",{symbol:"BUSD",decimals:8,address:"0x77400d2f56a01bad2d7c8c6fa282f62647ce3c03f43f2a8742e47ea01a91e24a::coin::T",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"0x6781088e2a1629d38eda521467af4a8ca7bfa7e5516338017940389595c85c0f::coin::T",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0xc5fd7820e9f053e6dd8e7dd8ca3ce8e9b10d200ba1692bdeb7a035217180ad4a::coin::T",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"0x6312bc0a484bc4e37013befc9949df2d7c8a78e01c6fe14a34018449d136ba86::coin::T",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:8,address:"0x79a6ed7a0607fdad2d18d67d1a0e552d4b09ebce5951f1e5c851732c02437595::coin::T",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"0x5b1bbc25524d41b17a95dac402cf2f584f56400bf5cc06b53c36b331b1ec6e8f::coin::T",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x39d84c2af3b0c9895b45d4da098049e382c451ba63bec0ce0396ff7af4bb5dff::coin::T",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"0xd1aa2ff36a0e93e1b4e4fecdecf8bb95bc5de399061c5e84b515281f48718842::coin::T",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"0xac0c3c35d50f6ef00e3b4db6998732fe9ed6331384925fe8ec95fcd7745a9112::coin::T",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"0x7ab1283a7b13c4254d4e1f803d7ce6578442c1d7a40d0faee41cd48ba4884c8a::coin::T",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"0xdd89c0e695df0692205912fb69fc290418bed0dbe6e4573d744a6d5e6bab6c13::coin::T",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0xc91d826e29a3183eb3b6f6aa3a722089fdffb8e9642b94c5fcd4c48d035c0080::coin::T",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"0xa72a97e872be9ee3d2f14d56fd511eb7e4a53f4055be3a267d8602e7685b41c0::coin::T",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x1::aptos_coin::AptosCoin"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"0x0e977796d7bfb3263609b90dffd264c7bd078ce35dac42b55302858d9fa3452b::coin::T",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xca3a2c28bc8c6c762f752dd2a4ebbfd00356ca99977ce6636e3af5897124a87a::coin::T",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:8,address:"0x6a7a7f36ef5e2d0e65fcf72669c20d514d68298b0f76c7554517208f73260aaf::coin::T",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0x4f6ecb05a797902d472abc2f5804bde93a53d8b75f14f767824cdb1623a4ee83::coin::T",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:8,address:"0x5b5f14781164cf77185a7b6acd8e4f3cbb7e7cfb1cd5760d2b8af81075fc153d::coin::T",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0xfcc4fcd734d5b8578fb629d238d15264a49eca6165c7444c21feec3b4962eb88::coin::T",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:8,address:"0x9d5a0f8215301fa8096df332b1533f6328f18c32fbac2a7089cfbea73b3068a7::coin::T",original:"Ethereum"}],["WKLAY",{symbol:"WKLAY",decimals:8,address:"0x539b652f8230a0e42adaeda4706b5639893d22362eda6ea897493c210cb48219::coin::T",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0x770211b47954e15bec1a4271bf33bacebc2d2adb43b7dc1ca45efa787615dd4c::coin::T",original:"Solana"}]]],["Base",[["WETH",{symbol:"WETH",decimals:18,address:"0x71b35ECb35104773537f849FBC353F81303A5860",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0xec267C53f53807c2337C257f8AC3Fc3cC07cc0ed",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0xE6396f780b543dF16ee3b784D789c75B68319db0",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0xFf0C62A4979400841eFaA6faADb07Ac7d5C98b27",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x617Edadb51BfB43A44Bb91C7402129C23bA52381",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0xc863399E5c5C4011B1DC3fB602902C77BA72B709",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0xFe1579BAc60363c8572CB30Bf4DD1Fd85811BBF8",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x7fdAa50d7399ac436943028edA6ed9a1BD89509f",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x68E2b07F92ed506f92935d7359ECA84D5342dbb4",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0xc449A60A31E1eebFE83c42E9465fd4Dc318aE9a7",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xD83385fE100E20c269a5975D4Bf92525BcE09F87",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x936Fa2DE8380Dc5BF34C80F1BaD53a9f3630263B",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x74df3823aA29D278cAD0A3632fCB56C896a38eD4",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0xfdB7311BeC3b2CcCF8407d0585f81B97b3b5eff1",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x1C61629598e4a901136a81BC138E5828dc150d67",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0xe8CE40EBBB844142400D21558a2F1c9683d69139",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x36c6FBF7B49bF65f5F82b674af219C05b2a4aDD1",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x1d36126289Be1658297A35CC3EB2BB80A7D7A04b",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x9D36e0edb8BBaBeec5edE8a218dc2B9a6Fce494F",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xb96B82Cd6D45d98Fb6897D16A5E4EE888329C513",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0xCb725aC8d9985D3bE306Dd9e1517d3702929176c",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0xc6bfBeb3002aD563D2d1f72614C61C83Bf147Acd",original:"Optimism"}],["ETHbase",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHbase"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x4200000000000000000000000000000000000006"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}],["wstETHbase",{symbol:"wstETH",decimals:18,address:"0xc1CBa3fCea344f92D9239c08C0568f6F2F0ee452"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x9EE95E6Bd1B3C5740F105d6fb06b8BDeF64Eec70",original:"Ethereum"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x56D0873e0eCA4a56063e1BF945788365666CFBFC",original:"Arbitrum"}],["tBTCbase",{symbol:"tBTC",decimals:18,address:"0x236aa50979D5f3De3Bd1Eeb40E81137F22ab794b"}],["wstETH",{symbol:"wstETH",decimals:18,address:"0xEd4e2FD35161c3c0e33cA187fce64C70d44Ce32b",original:"Ethereum"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x41c433c146c47Dc53FC48cDc69e406e365e298E1",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0x4c5d8A75F3762c1561D96f177694f67378705E98",original:"Solana"}],["USDTbase",{symbol:"USDT",decimals:6,address:"0xfde4C96c8593536E31F229EA8f37b2ADa2699bb2"}]]],["Arbitrum",[["WETH",{symbol:"WETH",decimals:18,address:"0xD8369C2EDA18dD6518eABb1F85BD60606dEb39Ec",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0xC96F2715E2a242d50D1b0bC923dbe1740b8eCf18",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0x397846a8078d4845c7f5c6Ca76aeBbcFDc044fAe",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0xE4728F3E48E94C6DA2B53610E677cc241DAFB134",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x5c4f2FEFB97F7DF09E762d95C83f0Ccf8bCe8234",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x3ab0E28C3F56616aD7061b4db38aE337E3809AEA",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0x599ADB10E6A012dF34935D47407450f6D7170e3C",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x7AF00405916D823eDb1121546EfA6F4972B51b84",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x1a0590F951bc9C3818Ce75ba5Bbe92831b2cf57e",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x565609fAF65B92F7be02468acF86f8979423e514",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x93e0FcbEd43CD6fC30DF00CcBD4669718dc74e77",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x7f7dcDb91930033a4Eb269196EBb6fd5f0644E4B",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x4E51aC49bC5e2d87e0EF713E9e5AB2D71EF4F336",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x944C5b67a03e6Cb93Ae1E4B70081f13b04CDB6Bd",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x2bcC6D6CdBbDC0a4071e48bb3B969b06B3330c07",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x3870546cfd600ba87e4180686d29dC993A45d3B7",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0xCF79d86B8a830030aF6D835737d6eac3bE823fD7",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x4EdeF400eDe5309240814b5FC403F224504604e9",original:"Aptos"}],["ETHarbitrum",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHarbitrum"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x82af49447d8a07e3bd95bd0d56f35241523fbab1"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xaf88d065e77c8cC2239327C5EDb3A432268e5831"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0xB1fC645a86fB5085e12D8BDDb77702F728D2A26F",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0x3A5C2Da9E30741cb59a5e9446A23A86886fC9DC2",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0xBAfbCB010D920e0Dab9DFdcF634De1B777028a85",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x8619F97D4d08382548F536E5CE1D3e0D9bA40326",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x57723abc582DBfE11Ea01f1A1f48aEE20bD65D73",original:"Ethereum"}],["tBTCpolygon",{symbol:"tBTC",decimals:18,address:"0x3bab04bDFd2Dc3640c2B9390A2Da05bC1192D482",original:"Polygon"}],["tBTCoptimism",{symbol:"tBTC",decimals:18,address:"0x2519010b6585247BcDC8BcDa5C8730Be754b8c76",original:"Optimism"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x6c84a8f1c29108F47a79964b5Fe888D4f4D0dE40"}],["wstETH",{symbol:"wstETH",decimals:18,address:"0xf2717122Dfdbe988ae811E7eFB157aAa07Ff9D0F",original:"Ethereum"}],["wstETHarbitrum",{symbol:"wstETH",decimals:18,address:"0x5979D7b546E38E414F7E9822514be443A4800529"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0xFA95f6c796E54F9C4a99392CAE84410a25794BB3",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0xE4D5c6aE46ADFAF04313081e8C0052A30b6Dd724",original:"Solana"}],["USDTarbitrum",{symbol:"USDT",decimals:6,address:"0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9"}]]],["Optimism",[["WETH",{symbol:"WETH",decimals:18,address:"0xb47bC3ed6D70F04fe759b2529c9bc7377889678f",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x711e53D031ea9B0bb0C24dD506df11b41AEA419e",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0xB214C19d81c99E75e84706a3aa0A757319023e26",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0xf6B4185FCf8aF291c0E3927fbEab7046b4f6A8CA",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x098EA47D630b46df1E08e389e5e4466119c7dd30",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x8f02B6a32cebcAe44D2Fd17d87966f5B5dD14c6d",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0xbB1EaB9Eb8fDf65F0E291D013DA07B4b65a27a01",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x6A09fE65ACa27C12573F04aAFa290bD75497E1BC",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x1C15057d1F3794C934a6cBC1f7EceE934050F219",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x8418C1d909842f458c9394886b83F19d62bF1A0D",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x355f0a8a7ecAeD971b8Fbd50994558291ff2413a",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x0b0ecbe5C3995541876d27633B63296570FB34Af",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x9b88D293b7a791E40d36A39765FFd5A1B9b5c349",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0xbffD46DFDb8d3a02b8D2E0F864a2cD712090a4D3",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xba1Cf949c382A32a09A17B2AdF3587fc7fA664f1",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x6F974A6dfD5B166731704Be226795901c45Bb815",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x27A533e438892DA192725b4C9AcA51447F457212",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0xC5B3AC2DF8D8D7AC851F763a5b3Ff23B4A696d59",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x825206E1D29456337769e6f1384101E997C6A732",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xa6252F56cc6eEA21165d56744C795F91c8a3Cf68",original:"Arbitrum"}],["ETHoptimism",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHoptimism"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x4200000000000000000000000000000000000006"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0x0b2c639c533813f4aa9d7837caf62653d097ff85"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x3F369a664fa665e01e8EB9f20bFcE03A0CAb8971",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0xb931c7BbD87A6e249EaA7355B13927F9c99Bce87",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0xeC0a755664271b87002dDa33CA2484B24aF68912",original:"Ethereum"}],["tBTCpolygon",{symbol:"tBTC",decimals:18,address:"0xE4C32B9eA749fa0342B1C42C01E80028B97c3917",original:"Polygon"}],["tBTCoptimism",{symbol:"tBTC",decimals:18,address:"0x6c84a8f1c29108F47a79964b5Fe888D4f4D0dE40"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x2390a5131fcba6e47f702172cF4876589E4161c6",original:"Arbitrum"}],["wstETH",{symbol:"wstETH",decimals:18,address:"0x855CFcEEe998c8ca34F9c914F584AbF72dC88B87",original:"Ethereum"}],["wstETHoptimism",{symbol:"wstETH",decimals:18,address:"0x1F32b1c2345538c0c6f582fCB022739c4A194Ebb"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0xbbeF8233a0d10EEAb84E913FaDB337ab9b62F683",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0x99C59ACeBFEF3BBFB7129DC90D1a11DB0E91187f",original:"Solana"}],["USDToptimism",{symbol:"USDT",decimals:6,address:"0x94b008aA00579c1307B0EF2c499aD98a8ce58e58"}]]],["Wormchain",[["WETH",{symbol:"WETH",decimals:8,address:"wormhole18csycs4vm6varkp00apuqlsm7v4twg8jsljk8wfdd7cghr7g4rtslwqndm",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"wormhole1utjx3594tlvfw4375esgu72wa4sdgf0q7x4ye27husf5kvuzp5rsr72gdq",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"wormhole1nz0r0au8aj6dc00wmm3ufy4g4k86rjzlr8wkf92cktdlps5lgfcqxnx9yk",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"wormhole1w27ekqvvtzfanfxnkw4jx2f8gdfeqwd3drkee3e64xat6phwjg0savgmhw",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"wormhole1chejx4qqtvwxy6684yrsmf6pylancxqhk3vsmtleg5ta3zrffljqfscg87",original:"Ethereum"}],["BUSD",{symbol:"BUSD",decimals:8,address:"wormhole1msyushf6d76u9wupuvm6jdvc0x4trmv5w5kxr0hyt7n9npp233usg7pkhm",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"wormhole1xmpenz0ykxfy8rxr3yc3d4dtqq4dpas4zz3xl6sh873us3vajlpszn4ph7",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"wormhole169nr66h9gcsfljvsnxnqfjakskcjt6ac8f58wqjuagu79m540teqfvaal4",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:8,address:"wormhole1g3acw7aumaj3r348cqn4kazrehlmn822w9p46sqwztnke27h3lysxj4ddr",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"wormhole1ml922hnp59jtq9a87arekvx60ezehwlg2v3j5pduplwkenfa68ksgmzxwr",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"wormhole1gwm6mrnse9atzf4mer4dnrz64mp6pa75wpsxywu8gymt9fwsk46sfr372u",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"wormhole1e0cwfmla7exa578xddl87paxexw9ymwrzysfjms8c2mstxjkldlqn45jqa",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"wormhole1kqey3a6k26kyensq7elcpx229tlj4d3qlshwhjq5xjm8dcdvu60qtef8k9",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"wormhole1gzuv84xrwwhxhf0f62av279vfyrfrm7x58fcnadlr5m90gnx223ses2st0",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"wormhole1wn625s4jcmvk0szpl85rj5azkfc6suyvf75q6vrddscjdphtve8sca0pvl",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"wormhole17fr8awnysyv3nt5je4strczdupssl8u9jqam890jfv72sh32yyqqhtg3ry",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"wormhole19hlynxzedrlqv99v6qscww7d3crhl86qtd0vprpltg5g9xx6jk9q6ya33y",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"wormhole1f9sxjn0qu8xylcpzlvnhrefnatndqxnrajfrnr5h97hegnmsdqhsh6juc0",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"wormhole18nlwscr7290j463vcptqlgqudycry2rdnw2ysltpc2nqefk3353s808rl9",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:8,address:"wormhole1ev8rhdflmlq6de5g7ttj585fhuv3jfhnuhfzyh7qrswhzaq2tkqswxz6y3",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"wormhole1snw0qugpjcxwtxzzkqt5guwavq85eumxzeagql2u2m662xrtnjuqyj3pkj",original:"Optimism"}],["USDCbase",{symbol:"USDC",decimals:6,address:"wormhole1edkult6zudk6ld23fesjfrehux35q86engsq5jlycl0e4upkz8mqkgcprf",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:8,address:"wormhole1nu9wf9dw384attnpu0pwfet5fajn05w2ex4r07mghvk3xcwrt2yq5uutp5",original:"Ethereum"}],["tBTCpolygon",{symbol:"tBTC",decimals:8,address:"wormhole1uj24zecnaxz7ftz0sh6dsayfene4w3yptwg0422kves9duel67vsr7hlyz",original:"Polygon"}],["tBTCarbitrum",{symbol:"tBTC",decimals:8,address:"wormhole1q8ynvqvtw49ln73mn70v4me4q03fvvmhkf2lh4ueam5w4362s2asjmvxtd",original:"Arbitrum"}],["wstETH",{symbol:"wstETH",decimals:8,address:"wormhole1gg6f95cymcfrfzhpek7cf5wl53t5kng52cd2m0krgdlu8k58vd8qezy8pt",original:"Ethereum"}],["WKLAY",{symbol:"WKLAY",decimals:8,address:"wormhole1kyy876kye7k79fuzat532yyqkrzhlr6l7hc7lfa2rk5tygzhy00qrhjgkc",original:"Klaytn"}]]],["Osmosis",[["WETH",{symbol:"WETH",decimals:8,address:"ibc/62F82550D0B96522361C89B0DA1119DE262FBDFB25E5502BC5101B5C0D0DBAAC",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"ibc/6B99DB46AA9FF47162148C1726866919E44A6A5E0274B90912FD17E19A337695",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"ibc/E4CD61E1FA3EB04EF1BF924D676AB9FD55E84A0DCF4E78C11CCA0E14E5B42672",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"ibc/2108F2D81CBE328F371AD0CEF56691B18A86E08C3651504E42487D9EE92DDE9C",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"ibc/898ACF6F5DEBF535103BBD52E3E5B70A311AD097B198A152483F69290B4210C0",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"ibc/03B6D1925A09B3033AA6FA8772202719ABDC51F8CC2A5C26D0A9B19832F2C023",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"ibc/5394BB30B3C9BD1EE84C9531E5094DDE2490964F518CBE8A4C91F748CE559AF5",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:8,address:"ibc/B28ACEF11D063FA8B1DA73C2F7DA3A1CFCCBC13E96B671698D4860E9367B55BB",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"ibc/22B44C7369EED16089B9840ADE399B80D9483B4E459E67643C96C681D7C463D0",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"ibc/0B3C3D06228578334B66B57FBFBA4033216CEB8119B27ACDEE18D92DA5B28D43",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"ibc/397DFE63D87F6940ECA583DFF5461E48BF0BA6554CBBE70278E307DDFDC8E9D5",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"ibc/83300733052AB5F6E0F0C221E24189B6DF26CC94C73D2F44627627F9DEF4A9C8",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"ibc/0F2941B0168D8DB77DA1B6A2D3A95EC04026D3C97FA3BFE8FD1D5D3F983AA518",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"ibc/1E43D59E565D41FB4E54CA639B838FFD5BCFC20003D330A56CB1396231AA1CBA",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"ibc/F08DE332018E8070CC4C68FE06E04E254F527556A614F5F8F9A68AF38D367E45",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"ibc/B1C287C2701774522570010EEBCD864BCB7AB714711B3AA218699FDD75E832F5",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"ibc/A4D176906C1646949574B48C1928D475F2DF56DE0AC04E1C99B08F90BC21ABDE",original:"Aptos"}],["USDCbase",{symbol:"USDC",decimals:6,address:"ibc/8AC0F990290BBEF3AEBFCBF70F902AD954781BB40D07EB76341272800D48D05F",original:"Base"}],["OSMO",{symbol:"OSMO",decimals:6,address:"uosmo"}],["tBTC",{symbol:"tBTC",decimals:8,address:"ibc/6207D35D2C08F2162575C3C4BFD524226E50639121A273045F1B393AF67DCEB3",original:"Ethereum"}],["wstETH",{symbol:"wstETH",decimals:8,address:"ibc/BF75AE1500CB7EC458E91A11731F1B6AC1F1FE1FA937A88564955ED6A83CA2FB",original:"Ethereum"}]]],["Evmos",[["WETH",{symbol:"WETH",decimals:8,address:"ibc/4442A8E0D487A49E76EA6606F5DADCF8D0DBDD8499112340C964970DB745EDA2",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"ibc/0C19171CDC59451F91D2749CDEA63355532DCD5D8904CCBAC4953290E16AB8FD",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"ibc/46C5DA1CB61C5BAA8730ABA467ADD58DE0333B075CACE28BC87E64AE8C9CA051",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"ibc/C9072A294F5649D64E87A6998DD750576881E454CACCDAF7376EFC0FA243808D",original:"Ethereum"}],["USDCbnb",{symbol:"USDC",decimals:8,address:"ibc/8E08C01546EF346F7E9A3600DDBC88943ADF3B20A67F1F2DD7B83D85613BCCAB",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"ibc/2EA2FE172078576E62DA20F14EEED12B26611D93150FE1D68E1AAE00479AC335",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"ibc/39913E647C3549D663B1ED7F0745E1779515170C5215B98B2C8410B4C073AD30",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"ibc/9EFE5F5D75A87197DD257BA7A96A3BCCEC9DB59D257C742FB5AA9D3DF612D476",original:"Fantom"}],["WSOL",{symbol:"WSOL",decimals:8,address:"ibc/4443218F584A7AB2DFBCF93872D6E5B6967A11C53515DDF45A2CF387C54BD73A",original:"Solana"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"ibc/9E2E7B4A53409267CD686F4EB67969C2602A0F5FF9BDB1082B00E71CC4815DDE",original:"Arbitrum"}],["EVMOS",{symbol:"EVMOS",decimals:18,address:"aevmos"}]]],["Kujira",[["WETH",{symbol:"WETH",decimals:8,address:"ibc/7D9D28CABB49A4BB1A50C3B7E4544BFDBC5DDFAEB84A7787755A34CE7196CE15",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"ibc/C5EADE2C526B9629D230AC02A97644984ACB7C2F9A6C85126D1025CB0DA42588",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"ibc/B2C7F21B604E3974A7DA5DAA9395905F2F3C85392F8A221CFDF62E4A9F4E48E4",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"ibc/3CE8A3DE4AE5AE2B4B8C03B2B227CC284732EDC849E506615FF2AA3D8EB1BAFC",original:"Ethereum"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"ibc/28E7241F6508EB4692C721E91201377323796EF2758CCD83D220A40EAD32601E",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"ibc/F9F41DB8DA49EA6AB9EB4B2C9E0ECDC2502ABDA2FE728B85994BF31240CBC163",original:"Avalanche"}],["CELO",{symbol:"CELO",decimals:8,address:"ibc/4ACD155D71182398277CBD2C630A7C8C5F0F16FFF77965FDE4C845A4CDE2D60C",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"ibc/3D337ECC89A8421DD6F33C4B7DDE9D4A18D728A4A688BA30E41F466EC8DD3869",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"ibc/E5CA126979E2FFB4C70C072F8094D07ECF27773B37623AD2BF7582AD0726F0F3",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"ibc/EBA52E7239CC1BC7F8ECF4F41523B6DD477FF067FD953315704A9A4FD2131B48",original:"Sui"}],["KUJI",{symbol:"KUJI",decimals:6,address:"ukuji"}]]],["Klaytn",[["KLAY",{symbol:"KLAY",decimals:18,address:"native",wrappedKey:"WKLAY"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0xe4f05A66Ec68B54A58B17c22107b02e0232cC817"}]]]],Gae=Br(z$e,[0,[1,2]]),P$e=[["Ethereum",[["ETH",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETH"}],["WETH",{symbol:"WETH",decimals:18,address:"0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x07865c6e87b9f70255377e024ace6630c1eaa37f"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0xC04B0d3107736C32e19F1c62b2aF67BE61d63a05"}],["USDT",{symbol:"USDT",decimals:6,address:"0xC2C527C0CACF457746Bd31B2a698Fe89de2b6d49"}],["DAI",{symbol:"DAI",decimals:18,address:"0x11fE4B6AE13d2a6055C8D9cF65c55bac32B5d844"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x7cd0e8ff09cEB653813bD3d63d0554c1CB4BFdf6",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xB19693FEB013Bab65866dE0a845a9511064230cE",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x4C1b727f6df3B075E682C41a25687A69846aaC04",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xF6699D3f725C4b64Cc6010F2DF77B4B05C76Cd5C",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x0d7A9Cdbb7C21E64825cF81750A5081a32aFb5d4",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0xe092525a787CD56B901279b5864a224c22B95B72",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x0dc83BB61008A5E1194fe50fA9E474713C1AEcD7",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x494701CE895389d917a938f0ea202D4eB9684Eab",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x70F7360C49D227ccBbb98fB7B69B7CDB651195bb",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0xd7A89a8DD20Cb4F252c7FB96B6421b37d82cE506",original:"Aptos"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xd962F26D93c4eF609Ba00Ed6101326A1490B9489",original:"Arbitrum"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x76e39239e40857030D6f4D8545EFbd71F904d344",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x5aA392243437dDC8b4d86bfC90DF296908740A41",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x679874fBE6D4E7Cc54A59e315FF1eB266686a937"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x575D93A2278FbF4E8Bd3d51B539a6E237C3F17c5",original:"Arbitrum"}],["tBTCsol",{symbol:"tBTC",decimals:8,address:"0x57A52B6F0b393AF7d36116183cA83E584e636eA4",original:"Solana"}],["wstETH",{symbol:"wstETH",decimals:18,address:"0x6320cD32aA674d2898A68ec82e869385Fc5f7E2f"}],["SEI",{symbol:"SEI",decimals:6,address:"0xd68df72136207E9471C915cf1B6Cf43D587D4E0A",original:"Sei"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x327e0c7D5cFa65d4f9E358dC9fA4446C49dBcB6C",original:"Klaytn"}]]],["Polygon",[["WETH",{symbol:"WETH",decimals:18,address:"0xc6735cc74553Cc2caeB9F5e1Ea0A4dAe12ef4632",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x543237045a106D7fd2eE3e2B44b5728e70BDe9c3",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x02E30E84161BE1aBfcBB2b154B11De4C2b5E0a32",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x87374d35C5F1bD78c2b1da383F460e154e7D3E5e",original:"Ethereum"}],["MATIC",{symbol:"MATIC",decimals:18,address:"native",wrappedKey:"WMATIC"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x9c3C9283D3e44854697Cd22D3Faa240Cfb032889"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0x9999f7fea5938fd3b1e26a12c3f2fb024e194f97"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x0C63D8ADB69204b2946DcB945a6f16d97C255eE2",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x51f3D34651523dD8CC4872ee261A1B0B3f73AceF",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xcc048C353Fdc2f5c378B7BCab9B240Ca2b619f1c",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x84aa9100a36D6c3514605F62342abF3cE77D5b97",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0xAd027790A64331A11bd1b651739450cC9Dc0098F",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x693b9AC2199d989bDA8C9C5b5d7A3680B4f40dAa",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x0284B4994456Fae4cb56E4d33228d51B674EAD1b",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x3dadA6f29f80A0427C4989E17a5a2ada17441841",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x226B436043B537BD158e84fA199E2Aa36bf364f8",original:"Aptos"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0xC77d781f38Cf52F8Ea0b4c0F22312bB9A34911b5",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x68C4365d5229A44D9A59058B65500365492b5307",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0xf6CC0Cc8D54a4b1A63a0E9745663e0c844Ee4D48",original:"Ethereum"}],["tBTCpolygon",{symbol:"tBTC",decimals:18,address:"0xBcD7917282E529BAA6f232DdDc75F3901245A492"}],["SEI",{symbol:"SEI",decimals:6,address:"0xc5C0229B38564E1E8083031405Be8d6E6e3Bc462",original:"Sei"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x7b34f3711705eB2963fB856cda063C979de4749e",original:"Klaytn"}]]],["Bsc",[["WETH",{symbol:"WETH",decimals:18,address:"0x064a85eac6b4Bd7190BCAd3458dBD9459989c37B",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x861B5C16A2EcED022241072A7beA9D530b99EB6f",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0xe94AaBAdB6F833f65B8A9AdDD030985B775188c9",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x45082C9Fc6BBCa72288F47Fad21dE0BECC75759E",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x7FCDA925f0994121752ca14C334297BeC3d0eA9E",original:"Polygon"}],["BNB",{symbol:"BNB",decimals:18,address:"native",wrappedKey:"WBNB"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x6cE9E2c8b59bbcf65dA375D3d8AB503c8524caf7",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x1cfeCf72bcBE1E429A21A5B11E708C7c397AaC54",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x9aB305B792DBdb8253bEE909E7006611Cb45175b",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x1471698cBD9cAB0228F2EEA9303A2b3aA0ABDC2B",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x5C31B36599ED7f06b09c0ffC7A2F928cE496F046",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x30f19eBba919954FDc020B8A20aEF13ab5e02Af0",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x51a3cc54eA30Da607974C5D07B8502599801AC08",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x5A73D76e09Af2E428EC64aE10F91B78AC990B298",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x4A7Bd5E135f421057F97BbA8BCeeE5c18334f454",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x60845E2503Fcd945b3A6f0bC077a31CC913E654D",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xe3aA397cb6d93Cce4fAd9Cc9E796CCa5E50FB5ED",original:"Arbitrum"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x63108fC941F3cCE0B484De19746B5Af949EAF6eE",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0xE7176110261ef2FfC885dd568C1093f58F0aEee9",original:"Ethereum"}],["SEI",{symbol:"SEI",decimals:6,address:"0x79A8FFFCED130314eCC8782C846c4d8d4867A900",original:"Sei"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x79D34FDb686B5D139949E4F92D83EEe376489176",original:"Klaytn"}]]],["Avalanche",[["WETH",{symbol:"WETH",decimals:18,address:"0xbB5A2dC896Ec4E2fa77F40FA630582ed9c6D0172",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x63A30f239DC8d1c17Bf6653a68Fc6C2F83641E6d",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x3989C9c4bdd30400E6Aa90990683EAd6a1638A16",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x78554394273957d7e55afC841aeA27Cce469AEd4",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x10F1053bF2884b28ee0Bd7a2dDBa237Af3511d29",original:"Bsc"}],["AVAX",{symbol:"AVAX",decimals:18,address:"native",wrappedKey:"WAVAX"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0xd00ae08403B9bbb9124bB305C09058E32C39A48c"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x5425890298aed601595a70AB815c96711a31Bc65"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x094cB577C21Ab1360178beE74B9591fa12216dAD",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0xC66d9c2b33c347d4A4441975f4688fcD5DD4c441",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0xf080782DF38eD5228D2FC2882d13D56c8f1D6f21",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xb10563644a6AB8948ee6d7f5b0a1fb15AaEa1E03",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0xfc5128F8556a6F059466E67740e6cC31EE5C2C47",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x996a3f12C1FcD7339Ea8801f629201e4d42EAD04",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x36Bd1562F874941eE62Ebb2b3A45B4A88A9df90e",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x301587BF484756441de43E522027e3751871237B",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0xc07c754ef7473d315D973F7D9F7858C2eCe0a0a6",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x7E1779F65B644E5f98DdC4D2cB0A0106a7E6d9e1",original:"Ethereum"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x4beDc7471374d7479120E44ea9593eBB85f48AD9",original:"Arbitrum"}],["SEI",{symbol:"SEI",decimals:6,address:"0xfe2eCDD1708aaebf1cF802C6124fAFb18B22dfEE",original:"Sei"}]]],["Fantom",[["WETH",{symbol:"WETH",decimals:18,address:"0x758FEebDDeC06f4bCcEc8F756C8efBD35d5b7124",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0xDF7928AF5B33F7de592594958D8d6Ff8472Eb407",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x32eF19C4b3DF65a24972A489e70AdDef5E54262C",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0xE4FE5DF2084f9D81595e4fcba2399020FBE7b233",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x47a4C4c0f96D6CBe5b5C0A46CB0E22d6A17F1430",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xfB174b43228950C2055CFc25AE93f2DCe8E2beF0",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x0f545Be981C37fB15ab7c65404648761e99016e4",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x6BC4E8D8c1d54656D1DeBCa96efc53aFd1408aD2",original:"Avalanche"}],["FTM",{symbol:"FTM",decimals:18,address:"native",wrappedKey:"WFTM"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0xf1277d1Ed8AD466beddF92ef448A132661956621"}],["CELO",{symbol:"CELO",decimals:18,address:"0xB18E73a69c3Aaea39a610372537Cf8482622d199",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x41E3CFDFC255A4bF3C8D3560Bc8D3D9b5080338e",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xED1a08Fc69A7008d225890A96aaE258c465CC7ad",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0xd882AB49372eC093E8697B5153f54ab5e7738e3b",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0xAb2297E8994149BA91737944E40891881aF762a4",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x456e08952f9091B6c268dC0cECad53d141152C59",original:"Arbitrum"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0x685B29e17440c42758Ab3F80FD3603EF01bebe9A",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x01950A33DfFa63E6Bc23b5dB440505581A4cc0e7",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x66E080407407620844fE2083c33108BE55E087bc",original:"Ethereum"}],["SEI",{symbol:"SEI",decimals:6,address:"0x832e8050D6c64724500DE9B0ffe1CAc6c570a26d",original:"Sei"}]]],["Celo",[["WETH",{symbol:"WETH",decimals:18,address:"0x898471a82737dFFfB61915F9e8381e279076D72b",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0xB0524bEF6c61c6150B340b2828a890fD8dEa60C0",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0xeBB3fF6E5d61d3793Fdb60f7942BA78E636019f6",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x7a56409988BBF8758b3ba412b9c7E3FE504C8544",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xa8050be9389466c3c524F10F131f244ACbf21A0D",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x502c8C83008D9Dd812a7C5fB886C063060C73Dbf",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xDDB349c976cA2C873644F21f594767Eb5390C831",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0xE6F8710cA14CFe7F5aAAD3A799C3d1D92dCba938",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0xF194afDf50B03e69Bd7D057c1Aa9e10c9954E4C9"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x132D2172D89cd9CfD480A8887c6bF92360fB460e",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x05EEF2AE1A7A938D78598F7d9e8b97A9bED0c9eC",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0xa40d9E69ca9867C4bFbeC11Ce79C939991e9bf26",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0xAC0a2fF7DD597de863878a3372142b07B614C125",original:"Aptos"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0x0C4AbF95Ff3d82d1F02f55e65050eA5bA062606E",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x28E768a51D19dcB753a24B79D1e89c92fee094Ba",original:"Optimism"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x01a050Fc725F4E99aAD43Eb6f8481f38ee6231aD",original:"Ethereum"}],["SEI",{symbol:"SEI",decimals:6,address:"0x05Efb4aC79ef48a4830f517834c6f5f039F16832",original:"Sei"}]]],["Moonbeam",[["WETH",{symbol:"WETH",decimals:18,address:"0xd27d8883E31FAA11B2613b14BE83ad8951C8783C",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0xE5dE10C4b744bac6b783fAF8d9B9fDFF14Acc3c9",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x7f5Ca1bcFb38fDF4c0E0646FCbf3FA87740ff65D",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0xc31EC0108D8e886be58808B4C2C53f8365f1885D",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0xD2888f015BcB76CE3d27b6024cdEFA16836d0dbb",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x6097E80331B0c6aF4F74D7F2363E70Cb2Fd078A5",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x2E8afeCC19842229358f3650cc3F091908dcbaB4",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x6533CE14804D113b1F494dC56c5D60A43cb5C3b5",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x566c1cebc6A4AFa1C122E039C4BEBe77043148Ee",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x3406a9b09adf0cb36DC04c1523C4b294C6b79513",original:"Celo"}],["GLMR",{symbol:"GLMR",decimals:18,address:"native",wrappedKey:"WGLMR"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0xD909178CC99d318e4D46e7E66a972955859670E1"}],["SUI",{symbol:"SUI",decimals:9,address:"0x2ed4B5B1071A3C676664E9085C0e3826542C1b27",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0xCaa2A1d3BbbA0D1466571e83b4E2CbE04252593D",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x15025b956969DD8F1d0CD69959Ad97128F8f6D69",original:"Arbitrum"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0xf98E630a3DD4F21Cab7a37Bb01209cb62959169D",original:"Optimism"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x7480641F5B00b4Fc39d6AaeC4Cd851EdEA7f31CF",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0xf82E21cE03471983Afb9c2E3789Aa13a2d7242E8",original:"Ethereum"}],["SEI",{symbol:"SEI",decimals:6,address:"0x1EdDe35B7e058194B457B8621285EaFA710f01ea",original:"Sei"}]]],["Solana",[["WETH",{symbol:"WETH",decimals:8,address:"7VPWjBhCXrpYYBiRKZh1ubh9tLZZNkZGp2ReRphEV4Mc",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"2BAqec7Qof3Y7VJatwFsRHUNSQBSkzaEsT1V5bW6dbZY",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"3WK3mEDNPrNuQReBvM28NcsqrExMnPxD9pPJmgrUeKKH",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"ACbmcQxbbhiXWM1GmapUSMmBYKMvnFLfAAXKqdo8xKwo",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"BaGfF51MQ3a61papTRDYaNefBgTQ9ywnVne5fCff4bxT",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"3Ftc5hTz9sG4huk79onufGiebJNDMZNL8HYgdMJ9E7JR",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"GQtMXZxnuacCFTXVeTvyHi6P9F6chbtzhVc8JgD8hv7c",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"DMw2tLaq1bVoAEKtkoUtieSk9bfCPUvubYLatTMsSVop",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"84F2QX9278ToDmA98u4A86xSV9hz1ovazr8zwGaX6qjS",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"8987WGkYa5viiZ9DD8sS3PB5XghKmWjkEgmzvwDuoAEc",original:"Moonbeam"}],["SOL",{symbol:"SOL",decimals:9,address:"native",wrappedKey:"WSOL"}],["WSOL",{symbol:"WSOL",decimals:9,address:"So11111111111111111111111111111111111111112"}],["USDCsol",{symbol:"USDC",decimals:6,address:"4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU"}],["SUI",{symbol:"SUI",decimals:8,address:"BJZ72CjPQojVoH68mzrd4VQ4nr6KuhbAGnhZEZCujKxY",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"7EvFD3JKCJVdtkAYdaSVKJsrPEJCzy2neJha7TREGrCa",original:"Aptos"}],["WETHbase",{symbol:"WETH",decimals:8,address:"EKZqcBZ3Y7YTDinpecA7SxRp9B4s1m99VHJ9jpvyTwzW",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:8,address:"FMYvcyMJJ22whB9m3T5g1oPKwM6jpLnFBXnrY6eXmCrp",original:"Ethereum"}],["tBTCoptimism",{symbol:"tBTC",decimals:8,address:"HsPvRT3J7kuitNvNHogyZeSEagcqAqwwq2FPgrGfgApy",original:"Optimism"}],["tBTCsol",{symbol:"tBTC",decimals:8,address:"6DNSN2BJsaPFdFFc1zP37kkeNe4Usc1Sqkzr9C9vPWcU"}],["SEI",{symbol:"SEI",decimals:6,address:"8LFdfuhbfdH8oBzSKDgfPAxvLW24dCM9ttjBrBobURuk",original:"Sei"}]]],["Sui",[["WETH",{symbol:"WETH",decimals:8,address:"0x72831f626b1f0e11be201893d5cb641917730b1ccac778e4a77f8ab2052f0784::coin::COIN",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x9e4396c19ec1c5f2214c79d3af3f31e59869640305560f8f2499c36fa9c8e0f2::coin::COIN",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"0xe6fc78aa2b52b785bdcb67901cd85793a0b593248f315cb755974d23d0fcb837::coin::COIN",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"0xa516bcbf83b29a2944bb53ec9f934ea7d78c3626d3ae411d2fb9dcb977522e67::coin::COIN",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"0xddcf8680a8a4b8a527d8c85ec203274991590c2ea898d1c4635b70164d9c584b::coin::COIN",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"0xa600741c469fb57ed01497ddf101e798fa79a9c529bd176675c5c4d970811f80::coin::COIN",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x2aa8c885d04e676c4e87b7d0f94d4f3b243b1b5d93239d1cc41d5528ce1714c1::coin::COIN",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"0x14e756ff65e0ac810a5f69ca5276ef5b899a6df3c4717de1f85559d8b5ae6ea6::coin::COIN",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"0x81868174a6b11e1acc337b3414f9912455435d486609fb8d50b34312865085f2::coin::COIN",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"0xeffae382de96981f7ddd2d294429924827e8f325d612487a12d6a0b249171002::coin::COIN",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"0xbc03aaab4c11eb84df8bf39fdc714fa5d5b65b16eb7d155e22c74a68c8d4e17f::coin::COIN",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x2::sui::SUI"}],["APT",{symbol:"APT",decimals:8,address:"0x812d6feb8b84e55d47a0bfcae9fb6a4e7e09be5ec86ce0a729e0f67d5f59f477::coin::COIN",original:"Aptos"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0xbbc39df58a11072ceeac1f685393ca912d1a1bfd6e772053ec5a544f36124da::coin::COIN",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:8,address:"0x7b442b988864149dedfb9b6a75a88c7c33b9ddd3d15a87bf25104e1fcdd680ab::coin::COIN",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x4125940814a0ca87465a1a59092a7344633ad03b48ad7cda36d799d8558012c1::coin::COIN",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:8,address:"0xacf6784120b221a077ab0b84acc0b76930779eb55f157ea2492be4a60b808f6::coin::COIN",original:"Ethereum"}],["SEI",{symbol:"SEI",decimals:6,address:"0x22c5cdaabaae4b6d3351f9bba9511b0aebb0662a6c209a360f0776e1e77a8438::coin::COIN",original:"Sei"}]]],["Aptos",[["WETH",{symbol:"WETH",decimals:8,address:"0x381775005cb32cdd3dbf935ae1b978ed40d309c72b009cd4a812aab6d991418a::coin::T",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"0x5f229253e2b2d03fb909f565feca49452582bd633a5816e5ce30aa593cb49d8a::coin::T",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"0xa5894f5ddb8647e6143102aa336ff07374f7b32e88c1c703aef5b7c9a370bf80::coin::T",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"0xbe8f4301c0b54e870902b9a23eeb95ce74ac190531782aa3262337ceb145401a::coin::T",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x02ef7697bdb33361ca39d228671203afc0dea3202e792d79d2072b761d87c834::coin::T",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"0x533c6ade00d15d1e014c41e29e34853e87df92c4e01a6a3f41318dbd098048d6::coin::T",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"0xecbb0f7e7d049499ca83ca1358344f56557886f6f7adc740d6734cce7bfc9a14::coin::T",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"0x338373b6694f71dbeac5ca4a30503bf5f083888d71678aed31255de416be37c0::coin::T",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"0xdd89c0e695df0692205912fb69fc290418bed0dbe6e4573d744a6d5e6bab6c13::coin::T",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"0x7b22d0e02f653d4fd1caddcfa4719a2b329da56eb81d8f27db703f02466c26a5::coin::T",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x1::aptos_coin::AptosCoin"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0x3f0fdd44d96dae888d6c576218cf655458316a27c7bdc46537f61e531b10d3df::coin::T",original:"Arbitrum"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0xcff1d9820851201436ad225dcc4374a2d15f52a74109283eb9881be799677e92::coin::T",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:8,address:"0x5b5f14781164cf77185a7b6acd8e4f3cbb7e7cfb1cd5760d2b8af81075fc153d::coin::T",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0xcfaabb3cb08ad612905dd6b2593d044ce857dfe5360148333b4635fb57d4d13f::coin::T",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:8,address:"0x6e2d5d1a6d6d0e0c5db506ce64ead0530847a48b96516abbb08cdebe43fe3036::coin::T",original:"Ethereum"}],["SEI",{symbol:"SEI",decimals:6,address:"0xcae0ba0b7a435730ab65f1c8357d213e5cf9d4b377b96761745a8edaf9c9df6d::coin::T",original:"Sei"}]]],["Base",[["WETH",{symbol:"WETH",decimals:18,address:"0x44D627f900da8AdaC7561bD73aA745F132450798",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x5010B0988a035915C91a2a432085824FcB3D8d3f",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x31B2BAEE47Dc5Fc06baEC1BF73C124031b44fB97",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0xFFB5d863d5132523d013338845A1Bb01EDd440f4",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x9DeF11E63C23c71dE3716b81dD2Fdad2B24b8b7F",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x410B0EE532EFfB18fa4d90cc095B1CD58aC43d5a",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x4C5208246676486064c501E1DAF2dD21596Bc5f5",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0xB4808E58713112AbAbB8167C7187F8988df38bbD",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x72C56041ea5fe8bDE99b2A123fb5964cDE8C7FE9",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0xCEc03b5710a464F4354AF35ebD0310238F656DFf",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x6Fb1dE2372e48fe66c84cf37cc2fb54EaEe62988",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0xEe0fC8BECD593B41AACBd93936fDAbc2A444370A",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0xd934A15FfA3945DD0Ba2cb7b4174024261A14874",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x8eD43aBdc4f836aa60933177B31AC358ea09f27E",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x5c443C05C72F0660502d88642c807020cc9b71A2",original:"Optimism"}],["ETHbase",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHbase"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x4200000000000000000000000000000000000006"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0xf175520c52418dfe19c8098071a252da48cd1c19"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x0219441240d89fAc3fD708d06d8fD3A072C02FB6",original:"Ethereum"}],["tBTCbase",{symbol:"tBTC",decimals:18,address:"0x783349cd20f26CE12e747b1a17bC38D252c9e119"}],["tBTCsol",{symbol:"tBTC",decimals:8,address:"0x9dA16Ae62De05bcb4606c4BFbB54046872501Bd0",original:"Solana"}],["SEI",{symbol:"SEI",decimals:6,address:"0x7B5edB2B3d2BeA8057a736B82AC6EF35c70bdadD",original:"Sei"}]]],["Sei",[["WETH",{symbol:"WETH",decimals:8,address:"sei13pzlt9etk44hj22lckncvampq2qu2gxv6r6774f3hma4vc07wqgsmftjx7",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"sei1nj32y0h0vzam33ay42h2majlfk7tdkqcuk84srn0v2a52kmujgfsyfe78f",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"sei1dc94as3vgxn3qkr5h0lnnrep69mtfku6jg4t94gfkunuyzr5g5eqyqvj9p",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"sei10a7see3f9t2j9l8fdweur3aqy4zgvz583a268hhhln3yzps6l5mqnl4ua6",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"sei1mgpq67pj7p2acy5x7r5lz7fulxmuxr3uh5f0szyvqgvru3glufzsxk8tnx",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"sei1uyce5s6cc8hveg0maq2lg7wm6v6fvwqmznypj559nzf9wr9tmw3qnd3ce7",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"sei1cr3j7rxq0dhq04ksftmj8n2w096w9g7ck8fngkvk2lrmy3qwz56q9thu9u",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"sei1yw4wv2zqg9xkn67zvq3azye0t8h0x9kgyg3d53jym24gxt49vdyswk5upj",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"sei140m6xagmw0zesejzhsvk46zprgscr7tu94h36rwsutcsxcs4fmds9sevym",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"sei1at3xuugacwgu3ppx7fxzmtr3q6m3ztjuean9r2mwcnqupw28yezs7unxgz",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"sei1rhpcprr2pffe6ydf078a0qeslhnlywxh2t3wjax4489z0m29cj9swj5khc",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"sei1em74y5sts4h8y5zuhfdn4w5g8zs285qld3kczpk6rh32jpvjyqqsvv0pdt",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"sei1pf5j3dgngm8yj2xkwmvmvt87g4vyc0szpjz92q8ly9erh23ytn4s983htv",original:"Arbitrum"}],["WETHbase",{symbol:"WETH",decimals:8,address:"sei1kdqylzcv86t7slg8m30mlfgna9xsrusghdgnavvurkv0rku7jvqqta7lka",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"sei1lf6ghmrkd7gn5jlj6xw64suycpjy7g4s5q92fc2gef4f8q3znanq95mmgv",original:"Base"}],["tBTCsol",{symbol:"tBTC",decimals:8,address:"sei1aj3uu9ejt8fk6rpjfhzluqnzqmv3enlndjmt8llkr7dn2dtz55xst4s3mn",original:"Solana"}],["SEI",{symbol:"SEI",decimals:6,address:"usei"}]]],["Arbitrum",[["WETH",{symbol:"WETH",decimals:18,address:"0x285d75E04D78F53f4Ed29A506a7e8479EEf3035f",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x42A212A2E7eA8feF4ED28F439F16A6ABDd34DA35",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x2B732F5ad6117818Ad3b7aC73C16033F6ECD78E5",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x50FD4064cC536a964E2E0Dc7B3fE2313Ab386bEA",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xB039aC4Fa8Ed99d30C2f7D791294A9d5FAd698eF",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x92b0C4D27a05921Ded4BB117755990F567aEe049",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xb39697B8BA5df91A169690DfEf88B911436619F2",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0xa507f7566B8aDE000E886166B95964677ef3b3Ef",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x9592eE6eD1D9E611b7aa6F20CCbD7Ba571Be8bdd",original:"Celo"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xF8cbdc4E54281b801f182039c250Ad6d13818250",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0xe64e2139fdf6Ee7e3795FE51955e21bA3d9eB9F7",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0xa81C3BEf2d6f10213b860458DC119666C0ba13bf",original:"Aptos"}],["ETHarbitrum",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHarbitrum"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0xee01c0cd76354c383b8c7b4e65ea88d00b06f36f"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xfd064A18f3BF249cf1f87FC203E90D8f650f2d63"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0xFd903eA23Bf65f26FdAf2eeb589cf007b108882E",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0xbC4CB3CD7186fD457C072298C48d0eDf7213CAEa",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x97B5fE27a82b2B187D9a19C5782d9eB93B82DaC3",original:"Ethereum"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x85727F4725A4B2834e00Db1AA8e1b843a188162F"}],["tBTCsol",{symbol:"tBTC",decimals:8,address:"0x227115F659f7c2939D23FedE68583F5291c395A6",original:"Solana"}],["SEI",{symbol:"SEI",decimals:6,address:"0x90eC817A1f7C1Eb18dD2985C534A78dD88747F47",original:"Sei"}]]],["Optimism",[["WETH",{symbol:"WETH",decimals:18,address:"0x33Db338718aC89Cd8DB13B56af05be3a3029BBE5",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x0382F518AcE1a86224c78B7CDfa67B9774055A1b",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x427B5a0b0384D7FD3AF81805A166a2d9C1116D7d",original:"Polygon"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x81BA80f5820273AA965086e710042d737993f12c",original:"Fantom"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x99436d62259532E0407A7aE78A3b48D119B13903",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x06EcAF6638070Ccf3b3dEA421b3becAA57f3e559",original:"Solana"}],["ETHoptimism",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHoptimism"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x4200000000000000000000000000000000000006"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0xe05606174bac4A6364B31bd0eCA4bf4dD368f8C6"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x04b559971c90Dfb12D9795E95883e55f2fcf34Ed",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x5D89a5BcB86F15a2CCAb05e7E3bEE23fDF246a64",original:"Ethereum"}],["tBTCpolygon",{symbol:"tBTC",decimals:18,address:"0xE04e0F5f2C6ce45A40482C3AB92CA91D6741D717",original:"Polygon"}],["tBTCoptimism",{symbol:"tBTC",decimals:18,address:"0x1a53759DE2eADf73bd0b05c07a4F1F5B7912dA3d"}],["SEI",{symbol:"SEI",decimals:6,address:"0xE12be3D96fE101246bF2d290184B0eC6D35d02CA",original:"Sei"}]]],["Wormchain",[["WETH",{symbol:"WETH",decimals:8,address:"wormhole1vguuxez2h5ekltfj9gjd62fs5k4rl2zy5hfrncasykzw08rezpfs63pmq2",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"wormhole1rl8su3hadqqq2v86lscpuklsh2mh84cxqvjdew4jt9yd07dzekyqkmcy3p",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"wormhole1v2efcqkp2qtev06t0ksjnx6trxdd0f7fxg2zdrtzr8cr9wdpjkyqkv9ch6",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"wormhole1uuwad4khwek2h05gmkktzmh8l4t0ep54yydlsqg0l4y2uh3tqfyq3an9k6",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"wormhole1vhjnzk9ly03dugffvzfcwgry4dgc8x0sv0nqqtfxj3ajn7rn5ghq6whn2p",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"wormhole1335rlmhujm0gj5e9gh7at9jpqvqckz0mpe4v284ar4lw5mlkryzsnetfsj",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"wormhole1tqwwyth34550lg2437m05mjnjp8w7h5ka7m70jtzpxn4uh2ktsmq8dv649",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"wormhole1qum2tr7hh4y7ruzew68c64myjec0dq2s2njf6waja5t0w879lutqv2exs9",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"wormhole1808lz8dp2c39vhm9gnemt7zzj95nvrmjepxp7v3w4skzrlyzcmnsxkduxf",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"wormhole1e8z2wjelypwxw5sey62jvwjyup88w55q3h6m0x8jtwjf6sx5c7ys4mzydk",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"wormhole10sfpr8ykh9xn93u8xec4ed3990nmvh86e0vaegkauqhlkxspysyqwavrxx",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"wormhole1gryz69gzl6mz2m66a4twg922jtlc47nlx73sxv88lvq86du5zvyqz3mt23",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"wormhole1ced9v4plkf25q8c6k9gz0guq6l4xyjujpjlvxfg8lpaqywkmamashswq7p",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"wormhole1yf4p93xu68j5fseupm4laj4k6f60gy7ynx6r5vvyr9c0hl3uy8vqpqd6h0",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"wormhole1u8rft0gee23fa6a0t4t88ualrza5lj8ses4aur0l66c7efpvjezqchv34j",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"wormhole186k0cp83c3wyvapgh8fxf66ededemzrfujvjfsx0xw3vr0u9g8sq2y30vx",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"wormhole1s3pk90ccfl6ueehnj8s9pdgyjjlspmr3m5rv46arjh5v4g08dd0qrchjrk",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:8,address:"wormhole12eu6c7f67l8gdl2lt0hz0dgdh24dhune6wjgy5t0es3tpfzhc3yspwnpfy",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"wormhole1u5z7097gm57zvun9wqsx6jxej2gpdjhg9l9xfe58rhpm29rtjmfqfnl4yv",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:8,address:"wormhole10p89p4zh00dwdg8h52sysrqm0l2j47jj3kmg93pnz2a039ucw7esgl5vl9",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"wormhole1ja4txt6m0jjq0gmjtmv442f8wk0r5f5apaya0z55wwlrpg3p5xaq3qxw7h",original:"Base"}],["tBTCarbitrum",{symbol:"tBTC",decimals:8,address:"wormhole1rm8ztmk20lrd6ex8uqq3yu7a6eyfjwvg53pcuuj22ffe2y8r3yzqr8j4v9",original:"Arbitrum"}],["wstETH",{symbol:"wstETH",decimals:8,address:"wormhole1u2zdjcczjrenwmf57fmrpensk4the84azdm05m3unm387rm8asdsxqwfeu",original:"Ethereum"}]]],["Osmosis",[["WETH",{symbol:"WETH",decimals:8,address:"ibc/A4A8B6AE885DACD75B228031C0D18AD7EE1B914CED30C9F6F4230DDBD4A1CF2B",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"ibc/3BB8C4BD1C90599B2FA5B5839DD0813EF7B94B0BD0904C4C5A61498AE81E0EE9",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"ibc/1941ED1147121BA7DF35559597B6EB3251844DBBBE4557337D957CB95E0978C2",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"ibc/2864B3418775DDB90EE1410EFF822FDA94E9F0FF77FC8771644761C79EDFE7A3",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"ibc/43F15553F8598186394E81E18604B8B4532B2D7E855D9FFE68A2EF6802C18BE4",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"ibc/65A67BA10DE2378B32AC5A822321E370966D3D4E180DEFB4C3C5245B21088DDF",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"ibc/99EAD53D49EC7CC4E2E2EB26C22CF81C16727DF0C4BF7F7ACBF0D22D910DB5DE",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"ibc/EC9FA5074F34F0644A025BB0263FDAE8F364C5E08523F6464465EF1010FF5A3A",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"ibc/145C6B688F70B0C2F6D87546A5974A75CE75B3A2940275B750E65797B2996157",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"ibc/3A4EA3F8096856C0802F86B218DD74213B4C10224AA44BBD54AEAAA2ABF078BA",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"ibc/7DB06BB67428510AFC3967DC90F5632C679D55D8C487A951A0EEC3160AF492A6",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"ibc/B5D53105A7AA2BEC4DA4B3304228F3856219AE7CF84A9023043C481629E3E319",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"ibc/35A0467DE5744662078DE8B36CBBE0CF0EAA022565A3E6630CB375DDEBB96E05",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"ibc/30778BA41ADF2D8A70B90DB53C2E0251731A40276EF6737215BB1A6ED9E90078",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"ibc/7C495BD95757ED662A897C139F1C9F18275A86EE7203A0B073E2DB12B1E19D63",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"ibc/221A4AADF7972F3BB8F48A6CA984FF0AE65B5D973FF1A695B9642AD702F51789",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"ibc/06ED2700071B5A9C582F51A556537DA94E69EF547E7E6CCD8BFA3D95C818A525",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:8,address:"ibc/80B3FECB24A4CE94537444E5BF937AC4C08A39BF90D59620D278FA185BD2B148",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"ibc/0A98A3947189D7C368170C76C3EF49486DDBE095F34B72A3C7F92AEBE1013A1D",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:8,address:"ibc/A45069EA82C933945973E66E4222EEE4624498D4483508FE9BEBF9D519F2132F",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"ibc/2E4F8BC7F7AF33752CF7E290CAD4417EE67CD18FFC0D099E6519A440E588E0CE",original:"Base"}],["OSMO",{symbol:"OSMO",decimals:6,address:"uosmo"}],["wstETH",{symbol:"wstETH",decimals:8,address:"ibc/C66B7DB3ED665D2F5FE8ED15E88B5913A37D80601E161C5E53A743DE12C0FB85",original:"Ethereum"}]]],["Cosmoshub",[["WETH",{symbol:"WETH",decimals:8,address:"ibc/77FE9153FA76C3107CB9F6633AC33509A58529E9622327F216BA8107C79C2DE3",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"ibc/D0EC31D1176BB69EA1A7CF7172CA0380B7AF488AFC6D55B101B8363C2141CD4F",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"ibc/755FBC53FFB46FB505B5269F9BEDF47041F2A0EF2FF8D0520315403E5925C80A",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"ibc/5F21E975410DA22AF565B1772DC45AD0BD5F6DA004981EBE291763F3D2C72A96",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"ibc/37FB599287C6963C413E915FDE83EFA69A3CE8147675DD5A7F974B45F39C8A31",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"ibc/5B0D5974A56332468DD4B2D07C96A7386FCF8FE7303FF41234F90E410EF51937",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"ibc/BAEAC83736444C09656FBE666FB625974FCCDEE566EB700EBFD2642C5F6CF13A",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"ibc/F09E98FA8682FF39130F171E9D89A948B0C3A452F2A31F22B6CC54A3AAE1CD4A",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"ibc/919D8F138B7E71BB067C7301AB5C2D48415E8C3A2D9187861245CEC668F88E3C",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"ibc/009206915358A002C852A2A2CBEDB8446D2D02E519C815087A01F8BDB4DF77BA",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"ibc/1EEDF447A6B046B20C00B1497BED5947219AEEBE0D9A85235C85133A554DF7A4",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"ibc/D3EA463A51E31B2B30BED1978575CAC145DBAB354B8A0EA5D4CFB12D737AF790",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"ibc/26D8D6C63C8D37A5127591DDA905E04CC69CBD3A64F9DA3B1DA3FB0B6A7D9FA5",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"ibc/129EC6B8A41BE07F94DD267F552F4AE1D5EAEBB51634A1468556AF06C10C2692",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"ibc/0CCA5EB15BC2FE474E71DBC9698302CDE260B6F6548F91C30002F7CBF228197B",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"ibc/AB4046AF5B6F146C006DE4DECAD929D24F762A701E09EC8B29000EC63A6E649B",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"ibc/6D1B6A7A9EF692A279A6B5994C98C0D598D003D9203BE8309F14B6E57A58506E",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:8,address:"ibc/A0298483510D803A045AA7F49CCBD0F9D01010FE0B1A346EBDFFF4BA820C3D21",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"ibc/CE3F2FE630DA6A1187F085CDC8D59BA8B20DA48F4866F2D71C5AB7A1D5859933",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:8,address:"ibc/97035986A4BD0AF555713355A02EA31A4526616B6543E019E0D750007FABE06C",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"ibc/8560BA5F45C95AE716C05978E364F50C98347ACBEC745840C30F91611FA36698",original:"Base"}],["wstETH",{symbol:"wstETH",decimals:8,address:"ibc/5BB02667F9F0C8284FCF7716065C2779039817FBCB91E937F5149FE89FD8F202",original:"Ethereum"}],["ATOM",{symbol:"ATOM",decimals:6,address:"uatom"}]]],["Evmos",[["EVMOS",{symbol:"EVMOS",decimals:18,address:"atevmos"}]]],["Kujira",[["KUJI",{symbol:"KUJI",decimals:6,address:"ukuji"}]]],["Klaytn",[["KLAY",{symbol:"KLAY",decimals:18,address:"native",wrappedKey:"WKLAY"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x0339d5Eb6D195Ba90B13ed1BCeAa97EbD198b106"}]]],["Sepolia",[["ETHsepolia",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHsepolia"}],["WETHsepolia",{symbol:"WETH",decimals:18,address:"0xeef12A83EE5b7161D3873317c8E0E7B76e0B5D9c"}]]],["ArbitrumSepolia",[["ETHarbitrum_sepolia",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHarbitrum_sepolia"}],["WETHarbitrum_sepolia",{symbol:"WETH",decimals:18,address:"0x980B62Da83eFf3D4576C647993b0c1D7faf17c73"}]]],["BaseSepolia",[["ETHbase_sepolia",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHbase_sepolia"}],["WETHbase_sepolia",{symbol:"WETH",decimals:18,address:"0x4200000000000000000000000000000000000006"}]]],["OptimismSepolia",[["ETHoptimism_sepolia",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHoptimism_sepolia"}],["WETHoptimism_sepolia",{symbol:"WETH",decimals:18,address:"0x4200000000000000000000000000000000000006"}]]]],Yae=Br(P$e,[0,[1,2]]);function ON(t,e){if(t!=="Devnet"){if(t==="Mainnet"){if(!Gae.has(e))return;const r=Gae.get(e);return Object.fromEntries(r.map(([n,a])=>[n,{...a,chain:e,key:n}]))}if(t==="Testnet"){if(!Yae.has(e))return;const r=Yae.get(e);return Object.fromEntries(r.map(([n,a])=>[n,{...a,chain:e,key:n}]))}throw new Error("Unsupported network: "+t)}}function O$e(t,e){const r=ON(t,e);return r?R8.native(r):void 0}function R$e(t,e,r){const n=ON(t,e);return n?R8.byAddress(n,r):void 0}function F$e(t,e,r){const n=ON(t,e);return n?R8.byKey(n,r):void 0}function U$e(t,e){const r={coreBridge:RWe.get(t,e),tokenBridge:FWe.get(t,e),nftBridge:WWe.get(t,e),relayer:VWe.get(t,e),tokenBridgeRelayer:UWe.get(t,e)};return EU.has(t,e)&&(r.cctp=EU.get(t,e)),Eae.has(t,e)&&(r.gateway=Eae.get(t,e)),Cae.has(t,e)&&(r.translator=Cae.get(t,e)),Tae.has(t,e)&&(r.portico=Tae.get(t,e)),r}function kn(t){return typeof t=="string"&&t==="native"}function bq(t){return{chain:t,address:"native"}}function oM(t){return typeof t=="object"&&t.address!==void 0&&t.chain!==void 0&&Rg(t.chain)}function bf(t,e){return t.chain!==e.chain?!1:kn(t.address)&&kn(e.address)?!0:_a(t)===_a(e)}function _a(t){return oM(t)&&kn(t.address)?t.address:t.address.toNative(t.chain).toString()}function jU(t){if(kn(t.address))throw new Error("Invalid address, cannot convert the string literal `native` to a Universal Address");return t.address.toUniversalAddress().toString()}function uC(t,e,r){let n;if(oM(r)){if(!kn(r.address))return[!1,r];n=r.address}else n=r;if(kn(n)){const i=O$e(t,e);if(!i)throw new Error("Invalid destination token");const s=i.wrappedKey,o=F$e(t,e,s);if(!o)throw new Error("Invalid wrapped token key: "+s);return[!0,{chain:e,address:Ns(e,o.address)}]}return[!1,{chain:e,address:n}]}function A9e(t){return t.chain!==void 0&&t.txid!==void 0}function pB(t){return kme.map(r=>{const n=fs(r);let a="";try{a=nq.get(t,r)}catch{}const i=ON(t,r),s=i?Object.values(i).find(c=>kn(c.address)&&c.wrappedKey):void 0,o=s?i[s.wrappedKey]:void 0;return{key:r,platform:n,network:t,chainId:pn(r),finalityThreshold:Lme.get(r)??0,blockTime:Bme.get(r)??0,contracts:U$e(t,r),nativeTokenDecimals:rq(n),nativeChainId:a,tokenMap:i,wrappedNative:o,explorer:CWe(t,r),rpc:jme(t,r)}}).reduce((r,n)=>({...r,[n.key]:n}),{})}class S9e{constructor(e,r,n){ce(this,"network");ce(this,"chain");ce(this,"config");ce(this,"platform");ce(this,"rpc");ce(this,"protocols",new Map);ce(this,"supportsWormholeCore",()=>this.supportsProtocol("WormholeCore"));ce(this,"getWormholeCore",()=>this.getProtocol("WormholeCore"));ce(this,"supportsTokenBridge",()=>this.supportsProtocol("TokenBridge"));ce(this,"getTokenBridge",()=>this.getProtocol("TokenBridge"));ce(this,"supportsAutomaticTokenBridge",()=>this.supportsProtocol("AutomaticTokenBridge"));ce(this,"getAutomaticTokenBridge",()=>this.getProtocol("AutomaticTokenBridge"));ce(this,"supportsCircleBridge",()=>this.supportsProtocol("CircleBridge"));ce(this,"getCircleBridge",()=>this.getProtocol("CircleBridge"));ce(this,"supportsAutomaticCircleBridge",()=>this.supportsProtocol("AutomaticCircleBridge"));ce(this,"getAutomaticCircleBridge",()=>this.getProtocol("AutomaticCircleBridge"));ce(this,"supportsIbcBridge",()=>this.supportsProtocol("IbcBridge"));ce(this,"getIbcBridge",()=>this.getProtocol("IbcBridge"));ce(this,"supportsPorticoBridge",()=>this.supportsProtocol("PorticoBridge"));ce(this,"getPorticoBridge",()=>this.getProtocol("PorticoBridge"));this.config=r.config[e],this.platform=r,this.chain=this.config.key,this.network=this.config.network,this.rpc=n}getRpc(){return this.rpc=this.rpc?this.rpc:this.platform.getRpc(this.chain),this.rpc}async getDecimals(e){if(kn(e))return this.config.nativeTokenDecimals;if(this.config.tokenMap){const r=_a({chain:this.chain,address:e}),n=R$e(this.network,this.chain,r);if(n)return n.decimals}return this.platform.utils().getDecimals(this.chain,await this.getRpc(),e)}async getBalance(e,r){return this.platform.utils().getBalance(this.chain,await this.getRpc(),e,r)}async getLatestBlock(){return this.platform.utils().getLatestBlock(await this.getRpc())}async getLatestFinalizedBlock(){return this.platform.utils().getLatestFinalizedBlock(await this.getRpc())}async parseTransaction(e){return this.platform.parseWormholeMessages(this.chain,await this.getRpc(),e)}async sendWait(e){return this.platform.utils().sendWait(this.chain,await this.getRpc(),e)}getToken(e){if(this.config.tokenMap&&e in this.config.tokenMap)return this.config.tokenMap[e]}async getNativeWrappedTokenId(){if(this.config.wrappedNative){const{address:r}=this.config.wrappedNative;return{chain:this.chain,address:Ns(this.chain,r)}}const e=await this.getTokenBridge();return{chain:this.chain,address:await e.getWrappedNative()}}async getTokenAccount(e,r){return{chain:this.chain,address:e}}supportsProtocol(e){return E$e(this.chain,e)}async getProtocol(e,r,n){if(!r&&this.protocols.has(e))return this.protocols.get(e);const a=r?{...this.config.contracts,...r}:this.config.contracts,i=n??await this.getRpc(),s=this.platform.getProtocolInitializer(e);let o;if(n){if(r)throw new Error("Custom contracts are currently not supported with custom rpc connection. Add the contracts to the base config.");o=await this.platform.getProtocol(e,i)}else if(S$e(s)){const c=await s.getVersion(i,a);o=new s(this.network,this.chain,i,a,c)}else o=new s(this.network,this.chain,i,a);return r||this.protocols.set(e,o),o}}function W$e(t){return V$e(t)||E9e(t)}function V$e(t){return typeof t=="object"&&"chain"in t&&typeof t.chain=="function"&&"address"in t&&typeof t.address=="function"&&"sign"in t&&typeof t.sign=="function"}function E9e(t){return typeof t=="object"&&"chain"in t&&typeof t.chain=="function"&&"address"in t&&typeof t.address=="function"&&"signAndSend"in t&&typeof t.signAndSend=="function"}class jkt{constructor(e,r,n){ce(this,"_chain");ce(this,"_address");ce(this,"_signer");this._chain=e,this._address=r,this._signer=n}unwrap(){return this._signer}}function y8(t){return t.sequence!==void 0&&t.emitter!==void 0&&t.chain!==void 0}function ZT(t){return t.hash!==void 0}const Kae=t=>[j2(1),{name:"token",binary:"bytes",layout:[{name:"address",..._r},{name:"amount",...F0}]},{name:"sourceDomain",...Lx},{name:"targetDomain",...Lx},{name:"nonce",...fq},{name:"caller",..._r},{name:"mintRecipient",..._r},O8({name:"payload",lengthSize:2},t)],$$e=[j2(1),{name:"targetRelayerFee",...F0},{name:"toNativeTokenAmount",...F0},{name:"targetRecipient",..._r}],H$e=[["DepositWithPayload",Kae()],["TransferWithRelay",Kae($$e)]];m0("AutomaticCircleBridge",H$e);const C9e={binary:"uint",size:4,custom:0,omit:!0},q$e=[{name:"messageBodyVersion",...C9e},{name:"burnToken",..._r},{name:"mintRecipient",..._r},{name:"amount",...F0},{name:"messageSender",..._r}],zU=[{name:"version",...C9e},{name:"sourceDomain",...Lx},{name:"destinationDomain",...Lx},{name:"nonce",...fq},{name:"sender",..._r},{name:"recipient",..._r},{name:"destinationCaller",..._r},{name:"payload",binary:"bytes",layout:q$e}],G$e=[["Message",zU]];m0("CircleBridge",G$e);var R9;(function(t){t.isCircleAttestation=e=>e.message!==void 0,t.deserialize=e=>{const r=Y1(zU,e),n=Pn.encode(F8(e),!0);return[r,n]},t.serialize=e=>G1(zU,e)})(R9||(R9={}));var Zae;(function(t){const e="AutomaticCircleBridge",r=["DepositWithPayload","TransferWithRelay"];t.getTransferDiscriminator=vme(()=>x9e([e,r]))})(Zae||(Zae={}));function Y$e(t){return t.amount!==void 0&&t.from!==void 0&&t.to!==void 0}const Qae={binary:"bytes",size:32,custom:{to:t=>WT(t.byteLength).map(e=>String.fromCharCode(t[e])).join(""),from:t=>new Uint8Array(t.split("").map(e=>e.charCodeAt(0)))}},T9e=[{name:"token",binary:"bytes",layout:[{name:"amount",...F0},{name:"address",..._r},{name:"chain",...cs()}]},{name:"to",binary:"bytes",layout:[{name:"address",..._r},{name:"chain",...cs()}]}],gq=t=>[j2(3),...T9e,{name:"from",..._r},O8({name:"payload"},t)],K$e=[["AttestMeta",[j2(2),{name:"token",binary:"bytes",layout:[{name:"address",..._r},{name:"chain",...cs()}]},{name:"decimals",binary:"uint",size:1},{name:"symbol",...Qae},{name:"name",...Qae}]],["Transfer",[j2(1),...T9e,{name:"fee",...F0}]],["TransferWithPayload",gq()]];m0("TokenBridge",K$e);const Z$e=oWe(["shouldWrapNative","shouldUnwrapNative"]),PU=[{name:"recipientChain",binary:"uint",endianness:"little",size:2},{name:"bridgeNonce",binary:"uint",endianness:"little",size:4},{name:"feeTierStart",binary:"uint",endianness:"little",size:3},{name:"feeTierFinish",binary:"uint",endianness:"little",size:3},{name:"padding",binary:"bytes",size:19},{name:"flags",...Z$e}],OU=[{name:"flagSet",binary:"bytes",layout:PU},{name:"finalTokenAddress",..._r},{name:"recipientAddress",..._r},{name:"cannonAssetAmount",...F0},{name:"minAmountFinish",...F0},{name:"relayerFee",...F0}],Q$e=[["Transfer",gq(OU)]];m0("PorticoBridge",Q$e);var Jae;(function(t){t.deserializePayload=e=>Y1(OU,e),t.serializePayload=e=>G1(OU,e),t.deserializeFlagSet=e=>Y1(PU,e),t.serializeFlagSet=e=>G1(PU,e)})(Jae||(Jae={}));const I9e={binary:"bytes",layout:[{name:"size",binary:"uint",size:4,custom:3*32,omit:!0},{name:"waste",binary:"uint",size:31,custom:0n,omit:!0},{name:"version",binary:"uint",size:1,custom:0,omit:!0},{name:"gasLimit",...F0},{name:"targetChainRefundPerGasUnused",...F0}]},Xae={binary:"bytes",layout:[{name:"chain",...cs()},{name:"address",..._r}]},J$e=[{name:"chain",...cs()},{name:"emitterAddress",..._r},{name:"sequence",...pq}],X$e=[{name:"size",binary:"uint",size:4,custom:12,omit:!0},{name:"domain",...Lx},{name:"nonce",...fq}],D9e={binary:"switch",idSize:1,idTag:"keyType",layouts:[[[1,"VAA"],J$e],[[2,"CCTP"],X$e]]},N9e=t=>[j2(1),{name:"target",...Xae},O8({name:"payload",lengthSize:4},t),{name:"requestedReceiverValue",...F0},{name:"extraReceiverValue",...F0},{name:"executionInfo",...I9e},{name:"refund",...Xae},{name:"refundDeliveryProvider",..._r},{name:"sourceDeliveryProvider",..._r},{name:"senderAddress",..._r},{name:"messageKeys",binary:"array",lengthSize:1,layout:D9e}],eHe=[["DeliveryInstruction",N9e()],["RedeliveryInstruction",[j2(2),{name:"deliveryVaaKey",binary:"bytes",layout:D9e},{name:"targetChain",...cs()},{name:"newRequestedReceiverValue",...F0},{name:"newEncodedExecutionInfo",...I9e},{name:"newSourceDeliveryProvider",..._r},{name:"newSenderAddress",..._r}]]];m0("Relayer",eHe);const tHe=[j2(1),{name:"targetRelayerFee",...F0},{name:"toNativeTokenAmount",...F0},{name:"targetRecipient",..._r}],rHe=[["TransferWithRelay",gq(tHe)]];m0("AutomaticTokenBridge",rHe);const zkt=t=>new Error(`Token ${t} is not a wrapped asset`);var RU;(function(t){const e="TokenBridge",r=["Transfer","TransferWithPayload"],n=["AttestMeta"];[...r,...n],t.getTransferDiscriminator=vme(()=>x9e([e,r]))})(RU||(RU={}));function nHe(t){return t.token!==void 0&&t.amount!==void 0&&t.from!==void 0&&t.to!==void 0}const aHe=[["Add",1],["Subtract",2],["Unknown",3]],FU={binary:"bytes",size:20,custom:{to:t=>Pn.encode(t,!0),from:t=>Pn.decode(t)}},iHe=[["UpgradeContract",[!1,[{name:"newContract",..._r}]]],["RegisterChain",[!0,[{name:"foreignChain",...cs()},{name:"foreignAddress",..._r}]]],["RecoverChainId",[!1,[{name:"evmChainId",binary:"uint",size:32},{name:"newChainId",...cs({allowedChains:_me("Evm")})}]]],["GuardianSetUpgrade",[!0,[{name:"guardianSet",...b9e},{name:"guardians",binary:"array",lengthSize:1,layout:FU}]]],["SetMessageFee",[!1,[{name:"messageFee",binary:"uint",size:32}]]],["TransferFees",[!0,[{name:"amount",binary:"uint",size:32},{name:"recipient",..._r}]]],["UpdateDefaultProvider",[!1,[{name:"defaultProvider",..._r}]]],["RegisterEmitterAndDomain",[!0,[{name:"emitterChain",...cs()},{name:"emitterAddress",..._r},{name:"domain",binary:"uint",size:4}]]],["UpdateFinality",[!1,[{name:"finality",binary:"uint",size:1}]]]],hB={binary:"bytes",size:32},eie=[{name:"contractAddr",..._r},{name:"codeId",binary:"uint",size:8}],sHe=[["StoreCode",[!1,[{name:"wasmHash",...hB}]]],["InstantiateContract",[!1,[{name:"instantiationParamsHash",...hB}]]],["MigrateContract",[!1,[{name:"migrationParamsHash",...hB}]]],["AddWasmInstantiateAllowlist",[!1,eie]],["DeleteWasmInstantiateAllowlist",[!1,eie]]],oHe=(()=>{const t=a=>({binary:"bytes",size:a,custom:_$e}),e=[{name:"height",binary:"uint",size:8}],r=Ame(e),n=a=>[{name:"name",...t(a)},...e];return{binary:"bytes",custom:{to:a=>Y1(n(a.length-r),a),from:a=>G1(n(a.name.length),a)}}})(),cHe=[["ScheduleUpgrade",[!1,oHe]],["CancelUpgrade",[!0,[]]],["SetIbcComposabilityMwContract",[!1,[{name:"contractAddress",..._r}]]]],lHe=[["ModifyBalance",[!1,[{name:"sequence",...pq},{name:"modifiedChain",...cs()},{name:"tokenChain",...cs()},{name:"tokenAddress",..._r},{name:"kind",...sWe(aHe)},{name:"amount",...F0},{name:"reason",...g9e(32)}]]]],uHe=[["ActionUpdateChannelChain",[!1,[{name:"channelId",...g9e(64)},{name:"channelChain",...cs({allowedChains:_me("Cosmwasm")})}]]]],dHe=[["GeneralPurposeEvm",[!1,[{name:"governanceContract",...FU},{name:"targetContract",...FU},{name:"payload",binary:"bytes",lengthSize:2}]]],["GeneralPurposeSolana",[!1,[{name:"governanceContract",..._r},{name:"payload",binary:"bytes"}]]]],k9e=[...iHe,...sHe,...cHe,...lHe,...uHe,...dHe];yme(k9e,0);const tie=Object.fromEntries(k9e),fHe=[["WormholeCore","Core"],["TokenBridge","TokenBridge"],["NftBridge","NftBridge"],["Relayer","WormholeRelayer"],["CircleBridge","CircleIntegration"],["IbcBridge","IbcTranslator"],["IbcReceiver","IbcReceiver"],["GlobalAccountant","GlobalAccountant"],["GeneralPurposeGovernance","GeneralPurposeGovernance"],["WormchainGovernance","WasmdModule"],["GatewayGovernance","GatewayModule"]],pHe=Br(fHe),hHe=t=>({to:t,from:(()=>{const r=new Uint8Array(32),n=pHe(t);for(let a=1;a<=n.length;++a)r[32-a]=n.charCodeAt(n.length-a);return r})()}),mHe=(t,e)=>({to:t,from:e}),bHe=(t,e,r)=>[{name:"protocol",binary:"bytes",custom:hHe(t)},{name:"action",binary:"uint",size:1,custom:mHe(e,r)},{name:"chain",...cs({allowNull:tie[e][0]})},{name:"actionArgs",binary:"bytes",layout:tie[e][1]}],Fn=(t,e,r)=>[e,bHe(t,e,r)],gHe=[Fn("WormholeCore","UpgradeContract",1),Fn("WormholeCore","GuardianSetUpgrade",2),Fn("WormholeCore","SetMessageFee",3),Fn("WormholeCore","TransferFees",4),Fn("WormholeCore","RecoverChainId",5)],yHe=[Fn("TokenBridge","RegisterChain",1),Fn("TokenBridge","UpgradeContract",2),Fn("TokenBridge","RecoverChainId",3)],vHe=[Fn("NftBridge","RegisterChain",1),Fn("NftBridge","UpgradeContract",2),Fn("NftBridge","RecoverChainId",3)],xHe=[Fn("Relayer","RegisterChain",1),Fn("Relayer","UpgradeContract",2),Fn("Relayer","UpdateDefaultProvider",3)],wHe=[Fn("CircleBridge","UpdateFinality",1),Fn("CircleBridge","RegisterEmitterAndDomain",2),Fn("CircleBridge","UpgradeContract",3)],MHe=[Fn("IbcBridge","ActionUpdateChannelChain",1)],AHe=[Fn("IbcReceiver","ActionUpdateChannelChain",1)],SHe=[Fn("GlobalAccountant","ModifyBalance",1)],EHe=[Fn("GeneralPurposeGovernance","GeneralPurposeEvm",1),Fn("GeneralPurposeGovernance","GeneralPurposeSolana",2)],CHe=[Fn("WormchainGovernance","StoreCode",1),Fn("WormchainGovernance","InstantiateContract",2),Fn("WormchainGovernance","MigrateContract",3),Fn("WormchainGovernance","AddWasmInstantiateAllowlist",4),Fn("WormchainGovernance","DeleteWasmInstantiateAllowlist",5)],THe=[Fn("GatewayGovernance","ScheduleUpgrade",1),Fn("GatewayGovernance","CancelUpgrade",2),Fn("GatewayGovernance","SetIbcComposabilityMwContract",3)];m0("WormholeCore",gHe);m0("TokenBridge",yHe);m0("NftBridge",vHe);m0("Relayer",xHe);m0("CircleBridge",wHe);m0("IbcBridge",MHe);m0("IbcReceiver",AHe);m0("GlobalAccountant",SHe);m0("GeneralPurposeGovernance",EHe);m0("WormchainGovernance",CHe);m0("GatewayGovernance",THe);function _9e(t,e){return function(){return t.apply(e,arguments)}}const{toString:IHe}=Object.prototype,{getPrototypeOf:yq}=Object,RN=(t=>e=>{const r=IHe.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),mu=t=>(t=t.toLowerCase(),e=>RN(e)===t),FN=t=>e=>typeof e===t,{isArray:Vg}=Array,jx=FN("undefined");function DHe(t){return t!==null&&!jx(t)&&t.constructor!==null&&!jx(t.constructor)&&j1(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const L9e=mu("ArrayBuffer");function NHe(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&L9e(t.buffer),e}const kHe=FN("string"),j1=FN("function"),B9e=FN("number"),UN=t=>t!==null&&typeof t=="object",_He=t=>t===!0||t===!1,dC=t=>{if(RN(t)!=="object")return!1;const e=yq(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},LHe=mu("Date"),BHe=mu("File"),jHe=mu("Blob"),zHe=mu("FileList"),PHe=t=>UN(t)&&j1(t.pipe),OHe=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||j1(t.append)&&((e=RN(t))==="formdata"||e==="object"&&j1(t.toString)&&t.toString()==="[object FormData]"))},RHe=mu("URLSearchParams"),FHe=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function cM(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t>"u")return;let n,a;if(typeof t!="object"&&(t=[t]),Vg(t))for(n=0,a=t.length;n<a;n++)e.call(null,t[n],n,t);else{const i=r?Object.getOwnPropertyNames(t):Object.keys(t),s=i.length;let o;for(n=0;n<s;n++)o=i[n],e.call(null,t[o],o,t)}}function j9e(t,e){e=e.toLowerCase();const r=Object.keys(t);let n=r.length,a;for(;n-- >0;)if(a=r[n],e===a.toLowerCase())return a;return null}const z9e=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:Te.global,P9e=t=>!jx(t)&&t!==z9e;function UU(){const{caseless:t}=P9e(this)&&this||{},e={},r=(n,a)=>{const i=t&&j9e(e,a)||a;dC(e[i])&&dC(n)?e[i]=UU(e[i],n):dC(n)?e[i]=UU({},n):Vg(n)?e[i]=n.slice():e[i]=n};for(let n=0,a=arguments.length;n<a;n++)arguments[n]&&cM(arguments[n],r);return e}const UHe=(t,e,r,{allOwnKeys:n}={})=>(cM(e,(a,i)=>{r&&j1(a)?t[i]=_9e(a,r):t[i]=a},{allOwnKeys:n}),t),WHe=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),VHe=(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},$He=(t,e,r,n)=>{let a,i,s;const o={};if(e=e||{},t==null)return e;do{for(a=Object.getOwnPropertyNames(t),i=a.length;i-- >0;)s=a[i],(!n||n(s,t,e))&&!o[s]&&(e[s]=t[s],o[s]=!0);t=r!==!1&&yq(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},HHe=(t,e,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return n!==-1&&n===r},qHe=t=>{if(!t)return null;if(Vg(t))return t;let e=t.length;if(!B9e(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},GHe=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&yq(Uint8Array)),YHe=(t,e)=>{const n=(t&&t[Symbol.iterator]).call(t);let a;for(;(a=n.next())&&!a.done;){const i=a.value;e.call(t,i[0],i[1])}},KHe=(t,e)=>{let r;const n=[];for(;(r=t.exec(e))!==null;)n.push(r);return n},ZHe=mu("HTMLFormElement"),QHe=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,a){return n.toUpperCase()+a}),rie=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),JHe=mu("RegExp"),O9e=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};cM(r,(a,i)=>{e(a,i,t)!==!1&&(n[i]=a)}),Object.defineProperties(t,n)},XHe=t=>{O9e(t,(e,r)=>{if(j1(t)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=t[r];if(j1(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},eqe=(t,e)=>{const r={},n=a=>{a.forEach(i=>{r[i]=!0})};return Vg(t)?n(t):n(String(t).split(e)),r},tqe=()=>{},rqe=(t,e)=>(t=+t,Number.isFinite(t)?t:e),mB="abcdefghijklmnopqrstuvwxyz",nie="0123456789",R9e={DIGIT:nie,ALPHA:mB,ALPHA_DIGIT:mB+mB.toUpperCase()+nie},nqe=(t=16,e=R9e.ALPHA_DIGIT)=>{let r="";const{length:n}=e;for(;t--;)r+=e[Math.random()*n|0];return r};function aqe(t){return!!(t&&j1(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const iqe=t=>{const e=new Array(10),r=(n,a)=>{if(UN(n)){if(e.indexOf(n)>=0)return;if(!("toJSON"in n)){e[a]=n;const i=Vg(n)?[]:{};return cM(n,(s,o)=>{const c=r(s,a+1);!jx(c)&&(i[o]=c)}),e[a]=void 0,i}}return n};return r(t,0)},sqe=mu("AsyncFunction"),oqe=t=>t&&(UN(t)||j1(t))&&j1(t.then)&&j1(t.catch),mt={isArray:Vg,isArrayBuffer:L9e,isBuffer:DHe,isFormData:OHe,isArrayBufferView:NHe,isString:kHe,isNumber:B9e,isBoolean:_He,isObject:UN,isPlainObject:dC,isUndefined:jx,isDate:LHe,isFile:BHe,isBlob:jHe,isRegExp:JHe,isFunction:j1,isStream:PHe,isURLSearchParams:RHe,isTypedArray:GHe,isFileList:zHe,forEach:cM,merge:UU,extend:UHe,trim:FHe,stripBOM:WHe,inherits:VHe,toFlatObject:$He,kindOf:RN,kindOfTest:mu,endsWith:HHe,toArray:qHe,forEachEntry:YHe,matchAll:KHe,isHTMLForm:ZHe,hasOwnProperty:rie,hasOwnProp:rie,reduceDescriptors:O9e,freezeMethods:XHe,toObjectSet:eqe,toCamelCase:QHe,noop:tqe,toFiniteNumber:rqe,findKey:j9e,global:z9e,isContextDefined:P9e,ALPHABET:R9e,generateString:nqe,isSpecCompliantForm:aqe,toJSONObject:iqe,isAsyncFn:sqe,isThenable:oqe};function En(t,e,r,n,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),a&&(this.response=a)}mt.inherits(En,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:mt.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const F9e=En.prototype,U9e={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{U9e[t]={value:t}});Object.defineProperties(En,U9e);Object.defineProperty(F9e,"isAxiosError",{value:!0});En.from=(t,e,r,n,a,i)=>{const s=Object.create(F9e);return mt.toFlatObject(t,s,function(c){return c!==Error.prototype},o=>o!=="isAxiosError"),En.call(s,t.message,e,r,n,a),s.cause=t,s.name=t.name,i&&Object.assign(s,i),s};const cqe=null;function WU(t){return mt.isPlainObject(t)||mt.isArray(t)}function W9e(t){return mt.endsWith(t,"[]")?t.slice(0,-2):t}function aie(t,e,r){return t?t.concat(e).map(function(a,i){return a=W9e(a),!r&&i?"["+a+"]":a}).join(r?".":""):e}function lqe(t){return mt.isArray(t)&&!t.some(WU)}const uqe=mt.toFlatObject(mt,{},null,function(e){return/^is[A-Z]/.test(e)});function WN(t,e,r){if(!mt.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,r=mt.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(M,E){return!mt.isUndefined(E[M])});const n=r.metaTokens,a=r.visitor||d,i=r.dots,s=r.indexes,c=(r.Blob||typeof Blob<"u"&&Blob)&&mt.isSpecCompliantForm(e);if(!mt.isFunction(a))throw new TypeError("visitor must be a function");function l(x){if(x===null)return"";if(mt.isDate(x))return x.toISOString();if(!c&&mt.isBlob(x))throw new En("Blob is not supported. Use a Buffer instead.");return mt.isArrayBuffer(x)||mt.isTypedArray(x)?c&&typeof Blob=="function"?new Blob([x]):Te.Buffer.from(x):x}function d(x,M,E){let S=x;if(x&&!E&&typeof x=="object"){if(mt.endsWith(M,"{}"))M=n?M:M.slice(0,-2),x=JSON.stringify(x);else if(mt.isArray(x)&&lqe(x)||(mt.isFileList(x)||mt.endsWith(M,"[]"))&&(S=mt.toArray(x)))return M=W9e(M),S.forEach(function(D,k){!(mt.isUndefined(D)||D===null)&&e.append(s===!0?aie([M],k,i):s===null?M:M+"[]",l(D))}),!1}return WU(x)?!0:(e.append(aie(E,M,i),l(x)),!1)}const h=[],m=Object.assign(uqe,{defaultVisitor:d,convertValue:l,isVisitable:WU});function y(x,M){if(!mt.isUndefined(x)){if(h.indexOf(x)!==-1)throw Error("Circular reference detected in "+M.join("."));h.push(x),mt.forEach(x,function(S,T){(!(mt.isUndefined(S)||S===null)&&a.call(e,S,mt.isString(T)?T.trim():T,M,m))===!0&&y(S,M?M.concat(T):[T])}),h.pop()}}if(!mt.isObject(t))throw new TypeError("data must be an object");return y(t),e}function iie(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function vq(t,e){this._pairs=[],t&&WN(t,this,e)}const V9e=vq.prototype;V9e.append=function(e,r){this._pairs.push([e,r])};V9e.toString=function(e){const r=e?function(n){return e.call(this,n,iie)}:iie;return this._pairs.map(function(a){return r(a[0])+"="+r(a[1])},"").join("&")};function dqe(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function $9e(t,e,r){if(!e)return t;const n=r&&r.encode||dqe,a=r&&r.serialize;let i;if(a?i=a(e,r):i=mt.isURLSearchParams(e)?e.toString():new vq(e,r).toString(n),i){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class sie{constructor(){this.handlers=[]}use(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){mt.forEach(this.handlers,function(n){n!==null&&e(n)})}}const H9e={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},fqe=typeof URLSearchParams<"u"?URLSearchParams:vq,pqe=typeof FormData<"u"?FormData:null,hqe=typeof Blob<"u"?Blob:null,mqe=(()=>{let t;return typeof navigator<"u"&&((t=navigator.product)==="ReactNative"||t==="NativeScript"||t==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),bqe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Ul={classes:{URLSearchParams:fqe,FormData:pqe,Blob:hqe},isStandardBrowserEnv:mqe,isStandardBrowserWebWorkerEnv:bqe,protocols:["http","https","file","blob","url","data"]};function gqe(t,e){return WN(t,new Ul.classes.URLSearchParams,Object.assign({visitor:function(r,n,a,i){return Ul.isNode&&mt.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function yqe(t){return mt.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function vqe(t){const e={},r=Object.keys(t);let n;const a=r.length;let i;for(n=0;n<a;n++)i=r[n],e[i]=t[i];return e}function q9e(t){function e(r,n,a,i){let s=r[i++];const o=Number.isFinite(+s),c=i>=r.length;return s=!s&&mt.isArray(a)?a.length:s,c?(mt.hasOwnProp(a,s)?a[s]=[a[s],n]:a[s]=n,!o):((!a[s]||!mt.isObject(a[s]))&&(a[s]=[]),e(r,n,a[s],i)&&mt.isArray(a[s])&&(a[s]=vqe(a[s])),!o)}if(mt.isFormData(t)&&mt.isFunction(t.entries)){const r={};return mt.forEachEntry(t,(n,a)=>{e(yqe(n),a,r,0)}),r}return null}const xqe={"Content-Type":void 0};function wqe(t,e,r){if(mt.isString(t))try{return(e||JSON.parse)(t),mt.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}const $g={transitional:H9e,adapter:["xhr","http"],transformRequest:[function(e,r){const n=r.getContentType()||"",a=n.indexOf("application/json")>-1,i=mt.isObject(e);if(i&&mt.isHTMLForm(e)&&(e=new FormData(e)),mt.isFormData(e))return a&&a?JSON.stringify(q9e(e)):e;if(mt.isArrayBuffer(e)||mt.isBuffer(e)||mt.isStream(e)||mt.isFile(e)||mt.isBlob(e))return e;if(mt.isArrayBufferView(e))return e.buffer;if(mt.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return gqe(e,this.formSerializer).toString();if((o=mt.isFileList(e))||n.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return WN(o?{"files[]":e}:e,c&&new c,this.formSerializer)}}return i||a?(r.setContentType("application/json",!1),wqe(e)):e}],transformResponse:[function(e){const r=this.transitional||$g.transitional,n=r&&r.forcedJSONParsing,a=this.responseType==="json";if(e&&mt.isString(e)&&(n&&!this.responseType||a)){const s=!(r&&r.silentJSONParsing)&&a;try{return JSON.parse(e)}catch(o){if(s)throw o.name==="SyntaxError"?En.from(o,En.ERR_BAD_RESPONSE,this,null,this.response):o}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ul.classes.FormData,Blob:Ul.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};mt.forEach(["delete","get","head"],function(e){$g.headers[e]={}});mt.forEach(["post","put","patch"],function(e){$g.headers[e]=mt.merge(xqe)});const Mqe=mt.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Aqe=t=>{const e={};let r,n,a;return t&&t.split(`
|
|
67
|
+
Hint: Have you called \`context.registerProvider(${n}, provider)\` yet?`);ce(this,"domain");ce(this,"domainName");ce(this,"domainNumber");this.name="NoProviderError",this.domain=n,this.domainName=a,this.domainNumber=i}}const WT=t=>[...Array(t).keys()],yme=(t,e)=>t.map(r=>r[e]),Mh=t=>WT(t[0].length).map(e=>WT(t.length).map(r=>t[r][e])),$Ue=(t,e,r)=>{const n=new Set(Array.isArray(e)?e:[e]);return t.filter((a,i)=>n.has(i)!==r)};function Mkt(t,e=!1){if(t.length===0)throw new Error("Can't calculate median of empty array");const r=e?t:[...t].sort((s,o)=>s>o?1:s<o?-1:0),n=Math.floor(r.length/2);if(r.length%2===1)return r[n];const a=r[n-1],i=r[n];if(typeof a=="bigint"&&typeof i=="bigint")return(a+i)/2n;if(typeof a=="number"&&typeof i=="number")return(a+i)/2;throw new Error("Can't calculate median of array with mixed number and bigint")}function HUe(t){return["string","number","symbol","bigint","boolean"].includes(typeof t)}const iae=t=>t.length===2&&!Array.isArray(t[0])&&Array.isArray(t[1]),VT=t=>t.length===0?[]:Array.isArray(t[0])?t.map(([e,r])=>Array.isArray(r)?(iae(r)?VT(r):r).map(n=>[e,n].flat()):[[e,r]]).flat():iae(t)?VT(t[1]).map(e=>[t[0],e]):t,qUe=(t,e)=>{const r=VT(t);if(r.length===0)throw new Error("Invalid mapping: empty");const n=e===void 0?[WT(r[0].length-1),[r[0].length-1]]:e.map(m=>typeof m=="number"?[m]:m);let a=[],i=!0;const s=(m,y)=>{const x=Array.from(new Set(m[0]).values()),M=new Map(x.map(S=>[S,[]]));for(const[S,T]of m[0].entries())M.get(T).push(S);if(m.length===1){const S=Object.fromEntries(x.map(T=>[T,M.get(T).map(D=>y[D].length===1?y[D][0]:y[D])]));if(i){for(const T of M.values())if(T.length>1)return i=!1,S;a.push(S)}return S}const E=Mh(m.slice(1));return Object.fromEntries(x.map(S=>{const T=M.get(S),D=Mh(T.map(_=>E[_])),k=T.map(_=>y[_]);return[S,s(D,k)]}))},o=Mh(r),c=m=>{const y=o[m];if(y===void 0)throw new Error(`Invalid shape: column ${m} does not exist`);return y},[l,d]=n.map(m=>m.map(y=>c(y)));if(l.length===0)throw new Error("Invalid shape: empty key set");if(d.length===0)throw new Error("Invalid shape: empty value set");for(const m of l)for(const y of m)if(!HUe(y))throw new Error(`Invalid key: ${y} in ${m}`);const h=s(l,Mh(d));if(i)for(const m of a)for(const y of Object.keys(m))m[y]=m[y][0];return h};function Br(t,e){const r=qUe(t,e),n=(...a)=>a.reduce((i,s)=>i?i[s.toString()]??void 0:void 0,r);return Object.assign(n,{has:(...a)=>n(...a)!==void 0,get:(...a)=>n(...a),subMap:a=>r[a.toString()]})}function vme(t){let e=null;return()=>(e||(e=t()),e)}function GUe(t){try{return t(),!1}catch{return!0}}function Akt(t,e,r){return t<e?e:t>r?r:t}var YUe=["int","uint","bytes","array","switch"],xme="big",TN=6,P8=t=>typeof t=="number"||typeof t=="bigint",zg=t=>t instanceof Uint8Array,KUe=t=>P8(t)||zg(t),Ix=t=>YUe.includes(t==null?void 0:t.binary),ZUe=t=>Ix(t)||Array.isArray(t)&&t.every(Ix),QUe=t=>typeof(t==null?void 0:t.from)=="number",JUe=t=>typeof(t==null?void 0:t.from)=="bigint",XUe=t=>QUe(t)||JUe(t),Pg=t=>zg(t==null?void 0:t.from),eWe=t=>XUe(t)||Pg(t),wme=(t,e)=>{if(t!==e)throw new Error(`size mismatch: layout size: ${t}, data size: ${e}`);return e},aC=(t,e)=>"size"in t&&t.size!==void 0?wme(t.size,e):e,bU=(t,e)=>{if(t!=e)throw new Error(`value mismatch: (constant) layout value: ${t}, data value: ${e}`)},gU=(t,e,r)=>{const n=(l,d)=>d===void 0?[0,l.length]:Array.isArray(d)?d:[d,l.length],[a,i]=n(t,r==null?void 0:r.customSlice),[s,o]=n(e,r==null?void 0:r.dataSlize),c=i-a;wme(c,o-s);for(let l=0;l<t.length;++l)if(t[l+a]!==e[l+s])throw new Error(`binary data mismatch: layout value: ${t}, offset: ${a}, data value: ${e}, offset: ${s}`)};function Mme(t,e){const r=e[t.idTag??"id"];return t.layouts.find(([n])=>(Array.isArray(n)?n[1]:n)==r)}function Ame(t){return nh(t,g1)}var g1=Symbol("staticCalc");function tWe(t,e){const r=[],n=nh(t,e,r);if(n===null)throw new Error(`coding error: couldn't calculate layout size for layout ${t} with data ${e}`);return[n,r]}function sae(t,e,r){const n=a=>(r!==void 0&&r.push(a),a);switch(t.binary){case"int":case"uint":return t.size;case"bytes":{const a="lengthSize"in t?t.lengthSize|0:0;if("layout"in t){const{custom:s}=t,o=nh(t.layout,s===void 0?e:typeof s.from=="function"?e!==g1?n(s.from(e)):g1:s.from,r);return o===null?"size"in t?t.size??null:null:a+aC(t,o)}const{custom:i}=t;return zg(i)?a+i.length:Pg(i)?a+i.from.length:i===void 0?e!==g1?a+aC(t,e.length):null:e!==g1?a+aC(t,n(i.from(e)).length):null}case"array":{const a="length"in t?t.length:void 0;if(e===g1){if(a!==void 0){const s=nh(t.layout,g1,r);return s!==null?a*s:null}return null}let i=0;if(a!==void 0&&a!==e.length)throw new Error(`array length mismatch: layout length: ${a}, data length: ${e.length}`);"lengthSize"in t&&t.lengthSize!==void 0&&(i+=t.lengthSize);for(let s=0;s<e.length;++s){const o=nh(t.layout,e[s],r);if(o===null)return null;i+=o}return i}case"switch":{if(e!==g1){const[i,s]=Mme(t,e),o=nh(s,e,r);return o!==null?t.idSize+o:null}let a=null;for(const[i,s]of t.layouts){const o=nh(s,g1,r);if(a===null)a=o;else if(o!==a)return null}return t.idSize+a}}}function nh(t,e,r){if(Ix(t))return sae(t,e,r);let n=0;for(const a of t){let i;if(e===g1)i=g1;else if(!("omit"in a)||!a.omit){if(!(a.name in e))throw new Error(`missing data for layout item: ${a.name}`);i=e[a.name]}const s=sae(a,i,r);if(s===null){if(e!==g1)throw new Error(`coding error: couldn't calculate size for layout item: ${a.name}`);return null}n+=s}return n}var aB=(t,e)=>{t.bytes.set(e,t.offset),t.offset+=e.length},oae=t=>t.bytesConversions[t.position++];function G1(t,e,r){const[n,a]=tWe(t,e),i={bytes:r??new Uint8Array(n),offset:0};if(iC(t,e,i,{bytesConversions:a,position:0}),i.offset!==i.bytes.length)throw new Error(`encoded data is shorter than expected: ${i.bytes.length} > ${i.offset}`);return r?i.offset:i.bytes}var rWe=2**(TN*8);function Ah(t,e,r,n=xme,a=!1){if(!a&&t<0)throw new Error(`Value ${t} is negative but unsigned`);if(typeof t=="number"){if(!Number.isInteger(t))throw new Error(`Value ${t} is not an integer`);if(e>TN){if(t>=rWe)throw new Error(`Value ${t} is too large to be safely converted into an integer`);if(a&&t<-281474976710656)throw new Error(`Value ${t} is too small to be safely converted into an integer`)}}const i=2n**BigInt(e*8-(a?1:0));if(t>=i)throw new Error(`Value ${t} is too large for ${e} bytes`);if(a&&t<-i)throw new Error(`Value ${t} is too small for ${e} bytes`);for(let s=0;s<e;++s)r.bytes[r.offset+s]=Number(BigInt(t)>>BigInt(8*(n==="big"?e-s-1:s))&0xffn);r.offset+=e}function iC(t,e,r,n){if(Ix(t))cae(t,e,r,n);else for(const a of t)try{cae(a,e[a.name],r,n)}catch(i){throw i.message=`when serializing item '${a.name}': ${i.message}`,i}}function cae(t,e,r,n){switch(t.binary){case"int":case"uint":{const a=(()=>{var i;return P8(t.custom)?("omit"in t&&t.omit||bU(t.custom,e),t.custom):P8((i=t==null?void 0:t.custom)==null?void 0:i.from)?t.custom.from:t.custom!==void 0?t.custom.from(e):e})();Ah(a,t.size,r,t.endianness,t.binary==="int");break}case"bytes":{const a=r.offset;if("lengthSize"in t&&t.lengthSize!==void 0&&(r.offset+=t.lengthSize),"layout"in t){const{custom:i}=t;let s;i===void 0?s=e:typeof i.from!="function"?s=i.from:s=oae(n),iC(t.layout,s,r,n)}else{const{custom:i}=t;zg(i)?("omit"in t&&t.omit||gU(i,e),aB(r,i)):Pg(i)?aB(r,i.from):aB(r,i!==void 0?oae(n):e)}if("lengthSize"in t&&t.lengthSize!==void 0){const i=r.offset-a-t.lengthSize,s=r.offset;r.offset=a,Ah(i,t.lengthSize,r,t.lengthEndianness),r.offset=s}else aC(t,r.offset-a);break}case"array":{if("length"in t&&t.length!==e.length)throw new Error(`array length mismatch: layout length: ${t.length}, data length: ${e.length}`);"lengthSize"in t&&t.lengthSize!==void 0&&Ah(e.length,t.lengthSize,r,t.lengthEndianness);for(let a=0;a<e.length;++a)iC(t.layout,e[a],r,n);break}case"switch":{const[a,i]=Mme(t,e),s=Array.isArray(a)?a[0]:a;Ah(s,t.idSize,r,t.idEndianness),iC(i,e,r,n);break}}}function Sme(t){const e=t.custom;if(!("cachedSerializedFrom"in e)&&(e.cachedSerializedFrom=G1(t.layout,e.from),"size"in t&&t.size!==void 0&&t.size!==e.cachedSerializedFrom.length))throw new Error("Layout specification error: custom.from does not serialize to specified size");return e.cachedSerializedFrom}function Y1(t,e,r){const n=r??!0,a={bytes:e,offset:0,end:e.length},i=W7(t,a);if(n&&a.offset!==a.end)throw new Error(`encoded data is longer than expected: ${a.end} > ${a.offset}`);return n?i:[i,a.offset]}function sC(t,e){const r=t.offset+e;if(r>t.end)throw new Error(`chunk is shorter than expected: ${t.end} < ${r}`);t.offset=r}function W7(t,e){if(!Array.isArray(t))return lae(t,e);let r={};for(const n of t)try{(n.omit?{}:r)[n.name]=lae(n,e)}catch(a){throw a.message=`when deserializing item '${n.name}': ${a.message}`,a}return r}function zA(t,e,r=xme,n=!1){let a=0n;for(let i=0;i<e;++i)a|=BigInt(t.bytes[t.offset+i])<<BigInt(8*(r==="big"?e-i-1:i));return n&&t.bytes[t.offset+(r==="big"?0:e-1)]&128&&(a-=1n<<BigInt(8*e)),sC(t,e),e>TN?a:Number(a)}function lae(t,e){switch(t.binary){case"int":case"uint":{const r=zA(e,t.size,t.endianness,t.binary==="int"),{custom:n}=t;return P8(n)?(bU(n,r),n):P8(n==null?void 0:n.from)?(bU(n.from,r),n.to):n!==void 0?n.to(r):r}case"bytes":{const r="lengthSize"in t&&t.lengthSize!==void 0?zA(e,t.lengthSize,t.lengthEndianness):t==null?void 0:t.size;if("layout"in t){const{custom:o}=t,c=e.offset;let l;if(r===void 0)l=W7(t.layout,e);else{const d={...e,end:e.offset+r};if(sC(e,r),l=W7(t.layout,d),d.offset!==d.end)throw new Error(`read less data than expected: ${d.offset-e.offset} < ${r}`)}return o!==void 0?typeof o.from!="function"?(gU(Sme(t),e.bytes,{dataSlize:[c,e.offset]}),o.to):o.to(l):l}const{custom:n}=t;{let o,c;if(zg(n)?o=n:Pg(n)&&(o=n.from,c=n.to),o!==void 0){const l=r??o.length,d=e.bytes.subarray(e.offset,e.offset+l);return gU(o,d),sC(e,l),c??o}}const a=e.offset,i=r!==void 0?e.offset+r:e.end;sC(e,i-a);const s=e.bytes.subarray(a,i);return n!==void 0?n.to(s):s}case"array":{let r=[];const{layout:n}=t,a=()=>{const s=W7(n,e);r.push(s)};let i=null;if("length"in t&&t.length!==void 0?i=t.length:"lengthSize"in t&&t.lengthSize!==void 0&&(i=zA(e,t.lengthSize,t.lengthEndianness)),i!==null)for(let s=0;s<i;++s)a();else for(;e.offset<e.end;)a();return r}case"switch":{const r=zA(e,t.idSize,t.idEndianness),{layouts:n}=t;if(n.length===0)throw new Error("switch item has no layouts");const a=typeof n[0][0]=="number",i=n.find(([l])=>a?l===r:l[0]===r);if(i===void 0)throw new Error(`unknown id value: ${r}`);const[s,o]=i,c=W7(o,e);return{[t.idTag??"id"]:a?r:s[1],...c}}}}function uae(t,e){return oC(t,e)}function dae(t,e){switch(t.binary){case"bytes":if("layout"in t){const{custom:r}=t;return r===void 0||typeof r.from!="function"?oC(t.layout,r?r.from:e):e}case"int":case"uint":{const{custom:r}=t;return t!=null&&t.omit?void 0:KUe(r)?r:eWe(r)?r.to:e}case"array":return Array.isArray(e)?e.map(r=>oC(t.layout,r)):void 0;case"switch":{const r=e[t.idTag??"id"],[n,a]=t.layouts.find(([i])=>(Array.isArray(i)?i[1]:i)==r);return{[t.idTag??"id"]:r,...oC(a,e)}}}}function oC(t,e){if(e=e??{},Ix(t))return dae(t,e);const r={};for(const n of t){const a=dae(n,e[n.name]??{});a!==void 0&&(r[n.name]=a)}return r}function nWe(t,e){const[r,n]=iWe(t);if(!r)throw new Error("Cannot uniquely distinguished the given layouts");return a=>{const i=n(a);return i.length===0?null:i[0]}}function yU(t){return t.reduce((e,r)=>e|BigInt(1)<<BigInt(r),BigInt(0))}function PA(t){const e=[];for(let r=0n;t>0n;t>>=1n,++r)t&1n&&e.push(Number(r));return e}function Ri(t){let e=0;for(;t>0n;t>>=1n)e+=Number(t&1n);return e}var fae=t=>t>0?2**(8*t)-1:1/0;function pae(t,e,r){var n;switch(t.binary){case"int":case"uint":{const a=P8(t.custom)?t.custom:P8((n=t==null?void 0:t.custom)==null?void 0:n.from)?t.custom.from:null;if(a!==null&&e!==null){const i={bytes:new Uint8Array(t.size),offset:0};Ah(a,t.size,i,t.endianness,t.binary==="int"),r.push([e,i.bytes])}return[t.size,t.size]}case"bytes":{const a="lengthSize"in t?t.lengthSize|0:0;let i,s;if("layout"in t){const{custom:c}=t;if(c!==void 0&&typeof c.from!="function")i=Sme(t),s=i.length;else{const l=Ame(t.layout);l!==null&&(s=l)}}else{const{custom:c}=t;zg(c)?(i=c,s=c.length):Pg(c)&&(i=c.from,s=c.from.length)}if(a>0&&e!==null){if(s!==void 0){const c={bytes:new Uint8Array(a),offset:0},l=t.lengthEndianness;Ah(s,a,c,l,!1),r.push([e,c.bytes])}e+=a}if(i!==void 0)return e!==null&&r.push([e,i]),[a+i.length,a+i.length];const o="size"in t&&t.size!==void 0?[t.size,t.size]:void 0;if("layout"in t){const c=cC(t.layout,e,r);return o??[a+c[0],a+c[1]]}return o??[a,fae(a)]}case"array":{if("length"in t){let i=[];const s=cC(t.layout,0,i);if(e!==null)if(s[0]!==s[1]){if(t.length>0)for(const[o,c]of i)r.push([e+o,c])}else for(let o=0;o<t.length;++o)for(const[c,l]of i)r.push([e+c+o*s[0],l]);return[t.length*s[0],t.length*s[1]]}const a=t.lengthSize|0;return[a,fae(a)]}case"switch":{const a=t.layouts.map(c=>[]),{idSize:i,idEndianness:s}=t,o=t.layouts.map(([c,l],d)=>{const h=Array.isArray(c)?c[0]:c;if(e!==null){const y={bytes:new Uint8Array(i),offset:0};Ah(h,i,y,s),a[d].push([0,y.bytes])}const m=cC(l,e!==null?i:null,a[d]);return[m[0]+i,m[1]+i]});return e!==null&&a.every(c=>c.length>0)&&(()=>{const c=Math.min(...a.map(d=>d.at(-1)[0]+d.at(-1)[1].length)),l=a.map(d=>0);for(let d=0;d<c;){let h=null,m=0;for(;m<a.length;){let y=l[m];const x=a[m],[M,E]=x[y];if(M+E.length<=d){if(++y,y===x.length)return;l[m]=y,d=x[y][0];break}const S=E[d-M];if(h===null&&(h=S),S!==h){++d;break}++m}m===a.length&&(r.push([e+d,new Uint8Array([h])]),++d)}})(),[Math.min(...o.map(([c])=>c)),Math.max(...o.map(([c,l])=>l))]}}}function cC(t,e,r){if(!Array.isArray(t))return pae(t,e,r);let n=[0,0];for(const a of t){const i=pae(a,e,r);n[0]+=i[0],n[1]+=i[1],e!==null&&(e=i[0]===i[1]?e+i[0]:null)}return n}function aWe(t){const e=new Map;let r=[];const n=a=>{for(;r.length>0&&r[0][0]<a;){const i=r[0][0]+1,s=r.findIndex(([o])=>i<=o);s===-1?r=[]:r.splice(0,s),e.set(i,yU(r.map(([,o])=>o)))}};for(const[[a,i],s]of t){n(a);const o=r.findIndex(([c])=>c>i);o===-1?r.push([i,s]):r.splice(o,0,[i,s]),e.set(a,yU(r.map(([,c])=>c)))}return n(1/0),e}function iWe(t){if(t.length===0)throw new Error("Cannot discriminate empty set of layouts");const e=0n,r=(1n<<BigInt(t.length))-1n,n=t.map(()=>[]),a=t.map((D,k)=>cC(D,0,n[k])),i=a.map((D,k)=>[D,k]).sort(([[D]],[[k]])=>D-k),s=(()=>{let D=r;const k=new Map;for(const[[_],L]of i)D^=1n<<BigInt(L),k.set(_,D);return k})(),o=aWe(i),c=t.length-Math.max(...[...o.values()].map(D=>Ri(D))),l=D=>{let k=r;for(const[_,L]of s){if(D<_)break;k=L}return k},d=D=>{let k=e;for(const[_,L]of o){if(D<_)break;k=L}return k},h=Array.from({length:Math.max(...n.map(D=>D.length>0?D.at(-1)[0]+D.at(-1)[1].length:0))}).map(()=>[]);for(let D=0;D<n.length;++D)for(const[k,_]of n[D])for(let L=0;L<_.length;++L)h[k+L].push([_[L],D]);let m=[];for(const[D,k]of h.entries()){const _=l(D),L=_^yU(k.map(([,F])=>F)),O=r^_,B=new Map;for(const[F,I]of k)B.has(F)||B.set(F,e),B.set(F,B.get(F)|1n<<BigInt(I));let z=t.length-Math.max(Ri(L),Ri(O));for(const F of B.values()){const I=k.length-Ri(F)+Ri(O);z=Math.min(z,I)}if(z!==0){if(z===t.length-1)return[!0,F=>PA(F.length<=D?O:B.get(F[D])??e)];m.push([z,D,O,B,L])}}if(c===t.length-1)return[!0,D=>PA(d(D.length))];m.sort(([D],[k])=>k-D);let y=!0;const x=new Map,M=new Map,E=(D,k)=>{x.set(D,k),M.has(Ri(D))||M.set(Ri(D),[]),M.get(Ri(D)).push(D)},S=(D,k)=>{if(Ri(D)<=1||x.has(D))return;let _=0;const L=new Map;for(const B of PA(D)){const z=a[B][0],F=o.get(z)&D;L.set(z,F),_=Math.max(_,Ri(F))}_=Ri(D)-_;const O=[];for(const[B,z,F,I,u]of k){const f=new Map;let b=0;for(const[A,N]of I){const w=N&D;Ri(w)>0&&(f.set(A,w),b+=Ri(w))}const g=F&D;let v=f.size>0?B:0;for(const A of f.values()){const N=b-Ri(A)+Ri(g);v=Math.min(v,N)}if(v!==0){if(v===Ri(D)-1){E(D,[z,g,f]);return}O.push([v,z,g,f,u&D])}}if(_===Ri(D)-1){E(D,"size");return}if(O.sort(([B],[z])=>z-B),O.length>0&&O[0][0]>=_){const[,B,z,F,I]=O[0];E(D,[B,z,F]),S(z,O);for(const u of F.values())S(u|I,O.slice(1));return}if(_>0){E(D,"size");for(const B of L.values())S(B,O);return}E(D,"indistinguishable"),y=!1};S(r,m);const T=D=>{for(let k=Ri(D)+1;k<t.length-2;++k)for(const _ of M.get(k)??[])if((D&_)==D)return x.get(_);throw new Error("Implementation error in layout discrimination algorithm")};return[y,D=>{let k=r,_=x.get(k);for(;_!=="indistinguishable";){if(_==="size")k&=d(D.length);else{const[L,O,B]=_;if(D.length<=L)k&=O;else{const z=D[L];for(const[F,I]of B)F!==z&&(k^=k&I);k^=k&O}}if(Ri(k)<=1)break;_=x.get(k)??T(k)}return PA(k)}]}var O8=(t,e)=>({...t,binary:"bytes",...e===void 0?{}:ZUe(e)?{layout:e}:e instanceof Uint8Array||Pg(e)||!Array.isArray(e)?{custom:e}:{layout:e[0],custom:e[1]}});function sWe(t,e){const r=Object.fromEntries(t.map(([a,i])=>[i,a])),n=Object.fromEntries(t);return{binary:"uint",size:(e==null?void 0:e.size)??1,endianness:(e==null?void 0:e.endianness)??"big",custom:{to:a=>{const i=r[a];if(i===void 0)throw new Error(`Invalid enum value: ${a}`);return i},from:a=>n[a]}}}function oWe(t,e){return{binary:"uint",size:Math.ceil(t.length/8),custom:{to:r=>{const n={};for(let a=0;a<t.length;++a)t[a]&&(n[t[a]]=(BigInt(r)&1n<<BigInt(a))!==0n);return n},from:r=>{let n=0n;for(let a=0;a<t.length;++a)t[a]&&r[t[a]]&&(n|=1n<<BigInt(a));return t.length>TN?n:Number(n)}}}}function cWe(t,e){return Number(Number(t).toFixed(e))}function m8(t,e){if(lWe(t,e),t=t.toString(),t.includes("e"))throw new Error("Scientific notation is not supported yet by Amount");const r=t.split(".");if(r.length>2)throw"Too many decimals";let[n,a]=r.length===0?["0",""]:r.length===1?[r[0],""]:r;if(a=a.padEnd(e,"0"),a.length>e){if(BigInt(a.substring(e))!==0n)throw new Error("Amount: invalid input. Decimals too low.");a=a.substring(0,e)}return{amount:BigInt(n+a).toString(),decimals:e}}function Is(t,e){if(t.decimals<=e)return t;const r=BigInt(t.decimals-e);return{amount:(Pr(t)/10n**r*10n**r).toString(),decimals:t.decimals}}function d2(t,e){if(t.decimals===e)return t;if(t.amount==="0")return{amount:t.amount,decimals:e};const r=e-t.decimals;if(r>0)return{amount:t.amount+"0".repeat(r),decimals:e};if(BigInt(t.amount.substring(t.amount.length+r))===0n)return{amount:t.amount.substring(0,t.amount.length+r),decimals:e};throw new Error(`scaleAmount(${JSON.stringify(t)}, ${e}) would result in altered amount. Use truncateAmount first if you intended to truncate it.`)}function da(t,e){return{amount:t.toString(),decimals:e}}function Pr(t){return Eme(t),BigInt(t.amount)}function di(t,e){Eme(t);let r=t.amount.substring(0,t.amount.length-t.decimals).padStart(1,"0"),n=t.amount.substring(t.amount.length-t.decimals).padStart(t.decimals,"0");if(e!==void 0){for(;n.length>e&&n[n.length-1]==="0";)n=n.substring(0,n.length-1);n=n.padEnd(e,"0")}else n=n.replace(/0+$/,"");return n.length>0?`${r}.${n}`:r}function _c(t){return Number(di(t))}function hae(t,e){return di(da(t,e))}function lWe(t,e){if(typeof t=="number"){if(!isFinite(t))throw new Error("Amount: invalid input. Amount must be finite");if(t<0)throw new Error("Amount: invalid input. Amount cannot be negative")}else if(!/^[0-9\.]*$/.test(t))throw new Error("Amount: invalid input. Must only contain digits.");if(!isFinite(e))throw new Error("Amount: invalid input. Decimals must be finite")}function Eme(t){if(!/^[0-9]*$/.test(t.amount))throw new Error("Amount: invalid input. Must only contain digits.");if(t.decimals<0)throw new Error("Amount: invalid input. Decimals must be >= 0");if(!isFinite(t.decimals))throw new Error("Amount: invalid input. Decimals must be a finite number.")}/*! scure-base - MIT License (c) 2022 Paul Miller (paulmillr.com) */function Dx(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&t.constructor.name==="Uint8Array"}function Cme(t,e){return Array.isArray(e)?e.length===0?!0:t?e.every(r=>typeof r=="string"):e.every(r=>Number.isSafeInteger(r)):!1}function Tme(t){if(typeof t!="function")throw new Error("function expected");return!0}function z9(t,e){if(typeof e!="string")throw new Error(`${t}: string expected`);return!0}function Og(t){if(!Number.isSafeInteger(t))throw new Error(`invalid integer: ${t}`)}function $T(t){if(!Array.isArray(t))throw new Error("array expected")}function HT(t,e){if(!Cme(!0,e))throw new Error(`${t}: array of strings expected`)}function QH(t,e){if(!Cme(!1,e))throw new Error(`${t}: array of numbers expected`)}function aM(...t){const e=i=>i,r=(i,s)=>o=>i(s(o)),n=t.map(i=>i.encode).reduceRight(r,e),a=t.map(i=>i.decode).reduce(r,e);return{encode:n,decode:a}}function IN(t){const e=typeof t=="string"?t.split(""):t,r=e.length;HT("alphabet",e);const n=new Map(e.map((a,i)=>[a,i]));return{encode:a=>($T(a),a.map(i=>{if(!Number.isSafeInteger(i)||i<0||i>=r)throw new Error(`alphabet.encode: digit index outside alphabet "${i}". Allowed: ${t}`);return e[i]})),decode:a=>($T(a),a.map(i=>{z9("alphabet.decode",i);const s=n.get(i);if(s===void 0)throw new Error(`Unknown letter: "${i}". Allowed: ${t}`);return s}))}}function DN(t=""){return z9("join",t),{encode:e=>(HT("join.decode",e),e.join(t)),decode:e=>(z9("join.decode",e),e.split(t))}}function uWe(t,e="="){return Og(t),z9("padding",e),{encode(r){for(HT("padding.encode",r);r.length*t%8;)r.push(e);return r},decode(r){HT("padding.decode",r);let n=r.length;if(n*t%8)throw new Error("padding: invalid, string should have whole number of bytes");for(;n>0&&r[n-1]===e;n--)if((n-1)*t%8===0)throw new Error("padding: invalid, string has too much padding");return r.slice(0,n)}}}function mae(t,e,r){if(e<2)throw new Error(`convertRadix: invalid from=${e}, base cannot be less than 2`);if(r<2)throw new Error(`convertRadix: invalid to=${r}, base cannot be less than 2`);if($T(t),!t.length)return[];let n=0;const a=[],i=Array.from(t,o=>{if(Og(o),o<0||o>=e)throw new Error(`invalid integer: ${o}`);return o}),s=i.length;for(;;){let o=0,c=!0;for(let l=n;l<s;l++){const d=i[l],h=e*o,m=h+d;if(!Number.isSafeInteger(m)||h/e!==o||m-d!==h)throw new Error("convertRadix: carry overflow");const y=m/r;o=m%r;const x=Math.floor(y);if(i[l]=x,!Number.isSafeInteger(x)||x*r+o!==m)throw new Error("convertRadix: carry overflow");if(c)x?c=!1:n=l;else continue}if(a.push(o),c)break}for(let o=0;o<t.length-1&&t[o]===0;o++)a.push(0);return a.reverse()}const Ime=(t,e)=>e===0?t:Ime(e,t%e),qT=(t,e)=>t+(e-Ime(t,e)),lC=(()=>{let t=[];for(let e=0;e<40;e++)t.push(2**e);return t})();function vU(t,e,r,n){if($T(t),e<=0||e>32)throw new Error(`convertRadix2: wrong from=${e}`);if(r<=0||r>32)throw new Error(`convertRadix2: wrong to=${r}`);if(qT(e,r)>32)throw new Error(`convertRadix2: carry overflow from=${e} to=${r} carryBits=${qT(e,r)}`);let a=0,i=0;const s=lC[e],o=lC[r]-1,c=[];for(const l of t){if(Og(l),l>=s)throw new Error(`convertRadix2: invalid data word=${l} from=${e}`);if(a=a<<e|l,i+e>32)throw new Error(`convertRadix2: carry overflow pos=${i} from=${e}`);for(i+=e;i>=r;i-=r)c.push((a>>i-r&o)>>>0);const d=lC[i];if(d===void 0)throw new Error("invalid carry");a&=d-1}if(a=a<<r-i&o,!n&&i>=e)throw new Error("Excess padding");if(!n&&a>0)throw new Error(`Non-zero padding: ${a}`);return n&&i>0&&c.push(a>>>0),c}function dWe(t){Og(t);const e=2**8;return{encode:r=>{if(!Dx(r))throw new Error("radix.encode input should be Uint8Array");return mae(Array.from(r),e,t)},decode:r=>(QH("radix.decode",r),Uint8Array.from(mae(r,t,e)))}}function JH(t,e=!1){if(Og(t),t<=0||t>32)throw new Error("radix2: bits should be in (0..32]");if(qT(8,t)>32||qT(t,8)>32)throw new Error("radix2: carry overflow");return{encode:r=>{if(!Dx(r))throw new Error("radix2.encode input should be Uint8Array");return vU(Array.from(r),8,t,!e)},decode:r=>(QH("radix2.decode",r),Uint8Array.from(vU(r,t,8,e)))}}function bae(t){return Tme(t),function(...e){try{return t.apply(null,e)}catch{}}}function fWe(t,e){return Og(t),Tme(e),{encode(r){if(!Dx(r))throw new Error("checksum.encode: input should be Uint8Array");const n=e(r).slice(0,t),a=new Uint8Array(r.length+t);return a.set(r),a.set(n,r.length),a},decode(r){if(!Dx(r))throw new Error("checksum.decode: input should be Uint8Array");const n=r.slice(0,-t),a=r.slice(-t),i=e(n).slice(0,t);for(let s=0;s<t;s++)if(i[s]!==a[s])throw new Error("Invalid checksum");return n}}}const gae=aM(JH(4),IN("0123456789ABCDEF"),DN("")),yae=aM(JH(6),IN("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),uWe(6),DN("")),pWe=t=>aM(dWe(58),IN(t),DN("")),xU=pWe("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),Skt=t=>aM(fWe(4,e=>t(t(e))),xU),wU=aM(IN("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),DN("")),vae=[996825010,642813549,513874426,1027748829,705979059];function Hy(t){const e=t>>25;let r=(t&33554431)<<5;for(let n=0;n<vae.length;n++)(e>>n&1)===1&&(r^=vae[n]);return r}function xae(t,e,r=1){const n=t.length;let a=1;for(let i=0;i<n;i++){const s=t.charCodeAt(i);if(s<33||s>126)throw new Error(`Invalid prefix (${t})`);a=Hy(a)^s>>5}a=Hy(a);for(let i=0;i<n;i++)a=Hy(a)^t.charCodeAt(i)&31;for(let i of e)a=Hy(a)^i;for(let i=0;i<6;i++)a=Hy(a);return a^=r,wU.encode(vU([a%lC[30]],30,5,!1))}function hWe(t){const e=t==="bech32"?1:734539939,r=JH(5),n=r.decode,a=r.encode,i=bae(n);function s(h,m,y=90){z9("bech32.encode prefix",h),Dx(m)&&(m=Array.from(m)),QH("bech32.encode",m);const x=h.length;if(x===0)throw new TypeError(`Invalid prefix length ${x}`);const M=x+7+m.length;if(y!==!1&&M>y)throw new TypeError(`Length ${M} exceeds limit ${y}`);const E=h.toLowerCase(),S=xae(E,m,e);return`${E}1${wU.encode(m)}${S}`}function o(h,m=90){z9("bech32.decode input",h);const y=h.length;if(y<8||m!==!1&&y>m)throw new TypeError(`invalid string length: ${y} (${h}). Expected (8..${m})`);const x=h.toLowerCase();if(h!==x&&h!==h.toUpperCase())throw new Error("String must be lowercase or uppercase");const M=x.lastIndexOf("1");if(M===0||M===-1)throw new Error('Letter "1" must be present between prefix and data only');const E=x.slice(0,M),S=x.slice(M+1);if(S.length<6)throw new Error("Data must be at least 6 characters long");const T=wU.decode(S).slice(0,-6),D=xae(E,T,e);if(!S.endsWith(D))throw new Error(`Invalid checksum in ${h}: expected "${D}"`);return{prefix:E,words:T}}const c=bae(o);function l(h){const{prefix:m,words:y}=o(h,!1);return{prefix:m,words:y,bytes:n(y)}}function d(h,m){return s(h,a(m))}return{encode:s,decode:o,encodeFromBytes:d,decodeToBytes:l,decodeUnsafe:c,fromWords:n,fromWordsUnsafe:i,toWords:a}}const B4=hWe("bech32"),Dme=(t,e)=>e.startsWith(t)?e.slice(t.length):e,mWe=/^(?:0x)?[0-9a-fA-F]+$/,Pn={valid:t=>mWe.test(t),decode:t=>gae.decode(Dme("0x",t).toUpperCase()),encode:(t,e=!1)=>(t=typeof t=="string"?sa.encode(t):t,(e?"0x":"")+gae.encode(t).toLowerCase())},bWe=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/,iM={valid:t=>bWe.test(t),decode:yae.decode,encode:t=>yae.encode(typeof t=="string"?sa.encode(t):t)},Nme={decode:xU.decode,encode:t=>xU.encode(typeof t=="string"?sa.encode(t):t)},Jl={decode:t=>(typeof t!="string"&&(t=Pn.encode(t,!0)),t===""||t==="0x"?0n:BigInt(t)),encode:(t,e=!1)=>Jl.toString(t,e),toString:(t,e=!1)=>{let r=t.toString(16);return r=r.length%2===1?r="0"+r:r,e?"0x"+r:r},toBytes:(t,e)=>{typeof t=="number"&&(t=Jl.toBigInt(t));const r=Pn.decode(Jl.toString(t));if(!e)return r;if(e<r.length)throw new Error(`Can't fit ${t} into ${e} bytes.`);return sa.zpad(r,e)},toNumber:t=>{if(t>BigInt(Number.MAX_SAFE_INTEGER))throw new Error(`Invalid cast: ${t} exceeds MAX_SAFE_INTEGER`);return Number(t)},toBigInt:t=>{if(t>Number.MAX_SAFE_INTEGER)throw new Error(`Invalid cast: ${t} exceeds MAX_SAFE_INTEGER`);return BigInt(t)}},sa={encode:t=>new TextEncoder().encode(t),decode:t=>new TextDecoder().decode(t),equals:(t,e)=>t.length===e.length&&t.every((r,n)=>r===e[n]),zpad:(t,e,r=!0)=>r?sa.concat(new Uint8Array(e-t.length),t):sa.concat(t,new Uint8Array(e-t.length)),concat:(...t)=>{const e=t.reduce((a,i)=>a+i.length,0),r=new Uint8Array(e);let n=0;return t.forEach(a=>{r.set(a,n),n+=a.length}),r}},XH=[[1,"Solana"],[2,"Ethereum"],[3,"Terra"],[4,"Bsc"],[5,"Polygon"],[6,"Avalanche"],[7,"Oasis"],[8,"Algorand"],[9,"Aurora"],[10,"Fantom"],[11,"Karura"],[12,"Acala"],[13,"Klaytn"],[14,"Celo"],[15,"Near"],[16,"Moonbeam"],[17,"Neon"],[18,"Terra2"],[19,"Injective"],[20,"Osmosis"],[21,"Sui"],[22,"Aptos"],[23,"Arbitrum"],[24,"Optimism"],[25,"Gnosis"],[26,"Pythnet"],[28,"Xpla"],[29,"Btc"],[30,"Base"],[32,"Sei"],[33,"Rootstock"],[34,"Scroll"],[35,"Mantle"],[36,"Blast"],[37,"Xlayer"],[38,"Linea"],[39,"Berachain"],[40,"Seievm"],[43,"Snaxchain"],[44,"Unichain"],[45,"Worldchain"],[46,"Ink"],[47,"HyperEVM"],[48,"Monad"],[3104,"Wormchain"],[4e3,"Cosmoshub"],[4001,"Evmos"],[4002,"Kujira"],[4003,"Neutron"],[4004,"Celestia"],[4005,"Stargaze"],[4006,"Seda"],[4007,"Dymension"],[4008,"Provenance"],[4009,"Noble"],[10002,"Sepolia"],[10003,"ArbitrumSepolia"],[10004,"BaseSepolia"],[10005,"OptimismSepolia"],[10006,"Holesky"],[10007,"PolygonSepolia"],[5e4,"Hyperliquid"]],[Ekt,kme]=Mh(XH),NN=Br(XH,[1,0]),Vd=Br(XH),Rg=t=>NN.has(t),MU=t=>Vd.has(t),pn=t=>{switch(typeof t){case"string":if(Rg(t))return NN(t);break;case"number":if(MU(t))return t;break}throw Error(`Cannot convert to ChainId: ${t}`)},k2=t=>{switch(typeof t){case"string":if(Rg(t))return t;break;case"number":if(MU(t))return Vd(t);break;case"bigint":if(MU(Number(t)))return Vd.get(Number(t));break}throw Error(`Cannot convert to Chain: ${t}`)},eq=[["Evm",["Acala","Arbitrum","Aurora","Avalanche","Base","Bsc","Celo","Ethereum","Fantom","Gnosis","Karura","Klaytn","Moonbeam","Neon","Oasis","Optimism","Polygon","Rootstock","Sepolia","ArbitrumSepolia","BaseSepolia","OptimismSepolia","Holesky","PolygonSepolia","Mantle","Scroll","Blast","Xlayer","Linea","Berachain","Seievm","Snaxchain","Unichain","Worldchain","Ink","HyperEVM","Monad","Hyperliquid"]],["Solana",["Solana","Pythnet"]],["Cosmwasm",["Cosmoshub","Evmos","Injective","Kujira","Osmosis","Sei","Terra","Terra2","Wormchain","Xpla","Dymension","Neutron","Stargaze","Celestia","Seda","Provenance","Noble"]],["Btc",["Btc"]],["Algorand",["Algorand"]],["Sui",["Sui"]],["Aptos",["Aptos"]],["Near",["Near"]]];yme(eq,0);const _me=Br(eq),fs=Br(eq,[1,0]),gWe=[["Evm","hex"],["Solana","base58"],["Cosmwasm","bech32"],["Btc","bech32"],["Algorand","algorandAppId"],["Sui","hex"],["Aptos","hex"],["Near","sha256"]],yWe=Br(gWe),R8={byAddress:(t,e)=>Object.values(t).find(r=>vWe(r.address,e)),native:t=>R8.byAddress(t,"native"),bySymbol:(t,e)=>{const r=Object.values(t).filter(n=>n.symbol===e);return r&&r.length>0?r:void 0},byKey:(t,e)=>{const r=Object.entries(t).find(([n])=>e===n);return r?r[1]:void 0}},vWe=(t,e)=>t.toLowerCase()===e.toLowerCase();var wae;(function(t){t[t.Finalized=1]="Finalized",t[t.Immediate=200]="Immediate",t[t.Safe=201]="Safe"})(wae||(wae={}));const xWe=[["Ethereum",32]];Br(xWe);const wWe=[["Solana",32],["Ethereum",72],["Bsc",15],["Optimism",512],["Base",512],["Arbitrum",4096],["Blast",512],["Xlayer",300],["Scroll",300],["Mantle",512],["Worldchain",512],["Polygon",32],["Fantom",1],["Celo",1],["Moonbeam",1],["Karura",1],["Acala",1],["Oasis",1],["Avalanche",0],["Sui",0],["Algorand",0],["Aptos",0],["Klaytn",0],["Sei",0],["Near",0],["Osmosis",0],["Terra",0],["Terra2",0],["Xpla",0],["Injective",0],["Berachain",1],["Seievm",1],["Snaxchain",512],["Unichain",1024],["Ink",512],["HyperEVM",1],["Monad",1],["Cosmoshub",0],["Evmos",0],["Kujira",0],["Neutron",0],["Celestia",0],["Stargaze",0],["Dymension",0],["Provenance",0],["Noble",0],["Sepolia",72],["ArbitrumSepolia",4096],["BaseSepolia",512],["OptimismSepolia",512],["PolygonSepolia",32]],Lme=Br(wWe),MWe=[["Acala",12e3],["Algorand",3300],["Aptos",4e3],["Arbitrum",260],["ArbitrumSepolia",260],["Aurora",3e3],["Avalanche",2e3],["Base",2e3],["BaseSepolia",2e3],["Blast",2e3],["Bsc",3e3],["Celo",5e3],["Cosmoshub",5e3],["Ethereum",15e3],["Evmos",2e3],["Fantom",2500],["Gnosis",5e3],["Holesky",15e3],["Injective",2500],["Karura",12e3],["Klaytn",1e3],["Kujira",3e3],["Mantle",2e3],["Moonbeam",12e3],["Monad",1e3],["Near",1500],["Neon",3e4],["Oasis",6e3],["Optimism",2e3],["OptimismSepolia",2e3],["Osmosis",6e3],["Polygon",2e3],["PolygonSepolia",2e3],["Rootstock",3e4],["Scroll",3e3],["Sei",400],["Sepolia",15e3],["Solana",400],["Sui",3e3],["Terra",6e3],["Terra2",6e3],["Unichain",1e3],["Xpla",5e3],["Xlayer",3e3],["Worldchain",2e3],["Wormchain",5e3],["Btc",6e5],["Pythnet",400],["Dymension",5e3],["Celestia",5e3],["Neutron",5e3],["Stargaze",5e3],["Seda",7500],["Berachain",2e3]],Bme=Br(MWe);function tq(t){const e=Lme.get(t);if(e===void 0)throw new Error("Cannot find finality for "+t);const r=Bme.get(t);if(r===void 0)throw new Error("Cannot find block time for "+t);return e*r}const AWe=[["Evm",18],["Solana",9],["Sui",9],["Aptos",8],["Cosmwasm",6],["Algorand",6],["Btc",8],["Near",12]],rq=Br(AWe),SWe=[["Mainnet",[["Ethereum",{name:"Etherscan",baseUrl:"https://etherscan.io/",endpoints:{tx:"tx/",account:"address/"}}],["Solana",{name:"Solana Explorer",baseUrl:"https://explorer.solana.com/",endpoints:{tx:"tx/",account:"address/"}}],["Polygon",{name:"PolygonScan",baseUrl:"https://polygonscan.com/",endpoints:{tx:"tx/",account:"address/"}}],["Bsc",{name:"BscScan",baseUrl:"https://bscscan.com/",endpoints:{tx:"tx/",account:"address/"}}],["Avalanche",{name:"Snowtrace",baseUrl:"https://snowtrace.io/",endpoints:{tx:"tx/",account:"address/"}}],["Fantom",{name:"FTMscan",baseUrl:"https://ftmscan.com/",endpoints:{tx:"tx/",account:"address/"}}],["Celo",{name:"Celo Explorer",baseUrl:"https://explorer.celo.org/mainnet/",endpoints:{tx:"tx/",account:"address/"}}],["Moonbeam",{name:"Moonscan",baseUrl:"https://moonscan.io/",endpoints:{tx:"tx/",account:"address/"}}],["Sui",{name:"Sui Explorer",baseUrl:"https://explorer.sui.io/",endpoints:{tx:"txblock/",account:"address/"}}],["Aptos",{name:"Aptos Explorer",baseUrl:"https://explorer.aptoslabs.com/",endpoints:{tx:"txn/",account:"account/"}}],["Sei",{name:"Sei Explorer",baseUrl:"https://sei.explorers.guru/",endpoints:{tx:"transaction/",account:"address/"}}],["Karura",{name:"Karura Explorer",baseUrl:"https://blockscout.karura.network/",endpoints:{tx:"tx/",account:"address/"}}],["Acala",{name:"Acala Explorer",baseUrl:"https://blockscout.acala.network/",endpoints:{tx:"tx/",account:"address/"}}]]],["Testnet",[["Ethereum",{name:"Etherscan",baseUrl:"https://goerli.etherscan.io/",endpoints:{tx:"tx/",account:"address/"}}],["Polygon",{name:"PolygonScan",baseUrl:"https://mumbai.polygonscan.com/",endpoints:{tx:"tx/",account:"address/"}}],["Bsc",{name:"BscScan",baseUrl:"https://testnet.bscscan.com/",endpoints:{tx:"tx/",account:"address/"}}],["Avalanche",{name:"Snowtrace",baseUrl:"https://testnet.snowtrace.io/",endpoints:{tx:"tx/",account:"address/"}}],["Fantom",{name:"FTMscan",baseUrl:"https://testnet.ftmscan.com/",endpoints:{tx:"tx/",account:"address/"}}],["Celo",{name:"Celo Explorer",baseUrl:"https://explorer.celo.org/alfajores/",endpoints:{tx:"tx/",account:"address/"}}],["Moonbeam",{name:"Moonscan",baseUrl:"https://moonbase.moonscan.io/",endpoints:{tx:"tx/",account:"address/"}}],["Solana",{name:"Solana Explorer",baseUrl:"https://explorer.solana.com/",endpoints:{tx:"tx/",account:"address/"},networkQuery:{default:"Devnet",Testnet:"?cluster=testnet",Devnet:"?cluster=devnet"}}],["Sui",{name:"Sui Explorer",baseUrl:"https://explorer.sui.io/",endpoints:{tx:"txblock/",account:"address/"},networkQuery:{default:"Testnet",Testnet:"?network=testnet",Devnet:"?network=devnet"}}],["Aptos",{name:"Aptos Explorer",baseUrl:"https://explorer.aptoslabs.com/",endpoints:{tx:"txn/",account:"account/"},networkQuery:{default:"Testnet",Testnet:"?network=testnet",Devnet:"?network=devnet"}}],["Sei",{name:"Sei Explorer",baseUrl:"https://sei.explorers.guru/",endpoints:{tx:"transaction/",account:"address/"}}],["Karura",{name:"Karura Explorer",baseUrl:"https://blockscout.karura-testnet.aca-staging.network/",endpoints:{tx:"tx/",account:"address/"}}],["Acala",{name:"Acala Explorer",baseUrl:"https://blockscout.acala-dev.aca-dev.network/",endpoints:{tx:"tx/",account:"address/"}}]]]],EWe=Br(SWe),CWe=(t,e)=>t==="Devnet"?void 0:EWe.get(t,e),TWe=[["Mainnet",[["Ethereum","https://rpc.ankr.com/eth"],["Solana","https://api.mainnet-beta.solana.com"],["Polygon","https://rpc.ankr.com/polygon"],["Bsc","https://bscrpc.com"],["Avalanche","https://rpc.ankr.com/avalanche"],["Fantom","https://rpcapi.fantom.network"],["Celo","https://rpc.ankr.com/celo"],["Moonbeam","https://rpc.ankr.com/moonbeam"],["Sui","https://rpc.mainnet.sui.io"],["Aptos","https://fullnode.mainnet.aptoslabs.com/v1"],["Arbitrum","https://arb1.arbitrum.io/rpc"],["Optimism","https://mainnet.optimism.io"],["Base","https://mainnet.base.org"],["Osmosis","https://osmosis-rpc.polkachu.com"],["Cosmoshub","https://cosmos-rpc.publicnode.com:443"],["Evmos","https://evmos-rpc.polkachu.com"],["Injective","https://sentry.tm.injective.network"],["Wormchain","https://wormchain-rpc.quickapi.com"],["Xpla","https://dimension-rpc.xpla.dev"],["Sei","https://sei-rpc.polkachu.com/"],["Algorand","https://mainnet-api.algonode.cloud"],["Terra","https://terra-classic-rpc.publicnode.com"],["Terra2","https://terra-rpc.polkachu.com"],["Karura","https://eth-rpc-karura.aca-api.network"],["Acala","https://eth-rpc-acala.aca-api.network"],["Oasis","https://emerald.oasis.dev"],["Dymension","https://dymension-rpc.polkachu.com/"],["Stargaze","https://stargaze-rpc.polkachu.com/"],["Celestia","https://celestia-rpc.polkachu.com/"],["Neutron","https://neutron-rpc.polkachu.com/"],["Blast","https://rpc.blast.io"],["Provenance","https://rpc.provenance.io/"],["Noble","https://noble-rpc.polkachu.com/"],["Linea","https://rpc.linea.build"],["Scroll","https://rpc.ankr.com/scroll"],["Xlayer","https://xlayerrpc.okx.com/"],["Gnosis","https://rpc.ankr.com/gnosis"],["Rootstock","https://public-node.rsk.co"],["Mantle","https://rpc.mantle.xyz"],["Klaytn","https://rpc.ankr.com/klaytn"],["Snaxchain","https://mainnet.snaxchain.io"],["Berachain","https://rpc.berachain.com"],["Unichain","https://mainnet.unichain.org"],["Worldchain","https://worldchain-mainnet.g.alchemy.com/public"]]],["Testnet",[["Ethereum","https://eth-sepolia.public.blastapi.io"],["Polygon","https://rpc-mumbai.polygon.technology"],["Bsc","https://data-seed-prebsc-1-s3.binance.org:8545"],["Avalanche","https://api.avax-test.network/ext/bc/C/rpc"],["Fantom","https://rpc.testnet.fantom.network"],["Celo","https://alfajores-forno.celo-testnet.org"],["Solana","https://api.devnet.solana.com"],["Oasis","https://testnet.emerald.oasis.io"],["Moonbeam","https://rpc.api.moonbase.moonbeam.network"],["Sui","https://fullnode.testnet.sui.io"],["Aptos","https://fullnode.testnet.aptoslabs.com/v1"],["Sei","https://sei-testnet-rpc.polkachu.com"],["Arbitrum","https://arbitrum-goerli.public.blastapi.io"],["Optimism","https://optimism-goerli.public.blastapi.io"],["Base","https://base-goerli.public.blastapi.io"],["Injective","https://testnet.sentry.tm.injective.network"],["Osmosis","https://rpc.testnet.osmosis.zone"],["Cosmoshub","https://rpc.sentry-02.theta-testnet.polypore.xyz"],["Evmos","https://evmos-testnet-rpc.polkachu.com"],["Wormchain","https://gateway.testnet.xlabs.xyz/"],["Xpla","https://cube-rpc.xpla.dev"],["Sepolia","https://ethereum-sepolia.publicnode.com"],["Algorand","https://testnet-api.algonode.cloud"],["Terra","https://bombay.stakesystems.io"],["Terra2","https://terra-testnet-rpc.polkachu.com"],["ArbitrumSepolia","https://sepolia-rollup.arbitrum.io/rpc"],["OptimismSepolia","https://sepolia.optimism.io"],["BaseSepolia","https://sepolia.base.org"],["PolygonSepolia","https://rpc-amoy.polygon.technology/"],["Mantle","https://mantle-sepolia.drpc.org"],["Karura","https://eth-rpc-karura-testnet.aca-staging.network"],["Acala","https://eth-rpc-acala-testnet.aca-staging.network"],["Blast","https://sepolia.blast.io"],["Berachain","https://artio.rpc.berachain.com"],["Seievm","https://evm-rpc-testnet.sei-apis.com/"],["Linea","https://rpc.sepolia.linea.build"],["Xlayer","https://testrpc.xlayer.tech/"],["Scroll","https://rpc.ankr.com/scroll_sepolia_testnet"],["Rootstock","https://public-node.testnet.rsk.co"],["Gnosis","https://rpc.chiadochain.net"],["Klaytn","https://rpc.ankr.com/klaytn_testnet"],["Snaxchain","https://testnet.snaxchain.io"],["Unichain","https://sepolia.unichain.org"],["Worldchain","https://worldchain-sepolia.g.alchemy.com/public"],["Ink","https://rpc-qnd-sepolia.inkonchain.com"],["HyperEVM","https://api.hyperliquid-testnet.xyz/evm"],["Monad","https://testnet-rpc.monad.xyz"],["Noble","https://noble-testnet-rpc.polkachu.com/"]]],["Devnet",[["Ethereum","http://eth-devnet:8545"],["Bsc","http://eth-devnet2:8545"],["Solana","http://solana-devnet:8899"]]]],IWe=Br(TWe),jme=(t,e)=>IWe.get(t,e)??"",zme=[["Mainnet",[["Aptos",1n],["Algorand","mainnet-v1.0"],["Near","mainnet"],["Cosmoshub","cosmoshub-4"],["Evmos","evmos_9001-2"],["Injective","injective-1"],["Osmosis","osmosis-1"],["Sei","pacific-1"],["Terra","columbus-5"],["Terra2","phoenix-1"],["Wormchain","wormchain"],["Xpla","dimension_37-1"],["Kujira","kaiyo-1"],["Solana","5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d"],["Sui","35834a8a"],["Acala",787n],["Arbitrum",42161n],["Aurora",1313161554n],["Avalanche",43114n],["Base",8453n],["Bsc",56n],["Celo",42220n],["Ethereum",1n],["Fantom",250n],["Gnosis",100n],["Karura",686n],["Klaytn",8217n],["Moonbeam",1284n],["Neon",245022934n],["Oasis",42262n],["Optimism",10n],["Polygon",137n],["Rootstock",30n],["Neutron","neutron-1"],["Stargaze","stargaze-1"],["Celestia","celestia"],["Dymension","dymension_1100-1"],["Provenance","pio-mainnet-1"],["Noble","noble-1"],["Xlayer",196n],["Mantle",5000n],["Scroll",534352n],["Blast",81457n],["Linea",59144n],["Snaxchain",2192n],["Berachain",80094n],["Unichain",130n],["Worldchain",480n]]],["Testnet",[["Aptos",2n],["Algorand","testnet-v1.0"],["Near","testnet"],["Cosmoshub","theta-testnet-001"],["Evmos","evmos_9000-4"],["Injective","injective-888"],["Osmosis","osmo-test-5"],["Sei","atlantic-2"],["Terra","bombay-12"],["Terra2","pisco-1"],["Wormchain","wormchain-testnet-0"],["Xpla","cube_47-5"],["Kujira","harpoon-4"],["Solana","EtWTRABZaYq6iMfeYKouRu166VU2xqa1wcaWoxPkrZBG"],["Sui","4c78adac"],["Acala",597n],["Arbitrum",421613n],["Aurora",1313161555n],["Avalanche",43113n],["Base",84531n],["Bsc",97n],["Celo",44787n],["Ethereum",5n],["Fantom",4002n],["Gnosis",10200n],["Karura",596n],["Klaytn",1001n],["Moonbeam",1287n],["Neon",245022940n],["Oasis",42261n],["Optimism",420n],["Polygon",80001n],["Rootstock",31n],["Sepolia",11155111n],["ArbitrumSepolia",421614n],["BaseSepolia",84532n],["OptimismSepolia",11155420n],["PolygonSepolia",80002n],["Holesky",17000n],["Neutron","pion-1"],["Celestia","mocha-4"],["Seda","seda-1-testnet"],["Noble","grand-1"],["Blast",168587773n],["Mantle",5003n],["Scroll",534351n],["Berachain",80084n],["Seievm",1328n],["Snaxchain",13001n],["Unichain",1301n],["Worldchain",4801n],["Ink",763373n],["HyperEVM",998n],["Xlayer",195n],["Linea",59141n],["Monad",10143n]]],["Devnet",[["Aptos",0n],["Algorand","sandnet-v1.0"],["Bsc",1397n],["Ethereum",1337n],["Injective","injective_devnet_fake"],["Solana","8wF6jKV3cKwyaVkWcoV9KpDqmkjvEYno9hKZrKx8TbZn"]]]],nq=Br(zme),DWe=Br(zme,[2,[0,1]]);function Pme(t,e){const n=DWe(e).filter(([a,i])=>fs(i)===t);if(n.length!==1)throw new Error(`Platform ${t} has multiple chains with native chain id ${e}`);return n[0]}const NWe=[["Mainnet","https://iris-api.circle.com/v1/attestations"],["Testnet","https://iris-api-sandbox.circle.com/v1/attestations"]],Mae=Br(NWe),kWe=[["Mainnet",[["Ethereum","0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"],["Avalanche","0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E"],["Optimism","0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85"],["Arbitrum","0xaf88d065e77c8cC2239327C5EDb3A432268e5831"],["Solana","EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"],["Base","0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"],["Polygon","0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359"],["Sui","0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7::usdc::USDC"],["Aptos","0xbae207659db88bea0cbead6da0ed00aac12edcdda169e591cd41c94180b46f3b"],["Unichain","0x078D782b760474a361dDA0AF3839290b0EF57AD6"]]],["Testnet",[["Sepolia","0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238"],["Avalanche","0x5425890298aed601595a70AB815c96711a31Bc65"],["OptimismSepolia","0x5fd84259d66Cd46123540766Be93DFE6D43130D7"],["ArbitrumSepolia","0x75faf114eafb1BDbe2F0316DF893fd58CE46AA4d"],["Solana","4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU"],["BaseSepolia","0x036CbD53842c5426634e7929541eC2318f3dCF7e"],["Polygon","0x9999f7Fea5938fD3b1E26A12c3f2fb024e194f97"],["Sui","0xa1ec7fc00a6f40db9693ad1415d0c193ad3906494428cf252621037bd7117e29::usdc::USDC"],["Aptos","0x69091fbab5f7d635ee7ac5098cf0c1efbe31d68fec0f2cd565e8d168daf52832"],["Unichain","0x31d0220469e10c4E71834a79b1f276d740d3768F"]]]],B0=Br(kWe),aq=[["Mainnet",[["Ethereum",0],["Avalanche",1],["Optimism",2],["Arbitrum",3],["Solana",5],["Base",6],["Polygon",7],["Sui",8],["Aptos",9],["Unichain",10]]],["Testnet",[["Sepolia",0],["Avalanche",1],["OptimismSepolia",2],["ArbitrumSepolia",3],["Solana",5],["BaseSepolia",6],["Polygon",7],["Sui",8],["Aptos",9],["Unichain",10]]]],_We=Br(aq,[[0,1],2]),AU=Br(aq,[[0,2],1]),[Ckt,Tkt]=Mh(aq),SU=(t,e)=>_We.has(t,e),Aae=(t,e)=>AU.has(t,e),Sae=(t,e)=>B0.has(t,e),iB=(t,e)=>{switch(typeof e){case"string":if(SU(t,e))return e;break;case"number":if(Aae(t,e))return AU(t,e);break;case"bigint":const r=Number(e);if(Aae(t,r))return AU(t,r);break}throw Error(`Cannot convert to Chain: ${e}`)},LWe=[["Mainnet",[["Solana","worm2ZoG2kUd4vFXhvjh93UUH596ayRfgQ2MgjNMTth"],["Ethereum","0x98f3c9e6E3fAce36bAAd05FE09d375Ef1464288B"],["Terra","terra1dq03ugtd40zu9hcgdzrsq6z2z4hwhc9tqk2uy5"],["Bsc","0x98f3c9e6E3fAce36bAAd05FE09d375Ef1464288B"],["Polygon","0x7A4B5a56256163F07b2C80A7cA55aBE66c4ec4d7"],["Avalanche","0x54a8e5f9c4CbA08F9943965859F6c34eAF03E26c"],["Oasis","0xfE8cD454b4A1CA468B57D79c0cc77Ef5B6f64585"],["Algorand","842125965"],["Aurora","0xa321448d90d4e5b0A732867c18eA198e75CAC48E"],["Fantom","0x126783A6Cb203a3E35344528B26ca3a0489a1485"],["Karura","0xa321448d90d4e5b0A732867c18eA198e75CAC48E"],["Acala","0xa321448d90d4e5b0A732867c18eA198e75CAC48E"],["Klaytn","0x0C21603c4f3a6387e241c0091A7EA39E43E90bb7"],["Celo","0xa321448d90d4e5b0A732867c18eA198e75CAC48E"],["Near","contract.wormhole_crypto.near"],["Injective","inj17p9rzwnnfxcjp32un9ug7yhhzgtkhvl9l2q74d"],["Aptos","0x5bc11445584a763c1fa7ed39081f1b920954da14e04b32440cba863d03e19625"],["Sui","0xaeab97f96cf9877fee2883315d459552b2b921edc16d7ceac6eab944dd88919c"],["Moonbeam","0xC8e2b0cD52Cf01b0Ce87d389Daa3d414d4cE29f3"],["Terra2","terra12mrnzvhx3rpej6843uge2yyfppfyd3u9c3uq223q8sl48huz9juqffcnhp"],["Arbitrum","0xa5f208e072434bC67592E4C49C1B991BA79BCA46"],["Optimism","0xEe91C335eab126dF5fDB3797EA9d6aD93aeC9722"],["Gnosis","0xa321448d90d4e5b0A732867c18eA198e75CAC48E"],["Pythnet","H3fxXJ86ADW2PNuDDmZJg6mzTtPxkYCpNuQUTgmJ7AjU"],["Base","0xbebdb6C8ddC678FfA9f8748f85C815C556Dd8ac6"],["Rootstock","0xbebdb6C8ddC678FfA9f8748f85C815C556Dd8ac6"],["Xlayer","0x194B123c5E96B9b2E49763619985790Dc241CAC0"],["Xpla","xpla1jn8qmdda5m6f6fqu9qv46rt7ajhklg40ukpqchkejcvy8x7w26cqxamv3w"],["Sei","sei1gjrrme22cyha4ht2xapn3f08zzw6z3d4uxx6fyy9zd5dyr3yxgzqqncdqn"],["Wormchain","wormhole1ufs3tlq4umljk0qfe8k5ya0x6hpavn897u2cnf9k0en9jr7qarqqaqfk2j"],["Neutron","neutron16rerygcpahqcxx5t8vjla46ym8ccn7xz7rtc6ju5ujcd36cmc7zs9zrunh"],["Blast","0xbebdb6C8ddC678FfA9f8748f85C815C556Dd8ac6"],["Scroll","0xbebdb6C8ddC678FfA9f8748f85C815C556Dd8ac6"],["Mantle","0xbebdb6C8ddC678FfA9f8748f85C815C556Dd8ac6"],["Snaxchain","0xc1BA3CC4bFE724A08FbbFbF64F8db196738665f4"],["Berachain","0xCa1D5a146B03f6303baF59e5AD5615ae0b9d146D"],["Unichain","0xCa1D5a146B03f6303baF59e5AD5615ae0b9d146D"],["Worldchain","0xcbcEe4e081464A15d8Ad5f58BB493954421eB506"]]],["Testnet",[["Solana","3u8hJUVTA4jH1wYAyUur7FFZVQ8H635K3tSHHF4ssjQ5"],["Ethereum","0x706abc4E45D419950511e474C7B9Ed348A4a716c"],["Terra","terra1pd65m0q9tl3v8znnz5f5ltsfegyzah7g42cx5v"],["Bsc","0x68605AD7b15c732a30b1BbC62BE8F2A509D74b4D"],["Polygon","0x0CBE91CF822c73C2315FB05100C2F714765d5c20"],["Avalanche","0x7bbcE28e64B3F8b84d876Ab298393c38ad7aac4C"],["Oasis","0xc1C338397ffA53a2Eb12A7038b4eeb34791F8aCb"],["Algorand","86525623"],["Aurora","0xBd07292de7b505a4E803CEe286184f7Acf908F5e"],["Fantom","0x1BB3B4119b7BA9dfad76B0545fb3F531383c3bB7"],["Karura","0x64fb09E405D2043ed7785a29E296C766D56F2056"],["Acala","0x64fb09E405D2043ed7785a29E296C766D56F2056"],["Klaytn","0x1830CC6eE66c84D2F177B94D544967c774E624cA"],["Celo","0x88505117CA88e7dd2eC6EA1E13f0948db2D50D56"],["Near","wormhole.wormhole.testnet"],["Injective","inj1xx3aupmgv3ce537c0yce8zzd3sz567syuyedpg"],["Osmosis","osmo1hggkxr0hpw83f8vuft7ruvmmamsxmwk2hzz6nytdkzyup9krt0dq27sgyx"],["Aptos","0x5bc11445584a763c1fa7ed39081f1b920954da14e04b32440cba863d03e19625"],["Sui","0x31358d198147da50db32eda2562951d53973a0c0ad5ed738e9b17d88b213d790"],["Moonbeam","0xa5B7D85a8f27dd7907dc8FdC21FA5657D5E2F901"],["Neon","0x268557122Ffd64c85750d630b716471118F323c8"],["Terra2","terra19nv3xr5lrmmr7egvrk2kqgw4kcn43xrtd5g0mpgwwvhetusk4k7s66jyv0"],["Arbitrum","0xC7A204bDBFe983FCD8d8E61D02b475D4073fF97e"],["Optimism","0x6b9C8671cdDC8dEab9c719bB87cBd3e782bA6a35"],["Gnosis","0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"],["Pythnet","EUrRARh92Cdc54xrDn6qzaqjA77NRrCcfbr8kPwoTL4z"],["Xpla","xpla1upkjn4mthr0047kahvn0llqx4qpqfn75lnph4jpxfn8walmm8mqsanyy35"],["Base","0x23908A62110e21C04F3A4e011d24F901F911744A"],["Sei","sei1nna9mzp274djrgzhzkac2gvm3j27l402s4xzr08chq57pjsupqnqaj0d5s"],["Sepolia","0x4a8bc80Ed5a4067f1CCf107057b8270E0cC11A78"],["Rootstock","0xbebdb6C8ddC678FfA9f8748f85C815C556Dd8ac6"],["Wormchain","wormhole16jzpxp0e8550c9aht6q9svcux30vtyyyyxv5w2l2djjra46580wsazcjwp"],["ArbitrumSepolia","0x6b9C8671cdDC8dEab9c719bB87cBd3e782bA6a35"],["BaseSepolia","0x79A1027a6A159502049F10906D333EC57E95F083"],["OptimismSepolia","0x31377888146f3253211EFEf5c676D41ECe7D58Fe"],["Holesky","0xa10f2eF61dE1f19f586ab8B6F2EbA89bACE63F7a"],["Neutron","neutron1enf63k37nnv9cugggpm06mg70emcnxgj9p64v2s8yx7a2yhhzk2q6xesk4"],["Mantle","0x376428e7f26D5867e69201b275553C45B09EE090"],["PolygonSepolia","0x6b9C8671cdDC8dEab9c719bB87cBd3e782bA6a35"],["Scroll","0x055F47F1250012C6B20c436570a76e52c17Af2D5"],["Blast","0x473e002D7add6fB67a4964F13bFd61280Ca46886"],["Berachain","0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"],["Seievm","0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"],["Snaxchain","0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"],["Unichain","0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"],["Worldchain","0xe5E02cD12B6FcA153b0d7fF4bF55730AE7B3C93A"],["Ink","0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"],["HyperEVM","0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"],["Xlayer","0xA31aa3FDb7aF7Db93d18DDA4e19F811342EDF780"],["Linea","0x79A1027a6A159502049F10906D333EC57E95F083"],["Monad","0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"]]],["Devnet",[["Solana","Bridge1p5gheXUvJ6jGWGeCsgPKgnE3YgdGKRVCMY9o"],["Ethereum","0xC89Ce4735882C9F0f0FE26686c53074E09B0D550"],["Terra","terra14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9ssrc8au"],["Bsc","0xC89Ce4735882C9F0f0FE26686c53074E09B0D550"],["Algorand","1004"],["Near","wormhole.test.near"],["Aptos","0xde0036a9600559e295d5f6802ef6f3f802f510366e0c23912b0655d972166017"],["Sui","0x5a5160ca3c2037f4b4051344096ef7a48ebf4400b3f385e57ea90e1628a8bde0"],["Terra2","terra14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9ssrc8au"],["Wormchain","wormhole17p9rzwnnfxcjp32un9ug7yhhzgtkhvl9jfksztgw5uh69wac2pgshdnj3k"]]]],Ome=[["Mainnet",[["Solana","wormDTUJ6AWPNvk59vGQbDvGJmqbDTdgWgAqcLBCgUb"],["Ethereum","0x3ee18B2214AFF97000D974cf647E7C347E8fa585"],["Terra","terra10nmmwe8r3g99a9newtqa7a75xfgs2e8z87r2sf"],["Bsc","0xB6F6D86a8f9879A9c87f643768d9efc38c1Da6E7"],["Polygon","0x5a58505a96D1dbf8dF91cB21B54419FC36e93fdE"],["Avalanche","0x0e082F06FF657D94310cB8cE8B0D9a04541d8052"],["Oasis","0x5848C791e09901b40A9Ef749f2a6735b418d7564"],["Algorand","842126029"],["Aurora","0x51b5123a7b0F9b2bA265f9c4C8de7D78D52f510F"],["Fantom","0x7C9Fc5741288cDFdD83CeB07f3ea7e22618D79D2"],["Karura","0xae9d7fe007b3327AA64A32824Aaac52C42a6E624"],["Acala","0xae9d7fe007b3327AA64A32824Aaac52C42a6E624"],["Klaytn","0x5b08ac39EAED75c0439FC750d9FE7E1F9dD0193F"],["Celo","0x796Dff6D74F3E27060B71255Fe517BFb23C93eed"],["Near","contract.portalbridge.near"],["Injective","inj1ghd753shjuwexxywmgs4xz7x2q732vcnxxynfn"],["Aptos","0x576410486a2da45eee6c949c995670112ddf2fbeedab20350d506328eefc9d4f"],["Sui","0xc57508ee0d4595e5a8728974a4a93a787d38f339757230d441e895422c07aba9"],["Moonbeam","0xb1731c586ca89a23809861c6103f0b96b3f57d92"],["Terra2","terra153366q50k7t8nn7gec00hg66crnhkdggpgdtaxltaq6xrutkkz3s992fw9"],["Arbitrum","0x0b2402144Bb366A632D14B83F244D2e0e21bD39c"],["Optimism","0x1D68124e65faFC907325e3EDbF8c4d84499DAa8b"],["Base","0x8d2de8d2f73F1F4cAB472AC9A881C9b123C79627"],["Xlayer","0x5537857664B0f9eFe38C9f320F75fEf23234D904"],["Xpla","xpla137w0wfch2dfmz7jl2ap8pcmswasj8kg06ay4dtjzw7tzkn77ufxqfw7acv"],["Sei","sei1smzlm9t79kur392nu9egl8p8je9j92q4gzguewj56a05kyxxra0qy0nuf3"],["Wormchain","wormhole1466nf3zuxpya8q9emxukd7vftaf6h4psr0a07srl5zw74zh84yjq4lyjmh"],["Blast","0x24850c6f61C438823F01B7A3BF2B89B72174Fa9d"],["Scroll","0x24850c6f61C438823F01B7A3BF2B89B72174Fa9d"],["Mantle","0x24850c6f61C438823F01B7A3BF2B89B72174Fa9d"],["Snaxchain","0x8B94bfE456B48a6025b92E11Be393BAa86e68410"],["Berachain","0x3Ff72741fd67D6AD0668d93B41a09248F4700560"],["Unichain","0x3Ff72741fd67D6AD0668d93B41a09248F4700560"],["Worldchain","0xc309275443519adca74c9136b02A38eF96E3a1f6"]]],["Testnet",[["Solana","DZnkkTmCiFWfYTfT41X3Rd1kDgozqzxWaHqsw6W4x2oe"],["Ethereum","0xF890982f9310df57d00f659cf4fd87e65adEd8d7"],["Terra","terra1pseddrv0yfsn76u4zxrjmtf45kdlmalswdv39a"],["Bsc","0x9dcF9D205C9De35334D646BeE44b2D2859712A09"],["Polygon","0x377D55a7928c046E18eEbb61977e714d2a76472a"],["Avalanche","0x61E44E506Ca5659E6c0bba9b678586fA2d729756"],["Oasis","0x88d8004A9BdbfD9D28090A02010C19897a29605c"],["Algorand","86525641"],["Aurora","0xD05eD3ad637b890D68a854d607eEAF11aF456fba"],["Fantom","0x599CEa2204B4FaECd584Ab1F2b6aCA137a0afbE8"],["Karura","0xe157115ef34c93145Fec2FE53706846853B07F42"],["Acala","0xe157115ef34c93145Fec2FE53706846853B07F42"],["Klaytn","0xC7A13BE098720840dEa132D860fDfa030884b09A"],["Celo","0x05ca6037eC51F8b712eD2E6Fa72219FEaE74E153"],["Near","token.wormhole.testnet"],["Injective","inj1q0e70vhrv063eah90mu97sazhywmeegp7myvnh"],["Aptos","0x576410486a2da45eee6c949c995670112ddf2fbeedab20350d506328eefc9d4f"],["Sui","0x6fb10cdb7aa299e9a4308752dadecb049ff55a892de92992a1edbd7912b3d6da"],["Moonbeam","0xbc976D4b9D57E57c3cA52e1Fd136C45FF7955A96"],["Neon","0xEe3dB83916Ccdc3593b734F7F2d16D630F39F1D0"],["Terra2","terra1c02vds4uhgtrmcw7ldlg75zumdqxr8hwf7npseuf2h58jzhpgjxsgmwkvk"],["Arbitrum","0x23908A62110e21C04F3A4e011d24F901F911744A"],["ArbitrumSepolia","0xC7A204bDBFe983FCD8d8E61D02b475D4073fF97e"],["Optimism","0xC7A204bDBFe983FCD8d8E61D02b475D4073fF97e"],["OptimismSepolia","0x99737Ec4B815d816c49A385943baf0380e75c0Ac"],["Xpla","xpla1kek6zgdaxcsu35nqfsyvs2t9vs87dqkkq6hjdgczacysjn67vt8sern93x"],["Base","0xA31aa3FDb7aF7Db93d18DDA4e19F811342EDF780"],["BaseSepolia","0x86F55A04690fd7815A3D802bD587e83eA888B239"],["Sei","sei1jv5xw094mclanxt5emammy875qelf3v62u4tl4lp5nhte3w3s9ts9w9az2"],["Sepolia","0xDB5492265f6038831E89f495670FF909aDe94bd9"],["Wormchain","wormhole1aaf9r6s7nxhysuegqrxv0wpm27ypyv4886medd3mrkrw6t4yfcnst3qpex"],["Holesky","0x76d093BbaE4529a342080546cAFEec4AcbA59EC6"],["Mantle","0x75Bfa155a9D7A3714b0861c8a8aF0C4633c45b5D"],["PolygonSepolia","0xC7A204bDBFe983FCD8d8E61D02b475D4073fF97e"],["Scroll","0x22427d90B7dA3fA4642F7025A854c7254E4e45BF"],["Blast","0x430855B4D43b8AEB9D2B9869B74d58dda79C0dB2"],["Xlayer","0xdA91a06299BBF302091B053c6B9EF86Eff0f930D"],["Berachain","0xa10f2eF61dE1f19f586ab8B6F2EbA89bACE63F7a"],["Seievm","0x23908A62110e21C04F3A4e011d24F901F911744A"],["Snaxchain","0xa10f2eF61dE1f19f586ab8B6F2EbA89bACE63F7a"],["Unichain","0xa10f2eF61dE1f19f586ab8B6F2EbA89bACE63F7a"],["Worldchain","0x430855B4D43b8AEB9D2B9869B74d58dda79C0dB2"],["Ink","0x376428e7f26D5867e69201b275553C45B09EE090"],["HyperEVM","0x4a8bc80Ed5a4067f1CCf107057b8270E0cC11A78"],["Linea","0xC7A204bDBFe983FCD8d8E61D02b475D4073fF97e"],["Monad","0xF323dcDe4d33efe83cf455F78F9F6cc656e6B659"]]],["Devnet",[["Solana","B6RHG3mfcckmrYN1UhmJzyS1XX3fZKbkeUcpJe9Sy3FE"],["Ethereum","0x0290FB167208Af455bB137780163b7B7a9a10C16"],["Terra","terra1nc5tatafv6eyq7llkr2gv50ff9e22mnf70qgjlv737ktmt4eswrquka9l6"],["Bsc","0x0290FB167208Af455bB137780163b7B7a9a10C16"],["Algorand","1006"],["Near","token.test.near"],["Aptos","0x84a5f374d29fc77e370014dce4fd6a55b58ad608de8074b0be5571701724da31"],["Sui","0xa6a3da85bbe05da5bfd953708d56f1a3a023e7fb58e5a824a3d4de3791e8f690"],["Terra2","terra1nc5tatafv6eyq7llkr2gv50ff9e22mnf70qgjlv737ktmt4eswrquka9l6"],["Wormchain","wormhole1ghd753shjuwexxywmgs4xz7x2q732vcnkm6h2pyv9s6ah3hylvrqtm7t3h"]]]],Rme=[["Mainnet",[["Ethereum","0xcafd2f0a35a4459fa40c0517e17e6fa2939441ca"],["Bsc","0xcafd2f0a35a4459fa40c0517e17e6fa2939441ca"],["Polygon","0xcafd2f0a35a4459fa40c0517e17e6fa2939441ca"],["Avalanche","0xcafd2f0a35a4459fa40c0517e17e6fa2939441ca"],["Fantom","0xcafd2f0a35a4459fa40c0517e17e6fa2939441ca"],["Celo","0xcafd2f0a35a4459fa40c0517e17e6fa2939441ca"],["Sui","0x57f4e0ba41a7045e29d435bc66cc4175f381eb700e6ec16d4fdfe92e5a4dff9f"],["Solana","3vxKRPwUTiEkeUVyoZ9MXFe1V71sRLbLqu1gRYaWmehQ"],["Base","0xaE8dc4a7438801Ec4edC0B035EcCCcF3807F4CC1"],["Moonbeam","0xcafd2f0a35a4459fa40c0517e17e6fa2939441ca"],["Arbitrum","0xaE8dc4a7438801Ec4edC0B035EcCCcF3807F4CC1"],["Optimism","0xaE8dc4a7438801Ec4edC0B035EcCCcF3807F4CC1"]]],["Testnet",[["Ethereum","0x9563a59c15842a6f322b10f69d1dd88b41f2e97b"],["Bsc","0x9563a59c15842a6f322b10f69d1dd88b41f2e97b"],["Polygon","0x9563a59c15842a6f322b10f69d1dd88b41f2e97b"],["Avalanche","0x9563a59c15842a6f322b10f69d1dd88b41f2e97b"],["Fantom","0x9563a59c15842a6f322b10f69d1dd88b41f2e97b"],["Celo","0x9563a59c15842a6f322b10f69d1dd88b41f2e97b"],["Sui","0xb30040e5120f8cb853b691cb6d45981ae884b1d68521a9dc7c3ae881c0031923"],["Base","0xae8dc4a7438801ec4edc0b035eccccf3807f4cc1"],["Moonbeam","0x9563a59c15842a6f322b10f69d1dd88b41f2e97b"],["Solana","3bPRWXqtSfUaCw3S4wdgvypQtsSzcmvDeaqSqPDkncrg"],["Sepolia",""],["ArbitrumSepolia","0xaE8dc4a7438801Ec4edC0B035EcCCcF3807F4CC1"],["OptimismSepolia","0xaE8dc4a7438801Ec4edC0B035EcCCcF3807F4CC1"],["BaseSepolia",""]]]],BWe=[["Mainnet",[["Solana","WnFt12ZrnzZrFZkt2xsNsaNWoQribnuQ5B5FrDbwDhD"],["Ethereum","0x6FFd7EdE62328b3Af38FCD61461Bbfc52F5651fE"],["Bsc","0x5a58505a96D1dbf8dF91cB21B54419FC36e93fdE"],["Polygon","0x90BBd86a6Fe93D3bc3ed6335935447E75fAb7fCf"],["Avalanche","0xf7B6737Ca9c4e08aE573F75A97B73D7a813f5De5"],["Oasis","0x04952D522Ff217f40B5Ef3cbF659EcA7b952a6c1"],["Aurora","0x6dcC0484472523ed9Cdc017F711Bcbf909789284"],["Fantom","0xA9c7119aBDa80d4a4E0C06C8F4d8cF5893234535"],["Karura","0xb91e3638F82A1fACb28690b37e3aAE45d2c33808"],["Acala","0xb91e3638F82A1fACb28690b37e3aAE45d2c33808"],["Klaytn","0x3c3c561757BAa0b78c5C025CdEAa4ee24C1dFfEf"],["Celo","0xA6A377d75ca5c9052c9a77ED1e865Cc25Bd97bf3"],["Aptos","0x1bdffae984043833ed7fe223f7af7a3f8902d04129b14f801823e64827da7130"],["Moonbeam","0x453cfbe096c0f8d763e8c5f24b441097d577bde2"],["Arbitrum","0x3dD14D553cFD986EAC8e3bddF629d82073e188c8"],["Base","0xDA3adC6621B2677BEf9aD26598e6939CF0D92f88"],["Optimism","0xfE8cD454b4A1CA468B57D79c0cc77Ef5B6f64585"]]],["Testnet",[["Solana","2rHhojZ7hpu1zA91nvZmT8TqWWvMcKmmNBCr2mKTtMq4"],["Ethereum","0xD8E4C2DbDd2e2bd8F1336EA691dBFF6952B1a6eB"],["Bsc","0xcD16E5613EF35599dc82B24Cb45B5A93D779f1EE"],["Polygon","0x51a02d0dcb5e52F5b92bdAA38FA013C91c7309A9"],["Avalanche","0xD601BAf2EEE3C028344471684F6b27E789D9075D"],["Oasis","0xC5c25B41AB0b797571620F5204Afa116A44c0ebA"],["Aurora","0x8F399607E9BA2405D87F5f3e1B78D950b44b2e24"],["Fantom","0x63eD9318628D26BdCB15df58B53BB27231D1B227"],["Klaytn","0x94c994fC51c13101062958b567e743f1a04432dE"],["Celo","0xaCD8190F647a31E56A656748bC30F69259f245Db"],["Moonbeam","0x98A0F4B96972b32Fcb3BD03cAeB66A44a6aB9Edb"],["Neon","0x66E5BcFD45D2F3f166c567ADa663f9d2ffb292B4"],["Arbitrum","0xEe3dB83916Ccdc3593b734F7F2d16D630F39F1D0"],["Optimism","0x23908A62110e21C04F3A4e011d24F901F911744A"],["Base","0xF681d1cc5F25a3694E348e7975d7564Aa581db59"],["Sepolia","0x6a0B52ac198e4870e5F3797d5B403838a5bbFD99"],["Aptos","0x1bdffae984043833ed7fe223f7af7a3f8902d04129b14f801823e64827da7130"],["ArbitrumSepolia","0x23908A62110e21C04F3A4e011d24F901F911744A"],["BaseSepolia","0x268557122Ffd64c85750d630b716471118F323c8"],["OptimismSepolia","0x27812285fbe85BA1DF242929B906B31EE3dd1b9f"],["Holesky","0xc8941d483c45eF8FB72E4d1F9dDE089C95fF8171"],["PolygonSepolia","0x23908A62110e21C04F3A4e011d24F901F911744A"],["Mantle","0xD7D732C8Bf5eBF620EA55b5828eae20418eEF083"],["Scroll","0x47B9a1406BEe29a3001BFEB7e45aE45fFFB40c18"]]],["Devnet",[["Solana","NFTWqJR8YnRVqPDvTJrYuLrQDitTG5AScqbeghi4zSA"],["Ethereum","0x26b4afb60d6c903165150c6f0aa14f8016be4aec"],["Terra","terra1plju286nnfj3z54wgcggd4enwaa9fgf5kgrgzl"],["Bsc","0x26b4afb60d6c903165150c6f0aa14f8016be4aec"],["Aptos","0x46da3d4c569388af61f951bdd1153f4c875f90c2991f6b2d0a38e2161a40852c"]]]],jWe=[["Mainnet",[["Ethereum","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Bsc","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Polygon","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Avalanche","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Fantom","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Klaytn","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Celo","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Moonbeam","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Base","0x706f82e9bb5b0813501714ab5974216704980e31"],["Arbitrum","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Optimism","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Blast","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Scroll","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Mantle","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Xlayer","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"],["Worldchain","0x1520cc9e779c56dab5866bebfb885c86840c33d3"],["Snaxchain","0x27428DD2d3DD32A4D7f7C497eAaa23130d894911"]]],["Testnet",[["Ethereum","0x28D8F1Be96f97C1387e94A53e00eCcFb4E75175a"],["Bsc","0x80aC94316391752A193C1c47E27D382b507c93F3"],["Polygon","0x0591C25ebd0580E0d4F27A82Fc2e24E7489CB5e0"],["Avalanche","0xA3cF45939bD6260bcFe3D66bc73d60f19e49a8BB"],["Fantom","0x9563a59c15842a6f322b10f69d1dd88b41f2e97b"],["Celo","0x306B68267Deb7c5DfCDa3619E22E9Ca39C374f84"],["Seievm","0x362fca37E45fe1096b42021b543f462D49a5C8df"],["Moonbeam","0x0591C25ebd0580E0d4F27A82Fc2e24E7489CB5e0"],["Arbitrum","0xAd753479354283eEE1b86c9470c84D42f229FF43"],["Optimism","0x01A957A525a5b7A72808bA9D10c389674E459891"],["Base","0xea8029CD7FCAEFFcD1F53686430Db0Fc8ed384E1"],["Sepolia","0x7B1bD7a6b4E61c2a123AC6BC2cbfC614437D0470"],["ArbitrumSepolia","0x7B1bD7a6b4E61c2a123AC6BC2cbfC614437D0470"],["BaseSepolia","0x93BAD53DDfB6132b0aC8E37f6029163E63372cEE"],["OptimismSepolia","0x93BAD53DDfB6132b0aC8E37f6029163E63372cEE"],["Berachain","0x362fca37E45fe1096b42021b543f462D49a5C8df"],["Unichain","0x362fca37E45fe1096b42021b543f462D49a5C8df"],["Ink","0x362fca37E45fe1096b42021b543f462D49a5C8df"],["Monad","0x362fca37E45fe1096b42021b543f462D49a5C8df"]]],["Devnet",[["Ethereum","0xcC680D088586c09c3E0E099a676FA4b6e42467b4"],["Bsc","0xcC680D088586c09c3E0E099a676FA4b6e42467b4"]]]],Fme=[["Mainnet",[["Ethereum",{tokenMessenger:"0xbd3fa81b58ba92a82136038b25adec7066af3155",messageTransmitter:"0x0a992d191deec32afe36203ad87d7d289a738f81",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0xAaDA05BD399372f0b0463744C09113c137636f6a"}],["Avalanche",{tokenMessenger:"0x6b25532e1060ce10cc3b0a99e5683b91bfde6982",messageTransmitter:"0x8186359af5f57fbb40c6b14a588d2a59c0c29880",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x09Fb06A271faFf70A651047395AaEb6265265F13"}],["Optimism",{tokenMessenger:"0x2B4069517957735bE00ceE0fadAE88a26365528f",messageTransmitter:"0x4d41f22c5a0e5c74090899e5a8fb597a8842b3e8",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x2703483B1a5a7c577e8680de9Df8Be03c6f30e3c"}],["Arbitrum",{tokenMessenger:"0x19330d10D9Cc8751218eaf51E8885D058642E08A",messageTransmitter:"0xC30362313FBBA5cf9163F0bb16a0e01f01A896ca",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x2703483B1a5a7c577e8680de9Df8Be03c6f30e3c"}],["Base",{tokenMessenger:"0x1682Ae6375C4E4A97e4B583BC394c861A46D8962",messageTransmitter:"0xAD09780d193884d503182aD4588450C416D6F9D4",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x03faBB06Fa052557143dC28eFCFc63FC12843f1D"}],["Solana",{tokenMessenger:"CCTPiPYPc6AsJuwueEnWgSgucamXDZwBd53dQ11YiKX3",messageTransmitter:"CCTPmbSD7gX1bxKPAmg77w8oFzNFpaQiQUWD43TKaecd",wormholeRelayer:"",wormhole:""}],["Polygon",{tokenMessenger:"0x9daF8c91AEFAE50b9c0E69629D3F6Ca40cA3B3FE",messageTransmitter:"0xF3be9355363857F3e001be68856A2f96b4C39Ba9",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x0FF28217dCc90372345954563486528aa865cDd6"}],["Sui",{tokenMessenger:"0x2aa6c5d56376c371f88a6cc42e852824994993cb9bab8d3e6450cbe3cb32b94e",messageTransmitter:"0x08d87d37ba49e785dde270a83f8e979605b03dc552b5548f26fdf2f49bf7ed1b",wormholeRelayer:"",wormhole:""}],["Aptos",{tokenMessenger:"0x9e6702a472080ea3caaf6ba9dfaa6effad2290a9ba9adaacd5af5c618e42782d",messageTransmitter:"0x177e17751820e4b4371873ca8c30279be63bdea63b88ed0f2239c2eea10f1772",wormholeRelayer:"",wormhole:""}],["Unichain",{tokenMessenger:"0x4e744b28E787c3aD0e810eD65A24461D4ac5a762",messageTransmitter:"0x353bE9E2E38AB1D19104534e4edC21c643Df86f4",wormholeRelayer:"",wormhole:""}]]],["Testnet",[["Sepolia",{tokenMessenger:"0x9f3B8679c73C2Fef8b59B4f3444d4e156fb70AA5",messageTransmitter:"0x7865fAfC2db2093669d92c0F33AeEF291086BEFD",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x2703483B1a5a7c577e8680de9Df8Be03c6f30e3c"}],["Avalanche",{tokenMessenger:"0xeb08f243e5d3fcff26a9e38ae5520a669f4019d0",messageTransmitter:"0xa9fb1b3009dcb79e2fe346c16a604b8fa8ae0a79",wormholeRelayer:"0x774a70bbd03327c21460b60f25b677d9e46ab458",wormhole:"0x58f4c17449c90665891c42e14d34aae7a26a472e"}],["OptimismSepolia",{tokenMessenger:"0x9f3B8679c73C2Fef8b59B4f3444d4e156fb70AA5",messageTransmitter:"0x7865fAfC2db2093669d92c0F33AeEF291086BEFD",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x2703483B1a5a7c577e8680de9Df8Be03c6f30e3c"}],["ArbitrumSepolia",{tokenMessenger:"0x9f3B8679c73C2Fef8b59B4f3444d4e156fb70AA5",messageTransmitter:"0xaCF1ceeF35caAc005e15888dDb8A3515C41B4872",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x2703483B1a5a7c577e8680de9Df8Be03c6f30e3c"}],["Solana",{tokenMessenger:"CCTPiPYPc6AsJuwueEnWgSgucamXDZwBd53dQ11YiKX3",messageTransmitter:"CCTPmbSD7gX1bxKPAmg77w8oFzNFpaQiQUWD43TKaecd",wormholeRelayer:"",wormhole:""}],["BaseSepolia",{tokenMessenger:"0x9f3B8679c73C2Fef8b59B4f3444d4e156fb70AA5",messageTransmitter:"0x7865fAfC2db2093669d92c0F33AeEF291086BEFD",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x2703483B1a5a7c577e8680de9Df8Be03c6f30e3c"}],["Polygon",{tokenMessenger:"0x9f3B8679c73C2Fef8b59B4f3444d4e156fb70AA5",messageTransmitter:"0xe09A679F56207EF33F5b9d8fb4499Ec00792eA73",wormholeRelayer:"0x4cb69FaE7e7Af841e44E1A1c30Af640739378bb2",wormhole:"0x2703483B1a5a7c577e8680de9Df8Be03c6f30e3c"}],["Sui",{tokenMessenger:"0x31cc14d80c175ae39777c0238f20594c6d4869cfab199f40b69f3319956b8beb",messageTransmitter:"0x4931e06dce648b3931f890035bd196920770e913e43e45990b383f6486fdd0a5",wormholeRelayer:"",wormhole:""}],["Aptos",{tokenMessenger:"0x5f9b937419dda90aa06c1836b7847f65bbbe3f1217567758dc2488be31a477b9",messageTransmitter:"0x081e86cebf457a0c6004f35bd648a2794698f52e0dde09a48619dcd3d4cc23d9",wormholeRelayer:"",wormhole:""}],["Unichain",{tokenMessenger:"0x8ed94B8dAd2Dc5453862ea5e316A8e71AAed9782",messageTransmitter:"0xbc498c326533d675cf571B90A2Ced265ACb7d086",wormholeRelayer:"",wormhole:""}]]]],zWe=[["Mainnet",[["Wormchain","wormhole14ejqjyq8um4p3xfqj74yld5waqljf88fz25yxnma0cngspxe3les00fpjx"]]],["Testnet",[["Wormchain","wormhole1ctnjk7an90lz5wjfvr3cf6x984a8cjnv8dpmztmlpcq4xteaa2xs9pwmzk"]]]],PWe=[["Mainnet",[["Sei","sei189adguawugk3e55zn63z8r9ll29xrjwca636ra7v7gxuzn98sxyqwzt47l"]]],["Testnet",[["Sei","sei1dkdwdvknx0qav5cp5kw68mkn3r99m3svkyjfvkztwh97dv2lm0ksj6xrak"]]]],OWe=[["Mainnet",[["Polygon",["Ethereum","0x86E4Dc95c7FBdBf52e33D563BbDB00823894C287"]],["Optimism",["Ethereum","0xdfe97868233d1aa22e815a266982f2cf17685a27"]],["Arbitrum",["Ethereum","0x1c479675ad559dc151f6ec7ed3fbf8cee79582b6"]]]],["Testnet",[["Polygon",["Ethereum","0x2890ba17efe978480615e330ecb65333b880928e"]],["Optimism",["Ethereum","0xe6dfba0953616bacab0c9a8ecb3a9bba77fc15c0"]],["Arbitrum",["Ethereum","0x45af9ed1d03703e480ce7d328fb684bb67da5049"]]]]],Ume=[["Mainnet",[["Ethereum",{porticoUniswap:"0x48b6101128C0ed1E208b7C910e60542A2ee6f476",uniswapQuoterV2:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",porticoPancakeSwap:"0x4db1683d60e0a933A9A477a19FA32F472bB9d06e",pancakeSwapQuoterV2:"0xB048Bbc1Ee6b733FFfCFb9e9CeF7375518e25997"}],["Polygon",{porticoUniswap:"0x227bABe533fa9a1085f5261210E0B7137E44437B",uniswapQuoterV2:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",porticoPancakeSwap:void 0,pancakeSwapQuoterV2:void 0}],["Bsc",{porticoUniswap:"0x05498574BD0Fa99eeCB01e1241661E7eE58F8a85",uniswapQuoterV2:"0x78D78E420Da98ad378D7799bE8f4AF69033EB077",porticoPancakeSwap:"0xF352DC165783538A26e38A536e76DceF227d90F2",pancakeSwapQuoterV2:"0xB048Bbc1Ee6b733FFfCFb9e9CeF7375518e25997"}],["Avalanche",{porticoUniswap:"0xE565E118e75304dD3cF83dff409c90034b7EA18a",uniswapQuoterV2:"0xbe0F5544EC67e9B3b2D979aaA43f18Fd87E6257F",porticoPancakeSwap:void 0,pancakeSwapQuoterV2:void 0}],["Arbitrum",{porticoUniswap:"0x48fa7528bFD6164DdF09dF0Ed22451cF59c84130",uniswapQuoterV2:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",porticoPancakeSwap:"0xE70946692E2e56ae47BfAe2d93d31bd60952B090",pancakeSwapQuoterV2:"0xB048Bbc1Ee6b733FFfCFb9e9CeF7375518e25997"}],["Optimism",{porticoUniswap:"0x9ae506cDDd27DEe1275fd1fe6627E5dc65257061",uniswapQuoterV2:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",porticoPancakeSwap:void 0,pancakeSwapQuoterV2:void 0}],["Base",{porticoUniswap:"0x610d4DFAC3EC32e0be98D18DDb280DACD76A1889",uniswapQuoterV2:"0x3d4e44Eb1374240CE5F1B871ab261CD16335B76a",porticoPancakeSwap:"0x4568aa1eA0ED54db666c58B4526B3FC9BD9be9bf",pancakeSwapQuoterV2:"0xB048Bbc1Ee6b733FFfCFb9e9CeF7375518e25997"}],["Celo",{porticoUniswap:"0xE565E118e75304dD3cF83dff409c90034b7EA18a",uniswapQuoterV2:"0x82825d0554fA07f7FC52Ab63c961F330fdEFa8E8",porticoPancakeSwap:void 0,pancakeSwapQuoterV2:void 0}]]]],RWe=Br(LWe),FWe=Br(Ome),UWe=Br(Rme),WWe=Br(BWe),VWe=Br(jWe),Eae=Br(zWe),Cae=Br(PWe),Tae=Br(Ume),EU=Br(Fme);Br(OWe);const $We=Br(Ome,[0,1]),Iae=Br(Rme,[0,1]),GT=Br(Fme,[0,1]),Dae=Br(Ume,[0,1]),iq=[["Mainnet",[["0x58CC3AE5C097b213cE3c81979e1B9f9570746AA5","JumpCrypto"],["0xfF6CB952589BDE862c25Ef4392132fb9D4A42157","Staked"],["0x114De8460193bdf3A2fCf81f86a09765F4762fD1","Figment"],["0x107A0086b32d7A0977926A205131d8731D39cbEB","ChainodeTech"],["0x8C82B2fd82FaeD2711d59AF0F2499D16e726f6b2","Inotel"],["0x11b39756C042441BE6D8650b69b54EbE715E2343","HashQuark"],["0x54Ce5B4D348fb74B958e8966e2ec3dBd4958a7cd","Chainlayer"],["0x15e7cAF07C4e3DC8e7C469f92C8Cd88FB8005a20","xLabs"],["0x74a3bf913953D695260D88BC1aA25A4eeE363ef0","Forbole"],["0x000aC0076727b35FBea2dAc28fEE5cCB0fEA768e","StakingFund"],["0xAF45Ced136b9D9e24903464AE889F5C8a723FC14","MoonletWallet"],["0xf93124b7c738843CBB89E864c862c38cddCccF95","P2PValidator"],["0xD2CC37A4dc036a8D232b48f62cDD4731412f4890","01Node"],["0xDA798F6896A3331F64b48c12D1D57Fd9cbe70811","MCF"],["0x71AA1BE1D36CaFE3867910F99C09e347899C19C3","Everstake"],["0x8192b6E7387CCd768277c17DAb1b7a5027c0b3Cf","ChorusOne"],["0x178e21ad2E77AE06711549CFBB1f9c7a9d8096e8","Syncnode"],["0x5E1487F35515d02A92753504a8D75471b9f49EdB","Triton"],["0x6FbEBc898F403E4773E95feB15E80C9A99c8348d","StakingFacilities"]]],["Testnet",[["0x13947Bd48b18E53fdAeEe77F3473391aC727C638","Testnet guardian"]]]],[Ikt,Dkt]=$Ue(Mh(VT(iq)),[1,2]);Br(iq,[[0,2],1]);Br(iq,[1,[0,2]]);const Wme=5;function b8(t){if(!Number.isSafeInteger(t)||t<0)throw new Error("positive integer expected, got "+t)}function HWe(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&t.constructor.name==="Uint8Array"}function Fg(t,...e){if(!HWe(t))throw new Error("Uint8Array expected");if(e.length>0&&!e.includes(t.length))throw new Error("Uint8Array expected of length "+e+", got length="+t.length)}function qWe(t){if(typeof t!="function"||typeof t.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");b8(t.outputLen),b8(t.blockLen)}function _2(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function sq(t,e){Fg(t);const r=e.outputLen;if(t.length<r)throw new Error("digestInto() expects output buffer of length at least "+r)}const V3=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */function Nx(t){return new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4))}function sB(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function Kc(t,e){return t<<32-e|t>>>e}function Nkt(t,e){return t<<e|t>>>32-e>>>0}const id=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function Vme(t){return t<<24&4278190080|t<<8&16711680|t>>>8&65280|t>>>24&255}const Zu=id?t=>t:t=>Vme(t);function u6(t){for(let e=0;e<t.length;e++)t[e]=Vme(t[e])}const GWe=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function kkt(t){Fg(t);let e="";for(let r=0;r<t.length;r++)e+=GWe[t[r]];return e}const ku={_0:48,_9:57,A:65,F:70,a:97,f:102};function Nae(t){if(t>=ku._0&&t<=ku._9)return t-ku._0;if(t>=ku.A&&t<=ku.F)return t-(ku.A-10);if(t>=ku.a&&t<=ku.f)return t-(ku.a-10)}function _kt(t){if(typeof t!="string")throw new Error("hex string expected, got "+typeof t);const e=t.length,r=e/2;if(e%2)throw new Error("hex string expected, got unpadded hex of length "+e);const n=new Uint8Array(r);for(let a=0,i=0;a<r;a++,i+=2){const s=Nae(t.charCodeAt(i)),o=Nae(t.charCodeAt(i+1));if(s===void 0||o===void 0){const c=t[i]+t[i+1];throw new Error('hex string expected, got non-hex character "'+c+'" at index '+i)}n[a]=s*16+o}return n}function YWe(t){if(typeof t!="string")throw new Error("utf8ToBytes expected string, got "+typeof t);return new Uint8Array(new TextEncoder().encode(t))}function Xd(t){return typeof t=="string"&&(t=YWe(t)),Fg(t),t}function KWe(...t){let e=0;for(let n=0;n<t.length;n++){const a=t[n];Fg(a),e+=a.length}const r=new Uint8Array(e);for(let n=0,a=0;n<t.length;n++){const i=t[n];r.set(i,a),a+=i.length}return r}class kN{clone(){return this._cloneInto()}}function Lkt(t,e){if(e!==void 0&&{}.toString.call(e)!=="[object Object]")throw new Error("Options should be object or undefined");return Object.assign(t,e)}function _N(t){const e=n=>t().update(Xd(n)).digest(),r=t();return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=()=>t(),e}function ZWe(t){const e=(n,a)=>t(a).update(Xd(n)).digest(),r=t({});return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=n=>t(n),e}function $me(t=32){if(V3&&typeof V3.getRandomValues=="function")return V3.getRandomValues(new Uint8Array(t));if(V3&&typeof V3.randomBytes=="function")return V3.randomBytes(t);throw new Error("crypto.getRandomValues must be defined")}function QWe(t,e,r,n){if(typeof t.setBigUint64=="function")return t.setBigUint64(e,r,n);const a=BigInt(32),i=BigInt(4294967295),s=Number(r>>a&i),o=Number(r&i),c=n?4:0,l=n?0:4;t.setUint32(e+c,s,n),t.setUint32(e+l,o,n)}function JWe(t,e,r){return t&e^~t&r}function XWe(t,e,r){return t&e^t&r^e&r}class Hme extends kN{constructor(e,r,n,a){super(),this.blockLen=e,this.outputLen=r,this.padOffset=n,this.isLE=a,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=sB(this.buffer)}update(e){_2(this);const{view:r,buffer:n,blockLen:a}=this;e=Xd(e);const i=e.length;for(let s=0;s<i;){const o=Math.min(a-this.pos,i-s);if(o===a){const c=sB(e);for(;a<=i-s;s+=a)this.process(c,s);continue}n.set(e.subarray(s,s+o),this.pos),this.pos+=o,s+=o,this.pos===a&&(this.process(r,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){_2(this),sq(e,this),this.finished=!0;const{buffer:r,view:n,blockLen:a,isLE:i}=this;let{pos:s}=this;r[s++]=128,this.buffer.subarray(s).fill(0),this.padOffset>a-s&&(this.process(n,0),s=0);for(let h=s;h<a;h++)r[h]=0;QWe(n,a-8,BigInt(this.length*8),i),this.process(n,0);const o=sB(e),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const l=c/4,d=this.get();if(l>d.length)throw new Error("_sha2: outputLen bigger than state");for(let h=0;h<l;h++)o.setUint32(4*h,d[h],i)}digest(){const{buffer:e,outputLen:r}=this;this.digestInto(e);const n=e.slice(0,r);return this.destroy(),n}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());const{blockLen:r,buffer:n,length:a,finished:i,destroyed:s,pos:o}=this;return e.length=a,e.pos=o,e.finished=i,e.destroyed=s,a%r&&e.buffer.set(n),e}}const eVe=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),$f=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Hf=new Uint32Array(64);class tVe extends Hme{constructor(){super(64,32,8,!1),this.A=$f[0]|0,this.B=$f[1]|0,this.C=$f[2]|0,this.D=$f[3]|0,this.E=$f[4]|0,this.F=$f[5]|0,this.G=$f[6]|0,this.H=$f[7]|0}get(){const{A:e,B:r,C:n,D:a,E:i,F:s,G:o,H:c}=this;return[e,r,n,a,i,s,o,c]}set(e,r,n,a,i,s,o,c){this.A=e|0,this.B=r|0,this.C=n|0,this.D=a|0,this.E=i|0,this.F=s|0,this.G=o|0,this.H=c|0}process(e,r){for(let h=0;h<16;h++,r+=4)Hf[h]=e.getUint32(r,!1);for(let h=16;h<64;h++){const m=Hf[h-15],y=Hf[h-2],x=Kc(m,7)^Kc(m,18)^m>>>3,M=Kc(y,17)^Kc(y,19)^y>>>10;Hf[h]=M+Hf[h-7]+x+Hf[h-16]|0}let{A:n,B:a,C:i,D:s,E:o,F:c,G:l,H:d}=this;for(let h=0;h<64;h++){const m=Kc(o,6)^Kc(o,11)^Kc(o,25),y=d+m+JWe(o,c,l)+eVe[h]+Hf[h]|0,M=(Kc(n,2)^Kc(n,13)^Kc(n,22))+XWe(n,a,i)|0;d=l,l=c,c=o,o=s+y|0,s=i,i=a,a=n,n=y+M|0}n=n+this.A|0,a=a+this.B|0,i=i+this.C|0,s=s+this.D|0,o=o+this.E|0,c=c+this.F|0,l=l+this.G|0,d=d+this.H|0,this.set(n,a,i,s,o,c,l,d)}roundClean(){Hf.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const L2=_N(()=>new tVe),OA=BigInt(2**32-1),CU=BigInt(32);function qme(t,e=!1){return e?{h:Number(t&OA),l:Number(t>>CU&OA)}:{h:Number(t>>CU&OA)|0,l:Number(t&OA)|0}}function Gme(t,e=!1){let r=new Uint32Array(t.length),n=new Uint32Array(t.length);for(let a=0;a<t.length;a++){const{h:i,l:s}=qme(t[a],e);[r[a],n[a]]=[i,s]}return[r,n]}const rVe=(t,e)=>BigInt(t>>>0)<<CU|BigInt(e>>>0),nVe=(t,e,r)=>t>>>r,aVe=(t,e,r)=>t<<32-r|e>>>r,iVe=(t,e,r)=>t>>>r|e<<32-r,sVe=(t,e,r)=>t<<32-r|e>>>r,oVe=(t,e,r)=>t<<64-r|e>>>r-32,cVe=(t,e,r)=>t>>>r-32|e<<64-r,lVe=(t,e)=>e,uVe=(t,e)=>t,Yme=(t,e,r)=>t<<r|e>>>32-r,Kme=(t,e,r)=>e<<r|t>>>32-r,Zme=(t,e,r)=>e<<r-32|t>>>64-r,Qme=(t,e,r)=>t<<r-32|e>>>64-r;function dVe(t,e,r,n){const a=(e>>>0)+(n>>>0);return{h:t+r+(a/2**32|0)|0,l:a|0}}const fVe=(t,e,r)=>(t>>>0)+(e>>>0)+(r>>>0),pVe=(t,e,r,n)=>e+r+n+(t/2**32|0)|0,hVe=(t,e,r,n)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0),mVe=(t,e,r,n,a)=>e+r+n+a+(t/2**32|0)|0,bVe=(t,e,r,n,a)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0)+(a>>>0),gVe=(t,e,r,n,a,i)=>e+r+n+a+i+(t/2**32|0)|0,br={fromBig:qme,split:Gme,toBig:rVe,shrSH:nVe,shrSL:aVe,rotrSH:iVe,rotrSL:sVe,rotrBH:oVe,rotrBL:cVe,rotr32H:lVe,rotr32L:uVe,rotlSH:Yme,rotlSL:Kme,rotlBH:Zme,rotlBL:Qme,add:dVe,add3L:fVe,add3H:pVe,add4L:hVe,add4H:mVe,add5H:gVe,add5L:bVe},Jme=[],Xme=[],e9e=[],yVe=BigInt(0),qy=BigInt(1),vVe=BigInt(2),xVe=BigInt(7),wVe=BigInt(256),MVe=BigInt(113);for(let t=0,e=qy,r=1,n=0;t<24;t++){[r,n]=[n,(2*r+3*n)%5],Jme.push(2*(5*n+r)),Xme.push((t+1)*(t+2)/2%64);let a=yVe;for(let i=0;i<7;i++)e=(e<<qy^(e>>xVe)*MVe)%wVe,e&vVe&&(a^=qy<<(qy<<BigInt(i))-qy);e9e.push(a)}const[AVe,SVe]=Gme(e9e,!0),kae=(t,e,r)=>r>32?Zme(t,e,r):Yme(t,e,r),_ae=(t,e,r)=>r>32?Qme(t,e,r):Kme(t,e,r);function EVe(t,e=24){const r=new Uint32Array(10);for(let n=24-e;n<24;n++){for(let s=0;s<10;s++)r[s]=t[s]^t[s+10]^t[s+20]^t[s+30]^t[s+40];for(let s=0;s<10;s+=2){const o=(s+8)%10,c=(s+2)%10,l=r[c],d=r[c+1],h=kae(l,d,1)^r[o],m=_ae(l,d,1)^r[o+1];for(let y=0;y<50;y+=10)t[s+y]^=h,t[s+y+1]^=m}let a=t[2],i=t[3];for(let s=0;s<24;s++){const o=Xme[s],c=kae(a,i,o),l=_ae(a,i,o),d=Jme[s];a=t[d],i=t[d+1],t[d]=c,t[d+1]=l}for(let s=0;s<50;s+=10){for(let o=0;o<10;o++)r[o]=t[s+o];for(let o=0;o<10;o++)t[s+o]^=~r[(o+2)%10]&r[(o+4)%10]}t[0]^=AVe[n],t[1]^=SVe[n]}r.fill(0)}class oq extends kN{constructor(e,r,n,a=!1,i=24){if(super(),this.blockLen=e,this.suffix=r,this.outputLen=n,this.enableXOF=a,this.rounds=i,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,b8(n),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=Nx(this.state)}keccak(){id||u6(this.state32),EVe(this.state32,this.rounds),id||u6(this.state32),this.posOut=0,this.pos=0}update(e){_2(this);const{blockLen:r,state:n}=this;e=Xd(e);const a=e.length;for(let i=0;i<a;){const s=Math.min(r-this.pos,a-i);for(let o=0;o<s;o++)n[this.pos++]^=e[i++];this.pos===r&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:e,suffix:r,pos:n,blockLen:a}=this;e[n]^=r,r&128&&n===a-1&&this.keccak(),e[a-1]^=128,this.keccak()}writeInto(e){_2(this,!1),Fg(e),this.finish();const r=this.state,{blockLen:n}=this;for(let a=0,i=e.length;a<i;){this.posOut>=n&&this.keccak();const s=Math.min(n-this.posOut,i-a);e.set(r.subarray(this.posOut,this.posOut+s),a),this.posOut+=s,a+=s}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return b8(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(sq(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){const{blockLen:r,suffix:n,outputLen:a,rounds:i,enableXOF:s}=this;return e||(e=new oq(r,n,a,s,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=n,e.outputLen=a,e.enableXOF=s,e.destroyed=this.destroyed,e}}const t9e=(t,e,r)=>_N(()=>new oq(e,t,r)),Bkt=t9e(6,136,256/8),F8=t9e(1,136,256/8),[CVe,TVe]=br.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(t=>BigInt(t))),qf=new Uint32Array(80),Gf=new Uint32Array(80);class r9e extends Hme{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:e,Al:r,Bh:n,Bl:a,Ch:i,Cl:s,Dh:o,Dl:c,Eh:l,El:d,Fh:h,Fl:m,Gh:y,Gl:x,Hh:M,Hl:E}=this;return[e,r,n,a,i,s,o,c,l,d,h,m,y,x,M,E]}set(e,r,n,a,i,s,o,c,l,d,h,m,y,x,M,E){this.Ah=e|0,this.Al=r|0,this.Bh=n|0,this.Bl=a|0,this.Ch=i|0,this.Cl=s|0,this.Dh=o|0,this.Dl=c|0,this.Eh=l|0,this.El=d|0,this.Fh=h|0,this.Fl=m|0,this.Gh=y|0,this.Gl=x|0,this.Hh=M|0,this.Hl=E|0}process(e,r){for(let D=0;D<16;D++,r+=4)qf[D]=e.getUint32(r),Gf[D]=e.getUint32(r+=4);for(let D=16;D<80;D++){const k=qf[D-15]|0,_=Gf[D-15]|0,L=br.rotrSH(k,_,1)^br.rotrSH(k,_,8)^br.shrSH(k,_,7),O=br.rotrSL(k,_,1)^br.rotrSL(k,_,8)^br.shrSL(k,_,7),B=qf[D-2]|0,z=Gf[D-2]|0,F=br.rotrSH(B,z,19)^br.rotrBH(B,z,61)^br.shrSH(B,z,6),I=br.rotrSL(B,z,19)^br.rotrBL(B,z,61)^br.shrSL(B,z,6),u=br.add4L(O,I,Gf[D-7],Gf[D-16]),f=br.add4H(u,L,F,qf[D-7],qf[D-16]);qf[D]=f|0,Gf[D]=u|0}let{Ah:n,Al:a,Bh:i,Bl:s,Ch:o,Cl:c,Dh:l,Dl:d,Eh:h,El:m,Fh:y,Fl:x,Gh:M,Gl:E,Hh:S,Hl:T}=this;for(let D=0;D<80;D++){const k=br.rotrSH(h,m,14)^br.rotrSH(h,m,18)^br.rotrBH(h,m,41),_=br.rotrSL(h,m,14)^br.rotrSL(h,m,18)^br.rotrBL(h,m,41),L=h&y^~h&M,O=m&x^~m&E,B=br.add5L(T,_,O,TVe[D],Gf[D]),z=br.add5H(B,S,k,L,CVe[D],qf[D]),F=B|0,I=br.rotrSH(n,a,28)^br.rotrBH(n,a,34)^br.rotrBH(n,a,39),u=br.rotrSL(n,a,28)^br.rotrBL(n,a,34)^br.rotrBL(n,a,39),f=n&i^n&o^i&o,b=a&s^a&c^s&c;S=M|0,T=E|0,M=y|0,E=x|0,y=h|0,x=m|0,{h,l:m}=br.add(l|0,d|0,z|0,F|0),l=o|0,d=c|0,o=i|0,c=s|0,i=n|0,s=a|0;const g=br.add3L(F,u,b);n=br.add3H(g,z,I,f),a=g|0}({h:n,l:a}=br.add(this.Ah|0,this.Al|0,n|0,a|0)),{h:i,l:s}=br.add(this.Bh|0,this.Bl|0,i|0,s|0),{h:o,l:c}=br.add(this.Ch|0,this.Cl|0,o|0,c|0),{h:l,l:d}=br.add(this.Dh|0,this.Dl|0,l|0,d|0),{h,l:m}=br.add(this.Eh|0,this.El|0,h|0,m|0),{h:y,l:x}=br.add(this.Fh|0,this.Fl|0,y|0,x|0),{h:M,l:E}=br.add(this.Gh|0,this.Gl|0,M|0,E|0),{h:S,l:T}=br.add(this.Hh|0,this.Hl|0,S|0,T|0),this.set(n,a,i,s,o,c,l,d,h,m,y,x,M,E,S,T)}roundClean(){qf.fill(0),Gf.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}class IVe extends r9e{constructor(){super(),this.Ah=573645204,this.Al=-64227540,this.Bh=-1621794909,this.Bl=-934517566,this.Ch=596883563,this.Cl=1867755857,this.Dh=-1774684391,this.Dl=1497426621,this.Eh=-1775747358,this.El=-1467023389,this.Fh=-1101128155,this.Fl=1401305490,this.Gh=721525244,this.Gl=746961066,this.Hh=246885852,this.Hl=-2117784414,this.outputLen=32}}const DVe=_N(()=>new r9e),NVe=_N(()=>new IVe);class n9e extends kN{constructor(e,r){super(),this.finished=!1,this.destroyed=!1,qWe(e);const n=Xd(r);if(this.iHash=e.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const a=this.blockLen,i=new Uint8Array(a);i.set(n.length>a?e.create().update(n).digest():n);for(let s=0;s<i.length;s++)i[s]^=54;this.iHash.update(i),this.oHash=e.create();for(let s=0;s<i.length;s++)i[s]^=106;this.oHash.update(i),i.fill(0)}update(e){return _2(this),this.iHash.update(e),this}digestInto(e){_2(this),Fg(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){const e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));const{oHash:r,iHash:n,finished:a,destroyed:i,blockLen:s,outputLen:o}=this;return e=e,e.finished=a,e.destroyed=i,e.blockLen=s,e.outputLen=o,e.oHash=r._cloneInto(e.oHash),e.iHash=n._cloneInto(e.iHash),e}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const a9e=(t,e,r)=>new n9e(t,e).update(r).digest();a9e.create=(t,e)=>new n9e(t,e);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const LN=BigInt(0),BN=BigInt(1),kVe=BigInt(2);function U8(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&t.constructor.name==="Uint8Array"}function sM(t){if(!U8(t))throw new Error("Uint8Array expected")}function ef(t,e){if(typeof e!="boolean")throw new Error(t+" boolean expected, got "+e)}const _Ve=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function W8(t){sM(t);let e="";for(let r=0;r<t.length;r++)e+=_Ve[t[r]];return e}function j4(t){const e=t.toString(16);return e.length&1?"0"+e:e}function cq(t){if(typeof t!="string")throw new Error("hex string expected, got "+typeof t);return t===""?LN:BigInt("0x"+t)}const _u={_0:48,_9:57,A:65,F:70,a:97,f:102};function Lae(t){if(t>=_u._0&&t<=_u._9)return t-_u._0;if(t>=_u.A&&t<=_u.F)return t-(_u.A-10);if(t>=_u.a&&t<=_u.f)return t-(_u.a-10)}function P9(t){if(typeof t!="string")throw new Error("hex string expected, got "+typeof t);const e=t.length,r=e/2;if(e%2)throw new Error("hex string expected, got unpadded hex of length "+e);const n=new Uint8Array(r);for(let a=0,i=0;a<r;a++,i+=2){const s=Lae(t.charCodeAt(i)),o=Lae(t.charCodeAt(i+1));if(s===void 0||o===void 0){const c=t[i]+t[i+1];throw new Error('hex string expected, got non-hex character "'+c+'" at index '+i)}n[a]=s*16+o}return n}function g8(t){return cq(W8(t))}function um(t){return sM(t),cq(W8(Uint8Array.from(t).reverse()))}function O9(t,e){return P9(t.toString(16).padStart(e*2,"0"))}function kx(t,e){return O9(t,e).reverse()}function LVe(t){return P9(j4(t))}function Ni(t,e,r){let n;if(typeof e=="string")try{n=P9(e)}catch(i){throw new Error(t+" must be hex string or Uint8Array, cause: "+i)}else if(U8(e))n=Uint8Array.from(e);else throw new Error(t+" must be hex string or Uint8Array");const a=n.length;if(typeof r=="number"&&a!==r)throw new Error(t+" of length "+r+" expected, got "+a);return n}function V8(...t){let e=0;for(let n=0;n<t.length;n++){const a=t[n];sM(a),e+=a.length}const r=new Uint8Array(e);for(let n=0,a=0;n<t.length;n++){const i=t[n];r.set(i,a),a+=i.length}return r}function BVe(t,e){if(t.length!==e.length)return!1;let r=0;for(let n=0;n<t.length;n++)r|=t[n]^e[n];return r===0}function jVe(t){if(typeof t!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(t))}const oB=t=>typeof t=="bigint"&&LN<=t;function jN(t,e,r){return oB(t)&&oB(e)&&oB(r)&&e<=t&&t<r}function I1(t,e,r,n){if(!jN(e,r,n))throw new Error("expected valid "+t+": "+r+" <= n < "+n+", got "+e)}function i9e(t){let e;for(e=0;t>LN;t>>=BN,e+=1);return e}function zVe(t,e){return t>>BigInt(e)&BN}function PVe(t,e,r){return t|(r?BN:LN)<<BigInt(e)}const lq=t=>(kVe<<BigInt(t-1))-BN,cB=t=>new Uint8Array(t),Bae=t=>Uint8Array.from(t);function s9e(t,e,r){if(typeof t!="number"||t<2)throw new Error("hashLen must be a number");if(typeof e!="number"||e<2)throw new Error("qByteLen must be a number");if(typeof r!="function")throw new Error("hmacFn must be a function");let n=cB(t),a=cB(t),i=0;const s=()=>{n.fill(1),a.fill(0),i=0},o=(...h)=>r(a,n,...h),c=(h=cB())=>{a=o(Bae([0]),h),n=o(),h.length!==0&&(a=o(Bae([1]),h),n=o())},l=()=>{if(i++>=1e3)throw new Error("drbg: tried 1000 values");let h=0;const m=[];for(;h<e;){n=o();const y=n.slice();m.push(y),h+=n.length}return V8(...m)};return(h,m)=>{s(),c(h);let y;for(;!(y=m(l()));)c();return s(),y}}const OVe={bigint:t=>typeof t=="bigint",function:t=>typeof t=="function",boolean:t=>typeof t=="boolean",string:t=>typeof t=="string",stringOrUint8Array:t=>typeof t=="string"||U8(t),isSafeInteger:t=>Number.isSafeInteger(t),array:t=>Array.isArray(t),field:(t,e)=>e.Fp.isValid(t),hash:t=>typeof t=="function"&&Number.isSafeInteger(t.outputLen)};function Ug(t,e,r={}){const n=(a,i,s)=>{const o=OVe[i];if(typeof o!="function")throw new Error("invalid validator function");const c=t[a];if(!(s&&c===void 0)&&!o(c,t))throw new Error("param "+String(a)+" is invalid. Expected "+i+", got "+c)};for(const[a,i]of Object.entries(e))n(a,i,!1);for(const[a,i]of Object.entries(r))n(a,i,!0);return t}const RVe=()=>{throw new Error("not implemented")};function _x(t){const e=new WeakMap;return(r,...n)=>{const a=e.get(r);if(a!==void 0)return a;const i=t(r,...n);return e.set(r,i),i}}const FVe=Object.freeze(Object.defineProperty({__proto__:null,aInRange:I1,abool:ef,abytes:sM,bitGet:zVe,bitLen:i9e,bitMask:lq,bitSet:PVe,bytesToHex:W8,bytesToNumberBE:g8,bytesToNumberLE:um,concatBytes:V8,createHmacDrbg:s9e,ensureBytes:Ni,equalBytes:BVe,hexToBytes:P9,hexToNumber:cq,inRange:jN,isBytes:U8,memoized:_x,notImplemented:RVe,numberToBytesBE:O9,numberToBytesLE:kx,numberToHexUnpadded:j4,numberToVarBytesBE:LVe,utf8ToBytes:jVe,validateObject:Ug},Symbol.toStringTag,{value:"Module"}));/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const d0=BigInt(0),Ua=BigInt(1),ah=BigInt(2),UVe=BigInt(3),TU=BigInt(4),jae=BigInt(5),zae=BigInt(8);function ka(t,e){const r=t%e;return r>=d0?r:e+r}function WVe(t,e,r){if(e<d0)throw new Error("invalid exponent, negatives unsupported");if(r<=d0)throw new Error("invalid modulus");if(r===Ua)return d0;let n=Ua;for(;e>d0;)e&Ua&&(n=n*t%r),t=t*t%r,e>>=Ua;return n}function ei(t,e,r){let n=t;for(;e-- >d0;)n*=n,n%=r;return n}function IU(t,e){if(t===d0)throw new Error("invert: expected non-zero number");if(e<=d0)throw new Error("invert: expected positive modulus, got "+e);let r=ka(t,e),n=e,a=d0,i=Ua;for(;r!==d0;){const o=n/r,c=n%r,l=a-i*o;n=r,r=c,a=i,i=l}if(n!==Ua)throw new Error("invert: does not exist");return ka(a,e)}function VVe(t){const e=(t-Ua)/ah;let r,n,a;for(r=t-Ua,n=0;r%ah===d0;r/=ah,n++);for(a=ah;a<t&&WVe(a,e,t)!==t-Ua;a++)if(a>1e3)throw new Error("Cannot find square root: likely non-prime P");if(n===1){const s=(t+Ua)/TU;return function(c,l){const d=c.pow(l,s);if(!c.eql(c.sqr(d),l))throw new Error("Cannot find square root");return d}}const i=(r+Ua)/ah;return function(o,c){if(o.pow(c,e)===o.neg(o.ONE))throw new Error("Cannot find square root");let l=n,d=o.pow(o.mul(o.ONE,a),r),h=o.pow(c,i),m=o.pow(c,r);for(;!o.eql(m,o.ONE);){if(o.eql(m,o.ZERO))return o.ZERO;let y=1;for(let M=o.sqr(m);y<l&&!o.eql(M,o.ONE);y++)M=o.sqr(M);const x=o.pow(d,Ua<<BigInt(l-y-1));d=o.sqr(x),h=o.mul(h,x),m=o.mul(m,d),l=y}return h}}function $Ve(t){if(t%TU===UVe){const e=(t+Ua)/TU;return function(n,a){const i=n.pow(a,e);if(!n.eql(n.sqr(i),a))throw new Error("Cannot find square root");return i}}if(t%zae===jae){const e=(t-jae)/zae;return function(n,a){const i=n.mul(a,ah),s=n.pow(i,e),o=n.mul(a,s),c=n.mul(n.mul(o,ah),s),l=n.mul(o,n.sub(c,n.ONE));if(!n.eql(n.sqr(l),a))throw new Error("Cannot find square root");return l}}return VVe(t)}const HVe=(t,e)=>(ka(t,e)&Ua)===Ua,qVe=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function GVe(t){const e={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},r=qVe.reduce((n,a)=>(n[a]="function",n),e);return Ug(t,r)}function YVe(t,e,r){if(r<d0)throw new Error("invalid exponent, negatives unsupported");if(r===d0)return t.ONE;if(r===Ua)return e;let n=t.ONE,a=e;for(;r>d0;)r&Ua&&(n=t.mul(n,a)),a=t.sqr(a),r>>=Ua;return n}function KVe(t,e){const r=new Array(e.length),n=e.reduce((i,s,o)=>t.is0(s)?i:(r[o]=i,t.mul(i,s)),t.ONE),a=t.inv(n);return e.reduceRight((i,s,o)=>t.is0(s)?i:(r[o]=t.mul(i,r[o]),t.mul(i,s)),a),r}function o9e(t,e){const r=e!==void 0?e:t.toString(2).length,n=Math.ceil(r/8);return{nBitLength:r,nByteLength:n}}function zN(t,e,r=!1,n={}){if(t<=d0)throw new Error("invalid field: expected ORDER > 0, got "+t);const{nBitLength:a,nByteLength:i}=o9e(t,e);if(i>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let s;const o=Object.freeze({ORDER:t,isLE:r,BITS:a,BYTES:i,MASK:lq(a),ZERO:d0,ONE:Ua,create:c=>ka(c,t),isValid:c=>{if(typeof c!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof c);return d0<=c&&c<t},is0:c=>c===d0,isOdd:c=>(c&Ua)===Ua,neg:c=>ka(-c,t),eql:(c,l)=>c===l,sqr:c=>ka(c*c,t),add:(c,l)=>ka(c+l,t),sub:(c,l)=>ka(c-l,t),mul:(c,l)=>ka(c*l,t),pow:(c,l)=>YVe(o,c,l),div:(c,l)=>ka(c*IU(l,t),t),sqrN:c=>c*c,addN:(c,l)=>c+l,subN:(c,l)=>c-l,mulN:(c,l)=>c*l,inv:c=>IU(c,t),sqrt:n.sqrt||(c=>(s||(s=$Ve(t)),s(o,c))),invertBatch:c=>KVe(o,c),cmov:(c,l,d)=>d?l:c,toBytes:c=>r?kx(c,i):O9(c,i),fromBytes:c=>{if(c.length!==i)throw new Error("Field.fromBytes: expected "+i+" bytes, got "+c.length);return r?um(c):g8(c)}});return Object.freeze(o)}function c9e(t){if(typeof t!="bigint")throw new Error("field order must be bigint");const e=t.toString(2).length;return Math.ceil(e/8)}function l9e(t){const e=c9e(t);return e+Math.ceil(e/2)}function ZVe(t,e,r=!1){const n=t.length,a=c9e(e),i=l9e(e);if(n<16||n<i||n>1024)throw new Error("expected "+i+"-1024 bytes of input, got "+n);const s=r?um(t):g8(t),o=ka(s,e-Ua)+Ua;return r?kx(o,a):O9(o,a)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Pae=BigInt(0),RA=BigInt(1);function lB(t,e){const r=e.negate();return t?r:e}function u9e(t,e){if(!Number.isSafeInteger(t)||t<=0||t>e)throw new Error("invalid window size, expected [1.."+e+"], got W="+t)}function uB(t,e){u9e(t,e);const r=Math.ceil(e/t)+1,n=2**(t-1);return{windows:r,windowSize:n}}function QVe(t,e){if(!Array.isArray(t))throw new Error("array expected");t.forEach((r,n)=>{if(!(r instanceof e))throw new Error("invalid point at index "+n)})}function JVe(t,e){if(!Array.isArray(t))throw new Error("array of scalars expected");t.forEach((r,n)=>{if(!e.isValid(r))throw new Error("invalid scalar at index "+n)})}const dB=new WeakMap,d9e=new WeakMap;function fB(t){return d9e.get(t)||1}function f9e(t,e){return{constTimeNegate:lB,hasPrecomputes(r){return fB(r)!==1},unsafeLadder(r,n,a=t.ZERO){let i=r;for(;n>Pae;)n&RA&&(a=a.add(i)),i=i.double(),n>>=RA;return a},precomputeWindow(r,n){const{windows:a,windowSize:i}=uB(n,e),s=[];let o=r,c=o;for(let l=0;l<a;l++){c=o,s.push(c);for(let d=1;d<i;d++)c=c.add(o),s.push(c);o=c.double()}return s},wNAF(r,n,a){const{windows:i,windowSize:s}=uB(r,e);let o=t.ZERO,c=t.BASE;const l=BigInt(2**r-1),d=2**r,h=BigInt(r);for(let m=0;m<i;m++){const y=m*s;let x=Number(a&l);a>>=h,x>s&&(x-=d,a+=RA);const M=y,E=y+Math.abs(x)-1,S=m%2!==0,T=x<0;x===0?c=c.add(lB(S,n[M])):o=o.add(lB(T,n[E]))}return{p:o,f:c}},wNAFUnsafe(r,n,a,i=t.ZERO){const{windows:s,windowSize:o}=uB(r,e),c=BigInt(2**r-1),l=2**r,d=BigInt(r);for(let h=0;h<s;h++){const m=h*o;if(a===Pae)break;let y=Number(a&c);if(a>>=d,y>o&&(y-=l,a+=RA),y===0)continue;let x=n[m+Math.abs(y)-1];y<0&&(x=x.negate()),i=i.add(x)}return i},getPrecomputes(r,n,a){let i=dB.get(n);return i||(i=this.precomputeWindow(n,r),r!==1&&dB.set(n,a(i))),i},wNAFCached(r,n,a){const i=fB(r);return this.wNAF(i,this.getPrecomputes(i,r,a),n)},wNAFCachedUnsafe(r,n,a,i){const s=fB(r);return s===1?this.unsafeLadder(r,n,i):this.wNAFUnsafe(s,this.getPrecomputes(s,r,a),n,i)},setWindowSize(r,n){u9e(n,e),d9e.set(r,n),dB.delete(r)}}}function p9e(t,e,r,n){if(QVe(r,t),JVe(n,e),r.length!==n.length)throw new Error("arrays of points and scalars must have equal length");const a=t.ZERO,i=i9e(BigInt(r.length)),s=i>12?i-3:i>4?i-2:i?2:1,o=(1<<s)-1,c=new Array(o+1).fill(a),l=Math.floor((e.BITS-1)/s)*s;let d=a;for(let h=l;h>=0;h-=s){c.fill(a);for(let y=0;y<n.length;y++){const x=n[y],M=Number(x>>BigInt(h)&BigInt(o));c[M]=c[M].add(r[y])}let m=a;for(let y=c.length-1,x=a;y>0;y--)x=x.add(c[y]),m=m.add(x);if(d=d.add(m),h!==0)for(let y=0;y<s;y++)d=d.double()}return d}function uq(t){return GVe(t.Fp),Ug(t,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...o9e(t.n,t.nBitLength),...t,p:t.Fp.ORDER})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function Oae(t){t.lowS!==void 0&&ef("lowS",t.lowS),t.prehash!==void 0&&ef("prehash",t.prehash)}function XVe(t){const e=uq(t);Ug(e,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:r,Fp:n,a}=e;if(r){if(!n.eql(a,n.ZERO))throw new Error("invalid endomorphism, can only be defined for Koblitz curves that have a=0");if(typeof r!="object"||typeof r.beta!="bigint"||typeof r.splitScalar!="function")throw new Error("invalid endomorphism, expected beta: bigint and splitScalar: function")}return Object.freeze({...e})}const{bytesToNumberBE:e$e,hexToBytes:t$e}=FVe;class r$e extends Error{constructor(e=""){super(e)}}const sd={Err:r$e,_tlv:{encode:(t,e)=>{const{Err:r}=sd;if(t<0||t>256)throw new r("tlv.encode: wrong tag");if(e.length&1)throw new r("tlv.encode: unpadded data");const n=e.length/2,a=j4(n);if(a.length/2&128)throw new r("tlv.encode: long form length too big");const i=n>127?j4(a.length/2|128):"";return j4(t)+i+a+e},decode(t,e){const{Err:r}=sd;let n=0;if(t<0||t>256)throw new r("tlv.encode: wrong tag");if(e.length<2||e[n++]!==t)throw new r("tlv.decode: wrong tlv");const a=e[n++],i=!!(a&128);let s=0;if(!i)s=a;else{const c=a&127;if(!c)throw new r("tlv.decode(long): indefinite length not supported");if(c>4)throw new r("tlv.decode(long): byte length is too big");const l=e.subarray(n,n+c);if(l.length!==c)throw new r("tlv.decode: length bytes not complete");if(l[0]===0)throw new r("tlv.decode(long): zero leftmost byte");for(const d of l)s=s<<8|d;if(n+=c,s<128)throw new r("tlv.decode(long): not minimal encoding")}const o=e.subarray(n,n+s);if(o.length!==s)throw new r("tlv.decode: wrong value length");return{v:o,l:e.subarray(n+s)}}},_int:{encode(t){const{Err:e}=sd;if(t<Nd)throw new e("integer: negative integers are not allowed");let r=j4(t);if(Number.parseInt(r[0],16)&8&&(r="00"+r),r.length&1)throw new e("unexpected DER parsing assertion: unpadded hex");return r},decode(t){const{Err:e}=sd;if(t[0]&128)throw new e("invalid signature integer: negative");if(t[0]===0&&!(t[1]&128))throw new e("invalid signature integer: unnecessary leading zero");return e$e(t)}},toSig(t){const{Err:e,_int:r,_tlv:n}=sd,a=typeof t=="string"?t$e(t):t;sM(a);const{v:i,l:s}=n.decode(48,a);if(s.length)throw new e("invalid signature: left bytes after parsing");const{v:o,l:c}=n.decode(2,i),{v:l,l:d}=n.decode(2,c);if(d.length)throw new e("invalid signature: left bytes after parsing");return{r:r.decode(o),s:r.decode(l)}},hexFromSig(t){const{_tlv:e,_int:r}=sd,n=e.encode(2,r.encode(t.r)),a=e.encode(2,r.encode(t.s)),i=n+a;return e.encode(48,i)}},Nd=BigInt(0),Ji=BigInt(1);BigInt(2);const Rae=BigInt(3);BigInt(4);function n$e(t){const e=XVe(t),{Fp:r}=e,n=zN(e.n,e.nBitLength),a=e.toBytes||((M,E,S)=>{const T=E.toAffine();return V8(Uint8Array.from([4]),r.toBytes(T.x),r.toBytes(T.y))}),i=e.fromBytes||(M=>{const E=M.subarray(1),S=r.fromBytes(E.subarray(0,r.BYTES)),T=r.fromBytes(E.subarray(r.BYTES,2*r.BYTES));return{x:S,y:T}});function s(M){const{a:E,b:S}=e,T=r.sqr(M),D=r.mul(T,M);return r.add(r.add(D,r.mul(M,E)),S)}if(!r.eql(r.sqr(e.Gy),s(e.Gx)))throw new Error("bad generator point: equation left != right");function o(M){return jN(M,Ji,e.n)}function c(M){const{allowedPrivateKeyLengths:E,nByteLength:S,wrapPrivateKey:T,n:D}=e;if(E&&typeof M!="bigint"){if(U8(M)&&(M=W8(M)),typeof M!="string"||!E.includes(M.length))throw new Error("invalid private key");M=M.padStart(S*2,"0")}let k;try{k=typeof M=="bigint"?M:g8(Ni("private key",M,S))}catch{throw new Error("invalid private key, expected hex or "+S+" bytes, got "+typeof M)}return T&&(k=ka(k,D)),I1("private key",k,Ji,D),k}function l(M){if(!(M instanceof m))throw new Error("ProjectivePoint expected")}const d=_x((M,E)=>{const{px:S,py:T,pz:D}=M;if(r.eql(D,r.ONE))return{x:S,y:T};const k=M.is0();E==null&&(E=k?r.ONE:r.inv(D));const _=r.mul(S,E),L=r.mul(T,E),O=r.mul(D,E);if(k)return{x:r.ZERO,y:r.ZERO};if(!r.eql(O,r.ONE))throw new Error("invZ was invalid");return{x:_,y:L}}),h=_x(M=>{if(M.is0()){if(e.allowInfinityPoint&&!r.is0(M.py))return;throw new Error("bad point: ZERO")}const{x:E,y:S}=M.toAffine();if(!r.isValid(E)||!r.isValid(S))throw new Error("bad point: x or y not FE");const T=r.sqr(S),D=s(E);if(!r.eql(T,D))throw new Error("bad point: equation left != right");if(!M.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});class m{constructor(E,S,T){if(this.px=E,this.py=S,this.pz=T,E==null||!r.isValid(E))throw new Error("x required");if(S==null||!r.isValid(S))throw new Error("y required");if(T==null||!r.isValid(T))throw new Error("z required");Object.freeze(this)}static fromAffine(E){const{x:S,y:T}=E||{};if(!E||!r.isValid(S)||!r.isValid(T))throw new Error("invalid affine point");if(E instanceof m)throw new Error("projective point not allowed");const D=k=>r.eql(k,r.ZERO);return D(S)&&D(T)?m.ZERO:new m(S,T,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(E){const S=r.invertBatch(E.map(T=>T.pz));return E.map((T,D)=>T.toAffine(S[D])).map(m.fromAffine)}static fromHex(E){const S=m.fromAffine(i(Ni("pointHex",E)));return S.assertValidity(),S}static fromPrivateKey(E){return m.BASE.multiply(c(E))}static msm(E,S){return p9e(m,n,E,S)}_setWindowSize(E){x.setWindowSize(this,E)}assertValidity(){h(this)}hasEvenY(){const{y:E}=this.toAffine();if(r.isOdd)return!r.isOdd(E);throw new Error("Field doesn't support isOdd")}equals(E){l(E);const{px:S,py:T,pz:D}=this,{px:k,py:_,pz:L}=E,O=r.eql(r.mul(S,L),r.mul(k,D)),B=r.eql(r.mul(T,L),r.mul(_,D));return O&&B}negate(){return new m(this.px,r.neg(this.py),this.pz)}double(){const{a:E,b:S}=e,T=r.mul(S,Rae),{px:D,py:k,pz:_}=this;let L=r.ZERO,O=r.ZERO,B=r.ZERO,z=r.mul(D,D),F=r.mul(k,k),I=r.mul(_,_),u=r.mul(D,k);return u=r.add(u,u),B=r.mul(D,_),B=r.add(B,B),L=r.mul(E,B),O=r.mul(T,I),O=r.add(L,O),L=r.sub(F,O),O=r.add(F,O),O=r.mul(L,O),L=r.mul(u,L),B=r.mul(T,B),I=r.mul(E,I),u=r.sub(z,I),u=r.mul(E,u),u=r.add(u,B),B=r.add(z,z),z=r.add(B,z),z=r.add(z,I),z=r.mul(z,u),O=r.add(O,z),I=r.mul(k,_),I=r.add(I,I),z=r.mul(I,u),L=r.sub(L,z),B=r.mul(I,F),B=r.add(B,B),B=r.add(B,B),new m(L,O,B)}add(E){l(E);const{px:S,py:T,pz:D}=this,{px:k,py:_,pz:L}=E;let O=r.ZERO,B=r.ZERO,z=r.ZERO;const F=e.a,I=r.mul(e.b,Rae);let u=r.mul(S,k),f=r.mul(T,_),b=r.mul(D,L),g=r.add(S,T),v=r.add(k,_);g=r.mul(g,v),v=r.add(u,f),g=r.sub(g,v),v=r.add(S,D);let A=r.add(k,L);return v=r.mul(v,A),A=r.add(u,b),v=r.sub(v,A),A=r.add(T,D),O=r.add(_,L),A=r.mul(A,O),O=r.add(f,b),A=r.sub(A,O),z=r.mul(F,v),O=r.mul(I,b),z=r.add(O,z),O=r.sub(f,z),z=r.add(f,z),B=r.mul(O,z),f=r.add(u,u),f=r.add(f,u),b=r.mul(F,b),v=r.mul(I,v),f=r.add(f,b),b=r.sub(u,b),b=r.mul(F,b),v=r.add(v,b),u=r.mul(f,v),B=r.add(B,u),u=r.mul(A,v),O=r.mul(g,O),O=r.sub(O,u),u=r.mul(g,f),z=r.mul(A,z),z=r.add(z,u),new m(O,B,z)}subtract(E){return this.add(E.negate())}is0(){return this.equals(m.ZERO)}wNAF(E){return x.wNAFCached(this,E,m.normalizeZ)}multiplyUnsafe(E){const{endo:S,n:T}=e;I1("scalar",E,Nd,T);const D=m.ZERO;if(E===Nd)return D;if(this.is0()||E===Ji)return this;if(!S||x.hasPrecomputes(this))return x.wNAFCachedUnsafe(this,E,m.normalizeZ);let{k1neg:k,k1:_,k2neg:L,k2:O}=S.splitScalar(E),B=D,z=D,F=this;for(;_>Nd||O>Nd;)_&Ji&&(B=B.add(F)),O&Ji&&(z=z.add(F)),F=F.double(),_>>=Ji,O>>=Ji;return k&&(B=B.negate()),L&&(z=z.negate()),z=new m(r.mul(z.px,S.beta),z.py,z.pz),B.add(z)}multiply(E){const{endo:S,n:T}=e;I1("scalar",E,Ji,T);let D,k;if(S){const{k1neg:_,k1:L,k2neg:O,k2:B}=S.splitScalar(E);let{p:z,f:F}=this.wNAF(L),{p:I,f:u}=this.wNAF(B);z=x.constTimeNegate(_,z),I=x.constTimeNegate(O,I),I=new m(r.mul(I.px,S.beta),I.py,I.pz),D=z.add(I),k=F.add(u)}else{const{p:_,f:L}=this.wNAF(E);D=_,k=L}return m.normalizeZ([D,k])[0]}multiplyAndAddUnsafe(E,S,T){const D=m.BASE,k=(L,O)=>O===Nd||O===Ji||!L.equals(D)?L.multiplyUnsafe(O):L.multiply(O),_=k(this,S).add(k(E,T));return _.is0()?void 0:_}toAffine(E){return d(this,E)}isTorsionFree(){const{h:E,isTorsionFree:S}=e;if(E===Ji)return!0;if(S)return S(m,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:E,clearCofactor:S}=e;return E===Ji?this:S?S(m,this):this.multiplyUnsafe(e.h)}toRawBytes(E=!0){return ef("isCompressed",E),this.assertValidity(),a(m,this,E)}toHex(E=!0){return ef("isCompressed",E),W8(this.toRawBytes(E))}}m.BASE=new m(e.Gx,e.Gy,r.ONE),m.ZERO=new m(r.ZERO,r.ONE,r.ZERO);const y=e.nBitLength,x=f9e(m,e.endo?Math.ceil(y/2):y);return{CURVE:e,ProjectivePoint:m,normPrivateKeyToScalar:c,weierstrassEquation:s,isWithinCurveOrder:o}}function a$e(t){const e=uq(t);return Ug(e,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...e})}function i$e(t){const e=a$e(t),{Fp:r,n}=e,a=r.BYTES+1,i=2*r.BYTES+1;function s(b){return ka(b,n)}function o(b){return IU(b,n)}const{ProjectivePoint:c,normPrivateKeyToScalar:l,weierstrassEquation:d,isWithinCurveOrder:h}=n$e({...e,toBytes(b,g,v){const A=g.toAffine(),N=r.toBytes(A.x),w=V8;return ef("isCompressed",v),v?w(Uint8Array.from([g.hasEvenY()?2:3]),N):w(Uint8Array.from([4]),N,r.toBytes(A.y))},fromBytes(b){const g=b.length,v=b[0],A=b.subarray(1);if(g===a&&(v===2||v===3)){const N=g8(A);if(!jN(N,Ji,r.ORDER))throw new Error("Point is not on curve");const w=d(N);let p;try{p=r.sqrt(w)}catch(R){const $=R instanceof Error?": "+R.message:"";throw new Error("Point is not on curve"+$)}const C=(p&Ji)===Ji;return(v&1)===1!==C&&(p=r.neg(p)),{x:N,y:p}}else if(g===i&&v===4){const N=r.fromBytes(A.subarray(0,r.BYTES)),w=r.fromBytes(A.subarray(r.BYTES,2*r.BYTES));return{x:N,y:w}}else{const N=a,w=i;throw new Error("invalid Point, expected length of "+N+", or uncompressed "+w+", got "+g)}}}),m=b=>W8(O9(b,e.nByteLength));function y(b){const g=n>>Ji;return b>g}function x(b){return y(b)?s(-b):b}const M=(b,g,v)=>g8(b.slice(g,v));class E{constructor(g,v,A){this.r=g,this.s=v,this.recovery=A,this.assertValidity()}static fromCompact(g){const v=e.nByteLength;return g=Ni("compactSignature",g,v*2),new E(M(g,0,v),M(g,v,2*v))}static fromDER(g){const{r:v,s:A}=sd.toSig(Ni("DER",g));return new E(v,A)}assertValidity(){I1("r",this.r,Ji,n),I1("s",this.s,Ji,n)}addRecoveryBit(g){return new E(this.r,this.s,g)}recoverPublicKey(g){const{r:v,s:A,recovery:N}=this,w=L(Ni("msgHash",g));if(N==null||![0,1,2,3].includes(N))throw new Error("recovery id invalid");const p=N===2||N===3?v+e.n:v;if(p>=r.ORDER)throw new Error("recovery id 2 or 3 invalid");const C=N&1?"03":"02",P=c.fromHex(C+m(p)),R=o(p),$=s(-w*R),Y=s(A*R),V=c.BASE.multiplyAndAddUnsafe(P,$,Y);if(!V)throw new Error("point at infinify");return V.assertValidity(),V}hasHighS(){return y(this.s)}normalizeS(){return this.hasHighS()?new E(this.r,s(-this.s),this.recovery):this}toDERRawBytes(){return P9(this.toDERHex())}toDERHex(){return sd.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return P9(this.toCompactHex())}toCompactHex(){return m(this.r)+m(this.s)}}const S={isValidPrivateKey(b){try{return l(b),!0}catch{return!1}},normPrivateKeyToScalar:l,randomPrivateKey:()=>{const b=l9e(e.n);return ZVe(e.randomBytes(b),e.n)},precompute(b=8,g=c.BASE){return g._setWindowSize(b),g.multiply(BigInt(3)),g}};function T(b,g=!0){return c.fromPrivateKey(b).toRawBytes(g)}function D(b){const g=U8(b),v=typeof b=="string",A=(g||v)&&b.length;return g?A===a||A===i:v?A===2*a||A===2*i:b instanceof c}function k(b,g,v=!0){if(D(b))throw new Error("first arg must be private key");if(!D(g))throw new Error("second arg must be public key");return c.fromHex(g).multiply(l(b)).toRawBytes(v)}const _=e.bits2int||function(b){if(b.length>8192)throw new Error("input is too large");const g=g8(b),v=b.length*8-e.nBitLength;return v>0?g>>BigInt(v):g},L=e.bits2int_modN||function(b){return s(_(b))},O=lq(e.nBitLength);function B(b){return I1("num < 2^"+e.nBitLength,b,Nd,O),O9(b,e.nByteLength)}function z(b,g,v=F){if(["recovered","canonical"].some(G=>G in v))throw new Error("sign() legacy options not supported");const{hash:A,randomBytes:N}=e;let{lowS:w,prehash:p,extraEntropy:C}=v;w==null&&(w=!0),b=Ni("msgHash",b),Oae(v),p&&(b=Ni("prehashed msgHash",A(b)));const P=L(b),R=l(g),$=[B(R),B(P)];if(C!=null&&C!==!1){const G=C===!0?N(r.BYTES):C;$.push(Ni("extraEntropy",G))}const Y=V8(...$),V=P;function U(G){const Q=_(G);if(!h(Q))return;const re=o(Q),q=c.BASE.multiply(Q).toAffine(),H=s(q.x);if(H===Nd)return;const Z=s(re*s(V+H*R));if(Z===Nd)return;let ae=(q.x===H?0:2)|Number(q.y&Ji),de=Z;return w&&y(Z)&&(de=x(Z),ae^=1),new E(H,de,ae)}return{seed:Y,k2sig:U}}const F={lowS:e.lowS,prehash:!1},I={lowS:e.lowS,prehash:!1};function u(b,g,v=F){const{seed:A,k2sig:N}=z(b,g,v),w=e;return s9e(w.hash.outputLen,w.nByteLength,w.hmac)(A,N)}c.BASE._setWindowSize(8);function f(b,g,v,A=I){var ae;const N=b;g=Ni("msgHash",g),v=Ni("publicKey",v);const{lowS:w,prehash:p,format:C}=A;if(Oae(A),"strict"in A)throw new Error("options.strict was renamed to lowS");if(C!==void 0&&C!=="compact"&&C!=="der")throw new Error("format must be compact or der");const P=typeof N=="string"||U8(N),R=!P&&!C&&typeof N=="object"&&N!==null&&typeof N.r=="bigint"&&typeof N.s=="bigint";if(!P&&!R)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");let $,Y;try{if(R&&($=new E(N.r,N.s)),P){try{C!=="compact"&&($=E.fromDER(N))}catch(de){if(!(de instanceof sd.Err))throw de}!$&&C!=="der"&&($=E.fromCompact(N))}Y=c.fromHex(v)}catch{return!1}if(!$||w&&$.hasHighS())return!1;p&&(g=e.hash(g));const{r:V,s:U}=$,G=L(g),Q=o(U),re=s(G*Q),q=s(V*Q),H=(ae=c.BASE.multiplyAndAddUnsafe(Y,re,q))==null?void 0:ae.toAffine();return H?s(H.x)===V:!1}return{CURVE:e,getPublicKey:T,getSharedSecret:k,sign:u,verify:f,ProjectivePoint:c,Signature:E,utils:S}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function s$e(t){return{hash:t,hmac:(e,...r)=>a9e(t,e,KWe(...r)),randomBytes:$me}}function o$e(t,e){const r=n=>i$e({...t,...s$e(n)});return{...r(e),create:r}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const h9e=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),Fae=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),c$e=BigInt(1),DU=BigInt(2),Uae=(t,e)=>(t+e/DU)/e;function l$e(t){const e=h9e,r=BigInt(3),n=BigInt(6),a=BigInt(11),i=BigInt(22),s=BigInt(23),o=BigInt(44),c=BigInt(88),l=t*t*t%e,d=l*l*t%e,h=ei(d,r,e)*d%e,m=ei(h,r,e)*d%e,y=ei(m,DU,e)*l%e,x=ei(y,a,e)*y%e,M=ei(x,i,e)*x%e,E=ei(M,o,e)*M%e,S=ei(E,c,e)*E%e,T=ei(S,o,e)*M%e,D=ei(T,r,e)*d%e,k=ei(D,s,e)*x%e,_=ei(k,n,e)*l%e,L=ei(_,DU,e);if(!NU.eql(NU.sqr(L),t))throw new Error("Cannot find square root");return L}const NU=zN(h9e,void 0,void 0,{sqrt:l$e}),H6=o$e({a:BigInt(0),b:BigInt(7),Fp:NU,n:Fae,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:t=>{const e=Fae,r=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),n=-c$e*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),a=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),i=r,s=BigInt("0x100000000000000000000000000000000"),o=Uae(i*t,e),c=Uae(-n*t,e);let l=ka(t-o*r-c*a,e),d=ka(-o*n-c*i,e);const h=l>s,m=d>s;if(h&&(l=e-l),m&&(d=e-d),l>s||d>s)throw new Error("splitScalar: Endomorphism failed, k="+t);return{k1neg:h,k1:l,k2neg:m,k2:d}}}},L2);BigInt(0);H6.ProjectivePoint;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const uc=BigInt(0),zs=BigInt(1),FA=BigInt(2),u$e=BigInt(8),d$e={zip215:!0};function f$e(t){const e=uq(t);return Ug(t,{hash:"function",a:"bigint",d:"bigint",randomBytes:"function"},{adjustScalarBytes:"function",domain:"function",uvRatio:"function",mapToCurve:"function"}),Object.freeze({...e})}function p$e(t){const e=f$e(t),{Fp:r,n,prehash:a,hash:i,randomBytes:s,nByteLength:o,h:c}=e,l=FA<<BigInt(o*8)-zs,d=r.create,h=zN(e.n,e.nBitLength),m=e.uvRatio||((v,A)=>{try{return{isValid:!0,value:r.sqrt(v*r.inv(A))}}catch{return{isValid:!1,value:uc}}}),y=e.adjustScalarBytes||(v=>v),x=e.domain||((v,A,N)=>{if(ef("phflag",N),A.length||N)throw new Error("Contexts/pre-hash are not supported");return v});function M(v,A){I1("coordinate "+v,A,uc,l)}function E(v){if(!(v instanceof D))throw new Error("ExtendedPoint expected")}const S=_x((v,A)=>{const{ex:N,ey:w,ez:p}=v,C=v.is0();A==null&&(A=C?u$e:r.inv(p));const P=d(N*A),R=d(w*A),$=d(p*A);if(C)return{x:uc,y:zs};if($!==zs)throw new Error("invZ was invalid");return{x:P,y:R}}),T=_x(v=>{const{a:A,d:N}=e;if(v.is0())throw new Error("bad point: ZERO");const{ex:w,ey:p,ez:C,et:P}=v,R=d(w*w),$=d(p*p),Y=d(C*C),V=d(Y*Y),U=d(R*A),G=d(Y*d(U+$)),Q=d(V+d(N*d(R*$)));if(G!==Q)throw new Error("bad point: equation left != right (1)");const re=d(w*p),q=d(C*P);if(re!==q)throw new Error("bad point: equation left != right (2)");return!0});class D{constructor(A,N,w,p){this.ex=A,this.ey=N,this.ez=w,this.et=p,M("x",A),M("y",N),M("z",w),M("t",p),Object.freeze(this)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static fromAffine(A){if(A instanceof D)throw new Error("extended point not allowed");const{x:N,y:w}=A||{};return M("x",N),M("y",w),new D(N,w,zs,d(N*w))}static normalizeZ(A){const N=r.invertBatch(A.map(w=>w.ez));return A.map((w,p)=>w.toAffine(N[p])).map(D.fromAffine)}static msm(A,N){return p9e(D,h,A,N)}_setWindowSize(A){L.setWindowSize(this,A)}assertValidity(){T(this)}equals(A){E(A);const{ex:N,ey:w,ez:p}=this,{ex:C,ey:P,ez:R}=A,$=d(N*R),Y=d(C*p),V=d(w*R),U=d(P*p);return $===Y&&V===U}is0(){return this.equals(D.ZERO)}negate(){return new D(d(-this.ex),this.ey,this.ez,d(-this.et))}double(){const{a:A}=e,{ex:N,ey:w,ez:p}=this,C=d(N*N),P=d(w*w),R=d(FA*d(p*p)),$=d(A*C),Y=N+w,V=d(d(Y*Y)-C-P),U=$+P,G=U-R,Q=$-P,re=d(V*G),q=d(U*Q),H=d(V*Q),Z=d(G*U);return new D(re,q,Z,H)}add(A){E(A);const{a:N,d:w}=e,{ex:p,ey:C,ez:P,et:R}=this,{ex:$,ey:Y,ez:V,et:U}=A;if(N===BigInt(-1)){const qe=d((C-p)*(Y+$)),Me=d((C+p)*(Y-$)),ue=d(Me-qe);if(ue===uc)return this.double();const ke=d(P*FA*U),te=d(R*FA*V),me=te+ke,We=Me+qe,X=te-ke,W=d(me*ue),K=d(We*X),ne=d(me*X),fe=d(ue*We);return new D(W,K,fe,ne)}const G=d(p*$),Q=d(C*Y),re=d(R*w*U),q=d(P*V),H=d((p+C)*($+Y)-G-Q),Z=q-re,ae=q+re,de=d(Q-N*G),ye=d(H*Z),je=d(ae*de),we=d(H*de),ve=d(Z*ae);return new D(ye,je,ve,we)}subtract(A){return this.add(A.negate())}wNAF(A){return L.wNAFCached(this,A,D.normalizeZ)}multiply(A){const N=A;I1("scalar",N,zs,n);const{p:w,f:p}=this.wNAF(N);return D.normalizeZ([w,p])[0]}multiplyUnsafe(A,N=D.ZERO){const w=A;return I1("scalar",w,uc,n),w===uc?_:this.is0()||w===zs?this:L.wNAFCachedUnsafe(this,w,D.normalizeZ,N)}isSmallOrder(){return this.multiplyUnsafe(c).is0()}isTorsionFree(){return L.unsafeLadder(this,n).is0()}toAffine(A){return S(this,A)}clearCofactor(){const{h:A}=e;return A===zs?this:this.multiplyUnsafe(A)}static fromHex(A,N=!1){const{d:w,a:p}=e,C=r.BYTES;A=Ni("pointHex",A,C),ef("zip215",N);const P=A.slice(),R=A[C-1];P[C-1]=R&-129;const $=um(P),Y=N?l:r.ORDER;I1("pointHex.y",$,uc,Y);const V=d($*$),U=d(V-zs),G=d(w*V-p);let{isValid:Q,value:re}=m(U,G);if(!Q)throw new Error("Point.fromHex: invalid y coordinate");const q=(re&zs)===zs,H=(R&128)!==0;if(!N&&re===uc&&H)throw new Error("Point.fromHex: x=0 and x_0=1");return H!==q&&(re=d(-re)),D.fromAffine({x:re,y:$})}static fromPrivateKey(A){return z(A).point}toRawBytes(){const{x:A,y:N}=this.toAffine(),w=kx(N,r.BYTES);return w[w.length-1]|=A&zs?128:0,w}toHex(){return W8(this.toRawBytes())}}D.BASE=new D(e.Gx,e.Gy,zs,d(e.Gx*e.Gy)),D.ZERO=new D(uc,zs,zs,uc);const{BASE:k,ZERO:_}=D,L=f9e(D,o*8);function O(v){return ka(v,n)}function B(v){return O(um(v))}function z(v){const A=r.BYTES;v=Ni("private key",v,A);const N=Ni("hashed private key",i(v),2*A),w=y(N.slice(0,A)),p=N.slice(A,2*A),C=B(w),P=k.multiply(C),R=P.toRawBytes();return{head:w,prefix:p,scalar:C,point:P,pointBytes:R}}function F(v){return z(v).pointBytes}function I(v=new Uint8Array,...A){const N=V8(...A);return B(i(x(N,Ni("context",v),!!a)))}function u(v,A,N={}){v=Ni("message",v),a&&(v=a(v));const{prefix:w,scalar:p,pointBytes:C}=z(A),P=I(N.context,w,v),R=k.multiply(P).toRawBytes(),$=I(N.context,R,C,v),Y=O(P+$*p);I1("signature.s",Y,uc,n);const V=V8(R,kx(Y,r.BYTES));return Ni("result",V,r.BYTES*2)}const f=d$e;function b(v,A,N,w=f){const{context:p,zip215:C}=w,P=r.BYTES;v=Ni("signature",v,2*P),A=Ni("message",A),N=Ni("publicKey",N,P),C!==void 0&&ef("zip215",C),a&&(A=a(A));const R=um(v.slice(P,2*P));let $,Y,V;try{$=D.fromHex(N,C),Y=D.fromHex(v.slice(0,P),C),V=k.multiplyUnsafe(R)}catch{return!1}if(!C&&$.isSmallOrder())return!1;const U=I(p,Y.toRawBytes(),$.toRawBytes(),A);return Y.add($.multiplyUnsafe(U)).subtract(V).clearCofactor().equals(D.ZERO)}return k._setWindowSize(8),{CURVE:e,getPublicKey:F,sign:u,verify:b,ExtendedPoint:D,utils:{getExtendedPublicKey:z,randomPrivateKey:()=>s(r.BYTES),precompute(v=8,A=D.BASE){return A._setWindowSize(v),A.multiply(BigInt(3)),A}}}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const dq=BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949"),Wae=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752");BigInt(0);const h$e=BigInt(1),Vae=BigInt(2);BigInt(3);const m$e=BigInt(5),b$e=BigInt(8);function g$e(t){const e=BigInt(10),r=BigInt(20),n=BigInt(40),a=BigInt(80),i=dq,o=t*t%i*t%i,c=ei(o,Vae,i)*o%i,l=ei(c,h$e,i)*t%i,d=ei(l,m$e,i)*l%i,h=ei(d,e,i)*d%i,m=ei(h,r,i)*h%i,y=ei(m,n,i)*m%i,x=ei(y,a,i)*y%i,M=ei(x,a,i)*y%i,E=ei(M,e,i)*d%i;return{pow_p_5_8:ei(E,Vae,i)*t%i,b2:o}}function y$e(t){return t[0]&=248,t[31]&=127,t[31]|=64,t}function v$e(t,e){const r=dq,n=ka(e*e*e,r),a=ka(n*n*e,r),i=g$e(t*a).pow_p_5_8;let s=ka(t*n*i,r);const o=ka(e*s*s,r),c=s,l=ka(s*Wae,r),d=o===t,h=o===ka(-t,r),m=o===ka(-t*Wae,r);return d&&(s=c),(h||m)&&(s=l),HVe(s,r)&&(s=ka(-s,r)),{isValid:d||h,value:s}}const x$e=zN(dq,void 0,!0),w$e={a:BigInt(-1),d:BigInt("37095705934669439343138083508754565189542113879843219016388785533085940283555"),Fp:x$e,n:BigInt("7237005577332262213973186563042994240857116359379907606001950938285454250989"),h:b$e,Gx:BigInt("15112221349535400772501151409588531511454012693041857206046113283949847762202"),Gy:BigInt("46316835694926478169428394003475163141307993866256225615783033603165251855960"),hash:DVe,randomBytes:$me,adjustScalarBytes:y$e,uvRatio:v$e},B2=p$e(w$e),M$e=[{name:"appIdPrefix",binary:"bytes",custom:sa.encode("appID"),omit:!0},{name:"appId",binary:"uint",size:8}],sl=class sl{constructor(e,r="hex"){ce(this,"address");this.address=typeof e=="string"?sl.stringToUint8Array(e,r):e}toNative(e){return Ns(e,this)}unwrap(){return this.address}toString(){return Pn.encode(this.address,!0)}toUint8Array(){return this.address}toUniversalAddress(){return this}equals(e){return sa.equals(this.address,e.address)}static isValidAddress(e,r="hex"){return!GUe(()=>sl.stringToUint8Array(e,r))}static instanceof(e){return typeof e=="object"&&"constructor"in e&&e.constructor.type===sl.type}static stringToUint8Array(e,r){const n=(()=>{switch(r){case"hex":if(![40,2*this.byteSize].includes(e.length-(e.startsWith("0x")?2:0)))throw new Error(`string ${e} has invalid length for format ${r}`);return Pn.decode(e);case"base58":return Nme.decode(e);case"bech32":return B4.decodeToBytes(e).bytes;case"algorandAppId":return NVe(G1(M$e,{appId:BigInt(e)}));case"sha256":return L2(e)}})();if(n.length>sl.byteSize)throw new Error(`string ${e} has invalid length for format ${r}`);return n.length<sl.byteSize?sa.zpad(n,sl.byteSize):n}};ce(sl,"byteSize",32),ce(sl,"type","Universal");let fa=sl;function A$e(t){return typeof t=="object"&&"setChain"in t}const kU=new Map;function Wg(t,e){kU.has(t)||kU.set(t,e)}function Ns(t,e){const r=fs.get(t),n=kU.get(r);if(!n)throw new Error(`No native address type registered for platform ${r}, import the platform directly or, if using sdk package, import the addresses conditional export`);try{const a=new n(e);return A$e(a)&&a.setChain(t),a}catch(a){const i=`Error parsing address as a native ${t} address: ${a.message}`;if(fa.instanceof(e))throw i;return new fa(e).toNative(t)}}function $8(t,e){const r=fs.get(t);return new fa(e,yWe.get(r))}function S$e(t){return"getVersion"in t}const q6={};function PN(t,e,r){e in q6||(q6[e]={});const n=q6[e];if(t in n)throw new Error(`Protocol ${t} for protocol ${e} has already registered`);q6[e][t]=r}function E$e(t,e){const r=Rg(t)?fs.get(t):t;return e in q6?r in q6[e]:!1}function m9e(t,e){if(e in q6){const r=q6[e];if(r&&t in r){const n=r[t];if(n)return n}}throw new Error(`No protocols registered for ${t}:${e}. This may be because the platform specific protocol implementation is not registered (by installing and importing it) or no implementation exists for this platform`)}const C$e=(t,e,r,n)=>m9e(t,e).fromRpc(r,n),_U=(t,e)=>t?`${t}:${e}`:e,LU=new Map;function T$e(t,e,r){const n=_U(t,e);if(LU.has(n))throw new Error(`Payload type ${n} already registered`);LU.set(n,r)}function m0(t,e){for(const[r,n]of e)T$e(t,r,n)}const F0={binary:"uint",size:32},I$e={binary:"uint",size:2},cs=t=>({...I$e,custom:{to:e=>{if(e===0){if(!(t!=null&&t.allowNull))throw new Error("ChainId 0 is not valid for this protocol and action");return null}const r=k2(e),n=(t==null?void 0:t.allowedChains)??kme;if(!n.includes(r))throw new Error(`Chain ${r} not in allowed chains ${n}`);return r},from:e=>e==null?0:NN(e)}}),Lx={binary:"uint",size:4},fq={binary:"uint",size:8},b9e={binary:"uint",size:4},j2=t=>({name:"payloadId",binary:"uint",size:1,custom:t,omit:!0}),pq={binary:"uint",size:8};class D$e{constructor(e,r,n){ce(this,"r");ce(this,"s");ce(this,"v");this.r=e,this.s=r,this.v=n}encode(){return G1(BU,this)}static decode(e){return Y1(BU,e)}}var $ae;(function(t){function e(i){return H6.getPublicKey(i)}t.toPubkey=e;function r(i,s){if(s.length!=32)throw new Error("hash.length != 32");return H6.sign(s,i)}t.sign=r;function n(i,s,o){const{r:c,s:l}=i;return H6.verify({r:c,s:l},o,s)}t.validate=n;function a(i,s){const{r:o,s:c,v:l}=i,d=new H6.Signature(o,c);return d.recovery=l,d.recoverPublicKey(s).toRawBytes()}t.recover=a})($ae||($ae={}));const N$e=[{name:"r",binary:"uint",size:32},{name:"s",binary:"uint",size:32},{name:"v",binary:"uint",size:1}],BU={binary:"bytes",layout:N$e,custom:{to:t=>new D$e(t.r,t.s,t.v),from:t=>({r:t.r,s:t.s,v:t.v})}},_r={binary:"bytes",size:32,custom:{to:t=>new fa(t),from:t=>t.toUint8Array()}},k$e=t=>{const e=t.findIndex(r=>r!==0);return-1<e?t.slice(e):new Uint8Array([])},_$e={to:sa.decode,from:sa.encode},g9e=t=>({binary:"bytes",size:t,custom:{to:e=>sa.decode(k$e(e)),from:e=>sa.zpad(sa.encode(e),t)}});function y9e(t){const e=t.indexOf(":");return e!==-1?[t.slice(0,e),t.slice(e+1)]:[null,t]}const L$e=[{name:"guardianIndex",binary:"uint",size:1},{name:"signature",...BU}],hq=[{name:"version",binary:"uint",size:1,custom:1,omit:!0},{name:"guardianSet",...b9e},{name:"signatures",binary:"array",lengthSize:1,layout:L$e}],mq=[{name:"timestamp",binary:"uint",size:4},{name:"nonce",binary:"uint",size:4},{name:"emitterChain",...cs()},{name:"emitterAddress",..._r},{name:"sequence",...pq},{name:"consistencyLevel",binary:"uint",size:1}],B$e=[...hq,...mq];function Bx(t){const e=LU.get(t);if(!e)throw new Error(`No layout registered for payload type ${t}`);return e}function v9e(t){return{name:"payload",binary:"bytes",...t==="Uint8Array"?{}:{layout:Bx(t)}}}function YT(t){const e=[...B$e,v9e(t.payloadLiteral)];return G1(e,t)}function j$e(t,e){if(t==="Uint8Array")return e;const r=Bx(t);return G1(r,e)}function x9e(t,e){const r=(()=>{if(Array.isArray(t[0]))return t.flatMap(([s,o])=>o.map(c=>_U(s,c)));if(typeof t[1]=="string")return t;const[a,i]=t;return i.map(s=>_U(a,s))})(),n=nWe(r.map(a=>Bx(a)));return a=>{typeof a=="string"&&(a=Pn.decode(a));const i=n(a);return Array.isArray(i)?i.map(s=>r[s]):i!==null?r[i]:null}}function KT(t,e){typeof e=="string"&&(e=Pn.decode(e));const[r,n]=Y1(hq,e,!1);for(let y=1;y<r.signatures.length;++y)if(r.signatures[y].guardianIndex<=r.signatures[y-1].guardianIndex)throw new Error("Guardian signatures must be in ascending order of guardian set index");const a=n,[i,s]=Y1(mq,e.subarray(a),!1),o=a+s,[c,l]=typeof t=="string"?[t,Hae(t,e.subarray(o))]:Hae(t,e.subarray(o)),[d,h]=y9e(c),m=F8(e.slice(a));return{protocolName:d,payloadName:h,payloadLiteral:c,...r,...i,payload:l,hash:m}}function Hae(t,e,r=0){return(()=>{if(typeof e=="string"&&(e=Pn.decode(e)),t==="Uint8Array")return e.slice(r);if(typeof t=="string")return Y1(Bx(t),e.subarray(r));const n=t(e.slice(r));if(n===null)throw new Error(`Encoded data does not match any of the given payload types - ${e}`);return[n,Y1(Bx(n),e.subarray(r))]})()}function qae(t){return[...mq,v9e(t)]}function w9e(t,e){const[r,n]=y9e(t),a=uae(qae(t),e);return{protocolName:r,payloadName:n,payloadLiteral:t,...uae(hq,e),...a,hash:F8(G1(qae(t),a))}}class M9e{constructor(e,r){ce(this,"network");ce(this,"config");this.network=e,this.config=r}utils(){return this.constructor}getProtocol(e,r){return C$e(this.utils()._platform,e,r,this.config)}getProtocolInitializer(e){return m9e(this.utils()._platform,e)}async parseWormholeMessages(e,r,n){return(await this.getProtocol("WormholeCore",r)).parseTransaction(n)}}const z$e=[["Ethereum",[["ETH",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETH"}],["WETH",{symbol:"WETH",decimals:18,address:"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0x2260fac5e5542a773aa44fbcfedf7c193bc2c599"}],["USDT",{symbol:"USDT",decimals:6,address:"0xdac17f958d2ee523a2206206994597c13d831ec7"}],["DAI",{symbol:"DAI",decimals:18,address:"0x6b175474e89094c44da98b954eedeac495271d0f"}],["BUSD",{symbol:"BUSD",decimals:18,address:"0x4fabb145d64652a948d72533023f6e7a623c7c53"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x7c9f4C87d911613Fe9ca58b579f737911AAD2D43",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x418D75f65a02b3D53B2418FB8E1fe493759c7605",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x7cd167B101D2808Cfd2C45d17b2E7EA9F46b74B6",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x85f138bfEE4ef8e540890CFb48F620571d67Eda3",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x39EbF69137D98FB7659Ef8D4ea21ec26394389d7",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x4cD2690d86284e044cb63E60F1EB218a825a7e92",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x3294395e62F4eB6aF3f1Fcf89f5602D90Fb3Ef69",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x93d3696A9F879b331f40CB5059e37015423A3Bd0",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xD31a59c85aE9D8edEFeC411D448f90841571b89c",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x41f7B8b9b897276b7AAE926a9016935280b44E97",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x84074EA631dEc7a4edcD5303d164D5dEa4c653D6",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x8CDf7AF57E4c8B930e1B23c477c22f076530585e",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0xb945E3F853B5f8033C8513Cf3cE9F8AD9beBB1c9",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xCFc006a32a98031C2338BF9d5ff8ED2c0Cae4a9e",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x8B5653Ae095529155462eDa8CF664eD96773F557",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x1D4241F7370253C0f12EFC536B7e16E462Fb3526",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x18084fbA666a33d37592fA2633fD49a74DD93a88"}],["tBTCpolygon",{symbol:"tBTC",decimals:18,address:"0xb4c624dBC50804dA086cf2380cD55dEBC0d22E96",original:"Polygon"}],["tBTCoptimism",{symbol:"tBTC",decimals:18,address:"0xB8d1E0642bFD3744CaBd2ca8830cFabE19b2Ca54",original:"Optimism"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x4F3819A6cfF717BFfE801a75c73A984141c76589",original:"Arbitrum"}],["tBTCbase",{symbol:"tBTC",decimals:18,address:"0x733F28B3e315046Db01dAbC292D6F0F7F26C4551",original:"Base"}],["wstETH",{symbol:"wstETH",decimals:18,address:"0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x9AEA32B459e96C8eF5010f69130bf95fd129ac05",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0xeFc0CED4B3D536103e76a1c4c74F0385C8F4Bdd3",original:"Solana"}]]],["Bsc",[["WETH",{symbol:"WETH",decimals:18,address:"0x4DB5a66E937A9F4473fA95b1cAF1d1E1D62E29EA",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0xB04906e95AB5D797aDA81508115611fee694c2b3",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0x43359676E1A3F9FbB5de095333f8e9c1B46dFA44",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x524bC91Dc82d6b90EF29F76A3ECAaBAffFD490Bc",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x3413a030EF81a3dD5a302F4B4D11d911e12ed337",original:"Ethereum"}],["BUSD",{symbol:"BUSD",decimals:18,address:"0x035de3679E692C471072d1A09bEb9298fBB2BD31",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0xc836d8dC361E44DbE64c4862D55BA041F88Ddd39",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0xe6d82Bbe75041E42E51d755e922cE1BA91af9c4d",original:"Polygon"}],["BNB",{symbol:"BNB",decimals:18,address:"native",wrappedKey:"WBNB"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x96412902aa9aFf61E13f085e70D3152C6ef2a817",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xc88Dc63bf0c8c8198C97Db0945E3eF25Ca89A8e4",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0xbF8413EE8612E0E4f66Aa63B5ebE27f3C5883d47",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x2A335e327a55b177f5B40132fEC5D7298aa0D7e6",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x1C063db3c621BF901FC6C1D03328b08b2F9bbfba",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xfA54fF1a158B5189Ebba6ae130CEd6bbd3aEA76e",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x91Ca579B0D47E5cfD5D0862c21D5659d39C8eCf0",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x8314f6Bf1B4dd8604A0fC33C84F9AF2fc07AABC8",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x2Ba98cf7Edd2c5C794e21bc3Dc6973D3C2585eE3",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0xaA1eEdABC48D078350ccBdD620bD088848e299E5",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0x5caa170b465122D15a6D20FD9A804a9613CE7882",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x94AEc09B5e2CE591e39DC6aa58A3A6E85Ed45265",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0xa41ae127D04F7ee73B5058E2C60Fb7c7A2D21F79",original:"Optimism"}],["WETHbsc",{symbol:"WETH",decimals:18,address:"0x2170Ed0880ac9A755fd29B2688956BD959F933F8"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x9dc152F4941cE1A138326e70c3600385bf0C22dD",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x55CaD531c8E303Cab8B3BE4bB4744Db4f896ac81",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x94c97dd3Bde5bC1406BCe82E7941A6365968521D",original:"Ethereum"}],["wstETH",{symbol:"wstETH",decimals:18,address:"0xad80E1A9B5824234afA9dE1F3bbDb8a994796169",original:"Ethereum"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0xEA970e7b7D131Ea36c3051C9Ca11e785462fE00c",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0xb0188B0bb2cD4a6D2744637fC83C94a284B247Da",original:"Solana"}],["USDTbsc",{symbol:"USDT",decimals:18,address:"0x55d398326f99059fF775485246999027B3197955"}]]],["Polygon",[["WETH",{symbol:"WETH",decimals:18,address:"0x11CD37bb86F65419713f30673A480EA33c826872",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x4318CB63A2b8edf2De971E2F17F77097e499459D",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0x5D49c278340655B56609FdF8976eb0612aF3a0C3",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x9417669fBF23357D2774e9D421307bd5eA1006d2",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x732EB1747ecCFC431fF19bc359ffc83755B1918c",original:"Ethereum"}],["BUSD",{symbol:"BUSD",decimals:18,address:"0x95ea750420da26bE1Ab0891e209e921bCd84763f",original:"Ethereum"}],["MATIC",{symbol:"MATIC",decimals:18,address:"native",wrappedKey:"WMATIC"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270"}],["WETHpolygon",{symbol:"WETH",decimals:18,address:"0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0x3c499c542cef5e3811e1192ce70d8cc03d5c3359"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xeCDCB5B88F8e3C15f95c720C51c71c9E2080525d",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x4B3a922c773BDCF3BA8f1A4FDAc2029E1D0E9868",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x7Bb11E7f8b10E9e571E5d8Eace04735fDFB2358a",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xAEA5CC14DefbC1b845FDE729E563B717Ee6825ae",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x3726831304D77f585f1Aca9d9841cc3Ef80dAa62",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x922F49a9911effc034eE756196E59BE7b90D43b3",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0xcC48d6CF842083fEc0E01d913fB964b585975F05",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xd93f7E271cB87c23AaA73edC008A79646d1F9912",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x576Cf361711cd940CD9C397BB98C4C896cBd38De",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x34bE049fEbfc6C64Ffd82Da08a8931A9a45f2cc8",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0xa4ef199d3ad524E9C3C51Ac46B303B103A307Cef",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x6a5c59AB16268d2c872916054C50440B999e417C",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0x7800FE8951cdc1cDea748d878fAce63018D97960",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x8182De59485Bb646542Db8C7E5958148Dc699319",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0x31F12aCb60C3c32EE884F3894a873347C097D925",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x5BCf8d8c097FbB35C371F921E3FF3e6F6Eb54B41",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x1eeCaB0F75fE93abbFa0cDFfb4fB13d1dC8706c8",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x3362b2B92b331925F09F9E5bCA3E8C43921a435C",original:"Ethereum"}],["tBTCpolygon",{symbol:"tBTC",decimals:18,address:"0x236aa50979D5f3De3Bd1Eeb40E81137F22ab794b"}],["tBTCoptimism",{symbol:"tBTC",decimals:18,address:"0x68A8797da1c8ED592600d70A5151886A92D2183C",original:"Optimism"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x045D8c62D5326aa51a31518ECF3aF80C17421Aba",original:"Arbitrum"}],["wstETH",{symbol:"wstETH",decimals:18,address:"0xe082a7Fc696De18172Ad08D956569Ee80BC37f06",original:"Ethereum"}],["wstETHpolygon",{symbol:"wstETH",decimals:18,address:"0x03b54A6e9a984069379fae1a4fC4dBAE93B3bCCD"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x415ce980fde17F1FF102e1c6e4ce860Acc615D74",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0xFa4B761A1e07909Ba31331a5dfa12390E3ff5583",original:"Solana"}],["USDTpolygon",{symbol:"USDT",decimals:6,address:"0xc2132D05D31c914a87C6611C10748AEb04B58e8F"}]]],["Avalanche",[["WETH",{symbol:"WETH",decimals:18,address:"0x8b82A291F83ca07Af22120ABa21632088fC92931",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0xB24CA28D4e2742907115fECda335b40dbda07a4C",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0x1C0e79C5292c59bbC13C9F9f209D204cf4d65aD6",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x9d228444FC4B7E15A2C481b48E10247A03351FD8",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0xca319f81D147559e19A522A0a0310Dd43A96cA0F",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0xf2f13f0B7008ab2FA4A2418F4ccC3684E49D20Eb",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0xDb2d08f5A9C9ADBBA0DE5a69bbB1E9Ca03411692",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x442F7f22b1EE2c842bEAFf52880d4573E9201158",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x6145E8a910aE937913426BF32De2b26039728ACF",original:"Bsc"}],["AVAX",{symbol:"AVAX",decimals:18,address:"native",wrappedKey:"WAVAX"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E"}],["WETHavax",{symbol:"WETH",decimals:18,address:"0x49d5c2bdffac6ce2bfdb6640f4f80f226bc10bab"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0xd19abc09B7b36F7558929b97a866f499a26c2f83",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x494317B8521c5a5287a06DEE467dd6fe285dA4a8",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x375aA6C67BF499fBf01804A9f92C03c0776F372d",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xFE6B19286885a4F7F55AdAD09C3Cd1f906D2478F",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x0950Fc1AD509358dAeaD5eB8020a3c7d8b43b9DA",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x1703CB0F762D2a435199B64Ea47E5349B7C17480",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x43c588459b3243fA541B98CC4B2E995b3de553A2",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0xDfDA518A1612030536bD77Fd67eAcbe90dDC52Ab",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0x4b5fE357Eb11c735078e47526D6e853DBff18541",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0xDf11535274c0FD2Fe41A88bd1bBF802D72296037",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0xBe04f76A0ba2100c3F2d6Aa1FD8484F415469573",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0xFA83178c66fE51ee99109b5cC912f8098Ff812eF",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0xab933e939a9236BD439F7d29b87CE712f42bAC06",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x3F531c038A0D2d9c7D19FC3554cd0439791526c4",original:"Ethereum"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x126C03982Ad6D7ef7E6aF020bF219e87185a6BC3",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0x8A0691e602B7a5FCc51a27E4a08376dE50889B42",original:"Solana"}],["USDTavax",{symbol:"USDT",decimals:6,address:"0x9702230a8ea53601f5cd2dc00fdbc13d4df4a8c7"}]]],["Fantom",[["WETH",{symbol:"WETH",decimals:18,address:"0x2A126f043BDEBe5A0A9841c51915E562D9B07289",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x2Ec752329c3EB419136ca5e4432Aa2CDb1eA23e6",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0x87e9E225aD8a0755B9958fd95BE43DD6A91FF3A7",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x14BCb86aEed6a74D3452550a25D37f1c30AA0A66",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0xEE786D3D73Ea645365c7248E4e40eDba08B1169F",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0xb88A6064B1F3FF5B9AE4A82fFD52560b0dF9FBD3",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0xB4DcfD221048a1Dad989D39456BBd87762c26F06",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xc033551e05907Ddd643AE14b6D4a9CA72BfF509B",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x0FcbDAC44c67A43607D3E95886dB19871ADc985F",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x358CE030DC6116Cc296E8B9F002728e65459C146",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xEfE7701cb2B80664385Be226d0300912CA92f66A",original:"Avalanche"}],["FTM",{symbol:"FTM",decimals:18,address:"native",wrappedKey:"WFTM"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x21be370d5312f44cb42ce377bc9b8a0cef1a4c83"}],["CELO",{symbol:"CELO",decimals:18,address:"0xF432490C6c96C9d3bF523a499a1CEaFd8208A373",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0xBF227E92D6754EB4BFE26C40cb299ff2809Da45f",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xd99021C2A33e4Cf243010539c9e9b7c52E0236c1",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0xb8398DA4FB3BC4306B9D9d9d13d9573e7d0E299f",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0xC277423a21F6e32D886BF85Ef6cCB945d5D28347",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x3Cd9162Ca5256b8E26A0e3Ad14CCfF7C0Da0F174",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0xE8367853A0823515D37b1538331B4704089becb4",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0x2228703672906fEe5eD681Ec28e42B4506b8c336",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0xe8E8f941377A955bFA72880ec0dc2319dbC827a8",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0x385b219f0C4fa2e84EfE5aaf9692a821C57B8248",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0xd3365E7355230c78098b44B172eE27DAB95B041A",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0xd9E4C283d8A49Dc3767A6F5a4dFdc1d0cEf21604",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0xeE27799cF29D7F64647B92f47d543B382B49f83E",original:"Ethereum"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x787e2F3509583C0F03A339Be0826463C839CBE5E",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0x77ad3B2dA29FBd208F12c3C701E969F4422aAD79",original:"Solana"}]]],["Celo",[["WETH",{symbol:"WETH",decimals:18,address:"0x66803FB87aBd4aaC3cbB3fAd7C3aa01f6F3FB207",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x37f750B7cC259A2f741AF45294f6a16572CF5cAd",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0xd71Ffd0940c920786eC4DbB5A12306669b5b81EF",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x617f3112bf5397D0467D315cC709EF968D9ba546",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x97926a82930bb7B33178E3c2f4ED1BFDc91A9FBF",original:"Ethereum"}],["BUSD",{symbol:"BUSD",decimals:18,address:"0x1dd42c0785ca90B677adc2ABad01dfc5ECcD0b4d",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x9C234706292b1144133ED509ccc5B3CD193BF712",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0x42c76808f3179A091Ee007A2955aF2522978ADE7",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xBf2554ce8A4D1351AFeB1aC3E5545AaF7591042d",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x9d9abAE97a9344e3854527b4efbB366a1564bfEb",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0xFFdb274b4909fC2efE26C8e4Ddc9fe91963cAA4d",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x62FFf2D2D1692D52eAf043AeeC727F7918d269D3",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0xd1A342eE2210238233a347FEd61EE7Faf9f251ce",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x471ece3750da237f93b8e339c536989b8978a438"}],["USDT",{symbol:"USDT",decimals:6,address:"0x48065fbBE25f71C9282ddf5e1cD6D6A887483D5e"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x383A5513AbE4Fe36e0E00d484F710148E348Aa9D",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x4581E64115d46CcdeE65Be2336bEc86c9BA54C01",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x8B6eef6C449D3Ac723a9C06a9eaE2dCd7d308BA9",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x1Cb9859B1A16A67ef83A0c7b9A21eeC17d9a97Dc",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x89F2b718Ca518db39d377F0ABBa6B42582b549F7",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0xc6F962fCcb140ece554AfD0E589f971532A57f14",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xA41a62567d9eb960D84b72663FdaeBE0BCdE2683",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x8d53771b1Ec7461f8e45Bca2609c45bC0bbd0677",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0xEe48963C003e21EaCEdFA8a0A19BB3cbF7E776Fe",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x905CADB645684140E285e2D09D39dF5a2082BC87",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x2e2acb1782Aad0490f8446b6fD4626C467987bD6",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0xFaED7314060FCEc652ED91D9eac6c980DCA9D3B8",original:"Ethereum"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x72878E7d3A8746e0c91b9F16F0b8ee4fDE9DDc06",original:"Arbitrum"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0xe304254de5c2048F9bFb042dDFB54f84d1d77730",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0x985aa4814419ba338379A634785216301e51113D",original:"Solana"}]]],["Moonbeam",[["WETH",{symbol:"WETH",decimals:18,address:"0xab3f0245B83feB11d15AAffeFD7AD465a59817eD",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x931715FEE2d06333043d11F658C8CE934aC61D0c",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0xE57eBd2d67B462E9926e04a8e33f01cD0D64346D",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0xc30E9cA94CF52f3Bf5692aaCF81353a27052c46f",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x06e605775296e851FF43b4dAa541Bb0984E9D6fD",original:"Ethereum"}],["BUSD",{symbol:"BUSD",decimals:18,address:"0xa2284e1F98E4d0B7Eb6a6b4f3C57f1b209C755F3",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x82DbDa803bb52434B1f4F41A6F0Acb1242A7dFa3",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0x4415BfBDee669446550d55c749007EF60B520FC8",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xE3b841C3f96e647E6dc01b468d6D0AD3562a9eeb",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x7f433E22366E03a3758CE22cCf82887d828078f8",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0xd4937A95BeC789CC1AE1640714C61c160279B22F",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xd4918c40cA9f02d42Cb53d06587aF42017Bc345D",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x609AedD990bf45926bca9E4eE988b4Fb98587D3A",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0xc1a792041985F65c17Eb65E66E254DC879CF380b",original:"Celo"}],["GLMR",{symbol:"GLMR",decimals:18,address:"native",wrappedKey:"WGLMR"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0xAcc15dC74880C9944775448304B263D191c6077F"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x99Fec54a5Ad36D50A4Bba3a41CAB983a5BB86A7d",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x098d6eE48341D6a0a0A72dE5baaF80A10E0F6082",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x484eCCE6775143D3335Ed2C7bCB22151C53B9F49",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x25331575641d35D9765e1934acC8F0991c58e904",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x18872b45c603eD2EbC508b9C5514a85c2e2791FB",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0xd4870F7F5AD8Ae5139E1a5D8AD4ac55204aE4490",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0x7143e8EA96e158381057a58AfdDF44601c7e532C",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x6C6f83366A42fcA4D30a2D3f1914284de995Ac3a",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0xE6d02a875CcC153c076fe418f33De3A5C420f505",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0xeCd65E4B89495Ae63b4f11cA872a23680A7c419c",original:"Ethereum"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0xf0a9476E4712123A807859f9Fd25fe98213379BD",original:"Klaytn"}]]],["Solana",[["WETH",{symbol:"WETH",decimals:8,address:"7vfCXTUXx5WJV5JADk17DUJ4ksgau7utNKj4b963voxs",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"A9mUU4qviSctJVPJdBJWkb28deg915LYJKrzQ19ji3FM",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"3NZ9JMVBmGAqocybic2c7LQCJScmgsAZ6vQqTDzcqmJh",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"Dn4noZ5jgGfkntzcQSUZ8czkreiZ1ForXYoV2H8Dm7S1",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"EjmyN6qEC1Tf1JxiG1ae7UTJhUxSwk1TCWNWqxWV4J6o",original:"Ethereum"}],["BUSD",{symbol:"BUSD",decimals:8,address:"33fsBLA8djQm82RpHmE3SuVrPGtZBWNYExsEUeKX1HXX",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"Gz7VkD4MacbEB6yC5XD3HcumEiYx2EtDYYrfikGsvopG",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"9gP2kCy3wA1ctvYWQk75guqXuHfrEomqydHLtcTCqiLa",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:8,address:"FCqfQSujuPxy6V42UvafBhsysWtEq1vhjfMN1PUbgaxA",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"KgV1GvrHQmRBY8sHQQeUKwTm2r2h8t4C8qt12Cw1HVE",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"FHfba3ov5P3RjaiLVgh8FTv4oirxQDoVXuoUUDvHuXax",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"DRQBDBEWmwWGK13fRTLhSPzjbvMSUavhV6nW4RUH8W6T",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"9kvAcwQbqejuJMd59mKuw2bfSsLRaQ7zuvaTVHEeBBec",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"7ixSaXGsHAFy34wogPk2YXiUX3BMmQMFdercdaHLnBby",original:"Moonbeam"}],["SOL",{symbol:"SOL",decimals:9,address:"native",wrappedKey:"WSOL"}],["WSOL",{symbol:"WSOL",decimals:9,address:"So11111111111111111111111111111111111111112"}],["USDCsol",{symbol:"USDC",decimals:6,address:"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"}],["SUI",{symbol:"SUI",decimals:8,address:"G1vJEgzepqhnVu35BN4jrkv3wVwkujYWFFCxhbEZ1CZr",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"6LNeTYMqtNm1pBFN8PfhQaoLyegAH8GD32WmHU9erXKN",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"CSD6JQMvLi46psjHdpfFdr826mF336pEVMJgjwcoS1m4",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"CR4xnGrhsu1fWNPoX4KbTUUtqGMF3mzRLfj4S6YEs1Yo",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:8,address:"8M6d63oL7dvMZ1gNbgGe3h8afMSWJEKEhtPTFM2u8h3c",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:8,address:"DWXe1hxpnb8LAH21iyXcjvMbiAGzoYyuCVQtRLvZdLYd",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"EfqRM8ZGWhDTKJ7BHmFvNagKVu3AxQRDQs8WMMaoBCu6",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:8,address:"25rXTx9zDZcHyTav5sRqM6YBvTGu9pPH9yv83uAEqbgG",original:"Ethereum"}],["tBTCsol",{symbol:"tBTC",decimals:8,address:"6DNSN2BJsaPFdFFc1zP37kkeNe4Usc1Sqkzr9C9vPWcU"}],["wstETH",{symbol:"wstETH",decimals:8,address:"ZScHuTtqZukUrtZS43teTKGs2VqkKL8k4QCouR2n6Uo",original:"Ethereum"}],["PYTH",{symbol:"PYTH",decimals:6,address:"HZ1JovNiVvGrGNiiYvEozEVgZ58xaU3RKwX8eACQBCt3"}]]],["Sui",[["WETH",{symbol:"WETH",decimals:8,address:"0xaf8cd5edc19c4512f4259f0bee101a40d41ebed738ade5874359610ef8eeced5::coin::COIN",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x5d4b302506645c37ff133b98c4b50a5ae14841659738d6d733d59d0d217a93bf::coin::COIN",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0x27792d9fed7f9844eb4839566001bb6f6cb4804f66aa2da6fe1ee242d896881::coin::COIN",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0xc060006111016b8a020ad5b33834984a437aaa7d3c74c18e09a95d48aceab08c::coin::COIN",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"0xdbe380b13a6d0f5cdedd58de8f04625263f113b3f9db32b3e1983f49e2841676::coin::COIN",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0x5c8c9082401982e8c2519a5c12883a5475295bf5cec4a0a13c26d35dd9a20d73::coin::COIN",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"0xb848cce11ef3a8f62eccea6eb5b35a12c4c2b1ee1af7755d02d7bd6218e8226f::coin::COIN",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:8,address:"0x909cba62ce96d54de25bec9502de5ca7b4f28901747bbf96b76c2e63ec5f1cba::coin::COIN",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"0x1e8b532cca6569cab9f9b9ebc73f8c13885012ade714729aa3b450e0339ac766::coin::COIN",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xe596782fbaebef51ae99ffac8731aed98a80642b9dc193ed659c97fbc2cc0f84::coin::COIN",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"0x6081300950a4f1e2081580e919c210436a1bed49080502834950d31ee55a2396::coin::COIN",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"0xa198f3be41cda8c07b3bf3fee02263526e535d682499806979a111e88a5a8d0f::coin::COIN",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"0x66f87084e49c38f76502d17f87d17f943f183bb94117561eb573e075fdc5ff75::coin::COIN",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"0xb7844e289a8410e50fb3ca48d69eb9cf29e27d223ef90353fe1bd8e27ff8f3f8::coin::COIN",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0xb231fcda8bbddb31f2ef02e6161444aec64a514e2c89279584ac9806ce9cf037::coin::COIN",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x2::sui::SUI"}],["APT",{symbol:"APT",decimals:8,address:"0x3a5143bb1196e3bcdfab6203d1683ae29edd26294fc8bfeafe4aaa9d2704df37::coin::COIN",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"0x33744e7df340a4d01c23f6b18c13563f767545ea95f976f8045f056358419da3::coin::COIN",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xc3f8927de33d3deb52c282a836082a413bc73c6ee0bd4d7ec7e3b6b4c28e9abf::coin::COIN",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:8,address:"0xaab14ec22908de73d1b0619f5e03842398f8e68262981bd35ef44b42d22b23a::coin::COIN",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0x6037801f060f0f54b3817bca05e3c8b9b9ffaa2da8e93fd5b80fa662aa3c9e55::coin::COIN",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:8,address:"0xaecbc804fa7ca7cffc74c9a05eb6ae86fda0c68375b5c1724204a1065bcb239a::coin::COIN",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x7e3e74afcc1913aa9491c8cee89b02131a6e5519b090f16b54321835c1241cfb::coin::COIN",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:8,address:"0xbc3a676894871284b3ccfb2eec66f428612000e2a6e6d23f592ce8833c27c973::coin::COIN",original:"Ethereum"}],["WKLAY",{symbol:"WKLAY",decimals:8,address:"0xa5ec915864d7f37b25ca9144b2db6ebcf29e73603c2ccf9d0e765adcd9049a98::coin::COIN",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0x9c6d76eb273e6b5ba2ec8d708b7fa336a5531f6be59f326b5be8d4d8b12348a4::coin::COIN",original:"Solana"}]]],["Aptos",[["WETH",{symbol:"WETH",decimals:8,address:"0xcc8a89c8dce9693d354449f1f73e60e14e347417854f029db5bc8e7454008abb::coin::T",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x5e156f1207d0ebfa19a9eeff00d62a282278fb8719f4fab3a586a0a2c0fffbea::coin::T",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0xae478ff7d83ed072dbc5e264250e67ef58f57c99d89b447efd8a0a2e8b2be76e::coin::T",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0xa2eda21a58856fda86451436513b867c97eecb4ba099da5775520e0f7492e852::coin::T",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"0x407a220699982ebb514568d007938d2447d33667e4418372ffec1ddb24491b6c::coin::T",original:"Ethereum"}],["BUSD",{symbol:"BUSD",decimals:8,address:"0x77400d2f56a01bad2d7c8c6fa282f62647ce3c03f43f2a8742e47ea01a91e24a::coin::T",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"0x6781088e2a1629d38eda521467af4a8ca7bfa7e5516338017940389595c85c0f::coin::T",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0xc5fd7820e9f053e6dd8e7dd8ca3ce8e9b10d200ba1692bdeb7a035217180ad4a::coin::T",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"0x6312bc0a484bc4e37013befc9949df2d7c8a78e01c6fe14a34018449d136ba86::coin::T",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:8,address:"0x79a6ed7a0607fdad2d18d67d1a0e552d4b09ebce5951f1e5c851732c02437595::coin::T",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"0x5b1bbc25524d41b17a95dac402cf2f584f56400bf5cc06b53c36b331b1ec6e8f::coin::T",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x39d84c2af3b0c9895b45d4da098049e382c451ba63bec0ce0396ff7af4bb5dff::coin::T",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"0xd1aa2ff36a0e93e1b4e4fecdecf8bb95bc5de399061c5e84b515281f48718842::coin::T",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"0xac0c3c35d50f6ef00e3b4db6998732fe9ed6331384925fe8ec95fcd7745a9112::coin::T",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"0x7ab1283a7b13c4254d4e1f803d7ce6578442c1d7a40d0faee41cd48ba4884c8a::coin::T",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"0xdd89c0e695df0692205912fb69fc290418bed0dbe6e4573d744a6d5e6bab6c13::coin::T",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0xc91d826e29a3183eb3b6f6aa3a722089fdffb8e9642b94c5fcd4c48d035c0080::coin::T",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"0xa72a97e872be9ee3d2f14d56fd511eb7e4a53f4055be3a267d8602e7685b41c0::coin::T",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x1::aptos_coin::AptosCoin"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"0x0e977796d7bfb3263609b90dffd264c7bd078ce35dac42b55302858d9fa3452b::coin::T",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xca3a2c28bc8c6c762f752dd2a4ebbfd00356ca99977ce6636e3af5897124a87a::coin::T",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:8,address:"0x6a7a7f36ef5e2d0e65fcf72669c20d514d68298b0f76c7554517208f73260aaf::coin::T",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0x4f6ecb05a797902d472abc2f5804bde93a53d8b75f14f767824cdb1623a4ee83::coin::T",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:8,address:"0x5b5f14781164cf77185a7b6acd8e4f3cbb7e7cfb1cd5760d2b8af81075fc153d::coin::T",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0xfcc4fcd734d5b8578fb629d238d15264a49eca6165c7444c21feec3b4962eb88::coin::T",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:8,address:"0x9d5a0f8215301fa8096df332b1533f6328f18c32fbac2a7089cfbea73b3068a7::coin::T",original:"Ethereum"}],["WKLAY",{symbol:"WKLAY",decimals:8,address:"0x539b652f8230a0e42adaeda4706b5639893d22362eda6ea897493c210cb48219::coin::T",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0x770211b47954e15bec1a4271bf33bacebc2d2adb43b7dc1ca45efa787615dd4c::coin::T",original:"Solana"}]]],["Base",[["WETH",{symbol:"WETH",decimals:18,address:"0x71b35ECb35104773537f849FBC353F81303A5860",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0xec267C53f53807c2337C257f8AC3Fc3cC07cc0ed",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0xE6396f780b543dF16ee3b784D789c75B68319db0",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0xFf0C62A4979400841eFaA6faADb07Ac7d5C98b27",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x617Edadb51BfB43A44Bb91C7402129C23bA52381",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0xc863399E5c5C4011B1DC3fB602902C77BA72B709",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0xFe1579BAc60363c8572CB30Bf4DD1Fd85811BBF8",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x7fdAa50d7399ac436943028edA6ed9a1BD89509f",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x68E2b07F92ed506f92935d7359ECA84D5342dbb4",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0xc449A60A31E1eebFE83c42E9465fd4Dc318aE9a7",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xD83385fE100E20c269a5975D4Bf92525BcE09F87",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x936Fa2DE8380Dc5BF34C80F1BaD53a9f3630263B",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x74df3823aA29D278cAD0A3632fCB56C896a38eD4",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0xfdB7311BeC3b2CcCF8407d0585f81B97b3b5eff1",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x1C61629598e4a901136a81BC138E5828dc150d67",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0xe8CE40EBBB844142400D21558a2F1c9683d69139",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x36c6FBF7B49bF65f5F82b674af219C05b2a4aDD1",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x1d36126289Be1658297A35CC3EB2BB80A7D7A04b",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x9D36e0edb8BBaBeec5edE8a218dc2B9a6Fce494F",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xb96B82Cd6D45d98Fb6897D16A5E4EE888329C513",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0xCb725aC8d9985D3bE306Dd9e1517d3702929176c",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0xc6bfBeb3002aD563D2d1f72614C61C83Bf147Acd",original:"Optimism"}],["ETHbase",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHbase"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x4200000000000000000000000000000000000006"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}],["wstETHbase",{symbol:"wstETH",decimals:18,address:"0xc1CBa3fCea344f92D9239c08C0568f6F2F0ee452"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x9EE95E6Bd1B3C5740F105d6fb06b8BDeF64Eec70",original:"Ethereum"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x56D0873e0eCA4a56063e1BF945788365666CFBFC",original:"Arbitrum"}],["tBTCbase",{symbol:"tBTC",decimals:18,address:"0x236aa50979D5f3De3Bd1Eeb40E81137F22ab794b"}],["wstETH",{symbol:"wstETH",decimals:18,address:"0xEd4e2FD35161c3c0e33cA187fce64C70d44Ce32b",original:"Ethereum"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x41c433c146c47Dc53FC48cDc69e406e365e298E1",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0x4c5d8A75F3762c1561D96f177694f67378705E98",original:"Solana"}],["USDTbase",{symbol:"USDT",decimals:6,address:"0xfde4C96c8593536E31F229EA8f37b2ADa2699bb2"}]]],["Arbitrum",[["WETH",{symbol:"WETH",decimals:18,address:"0xD8369C2EDA18dD6518eABb1F85BD60606dEb39Ec",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0xC96F2715E2a242d50D1b0bC923dbe1740b8eCf18",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0x397846a8078d4845c7f5c6Ca76aeBbcFDc044fAe",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0xE4728F3E48E94C6DA2B53610E677cc241DAFB134",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x5c4f2FEFB97F7DF09E762d95C83f0Ccf8bCe8234",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x3ab0E28C3F56616aD7061b4db38aE337E3809AEA",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0x599ADB10E6A012dF34935D47407450f6D7170e3C",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x7AF00405916D823eDb1121546EfA6F4972B51b84",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x1a0590F951bc9C3818Ce75ba5Bbe92831b2cf57e",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x565609fAF65B92F7be02468acF86f8979423e514",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x93e0FcbEd43CD6fC30DF00CcBD4669718dc74e77",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x7f7dcDb91930033a4Eb269196EBb6fd5f0644E4B",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x4E51aC49bC5e2d87e0EF713E9e5AB2D71EF4F336",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x944C5b67a03e6Cb93Ae1E4B70081f13b04CDB6Bd",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x2bcC6D6CdBbDC0a4071e48bb3B969b06B3330c07",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x3870546cfd600ba87e4180686d29dC993A45d3B7",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0xCF79d86B8a830030aF6D835737d6eac3bE823fD7",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x4EdeF400eDe5309240814b5FC403F224504604e9",original:"Aptos"}],["ETHarbitrum",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHarbitrum"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x82af49447d8a07e3bd95bd0d56f35241523fbab1"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xaf88d065e77c8cC2239327C5EDb3A432268e5831"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0xB1fC645a86fB5085e12D8BDDb77702F728D2A26F",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0x3A5C2Da9E30741cb59a5e9446A23A86886fC9DC2",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0xBAfbCB010D920e0Dab9DFdcF634De1B777028a85",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x8619F97D4d08382548F536E5CE1D3e0D9bA40326",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x57723abc582DBfE11Ea01f1A1f48aEE20bD65D73",original:"Ethereum"}],["tBTCpolygon",{symbol:"tBTC",decimals:18,address:"0x3bab04bDFd2Dc3640c2B9390A2Da05bC1192D482",original:"Polygon"}],["tBTCoptimism",{symbol:"tBTC",decimals:18,address:"0x2519010b6585247BcDC8BcDa5C8730Be754b8c76",original:"Optimism"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x6c84a8f1c29108F47a79964b5Fe888D4f4D0dE40"}],["wstETH",{symbol:"wstETH",decimals:18,address:"0xf2717122Dfdbe988ae811E7eFB157aAa07Ff9D0F",original:"Ethereum"}],["wstETHarbitrum",{symbol:"wstETH",decimals:18,address:"0x5979D7b546E38E414F7E9822514be443A4800529"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0xFA95f6c796E54F9C4a99392CAE84410a25794BB3",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0xE4D5c6aE46ADFAF04313081e8C0052A30b6Dd724",original:"Solana"}],["USDTarbitrum",{symbol:"USDT",decimals:6,address:"0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9"}]]],["Optimism",[["WETH",{symbol:"WETH",decimals:18,address:"0xb47bC3ed6D70F04fe759b2529c9bc7377889678f",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x711e53D031ea9B0bb0C24dD506df11b41AEA419e",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0xB214C19d81c99E75e84706a3aa0A757319023e26",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0xf6B4185FCf8aF291c0E3927fbEab7046b4f6A8CA",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x098EA47D630b46df1E08e389e5e4466119c7dd30",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x8f02B6a32cebcAe44D2Fd17d87966f5B5dD14c6d",original:"Polygon"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0xbB1EaB9Eb8fDf65F0E291D013DA07B4b65a27a01",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x6A09fE65ACa27C12573F04aAFa290bD75497E1BC",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:18,address:"0x1C15057d1F3794C934a6cBC1f7EceE934050F219",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x8418C1d909842f458c9394886b83F19d62bF1A0D",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x355f0a8a7ecAeD971b8Fbd50994558291ff2413a",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x0b0ecbe5C3995541876d27633B63296570FB34Af",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x9b88D293b7a791E40d36A39765FFd5A1B9b5c349",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0xbffD46DFDb8d3a02b8D2E0F864a2cD712090a4D3",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xba1Cf949c382A32a09A17B2AdF3587fc7fA664f1",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x6F974A6dfD5B166731704Be226795901c45Bb815",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x27A533e438892DA192725b4C9AcA51447F457212",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0xC5B3AC2DF8D8D7AC851F763a5b3Ff23B4A696d59",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x825206E1D29456337769e6f1384101E997C6A732",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xa6252F56cc6eEA21165d56744C795F91c8a3Cf68",original:"Arbitrum"}],["ETHoptimism",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHoptimism"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x4200000000000000000000000000000000000006"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0x0b2c639c533813f4aa9d7837caf62653d097ff85"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x3F369a664fa665e01e8EB9f20bFcE03A0CAb8971",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0xb931c7BbD87A6e249EaA7355B13927F9c99Bce87",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0xeC0a755664271b87002dDa33CA2484B24aF68912",original:"Ethereum"}],["tBTCpolygon",{symbol:"tBTC",decimals:18,address:"0xE4C32B9eA749fa0342B1C42C01E80028B97c3917",original:"Polygon"}],["tBTCoptimism",{symbol:"tBTC",decimals:18,address:"0x6c84a8f1c29108F47a79964b5Fe888D4f4D0dE40"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x2390a5131fcba6e47f702172cF4876589E4161c6",original:"Arbitrum"}],["wstETH",{symbol:"wstETH",decimals:18,address:"0x855CFcEEe998c8ca34F9c914F584AbF72dC88B87",original:"Ethereum"}],["wstETHoptimism",{symbol:"wstETH",decimals:18,address:"0x1F32b1c2345538c0c6f582fCB022739c4A194Ebb"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0xbbeF8233a0d10EEAb84E913FaDB337ab9b62F683",original:"Klaytn"}],["PYTH",{symbol:"PYTH",decimals:6,address:"0x99C59ACeBFEF3BBFB7129DC90D1a11DB0E91187f",original:"Solana"}],["USDToptimism",{symbol:"USDT",decimals:6,address:"0x94b008aA00579c1307B0EF2c499aD98a8ce58e58"}]]],["Wormchain",[["WETH",{symbol:"WETH",decimals:8,address:"wormhole18csycs4vm6varkp00apuqlsm7v4twg8jsljk8wfdd7cghr7g4rtslwqndm",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"wormhole1utjx3594tlvfw4375esgu72wa4sdgf0q7x4ye27husf5kvuzp5rsr72gdq",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"wormhole1nz0r0au8aj6dc00wmm3ufy4g4k86rjzlr8wkf92cktdlps5lgfcqxnx9yk",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"wormhole1w27ekqvvtzfanfxnkw4jx2f8gdfeqwd3drkee3e64xat6phwjg0savgmhw",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"wormhole1chejx4qqtvwxy6684yrsmf6pylancxqhk3vsmtleg5ta3zrffljqfscg87",original:"Ethereum"}],["BUSD",{symbol:"BUSD",decimals:8,address:"wormhole1msyushf6d76u9wupuvm6jdvc0x4trmv5w5kxr0hyt7n9npp233usg7pkhm",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"wormhole1xmpenz0ykxfy8rxr3yc3d4dtqq4dpas4zz3xl6sh873us3vajlpszn4ph7",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"wormhole169nr66h9gcsfljvsnxnqfjakskcjt6ac8f58wqjuagu79m540teqfvaal4",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:8,address:"wormhole1g3acw7aumaj3r348cqn4kazrehlmn822w9p46sqwztnke27h3lysxj4ddr",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"wormhole1ml922hnp59jtq9a87arekvx60ezehwlg2v3j5pduplwkenfa68ksgmzxwr",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"wormhole1gwm6mrnse9atzf4mer4dnrz64mp6pa75wpsxywu8gymt9fwsk46sfr372u",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"wormhole1e0cwfmla7exa578xddl87paxexw9ymwrzysfjms8c2mstxjkldlqn45jqa",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"wormhole1kqey3a6k26kyensq7elcpx229tlj4d3qlshwhjq5xjm8dcdvu60qtef8k9",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"wormhole1gzuv84xrwwhxhf0f62av279vfyrfrm7x58fcnadlr5m90gnx223ses2st0",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"wormhole1wn625s4jcmvk0szpl85rj5azkfc6suyvf75q6vrddscjdphtve8sca0pvl",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"wormhole17fr8awnysyv3nt5je4strczdupssl8u9jqam890jfv72sh32yyqqhtg3ry",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"wormhole19hlynxzedrlqv99v6qscww7d3crhl86qtd0vprpltg5g9xx6jk9q6ya33y",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"wormhole1f9sxjn0qu8xylcpzlvnhrefnatndqxnrajfrnr5h97hegnmsdqhsh6juc0",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"wormhole18nlwscr7290j463vcptqlgqudycry2rdnw2ysltpc2nqefk3353s808rl9",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:8,address:"wormhole1ev8rhdflmlq6de5g7ttj585fhuv3jfhnuhfzyh7qrswhzaq2tkqswxz6y3",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"wormhole1snw0qugpjcxwtxzzkqt5guwavq85eumxzeagql2u2m662xrtnjuqyj3pkj",original:"Optimism"}],["USDCbase",{symbol:"USDC",decimals:6,address:"wormhole1edkult6zudk6ld23fesjfrehux35q86engsq5jlycl0e4upkz8mqkgcprf",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:8,address:"wormhole1nu9wf9dw384attnpu0pwfet5fajn05w2ex4r07mghvk3xcwrt2yq5uutp5",original:"Ethereum"}],["tBTCpolygon",{symbol:"tBTC",decimals:8,address:"wormhole1uj24zecnaxz7ftz0sh6dsayfene4w3yptwg0422kves9duel67vsr7hlyz",original:"Polygon"}],["tBTCarbitrum",{symbol:"tBTC",decimals:8,address:"wormhole1q8ynvqvtw49ln73mn70v4me4q03fvvmhkf2lh4ueam5w4362s2asjmvxtd",original:"Arbitrum"}],["wstETH",{symbol:"wstETH",decimals:8,address:"wormhole1gg6f95cymcfrfzhpek7cf5wl53t5kng52cd2m0krgdlu8k58vd8qezy8pt",original:"Ethereum"}],["WKLAY",{symbol:"WKLAY",decimals:8,address:"wormhole1kyy876kye7k79fuzat532yyqkrzhlr6l7hc7lfa2rk5tygzhy00qrhjgkc",original:"Klaytn"}]]],["Osmosis",[["WETH",{symbol:"WETH",decimals:8,address:"ibc/62F82550D0B96522361C89B0DA1119DE262FBDFB25E5502BC5101B5C0D0DBAAC",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"ibc/6B99DB46AA9FF47162148C1726866919E44A6A5E0274B90912FD17E19A337695",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"ibc/E4CD61E1FA3EB04EF1BF924D676AB9FD55E84A0DCF4E78C11CCA0E14E5B42672",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"ibc/2108F2D81CBE328F371AD0CEF56691B18A86E08C3651504E42487D9EE92DDE9C",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"ibc/898ACF6F5DEBF535103BBD52E3E5B70A311AD097B198A152483F69290B4210C0",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"ibc/03B6D1925A09B3033AA6FA8772202719ABDC51F8CC2A5C26D0A9B19832F2C023",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"ibc/5394BB30B3C9BD1EE84C9531E5094DDE2490964F518CBE8A4C91F748CE559AF5",original:"Bsc"}],["USDCbnb",{symbol:"USDC",decimals:8,address:"ibc/B28ACEF11D063FA8B1DA73C2F7DA3A1CFCCBC13E96B671698D4860E9367B55BB",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"ibc/22B44C7369EED16089B9840ADE399B80D9483B4E459E67643C96C681D7C463D0",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"ibc/0B3C3D06228578334B66B57FBFBA4033216CEB8119B27ACDEE18D92DA5B28D43",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"ibc/397DFE63D87F6940ECA583DFF5461E48BF0BA6554CBBE70278E307DDFDC8E9D5",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"ibc/83300733052AB5F6E0F0C221E24189B6DF26CC94C73D2F44627627F9DEF4A9C8",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"ibc/0F2941B0168D8DB77DA1B6A2D3A95EC04026D3C97FA3BFE8FD1D5D3F983AA518",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"ibc/1E43D59E565D41FB4E54CA639B838FFD5BCFC20003D330A56CB1396231AA1CBA",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"ibc/F08DE332018E8070CC4C68FE06E04E254F527556A614F5F8F9A68AF38D367E45",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"ibc/B1C287C2701774522570010EEBCD864BCB7AB714711B3AA218699FDD75E832F5",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"ibc/A4D176906C1646949574B48C1928D475F2DF56DE0AC04E1C99B08F90BC21ABDE",original:"Aptos"}],["USDCbase",{symbol:"USDC",decimals:6,address:"ibc/8AC0F990290BBEF3AEBFCBF70F902AD954781BB40D07EB76341272800D48D05F",original:"Base"}],["OSMO",{symbol:"OSMO",decimals:6,address:"uosmo"}],["tBTC",{symbol:"tBTC",decimals:8,address:"ibc/6207D35D2C08F2162575C3C4BFD524226E50639121A273045F1B393AF67DCEB3",original:"Ethereum"}],["wstETH",{symbol:"wstETH",decimals:8,address:"ibc/BF75AE1500CB7EC458E91A11731F1B6AC1F1FE1FA937A88564955ED6A83CA2FB",original:"Ethereum"}]]],["Evmos",[["WETH",{symbol:"WETH",decimals:8,address:"ibc/4442A8E0D487A49E76EA6606F5DADCF8D0DBDD8499112340C964970DB745EDA2",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"ibc/0C19171CDC59451F91D2749CDEA63355532DCD5D8904CCBAC4953290E16AB8FD",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"ibc/46C5DA1CB61C5BAA8730ABA467ADD58DE0333B075CACE28BC87E64AE8C9CA051",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"ibc/C9072A294F5649D64E87A6998DD750576881E454CACCDAF7376EFC0FA243808D",original:"Ethereum"}],["USDCbnb",{symbol:"USDC",decimals:8,address:"ibc/8E08C01546EF346F7E9A3600DDBC88943ADF3B20A67F1F2DD7B83D85613BCCAB",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"ibc/2EA2FE172078576E62DA20F14EEED12B26611D93150FE1D68E1AAE00479AC335",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"ibc/39913E647C3549D663B1ED7F0745E1779515170C5215B98B2C8410B4C073AD30",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"ibc/9EFE5F5D75A87197DD257BA7A96A3BCCEC9DB59D257C742FB5AA9D3DF612D476",original:"Fantom"}],["WSOL",{symbol:"WSOL",decimals:8,address:"ibc/4443218F584A7AB2DFBCF93872D6E5B6967A11C53515DDF45A2CF387C54BD73A",original:"Solana"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"ibc/9E2E7B4A53409267CD686F4EB67969C2602A0F5FF9BDB1082B00E71CC4815DDE",original:"Arbitrum"}],["EVMOS",{symbol:"EVMOS",decimals:18,address:"aevmos"}]]],["Kujira",[["WETH",{symbol:"WETH",decimals:8,address:"ibc/7D9D28CABB49A4BB1A50C3B7E4544BFDBC5DDFAEB84A7787755A34CE7196CE15",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"ibc/C5EADE2C526B9629D230AC02A97644984ACB7C2F9A6C85126D1025CB0DA42588",original:"Ethereum"}],["WBTC",{symbol:"WBTC",decimals:8,address:"ibc/B2C7F21B604E3974A7DA5DAA9395905F2F3C85392F8A221CFDF62E4A9F4E48E4",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"ibc/3CE8A3DE4AE5AE2B4B8C03B2B227CC284732EDC849E506615FF2AA3D8EB1BAFC",original:"Ethereum"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"ibc/28E7241F6508EB4692C721E91201377323796EF2758CCD83D220A40EAD32601E",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"ibc/F9F41DB8DA49EA6AB9EB4B2C9E0ECDC2502ABDA2FE728B85994BF31240CBC163",original:"Avalanche"}],["CELO",{symbol:"CELO",decimals:8,address:"ibc/4ACD155D71182398277CBD2C630A7C8C5F0F16FFF77965FDE4C845A4CDE2D60C",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"ibc/3D337ECC89A8421DD6F33C4B7DDE9D4A18D728A4A688BA30E41F466EC8DD3869",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"ibc/E5CA126979E2FFB4C70C072F8094D07ECF27773B37623AD2BF7582AD0726F0F3",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"ibc/EBA52E7239CC1BC7F8ECF4F41523B6DD477FF067FD953315704A9A4FD2131B48",original:"Sui"}],["KUJI",{symbol:"KUJI",decimals:6,address:"ukuji"}]]],["Klaytn",[["KLAY",{symbol:"KLAY",decimals:18,address:"native",wrappedKey:"WKLAY"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0xe4f05A66Ec68B54A58B17c22107b02e0232cC817"}]]]],Gae=Br(z$e,[0,[1,2]]),P$e=[["Ethereum",[["ETH",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETH"}],["WETH",{symbol:"WETH",decimals:18,address:"0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x07865c6e87b9f70255377e024ace6630c1eaa37f"}],["WBTC",{symbol:"WBTC",decimals:8,address:"0xC04B0d3107736C32e19F1c62b2aF67BE61d63a05"}],["USDT",{symbol:"USDT",decimals:6,address:"0xC2C527C0CACF457746Bd31B2a698Fe89de2b6d49"}],["DAI",{symbol:"DAI",decimals:18,address:"0x11fE4B6AE13d2a6055C8D9cF65c55bac32B5d844"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x7cd0e8ff09cEB653813bD3d63d0554c1CB4BFdf6",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xB19693FEB013Bab65866dE0a845a9511064230cE",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x4C1b727f6df3B075E682C41a25687A69846aaC04",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xF6699D3f725C4b64Cc6010F2DF77B4B05C76Cd5C",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x0d7A9Cdbb7C21E64825cF81750A5081a32aFb5d4",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0xe092525a787CD56B901279b5864a224c22B95B72",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x0dc83BB61008A5E1194fe50fA9E474713C1AEcD7",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x494701CE895389d917a938f0ea202D4eB9684Eab",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x70F7360C49D227ccBbb98fB7B69B7CDB651195bb",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0xd7A89a8DD20Cb4F252c7FB96B6421b37d82cE506",original:"Aptos"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xd962F26D93c4eF609Ba00Ed6101326A1490B9489",original:"Arbitrum"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x76e39239e40857030D6f4D8545EFbd71F904d344",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x5aA392243437dDC8b4d86bfC90DF296908740A41",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x679874fBE6D4E7Cc54A59e315FF1eB266686a937"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x575D93A2278FbF4E8Bd3d51B539a6E237C3F17c5",original:"Arbitrum"}],["tBTCsol",{symbol:"tBTC",decimals:8,address:"0x57A52B6F0b393AF7d36116183cA83E584e636eA4",original:"Solana"}],["wstETH",{symbol:"wstETH",decimals:18,address:"0x6320cD32aA674d2898A68ec82e869385Fc5f7E2f"}],["SEI",{symbol:"SEI",decimals:6,address:"0xd68df72136207E9471C915cf1B6Cf43D587D4E0A",original:"Sei"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x327e0c7D5cFa65d4f9E358dC9fA4446C49dBcB6C",original:"Klaytn"}]]],["Polygon",[["WETH",{symbol:"WETH",decimals:18,address:"0xc6735cc74553Cc2caeB9F5e1Ea0A4dAe12ef4632",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x543237045a106D7fd2eE3e2B44b5728e70BDe9c3",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x02E30E84161BE1aBfcBB2b154B11De4C2b5E0a32",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x87374d35C5F1bD78c2b1da383F460e154e7D3E5e",original:"Ethereum"}],["MATIC",{symbol:"MATIC",decimals:18,address:"native",wrappedKey:"WMATIC"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x9c3C9283D3e44854697Cd22D3Faa240Cfb032889"}],["USDCpolygon",{symbol:"USDC",decimals:6,address:"0x9999f7fea5938fd3b1e26a12c3f2fb024e194f97"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x0C63D8ADB69204b2946DcB945a6f16d97C255eE2",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x51f3D34651523dD8CC4872ee261A1B0B3f73AceF",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xcc048C353Fdc2f5c378B7BCab9B240Ca2b619f1c",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x84aa9100a36D6c3514605F62342abF3cE77D5b97",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0xAd027790A64331A11bd1b651739450cC9Dc0098F",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x693b9AC2199d989bDA8C9C5b5d7A3680B4f40dAa",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x0284B4994456Fae4cb56E4d33228d51B674EAD1b",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x3dadA6f29f80A0427C4989E17a5a2ada17441841",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x226B436043B537BD158e84fA199E2Aa36bf364f8",original:"Aptos"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0xC77d781f38Cf52F8Ea0b4c0F22312bB9A34911b5",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x68C4365d5229A44D9A59058B65500365492b5307",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0xf6CC0Cc8D54a4b1A63a0E9745663e0c844Ee4D48",original:"Ethereum"}],["tBTCpolygon",{symbol:"tBTC",decimals:18,address:"0xBcD7917282E529BAA6f232DdDc75F3901245A492"}],["SEI",{symbol:"SEI",decimals:6,address:"0xc5C0229B38564E1E8083031405Be8d6E6e3Bc462",original:"Sei"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x7b34f3711705eB2963fB856cda063C979de4749e",original:"Klaytn"}]]],["Bsc",[["WETH",{symbol:"WETH",decimals:18,address:"0x064a85eac6b4Bd7190BCAd3458dBD9459989c37B",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x861B5C16A2EcED022241072A7beA9D530b99EB6f",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0xe94AaBAdB6F833f65B8A9AdDD030985B775188c9",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x45082C9Fc6BBCa72288F47Fad21dE0BECC75759E",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x7FCDA925f0994121752ca14C334297BeC3d0eA9E",original:"Polygon"}],["BNB",{symbol:"BNB",decimals:18,address:"native",wrappedKey:"WBNB"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x6cE9E2c8b59bbcf65dA375D3d8AB503c8524caf7",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x1cfeCf72bcBE1E429A21A5B11E708C7c397AaC54",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x9aB305B792DBdb8253bEE909E7006611Cb45175b",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x1471698cBD9cAB0228F2EEA9303A2b3aA0ABDC2B",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x5C31B36599ED7f06b09c0ffC7A2F928cE496F046",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x30f19eBba919954FDc020B8A20aEF13ab5e02Af0",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"0x51a3cc54eA30Da607974C5D07B8502599801AC08",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x5A73D76e09Af2E428EC64aE10F91B78AC990B298",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x4A7Bd5E135f421057F97BbA8BCeeE5c18334f454",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x60845E2503Fcd945b3A6f0bC077a31CC913E654D",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xe3aA397cb6d93Cce4fAd9Cc9E796CCa5E50FB5ED",original:"Arbitrum"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x63108fC941F3cCE0B484De19746B5Af949EAF6eE",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0xE7176110261ef2FfC885dd568C1093f58F0aEee9",original:"Ethereum"}],["SEI",{symbol:"SEI",decimals:6,address:"0x79A8FFFCED130314eCC8782C846c4d8d4867A900",original:"Sei"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x79D34FDb686B5D139949E4F92D83EEe376489176",original:"Klaytn"}]]],["Avalanche",[["WETH",{symbol:"WETH",decimals:18,address:"0xbB5A2dC896Ec4E2fa77F40FA630582ed9c6D0172",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x63A30f239DC8d1c17Bf6653a68Fc6C2F83641E6d",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x3989C9c4bdd30400E6Aa90990683EAd6a1638A16",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x78554394273957d7e55afC841aeA27Cce469AEd4",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x10F1053bF2884b28ee0Bd7a2dDBa237Af3511d29",original:"Bsc"}],["AVAX",{symbol:"AVAX",decimals:18,address:"native",wrappedKey:"WAVAX"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0xd00ae08403B9bbb9124bB305C09058E32C39A48c"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x5425890298aed601595a70AB815c96711a31Bc65"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x094cB577C21Ab1360178beE74B9591fa12216dAD",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0xC66d9c2b33c347d4A4441975f4688fcD5DD4c441",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0xf080782DF38eD5228D2FC2882d13D56c8f1D6f21",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xb10563644a6AB8948ee6d7f5b0a1fb15AaEa1E03",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0xfc5128F8556a6F059466E67740e6cC31EE5C2C47",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x996a3f12C1FcD7339Ea8801f629201e4d42EAD04",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x36Bd1562F874941eE62Ebb2b3A45B4A88A9df90e",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x301587BF484756441de43E522027e3751871237B",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0xc07c754ef7473d315D973F7D9F7858C2eCe0a0a6",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x7E1779F65B644E5f98DdC4D2cB0A0106a7E6d9e1",original:"Ethereum"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x4beDc7471374d7479120E44ea9593eBB85f48AD9",original:"Arbitrum"}],["SEI",{symbol:"SEI",decimals:6,address:"0xfe2eCDD1708aaebf1cF802C6124fAFb18B22dfEE",original:"Sei"}]]],["Fantom",[["WETH",{symbol:"WETH",decimals:18,address:"0x758FEebDDeC06f4bCcEc8F756C8efBD35d5b7124",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0xDF7928AF5B33F7de592594958D8d6Ff8472Eb407",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x32eF19C4b3DF65a24972A489e70AdDef5E54262C",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0xE4FE5DF2084f9D81595e4fcba2399020FBE7b233",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x47a4C4c0f96D6CBe5b5C0A46CB0E22d6A17F1430",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xfB174b43228950C2055CFc25AE93f2DCe8E2beF0",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x0f545Be981C37fB15ab7c65404648761e99016e4",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x6BC4E8D8c1d54656D1DeBCa96efc53aFd1408aD2",original:"Avalanche"}],["FTM",{symbol:"FTM",decimals:18,address:"native",wrappedKey:"WFTM"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0xf1277d1Ed8AD466beddF92ef448A132661956621"}],["CELO",{symbol:"CELO",decimals:18,address:"0xB18E73a69c3Aaea39a610372537Cf8482622d199",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x41E3CFDFC255A4bF3C8D3560Bc8D3D9b5080338e",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xED1a08Fc69A7008d225890A96aaE258c465CC7ad",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0xd882AB49372eC093E8697B5153f54ab5e7738e3b",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0xAb2297E8994149BA91737944E40891881aF762a4",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x456e08952f9091B6c268dC0cECad53d141152C59",original:"Arbitrum"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0x685B29e17440c42758Ab3F80FD3603EF01bebe9A",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x01950A33DfFa63E6Bc23b5dB440505581A4cc0e7",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x66E080407407620844fE2083c33108BE55E087bc",original:"Ethereum"}],["SEI",{symbol:"SEI",decimals:6,address:"0x832e8050D6c64724500DE9B0ffe1CAc6c570a26d",original:"Sei"}]]],["Celo",[["WETH",{symbol:"WETH",decimals:18,address:"0x898471a82737dFFfB61915F9e8381e279076D72b",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0xB0524bEF6c61c6150B340b2828a890fD8dEa60C0",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0xeBB3fF6E5d61d3793Fdb60f7942BA78E636019f6",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x7a56409988BBF8758b3ba412b9c7E3FE504C8544",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xa8050be9389466c3c524F10F131f244ACbf21A0D",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x502c8C83008D9Dd812a7C5fB886C063060C73Dbf",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xDDB349c976cA2C873644F21f594767Eb5390C831",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0xE6F8710cA14CFe7F5aAAD3A799C3d1D92dCba938",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0xF194afDf50B03e69Bd7D057c1Aa9e10c9954E4C9"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x132D2172D89cd9CfD480A8887c6bF92360fB460e",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x05EEF2AE1A7A938D78598F7d9e8b97A9bED0c9eC",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0xa40d9E69ca9867C4bFbeC11Ce79C939991e9bf26",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0xAC0a2fF7DD597de863878a3372142b07B614C125",original:"Aptos"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0x0C4AbF95Ff3d82d1F02f55e65050eA5bA062606E",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x28E768a51D19dcB753a24B79D1e89c92fee094Ba",original:"Optimism"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x01a050Fc725F4E99aAD43Eb6f8481f38ee6231aD",original:"Ethereum"}],["SEI",{symbol:"SEI",decimals:6,address:"0x05Efb4aC79ef48a4830f517834c6f5f039F16832",original:"Sei"}]]],["Moonbeam",[["WETH",{symbol:"WETH",decimals:18,address:"0xd27d8883E31FAA11B2613b14BE83ad8951C8783C",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0xE5dE10C4b744bac6b783fAF8d9B9fDFF14Acc3c9",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x7f5Ca1bcFb38fDF4c0E0646FCbf3FA87740ff65D",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0xc31EC0108D8e886be58808B4C2C53f8365f1885D",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0xD2888f015BcB76CE3d27b6024cdEFA16836d0dbb",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x6097E80331B0c6aF4F74D7F2363E70Cb2Fd078A5",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x2E8afeCC19842229358f3650cc3F091908dcbaB4",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x6533CE14804D113b1F494dC56c5D60A43cb5C3b5",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x566c1cebc6A4AFa1C122E039C4BEBe77043148Ee",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x3406a9b09adf0cb36DC04c1523C4b294C6b79513",original:"Celo"}],["GLMR",{symbol:"GLMR",decimals:18,address:"native",wrappedKey:"WGLMR"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0xD909178CC99d318e4D46e7E66a972955859670E1"}],["SUI",{symbol:"SUI",decimals:9,address:"0x2ed4B5B1071A3C676664E9085C0e3826542C1b27",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0xCaa2A1d3BbbA0D1466571e83b4E2CbE04252593D",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x15025b956969DD8F1d0CD69959Ad97128F8f6D69",original:"Arbitrum"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0xf98E630a3DD4F21Cab7a37Bb01209cb62959169D",original:"Optimism"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x7480641F5B00b4Fc39d6AaeC4Cd851EdEA7f31CF",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0xf82E21cE03471983Afb9c2E3789Aa13a2d7242E8",original:"Ethereum"}],["SEI",{symbol:"SEI",decimals:6,address:"0x1EdDe35B7e058194B457B8621285EaFA710f01ea",original:"Sei"}]]],["Solana",[["WETH",{symbol:"WETH",decimals:8,address:"7VPWjBhCXrpYYBiRKZh1ubh9tLZZNkZGp2ReRphEV4Mc",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"2BAqec7Qof3Y7VJatwFsRHUNSQBSkzaEsT1V5bW6dbZY",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"3WK3mEDNPrNuQReBvM28NcsqrExMnPxD9pPJmgrUeKKH",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"ACbmcQxbbhiXWM1GmapUSMmBYKMvnFLfAAXKqdo8xKwo",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"BaGfF51MQ3a61papTRDYaNefBgTQ9ywnVne5fCff4bxT",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"3Ftc5hTz9sG4huk79onufGiebJNDMZNL8HYgdMJ9E7JR",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"GQtMXZxnuacCFTXVeTvyHi6P9F6chbtzhVc8JgD8hv7c",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"DMw2tLaq1bVoAEKtkoUtieSk9bfCPUvubYLatTMsSVop",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"84F2QX9278ToDmA98u4A86xSV9hz1ovazr8zwGaX6qjS",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"8987WGkYa5viiZ9DD8sS3PB5XghKmWjkEgmzvwDuoAEc",original:"Moonbeam"}],["SOL",{symbol:"SOL",decimals:9,address:"native",wrappedKey:"WSOL"}],["WSOL",{symbol:"WSOL",decimals:9,address:"So11111111111111111111111111111111111111112"}],["USDCsol",{symbol:"USDC",decimals:6,address:"4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU"}],["SUI",{symbol:"SUI",decimals:8,address:"BJZ72CjPQojVoH68mzrd4VQ4nr6KuhbAGnhZEZCujKxY",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"7EvFD3JKCJVdtkAYdaSVKJsrPEJCzy2neJha7TREGrCa",original:"Aptos"}],["WETHbase",{symbol:"WETH",decimals:8,address:"EKZqcBZ3Y7YTDinpecA7SxRp9B4s1m99VHJ9jpvyTwzW",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:8,address:"FMYvcyMJJ22whB9m3T5g1oPKwM6jpLnFBXnrY6eXmCrp",original:"Ethereum"}],["tBTCoptimism",{symbol:"tBTC",decimals:8,address:"HsPvRT3J7kuitNvNHogyZeSEagcqAqwwq2FPgrGfgApy",original:"Optimism"}],["tBTCsol",{symbol:"tBTC",decimals:8,address:"6DNSN2BJsaPFdFFc1zP37kkeNe4Usc1Sqkzr9C9vPWcU"}],["SEI",{symbol:"SEI",decimals:6,address:"8LFdfuhbfdH8oBzSKDgfPAxvLW24dCM9ttjBrBobURuk",original:"Sei"}]]],["Sui",[["WETH",{symbol:"WETH",decimals:8,address:"0x72831f626b1f0e11be201893d5cb641917730b1ccac778e4a77f8ab2052f0784::coin::COIN",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x9e4396c19ec1c5f2214c79d3af3f31e59869640305560f8f2499c36fa9c8e0f2::coin::COIN",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"0xe6fc78aa2b52b785bdcb67901cd85793a0b593248f315cb755974d23d0fcb837::coin::COIN",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"0xa516bcbf83b29a2944bb53ec9f934ea7d78c3626d3ae411d2fb9dcb977522e67::coin::COIN",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"0xddcf8680a8a4b8a527d8c85ec203274991590c2ea898d1c4635b70164d9c584b::coin::COIN",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"0xa600741c469fb57ed01497ddf101e798fa79a9c529bd176675c5c4d970811f80::coin::COIN",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x2aa8c885d04e676c4e87b7d0f94d4f3b243b1b5d93239d1cc41d5528ce1714c1::coin::COIN",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"0x14e756ff65e0ac810a5f69ca5276ef5b899a6df3c4717de1f85559d8b5ae6ea6::coin::COIN",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"0x81868174a6b11e1acc337b3414f9912455435d486609fb8d50b34312865085f2::coin::COIN",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"0xeffae382de96981f7ddd2d294429924827e8f325d612487a12d6a0b249171002::coin::COIN",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"0xbc03aaab4c11eb84df8bf39fdc714fa5d5b65b16eb7d155e22c74a68c8d4e17f::coin::COIN",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0x2::sui::SUI"}],["APT",{symbol:"APT",decimals:8,address:"0x812d6feb8b84e55d47a0bfcae9fb6a4e7e09be5ec86ce0a729e0f67d5f59f477::coin::COIN",original:"Aptos"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0xbbc39df58a11072ceeac1f685393ca912d1a1bfd6e772053ec5a544f36124da::coin::COIN",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:8,address:"0x7b442b988864149dedfb9b6a75a88c7c33b9ddd3d15a87bf25104e1fcdd680ab::coin::COIN",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0x4125940814a0ca87465a1a59092a7344633ad03b48ad7cda36d799d8558012c1::coin::COIN",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:8,address:"0xacf6784120b221a077ab0b84acc0b76930779eb55f157ea2492be4a60b808f6::coin::COIN",original:"Ethereum"}],["SEI",{symbol:"SEI",decimals:6,address:"0x22c5cdaabaae4b6d3351f9bba9511b0aebb0662a6c209a360f0776e1e77a8438::coin::COIN",original:"Sei"}]]],["Aptos",[["WETH",{symbol:"WETH",decimals:8,address:"0x381775005cb32cdd3dbf935ae1b978ed40d309c72b009cd4a812aab6d991418a::coin::T",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"0x5f229253e2b2d03fb909f565feca49452582bd633a5816e5ce30aa593cb49d8a::coin::T",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"0xa5894f5ddb8647e6143102aa336ff07374f7b32e88c1c703aef5b7c9a370bf80::coin::T",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"0xbe8f4301c0b54e870902b9a23eeb95ce74ac190531782aa3262337ceb145401a::coin::T",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x02ef7697bdb33361ca39d228671203afc0dea3202e792d79d2072b761d87c834::coin::T",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"0x533c6ade00d15d1e014c41e29e34853e87df92c4e01a6a3f41318dbd098048d6::coin::T",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"0xecbb0f7e7d049499ca83ca1358344f56557886f6f7adc740d6734cce7bfc9a14::coin::T",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"0x338373b6694f71dbeac5ca4a30503bf5f083888d71678aed31255de416be37c0::coin::T",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"0xdd89c0e695df0692205912fb69fc290418bed0dbe6e4573d744a6d5e6bab6c13::coin::T",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"0x7b22d0e02f653d4fd1caddcfa4719a2b329da56eb81d8f27db703f02466c26a5::coin::T",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0x1::aptos_coin::AptosCoin"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0x3f0fdd44d96dae888d6c576218cf655458316a27c7bdc46537f61e531b10d3df::coin::T",original:"Arbitrum"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0xcff1d9820851201436ad225dcc4374a2d15f52a74109283eb9881be799677e92::coin::T",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:8,address:"0x5b5f14781164cf77185a7b6acd8e4f3cbb7e7cfb1cd5760d2b8af81075fc153d::coin::T",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0xcfaabb3cb08ad612905dd6b2593d044ce857dfe5360148333b4635fb57d4d13f::coin::T",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:8,address:"0x6e2d5d1a6d6d0e0c5db506ce64ead0530847a48b96516abbb08cdebe43fe3036::coin::T",original:"Ethereum"}],["SEI",{symbol:"SEI",decimals:6,address:"0xcae0ba0b7a435730ab65f1c8357d213e5cf9d4b377b96761745a8edaf9c9df6d::coin::T",original:"Sei"}]]],["Base",[["WETH",{symbol:"WETH",decimals:18,address:"0x44D627f900da8AdaC7561bD73aA745F132450798",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x5010B0988a035915C91a2a432085824FcB3D8d3f",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:18,address:"0x31B2BAEE47Dc5Fc06baEC1BF73C124031b44fB97",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0xFFB5d863d5132523d013338845A1Bb01EDd440f4",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0x9DeF11E63C23c71dE3716b81dD2Fdad2B24b8b7F",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x410B0EE532EFfB18fa4d90cc095B1CD58aC43d5a",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0x4C5208246676486064c501E1DAF2dD21596Bc5f5",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0xB4808E58713112AbAbB8167C7187F8988df38bbD",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x72C56041ea5fe8bDE99b2A123fb5964cDE8C7FE9",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0xCEc03b5710a464F4354AF35ebD0310238F656DFf",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x6Fb1dE2372e48fe66c84cf37cc2fb54EaEe62988",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0xEe0fC8BECD593B41AACBd93936fDAbc2A444370A",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0xd934A15FfA3945DD0Ba2cb7b4174024261A14874",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0x8eD43aBdc4f836aa60933177B31AC358ea09f27E",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x5c443C05C72F0660502d88642c807020cc9b71A2",original:"Optimism"}],["ETHbase",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHbase"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x4200000000000000000000000000000000000006"}],["USDCbase",{symbol:"USDC",decimals:6,address:"0xf175520c52418dfe19c8098071a252da48cd1c19"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x0219441240d89fAc3fD708d06d8fD3A072C02FB6",original:"Ethereum"}],["tBTCbase",{symbol:"tBTC",decimals:18,address:"0x783349cd20f26CE12e747b1a17bC38D252c9e119"}],["tBTCsol",{symbol:"tBTC",decimals:8,address:"0x9dA16Ae62De05bcb4606c4BFbB54046872501Bd0",original:"Solana"}],["SEI",{symbol:"SEI",decimals:6,address:"0x7B5edB2B3d2BeA8057a736B82AC6EF35c70bdadD",original:"Sei"}]]],["Sei",[["WETH",{symbol:"WETH",decimals:8,address:"sei13pzlt9etk44hj22lckncvampq2qu2gxv6r6774f3hma4vc07wqgsmftjx7",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"sei1nj32y0h0vzam33ay42h2majlfk7tdkqcuk84srn0v2a52kmujgfsyfe78f",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"sei1dc94as3vgxn3qkr5h0lnnrep69mtfku6jg4t94gfkunuyzr5g5eqyqvj9p",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"sei10a7see3f9t2j9l8fdweur3aqy4zgvz583a268hhhln3yzps6l5mqnl4ua6",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"sei1mgpq67pj7p2acy5x7r5lz7fulxmuxr3uh5f0szyvqgvru3glufzsxk8tnx",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"sei1uyce5s6cc8hveg0maq2lg7wm6v6fvwqmznypj559nzf9wr9tmw3qnd3ce7",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"sei1cr3j7rxq0dhq04ksftmj8n2w096w9g7ck8fngkvk2lrmy3qwz56q9thu9u",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"sei1yw4wv2zqg9xkn67zvq3azye0t8h0x9kgyg3d53jym24gxt49vdyswk5upj",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"sei140m6xagmw0zesejzhsvk46zprgscr7tu94h36rwsutcsxcs4fmds9sevym",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"sei1at3xuugacwgu3ppx7fxzmtr3q6m3ztjuean9r2mwcnqupw28yezs7unxgz",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"sei1rhpcprr2pffe6ydf078a0qeslhnlywxh2t3wjax4489z0m29cj9swj5khc",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"sei1em74y5sts4h8y5zuhfdn4w5g8zs285qld3kczpk6rh32jpvjyqqsvv0pdt",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"sei1pf5j3dgngm8yj2xkwmvmvt87g4vyc0szpjz92q8ly9erh23ytn4s983htv",original:"Arbitrum"}],["WETHbase",{symbol:"WETH",decimals:8,address:"sei1kdqylzcv86t7slg8m30mlfgna9xsrusghdgnavvurkv0rku7jvqqta7lka",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"sei1lf6ghmrkd7gn5jlj6xw64suycpjy7g4s5q92fc2gef4f8q3znanq95mmgv",original:"Base"}],["tBTCsol",{symbol:"tBTC",decimals:8,address:"sei1aj3uu9ejt8fk6rpjfhzluqnzqmv3enlndjmt8llkr7dn2dtz55xst4s3mn",original:"Solana"}],["SEI",{symbol:"SEI",decimals:6,address:"usei"}]]],["Arbitrum",[["WETH",{symbol:"WETH",decimals:18,address:"0x285d75E04D78F53f4Ed29A506a7e8479EEf3035f",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x42A212A2E7eA8feF4ED28F439F16A6ABDd34DA35",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"0x2B732F5ad6117818Ad3b7aC73C16033F6ECD78E5",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x50FD4064cC536a964E2E0Dc7B3fE2313Ab386bEA",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:18,address:"0xB039aC4Fa8Ed99d30C2f7D791294A9d5FAd698eF",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:18,address:"0x92b0C4D27a05921Ded4BB117755990F567aEe049",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"0xb39697B8BA5df91A169690DfEf88B911436619F2",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0xa507f7566B8aDE000E886166B95964677ef3b3Ef",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:18,address:"0x9592eE6eD1D9E611b7aa6F20CCbD7Ba571Be8bdd",original:"Celo"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0xF8cbdc4E54281b801f182039c250Ad6d13818250",original:"Solana"}],["SUI",{symbol:"SUI",decimals:9,address:"0xe64e2139fdf6Ee7e3795FE51955e21bA3d9eB9F7",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"0xa81C3BEf2d6f10213b860458DC119666C0ba13bf",original:"Aptos"}],["ETHarbitrum",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHarbitrum"}],["WETHarbitrum",{symbol:"WETH",decimals:18,address:"0xee01c0cd76354c383b8c7b4e65ea88d00b06f36f"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"0xfd064A18f3BF249cf1f87FC203E90D8f650f2d63"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0xFd903eA23Bf65f26FdAf2eeb589cf007b108882E",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0xbC4CB3CD7186fD457C072298C48d0eDf7213CAEa",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x97B5fE27a82b2B187D9a19C5782d9eB93B82DaC3",original:"Ethereum"}],["tBTCarbitrum",{symbol:"tBTC",decimals:18,address:"0x85727F4725A4B2834e00Db1AA8e1b843a188162F"}],["tBTCsol",{symbol:"tBTC",decimals:8,address:"0x227115F659f7c2939D23FedE68583F5291c395A6",original:"Solana"}],["SEI",{symbol:"SEI",decimals:6,address:"0x90eC817A1f7C1Eb18dD2985C534A78dD88747F47",original:"Sei"}]]],["Optimism",[["WETH",{symbol:"WETH",decimals:18,address:"0x33Db338718aC89Cd8DB13B56af05be3a3029BBE5",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"0x0382F518AcE1a86224c78B7CDfa67B9774055A1b",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:18,address:"0x427B5a0b0384D7FD3AF81805A166a2d9C1116D7d",original:"Polygon"}],["WFTM",{symbol:"WFTM",decimals:18,address:"0x81BA80f5820273AA965086e710042d737993f12c",original:"Fantom"}],["WGLMR",{symbol:"WGLMR",decimals:18,address:"0x99436d62259532E0407A7aE78A3b48D119B13903",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:9,address:"0x06EcAF6638070Ccf3b3dEA421b3becAA57f3e559",original:"Solana"}],["ETHoptimism",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHoptimism"}],["WETHoptimism",{symbol:"WETH",decimals:18,address:"0x4200000000000000000000000000000000000006"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"0xe05606174bac4A6364B31bd0eCA4bf4dD368f8C6"}],["WETHbase",{symbol:"WETH",decimals:18,address:"0x04b559971c90Dfb12D9795E95883e55f2fcf34Ed",original:"Base"}],["tBTC",{symbol:"tBTC",decimals:18,address:"0x5D89a5BcB86F15a2CCAb05e7E3bEE23fDF246a64",original:"Ethereum"}],["tBTCpolygon",{symbol:"tBTC",decimals:18,address:"0xE04e0F5f2C6ce45A40482C3AB92CA91D6741D717",original:"Polygon"}],["tBTCoptimism",{symbol:"tBTC",decimals:18,address:"0x1a53759DE2eADf73bd0b05c07a4F1F5B7912dA3d"}],["SEI",{symbol:"SEI",decimals:6,address:"0xE12be3D96fE101246bF2d290184B0eC6D35d02CA",original:"Sei"}]]],["Wormchain",[["WETH",{symbol:"WETH",decimals:8,address:"wormhole1vguuxez2h5ekltfj9gjd62fs5k4rl2zy5hfrncasykzw08rezpfs63pmq2",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"wormhole1rl8su3hadqqq2v86lscpuklsh2mh84cxqvjdew4jt9yd07dzekyqkmcy3p",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"wormhole1v2efcqkp2qtev06t0ksjnx6trxdd0f7fxg2zdrtzr8cr9wdpjkyqkv9ch6",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"wormhole1uuwad4khwek2h05gmkktzmh8l4t0ep54yydlsqg0l4y2uh3tqfyq3an9k6",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"wormhole1vhjnzk9ly03dugffvzfcwgry4dgc8x0sv0nqqtfxj3ajn7rn5ghq6whn2p",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"wormhole1335rlmhujm0gj5e9gh7at9jpqvqckz0mpe4v284ar4lw5mlkryzsnetfsj",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"wormhole1tqwwyth34550lg2437m05mjnjp8w7h5ka7m70jtzpxn4uh2ktsmq8dv649",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"wormhole1qum2tr7hh4y7ruzew68c64myjec0dq2s2njf6waja5t0w879lutqv2exs9",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"wormhole1808lz8dp2c39vhm9gnemt7zzj95nvrmjepxp7v3w4skzrlyzcmnsxkduxf",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"wormhole1e8z2wjelypwxw5sey62jvwjyup88w55q3h6m0x8jtwjf6sx5c7ys4mzydk",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"wormhole10sfpr8ykh9xn93u8xec4ed3990nmvh86e0vaegkauqhlkxspysyqwavrxx",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"wormhole1gryz69gzl6mz2m66a4twg922jtlc47nlx73sxv88lvq86du5zvyqz3mt23",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"wormhole1ced9v4plkf25q8c6k9gz0guq6l4xyjujpjlvxfg8lpaqywkmamashswq7p",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"wormhole1yf4p93xu68j5fseupm4laj4k6f60gy7ynx6r5vvyr9c0hl3uy8vqpqd6h0",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"wormhole1u8rft0gee23fa6a0t4t88ualrza5lj8ses4aur0l66c7efpvjezqchv34j",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"wormhole186k0cp83c3wyvapgh8fxf66ededemzrfujvjfsx0xw3vr0u9g8sq2y30vx",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"wormhole1s3pk90ccfl6ueehnj8s9pdgyjjlspmr3m5rv46arjh5v4g08dd0qrchjrk",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:8,address:"wormhole12eu6c7f67l8gdl2lt0hz0dgdh24dhune6wjgy5t0es3tpfzhc3yspwnpfy",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"wormhole1u5z7097gm57zvun9wqsx6jxej2gpdjhg9l9xfe58rhpm29rtjmfqfnl4yv",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:8,address:"wormhole10p89p4zh00dwdg8h52sysrqm0l2j47jj3kmg93pnz2a039ucw7esgl5vl9",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"wormhole1ja4txt6m0jjq0gmjtmv442f8wk0r5f5apaya0z55wwlrpg3p5xaq3qxw7h",original:"Base"}],["tBTCarbitrum",{symbol:"tBTC",decimals:8,address:"wormhole1rm8ztmk20lrd6ex8uqq3yu7a6eyfjwvg53pcuuj22ffe2y8r3yzqr8j4v9",original:"Arbitrum"}],["wstETH",{symbol:"wstETH",decimals:8,address:"wormhole1u2zdjcczjrenwmf57fmrpensk4the84azdm05m3unm387rm8asdsxqwfeu",original:"Ethereum"}]]],["Osmosis",[["WETH",{symbol:"WETH",decimals:8,address:"ibc/A4A8B6AE885DACD75B228031C0D18AD7EE1B914CED30C9F6F4230DDBD4A1CF2B",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"ibc/3BB8C4BD1C90599B2FA5B5839DD0813EF7B94B0BD0904C4C5A61498AE81E0EE9",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"ibc/1941ED1147121BA7DF35559597B6EB3251844DBBBE4557337D957CB95E0978C2",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"ibc/2864B3418775DDB90EE1410EFF822FDA94E9F0FF77FC8771644761C79EDFE7A3",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"ibc/43F15553F8598186394E81E18604B8B4532B2D7E855D9FFE68A2EF6802C18BE4",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"ibc/65A67BA10DE2378B32AC5A822321E370966D3D4E180DEFB4C3C5245B21088DDF",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"ibc/99EAD53D49EC7CC4E2E2EB26C22CF81C16727DF0C4BF7F7ACBF0D22D910DB5DE",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"ibc/EC9FA5074F34F0644A025BB0263FDAE8F364C5E08523F6464465EF1010FF5A3A",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"ibc/145C6B688F70B0C2F6D87546A5974A75CE75B3A2940275B750E65797B2996157",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"ibc/3A4EA3F8096856C0802F86B218DD74213B4C10224AA44BBD54AEAAA2ABF078BA",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"ibc/7DB06BB67428510AFC3967DC90F5632C679D55D8C487A951A0EEC3160AF492A6",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"ibc/B5D53105A7AA2BEC4DA4B3304228F3856219AE7CF84A9023043C481629E3E319",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"ibc/35A0467DE5744662078DE8B36CBBE0CF0EAA022565A3E6630CB375DDEBB96E05",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"ibc/30778BA41ADF2D8A70B90DB53C2E0251731A40276EF6737215BB1A6ED9E90078",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"ibc/7C495BD95757ED662A897C139F1C9F18275A86EE7203A0B073E2DB12B1E19D63",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"ibc/221A4AADF7972F3BB8F48A6CA984FF0AE65B5D973FF1A695B9642AD702F51789",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"ibc/06ED2700071B5A9C582F51A556537DA94E69EF547E7E6CCD8BFA3D95C818A525",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:8,address:"ibc/80B3FECB24A4CE94537444E5BF937AC4C08A39BF90D59620D278FA185BD2B148",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"ibc/0A98A3947189D7C368170C76C3EF49486DDBE095F34B72A3C7F92AEBE1013A1D",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:8,address:"ibc/A45069EA82C933945973E66E4222EEE4624498D4483508FE9BEBF9D519F2132F",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"ibc/2E4F8BC7F7AF33752CF7E290CAD4417EE67CD18FFC0D099E6519A440E588E0CE",original:"Base"}],["OSMO",{symbol:"OSMO",decimals:6,address:"uosmo"}],["wstETH",{symbol:"wstETH",decimals:8,address:"ibc/C66B7DB3ED665D2F5FE8ED15E88B5913A37D80601E161C5E53A743DE12C0FB85",original:"Ethereum"}]]],["Cosmoshub",[["WETH",{symbol:"WETH",decimals:8,address:"ibc/77FE9153FA76C3107CB9F6633AC33509A58529E9622327F216BA8107C79C2DE3",original:"Ethereum"}],["USDCeth",{symbol:"USDC",decimals:6,address:"ibc/D0EC31D1176BB69EA1A7CF7172CA0380B7AF488AFC6D55B101B8363C2141CD4F",original:"Ethereum"}],["USDT",{symbol:"USDT",decimals:6,address:"ibc/755FBC53FFB46FB505B5269F9BEDF47041F2A0EF2FF8D0520315403E5925C80A",original:"Ethereum"}],["DAI",{symbol:"DAI",decimals:8,address:"ibc/5F21E975410DA22AF565B1772DC45AD0BD5F6DA004981EBE291763F3D2C72A96",original:"Ethereum"}],["WMATIC",{symbol:"WMATIC",decimals:8,address:"ibc/37FB599287C6963C413E915FDE83EFA69A3CE8147675DD5A7F974B45F39C8A31",original:"Polygon"}],["WBNB",{symbol:"WBNB",decimals:8,address:"ibc/5B0D5974A56332468DD4B2D07C96A7386FCF8FE7303FF41234F90E410EF51937",original:"Bsc"}],["WAVAX",{symbol:"WAVAX",decimals:8,address:"ibc/BAEAC83736444C09656FBE666FB625974FCCDEE566EB700EBFD2642C5F6CF13A",original:"Avalanche"}],["USDCavax",{symbol:"USDC",decimals:6,address:"ibc/F09E98FA8682FF39130F171E9D89A948B0C3A452F2A31F22B6CC54A3AAE1CD4A",original:"Avalanche"}],["WFTM",{symbol:"WFTM",decimals:8,address:"ibc/919D8F138B7E71BB067C7301AB5C2D48415E8C3A2D9187861245CEC668F88E3C",original:"Fantom"}],["CELO",{symbol:"CELO",decimals:8,address:"ibc/009206915358A002C852A2A2CBEDB8446D2D02E519C815087A01F8BDB4DF77BA",original:"Celo"}],["WGLMR",{symbol:"WGLMR",decimals:8,address:"ibc/1EEDF447A6B046B20C00B1497BED5947219AEEBE0D9A85235C85133A554DF7A4",original:"Moonbeam"}],["WSOL",{symbol:"WSOL",decimals:8,address:"ibc/D3EA463A51E31B2B30BED1978575CAC145DBAB354B8A0EA5D4CFB12D737AF790",original:"Solana"}],["USDCsol",{symbol:"USDC",decimals:6,address:"ibc/26D8D6C63C8D37A5127591DDA905E04CC69CBD3A64F9DA3B1DA3FB0B6A7D9FA5",original:"Solana"}],["SUI",{symbol:"SUI",decimals:8,address:"ibc/129EC6B8A41BE07F94DD267F552F4AE1D5EAEBB51634A1468556AF06C10C2692",original:"Sui"}],["APT",{symbol:"APT",decimals:8,address:"ibc/0CCA5EB15BC2FE474E71DBC9698302CDE260B6F6548F91C30002F7CBF228197B",original:"Aptos"}],["WETHarbitrum",{symbol:"WETH",decimals:8,address:"ibc/AB4046AF5B6F146C006DE4DECAD929D24F762A701E09EC8B29000EC63A6E649B",original:"Arbitrum"}],["USDCarbitrum",{symbol:"USDC",decimals:6,address:"ibc/6D1B6A7A9EF692A279A6B5994C98C0D598D003D9203BE8309F14B6E57A58506E",original:"Arbitrum"}],["WETHoptimism",{symbol:"WETH",decimals:8,address:"ibc/A0298483510D803A045AA7F49CCBD0F9D01010FE0B1A346EBDFFF4BA820C3D21",original:"Optimism"}],["USDCoptimism",{symbol:"USDC",decimals:6,address:"ibc/CE3F2FE630DA6A1187F085CDC8D59BA8B20DA48F4866F2D71C5AB7A1D5859933",original:"Optimism"}],["WETHbase",{symbol:"WETH",decimals:8,address:"ibc/97035986A4BD0AF555713355A02EA31A4526616B6543E019E0D750007FABE06C",original:"Base"}],["USDCbase",{symbol:"USDC",decimals:6,address:"ibc/8560BA5F45C95AE716C05978E364F50C98347ACBEC745840C30F91611FA36698",original:"Base"}],["wstETH",{symbol:"wstETH",decimals:8,address:"ibc/5BB02667F9F0C8284FCF7716065C2779039817FBCB91E937F5149FE89FD8F202",original:"Ethereum"}],["ATOM",{symbol:"ATOM",decimals:6,address:"uatom"}]]],["Evmos",[["EVMOS",{symbol:"EVMOS",decimals:18,address:"atevmos"}]]],["Kujira",[["KUJI",{symbol:"KUJI",decimals:6,address:"ukuji"}]]],["Klaytn",[["KLAY",{symbol:"KLAY",decimals:18,address:"native",wrappedKey:"WKLAY"}],["WKLAY",{symbol:"WKLAY",decimals:18,address:"0x0339d5Eb6D195Ba90B13ed1BCeAa97EbD198b106"}]]],["Sepolia",[["ETHsepolia",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHsepolia"}],["WETHsepolia",{symbol:"WETH",decimals:18,address:"0xeef12A83EE5b7161D3873317c8E0E7B76e0B5D9c"}]]],["ArbitrumSepolia",[["ETHarbitrum_sepolia",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHarbitrum_sepolia"}],["WETHarbitrum_sepolia",{symbol:"WETH",decimals:18,address:"0x980B62Da83eFf3D4576C647993b0c1D7faf17c73"}]]],["BaseSepolia",[["ETHbase_sepolia",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHbase_sepolia"}],["WETHbase_sepolia",{symbol:"WETH",decimals:18,address:"0x4200000000000000000000000000000000000006"}]]],["OptimismSepolia",[["ETHoptimism_sepolia",{symbol:"ETH",decimals:18,address:"native",wrappedKey:"WETHoptimism_sepolia"}],["WETHoptimism_sepolia",{symbol:"WETH",decimals:18,address:"0x4200000000000000000000000000000000000006"}]]]],Yae=Br(P$e,[0,[1,2]]);function ON(t,e){if(t!=="Devnet"){if(t==="Mainnet"){if(!Gae.has(e))return;const r=Gae.get(e);return Object.fromEntries(r.map(([n,a])=>[n,{...a,chain:e,key:n}]))}if(t==="Testnet"){if(!Yae.has(e))return;const r=Yae.get(e);return Object.fromEntries(r.map(([n,a])=>[n,{...a,chain:e,key:n}]))}throw new Error("Unsupported network: "+t)}}function O$e(t,e){const r=ON(t,e);return r?R8.native(r):void 0}function R$e(t,e,r){const n=ON(t,e);return n?R8.byAddress(n,r):void 0}function F$e(t,e,r){const n=ON(t,e);return n?R8.byKey(n,r):void 0}function U$e(t,e){const r={coreBridge:RWe.get(t,e),tokenBridge:FWe.get(t,e),nftBridge:WWe.get(t,e),relayer:VWe.get(t,e),tokenBridgeRelayer:UWe.get(t,e)};return EU.has(t,e)&&(r.cctp=EU.get(t,e)),Eae.has(t,e)&&(r.gateway=Eae.get(t,e)),Cae.has(t,e)&&(r.translator=Cae.get(t,e)),Tae.has(t,e)&&(r.portico=Tae.get(t,e)),r}function kn(t){return typeof t=="string"&&t==="native"}function bq(t){return{chain:t,address:"native"}}function oM(t){return typeof t=="object"&&t.address!==void 0&&t.chain!==void 0&&Rg(t.chain)}function bf(t,e){return t.chain!==e.chain?!1:kn(t.address)&&kn(e.address)?!0:_a(t)===_a(e)}function _a(t){return oM(t)&&kn(t.address)?t.address:t.address.toNative(t.chain).toString()}function jU(t){if(kn(t.address))throw new Error("Invalid address, cannot convert the string literal `native` to a Universal Address");return t.address.toUniversalAddress().toString()}function uC(t,e,r){let n;if(oM(r)){if(!kn(r.address))return[!1,r];n=r.address}else n=r;if(kn(n)){const i=O$e(t,e);if(!i)throw new Error("Invalid destination token");const s=i.wrappedKey,o=F$e(t,e,s);if(!o)throw new Error("Invalid wrapped token key: "+s);return[!0,{chain:e,address:Ns(e,o.address)}]}return[!1,{chain:e,address:n}]}function A9e(t){return t.chain!==void 0&&t.txid!==void 0}function pB(t){return kme.map(r=>{const n=fs(r);let a="";try{a=nq.get(t,r)}catch{}const i=ON(t,r),s=i?Object.values(i).find(c=>kn(c.address)&&c.wrappedKey):void 0,o=s?i[s.wrappedKey]:void 0;return{key:r,platform:n,network:t,chainId:pn(r),finalityThreshold:Lme.get(r)??0,blockTime:Bme.get(r)??0,contracts:U$e(t,r),nativeTokenDecimals:rq(n),nativeChainId:a,tokenMap:i,wrappedNative:o,explorer:CWe(t,r),rpc:jme(t,r)}}).reduce((r,n)=>({...r,[n.key]:n}),{})}class S9e{constructor(e,r,n){ce(this,"network");ce(this,"chain");ce(this,"config");ce(this,"platform");ce(this,"rpc");ce(this,"protocols",new Map);ce(this,"supportsWormholeCore",()=>this.supportsProtocol("WormholeCore"));ce(this,"getWormholeCore",()=>this.getProtocol("WormholeCore"));ce(this,"supportsTokenBridge",()=>this.supportsProtocol("TokenBridge"));ce(this,"getTokenBridge",()=>this.getProtocol("TokenBridge"));ce(this,"supportsAutomaticTokenBridge",()=>this.supportsProtocol("AutomaticTokenBridge"));ce(this,"getAutomaticTokenBridge",()=>this.getProtocol("AutomaticTokenBridge"));ce(this,"supportsCircleBridge",()=>this.supportsProtocol("CircleBridge"));ce(this,"getCircleBridge",()=>this.getProtocol("CircleBridge"));ce(this,"supportsAutomaticCircleBridge",()=>this.supportsProtocol("AutomaticCircleBridge"));ce(this,"getAutomaticCircleBridge",()=>this.getProtocol("AutomaticCircleBridge"));ce(this,"supportsIbcBridge",()=>this.supportsProtocol("IbcBridge"));ce(this,"getIbcBridge",()=>this.getProtocol("IbcBridge"));ce(this,"supportsPorticoBridge",()=>this.supportsProtocol("PorticoBridge"));ce(this,"getPorticoBridge",()=>this.getProtocol("PorticoBridge"));this.config=r.config[e],this.platform=r,this.chain=this.config.key,this.network=this.config.network,this.rpc=n}getRpc(){return this.rpc=this.rpc?this.rpc:this.platform.getRpc(this.chain),this.rpc}async getDecimals(e){if(kn(e))return this.config.nativeTokenDecimals;if(this.config.tokenMap){const r=_a({chain:this.chain,address:e}),n=R$e(this.network,this.chain,r);if(n)return n.decimals}return this.platform.utils().getDecimals(this.chain,await this.getRpc(),e)}async getBalance(e,r){return this.platform.utils().getBalance(this.chain,await this.getRpc(),e,r)}async getLatestBlock(){return this.platform.utils().getLatestBlock(await this.getRpc())}async getLatestFinalizedBlock(){return this.platform.utils().getLatestFinalizedBlock(await this.getRpc())}async parseTransaction(e){return this.platform.parseWormholeMessages(this.chain,await this.getRpc(),e)}async sendWait(e){return this.platform.utils().sendWait(this.chain,await this.getRpc(),e)}getToken(e){if(this.config.tokenMap&&e in this.config.tokenMap)return this.config.tokenMap[e]}async getNativeWrappedTokenId(){if(this.config.wrappedNative){const{address:r}=this.config.wrappedNative;return{chain:this.chain,address:Ns(this.chain,r)}}const e=await this.getTokenBridge();return{chain:this.chain,address:await e.getWrappedNative()}}async getTokenAccount(e,r){return{chain:this.chain,address:e}}supportsProtocol(e){return E$e(this.chain,e)}async getProtocol(e,r,n){if(!r&&this.protocols.has(e))return this.protocols.get(e);const a=r?{...this.config.contracts,...r}:this.config.contracts,i=n??await this.getRpc(),s=this.platform.getProtocolInitializer(e);let o;if(n){if(r)throw new Error("Custom contracts are currently not supported with custom rpc connection. Add the contracts to the base config.");o=await this.platform.getProtocol(e,i)}else if(S$e(s)){const c=await s.getVersion(i,a);o=new s(this.network,this.chain,i,a,c)}else o=new s(this.network,this.chain,i,a);return r||this.protocols.set(e,o),o}}function W$e(t){return V$e(t)||E9e(t)}function V$e(t){return typeof t=="object"&&"chain"in t&&typeof t.chain=="function"&&"address"in t&&typeof t.address=="function"&&"sign"in t&&typeof t.sign=="function"}function E9e(t){return typeof t=="object"&&"chain"in t&&typeof t.chain=="function"&&"address"in t&&typeof t.address=="function"&&"signAndSend"in t&&typeof t.signAndSend=="function"}class jkt{constructor(e,r,n){ce(this,"_chain");ce(this,"_address");ce(this,"_signer");this._chain=e,this._address=r,this._signer=n}unwrap(){return this._signer}}function y8(t){return t.sequence!==void 0&&t.emitter!==void 0&&t.chain!==void 0}function ZT(t){return t.hash!==void 0}const Kae=t=>[j2(1),{name:"token",binary:"bytes",layout:[{name:"address",..._r},{name:"amount",...F0}]},{name:"sourceDomain",...Lx},{name:"targetDomain",...Lx},{name:"nonce",...fq},{name:"caller",..._r},{name:"mintRecipient",..._r},O8({name:"payload",lengthSize:2},t)],$$e=[j2(1),{name:"targetRelayerFee",...F0},{name:"toNativeTokenAmount",...F0},{name:"targetRecipient",..._r}],H$e=[["DepositWithPayload",Kae()],["TransferWithRelay",Kae($$e)]];m0("AutomaticCircleBridge",H$e);const C9e={binary:"uint",size:4,custom:0,omit:!0},q$e=[{name:"messageBodyVersion",...C9e},{name:"burnToken",..._r},{name:"mintRecipient",..._r},{name:"amount",...F0},{name:"messageSender",..._r}],zU=[{name:"version",...C9e},{name:"sourceDomain",...Lx},{name:"destinationDomain",...Lx},{name:"nonce",...fq},{name:"sender",..._r},{name:"recipient",..._r},{name:"destinationCaller",..._r},{name:"payload",binary:"bytes",layout:q$e}],G$e=[["Message",zU]];m0("CircleBridge",G$e);var R9;(function(t){t.isCircleAttestation=e=>e.message!==void 0,t.deserialize=e=>{const r=Y1(zU,e),n=Pn.encode(F8(e),!0);return[r,n]},t.serialize=e=>G1(zU,e)})(R9||(R9={}));var Zae;(function(t){const e="AutomaticCircleBridge",r=["DepositWithPayload","TransferWithRelay"];t.getTransferDiscriminator=vme(()=>x9e([e,r]))})(Zae||(Zae={}));function Y$e(t){return t.amount!==void 0&&t.from!==void 0&&t.to!==void 0}const Qae={binary:"bytes",size:32,custom:{to:t=>WT(t.byteLength).map(e=>String.fromCharCode(t[e])).join(""),from:t=>new Uint8Array(t.split("").map(e=>e.charCodeAt(0)))}},T9e=[{name:"token",binary:"bytes",layout:[{name:"amount",...F0},{name:"address",..._r},{name:"chain",...cs()}]},{name:"to",binary:"bytes",layout:[{name:"address",..._r},{name:"chain",...cs()}]}],gq=t=>[j2(3),...T9e,{name:"from",..._r},O8({name:"payload"},t)],K$e=[["AttestMeta",[j2(2),{name:"token",binary:"bytes",layout:[{name:"address",..._r},{name:"chain",...cs()}]},{name:"decimals",binary:"uint",size:1},{name:"symbol",...Qae},{name:"name",...Qae}]],["Transfer",[j2(1),...T9e,{name:"fee",...F0}]],["TransferWithPayload",gq()]];m0("TokenBridge",K$e);const Z$e=oWe(["shouldWrapNative","shouldUnwrapNative"]),PU=[{name:"recipientChain",binary:"uint",endianness:"little",size:2},{name:"bridgeNonce",binary:"uint",endianness:"little",size:4},{name:"feeTierStart",binary:"uint",endianness:"little",size:3},{name:"feeTierFinish",binary:"uint",endianness:"little",size:3},{name:"padding",binary:"bytes",size:19},{name:"flags",...Z$e}],OU=[{name:"flagSet",binary:"bytes",layout:PU},{name:"finalTokenAddress",..._r},{name:"recipientAddress",..._r},{name:"cannonAssetAmount",...F0},{name:"minAmountFinish",...F0},{name:"relayerFee",...F0}],Q$e=[["Transfer",gq(OU)]];m0("PorticoBridge",Q$e);var Jae;(function(t){t.deserializePayload=e=>Y1(OU,e),t.serializePayload=e=>G1(OU,e),t.deserializeFlagSet=e=>Y1(PU,e),t.serializeFlagSet=e=>G1(PU,e)})(Jae||(Jae={}));const I9e={binary:"bytes",layout:[{name:"size",binary:"uint",size:4,custom:3*32,omit:!0},{name:"waste",binary:"uint",size:31,custom:0n,omit:!0},{name:"version",binary:"uint",size:1,custom:0,omit:!0},{name:"gasLimit",...F0},{name:"targetChainRefundPerGasUnused",...F0}]},Xae={binary:"bytes",layout:[{name:"chain",...cs()},{name:"address",..._r}]},J$e=[{name:"chain",...cs()},{name:"emitterAddress",..._r},{name:"sequence",...pq}],X$e=[{name:"size",binary:"uint",size:4,custom:12,omit:!0},{name:"domain",...Lx},{name:"nonce",...fq}],D9e={binary:"switch",idSize:1,idTag:"keyType",layouts:[[[1,"VAA"],J$e],[[2,"CCTP"],X$e]]},N9e=t=>[j2(1),{name:"target",...Xae},O8({name:"payload",lengthSize:4},t),{name:"requestedReceiverValue",...F0},{name:"extraReceiverValue",...F0},{name:"executionInfo",...I9e},{name:"refund",...Xae},{name:"refundDeliveryProvider",..._r},{name:"sourceDeliveryProvider",..._r},{name:"senderAddress",..._r},{name:"messageKeys",binary:"array",lengthSize:1,layout:D9e}],eHe=[["DeliveryInstruction",N9e()],["RedeliveryInstruction",[j2(2),{name:"deliveryVaaKey",binary:"bytes",layout:D9e},{name:"targetChain",...cs()},{name:"newRequestedReceiverValue",...F0},{name:"newEncodedExecutionInfo",...I9e},{name:"newSourceDeliveryProvider",..._r},{name:"newSenderAddress",..._r}]]];m0("Relayer",eHe);const tHe=[j2(1),{name:"targetRelayerFee",...F0},{name:"toNativeTokenAmount",...F0},{name:"targetRecipient",..._r}],rHe=[["TransferWithRelay",gq(tHe)]];m0("AutomaticTokenBridge",rHe);const zkt=t=>new Error(`Token ${t} is not a wrapped asset`);var RU;(function(t){const e="TokenBridge",r=["Transfer","TransferWithPayload"],n=["AttestMeta"];[...r,...n],t.getTransferDiscriminator=vme(()=>x9e([e,r]))})(RU||(RU={}));function nHe(t){return t.token!==void 0&&t.amount!==void 0&&t.from!==void 0&&t.to!==void 0}const aHe=[["Add",1],["Subtract",2],["Unknown",3]],FU={binary:"bytes",size:20,custom:{to:t=>Pn.encode(t,!0),from:t=>Pn.decode(t)}},iHe=[["UpgradeContract",[!1,[{name:"newContract",..._r}]]],["RegisterChain",[!0,[{name:"foreignChain",...cs()},{name:"foreignAddress",..._r}]]],["RecoverChainId",[!1,[{name:"evmChainId",binary:"uint",size:32},{name:"newChainId",...cs({allowedChains:_me("Evm")})}]]],["GuardianSetUpgrade",[!0,[{name:"guardianSet",...b9e},{name:"guardians",binary:"array",lengthSize:1,layout:FU}]]],["SetMessageFee",[!1,[{name:"messageFee",binary:"uint",size:32}]]],["TransferFees",[!0,[{name:"amount",binary:"uint",size:32},{name:"recipient",..._r}]]],["UpdateDefaultProvider",[!1,[{name:"defaultProvider",..._r}]]],["RegisterEmitterAndDomain",[!0,[{name:"emitterChain",...cs()},{name:"emitterAddress",..._r},{name:"domain",binary:"uint",size:4}]]],["UpdateFinality",[!1,[{name:"finality",binary:"uint",size:1}]]]],hB={binary:"bytes",size:32},eie=[{name:"contractAddr",..._r},{name:"codeId",binary:"uint",size:8}],sHe=[["StoreCode",[!1,[{name:"wasmHash",...hB}]]],["InstantiateContract",[!1,[{name:"instantiationParamsHash",...hB}]]],["MigrateContract",[!1,[{name:"migrationParamsHash",...hB}]]],["AddWasmInstantiateAllowlist",[!1,eie]],["DeleteWasmInstantiateAllowlist",[!1,eie]]],oHe=(()=>{const t=a=>({binary:"bytes",size:a,custom:_$e}),e=[{name:"height",binary:"uint",size:8}],r=Ame(e),n=a=>[{name:"name",...t(a)},...e];return{binary:"bytes",custom:{to:a=>Y1(n(a.length-r),a),from:a=>G1(n(a.name.length),a)}}})(),cHe=[["ScheduleUpgrade",[!1,oHe]],["CancelUpgrade",[!0,[]]],["SetIbcComposabilityMwContract",[!1,[{name:"contractAddress",..._r}]]]],lHe=[["ModifyBalance",[!1,[{name:"sequence",...pq},{name:"modifiedChain",...cs()},{name:"tokenChain",...cs()},{name:"tokenAddress",..._r},{name:"kind",...sWe(aHe)},{name:"amount",...F0},{name:"reason",...g9e(32)}]]]],uHe=[["ActionUpdateChannelChain",[!1,[{name:"channelId",...g9e(64)},{name:"channelChain",...cs({allowedChains:_me("Cosmwasm")})}]]]],dHe=[["GeneralPurposeEvm",[!1,[{name:"governanceContract",...FU},{name:"targetContract",...FU},{name:"payload",binary:"bytes",lengthSize:2}]]],["GeneralPurposeSolana",[!1,[{name:"governanceContract",..._r},{name:"payload",binary:"bytes"}]]]],k9e=[...iHe,...sHe,...cHe,...lHe,...uHe,...dHe];yme(k9e,0);const tie=Object.fromEntries(k9e),fHe=[["WormholeCore","Core"],["TokenBridge","TokenBridge"],["NftBridge","NftBridge"],["Relayer","WormholeRelayer"],["CircleBridge","CircleIntegration"],["IbcBridge","IbcTranslator"],["IbcReceiver","IbcReceiver"],["GlobalAccountant","GlobalAccountant"],["GeneralPurposeGovernance","GeneralPurposeGovernance"],["WormchainGovernance","WasmdModule"],["GatewayGovernance","GatewayModule"]],pHe=Br(fHe),hHe=t=>({to:t,from:(()=>{const r=new Uint8Array(32),n=pHe(t);for(let a=1;a<=n.length;++a)r[32-a]=n.charCodeAt(n.length-a);return r})()}),mHe=(t,e)=>({to:t,from:e}),bHe=(t,e,r)=>[{name:"protocol",binary:"bytes",custom:hHe(t)},{name:"action",binary:"uint",size:1,custom:mHe(e,r)},{name:"chain",...cs({allowNull:tie[e][0]})},{name:"actionArgs",binary:"bytes",layout:tie[e][1]}],Fn=(t,e,r)=>[e,bHe(t,e,r)],gHe=[Fn("WormholeCore","UpgradeContract",1),Fn("WormholeCore","GuardianSetUpgrade",2),Fn("WormholeCore","SetMessageFee",3),Fn("WormholeCore","TransferFees",4),Fn("WormholeCore","RecoverChainId",5)],yHe=[Fn("TokenBridge","RegisterChain",1),Fn("TokenBridge","UpgradeContract",2),Fn("TokenBridge","RecoverChainId",3)],vHe=[Fn("NftBridge","RegisterChain",1),Fn("NftBridge","UpgradeContract",2),Fn("NftBridge","RecoverChainId",3)],xHe=[Fn("Relayer","RegisterChain",1),Fn("Relayer","UpgradeContract",2),Fn("Relayer","UpdateDefaultProvider",3)],wHe=[Fn("CircleBridge","UpdateFinality",1),Fn("CircleBridge","RegisterEmitterAndDomain",2),Fn("CircleBridge","UpgradeContract",3)],MHe=[Fn("IbcBridge","ActionUpdateChannelChain",1)],AHe=[Fn("IbcReceiver","ActionUpdateChannelChain",1)],SHe=[Fn("GlobalAccountant","ModifyBalance",1)],EHe=[Fn("GeneralPurposeGovernance","GeneralPurposeEvm",1),Fn("GeneralPurposeGovernance","GeneralPurposeSolana",2)],CHe=[Fn("WormchainGovernance","StoreCode",1),Fn("WormchainGovernance","InstantiateContract",2),Fn("WormchainGovernance","MigrateContract",3),Fn("WormchainGovernance","AddWasmInstantiateAllowlist",4),Fn("WormchainGovernance","DeleteWasmInstantiateAllowlist",5)],THe=[Fn("GatewayGovernance","ScheduleUpgrade",1),Fn("GatewayGovernance","CancelUpgrade",2),Fn("GatewayGovernance","SetIbcComposabilityMwContract",3)];m0("WormholeCore",gHe);m0("TokenBridge",yHe);m0("NftBridge",vHe);m0("Relayer",xHe);m0("CircleBridge",wHe);m0("IbcBridge",MHe);m0("IbcReceiver",AHe);m0("GlobalAccountant",SHe);m0("GeneralPurposeGovernance",EHe);m0("WormchainGovernance",CHe);m0("GatewayGovernance",THe);function _9e(t,e){return function(){return t.apply(e,arguments)}}const{toString:IHe}=Object.prototype,{getPrototypeOf:yq}=Object,RN=(t=>e=>{const r=IHe.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),mu=t=>(t=t.toLowerCase(),e=>RN(e)===t),FN=t=>e=>typeof e===t,{isArray:Vg}=Array,jx=FN("undefined");function DHe(t){return t!==null&&!jx(t)&&t.constructor!==null&&!jx(t.constructor)&&j1(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const L9e=mu("ArrayBuffer");function NHe(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&L9e(t.buffer),e}const kHe=FN("string"),j1=FN("function"),B9e=FN("number"),UN=t=>t!==null&&typeof t=="object",_He=t=>t===!0||t===!1,dC=t=>{if(RN(t)!=="object")return!1;const e=yq(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},LHe=mu("Date"),BHe=mu("File"),jHe=mu("Blob"),zHe=mu("FileList"),PHe=t=>UN(t)&&j1(t.pipe),OHe=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||j1(t.append)&&((e=RN(t))==="formdata"||e==="object"&&j1(t.toString)&&t.toString()==="[object FormData]"))},RHe=mu("URLSearchParams"),FHe=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function cM(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t>"u")return;let n,a;if(typeof t!="object"&&(t=[t]),Vg(t))for(n=0,a=t.length;n<a;n++)e.call(null,t[n],n,t);else{const i=r?Object.getOwnPropertyNames(t):Object.keys(t),s=i.length;let o;for(n=0;n<s;n++)o=i[n],e.call(null,t[o],o,t)}}function j9e(t,e){e=e.toLowerCase();const r=Object.keys(t);let n=r.length,a;for(;n-- >0;)if(a=r[n],e===a.toLowerCase())return a;return null}const z9e=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:Te.global,P9e=t=>!jx(t)&&t!==z9e;function UU(){const{caseless:t}=P9e(this)&&this||{},e={},r=(n,a)=>{const i=t&&j9e(e,a)||a;dC(e[i])&&dC(n)?e[i]=UU(e[i],n):dC(n)?e[i]=UU({},n):Vg(n)?e[i]=n.slice():e[i]=n};for(let n=0,a=arguments.length;n<a;n++)arguments[n]&&cM(arguments[n],r);return e}const UHe=(t,e,r,{allOwnKeys:n}={})=>(cM(e,(a,i)=>{r&&j1(a)?t[i]=_9e(a,r):t[i]=a},{allOwnKeys:n}),t),WHe=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),VHe=(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},$He=(t,e,r,n)=>{let a,i,s;const o={};if(e=e||{},t==null)return e;do{for(a=Object.getOwnPropertyNames(t),i=a.length;i-- >0;)s=a[i],(!n||n(s,t,e))&&!o[s]&&(e[s]=t[s],o[s]=!0);t=r!==!1&&yq(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},HHe=(t,e,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return n!==-1&&n===r},qHe=t=>{if(!t)return null;if(Vg(t))return t;let e=t.length;if(!B9e(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},GHe=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&yq(Uint8Array)),YHe=(t,e)=>{const n=(t&&t[Symbol.iterator]).call(t);let a;for(;(a=n.next())&&!a.done;){const i=a.value;e.call(t,i[0],i[1])}},KHe=(t,e)=>{let r;const n=[];for(;(r=t.exec(e))!==null;)n.push(r);return n},ZHe=mu("HTMLFormElement"),QHe=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,a){return n.toUpperCase()+a}),rie=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),JHe=mu("RegExp"),O9e=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};cM(r,(a,i)=>{e(a,i,t)!==!1&&(n[i]=a)}),Object.defineProperties(t,n)},XHe=t=>{O9e(t,(e,r)=>{if(j1(t)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=t[r];if(j1(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},eqe=(t,e)=>{const r={},n=a=>{a.forEach(i=>{r[i]=!0})};return Vg(t)?n(t):n(String(t).split(e)),r},tqe=()=>{},rqe=(t,e)=>(t=+t,Number.isFinite(t)?t:e),mB="abcdefghijklmnopqrstuvwxyz",nie="0123456789",R9e={DIGIT:nie,ALPHA:mB,ALPHA_DIGIT:mB+mB.toUpperCase()+nie},nqe=(t=16,e=R9e.ALPHA_DIGIT)=>{let r="";const{length:n}=e;for(;t--;)r+=e[Math.random()*n|0];return r};function aqe(t){return!!(t&&j1(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const iqe=t=>{const e=new Array(10),r=(n,a)=>{if(UN(n)){if(e.indexOf(n)>=0)return;if(!("toJSON"in n)){e[a]=n;const i=Vg(n)?[]:{};return cM(n,(s,o)=>{const c=r(s,a+1);!jx(c)&&(i[o]=c)}),e[a]=void 0,i}}return n};return r(t,0)},sqe=mu("AsyncFunction"),oqe=t=>t&&(UN(t)||j1(t))&&j1(t.then)&&j1(t.catch),mt={isArray:Vg,isArrayBuffer:L9e,isBuffer:DHe,isFormData:OHe,isArrayBufferView:NHe,isString:kHe,isNumber:B9e,isBoolean:_He,isObject:UN,isPlainObject:dC,isUndefined:jx,isDate:LHe,isFile:BHe,isBlob:jHe,isRegExp:JHe,isFunction:j1,isStream:PHe,isURLSearchParams:RHe,isTypedArray:GHe,isFileList:zHe,forEach:cM,merge:UU,extend:UHe,trim:FHe,stripBOM:WHe,inherits:VHe,toFlatObject:$He,kindOf:RN,kindOfTest:mu,endsWith:HHe,toArray:qHe,forEachEntry:YHe,matchAll:KHe,isHTMLForm:ZHe,hasOwnProperty:rie,hasOwnProp:rie,reduceDescriptors:O9e,freezeMethods:XHe,toObjectSet:eqe,toCamelCase:QHe,noop:tqe,toFiniteNumber:rqe,findKey:j9e,global:z9e,isContextDefined:P9e,ALPHABET:R9e,generateString:nqe,isSpecCompliantForm:aqe,toJSONObject:iqe,isAsyncFn:sqe,isThenable:oqe};function En(t,e,r,n,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),a&&(this.response=a)}mt.inherits(En,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:mt.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const F9e=En.prototype,U9e={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{U9e[t]={value:t}});Object.defineProperties(En,U9e);Object.defineProperty(F9e,"isAxiosError",{value:!0});En.from=(t,e,r,n,a,i)=>{const s=Object.create(F9e);return mt.toFlatObject(t,s,function(c){return c!==Error.prototype},o=>o!=="isAxiosError"),En.call(s,t.message,e,r,n,a),s.cause=t,s.name=t.name,i&&Object.assign(s,i),s};const cqe=null;function WU(t){return mt.isPlainObject(t)||mt.isArray(t)}function W9e(t){return mt.endsWith(t,"[]")?t.slice(0,-2):t}function aie(t,e,r){return t?t.concat(e).map(function(a,i){return a=W9e(a),!r&&i?"["+a+"]":a}).join(r?".":""):e}function lqe(t){return mt.isArray(t)&&!t.some(WU)}const uqe=mt.toFlatObject(mt,{},null,function(e){return/^is[A-Z]/.test(e)});function WN(t,e,r){if(!mt.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,r=mt.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(M,E){return!mt.isUndefined(E[M])});const n=r.metaTokens,a=r.visitor||d,i=r.dots,s=r.indexes,c=(r.Blob||typeof Blob<"u"&&Blob)&&mt.isSpecCompliantForm(e);if(!mt.isFunction(a))throw new TypeError("visitor must be a function");function l(x){if(x===null)return"";if(mt.isDate(x))return x.toISOString();if(!c&&mt.isBlob(x))throw new En("Blob is not supported. Use a Buffer instead.");return mt.isArrayBuffer(x)||mt.isTypedArray(x)?c&&typeof Blob=="function"?new Blob([x]):Te.Buffer.from(x):x}function d(x,M,E){let S=x;if(x&&!E&&typeof x=="object"){if(mt.endsWith(M,"{}"))M=n?M:M.slice(0,-2),x=JSON.stringify(x);else if(mt.isArray(x)&&lqe(x)||(mt.isFileList(x)||mt.endsWith(M,"[]"))&&(S=mt.toArray(x)))return M=W9e(M),S.forEach(function(D,k){!(mt.isUndefined(D)||D===null)&&e.append(s===!0?aie([M],k,i):s===null?M:M+"[]",l(D))}),!1}return WU(x)?!0:(e.append(aie(E,M,i),l(x)),!1)}const h=[],m=Object.assign(uqe,{defaultVisitor:d,convertValue:l,isVisitable:WU});function y(x,M){if(!mt.isUndefined(x)){if(h.indexOf(x)!==-1)throw Error("Circular reference detected in "+M.join("."));h.push(x),mt.forEach(x,function(S,T){(!(mt.isUndefined(S)||S===null)&&a.call(e,S,mt.isString(T)?T.trim():T,M,m))===!0&&y(S,M?M.concat(T):[T])}),h.pop()}}if(!mt.isObject(t))throw new TypeError("data must be an object");return y(t),e}function iie(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function vq(t,e){this._pairs=[],t&&WN(t,this,e)}const V9e=vq.prototype;V9e.append=function(e,r){this._pairs.push([e,r])};V9e.toString=function(e){const r=e?function(n){return e.call(this,n,iie)}:iie;return this._pairs.map(function(a){return r(a[0])+"="+r(a[1])},"").join("&")};function dqe(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function $9e(t,e,r){if(!e)return t;const n=r&&r.encode||dqe,a=r&&r.serialize;let i;if(a?i=a(e,r):i=mt.isURLSearchParams(e)?e.toString():new vq(e,r).toString(n),i){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class sie{constructor(){this.handlers=[]}use(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){mt.forEach(this.handlers,function(n){n!==null&&e(n)})}}const H9e={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},fqe=typeof URLSearchParams<"u"?URLSearchParams:vq,pqe=typeof FormData<"u"?FormData:null,hqe=typeof Blob<"u"?Blob:null,mqe=(()=>{let t;return typeof navigator<"u"&&((t=navigator.product)==="ReactNative"||t==="NativeScript"||t==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),bqe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Ul={classes:{URLSearchParams:fqe,FormData:pqe,Blob:hqe},isStandardBrowserEnv:mqe,isStandardBrowserWebWorkerEnv:bqe,protocols:["http","https","file","blob","url","data"]};function gqe(t,e){return WN(t,new Ul.classes.URLSearchParams,Object.assign({visitor:function(r,n,a,i){return Ul.isNode&&mt.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function yqe(t){return mt.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function vqe(t){const e={},r=Object.keys(t);let n;const a=r.length;let i;for(n=0;n<a;n++)i=r[n],e[i]=t[i];return e}function q9e(t){function e(r,n,a,i){let s=r[i++];const o=Number.isFinite(+s),c=i>=r.length;return s=!s&&mt.isArray(a)?a.length:s,c?(mt.hasOwnProp(a,s)?a[s]=[a[s],n]:a[s]=n,!o):((!a[s]||!mt.isObject(a[s]))&&(a[s]=[]),e(r,n,a[s],i)&&mt.isArray(a[s])&&(a[s]=vqe(a[s])),!o)}if(mt.isFormData(t)&&mt.isFunction(t.entries)){const r={};return mt.forEachEntry(t,(n,a)=>{e(yqe(n),a,r,0)}),r}return null}const xqe={"Content-Type":void 0};function wqe(t,e,r){if(mt.isString(t))try{return(e||JSON.parse)(t),mt.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}const $g={transitional:H9e,adapter:["xhr","http"],transformRequest:[function(e,r){const n=r.getContentType()||"",a=n.indexOf("application/json")>-1,i=mt.isObject(e);if(i&&mt.isHTMLForm(e)&&(e=new FormData(e)),mt.isFormData(e))return a&&a?JSON.stringify(q9e(e)):e;if(mt.isArrayBuffer(e)||mt.isBuffer(e)||mt.isStream(e)||mt.isFile(e)||mt.isBlob(e))return e;if(mt.isArrayBufferView(e))return e.buffer;if(mt.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return gqe(e,this.formSerializer).toString();if((o=mt.isFileList(e))||n.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return WN(o?{"files[]":e}:e,c&&new c,this.formSerializer)}}return i||a?(r.setContentType("application/json",!1),wqe(e)):e}],transformResponse:[function(e){const r=this.transitional||$g.transitional,n=r&&r.forcedJSONParsing,a=this.responseType==="json";if(e&&mt.isString(e)&&(n&&!this.responseType||a)){const s=!(r&&r.silentJSONParsing)&&a;try{return JSON.parse(e)}catch(o){if(s)throw o.name==="SyntaxError"?En.from(o,En.ERR_BAD_RESPONSE,this,null,this.response):o}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ul.classes.FormData,Blob:Ul.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};mt.forEach(["delete","get","head"],function(e){$g.headers[e]={}});mt.forEach(["post","put","patch"],function(e){$g.headers[e]=mt.merge(xqe)});const Mqe=mt.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Aqe=t=>{const e={};let r,n,a;return t&&t.split(`
|
|
68
68
|
`).forEach(function(s){a=s.indexOf(":"),r=s.substring(0,a).trim().toLowerCase(),n=s.substring(a+1).trim(),!(!r||e[r]&&Mqe[r])&&(r==="set-cookie"?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)}),e},oie=Symbol("internals");function Gy(t){return t&&String(t).trim().toLowerCase()}function fC(t){return t===!1||t==null?t:mt.isArray(t)?t.map(fC):String(t)}function Sqe(t){const e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(t);)e[n[1]]=n[2];return e}const Eqe=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function bB(t,e,r,n,a){if(mt.isFunction(n))return n.call(this,e,r);if(a&&(e=r),!!mt.isString(e)){if(mt.isString(n))return e.indexOf(n)!==-1;if(mt.isRegExp(n))return n.test(e)}}function Cqe(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,r,n)=>r.toUpperCase()+n)}function Tqe(t,e){const r=mt.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+r,{value:function(a,i,s){return this[n].call(this,e,a,i,s)},configurable:!0})})}let z1=class{constructor(e){e&&this.set(e)}set(e,r,n){const a=this;function i(o,c,l){const d=Gy(c);if(!d)throw new Error("header name must be a non-empty string");const h=mt.findKey(a,d);(!h||a[h]===void 0||l===!0||l===void 0&&a[h]!==!1)&&(a[h||c]=fC(o))}const s=(o,c)=>mt.forEach(o,(l,d)=>i(l,d,c));return mt.isPlainObject(e)||e instanceof this.constructor?s(e,r):mt.isString(e)&&(e=e.trim())&&!Eqe(e)?s(Aqe(e),r):e!=null&&i(r,e,n),this}get(e,r){if(e=Gy(e),e){const n=mt.findKey(this,e);if(n){const a=this[n];if(!r)return a;if(r===!0)return Sqe(a);if(mt.isFunction(r))return r.call(this,a,n);if(mt.isRegExp(r))return r.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,r){if(e=Gy(e),e){const n=mt.findKey(this,e);return!!(n&&this[n]!==void 0&&(!r||bB(this,this[n],n,r)))}return!1}delete(e,r){const n=this;let a=!1;function i(s){if(s=Gy(s),s){const o=mt.findKey(n,s);o&&(!r||bB(n,n[o],o,r))&&(delete n[o],a=!0)}}return mt.isArray(e)?e.forEach(i):i(e),a}clear(e){const r=Object.keys(this);let n=r.length,a=!1;for(;n--;){const i=r[n];(!e||bB(this,this[i],i,e,!0))&&(delete this[i],a=!0)}return a}normalize(e){const r=this,n={};return mt.forEach(this,(a,i)=>{const s=mt.findKey(n,i);if(s){r[s]=fC(a),delete r[i];return}const o=e?Cqe(i):String(i).trim();o!==i&&delete r[i],r[o]=fC(a),n[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const r=Object.create(null);return mt.forEach(this,(n,a)=>{n!=null&&n!==!1&&(r[a]=e&&mt.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,r])=>e+": "+r).join(`
|
|
69
69
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...r){const n=new this(e);return r.forEach(a=>n.set(a)),n}static accessor(e){const n=(this[oie]=this[oie]={accessors:{}}).accessors,a=this.prototype;function i(s){const o=Gy(s);n[o]||(Tqe(a,s),n[o]=!0)}return mt.isArray(e)?e.forEach(i):i(e),this}};z1.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);mt.freezeMethods(z1.prototype);mt.freezeMethods(z1);function gB(t,e){const r=this||$g,n=e||r,a=z1.from(n.headers);let i=n.data;return mt.forEach(t,function(o){i=o.call(r,i,a.normalize(),e?e.status:void 0)}),a.normalize(),i}function G9e(t){return!!(t&&t.__CANCEL__)}function lM(t,e,r){En.call(this,t??"canceled",En.ERR_CANCELED,e,r),this.name="CanceledError"}mt.inherits(lM,En,{__CANCEL__:!0});function Iqe(t,e,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?t(r):e(new En("Request failed with status code "+r.status,[En.ERR_BAD_REQUEST,En.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const Dqe=Ul.isStandardBrowserEnv?function(){return{write:function(r,n,a,i,s,o){const c=[];c.push(r+"="+encodeURIComponent(n)),mt.isNumber(a)&&c.push("expires="+new Date(a).toGMTString()),mt.isString(i)&&c.push("path="+i),mt.isString(s)&&c.push("domain="+s),o===!0&&c.push("secure"),document.cookie=c.join("; ")},read:function(r){const n=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Nqe(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function kqe(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}function Y9e(t,e){return t&&!Nqe(e)?kqe(t,e):e}const _qe=Ul.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function a(i){let s=i;return e&&(r.setAttribute("href",s),s=r.href),r.setAttribute("href",s),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=a(window.location.href),function(s){const o=mt.isString(s)?a(s):s;return o.protocol===n.protocol&&o.host===n.host}}():function(){return function(){return!0}}();function Lqe(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Bqe(t,e){t=t||10;const r=new Array(t),n=new Array(t);let a=0,i=0,s;return e=e!==void 0?e:1e3,function(c){const l=Date.now(),d=n[i];s||(s=l),r[a]=c,n[a]=l;let h=i,m=0;for(;h!==a;)m+=r[h++],h=h%t;if(a=(a+1)%t,a===i&&(i=(i+1)%t),l-s<e)return;const y=d&&l-d;return y?Math.round(m*1e3/y):void 0}}function cie(t,e){let r=0;const n=Bqe(50,250);return a=>{const i=a.loaded,s=a.lengthComputable?a.total:void 0,o=i-r,c=n(o),l=i<=s;r=i;const d={loaded:i,total:s,progress:s?i/s:void 0,bytes:o,rate:c||void 0,estimated:c&&s&&l?(s-i)/c:void 0,event:a};d[e?"download":"upload"]=!0,t(d)}}const jqe=typeof XMLHttpRequest<"u",zqe=jqe&&function(t){return new Promise(function(r,n){let a=t.data;const i=z1.from(t.headers).normalize(),s=t.responseType;let o;function c(){t.cancelToken&&t.cancelToken.unsubscribe(o),t.signal&&t.signal.removeEventListener("abort",o)}mt.isFormData(a)&&(Ul.isStandardBrowserEnv||Ul.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.setContentType("multipart/form-data;",!1));let l=new XMLHttpRequest;if(t.auth){const y=t.auth.username||"",x=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.set("Authorization","Basic "+btoa(y+":"+x))}const d=Y9e(t.baseURL,t.url);l.open(t.method.toUpperCase(),$9e(d,t.params,t.paramsSerializer),!0),l.timeout=t.timeout;function h(){if(!l)return;const y=z1.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),M={data:!s||s==="text"||s==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:y,config:t,request:l};Iqe(function(S){r(S),c()},function(S){n(S),c()},M),l=null}if("onloadend"in l?l.onloadend=h:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(h)},l.onabort=function(){l&&(n(new En("Request aborted",En.ECONNABORTED,t,l)),l=null)},l.onerror=function(){n(new En("Network Error",En.ERR_NETWORK,t,l)),l=null},l.ontimeout=function(){let x=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const M=t.transitional||H9e;t.timeoutErrorMessage&&(x=t.timeoutErrorMessage),n(new En(x,M.clarifyTimeoutError?En.ETIMEDOUT:En.ECONNABORTED,t,l)),l=null},Ul.isStandardBrowserEnv){const y=(t.withCredentials||_qe(d))&&t.xsrfCookieName&&Dqe.read(t.xsrfCookieName);y&&i.set(t.xsrfHeaderName,y)}a===void 0&&i.setContentType(null),"setRequestHeader"in l&&mt.forEach(i.toJSON(),function(x,M){l.setRequestHeader(M,x)}),mt.isUndefined(t.withCredentials)||(l.withCredentials=!!t.withCredentials),s&&s!=="json"&&(l.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&l.addEventListener("progress",cie(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",cie(t.onUploadProgress)),(t.cancelToken||t.signal)&&(o=y=>{l&&(n(!y||y.type?new lM(null,t,l):y),l.abort(),l=null)},t.cancelToken&&t.cancelToken.subscribe(o),t.signal&&(t.signal.aborted?o():t.signal.addEventListener("abort",o)));const m=Lqe(d);if(m&&Ul.protocols.indexOf(m)===-1){n(new En("Unsupported protocol "+m+":",En.ERR_BAD_REQUEST,t));return}l.send(a||null)})},pC={http:cqe,xhr:zqe};mt.forEach(pC,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Pqe={getAdapter:t=>{t=mt.isArray(t)?t:[t];const{length:e}=t;let r,n;for(let a=0;a<e&&(r=t[a],!(n=mt.isString(r)?pC[r.toLowerCase()]:r));a++);if(!n)throw n===!1?new En(`Adapter ${r} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(mt.hasOwnProp(pC,r)?`Adapter '${r}' is not available in the build`:`Unknown adapter '${r}'`);if(!mt.isFunction(n))throw new TypeError("adapter is not a function");return n},adapters:pC};function yB(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new lM(null,t)}function lie(t){return yB(t),t.headers=z1.from(t.headers),t.data=gB.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Pqe.getAdapter(t.adapter||$g.adapter)(t).then(function(n){return yB(t),n.data=gB.call(t,t.transformResponse,n),n.headers=z1.from(n.headers),n},function(n){return G9e(n)||(yB(t),n&&n.response&&(n.response.data=gB.call(t,t.transformResponse,n.response),n.response.headers=z1.from(n.response.headers))),Promise.reject(n)})}const uie=t=>t instanceof z1?t.toJSON():t;function F9(t,e){e=e||{};const r={};function n(l,d,h){return mt.isPlainObject(l)&&mt.isPlainObject(d)?mt.merge.call({caseless:h},l,d):mt.isPlainObject(d)?mt.merge({},d):mt.isArray(d)?d.slice():d}function a(l,d,h){if(mt.isUndefined(d)){if(!mt.isUndefined(l))return n(void 0,l,h)}else return n(l,d,h)}function i(l,d){if(!mt.isUndefined(d))return n(void 0,d)}function s(l,d){if(mt.isUndefined(d)){if(!mt.isUndefined(l))return n(void 0,l)}else return n(void 0,d)}function o(l,d,h){if(h in e)return n(l,d);if(h in t)return n(void 0,l)}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:o,headers:(l,d)=>a(uie(l),uie(d),!0)};return mt.forEach(Object.keys(Object.assign({},t,e)),function(d){const h=c[d]||a,m=h(t[d],e[d],d);mt.isUndefined(m)&&h!==o||(r[d]=m)}),r}const K9e="1.4.0",xq={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{xq[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});const die={};xq.transitional=function(e,r,n){function a(i,s){return"[Axios v"+K9e+"] Transitional option '"+i+"'"+s+(n?". "+n:"")}return(i,s,o)=>{if(e===!1)throw new En(a(s," has been removed"+(r?" in "+r:"")),En.ERR_DEPRECATED);return r&&!die[s]&&(die[s]=!0,console.warn(a(s," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(i,s,o):!0}};function Oqe(t,e,r){if(typeof t!="object")throw new En("options must be an object",En.ERR_BAD_OPTION_VALUE);const n=Object.keys(t);let a=n.length;for(;a-- >0;){const i=n[a],s=e[i];if(s){const o=t[i],c=o===void 0||s(o,i,t);if(c!==!0)throw new En("option "+i+" must be "+c,En.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new En("Unknown option "+i,En.ERR_BAD_OPTION)}}const VU={assertOptions:Oqe,validators:xq},Yf=VU.validators;let v8=class{constructor(e){this.defaults=e,this.interceptors={request:new sie,response:new sie}}request(e,r){typeof e=="string"?(r=r||{},r.url=e):r=e||{},r=F9(this.defaults,r);const{transitional:n,paramsSerializer:a,headers:i}=r;n!==void 0&&VU.assertOptions(n,{silentJSONParsing:Yf.transitional(Yf.boolean),forcedJSONParsing:Yf.transitional(Yf.boolean),clarifyTimeoutError:Yf.transitional(Yf.boolean)},!1),a!=null&&(mt.isFunction(a)?r.paramsSerializer={serialize:a}:VU.assertOptions(a,{encode:Yf.function,serialize:Yf.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s;s=i&&mt.merge(i.common,i[r.method]),s&&mt.forEach(["delete","get","head","post","put","patch","common"],x=>{delete i[x]}),r.headers=z1.concat(s,i);const o=[];let c=!0;this.interceptors.request.forEach(function(M){typeof M.runWhen=="function"&&M.runWhen(r)===!1||(c=c&&M.synchronous,o.unshift(M.fulfilled,M.rejected))});const l=[];this.interceptors.response.forEach(function(M){l.push(M.fulfilled,M.rejected)});let d,h=0,m;if(!c){const x=[lie.bind(this),void 0];for(x.unshift.apply(x,o),x.push.apply(x,l),m=x.length,d=Promise.resolve(r);h<m;)d=d.then(x[h++],x[h++]);return d}m=o.length;let y=r;for(h=0;h<m;){const x=o[h++],M=o[h++];try{y=x(y)}catch(E){M.call(this,E);break}}try{d=lie.call(this,y)}catch(x){return Promise.reject(x)}for(h=0,m=l.length;h<m;)d=d.then(l[h++],l[h++]);return d}getUri(e){e=F9(this.defaults,e);const r=Y9e(e.baseURL,e.url);return $9e(r,e.params,e.paramsSerializer)}};mt.forEach(["delete","get","head","options"],function(e){v8.prototype[e]=function(r,n){return this.request(F9(n||{},{method:e,url:r,data:(n||{}).data}))}});mt.forEach(["post","put","patch"],function(e){function r(n){return function(i,s,o){return this.request(F9(o||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}v8.prototype[e]=r(),v8.prototype[e+"Form"]=r(!0)});let Rqe=class Z9e{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(a=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](a);n._listeners=null}),this.promise.then=a=>{let i;const s=new Promise(o=>{n.subscribe(o),i=o}).then(a);return s.cancel=function(){n.unsubscribe(i)},s},e(function(i,s,o){n.reason||(n.reason=new lM(i,s,o),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const r=this._listeners.indexOf(e);r!==-1&&this._listeners.splice(r,1)}static source(){let e;return{token:new Z9e(function(a){e=a}),cancel:e}}};function Fqe(t){return function(r){return t.apply(null,r)}}function Uqe(t){return mt.isObject(t)&&t.isAxiosError===!0}const $U={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries($U).forEach(([t,e])=>{$U[e]=t});function Q9e(t){const e=new v8(t),r=_9e(v8.prototype.request,e);return mt.extend(r,v8.prototype,e,{allOwnKeys:!0}),mt.extend(r,e,null,{allOwnKeys:!0}),r.create=function(a){return Q9e(F9(t,a))},r}const Ln=Q9e($g);Ln.Axios=v8;Ln.CanceledError=lM;Ln.CancelToken=Rqe;Ln.isCancel=G9e;Ln.VERSION=K9e;Ln.toFormData=WN;Ln.AxiosError=En;Ln.Cancel=Ln.CanceledError;Ln.all=function(e){return Promise.all(e)};Ln.spread=Fqe;Ln.isAxiosError=Uqe;Ln.mergeConfig=F9;Ln.AxiosHeaders=z1;Ln.formToJSON=t=>q9e(mt.isHTMLForm(t)?new FormData(t):t);Ln.HttpStatusCode=$U;Ln.default=Ln;const{Axios:Rkt,AxiosError:Fkt,CanceledError:Ukt,isCancel:Wkt,CancelToken:Vkt,VERSION:$kt,all:Hkt,Cancel:qkt,isAxiosError:Gkt,spread:Ykt,toFormData:Kkt,AxiosHeaders:Zkt,HttpStatusCode:Qkt,formToJSON:Jkt,mergeConfig:Xkt}=Ln,kd=60*1e3,J9e={Mainnet:{api:"https://api.wormholescan.io",circleAPI:Mae("Mainnet"),chains:pB("Mainnet")},Testnet:{api:"https://api.testnet.wormholescan.io",circleAPI:Mae("Testnet"),chains:pB("Testnet")},Devnet:{api:"http://guardian:7071",circleAPI:"",chains:pB("Devnet")}};function wq(t,e){return Object.fromEntries(Object.entries(J9e[t].chains).filter(([r,n])=>n.platform==e))}function Wqe(t,e){let r=J9e[t];return e?Mq(r,e):r}function e_t(t,e,r){const n=wq(t,e);return r?Mq(n,r):n}function Mq(t,e){t||(t={});for(const[r,n]of Object.entries(e))typeof n=="object"&&!Array.isArray(n)?t[r]=Mq(t[r],n):t[r]=n;return t}async function Hg(t,e,r=kd,n){const a=Math.floor(r/e);let i=0;return new Promise((s,o)=>{t().then(c=>{if(c!==null){s(c);return}let l=setInterval(async()=>{if(i>=a){clearInterval(l),s(null);return}const d=await t();d!==null?(clearInterval(l),s(d)):n&&console.log(`Retrying ${n}, attempt ${i}/${a} `),i++},e)})})}const Vqe=2e3;var fie;(function(t){t.complete="complete",t.pending_confirmations="pending_confirmations"})(fie||(fie={}));const $qe=t=>({message:t.attestation,status:t.status});async function Hqe(t,e){var n;const r=`${t}/${e}`;try{const a=await Ln.get(r),i=$qe(a==null?void 0:a.data);return i.message==="PENDING"?null:i.message}catch(a){if(!a||typeof a=="object"&&(Ln.isAxiosError(a)&&((n=a.response)==null?void 0:n.status)===404||"status"in a&&a.status===404))return null;throw a}}async function qqe(t,e,r){return Hg(()=>Hqe(t,e),Vqe,r,"Circle:GetAttestation")}async function H8(t,e,r){if(!W$e(r))throw new Error("Invalid signer, not SignAndSendSigner or SignOnlySigner");return(await Gqe(e,async i=>E9e(r)?r.signAndSend(i):t.sendWait(await r.sign(i)))).map(i=>({chain:t.chain,txid:i}))}async function Gqe(t,e){const r=[];let n=[];for await(const a of t)a.parallelizable?n.push(a):(n.length>0&&(r.push(...await e(n)),n=[]),r.push(...await e([a])));return n.length>0&&r.push(...await e(n)),r}var lr;(function(t){t[t.Failed=-1]="Failed",t[t.Created=0]="Created",t[t.SourceInitiated=1]="SourceInitiated",t[t.SourceFinalized=2]="SourceFinalized",t[t.InReview=3]="InReview",t[t.Attested=4]="Attested",t[t.Refunded=5]="Refunded",t[t.DestinationInitiated=6]="DestinationInitiated",t[t.DestinationQueued=7]="DestinationQueued",t[t.DestinationFinalized=8]="DestinationFinalized"})(lr||(lr={}));function Aq(t){return t.state===lr.SourceInitiated}function zx(t){return t.state===lr.SourceFinalized}function pie(t){return t.state===lr.InReview}function gf(t){return t.state===lr.Attested}function Yqe(t){return t.state===lr.Refunded}function X9e(t){return t.state===lr.DestinationInitiated}function vB(t){return t.state===lr.DestinationQueued}function HU(t){return t.state===lr.DestinationFinalized}function hie(t){return t.state<0}class Kn{constructor(e,r,n,a){ce(this,"wh");ce(this,"fromChain");ce(this,"toChain");ce(this,"_state");ce(this,"transfer");ce(this,"txids",[]);ce(this,"attestations");this._state=lr.Created,this.wh=e,this.transfer=r,this.fromChain=n??e.getChain(r.from.chain),this.toChain=a??e.getChain(r.to.chain)}getTransferState(){return this._state}static async from(e,r,n=kd,a,i){if(Y$e(r))return r={...r,...await Kn.destinationOverrides(e.getChain(r.from.chain),e.getChain(r.to.chain),r)},new Kn(e,r,a,i);let s;if(y8(r))s=await Kn.fromWormholeMessageId(e,r,n);else if(A9e(r))s=await Kn.fromTransaction(e,r,n,a);else if(ZT(r))s=await Kn.fromCircleMessage(e,r);else throw new Error("Invalid `from` parameter for CircleTransfer");return s.fromChain=a??e.getChain(s.transfer.from.chain),s.toChain=i??e.getChain(s.transfer.to.chain),await s.fetchAttestation(n),s}static async fromWormholeMessageId(e,r,n){const{chain:a,emitter:i}=r,s=await Kn.getTransferVaa(e,r),o=s.payload.mintRecipient,c=iB(e.network,s.payload.targetDomain),{wormholeRelayer:l}=e.config.chains[c].contracts.cctp;let d=!1;if(l){const y=Zr.chainAddress(a,l).address.toUniversalAddress();d=s.payloadName==="TransferWithRelay"&&o.equals(y)}const h={from:{chain:r.chain,address:s.payload.caller},to:{chain:c,address:o},amount:s.payload.token.amount,automatic:d},m=new Kn(e,h);return m.attestations=[{id:{emitter:i,sequence:s.sequence,chain:a},attestation:s}],m._state=lr.Attested,m}static async fromCircleMessage(e,r){const[n,a]=R9.deserialize(Pn.decode(r)),{payload:i}=n,s=i.messageSender,o=i.mintRecipient,c=iB(e.network,n.sourceDomain),l=iB(e.network,n.destinationDomain),d={from:{chain:c,address:s},to:{chain:l,address:o},amount:i.amount,automatic:!1},h=new Kn(e,d);return h.attestations=[{id:{hash:a},attestation:{message:n}}],h._state=lr.SourceInitiated,h}static async fromTransaction(e,r,n,a){const{chain:i,txid:s}=r;a=a??e.getChain(i);let o=[];try{o=await a.parseTransaction(s)}catch(l){if(!(l.message.includes("no bridge messages found")||l.message.includes("not found")))throw l}let c;if(o.length>0)c=await Kn.fromWormholeMessageId(e,o[0],n);else{const d=await(await a.getCircleBridge()).parseTransactionDetails(s),h={...d,automatic:!1};c=new Kn(e,h),c.attestations=[{id:d.id,attestation:{message:d.message}}]}return c._state=lr.SourceInitiated,c.txids=[r],c}async initiateTransfer(e){if(this._state!==lr.Created)throw new Error("Invalid state transition in `start`");return this.txids=await Kn.transfer(this.fromChain,this.transfer,e),this._state=lr.SourceInitiated,this.txids.map(({txid:r})=>r)}async _fetchWormholeAttestation(e){let r=this.attestations??[];if(!r||r.length==0)throw new Error("No VAA details available");for(const n in r)r[n].attestation||(r[n].attestation=await Kn.getTransferVaa(this.wh,r[n].id,e));return this.attestations=r,r.map(n=>n.id)}async _fetchCircleAttestation(e){var n,a;let r=this.attestations??[];if(!r||r.length==0){if(this.txids.length===0)throw new Error("No circle attestations or transactions to fetch");const i=this.txids[((n=this.txids)==null?void 0:n.length)-1],c=await(await this.wh.getChain(this.transfer.from.chain).getCircleBridge()).parseTransactionDetails(i.txid);r=[{id:c.id,attestation:{message:c.message}}]}for(const i in r){const s=r[i];if((a=s.attestation)!=null&&a.attestation)continue;const o=await this.wh.getCircleAttestation(s.id.hash,e);if(o===null)throw new Error("No attestation available after timeout exhausted");r[i].attestation.attestation=o}return this.attestations=r,r.map(i=>i.id)}async fetchAttestation(e){if(this._state<lr.SourceInitiated)throw new Error("Invalid state transition in `fetchAttestation`");const r=this.transfer.automatic?(await Promise.all([this._fetchWormholeAttestation(e),this._fetchCircleAttestation(e)])).flat():await this._fetchCircleAttestation(e);if(this._state=lr.Attested,this.attestations&&this.attestations.length>0)for(const n of this.attestations){const{attestation:a}=n;if(!R9.isCircleAttestation(a))continue;await Kn.isTransferComplete(this.toChain,a)&&(this._state=lr.DestinationFinalized)}return r}async completeTransfer(e){var h;if(this._state<lr.Attested)throw new Error("Invalid state transition in `finish`");if(this.transfer.automatic)throw this.attestations?this.attestations.find(y=>y8(y.id))?new Error("No method to redeem auto circle bridge tx (yet)"):new Error("No VAA found"):new Error("No VAA details available");if(!this.attestations)throw new Error("No Circle Attestations found");const r=this.attestations.filter(m=>ZT(m.id));if(r.length>1)throw new Error(`Expected a single circle attestation, found ${r.length}`);const{id:n,attestation:a}=r[0];if(!a)throw new Error(`No Circle Attestation for ${n.hash}`);const{message:i,attestation:s}=a;if(!s)throw new Error(`No Circle Attestation for ${n.hash}`);const o=await this.toChain.getCircleBridge(),c=Zr.parseAddress(e.chain(),e.address()),l=o.redeem(c,i,s),d=await H8(this.toChain,l,e);return(h=this.txids)==null||h.push(...d),d.map(({txid:m})=>m)}}(function(t){async function e(l,d,h){let m;return d.automatic?m=(await l.getAutomaticCircleBridge()).transfer(d.from.address,{chain:d.to.chain,address:d.to.address},d.amount,d.nativeGas):m=(await l.getCircleBridge()).transfer(d.from.address,{chain:d.to.chain,address:d.to.address},d.amount),await H8(l,m,h)}t.transfer=e;async function*r(l,d,h=kd,m,y){var E,S;const x=Date.now(),M=(T,D)=>Math.max(D-(Date.now()-T),0);if(m=m??l.getChain(d.from),y=y??l.getChain(d.to),Aq(d)){if(d.originTxs.length===0)throw"Invalid state transition: no originating transactions";const T=d.originTxs[d.originTxs.length-1],D=await t.getTransferMessage(m,T.txid);d={...d,attestation:{id:D.id,attestation:{message:D.message}},state:lr.SourceFinalized},yield d}if(zx(d)){if(!d.attestation)throw"Invalid state transition: no attestation id";if(y8(d.attestation.id)){let T=d.attestation.attestation?d.attestation.attestation:void 0;T||(T=await t.getTransferVaa(l,d.attestation.id,M(x,h)),d={...d,attestation:{id:d.attestation.id,attestation:T},state:lr.Attested},yield d)}else if(ZT(d.attestation.id)){const T=await l.getCircleAttestation(d.attestation.id.hash,h),D=d.originTxs[d.originTxs.length-1],_=await(await m.getCircleBridge()).parseTransactionDetails(D.txid);T&&(d={...d,attestation:{id:d.attestation.id,attestation:{attestation:T,message:_.message}},state:lr.Attested},yield d)}}if(gf(d)||zx(d)){if(!d.attestation)throw"Invalid state transition";if(y8(d.attestation.id)){const T=await l.getTransactionStatus(d.attestation.id,M(x,h));if(T&&((S=(E=T.globalTx)==null?void 0:E.destinationTx)!=null&&S.txHash)){const{chainId:D,txHash:k}=T.globalTx.destinationTx;d={...d,destinationTxs:[{chain:k2(D),txid:k}],state:lr.DestinationInitiated},yield d}}}(gf(d)||X9e(d))&&(await t.isTransferComplete(y,d.attestation.attestation)&&(d={...d,state:lr.DestinationFinalized,destinationTxs:[]}),yield d)}t.track=r;async function n(l,d,h){const m={...h};if(h.to.chain==="Solana"&&!m.automatic){const y=Zr.parseAddress("Solana",B0.get(d.network,d.chain));m.to=await d.getTokenAccount(m.to.address,y)}return m}t.destinationOverrides=n;async function a(l,d,h){const m=B0.get(d.network,d.chain);if(!m)throw"Invalid transfer, no USDC contract on destination";const y=B0.get(l.network,l.chain);if(!y)throw"Invalid transfer, no USDC contract on source";const x=Zr.chainAddress(d.chain,m),M=Zr.chainAddress(l.chain,y),E=(l.chain==="Polygon"?2e3*200:tq(l.chain))+Wme;if(!h.automatic)return{sourceToken:{token:M,amount:h.amount},destinationToken:{token:x,amount:h.amount},eta:E};let S=h.amount;const T=h.nativeGas?h.nativeGas:0n;S-=T;const k=await(await l.getAutomaticCircleBridge()).getRelayerFee(d.chain);S-=k;let _=0n;return h.nativeGas&&(_=await(await d.getAutomaticCircleBridge()).nativeTokenAmount(T)),{sourceToken:{token:M,amount:h.amount},destinationToken:{token:x,amount:S},relayFee:{token:M,amount:k},destinationNativeGas:_,eta:E}}t.quoteTransfer=a;async function i(l,d){if(!R9.isCircleAttestation(d))throw new Error("Must check for completion with circle message");return await(await l.getCircleBridge()).isTransferCompleted(d.message)}t.isTransferComplete=i;async function s(l,d,h){const m=await l.getVaa(d,"AutomaticCircleBridge:TransferWithRelay",h);if(!m)throw new Error("No VAA available after timeout exhausted");return m}t.getTransferVaa=s;async function o(l,d){return await(await l.getCircleBridge()).parseTransactionDetails(d)}t.getTransferMessage=o;function c(l){var T,D;const{from:d,to:h}=l.transfer;let m={from:d.chain,to:h.chain,state:lr.Created};const y=l.txids.filter(k=>k.chain===l.transfer.from.chain);y.length>0&&(m={...m,state:lr.SourceInitiated,originTxs:y});const x=((T=l.attestations)==null?void 0:T.filter(k=>y8(k.id)))??[],M=((D=l.attestations)==null?void 0:D.filter(k=>ZT(k.id)))??[],E=M.length>0?M[0]:x.length>0?x[0]:void 0;E&&E.id&&(m={...m,state:lr.SourceFinalized,attestation:E},E.attestation&&(m={...m,state:lr.Attested,attestation:{id:E.id,attestation:E.attestation}}));const S=l.txids.filter(k=>k.chain===l.transfer.to.chain);return S.length>0&&(m={...m,state:lr.DestinationInitiated,destinationTxs:S}),m}t.getReceipt=c})(Kn||(Kn={}));const VN=2e3;async function ebe(t,e){var c;const{chain:r,emitter:n,sequence:a}=e,i=pn(r),s=Dme("0x",n.toString()),o=`${t}/v1/signed_vaa/${i}/${s}/${a}`;try{const{data:{vaaBytes:l}}=await Ln.get(o);return iM.decode(l)}catch(l){if(!l||typeof l=="object"&&(Ln.isAxiosError(l)&&((c=l.response)==null?void 0:c.status)===404||"status"in l&&l.status===404))return null;throw l}}async function Kqe(t,e,r){return await Hg(()=>ebe(t,e),VN,r,"Wormholescan:GetVaaBytes")}async function Zqe(t,e,r){const n=await ebe(t,e);return n?KT(r,n):null}async function Qqe(t,e,r,n){return await Hg(()=>Zqe(t,e,r),VN,n,"Wormholescan:GetVaaBytes")}async function Jqe(t,e){var c;const{chain:r,emitter:n,sequence:a}=e,i=pn(r),s=n.toUniversalAddress().toString(),o=`${t}/api/v1/transactions/${i}/${s}/${a}`;try{return(await Ln.get(o)).data}catch(l){if(!l||typeof l=="object"&&(Ln.isAxiosError(l)&&((c=l.response)==null?void 0:c.status)===404||"status"in l&&l.status===404))return null;throw l}}async function Xqe(t,e,r){return await Hg(()=>Jqe(t,e),VN,r,"Wormholescan:GetTransactionStatus")}async function eGe(t,e){var n;const r=`${t}/api/v1/vaas?txHash=${e}`;try{const a=await Ln.get(r);if(a.data.data.length>0)return a.data.data[0]}catch(a){if(!a||typeof a=="object"&&(Ln.isAxiosError(a)&&((n=a.response)==null?void 0:n.status)===404||"status"in a&&a.status===404))return null;throw a}return null}async function mie(t,e,r,n){const i=await Hg(()=>eGe(t,e),VN,n,"Wormholescan:GetVaaByTxHash");return i?KT(r,iM.decode(i.vaa)):null}async function tGe(t,e,r=50,n=0){var i;const a=`${t}/api/v1/transactions?address=${e}&pageSize=${r}&page=${n}`;try{const s=await Ln.get(a);if(s.data.transactions.length>0)return s.data.transactions}catch(s){if(!s||typeof s=="object"&&(Ln.isAxiosError(s)&&((i=s.response)==null?void 0:i.status)===404||"status"in s&&s.status===404))return null;throw s}return null}async function rGe(t){const e=`${t}/v1/governor/token_list`;try{const r=await Ln.get(e);if(r.data&&r.data.entries.length>0)return r.data.entries.reduce((n,a)=>{const i=k2(a.originChainId);return n[i]=n[i]||{},n[i][a.originAddress]=a.price,n},{})}catch{}return null}async function nGe(t){const e=`${t}/v1/governor/available_notional_by_chain`;try{const r=await Ln.get(e);if(r.data&&r.data.entries.length>0)return r.data.entries.reduce((n,a)=>{const i=a.bigTransactionSize==="0"?void 0:_c(m8(a.bigTransactionSize,2));return n[k2(a.chainId)]={available:_c(m8(a.remainingAvailableNotional,2)),limit:_c(m8(a.notionalLimit,2)),maxSize:i},n},{})}catch{}return null}async function aGe(t,e){const{chain:r,emitter:n,sequence:a}=e,i=pn(r),s=n.toUniversalAddress().toString(),o=`${t}/v1/governor/is_vaa_enqueued/${i}/${s}/${a}`;return(await Ln.get(o)).data.isEnqueued}class bn{constructor(e,r,n,a){ce(this,"wh");ce(this,"fromChain");ce(this,"toChain");ce(this,"_state");ce(this,"transfer");ce(this,"txids",[]);ce(this,"attestations");this._state=lr.Created,this.wh=e,this.transfer=r,this.fromChain=n??e.getChain(r.from.chain),this.toChain=a??e.getChain(r.to.chain)}getTransferState(){return this._state}static async from(e,r,n=6e3,a,i){if(nHe(r))return a=a??e.getChain(r.from.chain),i=i??e.getChain(r.to.chain),bn.validateTransferDetails(e,r,a,i),r={...r,...await bn.destinationOverrides(a,i,r)},new bn(e,r,a,i);let s;if(y8(r))s=await bn.fromIdentifier(e,r,n);else if(A9e(r))s=await bn.fromTransaction(e,r,n,a);else throw new Error("Invalid `from` parameter for TokenTransfer");return s.fromChain=a??e.getChain(s.transfer.from.chain),s.toChain=i??e.getChain(s.transfer.to.chain),await s.fetchAttestation(n),s}static async fromIdentifier(e,r,n){const a=await bn.getTransferVaa(e,r,n);if(!a)throw new Error("VAA not found");const i=a.protocolName==="AutomaticTokenBridge";let s={chain:a.emitterChain,address:a.emitterAddress},{token:o,to:c}=a.payload,l;if(o.chain===s.chain)l=await e.getTokenNativeAddress(s.chain,o.chain,o.address);else{const S=await(await(await e.getChain(s.chain)).getTokenBridge()).getWrappedAsset(o);l=Ns(s.chain,S.toString())}const d=await e.getDecimals(s.chain,l),h=d2(da(o.amount,Math.min(d,bn.MAX_DECIMALS)),d);let m=0n;i&&(m=a.payload.payload.toNativeTokenAmount,s={chain:a.emitterChain,address:a.payload.from},c={chain:a.payload.to.chain,address:a.payload.payload.targetRecipient});const y={token:o,amount:Pr(h),from:s,to:c,automatic:i,nativeGas:m},x=new bn(e,y);return x.attestations=[{id:r,attestation:a}],x._state=lr.Attested,x}static async fromTransaction(e,r,n,a){a=a??e.getChain(r.chain);const i=await bn.getTransferMessage(a,r.txid,n),s=await bn.fromIdentifier(e,i,n);return s.txids=[r],s}async initiateTransfer(e){if(this._state!==lr.Created)throw new Error("Invalid state transition in `initiateTransfer`");return this.txids=await bn.transfer(this.fromChain,this.transfer,e),this._state=lr.SourceInitiated,this.txids.map(({txid:r})=>r)}async fetchAttestation(e){if(this._state<lr.SourceInitiated||this._state>lr.Attested)throw new Error("Invalid state transition in `fetchAttestation`, expected at least `SourceInitiated`");if(!this.attestations||this.attestations.length===0){if(this.txids.length===0)throw new Error("No VAAs set and txids available to look them up");const r=this.txids[this.txids.length-1],n=await bn.getTransferMessage(this.fromChain,r.txid,e);this.attestations=[{id:n}]}for(const r in this.attestations){if(this.attestations[r].attestation)continue;const n=await bn.getTransferVaa(this.wh,this.attestations[r].id,e);if(!n)throw new Error("VAA not found");this.attestations[r].attestation=n}if(this._state=lr.Attested,this.attestations.length>0){const{attestation:r}=this.attestations[0];await bn.isTransferComplete(this.toChain,r)&&(this._state=lr.DestinationFinalized)}return this.attestations.map(r=>r.id)}async completeTransfer(e){if(this._state<lr.Attested)throw new Error("Invalid state transition, must be attested prior to calling `completeTransfer`.");if(!this.attestations)throw new Error("No VAA details available");const{attestation:r}=this.attestations[0];if(!r)throw new Error(`No VAA found for ${this.attestations[0].id.sequence}`);const n=await bn.redeem(this.toChain,r,e);return this.txids.push(...n),this._state=lr.DestinationInitiated,n.map(({txid:a})=>a)}}(function(t){t.MAX_DECIMALS=8;async function e(y,x,M){const E=Ns(M.chain(),M.address()),S=oM(x.token)?x.token.address:x.token;let T;return x.automatic?T=(await y.getAutomaticTokenBridge()).transfer(E,x.to,S,x.amount,x.nativeGas):T=(await y.getTokenBridge()).transfer(E,x.to,S,x.amount,x.payload),H8(y,T,M)}t.transfer=e;async function r(y,x,M){const E=Ns(M.chain(),M.address()),S=x.protocolName==="AutomaticTokenBridge"?(await y.getAutomaticTokenBridge()).redeem(E,x):(await y.getTokenBridge()).redeem(E,x);return H8(y,S,M)}t.redeem=r;async function*n(y,x,M=kd,E,S){var k,_;const T=Date.now(),D=(L,O)=>Math.max(O-(Date.now()-L),0);if(E=E??y.getChain(x.from),Aq(x)){if(x.originTxs.length===0)throw"Origin transactions required to fetch message id";const{txid:L}=x.originTxs[x.originTxs.length-1],O=await t.getTransferMessage(E,L,D(T,M));x={...x,state:lr.SourceFinalized,attestation:{id:O}},yield x}if(zx(x)||pie(x)){if(!x.attestation.id)throw"Attestation id required to fetch attestation";const{id:L}=x.attestation,O=await t.getTransferVaa(y,L,D(T,M));throw O?(x={...x,attestation:{id:L,attestation:O},state:lr.Attested},yield x):await t.isTransferEnqueued(y,L)&&(x={...x,state:lr.InReview},yield x),new Error("Attestation not found")}if(gf(x)||zx(x)||pie(x)){if(!x.attestation.id)throw"Attestation id required to fetch redeem tx";const{id:L}=x.attestation,O=await y.getTransactionStatus(L,D(T,M));if(O&&((_=(k=O.globalTx)==null?void 0:k.destinationTx)!=null&&_.txHash)){const{chainId:B,txHash:z}=O.globalTx.destinationTx;x={...x,destinationTxs:[{chain:k2(B),txid:z}],state:lr.DestinationInitiated}}yield x}if(gf(x)||X9e(x)){if(!x.attestation.attestation)throw"Signed Attestation required to check for redeem";if(x.attestation.attestation.payloadName==="AttestMeta")throw new Error("Unable to track an AttestMeta receipt");await t.isTransferComplete(S??y.getChain(x.attestation.attestation.payload.to.chain),x.attestation.attestation)&&(x={...x,state:lr.DestinationFinalized}),yield x}yield x}t.track=n;function a(y){const{transfer:x}=y,M=x.from.chain,E=x.to.chain;let S={from:M,to:E,state:lr.Created};const T=y.txids.filter(L=>L.chain===x.from.chain);T.length>0&&(S={...S,state:lr.SourceInitiated,originTxs:T});const D=y.attestations&&y.attestations.length>0?y.attestations[0]:void 0,k=D&&D.id?{id:D.id,attestation:D.attestation}:void 0;k&&k.id&&(S={...S,state:lr.SourceFinalized,attestation:{id:k.id}},k.attestation&&(S={...S,state:lr.Attested,attestation:{id:k.id,attestation:k.attestation}}));const _=y.txids.filter(L=>L.chain===x.to.chain);return _.length>0&&(S={...S,state:lr.DestinationFinalized,destinationTxs:_}),S}t.getReceipt=a;async function i(y,x,M){let E;const S=await y.getTokenBridge();if(kn(M.address)){const k=await S.getWrappedNative();E={chain:M.chain,address:await S.getTokenUniversalAddress(k)}}else try{let k;fa.instanceof(M.address)?k=await S.getWrappedAsset(M):k=M.address,E=await S.getOriginalAsset(k)}catch(k){if(!k.message.includes("not a wrapped asset"))throw k;let _;fa.instanceof(M.address)?_=await S.getTokenNativeAddress(y.chain,M.address):_=M.address,E={chain:M.chain,address:await S.getTokenUniversalAddress(_)}}const T=await x.getTokenBridge();if(E.chain===x.chain){const k=await T.getTokenNativeAddress(E.chain,E.address),_=await T.getWrappedNative();return _a({chain:x.chain,address:_})===_a({chain:x.chain,address:k})?{chain:x.chain,address:"native"}:{chain:x.chain,address:k}}const D=await T.getWrappedAsset(E);return{chain:x.chain,address:D}}t.lookupDestinationToken=i;async function s(y,x){return x.protocolName==="AutomaticTokenBridge"&&(x=KT("TokenBridge:TransferWithPayload",YT(x))),(await y.getTokenBridge()).isTransferCompleted(x)}t.isTransferComplete=s;async function o(y,x,M){const E=await Zr.parseMessageFromTx(y,x,M);if(E.length!==1)throw new Error("Expected a single Wormhole Message, got: "+E.length);return E[0]}t.getTransferMessage=o;async function c(y,x,M){const E=await y.getVaa(x,RU.getTransferDiscriminator(),M);if(!E)return null;if(E.payloadName==="TransferWithPayload"){const{chain:S,address:T}=E.payload.to,{tokenBridgeRelayer:D}=y.config.chains[S].contracts,k=D?$8(S,D):null;if(k&&T.equals(k))return KT("AutomaticTokenBridge:TransferWithRelay",YT(E))}return E}t.getTransferVaa=c;async function l(y,x){return await y.getIsVaaEnqueued(x)}t.isTransferEnqueued=l;function d(y,x,M,E){if(x.amount===0n)throw new Error("Amount cannot be 0");if(x.from.chain===x.to.chain)throw new Error("Cannot transfer to the same chain");if(M=M??y.getChain(x.from.chain),E=E??y.getChain(x.to.chain),x.automatic){if(x.payload)throw new Error("Payload with automatic delivery is not supported");if(!M.supportsAutomaticTokenBridge())throw new Error(`Automatic Token Bridge not supported on ${x.from.chain}`);if(!E.supportsAutomaticTokenBridge())throw new Error(`Automatic Token Bridge not supported on ${x.to.chain}`);const S=x.nativeGas??0n;if(S>x.amount)throw new Error(`Native gas amount > amount (${S} > ${x.amount})`)}else{if(x.nativeGas)throw new Error("Gas Dropoff is only supported for automatic transfers");if(!M.supportsTokenBridge())throw new Error(`Token Bridge not supported on ${x.from.chain}`);if(!E.supportsTokenBridge())throw new Error(`Token Bridge not supported on ${x.to.chain}`)}}t.validateTransferDetails=d;async function h(y,x,M,E){const S=await x.getTokenBridge();let T;if(kn(E.token.address))T=await S.getWrappedNative();else if(fa.instanceof(E.token.address))try{T=await S.getWrappedAsset(E.token)}catch(P){if(!P.message.includes("not a wrapped asset"))throw P;T=await S.getTokenNativeAddress(x.chain,E.token.address)}else T=E.token.address;const D=Zr.tokenId(x.chain,T.toString()),k=await x.getDecimals(T),_=da(E.amount,k),L=Is(_,t.MAX_DECIMALS),[O,B]=await Promise.all([rGe(y.config.api),nGe(y.config.api)]),z=[];if(B!==null&&x.chain in B&&O!==null){let P;if(kn(E.token.address))P={chain:x.chain,address:await S.getTokenUniversalAddress(T)};else try{P=await S.getOriginalAsset(E.token.address)}catch(R){if(!R.message.includes("not a wrapped asset"))throw R;P={chain:x.chain,address:await S.getTokenUniversalAddress(T)}}if(P.chain in O&&P.address.toString()in O[P.chain]){const R=B[x.chain],Y=O[P.chain][P.address.toString()]*_c(L);R.maxSize&&Y>R.maxSize&&z.push({type:"GovernorLimitWarning",reason:"ExceedsLargeTransferLimit"}),Y>R.available&&z.push({type:"GovernorLimitWarning",reason:"ExceedsRemainingNotional"})}}const F=await t.lookupDestinationToken(x,M,E.token),I=await M.getDecimals(F.address),u=d2(L,I),f=tq(x.chain)+Wme;if(!E.automatic)return{sourceToken:{token:D,amount:Pr(L)},destinationToken:{token:F,amount:Pr(u)},warnings:z.length>0?z:void 0,eta:f};const g=await(await x.getAutomaticTokenBridge()).getRelayerFee(M.chain,T),v=d2(Is(da(g,k),t.MAX_DECIMALS),I),A=E.nativeGas??0n,N=Pr(d2(Is(da(A,k),t.MAX_DECIMALS),I)),w=890880n;let p=0n;if(E.nativeGas){const P=await M.getAutomaticTokenBridge(),[R,$]=await Promise.all([P.maxSwapAmount(F.address),P.nativeTokenAmount(F.address,N)]);if(N>R)throw new Error(`Native gas amount exceeds maximum swap amount: ${hae(N,I)}>${hae(R,I)}`);if(M.chain==="Solana"&&$<w)throw new Error(`Native gas amount must be at least ${w} lamports`);p=$}const C=Pr(u)-N-Pr(v);if(F.chain==="Solana"){const P=await M.getNativeWrappedTokenId();if((kn(F.address)||bf(F,P))&&C<w)throw new Error(`Destination amount must be at least ${w} lamports`)}return{sourceToken:{token:D,amount:Pr(L)},destinationToken:{token:F,amount:C},relayFee:{token:D,amount:g},destinationNativeGas:p,warnings:z.length>0?z:void 0,eta:f}}t.quoteTransfer=h;async function m(y,x,M){const E={...M};if(M.to.chain==="Solana"&&!E.automatic){const S=await t.lookupDestinationToken(y,x,E.token);if(kn(S.address)){const T=await x.getNativeWrappedTokenId();E.to=await x.getTokenAccount(E.to.address,T.address)}else E.to=await x.getTokenAccount(E.to.address,S.address)}if(E.to.chain==="Sei"){if(E.to.chain==="Sei"&&E.payload)throw new Error("Arbitrary payloads unsupported for Sei");E.payload=sa.encode(JSON.stringify({basic_recipient:{recipient:iM.encode(E.to.address.toString())}}));const S=x.config.contracts.translator;if(S===void 0||S==="")throw new Error("Unexpected empty translator address");E.to=Zr.chainAddress(E.to.chain,S)}return E}t.destinationOverrides=m})(bn||(bn={}));function bie(t){if(t.length===0)return[];const{chain:e}=t[0];if(!t.every(r=>r.chain===e))throw new Error("Not every chain is equal");return Array.from(new Set(t.map(r=>_a(r)))).map(r=>Zr.tokenId(e,r))}async function gie(t,e,r){const n=_a(e),a=t.config.tokenMap?R8.byAddress(t.config.tokenMap,n):void 0,i=a?a.symbol:void 0,s=kn(e.address)?await t.getNativeWrappedTokenId():void 0;return r=r??await t.getDecimals(e.address),{id:e,decimals:r,wrapped:s,symbol:i}}class iGe{constructor(e,r){ce(this,"wh");ce(this,"routeConstructors");ce(this,"inputTokenList");this.wh=e,this.routeConstructors=r}async supportedSourceTokens(e){if(this.inputTokenList)return this.inputTokenList;const r=await Promise.all(this.routeConstructors.map(async n=>{try{return await n.supportedSourceTokens(e)}catch(a){return console.error(`Failed to get supported source tokens for ${n.meta.name}: `,a),[]}}));return this.inputTokenList=bie(r.flat()),this.inputTokenList}async supportedDestinationTokens(e,r,n){const[,a]=uC(r.network,r.chain,e),i=await Promise.all(this.routeConstructors.map(async s=>{if(!s.supportedNetworks().includes(r.network))return[];const c=s.supportedChains(r.network);if(!c.includes(r.chain)||!c.includes(n.chain))return[];try{return await s.supportedDestinationTokens(a,r,n)}catch{return[]}}));return bie(i.flat())}async findRoutes(e){return(await Promise.all(this.routeConstructors.map(async n=>{try{const a=n.supportedNetworks().includes(this.wh.network)&&n.supportedChains(this.wh.network).includes(e.toChain.chain)&&n.supportedChains(this.wh.network).includes(e.fromChain.chain),i=_a(kn(e.source.id.address)?e.source.wrapped:e.source.id),s=(await n.supportedSourceTokens(e.fromChain)).filter(l=>_a(l)===i).length>0,o=_a(kn(e.destination.id.address)?e.destination.wrapped:e.destination.id),c=(await n.supportedDestinationTokens(e.source.id,e.fromChain,e.toChain)).filter(l=>_a(l)===o).length>0;return a&&s&&c}catch{return!1}})).then(n=>this.routeConstructors.filter((a,i)=>n[i]))).map(n=>new n(this.wh))}}class Zr{constructor(e,r,n){ce(this,"_network");ce(this,"_platforms");ce(this,"_chains");ce(this,"config");this._network=e,this.config=Wqe(e,n),this._chains=new Map,this._platforms=new Map;for(const a of r)this._platforms.set(a._platform,new a(e,this.config.chains))}get network(){return this._network}async circleTransfer(e,r,n,a,i,s){if(a&&i)throw new Error("Payload with automatic delivery is not supported");if(!SU(this.network,r.chain)||!SU(this.network,n.chain)||!Sae(this.network,r.chain)||!Sae(this.network,n.chain))throw new Error(`Network and chain not supported: ${this.network} ${r.chain} `);if(a){const l=await(await this.getChain(r.chain).getAutomaticCircleBridge()).getRelayerFee(n.chain)+(s||0n);if(e<l)throw new Error(`Amount must be > ${l} (relayerFee + nativeGas)`)}return await Kn.from(this,{amount:e,from:r,to:n,automatic:a,payload:i,nativeGas:s})}async tokenTransfer(e,r,n,a,i,s,o){return await bn.from(this,{token:e,amount:r,from:n,to:a,automatic:i,payload:s,nativeGas:o})}resolver(e){return new iGe(this,e)}getContracts(e){var r;return(r=this.config.chains[e])==null?void 0:r.contracts}getPlatform(e){const r=this._platforms.get(e);if(!r)throw new Error(`Not able to retrieve platform ${e}. Did it get registered in the constructor?`);return r}getChain(e){const r=fs(e);return this._chains.has(e)||this._chains.set(e,this.getPlatform(r).getChain(e)),this._chains.get(e)}async getWrappedAsset(e,r){const a=await this.getChain(e).getTokenBridge();return{chain:e,address:await a.getWrappedAsset(r)}}async getOriginalAsset(e){return await(await this.getChain(e.chain).getTokenBridge()).getOriginalAsset(e.address)}async getTokenUniversalAddress(e,r){return await(await this.getChain(e).getTokenBridge()).getTokenUniversalAddress(r)}async getTokenNativeAddress(e,r,n){return await(await this.getChain(e).getTokenBridge()).getTokenNativeAddress(r,n)}async getDecimals(e,r){return await this.getChain(e).getDecimals(r)}async getBalance(e,r,n){return this.getChain(e).getBalance(n,r)}async getTokenAccount(e,r){return this.getChain(e.chain).getTokenAccount(e.address,r.address)}async getVaaBytes(e,r=kd){return await Kqe(this.config.api,e,r)}async getVaa(e,r,n=kd){return typeof e=="string"?await mie(this.config.api,e,r,n):await Qqe(this.config.api,e,r,n)}async getIsVaaEnqueued(e){return await aGe(this.config.api,e)}async getCircleAttestation(e,r=kd){return qqe(this.config.circleAPI,e,r)}async getTransactionStatus(e,r=kd){let n;if(typeof e=="string"){const a=await mie(this.config.api,e,"Uint8Array",r);if(!a)return null;n={emitter:a.emitterAddress,chain:a.emitterChain,sequence:a.sequence}}else n=e;return await Xqe(this.config.api,n,r)}async getTransactionsForAddress(e,r=50,n=0){return tGe(this.config.api,e,r,n)}static parseAddress(e,r){return Ns(e,r)}static canonicalAddress(e){return _a(e)}static chainAddress(e,r){return{chain:e,address:Zr.parseAddress(e,r)}}static tokenId(e,r){return kn(r)?bq(e):this.chainAddress(e,r)}static async parseMessageFromTx(e,r,n=kd){const i=await Hg(async()=>{try{const s=await e.parseTransaction(r);return s.length===0?null:s}catch(s){return console.error(s),null}},e.config.blockTime,n,"WormholeCore:ParseMessageFromTransaction");if(!i)throw new Error(`No WormholeMessageId found for ${r}`);return i}}class tbe{constructor(e){ce(this,"wh");this.wh=e}transferUrl(e){return`https://wormholescan.io/#/tx/${e}?network=${this.wh.network}`}}class $N extends tbe{}ce($N,"IS_AUTOMATIC",!0);class QT extends tbe{}ce(QT,"NATIVE_GAS_DROPOFF_SUPPORTED",!1),ce(QT,"IS_AUTOMATIC",!1);function qU(t){return t.complete!==void 0}function GU(t){return t.finalize!==void 0}class Sq{constructor(e,r,n,a){ce(this,"source");ce(this,"destination");ce(this,"fromChain");ce(this,"toChain");this.fromChain=e,this.toChain=r,this.source=n,this.destination=a}parseAmount(e){return m8(e,this.source.decimals)}amountFromBaseUnits(e){return da(e,this.source.decimals)}async displayQuote(e,r,n){let a={success:!0,sourceToken:{token:e.sourceToken.token,amount:da(e.sourceToken.amount,this.source.decimals)},destinationToken:{token:e.destinationToken.token,amount:da(e.destinationToken.amount,this.destination.decimals)},params:r};if(e.relayFee){const s=await(e.relayFee.token.chain===this.fromChain.chain?this.fromChain:this.toChain).getDecimals(e.relayFee.token.address);a.relayFee={token:e.relayFee.token,amount:da(e.relayFee.amount,s)}}if(e.destinationNativeGas){const i=await this.toChain.getDecimals("native");a.destinationNativeGas=da(e.destinationNativeGas,i)}return e.warnings&&e.warnings.length>0&&(a.warnings=[...e.warnings]),a.eta=e.eta,n&&(a.details=n),a}static async create(e,r,n,a){n=n??e.getChain(r.source.chain),a=a??e.getChain(r.destination.chain);const i=await gie(n,r.source,r.sourceDecimals),s=await gie(a,r.destination,r.destinationDecimals);return new Sq(n,a,i,s)}}class rbe extends Error{constructor(r){super(`Minimum transfer amount is ${di(r)}`);ce(this,"min");this.min=r}minAmount(){return this.min}}class YU extends $N{static supportedNetworks(){return["Mainnet","Testnet"]}static supportedChains(e){return Iae.has(e)?Iae.get(e):[]}static async supportedSourceTokens(e){const n=await(await e.getAutomaticTokenBridge()).getRegisteredTokens();return[bq(e.chain),...n.map(a=>({chain:e.chain,address:a}))]}static async supportedDestinationTokens(e,r,n){try{const a=await bn.lookupDestinationToken(r,n,e);if(!await(await n.getAutomaticTokenBridge()).isRegisteredToken(a.address))throw new Error("Destination token is not accepted by the AutomaticTokenBridge");return[a]}catch{return[]}}getDefaultOptions(){return{nativeGas:0}}async validate(e,r){try{const n=r.options??this.getDefaultOptions();if(n.nativeGas&&(n.nativeGas>1||n.nativeGas<0))throw new Error("Native gas must be between 0.0 and 1.0 (0% and 100%)");const{destination:a}=e;kn(a.id.address)&&n.nativeGas===0&&(n.nativeGas=0);const i={...r,options:n};return{valid:!0,params:{...i,normalizedParams:await this.normalizeTransferParams(e,i)}}}catch(n){return{valid:!1,params:r,error:n}}}async normalizeTransferParams(e,r){const n=e.parseAmount(r.amount),a=kn(e.source.id.address)?await e.fromChain.getNativeWrappedTokenId():e.source.id,s=await(await e.fromChain.getAutomaticTokenBridge()).getRelayerFee(e.toChain.chain,a.address),o=s*105n/100n;if(Pr(n)<o)throw new rbe(da(o,n.decimals));const c=Pr(n)-s;let l=da(0n,e.source.decimals);if(r.options&&r.options.nativeGas>0){let h=await(await e.toChain.getAutomaticTokenBridge()).maxSwapAmount(e.destination.id.address);const m=Is(da(c,n.decimals),bn.MAX_DECIMALS),y=await e.toChain.getDecimals(e.destination.id.address),x=Pr(d2(m,y));x<h&&(h=x);const M=1e4,E=BigInt(Math.floor(r.options.nativeGas*M)),S=h*E/BigInt(M),T=da(S,e.destination.decimals);l=d2(Is(T,bn.MAX_DECIMALS),e.source.decimals),Pr(l)>c&&(l=da(c,e.source.decimals))}return{fee:da(s,e.source.decimals),amount:n,nativeGasAmount:l}}async quote(e,r){const n=await e.fromChain.getAutomaticTokenBridge();if(oM(e.source.id)&&!await n.isRegisteredToken(e.source.id.address))return{success:!1,error:new Error("Source token is not registered")};try{let a=await bn.quoteTransfer(this.wh,e.fromChain,e.toChain,{automatic:!0,amount:Pr(r.normalizedParams.amount),token:e.source.id,nativeGas:Pr(r.normalizedParams.nativeGasAmount)});return e.displayQuote(a,r)}catch(a){return{success:!1,error:a}}}async initiate(e,r,n,a){const{params:i}=n,s=this.toTransferDetails(e,i,Zr.chainAddress(r.chain(),r.address()),a),o=await bn.transfer(e.fromChain,s,r);return{from:s.from.chain,to:s.to.chain,state:lr.SourceInitiated,originTxs:o}}async*track(e,r){try{yield*bn.track(this.wh,e,r)}catch(n){throw n}}toTransferDetails(e,r,n,a){return{from:n,to:a,automatic:!0,amount:Pr(r.normalizedParams.amount),token:e.source.id,nativeGas:Pr(r.normalizedParams.nativeGasAmount)}}}ce(YU,"NATIVE_GAS_DROPOFF_SUPPORTED",!0),ce(YU,"meta",{name:"AutomaticTokenBridge"});class nbe extends QT{static supportedNetworks(){return["Mainnet","Testnet"]}static supportedChains(e){return $We(e)}static async supportedSourceTokens(e){return Object.values(e.config.tokenMap).map(r=>Zr.tokenId(r.chain,r.address))}static async supportedDestinationTokens(e,r,n){try{return[await bn.lookupDestinationToken(r,n,e)]}catch{return[]}}getDefaultOptions(){return{payload:void 0}}async validate(e,r){const n=m8(r.amount,e.source.decimals);return{valid:!0,params:{amount:r.amount,normalizedParams:{amount:n},options:{}}}}async quote(e,r){try{return e.displayQuote(await bn.quoteTransfer(this.wh,e.fromChain,e.toChain,{token:e.source.id,amount:Pr(r.normalizedParams.amount),...r.options}),r)}catch(n){return{success:!1,error:n}}}async initiate(e,r,n,a){const{params:i}=n,s=await bn.destinationOverrides(e.fromChain,e.toChain,this.toTransferDetails(e,i,Zr.chainAddress(r.chain(),r.address()),a)),o=await bn.transfer(e.fromChain,s,r);return{from:s.from.chain,to:s.to.chain,state:lr.SourceInitiated,originTxs:o}}async complete(e,r){if(!gf(r))throw new Error("The source must be finalized in order to complete the transfer");const n=this.wh.getChain(r.to),a=await bn.redeem(n,r.attestation.attestation,e);return{...r,state:lr.DestinationInitiated,destinationTxs:a}}async resume(e){const r=await bn.from(this.wh,e,1e4);return bn.getReceipt(r)}async*track(e,r){yield*bn.track(this.wh,e,r)}toTransferDetails(e,r,n,a){return{from:n,to:a,token:e.source.id,amount:Pr(r.normalizedParams.amount),...r.options}}}ce(nbe,"meta",{name:"ManualTokenBridge"});const yie=15n,sGe=100n,xB=10000n,G4=class G4 extends $N{static supportedNetworks(){return["Mainnet"]}static supportedChains(e){return Dae.has(e)?Dae.get(e):[]}static async supportedSourceTokens(e){const r=await e.getPorticoBridge(),{tokenMap:n}=e.config;return r.supportedTokens().filter(a=>!n||R8.byAddress(n,_a(a.token))).map(a=>a.token)}static async supportedDestinationTokens(e,r,n){const[,a]=uC(r.network,r.chain,e),i=_a(a),s=await r.getPorticoBridge();try{const h=await s.getTransferrableToken(i);await bn.lookupDestinationToken(r,n,h)}catch{return[]}const c=(await n.getPorticoBridge()).supportedTokens(),{tokenMap:l}=n.config,d=s.getTokenGroup(i);return c.filter(h=>(h.group===d||h.group==="ETH"&&d==="WETH"||h.group==="WETH"&&d==="ETH")&&(!l||R8.byAddress(l,_a(h.token)))).map(h=>h.token)}getDefaultOptions(){return{}}async validate(e,r){try{if(!G4.supportedChains(e.fromChain.network).includes(e.fromChain.chain)||!G4.supportedChains(e.toChain.network).includes(e.toChain.chain))throw new Error("Protocol not supported");const{fromChain:n,toChain:a,source:i,destination:s}=e,{network:o}=n,[,c]=uC(o,n.chain,i.id),[,l]=uC(o,a.chain,s.id),d=await n.getPorticoBridge(),h=await a.getPorticoBridge(),m=await d.getTransferrableToken(_a(c)),y=await h.getTransferrableToken(_a(l));return{valid:!0,params:{amount:r.amount,options:r.options??this.getDefaultOptions(),normalizedParams:{amount:e.parseAmount(r.amount),canonicalSourceToken:m,canonicalDestinationToken:y,sourceToken:c,destinationToken:l}}}}catch(n){return{valid:!1,error:n,params:r}}}async quote(e,r){try{const n=await this.fetchSwapQuote(e,r),a=Math.max(e.source.decimals,e.destination.decimals),i=Pr(d2(r.normalizedParams.amount,a));if(Pr(d2(da(n.minAmountFinish,e.destination.decimals),a))<i-i*sGe/xB)throw new Error("Slippage too high");const c=await(await e.toChain.getPorticoBridge()).quoteRelay(r.normalizedParams.canonicalDestinationToken.address,r.normalizedParams.destinationToken.address),l={swapAmounts:n,relayerFee:c},d=l.swapAmounts.minAmountFinish-c;return d<0n?{success:!1,error:new Error(`Amount too low for slippage and fee, would result in negative destination amount (${d})`)}:await e.displayQuote({sourceToken:{token:r.normalizedParams.sourceToken,amount:Pr(r.normalizedParams.amount)},destinationToken:{token:r.normalizedParams.destinationToken,amount:l.swapAmounts.minAmountFinish-c},relayFee:{token:r.normalizedParams.destinationToken,amount:c},eta:tq(e.fromChain.chain)},r,l)}catch(n){return{success:!1,error:n}}}async initiate(e,r,n,a){const{params:i,details:s}=n,o=e.source.id.address,c=e.destination.id,l=await e.fromChain.getPorticoBridge(),d=l.getTokenGroup(o.toString()),m=(await e.toChain.getPorticoBridge()).getPorticoAddress(d),y=l.transfer(Zr.parseAddress(r.chain(),r.address()),a,o,Pr(i.normalizedParams.amount),c,m,s);return{originTxs:await H8(e.fromChain,y,r),state:lr.SourceInitiated,from:e.fromChain.chain,to:e.toChain.chain}}async*track(e,r){if(Aq(e)||zx(e)){const{txid:n}=e.originTxs[e.originTxs.length-1],a=await this.wh.getVaa(n,"PorticoBridge:Transfer",r);if(!a)throw new Error("No VAA found for transaction: "+n);const i={chain:a.emitterChain,emitter:a.emitterAddress,sequence:a.sequence};e={...e,state:lr.Attested,attestation:{id:i,attestation:a}},yield e}gf(e)&&await(await this.wh.getChain(e.to).getPorticoBridge()).isTransferCompleted(e.attestation.attestation)&&(e={...e,state:lr.DestinationFinalized},yield e),yield e}async complete(e,r){if(!gf(r))throw new Error("Source must be attested");const n=await this.wh.getChain(r.to),a=await n.getPorticoBridge(),i=Zr.chainAddress(e.chain(),e.address()),s=a.redeem(i.address,r.attestation.attestation);return await H8(n,s,e)}async fetchSwapQuote(e,r){const n=await e.fromChain.getPorticoBridge(),a=Pr(r.normalizedParams.amount),i=n.getTokenGroup(_a(r.normalizedParams.sourceToken)),s=await n.quoteSwap(r.normalizedParams.sourceToken.address,r.normalizedParams.canonicalSourceToken.address,i,a),o=s*yie/xB;if(o>=s)throw new Error("Start slippage too high");const c=await e.toChain.getPorticoBridge(),l=s-o,d=await c.quoteSwap(r.normalizedParams.canonicalDestinationToken.address,r.normalizedParams.destinationToken.address,i,l),h=d*yie/xB;if(h>=d)throw new Error("Finish slippage too high");const m=d-h;return{minAmountStart:l,minAmountFinish:m}}};ce(G4,"NATIVE_GAS_DROPOFF_SUPPORTED",!1),ce(G4,"meta",{name:"AutomaticPortico"});let KU=G4;class abe extends QT{static supportedNetworks(){return["Mainnet","Testnet"]}static supportedChains(e){return GT.has(e)?GT.get(e):[]}static async supportedSourceTokens(e){const{network:r,chain:n}=e;return B0.has(r,n)?[Zr.chainAddress(n,B0.get(r,n))]:[]}static async supportedDestinationTokens(e,r,n){const a=B0.get(r.network,r.chain);if(!a)return[];if(!bf(e,Zr.tokenId(r.chain,a)))return[];const{network:i,chain:s}=n;return B0.has(i,s)?[Zr.chainAddress(s,B0.get(i,s))]:[]}getDefaultOptions(){return{payload:void 0}}async validate(e,r){return{valid:!0,params:{normalizedParams:{amount:e.parseAmount(r.amount)},options:r.options??this.getDefaultOptions(),...r}}}async quote(e,r){try{return e.displayQuote(await Kn.quoteTransfer(e.fromChain,e.toChain,{automatic:!1,amount:Pr(r.normalizedParams.amount),...r.options}),r)}catch(n){return{success:!1,error:n}}}async initiate(e,r,n,a){const{params:i}=n,s=await Kn.destinationOverrides(e.fromChain,e.toChain,this.toTransferDetails(i,Zr.chainAddress(r.chain(),r.address()),a)),o=await Kn.transfer(e.fromChain,s,r),c=await Kn.getTransferMessage(e.fromChain,o[o.length-1].txid);return{from:s.from.chain,to:s.to.chain,state:lr.SourceFinalized,originTxs:o,attestation:{id:c.id,attestation:{message:c.message}}}}async complete(e,r){if(!gf(r))throw new Error("The source must be finalized in order to complete the transfer");const{id:n,attestation:a}=r.attestation;if(R9.isCircleAttestation(a)){const{message:i,attestation:s}=a;if(!s)throw new Error(`No Circle attestation for ${n}`);const o=this.wh.getChain(r.to),c=await o.getCircleBridge(),l=Zr.parseAddress(e.chain(),e.address()),d=c.redeem(l,i,s),h=await H8(o,d,e);return{...r,state:lr.DestinationInitiated,destinationTxs:h}}else return r}async resume(e){const r=await Kn.from(this.wh,e,1e4);return Kn.getReceipt(r)}async*track(e,r){yield*Kn.track(this.wh,e,r)}toTransferDetails(e,r,n){return{from:r,to:n,amount:Pr(e.normalizedParams.amount),automatic:!1,...e.options}}}ce(abe,"meta",{name:"ManualCCTP",provider:"Circle"});class ZU extends $N{static supportedNetworks(){return["Mainnet","Testnet"]}static supportedChains(e){return GT.has(e)?GT.get(e).filter(n=>{var a;return(a=EU.get(e,n))==null?void 0:a.wormholeRelayer}):[]}static async supportedSourceTokens(e){const{network:r,chain:n}=e;return B0.has(r,n)?[Zr.chainAddress(n,B0.get(r,n))]:[]}static async supportedDestinationTokens(e,r,n){const a=B0.get(r.network,r.chain);if(!a)return[];if(!bf(e,Zr.tokenId(r.chain,a)))return[];const{network:i,chain:s}=n;return B0.has(i,s)?[Zr.chainAddress(s,B0.get(i,s))]:[]}getDefaultOptions(){return{nativeGas:0}}async validate(e,r){try{const n=r.options??this.getDefaultOptions();return{valid:!0,params:{normalizedParams:await this.normalizeTransferParams(e,r),options:n,...r}}}catch(n){return{valid:!1,params:r,error:n}}}async quote(e,r){try{return e.displayQuote(await Kn.quoteTransfer(e.fromChain,e.toChain,{automatic:!0,amount:Pr(r.normalizedParams.amount),nativeGas:Pr(r.normalizedParams.nativeGasAmount)}),r)}catch(n){return{success:!1,error:n}}}async normalizeTransferParams(e,r){const n=e.parseAmount(r.amount),i=await(await e.fromChain.getAutomaticCircleBridge()).getRelayerFee(e.toChain.chain),s=i*105n/100n;if(Pr(n)<s)throw new rbe(da(s,n.decimals));const o=Pr(n)-i,l=(r.options??this.getDefaultOptions()).nativeGas??0;if(l>1||l<0)throw new Error("Native gas must be between 0.0 and 1.0 (0% and 100%)");let d=0n;if(l>0){let m=await(await e.toChain.getAutomaticCircleBridge()).maxSwapAmount();o<m&&(m=o);const y=1e4,x=BigInt(Math.floor(l*y));d=m*x/BigInt(y),d===o&&d>0n&&(d-=1n)}return{fee:e.amountFromBaseUnits(i),amount:n,nativeGasAmount:e.amountFromBaseUnits(d)}}toTransferDetails(e,r,n){return{from:r,to:n,amount:Pr(e.normalizedParams.amount),automatic:!0,nativeGas:Pr(e.normalizedParams.nativeGasAmount)}}async initiate(e,r,n,a){const{params:i}=n;let s=this.toTransferDetails(i,Zr.chainAddress(r.chain(),r.address()),a),o=await Kn.transfer(e.fromChain,s,r);const c=await Kn.getTransferMessage(e.fromChain,o[o.length-1].txid);return{from:s.from.chain,to:s.to.chain,state:lr.SourceFinalized,originTxs:o,attestation:{id:c.id,attestation:{message:c.message}}}}async*track(e,r){yield*Kn.track(this.wh,e,r)}}ce(ZU,"NATIVE_GAS_DROPOFF_SUPPORTED",!0),ce(ZU,"meta",{name:"AutomaticCCTP",provider:"Circle"});function oGe(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var ibe={exports:{}},Ur={},UA={exports:{}},QU={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */(function(t,e){var r=It,n=r.Buffer;function a(s,o){for(var c in s)o[c]=s[c]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?t.exports=r:(a(r,e),e.Buffer=i);function i(s,o,c){return n(s,o,c)}i.prototype=Object.create(n.prototype),a(n,i),i.from=function(s,o,c){if(typeof s=="number")throw new TypeError("Argument must not be a number");return n(s,o,c)},i.alloc=function(s,o,c){if(typeof s!="number")throw new TypeError("Argument must be a number");var l=n(s);return o!==void 0?typeof c=="string"?l.fill(o,c):l.fill(o):l.fill(0),l},i.allocUnsafe=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return n(s)},i.allocUnsafeSlow=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(s)}})(QU,QU.exports);var $r=QU.exports,vie;function qg(){if(vie)return UA.exports;vie=1;var t=65536,e=4294967295;function r(){throw new Error(`Secure random number generation is not supported by this browser.
|
|
70
70
|
Use Chrome, Firefox or Internet Explorer 11`)}var n=$r.Buffer,a=st.crypto||st.msCrypto;a&&a.getRandomValues?UA.exports=i:UA.exports=r;function i(s,o){if(s>e)throw new RangeError("requested too many random bytes");var c=n.allocUnsafe(s);if(s>0)if(s>t)for(var l=0;l<s;l+=t)a.getRandomValues(c.slice(l,l+t));else a.getRandomValues(c);return typeof o=="function"?Te.process.nextTick(function(){o(null,c)}):c}return UA.exports}var WA={exports:{}},xie;function Ar(){return xie||(xie=1,typeof Object.create=="function"?WA.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:WA.exports=function(e,r){if(r){e.super_=r;var n=function(){};n.prototype=r.prototype,e.prototype=new n,e.prototype.constructor=e}}),WA.exports}var VA={exports:{}},wie;function g3(){if(wie)return VA.exports;wie=1;var t=typeof Reflect=="object"?Reflect:null,e=t&&typeof t.apply=="function"?t.apply:function(_,L,O){return Function.prototype.apply.call(_,L,O)},r;t&&typeof t.ownKeys=="function"?r=t.ownKeys:Object.getOwnPropertySymbols?r=function(_){return Object.getOwnPropertyNames(_).concat(Object.getOwnPropertySymbols(_))}:r=function(_){return Object.getOwnPropertyNames(_)};function n(k){console&&console.warn&&console.warn(k)}var a=Number.isNaN||function(_){return _!==_};function i(){i.init.call(this)}VA.exports=i,VA.exports.once=S,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var s=10;function o(k){if(typeof k!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof k)}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(k){if(typeof k!="number"||k<0||a(k))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+k+".");s=k}}),i.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(_){if(typeof _!="number"||_<0||a(_))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+_+".");return this._maxListeners=_,this};function c(k){return k._maxListeners===void 0?i.defaultMaxListeners:k._maxListeners}i.prototype.getMaxListeners=function(){return c(this)},i.prototype.emit=function(_){for(var L=[],O=1;O<arguments.length;O++)L.push(arguments[O]);var B=_==="error",z=this._events;if(z!==void 0)B=B&&z.error===void 0;else if(!B)return!1;if(B){var F;if(L.length>0&&(F=L[0]),F instanceof Error)throw F;var I=new Error("Unhandled error."+(F?" ("+F.message+")":""));throw I.context=F,I}var u=z[_];if(u===void 0)return!1;if(typeof u=="function")e(u,this,L);else for(var f=u.length,b=x(u,f),O=0;O<f;++O)e(b[O],this,L);return!0};function l(k,_,L,O){var B,z,F;if(o(L),z=k._events,z===void 0?(z=k._events=Object.create(null),k._eventsCount=0):(z.newListener!==void 0&&(k.emit("newListener",_,L.listener?L.listener:L),z=k._events),F=z[_]),F===void 0)F=z[_]=L,++k._eventsCount;else if(typeof F=="function"?F=z[_]=O?[L,F]:[F,L]:O?F.unshift(L):F.push(L),B=c(k),B>0&&F.length>B&&!F.warned){F.warned=!0;var I=new Error("Possible EventEmitter memory leak detected. "+F.length+" "+String(_)+" listeners added. Use emitter.setMaxListeners() to increase limit");I.name="MaxListenersExceededWarning",I.emitter=k,I.type=_,I.count=F.length,n(I)}return k}i.prototype.addListener=function(_,L){return l(this,_,L,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(_,L){return l(this,_,L,!0)};function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(k,_,L){var O={fired:!1,wrapFn:void 0,target:k,type:_,listener:L},B=d.bind(O);return B.listener=L,O.wrapFn=B,B}i.prototype.once=function(_,L){return o(L),this.on(_,h(this,_,L)),this},i.prototype.prependOnceListener=function(_,L){return o(L),this.prependListener(_,h(this,_,L)),this},i.prototype.removeListener=function(_,L){var O,B,z,F,I;if(o(L),B=this._events,B===void 0)return this;if(O=B[_],O===void 0)return this;if(O===L||O.listener===L)--this._eventsCount===0?this._events=Object.create(null):(delete B[_],B.removeListener&&this.emit("removeListener",_,O.listener||L));else if(typeof O!="function"){for(z=-1,F=O.length-1;F>=0;F--)if(O[F]===L||O[F].listener===L){I=O[F].listener,z=F;break}if(z<0)return this;z===0?O.shift():M(O,z),O.length===1&&(B[_]=O[0]),B.removeListener!==void 0&&this.emit("removeListener",_,I||L)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(_){var L,O,B;if(O=this._events,O===void 0)return this;if(O.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):O[_]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete O[_]),this;if(arguments.length===0){var z=Object.keys(O),F;for(B=0;B<z.length;++B)F=z[B],F!=="removeListener"&&this.removeAllListeners(F);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(L=O[_],typeof L=="function")this.removeListener(_,L);else if(L!==void 0)for(B=L.length-1;B>=0;B--)this.removeListener(_,L[B]);return this};function m(k,_,L){var O=k._events;if(O===void 0)return[];var B=O[_];return B===void 0?[]:typeof B=="function"?L?[B.listener||B]:[B]:L?E(B):x(B,B.length)}i.prototype.listeners=function(_){return m(this,_,!0)},i.prototype.rawListeners=function(_){return m(this,_,!1)},i.listenerCount=function(k,_){return typeof k.listenerCount=="function"?k.listenerCount(_):y.call(k,_)},i.prototype.listenerCount=y;function y(k){var _=this._events;if(_!==void 0){var L=_[k];if(typeof L=="function")return 1;if(L!==void 0)return L.length}return 0}i.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]};function x(k,_){for(var L=new Array(_),O=0;O<_;++O)L[O]=k[O];return L}function M(k,_){for(;_+1<k.length;_++)k[_]=k[_+1];k.pop()}function E(k){for(var _=new Array(k.length),L=0;L<_.length;++L)_[L]=k[L].listener||k[L];return _}function S(k,_){return new Promise(function(L,O){function B(F){k.removeListener(_,z),O(F)}function z(){typeof k.removeListener=="function"&&k.removeListener("error",B),L([].slice.call(arguments))}D(k,_,z,{once:!0}),_!=="error"&&T(k,B,{once:!0})})}function T(k,_,L){typeof k.on=="function"&&D(k,"error",_,L)}function D(k,_,L,O){if(typeof k.on=="function")O.once?k.once(_,L):k.on(_,L);else if(typeof k.addEventListener=="function")k.addEventListener(_,function B(z){O.once&&k.removeEventListener(_,B),L(z)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof k)}return VA.exports}var wB,Mie;function sbe(){return Mie||(Mie=1,wB=g3().EventEmitter),wB}const cGe={},lGe=Object.freeze(Object.defineProperty({__proto__:null,default:cGe},Symbol.toStringTag,{value:"Module"})),c5=ds(lGe);var MB,Aie;function uGe(){if(Aie)return MB;Aie=1;function t(x,M){var E=Object.keys(x);if(Object.getOwnPropertySymbols){var S=Object.getOwnPropertySymbols(x);M&&(S=S.filter(function(T){return Object.getOwnPropertyDescriptor(x,T).enumerable})),E.push.apply(E,S)}return E}function e(x){for(var M=1;M<arguments.length;M++){var E=arguments[M]!=null?arguments[M]:{};M%2?t(Object(E),!0).forEach(function(S){r(x,S,E[S])}):Object.getOwnPropertyDescriptors?Object.defineProperties(x,Object.getOwnPropertyDescriptors(E)):t(Object(E)).forEach(function(S){Object.defineProperty(x,S,Object.getOwnPropertyDescriptor(E,S))})}return x}function r(x,M,E){return M=s(M),M in x?Object.defineProperty(x,M,{value:E,enumerable:!0,configurable:!0,writable:!0}):x[M]=E,x}function n(x,M){if(!(x instanceof M))throw new TypeError("Cannot call a class as a function")}function a(x,M){for(var E=0;E<M.length;E++){var S=M[E];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(x,s(S.key),S)}}function i(x,M,E){return M&&a(x.prototype,M),Object.defineProperty(x,"prototype",{writable:!1}),x}function s(x){var M=o(x,"string");return typeof M=="symbol"?M:String(M)}function o(x,M){if(typeof x!="object"||x===null)return x;var E=x[Symbol.toPrimitive];if(E!==void 0){var S=E.call(x,M);if(typeof S!="object")return S;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(x)}var c=It,l=c.Buffer,d=c5,h=d.inspect,m=h&&h.custom||"inspect";function y(x,M,E){l.prototype.copy.call(x,M,E)}return MB=function(){function x(){n(this,x),this.head=null,this.tail=null,this.length=0}return i(x,[{key:"push",value:function(E){var S={data:E,next:null};this.length>0?this.tail.next=S:this.head=S,this.tail=S,++this.length}},{key:"unshift",value:function(E){var S={data:E,next:this.head};this.length===0&&(this.tail=S),this.head=S,++this.length}},{key:"shift",value:function(){if(this.length!==0){var E=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,E}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(E){if(this.length===0)return"";for(var S=this.head,T=""+S.data;S=S.next;)T+=E+S.data;return T}},{key:"concat",value:function(E){if(this.length===0)return l.alloc(0);for(var S=l.allocUnsafe(E>>>0),T=this.head,D=0;T;)y(T.data,S,D),D+=T.data.length,T=T.next;return S}},{key:"consume",value:function(E,S){var T;return E<this.head.data.length?(T=this.head.data.slice(0,E),this.head.data=this.head.data.slice(E)):E===this.head.data.length?T=this.shift():T=S?this._getString(E):this._getBuffer(E),T}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(E){var S=this.head,T=1,D=S.data;for(E-=D.length;S=S.next;){var k=S.data,_=E>k.length?k.length:E;if(_===k.length?D+=k:D+=k.slice(0,E),E-=_,E===0){_===k.length?(++T,S.next?this.head=S.next:this.head=this.tail=null):(this.head=S,S.data=k.slice(_));break}++T}return this.length-=T,D}},{key:"_getBuffer",value:function(E){var S=l.allocUnsafe(E),T=this.head,D=1;for(T.data.copy(S),E-=T.data.length;T=T.next;){var k=T.data,_=E>k.length?k.length:E;if(k.copy(S,S.length-E,0,_),E-=_,E===0){_===k.length?(++D,T.next?this.head=T.next:this.head=this.tail=null):(this.head=T,T.data=k.slice(_));break}++D}return this.length-=D,S}},{key:m,value:function(E,S){return h(this,e(e({},S),{},{depth:0,customInspect:!1}))}}]),x}(),MB}var AB,Sie;function obe(){if(Sie)return AB;Sie=1;function t(s,o){var c=this,l=this._readableState&&this._readableState.destroyed,d=this._writableState&&this._writableState.destroyed;return l||d?(o?o(s):s&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,Te.process.nextTick(a,this,s)):Te.process.nextTick(a,this,s)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(s||null,function(h){!o&&h?c._writableState?c._writableState.errorEmitted?Te.process.nextTick(r,c):(c._writableState.errorEmitted=!0,Te.process.nextTick(e,c,h)):Te.process.nextTick(e,c,h):o?(Te.process.nextTick(r,c),o(h)):Te.process.nextTick(r,c)}),this)}function e(s,o){a(s,o),r(s)}function r(s){s._writableState&&!s._writableState.emitClose||s._readableState&&!s._readableState.emitClose||s.emit("close")}function n(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function a(s,o){s.emit("error",o)}function i(s,o){var c=s._readableState,l=s._writableState;c&&c.autoDestroy||l&&l.autoDestroy?s.destroy(o):s.emit("error",o)}return AB={destroy:t,undestroy:n,errorOrDestroy:i},AB}var SB={},Eie;function Gg(){if(Eie)return SB;Eie=1;function t(o,c){o.prototype=Object.create(c.prototype),o.prototype.constructor=o,o.__proto__=c}var e={};function r(o,c,l){l||(l=Error);function d(m,y,x){return typeof c=="string"?c:c(m,y,x)}var h=function(m){t(y,m);function y(x,M,E){return m.call(this,d(x,M,E))||this}return y}(l);h.prototype.name=l.name,h.prototype.code=o,e[o]=h}function n(o,c){if(Array.isArray(o)){var l=o.length;return o=o.map(function(d){return String(d)}),l>2?"one of ".concat(c," ").concat(o.slice(0,l-1).join(", "),", or ")+o[l-1]:l===2?"one of ".concat(c," ").concat(o[0]," or ").concat(o[1]):"of ".concat(c," ").concat(o[0])}else return"of ".concat(c," ").concat(String(o))}function a(o,c,l){return o.substr(0,c.length)===c}function i(o,c,l){return(l===void 0||l>o.length)&&(l=o.length),o.substring(l-c.length,l)===c}function s(o,c,l){return typeof l!="number"&&(l=0),l+c.length>o.length?!1:o.indexOf(c,l)!==-1}return r("ERR_INVALID_OPT_VALUE",function(o,c){return'The value "'+c+'" is invalid for option "'+o+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(o,c,l){var d;typeof c=="string"&&a(c,"not ")?(d="must not be",c=c.replace(/^not /,"")):d="must be";var h;if(i(o," argument"))h="The ".concat(o," ").concat(d," ").concat(n(c,"type"));else{var m=s(o,".")?"property":"argument";h='The "'.concat(o,'" ').concat(m," ").concat(d," ").concat(n(c,"type"))}return h+=". Received type ".concat(typeof l),h},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(o){return"The "+o+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(o){return"Cannot call "+o+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(o){return"Unknown encoding: "+o},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),SB.codes=e,SB}var EB,Cie;function cbe(){if(Cie)return EB;Cie=1;var t=Gg().codes.ERR_INVALID_OPT_VALUE;function e(n,a,i){return n.highWaterMark!=null?n.highWaterMark:a?n[i]:null}function r(n,a,i,s){var o=e(a,s,i);if(o!=null){if(!(isFinite(o)&&Math.floor(o)===o)||o<0){var c=s?i:"highWaterMark";throw new t(c,o)}return Math.floor(o)}return n.objectMode?16:16*1024}return EB={getHighWaterMark:r},EB}var CB,Tie;function Eq(){if(Tie)return CB;Tie=1,CB=t;function t(r,n){if(e("noDeprecation"))return r;var a=!1;function i(){if(!a){if(e("throwDeprecation"))throw new Error(n);e("traceDeprecation")?console.trace(n):console.warn(n),a=!0}return r.apply(this,arguments)}return i}function e(r){try{if(!st.localStorage)return!1}catch{return!1}var n=st.localStorage[r];return n==null?!1:String(n).toLowerCase()==="true"}return CB}var TB,Iie;function lbe(){if(Iie)return TB;Iie=1,TB=B;function t(V){var U=this;this.next=null,this.entry=null,this.finish=function(){Y(U,V)}}var e;B.WritableState=L;var r={deprecate:Eq()},n=sbe(),a=It.Buffer,i=(typeof st<"u"?st:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function s(V){return a.from(V)}function o(V){return a.isBuffer(V)||V instanceof i}var c=obe(),l=cbe(),d=l.getHighWaterMark,h=Gg().codes,m=h.ERR_INVALID_ARG_TYPE,y=h.ERR_METHOD_NOT_IMPLEMENTED,x=h.ERR_MULTIPLE_CALLBACK,M=h.ERR_STREAM_CANNOT_PIPE,E=h.ERR_STREAM_DESTROYED,S=h.ERR_STREAM_NULL_VALUES,T=h.ERR_STREAM_WRITE_AFTER_END,D=h.ERR_UNKNOWN_ENCODING,k=c.errorOrDestroy;Ar()(B,n);function _(){}function L(V,U,G){e=e||U9(),V=V||{},typeof G!="boolean"&&(G=U instanceof e),this.objectMode=!!V.objectMode,G&&(this.objectMode=this.objectMode||!!V.writableObjectMode),this.highWaterMark=d(this,V,"writableHighWaterMark",G),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Q=V.decodeStrings===!1;this.decodeStrings=!Q,this.defaultEncoding=V.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(re){v(U,re)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=V.emitClose!==!1,this.autoDestroy=!!V.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new t(this)}L.prototype.getBuffer=function(){for(var U=this.bufferedRequest,G=[];U;)G.push(U),U=U.next;return G},function(){try{Object.defineProperty(L.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var O;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(O=Function.prototype[Symbol.hasInstance],Object.defineProperty(B,Symbol.hasInstance,{value:function(U){return O.call(this,U)?!0:this!==B?!1:U&&U._writableState instanceof L}})):O=function(U){return U instanceof this};function B(V){e=e||U9();var U=this instanceof e;if(!U&&!O.call(B,this))return new B(V);this._writableState=new L(V,this,U),this.writable=!0,V&&(typeof V.write=="function"&&(this._write=V.write),typeof V.writev=="function"&&(this._writev=V.writev),typeof V.destroy=="function"&&(this._destroy=V.destroy),typeof V.final=="function"&&(this._final=V.final)),n.call(this)}B.prototype.pipe=function(){k(this,new M)};function z(V,U){var G=new T;k(V,G),Te.process.nextTick(U,G)}function F(V,U,G,Q){var re;return G===null?re=new S:typeof G!="string"&&!U.objectMode&&(re=new m("chunk",["string","Buffer"],G)),re?(k(V,re),Te.process.nextTick(Q,re),!1):!0}B.prototype.write=function(V,U,G){var Q=this._writableState,re=!1,q=!Q.objectMode&&o(V);return q&&!a.isBuffer(V)&&(V=s(V)),typeof U=="function"&&(G=U,U=null),q?U="buffer":U||(U=Q.defaultEncoding),typeof G!="function"&&(G=_),Q.ending?z(this,G):(q||F(this,Q,V,G))&&(Q.pendingcb++,re=u(this,Q,q,V,U,G)),re},B.prototype.cork=function(){this._writableState.corked++},B.prototype.uncork=function(){var V=this._writableState;V.corked&&(V.corked--,!V.writing&&!V.corked&&!V.bufferProcessing&&V.bufferedRequest&&w(this,V))},B.prototype.setDefaultEncoding=function(U){if(typeof U=="string"&&(U=U.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((U+"").toLowerCase())>-1))throw new D(U);return this._writableState.defaultEncoding=U,this},Object.defineProperty(B.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function I(V,U,G){return!V.objectMode&&V.decodeStrings!==!1&&typeof U=="string"&&(U=a.from(U,G)),U}Object.defineProperty(B.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function u(V,U,G,Q,re,q){if(!G){var H=I(U,Q,re);Q!==H&&(G=!0,re="buffer",Q=H)}var Z=U.objectMode?1:Q.length;U.length+=Z;var ae=U.length<U.highWaterMark;if(ae||(U.needDrain=!0),U.writing||U.corked){var de=U.lastBufferedRequest;U.lastBufferedRequest={chunk:Q,encoding:re,isBuf:G,callback:q,next:null},de?de.next=U.lastBufferedRequest:U.bufferedRequest=U.lastBufferedRequest,U.bufferedRequestCount+=1}else f(V,U,!1,Z,Q,re,q);return ae}function f(V,U,G,Q,re,q,H){U.writelen=Q,U.writecb=H,U.writing=!0,U.sync=!0,U.destroyed?U.onwrite(new E("write")):G?V._writev(re,U.onwrite):V._write(re,q,U.onwrite),U.sync=!1}function b(V,U,G,Q,re){--U.pendingcb,G?(Te.process.nextTick(re,Q),Te.process.nextTick(R,V,U),V._writableState.errorEmitted=!0,k(V,Q)):(re(Q),V._writableState.errorEmitted=!0,k(V,Q),R(V,U))}function g(V){V.writing=!1,V.writecb=null,V.length-=V.writelen,V.writelen=0}function v(V,U){var G=V._writableState,Q=G.sync,re=G.writecb;if(typeof re!="function")throw new x;if(g(G),U)b(V,G,Q,U,re);else{var q=p(G)||V.destroyed;!q&&!G.corked&&!G.bufferProcessing&&G.bufferedRequest&&w(V,G),Q?Te.process.nextTick(A,V,G,q,re):A(V,G,q,re)}}function A(V,U,G,Q){G||N(V,U),U.pendingcb--,Q(),R(V,U)}function N(V,U){U.length===0&&U.needDrain&&(U.needDrain=!1,V.emit("drain"))}function w(V,U){U.bufferProcessing=!0;var G=U.bufferedRequest;if(V._writev&&G&&G.next){var Q=U.bufferedRequestCount,re=new Array(Q),q=U.corkedRequestsFree;q.entry=G;for(var H=0,Z=!0;G;)re[H]=G,G.isBuf||(Z=!1),G=G.next,H+=1;re.allBuffers=Z,f(V,U,!0,U.length,re,"",q.finish),U.pendingcb++,U.lastBufferedRequest=null,q.next?(U.corkedRequestsFree=q.next,q.next=null):U.corkedRequestsFree=new t(U),U.bufferedRequestCount=0}else{for(;G;){var ae=G.chunk,de=G.encoding,ye=G.callback,je=U.objectMode?1:ae.length;if(f(V,U,!1,je,ae,de,ye),G=G.next,U.bufferedRequestCount--,U.writing)break}G===null&&(U.lastBufferedRequest=null)}U.bufferedRequest=G,U.bufferProcessing=!1}B.prototype._write=function(V,U,G){G(new y("_write()"))},B.prototype._writev=null,B.prototype.end=function(V,U,G){var Q=this._writableState;return typeof V=="function"?(G=V,V=null,U=null):typeof U=="function"&&(G=U,U=null),V!=null&&this.write(V,U),Q.corked&&(Q.corked=1,this.uncork()),Q.ending||$(this,Q,G),this},Object.defineProperty(B.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function p(V){return V.ending&&V.length===0&&V.bufferedRequest===null&&!V.finished&&!V.writing}function C(V,U){V._final(function(G){U.pendingcb--,G&&k(V,G),U.prefinished=!0,V.emit("prefinish"),R(V,U)})}function P(V,U){!U.prefinished&&!U.finalCalled&&(typeof V._final=="function"&&!U.destroyed?(U.pendingcb++,U.finalCalled=!0,Te.process.nextTick(C,V,U)):(U.prefinished=!0,V.emit("prefinish")))}function R(V,U){var G=p(U);if(G&&(P(V,U),U.pendingcb===0&&(U.finished=!0,V.emit("finish"),U.autoDestroy))){var Q=V._readableState;(!Q||Q.autoDestroy&&Q.endEmitted)&&V.destroy()}return G}function $(V,U,G){U.ending=!0,R(V,U),G&&(U.finished?Te.process.nextTick(G):V.once("finish",G)),U.ended=!0,V.writable=!1}function Y(V,U,G){var Q=V.entry;for(V.entry=null;Q;){var re=Q.callback;U.pendingcb--,re(G),Q=Q.next}U.corkedRequestsFree.next=V}return Object.defineProperty(B.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(U){this._writableState&&(this._writableState.destroyed=U)}}),B.prototype.destroy=c.destroy,B.prototype._undestroy=c.undestroy,B.prototype._destroy=function(V,U){U(V)},TB}var IB,Die;function U9(){if(Die)return IB;Die=1;var t=Object.keys||function(l){var d=[];for(var h in l)d.push(h);return d};IB=s;var e=ube(),r=lbe();Ar()(s,e);for(var n=t(r.prototype),a=0;a<n.length;a++){var i=n[a];s.prototype[i]||(s.prototype[i]=r.prototype[i])}function s(l){if(!(this instanceof s))return new s(l);e.call(this,l),r.call(this,l),this.allowHalfOpen=!0,l&&(l.readable===!1&&(this.readable=!1),l.writable===!1&&(this.writable=!1),l.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",o)))}Object.defineProperty(s.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(s.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(s.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function o(){this._writableState.ended||Te.process.nextTick(c,this)}function c(l){l.end()}return Object.defineProperty(s.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(d){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=d,this._writableState.destroyed=d)}}),IB}var DB={},Nie;function Px(){if(Nie)return DB;Nie=1;var t=$r.Buffer,e=t.isEncoding||function(S){switch(S=""+S,S&&S.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function r(S){if(!S)return"utf8";for(var T;;)switch(S){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return S;default:if(T)return;S=(""+S).toLowerCase(),T=!0}}function n(S){var T=r(S);if(typeof T!="string"&&(t.isEncoding===e||!e(S)))throw new Error("Unknown encoding: "+S);return T||S}DB.StringDecoder=a;function a(S){this.encoding=n(S);var T;switch(this.encoding){case"utf16le":this.text=h,this.end=m,T=4;break;case"utf8":this.fillLast=c,T=4;break;case"base64":this.text=y,this.end=x,T=3;break;default:this.write=M,this.end=E;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(T)}a.prototype.write=function(S){if(S.length===0)return"";var T,D;if(this.lastNeed){if(T=this.fillLast(S),T===void 0)return"";D=this.lastNeed,this.lastNeed=0}else D=0;return D<S.length?T?T+this.text(S,D):this.text(S,D):T||""},a.prototype.end=d,a.prototype.text=l,a.prototype.fillLast=function(S){if(this.lastNeed<=S.length)return S.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);S.copy(this.lastChar,this.lastTotal-this.lastNeed,0,S.length),this.lastNeed-=S.length};function i(S){return S<=127?0:S>>5===6?2:S>>4===14?3:S>>3===30?4:S>>6===2?-1:-2}function s(S,T,D){var k=T.length-1;if(k<D)return 0;var _=i(T[k]);return _>=0?(_>0&&(S.lastNeed=_-1),_):--k<D||_===-2?0:(_=i(T[k]),_>=0?(_>0&&(S.lastNeed=_-2),_):--k<D||_===-2?0:(_=i(T[k]),_>=0?(_>0&&(_===2?_=0:S.lastNeed=_-3),_):0))}function o(S,T,D){if((T[0]&192)!==128)return S.lastNeed=0,"�";if(S.lastNeed>1&&T.length>1){if((T[1]&192)!==128)return S.lastNeed=1,"�";if(S.lastNeed>2&&T.length>2&&(T[2]&192)!==128)return S.lastNeed=2,"�"}}function c(S){var T=this.lastTotal-this.lastNeed,D=o(this,S);if(D!==void 0)return D;if(this.lastNeed<=S.length)return S.copy(this.lastChar,T,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);S.copy(this.lastChar,T,0,S.length),this.lastNeed-=S.length}function l(S,T){var D=s(this,S,T);if(!this.lastNeed)return S.toString("utf8",T);this.lastTotal=D;var k=S.length-(D-this.lastNeed);return S.copy(this.lastChar,0,k),S.toString("utf8",T,k)}function d(S){var T=S&&S.length?this.write(S):"";return this.lastNeed?T+"�":T}function h(S,T){if((S.length-T)%2===0){var D=S.toString("utf16le",T);if(D){var k=D.charCodeAt(D.length-1);if(k>=55296&&k<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=S[S.length-2],this.lastChar[1]=S[S.length-1],D.slice(0,-1)}return D}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=S[S.length-1],S.toString("utf16le",T,S.length-1)}function m(S){var T=S&&S.length?this.write(S):"";if(this.lastNeed){var D=this.lastTotal-this.lastNeed;return T+this.lastChar.toString("utf16le",0,D)}return T}function y(S,T){var D=(S.length-T)%3;return D===0?S.toString("base64",T):(this.lastNeed=3-D,this.lastTotal=3,D===1?this.lastChar[0]=S[S.length-1]:(this.lastChar[0]=S[S.length-2],this.lastChar[1]=S[S.length-1]),S.toString("base64",T,S.length-D))}function x(S){var T=S&&S.length?this.write(S):"";return this.lastNeed?T+this.lastChar.toString("base64",0,3-this.lastNeed):T}function M(S){return S.toString(this.encoding)}function E(S){return S&&S.length?this.write(S):""}return DB}var NB,kie;function Cq(){if(kie)return NB;kie=1;var t=Gg().codes.ERR_STREAM_PREMATURE_CLOSE;function e(i){var s=!1;return function(){if(!s){s=!0;for(var o=arguments.length,c=new Array(o),l=0;l<o;l++)c[l]=arguments[l];i.apply(this,c)}}}function r(){}function n(i){return i.setHeader&&typeof i.abort=="function"}function a(i,s,o){if(typeof s=="function")return a(i,null,s);s||(s={}),o=e(o||r);var c=s.readable||s.readable!==!1&&i.readable,l=s.writable||s.writable!==!1&&i.writable,d=function(){i.writable||m()},h=i._writableState&&i._writableState.finished,m=function(){l=!1,h=!0,c||o.call(i)},y=i._readableState&&i._readableState.endEmitted,x=function(){c=!1,y=!0,l||o.call(i)},M=function(D){o.call(i,D)},E=function(){var D;if(c&&!y)return(!i._readableState||!i._readableState.ended)&&(D=new t),o.call(i,D);if(l&&!h)return(!i._writableState||!i._writableState.ended)&&(D=new t),o.call(i,D)},S=function(){i.req.on("finish",m)};return n(i)?(i.on("complete",m),i.on("abort",E),i.req?S():i.on("request",S)):l&&!i._writableState&&(i.on("end",d),i.on("close",d)),i.on("end",x),i.on("finish",m),s.error!==!1&&i.on("error",M),i.on("close",E),function(){i.removeListener("complete",m),i.removeListener("abort",E),i.removeListener("request",S),i.req&&i.req.removeListener("finish",m),i.removeListener("end",d),i.removeListener("close",d),i.removeListener("finish",m),i.removeListener("end",x),i.removeListener("error",M),i.removeListener("close",E)}}return NB=a,NB}var kB,_ie;function dGe(){if(_ie)return kB;_ie=1;var t;function e(D,k,_){return k=r(k),k in D?Object.defineProperty(D,k,{value:_,enumerable:!0,configurable:!0,writable:!0}):D[k]=_,D}function r(D){var k=n(D,"string");return typeof k=="symbol"?k:String(k)}function n(D,k){if(typeof D!="object"||D===null)return D;var _=D[Symbol.toPrimitive];if(_!==void 0){var L=_.call(D,k);if(typeof L!="object")return L;throw new TypeError("@@toPrimitive must return a primitive value.")}return(k==="string"?String:Number)(D)}var a=Cq(),i=Symbol("lastResolve"),s=Symbol("lastReject"),o=Symbol("error"),c=Symbol("ended"),l=Symbol("lastPromise"),d=Symbol("handlePromise"),h=Symbol("stream");function m(D,k){return{value:D,done:k}}function y(D){var k=D[i];if(k!==null){var _=D[h].read();_!==null&&(D[l]=null,D[i]=null,D[s]=null,k(m(_,!1)))}}function x(D){Te.process.nextTick(y,D)}function M(D,k){return function(_,L){D.then(function(){if(k[c]){_(m(void 0,!0));return}k[d](_,L)},L)}}var E=Object.getPrototypeOf(function(){}),S=Object.setPrototypeOf((t={get stream(){return this[h]},next:function(){var k=this,_=this[o];if(_!==null)return Promise.reject(_);if(this[c])return Promise.resolve(m(void 0,!0));if(this[h].destroyed)return new Promise(function(z,F){Te.process.nextTick(function(){k[o]?F(k[o]):z(m(void 0,!0))})});var L=this[l],O;if(L)O=new Promise(M(L,this));else{var B=this[h].read();if(B!==null)return Promise.resolve(m(B,!1));O=new Promise(this[d])}return this[l]=O,O}},e(t,Symbol.asyncIterator,function(){return this}),e(t,"return",function(){var k=this;return new Promise(function(_,L){k[h].destroy(null,function(O){if(O){L(O);return}_(m(void 0,!0))})})}),t),E),T=function(k){var _,L=Object.create(S,(_={},e(_,h,{value:k,writable:!0}),e(_,i,{value:null,writable:!0}),e(_,s,{value:null,writable:!0}),e(_,o,{value:null,writable:!0}),e(_,c,{value:k._readableState.endEmitted,writable:!0}),e(_,d,{value:function(B,z){var F=L[h].read();F?(L[l]=null,L[i]=null,L[s]=null,B(m(F,!1))):(L[i]=B,L[s]=z)},writable:!0}),_));return L[l]=null,a(k,function(O){if(O&&O.code!=="ERR_STREAM_PREMATURE_CLOSE"){var B=L[s];B!==null&&(L[l]=null,L[i]=null,L[s]=null,B(O)),L[o]=O;return}var z=L[i];z!==null&&(L[l]=null,L[i]=null,L[s]=null,z(m(void 0,!0))),L[c]=!0}),k.on("readable",x.bind(null,L)),L};return kB=T,kB}var _B,Lie;function fGe(){return Lie||(Lie=1,_B=function(){throw new Error("Readable.from is not available in the browser")}),_B}var LB,Bie;function ube(){if(Bie)return LB;Bie=1,LB=z;var t;z.ReadableState=B,g3().EventEmitter;var e=function(H,Z){return H.listeners(Z).length},r=sbe(),n=It.Buffer,a=(typeof st<"u"?st:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function i(q){return n.from(q)}function s(q){return n.isBuffer(q)||q instanceof a}var o=c5,c;o&&o.debuglog?c=o.debuglog("stream"):c=function(){};var l=uGe(),d=obe(),h=cbe(),m=h.getHighWaterMark,y=Gg().codes,x=y.ERR_INVALID_ARG_TYPE,M=y.ERR_STREAM_PUSH_AFTER_EOF,E=y.ERR_METHOD_NOT_IMPLEMENTED,S=y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,T,D,k;Ar()(z,r);var _=d.errorOrDestroy,L=["error","close","destroy","pause","resume"];function O(q,H,Z){if(typeof q.prependListener=="function")return q.prependListener(H,Z);!q._events||!q._events[H]?q.on(H,Z):Array.isArray(q._events[H])?q._events[H].unshift(Z):q._events[H]=[Z,q._events[H]]}function B(q,H,Z){t=t||U9(),q=q||{},typeof Z!="boolean"&&(Z=H instanceof t),this.objectMode=!!q.objectMode,Z&&(this.objectMode=this.objectMode||!!q.readableObjectMode),this.highWaterMark=m(this,q,"readableHighWaterMark",Z),this.buffer=new l,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=q.emitClose!==!1,this.autoDestroy=!!q.autoDestroy,this.destroyed=!1,this.defaultEncoding=q.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,q.encoding&&(T||(T=Px().StringDecoder),this.decoder=new T(q.encoding),this.encoding=q.encoding)}function z(q){if(t=t||U9(),!(this instanceof z))return new z(q);var H=this instanceof t;this._readableState=new B(q,this,H),this.readable=!0,q&&(typeof q.read=="function"&&(this._read=q.read),typeof q.destroy=="function"&&(this._destroy=q.destroy)),r.call(this)}Object.defineProperty(z.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(H){this._readableState&&(this._readableState.destroyed=H)}}),z.prototype.destroy=d.destroy,z.prototype._undestroy=d.undestroy,z.prototype._destroy=function(q,H){H(q)},z.prototype.push=function(q,H){var Z=this._readableState,ae;return Z.objectMode?ae=!0:typeof q=="string"&&(H=H||Z.defaultEncoding,H!==Z.encoding&&(q=n.from(q,H),H=""),ae=!0),F(this,q,H,!1,ae)},z.prototype.unshift=function(q){return F(this,q,null,!0,!1)};function F(q,H,Z,ae,de){c("readableAddChunk",H);var ye=q._readableState;if(H===null)ye.reading=!1,v(q,ye);else{var je;if(de||(je=u(ye,H)),je)_(q,je);else if(ye.objectMode||H&&H.length>0)if(typeof H!="string"&&!ye.objectMode&&Object.getPrototypeOf(H)!==n.prototype&&(H=i(H)),ae)ye.endEmitted?_(q,new S):I(q,ye,H,!0);else if(ye.ended)_(q,new M);else{if(ye.destroyed)return!1;ye.reading=!1,ye.decoder&&!Z?(H=ye.decoder.write(H),ye.objectMode||H.length!==0?I(q,ye,H,!1):w(q,ye)):I(q,ye,H,!1)}else ae||(ye.reading=!1,w(q,ye))}return!ye.ended&&(ye.length<ye.highWaterMark||ye.length===0)}function I(q,H,Z,ae){H.flowing&&H.length===0&&!H.sync?(H.awaitDrain=0,q.emit("data",Z)):(H.length+=H.objectMode?1:Z.length,ae?H.buffer.unshift(Z):H.buffer.push(Z),H.needReadable&&A(q)),w(q,H)}function u(q,H){var Z;return!s(H)&&typeof H!="string"&&H!==void 0&&!q.objectMode&&(Z=new x("chunk",["string","Buffer","Uint8Array"],H)),Z}z.prototype.isPaused=function(){return this._readableState.flowing===!1},z.prototype.setEncoding=function(q){T||(T=Px().StringDecoder);var H=new T(q);this._readableState.decoder=H,this._readableState.encoding=this._readableState.decoder.encoding;for(var Z=this._readableState.buffer.head,ae="";Z!==null;)ae+=H.write(Z.data),Z=Z.next;return this._readableState.buffer.clear(),ae!==""&&this._readableState.buffer.push(ae),this._readableState.length=ae.length,this};var f=1073741824;function b(q){return q>=f?q=f:(q--,q|=q>>>1,q|=q>>>2,q|=q>>>4,q|=q>>>8,q|=q>>>16,q++),q}function g(q,H){return q<=0||H.length===0&&H.ended?0:H.objectMode?1:q!==q?H.flowing&&H.length?H.buffer.head.data.length:H.length:(q>H.highWaterMark&&(H.highWaterMark=b(q)),q<=H.length?q:H.ended?H.length:(H.needReadable=!0,0))}z.prototype.read=function(q){c("read",q),q=parseInt(q,10);var H=this._readableState,Z=q;if(q!==0&&(H.emittedReadable=!1),q===0&&H.needReadable&&((H.highWaterMark!==0?H.length>=H.highWaterMark:H.length>0)||H.ended))return c("read: emitReadable",H.length,H.ended),H.length===0&&H.ended?G(this):A(this),null;if(q=g(q,H),q===0&&H.ended)return H.length===0&&G(this),null;var ae=H.needReadable;c("need readable",ae),(H.length===0||H.length-q<H.highWaterMark)&&(ae=!0,c("length less than watermark",ae)),H.ended||H.reading?(ae=!1,c("reading or ended",ae)):ae&&(c("do read"),H.reading=!0,H.sync=!0,H.length===0&&(H.needReadable=!0),this._read(H.highWaterMark),H.sync=!1,H.reading||(q=g(Z,H)));var de;return q>0?de=U(q,H):de=null,de===null?(H.needReadable=H.length<=H.highWaterMark,q=0):(H.length-=q,H.awaitDrain=0),H.length===0&&(H.ended||(H.needReadable=!0),Z!==q&&H.ended&&G(this)),de!==null&&this.emit("data",de),de};function v(q,H){if(c("onEofChunk"),!H.ended){if(H.decoder){var Z=H.decoder.end();Z&&Z.length&&(H.buffer.push(Z),H.length+=H.objectMode?1:Z.length)}H.ended=!0,H.sync?A(q):(H.needReadable=!1,H.emittedReadable||(H.emittedReadable=!0,N(q)))}}function A(q){var H=q._readableState;c("emitReadable",H.needReadable,H.emittedReadable),H.needReadable=!1,H.emittedReadable||(c("emitReadable",H.flowing),H.emittedReadable=!0,Te.process.nextTick(N,q))}function N(q){var H=q._readableState;c("emitReadable_",H.destroyed,H.length,H.ended),!H.destroyed&&(H.length||H.ended)&&(q.emit("readable"),H.emittedReadable=!1),H.needReadable=!H.flowing&&!H.ended&&H.length<=H.highWaterMark,V(q)}function w(q,H){H.readingMore||(H.readingMore=!0,Te.process.nextTick(p,q,H))}function p(q,H){for(;!H.reading&&!H.ended&&(H.length<H.highWaterMark||H.flowing&&H.length===0);){var Z=H.length;if(c("maybeReadMore read 0"),q.read(0),Z===H.length)break}H.readingMore=!1}z.prototype._read=function(q){_(this,new E("_read()"))},z.prototype.pipe=function(q,H){var Z=this,ae=this._readableState;switch(ae.pipesCount){case 0:ae.pipes=q;break;case 1:ae.pipes=[ae.pipes,q];break;default:ae.pipes.push(q);break}ae.pipesCount+=1,c("pipe count=%d opts=%j",ae.pipesCount,H);var de=(!H||H.end!==!1)&&q!==Te.process.stdout&&q!==Te.process.stderr,ye=de?we:We;ae.endEmitted?Te.process.nextTick(ye):Z.once("end",ye),q.on("unpipe",je);function je(X,W){c("onunpipe"),X===Z&&W&&W.hasUnpiped===!1&&(W.hasUnpiped=!0,Me())}function we(){c("onend"),q.end()}var ve=C(Z);q.on("drain",ve);var qe=!1;function Me(){c("cleanup"),q.removeListener("close",te),q.removeListener("finish",me),q.removeListener("drain",ve),q.removeListener("error",ke),q.removeListener("unpipe",je),Z.removeListener("end",we),Z.removeListener("end",We),Z.removeListener("data",ue),qe=!0,ae.awaitDrain&&(!q._writableState||q._writableState.needDrain)&&ve()}Z.on("data",ue);function ue(X){c("ondata");var W=q.write(X);c("dest.write",W),W===!1&&((ae.pipesCount===1&&ae.pipes===q||ae.pipesCount>1&&re(ae.pipes,q)!==-1)&&!qe&&(c("false write response, pause",ae.awaitDrain),ae.awaitDrain++),Z.pause())}function ke(X){c("onerror",X),We(),q.removeListener("error",ke),e(q,"error")===0&&_(q,X)}O(q,"error",ke);function te(){q.removeListener("finish",me),We()}q.once("close",te);function me(){c("onfinish"),q.removeListener("close",te),We()}q.once("finish",me);function We(){c("unpipe"),Z.unpipe(q)}return q.emit("pipe",Z),ae.flowing||(c("pipe resume"),Z.resume()),q};function C(q){return function(){var Z=q._readableState;c("pipeOnDrain",Z.awaitDrain),Z.awaitDrain&&Z.awaitDrain--,Z.awaitDrain===0&&e(q,"data")&&(Z.flowing=!0,V(q))}}z.prototype.unpipe=function(q){var H=this._readableState,Z={hasUnpiped:!1};if(H.pipesCount===0)return this;if(H.pipesCount===1)return q&&q!==H.pipes?this:(q||(q=H.pipes),H.pipes=null,H.pipesCount=0,H.flowing=!1,q&&q.emit("unpipe",this,Z),this);if(!q){var ae=H.pipes,de=H.pipesCount;H.pipes=null,H.pipesCount=0,H.flowing=!1;for(var ye=0;ye<de;ye++)ae[ye].emit("unpipe",this,{hasUnpiped:!1});return this}var je=re(H.pipes,q);return je===-1?this:(H.pipes.splice(je,1),H.pipesCount-=1,H.pipesCount===1&&(H.pipes=H.pipes[0]),q.emit("unpipe",this,Z),this)},z.prototype.on=function(q,H){var Z=r.prototype.on.call(this,q,H),ae=this._readableState;return q==="data"?(ae.readableListening=this.listenerCount("readable")>0,ae.flowing!==!1&&this.resume()):q==="readable"&&!ae.endEmitted&&!ae.readableListening&&(ae.readableListening=ae.needReadable=!0,ae.flowing=!1,ae.emittedReadable=!1,c("on readable",ae.length,ae.reading),ae.length?A(this):ae.reading||Te.process.nextTick(R,this)),Z},z.prototype.addListener=z.prototype.on,z.prototype.removeListener=function(q,H){var Z=r.prototype.removeListener.call(this,q,H);return q==="readable"&&Te.process.nextTick(P,this),Z},z.prototype.removeAllListeners=function(q){var H=r.prototype.removeAllListeners.apply(this,arguments);return(q==="readable"||q===void 0)&&Te.process.nextTick(P,this),H};function P(q){var H=q._readableState;H.readableListening=q.listenerCount("readable")>0,H.resumeScheduled&&!H.paused?H.flowing=!0:q.listenerCount("data")>0&&q.resume()}function R(q){c("readable nexttick read 0"),q.read(0)}z.prototype.resume=function(){var q=this._readableState;return q.flowing||(c("resume"),q.flowing=!q.readableListening,$(this,q)),q.paused=!1,this};function $(q,H){H.resumeScheduled||(H.resumeScheduled=!0,Te.process.nextTick(Y,q,H))}function Y(q,H){c("resume",H.reading),H.reading||q.read(0),H.resumeScheduled=!1,q.emit("resume"),V(q),H.flowing&&!H.reading&&q.read(0)}z.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function V(q){var H=q._readableState;for(c("flow",H.flowing);H.flowing&&q.read()!==null;);}z.prototype.wrap=function(q){var H=this,Z=this._readableState,ae=!1;q.on("end",function(){if(c("wrapped end"),Z.decoder&&!Z.ended){var je=Z.decoder.end();je&&je.length&&H.push(je)}H.push(null)}),q.on("data",function(je){if(c("wrapped data"),Z.decoder&&(je=Z.decoder.write(je)),!(Z.objectMode&&je==null)&&!(!Z.objectMode&&(!je||!je.length))){var we=H.push(je);we||(ae=!0,q.pause())}});for(var de in q)this[de]===void 0&&typeof q[de]=="function"&&(this[de]=function(we){return function(){return q[we].apply(q,arguments)}}(de));for(var ye=0;ye<L.length;ye++)q.on(L[ye],this.emit.bind(this,L[ye]));return this._read=function(je){c("wrapped _read",je),ae&&(ae=!1,q.resume())},this},typeof Symbol=="function"&&(z.prototype[Symbol.asyncIterator]=function(){return D===void 0&&(D=dGe()),D(this)}),Object.defineProperty(z.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(z.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(z.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(H){this._readableState&&(this._readableState.flowing=H)}}),z._fromList=U,Object.defineProperty(z.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function U(q,H){if(H.length===0)return null;var Z;return H.objectMode?Z=H.buffer.shift():!q||q>=H.length?(H.decoder?Z=H.buffer.join(""):H.buffer.length===1?Z=H.buffer.first():Z=H.buffer.concat(H.length),H.buffer.clear()):Z=H.buffer.consume(q,H.decoder),Z}function G(q){var H=q._readableState;c("endReadable",H.endEmitted),H.endEmitted||(H.ended=!0,Te.process.nextTick(Q,H,q))}function Q(q,H){if(c("endReadableNT",q.endEmitted,q.length),!q.endEmitted&&q.length===0&&(q.endEmitted=!0,H.readable=!1,H.emit("end"),q.autoDestroy)){var Z=H._writableState;(!Z||Z.autoDestroy&&Z.finished)&&H.destroy()}}typeof Symbol=="function"&&(z.from=function(q,H){return k===void 0&&(k=fGe()),k(z,q,H)});function re(q,H){for(var Z=0,ae=q.length;Z<ae;Z++)if(q[Z]===H)return Z;return-1}return LB}var BB,jie;function dbe(){if(jie)return BB;jie=1,BB=o;var t=Gg().codes,e=t.ERR_METHOD_NOT_IMPLEMENTED,r=t.ERR_MULTIPLE_CALLBACK,n=t.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=t.ERR_TRANSFORM_WITH_LENGTH_0,i=U9();Ar()(o,i);function s(d,h){var m=this._transformState;m.transforming=!1;var y=m.writecb;if(y===null)return this.emit("error",new r);m.writechunk=null,m.writecb=null,h!=null&&this.push(h),y(d);var x=this._readableState;x.reading=!1,(x.needReadable||x.length<x.highWaterMark)&&this._read(x.highWaterMark)}function o(d){if(!(this instanceof o))return new o(d);i.call(this,d),this._transformState={afterTransform:s.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,d&&(typeof d.transform=="function"&&(this._transform=d.transform),typeof d.flush=="function"&&(this._flush=d.flush)),this.on("prefinish",c)}function c(){var d=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(h,m){l(d,h,m)}):l(this,null,null)}o.prototype.push=function(d,h){return this._transformState.needTransform=!1,i.prototype.push.call(this,d,h)},o.prototype._transform=function(d,h,m){m(new e("_transform()"))},o.prototype._write=function(d,h,m){var y=this._transformState;if(y.writecb=m,y.writechunk=d,y.writeencoding=h,!y.transforming){var x=this._readableState;(y.needTransform||x.needReadable||x.length<x.highWaterMark)&&this._read(x.highWaterMark)}},o.prototype._read=function(d){var h=this._transformState;h.writechunk!==null&&!h.transforming?(h.transforming=!0,this._transform(h.writechunk,h.writeencoding,h.afterTransform)):h.needTransform=!0},o.prototype._destroy=function(d,h){i.prototype._destroy.call(this,d,function(m){h(m)})};function l(d,h,m){if(h)return d.emit("error",h);if(m!=null&&d.push(m),d._writableState.length)throw new a;if(d._transformState.transforming)throw new n;return d.push(null)}return BB}var jB,zie;function pGe(){if(zie)return jB;zie=1,jB=e;var t=dbe();Ar()(e,t);function e(r){if(!(this instanceof e))return new e(r);t.call(this,r)}return e.prototype._transform=function(r,n,a){a(null,r)},jB}var zB,Pie;function hGe(){if(Pie)return zB;Pie=1;var t;function e(m){var y=!1;return function(){y||(y=!0,m.apply(void 0,arguments))}}var r=Gg().codes,n=r.ERR_MISSING_ARGS,a=r.ERR_STREAM_DESTROYED;function i(m){if(m)throw m}function s(m){return m.setHeader&&typeof m.abort=="function"}function o(m,y,x,M){M=e(M);var E=!1;m.on("close",function(){E=!0}),t===void 0&&(t=Cq()),t(m,{readable:y,writable:x},function(T){if(T)return M(T);E=!0,M()});var S=!1;return function(T){if(!E&&!S){if(S=!0,s(m))return m.abort();if(typeof m.destroy=="function")return m.destroy();M(T||new a("pipe"))}}}function c(m){m()}function l(m,y){return m.pipe(y)}function d(m){return!m.length||typeof m[m.length-1]!="function"?i:m.pop()}function h(){for(var m=arguments.length,y=new Array(m),x=0;x<m;x++)y[x]=arguments[x];var M=d(y);if(Array.isArray(y[0])&&(y=y[0]),y.length<2)throw new n("streams");var E,S=y.map(function(T,D){var k=D<y.length-1,_=D>0;return o(T,k,_,function(L){E||(E=L),L&&S.forEach(c),!k&&(S.forEach(c),M(E))})});return y.reduce(l)}return zB=h,zB}var PB,Oie;function HN(){if(Oie)return PB;Oie=1,PB=r;var t=g3().EventEmitter,e=Ar();e(r,t),r.Readable=ube(),r.Writable=lbe(),r.Duplex=U9(),r.Transform=dbe(),r.PassThrough=pGe(),r.finished=Cq(),r.pipeline=hGe(),r.Stream=r;function r(){t.call(this)}return r.prototype.pipe=function(n,a){var i=this;function s(y){n.writable&&n.write(y)===!1&&i.pause&&i.pause()}i.on("data",s);function o(){i.readable&&i.resume&&i.resume()}n.on("drain",o),!n._isStdio&&(!a||a.end!==!1)&&(i.on("end",l),i.on("close",d));var c=!1;function l(){c||(c=!0,n.end())}function d(){c||(c=!0,typeof n.destroy=="function"&&n.destroy())}function h(y){if(m(),t.listenerCount(this,"error")===0)throw y}i.on("error",h),n.on("error",h);function m(){i.removeListener("data",s),n.removeListener("drain",o),i.removeListener("end",l),i.removeListener("close",d),i.removeListener("error",h),n.removeListener("error",h),i.removeListener("end",m),i.removeListener("close",m),n.removeListener("close",m)}return i.on("end",m),i.on("close",m),n.on("close",m),n.emit("pipe",i),n},PB}var OB,Rie;function fbe(){if(Rie)return OB;Rie=1;var t=$r.Buffer,e=HN().Transform,r=Ar();function n(o){e.call(this),this._block=t.allocUnsafe(o),this._blockSize=o,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r(n,e),n.prototype._transform=function(o,c,l){var d=null;try{this.update(o,c)}catch(h){d=h}l(d)},n.prototype._flush=function(o){var c=null;try{this.push(this.digest())}catch(l){c=l}o(c)};var a=typeof Uint8Array<"u",i=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&ArrayBuffer.isView&&(t.prototype instanceof Uint8Array||t.TYPED_ARRAY_SUPPORT);function s(o,c){if(o instanceof t)return o;if(typeof o=="string")return t.from(o,c);if(i&&ArrayBuffer.isView(o)){if(o.byteLength===0)return t.alloc(0);var l=t.from(o.buffer,o.byteOffset,o.byteLength);if(l.byteLength===o.byteLength)return l}if(a&&o instanceof Uint8Array||t.isBuffer(o)&&o.constructor&&typeof o.constructor.isBuffer=="function"&&o.constructor.isBuffer(o))return t.from(o);throw new TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}return n.prototype.update=function(o,c){if(this._finalized)throw new Error("Digest already called");o=s(o,c);for(var l=this._block,d=0;this._blockOffset+o.length-d>=this._blockSize;){for(var h=this._blockOffset;h<this._blockSize;)l[h++]=o[d++];this._update(),this._blockOffset=0}for(;d<o.length;)l[this._blockOffset++]=o[d++];for(var m=0,y=o.length*8;y>0;++m)this._length[m]+=y,y=this._length[m]/4294967296|0,y>0&&(this._length[m]-=4294967296*y);return this},n.prototype._update=function(){throw new Error("_update is not implemented")},n.prototype.digest=function(o){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var c=this._digest();o!==void 0&&(c=c.toString(o)),this._block.fill(0),this._blockOffset=0;for(var l=0;l<4;++l)this._length[l]=0;return c},n.prototype._digest=function(){throw new Error("_digest is not implemented")},OB=n,OB}var RB,Fie;function Tq(){if(Fie)return RB;Fie=1;var t=Ar(),e=fbe(),r=$r.Buffer,n=new Array(16);function a(){e.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}t(a,e),a.prototype._update=function(){for(var d=n,h=0;h<16;++h)d[h]=this._block.readInt32LE(h*4);var m=this._a,y=this._b,x=this._c,M=this._d;m=s(m,y,x,M,d[0],3614090360,7),M=s(M,m,y,x,d[1],3905402710,12),x=s(x,M,m,y,d[2],606105819,17),y=s(y,x,M,m,d[3],3250441966,22),m=s(m,y,x,M,d[4],4118548399,7),M=s(M,m,y,x,d[5],1200080426,12),x=s(x,M,m,y,d[6],2821735955,17),y=s(y,x,M,m,d[7],4249261313,22),m=s(m,y,x,M,d[8],1770035416,7),M=s(M,m,y,x,d[9],2336552879,12),x=s(x,M,m,y,d[10],4294925233,17),y=s(y,x,M,m,d[11],2304563134,22),m=s(m,y,x,M,d[12],1804603682,7),M=s(M,m,y,x,d[13],4254626195,12),x=s(x,M,m,y,d[14],2792965006,17),y=s(y,x,M,m,d[15],1236535329,22),m=o(m,y,x,M,d[1],4129170786,5),M=o(M,m,y,x,d[6],3225465664,9),x=o(x,M,m,y,d[11],643717713,14),y=o(y,x,M,m,d[0],3921069994,20),m=o(m,y,x,M,d[5],3593408605,5),M=o(M,m,y,x,d[10],38016083,9),x=o(x,M,m,y,d[15],3634488961,14),y=o(y,x,M,m,d[4],3889429448,20),m=o(m,y,x,M,d[9],568446438,5),M=o(M,m,y,x,d[14],3275163606,9),x=o(x,M,m,y,d[3],4107603335,14),y=o(y,x,M,m,d[8],1163531501,20),m=o(m,y,x,M,d[13],2850285829,5),M=o(M,m,y,x,d[2],4243563512,9),x=o(x,M,m,y,d[7],1735328473,14),y=o(y,x,M,m,d[12],2368359562,20),m=c(m,y,x,M,d[5],4294588738,4),M=c(M,m,y,x,d[8],2272392833,11),x=c(x,M,m,y,d[11],1839030562,16),y=c(y,x,M,m,d[14],4259657740,23),m=c(m,y,x,M,d[1],2763975236,4),M=c(M,m,y,x,d[4],1272893353,11),x=c(x,M,m,y,d[7],4139469664,16),y=c(y,x,M,m,d[10],3200236656,23),m=c(m,y,x,M,d[13],681279174,4),M=c(M,m,y,x,d[0],3936430074,11),x=c(x,M,m,y,d[3],3572445317,16),y=c(y,x,M,m,d[6],76029189,23),m=c(m,y,x,M,d[9],3654602809,4),M=c(M,m,y,x,d[12],3873151461,11),x=c(x,M,m,y,d[15],530742520,16),y=c(y,x,M,m,d[2],3299628645,23),m=l(m,y,x,M,d[0],4096336452,6),M=l(M,m,y,x,d[7],1126891415,10),x=l(x,M,m,y,d[14],2878612391,15),y=l(y,x,M,m,d[5],4237533241,21),m=l(m,y,x,M,d[12],1700485571,6),M=l(M,m,y,x,d[3],2399980690,10),x=l(x,M,m,y,d[10],4293915773,15),y=l(y,x,M,m,d[1],2240044497,21),m=l(m,y,x,M,d[8],1873313359,6),M=l(M,m,y,x,d[15],4264355552,10),x=l(x,M,m,y,d[6],2734768916,15),y=l(y,x,M,m,d[13],1309151649,21),m=l(m,y,x,M,d[4],4149444226,6),M=l(M,m,y,x,d[11],3174756917,10),x=l(x,M,m,y,d[2],718787259,15),y=l(y,x,M,m,d[9],3951481745,21),this._a=this._a+m|0,this._b=this._b+y|0,this._c=this._c+x|0,this._d=this._d+M|0},a.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var d=r.allocUnsafe(16);return d.writeInt32LE(this._a,0),d.writeInt32LE(this._b,4),d.writeInt32LE(this._c,8),d.writeInt32LE(this._d,12),d};function i(d,h){return d<<h|d>>>32-h}function s(d,h,m,y,x,M,E){return i(d+(h&m|~h&y)+x+M|0,E)+h|0}function o(d,h,m,y,x,M,E){return i(d+(h&y|m&~y)+x+M|0,E)+h|0}function c(d,h,m,y,x,M,E){return i(d+(h^m^y)+x+M|0,E)+h|0}function l(d,h,m,y,x,M,E){return i(d+(m^(h|~y))+x+M|0,E)+h|0}return RB=a,RB}var FB,Uie;function Iq(){if(Uie)return FB;Uie=1;var t=It.Buffer,e=Ar(),r=fbe(),n=new Array(16),a=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],i=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],s=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],o=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],c=[0,1518500249,1859775393,2400959708,2840853838],l=[1352829926,1548603684,1836072691,2053994217,0];function d(){r.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}e(d,r),d.prototype._update=function(){for(var S=n,T=0;T<16;++T)S[T]=this._block.readInt32LE(T*4);for(var D=this._a|0,k=this._b|0,_=this._c|0,L=this._d|0,O=this._e|0,B=this._a|0,z=this._b|0,F=this._c|0,I=this._d|0,u=this._e|0,f=0;f<80;f+=1){var b,g;f<16?(b=m(D,k,_,L,O,S[a[f]],c[0],s[f]),g=E(B,z,F,I,u,S[i[f]],l[0],o[f])):f<32?(b=y(D,k,_,L,O,S[a[f]],c[1],s[f]),g=M(B,z,F,I,u,S[i[f]],l[1],o[f])):f<48?(b=x(D,k,_,L,O,S[a[f]],c[2],s[f]),g=x(B,z,F,I,u,S[i[f]],l[2],o[f])):f<64?(b=M(D,k,_,L,O,S[a[f]],c[3],s[f]),g=y(B,z,F,I,u,S[i[f]],l[3],o[f])):(b=E(D,k,_,L,O,S[a[f]],c[4],s[f]),g=m(B,z,F,I,u,S[i[f]],l[4],o[f])),D=O,O=L,L=h(_,10),_=k,k=b,B=u,u=I,I=h(F,10),F=z,z=g}var v=this._b+_+I|0;this._b=this._c+L+u|0,this._c=this._d+O+B|0,this._d=this._e+D+z|0,this._e=this._a+k+F|0,this._a=v},d.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var S=t.alloc?t.alloc(20):new t(20);return S.writeInt32LE(this._a,0),S.writeInt32LE(this._b,4),S.writeInt32LE(this._c,8),S.writeInt32LE(this._d,12),S.writeInt32LE(this._e,16),S};function h(S,T){return S<<T|S>>>32-T}function m(S,T,D,k,_,L,O,B){return h(S+(T^D^k)+L+O|0,B)+_|0}function y(S,T,D,k,_,L,O,B){return h(S+(T&D|~T&k)+L+O|0,B)+_|0}function x(S,T,D,k,_,L,O,B){return h(S+((T|~D)^k)+L+O|0,B)+_|0}function M(S,T,D,k,_,L,O,B){return h(S+(T&k|D&~k)+L+O|0,B)+_|0}function E(S,T,D,k,_,L,O,B){return h(S+(T^(D|~k))+L+O|0,B)+_|0}return FB=d,FB}var UB={exports:{}},WB,Wie;function Yg(){if(Wie)return WB;Wie=1;var t=$r.Buffer;function e(r,n){this._block=t.alloc(r),this._finalSize=n,this._blockSize=r,this._len=0}return e.prototype.update=function(r,n){typeof r=="string"&&(n=n||"utf8",r=t.from(r,n));for(var a=this._block,i=this._blockSize,s=r.length,o=this._len,c=0;c<s;){for(var l=o%i,d=Math.min(s-c,i-l),h=0;h<d;h++)a[l+h]=r[c+h];o+=d,c+=d,o%i===0&&this._update(a)}return this._len+=s,this},e.prototype.digest=function(r){var n=this._len%this._blockSize;this._block[n]=128,this._block.fill(0,n+1),n>=this._finalSize&&(this._update(this._block),this._block.fill(0));var a=this._len*8;if(a<=4294967295)this._block.writeUInt32BE(a,this._blockSize-4);else{var i=(a&4294967295)>>>0,s=(a-i)/4294967296;this._block.writeUInt32BE(s,this._blockSize-8),this._block.writeUInt32BE(i,this._blockSize-4)}this._update(this._block);var o=this._hash();return r?o.toString(r):o},e.prototype._update=function(){throw new Error("_update must be implemented by subclass")},WB=e,WB}var VB,Vie;function mGe(){if(Vie)return VB;Vie=1;var t=Ar(),e=Yg(),r=$r.Buffer,n=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function i(){this.init(),this._w=a,e.call(this,64,56)}t(i,e),i.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function s(l){return l<<5|l>>>27}function o(l){return l<<30|l>>>2}function c(l,d,h,m){return l===0?d&h|~d&m:l===2?d&h|d&m|h&m:d^h^m}return i.prototype._update=function(l){for(var d=this._w,h=this._a|0,m=this._b|0,y=this._c|0,x=this._d|0,M=this._e|0,E=0;E<16;++E)d[E]=l.readInt32BE(E*4);for(;E<80;++E)d[E]=d[E-3]^d[E-8]^d[E-14]^d[E-16];for(var S=0;S<80;++S){var T=~~(S/20),D=s(h)+c(T,m,y,x)+M+d[S]+n[T]|0;M=x,x=y,y=o(m),m=h,h=D}this._a=h+this._a|0,this._b=m+this._b|0,this._c=y+this._c|0,this._d=x+this._d|0,this._e=M+this._e|0},i.prototype._hash=function(){var l=r.allocUnsafe(20);return l.writeInt32BE(this._a|0,0),l.writeInt32BE(this._b|0,4),l.writeInt32BE(this._c|0,8),l.writeInt32BE(this._d|0,12),l.writeInt32BE(this._e|0,16),l},VB=i,VB}var $B,$ie;function bGe(){if($ie)return $B;$ie=1;var t=Ar(),e=Yg(),r=$r.Buffer,n=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function i(){this.init(),this._w=a,e.call(this,64,56)}t(i,e),i.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function s(d){return d<<1|d>>>31}function o(d){return d<<5|d>>>27}function c(d){return d<<30|d>>>2}function l(d,h,m,y){return d===0?h&m|~h&y:d===2?h&m|h&y|m&y:h^m^y}return i.prototype._update=function(d){for(var h=this._w,m=this._a|0,y=this._b|0,x=this._c|0,M=this._d|0,E=this._e|0,S=0;S<16;++S)h[S]=d.readInt32BE(S*4);for(;S<80;++S)h[S]=s(h[S-3]^h[S-8]^h[S-14]^h[S-16]);for(var T=0;T<80;++T){var D=~~(T/20),k=o(m)+l(D,y,x,M)+E+h[T]+n[D]|0;E=M,M=x,x=c(y),y=m,m=k}this._a=m+this._a|0,this._b=y+this._b|0,this._c=x+this._c|0,this._d=M+this._d|0,this._e=E+this._e|0},i.prototype._hash=function(){var d=r.allocUnsafe(20);return d.writeInt32BE(this._a|0,0),d.writeInt32BE(this._b|0,4),d.writeInt32BE(this._c|0,8),d.writeInt32BE(this._d|0,12),d.writeInt32BE(this._e|0,16),d},$B=i,$B}var HB,Hie;function pbe(){if(Hie)return HB;Hie=1;var t=Ar(),e=Yg(),r=$r.Buffer,n=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],a=new Array(64);function i(){this.init(),this._w=a,e.call(this,64,56)}t(i,e),i.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function s(m,y,x){return x^m&(y^x)}function o(m,y,x){return m&y|x&(m|y)}function c(m){return(m>>>2|m<<30)^(m>>>13|m<<19)^(m>>>22|m<<10)}function l(m){return(m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7)}function d(m){return(m>>>7|m<<25)^(m>>>18|m<<14)^m>>>3}function h(m){return(m>>>17|m<<15)^(m>>>19|m<<13)^m>>>10}return i.prototype._update=function(m){for(var y=this._w,x=this._a|0,M=this._b|0,E=this._c|0,S=this._d|0,T=this._e|0,D=this._f|0,k=this._g|0,_=this._h|0,L=0;L<16;++L)y[L]=m.readInt32BE(L*4);for(;L<64;++L)y[L]=h(y[L-2])+y[L-7]+d(y[L-15])+y[L-16]|0;for(var O=0;O<64;++O){var B=_+l(T)+s(T,D,k)+n[O]+y[O]|0,z=c(x)+o(x,M,E)|0;_=k,k=D,D=T,T=S+B|0,S=E,E=M,M=x,x=B+z|0}this._a=x+this._a|0,this._b=M+this._b|0,this._c=E+this._c|0,this._d=S+this._d|0,this._e=T+this._e|0,this._f=D+this._f|0,this._g=k+this._g|0,this._h=_+this._h|0},i.prototype._hash=function(){var m=r.allocUnsafe(32);return m.writeInt32BE(this._a,0),m.writeInt32BE(this._b,4),m.writeInt32BE(this._c,8),m.writeInt32BE(this._d,12),m.writeInt32BE(this._e,16),m.writeInt32BE(this._f,20),m.writeInt32BE(this._g,24),m.writeInt32BE(this._h,28),m},HB=i,HB}var qB,qie;function gGe(){if(qie)return qB;qie=1;var t=Ar(),e=pbe(),r=Yg(),n=$r.Buffer,a=new Array(64);function i(){this.init(),this._w=a,r.call(this,64,56)}return t(i,e),i.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},i.prototype._hash=function(){var s=n.allocUnsafe(28);return s.writeInt32BE(this._a,0),s.writeInt32BE(this._b,4),s.writeInt32BE(this._c,8),s.writeInt32BE(this._d,12),s.writeInt32BE(this._e,16),s.writeInt32BE(this._f,20),s.writeInt32BE(this._g,24),s},qB=i,qB}var GB,Gie;function hbe(){if(Gie)return GB;Gie=1;var t=Ar(),e=Yg(),r=$r.Buffer,n=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],a=new Array(160);function i(){this.init(),this._w=a,e.call(this,128,112)}t(i,e),i.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function s(M,E,S){return S^M&(E^S)}function o(M,E,S){return M&E|S&(M|E)}function c(M,E){return(M>>>28|E<<4)^(E>>>2|M<<30)^(E>>>7|M<<25)}function l(M,E){return(M>>>14|E<<18)^(M>>>18|E<<14)^(E>>>9|M<<23)}function d(M,E){return(M>>>1|E<<31)^(M>>>8|E<<24)^M>>>7}function h(M,E){return(M>>>1|E<<31)^(M>>>8|E<<24)^(M>>>7|E<<25)}function m(M,E){return(M>>>19|E<<13)^(E>>>29|M<<3)^M>>>6}function y(M,E){return(M>>>19|E<<13)^(E>>>29|M<<3)^(M>>>6|E<<26)}function x(M,E){return M>>>0<E>>>0?1:0}return i.prototype._update=function(M){for(var E=this._w,S=this._ah|0,T=this._bh|0,D=this._ch|0,k=this._dh|0,_=this._eh|0,L=this._fh|0,O=this._gh|0,B=this._hh|0,z=this._al|0,F=this._bl|0,I=this._cl|0,u=this._dl|0,f=this._el|0,b=this._fl|0,g=this._gl|0,v=this._hl|0,A=0;A<32;A+=2)E[A]=M.readInt32BE(A*4),E[A+1]=M.readInt32BE(A*4+4);for(;A<160;A+=2){var N=E[A-30],w=E[A-15*2+1],p=d(N,w),C=h(w,N);N=E[A-2*2],w=E[A-2*2+1];var P=m(N,w),R=y(w,N),$=E[A-7*2],Y=E[A-7*2+1],V=E[A-16*2],U=E[A-16*2+1],G=C+Y|0,Q=p+$+x(G,C)|0;G=G+R|0,Q=Q+P+x(G,R)|0,G=G+U|0,Q=Q+V+x(G,U)|0,E[A]=Q,E[A+1]=G}for(var re=0;re<160;re+=2){Q=E[re],G=E[re+1];var q=o(S,T,D),H=o(z,F,I),Z=c(S,z),ae=c(z,S),de=l(_,f),ye=l(f,_),je=n[re],we=n[re+1],ve=s(_,L,O),qe=s(f,b,g),Me=v+ye|0,ue=B+de+x(Me,v)|0;Me=Me+qe|0,ue=ue+ve+x(Me,qe)|0,Me=Me+we|0,ue=ue+je+x(Me,we)|0,Me=Me+G|0,ue=ue+Q+x(Me,G)|0;var ke=ae+H|0,te=Z+q+x(ke,ae)|0;B=O,v=g,O=L,g=b,L=_,b=f,f=u+Me|0,_=k+ue+x(f,u)|0,k=D,u=I,D=T,I=F,T=S,F=z,z=Me+ke|0,S=ue+te+x(z,Me)|0}this._al=this._al+z|0,this._bl=this._bl+F|0,this._cl=this._cl+I|0,this._dl=this._dl+u|0,this._el=this._el+f|0,this._fl=this._fl+b|0,this._gl=this._gl+g|0,this._hl=this._hl+v|0,this._ah=this._ah+S+x(this._al,z)|0,this._bh=this._bh+T+x(this._bl,F)|0,this._ch=this._ch+D+x(this._cl,I)|0,this._dh=this._dh+k+x(this._dl,u)|0,this._eh=this._eh+_+x(this._el,f)|0,this._fh=this._fh+L+x(this._fl,b)|0,this._gh=this._gh+O+x(this._gl,g)|0,this._hh=this._hh+B+x(this._hl,v)|0},i.prototype._hash=function(){var M=r.allocUnsafe(64);function E(S,T,D){M.writeInt32BE(S,D),M.writeInt32BE(T,D+4)}return E(this._ah,this._al,0),E(this._bh,this._bl,8),E(this._ch,this._cl,16),E(this._dh,this._dl,24),E(this._eh,this._el,32),E(this._fh,this._fl,40),E(this._gh,this._gl,48),E(this._hh,this._hl,56),M},GB=i,GB}var YB,Yie;function yGe(){if(Yie)return YB;Yie=1;var t=Ar(),e=hbe(),r=Yg(),n=$r.Buffer,a=new Array(160);function i(){this.init(),this._w=a,r.call(this,128,112)}return t(i,e),i.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},i.prototype._hash=function(){var s=n.allocUnsafe(48);function o(c,l,d){s.writeInt32BE(c,d),s.writeInt32BE(l,d+4)}return o(this._ah,this._al,0),o(this._bh,this._bl,8),o(this._ch,this._cl,16),o(this._dh,this._dl,24),o(this._eh,this._el,32),o(this._fh,this._fl,40),s},YB=i,YB}var Kie;function Dq(){if(Kie)return UB.exports;Kie=1;var t=UB.exports=function(r){r=r.toLowerCase();var n=t[r];if(!n)throw new Error(r+" is not supported (we accept pull requests)");return new n};return t.sha=mGe(),t.sha1=bGe(),t.sha224=gGe(),t.sha256=pbe(),t.sha384=yGe(),t.sha512=hbe(),UB.exports}var KB,Zie;function l5(){if(Zie)return KB;Zie=1;var t=$r.Buffer,e=HN().Transform,r=Px().StringDecoder,n=Ar();function a(c){e.call(this),this.hashMode=typeof c=="string",this.hashMode?this[c]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}n(a,e);var i=typeof Uint8Array<"u",s=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&ArrayBuffer.isView&&(t.prototype instanceof Uint8Array||t.TYPED_ARRAY_SUPPORT);function o(c,l){if(c instanceof t)return c;if(typeof c=="string")return t.from(c,l);if(s&&ArrayBuffer.isView(c)){if(c.byteLength===0)return t.alloc(0);var d=t.from(c.buffer,c.byteOffset,c.byteLength);if(d.byteLength===c.byteLength)return d}if(i&&c instanceof Uint8Array||t.isBuffer(c)&&c.constructor&&typeof c.constructor.isBuffer=="function"&&c.constructor.isBuffer(c))return t.from(c);throw new TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}return a.prototype.update=function(c,l,d){var h=o(c,l),m=this._update(h);return this.hashMode?this:(d&&(m=this._toString(m,d)),m)},a.prototype.setAutoPadding=function(){},a.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},a.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},a.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},a.prototype._transform=function(c,l,d){var h;try{this.hashMode?this._update(c):this.push(this._update(c))}catch(m){h=m}finally{d(h)}},a.prototype._flush=function(c){var l;try{this.push(this.__final())}catch(d){l=d}c(l)},a.prototype._finalOrDigest=function(c){var l=this.__final()||t.alloc(0);return c&&(l=this._toString(l,c,!0)),l},a.prototype._toString=function(c,l,d){if(this._decoder||(this._decoder=new r(l),this._encoding=l),this._encoding!==l)throw new Error("can’t switch encodings");var h=this._decoder.write(c);return d&&(h+=this._decoder.end()),h},KB=a,KB}var ZB,Qie;function uM(){if(Qie)return ZB;Qie=1;var t=Ar(),e=Tq(),r=Iq(),n=Dq(),a=l5();function i(s){a.call(this,"digest"),this._hash=s}return t(i,a),i.prototype._update=function(s){this._hash.update(s)},i.prototype._final=function(){return this._hash.digest()},ZB=function(o){return o=o.toLowerCase(),o==="md5"?new e:o==="rmd160"||o==="ripemd160"?new r:new i(n(o))},ZB}var QB,Jie;function vGe(){if(Jie)return QB;Jie=1;var t=Ar(),e=$r.Buffer,r=l5(),n=e.alloc(128),a=64;function i(s,o){r.call(this,"digest"),typeof o=="string"&&(o=e.from(o)),this._alg=s,this._key=o,o.length>a?o=s(o):o.length<a&&(o=e.concat([o,n],a));for(var c=this._ipad=e.allocUnsafe(a),l=this._opad=e.allocUnsafe(a),d=0;d<a;d++)c[d]=o[d]^54,l[d]=o[d]^92;this._hash=[c]}return t(i,r),i.prototype._update=function(s){this._hash.push(s)},i.prototype._final=function(){var s=this._alg(e.concat(this._hash));return this._alg(e.concat([this._opad,s]))},QB=i,QB}var JB,Xie;function mbe(){if(Xie)return JB;Xie=1;var t=Tq();return JB=function(e){return new t().update(e).digest()},JB}var XB,e0e;function bbe(){if(e0e)return XB;e0e=1;var t=Ar(),e=vGe(),r=l5(),n=$r.Buffer,a=mbe(),i=Iq(),s=Dq(),o=n.alloc(128);function c(l,d){r.call(this,"digest"),typeof d=="string"&&(d=n.from(d));var h=l==="sha512"||l==="sha384"?128:64;if(this._alg=l,this._key=d,d.length>h){var m=l==="rmd160"?new i:s(l);d=m.update(d).digest()}else d.length<h&&(d=n.concat([d,o],h));for(var y=this._ipad=n.allocUnsafe(h),x=this._opad=n.allocUnsafe(h),M=0;M<h;M++)y[M]=d[M]^54,x[M]=d[M]^92;this._hash=l==="rmd160"?new i:s(l),this._hash.update(y)}return t(c,r),c.prototype._update=function(l){this._hash.update(l)},c.prototype._final=function(){var l=this._hash.digest(),d=this._alg==="rmd160"?new i:s(this._alg);return d.update(this._opad).update(l).digest()},XB=function(d,h){return d=d.toLowerCase(),d==="rmd160"||d==="ripemd160"?new c("rmd160",h):d==="md5"?new e(a,h):new c(d,h)},XB}const xGe={sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},wGe={sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},MGe={sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},AGe={sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},SGe={sign:"ecdsa",hash:"sha256",id:""},EGe={sign:"ecdsa",hash:"sha224",id:""},CGe={sign:"ecdsa",hash:"sha384",id:""},TGe={sign:"ecdsa",hash:"sha512",id:""},IGe={sign:"dsa",hash:"sha1",id:""},DGe={sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},NGe={sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},gbe={sha224WithRSAEncryption:xGe,"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:wGe,"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:MGe,"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:AGe,"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:SGe,sha224:EGe,sha384:CGe,sha512:TGe,"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:IGe,"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:DGe,"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:NGe,"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}};var ej,t0e;function kGe(){return t0e||(t0e=1,ej=gbe),ej}var $A={},tj,r0e;function ybe(){if(r0e)return tj;r0e=1;var t=Math.pow(2,30)-1;return tj=function(e,r){if(typeof e!="number")throw new TypeError("Iterations not a number");if(e<0)throw new TypeError("Bad iterations");if(typeof r!="number")throw new TypeError("Key length not a number");if(r<0||r>t||r!==r)throw new TypeError("Bad key length")},tj}var rj,n0e;function vbe(){if(n0e)return rj;n0e=1;var t;if(st.process&&st.process.browser)t="utf-8";else if(st.process&&st.process.version){var e=parseInt(Te.process.version.split(".")[0].slice(1),10);t=e>=6?"utf-8":"binary"}else t="utf-8";return rj=t,rj}var nj,a0e;function xbe(){if(a0e)return nj;a0e=1;var t=$r.Buffer;return nj=function(e,r,n){if(t.isBuffer(e))return e;if(typeof e=="string")return t.from(e,r);if(ArrayBuffer.isView(e))return t.from(e.buffer);throw new TypeError(n+" must be a string, a Buffer, a typed array or a DataView")},nj}var aj,i0e;function wbe(){if(i0e)return aj;i0e=1;var t=mbe(),e=Iq(),r=Dq(),n=$r.Buffer,a=ybe(),i=vbe(),s=xbe(),o=n.alloc(128),c={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function l(m,y,x){var M=d(m),E=m==="sha512"||m==="sha384"?128:64;y.length>E?y=M(y):y.length<E&&(y=n.concat([y,o],E));for(var S=n.allocUnsafe(E+c[m]),T=n.allocUnsafe(E+c[m]),D=0;D<E;D++)S[D]=y[D]^54,T[D]=y[D]^92;var k=n.allocUnsafe(E+x+4);S.copy(k,0,0,E),this.ipad1=k,this.ipad2=S,this.opad=T,this.alg=m,this.blocksize=E,this.hash=M,this.size=c[m]}l.prototype.run=function(m,y){m.copy(y,this.blocksize);var x=this.hash(y);return x.copy(this.opad,this.blocksize),this.hash(this.opad)};function d(m){function y(M){return r(m).update(M).digest()}function x(M){return new e().update(M).digest()}return m==="rmd160"||m==="ripemd160"?x:m==="md5"?t:y}function h(m,y,x,M,E){a(x,M),m=s(m,i,"Password"),y=s(y,i,"Salt"),E=E||"sha1";var S=new l(E,m,y.length),T=n.allocUnsafe(M),D=n.allocUnsafe(y.length+4);y.copy(D,0,0,y.length);for(var k=0,_=c[E],L=Math.ceil(M/_),O=1;O<=L;O++){D.writeUInt32BE(O,y.length);for(var B=S.run(D,S.ipad1),z=B,F=1;F<x;F++){z=S.run(z,S.ipad2);for(var I=0;I<_;I++)B[I]^=z[I]}B.copy(T,k),k+=_}return T}return aj=h,aj}var ij,s0e;function _Ge(){if(s0e)return ij;s0e=1;var t=$r.Buffer,e=ybe(),r=vbe(),n=wbe(),a=xbe(),i,s=st.crypto&&st.crypto.subtle,o={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},c=[];function l(x){if(st.process&&!st.process.browser||!s||!s.importKey||!s.deriveBits)return Promise.resolve(!1);if(c[x]!==void 0)return c[x];i=i||t.alloc(8);var M=m(i,i,10,128,x).then(function(){return!0}).catch(function(){return!1});return c[x]=M,M}var d;function h(){return d||(st.process&&st.process.nextTick?d=st.process.nextTick:st.queueMicrotask?d=st.queueMicrotask:st.setImmediate?d=st.setImmediate:d=st.setTimeout,d)}function m(x,M,E,S,T){return s.importKey("raw",x,{name:"PBKDF2"},!1,["deriveBits"]).then(function(D){return s.deriveBits({name:"PBKDF2",salt:M,iterations:E,hash:{name:T}},D,S<<3)}).then(function(D){return t.from(D)})}function y(x,M){x.then(function(E){h()(function(){M(null,E)})},function(E){h()(function(){M(E)})})}return ij=function(x,M,E,S,T,D){typeof T=="function"&&(D=T,T=void 0),T=T||"sha1";var k=o[T.toLowerCase()];if(!k||typeof st.Promise!="function"){h()(function(){var _;try{_=n(x,M,E,S,T)}catch(L){return D(L)}D(null,_)});return}if(e(E,S),x=a(x,r,"Password"),M=a(M,r,"Salt"),typeof D!="function")throw new Error("No callback provided to pbkdf2");y(l(k).then(function(_){return _?m(x,M,E,S,k):n(x,M,E,S,T)}),D)},ij}var o0e;function Mbe(){return o0e||(o0e=1,$A.pbkdf2=_Ge(),$A.pbkdf2Sync=wbe()),$A}var Qo={},S5={},ho={},c0e;function Abe(){if(c0e)return ho;c0e=1,ho.readUInt32BE=function(a,i){var s=a[0+i]<<24|a[1+i]<<16|a[2+i]<<8|a[3+i];return s>>>0},ho.writeUInt32BE=function(a,i,s){a[0+s]=i>>>24,a[1+s]=i>>>16&255,a[2+s]=i>>>8&255,a[3+s]=i&255},ho.ip=function(a,i,s,o){for(var c=0,l=0,d=6;d>=0;d-=2){for(var h=0;h<=24;h+=8)c<<=1,c|=i>>>h+d&1;for(var h=0;h<=24;h+=8)c<<=1,c|=a>>>h+d&1}for(var d=6;d>=0;d-=2){for(var h=1;h<=25;h+=8)l<<=1,l|=i>>>h+d&1;for(var h=1;h<=25;h+=8)l<<=1,l|=a>>>h+d&1}s[o+0]=c>>>0,s[o+1]=l>>>0},ho.rip=function(a,i,s,o){for(var c=0,l=0,d=0;d<4;d++)for(var h=24;h>=0;h-=8)c<<=1,c|=i>>>h+d&1,c<<=1,c|=a>>>h+d&1;for(var d=4;d<8;d++)for(var h=24;h>=0;h-=8)l<<=1,l|=i>>>h+d&1,l<<=1,l|=a>>>h+d&1;s[o+0]=c>>>0,s[o+1]=l>>>0},ho.pc1=function(a,i,s,o){for(var c=0,l=0,d=7;d>=5;d--){for(var h=0;h<=24;h+=8)c<<=1,c|=i>>h+d&1;for(var h=0;h<=24;h+=8)c<<=1,c|=a>>h+d&1}for(var h=0;h<=24;h+=8)c<<=1,c|=i>>h+d&1;for(var d=1;d<=3;d++){for(var h=0;h<=24;h+=8)l<<=1,l|=i>>h+d&1;for(var h=0;h<=24;h+=8)l<<=1,l|=a>>h+d&1}for(var h=0;h<=24;h+=8)l<<=1,l|=a>>h+d&1;s[o+0]=c>>>0,s[o+1]=l>>>0},ho.r28shl=function(a,i){return a<<i&268435455|a>>>28-i};var t=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];ho.pc2=function(a,i,s,o){for(var c=0,l=0,d=t.length>>>1,h=0;h<d;h++)c<<=1,c|=a>>>t[h]&1;for(var h=d;h<t.length;h++)l<<=1,l|=i>>>t[h]&1;s[o+0]=c>>>0,s[o+1]=l>>>0},ho.expand=function(a,i,s){var o=0,c=0;o=(a&1)<<5|a>>>27;for(var l=23;l>=15;l-=4)o<<=6,o|=a>>>l&63;for(var l=11;l>=3;l-=4)c|=a>>>l&63,c<<=6;c|=(a&31)<<1|a>>>31,i[s+0]=o>>>0,i[s+1]=c>>>0};var e=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];ho.substitute=function(a,i){for(var s=0,o=0;o<4;o++){var c=a>>>18-o*6&63,l=e[o*64+c];s<<=4,s|=l}for(var o=0;o<4;o++){var c=i>>>18-o*6&63,l=e[4*64+o*64+c];s<<=4,s|=l}return s>>>0};var r=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];return ho.permute=function(a){for(var i=0,s=0;s<r.length;s++)i<<=1,i|=a>>>r[s]&1;return i>>>0},ho.padSplit=function(a,i,s){for(var o=a.toString(2);o.length<i;)o="0"+o;for(var c=[],l=0;l<i;l+=s)c.push(o.slice(l,l+s));return c.join(" ")},ho}var sj,l0e;function ac(){if(l0e)return sj;l0e=1,sj=t;function t(e,r){if(!e)throw new Error(r||"Assertion failed")}return t.equal=function(r,n,a){if(r!=n)throw new Error(a||"Assertion failed: "+r+" != "+n)},sj}var oj,u0e;function Nq(){if(u0e)return oj;u0e=1;var t=ac();function e(r){this.options=r,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=r.padding!==!1}return oj=e,e.prototype._init=function(){},e.prototype.update=function(n){return n.length===0?[]:this.type==="decrypt"?this._updateDecrypt(n):this._updateEncrypt(n)},e.prototype._buffer=function(n,a){for(var i=Math.min(this.buffer.length-this.bufferOff,n.length-a),s=0;s<i;s++)this.buffer[this.bufferOff+s]=n[a+s];return this.bufferOff+=i,i},e.prototype._flushBuffer=function(n,a){return this._update(this.buffer,0,n,a),this.bufferOff=0,this.blockSize},e.prototype._updateEncrypt=function(n){var a=0,i=0,s=(this.bufferOff+n.length)/this.blockSize|0,o=new Array(s*this.blockSize);this.bufferOff!==0&&(a+=this._buffer(n,a),this.bufferOff===this.buffer.length&&(i+=this._flushBuffer(o,i)));for(var c=n.length-(n.length-a)%this.blockSize;a<c;a+=this.blockSize)this._update(n,a,o,i),i+=this.blockSize;for(;a<n.length;a++,this.bufferOff++)this.buffer[this.bufferOff]=n[a];return o},e.prototype._updateDecrypt=function(n){for(var a=0,i=0,s=Math.ceil((this.bufferOff+n.length)/this.blockSize)-1,o=new Array(s*this.blockSize);s>0;s--)a+=this._buffer(n,a),i+=this._flushBuffer(o,i);return a+=this._buffer(n,a),o},e.prototype.final=function(n){var a;n&&(a=this.update(n));var i;return this.type==="encrypt"?i=this._finalEncrypt():i=this._finalDecrypt(),a?a.concat(i):i},e.prototype._pad=function(n,a){if(a===0)return!1;for(;a<n.length;)n[a++]=0;return!0},e.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var n=new Array(this.blockSize);return this._update(this.buffer,0,n,0),n},e.prototype._unpad=function(n){return n},e.prototype._finalDecrypt=function(){t.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var n=new Array(this.blockSize);return this._flushBuffer(n,0),this._unpad(n)},oj}var cj,d0e;function Sbe(){if(d0e)return cj;d0e=1;var t=ac(),e=Ar(),r=Abe(),n=Nq();function a(){this.tmp=new Array(2),this.keys=null}function i(o){n.call(this,o);var c=new a;this._desState=c,this.deriveKeys(c,o.key)}e(i,n),cj=i,i.create=function(c){return new i(c)};var s=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];return i.prototype.deriveKeys=function(c,l){c.keys=new Array(16*2),t.equal(l.length,this.blockSize,"Invalid key length");var d=r.readUInt32BE(l,0),h=r.readUInt32BE(l,4);r.pc1(d,h,c.tmp,0),d=c.tmp[0],h=c.tmp[1];for(var m=0;m<c.keys.length;m+=2){var y=s[m>>>1];d=r.r28shl(d,y),h=r.r28shl(h,y),r.pc2(d,h,c.keys,m)}},i.prototype._update=function(c,l,d,h){var m=this._desState,y=r.readUInt32BE(c,l),x=r.readUInt32BE(c,l+4);r.ip(y,x,m.tmp,0),y=m.tmp[0],x=m.tmp[1],this.type==="encrypt"?this._encrypt(m,y,x,m.tmp,0):this._decrypt(m,y,x,m.tmp,0),y=m.tmp[0],x=m.tmp[1],r.writeUInt32BE(d,y,h),r.writeUInt32BE(d,x,h+4)},i.prototype._pad=function(c,l){if(this.padding===!1)return!1;for(var d=c.length-l,h=l;h<c.length;h++)c[h]=d;return!0},i.prototype._unpad=function(c){if(this.padding===!1)return c;for(var l=c[c.length-1],d=c.length-l;d<c.length;d++)t.equal(c[d],l);return c.slice(0,c.length-l)},i.prototype._encrypt=function(c,l,d,h,m){for(var y=l,x=d,M=0;M<c.keys.length;M+=2){var E=c.keys[M],S=c.keys[M+1];r.expand(x,c.tmp,0),E^=c.tmp[0],S^=c.tmp[1];var T=r.substitute(E,S),D=r.permute(T),k=x;x=(y^D)>>>0,y=k}r.rip(x,y,h,m)},i.prototype._decrypt=function(c,l,d,h,m){for(var y=d,x=l,M=c.keys.length-2;M>=0;M-=2){var E=c.keys[M],S=c.keys[M+1];r.expand(y,c.tmp,0),E^=c.tmp[0],S^=c.tmp[1];var T=r.substitute(E,S),D=r.permute(T),k=y;y=(x^D)>>>0,x=k}r.rip(y,x,h,m)},cj}var lj={},f0e;function LGe(){if(f0e)return lj;f0e=1;var t=ac(),e=Ar(),r={};function n(i){t.equal(i.length,8,"Invalid IV length"),this.iv=new Array(8);for(var s=0;s<this.iv.length;s++)this.iv[s]=i[s]}function a(i){function s(d){i.call(this,d),this._cbcInit()}e(s,i);for(var o=Object.keys(r),c=0;c<o.length;c++){var l=o[c];s.prototype[l]=r[l]}return s.create=function(h){return new s(h)},s}return lj.instantiate=a,r._cbcInit=function(){var s=new n(this.options.iv);this._cbcState=s},r._update=function(s,o,c,l){var d=this._cbcState,h=this.constructor.super_.prototype,m=d.iv;if(this.type==="encrypt"){for(var y=0;y<this.blockSize;y++)m[y]^=s[o+y];h._update.call(this,m,0,c,l);for(var y=0;y<this.blockSize;y++)m[y]=c[l+y]}else{h._update.call(this,s,o,c,l);for(var y=0;y<this.blockSize;y++)c[l+y]^=m[y];for(var y=0;y<this.blockSize;y++)m[y]=s[o+y]}},lj}var uj,p0e;function BGe(){if(p0e)return uj;p0e=1;var t=ac(),e=Ar(),r=Nq(),n=Sbe();function a(s,o){t.equal(o.length,24,"Invalid key length");var c=o.slice(0,8),l=o.slice(8,16),d=o.slice(16,24);s==="encrypt"?this.ciphers=[n.create({type:"encrypt",key:c}),n.create({type:"decrypt",key:l}),n.create({type:"encrypt",key:d})]:this.ciphers=[n.create({type:"decrypt",key:d}),n.create({type:"encrypt",key:l}),n.create({type:"decrypt",key:c})]}function i(s){r.call(this,s);var o=new a(this.type,this.options.key);this._edeState=o}return e(i,r),uj=i,i.create=function(o){return new i(o)},i.prototype._update=function(o,c,l,d){var h=this._edeState;h.ciphers[0]._update(o,c,l,d),h.ciphers[1]._update(l,d,l,d),h.ciphers[2]._update(l,d,l,d)},i.prototype._pad=n.prototype._pad,i.prototype._unpad=n.prototype._unpad,uj}var h0e;function jGe(){return h0e||(h0e=1,S5.utils=Abe(),S5.Cipher=Nq(),S5.DES=Sbe(),S5.CBC=LGe(),S5.EDE=BGe()),S5}var dj,m0e;function zGe(){if(m0e)return dj;m0e=1;var t=l5(),e=jGe(),r=Ar(),n=$r.Buffer,a={"des-ede3-cbc":e.CBC.instantiate(e.EDE),"des-ede3":e.EDE,"des-ede-cbc":e.CBC.instantiate(e.EDE),"des-ede":e.EDE,"des-cbc":e.CBC.instantiate(e.DES),"des-ecb":e.DES};a.des=a["des-cbc"],a.des3=a["des-ede3-cbc"],dj=i,r(i,t);function i(s){t.call(this);var o=s.mode.toLowerCase(),c=a[o],l;s.decrypt?l="decrypt":l="encrypt";var d=s.key;n.isBuffer(d)||(d=n.from(d)),(o==="des-ede"||o==="des-ede-cbc")&&(d=n.concat([d,d.slice(0,8)]));var h=s.iv;n.isBuffer(h)||(h=n.from(h)),this._des=c.create({key:d,iv:h,type:l})}return i.prototype._update=function(s){return n.from(this._des.update(s))},i.prototype._final=function(){return n.from(this._des.final())},dj}var Jo={},HA={},qA={},b0e;function PGe(){return b0e||(b0e=1,qA.encrypt=function(t,e){return t._cipher.encryptBlock(e)},qA.decrypt=function(t,e){return t._cipher.decryptBlock(e)}),qA}var GA={},fj,g0e;function dM(){return g0e||(g0e=1,fj=function(e,r){for(var n=Math.min(e.length,r.length),a=new Te.Buffer(n),i=0;i<n;++i)a[i]=e[i]^r[i];return a}),fj}var y0e;function OGe(){if(y0e)return GA;y0e=1;var t=dM();return GA.encrypt=function(e,r){var n=t(r,e._prev);return e._prev=e._cipher.encryptBlock(n),e._prev},GA.decrypt=function(e,r){var n=e._prev;e._prev=r;var a=e._cipher.decryptBlock(r);return t(a,n)},GA}var pj={},v0e;function RGe(){if(v0e)return pj;v0e=1;var t=$r.Buffer,e=dM();function r(n,a,i){var s=a.length,o=e(a,n._cache);return n._cache=n._cache.slice(s),n._prev=t.concat([n._prev,i?a:o]),o}return pj.encrypt=function(n,a,i){for(var s=t.allocUnsafe(0),o;a.length;)if(n._cache.length===0&&(n._cache=n._cipher.encryptBlock(n._prev),n._prev=t.allocUnsafe(0)),n._cache.length<=a.length)o=n._cache.length,s=t.concat([s,r(n,a.slice(0,o),i)]),a=a.slice(o);else{s=t.concat([s,r(n,a,i)]);break}return s},pj}var hj={},x0e;function FGe(){if(x0e)return hj;x0e=1;var t=$r.Buffer;function e(r,n,a){var i=r._cipher.encryptBlock(r._prev),s=i[0]^n;return r._prev=t.concat([r._prev.slice(1),t.from([a?n:s])]),s}return hj.encrypt=function(r,n,a){for(var i=n.length,s=t.allocUnsafe(i),o=-1;++o<i;)s[o]=e(r,n[o],a);return s},hj}var mj={},w0e;function UGe(){if(w0e)return mj;w0e=1;var t=$r.Buffer;function e(n,a,i){for(var s,o=-1,c=8,l=0,d,h;++o<c;)s=n._cipher.encryptBlock(n._prev),d=a&1<<7-o?128:0,h=s[0]^d,l+=(h&128)>>o%8,n._prev=r(n._prev,i?d:h);return l}function r(n,a){var i=n.length,s=-1,o=t.allocUnsafe(n.length);for(n=t.concat([n,t.from([a])]);++s<i;)o[s]=n[s]<<1|n[s+1]>>7;return o}return mj.encrypt=function(n,a,i){for(var s=a.length,o=t.allocUnsafe(s),c=-1;++c<s;)o[c]=e(n,a[c],i);return o},mj}var bj={},M0e;function WGe(){if(M0e)return bj;M0e=1;var t=dM();function e(r){return r._prev=r._cipher.encryptBlock(r._prev),r._prev}return bj.encrypt=function(r,n){for(;r._cache.length<n.length;)r._cache=Te.Buffer.concat([r._cache,e(r)]);var a=r._cache.slice(0,n.length);return r._cache=r._cache.slice(n.length),t(n,a)},bj}var gj={},yj,A0e;function Ebe(){if(A0e)return yj;A0e=1;function t(e){for(var r=e.length,n;r--;)if(n=e.readUInt8(r),n===255)e.writeUInt8(0,r);else{n++,e.writeUInt8(n,r);break}}return yj=t,yj}var S0e;function E0e(){if(S0e)return gj;S0e=1;var t=dM(),e=$r.Buffer,r=Ebe();function n(i){var s=i._cipher.encryptBlockRaw(i._prev);return r(i._prev),s}var a=16;return gj.encrypt=function(i,s){var o=Math.ceil(s.length/a),c=i._cache.length;i._cache=e.concat([i._cache,e.allocUnsafe(o*a)]);for(var l=0;l<o;l++){var d=n(i),h=c+l*a;i._cache.writeUInt32BE(d[0],h+0),i._cache.writeUInt32BE(d[1],h+4),i._cache.writeUInt32BE(d[2],h+8),i._cache.writeUInt32BE(d[3],h+12)}var m=i._cache.slice(0,s.length);return i._cache=i._cache.slice(s.length),t(s,m)},gj}const VGe={cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},$Ge={cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},HGe={cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},Cbe={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:VGe,aes192:$Ge,aes256:HGe,"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}};var vj,C0e;function kq(){if(C0e)return vj;C0e=1;var t={ECB:PGe(),CBC:OGe(),CFB:RGe(),CFB8:FGe(),CFB1:UGe(),OFB:WGe(),CTR:E0e(),GCM:E0e()},e=Cbe;for(var r in e)e[r].module=t[e[r].mode];return vj=e,vj}var xj={},T0e;function qN(){if(T0e)return xj;T0e=1;var t=$r.Buffer;function e(o){t.isBuffer(o)||(o=t.from(o));for(var c=o.length/4|0,l=new Array(c),d=0;d<c;d++)l[d]=o.readUInt32BE(d*4);return l}function r(o){for(var c=0;c<o.length;o++)o[c]=0}function n(o,c,l,d,h){for(var m=l[0],y=l[1],x=l[2],M=l[3],E=o[0]^c[0],S=o[1]^c[1],T=o[2]^c[2],D=o[3]^c[3],k,_,L,O,B=4,z=1;z<h;z++)k=m[E>>>24]^y[S>>>16&255]^x[T>>>8&255]^M[D&255]^c[B++],_=m[S>>>24]^y[T>>>16&255]^x[D>>>8&255]^M[E&255]^c[B++],L=m[T>>>24]^y[D>>>16&255]^x[E>>>8&255]^M[S&255]^c[B++],O=m[D>>>24]^y[E>>>16&255]^x[S>>>8&255]^M[T&255]^c[B++],E=k,S=_,T=L,D=O;return k=(d[E>>>24]<<24|d[S>>>16&255]<<16|d[T>>>8&255]<<8|d[D&255])^c[B++],_=(d[S>>>24]<<24|d[T>>>16&255]<<16|d[D>>>8&255]<<8|d[E&255])^c[B++],L=(d[T>>>24]<<24|d[D>>>16&255]<<16|d[E>>>8&255]<<8|d[S&255])^c[B++],O=(d[D>>>24]<<24|d[E>>>16&255]<<16|d[S>>>8&255]<<8|d[T&255])^c[B++],k=k>>>0,_=_>>>0,L=L>>>0,O=O>>>0,[k,_,L,O]}var a=[0,1,2,4,8,16,32,64,128,27,54],i=function(){for(var o=new Array(256),c=0;c<256;c++)c<128?o[c]=c<<1:o[c]=c<<1^283;for(var l=[],d=[],h=[[],[],[],[]],m=[[],[],[],[]],y=0,x=0,M=0;M<256;++M){var E=x^x<<1^x<<2^x<<3^x<<4;E=E>>>8^E&255^99,l[y]=E,d[E]=y;var S=o[y],T=o[S],D=o[T],k=o[E]*257^E*16843008;h[0][y]=k<<24|k>>>8,h[1][y]=k<<16|k>>>16,h[2][y]=k<<8|k>>>24,h[3][y]=k,k=D*16843009^T*65537^S*257^y*16843008,m[0][E]=k<<24|k>>>8,m[1][E]=k<<16|k>>>16,m[2][E]=k<<8|k>>>24,m[3][E]=k,y===0?y=x=1:(y=S^o[o[o[D^S]]],x^=o[o[x]])}return{SBOX:l,INV_SBOX:d,SUB_MIX:h,INV_SUB_MIX:m}}();function s(o){this._key=e(o),this._reset()}return s.blockSize=4*4,s.keySize=256/8,s.prototype.blockSize=s.blockSize,s.prototype.keySize=s.keySize,s.prototype._reset=function(){for(var o=this._key,c=o.length,l=c+6,d=(l+1)*4,h=[],m=0;m<c;m++)h[m]=o[m];for(m=c;m<d;m++){var y=h[m-1];m%c===0?(y=y<<8|y>>>24,y=i.SBOX[y>>>24]<<24|i.SBOX[y>>>16&255]<<16|i.SBOX[y>>>8&255]<<8|i.SBOX[y&255],y^=a[m/c|0]<<24):c>6&&m%c===4&&(y=i.SBOX[y>>>24]<<24|i.SBOX[y>>>16&255]<<16|i.SBOX[y>>>8&255]<<8|i.SBOX[y&255]),h[m]=h[m-c]^y}for(var x=[],M=0;M<d;M++){var E=d-M,S=h[E-(M%4?0:4)];M<4||E<=4?x[M]=S:x[M]=i.INV_SUB_MIX[0][i.SBOX[S>>>24]]^i.INV_SUB_MIX[1][i.SBOX[S>>>16&255]]^i.INV_SUB_MIX[2][i.SBOX[S>>>8&255]]^i.INV_SUB_MIX[3][i.SBOX[S&255]]}this._nRounds=l,this._keySchedule=h,this._invKeySchedule=x},s.prototype.encryptBlockRaw=function(o){return o=e(o),n(o,this._keySchedule,i.SUB_MIX,i.SBOX,this._nRounds)},s.prototype.encryptBlock=function(o){var c=this.encryptBlockRaw(o),l=t.allocUnsafe(16);return l.writeUInt32BE(c[0],0),l.writeUInt32BE(c[1],4),l.writeUInt32BE(c[2],8),l.writeUInt32BE(c[3],12),l},s.prototype.decryptBlock=function(o){o=e(o);var c=o[1];o[1]=o[3],o[3]=c;var l=n(o,this._invKeySchedule,i.INV_SUB_MIX,i.INV_SBOX,this._nRounds),d=t.allocUnsafe(16);return d.writeUInt32BE(l[0],0),d.writeUInt32BE(l[3],4),d.writeUInt32BE(l[2],8),d.writeUInt32BE(l[1],12),d},s.prototype.scrub=function(){r(this._keySchedule),r(this._invKeySchedule),r(this._key)},xj.AES=s,xj}var wj,I0e;function qGe(){if(I0e)return wj;I0e=1;var t=$r.Buffer,e=t.alloc(16,0);function r(i){return[i.readUInt32BE(0),i.readUInt32BE(4),i.readUInt32BE(8),i.readUInt32BE(12)]}function n(i){var s=t.allocUnsafe(16);return s.writeUInt32BE(i[0]>>>0,0),s.writeUInt32BE(i[1]>>>0,4),s.writeUInt32BE(i[2]>>>0,8),s.writeUInt32BE(i[3]>>>0,12),s}function a(i){this.h=i,this.state=t.alloc(16,0),this.cache=t.allocUnsafe(0)}return a.prototype.ghash=function(i){for(var s=-1;++s<i.length;)this.state[s]^=i[s];this._multiply()},a.prototype._multiply=function(){for(var i=r(this.h),s=[0,0,0,0],o,c,l,d=-1;++d<128;){for(c=(this.state[~~(d/8)]&1<<7-d%8)!==0,c&&(s[0]^=i[0],s[1]^=i[1],s[2]^=i[2],s[3]^=i[3]),l=(i[3]&1)!==0,o=3;o>0;o--)i[o]=i[o]>>>1|(i[o-1]&1)<<31;i[0]=i[0]>>>1,l&&(i[0]=i[0]^225<<24)}this.state=n(s)},a.prototype.update=function(i){this.cache=t.concat([this.cache,i]);for(var s;this.cache.length>=16;)s=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(s)},a.prototype.final=function(i,s){return this.cache.length&&this.ghash(t.concat([this.cache,e],16)),this.ghash(n([0,i,0,s])),this.state},wj=a,wj}var Mj,D0e;function Tbe(){if(D0e)return Mj;D0e=1;var t=qN(),e=$r.Buffer,r=l5(),n=Ar(),a=qGe(),i=dM(),s=Ebe();function o(d,h){var m=0;d.length!==h.length&&m++;for(var y=Math.min(d.length,h.length),x=0;x<y;++x)m+=d[x]^h[x];return m}function c(d,h,m){if(h.length===12)return d._finID=e.concat([h,e.from([0,0,0,1])]),e.concat([h,e.from([0,0,0,2])]);var y=new a(m),x=h.length,M=x%16;y.update(h),M&&(M=16-M,y.update(e.alloc(M,0))),y.update(e.alloc(8,0));var E=x*8,S=e.alloc(8);S.writeUIntBE(E,0,8),y.update(S),d._finID=y.state;var T=e.from(d._finID);return s(T),T}function l(d,h,m,y){r.call(this);var x=e.alloc(4,0);this._cipher=new t.AES(h);var M=this._cipher.encryptBlock(x);this._ghash=new a(M),m=c(this,m,M),this._prev=e.from(m),this._cache=e.allocUnsafe(0),this._secCache=e.allocUnsafe(0),this._decrypt=y,this._alen=0,this._len=0,this._mode=d,this._authTag=null,this._called=!1}return n(l,r),l.prototype._update=function(d){if(!this._called&&this._alen){var h=16-this._alen%16;h<16&&(h=e.alloc(h,0),this._ghash.update(h))}this._called=!0;var m=this._mode.encrypt(this,d);return this._decrypt?this._ghash.update(d):this._ghash.update(m),this._len+=d.length,m},l.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var d=i(this._ghash.final(this._alen*8,this._len*8),this._cipher.encryptBlock(this._finID));if(this._decrypt&&o(d,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=d,this._cipher.scrub()},l.prototype.getAuthTag=function(){if(this._decrypt||!e.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},l.prototype.setAuthTag=function(h){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=h},l.prototype.setAAD=function(h){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(h),this._alen+=h.length},Mj=l,Mj}var Aj,N0e;function Ibe(){if(N0e)return Aj;N0e=1;var t=qN(),e=$r.Buffer,r=l5(),n=Ar();function a(i,s,o,c){r.call(this),this._cipher=new t.AES(s),this._prev=e.from(o),this._cache=e.allocUnsafe(0),this._secCache=e.allocUnsafe(0),this._decrypt=c,this._mode=i}return n(a,r),a.prototype._update=function(i){return this._mode.encrypt(this,i,this._decrypt)},a.prototype._final=function(){this._cipher.scrub()},Aj=a,Aj}var Sj,k0e;function GN(){if(k0e)return Sj;k0e=1;var t=$r.Buffer,e=Tq();function r(n,a,i,s){if(t.isBuffer(n)||(n=t.from(n,"binary")),a&&(t.isBuffer(a)||(a=t.from(a,"binary")),a.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var o=i/8,c=t.alloc(o),l=t.alloc(s||0),d=t.alloc(0);o>0||s>0;){var h=new e;h.update(d),h.update(n),a&&h.update(a),d=h.digest();var m=0;if(o>0){var y=c.length-o;m=Math.min(o,d.length),d.copy(c,y,0,m),o-=m}if(m<d.length&&s>0){var x=l.length-s,M=Math.min(s,d.length-m);d.copy(l,x,m,m+M),s-=M}}return d.fill(0),{key:c,iv:l}}return Sj=r,Sj}var _0e;function GGe(){if(_0e)return HA;_0e=1;var t=kq(),e=Tbe(),r=$r.Buffer,n=Ibe(),a=l5(),i=qN(),s=GN(),o=Ar();function c(y,x,M){a.call(this),this._cache=new d,this._cipher=new i.AES(x),this._prev=r.from(M),this._mode=y,this._autopadding=!0}o(c,a),c.prototype._update=function(y){this._cache.add(y);for(var x,M,E=[];x=this._cache.get();)M=this._mode.encrypt(this,x),E.push(M);return r.concat(E)};var l=r.alloc(16,16);c.prototype._final=function(){var y=this._cache.flush();if(this._autopadding)return y=this._mode.encrypt(this,y),this._cipher.scrub(),y;if(!y.equals(l))throw this._cipher.scrub(),new Error("data not multiple of block length")},c.prototype.setAutoPadding=function(y){return this._autopadding=!!y,this};function d(){this.cache=r.allocUnsafe(0)}d.prototype.add=function(y){this.cache=r.concat([this.cache,y])},d.prototype.get=function(){if(this.cache.length>15){var y=this.cache.slice(0,16);return this.cache=this.cache.slice(16),y}return null},d.prototype.flush=function(){for(var y=16-this.cache.length,x=r.allocUnsafe(y),M=-1;++M<y;)x.writeUInt8(y,M);return r.concat([this.cache,x])};function h(y,x,M){var E=t[y.toLowerCase()];if(!E)throw new TypeError("invalid suite type");if(typeof x=="string"&&(x=r.from(x)),x.length!==E.key/8)throw new TypeError("invalid key length "+x.length);if(typeof M=="string"&&(M=r.from(M)),E.mode!=="GCM"&&M.length!==E.iv)throw new TypeError("invalid iv length "+M.length);return E.type==="stream"?new n(E.module,x,M):E.type==="auth"?new e(E.module,x,M):new c(E.module,x,M)}function m(y,x){var M=t[y.toLowerCase()];if(!M)throw new TypeError("invalid suite type");var E=s(x,!1,M.key,M.iv);return h(y,E.key,E.iv)}return HA.createCipheriv=h,HA.createCipher=m,HA}var YA={},L0e;function YGe(){if(L0e)return YA;L0e=1;var t=Tbe(),e=$r.Buffer,r=kq(),n=Ibe(),a=l5(),i=qN(),s=GN(),o=Ar();function c(y,x,M){a.call(this),this._cache=new l,this._last=void 0,this._cipher=new i.AES(x),this._prev=e.from(M),this._mode=y,this._autopadding=!0}o(c,a),c.prototype._update=function(y){this._cache.add(y);for(var x,M,E=[];x=this._cache.get(this._autopadding);)M=this._mode.decrypt(this,x),E.push(M);return e.concat(E)},c.prototype._final=function(){var y=this._cache.flush();if(this._autopadding)return d(this._mode.decrypt(this,y));if(y)throw new Error("data not multiple of block length")},c.prototype.setAutoPadding=function(y){return this._autopadding=!!y,this};function l(){this.cache=e.allocUnsafe(0)}l.prototype.add=function(y){this.cache=e.concat([this.cache,y])},l.prototype.get=function(y){var x;if(y){if(this.cache.length>16)return x=this.cache.slice(0,16),this.cache=this.cache.slice(16),x}else if(this.cache.length>=16)return x=this.cache.slice(0,16),this.cache=this.cache.slice(16),x;return null},l.prototype.flush=function(){if(this.cache.length)return this.cache};function d(y){var x=y[15];if(x<1||x>16)throw new Error("unable to decrypt data");for(var M=-1;++M<x;)if(y[M+(16-x)]!==x)throw new Error("unable to decrypt data");if(x!==16)return y.slice(0,16-x)}function h(y,x,M){var E=r[y.toLowerCase()];if(!E)throw new TypeError("invalid suite type");if(typeof M=="string"&&(M=e.from(M)),E.mode!=="GCM"&&M.length!==E.iv)throw new TypeError("invalid iv length "+M.length);if(typeof x=="string"&&(x=e.from(x)),x.length!==E.key/8)throw new TypeError("invalid key length "+x.length);return E.type==="stream"?new n(E.module,x,M,!0):E.type==="auth"?new t(E.module,x,M,!0):new c(E.module,x,M)}function m(y,x){var M=r[y.toLowerCase()];if(!M)throw new TypeError("invalid suite type");var E=s(x,!1,M.key,M.iv);return h(y,E.key,E.iv)}return YA.createDecipher=m,YA.createDecipheriv=h,YA}var B0e;function _q(){if(B0e)return Jo;B0e=1;var t=GGe(),e=YGe(),r=Cbe;function n(){return Object.keys(r)}return Jo.createCipher=Jo.Cipher=t.createCipher,Jo.createCipheriv=Jo.Cipheriv=t.createCipheriv,Jo.createDecipher=Jo.Decipher=e.createDecipher,Jo.createDecipheriv=Jo.Decipheriv=e.createDecipheriv,Jo.listCiphers=Jo.getCiphers=n,Jo}var Ej={},j0e;function KGe(){return j0e||(j0e=1,function(t){t["des-ecb"]={key:8,iv:0},t["des-cbc"]=t.des={key:8,iv:8},t["des-ede3-cbc"]=t.des3={key:24,iv:8},t["des-ede3"]={key:24,iv:0},t["des-ede-cbc"]={key:16,iv:8},t["des-ede"]={key:16,iv:0}}(Ej)),Ej}var z0e;function ZGe(){if(z0e)return Qo;z0e=1;var t=zGe(),e=_q(),r=kq(),n=KGe(),a=GN();function i(d,h){d=d.toLowerCase();var m,y;if(r[d])m=r[d].key,y=r[d].iv;else if(n[d])m=n[d].key*8,y=n[d].iv;else throw new TypeError("invalid suite type");var x=a(h,!1,m,y);return o(d,x.key,x.iv)}function s(d,h){d=d.toLowerCase();var m,y;if(r[d])m=r[d].key,y=r[d].iv;else if(n[d])m=n[d].key*8,y=n[d].iv;else throw new TypeError("invalid suite type");var x=a(h,!1,m,y);return c(d,x.key,x.iv)}function o(d,h,m){if(d=d.toLowerCase(),r[d])return e.createCipheriv(d,h,m);if(n[d])return new t({key:h,iv:m,mode:d});throw new TypeError("invalid suite type")}function c(d,h,m){if(d=d.toLowerCase(),r[d])return e.createDecipheriv(d,h,m);if(n[d])return new t({key:h,iv:m,mode:d,decrypt:!0});throw new TypeError("invalid suite type")}function l(){return Object.keys(n).concat(e.getCiphers())}return Qo.createCipher=Qo.Cipher=i,Qo.createCipheriv=Qo.Cipheriv=o,Qo.createDecipher=Qo.Decipher=s,Qo.createDecipheriv=Qo.Decipheriv=c,Qo.listCiphers=Qo.getCiphers=l,Qo}var E5={},hC={exports:{}};hC.exports;var P0e;function Dbe(){return P0e||(P0e=1,function(t){(function(e,r){function n(I,u){if(!I)throw new Error(u||"Assertion failed")}function a(I,u){I.super_=u;var f=function(){};f.prototype=u.prototype,I.prototype=new f,I.prototype.constructor=I}function i(I,u,f){if(i.isBN(I))return I;this.negative=0,this.words=null,this.length=0,this.red=null,I!==null&&((u==="le"||u==="be")&&(f=u,u=10),this._init(I||0,u||10,f||"be"))}typeof e=="object"?e.exports=i:r.BN=i,i.BN=i,i.wordSize=26;var s;try{typeof window<"u"&&typeof window.Buffer<"u"?s=window.Buffer:s=It.Buffer}catch{}i.isBN=function(u){return u instanceof i?!0:u!==null&&typeof u=="object"&&u.constructor.wordSize===i.wordSize&&Array.isArray(u.words)},i.max=function(u,f){return u.cmp(f)>0?u:f},i.min=function(u,f){return u.cmp(f)<0?u:f},i.prototype._init=function(u,f,b){if(typeof u=="number")return this._initNumber(u,f,b);if(typeof u=="object")return this._initArray(u,f,b);f==="hex"&&(f=16),n(f===(f|0)&&f>=2&&f<=36),u=u.toString().replace(/\s+/g,"");var g=0;u[0]==="-"&&(g++,this.negative=1),g<u.length&&(f===16?this._parseHex(u,g,b):(this._parseBase(u,f,g),b==="le"&&this._initArray(this.toArray(),f,b)))},i.prototype._initNumber=function(u,f,b){u<0&&(this.negative=1,u=-u),u<67108864?(this.words=[u&67108863],this.length=1):u<4503599627370496?(this.words=[u&67108863,u/67108864&67108863],this.length=2):(n(u<9007199254740992),this.words=[u&67108863,u/67108864&67108863,1],this.length=3),b==="le"&&this._initArray(this.toArray(),f,b)},i.prototype._initArray=function(u,f,b){if(n(typeof u.length=="number"),u.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(u.length/3),this.words=new Array(this.length);for(var g=0;g<this.length;g++)this.words[g]=0;var v,A,N=0;if(b==="be")for(g=u.length-1,v=0;g>=0;g-=3)A=u[g]|u[g-1]<<8|u[g-2]<<16,this.words[v]|=A<<N&67108863,this.words[v+1]=A>>>26-N&67108863,N+=24,N>=26&&(N-=26,v++);else if(b==="le")for(g=0,v=0;g<u.length;g+=3)A=u[g]|u[g+1]<<8|u[g+2]<<16,this.words[v]|=A<<N&67108863,this.words[v+1]=A>>>26-N&67108863,N+=24,N>=26&&(N-=26,v++);return this.strip()};function o(I,u){var f=I.charCodeAt(u);return f>=65&&f<=70?f-55:f>=97&&f<=102?f-87:f-48&15}function c(I,u,f){var b=o(I,f);return f-1>=u&&(b|=o(I,f-1)<<4),b}i.prototype._parseHex=function(u,f,b){this.length=Math.ceil((u.length-f)/6),this.words=new Array(this.length);for(var g=0;g<this.length;g++)this.words[g]=0;var v=0,A=0,N;if(b==="be")for(g=u.length-1;g>=f;g-=2)N=c(u,f,g)<<v,this.words[A]|=N&67108863,v>=18?(v-=18,A+=1,this.words[A]|=N>>>26):v+=8;else{var w=u.length-f;for(g=w%2===0?f+1:f;g<u.length;g+=2)N=c(u,f,g)<<v,this.words[A]|=N&67108863,v>=18?(v-=18,A+=1,this.words[A]|=N>>>26):v+=8}this.strip()};function l(I,u,f,b){for(var g=0,v=Math.min(I.length,f),A=u;A<v;A++){var N=I.charCodeAt(A)-48;g*=b,N>=49?g+=N-49+10:N>=17?g+=N-17+10:g+=N}return g}i.prototype._parseBase=function(u,f,b){this.words=[0],this.length=1;for(var g=0,v=1;v<=67108863;v*=f)g++;g--,v=v/f|0;for(var A=u.length-b,N=A%g,w=Math.min(A,A-N)+b,p=0,C=b;C<w;C+=g)p=l(u,C,C+g,f),this.imuln(v),this.words[0]+p<67108864?this.words[0]+=p:this._iaddn(p);if(N!==0){var P=1;for(p=l(u,C,u.length,f),C=0;C<N;C++)P*=f;this.imuln(P),this.words[0]+p<67108864?this.words[0]+=p:this._iaddn(p)}this.strip()},i.prototype.copy=function(u){u.words=new Array(this.length);for(var f=0;f<this.length;f++)u.words[f]=this.words[f];u.length=this.length,u.negative=this.negative,u.red=this.red},i.prototype.clone=function(){var u=new i(null);return this.copy(u),u},i.prototype._expand=function(u){for(;this.length<u;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],m=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(u,f){u=u||10,f=f|0||1;var b;if(u===16||u==="hex"){b="";for(var g=0,v=0,A=0;A<this.length;A++){var N=this.words[A],w=((N<<g|v)&16777215).toString(16);v=N>>>24-g&16777215,g+=2,g>=26&&(g-=26,A--),v!==0||A!==this.length-1?b=d[6-w.length]+w+b:b=w+b}for(v!==0&&(b=v.toString(16)+b);b.length%f!==0;)b="0"+b;return this.negative!==0&&(b="-"+b),b}if(u===(u|0)&&u>=2&&u<=36){var p=h[u],C=m[u];b="";var P=this.clone();for(P.negative=0;!P.isZero();){var R=P.modn(C).toString(u);P=P.idivn(C),P.isZero()?b=R+b:b=d[p-R.length]+R+b}for(this.isZero()&&(b="0"+b);b.length%f!==0;)b="0"+b;return this.negative!==0&&(b="-"+b),b}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var u=this.words[0];return this.length===2?u+=this.words[1]*67108864:this.length===3&&this.words[2]===1?u+=4503599627370496+this.words[1]*67108864:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-u:u},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(u,f){return n(typeof s<"u"),this.toArrayLike(s,u,f)},i.prototype.toArray=function(u,f){return this.toArrayLike(Array,u,f)},i.prototype.toArrayLike=function(u,f,b){var g=this.byteLength(),v=b||Math.max(1,g);n(g<=v,"byte array longer than desired length"),n(v>0,"Requested array length <= 0"),this.strip();var A=f==="le",N=new u(v),w,p,C=this.clone();if(A){for(p=0;!C.isZero();p++)w=C.andln(255),C.iushrn(8),N[p]=w;for(;p<v;p++)N[p]=0}else{for(p=0;p<v-g;p++)N[p]=0;for(p=0;!C.isZero();p++)w=C.andln(255),C.iushrn(8),N[v-p-1]=w}return N},Math.clz32?i.prototype._countBits=function(u){return 32-Math.clz32(u)}:i.prototype._countBits=function(u){var f=u,b=0;return f>=4096&&(b+=13,f>>>=13),f>=64&&(b+=7,f>>>=7),f>=8&&(b+=4,f>>>=4),f>=2&&(b+=2,f>>>=2),b+f},i.prototype._zeroBits=function(u){if(u===0)return 26;var f=u,b=0;return f&8191||(b+=13,f>>>=13),f&127||(b+=7,f>>>=7),f&15||(b+=4,f>>>=4),f&3||(b+=2,f>>>=2),f&1||b++,b},i.prototype.bitLength=function(){var u=this.words[this.length-1],f=this._countBits(u);return(this.length-1)*26+f};function y(I){for(var u=new Array(I.bitLength()),f=0;f<u.length;f++){var b=f/26|0,g=f%26;u[f]=(I.words[b]&1<<g)>>>g}return u}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var u=0,f=0;f<this.length;f++){var b=this._zeroBits(this.words[f]);if(u+=b,b!==26)break}return u},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(u){return this.negative!==0?this.abs().inotn(u).iaddn(1):this.clone()},i.prototype.fromTwos=function(u){return this.testn(u-1)?this.notn(u).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(u){for(;this.length<u.length;)this.words[this.length++]=0;for(var f=0;f<u.length;f++)this.words[f]=this.words[f]|u.words[f];return this.strip()},i.prototype.ior=function(u){return n((this.negative|u.negative)===0),this.iuor(u)},i.prototype.or=function(u){return this.length>u.length?this.clone().ior(u):u.clone().ior(this)},i.prototype.uor=function(u){return this.length>u.length?this.clone().iuor(u):u.clone().iuor(this)},i.prototype.iuand=function(u){var f;this.length>u.length?f=u:f=this;for(var b=0;b<f.length;b++)this.words[b]=this.words[b]&u.words[b];return this.length=f.length,this.strip()},i.prototype.iand=function(u){return n((this.negative|u.negative)===0),this.iuand(u)},i.prototype.and=function(u){return this.length>u.length?this.clone().iand(u):u.clone().iand(this)},i.prototype.uand=function(u){return this.length>u.length?this.clone().iuand(u):u.clone().iuand(this)},i.prototype.iuxor=function(u){var f,b;this.length>u.length?(f=this,b=u):(f=u,b=this);for(var g=0;g<b.length;g++)this.words[g]=f.words[g]^b.words[g];if(this!==f)for(;g<f.length;g++)this.words[g]=f.words[g];return this.length=f.length,this.strip()},i.prototype.ixor=function(u){return n((this.negative|u.negative)===0),this.iuxor(u)},i.prototype.xor=function(u){return this.length>u.length?this.clone().ixor(u):u.clone().ixor(this)},i.prototype.uxor=function(u){return this.length>u.length?this.clone().iuxor(u):u.clone().iuxor(this)},i.prototype.inotn=function(u){n(typeof u=="number"&&u>=0);var f=Math.ceil(u/26)|0,b=u%26;this._expand(f),b>0&&f--;for(var g=0;g<f;g++)this.words[g]=~this.words[g]&67108863;return b>0&&(this.words[g]=~this.words[g]&67108863>>26-b),this.strip()},i.prototype.notn=function(u){return this.clone().inotn(u)},i.prototype.setn=function(u,f){n(typeof u=="number"&&u>=0);var b=u/26|0,g=u%26;return this._expand(b+1),f?this.words[b]=this.words[b]|1<<g:this.words[b]=this.words[b]&~(1<<g),this.strip()},i.prototype.iadd=function(u){var f;if(this.negative!==0&&u.negative===0)return this.negative=0,f=this.isub(u),this.negative^=1,this._normSign();if(this.negative===0&&u.negative!==0)return u.negative=0,f=this.isub(u),u.negative=1,f._normSign();var b,g;this.length>u.length?(b=this,g=u):(b=u,g=this);for(var v=0,A=0;A<g.length;A++)f=(b.words[A]|0)+(g.words[A]|0)+v,this.words[A]=f&67108863,v=f>>>26;for(;v!==0&&A<b.length;A++)f=(b.words[A]|0)+v,this.words[A]=f&67108863,v=f>>>26;if(this.length=b.length,v!==0)this.words[this.length]=v,this.length++;else if(b!==this)for(;A<b.length;A++)this.words[A]=b.words[A];return this},i.prototype.add=function(u){var f;return u.negative!==0&&this.negative===0?(u.negative=0,f=this.sub(u),u.negative^=1,f):u.negative===0&&this.negative!==0?(this.negative=0,f=u.sub(this),this.negative=1,f):this.length>u.length?this.clone().iadd(u):u.clone().iadd(this)},i.prototype.isub=function(u){if(u.negative!==0){u.negative=0;var f=this.iadd(u);return u.negative=1,f._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(u),this.negative=1,this._normSign();var b=this.cmp(u);if(b===0)return this.negative=0,this.length=1,this.words[0]=0,this;var g,v;b>0?(g=this,v=u):(g=u,v=this);for(var A=0,N=0;N<v.length;N++)f=(g.words[N]|0)-(v.words[N]|0)+A,A=f>>26,this.words[N]=f&67108863;for(;A!==0&&N<g.length;N++)f=(g.words[N]|0)+A,A=f>>26,this.words[N]=f&67108863;if(A===0&&N<g.length&&g!==this)for(;N<g.length;N++)this.words[N]=g.words[N];return this.length=Math.max(this.length,N),g!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(u){return this.clone().isub(u)};function x(I,u,f){f.negative=u.negative^I.negative;var b=I.length+u.length|0;f.length=b,b=b-1|0;var g=I.words[0]|0,v=u.words[0]|0,A=g*v,N=A&67108863,w=A/67108864|0;f.words[0]=N;for(var p=1;p<b;p++){for(var C=w>>>26,P=w&67108863,R=Math.min(p,u.length-1),$=Math.max(0,p-I.length+1);$<=R;$++){var Y=p-$|0;g=I.words[Y]|0,v=u.words[$]|0,A=g*v+P,C+=A/67108864|0,P=A&67108863}f.words[p]=P|0,w=C|0}return w!==0?f.words[p]=w|0:f.length--,f.strip()}var M=function(u,f,b){var g=u.words,v=f.words,A=b.words,N=0,w,p,C,P=g[0]|0,R=P&8191,$=P>>>13,Y=g[1]|0,V=Y&8191,U=Y>>>13,G=g[2]|0,Q=G&8191,re=G>>>13,q=g[3]|0,H=q&8191,Z=q>>>13,ae=g[4]|0,de=ae&8191,ye=ae>>>13,je=g[5]|0,we=je&8191,ve=je>>>13,qe=g[6]|0,Me=qe&8191,ue=qe>>>13,ke=g[7]|0,te=ke&8191,me=ke>>>13,We=g[8]|0,X=We&8191,W=We>>>13,K=g[9]|0,ne=K&8191,fe=K>>>13,Ae=v[0]|0,be=Ae&8191,Ie=Ae>>>13,ct=v[1]|0,De=ct&8191,Pe=ct>>>13,ft=v[2]|0,He=ft&8191,Ve=ft>>>13,Ft=v[3]|0,Ge=Ft&8191,Je=Ft>>>13,sr=v[4]|0,Xe=sr&8191,it=sr>>>13,pr=v[5]|0,et=pr&8191,lt=pr>>>13,Dr=v[6]|0,Ke=Dr&8191,ut=Dr>>>13,ie=v[7]|0,se=ie&8191,oe=ie>>>13,J=v[8]|0,le=J&8191,xe=J>>>13,ze=v[9]|0,Ce=ze&8191,Ne=ze>>>13;b.negative=u.negative^f.negative,b.length=19,w=Math.imul(R,be),p=Math.imul(R,Ie),p=p+Math.imul($,be)|0,C=Math.imul($,Ie);var dt=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(dt>>>26)|0,dt&=67108863,w=Math.imul(V,be),p=Math.imul(V,Ie),p=p+Math.imul(U,be)|0,C=Math.imul(U,Ie),w=w+Math.imul(R,De)|0,p=p+Math.imul(R,Pe)|0,p=p+Math.imul($,De)|0,C=C+Math.imul($,Pe)|0;var pt=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(pt>>>26)|0,pt&=67108863,w=Math.imul(Q,be),p=Math.imul(Q,Ie),p=p+Math.imul(re,be)|0,C=Math.imul(re,Ie),w=w+Math.imul(V,De)|0,p=p+Math.imul(V,Pe)|0,p=p+Math.imul(U,De)|0,C=C+Math.imul(U,Pe)|0,w=w+Math.imul(R,He)|0,p=p+Math.imul(R,Ve)|0,p=p+Math.imul($,He)|0,C=C+Math.imul($,Ve)|0;var nr=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(nr>>>26)|0,nr&=67108863,w=Math.imul(H,be),p=Math.imul(H,Ie),p=p+Math.imul(Z,be)|0,C=Math.imul(Z,Ie),w=w+Math.imul(Q,De)|0,p=p+Math.imul(Q,Pe)|0,p=p+Math.imul(re,De)|0,C=C+Math.imul(re,Pe)|0,w=w+Math.imul(V,He)|0,p=p+Math.imul(V,Ve)|0,p=p+Math.imul(U,He)|0,C=C+Math.imul(U,Ve)|0,w=w+Math.imul(R,Ge)|0,p=p+Math.imul(R,Je)|0,p=p+Math.imul($,Ge)|0,C=C+Math.imul($,Je)|0;var xt=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(xt>>>26)|0,xt&=67108863,w=Math.imul(de,be),p=Math.imul(de,Ie),p=p+Math.imul(ye,be)|0,C=Math.imul(ye,Ie),w=w+Math.imul(H,De)|0,p=p+Math.imul(H,Pe)|0,p=p+Math.imul(Z,De)|0,C=C+Math.imul(Z,Pe)|0,w=w+Math.imul(Q,He)|0,p=p+Math.imul(Q,Ve)|0,p=p+Math.imul(re,He)|0,C=C+Math.imul(re,Ve)|0,w=w+Math.imul(V,Ge)|0,p=p+Math.imul(V,Je)|0,p=p+Math.imul(U,Ge)|0,C=C+Math.imul(U,Je)|0,w=w+Math.imul(R,Xe)|0,p=p+Math.imul(R,it)|0,p=p+Math.imul($,Xe)|0,C=C+Math.imul($,it)|0;var gt=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(gt>>>26)|0,gt&=67108863,w=Math.imul(we,be),p=Math.imul(we,Ie),p=p+Math.imul(ve,be)|0,C=Math.imul(ve,Ie),w=w+Math.imul(de,De)|0,p=p+Math.imul(de,Pe)|0,p=p+Math.imul(ye,De)|0,C=C+Math.imul(ye,Pe)|0,w=w+Math.imul(H,He)|0,p=p+Math.imul(H,Ve)|0,p=p+Math.imul(Z,He)|0,C=C+Math.imul(Z,Ve)|0,w=w+Math.imul(Q,Ge)|0,p=p+Math.imul(Q,Je)|0,p=p+Math.imul(re,Ge)|0,C=C+Math.imul(re,Je)|0,w=w+Math.imul(V,Xe)|0,p=p+Math.imul(V,it)|0,p=p+Math.imul(U,Xe)|0,C=C+Math.imul(U,it)|0,w=w+Math.imul(R,et)|0,p=p+Math.imul(R,lt)|0,p=p+Math.imul($,et)|0,C=C+Math.imul($,lt)|0;var Pt=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,w=Math.imul(Me,be),p=Math.imul(Me,Ie),p=p+Math.imul(ue,be)|0,C=Math.imul(ue,Ie),w=w+Math.imul(we,De)|0,p=p+Math.imul(we,Pe)|0,p=p+Math.imul(ve,De)|0,C=C+Math.imul(ve,Pe)|0,w=w+Math.imul(de,He)|0,p=p+Math.imul(de,Ve)|0,p=p+Math.imul(ye,He)|0,C=C+Math.imul(ye,Ve)|0,w=w+Math.imul(H,Ge)|0,p=p+Math.imul(H,Je)|0,p=p+Math.imul(Z,Ge)|0,C=C+Math.imul(Z,Je)|0,w=w+Math.imul(Q,Xe)|0,p=p+Math.imul(Q,it)|0,p=p+Math.imul(re,Xe)|0,C=C+Math.imul(re,it)|0,w=w+Math.imul(V,et)|0,p=p+Math.imul(V,lt)|0,p=p+Math.imul(U,et)|0,C=C+Math.imul(U,lt)|0,w=w+Math.imul(R,Ke)|0,p=p+Math.imul(R,ut)|0,p=p+Math.imul($,Ke)|0,C=C+Math.imul($,ut)|0;var tr=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(tr>>>26)|0,tr&=67108863,w=Math.imul(te,be),p=Math.imul(te,Ie),p=p+Math.imul(me,be)|0,C=Math.imul(me,Ie),w=w+Math.imul(Me,De)|0,p=p+Math.imul(Me,Pe)|0,p=p+Math.imul(ue,De)|0,C=C+Math.imul(ue,Pe)|0,w=w+Math.imul(we,He)|0,p=p+Math.imul(we,Ve)|0,p=p+Math.imul(ve,He)|0,C=C+Math.imul(ve,Ve)|0,w=w+Math.imul(de,Ge)|0,p=p+Math.imul(de,Je)|0,p=p+Math.imul(ye,Ge)|0,C=C+Math.imul(ye,Je)|0,w=w+Math.imul(H,Xe)|0,p=p+Math.imul(H,it)|0,p=p+Math.imul(Z,Xe)|0,C=C+Math.imul(Z,it)|0,w=w+Math.imul(Q,et)|0,p=p+Math.imul(Q,lt)|0,p=p+Math.imul(re,et)|0,C=C+Math.imul(re,lt)|0,w=w+Math.imul(V,Ke)|0,p=p+Math.imul(V,ut)|0,p=p+Math.imul(U,Ke)|0,C=C+Math.imul(U,ut)|0,w=w+Math.imul(R,se)|0,p=p+Math.imul(R,oe)|0,p=p+Math.imul($,se)|0,C=C+Math.imul($,oe)|0;var er=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(er>>>26)|0,er&=67108863,w=Math.imul(X,be),p=Math.imul(X,Ie),p=p+Math.imul(W,be)|0,C=Math.imul(W,Ie),w=w+Math.imul(te,De)|0,p=p+Math.imul(te,Pe)|0,p=p+Math.imul(me,De)|0,C=C+Math.imul(me,Pe)|0,w=w+Math.imul(Me,He)|0,p=p+Math.imul(Me,Ve)|0,p=p+Math.imul(ue,He)|0,C=C+Math.imul(ue,Ve)|0,w=w+Math.imul(we,Ge)|0,p=p+Math.imul(we,Je)|0,p=p+Math.imul(ve,Ge)|0,C=C+Math.imul(ve,Je)|0,w=w+Math.imul(de,Xe)|0,p=p+Math.imul(de,it)|0,p=p+Math.imul(ye,Xe)|0,C=C+Math.imul(ye,it)|0,w=w+Math.imul(H,et)|0,p=p+Math.imul(H,lt)|0,p=p+Math.imul(Z,et)|0,C=C+Math.imul(Z,lt)|0,w=w+Math.imul(Q,Ke)|0,p=p+Math.imul(Q,ut)|0,p=p+Math.imul(re,Ke)|0,C=C+Math.imul(re,ut)|0,w=w+Math.imul(V,se)|0,p=p+Math.imul(V,oe)|0,p=p+Math.imul(U,se)|0,C=C+Math.imul(U,oe)|0,w=w+Math.imul(R,le)|0,p=p+Math.imul(R,xe)|0,p=p+Math.imul($,le)|0,C=C+Math.imul($,xe)|0;var Kt=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,w=Math.imul(ne,be),p=Math.imul(ne,Ie),p=p+Math.imul(fe,be)|0,C=Math.imul(fe,Ie),w=w+Math.imul(X,De)|0,p=p+Math.imul(X,Pe)|0,p=p+Math.imul(W,De)|0,C=C+Math.imul(W,Pe)|0,w=w+Math.imul(te,He)|0,p=p+Math.imul(te,Ve)|0,p=p+Math.imul(me,He)|0,C=C+Math.imul(me,Ve)|0,w=w+Math.imul(Me,Ge)|0,p=p+Math.imul(Me,Je)|0,p=p+Math.imul(ue,Ge)|0,C=C+Math.imul(ue,Je)|0,w=w+Math.imul(we,Xe)|0,p=p+Math.imul(we,it)|0,p=p+Math.imul(ve,Xe)|0,C=C+Math.imul(ve,it)|0,w=w+Math.imul(de,et)|0,p=p+Math.imul(de,lt)|0,p=p+Math.imul(ye,et)|0,C=C+Math.imul(ye,lt)|0,w=w+Math.imul(H,Ke)|0,p=p+Math.imul(H,ut)|0,p=p+Math.imul(Z,Ke)|0,C=C+Math.imul(Z,ut)|0,w=w+Math.imul(Q,se)|0,p=p+Math.imul(Q,oe)|0,p=p+Math.imul(re,se)|0,C=C+Math.imul(re,oe)|0,w=w+Math.imul(V,le)|0,p=p+Math.imul(V,xe)|0,p=p+Math.imul(U,le)|0,C=C+Math.imul(U,xe)|0,w=w+Math.imul(R,Ce)|0,p=p+Math.imul(R,Ne)|0,p=p+Math.imul($,Ce)|0,C=C+Math.imul($,Ne)|0;var Jt=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(Jt>>>26)|0,Jt&=67108863,w=Math.imul(ne,De),p=Math.imul(ne,Pe),p=p+Math.imul(fe,De)|0,C=Math.imul(fe,Pe),w=w+Math.imul(X,He)|0,p=p+Math.imul(X,Ve)|0,p=p+Math.imul(W,He)|0,C=C+Math.imul(W,Ve)|0,w=w+Math.imul(te,Ge)|0,p=p+Math.imul(te,Je)|0,p=p+Math.imul(me,Ge)|0,C=C+Math.imul(me,Je)|0,w=w+Math.imul(Me,Xe)|0,p=p+Math.imul(Me,it)|0,p=p+Math.imul(ue,Xe)|0,C=C+Math.imul(ue,it)|0,w=w+Math.imul(we,et)|0,p=p+Math.imul(we,lt)|0,p=p+Math.imul(ve,et)|0,C=C+Math.imul(ve,lt)|0,w=w+Math.imul(de,Ke)|0,p=p+Math.imul(de,ut)|0,p=p+Math.imul(ye,Ke)|0,C=C+Math.imul(ye,ut)|0,w=w+Math.imul(H,se)|0,p=p+Math.imul(H,oe)|0,p=p+Math.imul(Z,se)|0,C=C+Math.imul(Z,oe)|0,w=w+Math.imul(Q,le)|0,p=p+Math.imul(Q,xe)|0,p=p+Math.imul(re,le)|0,C=C+Math.imul(re,xe)|0,w=w+Math.imul(V,Ce)|0,p=p+Math.imul(V,Ne)|0,p=p+Math.imul(U,Ce)|0,C=C+Math.imul(U,Ne)|0;var Zt=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,w=Math.imul(ne,He),p=Math.imul(ne,Ve),p=p+Math.imul(fe,He)|0,C=Math.imul(fe,Ve),w=w+Math.imul(X,Ge)|0,p=p+Math.imul(X,Je)|0,p=p+Math.imul(W,Ge)|0,C=C+Math.imul(W,Je)|0,w=w+Math.imul(te,Xe)|0,p=p+Math.imul(te,it)|0,p=p+Math.imul(me,Xe)|0,C=C+Math.imul(me,it)|0,w=w+Math.imul(Me,et)|0,p=p+Math.imul(Me,lt)|0,p=p+Math.imul(ue,et)|0,C=C+Math.imul(ue,lt)|0,w=w+Math.imul(we,Ke)|0,p=p+Math.imul(we,ut)|0,p=p+Math.imul(ve,Ke)|0,C=C+Math.imul(ve,ut)|0,w=w+Math.imul(de,se)|0,p=p+Math.imul(de,oe)|0,p=p+Math.imul(ye,se)|0,C=C+Math.imul(ye,oe)|0,w=w+Math.imul(H,le)|0,p=p+Math.imul(H,xe)|0,p=p+Math.imul(Z,le)|0,C=C+Math.imul(Z,xe)|0,w=w+Math.imul(Q,Ce)|0,p=p+Math.imul(Q,Ne)|0,p=p+Math.imul(re,Ce)|0,C=C+Math.imul(re,Ne)|0;var Nt=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,w=Math.imul(ne,Ge),p=Math.imul(ne,Je),p=p+Math.imul(fe,Ge)|0,C=Math.imul(fe,Je),w=w+Math.imul(X,Xe)|0,p=p+Math.imul(X,it)|0,p=p+Math.imul(W,Xe)|0,C=C+Math.imul(W,it)|0,w=w+Math.imul(te,et)|0,p=p+Math.imul(te,lt)|0,p=p+Math.imul(me,et)|0,C=C+Math.imul(me,lt)|0,w=w+Math.imul(Me,Ke)|0,p=p+Math.imul(Me,ut)|0,p=p+Math.imul(ue,Ke)|0,C=C+Math.imul(ue,ut)|0,w=w+Math.imul(we,se)|0,p=p+Math.imul(we,oe)|0,p=p+Math.imul(ve,se)|0,C=C+Math.imul(ve,oe)|0,w=w+Math.imul(de,le)|0,p=p+Math.imul(de,xe)|0,p=p+Math.imul(ye,le)|0,C=C+Math.imul(ye,xe)|0,w=w+Math.imul(H,Ce)|0,p=p+Math.imul(H,Ne)|0,p=p+Math.imul(Z,Ce)|0,C=C+Math.imul(Z,Ne)|0;var Ot=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,w=Math.imul(ne,Xe),p=Math.imul(ne,it),p=p+Math.imul(fe,Xe)|0,C=Math.imul(fe,it),w=w+Math.imul(X,et)|0,p=p+Math.imul(X,lt)|0,p=p+Math.imul(W,et)|0,C=C+Math.imul(W,lt)|0,w=w+Math.imul(te,Ke)|0,p=p+Math.imul(te,ut)|0,p=p+Math.imul(me,Ke)|0,C=C+Math.imul(me,ut)|0,w=w+Math.imul(Me,se)|0,p=p+Math.imul(Me,oe)|0,p=p+Math.imul(ue,se)|0,C=C+Math.imul(ue,oe)|0,w=w+Math.imul(we,le)|0,p=p+Math.imul(we,xe)|0,p=p+Math.imul(ve,le)|0,C=C+Math.imul(ve,xe)|0,w=w+Math.imul(de,Ce)|0,p=p+Math.imul(de,Ne)|0,p=p+Math.imul(ye,Ce)|0,C=C+Math.imul(ye,Ne)|0;var Ct=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,w=Math.imul(ne,et),p=Math.imul(ne,lt),p=p+Math.imul(fe,et)|0,C=Math.imul(fe,lt),w=w+Math.imul(X,Ke)|0,p=p+Math.imul(X,ut)|0,p=p+Math.imul(W,Ke)|0,C=C+Math.imul(W,ut)|0,w=w+Math.imul(te,se)|0,p=p+Math.imul(te,oe)|0,p=p+Math.imul(me,se)|0,C=C+Math.imul(me,oe)|0,w=w+Math.imul(Me,le)|0,p=p+Math.imul(Me,xe)|0,p=p+Math.imul(ue,le)|0,C=C+Math.imul(ue,xe)|0,w=w+Math.imul(we,Ce)|0,p=p+Math.imul(we,Ne)|0,p=p+Math.imul(ve,Ce)|0,C=C+Math.imul(ve,Ne)|0;var kt=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(kt>>>26)|0,kt&=67108863,w=Math.imul(ne,Ke),p=Math.imul(ne,ut),p=p+Math.imul(fe,Ke)|0,C=Math.imul(fe,ut),w=w+Math.imul(X,se)|0,p=p+Math.imul(X,oe)|0,p=p+Math.imul(W,se)|0,C=C+Math.imul(W,oe)|0,w=w+Math.imul(te,le)|0,p=p+Math.imul(te,xe)|0,p=p+Math.imul(me,le)|0,C=C+Math.imul(me,xe)|0,w=w+Math.imul(Me,Ce)|0,p=p+Math.imul(Me,Ne)|0,p=p+Math.imul(ue,Ce)|0,C=C+Math.imul(ue,Ne)|0;var Bt=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,w=Math.imul(ne,se),p=Math.imul(ne,oe),p=p+Math.imul(fe,se)|0,C=Math.imul(fe,oe),w=w+Math.imul(X,le)|0,p=p+Math.imul(X,xe)|0,p=p+Math.imul(W,le)|0,C=C+Math.imul(W,xe)|0,w=w+Math.imul(te,Ce)|0,p=p+Math.imul(te,Ne)|0,p=p+Math.imul(me,Ce)|0,C=C+Math.imul(me,Ne)|0;var At=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(At>>>26)|0,At&=67108863,w=Math.imul(ne,le),p=Math.imul(ne,xe),p=p+Math.imul(fe,le)|0,C=Math.imul(fe,xe),w=w+Math.imul(X,Ce)|0,p=p+Math.imul(X,Ne)|0,p=p+Math.imul(W,Ce)|0,C=C+Math.imul(W,Ne)|0;var Ze=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,w=Math.imul(ne,Ce),p=Math.imul(ne,Ne),p=p+Math.imul(fe,Ce)|0,C=Math.imul(fe,Ne);var Qe=(N+w|0)+((p&8191)<<13)|0;return N=(C+(p>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,A[0]=dt,A[1]=pt,A[2]=nr,A[3]=xt,A[4]=gt,A[5]=Pt,A[6]=tr,A[7]=er,A[8]=Kt,A[9]=Jt,A[10]=Zt,A[11]=Nt,A[12]=Ot,A[13]=Ct,A[14]=kt,A[15]=Bt,A[16]=At,A[17]=Ze,A[18]=Qe,N!==0&&(A[19]=N,b.length++),b};Math.imul||(M=x);function E(I,u,f){f.negative=u.negative^I.negative,f.length=I.length+u.length;for(var b=0,g=0,v=0;v<f.length-1;v++){var A=g;g=0;for(var N=b&67108863,w=Math.min(v,u.length-1),p=Math.max(0,v-I.length+1);p<=w;p++){var C=v-p,P=I.words[C]|0,R=u.words[p]|0,$=P*R,Y=$&67108863;A=A+($/67108864|0)|0,Y=Y+N|0,N=Y&67108863,A=A+(Y>>>26)|0,g+=A>>>26,A&=67108863}f.words[v]=N,b=A,A=g}return b!==0?f.words[v]=b:f.length--,f.strip()}function S(I,u,f){var b=new T;return b.mulp(I,u,f)}i.prototype.mulTo=function(u,f){var b,g=this.length+u.length;return this.length===10&&u.length===10?b=M(this,u,f):g<63?b=x(this,u,f):g<1024?b=E(this,u,f):b=S(this,u,f),b};function T(I,u){this.x=I,this.y=u}T.prototype.makeRBT=function(u){for(var f=new Array(u),b=i.prototype._countBits(u)-1,g=0;g<u;g++)f[g]=this.revBin(g,b,u);return f},T.prototype.revBin=function(u,f,b){if(u===0||u===b-1)return u;for(var g=0,v=0;v<f;v++)g|=(u&1)<<f-v-1,u>>=1;return g},T.prototype.permute=function(u,f,b,g,v,A){for(var N=0;N<A;N++)g[N]=f[u[N]],v[N]=b[u[N]]},T.prototype.transform=function(u,f,b,g,v,A){this.permute(A,u,f,b,g,v);for(var N=1;N<v;N<<=1)for(var w=N<<1,p=Math.cos(2*Math.PI/w),C=Math.sin(2*Math.PI/w),P=0;P<v;P+=w)for(var R=p,$=C,Y=0;Y<N;Y++){var V=b[P+Y],U=g[P+Y],G=b[P+Y+N],Q=g[P+Y+N],re=R*G-$*Q;Q=R*Q+$*G,G=re,b[P+Y]=V+G,g[P+Y]=U+Q,b[P+Y+N]=V-G,g[P+Y+N]=U-Q,Y!==w&&(re=p*R-C*$,$=p*$+C*R,R=re)}},T.prototype.guessLen13b=function(u,f){var b=Math.max(f,u)|1,g=b&1,v=0;for(b=b/2|0;b;b=b>>>1)v++;return 1<<v+1+g},T.prototype.conjugate=function(u,f,b){if(!(b<=1))for(var g=0;g<b/2;g++){var v=u[g];u[g]=u[b-g-1],u[b-g-1]=v,v=f[g],f[g]=-f[b-g-1],f[b-g-1]=-v}},T.prototype.normalize13b=function(u,f){for(var b=0,g=0;g<f/2;g++){var v=Math.round(u[2*g+1]/f)*8192+Math.round(u[2*g]/f)+b;u[g]=v&67108863,v<67108864?b=0:b=v/67108864|0}return u},T.prototype.convert13b=function(u,f,b,g){for(var v=0,A=0;A<f;A++)v=v+(u[A]|0),b[2*A]=v&8191,v=v>>>13,b[2*A+1]=v&8191,v=v>>>13;for(A=2*f;A<g;++A)b[A]=0;n(v===0),n((v&-8192)===0)},T.prototype.stub=function(u){for(var f=new Array(u),b=0;b<u;b++)f[b]=0;return f},T.prototype.mulp=function(u,f,b){var g=2*this.guessLen13b(u.length,f.length),v=this.makeRBT(g),A=this.stub(g),N=new Array(g),w=new Array(g),p=new Array(g),C=new Array(g),P=new Array(g),R=new Array(g),$=b.words;$.length=g,this.convert13b(u.words,u.length,N,g),this.convert13b(f.words,f.length,C,g),this.transform(N,A,w,p,g,v),this.transform(C,A,P,R,g,v);for(var Y=0;Y<g;Y++){var V=w[Y]*P[Y]-p[Y]*R[Y];p[Y]=w[Y]*R[Y]+p[Y]*P[Y],w[Y]=V}return this.conjugate(w,p,g),this.transform(w,p,$,A,g,v),this.conjugate($,A,g),this.normalize13b($,g),b.negative=u.negative^f.negative,b.length=u.length+f.length,b.strip()},i.prototype.mul=function(u){var f=new i(null);return f.words=new Array(this.length+u.length),this.mulTo(u,f)},i.prototype.mulf=function(u){var f=new i(null);return f.words=new Array(this.length+u.length),S(this,u,f)},i.prototype.imul=function(u){return this.clone().mulTo(u,this)},i.prototype.imuln=function(u){n(typeof u=="number"),n(u<67108864);for(var f=0,b=0;b<this.length;b++){var g=(this.words[b]|0)*u,v=(g&67108863)+(f&67108863);f>>=26,f+=g/67108864|0,f+=v>>>26,this.words[b]=v&67108863}return f!==0&&(this.words[b]=f,this.length++),this},i.prototype.muln=function(u){return this.clone().imuln(u)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(u){var f=y(u);if(f.length===0)return new i(1);for(var b=this,g=0;g<f.length&&f[g]===0;g++,b=b.sqr());if(++g<f.length)for(var v=b.sqr();g<f.length;g++,v=v.sqr())f[g]!==0&&(b=b.mul(v));return b},i.prototype.iushln=function(u){n(typeof u=="number"&&u>=0);var f=u%26,b=(u-f)/26,g=67108863>>>26-f<<26-f,v;if(f!==0){var A=0;for(v=0;v<this.length;v++){var N=this.words[v]&g,w=(this.words[v]|0)-N<<f;this.words[v]=w|A,A=N>>>26-f}A&&(this.words[v]=A,this.length++)}if(b!==0){for(v=this.length-1;v>=0;v--)this.words[v+b]=this.words[v];for(v=0;v<b;v++)this.words[v]=0;this.length+=b}return this.strip()},i.prototype.ishln=function(u){return n(this.negative===0),this.iushln(u)},i.prototype.iushrn=function(u,f,b){n(typeof u=="number"&&u>=0);var g;f?g=(f-f%26)/26:g=0;var v=u%26,A=Math.min((u-v)/26,this.length),N=67108863^67108863>>>v<<v,w=b;if(g-=A,g=Math.max(0,g),w){for(var p=0;p<A;p++)w.words[p]=this.words[p];w.length=A}if(A!==0)if(this.length>A)for(this.length-=A,p=0;p<this.length;p++)this.words[p]=this.words[p+A];else this.words[0]=0,this.length=1;var C=0;for(p=this.length-1;p>=0&&(C!==0||p>=g);p--){var P=this.words[p]|0;this.words[p]=C<<26-v|P>>>v,C=P&N}return w&&C!==0&&(w.words[w.length++]=C),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(u,f,b){return n(this.negative===0),this.iushrn(u,f,b)},i.prototype.shln=function(u){return this.clone().ishln(u)},i.prototype.ushln=function(u){return this.clone().iushln(u)},i.prototype.shrn=function(u){return this.clone().ishrn(u)},i.prototype.ushrn=function(u){return this.clone().iushrn(u)},i.prototype.testn=function(u){n(typeof u=="number"&&u>=0);var f=u%26,b=(u-f)/26,g=1<<f;if(this.length<=b)return!1;var v=this.words[b];return!!(v&g)},i.prototype.imaskn=function(u){n(typeof u=="number"&&u>=0);var f=u%26,b=(u-f)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=b)return this;if(f!==0&&b++,this.length=Math.min(b,this.length),f!==0){var g=67108863^67108863>>>f<<f;this.words[this.length-1]&=g}return this.strip()},i.prototype.maskn=function(u){return this.clone().imaskn(u)},i.prototype.iaddn=function(u){return n(typeof u=="number"),n(u<67108864),u<0?this.isubn(-u):this.negative!==0?this.length===1&&(this.words[0]|0)<u?(this.words[0]=u-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(u),this.negative=1,this):this._iaddn(u)},i.prototype._iaddn=function(u){this.words[0]+=u;for(var f=0;f<this.length&&this.words[f]>=67108864;f++)this.words[f]-=67108864,f===this.length-1?this.words[f+1]=1:this.words[f+1]++;return this.length=Math.max(this.length,f+1),this},i.prototype.isubn=function(u){if(n(typeof u=="number"),n(u<67108864),u<0)return this.iaddn(-u);if(this.negative!==0)return this.negative=0,this.iaddn(u),this.negative=1,this;if(this.words[0]-=u,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var f=0;f<this.length&&this.words[f]<0;f++)this.words[f]+=67108864,this.words[f+1]-=1;return this.strip()},i.prototype.addn=function(u){return this.clone().iaddn(u)},i.prototype.subn=function(u){return this.clone().isubn(u)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(u,f,b){var g=u.length+b,v;this._expand(g);var A,N=0;for(v=0;v<u.length;v++){A=(this.words[v+b]|0)+N;var w=(u.words[v]|0)*f;A-=w&67108863,N=(A>>26)-(w/67108864|0),this.words[v+b]=A&67108863}for(;v<this.length-b;v++)A=(this.words[v+b]|0)+N,N=A>>26,this.words[v+b]=A&67108863;if(N===0)return this.strip();for(n(N===-1),N=0,v=0;v<this.length;v++)A=-(this.words[v]|0)+N,N=A>>26,this.words[v]=A&67108863;return this.negative=1,this.strip()},i.prototype._wordDiv=function(u,f){var b=this.length-u.length,g=this.clone(),v=u,A=v.words[v.length-1]|0,N=this._countBits(A);b=26-N,b!==0&&(v=v.ushln(b),g.iushln(b),A=v.words[v.length-1]|0);var w=g.length-v.length,p;if(f!=="mod"){p=new i(null),p.length=w+1,p.words=new Array(p.length);for(var C=0;C<p.length;C++)p.words[C]=0}var P=g.clone()._ishlnsubmul(v,1,w);P.negative===0&&(g=P,p&&(p.words[w]=1));for(var R=w-1;R>=0;R--){var $=(g.words[v.length+R]|0)*67108864+(g.words[v.length+R-1]|0);for($=Math.min($/A|0,67108863),g._ishlnsubmul(v,$,R);g.negative!==0;)$--,g.negative=0,g._ishlnsubmul(v,1,R),g.isZero()||(g.negative^=1);p&&(p.words[R]=$)}return p&&p.strip(),g.strip(),f!=="div"&&b!==0&&g.iushrn(b),{div:p||null,mod:g}},i.prototype.divmod=function(u,f,b){if(n(!u.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var g,v,A;return this.negative!==0&&u.negative===0?(A=this.neg().divmod(u,f),f!=="mod"&&(g=A.div.neg()),f!=="div"&&(v=A.mod.neg(),b&&v.negative!==0&&v.iadd(u)),{div:g,mod:v}):this.negative===0&&u.negative!==0?(A=this.divmod(u.neg(),f),f!=="mod"&&(g=A.div.neg()),{div:g,mod:A.mod}):this.negative&u.negative?(A=this.neg().divmod(u.neg(),f),f!=="div"&&(v=A.mod.neg(),b&&v.negative!==0&&v.isub(u)),{div:A.div,mod:v}):u.length>this.length||this.cmp(u)<0?{div:new i(0),mod:this}:u.length===1?f==="div"?{div:this.divn(u.words[0]),mod:null}:f==="mod"?{div:null,mod:new i(this.modn(u.words[0]))}:{div:this.divn(u.words[0]),mod:new i(this.modn(u.words[0]))}:this._wordDiv(u,f)},i.prototype.div=function(u){return this.divmod(u,"div",!1).div},i.prototype.mod=function(u){return this.divmod(u,"mod",!1).mod},i.prototype.umod=function(u){return this.divmod(u,"mod",!0).mod},i.prototype.divRound=function(u){var f=this.divmod(u);if(f.mod.isZero())return f.div;var b=f.div.negative!==0?f.mod.isub(u):f.mod,g=u.ushrn(1),v=u.andln(1),A=b.cmp(g);return A<0||v===1&&A===0?f.div:f.div.negative!==0?f.div.isubn(1):f.div.iaddn(1)},i.prototype.modn=function(u){n(u<=67108863);for(var f=(1<<26)%u,b=0,g=this.length-1;g>=0;g--)b=(f*b+(this.words[g]|0))%u;return b},i.prototype.idivn=function(u){n(u<=67108863);for(var f=0,b=this.length-1;b>=0;b--){var g=(this.words[b]|0)+f*67108864;this.words[b]=g/u|0,f=g%u}return this.strip()},i.prototype.divn=function(u){return this.clone().idivn(u)},i.prototype.egcd=function(u){n(u.negative===0),n(!u.isZero());var f=this,b=u.clone();f.negative!==0?f=f.umod(u):f=f.clone();for(var g=new i(1),v=new i(0),A=new i(0),N=new i(1),w=0;f.isEven()&&b.isEven();)f.iushrn(1),b.iushrn(1),++w;for(var p=b.clone(),C=f.clone();!f.isZero();){for(var P=0,R=1;!(f.words[0]&R)&&P<26;++P,R<<=1);if(P>0)for(f.iushrn(P);P-- >0;)(g.isOdd()||v.isOdd())&&(g.iadd(p),v.isub(C)),g.iushrn(1),v.iushrn(1);for(var $=0,Y=1;!(b.words[0]&Y)&&$<26;++$,Y<<=1);if($>0)for(b.iushrn($);$-- >0;)(A.isOdd()||N.isOdd())&&(A.iadd(p),N.isub(C)),A.iushrn(1),N.iushrn(1);f.cmp(b)>=0?(f.isub(b),g.isub(A),v.isub(N)):(b.isub(f),A.isub(g),N.isub(v))}return{a:A,b:N,gcd:b.iushln(w)}},i.prototype._invmp=function(u){n(u.negative===0),n(!u.isZero());var f=this,b=u.clone();f.negative!==0?f=f.umod(u):f=f.clone();for(var g=new i(1),v=new i(0),A=b.clone();f.cmpn(1)>0&&b.cmpn(1)>0;){for(var N=0,w=1;!(f.words[0]&w)&&N<26;++N,w<<=1);if(N>0)for(f.iushrn(N);N-- >0;)g.isOdd()&&g.iadd(A),g.iushrn(1);for(var p=0,C=1;!(b.words[0]&C)&&p<26;++p,C<<=1);if(p>0)for(b.iushrn(p);p-- >0;)v.isOdd()&&v.iadd(A),v.iushrn(1);f.cmp(b)>=0?(f.isub(b),g.isub(v)):(b.isub(f),v.isub(g))}var P;return f.cmpn(1)===0?P=g:P=v,P.cmpn(0)<0&&P.iadd(u),P},i.prototype.gcd=function(u){if(this.isZero())return u.abs();if(u.isZero())return this.abs();var f=this.clone(),b=u.clone();f.negative=0,b.negative=0;for(var g=0;f.isEven()&&b.isEven();g++)f.iushrn(1),b.iushrn(1);do{for(;f.isEven();)f.iushrn(1);for(;b.isEven();)b.iushrn(1);var v=f.cmp(b);if(v<0){var A=f;f=b,b=A}else if(v===0||b.cmpn(1)===0)break;f.isub(b)}while(!0);return b.iushln(g)},i.prototype.invm=function(u){return this.egcd(u).a.umod(u)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(u){return this.words[0]&u},i.prototype.bincn=function(u){n(typeof u=="number");var f=u%26,b=(u-f)/26,g=1<<f;if(this.length<=b)return this._expand(b+1),this.words[b]|=g,this;for(var v=g,A=b;v!==0&&A<this.length;A++){var N=this.words[A]|0;N+=v,v=N>>>26,N&=67108863,this.words[A]=N}return v!==0&&(this.words[A]=v,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(u){var f=u<0;if(this.negative!==0&&!f)return-1;if(this.negative===0&&f)return 1;this.strip();var b;if(this.length>1)b=1;else{f&&(u=-u),n(u<=67108863,"Number is too big");var g=this.words[0]|0;b=g===u?0:g<u?-1:1}return this.negative!==0?-b|0:b},i.prototype.cmp=function(u){if(this.negative!==0&&u.negative===0)return-1;if(this.negative===0&&u.negative!==0)return 1;var f=this.ucmp(u);return this.negative!==0?-f|0:f},i.prototype.ucmp=function(u){if(this.length>u.length)return 1;if(this.length<u.length)return-1;for(var f=0,b=this.length-1;b>=0;b--){var g=this.words[b]|0,v=u.words[b]|0;if(g!==v){g<v?f=-1:g>v&&(f=1);break}}return f},i.prototype.gtn=function(u){return this.cmpn(u)===1},i.prototype.gt=function(u){return this.cmp(u)===1},i.prototype.gten=function(u){return this.cmpn(u)>=0},i.prototype.gte=function(u){return this.cmp(u)>=0},i.prototype.ltn=function(u){return this.cmpn(u)===-1},i.prototype.lt=function(u){return this.cmp(u)===-1},i.prototype.lten=function(u){return this.cmpn(u)<=0},i.prototype.lte=function(u){return this.cmp(u)<=0},i.prototype.eqn=function(u){return this.cmpn(u)===0},i.prototype.eq=function(u){return this.cmp(u)===0},i.red=function(u){return new z(u)},i.prototype.toRed=function(u){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),u.convertTo(this)._forceRed(u)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(u){return this.red=u,this},i.prototype.forceRed=function(u){return n(!this.red,"Already a number in reduction context"),this._forceRed(u)},i.prototype.redAdd=function(u){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,u)},i.prototype.redIAdd=function(u){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,u)},i.prototype.redSub=function(u){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,u)},i.prototype.redISub=function(u){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,u)},i.prototype.redShl=function(u){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,u)},i.prototype.redMul=function(u){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.mul(this,u)},i.prototype.redIMul=function(u){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.imul(this,u)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(u){return n(this.red&&!u.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,u)};var D={k256:null,p224:null,p192:null,p25519:null};function k(I,u){this.name=I,this.p=new i(u,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}k.prototype._tmp=function(){var u=new i(null);return u.words=new Array(Math.ceil(this.n/13)),u},k.prototype.ireduce=function(u){var f=u,b;do this.split(f,this.tmp),f=this.imulK(f),f=f.iadd(this.tmp),b=f.bitLength();while(b>this.n);var g=b<this.n?-1:f.ucmp(this.p);return g===0?(f.words[0]=0,f.length=1):g>0?f.isub(this.p):f.strip!==void 0?f.strip():f._strip(),f},k.prototype.split=function(u,f){u.iushrn(this.n,0,f)},k.prototype.imulK=function(u){return u.imul(this.k)};function _(){k.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}a(_,k),_.prototype.split=function(u,f){for(var b=4194303,g=Math.min(u.length,9),v=0;v<g;v++)f.words[v]=u.words[v];if(f.length=g,u.length<=9){u.words[0]=0,u.length=1;return}var A=u.words[9];for(f.words[f.length++]=A&b,v=10;v<u.length;v++){var N=u.words[v]|0;u.words[v-10]=(N&b)<<4|A>>>22,A=N}A>>>=22,u.words[v-10]=A,A===0&&u.length>10?u.length-=10:u.length-=9},_.prototype.imulK=function(u){u.words[u.length]=0,u.words[u.length+1]=0,u.length+=2;for(var f=0,b=0;b<u.length;b++){var g=u.words[b]|0;f+=g*977,u.words[b]=f&67108863,f=g*64+(f/67108864|0)}return u.words[u.length-1]===0&&(u.length--,u.words[u.length-1]===0&&u.length--),u};function L(){k.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}a(L,k);function O(){k.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}a(O,k);function B(){k.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}a(B,k),B.prototype.imulK=function(u){for(var f=0,b=0;b<u.length;b++){var g=(u.words[b]|0)*19+f,v=g&67108863;g>>>=26,u.words[b]=v,f=g}return f!==0&&(u.words[u.length++]=f),u},i._prime=function(u){if(D[u])return D[u];var f;if(u==="k256")f=new _;else if(u==="p224")f=new L;else if(u==="p192")f=new O;else if(u==="p25519")f=new B;else throw new Error("Unknown prime "+u);return D[u]=f,f};function z(I){if(typeof I=="string"){var u=i._prime(I);this.m=u.p,this.prime=u}else n(I.gtn(1),"modulus must be greater than 1"),this.m=I,this.prime=null}z.prototype._verify1=function(u){n(u.negative===0,"red works only with positives"),n(u.red,"red works only with red numbers")},z.prototype._verify2=function(u,f){n((u.negative|f.negative)===0,"red works only with positives"),n(u.red&&u.red===f.red,"red works only with red numbers")},z.prototype.imod=function(u){return this.prime?this.prime.ireduce(u)._forceRed(this):u.umod(this.m)._forceRed(this)},z.prototype.neg=function(u){return u.isZero()?u.clone():this.m.sub(u)._forceRed(this)},z.prototype.add=function(u,f){this._verify2(u,f);var b=u.add(f);return b.cmp(this.m)>=0&&b.isub(this.m),b._forceRed(this)},z.prototype.iadd=function(u,f){this._verify2(u,f);var b=u.iadd(f);return b.cmp(this.m)>=0&&b.isub(this.m),b},z.prototype.sub=function(u,f){this._verify2(u,f);var b=u.sub(f);return b.cmpn(0)<0&&b.iadd(this.m),b._forceRed(this)},z.prototype.isub=function(u,f){this._verify2(u,f);var b=u.isub(f);return b.cmpn(0)<0&&b.iadd(this.m),b},z.prototype.shl=function(u,f){return this._verify1(u),this.imod(u.ushln(f))},z.prototype.imul=function(u,f){return this._verify2(u,f),this.imod(u.imul(f))},z.prototype.mul=function(u,f){return this._verify2(u,f),this.imod(u.mul(f))},z.prototype.isqr=function(u){return this.imul(u,u.clone())},z.prototype.sqr=function(u){return this.mul(u,u)},z.prototype.sqrt=function(u){if(u.isZero())return u.clone();var f=this.m.andln(3);if(n(f%2===1),f===3){var b=this.m.add(new i(1)).iushrn(2);return this.pow(u,b)}for(var g=this.m.subn(1),v=0;!g.isZero()&&g.andln(1)===0;)v++,g.iushrn(1);n(!g.isZero());var A=new i(1).toRed(this),N=A.redNeg(),w=this.m.subn(1).iushrn(1),p=this.m.bitLength();for(p=new i(2*p*p).toRed(this);this.pow(p,w).cmp(N)!==0;)p.redIAdd(N);for(var C=this.pow(p,g),P=this.pow(u,g.addn(1).iushrn(1)),R=this.pow(u,g),$=v;R.cmp(A)!==0;){for(var Y=R,V=0;Y.cmp(A)!==0;V++)Y=Y.redSqr();n(V<$);var U=this.pow(C,new i(1).iushln($-V-1));P=P.redMul(U),C=U.redSqr(),R=R.redMul(C),$=V}return P},z.prototype.invm=function(u){var f=u._invmp(this.m);return f.negative!==0?(f.negative=0,this.imod(f).redNeg()):this.imod(f)},z.prototype.pow=function(u,f){if(f.isZero())return new i(1).toRed(this);if(f.cmpn(1)===0)return u.clone();var b=4,g=new Array(1<<b);g[0]=new i(1).toRed(this),g[1]=u;for(var v=2;v<g.length;v++)g[v]=this.mul(g[v-1],u);var A=g[0],N=0,w=0,p=f.bitLength()%26;for(p===0&&(p=26),v=f.length-1;v>=0;v--){for(var C=f.words[v],P=p-1;P>=0;P--){var R=C>>P&1;if(A!==g[0]&&(A=this.sqr(A)),R===0&&N===0){w=0;continue}N<<=1,N|=R,w++,!(w!==b&&(v!==0||P!==0))&&(A=this.mul(A,g[N]),w=0,N=0)}p=26}return A},z.prototype.convertTo=function(u){var f=u.umod(this.m);return f===u?f.clone():f},z.prototype.convertFrom=function(u){var f=u.clone();return f.red=null,f},i.mont=function(u){return new F(u)};function F(I){z.call(this,I),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}a(F,z),F.prototype.convertTo=function(u){return this.imod(u.ushln(this.shift))},F.prototype.convertFrom=function(u){var f=this.imod(u.mul(this.rinv));return f.red=null,f},F.prototype.imul=function(u,f){if(u.isZero()||f.isZero())return u.words[0]=0,u.length=1,u;var b=u.imul(f),g=b.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=b.isub(g).iushrn(this.shift),A=v;return v.cmp(this.m)>=0?A=v.isub(this.m):v.cmpn(0)<0&&(A=v.iadd(this.m)),A._forceRed(this)},F.prototype.mul=function(u,f){if(u.isZero()||f.isZero())return new i(0)._forceRed(this);var b=u.mul(f),g=b.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=b.isub(g).iushrn(this.shift),A=v;return v.cmp(this.m)>=0?A=v.isub(this.m):v.cmpn(0)<0&&(A=v.iadd(this.m)),A._forceRed(this)},F.prototype.invm=function(u){var f=this.imod(u._invmp(this.m).mul(this.r2));return f._forceRed(this)}})(t,st)}(hC)),hC.exports}var mC={exports:{}};mC.exports;var O0e;function QGe(){return O0e||(O0e=1,function(t){(function(e,r){function n(I,u){if(!I)throw new Error(u||"Assertion failed")}function a(I,u){I.super_=u;var f=function(){};f.prototype=u.prototype,I.prototype=new f,I.prototype.constructor=I}function i(I,u,f){if(i.isBN(I))return I;this.negative=0,this.words=null,this.length=0,this.red=null,I!==null&&((u==="le"||u==="be")&&(f=u,u=10),this._init(I||0,u||10,f||"be"))}typeof e=="object"?e.exports=i:r.BN=i,i.BN=i,i.wordSize=26;var s;try{typeof window<"u"&&typeof window.Buffer<"u"?s=window.Buffer:s=It.Buffer}catch{}i.isBN=function(u){return u instanceof i?!0:u!==null&&typeof u=="object"&&u.constructor.wordSize===i.wordSize&&Array.isArray(u.words)},i.max=function(u,f){return u.cmp(f)>0?u:f},i.min=function(u,f){return u.cmp(f)<0?u:f},i.prototype._init=function(u,f,b){if(typeof u=="number")return this._initNumber(u,f,b);if(typeof u=="object")return this._initArray(u,f,b);f==="hex"&&(f=16),n(f===(f|0)&&f>=2&&f<=36),u=u.toString().replace(/\s+/g,"");var g=0;u[0]==="-"&&(g++,this.negative=1),g<u.length&&(f===16?this._parseHex(u,g,b):(this._parseBase(u,f,g),b==="le"&&this._initArray(this.toArray(),f,b)))},i.prototype._initNumber=function(u,f,b){u<0&&(this.negative=1,u=-u),u<67108864?(this.words=[u&67108863],this.length=1):u<4503599627370496?(this.words=[u&67108863,u/67108864&67108863],this.length=2):(n(u<9007199254740992),this.words=[u&67108863,u/67108864&67108863,1],this.length=3),b==="le"&&this._initArray(this.toArray(),f,b)},i.prototype._initArray=function(u,f,b){if(n(typeof u.length=="number"),u.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(u.length/3),this.words=new Array(this.length);for(var g=0;g<this.length;g++)this.words[g]=0;var v,A,N=0;if(b==="be")for(g=u.length-1,v=0;g>=0;g-=3)A=u[g]|u[g-1]<<8|u[g-2]<<16,this.words[v]|=A<<N&67108863,this.words[v+1]=A>>>26-N&67108863,N+=24,N>=26&&(N-=26,v++);else if(b==="le")for(g=0,v=0;g<u.length;g+=3)A=u[g]|u[g+1]<<8|u[g+2]<<16,this.words[v]|=A<<N&67108863,this.words[v+1]=A>>>26-N&67108863,N+=24,N>=26&&(N-=26,v++);return this.strip()};function o(I,u){var f=I.charCodeAt(u);return f>=65&&f<=70?f-55:f>=97&&f<=102?f-87:f-48&15}function c(I,u,f){var b=o(I,f);return f-1>=u&&(b|=o(I,f-1)<<4),b}i.prototype._parseHex=function(u,f,b){this.length=Math.ceil((u.length-f)/6),this.words=new Array(this.length);for(var g=0;g<this.length;g++)this.words[g]=0;var v=0,A=0,N;if(b==="be")for(g=u.length-1;g>=f;g-=2)N=c(u,f,g)<<v,this.words[A]|=N&67108863,v>=18?(v-=18,A+=1,this.words[A]|=N>>>26):v+=8;else{var w=u.length-f;for(g=w%2===0?f+1:f;g<u.length;g+=2)N=c(u,f,g)<<v,this.words[A]|=N&67108863,v>=18?(v-=18,A+=1,this.words[A]|=N>>>26):v+=8}this.strip()};function l(I,u,f,b){for(var g=0,v=Math.min(I.length,f),A=u;A<v;A++){var N=I.charCodeAt(A)-48;g*=b,N>=49?g+=N-49+10:N>=17?g+=N-17+10:g+=N}return g}i.prototype._parseBase=function(u,f,b){this.words=[0],this.length=1;for(var g=0,v=1;v<=67108863;v*=f)g++;g--,v=v/f|0;for(var A=u.length-b,N=A%g,w=Math.min(A,A-N)+b,p=0,C=b;C<w;C+=g)p=l(u,C,C+g,f),this.imuln(v),this.words[0]+p<67108864?this.words[0]+=p:this._iaddn(p);if(N!==0){var P=1;for(p=l(u,C,u.length,f),C=0;C<N;C++)P*=f;this.imuln(P),this.words[0]+p<67108864?this.words[0]+=p:this._iaddn(p)}this.strip()},i.prototype.copy=function(u){u.words=new Array(this.length);for(var f=0;f<this.length;f++)u.words[f]=this.words[f];u.length=this.length,u.negative=this.negative,u.red=this.red},i.prototype.clone=function(){var u=new i(null);return this.copy(u),u},i.prototype._expand=function(u){for(;this.length<u;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],m=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(u,f){u=u||10,f=f|0||1;var b;if(u===16||u==="hex"){b="";for(var g=0,v=0,A=0;A<this.length;A++){var N=this.words[A],w=((N<<g|v)&16777215).toString(16);v=N>>>24-g&16777215,g+=2,g>=26&&(g-=26,A--),v!==0||A!==this.length-1?b=d[6-w.length]+w+b:b=w+b}for(v!==0&&(b=v.toString(16)+b);b.length%f!==0;)b="0"+b;return this.negative!==0&&(b="-"+b),b}if(u===(u|0)&&u>=2&&u<=36){var p=h[u],C=m[u];b="";var P=this.clone();for(P.negative=0;!P.isZero();){var R=P.modn(C).toString(u);P=P.idivn(C),P.isZero()?b=R+b:b=d[p-R.length]+R+b}for(this.isZero()&&(b="0"+b);b.length%f!==0;)b="0"+b;return this.negative!==0&&(b="-"+b),b}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var u=this.words[0];return this.length===2?u+=this.words[1]*67108864:this.length===3&&this.words[2]===1?u+=4503599627370496+this.words[1]*67108864:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-u:u},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(u,f){return n(typeof s<"u"),this.toArrayLike(s,u,f)},i.prototype.toArray=function(u,f){return this.toArrayLike(Array,u,f)},i.prototype.toArrayLike=function(u,f,b){var g=this.byteLength(),v=b||Math.max(1,g);n(g<=v,"byte array longer than desired length"),n(v>0,"Requested array length <= 0"),this.strip();var A=f==="le",N=new u(v),w,p,C=this.clone();if(A){for(p=0;!C.isZero();p++)w=C.andln(255),C.iushrn(8),N[p]=w;for(;p<v;p++)N[p]=0}else{for(p=0;p<v-g;p++)N[p]=0;for(p=0;!C.isZero();p++)w=C.andln(255),C.iushrn(8),N[v-p-1]=w}return N},Math.clz32?i.prototype._countBits=function(u){return 32-Math.clz32(u)}:i.prototype._countBits=function(u){var f=u,b=0;return f>=4096&&(b+=13,f>>>=13),f>=64&&(b+=7,f>>>=7),f>=8&&(b+=4,f>>>=4),f>=2&&(b+=2,f>>>=2),b+f},i.prototype._zeroBits=function(u){if(u===0)return 26;var f=u,b=0;return f&8191||(b+=13,f>>>=13),f&127||(b+=7,f>>>=7),f&15||(b+=4,f>>>=4),f&3||(b+=2,f>>>=2),f&1||b++,b},i.prototype.bitLength=function(){var u=this.words[this.length-1],f=this._countBits(u);return(this.length-1)*26+f};function y(I){for(var u=new Array(I.bitLength()),f=0;f<u.length;f++){var b=f/26|0,g=f%26;u[f]=(I.words[b]&1<<g)>>>g}return u}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var u=0,f=0;f<this.length;f++){var b=this._zeroBits(this.words[f]);if(u+=b,b!==26)break}return u},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(u){return this.negative!==0?this.abs().inotn(u).iaddn(1):this.clone()},i.prototype.fromTwos=function(u){return this.testn(u-1)?this.notn(u).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(u){for(;this.length<u.length;)this.words[this.length++]=0;for(var f=0;f<u.length;f++)this.words[f]=this.words[f]|u.words[f];return this.strip()},i.prototype.ior=function(u){return n((this.negative|u.negative)===0),this.iuor(u)},i.prototype.or=function(u){return this.length>u.length?this.clone().ior(u):u.clone().ior(this)},i.prototype.uor=function(u){return this.length>u.length?this.clone().iuor(u):u.clone().iuor(this)},i.prototype.iuand=function(u){var f;this.length>u.length?f=u:f=this;for(var b=0;b<f.length;b++)this.words[b]=this.words[b]&u.words[b];return this.length=f.length,this.strip()},i.prototype.iand=function(u){return n((this.negative|u.negative)===0),this.iuand(u)},i.prototype.and=function(u){return this.length>u.length?this.clone().iand(u):u.clone().iand(this)},i.prototype.uand=function(u){return this.length>u.length?this.clone().iuand(u):u.clone().iuand(this)},i.prototype.iuxor=function(u){var f,b;this.length>u.length?(f=this,b=u):(f=u,b=this);for(var g=0;g<b.length;g++)this.words[g]=f.words[g]^b.words[g];if(this!==f)for(;g<f.length;g++)this.words[g]=f.words[g];return this.length=f.length,this.strip()},i.prototype.ixor=function(u){return n((this.negative|u.negative)===0),this.iuxor(u)},i.prototype.xor=function(u){return this.length>u.length?this.clone().ixor(u):u.clone().ixor(this)},i.prototype.uxor=function(u){return this.length>u.length?this.clone().iuxor(u):u.clone().iuxor(this)},i.prototype.inotn=function(u){n(typeof u=="number"&&u>=0);var f=Math.ceil(u/26)|0,b=u%26;this._expand(f),b>0&&f--;for(var g=0;g<f;g++)this.words[g]=~this.words[g]&67108863;return b>0&&(this.words[g]=~this.words[g]&67108863>>26-b),this.strip()},i.prototype.notn=function(u){return this.clone().inotn(u)},i.prototype.setn=function(u,f){n(typeof u=="number"&&u>=0);var b=u/26|0,g=u%26;return this._expand(b+1),f?this.words[b]=this.words[b]|1<<g:this.words[b]=this.words[b]&~(1<<g),this.strip()},i.prototype.iadd=function(u){var f;if(this.negative!==0&&u.negative===0)return this.negative=0,f=this.isub(u),this.negative^=1,this._normSign();if(this.negative===0&&u.negative!==0)return u.negative=0,f=this.isub(u),u.negative=1,f._normSign();var b,g;this.length>u.length?(b=this,g=u):(b=u,g=this);for(var v=0,A=0;A<g.length;A++)f=(b.words[A]|0)+(g.words[A]|0)+v,this.words[A]=f&67108863,v=f>>>26;for(;v!==0&&A<b.length;A++)f=(b.words[A]|0)+v,this.words[A]=f&67108863,v=f>>>26;if(this.length=b.length,v!==0)this.words[this.length]=v,this.length++;else if(b!==this)for(;A<b.length;A++)this.words[A]=b.words[A];return this},i.prototype.add=function(u){var f;return u.negative!==0&&this.negative===0?(u.negative=0,f=this.sub(u),u.negative^=1,f):u.negative===0&&this.negative!==0?(this.negative=0,f=u.sub(this),this.negative=1,f):this.length>u.length?this.clone().iadd(u):u.clone().iadd(this)},i.prototype.isub=function(u){if(u.negative!==0){u.negative=0;var f=this.iadd(u);return u.negative=1,f._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(u),this.negative=1,this._normSign();var b=this.cmp(u);if(b===0)return this.negative=0,this.length=1,this.words[0]=0,this;var g,v;b>0?(g=this,v=u):(g=u,v=this);for(var A=0,N=0;N<v.length;N++)f=(g.words[N]|0)-(v.words[N]|0)+A,A=f>>26,this.words[N]=f&67108863;for(;A!==0&&N<g.length;N++)f=(g.words[N]|0)+A,A=f>>26,this.words[N]=f&67108863;if(A===0&&N<g.length&&g!==this)for(;N<g.length;N++)this.words[N]=g.words[N];return this.length=Math.max(this.length,N),g!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(u){return this.clone().isub(u)};function x(I,u,f){f.negative=u.negative^I.negative;var b=I.length+u.length|0;f.length=b,b=b-1|0;var g=I.words[0]|0,v=u.words[0]|0,A=g*v,N=A&67108863,w=A/67108864|0;f.words[0]=N;for(var p=1;p<b;p++){for(var C=w>>>26,P=w&67108863,R=Math.min(p,u.length-1),$=Math.max(0,p-I.length+1);$<=R;$++){var Y=p-$|0;g=I.words[Y]|0,v=u.words[$]|0,A=g*v+P,C+=A/67108864|0,P=A&67108863}f.words[p]=P|0,w=C|0}return w!==0?f.words[p]=w|0:f.length--,f.strip()}var M=function(u,f,b){var g=u.words,v=f.words,A=b.words,N=0,w,p,C,P=g[0]|0,R=P&8191,$=P>>>13,Y=g[1]|0,V=Y&8191,U=Y>>>13,G=g[2]|0,Q=G&8191,re=G>>>13,q=g[3]|0,H=q&8191,Z=q>>>13,ae=g[4]|0,de=ae&8191,ye=ae>>>13,je=g[5]|0,we=je&8191,ve=je>>>13,qe=g[6]|0,Me=qe&8191,ue=qe>>>13,ke=g[7]|0,te=ke&8191,me=ke>>>13,We=g[8]|0,X=We&8191,W=We>>>13,K=g[9]|0,ne=K&8191,fe=K>>>13,Ae=v[0]|0,be=Ae&8191,Ie=Ae>>>13,ct=v[1]|0,De=ct&8191,Pe=ct>>>13,ft=v[2]|0,He=ft&8191,Ve=ft>>>13,Ft=v[3]|0,Ge=Ft&8191,Je=Ft>>>13,sr=v[4]|0,Xe=sr&8191,it=sr>>>13,pr=v[5]|0,et=pr&8191,lt=pr>>>13,Dr=v[6]|0,Ke=Dr&8191,ut=Dr>>>13,ie=v[7]|0,se=ie&8191,oe=ie>>>13,J=v[8]|0,le=J&8191,xe=J>>>13,ze=v[9]|0,Ce=ze&8191,Ne=ze>>>13;b.negative=u.negative^f.negative,b.length=19,w=Math.imul(R,be),p=Math.imul(R,Ie),p=p+Math.imul($,be)|0,C=Math.imul($,Ie);var dt=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(dt>>>26)|0,dt&=67108863,w=Math.imul(V,be),p=Math.imul(V,Ie),p=p+Math.imul(U,be)|0,C=Math.imul(U,Ie),w=w+Math.imul(R,De)|0,p=p+Math.imul(R,Pe)|0,p=p+Math.imul($,De)|0,C=C+Math.imul($,Pe)|0;var pt=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(pt>>>26)|0,pt&=67108863,w=Math.imul(Q,be),p=Math.imul(Q,Ie),p=p+Math.imul(re,be)|0,C=Math.imul(re,Ie),w=w+Math.imul(V,De)|0,p=p+Math.imul(V,Pe)|0,p=p+Math.imul(U,De)|0,C=C+Math.imul(U,Pe)|0,w=w+Math.imul(R,He)|0,p=p+Math.imul(R,Ve)|0,p=p+Math.imul($,He)|0,C=C+Math.imul($,Ve)|0;var nr=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(nr>>>26)|0,nr&=67108863,w=Math.imul(H,be),p=Math.imul(H,Ie),p=p+Math.imul(Z,be)|0,C=Math.imul(Z,Ie),w=w+Math.imul(Q,De)|0,p=p+Math.imul(Q,Pe)|0,p=p+Math.imul(re,De)|0,C=C+Math.imul(re,Pe)|0,w=w+Math.imul(V,He)|0,p=p+Math.imul(V,Ve)|0,p=p+Math.imul(U,He)|0,C=C+Math.imul(U,Ve)|0,w=w+Math.imul(R,Ge)|0,p=p+Math.imul(R,Je)|0,p=p+Math.imul($,Ge)|0,C=C+Math.imul($,Je)|0;var xt=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(xt>>>26)|0,xt&=67108863,w=Math.imul(de,be),p=Math.imul(de,Ie),p=p+Math.imul(ye,be)|0,C=Math.imul(ye,Ie),w=w+Math.imul(H,De)|0,p=p+Math.imul(H,Pe)|0,p=p+Math.imul(Z,De)|0,C=C+Math.imul(Z,Pe)|0,w=w+Math.imul(Q,He)|0,p=p+Math.imul(Q,Ve)|0,p=p+Math.imul(re,He)|0,C=C+Math.imul(re,Ve)|0,w=w+Math.imul(V,Ge)|0,p=p+Math.imul(V,Je)|0,p=p+Math.imul(U,Ge)|0,C=C+Math.imul(U,Je)|0,w=w+Math.imul(R,Xe)|0,p=p+Math.imul(R,it)|0,p=p+Math.imul($,Xe)|0,C=C+Math.imul($,it)|0;var gt=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(gt>>>26)|0,gt&=67108863,w=Math.imul(we,be),p=Math.imul(we,Ie),p=p+Math.imul(ve,be)|0,C=Math.imul(ve,Ie),w=w+Math.imul(de,De)|0,p=p+Math.imul(de,Pe)|0,p=p+Math.imul(ye,De)|0,C=C+Math.imul(ye,Pe)|0,w=w+Math.imul(H,He)|0,p=p+Math.imul(H,Ve)|0,p=p+Math.imul(Z,He)|0,C=C+Math.imul(Z,Ve)|0,w=w+Math.imul(Q,Ge)|0,p=p+Math.imul(Q,Je)|0,p=p+Math.imul(re,Ge)|0,C=C+Math.imul(re,Je)|0,w=w+Math.imul(V,Xe)|0,p=p+Math.imul(V,it)|0,p=p+Math.imul(U,Xe)|0,C=C+Math.imul(U,it)|0,w=w+Math.imul(R,et)|0,p=p+Math.imul(R,lt)|0,p=p+Math.imul($,et)|0,C=C+Math.imul($,lt)|0;var Pt=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,w=Math.imul(Me,be),p=Math.imul(Me,Ie),p=p+Math.imul(ue,be)|0,C=Math.imul(ue,Ie),w=w+Math.imul(we,De)|0,p=p+Math.imul(we,Pe)|0,p=p+Math.imul(ve,De)|0,C=C+Math.imul(ve,Pe)|0,w=w+Math.imul(de,He)|0,p=p+Math.imul(de,Ve)|0,p=p+Math.imul(ye,He)|0,C=C+Math.imul(ye,Ve)|0,w=w+Math.imul(H,Ge)|0,p=p+Math.imul(H,Je)|0,p=p+Math.imul(Z,Ge)|0,C=C+Math.imul(Z,Je)|0,w=w+Math.imul(Q,Xe)|0,p=p+Math.imul(Q,it)|0,p=p+Math.imul(re,Xe)|0,C=C+Math.imul(re,it)|0,w=w+Math.imul(V,et)|0,p=p+Math.imul(V,lt)|0,p=p+Math.imul(U,et)|0,C=C+Math.imul(U,lt)|0,w=w+Math.imul(R,Ke)|0,p=p+Math.imul(R,ut)|0,p=p+Math.imul($,Ke)|0,C=C+Math.imul($,ut)|0;var tr=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(tr>>>26)|0,tr&=67108863,w=Math.imul(te,be),p=Math.imul(te,Ie),p=p+Math.imul(me,be)|0,C=Math.imul(me,Ie),w=w+Math.imul(Me,De)|0,p=p+Math.imul(Me,Pe)|0,p=p+Math.imul(ue,De)|0,C=C+Math.imul(ue,Pe)|0,w=w+Math.imul(we,He)|0,p=p+Math.imul(we,Ve)|0,p=p+Math.imul(ve,He)|0,C=C+Math.imul(ve,Ve)|0,w=w+Math.imul(de,Ge)|0,p=p+Math.imul(de,Je)|0,p=p+Math.imul(ye,Ge)|0,C=C+Math.imul(ye,Je)|0,w=w+Math.imul(H,Xe)|0,p=p+Math.imul(H,it)|0,p=p+Math.imul(Z,Xe)|0,C=C+Math.imul(Z,it)|0,w=w+Math.imul(Q,et)|0,p=p+Math.imul(Q,lt)|0,p=p+Math.imul(re,et)|0,C=C+Math.imul(re,lt)|0,w=w+Math.imul(V,Ke)|0,p=p+Math.imul(V,ut)|0,p=p+Math.imul(U,Ke)|0,C=C+Math.imul(U,ut)|0,w=w+Math.imul(R,se)|0,p=p+Math.imul(R,oe)|0,p=p+Math.imul($,se)|0,C=C+Math.imul($,oe)|0;var er=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(er>>>26)|0,er&=67108863,w=Math.imul(X,be),p=Math.imul(X,Ie),p=p+Math.imul(W,be)|0,C=Math.imul(W,Ie),w=w+Math.imul(te,De)|0,p=p+Math.imul(te,Pe)|0,p=p+Math.imul(me,De)|0,C=C+Math.imul(me,Pe)|0,w=w+Math.imul(Me,He)|0,p=p+Math.imul(Me,Ve)|0,p=p+Math.imul(ue,He)|0,C=C+Math.imul(ue,Ve)|0,w=w+Math.imul(we,Ge)|0,p=p+Math.imul(we,Je)|0,p=p+Math.imul(ve,Ge)|0,C=C+Math.imul(ve,Je)|0,w=w+Math.imul(de,Xe)|0,p=p+Math.imul(de,it)|0,p=p+Math.imul(ye,Xe)|0,C=C+Math.imul(ye,it)|0,w=w+Math.imul(H,et)|0,p=p+Math.imul(H,lt)|0,p=p+Math.imul(Z,et)|0,C=C+Math.imul(Z,lt)|0,w=w+Math.imul(Q,Ke)|0,p=p+Math.imul(Q,ut)|0,p=p+Math.imul(re,Ke)|0,C=C+Math.imul(re,ut)|0,w=w+Math.imul(V,se)|0,p=p+Math.imul(V,oe)|0,p=p+Math.imul(U,se)|0,C=C+Math.imul(U,oe)|0,w=w+Math.imul(R,le)|0,p=p+Math.imul(R,xe)|0,p=p+Math.imul($,le)|0,C=C+Math.imul($,xe)|0;var Kt=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,w=Math.imul(ne,be),p=Math.imul(ne,Ie),p=p+Math.imul(fe,be)|0,C=Math.imul(fe,Ie),w=w+Math.imul(X,De)|0,p=p+Math.imul(X,Pe)|0,p=p+Math.imul(W,De)|0,C=C+Math.imul(W,Pe)|0,w=w+Math.imul(te,He)|0,p=p+Math.imul(te,Ve)|0,p=p+Math.imul(me,He)|0,C=C+Math.imul(me,Ve)|0,w=w+Math.imul(Me,Ge)|0,p=p+Math.imul(Me,Je)|0,p=p+Math.imul(ue,Ge)|0,C=C+Math.imul(ue,Je)|0,w=w+Math.imul(we,Xe)|0,p=p+Math.imul(we,it)|0,p=p+Math.imul(ve,Xe)|0,C=C+Math.imul(ve,it)|0,w=w+Math.imul(de,et)|0,p=p+Math.imul(de,lt)|0,p=p+Math.imul(ye,et)|0,C=C+Math.imul(ye,lt)|0,w=w+Math.imul(H,Ke)|0,p=p+Math.imul(H,ut)|0,p=p+Math.imul(Z,Ke)|0,C=C+Math.imul(Z,ut)|0,w=w+Math.imul(Q,se)|0,p=p+Math.imul(Q,oe)|0,p=p+Math.imul(re,se)|0,C=C+Math.imul(re,oe)|0,w=w+Math.imul(V,le)|0,p=p+Math.imul(V,xe)|0,p=p+Math.imul(U,le)|0,C=C+Math.imul(U,xe)|0,w=w+Math.imul(R,Ce)|0,p=p+Math.imul(R,Ne)|0,p=p+Math.imul($,Ce)|0,C=C+Math.imul($,Ne)|0;var Jt=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(Jt>>>26)|0,Jt&=67108863,w=Math.imul(ne,De),p=Math.imul(ne,Pe),p=p+Math.imul(fe,De)|0,C=Math.imul(fe,Pe),w=w+Math.imul(X,He)|0,p=p+Math.imul(X,Ve)|0,p=p+Math.imul(W,He)|0,C=C+Math.imul(W,Ve)|0,w=w+Math.imul(te,Ge)|0,p=p+Math.imul(te,Je)|0,p=p+Math.imul(me,Ge)|0,C=C+Math.imul(me,Je)|0,w=w+Math.imul(Me,Xe)|0,p=p+Math.imul(Me,it)|0,p=p+Math.imul(ue,Xe)|0,C=C+Math.imul(ue,it)|0,w=w+Math.imul(we,et)|0,p=p+Math.imul(we,lt)|0,p=p+Math.imul(ve,et)|0,C=C+Math.imul(ve,lt)|0,w=w+Math.imul(de,Ke)|0,p=p+Math.imul(de,ut)|0,p=p+Math.imul(ye,Ke)|0,C=C+Math.imul(ye,ut)|0,w=w+Math.imul(H,se)|0,p=p+Math.imul(H,oe)|0,p=p+Math.imul(Z,se)|0,C=C+Math.imul(Z,oe)|0,w=w+Math.imul(Q,le)|0,p=p+Math.imul(Q,xe)|0,p=p+Math.imul(re,le)|0,C=C+Math.imul(re,xe)|0,w=w+Math.imul(V,Ce)|0,p=p+Math.imul(V,Ne)|0,p=p+Math.imul(U,Ce)|0,C=C+Math.imul(U,Ne)|0;var Zt=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,w=Math.imul(ne,He),p=Math.imul(ne,Ve),p=p+Math.imul(fe,He)|0,C=Math.imul(fe,Ve),w=w+Math.imul(X,Ge)|0,p=p+Math.imul(X,Je)|0,p=p+Math.imul(W,Ge)|0,C=C+Math.imul(W,Je)|0,w=w+Math.imul(te,Xe)|0,p=p+Math.imul(te,it)|0,p=p+Math.imul(me,Xe)|0,C=C+Math.imul(me,it)|0,w=w+Math.imul(Me,et)|0,p=p+Math.imul(Me,lt)|0,p=p+Math.imul(ue,et)|0,C=C+Math.imul(ue,lt)|0,w=w+Math.imul(we,Ke)|0,p=p+Math.imul(we,ut)|0,p=p+Math.imul(ve,Ke)|0,C=C+Math.imul(ve,ut)|0,w=w+Math.imul(de,se)|0,p=p+Math.imul(de,oe)|0,p=p+Math.imul(ye,se)|0,C=C+Math.imul(ye,oe)|0,w=w+Math.imul(H,le)|0,p=p+Math.imul(H,xe)|0,p=p+Math.imul(Z,le)|0,C=C+Math.imul(Z,xe)|0,w=w+Math.imul(Q,Ce)|0,p=p+Math.imul(Q,Ne)|0,p=p+Math.imul(re,Ce)|0,C=C+Math.imul(re,Ne)|0;var Nt=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,w=Math.imul(ne,Ge),p=Math.imul(ne,Je),p=p+Math.imul(fe,Ge)|0,C=Math.imul(fe,Je),w=w+Math.imul(X,Xe)|0,p=p+Math.imul(X,it)|0,p=p+Math.imul(W,Xe)|0,C=C+Math.imul(W,it)|0,w=w+Math.imul(te,et)|0,p=p+Math.imul(te,lt)|0,p=p+Math.imul(me,et)|0,C=C+Math.imul(me,lt)|0,w=w+Math.imul(Me,Ke)|0,p=p+Math.imul(Me,ut)|0,p=p+Math.imul(ue,Ke)|0,C=C+Math.imul(ue,ut)|0,w=w+Math.imul(we,se)|0,p=p+Math.imul(we,oe)|0,p=p+Math.imul(ve,se)|0,C=C+Math.imul(ve,oe)|0,w=w+Math.imul(de,le)|0,p=p+Math.imul(de,xe)|0,p=p+Math.imul(ye,le)|0,C=C+Math.imul(ye,xe)|0,w=w+Math.imul(H,Ce)|0,p=p+Math.imul(H,Ne)|0,p=p+Math.imul(Z,Ce)|0,C=C+Math.imul(Z,Ne)|0;var Ot=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,w=Math.imul(ne,Xe),p=Math.imul(ne,it),p=p+Math.imul(fe,Xe)|0,C=Math.imul(fe,it),w=w+Math.imul(X,et)|0,p=p+Math.imul(X,lt)|0,p=p+Math.imul(W,et)|0,C=C+Math.imul(W,lt)|0,w=w+Math.imul(te,Ke)|0,p=p+Math.imul(te,ut)|0,p=p+Math.imul(me,Ke)|0,C=C+Math.imul(me,ut)|0,w=w+Math.imul(Me,se)|0,p=p+Math.imul(Me,oe)|0,p=p+Math.imul(ue,se)|0,C=C+Math.imul(ue,oe)|0,w=w+Math.imul(we,le)|0,p=p+Math.imul(we,xe)|0,p=p+Math.imul(ve,le)|0,C=C+Math.imul(ve,xe)|0,w=w+Math.imul(de,Ce)|0,p=p+Math.imul(de,Ne)|0,p=p+Math.imul(ye,Ce)|0,C=C+Math.imul(ye,Ne)|0;var Ct=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,w=Math.imul(ne,et),p=Math.imul(ne,lt),p=p+Math.imul(fe,et)|0,C=Math.imul(fe,lt),w=w+Math.imul(X,Ke)|0,p=p+Math.imul(X,ut)|0,p=p+Math.imul(W,Ke)|0,C=C+Math.imul(W,ut)|0,w=w+Math.imul(te,se)|0,p=p+Math.imul(te,oe)|0,p=p+Math.imul(me,se)|0,C=C+Math.imul(me,oe)|0,w=w+Math.imul(Me,le)|0,p=p+Math.imul(Me,xe)|0,p=p+Math.imul(ue,le)|0,C=C+Math.imul(ue,xe)|0,w=w+Math.imul(we,Ce)|0,p=p+Math.imul(we,Ne)|0,p=p+Math.imul(ve,Ce)|0,C=C+Math.imul(ve,Ne)|0;var kt=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(kt>>>26)|0,kt&=67108863,w=Math.imul(ne,Ke),p=Math.imul(ne,ut),p=p+Math.imul(fe,Ke)|0,C=Math.imul(fe,ut),w=w+Math.imul(X,se)|0,p=p+Math.imul(X,oe)|0,p=p+Math.imul(W,se)|0,C=C+Math.imul(W,oe)|0,w=w+Math.imul(te,le)|0,p=p+Math.imul(te,xe)|0,p=p+Math.imul(me,le)|0,C=C+Math.imul(me,xe)|0,w=w+Math.imul(Me,Ce)|0,p=p+Math.imul(Me,Ne)|0,p=p+Math.imul(ue,Ce)|0,C=C+Math.imul(ue,Ne)|0;var Bt=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,w=Math.imul(ne,se),p=Math.imul(ne,oe),p=p+Math.imul(fe,se)|0,C=Math.imul(fe,oe),w=w+Math.imul(X,le)|0,p=p+Math.imul(X,xe)|0,p=p+Math.imul(W,le)|0,C=C+Math.imul(W,xe)|0,w=w+Math.imul(te,Ce)|0,p=p+Math.imul(te,Ne)|0,p=p+Math.imul(me,Ce)|0,C=C+Math.imul(me,Ne)|0;var At=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(At>>>26)|0,At&=67108863,w=Math.imul(ne,le),p=Math.imul(ne,xe),p=p+Math.imul(fe,le)|0,C=Math.imul(fe,xe),w=w+Math.imul(X,Ce)|0,p=p+Math.imul(X,Ne)|0,p=p+Math.imul(W,Ce)|0,C=C+Math.imul(W,Ne)|0;var Ze=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,w=Math.imul(ne,Ce),p=Math.imul(ne,Ne),p=p+Math.imul(fe,Ce)|0,C=Math.imul(fe,Ne);var Qe=(N+w|0)+((p&8191)<<13)|0;return N=(C+(p>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,A[0]=dt,A[1]=pt,A[2]=nr,A[3]=xt,A[4]=gt,A[5]=Pt,A[6]=tr,A[7]=er,A[8]=Kt,A[9]=Jt,A[10]=Zt,A[11]=Nt,A[12]=Ot,A[13]=Ct,A[14]=kt,A[15]=Bt,A[16]=At,A[17]=Ze,A[18]=Qe,N!==0&&(A[19]=N,b.length++),b};Math.imul||(M=x);function E(I,u,f){f.negative=u.negative^I.negative,f.length=I.length+u.length;for(var b=0,g=0,v=0;v<f.length-1;v++){var A=g;g=0;for(var N=b&67108863,w=Math.min(v,u.length-1),p=Math.max(0,v-I.length+1);p<=w;p++){var C=v-p,P=I.words[C]|0,R=u.words[p]|0,$=P*R,Y=$&67108863;A=A+($/67108864|0)|0,Y=Y+N|0,N=Y&67108863,A=A+(Y>>>26)|0,g+=A>>>26,A&=67108863}f.words[v]=N,b=A,A=g}return b!==0?f.words[v]=b:f.length--,f.strip()}function S(I,u,f){var b=new T;return b.mulp(I,u,f)}i.prototype.mulTo=function(u,f){var b,g=this.length+u.length;return this.length===10&&u.length===10?b=M(this,u,f):g<63?b=x(this,u,f):g<1024?b=E(this,u,f):b=S(this,u,f),b};function T(I,u){this.x=I,this.y=u}T.prototype.makeRBT=function(u){for(var f=new Array(u),b=i.prototype._countBits(u)-1,g=0;g<u;g++)f[g]=this.revBin(g,b,u);return f},T.prototype.revBin=function(u,f,b){if(u===0||u===b-1)return u;for(var g=0,v=0;v<f;v++)g|=(u&1)<<f-v-1,u>>=1;return g},T.prototype.permute=function(u,f,b,g,v,A){for(var N=0;N<A;N++)g[N]=f[u[N]],v[N]=b[u[N]]},T.prototype.transform=function(u,f,b,g,v,A){this.permute(A,u,f,b,g,v);for(var N=1;N<v;N<<=1)for(var w=N<<1,p=Math.cos(2*Math.PI/w),C=Math.sin(2*Math.PI/w),P=0;P<v;P+=w)for(var R=p,$=C,Y=0;Y<N;Y++){var V=b[P+Y],U=g[P+Y],G=b[P+Y+N],Q=g[P+Y+N],re=R*G-$*Q;Q=R*Q+$*G,G=re,b[P+Y]=V+G,g[P+Y]=U+Q,b[P+Y+N]=V-G,g[P+Y+N]=U-Q,Y!==w&&(re=p*R-C*$,$=p*$+C*R,R=re)}},T.prototype.guessLen13b=function(u,f){var b=Math.max(f,u)|1,g=b&1,v=0;for(b=b/2|0;b;b=b>>>1)v++;return 1<<v+1+g},T.prototype.conjugate=function(u,f,b){if(!(b<=1))for(var g=0;g<b/2;g++){var v=u[g];u[g]=u[b-g-1],u[b-g-1]=v,v=f[g],f[g]=-f[b-g-1],f[b-g-1]=-v}},T.prototype.normalize13b=function(u,f){for(var b=0,g=0;g<f/2;g++){var v=Math.round(u[2*g+1]/f)*8192+Math.round(u[2*g]/f)+b;u[g]=v&67108863,v<67108864?b=0:b=v/67108864|0}return u},T.prototype.convert13b=function(u,f,b,g){for(var v=0,A=0;A<f;A++)v=v+(u[A]|0),b[2*A]=v&8191,v=v>>>13,b[2*A+1]=v&8191,v=v>>>13;for(A=2*f;A<g;++A)b[A]=0;n(v===0),n((v&-8192)===0)},T.prototype.stub=function(u){for(var f=new Array(u),b=0;b<u;b++)f[b]=0;return f},T.prototype.mulp=function(u,f,b){var g=2*this.guessLen13b(u.length,f.length),v=this.makeRBT(g),A=this.stub(g),N=new Array(g),w=new Array(g),p=new Array(g),C=new Array(g),P=new Array(g),R=new Array(g),$=b.words;$.length=g,this.convert13b(u.words,u.length,N,g),this.convert13b(f.words,f.length,C,g),this.transform(N,A,w,p,g,v),this.transform(C,A,P,R,g,v);for(var Y=0;Y<g;Y++){var V=w[Y]*P[Y]-p[Y]*R[Y];p[Y]=w[Y]*R[Y]+p[Y]*P[Y],w[Y]=V}return this.conjugate(w,p,g),this.transform(w,p,$,A,g,v),this.conjugate($,A,g),this.normalize13b($,g),b.negative=u.negative^f.negative,b.length=u.length+f.length,b.strip()},i.prototype.mul=function(u){var f=new i(null);return f.words=new Array(this.length+u.length),this.mulTo(u,f)},i.prototype.mulf=function(u){var f=new i(null);return f.words=new Array(this.length+u.length),S(this,u,f)},i.prototype.imul=function(u){return this.clone().mulTo(u,this)},i.prototype.imuln=function(u){n(typeof u=="number"),n(u<67108864);for(var f=0,b=0;b<this.length;b++){var g=(this.words[b]|0)*u,v=(g&67108863)+(f&67108863);f>>=26,f+=g/67108864|0,f+=v>>>26,this.words[b]=v&67108863}return f!==0&&(this.words[b]=f,this.length++),this},i.prototype.muln=function(u){return this.clone().imuln(u)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(u){var f=y(u);if(f.length===0)return new i(1);for(var b=this,g=0;g<f.length&&f[g]===0;g++,b=b.sqr());if(++g<f.length)for(var v=b.sqr();g<f.length;g++,v=v.sqr())f[g]!==0&&(b=b.mul(v));return b},i.prototype.iushln=function(u){n(typeof u=="number"&&u>=0);var f=u%26,b=(u-f)/26,g=67108863>>>26-f<<26-f,v;if(f!==0){var A=0;for(v=0;v<this.length;v++){var N=this.words[v]&g,w=(this.words[v]|0)-N<<f;this.words[v]=w|A,A=N>>>26-f}A&&(this.words[v]=A,this.length++)}if(b!==0){for(v=this.length-1;v>=0;v--)this.words[v+b]=this.words[v];for(v=0;v<b;v++)this.words[v]=0;this.length+=b}return this.strip()},i.prototype.ishln=function(u){return n(this.negative===0),this.iushln(u)},i.prototype.iushrn=function(u,f,b){n(typeof u=="number"&&u>=0);var g;f?g=(f-f%26)/26:g=0;var v=u%26,A=Math.min((u-v)/26,this.length),N=67108863^67108863>>>v<<v,w=b;if(g-=A,g=Math.max(0,g),w){for(var p=0;p<A;p++)w.words[p]=this.words[p];w.length=A}if(A!==0)if(this.length>A)for(this.length-=A,p=0;p<this.length;p++)this.words[p]=this.words[p+A];else this.words[0]=0,this.length=1;var C=0;for(p=this.length-1;p>=0&&(C!==0||p>=g);p--){var P=this.words[p]|0;this.words[p]=C<<26-v|P>>>v,C=P&N}return w&&C!==0&&(w.words[w.length++]=C),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(u,f,b){return n(this.negative===0),this.iushrn(u,f,b)},i.prototype.shln=function(u){return this.clone().ishln(u)},i.prototype.ushln=function(u){return this.clone().iushln(u)},i.prototype.shrn=function(u){return this.clone().ishrn(u)},i.prototype.ushrn=function(u){return this.clone().iushrn(u)},i.prototype.testn=function(u){n(typeof u=="number"&&u>=0);var f=u%26,b=(u-f)/26,g=1<<f;if(this.length<=b)return!1;var v=this.words[b];return!!(v&g)},i.prototype.imaskn=function(u){n(typeof u=="number"&&u>=0);var f=u%26,b=(u-f)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=b)return this;if(f!==0&&b++,this.length=Math.min(b,this.length),f!==0){var g=67108863^67108863>>>f<<f;this.words[this.length-1]&=g}return this.strip()},i.prototype.maskn=function(u){return this.clone().imaskn(u)},i.prototype.iaddn=function(u){return n(typeof u=="number"),n(u<67108864),u<0?this.isubn(-u):this.negative!==0?this.length===1&&(this.words[0]|0)<u?(this.words[0]=u-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(u),this.negative=1,this):this._iaddn(u)},i.prototype._iaddn=function(u){this.words[0]+=u;for(var f=0;f<this.length&&this.words[f]>=67108864;f++)this.words[f]-=67108864,f===this.length-1?this.words[f+1]=1:this.words[f+1]++;return this.length=Math.max(this.length,f+1),this},i.prototype.isubn=function(u){if(n(typeof u=="number"),n(u<67108864),u<0)return this.iaddn(-u);if(this.negative!==0)return this.negative=0,this.iaddn(u),this.negative=1,this;if(this.words[0]-=u,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var f=0;f<this.length&&this.words[f]<0;f++)this.words[f]+=67108864,this.words[f+1]-=1;return this.strip()},i.prototype.addn=function(u){return this.clone().iaddn(u)},i.prototype.subn=function(u){return this.clone().isubn(u)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(u,f,b){var g=u.length+b,v;this._expand(g);var A,N=0;for(v=0;v<u.length;v++){A=(this.words[v+b]|0)+N;var w=(u.words[v]|0)*f;A-=w&67108863,N=(A>>26)-(w/67108864|0),this.words[v+b]=A&67108863}for(;v<this.length-b;v++)A=(this.words[v+b]|0)+N,N=A>>26,this.words[v+b]=A&67108863;if(N===0)return this.strip();for(n(N===-1),N=0,v=0;v<this.length;v++)A=-(this.words[v]|0)+N,N=A>>26,this.words[v]=A&67108863;return this.negative=1,this.strip()},i.prototype._wordDiv=function(u,f){var b=this.length-u.length,g=this.clone(),v=u,A=v.words[v.length-1]|0,N=this._countBits(A);b=26-N,b!==0&&(v=v.ushln(b),g.iushln(b),A=v.words[v.length-1]|0);var w=g.length-v.length,p;if(f!=="mod"){p=new i(null),p.length=w+1,p.words=new Array(p.length);for(var C=0;C<p.length;C++)p.words[C]=0}var P=g.clone()._ishlnsubmul(v,1,w);P.negative===0&&(g=P,p&&(p.words[w]=1));for(var R=w-1;R>=0;R--){var $=(g.words[v.length+R]|0)*67108864+(g.words[v.length+R-1]|0);for($=Math.min($/A|0,67108863),g._ishlnsubmul(v,$,R);g.negative!==0;)$--,g.negative=0,g._ishlnsubmul(v,1,R),g.isZero()||(g.negative^=1);p&&(p.words[R]=$)}return p&&p.strip(),g.strip(),f!=="div"&&b!==0&&g.iushrn(b),{div:p||null,mod:g}},i.prototype.divmod=function(u,f,b){if(n(!u.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var g,v,A;return this.negative!==0&&u.negative===0?(A=this.neg().divmod(u,f),f!=="mod"&&(g=A.div.neg()),f!=="div"&&(v=A.mod.neg(),b&&v.negative!==0&&v.iadd(u)),{div:g,mod:v}):this.negative===0&&u.negative!==0?(A=this.divmod(u.neg(),f),f!=="mod"&&(g=A.div.neg()),{div:g,mod:A.mod}):this.negative&u.negative?(A=this.neg().divmod(u.neg(),f),f!=="div"&&(v=A.mod.neg(),b&&v.negative!==0&&v.isub(u)),{div:A.div,mod:v}):u.length>this.length||this.cmp(u)<0?{div:new i(0),mod:this}:u.length===1?f==="div"?{div:this.divn(u.words[0]),mod:null}:f==="mod"?{div:null,mod:new i(this.modn(u.words[0]))}:{div:this.divn(u.words[0]),mod:new i(this.modn(u.words[0]))}:this._wordDiv(u,f)},i.prototype.div=function(u){return this.divmod(u,"div",!1).div},i.prototype.mod=function(u){return this.divmod(u,"mod",!1).mod},i.prototype.umod=function(u){return this.divmod(u,"mod",!0).mod},i.prototype.divRound=function(u){var f=this.divmod(u);if(f.mod.isZero())return f.div;var b=f.div.negative!==0?f.mod.isub(u):f.mod,g=u.ushrn(1),v=u.andln(1),A=b.cmp(g);return A<0||v===1&&A===0?f.div:f.div.negative!==0?f.div.isubn(1):f.div.iaddn(1)},i.prototype.modn=function(u){n(u<=67108863);for(var f=(1<<26)%u,b=0,g=this.length-1;g>=0;g--)b=(f*b+(this.words[g]|0))%u;return b},i.prototype.idivn=function(u){n(u<=67108863);for(var f=0,b=this.length-1;b>=0;b--){var g=(this.words[b]|0)+f*67108864;this.words[b]=g/u|0,f=g%u}return this.strip()},i.prototype.divn=function(u){return this.clone().idivn(u)},i.prototype.egcd=function(u){n(u.negative===0),n(!u.isZero());var f=this,b=u.clone();f.negative!==0?f=f.umod(u):f=f.clone();for(var g=new i(1),v=new i(0),A=new i(0),N=new i(1),w=0;f.isEven()&&b.isEven();)f.iushrn(1),b.iushrn(1),++w;for(var p=b.clone(),C=f.clone();!f.isZero();){for(var P=0,R=1;!(f.words[0]&R)&&P<26;++P,R<<=1);if(P>0)for(f.iushrn(P);P-- >0;)(g.isOdd()||v.isOdd())&&(g.iadd(p),v.isub(C)),g.iushrn(1),v.iushrn(1);for(var $=0,Y=1;!(b.words[0]&Y)&&$<26;++$,Y<<=1);if($>0)for(b.iushrn($);$-- >0;)(A.isOdd()||N.isOdd())&&(A.iadd(p),N.isub(C)),A.iushrn(1),N.iushrn(1);f.cmp(b)>=0?(f.isub(b),g.isub(A),v.isub(N)):(b.isub(f),A.isub(g),N.isub(v))}return{a:A,b:N,gcd:b.iushln(w)}},i.prototype._invmp=function(u){n(u.negative===0),n(!u.isZero());var f=this,b=u.clone();f.negative!==0?f=f.umod(u):f=f.clone();for(var g=new i(1),v=new i(0),A=b.clone();f.cmpn(1)>0&&b.cmpn(1)>0;){for(var N=0,w=1;!(f.words[0]&w)&&N<26;++N,w<<=1);if(N>0)for(f.iushrn(N);N-- >0;)g.isOdd()&&g.iadd(A),g.iushrn(1);for(var p=0,C=1;!(b.words[0]&C)&&p<26;++p,C<<=1);if(p>0)for(b.iushrn(p);p-- >0;)v.isOdd()&&v.iadd(A),v.iushrn(1);f.cmp(b)>=0?(f.isub(b),g.isub(v)):(b.isub(f),v.isub(g))}var P;return f.cmpn(1)===0?P=g:P=v,P.cmpn(0)<0&&P.iadd(u),P},i.prototype.gcd=function(u){if(this.isZero())return u.abs();if(u.isZero())return this.abs();var f=this.clone(),b=u.clone();f.negative=0,b.negative=0;for(var g=0;f.isEven()&&b.isEven();g++)f.iushrn(1),b.iushrn(1);do{for(;f.isEven();)f.iushrn(1);for(;b.isEven();)b.iushrn(1);var v=f.cmp(b);if(v<0){var A=f;f=b,b=A}else if(v===0||b.cmpn(1)===0)break;f.isub(b)}while(!0);return b.iushln(g)},i.prototype.invm=function(u){return this.egcd(u).a.umod(u)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(u){return this.words[0]&u},i.prototype.bincn=function(u){n(typeof u=="number");var f=u%26,b=(u-f)/26,g=1<<f;if(this.length<=b)return this._expand(b+1),this.words[b]|=g,this;for(var v=g,A=b;v!==0&&A<this.length;A++){var N=this.words[A]|0;N+=v,v=N>>>26,N&=67108863,this.words[A]=N}return v!==0&&(this.words[A]=v,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(u){var f=u<0;if(this.negative!==0&&!f)return-1;if(this.negative===0&&f)return 1;this.strip();var b;if(this.length>1)b=1;else{f&&(u=-u),n(u<=67108863,"Number is too big");var g=this.words[0]|0;b=g===u?0:g<u?-1:1}return this.negative!==0?-b|0:b},i.prototype.cmp=function(u){if(this.negative!==0&&u.negative===0)return-1;if(this.negative===0&&u.negative!==0)return 1;var f=this.ucmp(u);return this.negative!==0?-f|0:f},i.prototype.ucmp=function(u){if(this.length>u.length)return 1;if(this.length<u.length)return-1;for(var f=0,b=this.length-1;b>=0;b--){var g=this.words[b]|0,v=u.words[b]|0;if(g!==v){g<v?f=-1:g>v&&(f=1);break}}return f},i.prototype.gtn=function(u){return this.cmpn(u)===1},i.prototype.gt=function(u){return this.cmp(u)===1},i.prototype.gten=function(u){return this.cmpn(u)>=0},i.prototype.gte=function(u){return this.cmp(u)>=0},i.prototype.ltn=function(u){return this.cmpn(u)===-1},i.prototype.lt=function(u){return this.cmp(u)===-1},i.prototype.lten=function(u){return this.cmpn(u)<=0},i.prototype.lte=function(u){return this.cmp(u)<=0},i.prototype.eqn=function(u){return this.cmpn(u)===0},i.prototype.eq=function(u){return this.cmp(u)===0},i.red=function(u){return new z(u)},i.prototype.toRed=function(u){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),u.convertTo(this)._forceRed(u)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(u){return this.red=u,this},i.prototype.forceRed=function(u){return n(!this.red,"Already a number in reduction context"),this._forceRed(u)},i.prototype.redAdd=function(u){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,u)},i.prototype.redIAdd=function(u){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,u)},i.prototype.redSub=function(u){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,u)},i.prototype.redISub=function(u){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,u)},i.prototype.redShl=function(u){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,u)},i.prototype.redMul=function(u){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.mul(this,u)},i.prototype.redIMul=function(u){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.imul(this,u)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(u){return n(this.red&&!u.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,u)};var D={k256:null,p224:null,p192:null,p25519:null};function k(I,u){this.name=I,this.p=new i(u,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}k.prototype._tmp=function(){var u=new i(null);return u.words=new Array(Math.ceil(this.n/13)),u},k.prototype.ireduce=function(u){var f=u,b;do this.split(f,this.tmp),f=this.imulK(f),f=f.iadd(this.tmp),b=f.bitLength();while(b>this.n);var g=b<this.n?-1:f.ucmp(this.p);return g===0?(f.words[0]=0,f.length=1):g>0?f.isub(this.p):f.strip!==void 0?f.strip():f._strip(),f},k.prototype.split=function(u,f){u.iushrn(this.n,0,f)},k.prototype.imulK=function(u){return u.imul(this.k)};function _(){k.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}a(_,k),_.prototype.split=function(u,f){for(var b=4194303,g=Math.min(u.length,9),v=0;v<g;v++)f.words[v]=u.words[v];if(f.length=g,u.length<=9){u.words[0]=0,u.length=1;return}var A=u.words[9];for(f.words[f.length++]=A&b,v=10;v<u.length;v++){var N=u.words[v]|0;u.words[v-10]=(N&b)<<4|A>>>22,A=N}A>>>=22,u.words[v-10]=A,A===0&&u.length>10?u.length-=10:u.length-=9},_.prototype.imulK=function(u){u.words[u.length]=0,u.words[u.length+1]=0,u.length+=2;for(var f=0,b=0;b<u.length;b++){var g=u.words[b]|0;f+=g*977,u.words[b]=f&67108863,f=g*64+(f/67108864|0)}return u.words[u.length-1]===0&&(u.length--,u.words[u.length-1]===0&&u.length--),u};function L(){k.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}a(L,k);function O(){k.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}a(O,k);function B(){k.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}a(B,k),B.prototype.imulK=function(u){for(var f=0,b=0;b<u.length;b++){var g=(u.words[b]|0)*19+f,v=g&67108863;g>>>=26,u.words[b]=v,f=g}return f!==0&&(u.words[u.length++]=f),u},i._prime=function(u){if(D[u])return D[u];var f;if(u==="k256")f=new _;else if(u==="p224")f=new L;else if(u==="p192")f=new O;else if(u==="p25519")f=new B;else throw new Error("Unknown prime "+u);return D[u]=f,f};function z(I){if(typeof I=="string"){var u=i._prime(I);this.m=u.p,this.prime=u}else n(I.gtn(1),"modulus must be greater than 1"),this.m=I,this.prime=null}z.prototype._verify1=function(u){n(u.negative===0,"red works only with positives"),n(u.red,"red works only with red numbers")},z.prototype._verify2=function(u,f){n((u.negative|f.negative)===0,"red works only with positives"),n(u.red&&u.red===f.red,"red works only with red numbers")},z.prototype.imod=function(u){return this.prime?this.prime.ireduce(u)._forceRed(this):u.umod(this.m)._forceRed(this)},z.prototype.neg=function(u){return u.isZero()?u.clone():this.m.sub(u)._forceRed(this)},z.prototype.add=function(u,f){this._verify2(u,f);var b=u.add(f);return b.cmp(this.m)>=0&&b.isub(this.m),b._forceRed(this)},z.prototype.iadd=function(u,f){this._verify2(u,f);var b=u.iadd(f);return b.cmp(this.m)>=0&&b.isub(this.m),b},z.prototype.sub=function(u,f){this._verify2(u,f);var b=u.sub(f);return b.cmpn(0)<0&&b.iadd(this.m),b._forceRed(this)},z.prototype.isub=function(u,f){this._verify2(u,f);var b=u.isub(f);return b.cmpn(0)<0&&b.iadd(this.m),b},z.prototype.shl=function(u,f){return this._verify1(u),this.imod(u.ushln(f))},z.prototype.imul=function(u,f){return this._verify2(u,f),this.imod(u.imul(f))},z.prototype.mul=function(u,f){return this._verify2(u,f),this.imod(u.mul(f))},z.prototype.isqr=function(u){return this.imul(u,u.clone())},z.prototype.sqr=function(u){return this.mul(u,u)},z.prototype.sqrt=function(u){if(u.isZero())return u.clone();var f=this.m.andln(3);if(n(f%2===1),f===3){var b=this.m.add(new i(1)).iushrn(2);return this.pow(u,b)}for(var g=this.m.subn(1),v=0;!g.isZero()&&g.andln(1)===0;)v++,g.iushrn(1);n(!g.isZero());var A=new i(1).toRed(this),N=A.redNeg(),w=this.m.subn(1).iushrn(1),p=this.m.bitLength();for(p=new i(2*p*p).toRed(this);this.pow(p,w).cmp(N)!==0;)p.redIAdd(N);for(var C=this.pow(p,g),P=this.pow(u,g.addn(1).iushrn(1)),R=this.pow(u,g),$=v;R.cmp(A)!==0;){for(var Y=R,V=0;Y.cmp(A)!==0;V++)Y=Y.redSqr();n(V<$);var U=this.pow(C,new i(1).iushln($-V-1));P=P.redMul(U),C=U.redSqr(),R=R.redMul(C),$=V}return P},z.prototype.invm=function(u){var f=u._invmp(this.m);return f.negative!==0?(f.negative=0,this.imod(f).redNeg()):this.imod(f)},z.prototype.pow=function(u,f){if(f.isZero())return new i(1).toRed(this);if(f.cmpn(1)===0)return u.clone();var b=4,g=new Array(1<<b);g[0]=new i(1).toRed(this),g[1]=u;for(var v=2;v<g.length;v++)g[v]=this.mul(g[v-1],u);var A=g[0],N=0,w=0,p=f.bitLength()%26;for(p===0&&(p=26),v=f.length-1;v>=0;v--){for(var C=f.words[v],P=p-1;P>=0;P--){var R=C>>P&1;if(A!==g[0]&&(A=this.sqr(A)),R===0&&N===0){w=0;continue}N<<=1,N|=R,w++,!(w!==b&&(v!==0||P!==0))&&(A=this.mul(A,g[N]),w=0,N=0)}p=26}return A},z.prototype.convertTo=function(u){var f=u.umod(this.m);return f===u?f.clone():f},z.prototype.convertFrom=function(u){var f=u.clone();return f.red=null,f},i.mont=function(u){return new F(u)};function F(I){z.call(this,I),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}a(F,z),F.prototype.convertTo=function(u){return this.imod(u.ushln(this.shift))},F.prototype.convertFrom=function(u){var f=this.imod(u.mul(this.rinv));return f.red=null,f},F.prototype.imul=function(u,f){if(u.isZero()||f.isZero())return u.words[0]=0,u.length=1,u;var b=u.imul(f),g=b.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=b.isub(g).iushrn(this.shift),A=v;return v.cmp(this.m)>=0?A=v.isub(this.m):v.cmpn(0)<0&&(A=v.iadd(this.m)),A._forceRed(this)},F.prototype.mul=function(u,f){if(u.isZero()||f.isZero())return new i(0)._forceRed(this);var b=u.mul(f),g=b.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=b.isub(g).iushrn(this.shift),A=v;return v.cmp(this.m)>=0?A=v.isub(this.m):v.cmpn(0)<0&&(A=v.iadd(this.m)),A._forceRed(this)},F.prototype.invm=function(u){var f=this.imod(u._invmp(this.m).mul(this.r2));return f._forceRed(this)}})(t,st)}(mC)),mC.exports}var KA={exports:{}},R0e;function Lq(){if(R0e)return KA.exports;R0e=1;var t;KA.exports=function(a){return t||(t=new e(null)),t.generate(a)};function e(n){this.rand=n}if(KA.exports.Rand=e,e.prototype.generate=function(a){return this._rand(a)},e.prototype._rand=function(a){if(this.rand.getBytes)return this.rand.getBytes(a);for(var i=new Uint8Array(a),s=0;s<i.length;s++)i[s]=this.rand.getByte();return i},typeof self=="object")self.crypto&&self.crypto.getRandomValues?e.prototype._rand=function(a){var i=new Uint8Array(a);return self.crypto.getRandomValues(i),i}:self.msCrypto&&self.msCrypto.getRandomValues?e.prototype._rand=function(a){var i=new Uint8Array(a);return self.msCrypto.getRandomValues(i),i}:typeof window=="object"&&(e.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var r=Kbe();if(typeof r.randomBytes!="function")throw new Error("Not supported");e.prototype._rand=function(a){return r.randomBytes(a)}}catch{}return KA.exports}var Cj,F0e;function Nbe(){if(F0e)return Cj;F0e=1;var t=QGe(),e=Lq();function r(n){this.rand=n||new e.Rand}return Cj=r,r.create=function(a){return new r(a)},r.prototype._randbelow=function(a){var i=a.bitLength(),s=Math.ceil(i/8);do var o=new t(this.rand.generate(s));while(o.cmp(a)>=0);return o},r.prototype._randrange=function(a,i){var s=i.sub(a);return a.add(this._randbelow(s))},r.prototype.test=function(a,i,s){var o=a.bitLength(),c=t.mont(a),l=new t(1).toRed(c);i||(i=Math.max(1,o/48|0));for(var d=a.subn(1),h=0;!d.testn(h);h++);for(var m=a.shrn(h),y=d.toRed(c),x=!0;i>0;i--){var M=this._randrange(new t(2),d);s&&s(M);var E=M.toRed(c).redPow(m);if(!(E.cmp(l)===0||E.cmp(y)===0)){for(var S=1;S<h;S++){if(E=E.redSqr(),E.cmp(l)===0)return!1;if(E.cmp(y)===0)break}if(S===h)return!1}}return x},r.prototype.getDivisor=function(a,i){var s=a.bitLength(),o=t.mont(a),c=new t(1).toRed(o);i||(i=Math.max(1,s/48|0));for(var l=a.subn(1),d=0;!l.testn(d);d++);for(var h=a.shrn(d),m=l.toRed(o);i>0;i--){var y=this._randrange(new t(2),l),x=a.gcd(y);if(x.cmpn(1)!==0)return x;var M=y.toRed(o).redPow(h);if(!(M.cmp(c)===0||M.cmp(m)===0)){for(var E=1;E<d;E++){if(M=M.redSqr(),M.cmp(c)===0)return M.fromRed().subn(1).gcd(a);if(M.cmp(m)===0)break}if(E===d)return M=M.redSqr(),M.fromRed().subn(1).gcd(a)}}return!1},Cj}var Tj,U0e;function kbe(){if(U0e)return Tj;U0e=1;var t=qg();Tj=E,E.simpleSieve=x,E.fermatTest=M;var e=Dbe(),r=new e(24),n=Nbe(),a=new n,i=new e(1),s=new e(2),o=new e(5);new e(16),new e(8);var c=new e(10),l=new e(3);new e(7);var d=new e(11),h=new e(4);new e(12);var m=null;function y(){if(m!==null)return m;var S=1048576,T=[];T[0]=2;for(var D=1,k=3;k<S;k+=2){for(var _=Math.ceil(Math.sqrt(k)),L=0;L<D&&T[L]<=_&&k%T[L]!==0;L++);D!==L&&T[L]<=_||(T[D++]=k)}return m=T,T}function x(S){for(var T=y(),D=0;D<T.length;D++)if(S.modn(T[D])===0)return S.cmpn(T[D])===0;return!0}function M(S){var T=e.mont(S);return s.toRed(T).redPow(S.subn(1)).fromRed().cmpn(1)===0}function E(S,T){if(S<16)return T===2||T===5?new e([140,123]):new e([140,39]);T=new e(T);for(var D,k;;){for(D=new e(t(Math.ceil(S/8)));D.bitLength()>S;)D.ishrn(1);if(D.isEven()&&D.iadd(i),D.testn(1)||D.iadd(s),T.cmp(s)){if(!T.cmp(o))for(;D.mod(c).cmp(l);)D.iadd(h)}else for(;D.mod(r).cmp(d);)D.iadd(h);if(k=D.shrn(1),x(k)&&x(D)&&M(k)&&M(D)&&a.test(k)&&a.test(D))return D}}return Tj}const JGe={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},XGe={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},eYe={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},tYe={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},rYe={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},nYe={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},aYe={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},iYe={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"},sYe={modp1:JGe,modp2:XGe,modp5:eYe,modp14:tYe,modp15:rYe,modp16:nYe,modp17:aYe,modp18:iYe};var Ij,W0e;function oYe(){if(W0e)return Ij;W0e=1;var t=Dbe(),e=Nbe(),r=new e,n=new t(24),a=new t(11),i=new t(10),s=new t(3),o=new t(7),c=kbe(),l=qg();Ij=x;function d(E,S){return S=S||"utf8",Te.Buffer.isBuffer(E)||(E=new Te.Buffer(E,S)),this._pub=new t(E),this}function h(E,S){return S=S||"utf8",Te.Buffer.isBuffer(E)||(E=new Te.Buffer(E,S)),this._priv=new t(E),this}var m={};function y(E,S){var T=S.toString("hex"),D=[T,E.toString(16)].join("_");if(D in m)return m[D];var k=0;if(E.isEven()||!c.simpleSieve||!c.fermatTest(E)||!r.test(E))return k+=1,T==="02"||T==="05"?k+=8:k+=4,m[D]=k,k;r.test(E.shrn(1))||(k+=2);var _;switch(T){case"02":E.mod(n).cmp(a)&&(k+=8);break;case"05":_=E.mod(i),_.cmp(s)&&_.cmp(o)&&(k+=8);break;default:k+=4}return m[D]=k,k}function x(E,S,T){this.setGenerator(S),this.__prime=new t(E),this._prime=t.mont(this.__prime),this._primeLen=E.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,T?(this.setPublicKey=d,this.setPrivateKey=h):this._primeCode=8}Object.defineProperty(x.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=y(this.__prime,this.__gen)),this._primeCode}}),x.prototype.generateKeys=function(){return this._priv||(this._priv=new t(l(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},x.prototype.computeSecret=function(E){E=new t(E),E=E.toRed(this._prime);var S=E.redPow(this._priv).fromRed(),T=new Te.Buffer(S.toArray()),D=this.getPrime();if(T.length<D.length){var k=new Te.Buffer(D.length-T.length);k.fill(0),T=Te.Buffer.concat([k,T])}return T},x.prototype.getPublicKey=function(S){return M(this._pub,S)},x.prototype.getPrivateKey=function(S){return M(this._priv,S)},x.prototype.getPrime=function(E){return M(this.__prime,E)},x.prototype.getGenerator=function(E){return M(this._gen,E)},x.prototype.setGenerator=function(E,S){return S=S||"utf8",Te.Buffer.isBuffer(E)||(E=new Te.Buffer(E,S)),this.__gen=E,this._gen=new t(E),this};function M(E,S){var T=new Te.Buffer(E.toArray());return S?T.toString(S):T}return Ij}var V0e;function cYe(){if(V0e)return E5;V0e=1;var t=kbe(),e=sYe,r=oYe();function n(s){var o=new Te.Buffer(e[s].prime,"hex"),c=new Te.Buffer(e[s].gen,"hex");return new r(o,c)}var a={binary:!0,hex:!0,base64:!0};function i(s,o,c,l){return Te.Buffer.isBuffer(o)||a[o]===void 0?i(s,"binary",o,c):(o=o||"binary",l=l||"binary",c=c||new Te.Buffer([2]),Te.Buffer.isBuffer(c)||(c=new Te.Buffer(c,l)),typeof s=="number"?new r(t(s,c),c,!0):(Te.Buffer.isBuffer(s)||(s=new Te.Buffer(s,o)),new r(s,c,!0)))}return E5.DiffieHellmanGroup=E5.createDiffieHellmanGroup=E5.getDiffieHellman=n,E5.createDiffieHellman=E5.DiffieHellman=i,E5}var ZA={exports:{}},QA={exports:{}},$0e;function YN(){if($0e)return QA.exports;$0e=1,typeof Te.process>"u"||!Te.process.version||Te.process.version.indexOf("v0.")===0||Te.process.version.indexOf("v1.")===0&&Te.process.version.indexOf("v1.8.")!==0?QA.exports={nextTick:t}:QA.exports=Te.process;function t(e,r,n,a){if(typeof e!="function")throw new TypeError('"callback" argument must be a function');var i=arguments.length,s,o;switch(i){case 0:case 1:return Te.process.nextTick(e);case 2:return Te.process.nextTick(function(){e.call(null,r)});case 3:return Te.process.nextTick(function(){e.call(null,r,n)});case 4:return Te.process.nextTick(function(){e.call(null,r,n,a)});default:for(s=new Array(i-1),o=0;o<s.length;)s[o++]=arguments[o];return Te.process.nextTick(function(){e.apply(null,s)})}}return QA.exports}var Dj,H0e;function lYe(){if(H0e)return Dj;H0e=1;var t={}.toString;return Dj=Array.isArray||function(e){return t.call(e)=="[object Array]"},Dj}var Nj,q0e;function _be(){return q0e||(q0e=1,Nj=g3().EventEmitter),Nj}var JA={exports:{}},G0e;function KN(){return G0e||(G0e=1,function(t,e){var r=It,n=r.Buffer;function a(s,o){for(var c in s)o[c]=s[c]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?t.exports=r:(a(r,e),e.Buffer=i);function i(s,o,c){return n(s,o,c)}a(n,i),i.from=function(s,o,c){if(typeof s=="number")throw new TypeError("Argument must not be a number");return n(s,o,c)},i.alloc=function(s,o,c){if(typeof s!="number")throw new TypeError("Argument must be a number");var l=n(s);return o!==void 0?typeof c=="string"?l.fill(o,c):l.fill(o):l.fill(0),l},i.allocUnsafe=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return n(s)},i.allocUnsafeSlow=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(s)}}(JA,JA.exports)),JA.exports}var g0={},Y0e;function fM(){if(Y0e)return g0;Y0e=1;function t(M){return Array.isArray?Array.isArray(M):x(M)==="[object Array]"}g0.isArray=t;function e(M){return typeof M=="boolean"}g0.isBoolean=e;function r(M){return M===null}g0.isNull=r;function n(M){return M==null}g0.isNullOrUndefined=n;function a(M){return typeof M=="number"}g0.isNumber=a;function i(M){return typeof M=="string"}g0.isString=i;function s(M){return typeof M=="symbol"}g0.isSymbol=s;function o(M){return M===void 0}g0.isUndefined=o;function c(M){return x(M)==="[object RegExp]"}g0.isRegExp=c;function l(M){return typeof M=="object"&&M!==null}g0.isObject=l;function d(M){return x(M)==="[object Date]"}g0.isDate=d;function h(M){return x(M)==="[object Error]"||M instanceof Error}g0.isError=h;function m(M){return typeof M=="function"}g0.isFunction=m;function y(M){return M===null||typeof M=="boolean"||typeof M=="number"||typeof M=="string"||typeof M=="symbol"||typeof M>"u"}g0.isPrimitive=y,g0.isBuffer=It.Buffer.isBuffer;function x(M){return Object.prototype.toString.call(M)}return g0}var kj={exports:{}},K0e;function uYe(){return K0e||(K0e=1,function(t){function e(i,s){if(!(i instanceof s))throw new TypeError("Cannot call a class as a function")}var r=KN().Buffer,n=c5;function a(i,s,o){i.copy(s,o)}t.exports=function(){function i(){e(this,i),this.head=null,this.tail=null,this.length=0}return i.prototype.push=function(o){var c={data:o,next:null};this.length>0?this.tail.next=c:this.head=c,this.tail=c,++this.length},i.prototype.unshift=function(o){var c={data:o,next:this.head};this.length===0&&(this.tail=c),this.head=c,++this.length},i.prototype.shift=function(){if(this.length!==0){var o=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,o}},i.prototype.clear=function(){this.head=this.tail=null,this.length=0},i.prototype.join=function(o){if(this.length===0)return"";for(var c=this.head,l=""+c.data;c=c.next;)l+=o+c.data;return l},i.prototype.concat=function(o){if(this.length===0)return r.alloc(0);for(var c=r.allocUnsafe(o>>>0),l=this.head,d=0;l;)a(l.data,c,d),d+=l.data.length,l=l.next;return c},i}(),n&&n.inspect&&n.inspect.custom&&(t.exports.prototype[n.inspect.custom]=function(){var i=n.inspect({length:this.length});return this.constructor.name+" "+i})}(kj)),kj.exports}var _j,Z0e;function Lbe(){if(Z0e)return _j;Z0e=1;var t=YN();function e(a,i){var s=this,o=this._readableState&&this._readableState.destroyed,c=this._writableState&&this._writableState.destroyed;return o||c?(i?i(a):a&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,t.nextTick(n,this,a)):t.nextTick(n,this,a)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(a||null,function(l){!i&&l?s._writableState?s._writableState.errorEmitted||(s._writableState.errorEmitted=!0,t.nextTick(n,s,l)):t.nextTick(n,s,l):i&&i(l)}),this)}function r(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function n(a,i){a.emit("error",i)}return _j={destroy:e,undestroy:r},_j}var Lj,Q0e;function Bbe(){if(Q0e)return Lj;Q0e=1;var t=YN();Lj=M;function e(A){var N=this;this.next=null,this.entry=null,this.finish=function(){v(N,A)}}var r=!Te.process.browser&&["v0.10","v0.9."].indexOf(Te.process.version.slice(0,5))>-1?setImmediate:t.nextTick,n;M.WritableState=y;var a=Object.create(fM());a.inherits=Ar();var i={deprecate:Eq()},s=_be(),o=KN().Buffer,c=(typeof st<"u"?st:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function l(A){return o.from(A)}function d(A){return o.isBuffer(A)||A instanceof c}var h=Lbe();a.inherits(M,s);function m(){}function y(A,N){n=n||W9(),A=A||{};var w=N instanceof n;this.objectMode=!!A.objectMode,w&&(this.objectMode=this.objectMode||!!A.writableObjectMode);var p=A.highWaterMark,C=A.writableHighWaterMark,P=this.objectMode?16:16*1024;p||p===0?this.highWaterMark=p:w&&(C||C===0)?this.highWaterMark=C:this.highWaterMark=P,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var R=A.decodeStrings===!1;this.decodeStrings=!R,this.defaultEncoding=A.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function($){O(N,$)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}y.prototype.getBuffer=function(){for(var N=this.bufferedRequest,w=[];N;)w.push(N),N=N.next;return w},function(){try{Object.defineProperty(y.prototype,"buffer",{get:i.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var x;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(x=Function.prototype[Symbol.hasInstance],Object.defineProperty(M,Symbol.hasInstance,{value:function(A){return x.call(this,A)?!0:this!==M?!1:A&&A._writableState instanceof y}})):x=function(A){return A instanceof this};function M(A){if(n=n||W9(),!x.call(M,this)&&!(this instanceof n))return new M(A);this._writableState=new y(A,this),this.writable=!0,A&&(typeof A.write=="function"&&(this._write=A.write),typeof A.writev=="function"&&(this._writev=A.writev),typeof A.destroy=="function"&&(this._destroy=A.destroy),typeof A.final=="function"&&(this._final=A.final)),s.call(this)}M.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function E(A,N){var w=new Error("write after end");A.emit("error",w),t.nextTick(N,w)}function S(A,N,w,p){var C=!0,P=!1;return w===null?P=new TypeError("May not write null values to stream"):typeof w!="string"&&w!==void 0&&!N.objectMode&&(P=new TypeError("Invalid non-string/buffer chunk")),P&&(A.emit("error",P),t.nextTick(p,P),C=!1),C}M.prototype.write=function(A,N,w){var p=this._writableState,C=!1,P=!p.objectMode&&d(A);return P&&!o.isBuffer(A)&&(A=l(A)),typeof N=="function"&&(w=N,N=null),P?N="buffer":N||(N=p.defaultEncoding),typeof w!="function"&&(w=m),p.ended?E(this,w):(P||S(this,p,A,w))&&(p.pendingcb++,C=D(this,p,P,A,N,w)),C},M.prototype.cork=function(){var A=this._writableState;A.corked++},M.prototype.uncork=function(){var A=this._writableState;A.corked&&(A.corked--,!A.writing&&!A.corked&&!A.bufferProcessing&&A.bufferedRequest&&F(this,A))},M.prototype.setDefaultEncoding=function(N){if(typeof N=="string"&&(N=N.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((N+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+N);return this._writableState.defaultEncoding=N,this};function T(A,N,w){return!A.objectMode&&A.decodeStrings!==!1&&typeof N=="string"&&(N=o.from(N,w)),N}Object.defineProperty(M.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function D(A,N,w,p,C,P){if(!w){var R=T(N,p,C);p!==R&&(w=!0,C="buffer",p=R)}var $=N.objectMode?1:p.length;N.length+=$;var Y=N.length<N.highWaterMark;if(Y||(N.needDrain=!0),N.writing||N.corked){var V=N.lastBufferedRequest;N.lastBufferedRequest={chunk:p,encoding:C,isBuf:w,callback:P,next:null},V?V.next=N.lastBufferedRequest:N.bufferedRequest=N.lastBufferedRequest,N.bufferedRequestCount+=1}else k(A,N,!1,$,p,C,P);return Y}function k(A,N,w,p,C,P,R){N.writelen=p,N.writecb=R,N.writing=!0,N.sync=!0,w?A._writev(C,N.onwrite):A._write(C,P,N.onwrite),N.sync=!1}function _(A,N,w,p,C){--N.pendingcb,w?(t.nextTick(C,p),t.nextTick(b,A,N),A._writableState.errorEmitted=!0,A.emit("error",p)):(C(p),A._writableState.errorEmitted=!0,A.emit("error",p),b(A,N))}function L(A){A.writing=!1,A.writecb=null,A.length-=A.writelen,A.writelen=0}function O(A,N){var w=A._writableState,p=w.sync,C=w.writecb;if(L(w),N)_(A,w,p,N,C);else{var P=I(w);!P&&!w.corked&&!w.bufferProcessing&&w.bufferedRequest&&F(A,w),p?r(B,A,w,P,C):B(A,w,P,C)}}function B(A,N,w,p){w||z(A,N),N.pendingcb--,p(),b(A,N)}function z(A,N){N.length===0&&N.needDrain&&(N.needDrain=!1,A.emit("drain"))}function F(A,N){N.bufferProcessing=!0;var w=N.bufferedRequest;if(A._writev&&w&&w.next){var p=N.bufferedRequestCount,C=new Array(p),P=N.corkedRequestsFree;P.entry=w;for(var R=0,$=!0;w;)C[R]=w,w.isBuf||($=!1),w=w.next,R+=1;C.allBuffers=$,k(A,N,!0,N.length,C,"",P.finish),N.pendingcb++,N.lastBufferedRequest=null,P.next?(N.corkedRequestsFree=P.next,P.next=null):N.corkedRequestsFree=new e(N),N.bufferedRequestCount=0}else{for(;w;){var Y=w.chunk,V=w.encoding,U=w.callback,G=N.objectMode?1:Y.length;if(k(A,N,!1,G,Y,V,U),w=w.next,N.bufferedRequestCount--,N.writing)break}w===null&&(N.lastBufferedRequest=null)}N.bufferedRequest=w,N.bufferProcessing=!1}M.prototype._write=function(A,N,w){w(new Error("_write() is not implemented"))},M.prototype._writev=null,M.prototype.end=function(A,N,w){var p=this._writableState;typeof A=="function"?(w=A,A=null,N=null):typeof N=="function"&&(w=N,N=null),A!=null&&this.write(A,N),p.corked&&(p.corked=1,this.uncork()),p.ending||g(this,p,w)};function I(A){return A.ending&&A.length===0&&A.bufferedRequest===null&&!A.finished&&!A.writing}function u(A,N){A._final(function(w){N.pendingcb--,w&&A.emit("error",w),N.prefinished=!0,A.emit("prefinish"),b(A,N)})}function f(A,N){!N.prefinished&&!N.finalCalled&&(typeof A._final=="function"?(N.pendingcb++,N.finalCalled=!0,t.nextTick(u,A,N)):(N.prefinished=!0,A.emit("prefinish")))}function b(A,N){var w=I(N);return w&&(f(A,N),N.pendingcb===0&&(N.finished=!0,A.emit("finish"))),w}function g(A,N,w){N.ending=!0,b(A,N),w&&(N.finished?t.nextTick(w):A.once("finish",w)),N.ended=!0,A.writable=!1}function v(A,N,w){var p=A.entry;for(A.entry=null;p;){var C=p.callback;N.pendingcb--,C(w),p=p.next}N.corkedRequestsFree.next=A}return Object.defineProperty(M.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(A){this._writableState&&(this._writableState.destroyed=A)}}),M.prototype.destroy=h.destroy,M.prototype._undestroy=h.undestroy,M.prototype._destroy=function(A,N){this.end(),N(A)},Lj}var Bj,J0e;function W9(){if(J0e)return Bj;J0e=1;var t=YN(),e=Object.keys||function(h){var m=[];for(var y in h)m.push(y);return m};Bj=c;var r=Object.create(fM());r.inherits=Ar();var n=jbe(),a=Bbe();r.inherits(c,n);for(var i=e(a.prototype),s=0;s<i.length;s++){var o=i[s];c.prototype[o]||(c.prototype[o]=a.prototype[o])}function c(h){if(!(this instanceof c))return new c(h);n.call(this,h),a.call(this,h),h&&h.readable===!1&&(this.readable=!1),h&&h.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,h&&h.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",l)}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function l(){this.allowHalfOpen||this._writableState.ended||t.nextTick(d,this)}function d(h){h.end()}return Object.defineProperty(c.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(h){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=h,this._writableState.destroyed=h)}}),c.prototype._destroy=function(h,m){this.push(null),this.end(),t.nextTick(m,h)},Bj}var jj={},X0e;function ese(){if(X0e)return jj;X0e=1;var t=KN().Buffer,e=t.isEncoding||function(S){switch(S=""+S,S&&S.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function r(S){if(!S)return"utf8";for(var T;;)switch(S){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return S;default:if(T)return;S=(""+S).toLowerCase(),T=!0}}function n(S){var T=r(S);if(typeof T!="string"&&(t.isEncoding===e||!e(S)))throw new Error("Unknown encoding: "+S);return T||S}jj.StringDecoder=a;function a(S){this.encoding=n(S);var T;switch(this.encoding){case"utf16le":this.text=h,this.end=m,T=4;break;case"utf8":this.fillLast=c,T=4;break;case"base64":this.text=y,this.end=x,T=3;break;default:this.write=M,this.end=E;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(T)}a.prototype.write=function(S){if(S.length===0)return"";var T,D;if(this.lastNeed){if(T=this.fillLast(S),T===void 0)return"";D=this.lastNeed,this.lastNeed=0}else D=0;return D<S.length?T?T+this.text(S,D):this.text(S,D):T||""},a.prototype.end=d,a.prototype.text=l,a.prototype.fillLast=function(S){if(this.lastNeed<=S.length)return S.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);S.copy(this.lastChar,this.lastTotal-this.lastNeed,0,S.length),this.lastNeed-=S.length};function i(S){return S<=127?0:S>>5===6?2:S>>4===14?3:S>>3===30?4:S>>6===2?-1:-2}function s(S,T,D){var k=T.length-1;if(k<D)return 0;var _=i(T[k]);return _>=0?(_>0&&(S.lastNeed=_-1),_):--k<D||_===-2?0:(_=i(T[k]),_>=0?(_>0&&(S.lastNeed=_-2),_):--k<D||_===-2?0:(_=i(T[k]),_>=0?(_>0&&(_===2?_=0:S.lastNeed=_-3),_):0))}function o(S,T,D){if((T[0]&192)!==128)return S.lastNeed=0,"�";if(S.lastNeed>1&&T.length>1){if((T[1]&192)!==128)return S.lastNeed=1,"�";if(S.lastNeed>2&&T.length>2&&(T[2]&192)!==128)return S.lastNeed=2,"�"}}function c(S){var T=this.lastTotal-this.lastNeed,D=o(this,S);if(D!==void 0)return D;if(this.lastNeed<=S.length)return S.copy(this.lastChar,T,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);S.copy(this.lastChar,T,0,S.length),this.lastNeed-=S.length}function l(S,T){var D=s(this,S,T);if(!this.lastNeed)return S.toString("utf8",T);this.lastTotal=D;var k=S.length-(D-this.lastNeed);return S.copy(this.lastChar,0,k),S.toString("utf8",T,k)}function d(S){var T=S&&S.length?this.write(S):"";return this.lastNeed?T+"�":T}function h(S,T){if((S.length-T)%2===0){var D=S.toString("utf16le",T);if(D){var k=D.charCodeAt(D.length-1);if(k>=55296&&k<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=S[S.length-2],this.lastChar[1]=S[S.length-1],D.slice(0,-1)}return D}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=S[S.length-1],S.toString("utf16le",T,S.length-1)}function m(S){var T=S&&S.length?this.write(S):"";if(this.lastNeed){var D=this.lastTotal-this.lastNeed;return T+this.lastChar.toString("utf16le",0,D)}return T}function y(S,T){var D=(S.length-T)%3;return D===0?S.toString("base64",T):(this.lastNeed=3-D,this.lastTotal=3,D===1?this.lastChar[0]=S[S.length-1]:(this.lastChar[0]=S[S.length-2],this.lastChar[1]=S[S.length-1]),S.toString("base64",T,S.length-D))}function x(S){var T=S&&S.length?this.write(S):"";return this.lastNeed?T+this.lastChar.toString("base64",0,3-this.lastNeed):T}function M(S){return S.toString(this.encoding)}function E(S){return S&&S.length?this.write(S):""}return jj}var zj,tse;function jbe(){if(tse)return zj;tse=1;var t=YN();zj=T;var e=lYe(),r;T.ReadableState=S,g3().EventEmitter;var n=function(U,G){return U.listeners(G).length},a=_be(),i=KN().Buffer,s=(typeof st<"u"?st:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function o(U){return i.from(U)}function c(U){return i.isBuffer(U)||U instanceof s}var l=Object.create(fM());l.inherits=Ar();var d=c5,h=void 0;d&&d.debuglog?h=d.debuglog("stream"):h=function(){};var m=uYe(),y=Lbe(),x;l.inherits(T,a);var M=["error","close","destroy","pause","resume"];function E(U,G,Q){if(typeof U.prependListener=="function")return U.prependListener(G,Q);!U._events||!U._events[G]?U.on(G,Q):e(U._events[G])?U._events[G].unshift(Q):U._events[G]=[Q,U._events[G]]}function S(U,G){r=r||W9(),U=U||{};var Q=G instanceof r;this.objectMode=!!U.objectMode,Q&&(this.objectMode=this.objectMode||!!U.readableObjectMode);var re=U.highWaterMark,q=U.readableHighWaterMark,H=this.objectMode?16:16*1024;re||re===0?this.highWaterMark=re:Q&&(q||q===0)?this.highWaterMark=q:this.highWaterMark=H,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=U.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,U.encoding&&(x||(x=ese().StringDecoder),this.decoder=new x(U.encoding),this.encoding=U.encoding)}function T(U){if(r=r||W9(),!(this instanceof T))return new T(U);this._readableState=new S(U,this),this.readable=!0,U&&(typeof U.read=="function"&&(this._read=U.read),typeof U.destroy=="function"&&(this._destroy=U.destroy)),a.call(this)}Object.defineProperty(T.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(U){this._readableState&&(this._readableState.destroyed=U)}}),T.prototype.destroy=y.destroy,T.prototype._undestroy=y.undestroy,T.prototype._destroy=function(U,G){this.push(null),G(U)},T.prototype.push=function(U,G){var Q=this._readableState,re;return Q.objectMode?re=!0:typeof U=="string"&&(G=G||Q.defaultEncoding,G!==Q.encoding&&(U=i.from(U,G),G=""),re=!0),D(this,U,G,!1,re)},T.prototype.unshift=function(U){return D(this,U,null,!0,!1)};function D(U,G,Q,re,q){var H=U._readableState;if(G===null)H.reading=!1,F(U,H);else{var Z;q||(Z=_(H,G)),Z?U.emit("error",Z):H.objectMode||G&&G.length>0?(typeof G!="string"&&!H.objectMode&&Object.getPrototypeOf(G)!==i.prototype&&(G=o(G)),re?H.endEmitted?U.emit("error",new Error("stream.unshift() after end event")):k(U,H,G,!0):H.ended?U.emit("error",new Error("stream.push() after EOF")):(H.reading=!1,H.decoder&&!Q?(G=H.decoder.write(G),H.objectMode||G.length!==0?k(U,H,G,!1):f(U,H)):k(U,H,G,!1))):re||(H.reading=!1)}return L(H)}function k(U,G,Q,re){G.flowing&&G.length===0&&!G.sync?(U.emit("data",Q),U.read(0)):(G.length+=G.objectMode?1:Q.length,re?G.buffer.unshift(Q):G.buffer.push(Q),G.needReadable&&I(U)),f(U,G)}function _(U,G){var Q;return!c(G)&&typeof G!="string"&&G!==void 0&&!U.objectMode&&(Q=new TypeError("Invalid non-string/buffer chunk")),Q}function L(U){return!U.ended&&(U.needReadable||U.length<U.highWaterMark||U.length===0)}T.prototype.isPaused=function(){return this._readableState.flowing===!1},T.prototype.setEncoding=function(U){return x||(x=ese().StringDecoder),this._readableState.decoder=new x(U),this._readableState.encoding=U,this};var O=8388608;function B(U){return U>=O?U=O:(U--,U|=U>>>1,U|=U>>>2,U|=U>>>4,U|=U>>>8,U|=U>>>16,U++),U}function z(U,G){return U<=0||G.length===0&&G.ended?0:G.objectMode?1:U!==U?G.flowing&&G.length?G.buffer.head.data.length:G.length:(U>G.highWaterMark&&(G.highWaterMark=B(U)),U<=G.length?U:G.ended?G.length:(G.needReadable=!0,0))}T.prototype.read=function(U){h("read",U),U=parseInt(U,10);var G=this._readableState,Q=U;if(U!==0&&(G.emittedReadable=!1),U===0&&G.needReadable&&(G.length>=G.highWaterMark||G.ended))return h("read: emitReadable",G.length,G.ended),G.length===0&&G.ended?$(this):I(this),null;if(U=z(U,G),U===0&&G.ended)return G.length===0&&$(this),null;var re=G.needReadable;h("need readable",re),(G.length===0||G.length-U<G.highWaterMark)&&(re=!0,h("length less than watermark",re)),G.ended||G.reading?(re=!1,h("reading or ended",re)):re&&(h("do read"),G.reading=!0,G.sync=!0,G.length===0&&(G.needReadable=!0),this._read(G.highWaterMark),G.sync=!1,G.reading||(U=z(Q,G)));var q;return U>0?q=p(U,G):q=null,q===null?(G.needReadable=!0,U=0):G.length-=U,G.length===0&&(G.ended||(G.needReadable=!0),Q!==U&&G.ended&&$(this)),q!==null&&this.emit("data",q),q};function F(U,G){if(!G.ended){if(G.decoder){var Q=G.decoder.end();Q&&Q.length&&(G.buffer.push(Q),G.length+=G.objectMode?1:Q.length)}G.ended=!0,I(U)}}function I(U){var G=U._readableState;G.needReadable=!1,G.emittedReadable||(h("emitReadable",G.flowing),G.emittedReadable=!0,G.sync?t.nextTick(u,U):u(U))}function u(U){h("emit readable"),U.emit("readable"),w(U)}function f(U,G){G.readingMore||(G.readingMore=!0,t.nextTick(b,U,G))}function b(U,G){for(var Q=G.length;!G.reading&&!G.flowing&&!G.ended&&G.length<G.highWaterMark&&(h("maybeReadMore read 0"),U.read(0),Q!==G.length);)Q=G.length;G.readingMore=!1}T.prototype._read=function(U){this.emit("error",new Error("_read() is not implemented"))},T.prototype.pipe=function(U,G){var Q=this,re=this._readableState;switch(re.pipesCount){case 0:re.pipes=U;break;case 1:re.pipes=[re.pipes,U];break;default:re.pipes.push(U);break}re.pipesCount+=1,h("pipe count=%d opts=%j",re.pipesCount,G);var q=(!G||G.end!==!1)&&U!==Te.process.stdout&&U!==Te.process.stderr,H=q?ae:ke;re.endEmitted?t.nextTick(H):Q.once("end",H),U.on("unpipe",Z);function Z(te,me){h("onunpipe"),te===Q&&me&&me.hasUnpiped===!1&&(me.hasUnpiped=!0,je())}function ae(){h("onend"),U.end()}var de=g(Q);U.on("drain",de);var ye=!1;function je(){h("cleanup"),U.removeListener("close",Me),U.removeListener("finish",ue),U.removeListener("drain",de),U.removeListener("error",qe),U.removeListener("unpipe",Z),Q.removeListener("end",ae),Q.removeListener("end",ke),Q.removeListener("data",ve),ye=!0,re.awaitDrain&&(!U._writableState||U._writableState.needDrain)&&de()}var we=!1;Q.on("data",ve);function ve(te){h("ondata"),we=!1;var me=U.write(te);me===!1&&!we&&((re.pipesCount===1&&re.pipes===U||re.pipesCount>1&&V(re.pipes,U)!==-1)&&!ye&&(h("false write response, pause",re.awaitDrain),re.awaitDrain++,we=!0),Q.pause())}function qe(te){h("onerror",te),ke(),U.removeListener("error",qe),n(U,"error")===0&&U.emit("error",te)}E(U,"error",qe);function Me(){U.removeListener("finish",ue),ke()}U.once("close",Me);function ue(){h("onfinish"),U.removeListener("close",Me),ke()}U.once("finish",ue);function ke(){h("unpipe"),Q.unpipe(U)}return U.emit("pipe",Q),re.flowing||(h("pipe resume"),Q.resume()),U};function g(U){return function(){var G=U._readableState;h("pipeOnDrain",G.awaitDrain),G.awaitDrain&&G.awaitDrain--,G.awaitDrain===0&&n(U,"data")&&(G.flowing=!0,w(U))}}T.prototype.unpipe=function(U){var G=this._readableState,Q={hasUnpiped:!1};if(G.pipesCount===0)return this;if(G.pipesCount===1)return U&&U!==G.pipes?this:(U||(U=G.pipes),G.pipes=null,G.pipesCount=0,G.flowing=!1,U&&U.emit("unpipe",this,Q),this);if(!U){var re=G.pipes,q=G.pipesCount;G.pipes=null,G.pipesCount=0,G.flowing=!1;for(var H=0;H<q;H++)re[H].emit("unpipe",this,{hasUnpiped:!1});return this}var Z=V(G.pipes,U);return Z===-1?this:(G.pipes.splice(Z,1),G.pipesCount-=1,G.pipesCount===1&&(G.pipes=G.pipes[0]),U.emit("unpipe",this,Q),this)},T.prototype.on=function(U,G){var Q=a.prototype.on.call(this,U,G);if(U==="data")this._readableState.flowing!==!1&&this.resume();else if(U==="readable"){var re=this._readableState;!re.endEmitted&&!re.readableListening&&(re.readableListening=re.needReadable=!0,re.emittedReadable=!1,re.reading?re.length&&I(this):t.nextTick(v,this))}return Q},T.prototype.addListener=T.prototype.on;function v(U){h("readable nexttick read 0"),U.read(0)}T.prototype.resume=function(){var U=this._readableState;return U.flowing||(h("resume"),U.flowing=!0,A(this,U)),this};function A(U,G){G.resumeScheduled||(G.resumeScheduled=!0,t.nextTick(N,U,G))}function N(U,G){G.reading||(h("resume read 0"),U.read(0)),G.resumeScheduled=!1,G.awaitDrain=0,U.emit("resume"),w(U),G.flowing&&!G.reading&&U.read(0)}T.prototype.pause=function(){return h("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(h("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function w(U){var G=U._readableState;for(h("flow",G.flowing);G.flowing&&U.read()!==null;);}T.prototype.wrap=function(U){var G=this,Q=this._readableState,re=!1;U.on("end",function(){if(h("wrapped end"),Q.decoder&&!Q.ended){var Z=Q.decoder.end();Z&&Z.length&&G.push(Z)}G.push(null)}),U.on("data",function(Z){if(h("wrapped data"),Q.decoder&&(Z=Q.decoder.write(Z)),!(Q.objectMode&&Z==null)&&!(!Q.objectMode&&(!Z||!Z.length))){var ae=G.push(Z);ae||(re=!0,U.pause())}});for(var q in U)this[q]===void 0&&typeof U[q]=="function"&&(this[q]=function(Z){return function(){return U[Z].apply(U,arguments)}}(q));for(var H=0;H<M.length;H++)U.on(M[H],this.emit.bind(this,M[H]));return this._read=function(Z){h("wrapped _read",Z),re&&(re=!1,U.resume())},this},Object.defineProperty(T.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),T._fromList=p;function p(U,G){if(G.length===0)return null;var Q;return G.objectMode?Q=G.buffer.shift():!U||U>=G.length?(G.decoder?Q=G.buffer.join(""):G.buffer.length===1?Q=G.buffer.head.data:Q=G.buffer.concat(G.length),G.buffer.clear()):Q=C(U,G.buffer,G.decoder),Q}function C(U,G,Q){var re;return U<G.head.data.length?(re=G.head.data.slice(0,U),G.head.data=G.head.data.slice(U)):U===G.head.data.length?re=G.shift():re=Q?P(U,G):R(U,G),re}function P(U,G){var Q=G.head,re=1,q=Q.data;for(U-=q.length;Q=Q.next;){var H=Q.data,Z=U>H.length?H.length:U;if(Z===H.length?q+=H:q+=H.slice(0,U),U-=Z,U===0){Z===H.length?(++re,Q.next?G.head=Q.next:G.head=G.tail=null):(G.head=Q,Q.data=H.slice(Z));break}++re}return G.length-=re,q}function R(U,G){var Q=i.allocUnsafe(U),re=G.head,q=1;for(re.data.copy(Q),U-=re.data.length;re=re.next;){var H=re.data,Z=U>H.length?H.length:U;if(H.copy(Q,Q.length-U,0,Z),U-=Z,U===0){Z===H.length?(++q,re.next?G.head=re.next:G.head=G.tail=null):(G.head=re,re.data=H.slice(Z));break}++q}return G.length-=q,Q}function $(U){var G=U._readableState;if(G.length>0)throw new Error('"endReadable()" called on non-empty stream');G.endEmitted||(G.ended=!0,t.nextTick(Y,G,U))}function Y(U,G){!U.endEmitted&&U.length===0&&(U.endEmitted=!0,G.readable=!1,G.emit("end"))}function V(U,G){for(var Q=0,re=U.length;Q<re;Q++)if(U[Q]===G)return Q;return-1}return zj}var Pj,rse;function zbe(){if(rse)return Pj;rse=1,Pj=n;var t=W9(),e=Object.create(fM());e.inherits=Ar(),e.inherits(n,t);function r(s,o){var c=this._transformState;c.transforming=!1;var l=c.writecb;if(!l)return this.emit("error",new Error("write callback called multiple times"));c.writechunk=null,c.writecb=null,o!=null&&this.push(o),l(s);var d=this._readableState;d.reading=!1,(d.needReadable||d.length<d.highWaterMark)&&this._read(d.highWaterMark)}function n(s){if(!(this instanceof n))return new n(s);t.call(this,s),this._transformState={afterTransform:r.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,s&&(typeof s.transform=="function"&&(this._transform=s.transform),typeof s.flush=="function"&&(this._flush=s.flush)),this.on("prefinish",a)}function a(){var s=this;typeof this._flush=="function"?this._flush(function(o,c){i(s,o,c)}):i(this,null,null)}n.prototype.push=function(s,o){return this._transformState.needTransform=!1,t.prototype.push.call(this,s,o)},n.prototype._transform=function(s,o,c){throw new Error("_transform() is not implemented")},n.prototype._write=function(s,o,c){var l=this._transformState;if(l.writecb=c,l.writechunk=s,l.writeencoding=o,!l.transforming){var d=this._readableState;(l.needTransform||d.needReadable||d.length<d.highWaterMark)&&this._read(d.highWaterMark)}},n.prototype._read=function(s){var o=this._transformState;o.writechunk!==null&&o.writecb&&!o.transforming?(o.transforming=!0,this._transform(o.writechunk,o.writeencoding,o.afterTransform)):o.needTransform=!0},n.prototype._destroy=function(s,o){var c=this;t.prototype._destroy.call(this,s,function(l){o(l),c.emit("close")})};function i(s,o,c){if(o)return s.emit("error",o);if(c!=null&&s.push(c),s._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(s._transformState.transforming)throw new Error("Calling transform done when still transforming");return s.push(null)}return Pj}var Oj,nse;function dYe(){if(nse)return Oj;nse=1,Oj=r;var t=zbe(),e=Object.create(fM());e.inherits=Ar(),e.inherits(r,t);function r(n){if(!(this instanceof r))return new r(n);t.call(this,n)}return r.prototype._transform=function(n,a,i){i(null,n)},Oj}var ase;function fYe(){return ase||(ase=1,function(t,e){e=t.exports=jbe(),e.Stream=e,e.Readable=e,e.Writable=Bbe(),e.Duplex=W9(),e.Transform=zbe(),e.PassThrough=dYe()}(ZA,ZA.exports)),ZA.exports}var Yy={exports:{}},Bq={exports:{}};Bq.exports;(function(t){(function(e,r){function n(f,b){if(!f)throw new Error(b||"Assertion failed")}function a(f,b){f.super_=b;var g=function(){};g.prototype=b.prototype,f.prototype=new g,f.prototype.constructor=f}function i(f,b,g){if(i.isBN(f))return f;this.negative=0,this.words=null,this.length=0,this.red=null,f!==null&&((b==="le"||b==="be")&&(g=b,b=10),this._init(f||0,b||10,g||"be"))}typeof e=="object"?e.exports=i:r.BN=i,i.BN=i,i.wordSize=26;var s;try{typeof window<"u"&&typeof window.Buffer<"u"?s=window.Buffer:s=It.Buffer}catch{}i.isBN=function(b){return b instanceof i?!0:b!==null&&typeof b=="object"&&b.constructor.wordSize===i.wordSize&&Array.isArray(b.words)},i.max=function(b,g){return b.cmp(g)>0?b:g},i.min=function(b,g){return b.cmp(g)<0?b:g},i.prototype._init=function(b,g,v){if(typeof b=="number")return this._initNumber(b,g,v);if(typeof b=="object")return this._initArray(b,g,v);g==="hex"&&(g=16),n(g===(g|0)&&g>=2&&g<=36),b=b.toString().replace(/\s+/g,"");var A=0;b[0]==="-"&&(A++,this.negative=1),A<b.length&&(g===16?this._parseHex(b,A,v):(this._parseBase(b,g,A),v==="le"&&this._initArray(this.toArray(),g,v)))},i.prototype._initNumber=function(b,g,v){b<0&&(this.negative=1,b=-b),b<67108864?(this.words=[b&67108863],this.length=1):b<4503599627370496?(this.words=[b&67108863,b/67108864&67108863],this.length=2):(n(b<9007199254740992),this.words=[b&67108863,b/67108864&67108863,1],this.length=3),v==="le"&&this._initArray(this.toArray(),g,v)},i.prototype._initArray=function(b,g,v){if(n(typeof b.length=="number"),b.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(b.length/3),this.words=new Array(this.length);for(var A=0;A<this.length;A++)this.words[A]=0;var N,w,p=0;if(v==="be")for(A=b.length-1,N=0;A>=0;A-=3)w=b[A]|b[A-1]<<8|b[A-2]<<16,this.words[N]|=w<<p&67108863,this.words[N+1]=w>>>26-p&67108863,p+=24,p>=26&&(p-=26,N++);else if(v==="le")for(A=0,N=0;A<b.length;A+=3)w=b[A]|b[A+1]<<8|b[A+2]<<16,this.words[N]|=w<<p&67108863,this.words[N+1]=w>>>26-p&67108863,p+=24,p>=26&&(p-=26,N++);return this._strip()};function o(f,b){var g=f.charCodeAt(b);if(g>=48&&g<=57)return g-48;if(g>=65&&g<=70)return g-55;if(g>=97&&g<=102)return g-87;n(!1,"Invalid character in "+f)}function c(f,b,g){var v=o(f,g);return g-1>=b&&(v|=o(f,g-1)<<4),v}i.prototype._parseHex=function(b,g,v){this.length=Math.ceil((b.length-g)/6),this.words=new Array(this.length);for(var A=0;A<this.length;A++)this.words[A]=0;var N=0,w=0,p;if(v==="be")for(A=b.length-1;A>=g;A-=2)p=c(b,g,A)<<N,this.words[w]|=p&67108863,N>=18?(N-=18,w+=1,this.words[w]|=p>>>26):N+=8;else{var C=b.length-g;for(A=C%2===0?g+1:g;A<b.length;A+=2)p=c(b,g,A)<<N,this.words[w]|=p&67108863,N>=18?(N-=18,w+=1,this.words[w]|=p>>>26):N+=8}this._strip()};function l(f,b,g,v){for(var A=0,N=0,w=Math.min(f.length,g),p=b;p<w;p++){var C=f.charCodeAt(p)-48;A*=v,C>=49?N=C-49+10:C>=17?N=C-17+10:N=C,n(C>=0&&N<v,"Invalid character"),A+=N}return A}i.prototype._parseBase=function(b,g,v){this.words=[0],this.length=1;for(var A=0,N=1;N<=67108863;N*=g)A++;A--,N=N/g|0;for(var w=b.length-v,p=w%A,C=Math.min(w,w-p)+v,P=0,R=v;R<C;R+=A)P=l(b,R,R+A,g),this.imuln(N),this.words[0]+P<67108864?this.words[0]+=P:this._iaddn(P);if(p!==0){var $=1;for(P=l(b,R,b.length,g),R=0;R<p;R++)$*=g;this.imuln($),this.words[0]+P<67108864?this.words[0]+=P:this._iaddn(P)}this._strip()},i.prototype.copy=function(b){b.words=new Array(this.length);for(var g=0;g<this.length;g++)b.words[g]=this.words[g];b.length=this.length,b.negative=this.negative,b.red=this.red};function d(f,b){f.words=b.words,f.length=b.length,f.negative=b.negative,f.red=b.red}if(i.prototype._move=function(b){d(b,this)},i.prototype.clone=function(){var b=new i(null);return this.copy(b),b},i.prototype._expand=function(b){for(;this.length<b;)this.words[this.length++]=0;return this},i.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=h}catch{i.prototype.inspect=h}else i.prototype.inspect=h;function h(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var m=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],y=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],x=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(b,g){b=b||10,g=g|0||1;var v;if(b===16||b==="hex"){v="";for(var A=0,N=0,w=0;w<this.length;w++){var p=this.words[w],C=((p<<A|N)&16777215).toString(16);N=p>>>24-A&16777215,A+=2,A>=26&&(A-=26,w--),N!==0||w!==this.length-1?v=m[6-C.length]+C+v:v=C+v}for(N!==0&&(v=N.toString(16)+v);v.length%g!==0;)v="0"+v;return this.negative!==0&&(v="-"+v),v}if(b===(b|0)&&b>=2&&b<=36){var P=y[b],R=x[b];v="";var $=this.clone();for($.negative=0;!$.isZero();){var Y=$.modrn(R).toString(b);$=$.idivn(R),$.isZero()?v=Y+v:v=m[P-Y.length]+Y+v}for(this.isZero()&&(v="0"+v);v.length%g!==0;)v="0"+v;return this.negative!==0&&(v="-"+v),v}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var b=this.words[0];return this.length===2?b+=this.words[1]*67108864:this.length===3&&this.words[2]===1?b+=4503599627370496+this.words[1]*67108864:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-b:b},i.prototype.toJSON=function(){return this.toString(16,2)},s&&(i.prototype.toBuffer=function(b,g){return this.toArrayLike(s,b,g)}),i.prototype.toArray=function(b,g){return this.toArrayLike(Array,b,g)};var M=function(b,g){return b.allocUnsafe?b.allocUnsafe(g):new b(g)};i.prototype.toArrayLike=function(b,g,v){this._strip();var A=this.byteLength(),N=v||Math.max(1,A);n(A<=N,"byte array longer than desired length"),n(N>0,"Requested array length <= 0");var w=M(b,N),p=g==="le"?"LE":"BE";return this["_toArrayLike"+p](w,A),w},i.prototype._toArrayLikeLE=function(b,g){for(var v=0,A=0,N=0,w=0;N<this.length;N++){var p=this.words[N]<<w|A;b[v++]=p&255,v<b.length&&(b[v++]=p>>8&255),v<b.length&&(b[v++]=p>>16&255),w===6?(v<b.length&&(b[v++]=p>>24&255),A=0,w=0):(A=p>>>24,w+=2)}if(v<b.length)for(b[v++]=A;v<b.length;)b[v++]=0},i.prototype._toArrayLikeBE=function(b,g){for(var v=b.length-1,A=0,N=0,w=0;N<this.length;N++){var p=this.words[N]<<w|A;b[v--]=p&255,v>=0&&(b[v--]=p>>8&255),v>=0&&(b[v--]=p>>16&255),w===6?(v>=0&&(b[v--]=p>>24&255),A=0,w=0):(A=p>>>24,w+=2)}if(v>=0)for(b[v--]=A;v>=0;)b[v--]=0},Math.clz32?i.prototype._countBits=function(b){return 32-Math.clz32(b)}:i.prototype._countBits=function(b){var g=b,v=0;return g>=4096&&(v+=13,g>>>=13),g>=64&&(v+=7,g>>>=7),g>=8&&(v+=4,g>>>=4),g>=2&&(v+=2,g>>>=2),v+g},i.prototype._zeroBits=function(b){if(b===0)return 26;var g=b,v=0;return g&8191||(v+=13,g>>>=13),g&127||(v+=7,g>>>=7),g&15||(v+=4,g>>>=4),g&3||(v+=2,g>>>=2),g&1||v++,v},i.prototype.bitLength=function(){var b=this.words[this.length-1],g=this._countBits(b);return(this.length-1)*26+g};function E(f){for(var b=new Array(f.bitLength()),g=0;g<b.length;g++){var v=g/26|0,A=g%26;b[g]=f.words[v]>>>A&1}return b}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var b=0,g=0;g<this.length;g++){var v=this._zeroBits(this.words[g]);if(b+=v,v!==26)break}return b},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(b){return this.negative!==0?this.abs().inotn(b).iaddn(1):this.clone()},i.prototype.fromTwos=function(b){return this.testn(b-1)?this.notn(b).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(b){for(;this.length<b.length;)this.words[this.length++]=0;for(var g=0;g<b.length;g++)this.words[g]=this.words[g]|b.words[g];return this._strip()},i.prototype.ior=function(b){return n((this.negative|b.negative)===0),this.iuor(b)},i.prototype.or=function(b){return this.length>b.length?this.clone().ior(b):b.clone().ior(this)},i.prototype.uor=function(b){return this.length>b.length?this.clone().iuor(b):b.clone().iuor(this)},i.prototype.iuand=function(b){var g;this.length>b.length?g=b:g=this;for(var v=0;v<g.length;v++)this.words[v]=this.words[v]&b.words[v];return this.length=g.length,this._strip()},i.prototype.iand=function(b){return n((this.negative|b.negative)===0),this.iuand(b)},i.prototype.and=function(b){return this.length>b.length?this.clone().iand(b):b.clone().iand(this)},i.prototype.uand=function(b){return this.length>b.length?this.clone().iuand(b):b.clone().iuand(this)},i.prototype.iuxor=function(b){var g,v;this.length>b.length?(g=this,v=b):(g=b,v=this);for(var A=0;A<v.length;A++)this.words[A]=g.words[A]^v.words[A];if(this!==g)for(;A<g.length;A++)this.words[A]=g.words[A];return this.length=g.length,this._strip()},i.prototype.ixor=function(b){return n((this.negative|b.negative)===0),this.iuxor(b)},i.prototype.xor=function(b){return this.length>b.length?this.clone().ixor(b):b.clone().ixor(this)},i.prototype.uxor=function(b){return this.length>b.length?this.clone().iuxor(b):b.clone().iuxor(this)},i.prototype.inotn=function(b){n(typeof b=="number"&&b>=0);var g=Math.ceil(b/26)|0,v=b%26;this._expand(g),v>0&&g--;for(var A=0;A<g;A++)this.words[A]=~this.words[A]&67108863;return v>0&&(this.words[A]=~this.words[A]&67108863>>26-v),this._strip()},i.prototype.notn=function(b){return this.clone().inotn(b)},i.prototype.setn=function(b,g){n(typeof b=="number"&&b>=0);var v=b/26|0,A=b%26;return this._expand(v+1),g?this.words[v]=this.words[v]|1<<A:this.words[v]=this.words[v]&~(1<<A),this._strip()},i.prototype.iadd=function(b){var g;if(this.negative!==0&&b.negative===0)return this.negative=0,g=this.isub(b),this.negative^=1,this._normSign();if(this.negative===0&&b.negative!==0)return b.negative=0,g=this.isub(b),b.negative=1,g._normSign();var v,A;this.length>b.length?(v=this,A=b):(v=b,A=this);for(var N=0,w=0;w<A.length;w++)g=(v.words[w]|0)+(A.words[w]|0)+N,this.words[w]=g&67108863,N=g>>>26;for(;N!==0&&w<v.length;w++)g=(v.words[w]|0)+N,this.words[w]=g&67108863,N=g>>>26;if(this.length=v.length,N!==0)this.words[this.length]=N,this.length++;else if(v!==this)for(;w<v.length;w++)this.words[w]=v.words[w];return this},i.prototype.add=function(b){var g;return b.negative!==0&&this.negative===0?(b.negative=0,g=this.sub(b),b.negative^=1,g):b.negative===0&&this.negative!==0?(this.negative=0,g=b.sub(this),this.negative=1,g):this.length>b.length?this.clone().iadd(b):b.clone().iadd(this)},i.prototype.isub=function(b){if(b.negative!==0){b.negative=0;var g=this.iadd(b);return b.negative=1,g._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(b),this.negative=1,this._normSign();var v=this.cmp(b);if(v===0)return this.negative=0,this.length=1,this.words[0]=0,this;var A,N;v>0?(A=this,N=b):(A=b,N=this);for(var w=0,p=0;p<N.length;p++)g=(A.words[p]|0)-(N.words[p]|0)+w,w=g>>26,this.words[p]=g&67108863;for(;w!==0&&p<A.length;p++)g=(A.words[p]|0)+w,w=g>>26,this.words[p]=g&67108863;if(w===0&&p<A.length&&A!==this)for(;p<A.length;p++)this.words[p]=A.words[p];return this.length=Math.max(this.length,p),A!==this&&(this.negative=1),this._strip()},i.prototype.sub=function(b){return this.clone().isub(b)};function S(f,b,g){g.negative=b.negative^f.negative;var v=f.length+b.length|0;g.length=v,v=v-1|0;var A=f.words[0]|0,N=b.words[0]|0,w=A*N,p=w&67108863,C=w/67108864|0;g.words[0]=p;for(var P=1;P<v;P++){for(var R=C>>>26,$=C&67108863,Y=Math.min(P,b.length-1),V=Math.max(0,P-f.length+1);V<=Y;V++){var U=P-V|0;A=f.words[U]|0,N=b.words[V]|0,w=A*N+$,R+=w/67108864|0,$=w&67108863}g.words[P]=$|0,C=R|0}return C!==0?g.words[P]=C|0:g.length--,g._strip()}var T=function(b,g,v){var A=b.words,N=g.words,w=v.words,p=0,C,P,R,$=A[0]|0,Y=$&8191,V=$>>>13,U=A[1]|0,G=U&8191,Q=U>>>13,re=A[2]|0,q=re&8191,H=re>>>13,Z=A[3]|0,ae=Z&8191,de=Z>>>13,ye=A[4]|0,je=ye&8191,we=ye>>>13,ve=A[5]|0,qe=ve&8191,Me=ve>>>13,ue=A[6]|0,ke=ue&8191,te=ue>>>13,me=A[7]|0,We=me&8191,X=me>>>13,W=A[8]|0,K=W&8191,ne=W>>>13,fe=A[9]|0,Ae=fe&8191,be=fe>>>13,Ie=N[0]|0,ct=Ie&8191,De=Ie>>>13,Pe=N[1]|0,ft=Pe&8191,He=Pe>>>13,Ve=N[2]|0,Ft=Ve&8191,Ge=Ve>>>13,Je=N[3]|0,sr=Je&8191,Xe=Je>>>13,it=N[4]|0,pr=it&8191,et=it>>>13,lt=N[5]|0,Dr=lt&8191,Ke=lt>>>13,ut=N[6]|0,ie=ut&8191,se=ut>>>13,oe=N[7]|0,J=oe&8191,le=oe>>>13,xe=N[8]|0,ze=xe&8191,Ce=xe>>>13,Ne=N[9]|0,dt=Ne&8191,pt=Ne>>>13;v.negative=b.negative^g.negative,v.length=19,C=Math.imul(Y,ct),P=Math.imul(Y,De),P=P+Math.imul(V,ct)|0,R=Math.imul(V,De);var nr=(p+C|0)+((P&8191)<<13)|0;p=(R+(P>>>13)|0)+(nr>>>26)|0,nr&=67108863,C=Math.imul(G,ct),P=Math.imul(G,De),P=P+Math.imul(Q,ct)|0,R=Math.imul(Q,De),C=C+Math.imul(Y,ft)|0,P=P+Math.imul(Y,He)|0,P=P+Math.imul(V,ft)|0,R=R+Math.imul(V,He)|0;var xt=(p+C|0)+((P&8191)<<13)|0;p=(R+(P>>>13)|0)+(xt>>>26)|0,xt&=67108863,C=Math.imul(q,ct),P=Math.imul(q,De),P=P+Math.imul(H,ct)|0,R=Math.imul(H,De),C=C+Math.imul(G,ft)|0,P=P+Math.imul(G,He)|0,P=P+Math.imul(Q,ft)|0,R=R+Math.imul(Q,He)|0,C=C+Math.imul(Y,Ft)|0,P=P+Math.imul(Y,Ge)|0,P=P+Math.imul(V,Ft)|0,R=R+Math.imul(V,Ge)|0;var gt=(p+C|0)+((P&8191)<<13)|0;p=(R+(P>>>13)|0)+(gt>>>26)|0,gt&=67108863,C=Math.imul(ae,ct),P=Math.imul(ae,De),P=P+Math.imul(de,ct)|0,R=Math.imul(de,De),C=C+Math.imul(q,ft)|0,P=P+Math.imul(q,He)|0,P=P+Math.imul(H,ft)|0,R=R+Math.imul(H,He)|0,C=C+Math.imul(G,Ft)|0,P=P+Math.imul(G,Ge)|0,P=P+Math.imul(Q,Ft)|0,R=R+Math.imul(Q,Ge)|0,C=C+Math.imul(Y,sr)|0,P=P+Math.imul(Y,Xe)|0,P=P+Math.imul(V,sr)|0,R=R+Math.imul(V,Xe)|0;var Pt=(p+C|0)+((P&8191)<<13)|0;p=(R+(P>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,C=Math.imul(je,ct),P=Math.imul(je,De),P=P+Math.imul(we,ct)|0,R=Math.imul(we,De),C=C+Math.imul(ae,ft)|0,P=P+Math.imul(ae,He)|0,P=P+Math.imul(de,ft)|0,R=R+Math.imul(de,He)|0,C=C+Math.imul(q,Ft)|0,P=P+Math.imul(q,Ge)|0,P=P+Math.imul(H,Ft)|0,R=R+Math.imul(H,Ge)|0,C=C+Math.imul(G,sr)|0,P=P+Math.imul(G,Xe)|0,P=P+Math.imul(Q,sr)|0,R=R+Math.imul(Q,Xe)|0,C=C+Math.imul(Y,pr)|0,P=P+Math.imul(Y,et)|0,P=P+Math.imul(V,pr)|0,R=R+Math.imul(V,et)|0;var tr=(p+C|0)+((P&8191)<<13)|0;p=(R+(P>>>13)|0)+(tr>>>26)|0,tr&=67108863,C=Math.imul(qe,ct),P=Math.imul(qe,De),P=P+Math.imul(Me,ct)|0,R=Math.imul(Me,De),C=C+Math.imul(je,ft)|0,P=P+Math.imul(je,He)|0,P=P+Math.imul(we,ft)|0,R=R+Math.imul(we,He)|0,C=C+Math.imul(ae,Ft)|0,P=P+Math.imul(ae,Ge)|0,P=P+Math.imul(de,Ft)|0,R=R+Math.imul(de,Ge)|0,C=C+Math.imul(q,sr)|0,P=P+Math.imul(q,Xe)|0,P=P+Math.imul(H,sr)|0,R=R+Math.imul(H,Xe)|0,C=C+Math.imul(G,pr)|0,P=P+Math.imul(G,et)|0,P=P+Math.imul(Q,pr)|0,R=R+Math.imul(Q,et)|0,C=C+Math.imul(Y,Dr)|0,P=P+Math.imul(Y,Ke)|0,P=P+Math.imul(V,Dr)|0,R=R+Math.imul(V,Ke)|0;var er=(p+C|0)+((P&8191)<<13)|0;p=(R+(P>>>13)|0)+(er>>>26)|0,er&=67108863,C=Math.imul(ke,ct),P=Math.imul(ke,De),P=P+Math.imul(te,ct)|0,R=Math.imul(te,De),C=C+Math.imul(qe,ft)|0,P=P+Math.imul(qe,He)|0,P=P+Math.imul(Me,ft)|0,R=R+Math.imul(Me,He)|0,C=C+Math.imul(je,Ft)|0,P=P+Math.imul(je,Ge)|0,P=P+Math.imul(we,Ft)|0,R=R+Math.imul(we,Ge)|0,C=C+Math.imul(ae,sr)|0,P=P+Math.imul(ae,Xe)|0,P=P+Math.imul(de,sr)|0,R=R+Math.imul(de,Xe)|0,C=C+Math.imul(q,pr)|0,P=P+Math.imul(q,et)|0,P=P+Math.imul(H,pr)|0,R=R+Math.imul(H,et)|0,C=C+Math.imul(G,Dr)|0,P=P+Math.imul(G,Ke)|0,P=P+Math.imul(Q,Dr)|0,R=R+Math.imul(Q,Ke)|0,C=C+Math.imul(Y,ie)|0,P=P+Math.imul(Y,se)|0,P=P+Math.imul(V,ie)|0,R=R+Math.imul(V,se)|0;var Kt=(p+C|0)+((P&8191)<<13)|0;p=(R+(P>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,C=Math.imul(We,ct),P=Math.imul(We,De),P=P+Math.imul(X,ct)|0,R=Math.imul(X,De),C=C+Math.imul(ke,ft)|0,P=P+Math.imul(ke,He)|0,P=P+Math.imul(te,ft)|0,R=R+Math.imul(te,He)|0,C=C+Math.imul(qe,Ft)|0,P=P+Math.imul(qe,Ge)|0,P=P+Math.imul(Me,Ft)|0,R=R+Math.imul(Me,Ge)|0,C=C+Math.imul(je,sr)|0,P=P+Math.imul(je,Xe)|0,P=P+Math.imul(we,sr)|0,R=R+Math.imul(we,Xe)|0,C=C+Math.imul(ae,pr)|0,P=P+Math.imul(ae,et)|0,P=P+Math.imul(de,pr)|0,R=R+Math.imul(de,et)|0,C=C+Math.imul(q,Dr)|0,P=P+Math.imul(q,Ke)|0,P=P+Math.imul(H,Dr)|0,R=R+Math.imul(H,Ke)|0,C=C+Math.imul(G,ie)|0,P=P+Math.imul(G,se)|0,P=P+Math.imul(Q,ie)|0,R=R+Math.imul(Q,se)|0,C=C+Math.imul(Y,J)|0,P=P+Math.imul(Y,le)|0,P=P+Math.imul(V,J)|0,R=R+Math.imul(V,le)|0;var Jt=(p+C|0)+((P&8191)<<13)|0;p=(R+(P>>>13)|0)+(Jt>>>26)|0,Jt&=67108863,C=Math.imul(K,ct),P=Math.imul(K,De),P=P+Math.imul(ne,ct)|0,R=Math.imul(ne,De),C=C+Math.imul(We,ft)|0,P=P+Math.imul(We,He)|0,P=P+Math.imul(X,ft)|0,R=R+Math.imul(X,He)|0,C=C+Math.imul(ke,Ft)|0,P=P+Math.imul(ke,Ge)|0,P=P+Math.imul(te,Ft)|0,R=R+Math.imul(te,Ge)|0,C=C+Math.imul(qe,sr)|0,P=P+Math.imul(qe,Xe)|0,P=P+Math.imul(Me,sr)|0,R=R+Math.imul(Me,Xe)|0,C=C+Math.imul(je,pr)|0,P=P+Math.imul(je,et)|0,P=P+Math.imul(we,pr)|0,R=R+Math.imul(we,et)|0,C=C+Math.imul(ae,Dr)|0,P=P+Math.imul(ae,Ke)|0,P=P+Math.imul(de,Dr)|0,R=R+Math.imul(de,Ke)|0,C=C+Math.imul(q,ie)|0,P=P+Math.imul(q,se)|0,P=P+Math.imul(H,ie)|0,R=R+Math.imul(H,se)|0,C=C+Math.imul(G,J)|0,P=P+Math.imul(G,le)|0,P=P+Math.imul(Q,J)|0,R=R+Math.imul(Q,le)|0,C=C+Math.imul(Y,ze)|0,P=P+Math.imul(Y,Ce)|0,P=P+Math.imul(V,ze)|0,R=R+Math.imul(V,Ce)|0;var Zt=(p+C|0)+((P&8191)<<13)|0;p=(R+(P>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,C=Math.imul(Ae,ct),P=Math.imul(Ae,De),P=P+Math.imul(be,ct)|0,R=Math.imul(be,De),C=C+Math.imul(K,ft)|0,P=P+Math.imul(K,He)|0,P=P+Math.imul(ne,ft)|0,R=R+Math.imul(ne,He)|0,C=C+Math.imul(We,Ft)|0,P=P+Math.imul(We,Ge)|0,P=P+Math.imul(X,Ft)|0,R=R+Math.imul(X,Ge)|0,C=C+Math.imul(ke,sr)|0,P=P+Math.imul(ke,Xe)|0,P=P+Math.imul(te,sr)|0,R=R+Math.imul(te,Xe)|0,C=C+Math.imul(qe,pr)|0,P=P+Math.imul(qe,et)|0,P=P+Math.imul(Me,pr)|0,R=R+Math.imul(Me,et)|0,C=C+Math.imul(je,Dr)|0,P=P+Math.imul(je,Ke)|0,P=P+Math.imul(we,Dr)|0,R=R+Math.imul(we,Ke)|0,C=C+Math.imul(ae,ie)|0,P=P+Math.imul(ae,se)|0,P=P+Math.imul(de,ie)|0,R=R+Math.imul(de,se)|0,C=C+Math.imul(q,J)|0,P=P+Math.imul(q,le)|0,P=P+Math.imul(H,J)|0,R=R+Math.imul(H,le)|0,C=C+Math.imul(G,ze)|0,P=P+Math.imul(G,Ce)|0,P=P+Math.imul(Q,ze)|0,R=R+Math.imul(Q,Ce)|0,C=C+Math.imul(Y,dt)|0,P=P+Math.imul(Y,pt)|0,P=P+Math.imul(V,dt)|0,R=R+Math.imul(V,pt)|0;var Nt=(p+C|0)+((P&8191)<<13)|0;p=(R+(P>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,C=Math.imul(Ae,ft),P=Math.imul(Ae,He),P=P+Math.imul(be,ft)|0,R=Math.imul(be,He),C=C+Math.imul(K,Ft)|0,P=P+Math.imul(K,Ge)|0,P=P+Math.imul(ne,Ft)|0,R=R+Math.imul(ne,Ge)|0,C=C+Math.imul(We,sr)|0,P=P+Math.imul(We,Xe)|0,P=P+Math.imul(X,sr)|0,R=R+Math.imul(X,Xe)|0,C=C+Math.imul(ke,pr)|0,P=P+Math.imul(ke,et)|0,P=P+Math.imul(te,pr)|0,R=R+Math.imul(te,et)|0,C=C+Math.imul(qe,Dr)|0,P=P+Math.imul(qe,Ke)|0,P=P+Math.imul(Me,Dr)|0,R=R+Math.imul(Me,Ke)|0,C=C+Math.imul(je,ie)|0,P=P+Math.imul(je,se)|0,P=P+Math.imul(we,ie)|0,R=R+Math.imul(we,se)|0,C=C+Math.imul(ae,J)|0,P=P+Math.imul(ae,le)|0,P=P+Math.imul(de,J)|0,R=R+Math.imul(de,le)|0,C=C+Math.imul(q,ze)|0,P=P+Math.imul(q,Ce)|0,P=P+Math.imul(H,ze)|0,R=R+Math.imul(H,Ce)|0,C=C+Math.imul(G,dt)|0,P=P+Math.imul(G,pt)|0,P=P+Math.imul(Q,dt)|0,R=R+Math.imul(Q,pt)|0;var Ot=(p+C|0)+((P&8191)<<13)|0;p=(R+(P>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,C=Math.imul(Ae,Ft),P=Math.imul(Ae,Ge),P=P+Math.imul(be,Ft)|0,R=Math.imul(be,Ge),C=C+Math.imul(K,sr)|0,P=P+Math.imul(K,Xe)|0,P=P+Math.imul(ne,sr)|0,R=R+Math.imul(ne,Xe)|0,C=C+Math.imul(We,pr)|0,P=P+Math.imul(We,et)|0,P=P+Math.imul(X,pr)|0,R=R+Math.imul(X,et)|0,C=C+Math.imul(ke,Dr)|0,P=P+Math.imul(ke,Ke)|0,P=P+Math.imul(te,Dr)|0,R=R+Math.imul(te,Ke)|0,C=C+Math.imul(qe,ie)|0,P=P+Math.imul(qe,se)|0,P=P+Math.imul(Me,ie)|0,R=R+Math.imul(Me,se)|0,C=C+Math.imul(je,J)|0,P=P+Math.imul(je,le)|0,P=P+Math.imul(we,J)|0,R=R+Math.imul(we,le)|0,C=C+Math.imul(ae,ze)|0,P=P+Math.imul(ae,Ce)|0,P=P+Math.imul(de,ze)|0,R=R+Math.imul(de,Ce)|0,C=C+Math.imul(q,dt)|0,P=P+Math.imul(q,pt)|0,P=P+Math.imul(H,dt)|0,R=R+Math.imul(H,pt)|0;var Ct=(p+C|0)+((P&8191)<<13)|0;p=(R+(P>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,C=Math.imul(Ae,sr),P=Math.imul(Ae,Xe),P=P+Math.imul(be,sr)|0,R=Math.imul(be,Xe),C=C+Math.imul(K,pr)|0,P=P+Math.imul(K,et)|0,P=P+Math.imul(ne,pr)|0,R=R+Math.imul(ne,et)|0,C=C+Math.imul(We,Dr)|0,P=P+Math.imul(We,Ke)|0,P=P+Math.imul(X,Dr)|0,R=R+Math.imul(X,Ke)|0,C=C+Math.imul(ke,ie)|0,P=P+Math.imul(ke,se)|0,P=P+Math.imul(te,ie)|0,R=R+Math.imul(te,se)|0,C=C+Math.imul(qe,J)|0,P=P+Math.imul(qe,le)|0,P=P+Math.imul(Me,J)|0,R=R+Math.imul(Me,le)|0,C=C+Math.imul(je,ze)|0,P=P+Math.imul(je,Ce)|0,P=P+Math.imul(we,ze)|0,R=R+Math.imul(we,Ce)|0,C=C+Math.imul(ae,dt)|0,P=P+Math.imul(ae,pt)|0,P=P+Math.imul(de,dt)|0,R=R+Math.imul(de,pt)|0;var kt=(p+C|0)+((P&8191)<<13)|0;p=(R+(P>>>13)|0)+(kt>>>26)|0,kt&=67108863,C=Math.imul(Ae,pr),P=Math.imul(Ae,et),P=P+Math.imul(be,pr)|0,R=Math.imul(be,et),C=C+Math.imul(K,Dr)|0,P=P+Math.imul(K,Ke)|0,P=P+Math.imul(ne,Dr)|0,R=R+Math.imul(ne,Ke)|0,C=C+Math.imul(We,ie)|0,P=P+Math.imul(We,se)|0,P=P+Math.imul(X,ie)|0,R=R+Math.imul(X,se)|0,C=C+Math.imul(ke,J)|0,P=P+Math.imul(ke,le)|0,P=P+Math.imul(te,J)|0,R=R+Math.imul(te,le)|0,C=C+Math.imul(qe,ze)|0,P=P+Math.imul(qe,Ce)|0,P=P+Math.imul(Me,ze)|0,R=R+Math.imul(Me,Ce)|0,C=C+Math.imul(je,dt)|0,P=P+Math.imul(je,pt)|0,P=P+Math.imul(we,dt)|0,R=R+Math.imul(we,pt)|0;var Bt=(p+C|0)+((P&8191)<<13)|0;p=(R+(P>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,C=Math.imul(Ae,Dr),P=Math.imul(Ae,Ke),P=P+Math.imul(be,Dr)|0,R=Math.imul(be,Ke),C=C+Math.imul(K,ie)|0,P=P+Math.imul(K,se)|0,P=P+Math.imul(ne,ie)|0,R=R+Math.imul(ne,se)|0,C=C+Math.imul(We,J)|0,P=P+Math.imul(We,le)|0,P=P+Math.imul(X,J)|0,R=R+Math.imul(X,le)|0,C=C+Math.imul(ke,ze)|0,P=P+Math.imul(ke,Ce)|0,P=P+Math.imul(te,ze)|0,R=R+Math.imul(te,Ce)|0,C=C+Math.imul(qe,dt)|0,P=P+Math.imul(qe,pt)|0,P=P+Math.imul(Me,dt)|0,R=R+Math.imul(Me,pt)|0;var At=(p+C|0)+((P&8191)<<13)|0;p=(R+(P>>>13)|0)+(At>>>26)|0,At&=67108863,C=Math.imul(Ae,ie),P=Math.imul(Ae,se),P=P+Math.imul(be,ie)|0,R=Math.imul(be,se),C=C+Math.imul(K,J)|0,P=P+Math.imul(K,le)|0,P=P+Math.imul(ne,J)|0,R=R+Math.imul(ne,le)|0,C=C+Math.imul(We,ze)|0,P=P+Math.imul(We,Ce)|0,P=P+Math.imul(X,ze)|0,R=R+Math.imul(X,Ce)|0,C=C+Math.imul(ke,dt)|0,P=P+Math.imul(ke,pt)|0,P=P+Math.imul(te,dt)|0,R=R+Math.imul(te,pt)|0;var Ze=(p+C|0)+((P&8191)<<13)|0;p=(R+(P>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,C=Math.imul(Ae,J),P=Math.imul(Ae,le),P=P+Math.imul(be,J)|0,R=Math.imul(be,le),C=C+Math.imul(K,ze)|0,P=P+Math.imul(K,Ce)|0,P=P+Math.imul(ne,ze)|0,R=R+Math.imul(ne,Ce)|0,C=C+Math.imul(We,dt)|0,P=P+Math.imul(We,pt)|0,P=P+Math.imul(X,dt)|0,R=R+Math.imul(X,pt)|0;var Qe=(p+C|0)+((P&8191)<<13)|0;p=(R+(P>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,C=Math.imul(Ae,ze),P=Math.imul(Ae,Ce),P=P+Math.imul(be,ze)|0,R=Math.imul(be,Ce),C=C+Math.imul(K,dt)|0,P=P+Math.imul(K,pt)|0,P=P+Math.imul(ne,dt)|0,R=R+Math.imul(ne,pt)|0;var wt=(p+C|0)+((P&8191)<<13)|0;p=(R+(P>>>13)|0)+(wt>>>26)|0,wt&=67108863,C=Math.imul(Ae,dt),P=Math.imul(Ae,pt),P=P+Math.imul(be,dt)|0,R=Math.imul(be,pt);var ht=(p+C|0)+((P&8191)<<13)|0;return p=(R+(P>>>13)|0)+(ht>>>26)|0,ht&=67108863,w[0]=nr,w[1]=xt,w[2]=gt,w[3]=Pt,w[4]=tr,w[5]=er,w[6]=Kt,w[7]=Jt,w[8]=Zt,w[9]=Nt,w[10]=Ot,w[11]=Ct,w[12]=kt,w[13]=Bt,w[14]=At,w[15]=Ze,w[16]=Qe,w[17]=wt,w[18]=ht,p!==0&&(w[19]=p,v.length++),v};Math.imul||(T=S);function D(f,b,g){g.negative=b.negative^f.negative,g.length=f.length+b.length;for(var v=0,A=0,N=0;N<g.length-1;N++){var w=A;A=0;for(var p=v&67108863,C=Math.min(N,b.length-1),P=Math.max(0,N-f.length+1);P<=C;P++){var R=N-P,$=f.words[R]|0,Y=b.words[P]|0,V=$*Y,U=V&67108863;w=w+(V/67108864|0)|0,U=U+p|0,p=U&67108863,w=w+(U>>>26)|0,A+=w>>>26,w&=67108863}g.words[N]=p,v=w,w=A}return v!==0?g.words[N]=v:g.length--,g._strip()}function k(f,b,g){return D(f,b,g)}i.prototype.mulTo=function(b,g){var v,A=this.length+b.length;return this.length===10&&b.length===10?v=T(this,b,g):A<63?v=S(this,b,g):A<1024?v=D(this,b,g):v=k(this,b,g),v},i.prototype.mul=function(b){var g=new i(null);return g.words=new Array(this.length+b.length),this.mulTo(b,g)},i.prototype.mulf=function(b){var g=new i(null);return g.words=new Array(this.length+b.length),k(this,b,g)},i.prototype.imul=function(b){return this.clone().mulTo(b,this)},i.prototype.imuln=function(b){var g=b<0;g&&(b=-b),n(typeof b=="number"),n(b<67108864);for(var v=0,A=0;A<this.length;A++){var N=(this.words[A]|0)*b,w=(N&67108863)+(v&67108863);v>>=26,v+=N/67108864|0,v+=w>>>26,this.words[A]=w&67108863}return v!==0&&(this.words[A]=v,this.length++),g?this.ineg():this},i.prototype.muln=function(b){return this.clone().imuln(b)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(b){var g=E(b);if(g.length===0)return new i(1);for(var v=this,A=0;A<g.length&&g[A]===0;A++,v=v.sqr());if(++A<g.length)for(var N=v.sqr();A<g.length;A++,N=N.sqr())g[A]!==0&&(v=v.mul(N));return v},i.prototype.iushln=function(b){n(typeof b=="number"&&b>=0);var g=b%26,v=(b-g)/26,A=67108863>>>26-g<<26-g,N;if(g!==0){var w=0;for(N=0;N<this.length;N++){var p=this.words[N]&A,C=(this.words[N]|0)-p<<g;this.words[N]=C|w,w=p>>>26-g}w&&(this.words[N]=w,this.length++)}if(v!==0){for(N=this.length-1;N>=0;N--)this.words[N+v]=this.words[N];for(N=0;N<v;N++)this.words[N]=0;this.length+=v}return this._strip()},i.prototype.ishln=function(b){return n(this.negative===0),this.iushln(b)},i.prototype.iushrn=function(b,g,v){n(typeof b=="number"&&b>=0);var A;g?A=(g-g%26)/26:A=0;var N=b%26,w=Math.min((b-N)/26,this.length),p=67108863^67108863>>>N<<N,C=v;if(A-=w,A=Math.max(0,A),C){for(var P=0;P<w;P++)C.words[P]=this.words[P];C.length=w}if(w!==0)if(this.length>w)for(this.length-=w,P=0;P<this.length;P++)this.words[P]=this.words[P+w];else this.words[0]=0,this.length=1;var R=0;for(P=this.length-1;P>=0&&(R!==0||P>=A);P--){var $=this.words[P]|0;this.words[P]=R<<26-N|$>>>N,R=$&p}return C&&R!==0&&(C.words[C.length++]=R),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(b,g,v){return n(this.negative===0),this.iushrn(b,g,v)},i.prototype.shln=function(b){return this.clone().ishln(b)},i.prototype.ushln=function(b){return this.clone().iushln(b)},i.prototype.shrn=function(b){return this.clone().ishrn(b)},i.prototype.ushrn=function(b){return this.clone().iushrn(b)},i.prototype.testn=function(b){n(typeof b=="number"&&b>=0);var g=b%26,v=(b-g)/26,A=1<<g;if(this.length<=v)return!1;var N=this.words[v];return!!(N&A)},i.prototype.imaskn=function(b){n(typeof b=="number"&&b>=0);var g=b%26,v=(b-g)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=v)return this;if(g!==0&&v++,this.length=Math.min(v,this.length),g!==0){var A=67108863^67108863>>>g<<g;this.words[this.length-1]&=A}return this._strip()},i.prototype.maskn=function(b){return this.clone().imaskn(b)},i.prototype.iaddn=function(b){return n(typeof b=="number"),n(b<67108864),b<0?this.isubn(-b):this.negative!==0?this.length===1&&(this.words[0]|0)<=b?(this.words[0]=b-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(b),this.negative=1,this):this._iaddn(b)},i.prototype._iaddn=function(b){this.words[0]+=b;for(var g=0;g<this.length&&this.words[g]>=67108864;g++)this.words[g]-=67108864,g===this.length-1?this.words[g+1]=1:this.words[g+1]++;return this.length=Math.max(this.length,g+1),this},i.prototype.isubn=function(b){if(n(typeof b=="number"),n(b<67108864),b<0)return this.iaddn(-b);if(this.negative!==0)return this.negative=0,this.iaddn(b),this.negative=1,this;if(this.words[0]-=b,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var g=0;g<this.length&&this.words[g]<0;g++)this.words[g]+=67108864,this.words[g+1]-=1;return this._strip()},i.prototype.addn=function(b){return this.clone().iaddn(b)},i.prototype.subn=function(b){return this.clone().isubn(b)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(b,g,v){var A=b.length+v,N;this._expand(A);var w,p=0;for(N=0;N<b.length;N++){w=(this.words[N+v]|0)+p;var C=(b.words[N]|0)*g;w-=C&67108863,p=(w>>26)-(C/67108864|0),this.words[N+v]=w&67108863}for(;N<this.length-v;N++)w=(this.words[N+v]|0)+p,p=w>>26,this.words[N+v]=w&67108863;if(p===0)return this._strip();for(n(p===-1),p=0,N=0;N<this.length;N++)w=-(this.words[N]|0)+p,p=w>>26,this.words[N]=w&67108863;return this.negative=1,this._strip()},i.prototype._wordDiv=function(b,g){var v=this.length-b.length,A=this.clone(),N=b,w=N.words[N.length-1]|0,p=this._countBits(w);v=26-p,v!==0&&(N=N.ushln(v),A.iushln(v),w=N.words[N.length-1]|0);var C=A.length-N.length,P;if(g!=="mod"){P=new i(null),P.length=C+1,P.words=new Array(P.length);for(var R=0;R<P.length;R++)P.words[R]=0}var $=A.clone()._ishlnsubmul(N,1,C);$.negative===0&&(A=$,P&&(P.words[C]=1));for(var Y=C-1;Y>=0;Y--){var V=(A.words[N.length+Y]|0)*67108864+(A.words[N.length+Y-1]|0);for(V=Math.min(V/w|0,67108863),A._ishlnsubmul(N,V,Y);A.negative!==0;)V--,A.negative=0,A._ishlnsubmul(N,1,Y),A.isZero()||(A.negative^=1);P&&(P.words[Y]=V)}return P&&P._strip(),A._strip(),g!=="div"&&v!==0&&A.iushrn(v),{div:P||null,mod:A}},i.prototype.divmod=function(b,g,v){if(n(!b.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var A,N,w;return this.negative!==0&&b.negative===0?(w=this.neg().divmod(b,g),g!=="mod"&&(A=w.div.neg()),g!=="div"&&(N=w.mod.neg(),v&&N.negative!==0&&N.iadd(b)),{div:A,mod:N}):this.negative===0&&b.negative!==0?(w=this.divmod(b.neg(),g),g!=="mod"&&(A=w.div.neg()),{div:A,mod:w.mod}):this.negative&b.negative?(w=this.neg().divmod(b.neg(),g),g!=="div"&&(N=w.mod.neg(),v&&N.negative!==0&&N.isub(b)),{div:w.div,mod:N}):b.length>this.length||this.cmp(b)<0?{div:new i(0),mod:this}:b.length===1?g==="div"?{div:this.divn(b.words[0]),mod:null}:g==="mod"?{div:null,mod:new i(this.modrn(b.words[0]))}:{div:this.divn(b.words[0]),mod:new i(this.modrn(b.words[0]))}:this._wordDiv(b,g)},i.prototype.div=function(b){return this.divmod(b,"div",!1).div},i.prototype.mod=function(b){return this.divmod(b,"mod",!1).mod},i.prototype.umod=function(b){return this.divmod(b,"mod",!0).mod},i.prototype.divRound=function(b){var g=this.divmod(b);if(g.mod.isZero())return g.div;var v=g.div.negative!==0?g.mod.isub(b):g.mod,A=b.ushrn(1),N=b.andln(1),w=v.cmp(A);return w<0||N===1&&w===0?g.div:g.div.negative!==0?g.div.isubn(1):g.div.iaddn(1)},i.prototype.modrn=function(b){var g=b<0;g&&(b=-b),n(b<=67108863);for(var v=(1<<26)%b,A=0,N=this.length-1;N>=0;N--)A=(v*A+(this.words[N]|0))%b;return g?-A:A},i.prototype.modn=function(b){return this.modrn(b)},i.prototype.idivn=function(b){var g=b<0;g&&(b=-b),n(b<=67108863);for(var v=0,A=this.length-1;A>=0;A--){var N=(this.words[A]|0)+v*67108864;this.words[A]=N/b|0,v=N%b}return this._strip(),g?this.ineg():this},i.prototype.divn=function(b){return this.clone().idivn(b)},i.prototype.egcd=function(b){n(b.negative===0),n(!b.isZero());var g=this,v=b.clone();g.negative!==0?g=g.umod(b):g=g.clone();for(var A=new i(1),N=new i(0),w=new i(0),p=new i(1),C=0;g.isEven()&&v.isEven();)g.iushrn(1),v.iushrn(1),++C;for(var P=v.clone(),R=g.clone();!g.isZero();){for(var $=0,Y=1;!(g.words[0]&Y)&&$<26;++$,Y<<=1);if($>0)for(g.iushrn($);$-- >0;)(A.isOdd()||N.isOdd())&&(A.iadd(P),N.isub(R)),A.iushrn(1),N.iushrn(1);for(var V=0,U=1;!(v.words[0]&U)&&V<26;++V,U<<=1);if(V>0)for(v.iushrn(V);V-- >0;)(w.isOdd()||p.isOdd())&&(w.iadd(P),p.isub(R)),w.iushrn(1),p.iushrn(1);g.cmp(v)>=0?(g.isub(v),A.isub(w),N.isub(p)):(v.isub(g),w.isub(A),p.isub(N))}return{a:w,b:p,gcd:v.iushln(C)}},i.prototype._invmp=function(b){n(b.negative===0),n(!b.isZero());var g=this,v=b.clone();g.negative!==0?g=g.umod(b):g=g.clone();for(var A=new i(1),N=new i(0),w=v.clone();g.cmpn(1)>0&&v.cmpn(1)>0;){for(var p=0,C=1;!(g.words[0]&C)&&p<26;++p,C<<=1);if(p>0)for(g.iushrn(p);p-- >0;)A.isOdd()&&A.iadd(w),A.iushrn(1);for(var P=0,R=1;!(v.words[0]&R)&&P<26;++P,R<<=1);if(P>0)for(v.iushrn(P);P-- >0;)N.isOdd()&&N.iadd(w),N.iushrn(1);g.cmp(v)>=0?(g.isub(v),A.isub(N)):(v.isub(g),N.isub(A))}var $;return g.cmpn(1)===0?$=A:$=N,$.cmpn(0)<0&&$.iadd(b),$},i.prototype.gcd=function(b){if(this.isZero())return b.abs();if(b.isZero())return this.abs();var g=this.clone(),v=b.clone();g.negative=0,v.negative=0;for(var A=0;g.isEven()&&v.isEven();A++)g.iushrn(1),v.iushrn(1);do{for(;g.isEven();)g.iushrn(1);for(;v.isEven();)v.iushrn(1);var N=g.cmp(v);if(N<0){var w=g;g=v,v=w}else if(N===0||v.cmpn(1)===0)break;g.isub(v)}while(!0);return v.iushln(A)},i.prototype.invm=function(b){return this.egcd(b).a.umod(b)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(b){return this.words[0]&b},i.prototype.bincn=function(b){n(typeof b=="number");var g=b%26,v=(b-g)/26,A=1<<g;if(this.length<=v)return this._expand(v+1),this.words[v]|=A,this;for(var N=A,w=v;N!==0&&w<this.length;w++){var p=this.words[w]|0;p+=N,N=p>>>26,p&=67108863,this.words[w]=p}return N!==0&&(this.words[w]=N,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(b){var g=b<0;if(this.negative!==0&&!g)return-1;if(this.negative===0&&g)return 1;this._strip();var v;if(this.length>1)v=1;else{g&&(b=-b),n(b<=67108863,"Number is too big");var A=this.words[0]|0;v=A===b?0:A<b?-1:1}return this.negative!==0?-v|0:v},i.prototype.cmp=function(b){if(this.negative!==0&&b.negative===0)return-1;if(this.negative===0&&b.negative!==0)return 1;var g=this.ucmp(b);return this.negative!==0?-g|0:g},i.prototype.ucmp=function(b){if(this.length>b.length)return 1;if(this.length<b.length)return-1;for(var g=0,v=this.length-1;v>=0;v--){var A=this.words[v]|0,N=b.words[v]|0;if(A!==N){A<N?g=-1:A>N&&(g=1);break}}return g},i.prototype.gtn=function(b){return this.cmpn(b)===1},i.prototype.gt=function(b){return this.cmp(b)===1},i.prototype.gten=function(b){return this.cmpn(b)>=0},i.prototype.gte=function(b){return this.cmp(b)>=0},i.prototype.ltn=function(b){return this.cmpn(b)===-1},i.prototype.lt=function(b){return this.cmp(b)===-1},i.prototype.lten=function(b){return this.cmpn(b)<=0},i.prototype.lte=function(b){return this.cmp(b)<=0},i.prototype.eqn=function(b){return this.cmpn(b)===0},i.prototype.eq=function(b){return this.cmp(b)===0},i.red=function(b){return new I(b)},i.prototype.toRed=function(b){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),b.convertTo(this)._forceRed(b)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(b){return this.red=b,this},i.prototype.forceRed=function(b){return n(!this.red,"Already a number in reduction context"),this._forceRed(b)},i.prototype.redAdd=function(b){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,b)},i.prototype.redIAdd=function(b){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,b)},i.prototype.redSub=function(b){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,b)},i.prototype.redISub=function(b){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,b)},i.prototype.redShl=function(b){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,b)},i.prototype.redMul=function(b){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,b),this.red.mul(this,b)},i.prototype.redIMul=function(b){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,b),this.red.imul(this,b)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(b){return n(this.red&&!b.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,b)};var _={k256:null,p224:null,p192:null,p25519:null};function L(f,b){this.name=f,this.p=new i(b,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}L.prototype._tmp=function(){var b=new i(null);return b.words=new Array(Math.ceil(this.n/13)),b},L.prototype.ireduce=function(b){var g=b,v;do this.split(g,this.tmp),g=this.imulK(g),g=g.iadd(this.tmp),v=g.bitLength();while(v>this.n);var A=v<this.n?-1:g.ucmp(this.p);return A===0?(g.words[0]=0,g.length=1):A>0?g.isub(this.p):g.strip!==void 0?g.strip():g._strip(),g},L.prototype.split=function(b,g){b.iushrn(this.n,0,g)},L.prototype.imulK=function(b){return b.imul(this.k)};function O(){L.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}a(O,L),O.prototype.split=function(b,g){for(var v=4194303,A=Math.min(b.length,9),N=0;N<A;N++)g.words[N]=b.words[N];if(g.length=A,b.length<=9){b.words[0]=0,b.length=1;return}var w=b.words[9];for(g.words[g.length++]=w&v,N=10;N<b.length;N++){var p=b.words[N]|0;b.words[N-10]=(p&v)<<4|w>>>22,w=p}w>>>=22,b.words[N-10]=w,w===0&&b.length>10?b.length-=10:b.length-=9},O.prototype.imulK=function(b){b.words[b.length]=0,b.words[b.length+1]=0,b.length+=2;for(var g=0,v=0;v<b.length;v++){var A=b.words[v]|0;g+=A*977,b.words[v]=g&67108863,g=A*64+(g/67108864|0)}return b.words[b.length-1]===0&&(b.length--,b.words[b.length-1]===0&&b.length--),b};function B(){L.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}a(B,L);function z(){L.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}a(z,L);function F(){L.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}a(F,L),F.prototype.imulK=function(b){for(var g=0,v=0;v<b.length;v++){var A=(b.words[v]|0)*19+g,N=A&67108863;A>>>=26,b.words[v]=N,g=A}return g!==0&&(b.words[b.length++]=g),b},i._prime=function(b){if(_[b])return _[b];var g;if(b==="k256")g=new O;else if(b==="p224")g=new B;else if(b==="p192")g=new z;else if(b==="p25519")g=new F;else throw new Error("Unknown prime "+b);return _[b]=g,g};function I(f){if(typeof f=="string"){var b=i._prime(f);this.m=b.p,this.prime=b}else n(f.gtn(1),"modulus must be greater than 1"),this.m=f,this.prime=null}I.prototype._verify1=function(b){n(b.negative===0,"red works only with positives"),n(b.red,"red works only with red numbers")},I.prototype._verify2=function(b,g){n((b.negative|g.negative)===0,"red works only with positives"),n(b.red&&b.red===g.red,"red works only with red numbers")},I.prototype.imod=function(b){return this.prime?this.prime.ireduce(b)._forceRed(this):(d(b,b.umod(this.m)._forceRed(this)),b)},I.prototype.neg=function(b){return b.isZero()?b.clone():this.m.sub(b)._forceRed(this)},I.prototype.add=function(b,g){this._verify2(b,g);var v=b.add(g);return v.cmp(this.m)>=0&&v.isub(this.m),v._forceRed(this)},I.prototype.iadd=function(b,g){this._verify2(b,g);var v=b.iadd(g);return v.cmp(this.m)>=0&&v.isub(this.m),v},I.prototype.sub=function(b,g){this._verify2(b,g);var v=b.sub(g);return v.cmpn(0)<0&&v.iadd(this.m),v._forceRed(this)},I.prototype.isub=function(b,g){this._verify2(b,g);var v=b.isub(g);return v.cmpn(0)<0&&v.iadd(this.m),v},I.prototype.shl=function(b,g){return this._verify1(b),this.imod(b.ushln(g))},I.prototype.imul=function(b,g){return this._verify2(b,g),this.imod(b.imul(g))},I.prototype.mul=function(b,g){return this._verify2(b,g),this.imod(b.mul(g))},I.prototype.isqr=function(b){return this.imul(b,b.clone())},I.prototype.sqr=function(b){return this.mul(b,b)},I.prototype.sqrt=function(b){if(b.isZero())return b.clone();var g=this.m.andln(3);if(n(g%2===1),g===3){var v=this.m.add(new i(1)).iushrn(2);return this.pow(b,v)}for(var A=this.m.subn(1),N=0;!A.isZero()&&A.andln(1)===0;)N++,A.iushrn(1);n(!A.isZero());var w=new i(1).toRed(this),p=w.redNeg(),C=this.m.subn(1).iushrn(1),P=this.m.bitLength();for(P=new i(2*P*P).toRed(this);this.pow(P,C).cmp(p)!==0;)P.redIAdd(p);for(var R=this.pow(P,A),$=this.pow(b,A.addn(1).iushrn(1)),Y=this.pow(b,A),V=N;Y.cmp(w)!==0;){for(var U=Y,G=0;U.cmp(w)!==0;G++)U=U.redSqr();n(G<V);var Q=this.pow(R,new i(1).iushln(V-G-1));$=$.redMul(Q),R=Q.redSqr(),Y=Y.redMul(R),V=G}return $},I.prototype.invm=function(b){var g=b._invmp(this.m);return g.negative!==0?(g.negative=0,this.imod(g).redNeg()):this.imod(g)},I.prototype.pow=function(b,g){if(g.isZero())return new i(1).toRed(this);if(g.cmpn(1)===0)return b.clone();var v=4,A=new Array(1<<v);A[0]=new i(1).toRed(this),A[1]=b;for(var N=2;N<A.length;N++)A[N]=this.mul(A[N-1],b);var w=A[0],p=0,C=0,P=g.bitLength()%26;for(P===0&&(P=26),N=g.length-1;N>=0;N--){for(var R=g.words[N],$=P-1;$>=0;$--){var Y=R>>$&1;if(w!==A[0]&&(w=this.sqr(w)),Y===0&&p===0){C=0;continue}p<<=1,p|=Y,C++,!(C!==v&&(N!==0||$!==0))&&(w=this.mul(w,A[p]),C=0,p=0)}P=26}return w},I.prototype.convertTo=function(b){var g=b.umod(this.m);return g===b?g.clone():g},I.prototype.convertFrom=function(b){var g=b.clone();return g.red=null,g},i.mont=function(b){return new u(b)};function u(f){I.call(this,f),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}a(u,I),u.prototype.convertTo=function(b){return this.imod(b.ushln(this.shift))},u.prototype.convertFrom=function(b){var g=this.imod(b.mul(this.rinv));return g.red=null,g},u.prototype.imul=function(b,g){if(b.isZero()||g.isZero())return b.words[0]=0,b.length=1,b;var v=b.imul(g),A=v.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),N=v.isub(A).iushrn(this.shift),w=N;return N.cmp(this.m)>=0?w=N.isub(this.m):N.cmpn(0)<0&&(w=N.iadd(this.m)),w._forceRed(this)},u.prototype.mul=function(b,g){if(b.isZero()||g.isZero())return new i(0)._forceRed(this);var v=b.mul(g),A=v.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),N=v.isub(A).iushrn(this.shift),w=N;return N.cmp(this.m)>=0?w=N.isub(this.m):N.cmpn(0)<0&&(w=N.iadd(this.m)),w._forceRed(this)},u.prototype.invm=function(b){var g=this.imod(b._invmp(this.m).mul(this.r2));return g._forceRed(this)}})(t,st)})(Bq);var Kg=Bq.exports;const Xs=Ai(Kg);var Rj,ise;function jq(){if(ise)return Rj;ise=1;var t=Kg,e=qg(),r=$r.Buffer;function n(s){var o=s.modulus.byteLength(),c;do c=new t(e(o));while(c.cmp(s.modulus)>=0||!c.umod(s.prime1)||!c.umod(s.prime2));return c}function a(s){var o=n(s),c=o.toRed(t.mont(s.modulus)).redPow(new t(s.publicExponent)).fromRed();return{blinder:c,unblinder:o.invm(s.modulus)}}function i(s,o){var c=a(o),l=o.modulus.byteLength(),d=new t(s).mul(c.blinder).umod(o.modulus),h=d.toRed(t.mont(o.prime1)),m=d.toRed(t.mont(o.prime2)),y=o.coefficient,x=o.prime1,M=o.prime2,E=h.redPow(o.exponent1).fromRed(),S=m.redPow(o.exponent2).fromRed(),T=E.isub(S).imul(y).umod(x).imul(M);return S.iadd(T).imul(c.unblinder).umod(o.modulus).toArrayLike(r,"be",l)}return i.getr=n,Rj=i,Rj}var Fj={};const pYe="6.6.1",hYe={version:pYe};var Uj={},bC={exports:{}};bC.exports;var sse;function If(){return sse||(sse=1,function(t){(function(e,r){function n(I,u){if(!I)throw new Error(u||"Assertion failed")}function a(I,u){I.super_=u;var f=function(){};f.prototype=u.prototype,I.prototype=new f,I.prototype.constructor=I}function i(I,u,f){if(i.isBN(I))return I;this.negative=0,this.words=null,this.length=0,this.red=null,I!==null&&((u==="le"||u==="be")&&(f=u,u=10),this._init(I||0,u||10,f||"be"))}typeof e=="object"?e.exports=i:r.BN=i,i.BN=i,i.wordSize=26;var s;try{typeof window<"u"&&typeof window.Buffer<"u"?s=window.Buffer:s=It.Buffer}catch{}i.isBN=function(u){return u instanceof i?!0:u!==null&&typeof u=="object"&&u.constructor.wordSize===i.wordSize&&Array.isArray(u.words)},i.max=function(u,f){return u.cmp(f)>0?u:f},i.min=function(u,f){return u.cmp(f)<0?u:f},i.prototype._init=function(u,f,b){if(typeof u=="number")return this._initNumber(u,f,b);if(typeof u=="object")return this._initArray(u,f,b);f==="hex"&&(f=16),n(f===(f|0)&&f>=2&&f<=36),u=u.toString().replace(/\s+/g,"");var g=0;u[0]==="-"&&(g++,this.negative=1),g<u.length&&(f===16?this._parseHex(u,g,b):(this._parseBase(u,f,g),b==="le"&&this._initArray(this.toArray(),f,b)))},i.prototype._initNumber=function(u,f,b){u<0&&(this.negative=1,u=-u),u<67108864?(this.words=[u&67108863],this.length=1):u<4503599627370496?(this.words=[u&67108863,u/67108864&67108863],this.length=2):(n(u<9007199254740992),this.words=[u&67108863,u/67108864&67108863,1],this.length=3),b==="le"&&this._initArray(this.toArray(),f,b)},i.prototype._initArray=function(u,f,b){if(n(typeof u.length=="number"),u.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(u.length/3),this.words=new Array(this.length);for(var g=0;g<this.length;g++)this.words[g]=0;var v,A,N=0;if(b==="be")for(g=u.length-1,v=0;g>=0;g-=3)A=u[g]|u[g-1]<<8|u[g-2]<<16,this.words[v]|=A<<N&67108863,this.words[v+1]=A>>>26-N&67108863,N+=24,N>=26&&(N-=26,v++);else if(b==="le")for(g=0,v=0;g<u.length;g+=3)A=u[g]|u[g+1]<<8|u[g+2]<<16,this.words[v]|=A<<N&67108863,this.words[v+1]=A>>>26-N&67108863,N+=24,N>=26&&(N-=26,v++);return this.strip()};function o(I,u){var f=I.charCodeAt(u);return f>=65&&f<=70?f-55:f>=97&&f<=102?f-87:f-48&15}function c(I,u,f){var b=o(I,f);return f-1>=u&&(b|=o(I,f-1)<<4),b}i.prototype._parseHex=function(u,f,b){this.length=Math.ceil((u.length-f)/6),this.words=new Array(this.length);for(var g=0;g<this.length;g++)this.words[g]=0;var v=0,A=0,N;if(b==="be")for(g=u.length-1;g>=f;g-=2)N=c(u,f,g)<<v,this.words[A]|=N&67108863,v>=18?(v-=18,A+=1,this.words[A]|=N>>>26):v+=8;else{var w=u.length-f;for(g=w%2===0?f+1:f;g<u.length;g+=2)N=c(u,f,g)<<v,this.words[A]|=N&67108863,v>=18?(v-=18,A+=1,this.words[A]|=N>>>26):v+=8}this.strip()};function l(I,u,f,b){for(var g=0,v=Math.min(I.length,f),A=u;A<v;A++){var N=I.charCodeAt(A)-48;g*=b,N>=49?g+=N-49+10:N>=17?g+=N-17+10:g+=N}return g}i.prototype._parseBase=function(u,f,b){this.words=[0],this.length=1;for(var g=0,v=1;v<=67108863;v*=f)g++;g--,v=v/f|0;for(var A=u.length-b,N=A%g,w=Math.min(A,A-N)+b,p=0,C=b;C<w;C+=g)p=l(u,C,C+g,f),this.imuln(v),this.words[0]+p<67108864?this.words[0]+=p:this._iaddn(p);if(N!==0){var P=1;for(p=l(u,C,u.length,f),C=0;C<N;C++)P*=f;this.imuln(P),this.words[0]+p<67108864?this.words[0]+=p:this._iaddn(p)}this.strip()},i.prototype.copy=function(u){u.words=new Array(this.length);for(var f=0;f<this.length;f++)u.words[f]=this.words[f];u.length=this.length,u.negative=this.negative,u.red=this.red},i.prototype.clone=function(){var u=new i(null);return this.copy(u),u},i.prototype._expand=function(u){for(;this.length<u;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],m=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(u,f){u=u||10,f=f|0||1;var b;if(u===16||u==="hex"){b="";for(var g=0,v=0,A=0;A<this.length;A++){var N=this.words[A],w=((N<<g|v)&16777215).toString(16);v=N>>>24-g&16777215,g+=2,g>=26&&(g-=26,A--),v!==0||A!==this.length-1?b=d[6-w.length]+w+b:b=w+b}for(v!==0&&(b=v.toString(16)+b);b.length%f!==0;)b="0"+b;return this.negative!==0&&(b="-"+b),b}if(u===(u|0)&&u>=2&&u<=36){var p=h[u],C=m[u];b="";var P=this.clone();for(P.negative=0;!P.isZero();){var R=P.modn(C).toString(u);P=P.idivn(C),P.isZero()?b=R+b:b=d[p-R.length]+R+b}for(this.isZero()&&(b="0"+b);b.length%f!==0;)b="0"+b;return this.negative!==0&&(b="-"+b),b}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var u=this.words[0];return this.length===2?u+=this.words[1]*67108864:this.length===3&&this.words[2]===1?u+=4503599627370496+this.words[1]*67108864:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-u:u},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(u,f){return n(typeof s<"u"),this.toArrayLike(s,u,f)},i.prototype.toArray=function(u,f){return this.toArrayLike(Array,u,f)},i.prototype.toArrayLike=function(u,f,b){var g=this.byteLength(),v=b||Math.max(1,g);n(g<=v,"byte array longer than desired length"),n(v>0,"Requested array length <= 0"),this.strip();var A=f==="le",N=new u(v),w,p,C=this.clone();if(A){for(p=0;!C.isZero();p++)w=C.andln(255),C.iushrn(8),N[p]=w;for(;p<v;p++)N[p]=0}else{for(p=0;p<v-g;p++)N[p]=0;for(p=0;!C.isZero();p++)w=C.andln(255),C.iushrn(8),N[v-p-1]=w}return N},Math.clz32?i.prototype._countBits=function(u){return 32-Math.clz32(u)}:i.prototype._countBits=function(u){var f=u,b=0;return f>=4096&&(b+=13,f>>>=13),f>=64&&(b+=7,f>>>=7),f>=8&&(b+=4,f>>>=4),f>=2&&(b+=2,f>>>=2),b+f},i.prototype._zeroBits=function(u){if(u===0)return 26;var f=u,b=0;return f&8191||(b+=13,f>>>=13),f&127||(b+=7,f>>>=7),f&15||(b+=4,f>>>=4),f&3||(b+=2,f>>>=2),f&1||b++,b},i.prototype.bitLength=function(){var u=this.words[this.length-1],f=this._countBits(u);return(this.length-1)*26+f};function y(I){for(var u=new Array(I.bitLength()),f=0;f<u.length;f++){var b=f/26|0,g=f%26;u[f]=(I.words[b]&1<<g)>>>g}return u}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var u=0,f=0;f<this.length;f++){var b=this._zeroBits(this.words[f]);if(u+=b,b!==26)break}return u},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(u){return this.negative!==0?this.abs().inotn(u).iaddn(1):this.clone()},i.prototype.fromTwos=function(u){return this.testn(u-1)?this.notn(u).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(u){for(;this.length<u.length;)this.words[this.length++]=0;for(var f=0;f<u.length;f++)this.words[f]=this.words[f]|u.words[f];return this.strip()},i.prototype.ior=function(u){return n((this.negative|u.negative)===0),this.iuor(u)},i.prototype.or=function(u){return this.length>u.length?this.clone().ior(u):u.clone().ior(this)},i.prototype.uor=function(u){return this.length>u.length?this.clone().iuor(u):u.clone().iuor(this)},i.prototype.iuand=function(u){var f;this.length>u.length?f=u:f=this;for(var b=0;b<f.length;b++)this.words[b]=this.words[b]&u.words[b];return this.length=f.length,this.strip()},i.prototype.iand=function(u){return n((this.negative|u.negative)===0),this.iuand(u)},i.prototype.and=function(u){return this.length>u.length?this.clone().iand(u):u.clone().iand(this)},i.prototype.uand=function(u){return this.length>u.length?this.clone().iuand(u):u.clone().iuand(this)},i.prototype.iuxor=function(u){var f,b;this.length>u.length?(f=this,b=u):(f=u,b=this);for(var g=0;g<b.length;g++)this.words[g]=f.words[g]^b.words[g];if(this!==f)for(;g<f.length;g++)this.words[g]=f.words[g];return this.length=f.length,this.strip()},i.prototype.ixor=function(u){return n((this.negative|u.negative)===0),this.iuxor(u)},i.prototype.xor=function(u){return this.length>u.length?this.clone().ixor(u):u.clone().ixor(this)},i.prototype.uxor=function(u){return this.length>u.length?this.clone().iuxor(u):u.clone().iuxor(this)},i.prototype.inotn=function(u){n(typeof u=="number"&&u>=0);var f=Math.ceil(u/26)|0,b=u%26;this._expand(f),b>0&&f--;for(var g=0;g<f;g++)this.words[g]=~this.words[g]&67108863;return b>0&&(this.words[g]=~this.words[g]&67108863>>26-b),this.strip()},i.prototype.notn=function(u){return this.clone().inotn(u)},i.prototype.setn=function(u,f){n(typeof u=="number"&&u>=0);var b=u/26|0,g=u%26;return this._expand(b+1),f?this.words[b]=this.words[b]|1<<g:this.words[b]=this.words[b]&~(1<<g),this.strip()},i.prototype.iadd=function(u){var f;if(this.negative!==0&&u.negative===0)return this.negative=0,f=this.isub(u),this.negative^=1,this._normSign();if(this.negative===0&&u.negative!==0)return u.negative=0,f=this.isub(u),u.negative=1,f._normSign();var b,g;this.length>u.length?(b=this,g=u):(b=u,g=this);for(var v=0,A=0;A<g.length;A++)f=(b.words[A]|0)+(g.words[A]|0)+v,this.words[A]=f&67108863,v=f>>>26;for(;v!==0&&A<b.length;A++)f=(b.words[A]|0)+v,this.words[A]=f&67108863,v=f>>>26;if(this.length=b.length,v!==0)this.words[this.length]=v,this.length++;else if(b!==this)for(;A<b.length;A++)this.words[A]=b.words[A];return this},i.prototype.add=function(u){var f;return u.negative!==0&&this.negative===0?(u.negative=0,f=this.sub(u),u.negative^=1,f):u.negative===0&&this.negative!==0?(this.negative=0,f=u.sub(this),this.negative=1,f):this.length>u.length?this.clone().iadd(u):u.clone().iadd(this)},i.prototype.isub=function(u){if(u.negative!==0){u.negative=0;var f=this.iadd(u);return u.negative=1,f._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(u),this.negative=1,this._normSign();var b=this.cmp(u);if(b===0)return this.negative=0,this.length=1,this.words[0]=0,this;var g,v;b>0?(g=this,v=u):(g=u,v=this);for(var A=0,N=0;N<v.length;N++)f=(g.words[N]|0)-(v.words[N]|0)+A,A=f>>26,this.words[N]=f&67108863;for(;A!==0&&N<g.length;N++)f=(g.words[N]|0)+A,A=f>>26,this.words[N]=f&67108863;if(A===0&&N<g.length&&g!==this)for(;N<g.length;N++)this.words[N]=g.words[N];return this.length=Math.max(this.length,N),g!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(u){return this.clone().isub(u)};function x(I,u,f){f.negative=u.negative^I.negative;var b=I.length+u.length|0;f.length=b,b=b-1|0;var g=I.words[0]|0,v=u.words[0]|0,A=g*v,N=A&67108863,w=A/67108864|0;f.words[0]=N;for(var p=1;p<b;p++){for(var C=w>>>26,P=w&67108863,R=Math.min(p,u.length-1),$=Math.max(0,p-I.length+1);$<=R;$++){var Y=p-$|0;g=I.words[Y]|0,v=u.words[$]|0,A=g*v+P,C+=A/67108864|0,P=A&67108863}f.words[p]=P|0,w=C|0}return w!==0?f.words[p]=w|0:f.length--,f.strip()}var M=function(u,f,b){var g=u.words,v=f.words,A=b.words,N=0,w,p,C,P=g[0]|0,R=P&8191,$=P>>>13,Y=g[1]|0,V=Y&8191,U=Y>>>13,G=g[2]|0,Q=G&8191,re=G>>>13,q=g[3]|0,H=q&8191,Z=q>>>13,ae=g[4]|0,de=ae&8191,ye=ae>>>13,je=g[5]|0,we=je&8191,ve=je>>>13,qe=g[6]|0,Me=qe&8191,ue=qe>>>13,ke=g[7]|0,te=ke&8191,me=ke>>>13,We=g[8]|0,X=We&8191,W=We>>>13,K=g[9]|0,ne=K&8191,fe=K>>>13,Ae=v[0]|0,be=Ae&8191,Ie=Ae>>>13,ct=v[1]|0,De=ct&8191,Pe=ct>>>13,ft=v[2]|0,He=ft&8191,Ve=ft>>>13,Ft=v[3]|0,Ge=Ft&8191,Je=Ft>>>13,sr=v[4]|0,Xe=sr&8191,it=sr>>>13,pr=v[5]|0,et=pr&8191,lt=pr>>>13,Dr=v[6]|0,Ke=Dr&8191,ut=Dr>>>13,ie=v[7]|0,se=ie&8191,oe=ie>>>13,J=v[8]|0,le=J&8191,xe=J>>>13,ze=v[9]|0,Ce=ze&8191,Ne=ze>>>13;b.negative=u.negative^f.negative,b.length=19,w=Math.imul(R,be),p=Math.imul(R,Ie),p=p+Math.imul($,be)|0,C=Math.imul($,Ie);var dt=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(dt>>>26)|0,dt&=67108863,w=Math.imul(V,be),p=Math.imul(V,Ie),p=p+Math.imul(U,be)|0,C=Math.imul(U,Ie),w=w+Math.imul(R,De)|0,p=p+Math.imul(R,Pe)|0,p=p+Math.imul($,De)|0,C=C+Math.imul($,Pe)|0;var pt=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(pt>>>26)|0,pt&=67108863,w=Math.imul(Q,be),p=Math.imul(Q,Ie),p=p+Math.imul(re,be)|0,C=Math.imul(re,Ie),w=w+Math.imul(V,De)|0,p=p+Math.imul(V,Pe)|0,p=p+Math.imul(U,De)|0,C=C+Math.imul(U,Pe)|0,w=w+Math.imul(R,He)|0,p=p+Math.imul(R,Ve)|0,p=p+Math.imul($,He)|0,C=C+Math.imul($,Ve)|0;var nr=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(nr>>>26)|0,nr&=67108863,w=Math.imul(H,be),p=Math.imul(H,Ie),p=p+Math.imul(Z,be)|0,C=Math.imul(Z,Ie),w=w+Math.imul(Q,De)|0,p=p+Math.imul(Q,Pe)|0,p=p+Math.imul(re,De)|0,C=C+Math.imul(re,Pe)|0,w=w+Math.imul(V,He)|0,p=p+Math.imul(V,Ve)|0,p=p+Math.imul(U,He)|0,C=C+Math.imul(U,Ve)|0,w=w+Math.imul(R,Ge)|0,p=p+Math.imul(R,Je)|0,p=p+Math.imul($,Ge)|0,C=C+Math.imul($,Je)|0;var xt=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(xt>>>26)|0,xt&=67108863,w=Math.imul(de,be),p=Math.imul(de,Ie),p=p+Math.imul(ye,be)|0,C=Math.imul(ye,Ie),w=w+Math.imul(H,De)|0,p=p+Math.imul(H,Pe)|0,p=p+Math.imul(Z,De)|0,C=C+Math.imul(Z,Pe)|0,w=w+Math.imul(Q,He)|0,p=p+Math.imul(Q,Ve)|0,p=p+Math.imul(re,He)|0,C=C+Math.imul(re,Ve)|0,w=w+Math.imul(V,Ge)|0,p=p+Math.imul(V,Je)|0,p=p+Math.imul(U,Ge)|0,C=C+Math.imul(U,Je)|0,w=w+Math.imul(R,Xe)|0,p=p+Math.imul(R,it)|0,p=p+Math.imul($,Xe)|0,C=C+Math.imul($,it)|0;var gt=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(gt>>>26)|0,gt&=67108863,w=Math.imul(we,be),p=Math.imul(we,Ie),p=p+Math.imul(ve,be)|0,C=Math.imul(ve,Ie),w=w+Math.imul(de,De)|0,p=p+Math.imul(de,Pe)|0,p=p+Math.imul(ye,De)|0,C=C+Math.imul(ye,Pe)|0,w=w+Math.imul(H,He)|0,p=p+Math.imul(H,Ve)|0,p=p+Math.imul(Z,He)|0,C=C+Math.imul(Z,Ve)|0,w=w+Math.imul(Q,Ge)|0,p=p+Math.imul(Q,Je)|0,p=p+Math.imul(re,Ge)|0,C=C+Math.imul(re,Je)|0,w=w+Math.imul(V,Xe)|0,p=p+Math.imul(V,it)|0,p=p+Math.imul(U,Xe)|0,C=C+Math.imul(U,it)|0,w=w+Math.imul(R,et)|0,p=p+Math.imul(R,lt)|0,p=p+Math.imul($,et)|0,C=C+Math.imul($,lt)|0;var Pt=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,w=Math.imul(Me,be),p=Math.imul(Me,Ie),p=p+Math.imul(ue,be)|0,C=Math.imul(ue,Ie),w=w+Math.imul(we,De)|0,p=p+Math.imul(we,Pe)|0,p=p+Math.imul(ve,De)|0,C=C+Math.imul(ve,Pe)|0,w=w+Math.imul(de,He)|0,p=p+Math.imul(de,Ve)|0,p=p+Math.imul(ye,He)|0,C=C+Math.imul(ye,Ve)|0,w=w+Math.imul(H,Ge)|0,p=p+Math.imul(H,Je)|0,p=p+Math.imul(Z,Ge)|0,C=C+Math.imul(Z,Je)|0,w=w+Math.imul(Q,Xe)|0,p=p+Math.imul(Q,it)|0,p=p+Math.imul(re,Xe)|0,C=C+Math.imul(re,it)|0,w=w+Math.imul(V,et)|0,p=p+Math.imul(V,lt)|0,p=p+Math.imul(U,et)|0,C=C+Math.imul(U,lt)|0,w=w+Math.imul(R,Ke)|0,p=p+Math.imul(R,ut)|0,p=p+Math.imul($,Ke)|0,C=C+Math.imul($,ut)|0;var tr=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(tr>>>26)|0,tr&=67108863,w=Math.imul(te,be),p=Math.imul(te,Ie),p=p+Math.imul(me,be)|0,C=Math.imul(me,Ie),w=w+Math.imul(Me,De)|0,p=p+Math.imul(Me,Pe)|0,p=p+Math.imul(ue,De)|0,C=C+Math.imul(ue,Pe)|0,w=w+Math.imul(we,He)|0,p=p+Math.imul(we,Ve)|0,p=p+Math.imul(ve,He)|0,C=C+Math.imul(ve,Ve)|0,w=w+Math.imul(de,Ge)|0,p=p+Math.imul(de,Je)|0,p=p+Math.imul(ye,Ge)|0,C=C+Math.imul(ye,Je)|0,w=w+Math.imul(H,Xe)|0,p=p+Math.imul(H,it)|0,p=p+Math.imul(Z,Xe)|0,C=C+Math.imul(Z,it)|0,w=w+Math.imul(Q,et)|0,p=p+Math.imul(Q,lt)|0,p=p+Math.imul(re,et)|0,C=C+Math.imul(re,lt)|0,w=w+Math.imul(V,Ke)|0,p=p+Math.imul(V,ut)|0,p=p+Math.imul(U,Ke)|0,C=C+Math.imul(U,ut)|0,w=w+Math.imul(R,se)|0,p=p+Math.imul(R,oe)|0,p=p+Math.imul($,se)|0,C=C+Math.imul($,oe)|0;var er=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(er>>>26)|0,er&=67108863,w=Math.imul(X,be),p=Math.imul(X,Ie),p=p+Math.imul(W,be)|0,C=Math.imul(W,Ie),w=w+Math.imul(te,De)|0,p=p+Math.imul(te,Pe)|0,p=p+Math.imul(me,De)|0,C=C+Math.imul(me,Pe)|0,w=w+Math.imul(Me,He)|0,p=p+Math.imul(Me,Ve)|0,p=p+Math.imul(ue,He)|0,C=C+Math.imul(ue,Ve)|0,w=w+Math.imul(we,Ge)|0,p=p+Math.imul(we,Je)|0,p=p+Math.imul(ve,Ge)|0,C=C+Math.imul(ve,Je)|0,w=w+Math.imul(de,Xe)|0,p=p+Math.imul(de,it)|0,p=p+Math.imul(ye,Xe)|0,C=C+Math.imul(ye,it)|0,w=w+Math.imul(H,et)|0,p=p+Math.imul(H,lt)|0,p=p+Math.imul(Z,et)|0,C=C+Math.imul(Z,lt)|0,w=w+Math.imul(Q,Ke)|0,p=p+Math.imul(Q,ut)|0,p=p+Math.imul(re,Ke)|0,C=C+Math.imul(re,ut)|0,w=w+Math.imul(V,se)|0,p=p+Math.imul(V,oe)|0,p=p+Math.imul(U,se)|0,C=C+Math.imul(U,oe)|0,w=w+Math.imul(R,le)|0,p=p+Math.imul(R,xe)|0,p=p+Math.imul($,le)|0,C=C+Math.imul($,xe)|0;var Kt=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,w=Math.imul(ne,be),p=Math.imul(ne,Ie),p=p+Math.imul(fe,be)|0,C=Math.imul(fe,Ie),w=w+Math.imul(X,De)|0,p=p+Math.imul(X,Pe)|0,p=p+Math.imul(W,De)|0,C=C+Math.imul(W,Pe)|0,w=w+Math.imul(te,He)|0,p=p+Math.imul(te,Ve)|0,p=p+Math.imul(me,He)|0,C=C+Math.imul(me,Ve)|0,w=w+Math.imul(Me,Ge)|0,p=p+Math.imul(Me,Je)|0,p=p+Math.imul(ue,Ge)|0,C=C+Math.imul(ue,Je)|0,w=w+Math.imul(we,Xe)|0,p=p+Math.imul(we,it)|0,p=p+Math.imul(ve,Xe)|0,C=C+Math.imul(ve,it)|0,w=w+Math.imul(de,et)|0,p=p+Math.imul(de,lt)|0,p=p+Math.imul(ye,et)|0,C=C+Math.imul(ye,lt)|0,w=w+Math.imul(H,Ke)|0,p=p+Math.imul(H,ut)|0,p=p+Math.imul(Z,Ke)|0,C=C+Math.imul(Z,ut)|0,w=w+Math.imul(Q,se)|0,p=p+Math.imul(Q,oe)|0,p=p+Math.imul(re,se)|0,C=C+Math.imul(re,oe)|0,w=w+Math.imul(V,le)|0,p=p+Math.imul(V,xe)|0,p=p+Math.imul(U,le)|0,C=C+Math.imul(U,xe)|0,w=w+Math.imul(R,Ce)|0,p=p+Math.imul(R,Ne)|0,p=p+Math.imul($,Ce)|0,C=C+Math.imul($,Ne)|0;var Jt=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(Jt>>>26)|0,Jt&=67108863,w=Math.imul(ne,De),p=Math.imul(ne,Pe),p=p+Math.imul(fe,De)|0,C=Math.imul(fe,Pe),w=w+Math.imul(X,He)|0,p=p+Math.imul(X,Ve)|0,p=p+Math.imul(W,He)|0,C=C+Math.imul(W,Ve)|0,w=w+Math.imul(te,Ge)|0,p=p+Math.imul(te,Je)|0,p=p+Math.imul(me,Ge)|0,C=C+Math.imul(me,Je)|0,w=w+Math.imul(Me,Xe)|0,p=p+Math.imul(Me,it)|0,p=p+Math.imul(ue,Xe)|0,C=C+Math.imul(ue,it)|0,w=w+Math.imul(we,et)|0,p=p+Math.imul(we,lt)|0,p=p+Math.imul(ve,et)|0,C=C+Math.imul(ve,lt)|0,w=w+Math.imul(de,Ke)|0,p=p+Math.imul(de,ut)|0,p=p+Math.imul(ye,Ke)|0,C=C+Math.imul(ye,ut)|0,w=w+Math.imul(H,se)|0,p=p+Math.imul(H,oe)|0,p=p+Math.imul(Z,se)|0,C=C+Math.imul(Z,oe)|0,w=w+Math.imul(Q,le)|0,p=p+Math.imul(Q,xe)|0,p=p+Math.imul(re,le)|0,C=C+Math.imul(re,xe)|0,w=w+Math.imul(V,Ce)|0,p=p+Math.imul(V,Ne)|0,p=p+Math.imul(U,Ce)|0,C=C+Math.imul(U,Ne)|0;var Zt=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,w=Math.imul(ne,He),p=Math.imul(ne,Ve),p=p+Math.imul(fe,He)|0,C=Math.imul(fe,Ve),w=w+Math.imul(X,Ge)|0,p=p+Math.imul(X,Je)|0,p=p+Math.imul(W,Ge)|0,C=C+Math.imul(W,Je)|0,w=w+Math.imul(te,Xe)|0,p=p+Math.imul(te,it)|0,p=p+Math.imul(me,Xe)|0,C=C+Math.imul(me,it)|0,w=w+Math.imul(Me,et)|0,p=p+Math.imul(Me,lt)|0,p=p+Math.imul(ue,et)|0,C=C+Math.imul(ue,lt)|0,w=w+Math.imul(we,Ke)|0,p=p+Math.imul(we,ut)|0,p=p+Math.imul(ve,Ke)|0,C=C+Math.imul(ve,ut)|0,w=w+Math.imul(de,se)|0,p=p+Math.imul(de,oe)|0,p=p+Math.imul(ye,se)|0,C=C+Math.imul(ye,oe)|0,w=w+Math.imul(H,le)|0,p=p+Math.imul(H,xe)|0,p=p+Math.imul(Z,le)|0,C=C+Math.imul(Z,xe)|0,w=w+Math.imul(Q,Ce)|0,p=p+Math.imul(Q,Ne)|0,p=p+Math.imul(re,Ce)|0,C=C+Math.imul(re,Ne)|0;var Nt=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,w=Math.imul(ne,Ge),p=Math.imul(ne,Je),p=p+Math.imul(fe,Ge)|0,C=Math.imul(fe,Je),w=w+Math.imul(X,Xe)|0,p=p+Math.imul(X,it)|0,p=p+Math.imul(W,Xe)|0,C=C+Math.imul(W,it)|0,w=w+Math.imul(te,et)|0,p=p+Math.imul(te,lt)|0,p=p+Math.imul(me,et)|0,C=C+Math.imul(me,lt)|0,w=w+Math.imul(Me,Ke)|0,p=p+Math.imul(Me,ut)|0,p=p+Math.imul(ue,Ke)|0,C=C+Math.imul(ue,ut)|0,w=w+Math.imul(we,se)|0,p=p+Math.imul(we,oe)|0,p=p+Math.imul(ve,se)|0,C=C+Math.imul(ve,oe)|0,w=w+Math.imul(de,le)|0,p=p+Math.imul(de,xe)|0,p=p+Math.imul(ye,le)|0,C=C+Math.imul(ye,xe)|0,w=w+Math.imul(H,Ce)|0,p=p+Math.imul(H,Ne)|0,p=p+Math.imul(Z,Ce)|0,C=C+Math.imul(Z,Ne)|0;var Ot=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,w=Math.imul(ne,Xe),p=Math.imul(ne,it),p=p+Math.imul(fe,Xe)|0,C=Math.imul(fe,it),w=w+Math.imul(X,et)|0,p=p+Math.imul(X,lt)|0,p=p+Math.imul(W,et)|0,C=C+Math.imul(W,lt)|0,w=w+Math.imul(te,Ke)|0,p=p+Math.imul(te,ut)|0,p=p+Math.imul(me,Ke)|0,C=C+Math.imul(me,ut)|0,w=w+Math.imul(Me,se)|0,p=p+Math.imul(Me,oe)|0,p=p+Math.imul(ue,se)|0,C=C+Math.imul(ue,oe)|0,w=w+Math.imul(we,le)|0,p=p+Math.imul(we,xe)|0,p=p+Math.imul(ve,le)|0,C=C+Math.imul(ve,xe)|0,w=w+Math.imul(de,Ce)|0,p=p+Math.imul(de,Ne)|0,p=p+Math.imul(ye,Ce)|0,C=C+Math.imul(ye,Ne)|0;var Ct=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,w=Math.imul(ne,et),p=Math.imul(ne,lt),p=p+Math.imul(fe,et)|0,C=Math.imul(fe,lt),w=w+Math.imul(X,Ke)|0,p=p+Math.imul(X,ut)|0,p=p+Math.imul(W,Ke)|0,C=C+Math.imul(W,ut)|0,w=w+Math.imul(te,se)|0,p=p+Math.imul(te,oe)|0,p=p+Math.imul(me,se)|0,C=C+Math.imul(me,oe)|0,w=w+Math.imul(Me,le)|0,p=p+Math.imul(Me,xe)|0,p=p+Math.imul(ue,le)|0,C=C+Math.imul(ue,xe)|0,w=w+Math.imul(we,Ce)|0,p=p+Math.imul(we,Ne)|0,p=p+Math.imul(ve,Ce)|0,C=C+Math.imul(ve,Ne)|0;var kt=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(kt>>>26)|0,kt&=67108863,w=Math.imul(ne,Ke),p=Math.imul(ne,ut),p=p+Math.imul(fe,Ke)|0,C=Math.imul(fe,ut),w=w+Math.imul(X,se)|0,p=p+Math.imul(X,oe)|0,p=p+Math.imul(W,se)|0,C=C+Math.imul(W,oe)|0,w=w+Math.imul(te,le)|0,p=p+Math.imul(te,xe)|0,p=p+Math.imul(me,le)|0,C=C+Math.imul(me,xe)|0,w=w+Math.imul(Me,Ce)|0,p=p+Math.imul(Me,Ne)|0,p=p+Math.imul(ue,Ce)|0,C=C+Math.imul(ue,Ne)|0;var Bt=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,w=Math.imul(ne,se),p=Math.imul(ne,oe),p=p+Math.imul(fe,se)|0,C=Math.imul(fe,oe),w=w+Math.imul(X,le)|0,p=p+Math.imul(X,xe)|0,p=p+Math.imul(W,le)|0,C=C+Math.imul(W,xe)|0,w=w+Math.imul(te,Ce)|0,p=p+Math.imul(te,Ne)|0,p=p+Math.imul(me,Ce)|0,C=C+Math.imul(me,Ne)|0;var At=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(At>>>26)|0,At&=67108863,w=Math.imul(ne,le),p=Math.imul(ne,xe),p=p+Math.imul(fe,le)|0,C=Math.imul(fe,xe),w=w+Math.imul(X,Ce)|0,p=p+Math.imul(X,Ne)|0,p=p+Math.imul(W,Ce)|0,C=C+Math.imul(W,Ne)|0;var Ze=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,w=Math.imul(ne,Ce),p=Math.imul(ne,Ne),p=p+Math.imul(fe,Ce)|0,C=Math.imul(fe,Ne);var Qe=(N+w|0)+((p&8191)<<13)|0;return N=(C+(p>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,A[0]=dt,A[1]=pt,A[2]=nr,A[3]=xt,A[4]=gt,A[5]=Pt,A[6]=tr,A[7]=er,A[8]=Kt,A[9]=Jt,A[10]=Zt,A[11]=Nt,A[12]=Ot,A[13]=Ct,A[14]=kt,A[15]=Bt,A[16]=At,A[17]=Ze,A[18]=Qe,N!==0&&(A[19]=N,b.length++),b};Math.imul||(M=x);function E(I,u,f){f.negative=u.negative^I.negative,f.length=I.length+u.length;for(var b=0,g=0,v=0;v<f.length-1;v++){var A=g;g=0;for(var N=b&67108863,w=Math.min(v,u.length-1),p=Math.max(0,v-I.length+1);p<=w;p++){var C=v-p,P=I.words[C]|0,R=u.words[p]|0,$=P*R,Y=$&67108863;A=A+($/67108864|0)|0,Y=Y+N|0,N=Y&67108863,A=A+(Y>>>26)|0,g+=A>>>26,A&=67108863}f.words[v]=N,b=A,A=g}return b!==0?f.words[v]=b:f.length--,f.strip()}function S(I,u,f){var b=new T;return b.mulp(I,u,f)}i.prototype.mulTo=function(u,f){var b,g=this.length+u.length;return this.length===10&&u.length===10?b=M(this,u,f):g<63?b=x(this,u,f):g<1024?b=E(this,u,f):b=S(this,u,f),b};function T(I,u){this.x=I,this.y=u}T.prototype.makeRBT=function(u){for(var f=new Array(u),b=i.prototype._countBits(u)-1,g=0;g<u;g++)f[g]=this.revBin(g,b,u);return f},T.prototype.revBin=function(u,f,b){if(u===0||u===b-1)return u;for(var g=0,v=0;v<f;v++)g|=(u&1)<<f-v-1,u>>=1;return g},T.prototype.permute=function(u,f,b,g,v,A){for(var N=0;N<A;N++)g[N]=f[u[N]],v[N]=b[u[N]]},T.prototype.transform=function(u,f,b,g,v,A){this.permute(A,u,f,b,g,v);for(var N=1;N<v;N<<=1)for(var w=N<<1,p=Math.cos(2*Math.PI/w),C=Math.sin(2*Math.PI/w),P=0;P<v;P+=w)for(var R=p,$=C,Y=0;Y<N;Y++){var V=b[P+Y],U=g[P+Y],G=b[P+Y+N],Q=g[P+Y+N],re=R*G-$*Q;Q=R*Q+$*G,G=re,b[P+Y]=V+G,g[P+Y]=U+Q,b[P+Y+N]=V-G,g[P+Y+N]=U-Q,Y!==w&&(re=p*R-C*$,$=p*$+C*R,R=re)}},T.prototype.guessLen13b=function(u,f){var b=Math.max(f,u)|1,g=b&1,v=0;for(b=b/2|0;b;b=b>>>1)v++;return 1<<v+1+g},T.prototype.conjugate=function(u,f,b){if(!(b<=1))for(var g=0;g<b/2;g++){var v=u[g];u[g]=u[b-g-1],u[b-g-1]=v,v=f[g],f[g]=-f[b-g-1],f[b-g-1]=-v}},T.prototype.normalize13b=function(u,f){for(var b=0,g=0;g<f/2;g++){var v=Math.round(u[2*g+1]/f)*8192+Math.round(u[2*g]/f)+b;u[g]=v&67108863,v<67108864?b=0:b=v/67108864|0}return u},T.prototype.convert13b=function(u,f,b,g){for(var v=0,A=0;A<f;A++)v=v+(u[A]|0),b[2*A]=v&8191,v=v>>>13,b[2*A+1]=v&8191,v=v>>>13;for(A=2*f;A<g;++A)b[A]=0;n(v===0),n((v&-8192)===0)},T.prototype.stub=function(u){for(var f=new Array(u),b=0;b<u;b++)f[b]=0;return f},T.prototype.mulp=function(u,f,b){var g=2*this.guessLen13b(u.length,f.length),v=this.makeRBT(g),A=this.stub(g),N=new Array(g),w=new Array(g),p=new Array(g),C=new Array(g),P=new Array(g),R=new Array(g),$=b.words;$.length=g,this.convert13b(u.words,u.length,N,g),this.convert13b(f.words,f.length,C,g),this.transform(N,A,w,p,g,v),this.transform(C,A,P,R,g,v);for(var Y=0;Y<g;Y++){var V=w[Y]*P[Y]-p[Y]*R[Y];p[Y]=w[Y]*R[Y]+p[Y]*P[Y],w[Y]=V}return this.conjugate(w,p,g),this.transform(w,p,$,A,g,v),this.conjugate($,A,g),this.normalize13b($,g),b.negative=u.negative^f.negative,b.length=u.length+f.length,b.strip()},i.prototype.mul=function(u){var f=new i(null);return f.words=new Array(this.length+u.length),this.mulTo(u,f)},i.prototype.mulf=function(u){var f=new i(null);return f.words=new Array(this.length+u.length),S(this,u,f)},i.prototype.imul=function(u){return this.clone().mulTo(u,this)},i.prototype.imuln=function(u){n(typeof u=="number"),n(u<67108864);for(var f=0,b=0;b<this.length;b++){var g=(this.words[b]|0)*u,v=(g&67108863)+(f&67108863);f>>=26,f+=g/67108864|0,f+=v>>>26,this.words[b]=v&67108863}return f!==0&&(this.words[b]=f,this.length++),this},i.prototype.muln=function(u){return this.clone().imuln(u)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(u){var f=y(u);if(f.length===0)return new i(1);for(var b=this,g=0;g<f.length&&f[g]===0;g++,b=b.sqr());if(++g<f.length)for(var v=b.sqr();g<f.length;g++,v=v.sqr())f[g]!==0&&(b=b.mul(v));return b},i.prototype.iushln=function(u){n(typeof u=="number"&&u>=0);var f=u%26,b=(u-f)/26,g=67108863>>>26-f<<26-f,v;if(f!==0){var A=0;for(v=0;v<this.length;v++){var N=this.words[v]&g,w=(this.words[v]|0)-N<<f;this.words[v]=w|A,A=N>>>26-f}A&&(this.words[v]=A,this.length++)}if(b!==0){for(v=this.length-1;v>=0;v--)this.words[v+b]=this.words[v];for(v=0;v<b;v++)this.words[v]=0;this.length+=b}return this.strip()},i.prototype.ishln=function(u){return n(this.negative===0),this.iushln(u)},i.prototype.iushrn=function(u,f,b){n(typeof u=="number"&&u>=0);var g;f?g=(f-f%26)/26:g=0;var v=u%26,A=Math.min((u-v)/26,this.length),N=67108863^67108863>>>v<<v,w=b;if(g-=A,g=Math.max(0,g),w){for(var p=0;p<A;p++)w.words[p]=this.words[p];w.length=A}if(A!==0)if(this.length>A)for(this.length-=A,p=0;p<this.length;p++)this.words[p]=this.words[p+A];else this.words[0]=0,this.length=1;var C=0;for(p=this.length-1;p>=0&&(C!==0||p>=g);p--){var P=this.words[p]|0;this.words[p]=C<<26-v|P>>>v,C=P&N}return w&&C!==0&&(w.words[w.length++]=C),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(u,f,b){return n(this.negative===0),this.iushrn(u,f,b)},i.prototype.shln=function(u){return this.clone().ishln(u)},i.prototype.ushln=function(u){return this.clone().iushln(u)},i.prototype.shrn=function(u){return this.clone().ishrn(u)},i.prototype.ushrn=function(u){return this.clone().iushrn(u)},i.prototype.testn=function(u){n(typeof u=="number"&&u>=0);var f=u%26,b=(u-f)/26,g=1<<f;if(this.length<=b)return!1;var v=this.words[b];return!!(v&g)},i.prototype.imaskn=function(u){n(typeof u=="number"&&u>=0);var f=u%26,b=(u-f)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=b)return this;if(f!==0&&b++,this.length=Math.min(b,this.length),f!==0){var g=67108863^67108863>>>f<<f;this.words[this.length-1]&=g}return this.strip()},i.prototype.maskn=function(u){return this.clone().imaskn(u)},i.prototype.iaddn=function(u){return n(typeof u=="number"),n(u<67108864),u<0?this.isubn(-u):this.negative!==0?this.length===1&&(this.words[0]|0)<u?(this.words[0]=u-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(u),this.negative=1,this):this._iaddn(u)},i.prototype._iaddn=function(u){this.words[0]+=u;for(var f=0;f<this.length&&this.words[f]>=67108864;f++)this.words[f]-=67108864,f===this.length-1?this.words[f+1]=1:this.words[f+1]++;return this.length=Math.max(this.length,f+1),this},i.prototype.isubn=function(u){if(n(typeof u=="number"),n(u<67108864),u<0)return this.iaddn(-u);if(this.negative!==0)return this.negative=0,this.iaddn(u),this.negative=1,this;if(this.words[0]-=u,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var f=0;f<this.length&&this.words[f]<0;f++)this.words[f]+=67108864,this.words[f+1]-=1;return this.strip()},i.prototype.addn=function(u){return this.clone().iaddn(u)},i.prototype.subn=function(u){return this.clone().isubn(u)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(u,f,b){var g=u.length+b,v;this._expand(g);var A,N=0;for(v=0;v<u.length;v++){A=(this.words[v+b]|0)+N;var w=(u.words[v]|0)*f;A-=w&67108863,N=(A>>26)-(w/67108864|0),this.words[v+b]=A&67108863}for(;v<this.length-b;v++)A=(this.words[v+b]|0)+N,N=A>>26,this.words[v+b]=A&67108863;if(N===0)return this.strip();for(n(N===-1),N=0,v=0;v<this.length;v++)A=-(this.words[v]|0)+N,N=A>>26,this.words[v]=A&67108863;return this.negative=1,this.strip()},i.prototype._wordDiv=function(u,f){var b=this.length-u.length,g=this.clone(),v=u,A=v.words[v.length-1]|0,N=this._countBits(A);b=26-N,b!==0&&(v=v.ushln(b),g.iushln(b),A=v.words[v.length-1]|0);var w=g.length-v.length,p;if(f!=="mod"){p=new i(null),p.length=w+1,p.words=new Array(p.length);for(var C=0;C<p.length;C++)p.words[C]=0}var P=g.clone()._ishlnsubmul(v,1,w);P.negative===0&&(g=P,p&&(p.words[w]=1));for(var R=w-1;R>=0;R--){var $=(g.words[v.length+R]|0)*67108864+(g.words[v.length+R-1]|0);for($=Math.min($/A|0,67108863),g._ishlnsubmul(v,$,R);g.negative!==0;)$--,g.negative=0,g._ishlnsubmul(v,1,R),g.isZero()||(g.negative^=1);p&&(p.words[R]=$)}return p&&p.strip(),g.strip(),f!=="div"&&b!==0&&g.iushrn(b),{div:p||null,mod:g}},i.prototype.divmod=function(u,f,b){if(n(!u.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var g,v,A;return this.negative!==0&&u.negative===0?(A=this.neg().divmod(u,f),f!=="mod"&&(g=A.div.neg()),f!=="div"&&(v=A.mod.neg(),b&&v.negative!==0&&v.iadd(u)),{div:g,mod:v}):this.negative===0&&u.negative!==0?(A=this.divmod(u.neg(),f),f!=="mod"&&(g=A.div.neg()),{div:g,mod:A.mod}):this.negative&u.negative?(A=this.neg().divmod(u.neg(),f),f!=="div"&&(v=A.mod.neg(),b&&v.negative!==0&&v.isub(u)),{div:A.div,mod:v}):u.length>this.length||this.cmp(u)<0?{div:new i(0),mod:this}:u.length===1?f==="div"?{div:this.divn(u.words[0]),mod:null}:f==="mod"?{div:null,mod:new i(this.modn(u.words[0]))}:{div:this.divn(u.words[0]),mod:new i(this.modn(u.words[0]))}:this._wordDiv(u,f)},i.prototype.div=function(u){return this.divmod(u,"div",!1).div},i.prototype.mod=function(u){return this.divmod(u,"mod",!1).mod},i.prototype.umod=function(u){return this.divmod(u,"mod",!0).mod},i.prototype.divRound=function(u){var f=this.divmod(u);if(f.mod.isZero())return f.div;var b=f.div.negative!==0?f.mod.isub(u):f.mod,g=u.ushrn(1),v=u.andln(1),A=b.cmp(g);return A<0||v===1&&A===0?f.div:f.div.negative!==0?f.div.isubn(1):f.div.iaddn(1)},i.prototype.modn=function(u){n(u<=67108863);for(var f=(1<<26)%u,b=0,g=this.length-1;g>=0;g--)b=(f*b+(this.words[g]|0))%u;return b},i.prototype.idivn=function(u){n(u<=67108863);for(var f=0,b=this.length-1;b>=0;b--){var g=(this.words[b]|0)+f*67108864;this.words[b]=g/u|0,f=g%u}return this.strip()},i.prototype.divn=function(u){return this.clone().idivn(u)},i.prototype.egcd=function(u){n(u.negative===0),n(!u.isZero());var f=this,b=u.clone();f.negative!==0?f=f.umod(u):f=f.clone();for(var g=new i(1),v=new i(0),A=new i(0),N=new i(1),w=0;f.isEven()&&b.isEven();)f.iushrn(1),b.iushrn(1),++w;for(var p=b.clone(),C=f.clone();!f.isZero();){for(var P=0,R=1;!(f.words[0]&R)&&P<26;++P,R<<=1);if(P>0)for(f.iushrn(P);P-- >0;)(g.isOdd()||v.isOdd())&&(g.iadd(p),v.isub(C)),g.iushrn(1),v.iushrn(1);for(var $=0,Y=1;!(b.words[0]&Y)&&$<26;++$,Y<<=1);if($>0)for(b.iushrn($);$-- >0;)(A.isOdd()||N.isOdd())&&(A.iadd(p),N.isub(C)),A.iushrn(1),N.iushrn(1);f.cmp(b)>=0?(f.isub(b),g.isub(A),v.isub(N)):(b.isub(f),A.isub(g),N.isub(v))}return{a:A,b:N,gcd:b.iushln(w)}},i.prototype._invmp=function(u){n(u.negative===0),n(!u.isZero());var f=this,b=u.clone();f.negative!==0?f=f.umod(u):f=f.clone();for(var g=new i(1),v=new i(0),A=b.clone();f.cmpn(1)>0&&b.cmpn(1)>0;){for(var N=0,w=1;!(f.words[0]&w)&&N<26;++N,w<<=1);if(N>0)for(f.iushrn(N);N-- >0;)g.isOdd()&&g.iadd(A),g.iushrn(1);for(var p=0,C=1;!(b.words[0]&C)&&p<26;++p,C<<=1);if(p>0)for(b.iushrn(p);p-- >0;)v.isOdd()&&v.iadd(A),v.iushrn(1);f.cmp(b)>=0?(f.isub(b),g.isub(v)):(b.isub(f),v.isub(g))}var P;return f.cmpn(1)===0?P=g:P=v,P.cmpn(0)<0&&P.iadd(u),P},i.prototype.gcd=function(u){if(this.isZero())return u.abs();if(u.isZero())return this.abs();var f=this.clone(),b=u.clone();f.negative=0,b.negative=0;for(var g=0;f.isEven()&&b.isEven();g++)f.iushrn(1),b.iushrn(1);do{for(;f.isEven();)f.iushrn(1);for(;b.isEven();)b.iushrn(1);var v=f.cmp(b);if(v<0){var A=f;f=b,b=A}else if(v===0||b.cmpn(1)===0)break;f.isub(b)}while(!0);return b.iushln(g)},i.prototype.invm=function(u){return this.egcd(u).a.umod(u)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(u){return this.words[0]&u},i.prototype.bincn=function(u){n(typeof u=="number");var f=u%26,b=(u-f)/26,g=1<<f;if(this.length<=b)return this._expand(b+1),this.words[b]|=g,this;for(var v=g,A=b;v!==0&&A<this.length;A++){var N=this.words[A]|0;N+=v,v=N>>>26,N&=67108863,this.words[A]=N}return v!==0&&(this.words[A]=v,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(u){var f=u<0;if(this.negative!==0&&!f)return-1;if(this.negative===0&&f)return 1;this.strip();var b;if(this.length>1)b=1;else{f&&(u=-u),n(u<=67108863,"Number is too big");var g=this.words[0]|0;b=g===u?0:g<u?-1:1}return this.negative!==0?-b|0:b},i.prototype.cmp=function(u){if(this.negative!==0&&u.negative===0)return-1;if(this.negative===0&&u.negative!==0)return 1;var f=this.ucmp(u);return this.negative!==0?-f|0:f},i.prototype.ucmp=function(u){if(this.length>u.length)return 1;if(this.length<u.length)return-1;for(var f=0,b=this.length-1;b>=0;b--){var g=this.words[b]|0,v=u.words[b]|0;if(g!==v){g<v?f=-1:g>v&&(f=1);break}}return f},i.prototype.gtn=function(u){return this.cmpn(u)===1},i.prototype.gt=function(u){return this.cmp(u)===1},i.prototype.gten=function(u){return this.cmpn(u)>=0},i.prototype.gte=function(u){return this.cmp(u)>=0},i.prototype.ltn=function(u){return this.cmpn(u)===-1},i.prototype.lt=function(u){return this.cmp(u)===-1},i.prototype.lten=function(u){return this.cmpn(u)<=0},i.prototype.lte=function(u){return this.cmp(u)<=0},i.prototype.eqn=function(u){return this.cmpn(u)===0},i.prototype.eq=function(u){return this.cmp(u)===0},i.red=function(u){return new z(u)},i.prototype.toRed=function(u){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),u.convertTo(this)._forceRed(u)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(u){return this.red=u,this},i.prototype.forceRed=function(u){return n(!this.red,"Already a number in reduction context"),this._forceRed(u)},i.prototype.redAdd=function(u){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,u)},i.prototype.redIAdd=function(u){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,u)},i.prototype.redSub=function(u){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,u)},i.prototype.redISub=function(u){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,u)},i.prototype.redShl=function(u){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,u)},i.prototype.redMul=function(u){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.mul(this,u)},i.prototype.redIMul=function(u){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.imul(this,u)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(u){return n(this.red&&!u.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,u)};var D={k256:null,p224:null,p192:null,p25519:null};function k(I,u){this.name=I,this.p=new i(u,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}k.prototype._tmp=function(){var u=new i(null);return u.words=new Array(Math.ceil(this.n/13)),u},k.prototype.ireduce=function(u){var f=u,b;do this.split(f,this.tmp),f=this.imulK(f),f=f.iadd(this.tmp),b=f.bitLength();while(b>this.n);var g=b<this.n?-1:f.ucmp(this.p);return g===0?(f.words[0]=0,f.length=1):g>0?f.isub(this.p):f.strip!==void 0?f.strip():f._strip(),f},k.prototype.split=function(u,f){u.iushrn(this.n,0,f)},k.prototype.imulK=function(u){return u.imul(this.k)};function _(){k.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}a(_,k),_.prototype.split=function(u,f){for(var b=4194303,g=Math.min(u.length,9),v=0;v<g;v++)f.words[v]=u.words[v];if(f.length=g,u.length<=9){u.words[0]=0,u.length=1;return}var A=u.words[9];for(f.words[f.length++]=A&b,v=10;v<u.length;v++){var N=u.words[v]|0;u.words[v-10]=(N&b)<<4|A>>>22,A=N}A>>>=22,u.words[v-10]=A,A===0&&u.length>10?u.length-=10:u.length-=9},_.prototype.imulK=function(u){u.words[u.length]=0,u.words[u.length+1]=0,u.length+=2;for(var f=0,b=0;b<u.length;b++){var g=u.words[b]|0;f+=g*977,u.words[b]=f&67108863,f=g*64+(f/67108864|0)}return u.words[u.length-1]===0&&(u.length--,u.words[u.length-1]===0&&u.length--),u};function L(){k.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}a(L,k);function O(){k.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}a(O,k);function B(){k.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}a(B,k),B.prototype.imulK=function(u){for(var f=0,b=0;b<u.length;b++){var g=(u.words[b]|0)*19+f,v=g&67108863;g>>>=26,u.words[b]=v,f=g}return f!==0&&(u.words[u.length++]=f),u},i._prime=function(u){if(D[u])return D[u];var f;if(u==="k256")f=new _;else if(u==="p224")f=new L;else if(u==="p192")f=new O;else if(u==="p25519")f=new B;else throw new Error("Unknown prime "+u);return D[u]=f,f};function z(I){if(typeof I=="string"){var u=i._prime(I);this.m=u.p,this.prime=u}else n(I.gtn(1),"modulus must be greater than 1"),this.m=I,this.prime=null}z.prototype._verify1=function(u){n(u.negative===0,"red works only with positives"),n(u.red,"red works only with red numbers")},z.prototype._verify2=function(u,f){n((u.negative|f.negative)===0,"red works only with positives"),n(u.red&&u.red===f.red,"red works only with red numbers")},z.prototype.imod=function(u){return this.prime?this.prime.ireduce(u)._forceRed(this):u.umod(this.m)._forceRed(this)},z.prototype.neg=function(u){return u.isZero()?u.clone():this.m.sub(u)._forceRed(this)},z.prototype.add=function(u,f){this._verify2(u,f);var b=u.add(f);return b.cmp(this.m)>=0&&b.isub(this.m),b._forceRed(this)},z.prototype.iadd=function(u,f){this._verify2(u,f);var b=u.iadd(f);return b.cmp(this.m)>=0&&b.isub(this.m),b},z.prototype.sub=function(u,f){this._verify2(u,f);var b=u.sub(f);return b.cmpn(0)<0&&b.iadd(this.m),b._forceRed(this)},z.prototype.isub=function(u,f){this._verify2(u,f);var b=u.isub(f);return b.cmpn(0)<0&&b.iadd(this.m),b},z.prototype.shl=function(u,f){return this._verify1(u),this.imod(u.ushln(f))},z.prototype.imul=function(u,f){return this._verify2(u,f),this.imod(u.imul(f))},z.prototype.mul=function(u,f){return this._verify2(u,f),this.imod(u.mul(f))},z.prototype.isqr=function(u){return this.imul(u,u.clone())},z.prototype.sqr=function(u){return this.mul(u,u)},z.prototype.sqrt=function(u){if(u.isZero())return u.clone();var f=this.m.andln(3);if(n(f%2===1),f===3){var b=this.m.add(new i(1)).iushrn(2);return this.pow(u,b)}for(var g=this.m.subn(1),v=0;!g.isZero()&&g.andln(1)===0;)v++,g.iushrn(1);n(!g.isZero());var A=new i(1).toRed(this),N=A.redNeg(),w=this.m.subn(1).iushrn(1),p=this.m.bitLength();for(p=new i(2*p*p).toRed(this);this.pow(p,w).cmp(N)!==0;)p.redIAdd(N);for(var C=this.pow(p,g),P=this.pow(u,g.addn(1).iushrn(1)),R=this.pow(u,g),$=v;R.cmp(A)!==0;){for(var Y=R,V=0;Y.cmp(A)!==0;V++)Y=Y.redSqr();n(V<$);var U=this.pow(C,new i(1).iushln($-V-1));P=P.redMul(U),C=U.redSqr(),R=R.redMul(C),$=V}return P},z.prototype.invm=function(u){var f=u._invmp(this.m);return f.negative!==0?(f.negative=0,this.imod(f).redNeg()):this.imod(f)},z.prototype.pow=function(u,f){if(f.isZero())return new i(1).toRed(this);if(f.cmpn(1)===0)return u.clone();var b=4,g=new Array(1<<b);g[0]=new i(1).toRed(this),g[1]=u;for(var v=2;v<g.length;v++)g[v]=this.mul(g[v-1],u);var A=g[0],N=0,w=0,p=f.bitLength()%26;for(p===0&&(p=26),v=f.length-1;v>=0;v--){for(var C=f.words[v],P=p-1;P>=0;P--){var R=C>>P&1;if(A!==g[0]&&(A=this.sqr(A)),R===0&&N===0){w=0;continue}N<<=1,N|=R,w++,!(w!==b&&(v!==0||P!==0))&&(A=this.mul(A,g[N]),w=0,N=0)}p=26}return A},z.prototype.convertTo=function(u){var f=u.umod(this.m);return f===u?f.clone():f},z.prototype.convertFrom=function(u){var f=u.clone();return f.red=null,f},i.mont=function(u){return new F(u)};function F(I){z.call(this,I),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}a(F,z),F.prototype.convertTo=function(u){return this.imod(u.ushln(this.shift))},F.prototype.convertFrom=function(u){var f=this.imod(u.mul(this.rinv));return f.red=null,f},F.prototype.imul=function(u,f){if(u.isZero()||f.isZero())return u.words[0]=0,u.length=1,u;var b=u.imul(f),g=b.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=b.isub(g).iushrn(this.shift),A=v;return v.cmp(this.m)>=0?A=v.isub(this.m):v.cmpn(0)<0&&(A=v.iadd(this.m)),A._forceRed(this)},F.prototype.mul=function(u,f){if(u.isZero()||f.isZero())return new i(0)._forceRed(this);var b=u.mul(f),g=b.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=b.isub(g).iushrn(this.shift),A=v;return v.cmp(this.m)>=0?A=v.isub(this.m):v.cmpn(0)<0&&(A=v.iadd(this.m)),A._forceRed(this)},F.prototype.invm=function(u){var f=this.imod(u._invmp(this.m).mul(this.r2));return f._forceRed(this)}})(t,st)}(bC)),bC.exports}var Wj={},ose;function Pbe(){return ose||(ose=1,function(t){var e=t;function r(i,s){if(Array.isArray(i))return i.slice();if(!i)return[];var o=[];if(typeof i!="string"){for(var c=0;c<i.length;c++)o[c]=i[c]|0;return o}if(s==="hex"){i=i.replace(/[^a-z0-9]+/ig,""),i.length%2!==0&&(i="0"+i);for(var c=0;c<i.length;c+=2)o.push(parseInt(i[c]+i[c+1],16))}else for(var c=0;c<i.length;c++){var l=i.charCodeAt(c),d=l>>8,h=l&255;d?o.push(d,h):o.push(h)}return o}e.toArray=r;function n(i){return i.length===1?"0"+i:i}e.zero2=n;function a(i){for(var s="",o=0;o<i.length;o++)s+=n(i[o].toString(16));return s}e.toHex=a,e.encode=function(s,o){return o==="hex"?a(s):s}}(Wj)),Wj}var cse;function ic(){return cse||(cse=1,function(t){var e=t,r=If(),n=ac(),a=Pbe();e.assert=n,e.toArray=a.toArray,e.zero2=a.zero2,e.toHex=a.toHex,e.encode=a.encode;function i(d,h,m){var y=new Array(Math.max(d.bitLength(),m)+1),x;for(x=0;x<y.length;x+=1)y[x]=0;var M=1<<h+1,E=d.clone();for(x=0;x<y.length;x++){var S,T=E.andln(M-1);E.isOdd()?(T>(M>>1)-1?S=(M>>1)-T:S=T,E.isubn(S)):S=0,y[x]=S,E.iushrn(1)}return y}e.getNAF=i;function s(d,h){var m=[[],[]];d=d.clone(),h=h.clone();for(var y=0,x=0,M;d.cmpn(-y)>0||h.cmpn(-x)>0;){var E=d.andln(3)+y&3,S=h.andln(3)+x&3;E===3&&(E=-1),S===3&&(S=-1);var T;E&1?(M=d.andln(7)+y&7,(M===3||M===5)&&S===2?T=-E:T=E):T=0,m[0].push(T);var D;S&1?(M=h.andln(7)+x&7,(M===3||M===5)&&E===2?D=-S:D=S):D=0,m[1].push(D),2*y===T+1&&(y=1-y),2*x===D+1&&(x=1-x),d.iushrn(1),h.iushrn(1)}return m}e.getJSF=s;function o(d,h,m){var y="_"+h;d.prototype[h]=function(){return this[y]!==void 0?this[y]:this[y]=m.call(this)}}e.cachedProperty=o;function c(d){return typeof d=="string"?e.toArray(d,"hex"):d}e.parseBytes=c;function l(d){return new r(d,"hex","le")}e.intFromLE=l}(Uj)),Uj}var Vj={},$j,lse;function ZN(){if(lse)return $j;lse=1;var t=If(),e=ic(),r=e.getNAF,n=e.getJSF,a=e.assert;function i(o,c){this.type=o,this.p=new t(c.p,16),this.red=c.prime?t.red(c.prime):t.mont(this.p),this.zero=new t(0).toRed(this.red),this.one=new t(1).toRed(this.red),this.two=new t(2).toRed(this.red),this.n=c.n&&new t(c.n,16),this.g=c.g&&this.pointFromJSON(c.g,c.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var l=this.n&&this.p.div(this.n);!l||l.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}$j=i,i.prototype.point=function(){throw new Error("Not implemented")},i.prototype.validate=function(){throw new Error("Not implemented")},i.prototype._fixedNafMul=function(c,l){a(c.precomputed);var d=c._getDoubles(),h=r(l,1,this._bitLength),m=(1<<d.step+1)-(d.step%2===0?2:1);m/=3;var y=[],x,M;for(x=0;x<h.length;x+=d.step){M=0;for(var E=x+d.step-1;E>=x;E--)M=(M<<1)+h[E];y.push(M)}for(var S=this.jpoint(null,null,null),T=this.jpoint(null,null,null),D=m;D>0;D--){for(x=0;x<y.length;x++)M=y[x],M===D?T=T.mixedAdd(d.points[x]):M===-D&&(T=T.mixedAdd(d.points[x].neg()));S=S.add(T)}return S.toP()},i.prototype._wnafMul=function(c,l){var d=4,h=c._getNAFPoints(d);d=h.wnd;for(var m=h.points,y=r(l,d,this._bitLength),x=this.jpoint(null,null,null),M=y.length-1;M>=0;M--){for(var E=0;M>=0&&y[M]===0;M--)E++;if(M>=0&&E++,x=x.dblp(E),M<0)break;var S=y[M];a(S!==0),c.type==="affine"?S>0?x=x.mixedAdd(m[S-1>>1]):x=x.mixedAdd(m[-S-1>>1].neg()):S>0?x=x.add(m[S-1>>1]):x=x.add(m[-S-1>>1].neg())}return c.type==="affine"?x.toP():x},i.prototype._wnafMulAdd=function(c,l,d,h,m){var y=this._wnafT1,x=this._wnafT2,M=this._wnafT3,E=0,S,T,D;for(S=0;S<h;S++){D=l[S];var k=D._getNAFPoints(c);y[S]=k.wnd,x[S]=k.points}for(S=h-1;S>=1;S-=2){var _=S-1,L=S;if(y[_]!==1||y[L]!==1){M[_]=r(d[_],y[_],this._bitLength),M[L]=r(d[L],y[L],this._bitLength),E=Math.max(M[_].length,E),E=Math.max(M[L].length,E);continue}var O=[l[_],null,null,l[L]];l[_].y.cmp(l[L].y)===0?(O[1]=l[_].add(l[L]),O[2]=l[_].toJ().mixedAdd(l[L].neg())):l[_].y.cmp(l[L].y.redNeg())===0?(O[1]=l[_].toJ().mixedAdd(l[L]),O[2]=l[_].add(l[L].neg())):(O[1]=l[_].toJ().mixedAdd(l[L]),O[2]=l[_].toJ().mixedAdd(l[L].neg()));var B=[-3,-1,-5,-7,0,7,5,1,3],z=n(d[_],d[L]);for(E=Math.max(z[0].length,E),M[_]=new Array(E),M[L]=new Array(E),T=0;T<E;T++){var F=z[0][T]|0,I=z[1][T]|0;M[_][T]=B[(F+1)*3+(I+1)],M[L][T]=0,x[_]=O}}var u=this.jpoint(null,null,null),f=this._wnafT4;for(S=E;S>=0;S--){for(var b=0;S>=0;){var g=!0;for(T=0;T<h;T++)f[T]=M[T][S]|0,f[T]!==0&&(g=!1);if(!g)break;b++,S--}if(S>=0&&b++,u=u.dblp(b),S<0)break;for(T=0;T<h;T++){var v=f[T];v!==0&&(v>0?D=x[T][v-1>>1]:v<0&&(D=x[T][-v-1>>1].neg()),D.type==="affine"?u=u.mixedAdd(D):u=u.add(D))}}for(S=0;S<h;S++)x[S]=null;return m?u:u.toP()};function s(o,c){this.curve=o,this.type=c,this.precomputed=null}return i.BasePoint=s,s.prototype.eq=function(){throw new Error("Not implemented")},s.prototype.validate=function(){return this.curve.validate(this)},i.prototype.decodePoint=function(c,l){c=e.toArray(c,l);var d=this.p.byteLength();if((c[0]===4||c[0]===6||c[0]===7)&&c.length-1===2*d){c[0]===6?a(c[c.length-1]%2===0):c[0]===7&&a(c[c.length-1]%2===1);var h=this.point(c.slice(1,1+d),c.slice(1+d,1+2*d));return h}else if((c[0]===2||c[0]===3)&&c.length-1===d)return this.pointFromX(c.slice(1,1+d),c[0]===3);throw new Error("Unknown point format")},s.prototype.encodeCompressed=function(c){return this.encode(c,!0)},s.prototype._encode=function(c){var l=this.curve.p.byteLength(),d=this.getX().toArray("be",l);return c?[this.getY().isEven()?2:3].concat(d):[4].concat(d,this.getY().toArray("be",l))},s.prototype.encode=function(c,l){return e.encode(this._encode(l),c)},s.prototype.precompute=function(c){if(this.precomputed)return this;var l={doubles:null,naf:null,beta:null};return l.naf=this._getNAFPoints(8),l.doubles=this._getDoubles(4,c),l.beta=this._getBeta(),this.precomputed=l,this},s.prototype._hasDoubles=function(c){if(!this.precomputed)return!1;var l=this.precomputed.doubles;return l?l.points.length>=Math.ceil((c.bitLength()+1)/l.step):!1},s.prototype._getDoubles=function(c,l){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var d=[this],h=this,m=0;m<l;m+=c){for(var y=0;y<c;y++)h=h.dbl();d.push(h)}return{step:c,points:d}},s.prototype._getNAFPoints=function(c){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var l=[this],d=(1<<c)-1,h=d===1?null:this.dbl(),m=1;m<d;m++)l[m]=l[m-1].add(h);return{wnd:c,points:l}},s.prototype._getBeta=function(){return null},s.prototype.dblp=function(c){for(var l=this,d=0;d<c;d++)l=l.dbl();return l},$j}var Hj,use;function mYe(){if(use)return Hj;use=1;var t=ic(),e=If(),r=Ar(),n=ZN(),a=t.assert;function i(c){n.call(this,"short",c),this.a=new e(c.a,16).toRed(this.red),this.b=new e(c.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(c),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}r(i,n),Hj=i,i.prototype._getEndomorphism=function(l){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var d,h;if(l.beta)d=new e(l.beta,16).toRed(this.red);else{var m=this._getEndoRoots(this.p);d=m[0].cmp(m[1])<0?m[0]:m[1],d=d.toRed(this.red)}if(l.lambda)h=new e(l.lambda,16);else{var y=this._getEndoRoots(this.n);this.g.mul(y[0]).x.cmp(this.g.x.redMul(d))===0?h=y[0]:(h=y[1],a(this.g.mul(h).x.cmp(this.g.x.redMul(d))===0))}var x;return l.basis?x=l.basis.map(function(M){return{a:new e(M.a,16),b:new e(M.b,16)}}):x=this._getEndoBasis(h),{beta:d,lambda:h,basis:x}}},i.prototype._getEndoRoots=function(l){var d=l===this.p?this.red:e.mont(l),h=new e(2).toRed(d).redInvm(),m=h.redNeg(),y=new e(3).toRed(d).redNeg().redSqrt().redMul(h),x=m.redAdd(y).fromRed(),M=m.redSub(y).fromRed();return[x,M]},i.prototype._getEndoBasis=function(l){for(var d=this.n.ushrn(Math.floor(this.n.bitLength()/2)),h=l,m=this.n.clone(),y=new e(1),x=new e(0),M=new e(0),E=new e(1),S,T,D,k,_,L,O,B=0,z,F;h.cmpn(0)!==0;){var I=m.div(h);z=m.sub(I.mul(h)),F=M.sub(I.mul(y));var u=E.sub(I.mul(x));if(!D&&z.cmp(d)<0)S=O.neg(),T=y,D=z.neg(),k=F;else if(D&&++B===2)break;O=z,m=h,h=z,M=y,y=F,E=x,x=u}_=z.neg(),L=F;var f=D.sqr().add(k.sqr()),b=_.sqr().add(L.sqr());return b.cmp(f)>=0&&(_=S,L=T),D.negative&&(D=D.neg(),k=k.neg()),_.negative&&(_=_.neg(),L=L.neg()),[{a:D,b:k},{a:_,b:L}]},i.prototype._endoSplit=function(l){var d=this.endo.basis,h=d[0],m=d[1],y=m.b.mul(l).divRound(this.n),x=h.b.neg().mul(l).divRound(this.n),M=y.mul(h.a),E=x.mul(m.a),S=y.mul(h.b),T=x.mul(m.b),D=l.sub(M).sub(E),k=S.add(T).neg();return{k1:D,k2:k}},i.prototype.pointFromX=function(l,d){l=new e(l,16),l.red||(l=l.toRed(this.red));var h=l.redSqr().redMul(l).redIAdd(l.redMul(this.a)).redIAdd(this.b),m=h.redSqrt();if(m.redSqr().redSub(h).cmp(this.zero)!==0)throw new Error("invalid point");var y=m.fromRed().isOdd();return(d&&!y||!d&&y)&&(m=m.redNeg()),this.point(l,m)},i.prototype.validate=function(l){if(l.inf)return!0;var d=l.x,h=l.y,m=this.a.redMul(d),y=d.redSqr().redMul(d).redIAdd(m).redIAdd(this.b);return h.redSqr().redISub(y).cmpn(0)===0},i.prototype._endoWnafMulAdd=function(l,d,h){for(var m=this._endoWnafT1,y=this._endoWnafT2,x=0;x<l.length;x++){var M=this._endoSplit(d[x]),E=l[x],S=E._getBeta();M.k1.negative&&(M.k1.ineg(),E=E.neg(!0)),M.k2.negative&&(M.k2.ineg(),S=S.neg(!0)),m[x*2]=E,m[x*2+1]=S,y[x*2]=M.k1,y[x*2+1]=M.k2}for(var T=this._wnafMulAdd(1,m,y,x*2,h),D=0;D<x*2;D++)m[D]=null,y[D]=null;return T};function s(c,l,d,h){n.BasePoint.call(this,c,"affine"),l===null&&d===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new e(l,16),this.y=new e(d,16),h&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}r(s,n.BasePoint),i.prototype.point=function(l,d,h){return new s(this,l,d,h)},i.prototype.pointFromJSON=function(l,d){return s.fromJSON(this,l,d)},s.prototype._getBeta=function(){if(this.curve.endo){var l=this.precomputed;if(l&&l.beta)return l.beta;var d=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(l){var h=this.curve,m=function(y){return h.point(y.x.redMul(h.endo.beta),y.y)};l.beta=d,d.precomputed={beta:null,naf:l.naf&&{wnd:l.naf.wnd,points:l.naf.points.map(m)},doubles:l.doubles&&{step:l.doubles.step,points:l.doubles.points.map(m)}}}return d}},s.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},s.fromJSON=function(l,d,h){typeof d=="string"&&(d=JSON.parse(d));var m=l.point(d[0],d[1],h);if(!d[2])return m;function y(M){return l.point(M[0],M[1],h)}var x=d[2];return m.precomputed={beta:null,doubles:x.doubles&&{step:x.doubles.step,points:[m].concat(x.doubles.points.map(y))},naf:x.naf&&{wnd:x.naf.wnd,points:[m].concat(x.naf.points.map(y))}},m},s.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},s.prototype.isInfinity=function(){return this.inf},s.prototype.add=function(l){if(this.inf)return l;if(l.inf)return this;if(this.eq(l))return this.dbl();if(this.neg().eq(l))return this.curve.point(null,null);if(this.x.cmp(l.x)===0)return this.curve.point(null,null);var d=this.y.redSub(l.y);d.cmpn(0)!==0&&(d=d.redMul(this.x.redSub(l.x).redInvm()));var h=d.redSqr().redISub(this.x).redISub(l.x),m=d.redMul(this.x.redSub(h)).redISub(this.y);return this.curve.point(h,m)},s.prototype.dbl=function(){if(this.inf)return this;var l=this.y.redAdd(this.y);if(l.cmpn(0)===0)return this.curve.point(null,null);var d=this.curve.a,h=this.x.redSqr(),m=l.redInvm(),y=h.redAdd(h).redIAdd(h).redIAdd(d).redMul(m),x=y.redSqr().redISub(this.x.redAdd(this.x)),M=y.redMul(this.x.redSub(x)).redISub(this.y);return this.curve.point(x,M)},s.prototype.getX=function(){return this.x.fromRed()},s.prototype.getY=function(){return this.y.fromRed()},s.prototype.mul=function(l){return l=new e(l,16),this.isInfinity()?this:this._hasDoubles(l)?this.curve._fixedNafMul(this,l):this.curve.endo?this.curve._endoWnafMulAdd([this],[l]):this.curve._wnafMul(this,l)},s.prototype.mulAdd=function(l,d,h){var m=[this,d],y=[l,h];return this.curve.endo?this.curve._endoWnafMulAdd(m,y):this.curve._wnafMulAdd(1,m,y,2)},s.prototype.jmulAdd=function(l,d,h){var m=[this,d],y=[l,h];return this.curve.endo?this.curve._endoWnafMulAdd(m,y,!0):this.curve._wnafMulAdd(1,m,y,2,!0)},s.prototype.eq=function(l){return this===l||this.inf===l.inf&&(this.inf||this.x.cmp(l.x)===0&&this.y.cmp(l.y)===0)},s.prototype.neg=function(l){if(this.inf)return this;var d=this.curve.point(this.x,this.y.redNeg());if(l&&this.precomputed){var h=this.precomputed,m=function(y){return y.neg()};d.precomputed={naf:h.naf&&{wnd:h.naf.wnd,points:h.naf.points.map(m)},doubles:h.doubles&&{step:h.doubles.step,points:h.doubles.points.map(m)}}}return d},s.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var l=this.curve.jpoint(this.x,this.y,this.curve.one);return l};function o(c,l,d,h){n.BasePoint.call(this,c,"jacobian"),l===null&&d===null&&h===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new e(0)):(this.x=new e(l,16),this.y=new e(d,16),this.z=new e(h,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}return r(o,n.BasePoint),i.prototype.jpoint=function(l,d,h){return new o(this,l,d,h)},o.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var l=this.z.redInvm(),d=l.redSqr(),h=this.x.redMul(d),m=this.y.redMul(d).redMul(l);return this.curve.point(h,m)},o.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},o.prototype.add=function(l){if(this.isInfinity())return l;if(l.isInfinity())return this;var d=l.z.redSqr(),h=this.z.redSqr(),m=this.x.redMul(d),y=l.x.redMul(h),x=this.y.redMul(d.redMul(l.z)),M=l.y.redMul(h.redMul(this.z)),E=m.redSub(y),S=x.redSub(M);if(E.cmpn(0)===0)return S.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var T=E.redSqr(),D=T.redMul(E),k=m.redMul(T),_=S.redSqr().redIAdd(D).redISub(k).redISub(k),L=S.redMul(k.redISub(_)).redISub(x.redMul(D)),O=this.z.redMul(l.z).redMul(E);return this.curve.jpoint(_,L,O)},o.prototype.mixedAdd=function(l){if(this.isInfinity())return l.toJ();if(l.isInfinity())return this;var d=this.z.redSqr(),h=this.x,m=l.x.redMul(d),y=this.y,x=l.y.redMul(d).redMul(this.z),M=h.redSub(m),E=y.redSub(x);if(M.cmpn(0)===0)return E.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var S=M.redSqr(),T=S.redMul(M),D=h.redMul(S),k=E.redSqr().redIAdd(T).redISub(D).redISub(D),_=E.redMul(D.redISub(k)).redISub(y.redMul(T)),L=this.z.redMul(M);return this.curve.jpoint(k,_,L)},o.prototype.dblp=function(l){if(l===0)return this;if(this.isInfinity())return this;if(!l)return this.dbl();var d;if(this.curve.zeroA||this.curve.threeA){var h=this;for(d=0;d<l;d++)h=h.dbl();return h}var m=this.curve.a,y=this.curve.tinv,x=this.x,M=this.y,E=this.z,S=E.redSqr().redSqr(),T=M.redAdd(M);for(d=0;d<l;d++){var D=x.redSqr(),k=T.redSqr(),_=k.redSqr(),L=D.redAdd(D).redIAdd(D).redIAdd(m.redMul(S)),O=x.redMul(k),B=L.redSqr().redISub(O.redAdd(O)),z=O.redISub(B),F=L.redMul(z);F=F.redIAdd(F).redISub(_);var I=T.redMul(E);d+1<l&&(S=S.redMul(_)),x=B,E=I,T=F}return this.curve.jpoint(x,T.redMul(y),E)},o.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},o.prototype._zeroDbl=function(){var l,d,h;if(this.zOne){var m=this.x.redSqr(),y=this.y.redSqr(),x=y.redSqr(),M=this.x.redAdd(y).redSqr().redISub(m).redISub(x);M=M.redIAdd(M);var E=m.redAdd(m).redIAdd(m),S=E.redSqr().redISub(M).redISub(M),T=x.redIAdd(x);T=T.redIAdd(T),T=T.redIAdd(T),l=S,d=E.redMul(M.redISub(S)).redISub(T),h=this.y.redAdd(this.y)}else{var D=this.x.redSqr(),k=this.y.redSqr(),_=k.redSqr(),L=this.x.redAdd(k).redSqr().redISub(D).redISub(_);L=L.redIAdd(L);var O=D.redAdd(D).redIAdd(D),B=O.redSqr(),z=_.redIAdd(_);z=z.redIAdd(z),z=z.redIAdd(z),l=B.redISub(L).redISub(L),d=O.redMul(L.redISub(l)).redISub(z),h=this.y.redMul(this.z),h=h.redIAdd(h)}return this.curve.jpoint(l,d,h)},o.prototype._threeDbl=function(){var l,d,h;if(this.zOne){var m=this.x.redSqr(),y=this.y.redSqr(),x=y.redSqr(),M=this.x.redAdd(y).redSqr().redISub(m).redISub(x);M=M.redIAdd(M);var E=m.redAdd(m).redIAdd(m).redIAdd(this.curve.a),S=E.redSqr().redISub(M).redISub(M);l=S;var T=x.redIAdd(x);T=T.redIAdd(T),T=T.redIAdd(T),d=E.redMul(M.redISub(S)).redISub(T),h=this.y.redAdd(this.y)}else{var D=this.z.redSqr(),k=this.y.redSqr(),_=this.x.redMul(k),L=this.x.redSub(D).redMul(this.x.redAdd(D));L=L.redAdd(L).redIAdd(L);var O=_.redIAdd(_);O=O.redIAdd(O);var B=O.redAdd(O);l=L.redSqr().redISub(B),h=this.y.redAdd(this.z).redSqr().redISub(k).redISub(D);var z=k.redSqr();z=z.redIAdd(z),z=z.redIAdd(z),z=z.redIAdd(z),d=L.redMul(O.redISub(l)).redISub(z)}return this.curve.jpoint(l,d,h)},o.prototype._dbl=function(){var l=this.curve.a,d=this.x,h=this.y,m=this.z,y=m.redSqr().redSqr(),x=d.redSqr(),M=h.redSqr(),E=x.redAdd(x).redIAdd(x).redIAdd(l.redMul(y)),S=d.redAdd(d);S=S.redIAdd(S);var T=S.redMul(M),D=E.redSqr().redISub(T.redAdd(T)),k=T.redISub(D),_=M.redSqr();_=_.redIAdd(_),_=_.redIAdd(_),_=_.redIAdd(_);var L=E.redMul(k).redISub(_),O=h.redAdd(h).redMul(m);return this.curve.jpoint(D,L,O)},o.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var l=this.x.redSqr(),d=this.y.redSqr(),h=this.z.redSqr(),m=d.redSqr(),y=l.redAdd(l).redIAdd(l),x=y.redSqr(),M=this.x.redAdd(d).redSqr().redISub(l).redISub(m);M=M.redIAdd(M),M=M.redAdd(M).redIAdd(M),M=M.redISub(x);var E=M.redSqr(),S=m.redIAdd(m);S=S.redIAdd(S),S=S.redIAdd(S),S=S.redIAdd(S);var T=y.redIAdd(M).redSqr().redISub(x).redISub(E).redISub(S),D=d.redMul(T);D=D.redIAdd(D),D=D.redIAdd(D);var k=this.x.redMul(E).redISub(D);k=k.redIAdd(k),k=k.redIAdd(k);var _=this.y.redMul(T.redMul(S.redISub(T)).redISub(M.redMul(E)));_=_.redIAdd(_),_=_.redIAdd(_),_=_.redIAdd(_);var L=this.z.redAdd(M).redSqr().redISub(h).redISub(E);return this.curve.jpoint(k,_,L)},o.prototype.mul=function(l,d){return l=new e(l,d),this.curve._wnafMul(this,l)},o.prototype.eq=function(l){if(l.type==="affine")return this.eq(l.toJ());if(this===l)return!0;var d=this.z.redSqr(),h=l.z.redSqr();if(this.x.redMul(h).redISub(l.x.redMul(d)).cmpn(0)!==0)return!1;var m=d.redMul(this.z),y=h.redMul(l.z);return this.y.redMul(y).redISub(l.y.redMul(m)).cmpn(0)===0},o.prototype.eqXToP=function(l){var d=this.z.redSqr(),h=l.toRed(this.curve.red).redMul(d);if(this.x.cmp(h)===0)return!0;for(var m=l.clone(),y=this.curve.redN.redMul(d);;){if(m.iadd(this.curve.n),m.cmp(this.curve.p)>=0)return!1;if(h.redIAdd(y),this.x.cmp(h)===0)return!0}},o.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},o.prototype.isInfinity=function(){return this.z.cmpn(0)===0},Hj}var qj,dse;function bYe(){if(dse)return qj;dse=1;var t=If(),e=Ar(),r=ZN(),n=ic();function a(s){r.call(this,"mont",s),this.a=new t(s.a,16).toRed(this.red),this.b=new t(s.b,16).toRed(this.red),this.i4=new t(4).toRed(this.red).redInvm(),this.two=new t(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}e(a,r),qj=a,a.prototype.validate=function(o){var c=o.normalize().x,l=c.redSqr(),d=l.redMul(c).redAdd(l.redMul(this.a)).redAdd(c),h=d.redSqrt();return h.redSqr().cmp(d)===0};function i(s,o,c){r.BasePoint.call(this,s,"projective"),o===null&&c===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new t(o,16),this.z=new t(c,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}return e(i,r.BasePoint),a.prototype.decodePoint=function(o,c){return this.point(n.toArray(o,c),1)},a.prototype.point=function(o,c){return new i(this,o,c)},a.prototype.pointFromJSON=function(o){return i.fromJSON(this,o)},i.prototype.precompute=function(){},i.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},i.fromJSON=function(o,c){return new i(o,c[0],c[1]||o.one)},i.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},i.prototype.isInfinity=function(){return this.z.cmpn(0)===0},i.prototype.dbl=function(){var o=this.x.redAdd(this.z),c=o.redSqr(),l=this.x.redSub(this.z),d=l.redSqr(),h=c.redSub(d),m=c.redMul(d),y=h.redMul(d.redAdd(this.curve.a24.redMul(h)));return this.curve.point(m,y)},i.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},i.prototype.diffAdd=function(o,c){var l=this.x.redAdd(this.z),d=this.x.redSub(this.z),h=o.x.redAdd(o.z),m=o.x.redSub(o.z),y=m.redMul(l),x=h.redMul(d),M=c.z.redMul(y.redAdd(x).redSqr()),E=c.x.redMul(y.redISub(x).redSqr());return this.curve.point(M,E)},i.prototype.mul=function(o){for(var c=o.clone(),l=this,d=this.curve.point(null,null),h=this,m=[];c.cmpn(0)!==0;c.iushrn(1))m.push(c.andln(1));for(var y=m.length-1;y>=0;y--)m[y]===0?(l=l.diffAdd(d,h),d=d.dbl()):(d=l.diffAdd(d,h),l=l.dbl());return d},i.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},i.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},i.prototype.eq=function(o){return this.getX().cmp(o.getX())===0},i.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},i.prototype.getX=function(){return this.normalize(),this.x.fromRed()},qj}var Gj,fse;function gYe(){if(fse)return Gj;fse=1;var t=ic(),e=If(),r=Ar(),n=ZN(),a=t.assert;function i(o){this.twisted=(o.a|0)!==1,this.mOneA=this.twisted&&(o.a|0)===-1,this.extended=this.mOneA,n.call(this,"edwards",o),this.a=new e(o.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new e(o.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new e(o.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),a(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(o.c|0)===1}r(i,n),Gj=i,i.prototype._mulA=function(c){return this.mOneA?c.redNeg():this.a.redMul(c)},i.prototype._mulC=function(c){return this.oneC?c:this.c.redMul(c)},i.prototype.jpoint=function(c,l,d,h){return this.point(c,l,d,h)},i.prototype.pointFromX=function(c,l){c=new e(c,16),c.red||(c=c.toRed(this.red));var d=c.redSqr(),h=this.c2.redSub(this.a.redMul(d)),m=this.one.redSub(this.c2.redMul(this.d).redMul(d)),y=h.redMul(m.redInvm()),x=y.redSqrt();if(x.redSqr().redSub(y).cmp(this.zero)!==0)throw new Error("invalid point");var M=x.fromRed().isOdd();return(l&&!M||!l&&M)&&(x=x.redNeg()),this.point(c,x)},i.prototype.pointFromY=function(c,l){c=new e(c,16),c.red||(c=c.toRed(this.red));var d=c.redSqr(),h=d.redSub(this.c2),m=d.redMul(this.d).redMul(this.c2).redSub(this.a),y=h.redMul(m.redInvm());if(y.cmp(this.zero)===0){if(l)throw new Error("invalid point");return this.point(this.zero,c)}var x=y.redSqrt();if(x.redSqr().redSub(y).cmp(this.zero)!==0)throw new Error("invalid point");return x.fromRed().isOdd()!==l&&(x=x.redNeg()),this.point(x,c)},i.prototype.validate=function(c){if(c.isInfinity())return!0;c.normalize();var l=c.x.redSqr(),d=c.y.redSqr(),h=l.redMul(this.a).redAdd(d),m=this.c2.redMul(this.one.redAdd(this.d.redMul(l).redMul(d)));return h.cmp(m)===0};function s(o,c,l,d,h){n.BasePoint.call(this,o,"projective"),c===null&&l===null&&d===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new e(c,16),this.y=new e(l,16),this.z=d?new e(d,16):this.curve.one,this.t=h&&new e(h,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}return r(s,n.BasePoint),i.prototype.pointFromJSON=function(c){return s.fromJSON(this,c)},i.prototype.point=function(c,l,d,h){return new s(this,c,l,d,h)},s.fromJSON=function(c,l){return new s(c,l[0],l[1],l[2])},s.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},s.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},s.prototype._extDbl=function(){var c=this.x.redSqr(),l=this.y.redSqr(),d=this.z.redSqr();d=d.redIAdd(d);var h=this.curve._mulA(c),m=this.x.redAdd(this.y).redSqr().redISub(c).redISub(l),y=h.redAdd(l),x=y.redSub(d),M=h.redSub(l),E=m.redMul(x),S=y.redMul(M),T=m.redMul(M),D=x.redMul(y);return this.curve.point(E,S,D,T)},s.prototype._projDbl=function(){var c=this.x.redAdd(this.y).redSqr(),l=this.x.redSqr(),d=this.y.redSqr(),h,m,y,x,M,E;if(this.curve.twisted){x=this.curve._mulA(l);var S=x.redAdd(d);this.zOne?(h=c.redSub(l).redSub(d).redMul(S.redSub(this.curve.two)),m=S.redMul(x.redSub(d)),y=S.redSqr().redSub(S).redSub(S)):(M=this.z.redSqr(),E=S.redSub(M).redISub(M),h=c.redSub(l).redISub(d).redMul(E),m=S.redMul(x.redSub(d)),y=S.redMul(E))}else x=l.redAdd(d),M=this.curve._mulC(this.z).redSqr(),E=x.redSub(M).redSub(M),h=this.curve._mulC(c.redISub(x)).redMul(E),m=this.curve._mulC(x).redMul(l.redISub(d)),y=x.redMul(E);return this.curve.point(h,m,y)},s.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},s.prototype._extAdd=function(c){var l=this.y.redSub(this.x).redMul(c.y.redSub(c.x)),d=this.y.redAdd(this.x).redMul(c.y.redAdd(c.x)),h=this.t.redMul(this.curve.dd).redMul(c.t),m=this.z.redMul(c.z.redAdd(c.z)),y=d.redSub(l),x=m.redSub(h),M=m.redAdd(h),E=d.redAdd(l),S=y.redMul(x),T=M.redMul(E),D=y.redMul(E),k=x.redMul(M);return this.curve.point(S,T,k,D)},s.prototype._projAdd=function(c){var l=this.z.redMul(c.z),d=l.redSqr(),h=this.x.redMul(c.x),m=this.y.redMul(c.y),y=this.curve.d.redMul(h).redMul(m),x=d.redSub(y),M=d.redAdd(y),E=this.x.redAdd(this.y).redMul(c.x.redAdd(c.y)).redISub(h).redISub(m),S=l.redMul(x).redMul(E),T,D;return this.curve.twisted?(T=l.redMul(M).redMul(m.redSub(this.curve._mulA(h))),D=x.redMul(M)):(T=l.redMul(M).redMul(m.redSub(h)),D=this.curve._mulC(x).redMul(M)),this.curve.point(S,T,D)},s.prototype.add=function(c){return this.isInfinity()?c:c.isInfinity()?this:this.curve.extended?this._extAdd(c):this._projAdd(c)},s.prototype.mul=function(c){return this._hasDoubles(c)?this.curve._fixedNafMul(this,c):this.curve._wnafMul(this,c)},s.prototype.mulAdd=function(c,l,d){return this.curve._wnafMulAdd(1,[this,l],[c,d],2,!1)},s.prototype.jmulAdd=function(c,l,d){return this.curve._wnafMulAdd(1,[this,l],[c,d],2,!0)},s.prototype.normalize=function(){if(this.zOne)return this;var c=this.z.redInvm();return this.x=this.x.redMul(c),this.y=this.y.redMul(c),this.t&&(this.t=this.t.redMul(c)),this.z=this.curve.one,this.zOne=!0,this},s.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},s.prototype.getX=function(){return this.normalize(),this.x.fromRed()},s.prototype.getY=function(){return this.normalize(),this.y.fromRed()},s.prototype.eq=function(c){return this===c||this.getX().cmp(c.getX())===0&&this.getY().cmp(c.getY())===0},s.prototype.eqXToP=function(c){var l=c.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(l)===0)return!0;for(var d=c.clone(),h=this.curve.redN.redMul(this.z);;){if(d.iadd(this.curve.n),d.cmp(this.curve.p)>=0)return!1;if(l.redIAdd(h),this.x.cmp(l)===0)return!0}},s.prototype.toP=s.prototype.normalize,s.prototype.mixedAdd=s.prototype.add,Gj}var pse;function Obe(){return pse||(pse=1,function(t){var e=t;e.base=ZN(),e.short=mYe(),e.mont=bYe(),e.edwards=gYe()}(Vj)),Vj}var Yj={},Kj={},Yn={},hse;function bu(){if(hse)return Yn;hse=1;var t=ac(),e=Ar();Yn.inherits=e;function r(u,f){return(u.charCodeAt(f)&64512)!==55296||f<0||f+1>=u.length?!1:(u.charCodeAt(f+1)&64512)===56320}function n(u,f){if(Array.isArray(u))return u.slice();if(!u)return[];var b=[];if(typeof u=="string")if(f){if(f==="hex")for(u=u.replace(/[^a-z0-9]+/ig,""),u.length%2!==0&&(u="0"+u),v=0;v<u.length;v+=2)b.push(parseInt(u[v]+u[v+1],16))}else for(var g=0,v=0;v<u.length;v++){var A=u.charCodeAt(v);A<128?b[g++]=A:A<2048?(b[g++]=A>>6|192,b[g++]=A&63|128):r(u,v)?(A=65536+((A&1023)<<10)+(u.charCodeAt(++v)&1023),b[g++]=A>>18|240,b[g++]=A>>12&63|128,b[g++]=A>>6&63|128,b[g++]=A&63|128):(b[g++]=A>>12|224,b[g++]=A>>6&63|128,b[g++]=A&63|128)}else for(v=0;v<u.length;v++)b[v]=u[v]|0;return b}Yn.toArray=n;function a(u){for(var f="",b=0;b<u.length;b++)f+=o(u[b].toString(16));return f}Yn.toHex=a;function i(u){var f=u>>>24|u>>>8&65280|u<<8&16711680|(u&255)<<24;return f>>>0}Yn.htonl=i;function s(u,f){for(var b="",g=0;g<u.length;g++){var v=u[g];f==="little"&&(v=i(v)),b+=c(v.toString(16))}return b}Yn.toHex32=s;function o(u){return u.length===1?"0"+u:u}Yn.zero2=o;function c(u){return u.length===7?"0"+u:u.length===6?"00"+u:u.length===5?"000"+u:u.length===4?"0000"+u:u.length===3?"00000"+u:u.length===2?"000000"+u:u.length===1?"0000000"+u:u}Yn.zero8=c;function l(u,f,b,g){var v=b-f;t(v%4===0);for(var A=new Array(v/4),N=0,w=f;N<A.length;N++,w+=4){var p;g==="big"?p=u[w]<<24|u[w+1]<<16|u[w+2]<<8|u[w+3]:p=u[w+3]<<24|u[w+2]<<16|u[w+1]<<8|u[w],A[N]=p>>>0}return A}Yn.join32=l;function d(u,f){for(var b=new Array(u.length*4),g=0,v=0;g<u.length;g++,v+=4){var A=u[g];f==="big"?(b[v]=A>>>24,b[v+1]=A>>>16&255,b[v+2]=A>>>8&255,b[v+3]=A&255):(b[v+3]=A>>>24,b[v+2]=A>>>16&255,b[v+1]=A>>>8&255,b[v]=A&255)}return b}Yn.split32=d;function h(u,f){return u>>>f|u<<32-f}Yn.rotr32=h;function m(u,f){return u<<f|u>>>32-f}Yn.rotl32=m;function y(u,f){return u+f>>>0}Yn.sum32=y;function x(u,f,b){return u+f+b>>>0}Yn.sum32_3=x;function M(u,f,b,g){return u+f+b+g>>>0}Yn.sum32_4=M;function E(u,f,b,g,v){return u+f+b+g+v>>>0}Yn.sum32_5=E;function S(u,f,b,g){var v=u[f],A=u[f+1],N=g+A>>>0,w=(N<g?1:0)+b+v;u[f]=w>>>0,u[f+1]=N}Yn.sum64=S;function T(u,f,b,g){var v=f+g>>>0,A=(v<f?1:0)+u+b;return A>>>0}Yn.sum64_hi=T;function D(u,f,b,g){var v=f+g;return v>>>0}Yn.sum64_lo=D;function k(u,f,b,g,v,A,N,w){var p=0,C=f;C=C+g>>>0,p+=C<f?1:0,C=C+A>>>0,p+=C<A?1:0,C=C+w>>>0,p+=C<w?1:0;var P=u+b+v+N+p;return P>>>0}Yn.sum64_4_hi=k;function _(u,f,b,g,v,A,N,w){var p=f+g+A+w;return p>>>0}Yn.sum64_4_lo=_;function L(u,f,b,g,v,A,N,w,p,C){var P=0,R=f;R=R+g>>>0,P+=R<f?1:0,R=R+A>>>0,P+=R<A?1:0,R=R+w>>>0,P+=R<w?1:0,R=R+C>>>0,P+=R<C?1:0;var $=u+b+v+N+p+P;return $>>>0}Yn.sum64_5_hi=L;function O(u,f,b,g,v,A,N,w,p,C){var P=f+g+A+w+C;return P>>>0}Yn.sum64_5_lo=O;function B(u,f,b){var g=f<<32-b|u>>>b;return g>>>0}Yn.rotr64_hi=B;function z(u,f,b){var g=u<<32-b|f>>>b;return g>>>0}Yn.rotr64_lo=z;function F(u,f,b){return u>>>b}Yn.shr64_hi=F;function I(u,f,b){var g=u<<32-b|f>>>b;return g>>>0}return Yn.shr64_lo=I,Yn}var Zj={},mse;function pM(){if(mse)return Zj;mse=1;var t=bu(),e=ac();function r(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}return Zj.BlockHash=r,r.prototype.update=function(a,i){if(a=t.toArray(a,i),this.pending?this.pending=this.pending.concat(a):this.pending=a,this.pendingTotal+=a.length,this.pending.length>=this._delta8){a=this.pending;var s=a.length%this._delta8;this.pending=a.slice(a.length-s,a.length),this.pending.length===0&&(this.pending=null),a=t.join32(a,0,a.length-s,this.endian);for(var o=0;o<a.length;o+=this._delta32)this._update(a,o,o+this._delta32)}return this},r.prototype.digest=function(a){return this.update(this._pad()),e(this.pending===null),this._digest(a)},r.prototype._pad=function(){var a=this.pendingTotal,i=this._delta8,s=i-(a+this.padLength)%i,o=new Array(s+this.padLength);o[0]=128;for(var c=1;c<s;c++)o[c]=0;if(a<<=3,this.endian==="big"){for(var l=8;l<this.padLength;l++)o[c++]=0;o[c++]=0,o[c++]=0,o[c++]=0,o[c++]=0,o[c++]=a>>>24&255,o[c++]=a>>>16&255,o[c++]=a>>>8&255,o[c++]=a&255}else for(o[c++]=a&255,o[c++]=a>>>8&255,o[c++]=a>>>16&255,o[c++]=a>>>24&255,o[c++]=0,o[c++]=0,o[c++]=0,o[c++]=0,l=8;l<this.padLength;l++)o[c++]=0;return o},Zj}var C5={},Zc={},bse;function Rbe(){if(bse)return Zc;bse=1;var t=bu(),e=t.rotr32;function r(d,h,m,y){if(d===0)return n(h,m,y);if(d===1||d===3)return i(h,m,y);if(d===2)return a(h,m,y)}Zc.ft_1=r;function n(d,h,m){return d&h^~d&m}Zc.ch32=n;function a(d,h,m){return d&h^d&m^h&m}Zc.maj32=a;function i(d,h,m){return d^h^m}Zc.p32=i;function s(d){return e(d,2)^e(d,13)^e(d,22)}Zc.s0_256=s;function o(d){return e(d,6)^e(d,11)^e(d,25)}Zc.s1_256=o;function c(d){return e(d,7)^e(d,18)^d>>>3}Zc.g0_256=c;function l(d){return e(d,17)^e(d,19)^d>>>10}return Zc.g1_256=l,Zc}var Qj,gse;function yYe(){if(gse)return Qj;gse=1;var t=bu(),e=pM(),r=Rbe(),n=t.rotl32,a=t.sum32,i=t.sum32_5,s=r.ft_1,o=e.BlockHash,c=[1518500249,1859775393,2400959708,3395469782];function l(){if(!(this instanceof l))return new l;o.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}return t.inherits(l,o),Qj=l,l.blockSize=512,l.outSize=160,l.hmacStrength=80,l.padLength=64,l.prototype._update=function(h,m){for(var y=this.W,x=0;x<16;x++)y[x]=h[m+x];for(;x<y.length;x++)y[x]=n(y[x-3]^y[x-8]^y[x-14]^y[x-16],1);var M=this.h[0],E=this.h[1],S=this.h[2],T=this.h[3],D=this.h[4];for(x=0;x<y.length;x++){var k=~~(x/20),_=i(n(M,5),s(k,E,S,T),D,y[x],c[k]);D=T,T=S,S=n(E,30),E=M,M=_}this.h[0]=a(this.h[0],M),this.h[1]=a(this.h[1],E),this.h[2]=a(this.h[2],S),this.h[3]=a(this.h[3],T),this.h[4]=a(this.h[4],D)},l.prototype._digest=function(h){return h==="hex"?t.toHex32(this.h,"big"):t.split32(this.h,"big")},Qj}var Jj,yse;function Fbe(){if(yse)return Jj;yse=1;var t=bu(),e=pM(),r=Rbe(),n=ac(),a=t.sum32,i=t.sum32_4,s=t.sum32_5,o=r.ch32,c=r.maj32,l=r.s0_256,d=r.s1_256,h=r.g0_256,m=r.g1_256,y=e.BlockHash,x=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function M(){if(!(this instanceof M))return new M;y.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=x,this.W=new Array(64)}return t.inherits(M,y),Jj=M,M.blockSize=512,M.outSize=256,M.hmacStrength=192,M.padLength=64,M.prototype._update=function(S,T){for(var D=this.W,k=0;k<16;k++)D[k]=S[T+k];for(;k<D.length;k++)D[k]=i(m(D[k-2]),D[k-7],h(D[k-15]),D[k-16]);var _=this.h[0],L=this.h[1],O=this.h[2],B=this.h[3],z=this.h[4],F=this.h[5],I=this.h[6],u=this.h[7];for(n(this.k.length===D.length),k=0;k<D.length;k++){var f=s(u,d(z),o(z,F,I),this.k[k],D[k]),b=a(l(_),c(_,L,O));u=I,I=F,F=z,z=a(B,f),B=O,O=L,L=_,_=a(f,b)}this.h[0]=a(this.h[0],_),this.h[1]=a(this.h[1],L),this.h[2]=a(this.h[2],O),this.h[3]=a(this.h[3],B),this.h[4]=a(this.h[4],z),this.h[5]=a(this.h[5],F),this.h[6]=a(this.h[6],I),this.h[7]=a(this.h[7],u)},M.prototype._digest=function(S){return S==="hex"?t.toHex32(this.h,"big"):t.split32(this.h,"big")},Jj}var Xj,vse;function vYe(){if(vse)return Xj;vse=1;var t=bu(),e=Fbe();function r(){if(!(this instanceof r))return new r;e.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}return t.inherits(r,e),Xj=r,r.blockSize=512,r.outSize=224,r.hmacStrength=192,r.padLength=64,r.prototype._digest=function(a){return a==="hex"?t.toHex32(this.h.slice(0,7),"big"):t.split32(this.h.slice(0,7),"big")},Xj}var ez,xse;function Ube(){if(xse)return ez;xse=1;var t=bu(),e=pM(),r=ac(),n=t.rotr64_hi,a=t.rotr64_lo,i=t.shr64_hi,s=t.shr64_lo,o=t.sum64,c=t.sum64_hi,l=t.sum64_lo,d=t.sum64_4_hi,h=t.sum64_4_lo,m=t.sum64_5_hi,y=t.sum64_5_lo,x=e.BlockHash,M=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function E(){if(!(this instanceof E))return new E;x.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=M,this.W=new Array(160)}t.inherits(E,x),ez=E,E.blockSize=1024,E.outSize=512,E.hmacStrength=192,E.padLength=128,E.prototype._prepareBlock=function(b,g){for(var v=this.W,A=0;A<32;A++)v[A]=b[g+A];for(;A<v.length;A+=2){var N=I(v[A-4],v[A-3]),w=u(v[A-4],v[A-3]),p=v[A-14],C=v[A-13],P=z(v[A-30],v[A-29]),R=F(v[A-30],v[A-29]),$=v[A-32],Y=v[A-31];v[A]=d(N,w,p,C,P,R,$,Y),v[A+1]=h(N,w,p,C,P,R,$,Y)}},E.prototype._update=function(b,g){this._prepareBlock(b,g);var v=this.W,A=this.h[0],N=this.h[1],w=this.h[2],p=this.h[3],C=this.h[4],P=this.h[5],R=this.h[6],$=this.h[7],Y=this.h[8],V=this.h[9],U=this.h[10],G=this.h[11],Q=this.h[12],re=this.h[13],q=this.h[14],H=this.h[15];r(this.k.length===v.length);for(var Z=0;Z<v.length;Z+=2){var ae=q,de=H,ye=O(Y,V),je=B(Y,V),we=S(Y,V,U,G,Q),ve=T(Y,V,U,G,Q,re),qe=this.k[Z],Me=this.k[Z+1],ue=v[Z],ke=v[Z+1],te=m(ae,de,ye,je,we,ve,qe,Me,ue,ke),me=y(ae,de,ye,je,we,ve,qe,Me,ue,ke);ae=_(A,N),de=L(A,N),ye=D(A,N,w,p,C),je=k(A,N,w,p,C,P);var We=c(ae,de,ye,je),X=l(ae,de,ye,je);q=Q,H=re,Q=U,re=G,U=Y,G=V,Y=c(R,$,te,me),V=l($,$,te,me),R=C,$=P,C=w,P=p,w=A,p=N,A=c(te,me,We,X),N=l(te,me,We,X)}o(this.h,0,A,N),o(this.h,2,w,p),o(this.h,4,C,P),o(this.h,6,R,$),o(this.h,8,Y,V),o(this.h,10,U,G),o(this.h,12,Q,re),o(this.h,14,q,H)},E.prototype._digest=function(b){return b==="hex"?t.toHex32(this.h,"big"):t.split32(this.h,"big")};function S(f,b,g,v,A){var N=f&g^~f&A;return N<0&&(N+=4294967296),N}function T(f,b,g,v,A,N){var w=b&v^~b&N;return w<0&&(w+=4294967296),w}function D(f,b,g,v,A){var N=f&g^f&A^g&A;return N<0&&(N+=4294967296),N}function k(f,b,g,v,A,N){var w=b&v^b&N^v&N;return w<0&&(w+=4294967296),w}function _(f,b){var g=n(f,b,28),v=n(b,f,2),A=n(b,f,7),N=g^v^A;return N<0&&(N+=4294967296),N}function L(f,b){var g=a(f,b,28),v=a(b,f,2),A=a(b,f,7),N=g^v^A;return N<0&&(N+=4294967296),N}function O(f,b){var g=n(f,b,14),v=n(f,b,18),A=n(b,f,9),N=g^v^A;return N<0&&(N+=4294967296),N}function B(f,b){var g=a(f,b,14),v=a(f,b,18),A=a(b,f,9),N=g^v^A;return N<0&&(N+=4294967296),N}function z(f,b){var g=n(f,b,1),v=n(f,b,8),A=i(f,b,7),N=g^v^A;return N<0&&(N+=4294967296),N}function F(f,b){var g=a(f,b,1),v=a(f,b,8),A=s(f,b,7),N=g^v^A;return N<0&&(N+=4294967296),N}function I(f,b){var g=n(f,b,19),v=n(b,f,29),A=i(f,b,6),N=g^v^A;return N<0&&(N+=4294967296),N}function u(f,b){var g=a(f,b,19),v=a(b,f,29),A=s(f,b,6),N=g^v^A;return N<0&&(N+=4294967296),N}return ez}var tz,wse;function xYe(){if(wse)return tz;wse=1;var t=bu(),e=Ube();function r(){if(!(this instanceof r))return new r;e.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}return t.inherits(r,e),tz=r,r.blockSize=1024,r.outSize=384,r.hmacStrength=192,r.padLength=128,r.prototype._digest=function(a){return a==="hex"?t.toHex32(this.h.slice(0,12),"big"):t.split32(this.h.slice(0,12),"big")},tz}var Mse;function wYe(){return Mse||(Mse=1,C5.sha1=yYe(),C5.sha224=vYe(),C5.sha256=Fbe(),C5.sha384=xYe(),C5.sha512=Ube()),C5}var rz={},Ase;function MYe(){if(Ase)return rz;Ase=1;var t=bu(),e=pM(),r=t.rotl32,n=t.sum32,a=t.sum32_3,i=t.sum32_4,s=e.BlockHash;function o(){if(!(this instanceof o))return new o;s.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}t.inherits(o,s),rz.ripemd160=o,o.blockSize=512,o.outSize=160,o.hmacStrength=192,o.padLength=64,o.prototype._update=function(E,S){for(var T=this.h[0],D=this.h[1],k=this.h[2],_=this.h[3],L=this.h[4],O=T,B=D,z=k,F=_,I=L,u=0;u<80;u++){var f=n(r(i(T,c(u,D,k,_),E[h[u]+S],l(u)),y[u]),L);T=L,L=_,_=r(k,10),k=D,D=f,f=n(r(i(O,c(79-u,B,z,F),E[m[u]+S],d(u)),x[u]),I),O=I,I=F,F=r(z,10),z=B,B=f}f=a(this.h[1],k,F),this.h[1]=a(this.h[2],_,I),this.h[2]=a(this.h[3],L,O),this.h[3]=a(this.h[4],T,B),this.h[4]=a(this.h[0],D,z),this.h[0]=f},o.prototype._digest=function(E){return E==="hex"?t.toHex32(this.h,"little"):t.split32(this.h,"little")};function c(M,E,S,T){return M<=15?E^S^T:M<=31?E&S|~E&T:M<=47?(E|~S)^T:M<=63?E&T|S&~T:E^(S|~T)}function l(M){return M<=15?0:M<=31?1518500249:M<=47?1859775393:M<=63?2400959708:2840853838}function d(M){return M<=15?1352829926:M<=31?1548603684:M<=47?1836072691:M<=63?2053994217:0}var h=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],m=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],y=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],x=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];return rz}var nz,Sse;function AYe(){if(Sse)return nz;Sse=1;var t=bu(),e=ac();function r(n,a,i){if(!(this instanceof r))return new r(n,a,i);this.Hash=n,this.blockSize=n.blockSize/8,this.outSize=n.outSize/8,this.inner=null,this.outer=null,this._init(t.toArray(a,i))}return nz=r,r.prototype._init=function(a){a.length>this.blockSize&&(a=new this.Hash().update(a).digest()),e(a.length<=this.blockSize);for(var i=a.length;i<this.blockSize;i++)a.push(0);for(i=0;i<a.length;i++)a[i]^=54;for(this.inner=new this.Hash().update(a),i=0;i<a.length;i++)a[i]^=106;this.outer=new this.Hash().update(a)},r.prototype.update=function(a,i){return this.inner.update(a,i),this},r.prototype.digest=function(a){return this.outer.update(this.inner.digest()),this.outer.digest(a)},nz}var Ese;function zq(){return Ese||(Ese=1,function(t){var e=t;e.utils=bu(),e.common=pM(),e.sha=wYe(),e.ripemd=MYe(),e.hmac=AYe(),e.sha1=e.sha.sha1,e.sha256=e.sha.sha256,e.sha224=e.sha.sha224,e.sha384=e.sha.sha384,e.sha512=e.sha.sha512,e.ripemd160=e.ripemd.ripemd160}(Kj)),Kj}var az,Cse;function SYe(){return Cse||(Cse=1,az={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}),az}var Tse;function Pq(){return Tse||(Tse=1,function(t){var e=t,r=zq(),n=Obe(),a=ic(),i=a.assert;function s(l){l.type==="short"?this.curve=new n.short(l):l.type==="edwards"?this.curve=new n.edwards(l):this.curve=new n.mont(l),this.g=this.curve.g,this.n=this.curve.n,this.hash=l.hash,i(this.g.validate(),"Invalid curve"),i(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}e.PresetCurve=s;function o(l,d){Object.defineProperty(e,l,{configurable:!0,enumerable:!0,get:function(){var h=new s(d);return Object.defineProperty(e,l,{configurable:!0,enumerable:!0,value:h}),h}})}o("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:r.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),o("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:r.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),o("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:r.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),o("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:r.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),o("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:r.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),o("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:r.sha256,gRed:!1,g:["9"]}),o("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:r.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var c;try{c=SYe()}catch{c=void 0}o("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:r.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",c]})}(Yj)),Yj}var iz,Ise;function EYe(){if(Ise)return iz;Ise=1;var t=zq(),e=Pbe(),r=ac();function n(a){if(!(this instanceof n))return new n(a);this.hash=a.hash,this.predResist=!!a.predResist,this.outLen=this.hash.outSize,this.minEntropy=a.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var i=e.toArray(a.entropy,a.entropyEnc||"hex"),s=e.toArray(a.nonce,a.nonceEnc||"hex"),o=e.toArray(a.pers,a.persEnc||"hex");r(i.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(i,s,o)}return iz=n,n.prototype._init=function(i,s,o){var c=i.concat(s).concat(o);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var l=0;l<this.V.length;l++)this.K[l]=0,this.V[l]=1;this._update(c),this._reseed=1,this.reseedInterval=281474976710656},n.prototype._hmac=function(){return new t.hmac(this.hash,this.K)},n.prototype._update=function(i){var s=this._hmac().update(this.V).update([0]);i&&(s=s.update(i)),this.K=s.digest(),this.V=this._hmac().update(this.V).digest(),i&&(this.K=this._hmac().update(this.V).update([1]).update(i).digest(),this.V=this._hmac().update(this.V).digest())},n.prototype.reseed=function(i,s,o,c){typeof s!="string"&&(c=o,o=s,s=null),i=e.toArray(i,s),o=e.toArray(o,c),r(i.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(i.concat(o||[])),this._reseed=1},n.prototype.generate=function(i,s,o,c){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof s!="string"&&(c=o,o=s,s=null),o&&(o=e.toArray(o,c||"hex"),this._update(o));for(var l=[];l.length<i;)this.V=this._hmac().update(this.V).digest(),l=l.concat(this.V);var d=l.slice(0,i);return this._update(o),this._reseed++,e.encode(d,s)},iz}var sz,Dse;function CYe(){if(Dse)return sz;Dse=1;var t=If(),e=ic(),r=e.assert;function n(a,i){this.ec=a,this.priv=null,this.pub=null,i.priv&&this._importPrivate(i.priv,i.privEnc),i.pub&&this._importPublic(i.pub,i.pubEnc)}return sz=n,n.fromPublic=function(i,s,o){return s instanceof n?s:new n(i,{pub:s,pubEnc:o})},n.fromPrivate=function(i,s,o){return s instanceof n?s:new n(i,{priv:s,privEnc:o})},n.prototype.validate=function(){var i=this.getPublic();return i.isInfinity()?{result:!1,reason:"Invalid public key"}:i.validate()?i.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},n.prototype.getPublic=function(i,s){return typeof i=="string"&&(s=i,i=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),s?this.pub.encode(s,i):this.pub},n.prototype.getPrivate=function(i){return i==="hex"?this.priv.toString(16,2):this.priv},n.prototype._importPrivate=function(i,s){this.priv=new t(i,s||16),this.priv=this.priv.umod(this.ec.curve.n)},n.prototype._importPublic=function(i,s){if(i.x||i.y){this.ec.curve.type==="mont"?r(i.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&r(i.x&&i.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(i.x,i.y);return}this.pub=this.ec.curve.decodePoint(i,s)},n.prototype.derive=function(i){return i.validate()||r(i.validate(),"public point not validated"),i.mul(this.priv).getX()},n.prototype.sign=function(i,s,o){return this.ec.sign(i,this,s,o)},n.prototype.verify=function(i,s,o){return this.ec.verify(i,s,this,void 0,o)},n.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"},sz}var oz,Nse;function TYe(){if(Nse)return oz;Nse=1;var t=If(),e=ic(),r=e.assert;function n(c,l){if(c instanceof n)return c;this._importDER(c,l)||(r(c.r&&c.s,"Signature without r or s"),this.r=new t(c.r,16),this.s=new t(c.s,16),c.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=c.recoveryParam)}oz=n;function a(){this.place=0}function i(c,l){var d=c[l.place++];if(!(d&128))return d;var h=d&15;if(h===0||h>4||c[l.place]===0)return!1;for(var m=0,y=0,x=l.place;y<h;y++,x++)m<<=8,m|=c[x],m>>>=0;return m<=127?!1:(l.place=x,m)}function s(c){for(var l=0,d=c.length-1;!c[l]&&!(c[l+1]&128)&&l<d;)l++;return l===0?c:c.slice(l)}n.prototype._importDER=function(l,d){l=e.toArray(l,d);var h=new a;if(l[h.place++]!==48)return!1;var m=i(l,h);if(m===!1||m+h.place!==l.length||l[h.place++]!==2)return!1;var y=i(l,h);if(y===!1||l[h.place]&128)return!1;var x=l.slice(h.place,y+h.place);if(h.place+=y,l[h.place++]!==2)return!1;var M=i(l,h);if(M===!1||l.length!==M+h.place||l[h.place]&128)return!1;var E=l.slice(h.place,M+h.place);if(x[0]===0)if(x[1]&128)x=x.slice(1);else return!1;if(E[0]===0)if(E[1]&128)E=E.slice(1);else return!1;return this.r=new t(x),this.s=new t(E),this.recoveryParam=null,!0};function o(c,l){if(l<128){c.push(l);return}var d=1+(Math.log(l)/Math.LN2>>>3);for(c.push(d|128);--d;)c.push(l>>>(d<<3)&255);c.push(l)}return n.prototype.toDER=function(l){var d=this.r.toArray(),h=this.s.toArray();for(d[0]&128&&(d=[0].concat(d)),h[0]&128&&(h=[0].concat(h)),d=s(d),h=s(h);!h[0]&&!(h[1]&128);)h=h.slice(1);var m=[2];o(m,d.length),m=m.concat(d),m.push(2),o(m,h.length);var y=m.concat(h),x=[48];return o(x,y.length),x=x.concat(y),e.encode(x,l)},oz}var cz,kse;function IYe(){if(kse)return cz;kse=1;var t=If(),e=EYe(),r=ic(),n=Pq(),a=Lq(),i=r.assert,s=CYe(),o=TYe();function c(l){if(!(this instanceof c))return new c(l);typeof l=="string"&&(i(Object.prototype.hasOwnProperty.call(n,l),"Unknown curve "+l),l=n[l]),l instanceof n.PresetCurve&&(l={curve:l}),this.curve=l.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=l.curve.g,this.g.precompute(l.curve.n.bitLength()+1),this.hash=l.hash||l.curve.hash}return cz=c,c.prototype.keyPair=function(d){return new s(this,d)},c.prototype.keyFromPrivate=function(d,h){return s.fromPrivate(this,d,h)},c.prototype.keyFromPublic=function(d,h){return s.fromPublic(this,d,h)},c.prototype.genKeyPair=function(d){d||(d={});for(var h=new e({hash:this.hash,pers:d.pers,persEnc:d.persEnc||"utf8",entropy:d.entropy||a(this.hash.hmacStrength),entropyEnc:d.entropy&&d.entropyEnc||"utf8",nonce:this.n.toArray()}),m=this.n.byteLength(),y=this.n.sub(new t(2));;){var x=new t(h.generate(m));if(!(x.cmp(y)>0))return x.iaddn(1),this.keyFromPrivate(x)}},c.prototype._truncateToN=function(d,h,m){var y;if(t.isBN(d)||typeof d=="number")d=new t(d,16),y=d.byteLength();else if(typeof d=="object")y=d.length,d=new t(d,16);else{var x=d.toString();y=x.length+1>>>1,d=new t(x,16)}typeof m!="number"&&(m=y*8);var M=m-this.n.bitLength();return M>0&&(d=d.ushrn(M)),!h&&d.cmp(this.n)>=0?d.sub(this.n):d},c.prototype.sign=function(d,h,m,y){if(typeof m=="object"&&(y=m,m=null),y||(y={}),typeof d!="string"&&typeof d!="number"&&!t.isBN(d)){i(typeof d=="object"&&d&&typeof d.length=="number","Expected message to be an array-like, a hex string, or a BN instance"),i(d.length>>>0===d.length);for(var x=0;x<d.length;x++)i((d[x]&255)===d[x])}h=this.keyFromPrivate(h,m),d=this._truncateToN(d,!1,y.msgBitLength),i(!d.isNeg(),"Can not sign a negative message");var M=this.n.byteLength(),E=h.getPrivate().toArray("be",M),S=d.toArray("be",M);i(new t(S).eq(d),"Can not sign message");for(var T=new e({hash:this.hash,entropy:E,nonce:S,pers:y.pers,persEnc:y.persEnc||"utf8"}),D=this.n.sub(new t(1)),k=0;;k++){var _=y.k?y.k(k):new t(T.generate(this.n.byteLength()));if(_=this._truncateToN(_,!0),!(_.cmpn(1)<=0||_.cmp(D)>=0)){var L=this.g.mul(_);if(!L.isInfinity()){var O=L.getX(),B=O.umod(this.n);if(B.cmpn(0)!==0){var z=_.invm(this.n).mul(B.mul(h.getPrivate()).iadd(d));if(z=z.umod(this.n),z.cmpn(0)!==0){var F=(L.getY().isOdd()?1:0)|(O.cmp(B)!==0?2:0);return y.canonical&&z.cmp(this.nh)>0&&(z=this.n.sub(z),F^=1),new o({r:B,s:z,recoveryParam:F})}}}}}},c.prototype.verify=function(d,h,m,y,x){x||(x={}),d=this._truncateToN(d,!1,x.msgBitLength),m=this.keyFromPublic(m,y),h=new o(h,"hex");var M=h.r,E=h.s;if(M.cmpn(1)<0||M.cmp(this.n)>=0||E.cmpn(1)<0||E.cmp(this.n)>=0)return!1;var S=E.invm(this.n),T=S.mul(d).umod(this.n),D=S.mul(M).umod(this.n),k;return this.curve._maxwellTrick?(k=this.g.jmulAdd(T,m.getPublic(),D),k.isInfinity()?!1:k.eqXToP(M)):(k=this.g.mulAdd(T,m.getPublic(),D),k.isInfinity()?!1:k.getX().umod(this.n).cmp(M)===0)},c.prototype.recoverPubKey=function(l,d,h,m){i((3&h)===h,"The recovery param is more than two bits"),d=new o(d,m);var y=this.n,x=new t(l),M=d.r,E=d.s,S=h&1,T=h>>1;if(M.cmp(this.curve.p.umod(this.curve.n))>=0&&T)throw new Error("Unable to find sencond key candinate");T?M=this.curve.pointFromX(M.add(this.curve.n),S):M=this.curve.pointFromX(M,S);var D=d.r.invm(y),k=y.sub(x).mul(D).umod(y),_=E.mul(D).umod(y);return this.g.mulAdd(k,M,_)},c.prototype.getKeyRecoveryParam=function(l,d,h,m){if(d=new o(d,m),d.recoveryParam!==null)return d.recoveryParam;for(var y=0;y<4;y++){var x;try{x=this.recoverPubKey(l,d,y)}catch{continue}if(x.eq(h))return y}throw new Error("Unable to find valid recovery factor")},cz}var lz,_se;function DYe(){if(_se)return lz;_se=1;var t=ic(),e=t.assert,r=t.parseBytes,n=t.cachedProperty;function a(i,s){this.eddsa=i,this._secret=r(s.secret),i.isPoint(s.pub)?this._pub=s.pub:this._pubBytes=r(s.pub)}return a.fromPublic=function(s,o){return o instanceof a?o:new a(s,{pub:o})},a.fromSecret=function(s,o){return o instanceof a?o:new a(s,{secret:o})},a.prototype.secret=function(){return this._secret},n(a,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),n(a,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),n(a,"privBytes",function(){var s=this.eddsa,o=this.hash(),c=s.encodingLength-1,l=o.slice(0,s.encodingLength);return l[0]&=248,l[c]&=127,l[c]|=64,l}),n(a,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),n(a,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),n(a,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),a.prototype.sign=function(s){return e(this._secret,"KeyPair can only verify"),this.eddsa.sign(s,this)},a.prototype.verify=function(s,o){return this.eddsa.verify(s,o,this)},a.prototype.getSecret=function(s){return e(this._secret,"KeyPair is public only"),t.encode(this.secret(),s)},a.prototype.getPublic=function(s){return t.encode(this.pubBytes(),s)},lz=a,lz}var uz,Lse;function NYe(){if(Lse)return uz;Lse=1;var t=If(),e=ic(),r=e.assert,n=e.cachedProperty,a=e.parseBytes;function i(s,o){this.eddsa=s,typeof o!="object"&&(o=a(o)),Array.isArray(o)&&(r(o.length===s.encodingLength*2,"Signature has invalid size"),o={R:o.slice(0,s.encodingLength),S:o.slice(s.encodingLength)}),r(o.R&&o.S,"Signature without R or S"),s.isPoint(o.R)&&(this._R=o.R),o.S instanceof t&&(this._S=o.S),this._Rencoded=Array.isArray(o.R)?o.R:o.Rencoded,this._Sencoded=Array.isArray(o.S)?o.S:o.Sencoded}return n(i,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),n(i,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),n(i,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),n(i,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),i.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},i.prototype.toHex=function(){return e.encode(this.toBytes(),"hex").toUpperCase()},uz=i,uz}var dz,Bse;function kYe(){if(Bse)return dz;Bse=1;var t=zq(),e=Pq(),r=ic(),n=r.assert,a=r.parseBytes,i=DYe(),s=NYe();function o(c){if(n(c==="ed25519","only tested with ed25519 so far"),!(this instanceof o))return new o(c);c=e[c].curve,this.curve=c,this.g=c.g,this.g.precompute(c.n.bitLength()+1),this.pointClass=c.point().constructor,this.encodingLength=Math.ceil(c.n.bitLength()/8),this.hash=t.sha512}return dz=o,o.prototype.sign=function(l,d){l=a(l);var h=this.keyFromSecret(d),m=this.hashInt(h.messagePrefix(),l),y=this.g.mul(m),x=this.encodePoint(y),M=this.hashInt(x,h.pubBytes(),l).mul(h.priv()),E=m.add(M).umod(this.curve.n);return this.makeSignature({R:y,S:E,Rencoded:x})},o.prototype.verify=function(l,d,h){if(l=a(l),d=this.makeSignature(d),d.S().gte(d.eddsa.curve.n)||d.S().isNeg())return!1;var m=this.keyFromPublic(h),y=this.hashInt(d.Rencoded(),m.pubBytes(),l),x=this.g.mul(d.S()),M=d.R().add(m.pub().mul(y));return M.eq(x)},o.prototype.hashInt=function(){for(var l=this.hash(),d=0;d<arguments.length;d++)l.update(arguments[d]);return r.intFromLE(l.digest()).umod(this.curve.n)},o.prototype.keyFromPublic=function(l){return i.fromPublic(this,l)},o.prototype.keyFromSecret=function(l){return i.fromSecret(this,l)},o.prototype.makeSignature=function(l){return l instanceof s?l:new s(this,l)},o.prototype.encodePoint=function(l){var d=l.getY().toArray("le",this.encodingLength);return d[this.encodingLength-1]|=l.getX().isOdd()?128:0,d},o.prototype.decodePoint=function(l){l=r.parseBytes(l);var d=l.length-1,h=l.slice(0,d).concat(l[d]&-129),m=(l[d]&128)!==0,y=r.intFromLE(h);return this.curve.pointFromY(y,m)},o.prototype.encodeInt=function(l){return l.toArray("le",this.encodingLength)},o.prototype.decodeInt=function(l){return r.intFromLE(l)},o.prototype.isPoint=function(l){return l instanceof this.pointClass},dz}var jse;function Oq(){return jse||(jse=1,function(t){var e=t;e.version=hYe.version,e.utils=ic(),e.rand=Lq(),e.curve=Obe(),e.curves=Pq(),e.ec=IYe(),e.eddsa=kYe()}(Fj)),Fj}var Xo={},fz={},gC={exports:{}};gC.exports;var zse;function _Ye(){return zse||(zse=1,function(t){(function(e,r){function n(I,u){if(!I)throw new Error(u||"Assertion failed")}function a(I,u){I.super_=u;var f=function(){};f.prototype=u.prototype,I.prototype=new f,I.prototype.constructor=I}function i(I,u,f){if(i.isBN(I))return I;this.negative=0,this.words=null,this.length=0,this.red=null,I!==null&&((u==="le"||u==="be")&&(f=u,u=10),this._init(I||0,u||10,f||"be"))}typeof e=="object"?e.exports=i:r.BN=i,i.BN=i,i.wordSize=26;var s;try{typeof window<"u"&&typeof window.Buffer<"u"?s=window.Buffer:s=It.Buffer}catch{}i.isBN=function(u){return u instanceof i?!0:u!==null&&typeof u=="object"&&u.constructor.wordSize===i.wordSize&&Array.isArray(u.words)},i.max=function(u,f){return u.cmp(f)>0?u:f},i.min=function(u,f){return u.cmp(f)<0?u:f},i.prototype._init=function(u,f,b){if(typeof u=="number")return this._initNumber(u,f,b);if(typeof u=="object")return this._initArray(u,f,b);f==="hex"&&(f=16),n(f===(f|0)&&f>=2&&f<=36),u=u.toString().replace(/\s+/g,"");var g=0;u[0]==="-"&&(g++,this.negative=1),g<u.length&&(f===16?this._parseHex(u,g,b):(this._parseBase(u,f,g),b==="le"&&this._initArray(this.toArray(),f,b)))},i.prototype._initNumber=function(u,f,b){u<0&&(this.negative=1,u=-u),u<67108864?(this.words=[u&67108863],this.length=1):u<4503599627370496?(this.words=[u&67108863,u/67108864&67108863],this.length=2):(n(u<9007199254740992),this.words=[u&67108863,u/67108864&67108863,1],this.length=3),b==="le"&&this._initArray(this.toArray(),f,b)},i.prototype._initArray=function(u,f,b){if(n(typeof u.length=="number"),u.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(u.length/3),this.words=new Array(this.length);for(var g=0;g<this.length;g++)this.words[g]=0;var v,A,N=0;if(b==="be")for(g=u.length-1,v=0;g>=0;g-=3)A=u[g]|u[g-1]<<8|u[g-2]<<16,this.words[v]|=A<<N&67108863,this.words[v+1]=A>>>26-N&67108863,N+=24,N>=26&&(N-=26,v++);else if(b==="le")for(g=0,v=0;g<u.length;g+=3)A=u[g]|u[g+1]<<8|u[g+2]<<16,this.words[v]|=A<<N&67108863,this.words[v+1]=A>>>26-N&67108863,N+=24,N>=26&&(N-=26,v++);return this.strip()};function o(I,u){var f=I.charCodeAt(u);return f>=65&&f<=70?f-55:f>=97&&f<=102?f-87:f-48&15}function c(I,u,f){var b=o(I,f);return f-1>=u&&(b|=o(I,f-1)<<4),b}i.prototype._parseHex=function(u,f,b){this.length=Math.ceil((u.length-f)/6),this.words=new Array(this.length);for(var g=0;g<this.length;g++)this.words[g]=0;var v=0,A=0,N;if(b==="be")for(g=u.length-1;g>=f;g-=2)N=c(u,f,g)<<v,this.words[A]|=N&67108863,v>=18?(v-=18,A+=1,this.words[A]|=N>>>26):v+=8;else{var w=u.length-f;for(g=w%2===0?f+1:f;g<u.length;g+=2)N=c(u,f,g)<<v,this.words[A]|=N&67108863,v>=18?(v-=18,A+=1,this.words[A]|=N>>>26):v+=8}this.strip()};function l(I,u,f,b){for(var g=0,v=Math.min(I.length,f),A=u;A<v;A++){var N=I.charCodeAt(A)-48;g*=b,N>=49?g+=N-49+10:N>=17?g+=N-17+10:g+=N}return g}i.prototype._parseBase=function(u,f,b){this.words=[0],this.length=1;for(var g=0,v=1;v<=67108863;v*=f)g++;g--,v=v/f|0;for(var A=u.length-b,N=A%g,w=Math.min(A,A-N)+b,p=0,C=b;C<w;C+=g)p=l(u,C,C+g,f),this.imuln(v),this.words[0]+p<67108864?this.words[0]+=p:this._iaddn(p);if(N!==0){var P=1;for(p=l(u,C,u.length,f),C=0;C<N;C++)P*=f;this.imuln(P),this.words[0]+p<67108864?this.words[0]+=p:this._iaddn(p)}this.strip()},i.prototype.copy=function(u){u.words=new Array(this.length);for(var f=0;f<this.length;f++)u.words[f]=this.words[f];u.length=this.length,u.negative=this.negative,u.red=this.red},i.prototype.clone=function(){var u=new i(null);return this.copy(u),u},i.prototype._expand=function(u){for(;this.length<u;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],m=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(u,f){u=u||10,f=f|0||1;var b;if(u===16||u==="hex"){b="";for(var g=0,v=0,A=0;A<this.length;A++){var N=this.words[A],w=((N<<g|v)&16777215).toString(16);v=N>>>24-g&16777215,g+=2,g>=26&&(g-=26,A--),v!==0||A!==this.length-1?b=d[6-w.length]+w+b:b=w+b}for(v!==0&&(b=v.toString(16)+b);b.length%f!==0;)b="0"+b;return this.negative!==0&&(b="-"+b),b}if(u===(u|0)&&u>=2&&u<=36){var p=h[u],C=m[u];b="";var P=this.clone();for(P.negative=0;!P.isZero();){var R=P.modn(C).toString(u);P=P.idivn(C),P.isZero()?b=R+b:b=d[p-R.length]+R+b}for(this.isZero()&&(b="0"+b);b.length%f!==0;)b="0"+b;return this.negative!==0&&(b="-"+b),b}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var u=this.words[0];return this.length===2?u+=this.words[1]*67108864:this.length===3&&this.words[2]===1?u+=4503599627370496+this.words[1]*67108864:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-u:u},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(u,f){return n(typeof s<"u"),this.toArrayLike(s,u,f)},i.prototype.toArray=function(u,f){return this.toArrayLike(Array,u,f)},i.prototype.toArrayLike=function(u,f,b){var g=this.byteLength(),v=b||Math.max(1,g);n(g<=v,"byte array longer than desired length"),n(v>0,"Requested array length <= 0"),this.strip();var A=f==="le",N=new u(v),w,p,C=this.clone();if(A){for(p=0;!C.isZero();p++)w=C.andln(255),C.iushrn(8),N[p]=w;for(;p<v;p++)N[p]=0}else{for(p=0;p<v-g;p++)N[p]=0;for(p=0;!C.isZero();p++)w=C.andln(255),C.iushrn(8),N[v-p-1]=w}return N},Math.clz32?i.prototype._countBits=function(u){return 32-Math.clz32(u)}:i.prototype._countBits=function(u){var f=u,b=0;return f>=4096&&(b+=13,f>>>=13),f>=64&&(b+=7,f>>>=7),f>=8&&(b+=4,f>>>=4),f>=2&&(b+=2,f>>>=2),b+f},i.prototype._zeroBits=function(u){if(u===0)return 26;var f=u,b=0;return f&8191||(b+=13,f>>>=13),f&127||(b+=7,f>>>=7),f&15||(b+=4,f>>>=4),f&3||(b+=2,f>>>=2),f&1||b++,b},i.prototype.bitLength=function(){var u=this.words[this.length-1],f=this._countBits(u);return(this.length-1)*26+f};function y(I){for(var u=new Array(I.bitLength()),f=0;f<u.length;f++){var b=f/26|0,g=f%26;u[f]=(I.words[b]&1<<g)>>>g}return u}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var u=0,f=0;f<this.length;f++){var b=this._zeroBits(this.words[f]);if(u+=b,b!==26)break}return u},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(u){return this.negative!==0?this.abs().inotn(u).iaddn(1):this.clone()},i.prototype.fromTwos=function(u){return this.testn(u-1)?this.notn(u).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(u){for(;this.length<u.length;)this.words[this.length++]=0;for(var f=0;f<u.length;f++)this.words[f]=this.words[f]|u.words[f];return this.strip()},i.prototype.ior=function(u){return n((this.negative|u.negative)===0),this.iuor(u)},i.prototype.or=function(u){return this.length>u.length?this.clone().ior(u):u.clone().ior(this)},i.prototype.uor=function(u){return this.length>u.length?this.clone().iuor(u):u.clone().iuor(this)},i.prototype.iuand=function(u){var f;this.length>u.length?f=u:f=this;for(var b=0;b<f.length;b++)this.words[b]=this.words[b]&u.words[b];return this.length=f.length,this.strip()},i.prototype.iand=function(u){return n((this.negative|u.negative)===0),this.iuand(u)},i.prototype.and=function(u){return this.length>u.length?this.clone().iand(u):u.clone().iand(this)},i.prototype.uand=function(u){return this.length>u.length?this.clone().iuand(u):u.clone().iuand(this)},i.prototype.iuxor=function(u){var f,b;this.length>u.length?(f=this,b=u):(f=u,b=this);for(var g=0;g<b.length;g++)this.words[g]=f.words[g]^b.words[g];if(this!==f)for(;g<f.length;g++)this.words[g]=f.words[g];return this.length=f.length,this.strip()},i.prototype.ixor=function(u){return n((this.negative|u.negative)===0),this.iuxor(u)},i.prototype.xor=function(u){return this.length>u.length?this.clone().ixor(u):u.clone().ixor(this)},i.prototype.uxor=function(u){return this.length>u.length?this.clone().iuxor(u):u.clone().iuxor(this)},i.prototype.inotn=function(u){n(typeof u=="number"&&u>=0);var f=Math.ceil(u/26)|0,b=u%26;this._expand(f),b>0&&f--;for(var g=0;g<f;g++)this.words[g]=~this.words[g]&67108863;return b>0&&(this.words[g]=~this.words[g]&67108863>>26-b),this.strip()},i.prototype.notn=function(u){return this.clone().inotn(u)},i.prototype.setn=function(u,f){n(typeof u=="number"&&u>=0);var b=u/26|0,g=u%26;return this._expand(b+1),f?this.words[b]=this.words[b]|1<<g:this.words[b]=this.words[b]&~(1<<g),this.strip()},i.prototype.iadd=function(u){var f;if(this.negative!==0&&u.negative===0)return this.negative=0,f=this.isub(u),this.negative^=1,this._normSign();if(this.negative===0&&u.negative!==0)return u.negative=0,f=this.isub(u),u.negative=1,f._normSign();var b,g;this.length>u.length?(b=this,g=u):(b=u,g=this);for(var v=0,A=0;A<g.length;A++)f=(b.words[A]|0)+(g.words[A]|0)+v,this.words[A]=f&67108863,v=f>>>26;for(;v!==0&&A<b.length;A++)f=(b.words[A]|0)+v,this.words[A]=f&67108863,v=f>>>26;if(this.length=b.length,v!==0)this.words[this.length]=v,this.length++;else if(b!==this)for(;A<b.length;A++)this.words[A]=b.words[A];return this},i.prototype.add=function(u){var f;return u.negative!==0&&this.negative===0?(u.negative=0,f=this.sub(u),u.negative^=1,f):u.negative===0&&this.negative!==0?(this.negative=0,f=u.sub(this),this.negative=1,f):this.length>u.length?this.clone().iadd(u):u.clone().iadd(this)},i.prototype.isub=function(u){if(u.negative!==0){u.negative=0;var f=this.iadd(u);return u.negative=1,f._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(u),this.negative=1,this._normSign();var b=this.cmp(u);if(b===0)return this.negative=0,this.length=1,this.words[0]=0,this;var g,v;b>0?(g=this,v=u):(g=u,v=this);for(var A=0,N=0;N<v.length;N++)f=(g.words[N]|0)-(v.words[N]|0)+A,A=f>>26,this.words[N]=f&67108863;for(;A!==0&&N<g.length;N++)f=(g.words[N]|0)+A,A=f>>26,this.words[N]=f&67108863;if(A===0&&N<g.length&&g!==this)for(;N<g.length;N++)this.words[N]=g.words[N];return this.length=Math.max(this.length,N),g!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(u){return this.clone().isub(u)};function x(I,u,f){f.negative=u.negative^I.negative;var b=I.length+u.length|0;f.length=b,b=b-1|0;var g=I.words[0]|0,v=u.words[0]|0,A=g*v,N=A&67108863,w=A/67108864|0;f.words[0]=N;for(var p=1;p<b;p++){for(var C=w>>>26,P=w&67108863,R=Math.min(p,u.length-1),$=Math.max(0,p-I.length+1);$<=R;$++){var Y=p-$|0;g=I.words[Y]|0,v=u.words[$]|0,A=g*v+P,C+=A/67108864|0,P=A&67108863}f.words[p]=P|0,w=C|0}return w!==0?f.words[p]=w|0:f.length--,f.strip()}var M=function(u,f,b){var g=u.words,v=f.words,A=b.words,N=0,w,p,C,P=g[0]|0,R=P&8191,$=P>>>13,Y=g[1]|0,V=Y&8191,U=Y>>>13,G=g[2]|0,Q=G&8191,re=G>>>13,q=g[3]|0,H=q&8191,Z=q>>>13,ae=g[4]|0,de=ae&8191,ye=ae>>>13,je=g[5]|0,we=je&8191,ve=je>>>13,qe=g[6]|0,Me=qe&8191,ue=qe>>>13,ke=g[7]|0,te=ke&8191,me=ke>>>13,We=g[8]|0,X=We&8191,W=We>>>13,K=g[9]|0,ne=K&8191,fe=K>>>13,Ae=v[0]|0,be=Ae&8191,Ie=Ae>>>13,ct=v[1]|0,De=ct&8191,Pe=ct>>>13,ft=v[2]|0,He=ft&8191,Ve=ft>>>13,Ft=v[3]|0,Ge=Ft&8191,Je=Ft>>>13,sr=v[4]|0,Xe=sr&8191,it=sr>>>13,pr=v[5]|0,et=pr&8191,lt=pr>>>13,Dr=v[6]|0,Ke=Dr&8191,ut=Dr>>>13,ie=v[7]|0,se=ie&8191,oe=ie>>>13,J=v[8]|0,le=J&8191,xe=J>>>13,ze=v[9]|0,Ce=ze&8191,Ne=ze>>>13;b.negative=u.negative^f.negative,b.length=19,w=Math.imul(R,be),p=Math.imul(R,Ie),p=p+Math.imul($,be)|0,C=Math.imul($,Ie);var dt=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(dt>>>26)|0,dt&=67108863,w=Math.imul(V,be),p=Math.imul(V,Ie),p=p+Math.imul(U,be)|0,C=Math.imul(U,Ie),w=w+Math.imul(R,De)|0,p=p+Math.imul(R,Pe)|0,p=p+Math.imul($,De)|0,C=C+Math.imul($,Pe)|0;var pt=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(pt>>>26)|0,pt&=67108863,w=Math.imul(Q,be),p=Math.imul(Q,Ie),p=p+Math.imul(re,be)|0,C=Math.imul(re,Ie),w=w+Math.imul(V,De)|0,p=p+Math.imul(V,Pe)|0,p=p+Math.imul(U,De)|0,C=C+Math.imul(U,Pe)|0,w=w+Math.imul(R,He)|0,p=p+Math.imul(R,Ve)|0,p=p+Math.imul($,He)|0,C=C+Math.imul($,Ve)|0;var nr=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(nr>>>26)|0,nr&=67108863,w=Math.imul(H,be),p=Math.imul(H,Ie),p=p+Math.imul(Z,be)|0,C=Math.imul(Z,Ie),w=w+Math.imul(Q,De)|0,p=p+Math.imul(Q,Pe)|0,p=p+Math.imul(re,De)|0,C=C+Math.imul(re,Pe)|0,w=w+Math.imul(V,He)|0,p=p+Math.imul(V,Ve)|0,p=p+Math.imul(U,He)|0,C=C+Math.imul(U,Ve)|0,w=w+Math.imul(R,Ge)|0,p=p+Math.imul(R,Je)|0,p=p+Math.imul($,Ge)|0,C=C+Math.imul($,Je)|0;var xt=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(xt>>>26)|0,xt&=67108863,w=Math.imul(de,be),p=Math.imul(de,Ie),p=p+Math.imul(ye,be)|0,C=Math.imul(ye,Ie),w=w+Math.imul(H,De)|0,p=p+Math.imul(H,Pe)|0,p=p+Math.imul(Z,De)|0,C=C+Math.imul(Z,Pe)|0,w=w+Math.imul(Q,He)|0,p=p+Math.imul(Q,Ve)|0,p=p+Math.imul(re,He)|0,C=C+Math.imul(re,Ve)|0,w=w+Math.imul(V,Ge)|0,p=p+Math.imul(V,Je)|0,p=p+Math.imul(U,Ge)|0,C=C+Math.imul(U,Je)|0,w=w+Math.imul(R,Xe)|0,p=p+Math.imul(R,it)|0,p=p+Math.imul($,Xe)|0,C=C+Math.imul($,it)|0;var gt=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(gt>>>26)|0,gt&=67108863,w=Math.imul(we,be),p=Math.imul(we,Ie),p=p+Math.imul(ve,be)|0,C=Math.imul(ve,Ie),w=w+Math.imul(de,De)|0,p=p+Math.imul(de,Pe)|0,p=p+Math.imul(ye,De)|0,C=C+Math.imul(ye,Pe)|0,w=w+Math.imul(H,He)|0,p=p+Math.imul(H,Ve)|0,p=p+Math.imul(Z,He)|0,C=C+Math.imul(Z,Ve)|0,w=w+Math.imul(Q,Ge)|0,p=p+Math.imul(Q,Je)|0,p=p+Math.imul(re,Ge)|0,C=C+Math.imul(re,Je)|0,w=w+Math.imul(V,Xe)|0,p=p+Math.imul(V,it)|0,p=p+Math.imul(U,Xe)|0,C=C+Math.imul(U,it)|0,w=w+Math.imul(R,et)|0,p=p+Math.imul(R,lt)|0,p=p+Math.imul($,et)|0,C=C+Math.imul($,lt)|0;var Pt=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,w=Math.imul(Me,be),p=Math.imul(Me,Ie),p=p+Math.imul(ue,be)|0,C=Math.imul(ue,Ie),w=w+Math.imul(we,De)|0,p=p+Math.imul(we,Pe)|0,p=p+Math.imul(ve,De)|0,C=C+Math.imul(ve,Pe)|0,w=w+Math.imul(de,He)|0,p=p+Math.imul(de,Ve)|0,p=p+Math.imul(ye,He)|0,C=C+Math.imul(ye,Ve)|0,w=w+Math.imul(H,Ge)|0,p=p+Math.imul(H,Je)|0,p=p+Math.imul(Z,Ge)|0,C=C+Math.imul(Z,Je)|0,w=w+Math.imul(Q,Xe)|0,p=p+Math.imul(Q,it)|0,p=p+Math.imul(re,Xe)|0,C=C+Math.imul(re,it)|0,w=w+Math.imul(V,et)|0,p=p+Math.imul(V,lt)|0,p=p+Math.imul(U,et)|0,C=C+Math.imul(U,lt)|0,w=w+Math.imul(R,Ke)|0,p=p+Math.imul(R,ut)|0,p=p+Math.imul($,Ke)|0,C=C+Math.imul($,ut)|0;var tr=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(tr>>>26)|0,tr&=67108863,w=Math.imul(te,be),p=Math.imul(te,Ie),p=p+Math.imul(me,be)|0,C=Math.imul(me,Ie),w=w+Math.imul(Me,De)|0,p=p+Math.imul(Me,Pe)|0,p=p+Math.imul(ue,De)|0,C=C+Math.imul(ue,Pe)|0,w=w+Math.imul(we,He)|0,p=p+Math.imul(we,Ve)|0,p=p+Math.imul(ve,He)|0,C=C+Math.imul(ve,Ve)|0,w=w+Math.imul(de,Ge)|0,p=p+Math.imul(de,Je)|0,p=p+Math.imul(ye,Ge)|0,C=C+Math.imul(ye,Je)|0,w=w+Math.imul(H,Xe)|0,p=p+Math.imul(H,it)|0,p=p+Math.imul(Z,Xe)|0,C=C+Math.imul(Z,it)|0,w=w+Math.imul(Q,et)|0,p=p+Math.imul(Q,lt)|0,p=p+Math.imul(re,et)|0,C=C+Math.imul(re,lt)|0,w=w+Math.imul(V,Ke)|0,p=p+Math.imul(V,ut)|0,p=p+Math.imul(U,Ke)|0,C=C+Math.imul(U,ut)|0,w=w+Math.imul(R,se)|0,p=p+Math.imul(R,oe)|0,p=p+Math.imul($,se)|0,C=C+Math.imul($,oe)|0;var er=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(er>>>26)|0,er&=67108863,w=Math.imul(X,be),p=Math.imul(X,Ie),p=p+Math.imul(W,be)|0,C=Math.imul(W,Ie),w=w+Math.imul(te,De)|0,p=p+Math.imul(te,Pe)|0,p=p+Math.imul(me,De)|0,C=C+Math.imul(me,Pe)|0,w=w+Math.imul(Me,He)|0,p=p+Math.imul(Me,Ve)|0,p=p+Math.imul(ue,He)|0,C=C+Math.imul(ue,Ve)|0,w=w+Math.imul(we,Ge)|0,p=p+Math.imul(we,Je)|0,p=p+Math.imul(ve,Ge)|0,C=C+Math.imul(ve,Je)|0,w=w+Math.imul(de,Xe)|0,p=p+Math.imul(de,it)|0,p=p+Math.imul(ye,Xe)|0,C=C+Math.imul(ye,it)|0,w=w+Math.imul(H,et)|0,p=p+Math.imul(H,lt)|0,p=p+Math.imul(Z,et)|0,C=C+Math.imul(Z,lt)|0,w=w+Math.imul(Q,Ke)|0,p=p+Math.imul(Q,ut)|0,p=p+Math.imul(re,Ke)|0,C=C+Math.imul(re,ut)|0,w=w+Math.imul(V,se)|0,p=p+Math.imul(V,oe)|0,p=p+Math.imul(U,se)|0,C=C+Math.imul(U,oe)|0,w=w+Math.imul(R,le)|0,p=p+Math.imul(R,xe)|0,p=p+Math.imul($,le)|0,C=C+Math.imul($,xe)|0;var Kt=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,w=Math.imul(ne,be),p=Math.imul(ne,Ie),p=p+Math.imul(fe,be)|0,C=Math.imul(fe,Ie),w=w+Math.imul(X,De)|0,p=p+Math.imul(X,Pe)|0,p=p+Math.imul(W,De)|0,C=C+Math.imul(W,Pe)|0,w=w+Math.imul(te,He)|0,p=p+Math.imul(te,Ve)|0,p=p+Math.imul(me,He)|0,C=C+Math.imul(me,Ve)|0,w=w+Math.imul(Me,Ge)|0,p=p+Math.imul(Me,Je)|0,p=p+Math.imul(ue,Ge)|0,C=C+Math.imul(ue,Je)|0,w=w+Math.imul(we,Xe)|0,p=p+Math.imul(we,it)|0,p=p+Math.imul(ve,Xe)|0,C=C+Math.imul(ve,it)|0,w=w+Math.imul(de,et)|0,p=p+Math.imul(de,lt)|0,p=p+Math.imul(ye,et)|0,C=C+Math.imul(ye,lt)|0,w=w+Math.imul(H,Ke)|0,p=p+Math.imul(H,ut)|0,p=p+Math.imul(Z,Ke)|0,C=C+Math.imul(Z,ut)|0,w=w+Math.imul(Q,se)|0,p=p+Math.imul(Q,oe)|0,p=p+Math.imul(re,se)|0,C=C+Math.imul(re,oe)|0,w=w+Math.imul(V,le)|0,p=p+Math.imul(V,xe)|0,p=p+Math.imul(U,le)|0,C=C+Math.imul(U,xe)|0,w=w+Math.imul(R,Ce)|0,p=p+Math.imul(R,Ne)|0,p=p+Math.imul($,Ce)|0,C=C+Math.imul($,Ne)|0;var Jt=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(Jt>>>26)|0,Jt&=67108863,w=Math.imul(ne,De),p=Math.imul(ne,Pe),p=p+Math.imul(fe,De)|0,C=Math.imul(fe,Pe),w=w+Math.imul(X,He)|0,p=p+Math.imul(X,Ve)|0,p=p+Math.imul(W,He)|0,C=C+Math.imul(W,Ve)|0,w=w+Math.imul(te,Ge)|0,p=p+Math.imul(te,Je)|0,p=p+Math.imul(me,Ge)|0,C=C+Math.imul(me,Je)|0,w=w+Math.imul(Me,Xe)|0,p=p+Math.imul(Me,it)|0,p=p+Math.imul(ue,Xe)|0,C=C+Math.imul(ue,it)|0,w=w+Math.imul(we,et)|0,p=p+Math.imul(we,lt)|0,p=p+Math.imul(ve,et)|0,C=C+Math.imul(ve,lt)|0,w=w+Math.imul(de,Ke)|0,p=p+Math.imul(de,ut)|0,p=p+Math.imul(ye,Ke)|0,C=C+Math.imul(ye,ut)|0,w=w+Math.imul(H,se)|0,p=p+Math.imul(H,oe)|0,p=p+Math.imul(Z,se)|0,C=C+Math.imul(Z,oe)|0,w=w+Math.imul(Q,le)|0,p=p+Math.imul(Q,xe)|0,p=p+Math.imul(re,le)|0,C=C+Math.imul(re,xe)|0,w=w+Math.imul(V,Ce)|0,p=p+Math.imul(V,Ne)|0,p=p+Math.imul(U,Ce)|0,C=C+Math.imul(U,Ne)|0;var Zt=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,w=Math.imul(ne,He),p=Math.imul(ne,Ve),p=p+Math.imul(fe,He)|0,C=Math.imul(fe,Ve),w=w+Math.imul(X,Ge)|0,p=p+Math.imul(X,Je)|0,p=p+Math.imul(W,Ge)|0,C=C+Math.imul(W,Je)|0,w=w+Math.imul(te,Xe)|0,p=p+Math.imul(te,it)|0,p=p+Math.imul(me,Xe)|0,C=C+Math.imul(me,it)|0,w=w+Math.imul(Me,et)|0,p=p+Math.imul(Me,lt)|0,p=p+Math.imul(ue,et)|0,C=C+Math.imul(ue,lt)|0,w=w+Math.imul(we,Ke)|0,p=p+Math.imul(we,ut)|0,p=p+Math.imul(ve,Ke)|0,C=C+Math.imul(ve,ut)|0,w=w+Math.imul(de,se)|0,p=p+Math.imul(de,oe)|0,p=p+Math.imul(ye,se)|0,C=C+Math.imul(ye,oe)|0,w=w+Math.imul(H,le)|0,p=p+Math.imul(H,xe)|0,p=p+Math.imul(Z,le)|0,C=C+Math.imul(Z,xe)|0,w=w+Math.imul(Q,Ce)|0,p=p+Math.imul(Q,Ne)|0,p=p+Math.imul(re,Ce)|0,C=C+Math.imul(re,Ne)|0;var Nt=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,w=Math.imul(ne,Ge),p=Math.imul(ne,Je),p=p+Math.imul(fe,Ge)|0,C=Math.imul(fe,Je),w=w+Math.imul(X,Xe)|0,p=p+Math.imul(X,it)|0,p=p+Math.imul(W,Xe)|0,C=C+Math.imul(W,it)|0,w=w+Math.imul(te,et)|0,p=p+Math.imul(te,lt)|0,p=p+Math.imul(me,et)|0,C=C+Math.imul(me,lt)|0,w=w+Math.imul(Me,Ke)|0,p=p+Math.imul(Me,ut)|0,p=p+Math.imul(ue,Ke)|0,C=C+Math.imul(ue,ut)|0,w=w+Math.imul(we,se)|0,p=p+Math.imul(we,oe)|0,p=p+Math.imul(ve,se)|0,C=C+Math.imul(ve,oe)|0,w=w+Math.imul(de,le)|0,p=p+Math.imul(de,xe)|0,p=p+Math.imul(ye,le)|0,C=C+Math.imul(ye,xe)|0,w=w+Math.imul(H,Ce)|0,p=p+Math.imul(H,Ne)|0,p=p+Math.imul(Z,Ce)|0,C=C+Math.imul(Z,Ne)|0;var Ot=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,w=Math.imul(ne,Xe),p=Math.imul(ne,it),p=p+Math.imul(fe,Xe)|0,C=Math.imul(fe,it),w=w+Math.imul(X,et)|0,p=p+Math.imul(X,lt)|0,p=p+Math.imul(W,et)|0,C=C+Math.imul(W,lt)|0,w=w+Math.imul(te,Ke)|0,p=p+Math.imul(te,ut)|0,p=p+Math.imul(me,Ke)|0,C=C+Math.imul(me,ut)|0,w=w+Math.imul(Me,se)|0,p=p+Math.imul(Me,oe)|0,p=p+Math.imul(ue,se)|0,C=C+Math.imul(ue,oe)|0,w=w+Math.imul(we,le)|0,p=p+Math.imul(we,xe)|0,p=p+Math.imul(ve,le)|0,C=C+Math.imul(ve,xe)|0,w=w+Math.imul(de,Ce)|0,p=p+Math.imul(de,Ne)|0,p=p+Math.imul(ye,Ce)|0,C=C+Math.imul(ye,Ne)|0;var Ct=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,w=Math.imul(ne,et),p=Math.imul(ne,lt),p=p+Math.imul(fe,et)|0,C=Math.imul(fe,lt),w=w+Math.imul(X,Ke)|0,p=p+Math.imul(X,ut)|0,p=p+Math.imul(W,Ke)|0,C=C+Math.imul(W,ut)|0,w=w+Math.imul(te,se)|0,p=p+Math.imul(te,oe)|0,p=p+Math.imul(me,se)|0,C=C+Math.imul(me,oe)|0,w=w+Math.imul(Me,le)|0,p=p+Math.imul(Me,xe)|0,p=p+Math.imul(ue,le)|0,C=C+Math.imul(ue,xe)|0,w=w+Math.imul(we,Ce)|0,p=p+Math.imul(we,Ne)|0,p=p+Math.imul(ve,Ce)|0,C=C+Math.imul(ve,Ne)|0;var kt=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(kt>>>26)|0,kt&=67108863,w=Math.imul(ne,Ke),p=Math.imul(ne,ut),p=p+Math.imul(fe,Ke)|0,C=Math.imul(fe,ut),w=w+Math.imul(X,se)|0,p=p+Math.imul(X,oe)|0,p=p+Math.imul(W,se)|0,C=C+Math.imul(W,oe)|0,w=w+Math.imul(te,le)|0,p=p+Math.imul(te,xe)|0,p=p+Math.imul(me,le)|0,C=C+Math.imul(me,xe)|0,w=w+Math.imul(Me,Ce)|0,p=p+Math.imul(Me,Ne)|0,p=p+Math.imul(ue,Ce)|0,C=C+Math.imul(ue,Ne)|0;var Bt=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,w=Math.imul(ne,se),p=Math.imul(ne,oe),p=p+Math.imul(fe,se)|0,C=Math.imul(fe,oe),w=w+Math.imul(X,le)|0,p=p+Math.imul(X,xe)|0,p=p+Math.imul(W,le)|0,C=C+Math.imul(W,xe)|0,w=w+Math.imul(te,Ce)|0,p=p+Math.imul(te,Ne)|0,p=p+Math.imul(me,Ce)|0,C=C+Math.imul(me,Ne)|0;var At=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(At>>>26)|0,At&=67108863,w=Math.imul(ne,le),p=Math.imul(ne,xe),p=p+Math.imul(fe,le)|0,C=Math.imul(fe,xe),w=w+Math.imul(X,Ce)|0,p=p+Math.imul(X,Ne)|0,p=p+Math.imul(W,Ce)|0,C=C+Math.imul(W,Ne)|0;var Ze=(N+w|0)+((p&8191)<<13)|0;N=(C+(p>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,w=Math.imul(ne,Ce),p=Math.imul(ne,Ne),p=p+Math.imul(fe,Ce)|0,C=Math.imul(fe,Ne);var Qe=(N+w|0)+((p&8191)<<13)|0;return N=(C+(p>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,A[0]=dt,A[1]=pt,A[2]=nr,A[3]=xt,A[4]=gt,A[5]=Pt,A[6]=tr,A[7]=er,A[8]=Kt,A[9]=Jt,A[10]=Zt,A[11]=Nt,A[12]=Ot,A[13]=Ct,A[14]=kt,A[15]=Bt,A[16]=At,A[17]=Ze,A[18]=Qe,N!==0&&(A[19]=N,b.length++),b};Math.imul||(M=x);function E(I,u,f){f.negative=u.negative^I.negative,f.length=I.length+u.length;for(var b=0,g=0,v=0;v<f.length-1;v++){var A=g;g=0;for(var N=b&67108863,w=Math.min(v,u.length-1),p=Math.max(0,v-I.length+1);p<=w;p++){var C=v-p,P=I.words[C]|0,R=u.words[p]|0,$=P*R,Y=$&67108863;A=A+($/67108864|0)|0,Y=Y+N|0,N=Y&67108863,A=A+(Y>>>26)|0,g+=A>>>26,A&=67108863}f.words[v]=N,b=A,A=g}return b!==0?f.words[v]=b:f.length--,f.strip()}function S(I,u,f){var b=new T;return b.mulp(I,u,f)}i.prototype.mulTo=function(u,f){var b,g=this.length+u.length;return this.length===10&&u.length===10?b=M(this,u,f):g<63?b=x(this,u,f):g<1024?b=E(this,u,f):b=S(this,u,f),b};function T(I,u){this.x=I,this.y=u}T.prototype.makeRBT=function(u){for(var f=new Array(u),b=i.prototype._countBits(u)-1,g=0;g<u;g++)f[g]=this.revBin(g,b,u);return f},T.prototype.revBin=function(u,f,b){if(u===0||u===b-1)return u;for(var g=0,v=0;v<f;v++)g|=(u&1)<<f-v-1,u>>=1;return g},T.prototype.permute=function(u,f,b,g,v,A){for(var N=0;N<A;N++)g[N]=f[u[N]],v[N]=b[u[N]]},T.prototype.transform=function(u,f,b,g,v,A){this.permute(A,u,f,b,g,v);for(var N=1;N<v;N<<=1)for(var w=N<<1,p=Math.cos(2*Math.PI/w),C=Math.sin(2*Math.PI/w),P=0;P<v;P+=w)for(var R=p,$=C,Y=0;Y<N;Y++){var V=b[P+Y],U=g[P+Y],G=b[P+Y+N],Q=g[P+Y+N],re=R*G-$*Q;Q=R*Q+$*G,G=re,b[P+Y]=V+G,g[P+Y]=U+Q,b[P+Y+N]=V-G,g[P+Y+N]=U-Q,Y!==w&&(re=p*R-C*$,$=p*$+C*R,R=re)}},T.prototype.guessLen13b=function(u,f){var b=Math.max(f,u)|1,g=b&1,v=0;for(b=b/2|0;b;b=b>>>1)v++;return 1<<v+1+g},T.prototype.conjugate=function(u,f,b){if(!(b<=1))for(var g=0;g<b/2;g++){var v=u[g];u[g]=u[b-g-1],u[b-g-1]=v,v=f[g],f[g]=-f[b-g-1],f[b-g-1]=-v}},T.prototype.normalize13b=function(u,f){for(var b=0,g=0;g<f/2;g++){var v=Math.round(u[2*g+1]/f)*8192+Math.round(u[2*g]/f)+b;u[g]=v&67108863,v<67108864?b=0:b=v/67108864|0}return u},T.prototype.convert13b=function(u,f,b,g){for(var v=0,A=0;A<f;A++)v=v+(u[A]|0),b[2*A]=v&8191,v=v>>>13,b[2*A+1]=v&8191,v=v>>>13;for(A=2*f;A<g;++A)b[A]=0;n(v===0),n((v&-8192)===0)},T.prototype.stub=function(u){for(var f=new Array(u),b=0;b<u;b++)f[b]=0;return f},T.prototype.mulp=function(u,f,b){var g=2*this.guessLen13b(u.length,f.length),v=this.makeRBT(g),A=this.stub(g),N=new Array(g),w=new Array(g),p=new Array(g),C=new Array(g),P=new Array(g),R=new Array(g),$=b.words;$.length=g,this.convert13b(u.words,u.length,N,g),this.convert13b(f.words,f.length,C,g),this.transform(N,A,w,p,g,v),this.transform(C,A,P,R,g,v);for(var Y=0;Y<g;Y++){var V=w[Y]*P[Y]-p[Y]*R[Y];p[Y]=w[Y]*R[Y]+p[Y]*P[Y],w[Y]=V}return this.conjugate(w,p,g),this.transform(w,p,$,A,g,v),this.conjugate($,A,g),this.normalize13b($,g),b.negative=u.negative^f.negative,b.length=u.length+f.length,b.strip()},i.prototype.mul=function(u){var f=new i(null);return f.words=new Array(this.length+u.length),this.mulTo(u,f)},i.prototype.mulf=function(u){var f=new i(null);return f.words=new Array(this.length+u.length),S(this,u,f)},i.prototype.imul=function(u){return this.clone().mulTo(u,this)},i.prototype.imuln=function(u){n(typeof u=="number"),n(u<67108864);for(var f=0,b=0;b<this.length;b++){var g=(this.words[b]|0)*u,v=(g&67108863)+(f&67108863);f>>=26,f+=g/67108864|0,f+=v>>>26,this.words[b]=v&67108863}return f!==0&&(this.words[b]=f,this.length++),this},i.prototype.muln=function(u){return this.clone().imuln(u)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(u){var f=y(u);if(f.length===0)return new i(1);for(var b=this,g=0;g<f.length&&f[g]===0;g++,b=b.sqr());if(++g<f.length)for(var v=b.sqr();g<f.length;g++,v=v.sqr())f[g]!==0&&(b=b.mul(v));return b},i.prototype.iushln=function(u){n(typeof u=="number"&&u>=0);var f=u%26,b=(u-f)/26,g=67108863>>>26-f<<26-f,v;if(f!==0){var A=0;for(v=0;v<this.length;v++){var N=this.words[v]&g,w=(this.words[v]|0)-N<<f;this.words[v]=w|A,A=N>>>26-f}A&&(this.words[v]=A,this.length++)}if(b!==0){for(v=this.length-1;v>=0;v--)this.words[v+b]=this.words[v];for(v=0;v<b;v++)this.words[v]=0;this.length+=b}return this.strip()},i.prototype.ishln=function(u){return n(this.negative===0),this.iushln(u)},i.prototype.iushrn=function(u,f,b){n(typeof u=="number"&&u>=0);var g;f?g=(f-f%26)/26:g=0;var v=u%26,A=Math.min((u-v)/26,this.length),N=67108863^67108863>>>v<<v,w=b;if(g-=A,g=Math.max(0,g),w){for(var p=0;p<A;p++)w.words[p]=this.words[p];w.length=A}if(A!==0)if(this.length>A)for(this.length-=A,p=0;p<this.length;p++)this.words[p]=this.words[p+A];else this.words[0]=0,this.length=1;var C=0;for(p=this.length-1;p>=0&&(C!==0||p>=g);p--){var P=this.words[p]|0;this.words[p]=C<<26-v|P>>>v,C=P&N}return w&&C!==0&&(w.words[w.length++]=C),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(u,f,b){return n(this.negative===0),this.iushrn(u,f,b)},i.prototype.shln=function(u){return this.clone().ishln(u)},i.prototype.ushln=function(u){return this.clone().iushln(u)},i.prototype.shrn=function(u){return this.clone().ishrn(u)},i.prototype.ushrn=function(u){return this.clone().iushrn(u)},i.prototype.testn=function(u){n(typeof u=="number"&&u>=0);var f=u%26,b=(u-f)/26,g=1<<f;if(this.length<=b)return!1;var v=this.words[b];return!!(v&g)},i.prototype.imaskn=function(u){n(typeof u=="number"&&u>=0);var f=u%26,b=(u-f)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=b)return this;if(f!==0&&b++,this.length=Math.min(b,this.length),f!==0){var g=67108863^67108863>>>f<<f;this.words[this.length-1]&=g}return this.strip()},i.prototype.maskn=function(u){return this.clone().imaskn(u)},i.prototype.iaddn=function(u){return n(typeof u=="number"),n(u<67108864),u<0?this.isubn(-u):this.negative!==0?this.length===1&&(this.words[0]|0)<u?(this.words[0]=u-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(u),this.negative=1,this):this._iaddn(u)},i.prototype._iaddn=function(u){this.words[0]+=u;for(var f=0;f<this.length&&this.words[f]>=67108864;f++)this.words[f]-=67108864,f===this.length-1?this.words[f+1]=1:this.words[f+1]++;return this.length=Math.max(this.length,f+1),this},i.prototype.isubn=function(u){if(n(typeof u=="number"),n(u<67108864),u<0)return this.iaddn(-u);if(this.negative!==0)return this.negative=0,this.iaddn(u),this.negative=1,this;if(this.words[0]-=u,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var f=0;f<this.length&&this.words[f]<0;f++)this.words[f]+=67108864,this.words[f+1]-=1;return this.strip()},i.prototype.addn=function(u){return this.clone().iaddn(u)},i.prototype.subn=function(u){return this.clone().isubn(u)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(u,f,b){var g=u.length+b,v;this._expand(g);var A,N=0;for(v=0;v<u.length;v++){A=(this.words[v+b]|0)+N;var w=(u.words[v]|0)*f;A-=w&67108863,N=(A>>26)-(w/67108864|0),this.words[v+b]=A&67108863}for(;v<this.length-b;v++)A=(this.words[v+b]|0)+N,N=A>>26,this.words[v+b]=A&67108863;if(N===0)return this.strip();for(n(N===-1),N=0,v=0;v<this.length;v++)A=-(this.words[v]|0)+N,N=A>>26,this.words[v]=A&67108863;return this.negative=1,this.strip()},i.prototype._wordDiv=function(u,f){var b=this.length-u.length,g=this.clone(),v=u,A=v.words[v.length-1]|0,N=this._countBits(A);b=26-N,b!==0&&(v=v.ushln(b),g.iushln(b),A=v.words[v.length-1]|0);var w=g.length-v.length,p;if(f!=="mod"){p=new i(null),p.length=w+1,p.words=new Array(p.length);for(var C=0;C<p.length;C++)p.words[C]=0}var P=g.clone()._ishlnsubmul(v,1,w);P.negative===0&&(g=P,p&&(p.words[w]=1));for(var R=w-1;R>=0;R--){var $=(g.words[v.length+R]|0)*67108864+(g.words[v.length+R-1]|0);for($=Math.min($/A|0,67108863),g._ishlnsubmul(v,$,R);g.negative!==0;)$--,g.negative=0,g._ishlnsubmul(v,1,R),g.isZero()||(g.negative^=1);p&&(p.words[R]=$)}return p&&p.strip(),g.strip(),f!=="div"&&b!==0&&g.iushrn(b),{div:p||null,mod:g}},i.prototype.divmod=function(u,f,b){if(n(!u.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var g,v,A;return this.negative!==0&&u.negative===0?(A=this.neg().divmod(u,f),f!=="mod"&&(g=A.div.neg()),f!=="div"&&(v=A.mod.neg(),b&&v.negative!==0&&v.iadd(u)),{div:g,mod:v}):this.negative===0&&u.negative!==0?(A=this.divmod(u.neg(),f),f!=="mod"&&(g=A.div.neg()),{div:g,mod:A.mod}):this.negative&u.negative?(A=this.neg().divmod(u.neg(),f),f!=="div"&&(v=A.mod.neg(),b&&v.negative!==0&&v.isub(u)),{div:A.div,mod:v}):u.length>this.length||this.cmp(u)<0?{div:new i(0),mod:this}:u.length===1?f==="div"?{div:this.divn(u.words[0]),mod:null}:f==="mod"?{div:null,mod:new i(this.modn(u.words[0]))}:{div:this.divn(u.words[0]),mod:new i(this.modn(u.words[0]))}:this._wordDiv(u,f)},i.prototype.div=function(u){return this.divmod(u,"div",!1).div},i.prototype.mod=function(u){return this.divmod(u,"mod",!1).mod},i.prototype.umod=function(u){return this.divmod(u,"mod",!0).mod},i.prototype.divRound=function(u){var f=this.divmod(u);if(f.mod.isZero())return f.div;var b=f.div.negative!==0?f.mod.isub(u):f.mod,g=u.ushrn(1),v=u.andln(1),A=b.cmp(g);return A<0||v===1&&A===0?f.div:f.div.negative!==0?f.div.isubn(1):f.div.iaddn(1)},i.prototype.modn=function(u){n(u<=67108863);for(var f=(1<<26)%u,b=0,g=this.length-1;g>=0;g--)b=(f*b+(this.words[g]|0))%u;return b},i.prototype.idivn=function(u){n(u<=67108863);for(var f=0,b=this.length-1;b>=0;b--){var g=(this.words[b]|0)+f*67108864;this.words[b]=g/u|0,f=g%u}return this.strip()},i.prototype.divn=function(u){return this.clone().idivn(u)},i.prototype.egcd=function(u){n(u.negative===0),n(!u.isZero());var f=this,b=u.clone();f.negative!==0?f=f.umod(u):f=f.clone();for(var g=new i(1),v=new i(0),A=new i(0),N=new i(1),w=0;f.isEven()&&b.isEven();)f.iushrn(1),b.iushrn(1),++w;for(var p=b.clone(),C=f.clone();!f.isZero();){for(var P=0,R=1;!(f.words[0]&R)&&P<26;++P,R<<=1);if(P>0)for(f.iushrn(P);P-- >0;)(g.isOdd()||v.isOdd())&&(g.iadd(p),v.isub(C)),g.iushrn(1),v.iushrn(1);for(var $=0,Y=1;!(b.words[0]&Y)&&$<26;++$,Y<<=1);if($>0)for(b.iushrn($);$-- >0;)(A.isOdd()||N.isOdd())&&(A.iadd(p),N.isub(C)),A.iushrn(1),N.iushrn(1);f.cmp(b)>=0?(f.isub(b),g.isub(A),v.isub(N)):(b.isub(f),A.isub(g),N.isub(v))}return{a:A,b:N,gcd:b.iushln(w)}},i.prototype._invmp=function(u){n(u.negative===0),n(!u.isZero());var f=this,b=u.clone();f.negative!==0?f=f.umod(u):f=f.clone();for(var g=new i(1),v=new i(0),A=b.clone();f.cmpn(1)>0&&b.cmpn(1)>0;){for(var N=0,w=1;!(f.words[0]&w)&&N<26;++N,w<<=1);if(N>0)for(f.iushrn(N);N-- >0;)g.isOdd()&&g.iadd(A),g.iushrn(1);for(var p=0,C=1;!(b.words[0]&C)&&p<26;++p,C<<=1);if(p>0)for(b.iushrn(p);p-- >0;)v.isOdd()&&v.iadd(A),v.iushrn(1);f.cmp(b)>=0?(f.isub(b),g.isub(v)):(b.isub(f),v.isub(g))}var P;return f.cmpn(1)===0?P=g:P=v,P.cmpn(0)<0&&P.iadd(u),P},i.prototype.gcd=function(u){if(this.isZero())return u.abs();if(u.isZero())return this.abs();var f=this.clone(),b=u.clone();f.negative=0,b.negative=0;for(var g=0;f.isEven()&&b.isEven();g++)f.iushrn(1),b.iushrn(1);do{for(;f.isEven();)f.iushrn(1);for(;b.isEven();)b.iushrn(1);var v=f.cmp(b);if(v<0){var A=f;f=b,b=A}else if(v===0||b.cmpn(1)===0)break;f.isub(b)}while(!0);return b.iushln(g)},i.prototype.invm=function(u){return this.egcd(u).a.umod(u)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(u){return this.words[0]&u},i.prototype.bincn=function(u){n(typeof u=="number");var f=u%26,b=(u-f)/26,g=1<<f;if(this.length<=b)return this._expand(b+1),this.words[b]|=g,this;for(var v=g,A=b;v!==0&&A<this.length;A++){var N=this.words[A]|0;N+=v,v=N>>>26,N&=67108863,this.words[A]=N}return v!==0&&(this.words[A]=v,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(u){var f=u<0;if(this.negative!==0&&!f)return-1;if(this.negative===0&&f)return 1;this.strip();var b;if(this.length>1)b=1;else{f&&(u=-u),n(u<=67108863,"Number is too big");var g=this.words[0]|0;b=g===u?0:g<u?-1:1}return this.negative!==0?-b|0:b},i.prototype.cmp=function(u){if(this.negative!==0&&u.negative===0)return-1;if(this.negative===0&&u.negative!==0)return 1;var f=this.ucmp(u);return this.negative!==0?-f|0:f},i.prototype.ucmp=function(u){if(this.length>u.length)return 1;if(this.length<u.length)return-1;for(var f=0,b=this.length-1;b>=0;b--){var g=this.words[b]|0,v=u.words[b]|0;if(g!==v){g<v?f=-1:g>v&&(f=1);break}}return f},i.prototype.gtn=function(u){return this.cmpn(u)===1},i.prototype.gt=function(u){return this.cmp(u)===1},i.prototype.gten=function(u){return this.cmpn(u)>=0},i.prototype.gte=function(u){return this.cmp(u)>=0},i.prototype.ltn=function(u){return this.cmpn(u)===-1},i.prototype.lt=function(u){return this.cmp(u)===-1},i.prototype.lten=function(u){return this.cmpn(u)<=0},i.prototype.lte=function(u){return this.cmp(u)<=0},i.prototype.eqn=function(u){return this.cmpn(u)===0},i.prototype.eq=function(u){return this.cmp(u)===0},i.red=function(u){return new z(u)},i.prototype.toRed=function(u){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),u.convertTo(this)._forceRed(u)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(u){return this.red=u,this},i.prototype.forceRed=function(u){return n(!this.red,"Already a number in reduction context"),this._forceRed(u)},i.prototype.redAdd=function(u){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,u)},i.prototype.redIAdd=function(u){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,u)},i.prototype.redSub=function(u){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,u)},i.prototype.redISub=function(u){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,u)},i.prototype.redShl=function(u){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,u)},i.prototype.redMul=function(u){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.mul(this,u)},i.prototype.redIMul=function(u){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.imul(this,u)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(u){return n(this.red&&!u.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,u)};var D={k256:null,p224:null,p192:null,p25519:null};function k(I,u){this.name=I,this.p=new i(u,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}k.prototype._tmp=function(){var u=new i(null);return u.words=new Array(Math.ceil(this.n/13)),u},k.prototype.ireduce=function(u){var f=u,b;do this.split(f,this.tmp),f=this.imulK(f),f=f.iadd(this.tmp),b=f.bitLength();while(b>this.n);var g=b<this.n?-1:f.ucmp(this.p);return g===0?(f.words[0]=0,f.length=1):g>0?f.isub(this.p):f.strip!==void 0?f.strip():f._strip(),f},k.prototype.split=function(u,f){u.iushrn(this.n,0,f)},k.prototype.imulK=function(u){return u.imul(this.k)};function _(){k.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}a(_,k),_.prototype.split=function(u,f){for(var b=4194303,g=Math.min(u.length,9),v=0;v<g;v++)f.words[v]=u.words[v];if(f.length=g,u.length<=9){u.words[0]=0,u.length=1;return}var A=u.words[9];for(f.words[f.length++]=A&b,v=10;v<u.length;v++){var N=u.words[v]|0;u.words[v-10]=(N&b)<<4|A>>>22,A=N}A>>>=22,u.words[v-10]=A,A===0&&u.length>10?u.length-=10:u.length-=9},_.prototype.imulK=function(u){u.words[u.length]=0,u.words[u.length+1]=0,u.length+=2;for(var f=0,b=0;b<u.length;b++){var g=u.words[b]|0;f+=g*977,u.words[b]=f&67108863,f=g*64+(f/67108864|0)}return u.words[u.length-1]===0&&(u.length--,u.words[u.length-1]===0&&u.length--),u};function L(){k.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}a(L,k);function O(){k.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}a(O,k);function B(){k.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}a(B,k),B.prototype.imulK=function(u){for(var f=0,b=0;b<u.length;b++){var g=(u.words[b]|0)*19+f,v=g&67108863;g>>>=26,u.words[b]=v,f=g}return f!==0&&(u.words[u.length++]=f),u},i._prime=function(u){if(D[u])return D[u];var f;if(u==="k256")f=new _;else if(u==="p224")f=new L;else if(u==="p192")f=new O;else if(u==="p25519")f=new B;else throw new Error("Unknown prime "+u);return D[u]=f,f};function z(I){if(typeof I=="string"){var u=i._prime(I);this.m=u.p,this.prime=u}else n(I.gtn(1),"modulus must be greater than 1"),this.m=I,this.prime=null}z.prototype._verify1=function(u){n(u.negative===0,"red works only with positives"),n(u.red,"red works only with red numbers")},z.prototype._verify2=function(u,f){n((u.negative|f.negative)===0,"red works only with positives"),n(u.red&&u.red===f.red,"red works only with red numbers")},z.prototype.imod=function(u){return this.prime?this.prime.ireduce(u)._forceRed(this):u.umod(this.m)._forceRed(this)},z.prototype.neg=function(u){return u.isZero()?u.clone():this.m.sub(u)._forceRed(this)},z.prototype.add=function(u,f){this._verify2(u,f);var b=u.add(f);return b.cmp(this.m)>=0&&b.isub(this.m),b._forceRed(this)},z.prototype.iadd=function(u,f){this._verify2(u,f);var b=u.iadd(f);return b.cmp(this.m)>=0&&b.isub(this.m),b},z.prototype.sub=function(u,f){this._verify2(u,f);var b=u.sub(f);return b.cmpn(0)<0&&b.iadd(this.m),b._forceRed(this)},z.prototype.isub=function(u,f){this._verify2(u,f);var b=u.isub(f);return b.cmpn(0)<0&&b.iadd(this.m),b},z.prototype.shl=function(u,f){return this._verify1(u),this.imod(u.ushln(f))},z.prototype.imul=function(u,f){return this._verify2(u,f),this.imod(u.imul(f))},z.prototype.mul=function(u,f){return this._verify2(u,f),this.imod(u.mul(f))},z.prototype.isqr=function(u){return this.imul(u,u.clone())},z.prototype.sqr=function(u){return this.mul(u,u)},z.prototype.sqrt=function(u){if(u.isZero())return u.clone();var f=this.m.andln(3);if(n(f%2===1),f===3){var b=this.m.add(new i(1)).iushrn(2);return this.pow(u,b)}for(var g=this.m.subn(1),v=0;!g.isZero()&&g.andln(1)===0;)v++,g.iushrn(1);n(!g.isZero());var A=new i(1).toRed(this),N=A.redNeg(),w=this.m.subn(1).iushrn(1),p=this.m.bitLength();for(p=new i(2*p*p).toRed(this);this.pow(p,w).cmp(N)!==0;)p.redIAdd(N);for(var C=this.pow(p,g),P=this.pow(u,g.addn(1).iushrn(1)),R=this.pow(u,g),$=v;R.cmp(A)!==0;){for(var Y=R,V=0;Y.cmp(A)!==0;V++)Y=Y.redSqr();n(V<$);var U=this.pow(C,new i(1).iushln($-V-1));P=P.redMul(U),C=U.redSqr(),R=R.redMul(C),$=V}return P},z.prototype.invm=function(u){var f=u._invmp(this.m);return f.negative!==0?(f.negative=0,this.imod(f).redNeg()):this.imod(f)},z.prototype.pow=function(u,f){if(f.isZero())return new i(1).toRed(this);if(f.cmpn(1)===0)return u.clone();var b=4,g=new Array(1<<b);g[0]=new i(1).toRed(this),g[1]=u;for(var v=2;v<g.length;v++)g[v]=this.mul(g[v-1],u);var A=g[0],N=0,w=0,p=f.bitLength()%26;for(p===0&&(p=26),v=f.length-1;v>=0;v--){for(var C=f.words[v],P=p-1;P>=0;P--){var R=C>>P&1;if(A!==g[0]&&(A=this.sqr(A)),R===0&&N===0){w=0;continue}N<<=1,N|=R,w++,!(w!==b&&(v!==0||P!==0))&&(A=this.mul(A,g[N]),w=0,N=0)}p=26}return A},z.prototype.convertTo=function(u){var f=u.umod(this.m);return f===u?f.clone():f},z.prototype.convertFrom=function(u){var f=u.clone();return f.red=null,f},i.mont=function(u){return new F(u)};function F(I){z.call(this,I),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}a(F,z),F.prototype.convertTo=function(u){return this.imod(u.ushln(this.shift))},F.prototype.convertFrom=function(u){var f=this.imod(u.mul(this.rinv));return f.red=null,f},F.prototype.imul=function(u,f){if(u.isZero()||f.isZero())return u.words[0]=0,u.length=1,u;var b=u.imul(f),g=b.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=b.isub(g).iushrn(this.shift),A=v;return v.cmp(this.m)>=0?A=v.isub(this.m):v.cmpn(0)<0&&(A=v.iadd(this.m)),A._forceRed(this)},F.prototype.mul=function(u,f){if(u.isZero()||f.isZero())return new i(0)._forceRed(this);var b=u.mul(f),g=b.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=b.isub(g).iushrn(this.shift),A=v;return v.cmp(this.m)>=0?A=v.isub(this.m):v.cmpn(0)<0&&(A=v.iadd(this.m)),A._forceRed(this)},F.prototype.invm=function(u){var f=this.imod(u._invmp(this.m).mul(this.r2));return f._forceRed(this)}})(t,st)}(gC)),gC.exports}var pz={},Pse;function LYe(){return Pse||(Pse=1,function(t){var e=hM(),r=Ar(),n=t;n.define=function(s,o){return new a(s,o)};function a(i,s){this.name=i,this.body=s,this.decoders={},this.encoders={}}a.prototype._createNamed=function(s){var o;try{o=c5.runInThisContext("(function "+this.name+`(entity) {
|
|
@@ -87,7 +87,7 @@ ${JSON.stringify(a.slice(-10),null,2)}. `:"",s="\nCatch the `SendTransactionErro
|
|
|
87
87
|
${n}. `+i+s;break;case"simulate":o=`Simulation failed.
|
|
88
88
|
Message: ${n}.
|
|
89
89
|
`+i+s;break;default:o=`Unknown action '${(c=>c)(e)}'`}super(o),this.signature=void 0,this.transactionMessage=void 0,this.transactionLogs=void 0,this.signature=r,this.transactionMessage=n,this.transactionLogs=a||void 0}get transactionError(){return{message:this.transactionMessage,logs:Array.isArray(this.transactionLogs)?this.transactionLogs:void 0}}get logs(){const e=this.transactionLogs;if(!(e!=null&&typeof e=="object"&&"then"in e))return e}async getLogs(e){return Array.isArray(this.transactionLogs)||(this.transactionLogs=new Promise((r,n)=>{e.getTransaction(this.signature).then(a=>{if(a&&a.meta&&a.meta.logMessages){const i=a.meta.logMessages;this.transactionLogs=i,r(i)}else n(new Error("Log messages not found"))}).catch(n)})),await this.transactionLogs}}const eQe={JSON_RPC_SERVER_ERROR_BLOCK_CLEANED_UP:-32001,JSON_RPC_SERVER_ERROR_SEND_TRANSACTION_PREFLIGHT_FAILURE:-32002,JSON_RPC_SERVER_ERROR_TRANSACTION_SIGNATURE_VERIFICATION_FAILURE:-32003,JSON_RPC_SERVER_ERROR_BLOCK_NOT_AVAILABLE:-32004,JSON_RPC_SERVER_ERROR_NODE_UNHEALTHY:-32005,JSON_RPC_SERVER_ERROR_TRANSACTION_PRECOMPILE_VERIFICATION_FAILURE:-32006,JSON_RPC_SERVER_ERROR_SLOT_SKIPPED:-32007,JSON_RPC_SERVER_ERROR_NO_SNAPSHOT:-32008,JSON_RPC_SERVER_ERROR_LONG_TERM_STORAGE_SLOT_SKIPPED:-32009,JSON_RPC_SERVER_ERROR_KEY_EXCLUDED_FROM_SECONDARY_INDEX:-32010,JSON_RPC_SERVER_ERROR_TRANSACTION_HISTORY_NOT_AVAILABLE:-32011,JSON_RPC_SCAN_ERROR:-32012,JSON_RPC_SERVER_ERROR_TRANSACTION_SIGNATURE_LEN_MISMATCH:-32013,JSON_RPC_SERVER_ERROR_BLOCK_STATUS_NOT_AVAILABLE_YET:-32014,JSON_RPC_SERVER_ERROR_UNSUPPORTED_TRANSACTION_VERSION:-32015,JSON_RPC_SERVER_ERROR_MIN_CONTEXT_SLOT_NOT_REACHED:-32016};class hr extends Error{constructor({code:e,message:r,data:n},a){super(a!=null?`${a}: ${r}`:r),this.code=void 0,this.data=void 0,this.code=e,this.data=n,this.name="SolanaJSONRPCError"}}async function iW(t,e,r,n){const a=n&&{skipPreflight:n.skipPreflight,preflightCommitment:n.preflightCommitment||n.commitment,maxRetries:n.maxRetries,minContextSlot:n.minContextSlot},i=await t.sendTransaction(e,r,a);let s;if(e.recentBlockhash!=null&&e.lastValidBlockHeight!=null)s=(await t.confirmTransaction({abortSignal:n==null?void 0:n.abortSignal,signature:i,blockhash:e.recentBlockhash,lastValidBlockHeight:e.lastValidBlockHeight},n&&n.commitment)).value;else if(e.minNonceContextSlot!=null&&e.nonceInfo!=null){const{nonceInstruction:o}=e.nonceInfo,c=o.keys[0].pubkey;s=(await t.confirmTransaction({abortSignal:n==null?void 0:n.abortSignal,minContextSlot:e.minNonceContextSlot,nonceAccountPubkey:c,nonceValue:e.nonceInfo.nonce,signature:i},n&&n.commitment)).value}else(n==null?void 0:n.abortSignal)!=null&&console.warn("sendAndConfirmTransaction(): A transaction with a deprecated confirmation strategy was supplied along with an `abortSignal`. Only transactions having `lastValidBlockHeight` or a combination of `nonceInfo` and `minNonceContextSlot` are abortable."),s=(await t.confirmTransaction(i,n&&n.commitment)).value;if(s.err)throw i!=null?new O2({action:"send",signature:i,transactionMessage:`Status: (${JSON.stringify(s)})`}):new Error(`Transaction ${i} failed (${JSON.stringify(s)})`);return i}function oh(t){return new Promise(e=>setTimeout(e,t))}function yn(t,e){const r=t.layout.span>=0?t.layout.span:Xge(t,e),n=It.Buffer.alloc(r),a=Object.assign({instruction:t.index},e);return t.layout.encode(a,n),n}function Rn(t,e){let r;try{r=t.layout.decode(e)}catch(n){throw new Error("invalid instruction; "+n)}if(r.instruction!==t.index)throw new Error(`invalid instruction; instruction index mismatch ${r.instruction} != ${t.index}`);return r}const nye=w0("lamportsPerSignature"),aye=$t([Gt("version"),Gt("state"),on("authorizedPubkey"),on("nonce"),$t([nye],"feeCalculator")]),sW=aye.span;class ok{constructor(e){this.authorizedPubkey=void 0,this.nonce=void 0,this.feeCalculator=void 0,this.authorizedPubkey=e.authorizedPubkey,this.nonce=e.nonce,this.feeCalculator=e.feeCalculator}static fromAccountData(e){const r=aye.decode(Yr(e),0);return new ok({authorizedPubkey:new $e(r.authorizedPubkey),nonce:new $e(r.nonce).toString(),feeCalculator:r.feeCalculator})}}const tQe=t=>{const e=t.decode.bind(t),r=t.encode.bind(t);return{decode:e,encode:r}},rQe=t=>e=>{const r=Qn(t,e),{encode:n,decode:a}=tQe(r),i=r;return i.decode=(s,o)=>{const c=a(s,o);return Fge(It.Buffer.from(c))},i.encode=(s,o,c)=>{const l=Kq(s,t);return n(l,o,c)},i},$9=rQe(8);class nQe{constructor(){}static decodeInstructionType(e){this.checkProgramId(e.programId);const n=Gt("instruction").decode(e.data);let a;for(const[i,s]of Object.entries(ua))if(s.index==n){a=i;break}if(!a)throw new Error("Instruction type incorrect; not a SystemInstruction");return a}static decodeCreateAccount(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,2);const{lamports:r,space:n,programId:a}=Rn(ua.Create,e.data);return{fromPubkey:e.keys[0].pubkey,newAccountPubkey:e.keys[1].pubkey,lamports:r,space:n,programId:new $e(a)}}static decodeTransfer(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,2);const{lamports:r}=Rn(ua.Transfer,e.data);return{fromPubkey:e.keys[0].pubkey,toPubkey:e.keys[1].pubkey,lamports:r}}static decodeTransferWithSeed(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,3);const{lamports:r,seed:n,programId:a}=Rn(ua.TransferWithSeed,e.data);return{fromPubkey:e.keys[0].pubkey,basePubkey:e.keys[1].pubkey,toPubkey:e.keys[2].pubkey,lamports:r,seed:n,programId:new $e(a)}}static decodeAllocate(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,1);const{space:r}=Rn(ua.Allocate,e.data);return{accountPubkey:e.keys[0].pubkey,space:r}}static decodeAllocateWithSeed(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,1);const{base:r,seed:n,space:a,programId:i}=Rn(ua.AllocateWithSeed,e.data);return{accountPubkey:e.keys[0].pubkey,basePubkey:new $e(r),seed:n,space:a,programId:new $e(i)}}static decodeAssign(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,1);const{programId:r}=Rn(ua.Assign,e.data);return{accountPubkey:e.keys[0].pubkey,programId:new $e(r)}}static decodeAssignWithSeed(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,1);const{base:r,seed:n,programId:a}=Rn(ua.AssignWithSeed,e.data);return{accountPubkey:e.keys[0].pubkey,basePubkey:new $e(r),seed:n,programId:new $e(a)}}static decodeCreateWithSeed(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,2);const{base:r,seed:n,lamports:a,space:i,programId:s}=Rn(ua.CreateWithSeed,e.data);return{fromPubkey:e.keys[0].pubkey,newAccountPubkey:e.keys[1].pubkey,basePubkey:new $e(r),seed:n,lamports:a,space:i,programId:new $e(s)}}static decodeNonceInitialize(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,3);const{authorized:r}=Rn(ua.InitializeNonceAccount,e.data);return{noncePubkey:e.keys[0].pubkey,authorizedPubkey:new $e(r)}}static decodeNonceAdvance(e){return this.checkProgramId(e.programId),this.checkKeyLength(e.keys,3),Rn(ua.AdvanceNonceAccount,e.data),{noncePubkey:e.keys[0].pubkey,authorizedPubkey:e.keys[2].pubkey}}static decodeNonceWithdraw(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,5);const{lamports:r}=Rn(ua.WithdrawNonceAccount,e.data);return{noncePubkey:e.keys[0].pubkey,toPubkey:e.keys[1].pubkey,authorizedPubkey:e.keys[4].pubkey,lamports:r}}static decodeNonceAuthorize(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,2);const{authorized:r}=Rn(ua.AuthorizeNonceAccount,e.data);return{noncePubkey:e.keys[0].pubkey,authorizedPubkey:e.keys[1].pubkey,newAuthorizedPubkey:new $e(r)}}static checkProgramId(e){if(!e.equals(Or.programId))throw new Error("invalid instruction; programId is not SystemProgram")}static checkKeyLength(e,r){if(e.length<r)throw new Error(`invalid instruction; found ${e.length} keys, expected at least ${r}`)}}const ua=Object.freeze({Create:{index:0,layout:$t([Gt("instruction"),So("lamports"),So("space"),on("programId")])},Assign:{index:1,layout:$t([Gt("instruction"),on("programId")])},Transfer:{index:2,layout:$t([Gt("instruction"),$9("lamports")])},CreateWithSeed:{index:3,layout:$t([Gt("instruction"),on("base"),Sh("seed"),So("lamports"),So("space"),on("programId")])},AdvanceNonceAccount:{index:4,layout:$t([Gt("instruction")])},WithdrawNonceAccount:{index:5,layout:$t([Gt("instruction"),So("lamports")])},InitializeNonceAccount:{index:6,layout:$t([Gt("instruction"),on("authorized")])},AuthorizeNonceAccount:{index:7,layout:$t([Gt("instruction"),on("authorized")])},Allocate:{index:8,layout:$t([Gt("instruction"),So("space")])},AllocateWithSeed:{index:9,layout:$t([Gt("instruction"),on("base"),Sh("seed"),So("space"),on("programId")])},AssignWithSeed:{index:10,layout:$t([Gt("instruction"),on("base"),Sh("seed"),on("programId")])},TransferWithSeed:{index:11,layout:$t([Gt("instruction"),$9("lamports"),Sh("seed"),on("programId")])},UpgradeNonceAccount:{index:12,layout:$t([Gt("instruction")])}});class Or{constructor(){}static createAccount(e){const r=ua.Create,n=yn(r,{lamports:e.lamports,space:e.space,programId:Yr(e.programId.toBuffer())});return new vn({keys:[{pubkey:e.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:e.newAccountPubkey,isSigner:!0,isWritable:!0}],programId:this.programId,data:n})}static transfer(e){let r,n;if("basePubkey"in e){const a=ua.TransferWithSeed;r=yn(a,{lamports:BigInt(e.lamports),seed:e.seed,programId:Yr(e.programId.toBuffer())}),n=[{pubkey:e.fromPubkey,isSigner:!1,isWritable:!0},{pubkey:e.basePubkey,isSigner:!0,isWritable:!1},{pubkey:e.toPubkey,isSigner:!1,isWritable:!0}]}else{const a=ua.Transfer;r=yn(a,{lamports:BigInt(e.lamports)}),n=[{pubkey:e.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:e.toPubkey,isSigner:!1,isWritable:!0}]}return new vn({keys:n,programId:this.programId,data:r})}static assign(e){let r,n;if("basePubkey"in e){const a=ua.AssignWithSeed;r=yn(a,{base:Yr(e.basePubkey.toBuffer()),seed:e.seed,programId:Yr(e.programId.toBuffer())}),n=[{pubkey:e.accountPubkey,isSigner:!1,isWritable:!0},{pubkey:e.basePubkey,isSigner:!0,isWritable:!1}]}else{const a=ua.Assign;r=yn(a,{programId:Yr(e.programId.toBuffer())}),n=[{pubkey:e.accountPubkey,isSigner:!0,isWritable:!0}]}return new vn({keys:n,programId:this.programId,data:r})}static createAccountWithSeed(e){const r=ua.CreateWithSeed,n=yn(r,{base:Yr(e.basePubkey.toBuffer()),seed:e.seed,lamports:e.lamports,space:e.space,programId:Yr(e.programId.toBuffer())});let a=[{pubkey:e.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:e.newAccountPubkey,isSigner:!1,isWritable:!0}];return e.basePubkey.equals(e.fromPubkey)||a.push({pubkey:e.basePubkey,isSigner:!0,isWritable:!1}),new vn({keys:a,programId:this.programId,data:n})}static createNonceAccount(e){const r=new Sr;"basePubkey"in e&&"seed"in e?r.add(Or.createAccountWithSeed({fromPubkey:e.fromPubkey,newAccountPubkey:e.noncePubkey,basePubkey:e.basePubkey,seed:e.seed,lamports:e.lamports,space:sW,programId:this.programId})):r.add(Or.createAccount({fromPubkey:e.fromPubkey,newAccountPubkey:e.noncePubkey,lamports:e.lamports,space:sW,programId:this.programId}));const n={noncePubkey:e.noncePubkey,authorizedPubkey:e.authorizedPubkey};return r.add(this.nonceInitialize(n)),r}static nonceInitialize(e){const r=ua.InitializeNonceAccount,n=yn(r,{authorized:Yr(e.authorizedPubkey.toBuffer())}),a={keys:[{pubkey:e.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:wC,isSigner:!1,isWritable:!1},{pubkey:_s,isSigner:!1,isWritable:!1}],programId:this.programId,data:n};return new vn(a)}static nonceAdvance(e){const r=ua.AdvanceNonceAccount,n=yn(r),a={keys:[{pubkey:e.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:wC,isSigner:!1,isWritable:!1},{pubkey:e.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:n};return new vn(a)}static nonceWithdraw(e){const r=ua.WithdrawNonceAccount,n=yn(r,{lamports:e.lamports});return new vn({keys:[{pubkey:e.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:e.toPubkey,isSigner:!1,isWritable:!0},{pubkey:wC,isSigner:!1,isWritable:!1},{pubkey:_s,isSigner:!1,isWritable:!1},{pubkey:e.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:n})}static nonceAuthorize(e){const r=ua.AuthorizeNonceAccount,n=yn(r,{authorized:Yr(e.newAuthorizedPubkey.toBuffer())});return new vn({keys:[{pubkey:e.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:e.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:n})}static allocate(e){let r,n;if("basePubkey"in e){const a=ua.AllocateWithSeed;r=yn(a,{base:Yr(e.basePubkey.toBuffer()),seed:e.seed,space:e.space,programId:Yr(e.programId.toBuffer())}),n=[{pubkey:e.accountPubkey,isSigner:!1,isWritable:!0},{pubkey:e.basePubkey,isSigner:!0,isWritable:!1}]}else{const a=ua.Allocate;r=yn(a,{space:e.space}),n=[{pubkey:e.accountPubkey,isSigner:!0,isWritable:!0}]}return new vn({keys:n,programId:this.programId,data:r})}}Or.programId=new $e("11111111111111111111111111111111");const aQe=p2-300;class G8{constructor(){}static getMinNumSignatures(e){return 2*(Math.ceil(e/G8.chunkSize)+1+1)}static async load(e,r,n,a,i){{const h=await e.getMinimumBalanceForRentExemption(i.length),m=await e.getAccountInfo(n.publicKey,"confirmed");let y=null;if(m!==null){if(m.executable)return console.error("Program load failed, account is already executable"),!1;m.data.length!==i.length&&(y=y||new Sr,y.add(Or.allocate({accountPubkey:n.publicKey,space:i.length}))),m.owner.equals(a)||(y=y||new Sr,y.add(Or.assign({accountPubkey:n.publicKey,programId:a}))),m.lamports<h&&(y=y||new Sr,y.add(Or.transfer({fromPubkey:r.publicKey,toPubkey:n.publicKey,lamports:h-m.lamports})))}else y=new Sr().add(Or.createAccount({fromPubkey:r.publicKey,newAccountPubkey:n.publicKey,lamports:h>0?h:1,space:i.length,programId:a}));y!==null&&await iW(e,y,[r,n],{commitment:"confirmed"})}const s=$t([Gt("instruction"),Gt("offset"),Gt("bytesLength"),Gt("bytesLengthPadding"),f0(Cr("byte"),f2(Gt(),-8),"bytes")]),o=G8.chunkSize;let c=0,l=i,d=[];for(;l.length>0;){const h=l.slice(0,o),m=It.Buffer.alloc(o+16);s.encode({instruction:0,offset:c,bytes:h,bytesLength:0,bytesLengthPadding:0},m);const y=new Sr().add({keys:[{pubkey:n.publicKey,isSigner:!0,isWritable:!0}],programId:a,data:m});d.push(iW(e,y,[r,n],{commitment:"confirmed"})),e._rpcEndpoint.includes("solana.com")&&await oh(1e3/4),c+=o,l=l.slice(o)}await Promise.all(d);{const h=$t([Gt("instruction")]),m=It.Buffer.alloc(h.span);h.encode({instruction:1},m);const y=new Sr().add({keys:[{pubkey:n.publicKey,isSigner:!0,isWritable:!0},{pubkey:_s,isSigner:!1,isWritable:!1}],programId:a,data:m}),x="processed",M=await e.sendTransaction(y,[r,n],{preflightCommitment:x}),{context:E,value:S}=await e.confirmTransaction({signature:M,lastValidBlockHeight:y.lastValidBlockHeight,blockhash:y.recentBlockhash},x);if(S.err)throw new Error(`Transaction ${M} failed (${JSON.stringify(S)})`);for(;;){try{if(await e.getSlot({commitment:x})>E.slot)break}catch{}await new Promise(T=>setTimeout(T,Math.round(tye/2)))}}return!0}}G8.chunkSize=aQe;const iQe=new $e("BPFLoader2111111111111111111111111111111111");class sQe{static getMinNumSignatures(e){return G8.getMinNumSignatures(e)}static load(e,r,n,a,i){return G8.load(e,r,n,i,a)}}function oQe(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Gz,Boe;function cQe(){if(Boe)return Gz;Boe=1;var t=Object.prototype.toString,e=Object.keys||function(n){var a=[];for(var i in n)a.push(i);return a};function r(n,a){var i,s,o,c,l,d,h;if(n===!0)return"true";if(n===!1)return"false";switch(typeof n){case"object":if(n===null)return null;if(n.toJSON&&typeof n.toJSON=="function")return r(n.toJSON(),a);if(h=t.call(n),h==="[object Array]"){for(o="[",s=n.length-1,i=0;i<s;i++)o+=r(n[i],!0)+",";return s>-1&&(o+=r(n[i],!0)),o+"]"}else if(h==="[object Object]"){for(c=e(n).sort(),s=c.length,o="",i=0;i<s;)l=c[i],d=r(n[l],!1),d!==void 0&&(o&&(o+=","),o+=JSON.stringify(l)+":"+d),i++;return"{"+o+"}"}else return JSON.stringify(n);case"function":case"undefined":return a?null:void 0;case"string":return JSON.stringify(n);default:return isFinite(n)?n:null}}return Gz=function(n){var a=r(n,!1);if(a!==void 0)return""+a},Gz}var lQe=cQe(),joe=oQe(lQe);const Ky=32;function Yz(t){let e=0;for(;t>1;)t/=2,e++;return e}function uQe(t){return t===0?1:(t--,t|=t>>1,t|=t>>2,t|=t>>4,t|=t>>8,t|=t>>16,t|=t>>32,t+1)}class iye{constructor(e,r,n,a,i){this.slotsPerEpoch=void 0,this.leaderScheduleSlotOffset=void 0,this.warmup=void 0,this.firstNormalEpoch=void 0,this.firstNormalSlot=void 0,this.slotsPerEpoch=e,this.leaderScheduleSlotOffset=r,this.warmup=n,this.firstNormalEpoch=a,this.firstNormalSlot=i}getEpoch(e){return this.getEpochAndSlotIndex(e)[0]}getEpochAndSlotIndex(e){if(e<this.firstNormalSlot){const r=Yz(uQe(e+Ky+1))-Yz(Ky)-1,n=this.getSlotsInEpoch(r),a=e-(n-Ky);return[r,a]}else{const r=e-this.firstNormalSlot,n=Math.floor(r/this.slotsPerEpoch),a=this.firstNormalEpoch+n,i=r%this.slotsPerEpoch;return[a,i]}}getFirstSlotInEpoch(e){return e<=this.firstNormalEpoch?(Math.pow(2,e)-1)*Ky:(e-this.firstNormalEpoch)*this.slotsPerEpoch+this.firstNormalSlot}getLastSlotInEpoch(e){return this.getFirstSlotInEpoch(e)+this.getSlotsInEpoch(e)-1}getSlotsInEpoch(e){return e<this.firstNormalEpoch?Math.pow(2,e+Yz(Ky)):this.slotsPerEpoch}}var dQe=globalThis.fetch;class fQe extends BZe{constructor(e,r,n){const a=i=>{const s=_Ze(i,{autoconnect:!0,max_reconnects:5,reconnect:!0,reconnect_interval:1e3,...r});return"socket"in s?this.underlyingSocket=s.socket:this.underlyingSocket=s,s};super(a,e,r,n),this.underlyingSocket=void 0}call(...e){var n;const r=(n=this.underlyingSocket)==null?void 0:n.readyState;return r===1?super.call(...e):Promise.reject(new Error("Tried to call a JSON-RPC method `"+e[0]+"` but the socket was not `CONNECTING` or `OPEN` (`readyState` was "+r+")"))}notify(...e){var n;const r=(n=this.underlyingSocket)==null?void 0:n.readyState;return r===1?super.notify(...e):Promise.reject(new Error("Tried to send a JSON-RPC notification `"+e[0]+"` but the socket was not `CONNECTING` or `OPEN` (`readyState` was "+r+")"))}}function pQe(t,e){let r;try{r=t.layout.decode(e)}catch(n){throw new Error("invalid instruction; "+n)}if(r.typeIndex!==t.index)throw new Error(`invalid account data; account type mismatch ${r.typeIndex} != ${t.index}`);return r}const zoe=56;class sI{constructor(e){this.key=void 0,this.state=void 0,this.key=e.key,this.state=e.state}isActive(){const e=BigInt("0xffffffffffffffff");return this.state.deactivationSlot===e}static deserialize(e){const r=pQe(hQe,e),n=e.length-zoe;Dn(n>=0,"lookup table is invalid"),Dn(n%32===0,"lookup table is invalid");const a=n/32,{addresses:i}=$t([f0(on(),a,"addresses")]).decode(e.slice(zoe));return{deactivationSlot:r.deactivationSlot,lastExtendedSlot:r.lastExtendedSlot,lastExtendedSlotStartIndex:r.lastExtendedStartIndex,authority:r.authority.length!==0?new $e(r.authority[0]):void 0,addresses:i.map(s=>new $e(s))}}}const hQe={index:1,layout:$t([Gt("typeIndex"),$9("deactivationSlot"),w0("lastExtendedSlot"),Cr("lastExtendedStartIndex"),Cr(),f0(on(),f2(Cr(),-1),"authority")])},mQe=/^[^:]+:\/\/([^:[]+|\[[^\]]+\])(:\d+)?(.*)/i;function bQe(t){const e=t.match(mQe);if(e==null)throw TypeError(`Failed to validate endpoint URL \`${t}\``);const[r,n,a,i]=e,s=t.startsWith("https:")?"wss:":"ws:",o=a==null?null:parseInt(a.slice(1),10),c=o==null?"":`:${o+1}`;return`${s}//${n}${c}${i}`}const qa=vM(Qq($e),Rt(),t=>new $e(t)),sye=Jq([Rt(),Ra("base64")]),iG=vM(Qq(It.Buffer),sye,t=>It.Buffer.from(t[0],"base64")),oye=30*1e3;function gQe(t){if(/^https?:/.test(t)===!1)throw new TypeError("Endpoint URL must start with `http:` or `https:`.");return t}function ca(t){let e,r;if(typeof t=="string")e=t;else if(t){const{commitment:n,...a}=t;e=n,r=a}return{commitment:e,config:r}}function Poe(t){return t.map(e=>"memcmp"in e?{...e,memcmp:{...e.memcmp,encoding:e.memcmp.encoding??"base58"}}:e)}function cye(t){return ks([St({jsonrpc:Ra("2.0"),id:Rt(),result:t}),St({jsonrpc:Ra("2.0"),id:Rt(),error:St({code:Jg(),message:Rt(),data:Mr(nZe())})})])}const yQe=cye(Jg());function Gr(t){return vM(cye(t),yQe,e=>"error"in e?e:{...e,result:Wt(e.result,t)})}function vi(t){return Gr(St({context:St({slot:rt()}),value:t}))}function ck(t){return St({context:St({slot:rt()}),value:t})}function Kz(t,e){return t===0?new z2({header:e.header,staticAccountKeys:e.accountKeys.map(r=>new $e(r)),recentBlockhash:e.recentBlockhash,compiledInstructions:e.instructions.map(r=>({programIdIndex:r.programIdIndex,accountKeyIndexes:r.accounts,data:Wa.decode(r.data)})),addressTableLookups:e.addressTableLookups}):new K1(e)}const vQe=St({foundation:rt(),foundationTerm:rt(),initial:rt(),taper:rt(),terminal:rt()}),xQe=Gr(Yt(Qt(St({epoch:rt(),effectiveSlot:rt(),amount:rt(),postBalance:rt(),commission:Mr(Qt(rt()))})))),wQe=Yt(St({slot:rt(),prioritizationFee:rt()})),MQe=St({total:rt(),validator:rt(),foundation:rt(),epoch:rt()}),AQe=St({epoch:rt(),slotIndex:rt(),slotsInEpoch:rt(),absoluteSlot:rt(),blockHeight:Mr(rt()),transactionCount:Mr(rt())}),SQe=St({slotsPerEpoch:rt(),leaderScheduleSlotOffset:rt(),warmup:cu(),firstNormalEpoch:rt(),firstNormalSlot:rt()}),EQe=Vge(Rt(),Yt(rt())),x3=Qt(ks([St({}),Rt()])),CQe=St({err:x3}),TQe=Ra("receivedSignature"),IQe=St({"solana-core":Rt(),"feature-set":Mr(rt())}),DQe=St({program:Rt(),programId:qa,parsed:Jg()}),NQe=St({programId:qa,accounts:Yt(qa),data:Rt()}),Ooe=vi(St({err:Qt(ks([St({}),Rt()])),logs:Qt(Yt(Rt())),accounts:Mr(Qt(Yt(Qt(St({executable:cu(),owner:Rt(),lamports:rt(),data:Yt(Rt()),rentEpoch:Mr(rt())}))))),unitsConsumed:Mr(rt()),returnData:Mr(Qt(St({programId:Rt(),data:Jq([Rt(),Ra("base64")])}))),innerInstructions:Mr(Qt(Yt(St({index:rt(),instructions:Yt(ks([DQe,NQe]))}))))})),kQe=vi(St({byIdentity:Vge(Rt(),Yt(rt())),range:St({firstSlot:rt(),lastSlot:rt()})}));function _Qe(t,e,r,n,a,i){const s=r||dQe;let o;i!=null&&console.warn("You have supplied an `httpAgent` when creating a `Connection` in a browser environment.It has been ignored; `httpAgent` is only used in Node environments.");let c;return n&&(c=async(d,h)=>{const m=await new Promise((y,x)=>{try{n(d,h,(M,E)=>y([M,E]))}catch(M){x(M)}});return await s(...m)}),new Kge(async(d,h)=>{const m={method:"POST",body:d,agent:o,headers:Object.assign({"Content-Type":"application/json"},e||{},_Je)};try{let y=5,x,M=500;for(;c?x=await c(t,m):x=await s(t,m),!(x.status!==429||a===!0||(y-=1,y===0));)console.error(`Server responded with ${x.status} ${x.statusText}. Retrying after ${M}ms delay...`),await oh(M),M*=2;const E=await x.text();x.ok?h(null,E):h(new Error(`${x.status} ${x.statusText}: ${E}`))}catch(y){y instanceof Error&&h(y)}},{})}function LQe(t){return(e,r)=>new Promise((n,a)=>{t.request(e,r,(i,s)=>{if(i){a(i);return}n(s)})})}function BQe(t){return e=>new Promise((r,n)=>{e.length===0&&r([]);const a=e.map(i=>t.request(i.methodName,i.args));t.request(a,(i,s)=>{if(i){n(i);return}r(s)})})}const jQe=Gr(vQe),zQe=Gr(MQe),PQe=Gr(wQe),OQe=Gr(AQe),RQe=Gr(SQe),FQe=Gr(EQe),UQe=Gr(rt()),WQe=vi(St({total:rt(),circulating:rt(),nonCirculating:rt(),nonCirculatingAccounts:Yt(qa)})),oW=St({amount:Rt(),uiAmount:Qt(rt()),decimals:rt(),uiAmountString:Mr(Rt())}),VQe=vi(Yt(St({address:qa,amount:Rt(),uiAmount:Qt(rt()),decimals:rt(),uiAmountString:Mr(Rt())}))),$Qe=vi(Yt(St({pubkey:qa,account:St({executable:cu(),owner:qa,lamports:rt(),data:iG,rentEpoch:rt()})}))),cW=St({program:Rt(),parsed:Jg(),space:rt()}),HQe=vi(Yt(St({pubkey:qa,account:St({executable:cu(),owner:qa,lamports:rt(),data:cW,rentEpoch:rt()})}))),qQe=vi(Yt(St({lamports:rt(),address:qa}))),Ux=St({executable:cu(),owner:qa,lamports:rt(),data:iG,rentEpoch:rt()}),GQe=St({pubkey:qa,account:Ux}),YQe=vM(ks([Qq(It.Buffer),cW]),ks([sye,cW]),t=>Array.isArray(t)?Wt(t,iG):t),lW=St({executable:cu(),owner:qa,lamports:rt(),data:YQe,rentEpoch:rt()}),KQe=St({pubkey:qa,account:lW}),ZQe=St({state:ks([Ra("active"),Ra("inactive"),Ra("activating"),Ra("deactivating")]),active:rt(),inactive:rt()}),QQe=Gr(Yt(St({signature:Rt(),slot:rt(),err:x3,memo:Qt(Rt()),blockTime:Mr(Qt(rt()))}))),JQe=Gr(Yt(St({signature:Rt(),slot:rt(),err:x3,memo:Qt(Rt()),blockTime:Mr(Qt(rt()))}))),XQe=St({subscription:rt(),result:ck(Ux)}),eJe=St({pubkey:qa,account:Ux}),tJe=St({subscription:rt(),result:ck(eJe)}),rJe=St({parent:rt(),slot:rt(),root:rt()}),nJe=St({subscription:rt(),result:rJe}),aJe=ks([St({type:ks([Ra("firstShredReceived"),Ra("completed"),Ra("optimisticConfirmation"),Ra("root")]),slot:rt(),timestamp:rt()}),St({type:Ra("createdBank"),parent:rt(),slot:rt(),timestamp:rt()}),St({type:Ra("frozen"),slot:rt(),timestamp:rt(),stats:St({numTransactionEntries:rt(),numSuccessfulTransactions:rt(),numFailedTransactions:rt(),maxTransactionsPerEntry:rt()})}),St({type:Ra("dead"),slot:rt(),timestamp:rt(),err:Rt()})]),iJe=St({subscription:rt(),result:aJe}),sJe=St({subscription:rt(),result:ck(ks([CQe,TQe]))}),oJe=St({subscription:rt(),result:rt()}),cJe=St({pubkey:Rt(),gossip:Qt(Rt()),tpu:Qt(Rt()),rpc:Qt(Rt()),version:Qt(Rt())}),Roe=St({votePubkey:Rt(),nodePubkey:Rt(),activatedStake:rt(),epochVoteAccount:cu(),epochCredits:Yt(Jq([rt(),rt(),rt()])),commission:rt(),lastVote:rt(),rootSlot:Qt(rt())}),lJe=Gr(St({current:Yt(Roe),delinquent:Yt(Roe)})),uJe=ks([Ra("processed"),Ra("confirmed"),Ra("finalized")]),dJe=St({slot:rt(),confirmations:Qt(rt()),err:x3,confirmationStatus:Mr(uJe)}),fJe=vi(Yt(Qt(dJe))),pJe=Gr(rt()),lye=St({accountKey:qa,writableIndexes:Yt(rt()),readonlyIndexes:Yt(rt())}),sG=St({signatures:Yt(Rt()),message:St({accountKeys:Yt(Rt()),header:St({numRequiredSignatures:rt(),numReadonlySignedAccounts:rt(),numReadonlyUnsignedAccounts:rt()}),instructions:Yt(St({accounts:Yt(rt()),data:Rt(),programIdIndex:rt()})),recentBlockhash:Rt(),addressTableLookups:Mr(Yt(lye))})}),uye=St({pubkey:qa,signer:cu(),writable:cu(),source:Mr(ks([Ra("transaction"),Ra("lookupTable")]))}),dye=St({accountKeys:Yt(uye),signatures:Yt(Rt())}),fye=St({parsed:Jg(),program:Rt(),programId:qa}),pye=St({accounts:Yt(qa),data:Rt(),programId:qa}),hJe=ks([pye,fye]),mJe=ks([St({parsed:Jg(),program:Rt(),programId:Rt()}),St({accounts:Yt(Rt()),data:Rt(),programId:Rt()})]),hye=vM(hJe,mJe,t=>"accounts"in t?Wt(t,pye):Wt(t,fye)),mye=St({signatures:Yt(Rt()),message:St({accountKeys:Yt(uye),instructions:Yt(hye),recentBlockhash:Rt(),addressTableLookups:Mr(Qt(Yt(lye)))})}),oI=St({accountIndex:rt(),mint:Rt(),owner:Mr(Rt()),programId:Mr(Rt()),uiTokenAmount:oW}),bye=St({writable:Yt(qa),readonly:Yt(qa)}),lk=St({err:x3,fee:rt(),innerInstructions:Mr(Qt(Yt(St({index:rt(),instructions:Yt(St({accounts:Yt(rt()),data:Rt(),programIdIndex:rt()}))})))),preBalances:Yt(rt()),postBalances:Yt(rt()),logMessages:Mr(Qt(Yt(Rt()))),preTokenBalances:Mr(Qt(Yt(oI))),postTokenBalances:Mr(Qt(Yt(oI))),loadedAddresses:Mr(bye),computeUnitsConsumed:Mr(rt())}),oG=St({err:x3,fee:rt(),innerInstructions:Mr(Qt(Yt(St({index:rt(),instructions:Yt(hye)})))),preBalances:Yt(rt()),postBalances:Yt(rt()),logMessages:Mr(Qt(Yt(Rt()))),preTokenBalances:Mr(Qt(Yt(oI))),postTokenBalances:Mr(Qt(Yt(oI))),loadedAddresses:Mr(bye),computeUnitsConsumed:Mr(rt())}),Xg=ks([Ra(0),Ra("legacy")]),w3=St({pubkey:Rt(),lamports:rt(),postBalance:Qt(rt()),rewardType:Qt(Rt()),commission:Mr(Qt(rt()))}),bJe=Gr(Qt(St({blockhash:Rt(),previousBlockhash:Rt(),parentSlot:rt(),transactions:Yt(St({transaction:sG,meta:Qt(lk),version:Mr(Xg)})),rewards:Mr(Yt(w3)),blockTime:Qt(rt()),blockHeight:Qt(rt())}))),gJe=Gr(Qt(St({blockhash:Rt(),previousBlockhash:Rt(),parentSlot:rt(),rewards:Mr(Yt(w3)),blockTime:Qt(rt()),blockHeight:Qt(rt())}))),yJe=Gr(Qt(St({blockhash:Rt(),previousBlockhash:Rt(),parentSlot:rt(),transactions:Yt(St({transaction:dye,meta:Qt(lk),version:Mr(Xg)})),rewards:Mr(Yt(w3)),blockTime:Qt(rt()),blockHeight:Qt(rt())}))),vJe=Gr(Qt(St({blockhash:Rt(),previousBlockhash:Rt(),parentSlot:rt(),transactions:Yt(St({transaction:mye,meta:Qt(oG),version:Mr(Xg)})),rewards:Mr(Yt(w3)),blockTime:Qt(rt()),blockHeight:Qt(rt())}))),xJe=Gr(Qt(St({blockhash:Rt(),previousBlockhash:Rt(),parentSlot:rt(),transactions:Yt(St({transaction:dye,meta:Qt(oG),version:Mr(Xg)})),rewards:Mr(Yt(w3)),blockTime:Qt(rt()),blockHeight:Qt(rt())}))),wJe=Gr(Qt(St({blockhash:Rt(),previousBlockhash:Rt(),parentSlot:rt(),rewards:Mr(Yt(w3)),blockTime:Qt(rt()),blockHeight:Qt(rt())}))),MJe=Gr(Qt(St({blockhash:Rt(),previousBlockhash:Rt(),parentSlot:rt(),transactions:Yt(St({transaction:sG,meta:Qt(lk)})),rewards:Mr(Yt(w3)),blockTime:Qt(rt())}))),Foe=Gr(Qt(St({blockhash:Rt(),previousBlockhash:Rt(),parentSlot:rt(),signatures:Yt(Rt()),blockTime:Qt(rt())}))),Zz=Gr(Qt(St({slot:rt(),meta:Qt(lk),blockTime:Mr(Qt(rt())),transaction:sG,version:Mr(Xg)}))),iS=Gr(Qt(St({slot:rt(),transaction:mye,meta:Qt(oG),blockTime:Mr(Qt(rt())),version:Mr(Xg)}))),AJe=vi(St({blockhash:Rt(),lastValidBlockHeight:rt()})),SJe=vi(cu()),EJe=St({slot:rt(),numTransactions:rt(),numSlots:rt(),samplePeriodSecs:rt()}),CJe=Gr(Yt(EJe)),TJe=vi(Qt(St({feeCalculator:St({lamportsPerSignature:rt()})}))),IJe=Gr(Rt()),DJe=Gr(Rt()),NJe=St({err:x3,logs:Yt(Rt()),signature:Rt()}),kJe=St({result:ck(NJe),subscription:rt()}),_Je={"solana-client":"js/1.0.0-maintenance"};let ey=class{constructor(e,r){this._commitment=void 0,this._confirmTransactionInitialTimeout=void 0,this._rpcEndpoint=void 0,this._rpcWsEndpoint=void 0,this._rpcClient=void 0,this._rpcRequest=void 0,this._rpcBatchRequest=void 0,this._rpcWebSocket=void 0,this._rpcWebSocketConnected=!1,this._rpcWebSocketHeartbeat=null,this._rpcWebSocketIdleTimeout=null,this._rpcWebSocketGeneration=0,this._disableBlockhashCaching=!1,this._pollingBlockhash=!1,this._blockhashInfo={latestBlockhash:null,lastFetch:0,transactionSignatures:[],simulatedSignatures:[]},this._nextClientSubscriptionId=0,this._subscriptionDisposeFunctionsByClientSubscriptionId={},this._subscriptionHashByClientSubscriptionId={},this._subscriptionStateChangeCallbacksByHash={},this._subscriptionCallbacksByServerSubscriptionId={},this._subscriptionsByHash={},this._subscriptionsAutoDisposedByRpc=new Set,this.getBlockHeight=(()=>{const l={};return async d=>{const{commitment:h,config:m}=ca(d),y=this._buildArgs([],h,void 0,m),x=joe(y);return l[x]=l[x]??(async()=>{try{const M=await this._rpcRequest("getBlockHeight",y),E=Wt(M,Gr(rt()));if("error"in E)throw new hr(E.error,"failed to get block height information");return E.result}finally{delete l[x]}})(),await l[x]}})();let n,a,i,s,o,c;r&&typeof r=="string"?this._commitment=r:r&&(this._commitment=r.commitment,this._confirmTransactionInitialTimeout=r.confirmTransactionInitialTimeout,n=r.wsEndpoint,a=r.httpHeaders,i=r.fetch,s=r.fetchMiddleware,o=r.disableRetryOnRateLimit,c=r.httpAgent),this._rpcEndpoint=gQe(e),this._rpcWsEndpoint=n||bQe(e),this._rpcClient=_Qe(e,a,i,s,o,c),this._rpcRequest=LQe(this._rpcClient),this._rpcBatchRequest=BQe(this._rpcClient),this._rpcWebSocket=new fQe(this._rpcWsEndpoint,{autoconnect:!1,max_reconnects:1/0}),this._rpcWebSocket.on("open",this._wsOnOpen.bind(this)),this._rpcWebSocket.on("error",this._wsOnError.bind(this)),this._rpcWebSocket.on("close",this._wsOnClose.bind(this)),this._rpcWebSocket.on("accountNotification",this._wsOnAccountNotification.bind(this)),this._rpcWebSocket.on("programNotification",this._wsOnProgramAccountNotification.bind(this)),this._rpcWebSocket.on("slotNotification",this._wsOnSlotNotification.bind(this)),this._rpcWebSocket.on("slotsUpdatesNotification",this._wsOnSlotUpdatesNotification.bind(this)),this._rpcWebSocket.on("signatureNotification",this._wsOnSignatureNotification.bind(this)),this._rpcWebSocket.on("rootNotification",this._wsOnRootNotification.bind(this)),this._rpcWebSocket.on("logsNotification",this._wsOnLogsNotification.bind(this))}get commitment(){return this._commitment}get rpcEndpoint(){return this._rpcEndpoint}async getBalanceAndContext(e,r){const{commitment:n,config:a}=ca(r),i=this._buildArgs([e.toBase58()],n,void 0,a),s=await this._rpcRequest("getBalance",i),o=Wt(s,vi(rt()));if("error"in o)throw new hr(o.error,`failed to get balance for ${e.toBase58()}`);return o.result}async getBalance(e,r){return await this.getBalanceAndContext(e,r).then(n=>n.value).catch(n=>{throw new Error("failed to get balance of account "+e.toBase58()+": "+n)})}async getBlockTime(e){const r=await this._rpcRequest("getBlockTime",[e]),n=Wt(r,Gr(Qt(rt())));if("error"in n)throw new hr(n.error,`failed to get block time for slot ${e}`);return n.result}async getMinimumLedgerSlot(){const e=await this._rpcRequest("minimumLedgerSlot",[]),r=Wt(e,Gr(rt()));if("error"in r)throw new hr(r.error,"failed to get minimum ledger slot");return r.result}async getFirstAvailableBlock(){const e=await this._rpcRequest("getFirstAvailableBlock",[]),r=Wt(e,UQe);if("error"in r)throw new hr(r.error,"failed to get first available block");return r.result}async getSupply(e){let r={};typeof e=="string"?r={commitment:e}:e?r={...e,commitment:e&&e.commitment||this.commitment}:r={commitment:this.commitment};const n=await this._rpcRequest("getSupply",[r]),a=Wt(n,WQe);if("error"in a)throw new hr(a.error,"failed to get supply");return a.result}async getTokenSupply(e,r){const n=this._buildArgs([e.toBase58()],r),a=await this._rpcRequest("getTokenSupply",n),i=Wt(a,vi(oW));if("error"in i)throw new hr(i.error,"failed to get token supply");return i.result}async getTokenAccountBalance(e,r){const n=this._buildArgs([e.toBase58()],r),a=await this._rpcRequest("getTokenAccountBalance",n),i=Wt(a,vi(oW));if("error"in i)throw new hr(i.error,"failed to get token account balance");return i.result}async getTokenAccountsByOwner(e,r,n){const{commitment:a,config:i}=ca(n);let s=[e.toBase58()];"mint"in r?s.push({mint:r.mint.toBase58()}):s.push({programId:r.programId.toBase58()});const o=this._buildArgs(s,a,"base64",i),c=await this._rpcRequest("getTokenAccountsByOwner",o),l=Wt(c,$Qe);if("error"in l)throw new hr(l.error,`failed to get token accounts owned by account ${e.toBase58()}`);return l.result}async getParsedTokenAccountsByOwner(e,r,n){let a=[e.toBase58()];"mint"in r?a.push({mint:r.mint.toBase58()}):a.push({programId:r.programId.toBase58()});const i=this._buildArgs(a,n,"jsonParsed"),s=await this._rpcRequest("getTokenAccountsByOwner",i),o=Wt(s,HQe);if("error"in o)throw new hr(o.error,`failed to get token accounts owned by account ${e.toBase58()}`);return o.result}async getLargestAccounts(e){const r={...e,commitment:e&&e.commitment||this.commitment},n=r.filter||r.commitment?[r]:[],a=await this._rpcRequest("getLargestAccounts",n),i=Wt(a,qQe);if("error"in i)throw new hr(i.error,"failed to get largest accounts");return i.result}async getTokenLargestAccounts(e,r){const n=this._buildArgs([e.toBase58()],r),a=await this._rpcRequest("getTokenLargestAccounts",n),i=Wt(a,VQe);if("error"in i)throw new hr(i.error,"failed to get token largest accounts");return i.result}async getAccountInfoAndContext(e,r){const{commitment:n,config:a}=ca(r),i=this._buildArgs([e.toBase58()],n,"base64",a),s=await this._rpcRequest("getAccountInfo",i),o=Wt(s,vi(Qt(Ux)));if("error"in o)throw new hr(o.error,`failed to get info about account ${e.toBase58()}`);return o.result}async getParsedAccountInfo(e,r){const{commitment:n,config:a}=ca(r),i=this._buildArgs([e.toBase58()],n,"jsonParsed",a),s=await this._rpcRequest("getAccountInfo",i),o=Wt(s,vi(Qt(lW)));if("error"in o)throw new hr(o.error,`failed to get info about account ${e.toBase58()}`);return o.result}async getAccountInfo(e,r){try{return(await this.getAccountInfoAndContext(e,r)).value}catch(n){throw new Error("failed to get info about account "+e.toBase58()+": "+n)}}async getMultipleParsedAccounts(e,r){const{commitment:n,config:a}=ca(r),i=e.map(l=>l.toBase58()),s=this._buildArgs([i],n,"jsonParsed",a),o=await this._rpcRequest("getMultipleAccounts",s),c=Wt(o,vi(Yt(Qt(lW))));if("error"in c)throw new hr(c.error,`failed to get info for accounts ${i}`);return c.result}async getMultipleAccountsInfoAndContext(e,r){const{commitment:n,config:a}=ca(r),i=e.map(l=>l.toBase58()),s=this._buildArgs([i],n,"base64",a),o=await this._rpcRequest("getMultipleAccounts",s),c=Wt(o,vi(Yt(Qt(Ux))));if("error"in c)throw new hr(c.error,`failed to get info for accounts ${i}`);return c.result}async getMultipleAccountsInfo(e,r){return(await this.getMultipleAccountsInfoAndContext(e,r)).value}async getStakeActivation(e,r,n){const{commitment:a,config:i}=ca(r),s=this._buildArgs([e.toBase58()],a,void 0,{...i,epoch:n??(i==null?void 0:i.epoch)}),o=await this._rpcRequest("getStakeActivation",s),c=Wt(o,Gr(ZQe));if("error"in c)throw new hr(c.error,`failed to get Stake Activation ${e.toBase58()}`);return c.result}async getProgramAccounts(e,r){const{commitment:n,config:a}=ca(r),{encoding:i,...s}=a||{},o=this._buildArgs([e.toBase58()],n,i||"base64",{...s,...s.filters?{filters:Poe(s.filters)}:null}),c=await this._rpcRequest("getProgramAccounts",o),l=Yt(GQe),d=s.withContext===!0?Wt(c,vi(l)):Wt(c,Gr(l));if("error"in d)throw new hr(d.error,`failed to get accounts owned by program ${e.toBase58()}`);return d.result}async getParsedProgramAccounts(e,r){const{commitment:n,config:a}=ca(r),i=this._buildArgs([e.toBase58()],n,"jsonParsed",a),s=await this._rpcRequest("getProgramAccounts",i),o=Wt(s,Gr(Yt(KQe)));if("error"in o)throw new hr(o.error,`failed to get accounts owned by program ${e.toBase58()}`);return o.result}async confirmTransaction(e,r){var i;let n;if(typeof e=="string")n=e;else{const s=e;if((i=s.abortSignal)!=null&&i.aborted)return Promise.reject(s.abortSignal.reason);n=s.signature}let a;try{a=Wa.decode(n)}catch{throw new Error("signature must be base58 encoded: "+n)}return Dn(a.length===64,"signature has invalid length"),typeof e=="string"?await this.confirmTransactionUsingLegacyTimeoutStrategy({commitment:r||this.commitment,signature:n}):"lastValidBlockHeight"in e?await this.confirmTransactionUsingBlockHeightExceedanceStrategy({commitment:r||this.commitment,strategy:e}):await this.confirmTransactionUsingDurableNonceStrategy({commitment:r||this.commitment,strategy:e})}getCancellationPromise(e){return new Promise((r,n)=>{e!=null&&(e.aborted?n(e.reason):e.addEventListener("abort",()=>{n(e.reason)}))})}getTransactionConfirmationPromise({commitment:e,signature:r}){let n,a,i=!1;const s=new Promise((c,l)=>{try{n=this.onSignature(r,(h,m)=>{n=void 0;const y={context:m,value:h};c({__type:Qu.PROCESSED,response:y})},e);const d=new Promise(h=>{n==null?h():a=this._onSubscriptionStateChange(n,m=>{m==="subscribed"&&h()})});(async()=>{if(await d,i)return;const h=await this.getSignatureStatus(r);if(i||h==null)return;const{context:m,value:y}=h;if(y!=null)if(y!=null&&y.err)l(y.err);else{switch(e){case"confirmed":case"single":case"singleGossip":{if(y.confirmationStatus==="processed")return;break}case"finalized":case"max":case"root":{if(y.confirmationStatus==="processed"||y.confirmationStatus==="confirmed")return;break}case"processed":case"recent":}i=!0,c({__type:Qu.PROCESSED,response:{context:m,value:y}})}})()}catch(d){l(d)}});return{abortConfirmation:()=>{a&&(a(),a=void 0),n!=null&&(this.removeSignatureListener(n),n=void 0)},confirmationPromise:s}}async confirmTransactionUsingBlockHeightExceedanceStrategy({commitment:e,strategy:{abortSignal:r,lastValidBlockHeight:n,signature:a}}){let i=!1;const s=new Promise(h=>{const m=async()=>{try{return await this.getBlockHeight(e)}catch{return-1}};(async()=>{let y=await m();if(!i){for(;y<=n;)if(await oh(1e3),i||(y=await m(),i))return;h({__type:Qu.BLOCKHEIGHT_EXCEEDED})}})()}),{abortConfirmation:o,confirmationPromise:c}=this.getTransactionConfirmationPromise({commitment:e,signature:a}),l=this.getCancellationPromise(r);let d;try{const h=await Promise.race([l,c,s]);if(h.__type===Qu.PROCESSED)d=h.response;else throw new rG(a)}finally{i=!0,o()}return d}async confirmTransactionUsingDurableNonceStrategy({commitment:e,strategy:{abortSignal:r,minContextSlot:n,nonceAccountPubkey:a,nonceValue:i,signature:s}}){let o=!1;const c=new Promise(y=>{let x=i,M=null;const E=async()=>{try{const{context:S,value:T}=await this.getNonceAndContext(a,{commitment:e,minContextSlot:n});return M=S.slot,T==null?void 0:T.nonce}catch{return x}};(async()=>{if(x=await E(),!o)for(;;){if(i!==x){y({__type:Qu.NONCE_INVALID,slotInWhichNonceDidAdvance:M});return}if(await oh(2e3),o||(x=await E(),o))return}})()}),{abortConfirmation:l,confirmationPromise:d}=this.getTransactionConfirmationPromise({commitment:e,signature:s}),h=this.getCancellationPromise(r);let m;try{const y=await Promise.race([h,d,c]);if(y.__type===Qu.PROCESSED)m=y.response;else{let x;for(;;){const M=await this.getSignatureStatus(s);if(M==null)break;if(M.context.slot<(y.slotInWhichNonceDidAdvance??n)){await oh(400);continue}x=M;break}if(x!=null&&x.value){const M=e||"finalized",{confirmationStatus:E}=x.value;switch(M){case"processed":case"recent":if(E!=="processed"&&E!=="confirmed"&&E!=="finalized")throw new z4(s);break;case"confirmed":case"single":case"singleGossip":if(E!=="confirmed"&&E!=="finalized")throw new z4(s);break;case"finalized":case"max":case"root":if(E!=="finalized")throw new z4(s);break;default:}m={context:x.context,value:{err:x.value.err}}}else throw new z4(s)}}finally{o=!0,l()}return m}async confirmTransactionUsingLegacyTimeoutStrategy({commitment:e,signature:r}){let n;const a=new Promise(c=>{let l=this._confirmTransactionInitialTimeout||6e4;switch(e){case"processed":case"recent":case"single":case"confirmed":case"singleGossip":{l=this._confirmTransactionInitialTimeout||3e4;break}}n=setTimeout(()=>c({__type:Qu.TIMED_OUT,timeoutMs:l}),l)}),{abortConfirmation:i,confirmationPromise:s}=this.getTransactionConfirmationPromise({commitment:e,signature:r});let o;try{const c=await Promise.race([s,a]);if(c.__type===Qu.PROCESSED)o=c.response;else throw new nG(r,c.timeoutMs/1e3)}finally{clearTimeout(n),i()}return o}async getClusterNodes(){const e=await this._rpcRequest("getClusterNodes",[]),r=Wt(e,Gr(Yt(cJe)));if("error"in r)throw new hr(r.error,"failed to get cluster nodes");return r.result}async getVoteAccounts(e){const r=this._buildArgs([],e),n=await this._rpcRequest("getVoteAccounts",r),a=Wt(n,lJe);if("error"in a)throw new hr(a.error,"failed to get vote accounts");return a.result}async getSlot(e){const{commitment:r,config:n}=ca(e),a=this._buildArgs([],r,void 0,n),i=await this._rpcRequest("getSlot",a),s=Wt(i,Gr(rt()));if("error"in s)throw new hr(s.error,"failed to get slot");return s.result}async getSlotLeader(e){const{commitment:r,config:n}=ca(e),a=this._buildArgs([],r,void 0,n),i=await this._rpcRequest("getSlotLeader",a),s=Wt(i,Gr(Rt()));if("error"in s)throw new hr(s.error,"failed to get slot leader");return s.result}async getSlotLeaders(e,r){const n=[e,r],a=await this._rpcRequest("getSlotLeaders",n),i=Wt(a,Gr(Yt(qa)));if("error"in i)throw new hr(i.error,"failed to get slot leaders");return i.result}async getSignatureStatus(e,r){const{context:n,value:a}=await this.getSignatureStatuses([e],r);Dn(a.length===1);const i=a[0];return{context:n,value:i}}async getSignatureStatuses(e,r){const n=[e];r&&n.push(r);const a=await this._rpcRequest("getSignatureStatuses",n),i=Wt(a,fJe);if("error"in i)throw new hr(i.error,"failed to get signature status");return i.result}async getTransactionCount(e){const{commitment:r,config:n}=ca(e),a=this._buildArgs([],r,void 0,n),i=await this._rpcRequest("getTransactionCount",a),s=Wt(i,Gr(rt()));if("error"in s)throw new hr(s.error,"failed to get transaction count");return s.result}async getTotalSupply(e){return(await this.getSupply({commitment:e,excludeNonCirculatingAccountsList:!0})).value.total}async getInflationGovernor(e){const r=this._buildArgs([],e),n=await this._rpcRequest("getInflationGovernor",r),a=Wt(n,jQe);if("error"in a)throw new hr(a.error,"failed to get inflation");return a.result}async getInflationReward(e,r,n){const{commitment:a,config:i}=ca(n),s=this._buildArgs([e.map(l=>l.toBase58())],a,void 0,{...i,epoch:r??(i==null?void 0:i.epoch)}),o=await this._rpcRequest("getInflationReward",s),c=Wt(o,xQe);if("error"in c)throw new hr(c.error,"failed to get inflation reward");return c.result}async getInflationRate(){const e=await this._rpcRequest("getInflationRate",[]),r=Wt(e,zQe);if("error"in r)throw new hr(r.error,"failed to get inflation rate");return r.result}async getEpochInfo(e){const{commitment:r,config:n}=ca(e),a=this._buildArgs([],r,void 0,n),i=await this._rpcRequest("getEpochInfo",a),s=Wt(i,OQe);if("error"in s)throw new hr(s.error,"failed to get epoch info");return s.result}async getEpochSchedule(){const e=await this._rpcRequest("getEpochSchedule",[]),r=Wt(e,RQe);if("error"in r)throw new hr(r.error,"failed to get epoch schedule");const n=r.result;return new iye(n.slotsPerEpoch,n.leaderScheduleSlotOffset,n.warmup,n.firstNormalEpoch,n.firstNormalSlot)}async getLeaderSchedule(){const e=await this._rpcRequest("getLeaderSchedule",[]),r=Wt(e,FQe);if("error"in r)throw new hr(r.error,"failed to get leader schedule");return r.result}async getMinimumBalanceForRentExemption(e,r){const n=this._buildArgs([e],r),a=await this._rpcRequest("getMinimumBalanceForRentExemption",n),i=Wt(a,pJe);return"error"in i?(console.warn("Unable to fetch minimum balance for rent exemption"),0):i.result}async getRecentBlockhashAndContext(e){const{context:r,value:{blockhash:n}}=await this.getLatestBlockhashAndContext(e);return{context:r,value:{blockhash:n,feeCalculator:{get lamportsPerSignature(){throw new Error("The capability to fetch `lamportsPerSignature` using the `getRecentBlockhash` API is no longer offered by the network. Use the `getFeeForMessage` API to obtain the fee for a given message.")},toJSON(){return{}}}}}}async getRecentPerformanceSamples(e){const r=await this._rpcRequest("getRecentPerformanceSamples",e?[e]:[]),n=Wt(r,CJe);if("error"in n)throw new hr(n.error,"failed to get recent performance samples");return n.result}async getFeeCalculatorForBlockhash(e,r){const n=this._buildArgs([e],r),a=await this._rpcRequest("getFeeCalculatorForBlockhash",n),i=Wt(a,TJe);if("error"in i)throw new hr(i.error,"failed to get fee calculator");const{context:s,value:o}=i.result;return{context:s,value:o!==null?o.feeCalculator:null}}async getFeeForMessage(e,r){const n=Yr(e.serialize()).toString("base64"),a=this._buildArgs([n],r),i=await this._rpcRequest("getFeeForMessage",a),s=Wt(i,vi(Qt(rt())));if("error"in s)throw new hr(s.error,"failed to get fee for message");if(s.result===null)throw new Error("invalid blockhash");return s.result}async getRecentPrioritizationFees(e){var s;const r=(s=e==null?void 0:e.lockedWritableAccounts)==null?void 0:s.map(o=>o.toBase58()),n=r!=null&&r.length?[r]:[],a=await this._rpcRequest("getRecentPrioritizationFees",n),i=Wt(a,PQe);if("error"in i)throw new hr(i.error,"failed to get recent prioritization fees");return i.result}async getRecentBlockhash(e){try{return(await this.getRecentBlockhashAndContext(e)).value}catch(r){throw new Error("failed to get recent blockhash: "+r)}}async getLatestBlockhash(e){try{return(await this.getLatestBlockhashAndContext(e)).value}catch(r){throw new Error("failed to get recent blockhash: "+r)}}async getLatestBlockhashAndContext(e){const{commitment:r,config:n}=ca(e),a=this._buildArgs([],r,void 0,n),i=await this._rpcRequest("getLatestBlockhash",a),s=Wt(i,AJe);if("error"in s)throw new hr(s.error,"failed to get latest blockhash");return s.result}async isBlockhashValid(e,r){const{commitment:n,config:a}=ca(r),i=this._buildArgs([e],n,void 0,a),s=await this._rpcRequest("isBlockhashValid",i),o=Wt(s,SJe);if("error"in o)throw new hr(o.error,"failed to determine if the blockhash `"+e+"`is valid");return o.result}async getVersion(){const e=await this._rpcRequest("getVersion",[]),r=Wt(e,Gr(IQe));if("error"in r)throw new hr(r.error,"failed to get version");return r.result}async getGenesisHash(){const e=await this._rpcRequest("getGenesisHash",[]),r=Wt(e,Gr(Rt()));if("error"in r)throw new hr(r.error,"failed to get genesis hash");return r.result}async getBlock(e,r){const{commitment:n,config:a}=ca(r),i=this._buildArgsAtLeastConfirmed([e],n,void 0,a),s=await this._rpcRequest("getBlock",i);try{switch(a==null?void 0:a.transactionDetails){case"accounts":{const o=Wt(s,yJe);if("error"in o)throw o.error;return o.result}case"none":{const o=Wt(s,gJe);if("error"in o)throw o.error;return o.result}default:{const o=Wt(s,bJe);if("error"in o)throw o.error;const{result:c}=o;return c?{...c,transactions:c.transactions.map(({transaction:l,meta:d,version:h})=>({meta:d,transaction:{...l,message:Kz(h,l.message)},version:h}))}:null}}}catch(o){throw new hr(o,"failed to get confirmed block")}}async getParsedBlock(e,r){const{commitment:n,config:a}=ca(r),i=this._buildArgsAtLeastConfirmed([e],n,"jsonParsed",a),s=await this._rpcRequest("getBlock",i);try{switch(a==null?void 0:a.transactionDetails){case"accounts":{const o=Wt(s,xJe);if("error"in o)throw o.error;return o.result}case"none":{const o=Wt(s,wJe);if("error"in o)throw o.error;return o.result}default:{const o=Wt(s,vJe);if("error"in o)throw o.error;return o.result}}}catch(o){throw new hr(o,"failed to get block")}}async getBlockProduction(e){let r,n;if(typeof e=="string")n=e;else if(e){const{commitment:o,...c}=e;n=o,r=c}const a=this._buildArgs([],n,"base64",r),i=await this._rpcRequest("getBlockProduction",a),s=Wt(i,kQe);if("error"in s)throw new hr(s.error,"failed to get block production information");return s.result}async getTransaction(e,r){const{commitment:n,config:a}=ca(r),i=this._buildArgsAtLeastConfirmed([e],n,void 0,a),s=await this._rpcRequest("getTransaction",i),o=Wt(s,Zz);if("error"in o)throw new hr(o.error,"failed to get transaction");const c=o.result;return c&&{...c,transaction:{...c.transaction,message:Kz(c.version,c.transaction.message)}}}async getParsedTransaction(e,r){const{commitment:n,config:a}=ca(r),i=this._buildArgsAtLeastConfirmed([e],n,"jsonParsed",a),s=await this._rpcRequest("getTransaction",i),o=Wt(s,iS);if("error"in o)throw new hr(o.error,"failed to get transaction");return o.result}async getParsedTransactions(e,r){const{commitment:n,config:a}=ca(r),i=e.map(c=>({methodName:"getTransaction",args:this._buildArgsAtLeastConfirmed([c],n,"jsonParsed",a)}));return(await this._rpcBatchRequest(i)).map(c=>{const l=Wt(c,iS);if("error"in l)throw new hr(l.error,"failed to get transactions");return l.result})}async getTransactions(e,r){const{commitment:n,config:a}=ca(r),i=e.map(c=>({methodName:"getTransaction",args:this._buildArgsAtLeastConfirmed([c],n,void 0,a)}));return(await this._rpcBatchRequest(i)).map(c=>{const l=Wt(c,Zz);if("error"in l)throw new hr(l.error,"failed to get transactions");const d=l.result;return d&&{...d,transaction:{...d.transaction,message:Kz(d.version,d.transaction.message)}}})}async getConfirmedBlock(e,r){const n=this._buildArgsAtLeastConfirmed([e],r),a=await this._rpcRequest("getBlock",n),i=Wt(a,MJe);if("error"in i)throw new hr(i.error,"failed to get confirmed block");const s=i.result;if(!s)throw new Error("Confirmed block "+e+" not found");const o={...s,transactions:s.transactions.map(({transaction:c,meta:l})=>{const d=new K1(c.message);return{meta:l,transaction:{...c,message:d}}})};return{...o,transactions:o.transactions.map(({transaction:c,meta:l})=>({meta:l,transaction:Sr.populate(c.message,c.signatures)}))}}async getBlocks(e,r,n){const a=this._buildArgsAtLeastConfirmed(r!==void 0?[e,r]:[e],n),i=await this._rpcRequest("getBlocks",a),s=Wt(i,Gr(Yt(rt())));if("error"in s)throw new hr(s.error,"failed to get blocks");return s.result}async getBlockSignatures(e,r){const n=this._buildArgsAtLeastConfirmed([e],r,void 0,{transactionDetails:"signatures",rewards:!1}),a=await this._rpcRequest("getBlock",n),i=Wt(a,Foe);if("error"in i)throw new hr(i.error,"failed to get block");const s=i.result;if(!s)throw new Error("Block "+e+" not found");return s}async getConfirmedBlockSignatures(e,r){const n=this._buildArgsAtLeastConfirmed([e],r,void 0,{transactionDetails:"signatures",rewards:!1}),a=await this._rpcRequest("getBlock",n),i=Wt(a,Foe);if("error"in i)throw new hr(i.error,"failed to get confirmed block");const s=i.result;if(!s)throw new Error("Confirmed block "+e+" not found");return s}async getConfirmedTransaction(e,r){const n=this._buildArgsAtLeastConfirmed([e],r),a=await this._rpcRequest("getTransaction",n),i=Wt(a,Zz);if("error"in i)throw new hr(i.error,"failed to get transaction");const s=i.result;if(!s)return s;const o=new K1(s.transaction.message),c=s.transaction.signatures;return{...s,transaction:Sr.populate(o,c)}}async getParsedConfirmedTransaction(e,r){const n=this._buildArgsAtLeastConfirmed([e],r,"jsonParsed"),a=await this._rpcRequest("getTransaction",n),i=Wt(a,iS);if("error"in i)throw new hr(i.error,"failed to get confirmed transaction");return i.result}async getParsedConfirmedTransactions(e,r){const n=e.map(s=>({methodName:"getTransaction",args:this._buildArgsAtLeastConfirmed([s],r,"jsonParsed")}));return(await this._rpcBatchRequest(n)).map(s=>{const o=Wt(s,iS);if("error"in o)throw new hr(o.error,"failed to get confirmed transactions");return o.result})}async getConfirmedSignaturesForAddress(e,r,n){let a={},i=await this.getFirstAvailableBlock();for(;!("until"in a)&&(r--,!(r<=0||r<i));)try{const c=await this.getConfirmedBlockSignatures(r,"finalized");c.signatures.length>0&&(a.until=c.signatures[c.signatures.length-1].toString())}catch(c){if(c instanceof Error&&c.message.includes("skipped"))continue;throw c}let s=await this.getSlot("finalized");for(;!("before"in a)&&(n++,!(n>s));)try{const c=await this.getConfirmedBlockSignatures(n);c.signatures.length>0&&(a.before=c.signatures[c.signatures.length-1].toString())}catch(c){if(c instanceof Error&&c.message.includes("skipped"))continue;throw c}return(await this.getConfirmedSignaturesForAddress2(e,a)).map(c=>c.signature)}async getConfirmedSignaturesForAddress2(e,r,n){const a=this._buildArgsAtLeastConfirmed([e.toBase58()],n,void 0,r),i=await this._rpcRequest("getConfirmedSignaturesForAddress2",a),s=Wt(i,QQe);if("error"in s)throw new hr(s.error,"failed to get confirmed signatures for address");return s.result}async getSignaturesForAddress(e,r,n){const a=this._buildArgsAtLeastConfirmed([e.toBase58()],n,void 0,r),i=await this._rpcRequest("getSignaturesForAddress",a),s=Wt(i,JQe);if("error"in s)throw new hr(s.error,"failed to get signatures for address");return s.result}async getAddressLookupTable(e,r){const{context:n,value:a}=await this.getAccountInfoAndContext(e,r);let i=null;return a!==null&&(i=new sI({key:e,state:sI.deserialize(a.data)})),{context:n,value:i}}async getNonceAndContext(e,r){const{context:n,value:a}=await this.getAccountInfoAndContext(e,r);let i=null;return a!==null&&(i=ok.fromAccountData(a.data)),{context:n,value:i}}async getNonce(e,r){return await this.getNonceAndContext(e,r).then(n=>n.value).catch(n=>{throw new Error("failed to get nonce for account "+e.toBase58()+": "+n)})}async requestAirdrop(e,r){const n=await this._rpcRequest("requestAirdrop",[e.toBase58(),r]),a=Wt(n,IJe);if("error"in a)throw new hr(a.error,`airdrop to ${e.toBase58()} failed`);return a.result}async _blockhashWithExpiryBlockHeight(e){if(!e){for(;this._pollingBlockhash;)await oh(100);const n=Date.now()-this._blockhashInfo.lastFetch>=oye;if(this._blockhashInfo.latestBlockhash!==null&&!n)return this._blockhashInfo.latestBlockhash}return await this._pollNewBlockhash()}async _pollNewBlockhash(){this._pollingBlockhash=!0;try{const e=Date.now(),r=this._blockhashInfo.latestBlockhash,n=r?r.blockhash:null;for(let a=0;a<50;a++){const i=await this.getLatestBlockhash("finalized");if(n!==i.blockhash)return this._blockhashInfo={latestBlockhash:i,lastFetch:Date.now(),transactionSignatures:[],simulatedSignatures:[]},i;await oh(tye/2)}throw new Error(`Unable to obtain a new blockhash after ${Date.now()-e}ms`)}finally{this._pollingBlockhash=!1}}async getStakeMinimumDelegation(e){const{commitment:r,config:n}=ca(e),a=this._buildArgs([],r,"base64",n),i=await this._rpcRequest("getStakeMinimumDelegation",a),s=Wt(i,vi(rt()));if("error"in s)throw new hr(s.error,"failed to get stake minimum delegation");return s.result}async simulateTransaction(e,r,n){if("message"in e){const M=e.serialize(),E=It.Buffer.from(M).toString("base64");if(Array.isArray(r)||n!==void 0)throw new Error("Invalid arguments");const S=r||{};S.encoding="base64","commitment"in S||(S.commitment=this.commitment),r&&typeof r=="object"&&"innerInstructions"in r&&(S.innerInstructions=r.innerInstructions);const T=[E,S],D=await this._rpcRequest("simulateTransaction",T),k=Wt(D,Ooe);if("error"in k)throw new Error("failed to simulate transaction: "+k.error.message);return k.result}let a;if(e instanceof Sr){let x=e;a=new Sr,a.feePayer=x.feePayer,a.instructions=e.instructions,a.nonceInfo=x.nonceInfo,a.signatures=x.signatures}else a=Sr.populate(e),a._message=a._json=void 0;if(r!==void 0&&!Array.isArray(r))throw new Error("Invalid arguments");const i=r;if(a.nonceInfo&&i)a.sign(...i);else{let x=this._disableBlockhashCaching;for(;;){const M=await this._blockhashWithExpiryBlockHeight(x);if(a.lastValidBlockHeight=M.lastValidBlockHeight,a.recentBlockhash=M.blockhash,!i)break;if(a.sign(...i),!a.signature)throw new Error("!signature");const E=a.signature.toString("base64");if(!this._blockhashInfo.simulatedSignatures.includes(E)&&!this._blockhashInfo.transactionSignatures.includes(E)){this._blockhashInfo.simulatedSignatures.push(E);break}else x=!0}}const s=a._compile(),o=s.serialize(),l=a._serialize(o).toString("base64"),d={encoding:"base64",commitment:this.commitment};if(n){const x=(Array.isArray(n)?n:s.nonProgramIds()).map(M=>M.toBase58());d.accounts={encoding:"base64",addresses:x}}i&&(d.sigVerify=!0),r&&typeof r=="object"&&"innerInstructions"in r&&(d.innerInstructions=r.innerInstructions);const h=[l,d],m=await this._rpcRequest("simulateTransaction",h),y=Wt(m,Ooe);if("error"in y){let x;if("data"in y.error&&(x=y.error.data.logs,x&&Array.isArray(x))){const M=`
|
|
90
|
-
`,E=M+x.join(M);console.error(y.error.message,E)}throw new O2({action:"simulate",signature:"",transactionMessage:y.error.message,logs:x})}return y.result}async sendTransaction(e,r,n){if("version"in e){if(r&&Array.isArray(r))throw new Error("Invalid arguments");const s=e.serialize();return await this.sendRawTransaction(s,r)}if(r===void 0||!Array.isArray(r))throw new Error("Invalid arguments");const a=r;if(e.nonceInfo)e.sign(...a);else{let s=this._disableBlockhashCaching;for(;;){const o=await this._blockhashWithExpiryBlockHeight(s);if(e.lastValidBlockHeight=o.lastValidBlockHeight,e.recentBlockhash=o.blockhash,e.sign(...a),!e.signature)throw new Error("!signature");const c=e.signature.toString("base64");if(this._blockhashInfo.transactionSignatures.includes(c))s=!0;else{this._blockhashInfo.transactionSignatures.push(c);break}}}const i=e.serialize();return await this.sendRawTransaction(i,n)}async sendRawTransaction(e,r){const n=Yr(e).toString("base64");return await this.sendEncodedTransaction(n,r)}async sendEncodedTransaction(e,r){const n={encoding:"base64"},a=r&&r.skipPreflight,i=a===!0?"processed":r&&r.preflightCommitment||this.commitment;r&&r.maxRetries!=null&&(n.maxRetries=r.maxRetries),r&&r.minContextSlot!=null&&(n.minContextSlot=r.minContextSlot),a&&(n.skipPreflight=a),i&&(n.preflightCommitment=i);const s=[e,n],o=await this._rpcRequest("sendTransaction",s),c=Wt(o,DJe);if("error"in c){let l;throw"data"in c.error&&(l=c.error.data.logs),new O2({action:a?"send":"simulate",signature:"",transactionMessage:c.error.message,logs:l})}return c.result}_wsOnOpen(){this._rpcWebSocketConnected=!0,this._rpcWebSocketHeartbeat=setInterval(()=>{(async()=>{try{await this._rpcWebSocket.notify("ping")}catch{}})()},5e3),this._updateSubscriptions()}_wsOnError(e){this._rpcWebSocketConnected=!1,console.error("ws error:",e.message)}_wsOnClose(e){if(this._rpcWebSocketConnected=!1,this._rpcWebSocketGeneration=(this._rpcWebSocketGeneration+1)%Number.MAX_SAFE_INTEGER,this._rpcWebSocketIdleTimeout&&(clearTimeout(this._rpcWebSocketIdleTimeout),this._rpcWebSocketIdleTimeout=null),this._rpcWebSocketHeartbeat&&(clearInterval(this._rpcWebSocketHeartbeat),this._rpcWebSocketHeartbeat=null),e===1e3){this._updateSubscriptions();return}this._subscriptionCallbacksByServerSubscriptionId={},Object.entries(this._subscriptionsByHash).forEach(([r,n])=>{this._setSubscription(r,{...n,state:"pending"})})}_setSubscription(e,r){var a;const n=(a=this._subscriptionsByHash[e])==null?void 0:a.state;if(this._subscriptionsByHash[e]=r,n!==r.state){const i=this._subscriptionStateChangeCallbacksByHash[e];i&&i.forEach(s=>{try{s(r.state)}catch{}})}}_onSubscriptionStateChange(e,r){var i;const n=this._subscriptionHashByClientSubscriptionId[e];if(n==null)return()=>{};const a=(i=this._subscriptionStateChangeCallbacksByHash)[n]||(i[n]=new Set);return a.add(r),()=>{a.delete(r),a.size===0&&delete this._subscriptionStateChangeCallbacksByHash[n]}}async _updateSubscriptions(){if(Object.keys(this._subscriptionsByHash).length===0){this._rpcWebSocketConnected&&(this._rpcWebSocketConnected=!1,this._rpcWebSocketIdleTimeout=setTimeout(()=>{this._rpcWebSocketIdleTimeout=null;try{this._rpcWebSocket.close()}catch(n){n instanceof Error&&console.log(`Error when closing socket connection: ${n.message}`)}},500));return}if(this._rpcWebSocketIdleTimeout!==null&&(clearTimeout(this._rpcWebSocketIdleTimeout),this._rpcWebSocketIdleTimeout=null,this._rpcWebSocketConnected=!0),!this._rpcWebSocketConnected){this._rpcWebSocket.connect();return}const e=this._rpcWebSocketGeneration,r=()=>e===this._rpcWebSocketGeneration;await Promise.all(Object.keys(this._subscriptionsByHash).map(async n=>{const a=this._subscriptionsByHash[n];if(a!==void 0)switch(a.state){case"pending":case"unsubscribed":if(a.callbacks.size===0){delete this._subscriptionsByHash[n],a.state==="unsubscribed"&&delete this._subscriptionCallbacksByServerSubscriptionId[a.serverSubscriptionId],await this._updateSubscriptions();return}await(async()=>{const{args:i,method:s}=a;try{this._setSubscription(n,{...a,state:"subscribing"});const o=await this._rpcWebSocket.call(s,i);this._setSubscription(n,{...a,serverSubscriptionId:o,state:"subscribed"}),this._subscriptionCallbacksByServerSubscriptionId[o]=a.callbacks,await this._updateSubscriptions()}catch(o){if(console.error(`Received ${o instanceof Error?"":"JSON-RPC "}error calling \`${s}\``,{args:i,error:o}),!r())return;this._setSubscription(n,{...a,state:"pending"}),await this._updateSubscriptions()}})();break;case"subscribed":a.callbacks.size===0&&await(async()=>{const{serverSubscriptionId:i,unsubscribeMethod:s}=a;if(this._subscriptionsAutoDisposedByRpc.has(i))this._subscriptionsAutoDisposedByRpc.delete(i);else{this._setSubscription(n,{...a,state:"unsubscribing"}),this._setSubscription(n,{...a,state:"unsubscribing"});try{await this._rpcWebSocket.call(s,[i])}catch(o){if(o instanceof Error&&console.error(`${s} error:`,o.message),!r())return;this._setSubscription(n,{...a,state:"subscribed"}),await this._updateSubscriptions();return}}this._setSubscription(n,{...a,state:"unsubscribed"}),await this._updateSubscriptions()})();break}}))}_handleServerNotification(e,r){const n=this._subscriptionCallbacksByServerSubscriptionId[e];n!==void 0&&n.forEach(a=>{try{a(...r)}catch(i){console.error(i)}})}_wsOnAccountNotification(e){const{result:r,subscription:n}=Wt(e,XQe);this._handleServerNotification(n,[r.value,r.context])}_makeSubscription(e,r){const n=this._nextClientSubscriptionId++,a=joe([e.method,r]),i=this._subscriptionsByHash[a];return i===void 0?this._subscriptionsByHash[a]={...e,args:r,callbacks:new Set([e.callback]),state:"pending"}:i.callbacks.add(e.callback),this._subscriptionHashByClientSubscriptionId[n]=a,this._subscriptionDisposeFunctionsByClientSubscriptionId[n]=async()=>{delete this._subscriptionDisposeFunctionsByClientSubscriptionId[n],delete this._subscriptionHashByClientSubscriptionId[n];const s=this._subscriptionsByHash[a];Dn(s!==void 0,`Could not find a \`Subscription\` when tearing down client subscription #${n}`),s.callbacks.delete(e.callback),await this._updateSubscriptions()},this._updateSubscriptions(),n}onAccountChange(e,r,n){const{commitment:a,config:i}=ca(n),s=this._buildArgs([e.toBase58()],a||this._commitment||"finalized","base64",i);return this._makeSubscription({callback:r,method:"accountSubscribe",unsubscribeMethod:"accountUnsubscribe"},s)}async removeAccountChangeListener(e){await this._unsubscribeClientSubscription(e,"account change")}_wsOnProgramAccountNotification(e){const{result:r,subscription:n}=Wt(e,tJe);this._handleServerNotification(n,[{accountId:r.value.pubkey,accountInfo:r.value.account},r.context])}onProgramAccountChange(e,r,n,a){const{commitment:i,config:s}=ca(n),o=this._buildArgs([e.toBase58()],i||this._commitment||"finalized","base64",s||(a?{filters:Poe(a)}:void 0));return this._makeSubscription({callback:r,method:"programSubscribe",unsubscribeMethod:"programUnsubscribe"},o)}async removeProgramAccountChangeListener(e){await this._unsubscribeClientSubscription(e,"program account change")}onLogs(e,r,n){const a=this._buildArgs([typeof e=="object"?{mentions:[e.toString()]}:e],n||this._commitment||"finalized");return this._makeSubscription({callback:r,method:"logsSubscribe",unsubscribeMethod:"logsUnsubscribe"},a)}async removeOnLogsListener(e){await this._unsubscribeClientSubscription(e,"logs")}_wsOnLogsNotification(e){const{result:r,subscription:n}=Wt(e,kJe);this._handleServerNotification(n,[r.value,r.context])}_wsOnSlotNotification(e){const{result:r,subscription:n}=Wt(e,nJe);this._handleServerNotification(n,[r])}onSlotChange(e){return this._makeSubscription({callback:e,method:"slotSubscribe",unsubscribeMethod:"slotUnsubscribe"},[])}async removeSlotChangeListener(e){await this._unsubscribeClientSubscription(e,"slot change")}_wsOnSlotUpdatesNotification(e){const{result:r,subscription:n}=Wt(e,iJe);this._handleServerNotification(n,[r])}onSlotUpdate(e){return this._makeSubscription({callback:e,method:"slotsUpdatesSubscribe",unsubscribeMethod:"slotsUpdatesUnsubscribe"},[])}async removeSlotUpdateListener(e){await this._unsubscribeClientSubscription(e,"slot update")}async _unsubscribeClientSubscription(e,r){const n=this._subscriptionDisposeFunctionsByClientSubscriptionId[e];n?await n():console.warn(`Ignored unsubscribe request because an active subscription with id \`${e}\` for '${r}' events could not be found.`)}_buildArgs(e,r,n,a){const i=r||this._commitment;if(i||n||a){let s={};n&&(s.encoding=n),i&&(s.commitment=i),a&&(s=Object.assign(s,a)),e.push(s)}return e}_buildArgsAtLeastConfirmed(e,r,n,a){const i=r||this._commitment;if(i&&!["confirmed","finalized"].includes(i))throw new Error("Using Connection with default commitment: `"+this._commitment+"`, but method requires at least `confirmed`");return this._buildArgs(e,r,n,a)}_wsOnSignatureNotification(e){const{result:r,subscription:n}=Wt(e,sJe);r.value!=="receivedSignature"&&this._subscriptionsAutoDisposedByRpc.add(n),this._handleServerNotification(n,r.value==="receivedSignature"?[{type:"received"},r.context]:[{type:"status",result:r.value},r.context])}onSignature(e,r,n){const a=this._buildArgs([e],n||this._commitment||"finalized"),i=this._makeSubscription({callback:(s,o)=>{if(s.type==="status"){r(s.result,o);try{this.removeSignatureListener(i)}catch{}}},method:"signatureSubscribe",unsubscribeMethod:"signatureUnsubscribe"},a);return i}onSignatureWithOptions(e,r,n){const{commitment:a,...i}={...n,commitment:n&&n.commitment||this._commitment||"finalized"},s=this._buildArgs([e],a,void 0,i),o=this._makeSubscription({callback:(c,l)=>{r(c,l);try{this.removeSignatureListener(o)}catch{}},method:"signatureSubscribe",unsubscribeMethod:"signatureUnsubscribe"},s);return o}async removeSignatureListener(e){await this._unsubscribeClientSubscription(e,"signature result")}_wsOnRootNotification(e){const{result:r,subscription:n}=Wt(e,oJe);this._handleServerNotification(n,[r])}onRootChange(e){return this._makeSubscription({callback:e,method:"rootSubscribe",unsubscribeMethod:"rootUnsubscribe"},[])}async removeRootChangeListener(e){await this._unsubscribeClientSubscription(e,"root change")}};class eo{constructor(e){this._keypair=void 0,this._keypair=e??koe()}static generate(){return new eo(koe())}static fromSecretKey(e,r){if(e.byteLength!==64)throw new Error("bad secret key size");const n=e.slice(32,64);if(!r||!r.skipValidation){const a=e.slice(0,32),i=iI(a);for(let s=0;s<32;s++)if(n[s]!==i[s])throw new Error("provided secretKey is invalid")}return new eo({publicKey:n,secretKey:e})}static fromSeed(e){const r=iI(e),n=new Uint8Array(64);return n.set(e),n.set(r,32),new eo({publicKey:r,secretKey:n})}get publicKey(){return new $e(this._keypair.publicKey)}get secretKey(){return new Uint8Array(this._keypair.secretKey)}}const Ld=Object.freeze({CreateLookupTable:{index:0,layout:$t([Gt("instruction"),$9("recentSlot"),Cr("bumpSeed")])},FreezeLookupTable:{index:1,layout:$t([Gt("instruction")])},ExtendLookupTable:{index:2,layout:$t([Gt("instruction"),$9(),f0(on(),f2(Gt(),-8),"addresses")])},DeactivateLookupTable:{index:3,layout:$t([Gt("instruction")])},CloseLookupTable:{index:4,layout:$t([Gt("instruction")])}});class LJe{constructor(){}static decodeInstructionType(e){this.checkProgramId(e.programId);const n=Gt("instruction").decode(e.data);let a;for(const[i,s]of Object.entries(Ld))if(s.index==n){a=i;break}if(!a)throw new Error("Invalid Instruction. Should be a LookupTable Instruction");return a}static decodeCreateLookupTable(e){this.checkProgramId(e.programId),this.checkKeysLength(e.keys,4);const{recentSlot:r}=Rn(Ld.CreateLookupTable,e.data);return{authority:e.keys[1].pubkey,payer:e.keys[2].pubkey,recentSlot:Number(r)}}static decodeExtendLookupTable(e){if(this.checkProgramId(e.programId),e.keys.length<2)throw new Error(`invalid instruction; found ${e.keys.length} keys, expected at least 2`);const{addresses:r}=Rn(Ld.ExtendLookupTable,e.data);return{lookupTable:e.keys[0].pubkey,authority:e.keys[1].pubkey,payer:e.keys.length>2?e.keys[2].pubkey:void 0,addresses:r.map(n=>new $e(n))}}static decodeCloseLookupTable(e){return this.checkProgramId(e.programId),this.checkKeysLength(e.keys,3),{lookupTable:e.keys[0].pubkey,authority:e.keys[1].pubkey,recipient:e.keys[2].pubkey}}static decodeFreezeLookupTable(e){return this.checkProgramId(e.programId),this.checkKeysLength(e.keys,2),{lookupTable:e.keys[0].pubkey,authority:e.keys[1].pubkey}}static decodeDeactivateLookupTable(e){return this.checkProgramId(e.programId),this.checkKeysLength(e.keys,2),{lookupTable:e.keys[0].pubkey,authority:e.keys[1].pubkey}}static checkProgramId(e){if(!e.equals(Wx.programId))throw new Error("invalid instruction; programId is not AddressLookupTable Program")}static checkKeysLength(e,r){if(e.length<r)throw new Error(`invalid instruction; found ${e.length} keys, expected at least ${r}`)}}class Wx{constructor(){}static createLookupTable(e){const[r,n]=$e.findProgramAddressSync([e.authority.toBuffer(),Kq(BigInt(e.recentSlot),8)],this.programId),a=Ld.CreateLookupTable,i=yn(a,{recentSlot:BigInt(e.recentSlot),bumpSeed:n}),s=[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:e.authority,isSigner:!0,isWritable:!1},{pubkey:e.payer,isSigner:!0,isWritable:!0},{pubkey:Or.programId,isSigner:!1,isWritable:!1}];return[new vn({programId:this.programId,keys:s,data:i}),r]}static freezeLookupTable(e){const r=Ld.FreezeLookupTable,n=yn(r),a=[{pubkey:e.lookupTable,isSigner:!1,isWritable:!0},{pubkey:e.authority,isSigner:!0,isWritable:!1}];return new vn({programId:this.programId,keys:a,data:n})}static extendLookupTable(e){const r=Ld.ExtendLookupTable,n=yn(r,{addresses:e.addresses.map(i=>i.toBytes())}),a=[{pubkey:e.lookupTable,isSigner:!1,isWritable:!0},{pubkey:e.authority,isSigner:!0,isWritable:!1}];return e.payer&&a.push({pubkey:e.payer,isSigner:!0,isWritable:!0},{pubkey:Or.programId,isSigner:!1,isWritable:!1}),new vn({programId:this.programId,keys:a,data:n})}static deactivateLookupTable(e){const r=Ld.DeactivateLookupTable,n=yn(r),a=[{pubkey:e.lookupTable,isSigner:!1,isWritable:!0},{pubkey:e.authority,isSigner:!0,isWritable:!1}];return new vn({programId:this.programId,keys:a,data:n})}static closeLookupTable(e){const r=Ld.CloseLookupTable,n=yn(r),a=[{pubkey:e.lookupTable,isSigner:!1,isWritable:!0},{pubkey:e.authority,isSigner:!0,isWritable:!1},{pubkey:e.recipient,isSigner:!1,isWritable:!0}];return new vn({programId:this.programId,keys:a,data:n})}}Wx.programId=new $e("AddressLookupTab1e1111111111111111111111111");class BJe{constructor(){}static decodeInstructionType(e){this.checkProgramId(e.programId);const n=Cr("instruction").decode(e.data);let a;for(const[i,s]of Object.entries(Bl))if(s.index==n){a=i;break}if(!a)throw new Error("Instruction type incorrect; not a ComputeBudgetInstruction");return a}static decodeRequestUnits(e){this.checkProgramId(e.programId);const{units:r,additionalFee:n}=Rn(Bl.RequestUnits,e.data);return{units:r,additionalFee:n}}static decodeRequestHeapFrame(e){this.checkProgramId(e.programId);const{bytes:r}=Rn(Bl.RequestHeapFrame,e.data);return{bytes:r}}static decodeSetComputeUnitLimit(e){this.checkProgramId(e.programId);const{units:r}=Rn(Bl.SetComputeUnitLimit,e.data);return{units:r}}static decodeSetComputeUnitPrice(e){this.checkProgramId(e.programId);const{microLamports:r}=Rn(Bl.SetComputeUnitPrice,e.data);return{microLamports:r}}static checkProgramId(e){if(!e.equals(cG.programId))throw new Error("invalid instruction; programId is not ComputeBudgetProgram")}}const Bl=Object.freeze({RequestUnits:{index:0,layout:$t([Cr("instruction"),Gt("units"),Gt("additionalFee")])},RequestHeapFrame:{index:1,layout:$t([Cr("instruction"),Gt("bytes")])},SetComputeUnitLimit:{index:2,layout:$t([Cr("instruction"),Gt("units")])},SetComputeUnitPrice:{index:3,layout:$t([Cr("instruction"),$9("microLamports")])}});class cG{constructor(){}static requestUnits(e){const r=Bl.RequestUnits,n=yn(r,e);return new vn({keys:[],programId:this.programId,data:n})}static requestHeapFrame(e){const r=Bl.RequestHeapFrame,n=yn(r,e);return new vn({keys:[],programId:this.programId,data:n})}static setComputeUnitLimit(e){const r=Bl.SetComputeUnitLimit,n=yn(r,e);return new vn({keys:[],programId:this.programId,data:n})}static setComputeUnitPrice(e){const r=Bl.SetComputeUnitPrice,n=yn(r,{microLamports:BigInt(e.microLamports)});return new vn({keys:[],programId:this.programId,data:n})}}cG.programId=new $e("ComputeBudget111111111111111111111111111111");const Uoe=64,Woe=32,Voe=64,$oe=$t([Cr("numSignatures"),Cr("padding"),y1("signatureOffset"),y1("signatureInstructionIndex"),y1("publicKeyOffset"),y1("publicKeyInstructionIndex"),y1("messageDataOffset"),y1("messageDataSize"),y1("messageInstructionIndex")]);class uk{constructor(){}static createInstructionWithPublicKey(e){const{publicKey:r,message:n,signature:a,instructionIndex:i}=e;Dn(r.length===Woe,`Public Key must be ${Woe} bytes but received ${r.length} bytes`),Dn(a.length===Voe,`Signature must be ${Voe} bytes but received ${a.length} bytes`);const s=$oe.span,o=s+r.length,c=o+a.length,l=1,d=It.Buffer.alloc(c+n.length),h=i??65535;return $oe.encode({numSignatures:l,padding:0,signatureOffset:o,signatureInstructionIndex:h,publicKeyOffset:s,publicKeyInstructionIndex:h,messageDataOffset:c,messageDataSize:n.length,messageInstructionIndex:h},d),d.fill(r,s),d.fill(a,o),d.fill(n,c),new vn({keys:[],programId:uk.programId,data:d})}static createInstructionWithPrivateKey(e){const{privateKey:r,message:n,instructionIndex:a}=e;Dn(r.length===Uoe,`Private key must be ${Uoe} bytes but received ${r.length} bytes`);try{const i=eo.fromSecretKey(r),s=i.publicKey.toBytes(),o=eG(n,i.secretKey);return this.createInstructionWithPublicKey({publicKey:s,message:n,signature:o,instructionIndex:a})}catch(i){throw new Error(`Error creating instruction; ${i}`)}}}uk.programId=new $e("Ed25519SigVerify111111111111111111111111111");const jJe=(t,e)=>{const r=H6.sign(t,e);return[r.toCompactRawBytes(),r.recovery]};H6.utils.isValidPrivateKey;const zJe=H6.getPublicKey,Hoe=32,Qz=20,qoe=64,PJe=11,Jz=$t([Cr("numSignatures"),y1("signatureOffset"),Cr("signatureInstructionIndex"),y1("ethAddressOffset"),Cr("ethAddressInstructionIndex"),y1("messageDataOffset"),y1("messageDataSize"),Cr("messageInstructionIndex"),Qn(20,"ethAddress"),Qn(64,"signature"),Cr("recoveryId")]);class x8{constructor(){}static publicKeyToEthAddress(e){Dn(e.length===qoe,`Public key must be ${qoe} bytes but received ${e.length} bytes`);try{return It.Buffer.from(F8(Yr(e))).slice(-Qz)}catch(r){throw new Error(`Error constructing Ethereum address: ${r}`)}}static createInstructionWithPublicKey(e){const{publicKey:r,message:n,signature:a,recoveryId:i,instructionIndex:s}=e;return x8.createInstructionWithEthAddress({ethAddress:x8.publicKeyToEthAddress(r),message:n,signature:a,recoveryId:i,instructionIndex:s})}static createInstructionWithEthAddress(e){const{ethAddress:r,message:n,signature:a,recoveryId:i,instructionIndex:s=0}=e;let o;typeof r=="string"?r.startsWith("0x")?o=It.Buffer.from(r.substr(2),"hex"):o=It.Buffer.from(r,"hex"):o=r,Dn(o.length===Qz,`Address must be ${Qz} bytes but received ${o.length} bytes`);const c=1+PJe,l=c,d=c+o.length,h=d+a.length+1,m=1,y=It.Buffer.alloc(Jz.span+n.length);return Jz.encode({numSignatures:m,signatureOffset:d,signatureInstructionIndex:s,ethAddressOffset:l,ethAddressInstructionIndex:s,messageDataOffset:h,messageDataSize:n.length,messageInstructionIndex:s,signature:Yr(a),ethAddress:Yr(o),recoveryId:i},y),y.fill(Yr(n),Jz.span),new vn({keys:[],programId:x8.programId,data:y})}static createInstructionWithPrivateKey(e){const{privateKey:r,message:n,instructionIndex:a}=e;Dn(r.length===Hoe,`Private key must be ${Hoe} bytes but received ${r.length} bytes`);try{const i=Yr(r),s=zJe(i,!1).slice(1),o=It.Buffer.from(F8(Yr(n))),[c,l]=jJe(o,i);return this.createInstructionWithPublicKey({publicKey:s,message:n,signature:c,recoveryId:l,instructionIndex:a})}catch(i){throw new Error(`Error creating instruction; ${i}`)}}}x8.programId=new $e("KeccakSecp256k11111111111111111111111111111");var gye;const yye=new $e("StakeConfig11111111111111111111111111111111");class vye{constructor(e,r){this.staker=void 0,this.withdrawer=void 0,this.staker=e,this.withdrawer=r}}class xM{constructor(e,r,n){this.unixTimestamp=void 0,this.epoch=void 0,this.custodian=void 0,this.unixTimestamp=e,this.epoch=r,this.custodian=n}}gye=xM;xM.default=new gye(0,0,$e.default);class OJe{constructor(){}static decodeInstructionType(e){this.checkProgramId(e.programId);const n=Gt("instruction").decode(e.data);let a;for(const[i,s]of Object.entries(e0))if(s.index==n){a=i;break}if(!a)throw new Error("Instruction type incorrect; not a StakeInstruction");return a}static decodeInitialize(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,2);const{authorized:r,lockup:n}=Rn(e0.Initialize,e.data);return{stakePubkey:e.keys[0].pubkey,authorized:new vye(new $e(r.staker),new $e(r.withdrawer)),lockup:new xM(n.unixTimestamp,n.epoch,new $e(n.custodian))}}static decodeDelegate(e){return this.checkProgramId(e.programId),this.checkKeyLength(e.keys,6),Rn(e0.Delegate,e.data),{stakePubkey:e.keys[0].pubkey,votePubkey:e.keys[1].pubkey,authorizedPubkey:e.keys[5].pubkey}}static decodeAuthorize(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,3);const{newAuthorized:r,stakeAuthorizationType:n}=Rn(e0.Authorize,e.data),a={stakePubkey:e.keys[0].pubkey,authorizedPubkey:e.keys[2].pubkey,newAuthorizedPubkey:new $e(r),stakeAuthorizationType:{index:n}};return e.keys.length>3&&(a.custodianPubkey=e.keys[3].pubkey),a}static decodeAuthorizeWithSeed(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,2);const{newAuthorized:r,stakeAuthorizationType:n,authoritySeed:a,authorityOwner:i}=Rn(e0.AuthorizeWithSeed,e.data),s={stakePubkey:e.keys[0].pubkey,authorityBase:e.keys[1].pubkey,authoritySeed:a,authorityOwner:new $e(i),newAuthorizedPubkey:new $e(r),stakeAuthorizationType:{index:n}};return e.keys.length>3&&(s.custodianPubkey=e.keys[3].pubkey),s}static decodeSplit(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,3);const{lamports:r}=Rn(e0.Split,e.data);return{stakePubkey:e.keys[0].pubkey,splitStakePubkey:e.keys[1].pubkey,authorizedPubkey:e.keys[2].pubkey,lamports:r}}static decodeMerge(e){return this.checkProgramId(e.programId),this.checkKeyLength(e.keys,3),Rn(e0.Merge,e.data),{stakePubkey:e.keys[0].pubkey,sourceStakePubKey:e.keys[1].pubkey,authorizedPubkey:e.keys[4].pubkey}}static decodeWithdraw(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,5);const{lamports:r}=Rn(e0.Withdraw,e.data),n={stakePubkey:e.keys[0].pubkey,toPubkey:e.keys[1].pubkey,authorizedPubkey:e.keys[4].pubkey,lamports:r};return e.keys.length>5&&(n.custodianPubkey=e.keys[5].pubkey),n}static decodeDeactivate(e){return this.checkProgramId(e.programId),this.checkKeyLength(e.keys,3),Rn(e0.Deactivate,e.data),{stakePubkey:e.keys[0].pubkey,authorizedPubkey:e.keys[2].pubkey}}static checkProgramId(e){if(!e.equals(dk.programId))throw new Error("invalid instruction; programId is not StakeProgram")}static checkKeyLength(e,r){if(e.length<r)throw new Error(`invalid instruction; found ${e.length} keys, expected at least ${r}`)}}const e0=Object.freeze({Initialize:{index:0,layout:$t([Gt("instruction"),WZe(),VZe()])},Authorize:{index:1,layout:$t([Gt("instruction"),on("newAuthorized"),Gt("stakeAuthorizationType")])},Delegate:{index:2,layout:$t([Gt("instruction")])},Split:{index:3,layout:$t([Gt("instruction"),So("lamports")])},Withdraw:{index:4,layout:$t([Gt("instruction"),So("lamports")])},Deactivate:{index:5,layout:$t([Gt("instruction")])},Merge:{index:7,layout:$t([Gt("instruction")])},AuthorizeWithSeed:{index:8,layout:$t([Gt("instruction"),on("newAuthorized"),Gt("stakeAuthorizationType"),Sh("authoritySeed"),on("authorityOwner")])}}),RJe=Object.freeze({Staker:{index:0},Withdrawer:{index:1}});class dk{constructor(){}static initialize(e){const{stakePubkey:r,authorized:n,lockup:a}=e,i=a||xM.default,s=e0.Initialize,o=yn(s,{authorized:{staker:Yr(n.staker.toBuffer()),withdrawer:Yr(n.withdrawer.toBuffer())},lockup:{unixTimestamp:i.unixTimestamp,epoch:i.epoch,custodian:Yr(i.custodian.toBuffer())}}),c={keys:[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:_s,isSigner:!1,isWritable:!1}],programId:this.programId,data:o};return new vn(c)}static createAccountWithSeed(e){const r=new Sr;r.add(Or.createAccountWithSeed({fromPubkey:e.fromPubkey,newAccountPubkey:e.stakePubkey,basePubkey:e.basePubkey,seed:e.seed,lamports:e.lamports,space:this.space,programId:this.programId}));const{stakePubkey:n,authorized:a,lockup:i}=e;return r.add(this.initialize({stakePubkey:n,authorized:a,lockup:i}))}static createAccount(e){const r=new Sr;r.add(Or.createAccount({fromPubkey:e.fromPubkey,newAccountPubkey:e.stakePubkey,lamports:e.lamports,space:this.space,programId:this.programId}));const{stakePubkey:n,authorized:a,lockup:i}=e;return r.add(this.initialize({stakePubkey:n,authorized:a,lockup:i}))}static delegate(e){const{stakePubkey:r,authorizedPubkey:n,votePubkey:a}=e,i=e0.Delegate,s=yn(i);return new Sr().add({keys:[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:a,isSigner:!1,isWritable:!1},{pubkey:k0,isSigner:!1,isWritable:!1},{pubkey:MC,isSigner:!1,isWritable:!1},{pubkey:yye,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:s})}static authorize(e){const{stakePubkey:r,authorizedPubkey:n,newAuthorizedPubkey:a,stakeAuthorizationType:i,custodianPubkey:s}=e,o=e0.Authorize,c=yn(o,{newAuthorized:Yr(a.toBuffer()),stakeAuthorizationType:i.index}),l=[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:k0,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1}];return s&&l.push({pubkey:s,isSigner:!0,isWritable:!1}),new Sr().add({keys:l,programId:this.programId,data:c})}static authorizeWithSeed(e){const{stakePubkey:r,authorityBase:n,authoritySeed:a,authorityOwner:i,newAuthorizedPubkey:s,stakeAuthorizationType:o,custodianPubkey:c}=e,l=e0.AuthorizeWithSeed,d=yn(l,{newAuthorized:Yr(s.toBuffer()),stakeAuthorizationType:o.index,authoritySeed:a,authorityOwner:Yr(i.toBuffer())}),h=[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1},{pubkey:k0,isSigner:!1,isWritable:!1}];return c&&h.push({pubkey:c,isSigner:!0,isWritable:!1}),new Sr().add({keys:h,programId:this.programId,data:d})}static splitInstruction(e){const{stakePubkey:r,authorizedPubkey:n,splitStakePubkey:a,lamports:i}=e,s=e0.Split,o=yn(s,{lamports:i});return new vn({keys:[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:a,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:o})}static split(e,r){const n=new Sr;return n.add(Or.createAccount({fromPubkey:e.authorizedPubkey,newAccountPubkey:e.splitStakePubkey,lamports:r,space:this.space,programId:this.programId})),n.add(this.splitInstruction(e))}static splitWithSeed(e,r){const{stakePubkey:n,authorizedPubkey:a,splitStakePubkey:i,basePubkey:s,seed:o,lamports:c}=e,l=new Sr;return l.add(Or.allocate({accountPubkey:i,basePubkey:s,seed:o,space:this.space,programId:this.programId})),r&&r>0&&l.add(Or.transfer({fromPubkey:e.authorizedPubkey,toPubkey:i,lamports:r})),l.add(this.splitInstruction({stakePubkey:n,authorizedPubkey:a,splitStakePubkey:i,lamports:c}))}static merge(e){const{stakePubkey:r,sourceStakePubKey:n,authorizedPubkey:a}=e,i=e0.Merge,s=yn(i);return new Sr().add({keys:[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:k0,isSigner:!1,isWritable:!1},{pubkey:MC,isSigner:!1,isWritable:!1},{pubkey:a,isSigner:!0,isWritable:!1}],programId:this.programId,data:s})}static withdraw(e){const{stakePubkey:r,authorizedPubkey:n,toPubkey:a,lamports:i,custodianPubkey:s}=e,o=e0.Withdraw,c=yn(o,{lamports:i}),l=[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:a,isSigner:!1,isWritable:!0},{pubkey:k0,isSigner:!1,isWritable:!1},{pubkey:MC,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}];return s&&l.push({pubkey:s,isSigner:!0,isWritable:!1}),new Sr().add({keys:l,programId:this.programId,data:c})}static deactivate(e){const{stakePubkey:r,authorizedPubkey:n}=e,a=e0.Deactivate,i=yn(a);return new Sr().add({keys:[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:k0,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:i})}}dk.programId=new $e("Stake11111111111111111111111111111111111111");dk.space=200;class xye{constructor(e,r,n,a){this.nodePubkey=void 0,this.authorizedVoter=void 0,this.authorizedWithdrawer=void 0,this.commission=void 0,this.nodePubkey=e,this.authorizedVoter=r,this.authorizedWithdrawer=n,this.commission=a}}class FJe{constructor(){}static decodeInstructionType(e){this.checkProgramId(e.programId);const n=Gt("instruction").decode(e.data);let a;for(const[i,s]of Object.entries(jl))if(s.index==n){a=i;break}if(!a)throw new Error("Instruction type incorrect; not a VoteInstruction");return a}static decodeInitializeAccount(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,4);const{voteInit:r}=Rn(jl.InitializeAccount,e.data);return{votePubkey:e.keys[0].pubkey,nodePubkey:e.keys[3].pubkey,voteInit:new xye(new $e(r.nodePubkey),new $e(r.authorizedVoter),new $e(r.authorizedWithdrawer),r.commission)}}static decodeAuthorize(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,3);const{newAuthorized:r,voteAuthorizationType:n}=Rn(jl.Authorize,e.data);return{votePubkey:e.keys[0].pubkey,authorizedPubkey:e.keys[2].pubkey,newAuthorizedPubkey:new $e(r),voteAuthorizationType:{index:n}}}static decodeAuthorizeWithSeed(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,3);const{voteAuthorizeWithSeedArgs:{currentAuthorityDerivedKeyOwnerPubkey:r,currentAuthorityDerivedKeySeed:n,newAuthorized:a,voteAuthorizationType:i}}=Rn(jl.AuthorizeWithSeed,e.data);return{currentAuthorityDerivedKeyBasePubkey:e.keys[2].pubkey,currentAuthorityDerivedKeyOwnerPubkey:new $e(r),currentAuthorityDerivedKeySeed:n,newAuthorizedPubkey:new $e(a),voteAuthorizationType:{index:i},votePubkey:e.keys[0].pubkey}}static decodeWithdraw(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,3);const{lamports:r}=Rn(jl.Withdraw,e.data);return{votePubkey:e.keys[0].pubkey,authorizedWithdrawerPubkey:e.keys[2].pubkey,lamports:r,toPubkey:e.keys[1].pubkey}}static checkProgramId(e){if(!e.equals(ty.programId))throw new Error("invalid instruction; programId is not VoteProgram")}static checkKeyLength(e,r){if(e.length<r)throw new Error(`invalid instruction; found ${e.length} keys, expected at least ${r}`)}}const jl=Object.freeze({InitializeAccount:{index:0,layout:$t([Gt("instruction"),$Ze()])},Authorize:{index:1,layout:$t([Gt("instruction"),on("newAuthorized"),Gt("voteAuthorizationType")])},Withdraw:{index:3,layout:$t([Gt("instruction"),So("lamports")])},UpdateValidatorIdentity:{index:4,layout:$t([Gt("instruction")])},AuthorizeWithSeed:{index:10,layout:$t([Gt("instruction"),HZe()])}}),UJe=Object.freeze({Voter:{index:0},Withdrawer:{index:1}});class ty{constructor(){}static initializeAccount(e){const{votePubkey:r,nodePubkey:n,voteInit:a}=e,i=jl.InitializeAccount,s=yn(i,{voteInit:{nodePubkey:Yr(a.nodePubkey.toBuffer()),authorizedVoter:Yr(a.authorizedVoter.toBuffer()),authorizedWithdrawer:Yr(a.authorizedWithdrawer.toBuffer()),commission:a.commission}}),o={keys:[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:_s,isSigner:!1,isWritable:!1},{pubkey:k0,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:s};return new vn(o)}static createAccount(e){const r=new Sr;return r.add(Or.createAccount({fromPubkey:e.fromPubkey,newAccountPubkey:e.votePubkey,lamports:e.lamports,space:this.space,programId:this.programId})),r.add(this.initializeAccount({votePubkey:e.votePubkey,nodePubkey:e.voteInit.nodePubkey,voteInit:e.voteInit}))}static authorize(e){const{votePubkey:r,authorizedPubkey:n,newAuthorizedPubkey:a,voteAuthorizationType:i}=e,s=jl.Authorize,o=yn(s,{newAuthorized:Yr(a.toBuffer()),voteAuthorizationType:i.index}),c=[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:k0,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}];return new Sr().add({keys:c,programId:this.programId,data:o})}static authorizeWithSeed(e){const{currentAuthorityDerivedKeyBasePubkey:r,currentAuthorityDerivedKeyOwnerPubkey:n,currentAuthorityDerivedKeySeed:a,newAuthorizedPubkey:i,voteAuthorizationType:s,votePubkey:o}=e,c=jl.AuthorizeWithSeed,l=yn(c,{voteAuthorizeWithSeedArgs:{currentAuthorityDerivedKeyOwnerPubkey:Yr(n.toBuffer()),currentAuthorityDerivedKeySeed:a,newAuthorized:Yr(i.toBuffer()),voteAuthorizationType:s.index}}),d=[{pubkey:o,isSigner:!1,isWritable:!0},{pubkey:k0,isSigner:!1,isWritable:!1},{pubkey:r,isSigner:!0,isWritable:!1}];return new Sr().add({keys:d,programId:this.programId,data:l})}static withdraw(e){const{votePubkey:r,authorizedWithdrawerPubkey:n,lamports:a,toPubkey:i}=e,s=jl.Withdraw,o=yn(s,{lamports:a}),c=[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:i,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1}];return new Sr().add({keys:c,programId:this.programId,data:o})}static safeWithdraw(e,r,n){if(e.lamports>r-n)throw new Error("Withdraw will leave vote account with insufficient funds.");return ty.withdraw(e)}static updateValidatorIdentity(e){const{votePubkey:r,authorizedWithdrawerPubkey:n,nodePubkey:a}=e,i=jl.UpdateValidatorIdentity,s=yn(i),o=[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:a,isSigner:!0,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}];return new Sr().add({keys:o,programId:this.programId,data:s})}}ty.programId=new $e("Vote111111111111111111111111111111111111111");ty.space=3762;const wye=new $e("Va1idator1nfo111111111111111111111111111111"),WJe=St({name:Rt(),website:Mr(Rt()),details:Mr(Rt()),iconUrl:Mr(Rt()),keybaseUsername:Mr(Rt())});class lG{constructor(e,r){this.key=void 0,this.info=void 0,this.key=e,this.info=r}static fromConfigData(e){let r=[...e];if(Hs(r)!==2)return null;const a=[];for(let i=0;i<2;i++){const s=new $e(qs(r,0,Xl)),o=Ll(r)===1;a.push({publicKey:s,isSigner:o})}if(a[0].publicKey.equals(wye)&&a[1].isSigner){const i=Sh().decode(It.Buffer.from(r)),s=JSON.parse(i);return Uge(s,WJe),new lG(a[1].publicKey,s)}return null}}const VJe=new $e("Vote111111111111111111111111111111111111111"),$Je=$t([on("nodePubkey"),on("authorizedWithdrawer"),Cr("commission"),w0(),f0($t([w0("slot"),Gt("confirmationCount")]),f2(Gt(),-8),"votes"),Cr("rootSlotValid"),w0("rootSlot"),w0(),f0($t([w0("epoch"),on("authorizedVoter")]),f2(Gt(),-8),"authorizedVoters"),$t([f0($t([on("authorizedPubkey"),w0("epochOfLastAuthorizedSwitch"),w0("targetEpoch")]),32,"buf"),w0("idx"),Cr("isEmpty")],"priorVoters"),w0(),f0($t([w0("epoch"),w0("credits"),w0("prevCredits")]),f2(Gt(),-8),"epochCredits"),$t([w0("slot"),w0("timestamp")],"lastTimestamp")]);class uG{constructor(e){this.nodePubkey=void 0,this.authorizedWithdrawer=void 0,this.commission=void 0,this.rootSlot=void 0,this.votes=void 0,this.authorizedVoters=void 0,this.priorVoters=void 0,this.epochCredits=void 0,this.lastTimestamp=void 0,this.nodePubkey=e.nodePubkey,this.authorizedWithdrawer=e.authorizedWithdrawer,this.commission=e.commission,this.rootSlot=e.rootSlot,this.votes=e.votes,this.authorizedVoters=e.authorizedVoters,this.priorVoters=e.priorVoters,this.epochCredits=e.epochCredits,this.lastTimestamp=e.lastTimestamp}static fromAccountData(e){const n=$Je.decode(Yr(e),4);let a=n.rootSlot;return n.rootSlotValid||(a=null),new uG({nodePubkey:new $e(n.nodePubkey),authorizedWithdrawer:new $e(n.authorizedWithdrawer),commission:n.commission,votes:n.votes,rootSlot:a,authorizedVoters:n.authorizedVoters.map(HJe),priorVoters:qJe(n.priorVoters),epochCredits:n.epochCredits,lastTimestamp:n.lastTimestamp})}}function HJe({authorizedVoter:t,epoch:e}){return{epoch:e,authorizedVoter:new $e(t)}}function Goe({authorizedPubkey:t,epochOfLastAuthorizedSwitch:e,targetEpoch:r}){return{authorizedPubkey:new $e(t),epochOfLastAuthorizedSwitch:e,targetEpoch:r}}function qJe({buf:t,idx:e,isEmpty:r}){return r?[]:[...t.slice(e+1).map(Goe),...t.slice(0,e).map(Goe)]}const Yoe={http:{devnet:"http://api.devnet.solana.com",testnet:"http://api.testnet.solana.com","mainnet-beta":"http://api.mainnet-beta.solana.com/"},https:{devnet:"https://api.devnet.solana.com",testnet:"https://api.testnet.solana.com","mainnet-beta":"https://api.mainnet-beta.solana.com/"}};function GJe(t,e){const r=e===!1?"http":"https";if(!t)return Yoe[r].devnet;const n=Yoe[r][t];if(!n)throw new Error(`Unknown ${r} cluster: ${t}`);return n}async function YJe(t,e,r,n){let a,i;r&&Object.prototype.hasOwnProperty.call(r,"lastValidBlockHeight")||r&&Object.prototype.hasOwnProperty.call(r,"nonceValue")?(a=r,i=n):i=r;const s=i&&{skipPreflight:i.skipPreflight,preflightCommitment:i.preflightCommitment||i.commitment,minContextSlot:i.minContextSlot},o=await t.sendRawTransaction(e,s),c=i&&i.commitment,d=(await(a?t.confirmTransaction(a,c):t.confirmTransaction(o,c))).value;if(d.err)throw o!=null?new O2({action:s!=null&&s.skipPreflight?"send":"simulate",signature:o,transactionMessage:`Status: (${JSON.stringify(d)})`}):new Error(`Raw transaction ${o} failed (${JSON.stringify(d)})`);return o}const P4=1e9,KJe=Object.freeze(Object.defineProperty({__proto__:null,Account:RZe,AddressLookupTableAccount:sI,AddressLookupTableInstruction:LJe,AddressLookupTableProgram:Wx,Authorized:vye,BLOCKHASH_CACHE_TIMEOUT_MS:oye,BPF_LOADER_DEPRECATED_PROGRAM_ID:FZe,BPF_LOADER_PROGRAM_ID:iQe,BpfLoader:sQe,COMPUTE_BUDGET_INSTRUCTION_LAYOUTS:Bl,ComputeBudgetInstruction:BJe,ComputeBudgetProgram:cG,Connection:ey,Ed25519Program:uk,Enum:PZe,EpochSchedule:iye,FeeCalculatorLayout:nye,Keypair:eo,LAMPORTS_PER_SOL:P4,LOOKUP_TABLE_INSTRUCTION_LAYOUTS:Ld,Loader:G8,Lockup:xM,MAX_SEED_LENGTH:Jge,Message:K1,MessageAccountKeys:Fx,MessageV0:z2,NONCE_ACCOUNT_LENGTH:sW,NonceAccount:ok,PACKET_DATA_SIZE:p2,PUBLIC_KEY_LENGTH:Xl,PublicKey:$e,SIGNATURE_LENGTH_IN_BYTES:Rx,SOLANA_SCHEMA:xv,STAKE_CONFIG_ID:yye,STAKE_INSTRUCTION_LAYOUTS:e0,SYSTEM_INSTRUCTION_LAYOUTS:ua,SYSVAR_CLOCK_PUBKEY:k0,SYSVAR_EPOCH_SCHEDULE_PUBKEY:ZZe,SYSVAR_INSTRUCTIONS_PUBKEY:rye,SYSVAR_RECENT_BLOCKHASHES_PUBKEY:wC,SYSVAR_RENT_PUBKEY:_s,SYSVAR_REWARDS_PUBKEY:QZe,SYSVAR_SLOT_HASHES_PUBKEY:JZe,SYSVAR_SLOT_HISTORY_PUBKEY:XZe,SYSVAR_STAKE_HISTORY_PUBKEY:MC,Secp256k1Program:x8,SendTransactionError:O2,SolanaJSONRPCError:hr,SolanaJSONRPCErrorCode:eQe,StakeAuthorizationLayout:RJe,StakeInstruction:OJe,StakeProgram:dk,Struct:tG,SystemInstruction:nQe,SystemProgram:Or,Transaction:Sr,TransactionExpiredBlockheightExceededError:rG,TransactionExpiredNonceInvalidError:z4,TransactionExpiredTimeoutError:nG,TransactionInstruction:vn,TransactionMessage:q8,TransactionStatus:Qu,VALIDATOR_INFO_KEY:wye,VERSION_PREFIX_MASK:ik,VOTE_PROGRAM_ID:VJe,ValidatorInfo:lG,VersionedMessage:aG,VersionedTransaction:P2,VoteAccount:uG,VoteAuthorizationLayout:UJe,VoteInit:xye,VoteInstruction:FJe,VoteProgram:ty,clusterApiUrl:GJe,sendAndConfirmRawTransaction:YJe,sendAndConfirmTransaction:iW},Symbol.toStringTag,{value:"Module"})),wM="Solana",ZJe="11111111111111111111111111111111",hh=class hh{constructor(e){ce(this,"type","Native");ce(this,"address");hh.instanceof(e)?this.address=e.address:fa.instanceof(e)?this.address=new $e(e.toUint8Array()):typeof e=="string"&&Pn.valid(e)?this.address=new $e(Pn.decode(e)):this.address=new $e(e)}unwrap(){return this.address}toString(){return this.address.toBase58()}toUint8Array(){return new Uint8Array(this.address.toBytes())}toNative(){return this}toUniversalAddress(){return new fa(this.toUint8Array())}static instanceof(e){return e.constructor.platform===hh.platform}equals(e){return hh.instanceof(e)?e.unwrap().equals(this.unwrap()):this.toUniversalAddress().equals(e)}};ce(hh,"byteSize",32),ce(hh,"platform",wM);let Sn=hh;Wg(wM,Sn);function QJe(t){if(t.length>=255)throw new TypeError("Alphabet too long");for(var e=new Uint8Array(256),r=0;r<e.length;r++)e[r]=255;for(var n=0;n<t.length;n++){var a=t.charAt(n),i=a.charCodeAt(0);if(e[i]!==255)throw new TypeError(a+" is ambiguous");e[i]=n}var s=t.length,o=t.charAt(0),c=Math.log(s)/Math.log(256),l=Math.log(256)/Math.log(s);function d(y){if(y instanceof Uint8Array||(ArrayBuffer.isView(y)?y=new Uint8Array(y.buffer,y.byteOffset,y.byteLength):Array.isArray(y)&&(y=Uint8Array.from(y))),!(y instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(y.length===0)return"";for(var x=0,M=0,E=0,S=y.length;E!==S&&y[E]===0;)E++,x++;for(var T=(S-E)*l+1>>>0,D=new Uint8Array(T);E!==S;){for(var k=y[E],_=0,L=T-1;(k!==0||_<M)&&L!==-1;L--,_++)k+=256*D[L]>>>0,D[L]=k%s>>>0,k=k/s>>>0;if(k!==0)throw new Error("Non-zero carry");M=_,E++}for(var O=T-M;O!==T&&D[O]===0;)O++;for(var B=o.repeat(x);O<T;++O)B+=t.charAt(D[O]);return B}function h(y){if(typeof y!="string")throw new TypeError("Expected String");if(y.length===0)return new Uint8Array;for(var x=0,M=0,E=0;y[x]===o;)M++,x++;for(var S=(y.length-x)*c+1>>>0,T=new Uint8Array(S);y[x];){var D=e[y.charCodeAt(x)];if(D===255)return;for(var k=0,_=S-1;(D!==0||k<E)&&_!==-1;_--,k++)D+=s*T[_]>>>0,T[_]=D%256>>>0,D=D/256>>>0;if(D!==0)throw new Error("Non-zero carry");E=k,x++}for(var L=S-E;L!==S&&T[L]===0;)L++;for(var O=new Uint8Array(M+(S-L)),B=M;L!==S;)O[B++]=T[L++];return O}function m(y){var x=h(y);if(x)return x;throw new Error("Non-base"+s+" character")}return{encode:d,decodeUnsafe:h,decode:m}}var JJe=QJe;const XJe=JJe,eXe="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";var tXe=XJe(eXe);const Mye=Ai(tXe),U_t=t=>Mye.encode(t),rXe=t=>Mye.decode(t),nXe=32;function W_t(t){try{return rXe(t).length===nXe}catch{return!1}}const Aye=32;function aXe(t){return iXe(t)&&sXe(t)===Aye}function V_t(t){return aXe(t)}function Sye(t,e=!1){let r=t.toLowerCase();return!e&&r.startsWith("0x")&&(r=r.slice(2)),`0x${r.padStart(Aye*2,"0")}`}function Eye(t,e=!1){return Sye(t,e)}function iXe(t){return/^(0x|0X)?[a-fA-F0-9]+$/.test(t)&&t.length%2===0}function sXe(t){return/^(0x|0X)/.test(t)?(t.length-2)/2:t.length/2}BigInt(1e9);const $_t="0x1",oXe="0x2";Eye("0x6");const H_t=`${oXe}::sui::SUI`;Eye("0x5");const wv="::",cXe="0x2::sui::SUI",Cye=t=>/^(0x)?[0-9a-fA-F]+::\w+::\w+$/.test(t),lXe=t=>t.replace(/(0x)(0*)/g,"0x");function Koe(t){return t=t.startsWith("0x")?t.slice(2):t,t=t.length%2===0?t:"0"+t,`0x${t.length===64?t:Pn.encode(sa.zpad(Pn.decode(t),32))}`}const q_t=t=>{const e=t.split(wv);if(e.length!==3)throw new Error(`Invalid Sui type: ${t}`);return[Sye(e[0]),e[1],e[2]].join(wv)},G_t=t=>new dG(t).getCoinType(),Y_t=t=>new dG(t).getPackageId(),K_t=t=>{const e=lXe(t).match(/0x2::table::Table<(.*)>/);if(!e)throw new Error(`Invalid table type: ${t}`);if(e.length<2)throw new Error(`Invalid table type: ${t}`);const[r]=e[1].split(",");if(!r||!Cye(r))throw new Error(`Invalid key type: ${r}`);return r};var Rl;let dG=(Rl=class{constructor(e){ce(this,"address");ce(this,"module");if(Rl.instanceof(e))this.address=e.address,this.module=e.module;else if(fa.instanceof(e))this.address=e.toUint8Array();else if(typeof e=="string"){if(Cye(e)){const r=e.split(wv);this.module=r.slice(1).join(wv),e=r[0]}if(e=Koe(e),!Pn.valid(e))throw new Error("Invalid Sui address: "+e);this.address=Pn.decode(e)}else this.address=e}unwrap(){const e=this.getPackageId(),r=this.module?wv+this.module:"";return`${e}${r}`}toString(){return this.unwrap()}toNative(){return this}toUint8Array(){return this.address}toUniversalAddress(){return new fa(this.toUint8Array())}getPackageId(){return Koe(Pn.encode(this.address))}getCoinType(){if(this.module==="sui::SUI")return cXe;if(!this.module)throw new Error("No module present in Sui token address");return this.unwrap()}static instanceof(e){return e.constructor.platform===Rl.platform}equals(e){return Rl.instanceof(e)?e.unwrap()===this.unwrap():this.toUniversalAddress().equals(e)}},ce(Rl,"byteSize",32),ce(Rl,"platform","Sui"),Rl);Wg("Sui",dG);async function uXe(t){try{const e=await Promise.all(t.map(async r=>r()));return await Promise.all(e.map(async r=>await dXe(r))),e}catch(e){throw console.error("Failed to load required packages",e),e}}async function dXe(t,e){try{let r=Object.entries(t.protocols);await Promise.all(r.map(([,n])=>n()))}catch(r){throw console.error("Failed to load required packages",r),r}}async function fXe(t,e,r){const n=(await uXe(e)).map(a=>a.Platform);return new Zr(t,n,r)}class fk extends WUe{constructor(r,n){super();ce(this,"conf");n?this.conf=n:this.conf=fk.getConfig(r),this.registerProviders()}get environment(){return this.conf.env}registerProviders(){var r;for(const n of Object.keys(this.conf.rpcs)){const a=pn(n);if(!a)throw new Error(`Unknown chain ${n}`);this.registerDomain({domain:a,name:n}),((r=this.conf.chains[n])==null?void 0:r.context)===dr.ETH&&this.registerRpcProvider(n,this.conf.rpcs[n])}}getContext(r){return this}static getConfig(r){return r==="Mainnet"?F8e:r==="Devnet"?U8e:R8e}}const Vv=class Vv extends Error{constructor(){super(Vv.MESSAGE)}};ce(Vv,"MESSAGE","Insufficient funds for gas"),ce(Vv,"MESSAGE_REGEX",/insufficient funds|Insufficient funds for gas/gm);let uW=Vv;const fG={MAINNET:F8e,TESTNET:R8e,DEVNET:U8e},{chains:mi}=fG.MAINNET,pXe={Ethereum:{...mi.Ethereum,displayName:"Ethereum",sdkName:"Ethereum",explorerUrl:"https://etherscan.io/",explorerName:"Etherscan",chainId:1,icon:"Ethereum",symbol:"ETH",wrappedGasToken:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"},Bsc:{...mi.Bsc,displayName:"BSC",sdkName:"Bsc",explorerUrl:"https://bscscan.com/",explorerName:"BscScan",chainId:56,icon:"Bsc",symbol:"BSC",wrappedGasToken:"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"},Polygon:{...mi.Polygon,displayName:"Polygon",sdkName:"Polygon",explorerUrl:"https://polygonscan.com/",explorerName:"PolygonScan",chainId:137,icon:"Polygon",symbol:"POL",wrappedGasToken:"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270"},Avalanche:{...mi.Avalanche,displayName:"Avalanche",sdkName:"Avalanche",explorerUrl:"https://avascan.info/blockchain/c/",explorerName:"Avascan",chainId:43114,icon:"Avalanche",symbol:"AVAX",wrappedGasToken:"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7"},Fantom:{...mi.Fantom,displayName:"Fantom",sdkName:"Fantom",explorerUrl:"https://ftmscan.com/",explorerName:"FTMscan",chainId:250,icon:"Fantom",symbol:"FTM",wrappedGasToken:"0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83"},Celo:{...mi.Celo,displayName:"Celo",sdkName:"Celo",explorerUrl:"https://explorer.celo.org/mainnet/",explorerName:"Celo Explorer",chainId:42220,icon:"Celo",symbol:"CELO"},Moonbeam:{...mi.Moonbeam,displayName:"Moonbeam",sdkName:"Moonbeam",explorerUrl:"https://moonscan.io/",explorerName:"Moonscan",chainId:1284,icon:"Moonbeam",symbol:"GLMR",wrappedGasToken:"0xAcc15dC74880C9944775448304B263D191c6077F"},Solana:{...mi.Solana,displayName:"Solana",sdkName:"Solana",explorerUrl:"https://explorer.solana.com/",explorerName:"Solana Explorer",chainId:0,icon:"Solana",symbol:"SOL",wrappedGasToken:"So11111111111111111111111111111111111111112"},Sui:{...mi.Sui,displayName:"Sui",sdkName:"Sui",explorerUrl:"https://suiscan.xyz/",explorerName:"Suiscan",chainId:0,icon:"Sui",symbol:"SUI"},Aptos:{...mi.Aptos,displayName:"Aptos",sdkName:"Aptos",explorerUrl:"https://explorer.aptoslabs.com/",explorerName:"Aptos Explorer",chainId:0,icon:"Aptos",symbol:"APT"},Base:{...mi.Base,displayName:"Base",sdkName:"Base",explorerUrl:"https://basescan.org/",explorerName:"BaseScan",chainId:8453,icon:"Base",symbol:"BASE",wrappedGasToken:"0x4200000000000000000000000000000000000006"},Arbitrum:{...mi.Arbitrum,displayName:"Arbitrum",sdkName:"Arbitrum",explorerUrl:"https://arbiscan.io/",explorerName:"Arbitrum Explorer",chainId:42161,icon:"Arbitrum",symbol:"ARB",wrappedGasToken:"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1"},Optimism:{...mi.Optimism,displayName:"Optimism",sdkName:"Optimism",explorerUrl:"https://optimistic.etherscan.io/",explorerName:"Optimistic Etherscan",chainId:10,icon:"Optimism",symbol:"OP",wrappedGasToken:"0x4200000000000000000000000000000000000006"},Klaytn:{...mi.Klaytn,displayName:"Kaia",sdkName:"Klaytn",explorerUrl:"https://kaiascope.com/",explorerName:"Kaia Scope",chainId:8217,icon:"Klaytn",symbol:"KLAY",wrappedGasToken:"0xe4f05A66Ec68B54A58B17c22107b02e0232cC817"},Scroll:{...mi.Scroll,displayName:"Scroll",sdkName:"Scroll",explorerUrl:"https://scrollscan.com/",explorerName:"Scrollscan",chainId:534352,icon:"Scroll",symbol:"SCR",wrappedGasToken:"0x5300000000000000000000000000000000000004"},Blast:{...mi.Blast,displayName:"Blast",sdkName:"Blast",explorerUrl:"https://blastscan.io/",explorerName:"Blastscan",chainId:81457,icon:"Blast",symbol:"BLAST",wrappedGasToken:"0x9D020B1697035d9d54f115194c9e04a1e4Eb9aF7"},Xlayer:{...mi.Xlayer,displayName:"X Layer",sdkName:"Xlayer",explorerUrl:"https://www.okx.com/web3/explorer/xlayer/",explorerName:"OKX Explorer",chainId:196,icon:"Xlayer",symbol:"OKX",wrappedGasToken:"0xe538905cf8410324e03A5A23C1c177a474D59b2b"},Mantle:{...mi.Mantle,displayName:"Mantle",sdkName:"Mantle",explorerUrl:"https://explorer.mantle.xyz/",explorerName:"Mantle Explorer",chainId:5e3,icon:"Mantle",symbol:"MNT",wrappedGasToken:"0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8"},Worldchain:{...mi.Worldchain,displayName:"World Chain",sdkName:"Worldchain",explorerUrl:"https://worldscan.org/",explorerName:"World Scan",chainId:480,icon:"Worldchain",symbol:"WORLD"},Unichain:{...mi.Unichain,displayName:"Unichain",sdkName:"Unichain",explorerUrl:"https://uniscan.xyz/",explorerName:"Uniscan",chainId:130,icon:"Unichain",symbol:"UNI",wrappedGasToken:"0x4200000000000000000000000000000000000006"},Berachain:{...mi.Berachain,displayName:"Berachain",sdkName:"Berachain",explorerUrl:"https://berascan.com/",explorerName:"Berascan",chainId:80094,icon:"Berachain",symbol:"BERA",wrappedGasToken:"0x6969696969696969696969696969696969696969"}},I5=t=>{console.error(`Wormhole Connect: ${t}`)},Wr=(t,e)=>e?{[t]:e}:{},hXe=(t,e)=>{if(!e)return t;for(const r in e)for(const n in e[r])t[r]||(t[r]={}),t[r][n]={...e[r][n],...t[r][n]};return t},mXe=(t,e,r)=>{if(t)return t.fromChain&&(e[t.fromChain]||(I5(`Invalid chain name "${t.fromChain}" specified for defaultInputs.fromChain`),delete t.fromChain)),t.toChain&&(e[t.toChain]||(I5(`Invalid chain name "${t.toChain}" specified for defaultInputs.toChain`),delete t.fromChain)),t.fromChain&&t.toChain&&t.fromChain===t.toChain&&I5("Source and destination chain cannot be the same, check the defaultInputs configuration"),t.fromChain&&t.toChain&&t.requiredChain&&(e[t.requiredChain]||I5(`Invalid network value "${t.requiredChain}" specified for defaultInputs.requiredChain`),t.toChain!==t.requiredChain&&t.fromChain!==t.requiredChain&&I5("Source chain or destination chain must equal the required network")),t.fromChain&&t.fromToken&&(r.findByAddressOrSymbol(t.fromChain,t.fromToken)||(I5(`Invalid token "${t.fromToken}" specified for defaultInputs.fromToken`),delete t.fromToken)),t.toChain&&t.toToken&&(r.findByAddressOrSymbol(t.toChain,t.toToken)||(I5(`Invalid token "${t.toToken}" specified for defaultInputs.toToken`),delete t.toToken)),t},bXe=t=>t[0].toUpperCase()+t.slice(1),gXe={},{REACT_APP_ETHEREUM_RPC:yXe,REACT_APP_SOLANA_RPC:vXe,REACT_APP_POLYGON_RPC:xXe,REACT_APP_BSC_RPC:wXe,REACT_APP_AVALANCHE_RPC:MXe,REACT_APP_FANTOM_RPC:AXe,REACT_APP_CELO_RPC:SXe,REACT_APP_MOONBEAM_RPC:EXe,REACT_APP_SUI_RPC:CXe,REACT_APP_APTOS_RPC:TXe,REACT_APP_BASE_RPC:IXe,REACT_APP_KLAYTN_RPC:DXe,REACT_APP_ARBITRUM_RPC:NXe,REACT_APP_OPTIMISM_RPC:kXe,REACT_APP_SCROLL_RPC:_Xe,REACT_APP_BLAST_RPC:LXe,REACT_APP_XLAYER_RPC:BXe,REACT_APP_MANTLE_RPC:jXe,REACT_APP_WORLDCHAIN_RPC:zXe,REACT_APP_UNICHAIN_RPC:PXe,REACT_APP_BERACHAIN_RPC:OXe}=gXe,RXe={...Wr("Ethereum",yXe),...Wr("Solana",vXe),...Wr("Polygon",xXe),...Wr("Bsc",wXe),...Wr("Avalanche",MXe),...Wr("Fantom",AXe),...Wr("Celo",SXe),...Wr("Moonbeam",EXe),...Wr("Sui",CXe),...Wr("Aptos",TXe),...Wr("Base",IXe),...Wr("Arbitrum",NXe),...Wr("Optimism",kXe),...Wr("Klaytn",DXe),...Wr("Scroll",_Xe),...Wr("Blast",LXe),...Wr("Xlayer",BXe),...Wr("Mantle",jXe),...Wr("Worldchain",zXe),...Wr("Unichain",PXe),...Wr("Berachain",OXe)};var tt=(t=>(t[t.AVAX=1]="AVAX",t[t.BNB=2]="BNB",t[t.BSC=3]="BSC",t[t.CELO=4]="CELO",t[t.ETH=5]="ETH",t[t.FANTOM=6]="FANTOM",t[t.POLYGON=7]="POLYGON",t[t.SOLANA=8]="SOLANA",t[t.USDC=9]="USDC",t[t.GLMR=10]="GLMR",t[t.DAI=11]="DAI",t[t.USDT=12]="USDT",t[t.BUSD=13]="BUSD",t[t.WBTC=14]="WBTC",t[t.SUI=15]="SUI",t[t.APT=16]="APT",t[t.SEI=17]="SEI",t[t.BASE=18]="BASE",t[t.OSMO=19]="OSMO",t[t.TBTC=20]="TBTC",t[t.WSTETH=21]="WSTETH",t[t.ARBITRUM=22]="ARBITRUM",t[t.OPTIMISM=23]="OPTIMISM",t[t.ATOM=24]="ATOM",t[t.EVMOS=25]="EVMOS",t[t.KUJI=26]="KUJI",t[t.PYTH=27]="PYTH",t[t.INJ=28]="INJ",t[t.KLAY=29]="KLAY",t[t.NTT=30]="NTT",t[t.SCROLL=31]="SCROLL",t[t.BLAST=32]="BLAST",t[t.XLAYER=33]="XLAYER",t[t.MANTLE=34]="MANTLE",t[t.WORLDCHAIN=35]="WORLDCHAIN",t[t.BERA=36]="BERA",t))(tt||{});const FXe=[{symbol:"ETH",decimals:18,icon:tt.ETH,tokenId:{chain:"Ethereum",address:"native"}},{symbol:"WETH",decimals:18,icon:tt.ETH,tokenId:{chain:"Ethereum",address:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"}},{symbol:"USDC",decimals:6,icon:tt.USDC,tokenId:{chain:"Ethereum",address:"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"}},{symbol:"WBTC",decimals:8,icon:tt.WBTC,tokenId:{chain:"Ethereum",address:"0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599"}},{symbol:"USDT",decimals:6,icon:tt.USDT,tokenId:{chain:"Ethereum",address:"0xdAC17F958D2ee523a2206206994597C13D831ec7"}},{symbol:"DAI",decimals:18,icon:tt.DAI,tokenId:{chain:"Ethereum",address:"0x6B175474E89094C44Da98b954EedeAC495271d0F"}},{symbol:"BUSD",decimals:18,icon:tt.BUSD,tokenId:{chain:"Ethereum",address:"0x4Fabb145d64652a948d72533023f6E7A623C7C53"}},{symbol:"POL",decimals:18,icon:tt.POLYGON,tokenId:{chain:"Polygon",address:"native"}},{symbol:"WPOL",decimals:18,icon:tt.POLYGON,tokenId:{chain:"Polygon",address:"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270"}},{symbol:"WETH",decimals:18,icon:tt.ETH,tokenId:{chain:"Polygon",address:"0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619"}},{symbol:"USDC",decimals:6,icon:tt.USDC,tokenId:{chain:"Polygon",address:"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359"}},{symbol:"USDT",decimals:6,icon:tt.USDT,tokenId:{chain:"Polygon",address:"0xc2132D05D31c914a87C6611C10748AEb04B58e8F"}},{symbol:"BNB",decimals:18,icon:tt.BNB,tokenId:{chain:"Bsc",address:"native"}},{symbol:"WBNB",decimals:18,icon:tt.BNB,tokenId:{chain:"Bsc",address:"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"}},{symbol:"USDC",decimals:18,icon:tt.USDC,tokenId:{chain:"Bsc",address:"0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d"}},{symbol:"AVAX",decimals:18,icon:tt.AVAX,tokenId:{chain:"Avalanche",address:"native"}},{symbol:"WAVAX",decimals:18,icon:tt.AVAX,tokenId:{chain:"Avalanche",address:"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7"}},{symbol:"USDC",decimals:6,icon:tt.USDC,tokenId:{chain:"Avalanche",address:"0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E"}},{symbol:"USDT",decimals:6,icon:tt.USDT,tokenId:{chain:"Avalanche",address:"0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7"}},{symbol:"WETH",decimals:18,icon:tt.ETH,tokenId:{chain:"Avalanche",address:"0x49D5c2BdFfac6CE2BFdB6640F4F80f226bc10bAB"}},{symbol:"FTM",decimals:18,icon:tt.FANTOM,tokenId:{chain:"Fantom",address:"native"}},{symbol:"WFTM",name:"Wrapped Fantom",decimals:18,icon:tt.FANTOM,tokenId:{chain:"Fantom",address:"0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83"}},{symbol:"USDC.e",decimals:6,icon:tt.USDC,tokenId:{chain:"Fantom",address:"0x2F733095B80A04b38b0D10cC884524a3d09b836a"}},{symbol:"CELO",decimals:18,icon:tt.CELO,tokenId:{chain:"Celo",address:"0x471EcE3750Da237f93B8E339c536989b8978a438"}},{symbol:"USDT",decimals:6,icon:tt.USDT,tokenId:{chain:"Celo",address:"0x48065fbBE25f71C9282ddf5e1cD6D6A887483D5e"}},{symbol:"GLMR",decimals:18,icon:tt.GLMR,tokenId:{chain:"Moonbeam",address:"native"}},{symbol:"WGLMR",decimals:18,icon:tt.GLMR,tokenId:{chain:"Moonbeam",address:"0xAcc15dC74880C9944775448304B263D191c6077F"}},{symbol:"SOL",decimals:9,icon:tt.SOLANA,tokenId:{chain:"Solana",address:"native"}},{symbol:"WSOL",decimals:9,tokenId:{chain:"Solana",address:"So11111111111111111111111111111111111111112"},icon:tt.SOLANA},{symbol:"USDC",decimals:6,tokenId:{chain:"Solana",address:"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"},icon:tt.USDC},{symbol:"USDT",decimals:6,icon:tt.USDT,tokenId:{chain:"Solana",address:"Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB"}},{symbol:"SUI",decimals:9,tokenId:{chain:"Sui",address:"native"},icon:tt.SUI},{symbol:"USDC",decimals:6,tokenId:{chain:"Sui",address:"0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7::usdc::USDC"},icon:tt.USDC},{symbol:"APT",decimals:8,tokenId:{chain:"Aptos",address:"native"},icon:tt.APT},{symbol:"USDC",decimals:6,tokenId:{chain:"Aptos",address:"0xbae207659db88bea0cbead6da0ed00aac12edcdda169e591cd41c94180b46f3b"},icon:tt.USDC},{symbol:"ETH",decimals:18,icon:tt.ETH,tokenId:{chain:"Arbitrum",address:"native"}},{symbol:"WETH",decimals:18,icon:tt.ETH,tokenId:{chain:"Arbitrum",address:"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1"}},{symbol:"USDC",decimals:6,icon:tt.USDC,tokenId:{chain:"Arbitrum",address:"0xaf88d065e77c8cC2239327C5EDb3A432268e5831"}},{symbol:"USDT",decimals:6,icon:tt.USDT,tokenId:{chain:"Arbitrum",address:"0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9"}},{symbol:"ETH",decimals:18,icon:tt.ETH,tokenId:{chain:"Optimism",address:"native"}},{symbol:"WETH",decimals:18,icon:tt.ETH,tokenId:{chain:"Optimism",address:"0x4200000000000000000000000000000000000006"}},{symbol:"USDC",decimals:6,icon:tt.USDC,tokenId:{chain:"Optimism",address:"0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85"}},{symbol:"USDT",decimals:6,icon:tt.USDT,tokenId:{chain:"Optimism",address:"0x94b008aA00579c1307B0EF2c499aD98a8ce58e58"}},{symbol:"WETH",decimals:18,icon:tt.ETH,tokenId:{chain:"Bsc",address:"0x2170Ed0880ac9A755fd29B2688956BD959F933F8"}},{symbol:"USDT",decimals:18,icon:tt.USDT,tokenId:{chain:"Bsc",address:"0x55d398326f99059fF775485246999027B3197955"}},{symbol:"ETH",decimals:18,icon:tt.ETH,tokenId:{chain:"Base",address:"native"}},{symbol:"WETH",decimals:18,icon:tt.ETH,tokenId:{chain:"Base",address:"0x4200000000000000000000000000000000000006"}},{symbol:"USDC",decimals:6,icon:tt.USDC,tokenId:{chain:"Base",address:"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}},{symbol:"USDT",decimals:6,icon:tt.USDT,tokenId:{chain:"Base",address:"0xfde4C96c8593536E31F229EA8f37b2ADa2699bb2"}},{symbol:"wstETH",decimals:18,tokenId:{chain:"Base",address:"0xc1CBa3fCea344f92D9239c08C0568f6F2F0ee452"},icon:tt.WSTETH},{symbol:"wstETH",decimals:18,tokenId:{chain:"Ethereum",address:"0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0"},icon:tt.WSTETH},{symbol:"wstETH",decimals:18,tokenId:{chain:"Arbitrum",address:"0x5979D7b546E38E414F7E9822514be443A4800529"},icon:tt.WSTETH},{symbol:"wstETH",decimals:18,tokenId:{chain:"Optimism",address:"0x1F32b1c2345538c0c6f582fCB022739c4A194Ebb"},icon:tt.WSTETH},{symbol:"wstETH",decimals:18,tokenId:{chain:"Polygon",address:"0x03b54A6e9a984069379fae1a4fC4dBAE93B3bCCD"},icon:tt.WSTETH},{symbol:"KLAY",decimals:18,icon:tt.KLAY,tokenId:{chain:"Klaytn",address:"native"}},{symbol:"WKLAY",decimals:18,name:"wKLAY",icon:tt.KLAY,tokenId:{chain:"Klaytn",address:"0xe4f05A66Ec68B54A58B17c22107b02e0232cC817"}},{symbol:"PYTH",decimals:6,tokenId:{chain:"Solana",address:"HZ1JovNiVvGrGNiiYvEozEVgZ58xaU3RKwX8eACQBCt3"},icon:tt.PYTH},{symbol:"ETH",decimals:18,icon:tt.SCROLL,tokenId:{chain:"Scroll",address:"native"}},{symbol:"WETH",decimals:18,icon:tt.SCROLL,tokenId:{chain:"Scroll",address:"0x5300000000000000000000000000000000000004"}},{symbol:"ETH",decimals:18,icon:tt.BLAST,tokenId:{chain:"Blast",address:"native"}},{symbol:"WETH",decimals:18,icon:tt.BLAST,tokenId:{chain:"Blast",address:"0x9D020B1697035d9d54f115194c9e04a1e4Eb9aF7"}},{symbol:"OKB",decimals:18,icon:tt.XLAYER,tokenId:{chain:"Xlayer",address:"native"}},{symbol:"WOKB",decimals:18,icon:tt.XLAYER,tokenId:{chain:"Xlayer",address:"0xe538905cf8410324e03A5A23C1c177a474D59b2b"}},{symbol:"MNT",decimals:18,icon:tt.MANTLE,tokenId:{chain:"Mantle",address:"native"}},{symbol:"WMNT",decimals:18,icon:tt.MANTLE,tokenId:{chain:"Mantle",address:"0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8"}},{symbol:"tBTC",decimals:18,tokenId:{chain:"Ethereum",address:"0x18084fbA666a33d37592fA2633fD49a74DD93a88"},icon:tt.TBTC},{symbol:"tBTC",decimals:18,tokenId:{chain:"Polygon",address:"0x236aa50979D5f3De3Bd1Eeb40E81137F22ab794b"},icon:tt.TBTC},{symbol:"tBTC",decimals:18,tokenId:{chain:"Optimism",address:"0x6c84a8f1c29108F47a79964b5Fe888D4f4D0dE40"},icon:tt.TBTC},{symbol:"tBTC",decimals:18,tokenId:{chain:"Arbitrum",address:"0x6c84a8f1c29108F47a79964b5Fe888D4f4D0dE40"},icon:tt.TBTC},{symbol:"tBTC",decimals:18,tokenId:{chain:"Base",address:"0x236aa50979D5f3De3Bd1Eeb40E81137F22ab794b"},icon:tt.TBTC},{symbol:"tBTC",decimals:8,tokenId:{chain:"Solana",address:"6DNSN2BJsaPFdFFc1zP37kkeNe4Usc1Sqkzr9C9vPWcU"},icon:tt.TBTC},{symbol:"ETH",tokenId:{chain:"Worldchain",address:"native"},decimals:18,icon:tt.WORLDCHAIN},{symbol:"WETH",tokenId:{chain:"Worldchain",address:"0x4200000000000000000000000000000000000006"},decimals:18,icon:tt.WORLDCHAIN},{symbol:"ETH",tokenId:{chain:"Unichain",address:"native"},decimals:18,icon:tt.ETH},{symbol:"WETH",tokenId:{chain:"Unichain",address:"0x4200000000000000000000000000000000000006"},decimals:18,icon:tt.ETH},{symbol:"USDC",tokenId:{chain:"Unichain",address:"0x078D782b760474a361dDA0AF3839290b0EF57AD6"},decimals:6,icon:tt.USDC},{symbol:"BERA",tokenId:{chain:"Berachain",address:"native"},decimals:18,icon:tt.BERA},{symbol:"WBERA",tokenId:{chain:"Berachain",address:"0x6969696969696969696969696969696969696969"},decimals:18,icon:tt.BERA}],UXe={Ethereum:{"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2":{Bsc:"0x4DB5a66E937A9F4473fA95b1cAF1d1E1D62E29EA",Polygon:"0x11CD37bb86F65419713f30673A480EA33c826872",Avalanche:"0x8b82A291F83ca07Af22120ABa21632088fC92931",Fantom:"0x2A126f043BDEBe5A0A9841c51915E562D9B07289",Celo:"0x66803FB87aBd4aaC3cbB3fAd7C3aa01f6F3FB207",Moonbeam:"0xab3f0245B83feB11d15AAffeFD7AD465a59817eD",Solana:"7vfCXTUXx5WJV5JADk17DUJ4ksgau7utNKj4b963voxs",Sui:"0xaf8cd5edc19c4512f4259f0bee101a40d41ebed738ade5874359610ef8eeced5::coin::COIN",Aptos:"0xcc8a89c8dce9693d354449f1f73e60e14e347417854f029db5bc8e7454008abb::coin::T",Base:"0x71b35ECb35104773537f849FBC353F81303A5860",Arbitrum:"0xD8369C2EDA18dD6518eABb1F85BD60606dEb39Ec",Optimism:"0xb47bC3ed6D70F04fe759b2529c9bc7377889678f",Blast:"0xC09a79fCF76ab2917c685896E3693e04EEbab69C",Mantle:"0x115Fcc627AcE0457fbeb7Af3b8BcAcE7Ff6211A4",Klaytn:"0x98A8345bB9D3DDa9D808Ca1c9142a28F6b0430E1",Worldchain:"0x6938c3EfFEf84E5C69e3d7cc41eBC6Cff99EF8A7"},"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48":{Bsc:"0xB04906e95AB5D797aDA81508115611fee694c2b3",Polygon:"0x4318CB63A2b8edf2De971E2F17F77097e499459D",Avalanche:"0xB24CA28D4e2742907115fECda335b40dbda07a4C",Fantom:"0x2Ec752329c3EB419136ca5e4432Aa2CDb1eA23e6",Celo:"0x37f750B7cC259A2f741AF45294f6a16572CF5cAd",Moonbeam:"0x931715FEE2d06333043d11F658C8CE934aC61D0c",Solana:"A9mUU4qviSctJVPJdBJWkb28deg915LYJKrzQ19ji3FM",Sui:"0x5d4b302506645c37ff133b98c4b50a5ae14841659738d6d733d59d0d217a93bf::coin::COIN",Aptos:"0x5e156f1207d0ebfa19a9eeff00d62a282278fb8719f4fab3a586a0a2c0fffbea::coin::T",Base:"0xec267C53f53807c2337C257f8AC3Fc3cC07cc0ed",Arbitrum:"0xC96F2715E2a242d50D1b0bC923dbe1740b8eCf18",Optimism:"0x711e53D031ea9B0bb0C24dD506df11b41AEA419e",Klaytn:"0x608792Deb376CCE1c9FA4D0E6B7b44f507CfFa6A",Worldchain:"0x2cbD3491d687A76bb9C53c30B212855520D47b52"},"0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599":{Bsc:"0x43359676E1A3F9FbB5de095333f8e9c1B46dFA44",Polygon:"0x5D49c278340655B56609FdF8976eb0612aF3a0C3",Avalanche:"0x1C0e79C5292c59bbC13C9F9f209D204cf4d65aD6",Fantom:"0x87e9E225aD8a0755B9958fd95BE43DD6A91FF3A7",Celo:"0xd71Ffd0940c920786eC4DbB5A12306669b5b81EF",Moonbeam:"0xE57eBd2d67B462E9926e04a8e33f01cD0D64346D",Solana:"3NZ9JMVBmGAqocybic2c7LQCJScmgsAZ6vQqTDzcqmJh",Sui:"0x027792d9fed7f9844eb4839566001bb6f6cb4804f66aa2da6fe1ee242d896881::coin::COIN",Aptos:"0xae478ff7d83ed072dbc5e264250e67ef58f57c99d89b447efd8a0a2e8b2be76e::coin::T",Base:"0xE6396f780b543dF16ee3b784D789c75B68319db0",Arbitrum:"0x397846a8078d4845c7f5c6Ca76aeBbcFDc044fAe",Optimism:"0xB214C19d81c99E75e84706a3aa0A757319023e26",Klaytn:"0x981846bE8d2d697f4dfeF6689a161A25FfbAb8F9",Worldchain:"0x06c9ec7E18A7900E79Ad5BeCc6Cc29E3eebD81EC"},"0xdAC17F958D2ee523a2206206994597C13D831ec7":{Bsc:"0x524bC91Dc82d6b90EF29F76A3ECAaBAffFD490Bc",Polygon:"0x9417669fBF23357D2774e9D421307bd5eA1006d2",Avalanche:"0x9d228444FC4B7E15A2C481b48E10247A03351FD8",Fantom:"0x14BCb86aEed6a74D3452550a25D37f1c30AA0A66",Celo:"0x617f3112bf5397D0467D315cC709EF968D9ba546",Moonbeam:"0xc30E9cA94CF52f3Bf5692aaCF81353a27052c46f",Solana:"Dn4noZ5jgGfkntzcQSUZ8czkreiZ1ForXYoV2H8Dm7S1",Sui:"0xc060006111016b8a020ad5b33834984a437aaa7d3c74c18e09a95d48aceab08c::coin::COIN",Aptos:"0xa2eda21a58856fda86451436513b867c97eecb4ba099da5775520e0f7492e852::coin::T",Base:"0xFf0C62A4979400841eFaA6faADb07Ac7d5C98b27",Arbitrum:"0xE4728F3E48E94C6DA2B53610E677cc241DAFB134",Optimism:"0xf6B4185FCf8aF291c0E3927fbEab7046b4f6A8CA",Blast:"0x37C1dea9C51864cc6640FA9c09f4dac574b8285E",Klaytn:"0x5C13E303a62Fc5DEdf5B52D66873f2E59fEdADC2",Xlayer:"0x5866709f926f26C5870191F40333ac462B917bC0",Worldchain:"0x95dd0680Fd6B6c7546e75C1A4E6A3256072C0593"},"0x6B175474E89094C44Da98b954EedeAC495271d0F":{Bsc:"0x3413a030EF81a3dD5a302F4B4D11d911e12ed337",Polygon:"0x732EB1747ecCFC431fF19bc359ffc83755B1918c",Avalanche:"0xca319f81D147559e19A522A0a0310Dd43A96cA0F",Fantom:"0xEE786D3D73Ea645365c7248E4e40eDba08B1169F",Celo:"0x97926a82930bb7B33178E3c2f4ED1BFDc91A9FBF",Moonbeam:"0x06e605775296e851FF43b4dAa541Bb0984E9D6fD",Solana:"EjmyN6qEC1Tf1JxiG1ae7UTJhUxSwk1TCWNWqxWV4J6o",Aptos:"0x407a220699982ebb514568d007938d2447d33667e4418372ffec1ddb24491b6c::coin::T",Base:"0x617Edadb51BfB43A44Bb91C7402129C23bA52381",Arbitrum:"0x5c4f2FEFB97F7DF09E762d95C83f0Ccf8bCe8234",Optimism:"0x098EA47D630b46df1E08e389e5e4466119c7dd30",Blast:"0x286ebE2BacB0EBeF746DBDA24dED0fc001c6d0F6",Sui:"0xc01c54cd767a60835bf100b0a8f7aae66ac9f4e374f76746af60f02493b6f2cf::coin::COIN",Klaytn:"0xCB2C7998696Ef7a582dFD0aAFadCd008D03E791A",Worldchain:"0x69635e59E89000e08a13C3F7B9f7293160Dc83a2"},"0x4Fabb145d64652a948d72533023f6E7A623C7C53":{Bsc:"0x035de3679E692C471072d1A09bEb9298fBB2BD31",Polygon:"0x95ea750420da26bE1Ab0891e209e921bCd84763f",Celo:"0x1dd42c0785ca90B677adc2ABad01dfc5ECcD0b4d",Moonbeam:"0xa2284e1F98E4d0B7Eb6a6b4f3C57f1b209C755F3",Solana:"33fsBLA8djQm82RpHmE3SuVrPGtZBWNYExsEUeKX1HXX",Aptos:"0x77400d2f56a01bad2d7c8c6fa282f62647ce3c03f43f2a8742e47ea01a91e24a::coin::T",Worldchain:"0x276719Fc6a38E62B717c6FF6E39d1C336ee633AB"},"0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0":{Polygon:"0xe082a7Fc696De18172Ad08D956569Ee80BC37f06",Solana:"ZScHuTtqZukUrtZS43teTKGs2VqkKL8k4QCouR2n6Uo",Arbitrum:"0xf2717122Dfdbe988ae811E7eFB157aAa07Ff9D0F",Optimism:"0x855CFcEEe998c8ca34F9c914F584AbF72dC88B87",Base:"0xEd4e2FD35161c3c0e33cA187fce64C70d44Ce32b",Bsc:"0xad80E1A9B5824234afA9dE1F3bbDb8a994796169",Avalanche:"0x11449fd2F05D93827972b40adE96F6ffBE42E35a",Fantom:"0x2a2Ec6Ad3e47C536F47934F63b95BD647F1C730E",Worldchain:"0xd977e0251db8d38155dC5d212944AB7B7a6777Ad"}},Polygon:{"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270":{Ethereum:"0x7c9f4C87d911613Fe9ca58b579f737911AAD2D43",Bsc:"0xc836d8dC361E44DbE64c4862D55BA041F88Ddd39",Avalanche:"0xf2f13f0B7008ab2FA4A2418F4ccC3684E49D20Eb",Fantom:"0xb88A6064B1F3FF5B9AE4A82fFD52560b0dF9FBD3",Celo:"0x9C234706292b1144133ED509ccc5B3CD193BF712",Moonbeam:"0x82DbDa803bb52434B1f4F41A6F0Acb1242A7dFa3",Solana:"Gz7VkD4MacbEB6yC5XD3HcumEiYx2EtDYYrfikGsvopG",Sui:"0xdbe380b13a6d0f5cdedd58de8f04625263f113b3f9db32b3e1983f49e2841676::coin::COIN",Aptos:"0x6781088e2a1629d38eda521467af4a8ca7bfa7e5516338017940389595c85c0f::coin::T",Base:"0xc863399E5c5C4011B1DC3fB602902C77BA72B709",Arbitrum:"0x3ab0E28C3F56616aD7061b4db38aE337E3809AEA",Optimism:"0x8f02B6a32cebcAe44D2Fd17d87966f5B5dD14c6d",Blast:"0xE00CB9206aCF0413aa9Dc12F01A22BB5Dd7A2866",Mantle:"0x1d15Dc3B3DB5A182eA8E3091F21EB0549d4a72E0",Klaytn:"0x9858e5A4f8202baD619D4BD39382CA67F4CA0E63",Scroll:"0x982D057feCD66c3af27b16EBC67C4db24810bcD8",Xlayer:"0xc97E2b2d7730C34adC389563721d9dF52EDA4A2a",Worldchain:"0xDcB507ECEA06724d8c4F2f03964f7EE4da504E8C"},"0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619":{Bsc:"0x1384284E16e3375522Be54F50909Bc52A69e90e4",Solana:"DQyeU3oFezEGia761GQ4iPcMCnxnH8fuLrmHZUvTYuby",Aptos:"0x2692323828f627a45a75a05eba8281dd46690c538b4f6ccb7a35ffe8199a28b7::coin::T",Sui:"0xa1ed6e76b06ff8f959cc479fbbd423820a3349dad8707b98ff4309c677fa20ad::coin::COIN",Arbitrum:"0xd2b299eD76d1369Ac8762CFEc85245fFD302FC17",Ethereum:"0x32d222E1f6386B3dF7065d639870bE0ef76D3599",Avalanche:"0x061FE51530768889dc20Ac7fCD29b5307b823395",Optimism:"0x2740220fFa4b206280907ce12b7cDC57445f3B92",Fantom:"0x1cAFd8d3301E4E54Fc1462E7117Eb678bF50C765",Base:"0x7A79923734eDA9c7f7ff69ad9ec1e234F67E7CD6",Moonbeam:"0xf1BB9A987B9edC360580b0c9F28069C808c2a7da",Celo:"0x8Ed68859f162970258992168293232e3Bdd987d0",Klaytn:"0x3eb25C7098AC38a852Cd2366161c5e216af50Df3"},"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359":{Aptos:"0xc5fd7820e9f053e6dd8e7dd8ca3ce8e9b10d200ba1692bdeb7a035217180ad4a::coin::T",Base:"0xFe1579BAc60363c8572CB30Bf4DD1Fd85811BBF8",Moonbeam:"0x4415BfBDee669446550d55c749007EF60B520FC8",Sui:"0x5c8c9082401982e8c2519a5c12883a5475295bf5cec4a0a13c26d35dd9a20d73::coin::COIN",Bsc:"0xe6d82Bbe75041E42E51d755e922cE1BA91af9c4d",Celo:"0x42c76808f3179A091Ee007A2955aF2522978ADE7",Fantom:"0xB4DcfD221048a1Dad989D39456BBd87762c26F06",Avalanche:"0xDb2d08f5A9C9ADBBA0DE5a69bbB1E9Ca03411692",Arbitrum:"0x599ADB10E6A012dF34935D47407450f6D7170e3C",Optimism:"0xbB1EaB9Eb8fDf65F0E291D013DA07B4b65a27a01",Solana:"C321jHPwWBzgfSGndosDTp5pBsiXPyMU1irxKLVcedRB",Ethereum:"0xFbcE0f9e92AD1003e893Ba647bC055D845aAa507",Klaytn:"0x59AEaD999e018a00B162D34de7a81AFFAB88bAbB"},"0x03b54A6e9a984069379fae1a4fC4dBAE93B3bCCD":{Base:"0xcB6D47199d60747152d7671D6497ce8D23cc1D75",Arbitrum:"0x23D3901A635fDd98D8d6509bc0720281f80a8E6D",Ethereum:"0x302F636d723c8Ed75C0d1E9D9C714009184C5624",Optimism:"0x4fad81d2268a7D9E1e0fE7dB38af07FFFA0aA56E",Celo:"0xA4c7302659eCF88a90e62e915Bd486E66B616A4C"}},Bsc:{"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c":{Ethereum:"0x418D75f65a02b3D53B2418FB8E1fe493759c7605",Polygon:"0xeCDCB5B88F8e3C15f95c720C51c71c9E2080525d",Avalanche:"0x442F7f22b1EE2c842bEAFf52880d4573E9201158",Fantom:"0xc033551e05907Ddd643AE14b6D4a9CA72BfF509B",Celo:"0xBf2554ce8A4D1351AFeB1aC3E5545AaF7591042d",Moonbeam:"0xE3b841C3f96e647E6dc01b468d6D0AD3562a9eeb",Solana:"9gP2kCy3wA1ctvYWQk75guqXuHfrEomqydHLtcTCqiLa",Sui:"0xb848cce11ef3a8f62eccea6eb5b35a12c4c2b1ee1af7755d02d7bd6218e8226f::coin::COIN",Aptos:"0x6312bc0a484bc4e37013befc9949df2d7c8a78e01c6fe14a34018449d136ba86::coin::T",Base:"0x7fdAa50d7399ac436943028edA6ed9a1BD89509f",Arbitrum:"0x7AF00405916D823eDb1121546EfA6F4972B51b84",Optimism:"0x6A09fE65ACa27C12573F04aAFa290bD75497E1BC",Blast:"0xdcd0Ec817d3ae2E82bCE8Cc9f92fFA7686A52160",Mantle:"0x9a7E85260d6F5d3c3d2a1FdDc3D980DBC78e508d",Klaytn:"0xaC9C1E4787139aF4c751B1C0fadfb513C44Ed833",Scroll:"0x5b0da0a36DC415714B53A4f24b56921332F42E7C",Xlayer:"0x8bC46166E06122603bA10D2bCA63b75091c25cAe",Worldchain:"0x59163d9c70E9b3852a504c5F1458e2daD33516Ff"},"0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d":{Ethereum:"0x7cd167B101D2808Cfd2C45d17b2E7EA9F46b74B6",Polygon:"0x4B3a922c773BDCF3BA8f1A4FDAc2029E1D0E9868",Avalanche:"0x6145E8a910aE937913426BF32De2b26039728ACF",Fantom:"0x0FcbDAC44c67A43607D3E95886dB19871ADc985F",Celo:"0x9d9abAE97a9344e3854527b4efbB366a1564bfEb",Moonbeam:"0x7f433E22366E03a3758CE22cCf82887d828078f8",Solana:"FCqfQSujuPxy6V42UvafBhsysWtEq1vhjfMN1PUbgaxA",Sui:"0x909cba62ce96d54de25bec9502de5ca7b4f28901747bbf96b76c2e63ec5f1cba::coin::COIN",Aptos:"0x79a6ed7a0607fdad2d18d67d1a0e552d4b09ebce5951f1e5c851732c02437595::coin::T",Base:"0x68E2b07F92ed506f92935d7359ECA84D5342dbb4",Arbitrum:"0x1a0590F951bc9C3818Ce75ba5Bbe92831b2cf57e",Optimism:"0x1C15057d1F3794C934a6cBC1f7EceE934050F219",Klaytn:"0x01B342d26FEF5749E87CBe412e16163771b0277c"},"0x2170Ed0880ac9A755fd29B2688956BD959F933F8":{Aptos:"0xd9fc4259ec5def95477dba9f0861c2882d1f8bee9a4138b476dd0720a3444547::coin::T",Solana:"FzjTz2cD1DfqYvafrbHWZvf1dK9qjwXGLuaU7xYXQjxP",Sui:"0x5029d5a94429a73b8036cd67192d9c5e09bbc2c0fee942d50075a9edba66744f::coin::COIN",Base:"0xf50509Bb6aF76E20c6E1eD493699c5f70764BcCC",Arbitrum:"0x6478377A399bE8c92bD35254aA7bF287836de32e",Ethereum:"0x5DbBB101CDc29443d12055eCDDdD7ca037Dce721",Fantom:"0xc511E3aec79CABD605021C237c475Ec553B002d4",Celo:"0x09F236D3708894581b1Cf679e582ba9eA5BE16f0",Klaytn:"0x4C07075BB44076106f3389766946b79784Fb5C58",Avalanche:"0xf0e509144CfA602d0A5e8C75d76FF74077f52f2b",Optimism:"0x8088Bc767c392b5769b94c9ec1D07c62874c8d5f",Polygon:"0x2D291e940DbDdaa9E847Ba5cC49451575f086b27",Moonbeam:"0xBefd7902B682938b29B3FD3D4AdECD9A984D5930"}},Avalanche:{"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7":{Ethereum:"0x85f138bfEE4ef8e540890CFb48F620571d67Eda3",Bsc:"0x96412902aa9aFf61E13f085e70D3152C6ef2a817",Polygon:"0x7Bb11E7f8b10E9e571E5d8Eace04735fDFB2358a",Fantom:"0x358CE030DC6116Cc296E8B9F002728e65459C146",Celo:"0xFFdb274b4909fC2efE26C8e4Ddc9fe91963cAA4d",Moonbeam:"0xd4937A95BeC789CC1AE1640714C61c160279B22F",Solana:"KgV1GvrHQmRBY8sHQQeUKwTm2r2h8t4C8qt12Cw1HVE",Sui:"0x1e8b532cca6569cab9f9b9ebc73f8c13885012ade714729aa3b450e0339ac766::coin::COIN",Aptos:"0x5b1bbc25524d41b17a95dac402cf2f584f56400bf5cc06b53c36b331b1ec6e8f::coin::T",Base:"0xc449A60A31E1eebFE83c42E9465fd4Dc318aE9a7",Arbitrum:"0x565609fAF65B92F7be02468acF86f8979423e514",Optimism:"0x8418C1d909842f458c9394886b83F19d62bF1A0D",Blast:"0x7D86F00026c2cD8137D60ae85d53c5E5a15B2481",Mantle:"0x2cAb4233d42043AEBbbb1445af362Ef686f3C133",Klaytn:"0x45830b92443a8f750247da2A76C85c70d0f1EBF3",Scroll:"0xC043c8A3672f397e7b52bF0a04F47d6f1aA952Ed",Xlayer:"0x5208Fb676B2DBab7aFaFB56e8997237F0ceECF71",Worldchain:"0x5Bf2A0622aa1254D963A3074b593A379784C116a"},"0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E":{Ethereum:"0x39EbF69137D98FB7659Ef8D4ea21ec26394389d7",Bsc:"0xc88Dc63bf0c8c8198C97Db0945E3eF25Ca89A8e4",Polygon:"0xAEA5CC14DefbC1b845FDE729E563B717Ee6825ae",Fantom:"0xEfE7701cb2B80664385Be226d0300912CA92f66A",Celo:"0x62FFf2D2D1692D52eAf043AeeC727F7918d269D3",Moonbeam:"0xd4918c40cA9f02d42Cb53d06587aF42017Bc345D",Solana:"FHfba3ov5P3RjaiLVgh8FTv4oirxQDoVXuoUUDvHuXax",Sui:"0xe596782fbaebef51ae99ffac8731aed98a80642b9dc193ed659c97fbc2cc0f84::coin::COIN",Aptos:"0x39d84c2af3b0c9895b45d4da098049e382c451ba63bec0ce0396ff7af4bb5dff::coin::T",Arbitrum:"0x93e0FcbEd43CD6fC30DF00CcBD4669718dc74e77",Optimism:"0x355f0a8a7ecAeD971b8Fbd50994558291ff2413a",Base:"0xD83385fE100E20c269a5975D4Bf92525BcE09F87",Blast:"0x3Db095413b5e1e5681c48028e31e8dc2505D8aD3",Klaytn:"0x9C97D4c09679Dfd00A39681f6d3b61A285312B13",Scroll:"0xbEFc3d0457fB88f82364Dd982F7BA195FEE96b74"},"0x49D5c2BdFfac6CE2BFdB6640F4F80f226bc10bAB":{Aptos:"0x25ff8e0c07552c392c9e5dd4c9c07cf0382765c1bca560e80b6296a702034219::coin::T",Solana:"F9B9qLwUN3TAWGV9EGsuzFzS2PxWvKAmLhvfeqYNaS7J",Bsc:"0xBDfe278268524de38Da89B3023C1F49deBDFdA8A",Sui:"0xc1ea686a329e35808c61484d95904d50522f1d1616cab4b416d9cfa9b274bc6c::coin::COIN",Base:"0xEfe64b52bc0bDfa109790736F25cefb79724adF0",Arbitrum:"0xdF64fB41b7f45304a786695E0D5daD8d033C01eF",Polygon:"0x2912b3a9586Fc2AB177dC869e878c688DAA7d06E",Ethereum:"0xD85a87Edbe9fB3Baf6a1Bbd1E46f1C04B291331d",Optimism:"0xBe6EA3e70e2bbB0dbD093B657fbbc0DFF0BA67eC",Moonbeam:"0x9C673c6b651D6FDEF57441125A6AC16b08bba939",Celo:"0xDac2C97b5E64d7C79d040cd2906EBe02341F1Ab5",Klaytn:"0x9971F9d9170D787C4e4E01c56E1BDB308291CacF",Fantom:"0x86a09597fc91b116511B990D29CB46ddedC0fCb0"}},Fantom:{"0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83":{Ethereum:"0x4cD2690d86284e044cb63E60F1EB218a825a7e92",Bsc:"0xbF8413EE8612E0E4f66Aa63B5ebE27f3C5883d47",Polygon:"0x3726831304D77f585f1Aca9d9841cc3Ef80dAa62",Avalanche:"0xd19abc09B7b36F7558929b97a866f499a26c2f83",Celo:"0xd1A342eE2210238233a347FEd61EE7Faf9f251ce",Moonbeam:"0x609AedD990bf45926bca9E4eE988b4Fb98587D3A",Solana:"DRQBDBEWmwWGK13fRTLhSPzjbvMSUavhV6nW4RUH8W6T",Sui:"0x6081300950a4f1e2081580e919c210436a1bed49080502834950d31ee55a2396::coin::COIN",Aptos:"0xd1aa2ff36a0e93e1b4e4fecdecf8bb95bc5de399061c5e84b515281f48718842::coin::T",Base:"0x936Fa2DE8380Dc5BF34C80F1BaD53a9f3630263B",Arbitrum:"0x7f7dcDb91930033a4Eb269196EBb6fd5f0644E4B",Optimism:"0x0b0ecbe5C3995541876d27633B63296570FB34Af",Blast:"0xf1D0eEeB6B6B35dc7289E1AD5e523F68b82bd09A",Mantle:"0x6BFDc59ECBC5503aE16F71851064597D0a75dA76",Klaytn:"0xF3AebeA789F30C22F3657F70f4CaA0f8b49ed676",Scroll:"0x16f077e2e9bF99Adfb1FEEc8360ee002842C44A2",Xlayer:"0x956b5E88c311b976C76CB415C7E030A5Af87373b"},"0x2F733095B80A04b38b0D10cC884524a3d09b836a":{Bsc:"0x521af8b1c43B503BE91F542d82EEFEabc0C93340",Arbitrum:"0xF68734163731ad6A6108f76A8e09862C1d412B42",Ethereum:"0xfcC349c14013EdeFAAcAE09Ba30F4ef2571b8D2c"}},Celo:{"0x471EcE3750Da237f93B8E339c536989b8978a438":{Ethereum:"0x3294395e62F4eB6aF3f1Fcf89f5602D90Fb3Ef69",Bsc:"0x2A335e327a55b177f5B40132fEC5D7298aa0D7e6",Polygon:"0x922F49a9911effc034eE756196E59BE7b90D43b3",Avalanche:"0x494317B8521c5a5287a06DEE467dd6fe285dA4a8",Fantom:"0xF432490C6c96C9d3bF523a499a1CEaFd8208A373",Moonbeam:"0xc1a792041985F65c17Eb65E66E254DC879CF380b",Solana:"9kvAcwQbqejuJMd59mKuw2bfSsLRaQ7zuvaTVHEeBBec",Sui:"0xa198f3be41cda8c07b3bf3fee02263526e535d682499806979a111e88a5a8d0f::coin::COIN",Aptos:"0xac0c3c35d50f6ef00e3b4db6998732fe9ed6331384925fe8ec95fcd7745a9112::coin::T",Base:"0x74df3823aA29D278cAD0A3632fCB56C896a38eD4",Arbitrum:"0x4E51aC49bC5e2d87e0EF713E9e5AB2D71EF4F336",Optimism:"0x9b88D293b7a791E40d36A39765FFd5A1B9b5c349",Blast:"0x75345Cc6a3333cca03aCE2a28C7de328122Db3b1",Klaytn:"0xB2b5bC9bc872c7107CBC8E8e0E2805Db0ac4FBc2",Worldchain:"0x2250A0E2532A745b585B69dd2CdC75207384917c"}},Moonbeam:{"0xAcc15dC74880C9944775448304B263D191c6077F":{Ethereum:"0x93d3696A9F879b331f40CB5059e37015423A3Bd0",Bsc:"0x1C063db3c621BF901FC6C1D03328b08b2F9bbfba",Polygon:"0xcC48d6CF842083fEc0E01d913fB964b585975F05",Avalanche:"0x375aA6C67BF499fBf01804A9f92C03c0776F372d",Fantom:"0xBF227E92D6754EB4BFE26C40cb299ff2809Da45f",Celo:"0x383A5513AbE4Fe36e0E00d484F710148E348Aa9D",Solana:"7ixSaXGsHAFy34wogPk2YXiUX3BMmQMFdercdaHLnBby",Sui:"0x66f87084e49c38f76502d17f87d17f943f183bb94117561eb573e075fdc5ff75::coin::COIN",Aptos:"0x7ab1283a7b13c4254d4e1f803d7ce6578442c1d7a40d0faee41cd48ba4884c8a::coin::T",Base:"0xfdB7311BeC3b2CcCF8407d0585f81B97b3b5eff1",Arbitrum:"0x944C5b67a03e6Cb93Ae1E4B70081f13b04CDB6Bd",Optimism:"0xbffD46DFDb8d3a02b8D2E0F864a2cD712090a4D3",Blast:"0x43E43580A34c8FdD4694e1F9B5F9b1121a7044a5",Klaytn:"0x52a4558f98dDc7cb40cd9114C005f0B9571258Fc",Scroll:"0x2Aba1Ed24EaFC17F801b1A7dF1c3a06737F8aB72",Xlayer:"0xE2a44Dad57004517738FbD84cdf09Bd1451b4e43",Worldchain:"0xaAe2Bd4EB640f02dD3a53bd994ad19110b4191b0"}},Solana:{So11111111111111111111111111111111111111112:{Ethereum:"0xD31a59c85aE9D8edEFeC411D448f90841571b89c",Bsc:"0xfA54fF1a158B5189Ebba6ae130CEd6bbd3aEA76e",Polygon:"0xd93f7E271cB87c23AaA73edC008A79646d1F9912",Avalanche:"0xFE6B19286885a4F7F55AdAD09C3Cd1f906D2478F",Fantom:"0xd99021C2A33e4Cf243010539c9e9b7c52E0236c1",Celo:"0x4581E64115d46CcdeE65Be2336bEc86c9BA54C01",Moonbeam:"0x99Fec54a5Ad36D50A4Bba3a41CAB983a5BB86A7d",Sui:"0xb7844e289a8410e50fb3ca48d69eb9cf29e27d223ef90353fe1bd8e27ff8f3f8::coin::COIN",Aptos:"0xdd89c0e695df0692205912fb69fc290418bed0dbe6e4573d744a6d5e6bab6c13::coin::T",Base:"0x1C61629598e4a901136a81BC138E5828dc150d67",Arbitrum:"0x2bcC6D6CdBbDC0a4071e48bb3B969b06B3330c07",Optimism:"0xba1Cf949c382A32a09A17B2AdF3587fc7fA664f1",Blast:"0xA5370b8e2413b23eA16F3B78D1d1ba3969678227",Mantle:"0xDA03239f428c76A527e1ceCa0ecA6cC367A2D945",Klaytn:"0xfAA03A2AC2d1B8481Ec3fF44A0152eA818340e6d",Xlayer:"0x3a859D92da2E16Ad32C5C6F3ADAddFBa4dE3A47e",Scroll:"0xCDf95E1F720caade4b1DC83ABfE15400D2a458AD",Worldchain:"0xEfae32D1c15EDBaEA3ebdDe1e2C51003AED04d30"},EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v:{Ethereum:"0x41f7B8b9b897276b7AAE926a9016935280b44E97",Bsc:"0x91Ca579B0D47E5cfD5D0862c21D5659d39C8eCf0",Polygon:"0x576Cf361711cd940CD9C397BB98C4C896cBd38De",Avalanche:"0x0950Fc1AD509358dAeaD5eB8020a3c7d8b43b9DA",Fantom:"0xb8398DA4FB3BC4306B9D9d9d13d9573e7d0E299f",Celo:"0x8B6eef6C449D3Ac723a9C06a9eaE2dCd7d308BA9",Moonbeam:"0x098d6eE48341D6a0a0A72dE5baaF80A10E0F6082",Sui:"0xb231fcda8bbddb31f2ef02e6161444aec64a514e2c89279584ac9806ce9cf037::coin::COIN",Aptos:"0xc91d826e29a3183eb3b6f6aa3a722089fdffb8e9642b94c5fcd4c48d035c0080::coin::T",Arbitrum:"0x3870546cfd600ba87e4180686d29dC993A45d3B7",Optimism:"0x6F974A6dfD5B166731704Be226795901c45Bb815",Base:"0xe8CE40EBBB844142400D21558a2F1c9683d69139",Klaytn:"0xa1a7feeD29EbFa38079D943486c23f401939Ce80",Scroll:"0x883Ccb5aEfD0084f1e4D04b133675acd6D5F123F"},HZ1JovNiVvGrGNiiYvEozEVgZ58xaU3RKwX8eACQBCt3:{Aptos:"0x770211b47954e15bec1a4271bf33bacebc2d2adb43b7dc1ca45efa787615dd4c::coin::T",Bsc:"0xb0188B0bb2cD4a6D2744637fC83C94a284B247Da",Base:"0x4c5d8A75F3762c1561D96f177694f67378705E98",Celo:"0x985aa4814419ba338379A634785216301e51113D",Avalanche:"0x8A0691e602B7a5FCc51a27E4a08376dE50889B42",Polygon:"0xFa4B761A1e07909Ba31331a5dfa12390E3ff5583",Fantom:"0x77ad3B2dA29FBd208F12c3C701E969F4422aAD79",Optimism:"0x99C59ACeBFEF3BBFB7129DC90D1a11DB0E91187f",Ethereum:"0xeFc0CED4B3D536103e76a1c4c74F0385C8F4Bdd3",Arbitrum:"0xE4D5c6aE46ADFAF04313081e8C0052A30b6Dd724",Sui:"0x9c6d76eb273e6b5ba2ec8d708b7fa336a5531f6be59f326b5be8d4d8b12348a4::coin::COIN",Moonbeam:"0x27cc3FDbDD1F415b09a41232D0fD71345DAB8030",Xlayer:"0x057b766b3fB76527cf815c3b5C38Dfa8144335CF",Worldchain:"0x838f3045F3B2dcDFF8cB4e5CaB0c0092A69B790a"}},Sui:{native:{Ethereum:"0x84074EA631dEc7a4edcD5303d164D5dEa4c653D6",Bsc:"0x8314f6Bf1B4dd8604A0fC33C84F9AF2fc07AABC8",Polygon:"0x34bE049fEbfc6C64Ffd82Da08a8931A9a45f2cc8",Avalanche:"0x1703CB0F762D2a435199B64Ea47E5349B7C17480",Fantom:"0xC277423a21F6e32D886BF85Ef6cCB945d5D28347",Celo:"0x1Cb9859B1A16A67ef83A0c7b9A21eeC17d9a97Dc",Moonbeam:"0x484eCCE6775143D3335Ed2C7bCB22151C53B9F49",Solana:"G1vJEgzepqhnVu35BN4jrkv3wVwkujYWFFCxhbEZ1CZr",Aptos:"0xa72a97e872be9ee3d2f14d56fd511eb7e4a53f4055be3a267d8602e7685b41c0::coin::T",Base:"0x36c6FBF7B49bF65f5F82b674af219C05b2a4aDD1",Arbitrum:"0xCF79d86B8a830030aF6D835737d6eac3bE823fD7",Optimism:"0x27A533e438892DA192725b4C9AcA51447F457212",Mantle:"0x9ef1BB6072d7d6B9C935d9c040133036aD532119",Blast:"0x62c95Ffd6d2f893Ea2EF072d1EbBcb242a974b1A",Klaytn:"0xB0B40516293e0204fB376A18aA230A210cbE0305",Xlayer:"0xEa76dBFE6e449420f294e74E057518F750E99A16",Worldchain:"0xf69005c35B5d9AcC22E4DbCf52f892cAE21F83B0"}},Aptos:{native:{Ethereum:"0x8CDf7AF57E4c8B930e1B23c477c22f076530585e",Bsc:"0x2Ba98cf7Edd2c5C794e21bc3Dc6973D3C2585eE3",Polygon:"0xa4ef199d3ad524E9C3C51Ac46B303B103A307Cef",Avalanche:"0x43c588459b3243fA541B98CC4B2E995b3de553A2",Fantom:"0x3Cd9162Ca5256b8E26A0e3Ad14CCfF7C0Da0F174",Celo:"0x89F2b718Ca518db39d377F0ABBa6B42582b549F7",Moonbeam:"0x25331575641d35D9765e1934acC8F0991c58e904",Solana:"6LNeTYMqtNm1pBFN8PfhQaoLyegAH8GD32WmHU9erXKN",Sui:"0x3a5143bb1196e3bcdfab6203d1683ae29edd26294fc8bfeafe4aaa9d2704df37::coin::COIN",Base:"0x1d36126289Be1658297A35CC3EB2BB80A7D7A04b",Arbitrum:"0x4EdeF400eDe5309240814b5FC403F224504604e9",Optimism:"0xC5B3AC2DF8D8D7AC851F763a5b3Ff23B4A696d59",Blast:"0x2a3DdE20159FbDbC86f1da0e7a462711b610c815",Klaytn:"0x68d5254007BE3a6d3d2A37e2C1ad3921D049F46D",Xlayer:"0xEdF2AEaCE382A3c0722f110c4927d34b78bce34F",Worldchain:"0xfC5011f2037f2Dad9c9aC05CbB6749B383C3099c"}},Arbitrum:{"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1":{Ethereum:"0xb945E3F853B5f8033C8513Cf3cE9F8AD9beBB1c9",Bsc:"0xaA1eEdABC48D078350ccBdD620bD088848e299E5",Polygon:"0x6a5c59AB16268d2c872916054C50440B999e417C",Avalanche:"0xDfDA518A1612030536bD77Fd67eAcbe90dDC52Ab",Fantom:"0xE8367853A0823515D37b1538331B4704089becb4",Celo:"0xc6F962fCcb140ece554AfD0E589f971532A57f14",Solana:"CSD6JQMvLi46psjHdpfFdr826mF336pEVMJgjwcoS1m4",Sui:"0x33744e7df340a4d01c23f6b18c13563f767545ea95f976f8045f056358419da3::coin::COIN",Aptos:"0xe977796d7bfb3263609b90dffd264c7bd078ce35dac42b55302858d9fa3452b::coin::T",Base:"0x9D36e0edb8BBaBeec5edE8a218dc2B9a6Fce494F",Optimism:"0x825206E1D29456337769e6f1384101E997C6A732",Moonbeam:"0x18872b45c603eD2EbC508b9C5514a85c2e2791FB",Klaytn:"0x3CF1751E32c4225CB12ba953786C260C2cE89008"},"0xaf88d065e77c8cC2239327C5EDb3A432268e5831":{Ethereum:"0xCFc006a32a98031C2338BF9d5ff8ED2c0Cae4a9e",Bsc:"0x5caa170b465122D15a6D20FD9A804a9613CE7882",Polygon:"0x7800FE8951cdc1cDea748d878fAce63018D97960",Avalanche:"0x4b5fE357Eb11c735078e47526D6e853DBff18541",Celo:"0xA41a62567d9eb960D84b72663FdaeBE0BCdE2683",Solana:"CR4xnGrhsu1fWNPoX4KbTUUtqGMF3mzRLfj4S6YEs1Yo",Sui:"0xc3f8927de33d3deb52c282a836082a413bc73c6ee0bd4d7ec7e3b6b4c28e9abf::coin::COIN",Aptos:"0xca3a2c28bc8c6c762f752dd2a4ebbfd00356ca99977ce6636e3af5897124a87a::coin::T",Optimism:"0xa6252F56cc6eEA21165d56744C795F91c8a3Cf68",Base:"0xb96B82Cd6D45d98Fb6897D16A5E4EE888329C513",Fantom:"0x2228703672906fEe5eD681Ec28e42B4506b8c336",Moonbeam:"0xbd2B6D665439514EEaA8519f4fE87CC8C46e9167",Klaytn:"0x3d5973fF7288f47857dAa5a32C53976A9A968928",Xlayer:"0xd53bD30985B4125fc561774e388d9f679BB84117"},"0x5979D7b546E38E414F7E9822514be443A4800529":{Bsc:"0x159167e842C586a81f02E55bc043AC8EdB033E0b",Aptos:"0xd2ca17516bc4ca57c1c69577e0c9cc0129153286695b46b97f438ecc138c225e::coin::T",Solana:"8wJakbZuv7WApfHmRo2sdkeQfu6hXqfEqjb7BYXDKpKe",Sui:"0xb607aed1c09e676384d14ae638dbcb08523fc691d309e71c856c7fdcb60d4430::coin::COIN",Base:"0xbE3981b37CcE5eCb6925d2ad9D9E28dE7b165793",Optimism:"0xEae5ccc3c36beF59f6794b467e7e228CB3720415",Fantom:"0xf65BF40A3299Df500D440520dF7e6ce1BEa53E73",Ethereum:"0x906310cE867C22c5016248Bd791FA5dd162c9D6d",Polygon:"0xcf0aa97c2fD78Ee0f0C3090B9EB65d2bd6C1D81a"}},Optimism:{"0x4200000000000000000000000000000000000006":{Fantom:"0xe8E8f941377A955bFA72880ec0dc2319dbC827a8",Celo:"0x8d53771b1Ec7461f8e45Bca2609c45bC0bbd0677",Solana:"8M6d63oL7dvMZ1gNbgGe3h8afMSWJEKEhtPTFM2u8h3c",Sui:"0x0aab14ec22908de73d1b0619f5e03842398f8e68262981bd35ef44b42d22b23a::coin::COIN",Aptos:"0x6a7a7f36ef5e2d0e65fcf72669c20d514d68298b0f76c7554517208f73260aaf::coin::T",Arbitrum:"0xB1fC645a86fB5085e12D8BDDb77702F728D2A26F",Avalanche:"0xDf11535274c0FD2Fe41A88bd1bBF802D72296037",Bsc:"0x94AEc09B5e2CE591e39DC6aa58A3A6E85Ed45265",Ethereum:"0x8B5653Ae095529155462eDa8CF664eD96773F557",Polygon:"0x8182De59485Bb646542Db8C7E5958148Dc699319",Base:"0xCb725aC8d9985D3bE306Dd9e1517d3702929176c",Moonbeam:"0xd4870F7F5AD8Ae5139E1a5D8AD4ac55204aE4490",Klaytn:"0x4ab77AF7059435b71dBC3B7c5255983C8628eFdf"},"0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85":{Fantom:"0x385b219f0C4fa2e84EfE5aaf9692a821C57B8248",Celo:"0xEe48963C003e21EaCEdFA8a0A19BB3cbF7E776Fe",Moonbeam:"0x7143e8EA96e158381057a58AfdDF44601c7e532C",Base:"0xc6bfBeb3002aD563D2d1f72614C61C83Bf147Acd",Arbitrum:"0x3A5C2Da9E30741cb59a5e9446A23A86886fC9DC2",Aptos:"0x4f6ecb05a797902d472abc2f5804bde93a53d8b75f14f767824cdb1623a4ee83::coin::T",Bsc:"0xa41ae127D04F7ee73B5058E2C60Fb7c7A2D21F79",Avalanche:"0xBe04f76A0ba2100c3F2d6Aa1FD8484F415469573",Polygon:"0x31F12aCb60C3c32EE884F3894a873347C097D925",Sui:"0x6037801f060f0f54b3817bca05e3c8b9b9ffaa2da8e93fd5b80fa662aa3c9e55::coin::COIN",Solana:"J8kcD4Wnd1ehne1dpL8WNtgZQR6Jpui2cTZcrmg5ybAa",Klaytn:"0x7Ee2AB1443fDB59AECEa3aDD8F81296d68c2D1e3",Ethereum:"0xe77C99b64414e0fd9aeEA48AFFBBD2E97A895020"},"0x1F32b1c2345538c0c6f582fCB022739c4A194Ebb":{Bsc:"0x1f29fAD000255BF49D72803b2A8FaC8e31947eF8",Base:"0xBb0BeaB819dEAf091C193bE4bBEeA9D5b0F5227C",Arbitrum:"0xf99C5EEd186601955a9a1027536D1b46b1f909F8",Polygon:"0x9065e1D25E65F7A1D60bb6197154386B52faA469",Ethereum:"0xB3ceE6DCa1dD528CB7CC258e32D8B50ce9Ee46f5"}},Base:{"0x4200000000000000000000000000000000000006":{Ethereum:"0x1D4241F7370253C0f12EFC536B7e16E462Fb3526",Bsc:"0x9dc152F4941cE1A138326e70c3600385bf0C22dD",Polygon:"0x5BCf8d8c097FbB35C371F921E3FF3e6F6Eb54B41",Avalanche:"0xFA83178c66fE51ee99109b5cC912f8098Ff812eF",Fantom:"0xd3365E7355230c78098b44B172eE27DAB95B041A",Celo:"0x905CADB645684140E285e2D09D39dF5a2082BC87",Moonbeam:"0x6C6f83366A42fcA4D30a2D3f1914284de995Ac3a",Solana:"DWXe1hxpnb8LAH21iyXcjvMbiAGzoYyuCVQtRLvZdLYd",Sui:"0xaecbc804fa7ca7cffc74c9a05eb6ae86fda0c68375b5c1724204a1065bcb239a::coin::COIN",Aptos:"0x5b5f14781164cf77185a7b6acd8e4f3cbb7e7cfb1cd5760d2b8af81075fc153d::coin::T",Arbitrum:"0xBAfbCB010D920e0Dab9DFdcF634De1B777028a85",Optimism:"0x3F369a664fa665e01e8EB9f20bFcE03A0CAb8971",Mantle:"0x4a2176DE2Fb36485704965bd1Cc471854f21303B",Klaytn:"0x7Bf9ad1D104dEAE4B59Ef1be6a273Cb46BA16362"},"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913":{Solana:"EfqRM8ZGWhDTKJ7BHmFvNagKVu3AxQRDQs8WMMaoBCu6",Moonbeam:"0xE6d02a875CcC153c076fe418f33De3A5C420f505",Celo:"0x2e2acb1782Aad0490f8446b6fD4626C467987bD6",Bsc:"0x55CaD531c8E303Cab8B3BE4bB4744Db4f896ac81",Optimism:"0xb931c7BbD87A6e249EaA7355B13927F9c99Bce87",Arbitrum:"0x8619F97D4d08382548F536E5CE1D3e0D9bA40326",Polygon:"0x1eeCaB0F75fE93abbFa0cDFfb4fB13d1dC8706c8",Avalanche:"0xab933e939a9236BD439F7d29b87CE712f42bAC06",Fantom:"0xd9E4C283d8A49Dc3767A6F5a4dFdc1d0cEf21604",Sui:"0x7e3e74afcc1913aa9491c8cee89b02131a6e5519b090f16b54321835c1241cfb::coin::COIN",Aptos:"0xfcc4fcd734d5b8578fb629d238d15264a49eca6165c7444c21feec3b4962eb88::coin::T",Blast:"0x35a926D55A726cdF70Ac498972F22426363F3C77",Mantle:"0x5D628a3285a10fdd93AEa704007957F294e05F91",Ethereum:"0xc38261846c42C1E1D59E04dA675Eb1974E9cE7b1",Klaytn:"0x0a2330c1C46E9A74e8651F7117a1264410eA3C88",Scroll:"0x22C9bde4Ad49C4b6CCFB8D394B5ED42A57853d58"},"0xc1CBa3fCea344f92D9239c08C0568f6F2F0ee452":{Arbitrum:"0x09E79693E44c8813A8CA25EeD7A40e5E24cD9c01",Ethereum:"0x187175c7a526f48c905202Bd2Bf8D25A457F479F",Polygon:"0x95d4C8e851D9E8c6B92aa518474E991c373E9Fb2",Optimism:"0x6ee40855c0BaB20585d17D2b9dd8d2Cd1cd41801",Avalanche:"0x5e513CA12DbD8424bDFc5B50711dF4AE999a8C58"}},Klaytn:{"0xe4f05A66Ec68B54A58B17c22107b02e0232cC817":{Aptos:"0x539b652f8230a0e42adaeda4706b5639893d22362eda6ea897493c210cb48219::coin::T",Ethereum:"0x9AEA32B459e96C8eF5010f69130bf95fd129ac05",Celo:"0xe304254de5c2048F9bFb042dDFB54f84d1d77730",Polygon:"0x415ce980fde17F1FF102e1c6e4ce860Acc615D74",Base:"0x41c433c146c47Dc53FC48cDc69e406e365e298E1",Arbitrum:"0xFA95f6c796E54F9C4a99392CAE84410a25794BB3",Moonbeam:"0xf0a9476E4712123A807859f9Fd25fe98213379BD",Fantom:"0x787e2F3509583C0F03A339Be0826463C839CBE5E",Sui:"0xa5ec915864d7f37b25ca9144b2db6ebcf29e73603c2ccf9d0e765adcd9049a98::coin::COIN",Avalanche:"0x126C03982Ad6D7ef7E6aF020bF219e87185a6BC3",Bsc:"0xEA970e7b7D131Ea36c3051C9Ca11e785462fE00c",Optimism:"0xbbeF8233a0d10EEAb84E913FaDB337ab9b62F683",Solana:"2b8fZGLBZjpxFugCdnJbbLLBYxvx23rsrsvLYYueiHb7",Blast:"0x5F6fE613528df9AE4Bf6f667fbCB923263098617",Scroll:"0xA55FB7A046454998b2f6d8D99Df5F0E108b38229",Worldchain:"0xC080f0082029fC6e8A4Bb33a9B0655B8d4f2BAB0"}},Scroll:{"0x5300000000000000000000000000000000000004":{Arbitrum:"0xAe81a542e20270b48Bd5297E3e0f280f79E46C42"}},Mantle:{"0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8":{Optimism:"0xf704F6a3241609Cfb3E44Db1237E68EB6CaC7C04"}}},WXe={chains:pXe,tokens:FXe,wrappedTokens:UXe,rpcs:RXe,guardianSet:{index:4,keys:["0x5893b5a76c3f739645648885bdccc06cd70a3cd3","0xff6cb952589bde862c25ef4392132fb9d4a42157","0x114de8460193bdf3a2fcf81f86a09765f4762fd1","0x107a0086b32d7a0977926a205131d8731d39cbeb","0x8c82b2fd82faed2711d59af0f2499d16e726f6b2","0x11b39756c042441be6d8650b69b54ebe715e2343","0x54ce5b4d348fb74b958e8966e2ec3dbd4958a7cd","0x15e7caf07c4e3dc8e7c469f92c8cd88fb8005a20","0x74a3bf913953d695260d88bc1aa25a4eee363ef0","0x000ac0076727b35fbea2dac28fee5ccb0fea768e","0xaf45ced136b9d9e24903464ae889f5c8a723fc14","0xf93124b7c738843cbb89e864c862c38cddcccf95","0xd2cc37a4dc036a8d232b48f62cdd4731412f4890","0xda798f6896a3331f64b48c12d1d57fd9cbe70811","0x71aa1be1d36cafe3867910f99c09e347899c19c3","0x8192b6e7387ccd768277c17dab1b7a5027c0b3cf","0x178e21ad2e77ae06711549cfbb1f9c7a9d8096e8","0x5e1487f35515d02a92753504a8d75471b9f49edb","0x6fbebc898f403e4773e95feb15e80c9a99c8348d"]}},{chains:Fi}=fG.TESTNET,VXe={Bsc:{...Fi.Bsc,displayName:"BSC",explorerUrl:"https://testnet.bscscan.com/",explorerName:"BscScan",chainId:97,icon:"Bsc",symbol:"BSC",sdkName:"Bsc",wrappedGasToken:"0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd"},Avalanche:{...Fi.Avalanche,displayName:"Fuji",explorerUrl:"https://testnet.avascan.info/blockchain/c/",explorerName:"Avascan",chainId:43113,icon:"Avalanche",symbol:"AVAX",sdkName:"Avalanche",wrappedGasToken:"0xd00ae08403B9bbb9124bB305C09058E32C39A48c"},Fantom:{...Fi.Fantom,displayName:"Fantom",explorerUrl:"https://testnet.ftmscan.com/",explorerName:"FtmScan",chainId:4002,icon:"Fantom",symbol:"FTM",sdkName:"Fantom",wrappedGasToken:"0xf1277d1Ed8AD466beddF92ef448A132661956621"},Celo:{...Fi.Celo,displayName:"Alfajores",explorerUrl:"https://explorer.celo.org/alfajores/",explorerName:"Celo Explorer",chainId:44787,icon:"Celo",symbol:"CELO",sdkName:"Celo"},Moonbeam:{...Fi.Moonbeam,displayName:"Moonbase",explorerUrl:"https://moonbase.moonscan.io/",explorerName:"Moonscan",chainId:1287,icon:"Moonbeam",symbol:"GLMR",sdkName:"Moonbeam",wrappedGasToken:"0xD909178CC99d318e4D46e7E66a972955859670E1"},Solana:{...Fi.Solana,displayName:"Solana",explorerUrl:"https://explorer.solana.com/",explorerName:"Solana Explorer",chainId:0,icon:"Solana",symbol:"SOL",sdkName:"Solana",wrappedGasToken:"So11111111111111111111111111111111111111112"},Sui:{...Fi.Sui,displayName:"Sui",explorerUrl:"https://suiscan.xyz/testnet/",explorerName:"Suiscan",chainId:0,icon:"Sui",symbol:"SUI",sdkName:"Sui"},Aptos:{...Fi.Aptos,displayName:"Aptos",explorerUrl:"https://explorer.aptoslabs.com/",explorerName:"Aptos Explorer",chainId:0,icon:"Aptos",symbol:"APT",sdkName:"Aptos"},Klaytn:{...Fi.Klaytn,displayName:"Kaia",explorerUrl:"https://kairos.kaiascope.com/",explorerName:"Kaia Scope",chainId:1001,icon:"Klaytn",symbol:"KLAY",sdkName:"Klaytn",wrappedGasToken:"0x0339d5Eb6D195Ba90B13ed1BCeAa97EbD198b106"},Sepolia:{...Fi.Sepolia,displayName:"Sepolia",explorerUrl:"https://sepolia.etherscan.io/",explorerName:"Etherscan",chainId:11155111,icon:"Ethereum",symbol:"ETH",sdkName:"Sepolia",wrappedGasToken:"0xeef12A83EE5b7161D3873317c8E0E7B76e0B5D9c"},ArbitrumSepolia:{...Fi.ArbitrumSepolia,displayName:"Arbitrum Sepolia",explorerUrl:"https://sepolia.arbiscan.io/",explorerName:"Etherscan",chainId:421614,icon:"Arbitrum",symbol:"ARB",sdkName:"ArbitrumSepolia",wrappedGasToken:"0x980B62Da83eFf3D4576C647993b0c1D7faf17c73"},BaseSepolia:{...Fi.BaseSepolia,displayName:"Base Sepolia",explorerUrl:"https://base-sepolia.blockscout.com/",explorerName:"Etherscan",chainId:84532,icon:"Base",symbol:"BASE",sdkName:"BaseSepolia",wrappedGasToken:"0x4200000000000000000000000000000000000006"},OptimismSepolia:{...Fi.OptimismSepolia,displayName:"Optimism Sepolia",explorerUrl:"https://sepolia-optimistic.etherscan.io/",explorerName:"Etherscan",chainId:11155420,icon:"Optimism",symbol:"OP",sdkName:"OptimismSepolia",wrappedGasToken:"0x4200000000000000000000000000000000000006"},Scroll:{...Fi.Scroll,displayName:"Scroll",explorerUrl:"https://sepolia.scrollscan.dev/",explorerName:"Scrollscan",chainId:534351,icon:"Scroll",symbol:"SCR",sdkName:"Scroll",wrappedGasToken:"0x5300000000000000000000000000000000000004"},Blast:{...Fi.Blast,displayName:"Blast",explorerUrl:"https://testnet.blastscan.io/",explorerName:"Blastscan",chainId:168587773,icon:"Blast",symbol:"BLAST",sdkName:"Blast",wrappedGasToken:"0x9D020B1697035d9d54f115194c9e04a1e4Eb9aF7"},Xlayer:{...Fi.Xlayer,displayName:"X Layer",explorerUrl:"https://www.okx.com/web3/explorer/xlayer-test/",explorerName:"OKX Explorer",chainId:195,icon:"Xlayer",symbol:"OKX",sdkName:"Xlayer",wrappedGasToken:"0xa2aFfd8301BfB3c5b815829f2F509f053556D21B"},Mantle:{...Fi.Mantle,displayName:"Mantle",explorerUrl:"https://explorer.testnet.mantle.xyz/",explorerName:"Mantle Explorer",chainId:5003,icon:"Mantle",symbol:"MNT",sdkName:"Mantle",wrappedGasToken:"0xa4c4cb2A072eE99f77212Fa18c2B7Ca26DA23905"},Worldchain:{...Fi.Worldchain,displayName:"World Chain",explorerUrl:"https://worldchain-sepolia.explorer.alchemy.com/",explorerName:"World Scan",chainId:4801,icon:"Worldchain",sdkName:"Worldchain",symbol:"WORLD"},Unichain:{...Fi.Unichain,displayName:"Unichain",explorerUrl:"https://unichain-sepolia.blockscout.com/",explorerName:"Unichain Explorer",chainId:1301,icon:"Unichain",symbol:"UNI",sdkName:"Unichain",wrappedGasToken:"0x4200000000000000000000000000000000000006"}},$Xe={},{REACT_APP_SEPOLIA_RPC:HXe,REACT_APP_BSC_TESTNET_RPC:qXe,REACT_APP_FUJI_RPC:GXe,REACT_APP_FANTOM_TESTNET_RPC:YXe,REACT_APP_ALFAJORES_RPC:KXe,REACT_APP_SOLANA_DEVNET_RPC:ZXe,REACT_APP_MOONBASE_RPC:QXe,REACT_APP_SUI_TESTNET_RPC:JXe,REACT_APP_APTOS_TESTNET_RPC:XXe,REACT_APP_BASE_SEPOLIA_RPC:eet,REACT_APP_KLAYTN_TESTNET_RPC:tet,REACT_APP_ARBITRUM_SEPOLIA_RPC:ret,REACT_APP_OPTIMISM_SEPOLIA_RPC:net,REACT_APP_SCROLL_TESTNET_RPC:aet,REACT_APP_BLAST_TESTNET_RPC:iet,REACT_APP_XLAYER_TESTNET_RPC:set,REACT_APP_MANTLE_TESTNET_RPC:oet,REACT_APP_WORLDCHAIN_TESTNET_RPC:cet,REACT_APP_UNICHAIN_TESTNET_RPC:uet}=$Xe,det={...Wr("Sepolia",HXe),...Wr("Bsc",qXe),...Wr("Avalanche",GXe),...Wr("Fantom",YXe),...Wr("Celo",KXe),...Wr("Solana",ZXe),...Wr("Moonbeam",QXe),...Wr("Sui",JXe),...Wr("Aptos",XXe),...Wr("BaseSepolia",eet),...Wr("ArbitrumSepolia",ret),...Wr("OptimismSepolia",net),...Wr("Klaytn",tet),...Wr("Scroll",aet),...Wr("Blast",iet),...Wr("Xlayer",set),...Wr("Mantle",oet),...Wr("Worldchain",cet),...Wr("Unichain",uet)},fet=[{symbol:"BNB",icon:tt.BNB,decimals:18,tokenId:{chain:"Bsc",address:"native"}},{symbol:"WBNB",icon:tt.BNB,decimals:18,tokenId:{chain:"Bsc",address:"0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd"}},{symbol:"AVAX",icon:tt.AVAX,decimals:18,tokenId:{chain:"Avalanche",address:"native"}},{symbol:"WAVAX",icon:tt.AVAX,decimals:18,tokenId:{chain:"Avalanche",address:"0xd00ae08403B9bbb9124bB305C09058E32C39A48c"}},{symbol:"USDC",icon:tt.USDC,decimals:6,tokenId:{chain:"Avalanche",address:"0x5425890298aed601595a70AB815c96711a31Bc65"}},{symbol:"FTM",icon:tt.FANTOM,decimals:18,tokenId:{chain:"Fantom",address:"native"}},{symbol:"WFTM",icon:tt.FANTOM,decimals:18,tokenId:{chain:"Fantom",address:"0xf1277d1Ed8AD466beddF92ef448A132661956621"}},{symbol:"CELO",icon:tt.CELO,decimals:18,tokenId:{chain:"Celo",address:"0xF194afDf50B03e69Bd7D057c1Aa9e10c9954E4C9"}},{symbol:"USDC.e",icon:tt.USDC,decimals:6,tokenId:{chain:"Celo",address:"0x72CAaa7e9889E0a63e016748179b43911A3ec9e5"}},{symbol:"GLMR",icon:tt.GLMR,decimals:18,tokenId:{chain:"Moonbeam",address:"native"}},{symbol:"WGLMR",icon:tt.GLMR,decimals:18,tokenId:{chain:"Moonbeam",address:"0xD909178CC99d318e4D46e7E66a972955859670E1"}},{symbol:"SOL",icon:tt.SOLANA,decimals:9,tokenId:{chain:"Solana",address:"native"}},{symbol:"WSOL",tokenId:{chain:"Solana",address:"So11111111111111111111111111111111111111112"},icon:tt.SOLANA,decimals:9},{symbol:"USDC",tokenId:{chain:"Solana",address:"4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU"},icon:tt.USDC,decimals:6},{symbol:"SUI",tokenId:{chain:"Sui",address:"native"},icon:tt.SUI,decimals:9},{symbol:"USDC",decimals:6,tokenId:{chain:"Sui",address:"0xa1ec7fc00a6f40db9693ad1415d0c193ad3906494428cf252621037bd7117e29::usdc::USDC"},icon:tt.USDC},{symbol:"APT",tokenId:{chain:"Aptos",address:"native"},icon:tt.APT,decimals:8},{symbol:"USDC",decimals:6,tokenId:{chain:"Aptos",address:"0x69091fbab5f7d635ee7ac5098cf0c1efbe31d68fec0f2cd565e8d168daf52832"},icon:tt.USDC},{symbol:"KLAY",icon:tt.KLAY,decimals:18,tokenId:{chain:"Klaytn",address:"native"}},{symbol:"WKLAY",name:"wKLAY",icon:tt.KLAY,decimals:18,tokenId:{chain:"Klaytn",address:"0x0339d5Eb6D195Ba90B13ed1BCeAa97EbD198b106"}},{symbol:"ETH",icon:tt.ETH,decimals:18,tokenId:{chain:"Sepolia",address:"native"}},{symbol:"WETH",icon:tt.ETH,decimals:18,tokenId:{chain:"Sepolia",address:"0xeef12A83EE5b7161D3873317c8E0E7B76e0B5D9c"}},{symbol:"USDC",icon:tt.USDC,decimals:6,tokenId:{chain:"Sepolia",address:"0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238"}},{symbol:"ETH",icon:tt.ETH,decimals:18,tokenId:{chain:"ArbitrumSepolia",address:"native"}},{symbol:"WETH",icon:tt.ETH,decimals:18,tokenId:{chain:"ArbitrumSepolia",address:"0x980B62Da83eFf3D4576C647993b0c1D7faf17c73"}},{symbol:"ETH",icon:tt.ETH,decimals:18,tokenId:{chain:"BaseSepolia",address:"native"}},{symbol:"WETH",icon:tt.ETH,decimals:18,tokenId:{chain:"BaseSepolia",address:"0x4200000000000000000000000000000000000006"}},{symbol:"ETH",icon:tt.ETH,decimals:18,tokenId:{chain:"OptimismSepolia",address:"native"}},{symbol:"WETH",icon:tt.ETH,decimals:18,tokenId:{chain:"OptimismSepolia",address:"0x4200000000000000000000000000000000000006"}},{symbol:"ETH",icon:tt.SCROLL,decimals:18,tokenId:{chain:"Scroll",address:"native"}},{symbol:"WETH",icon:tt.SCROLL,decimals:18,tokenId:{chain:"Scroll",address:"0x5300000000000000000000000000000000000004"}},{symbol:"ETH",icon:tt.BLAST,decimals:18,tokenId:{chain:"Blast",address:"native"}},{symbol:"WETH",icon:tt.BLAST,decimals:18,tokenId:{chain:"Blast",address:"0x9D020B1697035d9d54f115194c9e04a1e4Eb9aF7"}},{symbol:"OKB",icon:tt.XLAYER,decimals:18,tokenId:{chain:"Xlayer",address:"native"}},{symbol:"WOKB",icon:tt.XLAYER,decimals:18,tokenId:{chain:"Xlayer",address:"0xa2aFfd8301BfB3c5b815829f2F509f053556D21B"}},{symbol:"MNT",icon:tt.MANTLE,decimals:18,tokenId:{chain:"Mantle",address:"native"}},{symbol:"WMNT",icon:tt.MANTLE,decimals:18,tokenId:{chain:"Mantle",address:"0xa4c4cb2A072eE99f77212Fa18c2B7Ca26DA23905"}},{symbol:"ETH",tokenId:{chain:"Worldchain",address:"native"},decimals:18,icon:tt.WORLDCHAIN},{symbol:"WETH",tokenId:{chain:"Worldchain",address:"0x4200000000000000000000000000000000000006"},decimals:18,icon:tt.WORLDCHAIN},{symbol:"ETH",tokenId:{chain:"Unichain",address:"native"},decimals:18,icon:tt.ETH},{symbol:"WETH",tokenId:{chain:"Unichain",address:"0x4200000000000000000000000000000000000006"},decimals:18,icon:tt.ETH},{symbol:"USDC",tokenId:{chain:"Unichain",address:"0x31d0220469e10c4E71834a79b1f276d740d3768F"},decimals:6,icon:tt.USDC}],pet={Bsc:{"0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd":{Avalanche:"0x10F1053bF2884b28ee0Bd7a2dDBa237Af3511d29",Fantom:"0xfB174b43228950C2055CFc25AE93f2DCe8E2beF0",Celo:"0xa8050be9389466c3c524F10F131f244ACbf21A0D",Moonbeam:"0x6097E80331B0c6aF4F74D7F2363E70Cb2Fd078A5",Solana:"BaGfF51MQ3a61papTRDYaNefBgTQ9ywnVne5fCff4bxT",Sui:"0xddcf8680a8a4b8a527d8c85ec203274991590c2ea898d1c4635b70164d9c584b::coin::COIN",Aptos:"0xa5894f5ddb8647e6143102aa336ff07374f7b32e88c1c703aef5b7c9a370bf80::coin::T",Klaytn:"0xEFa3626825C33C4cd83850920Ad7Ac0a392E1faE",Sepolia:"0x02CdD5eB55934663F0aD8fbA3516dC7DE4E22894"}},Avalanche:{"0xd00ae08403B9bbb9124bB305C09058E32C39A48c":{Bsc:"0x6cE9E2c8b59bbcf65dA375D3d8AB503c8524caf7",Fantom:"0x0f545Be981C37fB15ab7c65404648761e99016e4",Celo:"0x502c8C83008D9Dd812a7C5fB886C063060C73Dbf",Moonbeam:"0x2E8afeCC19842229358f3650cc3F091908dcbaB4",Solana:"3Ftc5hTz9sG4huk79onufGiebJNDMZNL8HYgdMJ9E7JR",Sui:"0xa600741c469fb57ed01497ddf101e798fa79a9c529bd176675c5c4d970811f80::coin::COIN",Aptos:"0xbe8f4301c0b54e870902b9a23eeb95ce74ac190531782aa3262337ceb145401a::coin::T",Blast:"0x74C6aA987658FcBaB9FdC2ee65f52Ddd5B2cEd95",Klaytn:"0x10257392a2B5e3C4D4bEe1607650a1C0C738202a",Scroll:"0x5Bd1ba0040C16b13894A6EbE3d55708c91eF08bb",Xlayer:"0xb13a464ceE7455A9b2941bFAe1bB1eB5A6833867"},"0x5425890298aed601595a70AB815c96711a31Bc65":{Bsc:"0x1cfeCf72bcBE1E429A21A5B11E708C7c397AaC54",Fantom:"0x6BC4E8D8c1d54656D1DeBCa96efc53aFd1408aD2",Celo:"0xDDB349c976cA2C873644F21f594767Eb5390C831",Moonbeam:"0x6533CE14804D113b1F494dC56c5D60A43cb5C3b5",Solana:"GQtMXZxnuacCFTXVeTvyHi6P9F6chbtzhVc8JgD8hv7c",Sui:"0x2aa8c885d04e676c4e87b7d0f94d4f3b243b1b5d93239d1cc41d5528ce1714c1::coin::COIN",Aptos:"0x2ef7697bdb33361ca39d228671203afc0dea3202e792d79d2072b761d87c834::coin::T"}},Fantom:{"0xf1277d1Ed8AD466beddF92ef448A132661956621":{Bsc:"0x9aB305B792DBdb8253bEE909E7006611Cb45175b",Avalanche:"0x094cB577C21Ab1360178beE74B9591fa12216dAD",Celo:"0xE6F8710cA14CFe7F5aAAD3A799C3d1D92dCba938",Moonbeam:"0x566c1cebc6A4AFa1C122E039C4BEBe77043148Ee",Solana:"DMw2tLaq1bVoAEKtkoUtieSk9bfCPUvubYLatTMsSVop",Sui:"0x14e756ff65e0ac810a5f69ca5276ef5b899a6df3c4717de1f85559d8b5ae6ea6::coin::COIN",Aptos:"0x533c6ade00d15d1e014c41e29e34853e87df92c4e01a6a3f41318dbd098048d6::coin::T",Klaytn:"0x097c8878A0d852581Dc4D8820151094Ddd3663Ac",Sepolia:"0x852132647d301B7EED02589B1dc73545E73c8596"}},Celo:{"0xF194afDf50B03e69Bd7D057c1Aa9e10c9954E4C9":{Bsc:"0x1471698cBD9cAB0228F2EEA9303A2b3aA0ABDC2B",Avalanche:"0xC66d9c2b33c347d4A4441975f4688fcD5DD4c441",Fantom:"0xB18E73a69c3Aaea39a610372537Cf8482622d199",Moonbeam:"0x3406a9b09adf0cb36DC04c1523C4b294C6b79513",Solana:"84F2QX9278ToDmA98u4A86xSV9hz1ovazr8zwGaX6qjS",Sui:"0x81868174a6b11e1acc337b3414f9912455435d486609fb8d50b34312865085f2::coin::COIN",Aptos:"0xecbb0f7e7d049499ca83ca1358344f56557886f6f7adc740d6734cce7bfc9a14::coin::T",Klaytn:"0xC951826bbB310a8160BB78c2eEe6C98246292ba7",Sepolia:"0x648f226f3bDcAEdc844622d604F76935DC05bC24"}},Moonbeam:{"0xD909178CC99d318e4D46e7E66a972955859670E1":{Bsc:"0x5C31B36599ED7f06b09c0ffC7A2F928cE496F046",Avalanche:"0xf080782DF38eD5228D2FC2882d13D56c8f1D6f21",Fantom:"0x41E3CFDFC255A4bF3C8D3560Bc8D3D9b5080338e",Celo:"0x132D2172D89cd9CfD480A8887c6bF92360fB460e",Solana:"8987WGkYa5viiZ9DD8sS3PB5XghKmWjkEgmzvwDuoAEc",Sui:"0xeffae382de96981f7ddd2d294429924827e8f325d612487a12d6a0b249171002::coin::COIN",Aptos:"0x338373b6694f71dbeac5ca4a30503bf5f083888d71678aed31255de416be37c0::coin::T",Sepolia:"0x3F7CD70ECd402BBe71f45A95156A2CAC0d6A822E"}},Solana:{So11111111111111111111111111111111111111112:{Bsc:"0x30f19eBba919954FDc020B8A20aEF13ab5e02Af0",Avalanche:"0xb10563644a6AB8948ee6d7f5b0a1fb15AaEa1E03",Fantom:"0xED1a08Fc69A7008d225890A96aaE258c465CC7ad",Celo:"0x05EEF2AE1A7A938D78598F7d9e8b97A9bED0c9eC",Sui:"0xbc03aaab4c11eb84df8bf39fdc714fa5d5b65b16eb7d155e22c74a68c8d4e17f::coin::COIN",Aptos:"0xdd89c0e695df0692205912fb69fc290418bed0dbe6e4573d744a6d5e6bab6c13::coin::T",Klaytn:"0x48D99C16638E6FFD2ED60375cD35ef6c139e5f41",Moonbeam:"0x5babD0d267Adf2081626654E51d1cABF8c477440",Sepolia:"0x824CB8fC742F8D3300d29f16cA8beE94471169f5"},"4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU":{Bsc:"0x51a3cc54eA30Da607974C5D07B8502599801AC08"}},Sui:{native:{Bsc:"0x5A73D76e09Af2E428EC64aE10F91B78AC990B298",Avalanche:"0xfc5128F8556a6F059466E67740e6cC31EE5C2C47",Fantom:"0xd882AB49372eC093E8697B5153f54ab5e7738e3b",Celo:"0xa40d9E69ca9867C4bFbeC11Ce79C939991e9bf26",Solana:"BJZ72CjPQojVoH68mzrd4VQ4nr6KuhbAGnhZEZCujKxY",Aptos:"0x7b22d0e02f653d4fd1caddcfa4719a2b329da56eb81d8f27db703f02466c26a5::coin::T",Moonbeam:"0x2ed4B5B1071A3C676664E9085C0e3826542C1b27",Klaytn:"0xbA5F07a20681Add3A396E7606c6DC9B03d71d28A"}},Aptos:{native:{Bsc:"0x4A7Bd5E135f421057F97BbA8BCeeE5c18334f454",Avalanche:"0x996a3f12C1FcD7339Ea8801f629201e4d42EAD04",Fantom:"0xAb2297E8994149BA91737944E40891881aF762a4",Celo:"0xAC0a2fF7DD597de863878a3372142b07B614C125",Moonbeam:"0xCaa2A1d3BbbA0D1466571e83b4E2CbE04252593D",Solana:"7EvFD3JKCJVdtkAYdaSVKJsrPEJCzy2neJha7TREGrCa",Sui:"0x812d6feb8b84e55d47a0bfcae9fb6a4e7e09be5ec86ce0a729e0f67d5f59f477::coin::COIN"}},Klaytn:{"0x0339d5Eb6D195Ba90B13ed1BCeAa97EbD198b106":{Bsc:"0x79D34FDb686B5D139949E4F92D83EEe376489176",Aptos:"0xa8ffe1ffe3057756019345cdf9cf3d1f1a3d9a355147dd9440878c448a057579::coin::T",Celo:"0x8e50fC4b7F8B7018E72475f78C640F973218C8Cf",Avalanche:"0x84f3298Bcc019BD5B995756494095e1Eb72B565C",Solana:"6p7qTfX4tRFtQovxwT77Jn9HFQEV7nxLbux9C31Tgm23",Fantom:"0x72A1C24dA7F08d11a7668E228Ec287Fc6ec16E48",Sepolia:"0x142D0E977768cA4De6f2161D9E5B5C9F00435F9e",Moonbeam:"0x6eFf019D79D4136e57A7FC141967F3D0AD41089a",Sui:"0xd4a59fb612b162df75a9d190c0f72098dcae883e88bd0eb28667c31f8208dc3c::coin::COIN"}},Sepolia:{"0xeef12A83EE5b7161D3873317c8E0E7B76e0B5D9c":{Solana:"6F5YWWrUMNpee8C6BDUc6DmRvYRMDDTgJHwKhbXuifWs",Celo:"0x890ad4a7eD5bD08b7d6638515157dF3bF4BaD1Bc",Bsc:"0x667a61Efa611399970AE927637dD6f9A16f51e40",Moonbeam:"0xa7276055a1d45fB9982575411801e10ac9970Da8",ArbitrumSepolia:"0x97Ee87C7Db6049669a518730a2Ee60d1Fc58844E",Avalanche:"0x12bFE94230daaE3d48067577F45b7b031dD357f3",Fantom:"0x7F96D67186561Aa17cEb699494E94bEE3F3499D4"},"0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238":{Aptos:"0x3f2912a313c5bea312dbf19f9080101d2e762df6546a6fe9f60a4de72c93d015::coin::T",Solana:"23Adx8na44L3M1Nf9RrUpQPb41eufdRXKseg25FfcJtw",Celo:"0xD6A34325e5F6BE27b7006bf06651444196Da579a",Bsc:"0xb8850F591019F0794F813426d4A4A9b5fB8f23C8",BaseSepolia:"0x3F872340B6A75397aa9b0A463000349962a8795D",ArbitrumSepolia:"0x27B8F40Cf0915e729ae5A96970E91045Fe9724dF",Fantom:"0xa686203C86140142230f44A724281E1BEd09c369",Klaytn:"0x25f2a470a2e1E75DDAc40289AB277eDE4DD98aFa",Sui:"0x6529fef82a8a09470c550a3129bbd889030b62306f0c14161224b1a40ef1346f::coin::COIN"}},OptimismSepolia:{"0x4200000000000000000000000000000000000006":{ArbitrumSepolia:"0xa2610700cCA8361DECD27dB2564848C530f20813"}}},het={chains:VXe,tokens:fet,wrappedTokens:pet,rpcs:det,guardianSet:{index:0,keys:["0x13947Bd48b18E53fdAeEe77F3473391aC727C638"]}},{chains:sS}=fG.DEVNET,met={Ethereum:{...sS.Ethereum,sdkName:"Ethereum",displayName:"EVM",explorerUrl:"",explorerName:"",wrappedGasToken:"0xDDb64fE46a91D46ee29420539FC25FD07c5FEa3E",chainId:1,icon:"Ethereum",symbol:"ETH"},Osmosis:{...sS.Osmosis,displayName:"Osmosis",sdkName:"Osmosis",explorerUrl:"",explorerName:"",wrappedGasToken:"",chainId:"osmosis-1002",icon:"Osmosis",symbol:"OSMO"},Wormchain:{...sS.Wormchain,sdkName:"Wormchain",displayName:"Wormchain",explorerUrl:"",explorerName:"",wrappedGasToken:"",chainId:"wormchain-1",icon:"Osmosis",symbol:"OSMO"},Terra2:{...sS.Terra2,sdkName:"Terra2",displayName:"Terra",explorerUrl:"",explorerName:"",wrappedGasToken:"",chainId:"localterra",icon:"Terra2",symbol:"OSMO"}},bet={},{REACT_APP_ETHEREUM_DEVNET_RPC:get}=bet,yet={...Wr("Ethereum",get)},vet=[{symbol:"ETH",icon:tt.ETH,decimals:18,tokenId:{chain:"Ethereum",address:"native"}},{symbol:"WETH",icon:tt.ETH,decimals:18,tokenId:{chain:"Ethereum",address:"0xDDb64fE46a91D46ee29420539FC25FD07c5FEa3E"}},{symbol:"TKN",icon:tt.ETH,decimals:18,tokenId:{chain:"Ethereum",address:"0x2D8BE6BF0baA74e0A907016679CaE9190e80dD0A"}}],xet={chains:met,tokens:vet,wrappedTokens:{},rpcs:yet,guardianSet:{index:0,keys:["0x13947Bd48b18E53fdAeEe77F3473391aC727C638"]}},Tye="https://wormholescan.io/#/",wet="2.1.0-beta.3-development",Met="f59f6576d11531213cc4e0336963e4120d15b2db",Zoe=["Ethereum","Solana","Arbitrum","Base","Sui","Bsc","Optimism","Unichain","Fantom","Polygon","Avalanche","Celo","Moonbeam","Klaytn","Scroll","Evmos","Mantle","Berachain"];function Aet(t){return function(e){var n;const r={meta:{version:wet,hash:Met,host:(n=window==null?void 0:window.location)==null?void 0:n.host},...e};if(console.info("Wormhole Connect event:",r),t)try{t(r)}catch(a){console.error("Error handling event:",a)}}}const Eet="modulepreload",Cet=function(t){return"/"+t},Qoe={},Qs=function(e,r,n){let a=Promise.resolve();if(r&&r.length>0){document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),o=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));a=Promise.allSettled(r.map(c=>{if(c=Cet(c),c in Qoe)return;Qoe[c]=!0;const l=c.endsWith(".css"),d=l?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${d}`))return;const h=document.createElement("link");if(h.rel=l?"stylesheet":Eet,l||(h.as="script"),h.crossOrigin="",h.href=c,o&&h.setAttribute("nonce",o),document.head.appendChild(h),l)return new Promise((m,y)=>{h.addEventListener("load",m),h.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${c}`)))})}))}function i(s){const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=s,window.dispatchEvent(o),!o.defaultPrevented)throw s}return a.then(s=>{for(const o of s||[])o.status==="rejected"&&i(o.reason);return e().catch(i)})},Tet=async()=>(await Qs(async()=>{const{default:t}=await import("./assets/evm-Bh61_mSa.js");return{default:t}},[])).default,Iet=async()=>(await Qs(async()=>{const{default:t}=await import("./assets/solana-BJKBSUoJ.js");return{default:t}},__vite__mapDeps([0,1]))).default,Det=async()=>(await Qs(async()=>{const{default:t}=await import("./assets/aptos-BhW8ZShh.js").then(e=>e.a);return{default:t}},__vite__mapDeps([2,3,4,5]))).default,Net=async()=>(await Qs(async()=>{const{default:t}=await import("./assets/sui-BKctCUPP.js").then(e=>e.s);return{default:t}},__vite__mapDeps([6,4]))).default,ket="https://api.coingecko.com",_et="https://pro-api.coingecko.com",Joe={Solana:"solana",Ethereum:"ethereum",Arbitrum:"ethereum",Optimism:"ethereum",Base:"ethereum",Scroll:"ethereum",Blast:"ethereum",Bsc:"binancecoin",Polygon:"matic-network",Avalanche:"avalanche-2",Fantom:"fantom",Moonbeam:"moonbeam",Klaytn:"klay-token",Xlayer:"okb",Mantle:"mantle",Aptos:"aptos",Sui:"sui",Berachain:"berachain-bera"},Let={Bsc:"binance-smart-chain",Arbitrum:"arbitrum-one",Optimism:"optimism-ethereum",Polygon:"polygon-pos",Klaytn:"kaia-token",Xlayer:"x-layer"},dW=async(t,e)=>{var a,i,s,o;const r=new Headers({"Content-Type":"application/json",...(a=Oe.coingecko)!=null&&a.apiKey?{"x-cg-pro-api-key":Oe.coingecko.apiKey}:{}}),n=(i=Oe.coingecko)!=null&&i.customUrl?Oe.coingecko.customUrl:(s=Oe.coingecko)!=null&&s.apiKey?_et:ket;return fetch(`${n}${t}`,{signal:(o=e==null?void 0:e.abort)==null?void 0:o.signal,headers:r}).then(c=>c.json())},Bet=async(t,e)=>dW(`/api/v3/coins/${t.chain.toLowerCase()}/contract/${t.address.toString()}`,e),jet=async(t,e)=>{const r={},n=[];for(const o of t)kn(o.address)?n.push(o):(r[o.chain]===void 0&&(r[o.chain]=[]),r[o.chain].push(o.address.toString()));const a=Object.keys(r).map(o=>{const c=r[o];return new Promise((l,d)=>{const h=c.join(","),m=Let[o]||o.toLowerCase();dW(`/api/v3/simple/token_price/${m}?contract_addresses=${h}&vs_currencies=usd`,e).then(y=>{y.error!==void 0?d(y.error):l(Object.keys(y).map(x=>{try{const M=Zr.tokenId(o,x);return y[x]?{tokenId:M,price:y[x].usd}:null}catch(M){return console.error(M),null}}).filter(x=>x!==null))}).catch(d)})});n.length>0&&a.push(new Promise((o,c)=>{const l=[];for(const d of n){const h=Joe[d.chain];h?l.push(h):console.error(`Don't know a coingecko ID for native token for chain ${d.chain}`)}dW(`/api/v3/simple/price?ids=${l.join(",")}&vs_currencies=usd`,e).then(d=>o(n.map(h=>{const m=Joe[h.chain];if(m){const{usd:y}=d[m];return{tokenId:h,price:y}}else return null}).filter(h=>!!h))).catch(c)}));const i=new II,s=(await Promise.allSettled(a)).map(o=>o.status==="fulfilled"?o.value:null).filter(o=>!!o).flat();for(const{tokenId:o,price:c}of s)i.add(o,c);return i},pG=t=>({__option:"Some",value:t}),cI=()=>({__option:"None"}),hG=t=>t&&typeof t=="object"&&"__option"in t&&(t.__option==="Some"&&"value"in t||t.__option==="None"),h2=t=>t.__option==="Some",zet=t=>t.__option==="None";function Pet(t,e){return h2(t)?t.value:e?e():null}const Iye=t=>t!==null?pG(t):cI(),Oet=t=>h2(t)?t.value:null,Ret=(t,e)=>h2(t)?t.value:e();function fW(t,e){if(!t||ArrayBuffer.isView(t))return t;const r=n=>e?fW(n,e):fW(n);return hG(t)?h2(t)?r(t.value):e?e():null:Array.isArray(t)?t.map(r):typeof t=="object"?Object.fromEntries(Object.entries(t).map(([n,a])=>[n,r(a)])):t}let pk=class extends Error{constructor(r,n,a){const i=`Expected a string of base ${n}, got [${r}].`;super(i);ce(this,"name","InvalidBaseStringError");this.cause=a}};const hk=t=>{const e=t.length,r=BigInt(e);return{description:`base${e}`,fixedSize:null,maxSize:null,serialize(n){if(!n.match(new RegExp(`^[${t}]*$`)))throw new pk(n,e);if(n==="")return new Uint8Array;const a=[...n];let i=a.findIndex(h=>h!==t[0]);i=i===-1?a.length:i;const s=Array(i).fill(0);if(i===a.length)return Uint8Array.from(s);const o=a.slice(i);let c=0n,l=1n;for(let h=o.length-1;h>=0;h-=1)c+=l*BigInt(t.indexOf(o[h])),l*=r;const d=[];for(;c>0n;)d.unshift(Number(c%256n)),c/=256n;return Uint8Array.from(s.concat(d))},deserialize(n,a=0){if(n.length===0)return["",0];const i=n.slice(a);let s=i.findIndex(d=>d!==0);s=s===-1?i.length:s;const o=t[0].repeat(s);if(s===i.length)return[o,n.length];let c=i.slice(s).reduce((d,h)=>d*256n+BigInt(h),0n);const l=[];for(;c>0n;)l.unshift(t[Number(c%r)]),c/=r;return[o+l.join(""),n.length]}}},mG=hk("0123456789"),Dye={description:"base16",fixedSize:null,maxSize:null,serialize(t){const e=t.toLowerCase();if(!e.match(/^[0123456789abcdef]*$/))throw new pk(t,16);const r=e.match(/.{1,2}/g);return Uint8Array.from(r?r.map(n=>parseInt(n,16)):[])},deserialize(t,e=0){return[t.slice(e).reduce((n,a)=>n+a.toString(16).padStart(2,"0"),""),t.length]}},MM=hk("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),ls=t=>{const e=t.reduce((a,i)=>a+i.length,0),r=new Uint8Array(e);let n=0;return t.forEach(a=>{r.set(a,n),n+=a.length}),r},bG=(t,e)=>{if(t.length>=e)return t;const r=new Uint8Array(e).fill(0);return r.set(t),r},lI=(t,e)=>bG(t.slice(0,e),e);class u5 extends Error{constructor(r){super(`Serializer [${r}] cannot deserialize empty buffers.`);ce(this,"name","DeserializingEmptyBufferError")}}class M3 extends Error{constructor(r,n,a){super(`Serializer [${r}] expected ${n} bytes, got ${a}.`);ce(this,"name","NotEnoughBytesError")}}class AM extends Error{constructor(r){r??(r="Expected a fixed-size serializer, got a variable-size one.");super(r);ce(this,"name","ExpectedFixedSizeSerializerError")}}function mk(t,e,r){return{description:r??`fixed(${e}, ${t.description})`,fixedSize:e,maxSize:e,serialize:n=>lI(t.serialize(n),e),deserialize:(n,a=0)=>{if(n=n.slice(a,a+e),n.length<e)throw new M3("fixSerializer",e,n.length);t.fixedSize!==null&&(n=lI(n,t.fixedSize));const[i]=t.deserialize(n,0);return[i,a+e]}}}function SM(t,e,r){return{description:t.description,fixedSize:t.fixedSize,maxSize:t.maxSize,serialize:n=>t.serialize(e(n)),deserialize:(n,a=0)=>{const[i,s]=t.deserialize(n,a);return r?[r(i,n,a),s]:[i,s]}}}function Nye(t){if(t.fixedSize===null)throw new AM("Cannot reverse a serializer of variable size.");return{...t,serialize:e=>t.serialize(e).reverse(),deserialize:(e,r=0)=>{const n=t.fixedSize,a=ls([e.slice(0,r),e.slice(r,r+n).reverse(),e.slice(r+n)]);return t.deserialize(a,r)}}}const kye=(t,e)=>{const r=t.length,n=(a,i,s,o)=>{const c=[];let l=0,d=0;const h=(1<<s)-1;for(const m of a)for(l=l<<i|m,d+=i;d>=s;)d-=s,c.push(l>>d&h);return o&&d>0&&c.push(l<<s-d&h),c};return{description:`base${r}`,fixedSize:null,maxSize:null,serialize(a){if(!a.match(new RegExp(`^[${t}]*$`)))throw new pk(a,r);if(a==="")return new Uint8Array;const i=[...a].map(o=>t.indexOf(o)),s=n(i,e,8,!1);return Uint8Array.from(s)},deserialize(a,i=0){if(a.length===0)return["",0];const s=[...a.slice(i)];return[n(s,8,e,!0).map(c=>t[c]).join(""),a.length]}}},gG=SM(kye("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",6),t=>t.replace(/=/g,""),t=>t.padEnd(Math.ceil(t.length/4)*4,"=")),yG=t=>t.replace(/\u0000/g,""),_ye=(t,e)=>t.padEnd(e,"\0"),bk={description:"utf8",fixedSize:null,maxSize:null,serialize(t){return new TextEncoder().encode(t)},deserialize(t,e=0){const r=new TextDecoder().decode(t.slice(e));return[yG(r),t.length]}};class Mv extends Error{constructor(r,n){n=n?`. ${n}`:"";super(`The provided public key is invalid: ${r}${n}`);ce(this,"name","InvalidPublicKeyError");this.invalidPublicKey=r}}const Vx=32;function Oc(t,e=!0){const r=typeof t=="string"?t:typeof t=="object"&&"publicKey"in t?t.publicKey:typeof t=="object"&&"toBase58"in t?t.toBase58():Array.isArray(t)?t[0]:MM.deserialize(t)[0];return e&&vG(r),r}const Fet=()=>"11111111111111111111111111111111",dm=t=>{try{return vG(t),!0}catch{return!1}},Uet=t=>Array.isArray(t)&&t.length===2&&typeof t[1]=="number"&&dm(t[0]);function vG(t){if(typeof t!="string")throw new Mv(t,"Public keys must be strings.");gk(t)}const Wet=t=>[...new Set(t)],gk=t=>{if(t.length<32||t.length>44)throw new Mv(t,"Public keys must be between 32 and 44 characters.");let e;try{e=MM.serialize(t)}catch{throw new Mv(t,"Public keys must be base58 encoded.")}if(e.length!==Vx)throw new Mv(t,`Public keys must be ${Vx} bytes.`);return e},Vet=t=>Oc(t),$et=(t,e)=>Oc(t)===Oc(e);let $x;(function(t){t.Little="le",t.Big="be"})($x||($x={}));class Lye extends RangeError{constructor(r,n,a,i){super(`Serializer [${r}] expected number to be between ${n} and ${a}, got ${i}.`);ce(this,"name","NumberOutOfRangeError")}}function sc(t){let e,r=t.name;return t.size>1&&(e=!("endian"in t.options)||t.options.endian===$x.Little,r+=e?"(le)":"(be)"),{description:t.options.description??r,fixedSize:t.size,maxSize:t.size,serialize(n){t.range&&Bye(t.name,t.range[0],t.range[1],n);const a=new ArrayBuffer(t.size);return t.set(new DataView(a),n,e),new Uint8Array(a)},deserialize(n,a=0){const i=n.slice(a,a+t.size);Get("i8",i,t.size);const s=qet(i);return[t.get(s,e),a+t.size]}}}const Het=t=>t.buffer.slice(t.byteOffset,t.byteLength+t.byteOffset),qet=t=>new DataView(Het(t)),Bye=(t,e,r,n)=>{if(n<e||n>r)throw new Lye(t,e,r,n)},Get=(t,e,r)=>{if(e.length===0)throw new u5(t);if(e.length<r)throw new M3(t,r,e.length)},Yet=(t={})=>sc({name:"f32",size:4,set:(e,r,n)=>e.setFloat32(0,Number(r),n),get:(e,r)=>e.getFloat32(0,r),options:t}),Ket=(t={})=>sc({name:"f64",size:8,set:(e,r,n)=>e.setFloat64(0,Number(r),n),get:(e,r)=>e.getFloat64(0,r),options:t}),Zet=(t={})=>sc({name:"i8",size:1,range:[-+"0x7f"-1,+"0x7f"],set:(e,r)=>e.setInt8(0,Number(r)),get:e=>e.getInt8(0),options:t}),Qet=(t={})=>sc({name:"i16",size:2,range:[-+"0x7fff"-1,+"0x7fff"],set:(e,r,n)=>e.setInt16(0,Number(r),n),get:(e,r)=>e.getInt16(0,r),options:t}),Jet=(t={})=>sc({name:"i32",size:4,range:[-+"0x7fffffff"-1,+"0x7fffffff"],set:(e,r,n)=>e.setInt32(0,Number(r),n),get:(e,r)=>e.getInt32(0,r),options:t}),Xet=(t={})=>sc({name:"i64",size:8,range:[-BigInt("0x7fffffffffffffff")-1n,BigInt("0x7fffffffffffffff")],set:(e,r,n)=>e.setBigInt64(0,BigInt(r),n),get:(e,r)=>e.getBigInt64(0,r),options:t}),ett=(t={})=>sc({name:"i128",size:16,range:[-BigInt("0x7fffffffffffffffffffffffffffffff")-1n,BigInt("0x7fffffffffffffffffffffffffffffff")],set:(e,r,n)=>{const a=n?8:0,i=n?0:8,s=0xffffffffffffffffn;e.setBigInt64(a,BigInt(r)>>64n,n),e.setBigUint64(i,BigInt(r)&s,n)},get:(e,r)=>{const n=r?8:0,a=r?0:8,i=e.getBigInt64(n,r),s=e.getBigUint64(a,r);return(i<<64n)+s},options:t}),ry=(t={})=>sc({name:"u8",size:1,range:[0,+"0xff"],set:(e,r)=>e.setUint8(0,Number(r)),get:e=>e.getUint8(0),options:t}),ttt=(t={})=>sc({name:"u16",size:2,range:[0,+"0xffff"],set:(e,r,n)=>e.setUint16(0,Number(r),n),get:(e,r)=>e.getUint16(0,r),options:t}),EM=(t={})=>sc({name:"u32",size:4,range:[0,+"0xffffffff"],set:(e,r,n)=>e.setUint32(0,Number(r),n),get:(e,r)=>e.getUint32(0,r),options:t}),rtt=(t={})=>sc({name:"u64",size:8,range:[0,BigInt("0xffffffffffffffff")],set:(e,r,n)=>e.setBigUint64(0,BigInt(r),n),get:(e,r)=>e.getBigUint64(0,r),options:t}),ntt=(t={})=>sc({name:"u128",size:16,range:[0,BigInt("0xffffffffffffffffffffffffffffffff")],set:(e,r,n)=>{const a=n?8:0,i=n?0:8,s=0xffffffffffffffffn;e.setBigUint64(a,BigInt(r)>>64n,n),e.setBigUint64(i,BigInt(r)&s,n)},get:(e,r)=>{const n=r?8:0,a=r?0:8,i=e.getBigUint64(n,r),s=e.getBigUint64(a,r);return(i<<64n)+s},options:t}),att=(t={})=>({description:t.description??"shortU16",fixedSize:null,maxSize:3,serialize:e=>{Bye("shortU16",0,65535,e);const r=[0];for(let n=0;;n+=1){const a=e>>n*7;if(a===0)break;const i=127&a;r[n]=i,n>0&&(r[n-1]|=128)}return new Uint8Array(r)},deserialize:(e,r=0)=>{let n=0,a=0;for(;++a;){const i=a-1,s=e[r+i],o=127&s;if(n|=o<<i*7,!(s&128))break}return[n,r+a]}});class CM extends Error{constructor(r,n,a){super(`Expected [${r}] to have ${n} items, got ${a}.`);ce(this,"name","InvalidNumberOfItemsError")}}class itt extends Error{constructor(r,n){super(`The remainder of the buffer (${r} bytes) cannot be split into chunks of ${n} bytes. Serializers of "remainder" size must have a remainder that is a multiple of its item size. In other words, ${r} modulo ${n} should be equal to zero.`);ce(this,"name","InvalidArrayLikeRemainderSizeError")}}class jye extends Error{constructor(r){super(`Unrecognized array-like serializer size: ${JSON.stringify(r)}`);ce(this,"name","UnrecognizedArrayLikeSerializerSizeError")}}class zye extends Error{constructor(r,n){super(`Invalid data enum variant. Expected one of [${n.join(", ")}], got "${r}".`);ce(this,"name","InvalidDataEnumVariantError")}}class Pye extends Error{constructor(r,n,a,i){super(`Invalid scalar enum variant. Expected one of [${n.join(", ")}] or a number between ${a} and ${i}, got "${r}".`);ce(this,"name","InvalidScalarEnumVariantError")}}class xG extends RangeError{constructor(r,n,a){super(`Enum discriminator out of range. Expected a number between ${n} and ${a}, got ${r}.`);ce(this,"name","EnumDiscriminatorOutOfRangeError")}}function lu(t){return t.reduce((e,r)=>e===null||r===null?null:e+r,0)}function wG(t,e,r){if(typeof t=="number")return[t,r];if(typeof t=="object")return t.deserialize(e,r);throw new jye(t)}function A3(t){return typeof t=="object"?t.description:`${t}`}function H9(t,e){if(typeof t!="number")return null;if(t===0)return 0;const r=lu(e);return r===null?null:r*t}function MG(t,e){return typeof t=="object"?t.serialize(e):new Uint8Array}function stt(t,e={}){const r=e.size??EM();return{description:e.description??`array(${t.description}; ${A3(r)})`,fixedSize:H9(r,[t.fixedSize]),maxSize:H9(r,[t.maxSize]),serialize:n=>{if(typeof r=="number"&&n.length!==r)throw new CM("array",r,n.length);return ls([MG(r,n.length),...n.map(a=>t.serialize(a))])},deserialize:(n,a=0)=>{const i=[];if(typeof r=="object"&&n.slice(a).length===0)return[i,a];if(r==="remainder"){for(;a<n.length;){const[c,l]=t.deserialize(n,a);i.push(c),a=l}return[i,a]}const[s,o]=wG(r,n,a);a=o;for(let c=0;c<s;c+=1){const[l,d]=t.deserialize(n,a);i.push(l),a=d}return[i,a]}}}const Oye=(t,e={})=>{const r=typeof e=="boolean"?{backward:e}:e,n=r.backward??!1,a=n?"; backward":"";return{description:r.description??`bitArray(${t}${a})`,fixedSize:t,maxSize:t,serialize(i){const s=[];for(let o=0;o<t;o+=1){let c=0;for(let l=0;l<8;l+=1){const d=Number(i[o*8+l]??0);c|=d<<(n?l:7-l)}n?s.unshift(c):s.push(c)}return new Uint8Array(s)},deserialize(i,s=0){const o=[];let c=i.slice(s,s+t);if(c=n?c.reverse():c,c.length!==t)throw new M3("bitArray",t,c.length);return c.forEach(l=>{for(let d=0;d<8;d+=1)n?(o.push(!!(l&1)),l>>=1):(o.push(!!(l&128)),l<<=1)}),[o,s+t]}}};function ott(t={}){const e=t.size??ry();if(e.fixedSize===null)throw new AM("Serializer [bool] requires a fixed size.");return{description:t.description??`bool(${e.description})`,fixedSize:e.fixedSize,maxSize:e.fixedSize,serialize:r=>e.serialize(r?1:0),deserialize:(r,n=0)=>{if(r.slice(n).length===0)throw new u5("bool");const[a,i]=e.deserialize(r,n);return[a===1,i]}}}function ctt(t={}){const e=t.size??"variable",r=t.description??`bytes(${A3(e)})`,n={description:r,fixedSize:null,maxSize:null,serialize:a=>new Uint8Array(a),deserialize:(a,i=0)=>{const s=a.slice(i);return[s,i+s.length]}};return e==="variable"?n:typeof e=="number"?mk(n,e,r):{description:r,fixedSize:null,maxSize:null,serialize:a=>{const i=n.serialize(a),s=e.serialize(i.length);return ls([s,i])},deserialize:(a,i=0)=>{if(a.slice(i).length===0)throw new u5("bytes");const[s,o]=e.deserialize(a,i),c=Number(s);i=o;const l=a.slice(i,i+c);if(l.length<c)throw new M3("bytes",c,l.length);const[d,h]=n.deserialize(l);return i+=h,[d,i]}}}function Rye(t){return t.reduce((e,r)=>e===null||r===null?null:Math.max(e,r),0)}function ltt(t,e={}){const r=e.size??ry(),n=t.map(([o,c])=>`${String(o)}${c?`: ${c.description}`:""}`).join(", "),i=t.every((o,c,l)=>o[1].fixedSize===l[0][1].fixedSize)?t[0][1].fixedSize:null,s=Rye(t.map(([,o])=>o.maxSize));return{description:e.description??`dataEnum(${n}; ${r.description})`,fixedSize:t.length===0?r.fixedSize:lu([r.fixedSize,i]),maxSize:t.length===0?r.maxSize:lu([r.maxSize,s]),serialize:o=>{const c=t.findIndex(([m])=>o.__kind===m);if(c<0)throw new zye(o.__kind,t.map(([m])=>m));const l=r.serialize(c),h=t[c][1].serialize(o);return ls([l,h])},deserialize:(o,c=0)=>{if(o.slice(c).length===0)throw new u5("dataEnum");const[l,d]=r.deserialize(o,c);c=d;const h=t[Number(l)]??null;if(!h)throw new xG(l,0,t.length-1);const[m,y]=h[1].deserialize(o,c);return c=y,[{__kind:h[0],...m??{}},c]}}}function utt(t,e,r={}){const n=r.size??EM();return{description:r.description??`map(${t.description}, ${e.description}; ${A3(n)})`,fixedSize:H9(n,[t.fixedSize,e.fixedSize]),maxSize:H9(n,[t.maxSize,e.maxSize]),serialize:a=>{if(typeof n=="number"&&a.size!==n)throw new CM("map",n,a.size);const i=Array.from(a,([s,o])=>ls([t.serialize(s),e.serialize(o)]));return ls([MG(n,a.size),...i])},deserialize:(a,i=0)=>{const s=new Map;if(typeof n=="object"&&a.slice(i).length===0)return[s,i];if(n==="remainder"){for(;i<a.length;){const[l,d]=t.deserialize(a,i);i=d;const[h,m]=e.deserialize(a,i);i=m,s.set(l,h)}return[s,i]}const[o,c]=wG(n,a,i);i=c;for(let l=0;l<o;l+=1){const[d,h]=t.deserialize(a,i);i=h;const[m,y]=e.deserialize(a,i);i=y,s.set(d,m)}return[s,i]}}}function dtt(t,e={}){const r=e.prefix??ry(),n=e.fixed??!1;let a=`; ${A3(r)}`,i=t.fixedSize===0?r.fixedSize:null;if(n){if(t.fixedSize===null||r.fixedSize===null)throw new AM("Fixed nullables can only be used with fixed-size serializers");a+="; fixed",i=r.fixedSize+t.fixedSize}return{description:e.description??`nullable(${t.description+a})`,fixedSize:i,maxSize:lu([r.maxSize,t.maxSize]),serialize:s=>{const o=r.serialize(+(s!==null));if(n){const l=t.fixedSize,d=s!==null?t.serialize(s).slice(0,l):new Uint8Array(l).fill(0);return ls([o,d])}const c=s!==null?t.serialize(s):new Uint8Array;return ls([o,c])},deserialize:(s,o=0)=>{if(s.slice(o).length===0)return[null,o];const c=o+(r.fixedSize??0)+(t.fixedSize??0),[l,d]=r.deserialize(s,o);if(o=d,l===0)return[null,n?c:o];const[h,m]=t.deserialize(s,o);return o=m,[h,n?c:o]}}}function ftt(t,e={}){const r=e.prefix??ry(),n=e.fixed??!1;let a=`; ${A3(r)}`,i=t.fixedSize===0?r.fixedSize:null;if(n){if(t.fixedSize===null||r.fixedSize===null)throw new AM("Fixed options can only be used with fixed-size serializers");a+="; fixed",i=r.fixedSize+t.fixedSize}return{description:e.description??`option(${t.description+a})`,fixedSize:i,maxSize:lu([r.maxSize,t.maxSize]),serialize:s=>{const o=hG(s)?s:Iye(s),c=r.serialize(Number(h2(o)));if(n){const d=t.fixedSize,h=h2(o)?t.serialize(o.value).slice(0,d):new Uint8Array(d).fill(0);return ls([c,h])}const l=h2(o)?t.serialize(o.value):new Uint8Array;return ls([c,l])},deserialize:(s,o=0)=>{if(s.slice(o).length===0)return[cI(),o];const c=o+(r.fixedSize??0)+(t.fixedSize??0),[l,d]=r.deserialize(s,o);if(o=d,l===0)return[cI(),n?c:o];const[h,m]=t.deserialize(s,o);return o=m,[pG(h),n?c:o]}}}function ptt(t={}){return{description:t.description??"publicKey",fixedSize:32,maxSize:32,serialize:e=>gk(Oc(e)),deserialize:(e,r=0)=>{const n=e.slice(r,r+32);if(n.length===0)throw new u5("publicKey");if(n.length<Vx)throw new M3("publicKey",Vx,n.length);return[Oc(n),r+32]}}}function htt(t,e={}){const r=e.size??ry(),n=Object.keys(t),a=Object.values(t),i=a.some(h=>typeof h=="number"),s=a.filter(h=>typeof h=="string").join(", "),o=0,c=i?a.length/2-1:a.length-1,l=i?[...n]:[...new Set([...n,...a])];function d(h){const m=typeof h=="number"&&(h<o||h>c),y=typeof h=="string"&&!l.includes(h);if(m||y)throw new Pye(h,l,o,c)}return{description:e.description??`enum(${s}; ${r.description})`,fixedSize:r.fixedSize,maxSize:r.maxSize,serialize:h=>{if(d(h),typeof h=="number")return r.serialize(h);const m=a.indexOf(h);return m>=0?r.serialize(m):r.serialize(n.indexOf(h))},deserialize:(h,m=0)=>{if(h.slice(m).length===0)throw new u5("enum");const[y,x]=r.deserialize(h,m),M=Number(y);if(m=x,M<o||M>c)throw new xG(M,o,c);return[i?M:a[M],m]}}}function mtt(t,e={}){const r=e.size??EM();return{description:e.description??`set(${t.description}; ${A3(r)})`,fixedSize:H9(r,[t.fixedSize]),maxSize:H9(r,[t.maxSize]),serialize:n=>{if(typeof r=="number"&&n.size!==r)throw new CM("set",r,n.size);const a=Array.from(n,i=>t.serialize(i));return ls([MG(r,n.size),...a])},deserialize:(n,a=0)=>{const i=new Set;if(typeof r=="object"&&n.slice(a).length===0)return[i,a];if(r==="remainder"){for(;a<n.length;){const[c,l]=t.deserialize(n,a);i.add(c),a=l}return[i,a]}const[s,o]=wG(r,n,a);a=o;for(let c=0;c<s;c+=1){const[l,d]=t.deserialize(n,a);i.add(l),a=d}return[i,a]}}}function btt(t={}){const e=t.size??EM(),r=t.encoding??bk,n=t.description??`string(${r.description}; ${A3(e)})`;return e==="variable"?{...r,description:n}:typeof e=="number"?mk(r,e,n):{description:n,fixedSize:null,maxSize:null,serialize:a=>{const i=r.serialize(a),s=e.serialize(i.length);return ls([s,i])},deserialize:(a,i=0)=>{if(a.slice(i).length===0)throw new u5("string");const[s,o]=e.deserialize(a,i),c=Number(s);i=o;const l=a.slice(i,i+c);if(l.length<c)throw new M3("string",c,l.length);const[d,h]=r.deserialize(l);return i+=h,[d,i]}}}function gtt(t,e={}){const r=t.map(([n,a])=>`${String(n)}: ${a.description}`).join(", ");return{description:e.description??`struct(${r})`,fixedSize:lu(t.map(([,n])=>n.fixedSize)),maxSize:lu(t.map(([,n])=>n.maxSize)),serialize:n=>{const a=t.map(([i,s])=>s.serialize(n[i]));return ls(a)},deserialize:(n,a=0)=>{const i={};return t.forEach(([s,o])=>{const[c,l]=o.deserialize(n,a);a=l,i[s]=c}),[i,a]}}}function ytt(t,e={}){const r=t.map(n=>n.description).join(", ");return{description:e.description??`tuple(${r})`,fixedSize:lu(t.map(n=>n.fixedSize)),maxSize:lu(t.map(n=>n.maxSize)),serialize:n=>{if(n.length!==t.length)throw new CM("tuple",t.length,n.length);return ls(t.map((a,i)=>a.serialize(n[i])))},deserialize:(n,a=0)=>{const i=[];return t.forEach(s=>{const[o,c]=s.deserialize(n,a);i.push(o),a=c}),[i,a]}}}function vtt(t={}){return{description:t.description??"unit",fixedSize:0,maxSize:0,serialize:()=>new Uint8Array,deserialize:(e,r=0)=>[void 0,r]}}const xtt=Object.freeze(Object.defineProperty({__proto__:null,DeserializingEmptyBufferError:u5,get Endian(){return $x},EnumDiscriminatorOutOfRangeError:xG,ExpectedFixedSizeSerializerError:AM,InvalidArrayLikeRemainderSizeError:itt,InvalidBaseStringError:pk,InvalidDataEnumVariantError:zye,InvalidNumberOfItemsError:CM,InvalidScalarEnumVariantError:Pye,NotEnoughBytesError:M3,NumberOutOfRangeError:Lye,UnrecognizedArrayLikeSerializerSizeError:jye,array:stt,base10:mG,base16:Dye,base58:MM,base64:gG,baseX:hk,baseXReslice:kye,bitArray:Oye,bool:ott,bytes:ctt,dataEnum:ltt,f32:Yet,f64:Ket,fixBytes:lI,fixSerializer:mk,i128:ett,i16:Qet,i32:Jet,i64:Xet,i8:Zet,map:utt,mapSerializer:SM,maxSerializerSizes:Rye,mergeBytes:ls,nullable:dtt,option:ftt,padBytes:bG,padNullCharacters:_ye,publicKey:ptt,removeNullCharacters:yG,reverseSerializer:Nye,scalarEnum:htt,set:mtt,shortU16:att,string:btt,struct:gtt,sumSerializerSizes:lu,tuple:ytt,u128:ntt,u16:ttt,u32:EM,u64:rtt,u8:ry,unit:vtt,utf8:bk},Symbol.toStringTag,{value:"Module"})),wtt=SM,Mtt=mk,Att=Nye,Stt=ls,Ett=bG,Ctt=lI,Ttt=bk,Itt=hk,Dtt=mG,Ntt=MM,ktt=gG,_tt=Dye,Ltt=Oye,Btt=yG,jtt=_ye,ztt=$x;class AG extends Error{constructor(r,n,a,i){super(r);ce(this,"name","UmiError");this.source=n,this.sourceDetails=a,this.cause=i,this.message=`${this.message}
|
|
90
|
+
`,E=M+x.join(M);console.error(y.error.message,E)}throw new O2({action:"simulate",signature:"",transactionMessage:y.error.message,logs:x})}return y.result}async sendTransaction(e,r,n){if("version"in e){if(r&&Array.isArray(r))throw new Error("Invalid arguments");const s=e.serialize();return await this.sendRawTransaction(s,r)}if(r===void 0||!Array.isArray(r))throw new Error("Invalid arguments");const a=r;if(e.nonceInfo)e.sign(...a);else{let s=this._disableBlockhashCaching;for(;;){const o=await this._blockhashWithExpiryBlockHeight(s);if(e.lastValidBlockHeight=o.lastValidBlockHeight,e.recentBlockhash=o.blockhash,e.sign(...a),!e.signature)throw new Error("!signature");const c=e.signature.toString("base64");if(this._blockhashInfo.transactionSignatures.includes(c))s=!0;else{this._blockhashInfo.transactionSignatures.push(c);break}}}const i=e.serialize();return await this.sendRawTransaction(i,n)}async sendRawTransaction(e,r){const n=Yr(e).toString("base64");return await this.sendEncodedTransaction(n,r)}async sendEncodedTransaction(e,r){const n={encoding:"base64"},a=r&&r.skipPreflight,i=a===!0?"processed":r&&r.preflightCommitment||this.commitment;r&&r.maxRetries!=null&&(n.maxRetries=r.maxRetries),r&&r.minContextSlot!=null&&(n.minContextSlot=r.minContextSlot),a&&(n.skipPreflight=a),i&&(n.preflightCommitment=i);const s=[e,n],o=await this._rpcRequest("sendTransaction",s),c=Wt(o,DJe);if("error"in c){let l;throw"data"in c.error&&(l=c.error.data.logs),new O2({action:a?"send":"simulate",signature:"",transactionMessage:c.error.message,logs:l})}return c.result}_wsOnOpen(){this._rpcWebSocketConnected=!0,this._rpcWebSocketHeartbeat=setInterval(()=>{(async()=>{try{await this._rpcWebSocket.notify("ping")}catch{}})()},5e3),this._updateSubscriptions()}_wsOnError(e){this._rpcWebSocketConnected=!1,console.error("ws error:",e.message)}_wsOnClose(e){if(this._rpcWebSocketConnected=!1,this._rpcWebSocketGeneration=(this._rpcWebSocketGeneration+1)%Number.MAX_SAFE_INTEGER,this._rpcWebSocketIdleTimeout&&(clearTimeout(this._rpcWebSocketIdleTimeout),this._rpcWebSocketIdleTimeout=null),this._rpcWebSocketHeartbeat&&(clearInterval(this._rpcWebSocketHeartbeat),this._rpcWebSocketHeartbeat=null),e===1e3){this._updateSubscriptions();return}this._subscriptionCallbacksByServerSubscriptionId={},Object.entries(this._subscriptionsByHash).forEach(([r,n])=>{this._setSubscription(r,{...n,state:"pending"})})}_setSubscription(e,r){var a;const n=(a=this._subscriptionsByHash[e])==null?void 0:a.state;if(this._subscriptionsByHash[e]=r,n!==r.state){const i=this._subscriptionStateChangeCallbacksByHash[e];i&&i.forEach(s=>{try{s(r.state)}catch{}})}}_onSubscriptionStateChange(e,r){var i;const n=this._subscriptionHashByClientSubscriptionId[e];if(n==null)return()=>{};const a=(i=this._subscriptionStateChangeCallbacksByHash)[n]||(i[n]=new Set);return a.add(r),()=>{a.delete(r),a.size===0&&delete this._subscriptionStateChangeCallbacksByHash[n]}}async _updateSubscriptions(){if(Object.keys(this._subscriptionsByHash).length===0){this._rpcWebSocketConnected&&(this._rpcWebSocketConnected=!1,this._rpcWebSocketIdleTimeout=setTimeout(()=>{this._rpcWebSocketIdleTimeout=null;try{this._rpcWebSocket.close()}catch(n){n instanceof Error&&console.log(`Error when closing socket connection: ${n.message}`)}},500));return}if(this._rpcWebSocketIdleTimeout!==null&&(clearTimeout(this._rpcWebSocketIdleTimeout),this._rpcWebSocketIdleTimeout=null,this._rpcWebSocketConnected=!0),!this._rpcWebSocketConnected){this._rpcWebSocket.connect();return}const e=this._rpcWebSocketGeneration,r=()=>e===this._rpcWebSocketGeneration;await Promise.all(Object.keys(this._subscriptionsByHash).map(async n=>{const a=this._subscriptionsByHash[n];if(a!==void 0)switch(a.state){case"pending":case"unsubscribed":if(a.callbacks.size===0){delete this._subscriptionsByHash[n],a.state==="unsubscribed"&&delete this._subscriptionCallbacksByServerSubscriptionId[a.serverSubscriptionId],await this._updateSubscriptions();return}await(async()=>{const{args:i,method:s}=a;try{this._setSubscription(n,{...a,state:"subscribing"});const o=await this._rpcWebSocket.call(s,i);this._setSubscription(n,{...a,serverSubscriptionId:o,state:"subscribed"}),this._subscriptionCallbacksByServerSubscriptionId[o]=a.callbacks,await this._updateSubscriptions()}catch(o){if(console.error(`Received ${o instanceof Error?"":"JSON-RPC "}error calling \`${s}\``,{args:i,error:o}),!r())return;this._setSubscription(n,{...a,state:"pending"}),await this._updateSubscriptions()}})();break;case"subscribed":a.callbacks.size===0&&await(async()=>{const{serverSubscriptionId:i,unsubscribeMethod:s}=a;if(this._subscriptionsAutoDisposedByRpc.has(i))this._subscriptionsAutoDisposedByRpc.delete(i);else{this._setSubscription(n,{...a,state:"unsubscribing"}),this._setSubscription(n,{...a,state:"unsubscribing"});try{await this._rpcWebSocket.call(s,[i])}catch(o){if(o instanceof Error&&console.error(`${s} error:`,o.message),!r())return;this._setSubscription(n,{...a,state:"subscribed"}),await this._updateSubscriptions();return}}this._setSubscription(n,{...a,state:"unsubscribed"}),await this._updateSubscriptions()})();break}}))}_handleServerNotification(e,r){const n=this._subscriptionCallbacksByServerSubscriptionId[e];n!==void 0&&n.forEach(a=>{try{a(...r)}catch(i){console.error(i)}})}_wsOnAccountNotification(e){const{result:r,subscription:n}=Wt(e,XQe);this._handleServerNotification(n,[r.value,r.context])}_makeSubscription(e,r){const n=this._nextClientSubscriptionId++,a=joe([e.method,r]),i=this._subscriptionsByHash[a];return i===void 0?this._subscriptionsByHash[a]={...e,args:r,callbacks:new Set([e.callback]),state:"pending"}:i.callbacks.add(e.callback),this._subscriptionHashByClientSubscriptionId[n]=a,this._subscriptionDisposeFunctionsByClientSubscriptionId[n]=async()=>{delete this._subscriptionDisposeFunctionsByClientSubscriptionId[n],delete this._subscriptionHashByClientSubscriptionId[n];const s=this._subscriptionsByHash[a];Dn(s!==void 0,`Could not find a \`Subscription\` when tearing down client subscription #${n}`),s.callbacks.delete(e.callback),await this._updateSubscriptions()},this._updateSubscriptions(),n}onAccountChange(e,r,n){const{commitment:a,config:i}=ca(n),s=this._buildArgs([e.toBase58()],a||this._commitment||"finalized","base64",i);return this._makeSubscription({callback:r,method:"accountSubscribe",unsubscribeMethod:"accountUnsubscribe"},s)}async removeAccountChangeListener(e){await this._unsubscribeClientSubscription(e,"account change")}_wsOnProgramAccountNotification(e){const{result:r,subscription:n}=Wt(e,tJe);this._handleServerNotification(n,[{accountId:r.value.pubkey,accountInfo:r.value.account},r.context])}onProgramAccountChange(e,r,n,a){const{commitment:i,config:s}=ca(n),o=this._buildArgs([e.toBase58()],i||this._commitment||"finalized","base64",s||(a?{filters:Poe(a)}:void 0));return this._makeSubscription({callback:r,method:"programSubscribe",unsubscribeMethod:"programUnsubscribe"},o)}async removeProgramAccountChangeListener(e){await this._unsubscribeClientSubscription(e,"program account change")}onLogs(e,r,n){const a=this._buildArgs([typeof e=="object"?{mentions:[e.toString()]}:e],n||this._commitment||"finalized");return this._makeSubscription({callback:r,method:"logsSubscribe",unsubscribeMethod:"logsUnsubscribe"},a)}async removeOnLogsListener(e){await this._unsubscribeClientSubscription(e,"logs")}_wsOnLogsNotification(e){const{result:r,subscription:n}=Wt(e,kJe);this._handleServerNotification(n,[r.value,r.context])}_wsOnSlotNotification(e){const{result:r,subscription:n}=Wt(e,nJe);this._handleServerNotification(n,[r])}onSlotChange(e){return this._makeSubscription({callback:e,method:"slotSubscribe",unsubscribeMethod:"slotUnsubscribe"},[])}async removeSlotChangeListener(e){await this._unsubscribeClientSubscription(e,"slot change")}_wsOnSlotUpdatesNotification(e){const{result:r,subscription:n}=Wt(e,iJe);this._handleServerNotification(n,[r])}onSlotUpdate(e){return this._makeSubscription({callback:e,method:"slotsUpdatesSubscribe",unsubscribeMethod:"slotsUpdatesUnsubscribe"},[])}async removeSlotUpdateListener(e){await this._unsubscribeClientSubscription(e,"slot update")}async _unsubscribeClientSubscription(e,r){const n=this._subscriptionDisposeFunctionsByClientSubscriptionId[e];n?await n():console.warn(`Ignored unsubscribe request because an active subscription with id \`${e}\` for '${r}' events could not be found.`)}_buildArgs(e,r,n,a){const i=r||this._commitment;if(i||n||a){let s={};n&&(s.encoding=n),i&&(s.commitment=i),a&&(s=Object.assign(s,a)),e.push(s)}return e}_buildArgsAtLeastConfirmed(e,r,n,a){const i=r||this._commitment;if(i&&!["confirmed","finalized"].includes(i))throw new Error("Using Connection with default commitment: `"+this._commitment+"`, but method requires at least `confirmed`");return this._buildArgs(e,r,n,a)}_wsOnSignatureNotification(e){const{result:r,subscription:n}=Wt(e,sJe);r.value!=="receivedSignature"&&this._subscriptionsAutoDisposedByRpc.add(n),this._handleServerNotification(n,r.value==="receivedSignature"?[{type:"received"},r.context]:[{type:"status",result:r.value},r.context])}onSignature(e,r,n){const a=this._buildArgs([e],n||this._commitment||"finalized"),i=this._makeSubscription({callback:(s,o)=>{if(s.type==="status"){r(s.result,o);try{this.removeSignatureListener(i)}catch{}}},method:"signatureSubscribe",unsubscribeMethod:"signatureUnsubscribe"},a);return i}onSignatureWithOptions(e,r,n){const{commitment:a,...i}={...n,commitment:n&&n.commitment||this._commitment||"finalized"},s=this._buildArgs([e],a,void 0,i),o=this._makeSubscription({callback:(c,l)=>{r(c,l);try{this.removeSignatureListener(o)}catch{}},method:"signatureSubscribe",unsubscribeMethod:"signatureUnsubscribe"},s);return o}async removeSignatureListener(e){await this._unsubscribeClientSubscription(e,"signature result")}_wsOnRootNotification(e){const{result:r,subscription:n}=Wt(e,oJe);this._handleServerNotification(n,[r])}onRootChange(e){return this._makeSubscription({callback:e,method:"rootSubscribe",unsubscribeMethod:"rootUnsubscribe"},[])}async removeRootChangeListener(e){await this._unsubscribeClientSubscription(e,"root change")}};class eo{constructor(e){this._keypair=void 0,this._keypair=e??koe()}static generate(){return new eo(koe())}static fromSecretKey(e,r){if(e.byteLength!==64)throw new Error("bad secret key size");const n=e.slice(32,64);if(!r||!r.skipValidation){const a=e.slice(0,32),i=iI(a);for(let s=0;s<32;s++)if(n[s]!==i[s])throw new Error("provided secretKey is invalid")}return new eo({publicKey:n,secretKey:e})}static fromSeed(e){const r=iI(e),n=new Uint8Array(64);return n.set(e),n.set(r,32),new eo({publicKey:r,secretKey:n})}get publicKey(){return new $e(this._keypair.publicKey)}get secretKey(){return new Uint8Array(this._keypair.secretKey)}}const Ld=Object.freeze({CreateLookupTable:{index:0,layout:$t([Gt("instruction"),$9("recentSlot"),Cr("bumpSeed")])},FreezeLookupTable:{index:1,layout:$t([Gt("instruction")])},ExtendLookupTable:{index:2,layout:$t([Gt("instruction"),$9(),f0(on(),f2(Gt(),-8),"addresses")])},DeactivateLookupTable:{index:3,layout:$t([Gt("instruction")])},CloseLookupTable:{index:4,layout:$t([Gt("instruction")])}});class LJe{constructor(){}static decodeInstructionType(e){this.checkProgramId(e.programId);const n=Gt("instruction").decode(e.data);let a;for(const[i,s]of Object.entries(Ld))if(s.index==n){a=i;break}if(!a)throw new Error("Invalid Instruction. Should be a LookupTable Instruction");return a}static decodeCreateLookupTable(e){this.checkProgramId(e.programId),this.checkKeysLength(e.keys,4);const{recentSlot:r}=Rn(Ld.CreateLookupTable,e.data);return{authority:e.keys[1].pubkey,payer:e.keys[2].pubkey,recentSlot:Number(r)}}static decodeExtendLookupTable(e){if(this.checkProgramId(e.programId),e.keys.length<2)throw new Error(`invalid instruction; found ${e.keys.length} keys, expected at least 2`);const{addresses:r}=Rn(Ld.ExtendLookupTable,e.data);return{lookupTable:e.keys[0].pubkey,authority:e.keys[1].pubkey,payer:e.keys.length>2?e.keys[2].pubkey:void 0,addresses:r.map(n=>new $e(n))}}static decodeCloseLookupTable(e){return this.checkProgramId(e.programId),this.checkKeysLength(e.keys,3),{lookupTable:e.keys[0].pubkey,authority:e.keys[1].pubkey,recipient:e.keys[2].pubkey}}static decodeFreezeLookupTable(e){return this.checkProgramId(e.programId),this.checkKeysLength(e.keys,2),{lookupTable:e.keys[0].pubkey,authority:e.keys[1].pubkey}}static decodeDeactivateLookupTable(e){return this.checkProgramId(e.programId),this.checkKeysLength(e.keys,2),{lookupTable:e.keys[0].pubkey,authority:e.keys[1].pubkey}}static checkProgramId(e){if(!e.equals(Wx.programId))throw new Error("invalid instruction; programId is not AddressLookupTable Program")}static checkKeysLength(e,r){if(e.length<r)throw new Error(`invalid instruction; found ${e.length} keys, expected at least ${r}`)}}class Wx{constructor(){}static createLookupTable(e){const[r,n]=$e.findProgramAddressSync([e.authority.toBuffer(),Kq(BigInt(e.recentSlot),8)],this.programId),a=Ld.CreateLookupTable,i=yn(a,{recentSlot:BigInt(e.recentSlot),bumpSeed:n}),s=[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:e.authority,isSigner:!0,isWritable:!1},{pubkey:e.payer,isSigner:!0,isWritable:!0},{pubkey:Or.programId,isSigner:!1,isWritable:!1}];return[new vn({programId:this.programId,keys:s,data:i}),r]}static freezeLookupTable(e){const r=Ld.FreezeLookupTable,n=yn(r),a=[{pubkey:e.lookupTable,isSigner:!1,isWritable:!0},{pubkey:e.authority,isSigner:!0,isWritable:!1}];return new vn({programId:this.programId,keys:a,data:n})}static extendLookupTable(e){const r=Ld.ExtendLookupTable,n=yn(r,{addresses:e.addresses.map(i=>i.toBytes())}),a=[{pubkey:e.lookupTable,isSigner:!1,isWritable:!0},{pubkey:e.authority,isSigner:!0,isWritable:!1}];return e.payer&&a.push({pubkey:e.payer,isSigner:!0,isWritable:!0},{pubkey:Or.programId,isSigner:!1,isWritable:!1}),new vn({programId:this.programId,keys:a,data:n})}static deactivateLookupTable(e){const r=Ld.DeactivateLookupTable,n=yn(r),a=[{pubkey:e.lookupTable,isSigner:!1,isWritable:!0},{pubkey:e.authority,isSigner:!0,isWritable:!1}];return new vn({programId:this.programId,keys:a,data:n})}static closeLookupTable(e){const r=Ld.CloseLookupTable,n=yn(r),a=[{pubkey:e.lookupTable,isSigner:!1,isWritable:!0},{pubkey:e.authority,isSigner:!0,isWritable:!1},{pubkey:e.recipient,isSigner:!1,isWritable:!0}];return new vn({programId:this.programId,keys:a,data:n})}}Wx.programId=new $e("AddressLookupTab1e1111111111111111111111111");class BJe{constructor(){}static decodeInstructionType(e){this.checkProgramId(e.programId);const n=Cr("instruction").decode(e.data);let a;for(const[i,s]of Object.entries(Bl))if(s.index==n){a=i;break}if(!a)throw new Error("Instruction type incorrect; not a ComputeBudgetInstruction");return a}static decodeRequestUnits(e){this.checkProgramId(e.programId);const{units:r,additionalFee:n}=Rn(Bl.RequestUnits,e.data);return{units:r,additionalFee:n}}static decodeRequestHeapFrame(e){this.checkProgramId(e.programId);const{bytes:r}=Rn(Bl.RequestHeapFrame,e.data);return{bytes:r}}static decodeSetComputeUnitLimit(e){this.checkProgramId(e.programId);const{units:r}=Rn(Bl.SetComputeUnitLimit,e.data);return{units:r}}static decodeSetComputeUnitPrice(e){this.checkProgramId(e.programId);const{microLamports:r}=Rn(Bl.SetComputeUnitPrice,e.data);return{microLamports:r}}static checkProgramId(e){if(!e.equals(cG.programId))throw new Error("invalid instruction; programId is not ComputeBudgetProgram")}}const Bl=Object.freeze({RequestUnits:{index:0,layout:$t([Cr("instruction"),Gt("units"),Gt("additionalFee")])},RequestHeapFrame:{index:1,layout:$t([Cr("instruction"),Gt("bytes")])},SetComputeUnitLimit:{index:2,layout:$t([Cr("instruction"),Gt("units")])},SetComputeUnitPrice:{index:3,layout:$t([Cr("instruction"),$9("microLamports")])}});class cG{constructor(){}static requestUnits(e){const r=Bl.RequestUnits,n=yn(r,e);return new vn({keys:[],programId:this.programId,data:n})}static requestHeapFrame(e){const r=Bl.RequestHeapFrame,n=yn(r,e);return new vn({keys:[],programId:this.programId,data:n})}static setComputeUnitLimit(e){const r=Bl.SetComputeUnitLimit,n=yn(r,e);return new vn({keys:[],programId:this.programId,data:n})}static setComputeUnitPrice(e){const r=Bl.SetComputeUnitPrice,n=yn(r,{microLamports:BigInt(e.microLamports)});return new vn({keys:[],programId:this.programId,data:n})}}cG.programId=new $e("ComputeBudget111111111111111111111111111111");const Uoe=64,Woe=32,Voe=64,$oe=$t([Cr("numSignatures"),Cr("padding"),y1("signatureOffset"),y1("signatureInstructionIndex"),y1("publicKeyOffset"),y1("publicKeyInstructionIndex"),y1("messageDataOffset"),y1("messageDataSize"),y1("messageInstructionIndex")]);class uk{constructor(){}static createInstructionWithPublicKey(e){const{publicKey:r,message:n,signature:a,instructionIndex:i}=e;Dn(r.length===Woe,`Public Key must be ${Woe} bytes but received ${r.length} bytes`),Dn(a.length===Voe,`Signature must be ${Voe} bytes but received ${a.length} bytes`);const s=$oe.span,o=s+r.length,c=o+a.length,l=1,d=It.Buffer.alloc(c+n.length),h=i??65535;return $oe.encode({numSignatures:l,padding:0,signatureOffset:o,signatureInstructionIndex:h,publicKeyOffset:s,publicKeyInstructionIndex:h,messageDataOffset:c,messageDataSize:n.length,messageInstructionIndex:h},d),d.fill(r,s),d.fill(a,o),d.fill(n,c),new vn({keys:[],programId:uk.programId,data:d})}static createInstructionWithPrivateKey(e){const{privateKey:r,message:n,instructionIndex:a}=e;Dn(r.length===Uoe,`Private key must be ${Uoe} bytes but received ${r.length} bytes`);try{const i=eo.fromSecretKey(r),s=i.publicKey.toBytes(),o=eG(n,i.secretKey);return this.createInstructionWithPublicKey({publicKey:s,message:n,signature:o,instructionIndex:a})}catch(i){throw new Error(`Error creating instruction; ${i}`)}}}uk.programId=new $e("Ed25519SigVerify111111111111111111111111111");const jJe=(t,e)=>{const r=H6.sign(t,e);return[r.toCompactRawBytes(),r.recovery]};H6.utils.isValidPrivateKey;const zJe=H6.getPublicKey,Hoe=32,Qz=20,qoe=64,PJe=11,Jz=$t([Cr("numSignatures"),y1("signatureOffset"),Cr("signatureInstructionIndex"),y1("ethAddressOffset"),Cr("ethAddressInstructionIndex"),y1("messageDataOffset"),y1("messageDataSize"),Cr("messageInstructionIndex"),Qn(20,"ethAddress"),Qn(64,"signature"),Cr("recoveryId")]);class x8{constructor(){}static publicKeyToEthAddress(e){Dn(e.length===qoe,`Public key must be ${qoe} bytes but received ${e.length} bytes`);try{return It.Buffer.from(F8(Yr(e))).slice(-Qz)}catch(r){throw new Error(`Error constructing Ethereum address: ${r}`)}}static createInstructionWithPublicKey(e){const{publicKey:r,message:n,signature:a,recoveryId:i,instructionIndex:s}=e;return x8.createInstructionWithEthAddress({ethAddress:x8.publicKeyToEthAddress(r),message:n,signature:a,recoveryId:i,instructionIndex:s})}static createInstructionWithEthAddress(e){const{ethAddress:r,message:n,signature:a,recoveryId:i,instructionIndex:s=0}=e;let o;typeof r=="string"?r.startsWith("0x")?o=It.Buffer.from(r.substr(2),"hex"):o=It.Buffer.from(r,"hex"):o=r,Dn(o.length===Qz,`Address must be ${Qz} bytes but received ${o.length} bytes`);const c=1+PJe,l=c,d=c+o.length,h=d+a.length+1,m=1,y=It.Buffer.alloc(Jz.span+n.length);return Jz.encode({numSignatures:m,signatureOffset:d,signatureInstructionIndex:s,ethAddressOffset:l,ethAddressInstructionIndex:s,messageDataOffset:h,messageDataSize:n.length,messageInstructionIndex:s,signature:Yr(a),ethAddress:Yr(o),recoveryId:i},y),y.fill(Yr(n),Jz.span),new vn({keys:[],programId:x8.programId,data:y})}static createInstructionWithPrivateKey(e){const{privateKey:r,message:n,instructionIndex:a}=e;Dn(r.length===Hoe,`Private key must be ${Hoe} bytes but received ${r.length} bytes`);try{const i=Yr(r),s=zJe(i,!1).slice(1),o=It.Buffer.from(F8(Yr(n))),[c,l]=jJe(o,i);return this.createInstructionWithPublicKey({publicKey:s,message:n,signature:c,recoveryId:l,instructionIndex:a})}catch(i){throw new Error(`Error creating instruction; ${i}`)}}}x8.programId=new $e("KeccakSecp256k11111111111111111111111111111");var gye;const yye=new $e("StakeConfig11111111111111111111111111111111");class vye{constructor(e,r){this.staker=void 0,this.withdrawer=void 0,this.staker=e,this.withdrawer=r}}class xM{constructor(e,r,n){this.unixTimestamp=void 0,this.epoch=void 0,this.custodian=void 0,this.unixTimestamp=e,this.epoch=r,this.custodian=n}}gye=xM;xM.default=new gye(0,0,$e.default);class OJe{constructor(){}static decodeInstructionType(e){this.checkProgramId(e.programId);const n=Gt("instruction").decode(e.data);let a;for(const[i,s]of Object.entries(e0))if(s.index==n){a=i;break}if(!a)throw new Error("Instruction type incorrect; not a StakeInstruction");return a}static decodeInitialize(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,2);const{authorized:r,lockup:n}=Rn(e0.Initialize,e.data);return{stakePubkey:e.keys[0].pubkey,authorized:new vye(new $e(r.staker),new $e(r.withdrawer)),lockup:new xM(n.unixTimestamp,n.epoch,new $e(n.custodian))}}static decodeDelegate(e){return this.checkProgramId(e.programId),this.checkKeyLength(e.keys,6),Rn(e0.Delegate,e.data),{stakePubkey:e.keys[0].pubkey,votePubkey:e.keys[1].pubkey,authorizedPubkey:e.keys[5].pubkey}}static decodeAuthorize(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,3);const{newAuthorized:r,stakeAuthorizationType:n}=Rn(e0.Authorize,e.data),a={stakePubkey:e.keys[0].pubkey,authorizedPubkey:e.keys[2].pubkey,newAuthorizedPubkey:new $e(r),stakeAuthorizationType:{index:n}};return e.keys.length>3&&(a.custodianPubkey=e.keys[3].pubkey),a}static decodeAuthorizeWithSeed(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,2);const{newAuthorized:r,stakeAuthorizationType:n,authoritySeed:a,authorityOwner:i}=Rn(e0.AuthorizeWithSeed,e.data),s={stakePubkey:e.keys[0].pubkey,authorityBase:e.keys[1].pubkey,authoritySeed:a,authorityOwner:new $e(i),newAuthorizedPubkey:new $e(r),stakeAuthorizationType:{index:n}};return e.keys.length>3&&(s.custodianPubkey=e.keys[3].pubkey),s}static decodeSplit(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,3);const{lamports:r}=Rn(e0.Split,e.data);return{stakePubkey:e.keys[0].pubkey,splitStakePubkey:e.keys[1].pubkey,authorizedPubkey:e.keys[2].pubkey,lamports:r}}static decodeMerge(e){return this.checkProgramId(e.programId),this.checkKeyLength(e.keys,3),Rn(e0.Merge,e.data),{stakePubkey:e.keys[0].pubkey,sourceStakePubKey:e.keys[1].pubkey,authorizedPubkey:e.keys[4].pubkey}}static decodeWithdraw(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,5);const{lamports:r}=Rn(e0.Withdraw,e.data),n={stakePubkey:e.keys[0].pubkey,toPubkey:e.keys[1].pubkey,authorizedPubkey:e.keys[4].pubkey,lamports:r};return e.keys.length>5&&(n.custodianPubkey=e.keys[5].pubkey),n}static decodeDeactivate(e){return this.checkProgramId(e.programId),this.checkKeyLength(e.keys,3),Rn(e0.Deactivate,e.data),{stakePubkey:e.keys[0].pubkey,authorizedPubkey:e.keys[2].pubkey}}static checkProgramId(e){if(!e.equals(dk.programId))throw new Error("invalid instruction; programId is not StakeProgram")}static checkKeyLength(e,r){if(e.length<r)throw new Error(`invalid instruction; found ${e.length} keys, expected at least ${r}`)}}const e0=Object.freeze({Initialize:{index:0,layout:$t([Gt("instruction"),WZe(),VZe()])},Authorize:{index:1,layout:$t([Gt("instruction"),on("newAuthorized"),Gt("stakeAuthorizationType")])},Delegate:{index:2,layout:$t([Gt("instruction")])},Split:{index:3,layout:$t([Gt("instruction"),So("lamports")])},Withdraw:{index:4,layout:$t([Gt("instruction"),So("lamports")])},Deactivate:{index:5,layout:$t([Gt("instruction")])},Merge:{index:7,layout:$t([Gt("instruction")])},AuthorizeWithSeed:{index:8,layout:$t([Gt("instruction"),on("newAuthorized"),Gt("stakeAuthorizationType"),Sh("authoritySeed"),on("authorityOwner")])}}),RJe=Object.freeze({Staker:{index:0},Withdrawer:{index:1}});class dk{constructor(){}static initialize(e){const{stakePubkey:r,authorized:n,lockup:a}=e,i=a||xM.default,s=e0.Initialize,o=yn(s,{authorized:{staker:Yr(n.staker.toBuffer()),withdrawer:Yr(n.withdrawer.toBuffer())},lockup:{unixTimestamp:i.unixTimestamp,epoch:i.epoch,custodian:Yr(i.custodian.toBuffer())}}),c={keys:[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:_s,isSigner:!1,isWritable:!1}],programId:this.programId,data:o};return new vn(c)}static createAccountWithSeed(e){const r=new Sr;r.add(Or.createAccountWithSeed({fromPubkey:e.fromPubkey,newAccountPubkey:e.stakePubkey,basePubkey:e.basePubkey,seed:e.seed,lamports:e.lamports,space:this.space,programId:this.programId}));const{stakePubkey:n,authorized:a,lockup:i}=e;return r.add(this.initialize({stakePubkey:n,authorized:a,lockup:i}))}static createAccount(e){const r=new Sr;r.add(Or.createAccount({fromPubkey:e.fromPubkey,newAccountPubkey:e.stakePubkey,lamports:e.lamports,space:this.space,programId:this.programId}));const{stakePubkey:n,authorized:a,lockup:i}=e;return r.add(this.initialize({stakePubkey:n,authorized:a,lockup:i}))}static delegate(e){const{stakePubkey:r,authorizedPubkey:n,votePubkey:a}=e,i=e0.Delegate,s=yn(i);return new Sr().add({keys:[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:a,isSigner:!1,isWritable:!1},{pubkey:k0,isSigner:!1,isWritable:!1},{pubkey:MC,isSigner:!1,isWritable:!1},{pubkey:yye,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:s})}static authorize(e){const{stakePubkey:r,authorizedPubkey:n,newAuthorizedPubkey:a,stakeAuthorizationType:i,custodianPubkey:s}=e,o=e0.Authorize,c=yn(o,{newAuthorized:Yr(a.toBuffer()),stakeAuthorizationType:i.index}),l=[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:k0,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1}];return s&&l.push({pubkey:s,isSigner:!0,isWritable:!1}),new Sr().add({keys:l,programId:this.programId,data:c})}static authorizeWithSeed(e){const{stakePubkey:r,authorityBase:n,authoritySeed:a,authorityOwner:i,newAuthorizedPubkey:s,stakeAuthorizationType:o,custodianPubkey:c}=e,l=e0.AuthorizeWithSeed,d=yn(l,{newAuthorized:Yr(s.toBuffer()),stakeAuthorizationType:o.index,authoritySeed:a,authorityOwner:Yr(i.toBuffer())}),h=[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1},{pubkey:k0,isSigner:!1,isWritable:!1}];return c&&h.push({pubkey:c,isSigner:!0,isWritable:!1}),new Sr().add({keys:h,programId:this.programId,data:d})}static splitInstruction(e){const{stakePubkey:r,authorizedPubkey:n,splitStakePubkey:a,lamports:i}=e,s=e0.Split,o=yn(s,{lamports:i});return new vn({keys:[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:a,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:o})}static split(e,r){const n=new Sr;return n.add(Or.createAccount({fromPubkey:e.authorizedPubkey,newAccountPubkey:e.splitStakePubkey,lamports:r,space:this.space,programId:this.programId})),n.add(this.splitInstruction(e))}static splitWithSeed(e,r){const{stakePubkey:n,authorizedPubkey:a,splitStakePubkey:i,basePubkey:s,seed:o,lamports:c}=e,l=new Sr;return l.add(Or.allocate({accountPubkey:i,basePubkey:s,seed:o,space:this.space,programId:this.programId})),r&&r>0&&l.add(Or.transfer({fromPubkey:e.authorizedPubkey,toPubkey:i,lamports:r})),l.add(this.splitInstruction({stakePubkey:n,authorizedPubkey:a,splitStakePubkey:i,lamports:c}))}static merge(e){const{stakePubkey:r,sourceStakePubKey:n,authorizedPubkey:a}=e,i=e0.Merge,s=yn(i);return new Sr().add({keys:[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:k0,isSigner:!1,isWritable:!1},{pubkey:MC,isSigner:!1,isWritable:!1},{pubkey:a,isSigner:!0,isWritable:!1}],programId:this.programId,data:s})}static withdraw(e){const{stakePubkey:r,authorizedPubkey:n,toPubkey:a,lamports:i,custodianPubkey:s}=e,o=e0.Withdraw,c=yn(o,{lamports:i}),l=[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:a,isSigner:!1,isWritable:!0},{pubkey:k0,isSigner:!1,isWritable:!1},{pubkey:MC,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}];return s&&l.push({pubkey:s,isSigner:!0,isWritable:!1}),new Sr().add({keys:l,programId:this.programId,data:c})}static deactivate(e){const{stakePubkey:r,authorizedPubkey:n}=e,a=e0.Deactivate,i=yn(a);return new Sr().add({keys:[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:k0,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:i})}}dk.programId=new $e("Stake11111111111111111111111111111111111111");dk.space=200;class xye{constructor(e,r,n,a){this.nodePubkey=void 0,this.authorizedVoter=void 0,this.authorizedWithdrawer=void 0,this.commission=void 0,this.nodePubkey=e,this.authorizedVoter=r,this.authorizedWithdrawer=n,this.commission=a}}class FJe{constructor(){}static decodeInstructionType(e){this.checkProgramId(e.programId);const n=Gt("instruction").decode(e.data);let a;for(const[i,s]of Object.entries(jl))if(s.index==n){a=i;break}if(!a)throw new Error("Instruction type incorrect; not a VoteInstruction");return a}static decodeInitializeAccount(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,4);const{voteInit:r}=Rn(jl.InitializeAccount,e.data);return{votePubkey:e.keys[0].pubkey,nodePubkey:e.keys[3].pubkey,voteInit:new xye(new $e(r.nodePubkey),new $e(r.authorizedVoter),new $e(r.authorizedWithdrawer),r.commission)}}static decodeAuthorize(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,3);const{newAuthorized:r,voteAuthorizationType:n}=Rn(jl.Authorize,e.data);return{votePubkey:e.keys[0].pubkey,authorizedPubkey:e.keys[2].pubkey,newAuthorizedPubkey:new $e(r),voteAuthorizationType:{index:n}}}static decodeAuthorizeWithSeed(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,3);const{voteAuthorizeWithSeedArgs:{currentAuthorityDerivedKeyOwnerPubkey:r,currentAuthorityDerivedKeySeed:n,newAuthorized:a,voteAuthorizationType:i}}=Rn(jl.AuthorizeWithSeed,e.data);return{currentAuthorityDerivedKeyBasePubkey:e.keys[2].pubkey,currentAuthorityDerivedKeyOwnerPubkey:new $e(r),currentAuthorityDerivedKeySeed:n,newAuthorizedPubkey:new $e(a),voteAuthorizationType:{index:i},votePubkey:e.keys[0].pubkey}}static decodeWithdraw(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,3);const{lamports:r}=Rn(jl.Withdraw,e.data);return{votePubkey:e.keys[0].pubkey,authorizedWithdrawerPubkey:e.keys[2].pubkey,lamports:r,toPubkey:e.keys[1].pubkey}}static checkProgramId(e){if(!e.equals(ty.programId))throw new Error("invalid instruction; programId is not VoteProgram")}static checkKeyLength(e,r){if(e.length<r)throw new Error(`invalid instruction; found ${e.length} keys, expected at least ${r}`)}}const jl=Object.freeze({InitializeAccount:{index:0,layout:$t([Gt("instruction"),$Ze()])},Authorize:{index:1,layout:$t([Gt("instruction"),on("newAuthorized"),Gt("voteAuthorizationType")])},Withdraw:{index:3,layout:$t([Gt("instruction"),So("lamports")])},UpdateValidatorIdentity:{index:4,layout:$t([Gt("instruction")])},AuthorizeWithSeed:{index:10,layout:$t([Gt("instruction"),HZe()])}}),UJe=Object.freeze({Voter:{index:0},Withdrawer:{index:1}});class ty{constructor(){}static initializeAccount(e){const{votePubkey:r,nodePubkey:n,voteInit:a}=e,i=jl.InitializeAccount,s=yn(i,{voteInit:{nodePubkey:Yr(a.nodePubkey.toBuffer()),authorizedVoter:Yr(a.authorizedVoter.toBuffer()),authorizedWithdrawer:Yr(a.authorizedWithdrawer.toBuffer()),commission:a.commission}}),o={keys:[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:_s,isSigner:!1,isWritable:!1},{pubkey:k0,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:s};return new vn(o)}static createAccount(e){const r=new Sr;return r.add(Or.createAccount({fromPubkey:e.fromPubkey,newAccountPubkey:e.votePubkey,lamports:e.lamports,space:this.space,programId:this.programId})),r.add(this.initializeAccount({votePubkey:e.votePubkey,nodePubkey:e.voteInit.nodePubkey,voteInit:e.voteInit}))}static authorize(e){const{votePubkey:r,authorizedPubkey:n,newAuthorizedPubkey:a,voteAuthorizationType:i}=e,s=jl.Authorize,o=yn(s,{newAuthorized:Yr(a.toBuffer()),voteAuthorizationType:i.index}),c=[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:k0,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}];return new Sr().add({keys:c,programId:this.programId,data:o})}static authorizeWithSeed(e){const{currentAuthorityDerivedKeyBasePubkey:r,currentAuthorityDerivedKeyOwnerPubkey:n,currentAuthorityDerivedKeySeed:a,newAuthorizedPubkey:i,voteAuthorizationType:s,votePubkey:o}=e,c=jl.AuthorizeWithSeed,l=yn(c,{voteAuthorizeWithSeedArgs:{currentAuthorityDerivedKeyOwnerPubkey:Yr(n.toBuffer()),currentAuthorityDerivedKeySeed:a,newAuthorized:Yr(i.toBuffer()),voteAuthorizationType:s.index}}),d=[{pubkey:o,isSigner:!1,isWritable:!0},{pubkey:k0,isSigner:!1,isWritable:!1},{pubkey:r,isSigner:!0,isWritable:!1}];return new Sr().add({keys:d,programId:this.programId,data:l})}static withdraw(e){const{votePubkey:r,authorizedWithdrawerPubkey:n,lamports:a,toPubkey:i}=e,s=jl.Withdraw,o=yn(s,{lamports:a}),c=[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:i,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1}];return new Sr().add({keys:c,programId:this.programId,data:o})}static safeWithdraw(e,r,n){if(e.lamports>r-n)throw new Error("Withdraw will leave vote account with insufficient funds.");return ty.withdraw(e)}static updateValidatorIdentity(e){const{votePubkey:r,authorizedWithdrawerPubkey:n,nodePubkey:a}=e,i=jl.UpdateValidatorIdentity,s=yn(i),o=[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:a,isSigner:!0,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}];return new Sr().add({keys:o,programId:this.programId,data:s})}}ty.programId=new $e("Vote111111111111111111111111111111111111111");ty.space=3762;const wye=new $e("Va1idator1nfo111111111111111111111111111111"),WJe=St({name:Rt(),website:Mr(Rt()),details:Mr(Rt()),iconUrl:Mr(Rt()),keybaseUsername:Mr(Rt())});class lG{constructor(e,r){this.key=void 0,this.info=void 0,this.key=e,this.info=r}static fromConfigData(e){let r=[...e];if(Hs(r)!==2)return null;const a=[];for(let i=0;i<2;i++){const s=new $e(qs(r,0,Xl)),o=Ll(r)===1;a.push({publicKey:s,isSigner:o})}if(a[0].publicKey.equals(wye)&&a[1].isSigner){const i=Sh().decode(It.Buffer.from(r)),s=JSON.parse(i);return Uge(s,WJe),new lG(a[1].publicKey,s)}return null}}const VJe=new $e("Vote111111111111111111111111111111111111111"),$Je=$t([on("nodePubkey"),on("authorizedWithdrawer"),Cr("commission"),w0(),f0($t([w0("slot"),Gt("confirmationCount")]),f2(Gt(),-8),"votes"),Cr("rootSlotValid"),w0("rootSlot"),w0(),f0($t([w0("epoch"),on("authorizedVoter")]),f2(Gt(),-8),"authorizedVoters"),$t([f0($t([on("authorizedPubkey"),w0("epochOfLastAuthorizedSwitch"),w0("targetEpoch")]),32,"buf"),w0("idx"),Cr("isEmpty")],"priorVoters"),w0(),f0($t([w0("epoch"),w0("credits"),w0("prevCredits")]),f2(Gt(),-8),"epochCredits"),$t([w0("slot"),w0("timestamp")],"lastTimestamp")]);class uG{constructor(e){this.nodePubkey=void 0,this.authorizedWithdrawer=void 0,this.commission=void 0,this.rootSlot=void 0,this.votes=void 0,this.authorizedVoters=void 0,this.priorVoters=void 0,this.epochCredits=void 0,this.lastTimestamp=void 0,this.nodePubkey=e.nodePubkey,this.authorizedWithdrawer=e.authorizedWithdrawer,this.commission=e.commission,this.rootSlot=e.rootSlot,this.votes=e.votes,this.authorizedVoters=e.authorizedVoters,this.priorVoters=e.priorVoters,this.epochCredits=e.epochCredits,this.lastTimestamp=e.lastTimestamp}static fromAccountData(e){const n=$Je.decode(Yr(e),4);let a=n.rootSlot;return n.rootSlotValid||(a=null),new uG({nodePubkey:new $e(n.nodePubkey),authorizedWithdrawer:new $e(n.authorizedWithdrawer),commission:n.commission,votes:n.votes,rootSlot:a,authorizedVoters:n.authorizedVoters.map(HJe),priorVoters:qJe(n.priorVoters),epochCredits:n.epochCredits,lastTimestamp:n.lastTimestamp})}}function HJe({authorizedVoter:t,epoch:e}){return{epoch:e,authorizedVoter:new $e(t)}}function Goe({authorizedPubkey:t,epochOfLastAuthorizedSwitch:e,targetEpoch:r}){return{authorizedPubkey:new $e(t),epochOfLastAuthorizedSwitch:e,targetEpoch:r}}function qJe({buf:t,idx:e,isEmpty:r}){return r?[]:[...t.slice(e+1).map(Goe),...t.slice(0,e).map(Goe)]}const Yoe={http:{devnet:"http://api.devnet.solana.com",testnet:"http://api.testnet.solana.com","mainnet-beta":"http://api.mainnet-beta.solana.com/"},https:{devnet:"https://api.devnet.solana.com",testnet:"https://api.testnet.solana.com","mainnet-beta":"https://api.mainnet-beta.solana.com/"}};function GJe(t,e){const r=e===!1?"http":"https";if(!t)return Yoe[r].devnet;const n=Yoe[r][t];if(!n)throw new Error(`Unknown ${r} cluster: ${t}`);return n}async function YJe(t,e,r,n){let a,i;r&&Object.prototype.hasOwnProperty.call(r,"lastValidBlockHeight")||r&&Object.prototype.hasOwnProperty.call(r,"nonceValue")?(a=r,i=n):i=r;const s=i&&{skipPreflight:i.skipPreflight,preflightCommitment:i.preflightCommitment||i.commitment,minContextSlot:i.minContextSlot},o=await t.sendRawTransaction(e,s),c=i&&i.commitment,d=(await(a?t.confirmTransaction(a,c):t.confirmTransaction(o,c))).value;if(d.err)throw o!=null?new O2({action:s!=null&&s.skipPreflight?"send":"simulate",signature:o,transactionMessage:`Status: (${JSON.stringify(d)})`}):new Error(`Raw transaction ${o} failed (${JSON.stringify(d)})`);return o}const P4=1e9,KJe=Object.freeze(Object.defineProperty({__proto__:null,Account:RZe,AddressLookupTableAccount:sI,AddressLookupTableInstruction:LJe,AddressLookupTableProgram:Wx,Authorized:vye,BLOCKHASH_CACHE_TIMEOUT_MS:oye,BPF_LOADER_DEPRECATED_PROGRAM_ID:FZe,BPF_LOADER_PROGRAM_ID:iQe,BpfLoader:sQe,COMPUTE_BUDGET_INSTRUCTION_LAYOUTS:Bl,ComputeBudgetInstruction:BJe,ComputeBudgetProgram:cG,Connection:ey,Ed25519Program:uk,Enum:PZe,EpochSchedule:iye,FeeCalculatorLayout:nye,Keypair:eo,LAMPORTS_PER_SOL:P4,LOOKUP_TABLE_INSTRUCTION_LAYOUTS:Ld,Loader:G8,Lockup:xM,MAX_SEED_LENGTH:Jge,Message:K1,MessageAccountKeys:Fx,MessageV0:z2,NONCE_ACCOUNT_LENGTH:sW,NonceAccount:ok,PACKET_DATA_SIZE:p2,PUBLIC_KEY_LENGTH:Xl,PublicKey:$e,SIGNATURE_LENGTH_IN_BYTES:Rx,SOLANA_SCHEMA:xv,STAKE_CONFIG_ID:yye,STAKE_INSTRUCTION_LAYOUTS:e0,SYSTEM_INSTRUCTION_LAYOUTS:ua,SYSVAR_CLOCK_PUBKEY:k0,SYSVAR_EPOCH_SCHEDULE_PUBKEY:ZZe,SYSVAR_INSTRUCTIONS_PUBKEY:rye,SYSVAR_RECENT_BLOCKHASHES_PUBKEY:wC,SYSVAR_RENT_PUBKEY:_s,SYSVAR_REWARDS_PUBKEY:QZe,SYSVAR_SLOT_HASHES_PUBKEY:JZe,SYSVAR_SLOT_HISTORY_PUBKEY:XZe,SYSVAR_STAKE_HISTORY_PUBKEY:MC,Secp256k1Program:x8,SendTransactionError:O2,SolanaJSONRPCError:hr,SolanaJSONRPCErrorCode:eQe,StakeAuthorizationLayout:RJe,StakeInstruction:OJe,StakeProgram:dk,Struct:tG,SystemInstruction:nQe,SystemProgram:Or,Transaction:Sr,TransactionExpiredBlockheightExceededError:rG,TransactionExpiredNonceInvalidError:z4,TransactionExpiredTimeoutError:nG,TransactionInstruction:vn,TransactionMessage:q8,TransactionStatus:Qu,VALIDATOR_INFO_KEY:wye,VERSION_PREFIX_MASK:ik,VOTE_PROGRAM_ID:VJe,ValidatorInfo:lG,VersionedMessage:aG,VersionedTransaction:P2,VoteAccount:uG,VoteAuthorizationLayout:UJe,VoteInit:xye,VoteInstruction:FJe,VoteProgram:ty,clusterApiUrl:GJe,sendAndConfirmRawTransaction:YJe,sendAndConfirmTransaction:iW},Symbol.toStringTag,{value:"Module"})),wM="Solana",ZJe="11111111111111111111111111111111",hh=class hh{constructor(e){ce(this,"type","Native");ce(this,"address");hh.instanceof(e)?this.address=e.address:fa.instanceof(e)?this.address=new $e(e.toUint8Array()):typeof e=="string"&&Pn.valid(e)?this.address=new $e(Pn.decode(e)):this.address=new $e(e)}unwrap(){return this.address}toString(){return this.address.toBase58()}toUint8Array(){return new Uint8Array(this.address.toBytes())}toNative(){return this}toUniversalAddress(){return new fa(this.toUint8Array())}static instanceof(e){return e.constructor.platform===hh.platform}equals(e){return hh.instanceof(e)?e.unwrap().equals(this.unwrap()):this.toUniversalAddress().equals(e)}};ce(hh,"byteSize",32),ce(hh,"platform",wM);let Sn=hh;Wg(wM,Sn);function QJe(t){if(t.length>=255)throw new TypeError("Alphabet too long");for(var e=new Uint8Array(256),r=0;r<e.length;r++)e[r]=255;for(var n=0;n<t.length;n++){var a=t.charAt(n),i=a.charCodeAt(0);if(e[i]!==255)throw new TypeError(a+" is ambiguous");e[i]=n}var s=t.length,o=t.charAt(0),c=Math.log(s)/Math.log(256),l=Math.log(256)/Math.log(s);function d(y){if(y instanceof Uint8Array||(ArrayBuffer.isView(y)?y=new Uint8Array(y.buffer,y.byteOffset,y.byteLength):Array.isArray(y)&&(y=Uint8Array.from(y))),!(y instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(y.length===0)return"";for(var x=0,M=0,E=0,S=y.length;E!==S&&y[E]===0;)E++,x++;for(var T=(S-E)*l+1>>>0,D=new Uint8Array(T);E!==S;){for(var k=y[E],_=0,L=T-1;(k!==0||_<M)&&L!==-1;L--,_++)k+=256*D[L]>>>0,D[L]=k%s>>>0,k=k/s>>>0;if(k!==0)throw new Error("Non-zero carry");M=_,E++}for(var O=T-M;O!==T&&D[O]===0;)O++;for(var B=o.repeat(x);O<T;++O)B+=t.charAt(D[O]);return B}function h(y){if(typeof y!="string")throw new TypeError("Expected String");if(y.length===0)return new Uint8Array;for(var x=0,M=0,E=0;y[x]===o;)M++,x++;for(var S=(y.length-x)*c+1>>>0,T=new Uint8Array(S);y[x];){var D=e[y.charCodeAt(x)];if(D===255)return;for(var k=0,_=S-1;(D!==0||k<E)&&_!==-1;_--,k++)D+=s*T[_]>>>0,T[_]=D%256>>>0,D=D/256>>>0;if(D!==0)throw new Error("Non-zero carry");E=k,x++}for(var L=S-E;L!==S&&T[L]===0;)L++;for(var O=new Uint8Array(M+(S-L)),B=M;L!==S;)O[B++]=T[L++];return O}function m(y){var x=h(y);if(x)return x;throw new Error("Non-base"+s+" character")}return{encode:d,decodeUnsafe:h,decode:m}}var JJe=QJe;const XJe=JJe,eXe="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";var tXe=XJe(eXe);const Mye=Ai(tXe),U_t=t=>Mye.encode(t),rXe=t=>Mye.decode(t),nXe=32;function W_t(t){try{return rXe(t).length===nXe}catch{return!1}}const Aye=32;function aXe(t){return iXe(t)&&sXe(t)===Aye}function V_t(t){return aXe(t)}function Sye(t,e=!1){let r=t.toLowerCase();return!e&&r.startsWith("0x")&&(r=r.slice(2)),`0x${r.padStart(Aye*2,"0")}`}function Eye(t,e=!1){return Sye(t,e)}function iXe(t){return/^(0x|0X)?[a-fA-F0-9]+$/.test(t)&&t.length%2===0}function sXe(t){return/^(0x|0X)/.test(t)?(t.length-2)/2:t.length/2}BigInt(1e9);const $_t="0x1",oXe="0x2";Eye("0x6");const H_t=`${oXe}::sui::SUI`;Eye("0x5");const wv="::",cXe="0x2::sui::SUI",Cye=t=>/^(0x)?[0-9a-fA-F]+::\w+::\w+$/.test(t),lXe=t=>t.replace(/(0x)(0*)/g,"0x");function Koe(t){return t=t.startsWith("0x")?t.slice(2):t,t=t.length%2===0?t:"0"+t,`0x${t.length===64?t:Pn.encode(sa.zpad(Pn.decode(t),32))}`}const q_t=t=>{const e=t.split(wv);if(e.length!==3)throw new Error(`Invalid Sui type: ${t}`);return[Sye(e[0]),e[1],e[2]].join(wv)},G_t=t=>new dG(t).getCoinType(),Y_t=t=>new dG(t).getPackageId(),K_t=t=>{const e=lXe(t).match(/0x2::table::Table<(.*)>/);if(!e)throw new Error(`Invalid table type: ${t}`);if(e.length<2)throw new Error(`Invalid table type: ${t}`);const[r]=e[1].split(",");if(!r||!Cye(r))throw new Error(`Invalid key type: ${r}`);return r};var Rl;let dG=(Rl=class{constructor(e){ce(this,"address");ce(this,"module");if(Rl.instanceof(e))this.address=e.address,this.module=e.module;else if(fa.instanceof(e))this.address=e.toUint8Array();else if(typeof e=="string"){if(Cye(e)){const r=e.split(wv);this.module=r.slice(1).join(wv),e=r[0]}if(e=Koe(e),!Pn.valid(e))throw new Error("Invalid Sui address: "+e);this.address=Pn.decode(e)}else this.address=e}unwrap(){const e=this.getPackageId(),r=this.module?wv+this.module:"";return`${e}${r}`}toString(){return this.unwrap()}toNative(){return this}toUint8Array(){return this.address}toUniversalAddress(){return new fa(this.toUint8Array())}getPackageId(){return Koe(Pn.encode(this.address))}getCoinType(){if(this.module==="sui::SUI")return cXe;if(!this.module)throw new Error("No module present in Sui token address");return this.unwrap()}static instanceof(e){return e.constructor.platform===Rl.platform}equals(e){return Rl.instanceof(e)?e.unwrap()===this.unwrap():this.toUniversalAddress().equals(e)}},ce(Rl,"byteSize",32),ce(Rl,"platform","Sui"),Rl);Wg("Sui",dG);async function uXe(t){try{const e=await Promise.all(t.map(async r=>r()));return await Promise.all(e.map(async r=>await dXe(r))),e}catch(e){throw console.error("Failed to load required packages",e),e}}async function dXe(t,e){try{let r=Object.entries(t.protocols);await Promise.all(r.map(([,n])=>n()))}catch(r){throw console.error("Failed to load required packages",r),r}}async function fXe(t,e,r){const n=(await uXe(e)).map(a=>a.Platform);return new Zr(t,n,r)}class fk extends WUe{constructor(r,n){super();ce(this,"conf");n?this.conf=n:this.conf=fk.getConfig(r),this.registerProviders()}get environment(){return this.conf.env}registerProviders(){var r;for(const n of Object.keys(this.conf.rpcs)){const a=pn(n);if(!a)throw new Error(`Unknown chain ${n}`);this.registerDomain({domain:a,name:n}),((r=this.conf.chains[n])==null?void 0:r.context)===dr.ETH&&this.registerRpcProvider(n,this.conf.rpcs[n])}}getContext(r){return this}static getConfig(r){return r==="Mainnet"?F8e:r==="Devnet"?U8e:R8e}}const Vv=class Vv extends Error{constructor(){super(Vv.MESSAGE)}};ce(Vv,"MESSAGE","Insufficient funds for gas"),ce(Vv,"MESSAGE_REGEX",/insufficient funds|Insufficient funds for gas/gm);let uW=Vv;const fG={MAINNET:F8e,TESTNET:R8e,DEVNET:U8e},{chains:mi}=fG.MAINNET,pXe={Ethereum:{...mi.Ethereum,displayName:"Ethereum",sdkName:"Ethereum",explorerUrl:"https://etherscan.io/",explorerName:"Etherscan",chainId:1,icon:"Ethereum",symbol:"ETH",wrappedGasToken:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"},Bsc:{...mi.Bsc,displayName:"BSC",sdkName:"Bsc",explorerUrl:"https://bscscan.com/",explorerName:"BscScan",chainId:56,icon:"Bsc",symbol:"BSC",wrappedGasToken:"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"},Polygon:{...mi.Polygon,displayName:"Polygon",sdkName:"Polygon",explorerUrl:"https://polygonscan.com/",explorerName:"PolygonScan",chainId:137,icon:"Polygon",symbol:"POL",wrappedGasToken:"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270"},Avalanche:{...mi.Avalanche,displayName:"Avalanche",sdkName:"Avalanche",explorerUrl:"https://avascan.info/blockchain/c/",explorerName:"Avascan",chainId:43114,icon:"Avalanche",symbol:"AVAX",wrappedGasToken:"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7"},Fantom:{...mi.Fantom,displayName:"Fantom",sdkName:"Fantom",explorerUrl:"https://ftmscan.com/",explorerName:"FTMscan",chainId:250,icon:"Fantom",symbol:"FTM",wrappedGasToken:"0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83"},Celo:{...mi.Celo,displayName:"Celo",sdkName:"Celo",explorerUrl:"https://explorer.celo.org/mainnet/",explorerName:"Celo Explorer",chainId:42220,icon:"Celo",symbol:"CELO"},Moonbeam:{...mi.Moonbeam,displayName:"Moonbeam",sdkName:"Moonbeam",explorerUrl:"https://moonscan.io/",explorerName:"Moonscan",chainId:1284,icon:"Moonbeam",symbol:"GLMR",wrappedGasToken:"0xAcc15dC74880C9944775448304B263D191c6077F"},Solana:{...mi.Solana,displayName:"Solana",sdkName:"Solana",explorerUrl:"https://explorer.solana.com/",explorerName:"Solana Explorer",chainId:0,icon:"Solana",symbol:"SOL",wrappedGasToken:"So11111111111111111111111111111111111111112"},Sui:{...mi.Sui,displayName:"Sui",sdkName:"Sui",explorerUrl:"https://suiscan.xyz/",explorerName:"Suiscan",chainId:0,icon:"Sui",symbol:"SUI"},Aptos:{...mi.Aptos,displayName:"Aptos",sdkName:"Aptos",explorerUrl:"https://explorer.aptoslabs.com/",explorerName:"Aptos Explorer",chainId:0,icon:"Aptos",symbol:"APT"},Base:{...mi.Base,displayName:"Base",sdkName:"Base",explorerUrl:"https://basescan.org/",explorerName:"BaseScan",chainId:8453,icon:"Base",symbol:"BASE",wrappedGasToken:"0x4200000000000000000000000000000000000006"},Arbitrum:{...mi.Arbitrum,displayName:"Arbitrum",sdkName:"Arbitrum",explorerUrl:"https://arbiscan.io/",explorerName:"Arbitrum Explorer",chainId:42161,icon:"Arbitrum",symbol:"ARB",wrappedGasToken:"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1"},Optimism:{...mi.Optimism,displayName:"Optimism",sdkName:"Optimism",explorerUrl:"https://optimistic.etherscan.io/",explorerName:"Optimistic Etherscan",chainId:10,icon:"Optimism",symbol:"OP",wrappedGasToken:"0x4200000000000000000000000000000000000006"},Klaytn:{...mi.Klaytn,displayName:"Kaia",sdkName:"Klaytn",explorerUrl:"https://kaiascope.com/",explorerName:"Kaia Scope",chainId:8217,icon:"Klaytn",symbol:"KLAY",wrappedGasToken:"0xe4f05A66Ec68B54A58B17c22107b02e0232cC817"},Scroll:{...mi.Scroll,displayName:"Scroll",sdkName:"Scroll",explorerUrl:"https://scrollscan.com/",explorerName:"Scrollscan",chainId:534352,icon:"Scroll",symbol:"SCR",wrappedGasToken:"0x5300000000000000000000000000000000000004"},Blast:{...mi.Blast,displayName:"Blast",sdkName:"Blast",explorerUrl:"https://blastscan.io/",explorerName:"Blastscan",chainId:81457,icon:"Blast",symbol:"BLAST",wrappedGasToken:"0x9D020B1697035d9d54f115194c9e04a1e4Eb9aF7"},Xlayer:{...mi.Xlayer,displayName:"X Layer",sdkName:"Xlayer",explorerUrl:"https://www.okx.com/web3/explorer/xlayer/",explorerName:"OKX Explorer",chainId:196,icon:"Xlayer",symbol:"OKX",wrappedGasToken:"0xe538905cf8410324e03A5A23C1c177a474D59b2b"},Mantle:{...mi.Mantle,displayName:"Mantle",sdkName:"Mantle",explorerUrl:"https://explorer.mantle.xyz/",explorerName:"Mantle Explorer",chainId:5e3,icon:"Mantle",symbol:"MNT",wrappedGasToken:"0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8"},Worldchain:{...mi.Worldchain,displayName:"World Chain",sdkName:"Worldchain",explorerUrl:"https://worldscan.org/",explorerName:"World Scan",chainId:480,icon:"Worldchain",symbol:"WORLD"},Unichain:{...mi.Unichain,displayName:"Unichain",sdkName:"Unichain",explorerUrl:"https://uniscan.xyz/",explorerName:"Uniscan",chainId:130,icon:"Unichain",symbol:"UNI",wrappedGasToken:"0x4200000000000000000000000000000000000006"},Berachain:{...mi.Berachain,displayName:"Berachain",sdkName:"Berachain",explorerUrl:"https://berascan.com/",explorerName:"Berascan",chainId:80094,icon:"Berachain",symbol:"BERA",wrappedGasToken:"0x6969696969696969696969696969696969696969"}},I5=t=>{console.error(`Wormhole Connect: ${t}`)},Wr=(t,e)=>e?{[t]:e}:{},hXe=(t,e)=>{if(!e)return t;for(const r in e)for(const n in e[r])t[r]||(t[r]={}),t[r][n]={...e[r][n],...t[r][n]};return t},mXe=(t,e,r)=>{if(t)return t.fromChain&&(e[t.fromChain]||(I5(`Invalid chain name "${t.fromChain}" specified for defaultInputs.fromChain`),delete t.fromChain)),t.toChain&&(e[t.toChain]||(I5(`Invalid chain name "${t.toChain}" specified for defaultInputs.toChain`),delete t.fromChain)),t.fromChain&&t.toChain&&t.fromChain===t.toChain&&I5("Source and destination chain cannot be the same, check the defaultInputs configuration"),t.fromChain&&t.toChain&&t.requiredChain&&(e[t.requiredChain]||I5(`Invalid network value "${t.requiredChain}" specified for defaultInputs.requiredChain`),t.toChain!==t.requiredChain&&t.fromChain!==t.requiredChain&&I5("Source chain or destination chain must equal the required network")),t.fromChain&&t.fromToken&&(r.findByAddressOrSymbol(t.fromChain,t.fromToken)||(I5(`Invalid token "${t.fromToken}" specified for defaultInputs.fromToken`),delete t.fromToken)),t.toChain&&t.toToken&&(r.findByAddressOrSymbol(t.toChain,t.toToken)||(I5(`Invalid token "${t.toToken}" specified for defaultInputs.toToken`),delete t.toToken)),t},bXe=t=>t[0].toUpperCase()+t.slice(1),gXe={},{REACT_APP_ETHEREUM_RPC:yXe,REACT_APP_SOLANA_RPC:vXe,REACT_APP_POLYGON_RPC:xXe,REACT_APP_BSC_RPC:wXe,REACT_APP_AVALANCHE_RPC:MXe,REACT_APP_FANTOM_RPC:AXe,REACT_APP_CELO_RPC:SXe,REACT_APP_MOONBEAM_RPC:EXe,REACT_APP_SUI_RPC:CXe,REACT_APP_APTOS_RPC:TXe,REACT_APP_BASE_RPC:IXe,REACT_APP_KLAYTN_RPC:DXe,REACT_APP_ARBITRUM_RPC:NXe,REACT_APP_OPTIMISM_RPC:kXe,REACT_APP_SCROLL_RPC:_Xe,REACT_APP_BLAST_RPC:LXe,REACT_APP_XLAYER_RPC:BXe,REACT_APP_MANTLE_RPC:jXe,REACT_APP_WORLDCHAIN_RPC:zXe,REACT_APP_UNICHAIN_RPC:PXe,REACT_APP_BERACHAIN_RPC:OXe}=gXe,RXe={...Wr("Ethereum",yXe),...Wr("Solana",vXe),...Wr("Polygon",xXe),...Wr("Bsc",wXe),...Wr("Avalanche",MXe),...Wr("Fantom",AXe),...Wr("Celo",SXe),...Wr("Moonbeam",EXe),...Wr("Sui",CXe),...Wr("Aptos",TXe),...Wr("Base",IXe),...Wr("Arbitrum",NXe),...Wr("Optimism",kXe),...Wr("Klaytn",DXe),...Wr("Scroll",_Xe),...Wr("Blast",LXe),...Wr("Xlayer",BXe),...Wr("Mantle",jXe),...Wr("Worldchain",zXe),...Wr("Unichain",PXe),...Wr("Berachain",OXe)};var tt=(t=>(t[t.AVAX=1]="AVAX",t[t.BNB=2]="BNB",t[t.BSC=3]="BSC",t[t.CELO=4]="CELO",t[t.ETH=5]="ETH",t[t.FANTOM=6]="FANTOM",t[t.POLYGON=7]="POLYGON",t[t.SOLANA=8]="SOLANA",t[t.USDC=9]="USDC",t[t.GLMR=10]="GLMR",t[t.DAI=11]="DAI",t[t.USDT=12]="USDT",t[t.BUSD=13]="BUSD",t[t.WBTC=14]="WBTC",t[t.SUI=15]="SUI",t[t.APT=16]="APT",t[t.SEI=17]="SEI",t[t.BASE=18]="BASE",t[t.OSMO=19]="OSMO",t[t.TBTC=20]="TBTC",t[t.WSTETH=21]="WSTETH",t[t.ARBITRUM=22]="ARBITRUM",t[t.OPTIMISM=23]="OPTIMISM",t[t.ATOM=24]="ATOM",t[t.EVMOS=25]="EVMOS",t[t.KUJI=26]="KUJI",t[t.PYTH=27]="PYTH",t[t.INJ=28]="INJ",t[t.KLAY=29]="KLAY",t[t.NTT=30]="NTT",t[t.SCROLL=31]="SCROLL",t[t.BLAST=32]="BLAST",t[t.XLAYER=33]="XLAYER",t[t.MANTLE=34]="MANTLE",t[t.WORLDCHAIN=35]="WORLDCHAIN",t[t.BERA=36]="BERA",t))(tt||{});const FXe=[{symbol:"ETH",decimals:18,icon:tt.ETH,tokenId:{chain:"Ethereum",address:"native"}},{symbol:"WETH",decimals:18,icon:tt.ETH,tokenId:{chain:"Ethereum",address:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"}},{symbol:"USDC",decimals:6,icon:tt.USDC,tokenId:{chain:"Ethereum",address:"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"}},{symbol:"WBTC",decimals:8,icon:tt.WBTC,tokenId:{chain:"Ethereum",address:"0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599"}},{symbol:"USDT",decimals:6,icon:tt.USDT,tokenId:{chain:"Ethereum",address:"0xdAC17F958D2ee523a2206206994597C13D831ec7"}},{symbol:"DAI",decimals:18,icon:tt.DAI,tokenId:{chain:"Ethereum",address:"0x6B175474E89094C44Da98b954EedeAC495271d0F"}},{symbol:"BUSD",decimals:18,icon:tt.BUSD,tokenId:{chain:"Ethereum",address:"0x4Fabb145d64652a948d72533023f6E7A623C7C53"}},{symbol:"POL",decimals:18,icon:tt.POLYGON,tokenId:{chain:"Polygon",address:"native"}},{symbol:"WPOL",decimals:18,icon:tt.POLYGON,tokenId:{chain:"Polygon",address:"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270"}},{symbol:"WETH",decimals:18,icon:tt.ETH,tokenId:{chain:"Polygon",address:"0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619"}},{symbol:"USDC",decimals:6,icon:tt.USDC,tokenId:{chain:"Polygon",address:"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359"}},{symbol:"USDT",decimals:6,icon:tt.USDT,tokenId:{chain:"Polygon",address:"0xc2132D05D31c914a87C6611C10748AEb04B58e8F"}},{symbol:"BNB",decimals:18,icon:tt.BNB,tokenId:{chain:"Bsc",address:"native"}},{symbol:"WBNB",decimals:18,icon:tt.BNB,tokenId:{chain:"Bsc",address:"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"}},{symbol:"USDC",decimals:18,icon:tt.USDC,tokenId:{chain:"Bsc",address:"0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d"}},{symbol:"AVAX",decimals:18,icon:tt.AVAX,tokenId:{chain:"Avalanche",address:"native"}},{symbol:"WAVAX",decimals:18,icon:tt.AVAX,tokenId:{chain:"Avalanche",address:"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7"}},{symbol:"USDC",decimals:6,icon:tt.USDC,tokenId:{chain:"Avalanche",address:"0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E"}},{symbol:"USDT",decimals:6,icon:tt.USDT,tokenId:{chain:"Avalanche",address:"0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7"}},{symbol:"WETH",decimals:18,icon:tt.ETH,tokenId:{chain:"Avalanche",address:"0x49D5c2BdFfac6CE2BFdB6640F4F80f226bc10bAB"}},{symbol:"FTM",decimals:18,icon:tt.FANTOM,tokenId:{chain:"Fantom",address:"native"}},{symbol:"WFTM",name:"Wrapped Fantom",decimals:18,icon:tt.FANTOM,tokenId:{chain:"Fantom",address:"0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83"}},{symbol:"USDC.e",decimals:6,icon:tt.USDC,tokenId:{chain:"Fantom",address:"0x2F733095B80A04b38b0D10cC884524a3d09b836a"}},{symbol:"CELO",decimals:18,icon:tt.CELO,tokenId:{chain:"Celo",address:"0x471EcE3750Da237f93B8E339c536989b8978a438"}},{symbol:"USDT",decimals:6,icon:tt.USDT,tokenId:{chain:"Celo",address:"0x48065fbBE25f71C9282ddf5e1cD6D6A887483D5e"}},{symbol:"GLMR",decimals:18,icon:tt.GLMR,tokenId:{chain:"Moonbeam",address:"native"}},{symbol:"WGLMR",decimals:18,icon:tt.GLMR,tokenId:{chain:"Moonbeam",address:"0xAcc15dC74880C9944775448304B263D191c6077F"}},{symbol:"SOL",decimals:9,icon:tt.SOLANA,tokenId:{chain:"Solana",address:"native"}},{symbol:"WSOL",decimals:9,tokenId:{chain:"Solana",address:"So11111111111111111111111111111111111111112"},icon:tt.SOLANA},{symbol:"USDC",decimals:6,tokenId:{chain:"Solana",address:"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"},icon:tt.USDC},{symbol:"USDT",decimals:6,icon:tt.USDT,tokenId:{chain:"Solana",address:"Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB"}},{symbol:"SUI",decimals:9,tokenId:{chain:"Sui",address:"native"},icon:tt.SUI},{symbol:"USDC",decimals:6,tokenId:{chain:"Sui",address:"0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7::usdc::USDC"},icon:tt.USDC},{symbol:"APT",decimals:8,tokenId:{chain:"Aptos",address:"native"},icon:tt.APT},{symbol:"USDC",decimals:6,tokenId:{chain:"Aptos",address:"0xbae207659db88bea0cbead6da0ed00aac12edcdda169e591cd41c94180b46f3b"},icon:tt.USDC},{symbol:"ETH",decimals:18,icon:tt.ETH,tokenId:{chain:"Arbitrum",address:"native"}},{symbol:"WETH",decimals:18,icon:tt.ETH,tokenId:{chain:"Arbitrum",address:"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1"}},{symbol:"USDC",decimals:6,icon:tt.USDC,tokenId:{chain:"Arbitrum",address:"0xaf88d065e77c8cC2239327C5EDb3A432268e5831"}},{symbol:"USDT",decimals:6,icon:tt.USDT,tokenId:{chain:"Arbitrum",address:"0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9"}},{symbol:"ETH",decimals:18,icon:tt.ETH,tokenId:{chain:"Optimism",address:"native"}},{symbol:"WETH",decimals:18,icon:tt.ETH,tokenId:{chain:"Optimism",address:"0x4200000000000000000000000000000000000006"}},{symbol:"USDC",decimals:6,icon:tt.USDC,tokenId:{chain:"Optimism",address:"0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85"}},{symbol:"USDT",decimals:6,icon:tt.USDT,tokenId:{chain:"Optimism",address:"0x94b008aA00579c1307B0EF2c499aD98a8ce58e58"}},{symbol:"WETH",decimals:18,icon:tt.ETH,tokenId:{chain:"Bsc",address:"0x2170Ed0880ac9A755fd29B2688956BD959F933F8"}},{symbol:"USDT",decimals:18,icon:tt.USDT,tokenId:{chain:"Bsc",address:"0x55d398326f99059fF775485246999027B3197955"}},{symbol:"ETH",decimals:18,icon:tt.ETH,tokenId:{chain:"Base",address:"native"}},{symbol:"WETH",decimals:18,icon:tt.ETH,tokenId:{chain:"Base",address:"0x4200000000000000000000000000000000000006"}},{symbol:"USDC",decimals:6,icon:tt.USDC,tokenId:{chain:"Base",address:"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}},{symbol:"USDT",decimals:6,icon:tt.USDT,tokenId:{chain:"Base",address:"0xfde4C96c8593536E31F229EA8f37b2ADa2699bb2"}},{symbol:"wstETH",decimals:18,tokenId:{chain:"Base",address:"0xc1CBa3fCea344f92D9239c08C0568f6F2F0ee452"},icon:tt.WSTETH},{symbol:"wstETH",decimals:18,tokenId:{chain:"Ethereum",address:"0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0"},icon:tt.WSTETH},{symbol:"wstETH",decimals:18,tokenId:{chain:"Arbitrum",address:"0x5979D7b546E38E414F7E9822514be443A4800529"},icon:tt.WSTETH},{symbol:"wstETH",decimals:18,tokenId:{chain:"Optimism",address:"0x1F32b1c2345538c0c6f582fCB022739c4A194Ebb"},icon:tt.WSTETH},{symbol:"wstETH",decimals:18,tokenId:{chain:"Polygon",address:"0x03b54A6e9a984069379fae1a4fC4dBAE93B3bCCD"},icon:tt.WSTETH},{symbol:"KLAY",decimals:18,icon:tt.KLAY,tokenId:{chain:"Klaytn",address:"native"}},{symbol:"WKLAY",decimals:18,name:"wKLAY",icon:tt.KLAY,tokenId:{chain:"Klaytn",address:"0xe4f05A66Ec68B54A58B17c22107b02e0232cC817"}},{symbol:"PYTH",decimals:6,tokenId:{chain:"Solana",address:"HZ1JovNiVvGrGNiiYvEozEVgZ58xaU3RKwX8eACQBCt3"},icon:tt.PYTH},{symbol:"ETH",decimals:18,icon:tt.SCROLL,tokenId:{chain:"Scroll",address:"native"}},{symbol:"WETH",decimals:18,icon:tt.SCROLL,tokenId:{chain:"Scroll",address:"0x5300000000000000000000000000000000000004"}},{symbol:"ETH",decimals:18,icon:tt.BLAST,tokenId:{chain:"Blast",address:"native"}},{symbol:"WETH",decimals:18,icon:tt.BLAST,tokenId:{chain:"Blast",address:"0x9D020B1697035d9d54f115194c9e04a1e4Eb9aF7"}},{symbol:"OKB",decimals:18,icon:tt.XLAYER,tokenId:{chain:"Xlayer",address:"native"}},{symbol:"WOKB",decimals:18,icon:tt.XLAYER,tokenId:{chain:"Xlayer",address:"0xe538905cf8410324e03A5A23C1c177a474D59b2b"}},{symbol:"MNT",decimals:18,icon:tt.MANTLE,tokenId:{chain:"Mantle",address:"native"}},{symbol:"WMNT",decimals:18,icon:tt.MANTLE,tokenId:{chain:"Mantle",address:"0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8"}},{symbol:"tBTC",decimals:18,tokenId:{chain:"Ethereum",address:"0x18084fbA666a33d37592fA2633fD49a74DD93a88"},icon:tt.TBTC},{symbol:"tBTC",decimals:18,tokenId:{chain:"Polygon",address:"0x236aa50979D5f3De3Bd1Eeb40E81137F22ab794b"},icon:tt.TBTC},{symbol:"tBTC",decimals:18,tokenId:{chain:"Optimism",address:"0x6c84a8f1c29108F47a79964b5Fe888D4f4D0dE40"},icon:tt.TBTC},{symbol:"tBTC",decimals:18,tokenId:{chain:"Arbitrum",address:"0x6c84a8f1c29108F47a79964b5Fe888D4f4D0dE40"},icon:tt.TBTC},{symbol:"tBTC",decimals:18,tokenId:{chain:"Base",address:"0x236aa50979D5f3De3Bd1Eeb40E81137F22ab794b"},icon:tt.TBTC},{symbol:"tBTC",decimals:8,tokenId:{chain:"Solana",address:"6DNSN2BJsaPFdFFc1zP37kkeNe4Usc1Sqkzr9C9vPWcU"},icon:tt.TBTC},{symbol:"ETH",tokenId:{chain:"Worldchain",address:"native"},decimals:18,icon:tt.WORLDCHAIN},{symbol:"WETH",tokenId:{chain:"Worldchain",address:"0x4200000000000000000000000000000000000006"},decimals:18,icon:tt.WORLDCHAIN},{symbol:"ETH",tokenId:{chain:"Unichain",address:"native"},decimals:18,icon:tt.ETH},{symbol:"WETH",tokenId:{chain:"Unichain",address:"0x4200000000000000000000000000000000000006"},decimals:18,icon:tt.ETH},{symbol:"USDC",tokenId:{chain:"Unichain",address:"0x078D782b760474a361dDA0AF3839290b0EF57AD6"},decimals:6,icon:tt.USDC},{symbol:"BERA",tokenId:{chain:"Berachain",address:"native"},decimals:18,icon:tt.BERA},{symbol:"WBERA",tokenId:{chain:"Berachain",address:"0x6969696969696969696969696969696969696969"},decimals:18,icon:tt.BERA}],UXe={Ethereum:{"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2":{Bsc:"0x4DB5a66E937A9F4473fA95b1cAF1d1E1D62E29EA",Polygon:"0x11CD37bb86F65419713f30673A480EA33c826872",Avalanche:"0x8b82A291F83ca07Af22120ABa21632088fC92931",Fantom:"0x2A126f043BDEBe5A0A9841c51915E562D9B07289",Celo:"0x66803FB87aBd4aaC3cbB3fAd7C3aa01f6F3FB207",Moonbeam:"0xab3f0245B83feB11d15AAffeFD7AD465a59817eD",Solana:"7vfCXTUXx5WJV5JADk17DUJ4ksgau7utNKj4b963voxs",Sui:"0xaf8cd5edc19c4512f4259f0bee101a40d41ebed738ade5874359610ef8eeced5::coin::COIN",Aptos:"0xcc8a89c8dce9693d354449f1f73e60e14e347417854f029db5bc8e7454008abb::coin::T",Base:"0x71b35ECb35104773537f849FBC353F81303A5860",Arbitrum:"0xD8369C2EDA18dD6518eABb1F85BD60606dEb39Ec",Optimism:"0xb47bC3ed6D70F04fe759b2529c9bc7377889678f",Blast:"0xC09a79fCF76ab2917c685896E3693e04EEbab69C",Mantle:"0x115Fcc627AcE0457fbeb7Af3b8BcAcE7Ff6211A4",Klaytn:"0x98A8345bB9D3DDa9D808Ca1c9142a28F6b0430E1",Worldchain:"0x6938c3EfFEf84E5C69e3d7cc41eBC6Cff99EF8A7"},"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48":{Bsc:"0xB04906e95AB5D797aDA81508115611fee694c2b3",Polygon:"0x4318CB63A2b8edf2De971E2F17F77097e499459D",Avalanche:"0xB24CA28D4e2742907115fECda335b40dbda07a4C",Fantom:"0x2Ec752329c3EB419136ca5e4432Aa2CDb1eA23e6",Celo:"0x37f750B7cC259A2f741AF45294f6a16572CF5cAd",Moonbeam:"0x931715FEE2d06333043d11F658C8CE934aC61D0c",Solana:"A9mUU4qviSctJVPJdBJWkb28deg915LYJKrzQ19ji3FM",Sui:"0x5d4b302506645c37ff133b98c4b50a5ae14841659738d6d733d59d0d217a93bf::coin::COIN",Aptos:"0x5e156f1207d0ebfa19a9eeff00d62a282278fb8719f4fab3a586a0a2c0fffbea::coin::T",Base:"0xec267C53f53807c2337C257f8AC3Fc3cC07cc0ed",Arbitrum:"0xC96F2715E2a242d50D1b0bC923dbe1740b8eCf18",Optimism:"0x711e53D031ea9B0bb0C24dD506df11b41AEA419e",Klaytn:"0x608792Deb376CCE1c9FA4D0E6B7b44f507CfFa6A",Worldchain:"0x2cbD3491d687A76bb9C53c30B212855520D47b52"},"0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599":{Bsc:"0x43359676E1A3F9FbB5de095333f8e9c1B46dFA44",Polygon:"0x5D49c278340655B56609FdF8976eb0612aF3a0C3",Avalanche:"0x1C0e79C5292c59bbC13C9F9f209D204cf4d65aD6",Fantom:"0x87e9E225aD8a0755B9958fd95BE43DD6A91FF3A7",Celo:"0xd71Ffd0940c920786eC4DbB5A12306669b5b81EF",Moonbeam:"0xE57eBd2d67B462E9926e04a8e33f01cD0D64346D",Solana:"3NZ9JMVBmGAqocybic2c7LQCJScmgsAZ6vQqTDzcqmJh",Sui:"0x027792d9fed7f9844eb4839566001bb6f6cb4804f66aa2da6fe1ee242d896881::coin::COIN",Aptos:"0xae478ff7d83ed072dbc5e264250e67ef58f57c99d89b447efd8a0a2e8b2be76e::coin::T",Base:"0xE6396f780b543dF16ee3b784D789c75B68319db0",Arbitrum:"0x397846a8078d4845c7f5c6Ca76aeBbcFDc044fAe",Optimism:"0xB214C19d81c99E75e84706a3aa0A757319023e26",Klaytn:"0x981846bE8d2d697f4dfeF6689a161A25FfbAb8F9",Worldchain:"0x06c9ec7E18A7900E79Ad5BeCc6Cc29E3eebD81EC"},"0xdAC17F958D2ee523a2206206994597C13D831ec7":{Bsc:"0x524bC91Dc82d6b90EF29F76A3ECAaBAffFD490Bc",Polygon:"0x9417669fBF23357D2774e9D421307bd5eA1006d2",Avalanche:"0x9d228444FC4B7E15A2C481b48E10247A03351FD8",Fantom:"0x14BCb86aEed6a74D3452550a25D37f1c30AA0A66",Celo:"0x617f3112bf5397D0467D315cC709EF968D9ba546",Moonbeam:"0xc30E9cA94CF52f3Bf5692aaCF81353a27052c46f",Solana:"Dn4noZ5jgGfkntzcQSUZ8czkreiZ1ForXYoV2H8Dm7S1",Sui:"0xc060006111016b8a020ad5b33834984a437aaa7d3c74c18e09a95d48aceab08c::coin::COIN",Aptos:"0xa2eda21a58856fda86451436513b867c97eecb4ba099da5775520e0f7492e852::coin::T",Base:"0xFf0C62A4979400841eFaA6faADb07Ac7d5C98b27",Arbitrum:"0xE4728F3E48E94C6DA2B53610E677cc241DAFB134",Optimism:"0xf6B4185FCf8aF291c0E3927fbEab7046b4f6A8CA",Blast:"0x37C1dea9C51864cc6640FA9c09f4dac574b8285E",Klaytn:"0x5C13E303a62Fc5DEdf5B52D66873f2E59fEdADC2",Xlayer:"0x5866709f926f26C5870191F40333ac462B917bC0",Worldchain:"0x95dd0680Fd6B6c7546e75C1A4E6A3256072C0593"},"0x6B175474E89094C44Da98b954EedeAC495271d0F":{Bsc:"0x3413a030EF81a3dD5a302F4B4D11d911e12ed337",Polygon:"0x732EB1747ecCFC431fF19bc359ffc83755B1918c",Avalanche:"0xca319f81D147559e19A522A0a0310Dd43A96cA0F",Fantom:"0xEE786D3D73Ea645365c7248E4e40eDba08B1169F",Celo:"0x97926a82930bb7B33178E3c2f4ED1BFDc91A9FBF",Moonbeam:"0x06e605775296e851FF43b4dAa541Bb0984E9D6fD",Solana:"EjmyN6qEC1Tf1JxiG1ae7UTJhUxSwk1TCWNWqxWV4J6o",Aptos:"0x407a220699982ebb514568d007938d2447d33667e4418372ffec1ddb24491b6c::coin::T",Base:"0x617Edadb51BfB43A44Bb91C7402129C23bA52381",Arbitrum:"0x5c4f2FEFB97F7DF09E762d95C83f0Ccf8bCe8234",Optimism:"0x098EA47D630b46df1E08e389e5e4466119c7dd30",Blast:"0x286ebE2BacB0EBeF746DBDA24dED0fc001c6d0F6",Sui:"0xc01c54cd767a60835bf100b0a8f7aae66ac9f4e374f76746af60f02493b6f2cf::coin::COIN",Klaytn:"0xCB2C7998696Ef7a582dFD0aAFadCd008D03E791A",Worldchain:"0x69635e59E89000e08a13C3F7B9f7293160Dc83a2"},"0x4Fabb145d64652a948d72533023f6E7A623C7C53":{Bsc:"0x035de3679E692C471072d1A09bEb9298fBB2BD31",Polygon:"0x95ea750420da26bE1Ab0891e209e921bCd84763f",Celo:"0x1dd42c0785ca90B677adc2ABad01dfc5ECcD0b4d",Moonbeam:"0xa2284e1F98E4d0B7Eb6a6b4f3C57f1b209C755F3",Solana:"33fsBLA8djQm82RpHmE3SuVrPGtZBWNYExsEUeKX1HXX",Aptos:"0x77400d2f56a01bad2d7c8c6fa282f62647ce3c03f43f2a8742e47ea01a91e24a::coin::T",Worldchain:"0x276719Fc6a38E62B717c6FF6E39d1C336ee633AB"},"0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0":{Polygon:"0xe082a7Fc696De18172Ad08D956569Ee80BC37f06",Solana:"ZScHuTtqZukUrtZS43teTKGs2VqkKL8k4QCouR2n6Uo",Arbitrum:"0xf2717122Dfdbe988ae811E7eFB157aAa07Ff9D0F",Optimism:"0x855CFcEEe998c8ca34F9c914F584AbF72dC88B87",Base:"0xEd4e2FD35161c3c0e33cA187fce64C70d44Ce32b",Bsc:"0xad80E1A9B5824234afA9dE1F3bbDb8a994796169",Avalanche:"0x11449fd2F05D93827972b40adE96F6ffBE42E35a",Fantom:"0x2a2Ec6Ad3e47C536F47934F63b95BD647F1C730E",Worldchain:"0xd977e0251db8d38155dC5d212944AB7B7a6777Ad"}},Polygon:{"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270":{Ethereum:"0x7c9f4C87d911613Fe9ca58b579f737911AAD2D43",Bsc:"0xc836d8dC361E44DbE64c4862D55BA041F88Ddd39",Avalanche:"0xf2f13f0B7008ab2FA4A2418F4ccC3684E49D20Eb",Fantom:"0xb88A6064B1F3FF5B9AE4A82fFD52560b0dF9FBD3",Celo:"0x9C234706292b1144133ED509ccc5B3CD193BF712",Moonbeam:"0x82DbDa803bb52434B1f4F41A6F0Acb1242A7dFa3",Solana:"Gz7VkD4MacbEB6yC5XD3HcumEiYx2EtDYYrfikGsvopG",Sui:"0xdbe380b13a6d0f5cdedd58de8f04625263f113b3f9db32b3e1983f49e2841676::coin::COIN",Aptos:"0x6781088e2a1629d38eda521467af4a8ca7bfa7e5516338017940389595c85c0f::coin::T",Base:"0xc863399E5c5C4011B1DC3fB602902C77BA72B709",Arbitrum:"0x3ab0E28C3F56616aD7061b4db38aE337E3809AEA",Optimism:"0x8f02B6a32cebcAe44D2Fd17d87966f5B5dD14c6d",Blast:"0xE00CB9206aCF0413aa9Dc12F01A22BB5Dd7A2866",Mantle:"0x1d15Dc3B3DB5A182eA8E3091F21EB0549d4a72E0",Klaytn:"0x9858e5A4f8202baD619D4BD39382CA67F4CA0E63",Scroll:"0x982D057feCD66c3af27b16EBC67C4db24810bcD8",Xlayer:"0xc97E2b2d7730C34adC389563721d9dF52EDA4A2a",Worldchain:"0xDcB507ECEA06724d8c4F2f03964f7EE4da504E8C"},"0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619":{Bsc:"0x1384284E16e3375522Be54F50909Bc52A69e90e4",Solana:"DQyeU3oFezEGia761GQ4iPcMCnxnH8fuLrmHZUvTYuby",Aptos:"0x2692323828f627a45a75a05eba8281dd46690c538b4f6ccb7a35ffe8199a28b7::coin::T",Sui:"0xa1ed6e76b06ff8f959cc479fbbd423820a3349dad8707b98ff4309c677fa20ad::coin::COIN",Arbitrum:"0xd2b299eD76d1369Ac8762CFEc85245fFD302FC17",Ethereum:"0x32d222E1f6386B3dF7065d639870bE0ef76D3599",Avalanche:"0x061FE51530768889dc20Ac7fCD29b5307b823395",Optimism:"0x2740220fFa4b206280907ce12b7cDC57445f3B92",Fantom:"0x1cAFd8d3301E4E54Fc1462E7117Eb678bF50C765",Base:"0x7A79923734eDA9c7f7ff69ad9ec1e234F67E7CD6",Moonbeam:"0xf1BB9A987B9edC360580b0c9F28069C808c2a7da",Celo:"0x8Ed68859f162970258992168293232e3Bdd987d0",Klaytn:"0x3eb25C7098AC38a852Cd2366161c5e216af50Df3"},"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359":{Aptos:"0xc5fd7820e9f053e6dd8e7dd8ca3ce8e9b10d200ba1692bdeb7a035217180ad4a::coin::T",Base:"0xFe1579BAc60363c8572CB30Bf4DD1Fd85811BBF8",Moonbeam:"0x4415BfBDee669446550d55c749007EF60B520FC8",Sui:"0x5c8c9082401982e8c2519a5c12883a5475295bf5cec4a0a13c26d35dd9a20d73::coin::COIN",Bsc:"0xe6d82Bbe75041E42E51d755e922cE1BA91af9c4d",Celo:"0x42c76808f3179A091Ee007A2955aF2522978ADE7",Fantom:"0xB4DcfD221048a1Dad989D39456BBd87762c26F06",Avalanche:"0xDb2d08f5A9C9ADBBA0DE5a69bbB1E9Ca03411692",Arbitrum:"0x599ADB10E6A012dF34935D47407450f6D7170e3C",Optimism:"0xbB1EaB9Eb8fDf65F0E291D013DA07B4b65a27a01",Solana:"C321jHPwWBzgfSGndosDTp5pBsiXPyMU1irxKLVcedRB",Ethereum:"0xFbcE0f9e92AD1003e893Ba647bC055D845aAa507",Klaytn:"0x59AEaD999e018a00B162D34de7a81AFFAB88bAbB"},"0x03b54A6e9a984069379fae1a4fC4dBAE93B3bCCD":{Base:"0xcB6D47199d60747152d7671D6497ce8D23cc1D75",Arbitrum:"0x23D3901A635fDd98D8d6509bc0720281f80a8E6D",Ethereum:"0x302F636d723c8Ed75C0d1E9D9C714009184C5624",Optimism:"0x4fad81d2268a7D9E1e0fE7dB38af07FFFA0aA56E",Celo:"0xA4c7302659eCF88a90e62e915Bd486E66B616A4C"}},Bsc:{"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c":{Ethereum:"0x418D75f65a02b3D53B2418FB8E1fe493759c7605",Polygon:"0xeCDCB5B88F8e3C15f95c720C51c71c9E2080525d",Avalanche:"0x442F7f22b1EE2c842bEAFf52880d4573E9201158",Fantom:"0xc033551e05907Ddd643AE14b6D4a9CA72BfF509B",Celo:"0xBf2554ce8A4D1351AFeB1aC3E5545AaF7591042d",Moonbeam:"0xE3b841C3f96e647E6dc01b468d6D0AD3562a9eeb",Solana:"9gP2kCy3wA1ctvYWQk75guqXuHfrEomqydHLtcTCqiLa",Sui:"0xb848cce11ef3a8f62eccea6eb5b35a12c4c2b1ee1af7755d02d7bd6218e8226f::coin::COIN",Aptos:"0x6312bc0a484bc4e37013befc9949df2d7c8a78e01c6fe14a34018449d136ba86::coin::T",Base:"0x7fdAa50d7399ac436943028edA6ed9a1BD89509f",Arbitrum:"0x7AF00405916D823eDb1121546EfA6F4972B51b84",Optimism:"0x6A09fE65ACa27C12573F04aAFa290bD75497E1BC",Blast:"0xdcd0Ec817d3ae2E82bCE8Cc9f92fFA7686A52160",Mantle:"0x9a7E85260d6F5d3c3d2a1FdDc3D980DBC78e508d",Klaytn:"0xaC9C1E4787139aF4c751B1C0fadfb513C44Ed833",Scroll:"0x5b0da0a36DC415714B53A4f24b56921332F42E7C",Xlayer:"0x8bC46166E06122603bA10D2bCA63b75091c25cAe",Worldchain:"0x59163d9c70E9b3852a504c5F1458e2daD33516Ff"},"0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d":{Ethereum:"0x7cd167B101D2808Cfd2C45d17b2E7EA9F46b74B6",Polygon:"0x4B3a922c773BDCF3BA8f1A4FDAc2029E1D0E9868",Avalanche:"0x6145E8a910aE937913426BF32De2b26039728ACF",Fantom:"0x0FcbDAC44c67A43607D3E95886dB19871ADc985F",Celo:"0x9d9abAE97a9344e3854527b4efbB366a1564bfEb",Moonbeam:"0x7f433E22366E03a3758CE22cCf82887d828078f8",Solana:"FCqfQSujuPxy6V42UvafBhsysWtEq1vhjfMN1PUbgaxA",Sui:"0x909cba62ce96d54de25bec9502de5ca7b4f28901747bbf96b76c2e63ec5f1cba::coin::COIN",Aptos:"0x79a6ed7a0607fdad2d18d67d1a0e552d4b09ebce5951f1e5c851732c02437595::coin::T",Base:"0x68E2b07F92ed506f92935d7359ECA84D5342dbb4",Arbitrum:"0x1a0590F951bc9C3818Ce75ba5Bbe92831b2cf57e",Optimism:"0x1C15057d1F3794C934a6cBC1f7EceE934050F219",Klaytn:"0x01B342d26FEF5749E87CBe412e16163771b0277c"},"0x2170Ed0880ac9A755fd29B2688956BD959F933F8":{Aptos:"0xd9fc4259ec5def95477dba9f0861c2882d1f8bee9a4138b476dd0720a3444547::coin::T",Solana:"FzjTz2cD1DfqYvafrbHWZvf1dK9qjwXGLuaU7xYXQjxP",Sui:"0x5029d5a94429a73b8036cd67192d9c5e09bbc2c0fee942d50075a9edba66744f::coin::COIN",Base:"0xf50509Bb6aF76E20c6E1eD493699c5f70764BcCC",Arbitrum:"0x6478377A399bE8c92bD35254aA7bF287836de32e",Ethereum:"0x5DbBB101CDc29443d12055eCDDdD7ca037Dce721",Fantom:"0xc511E3aec79CABD605021C237c475Ec553B002d4",Celo:"0x09F236D3708894581b1Cf679e582ba9eA5BE16f0",Klaytn:"0x4C07075BB44076106f3389766946b79784Fb5C58",Avalanche:"0xf0e509144CfA602d0A5e8C75d76FF74077f52f2b",Optimism:"0x8088Bc767c392b5769b94c9ec1D07c62874c8d5f",Polygon:"0x2D291e940DbDdaa9E847Ba5cC49451575f086b27",Moonbeam:"0xBefd7902B682938b29B3FD3D4AdECD9A984D5930"}},Avalanche:{"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7":{Ethereum:"0x85f138bfEE4ef8e540890CFb48F620571d67Eda3",Bsc:"0x96412902aa9aFf61E13f085e70D3152C6ef2a817",Polygon:"0x7Bb11E7f8b10E9e571E5d8Eace04735fDFB2358a",Fantom:"0x358CE030DC6116Cc296E8B9F002728e65459C146",Celo:"0xFFdb274b4909fC2efE26C8e4Ddc9fe91963cAA4d",Moonbeam:"0xd4937A95BeC789CC1AE1640714C61c160279B22F",Solana:"KgV1GvrHQmRBY8sHQQeUKwTm2r2h8t4C8qt12Cw1HVE",Sui:"0x1e8b532cca6569cab9f9b9ebc73f8c13885012ade714729aa3b450e0339ac766::coin::COIN",Aptos:"0x5b1bbc25524d41b17a95dac402cf2f584f56400bf5cc06b53c36b331b1ec6e8f::coin::T",Base:"0xc449A60A31E1eebFE83c42E9465fd4Dc318aE9a7",Arbitrum:"0x565609fAF65B92F7be02468acF86f8979423e514",Optimism:"0x8418C1d909842f458c9394886b83F19d62bF1A0D",Blast:"0x7D86F00026c2cD8137D60ae85d53c5E5a15B2481",Mantle:"0x2cAb4233d42043AEBbbb1445af362Ef686f3C133",Klaytn:"0x45830b92443a8f750247da2A76C85c70d0f1EBF3",Scroll:"0xC043c8A3672f397e7b52bF0a04F47d6f1aA952Ed",Xlayer:"0x5208Fb676B2DBab7aFaFB56e8997237F0ceECF71",Worldchain:"0x5Bf2A0622aa1254D963A3074b593A379784C116a"},"0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E":{Ethereum:"0x39EbF69137D98FB7659Ef8D4ea21ec26394389d7",Bsc:"0xc88Dc63bf0c8c8198C97Db0945E3eF25Ca89A8e4",Polygon:"0xAEA5CC14DefbC1b845FDE729E563B717Ee6825ae",Fantom:"0xEfE7701cb2B80664385Be226d0300912CA92f66A",Celo:"0x62FFf2D2D1692D52eAf043AeeC727F7918d269D3",Moonbeam:"0xd4918c40cA9f02d42Cb53d06587aF42017Bc345D",Solana:"FHfba3ov5P3RjaiLVgh8FTv4oirxQDoVXuoUUDvHuXax",Sui:"0xe596782fbaebef51ae99ffac8731aed98a80642b9dc193ed659c97fbc2cc0f84::coin::COIN",Aptos:"0x39d84c2af3b0c9895b45d4da098049e382c451ba63bec0ce0396ff7af4bb5dff::coin::T",Arbitrum:"0x93e0FcbEd43CD6fC30DF00CcBD4669718dc74e77",Optimism:"0x355f0a8a7ecAeD971b8Fbd50994558291ff2413a",Base:"0xD83385fE100E20c269a5975D4Bf92525BcE09F87",Blast:"0x3Db095413b5e1e5681c48028e31e8dc2505D8aD3",Klaytn:"0x9C97D4c09679Dfd00A39681f6d3b61A285312B13",Scroll:"0xbEFc3d0457fB88f82364Dd982F7BA195FEE96b74"},"0x49D5c2BdFfac6CE2BFdB6640F4F80f226bc10bAB":{Aptos:"0x25ff8e0c07552c392c9e5dd4c9c07cf0382765c1bca560e80b6296a702034219::coin::T",Solana:"F9B9qLwUN3TAWGV9EGsuzFzS2PxWvKAmLhvfeqYNaS7J",Bsc:"0xBDfe278268524de38Da89B3023C1F49deBDFdA8A",Sui:"0xc1ea686a329e35808c61484d95904d50522f1d1616cab4b416d9cfa9b274bc6c::coin::COIN",Base:"0xEfe64b52bc0bDfa109790736F25cefb79724adF0",Arbitrum:"0xdF64fB41b7f45304a786695E0D5daD8d033C01eF",Polygon:"0x2912b3a9586Fc2AB177dC869e878c688DAA7d06E",Ethereum:"0xD85a87Edbe9fB3Baf6a1Bbd1E46f1C04B291331d",Optimism:"0xBe6EA3e70e2bbB0dbD093B657fbbc0DFF0BA67eC",Moonbeam:"0x9C673c6b651D6FDEF57441125A6AC16b08bba939",Celo:"0xDac2C97b5E64d7C79d040cd2906EBe02341F1Ab5",Klaytn:"0x9971F9d9170D787C4e4E01c56E1BDB308291CacF",Fantom:"0x86a09597fc91b116511B990D29CB46ddedC0fCb0"}},Fantom:{"0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83":{Ethereum:"0x4cD2690d86284e044cb63E60F1EB218a825a7e92",Bsc:"0xbF8413EE8612E0E4f66Aa63B5ebE27f3C5883d47",Polygon:"0x3726831304D77f585f1Aca9d9841cc3Ef80dAa62",Avalanche:"0xd19abc09B7b36F7558929b97a866f499a26c2f83",Celo:"0xd1A342eE2210238233a347FEd61EE7Faf9f251ce",Moonbeam:"0x609AedD990bf45926bca9E4eE988b4Fb98587D3A",Solana:"DRQBDBEWmwWGK13fRTLhSPzjbvMSUavhV6nW4RUH8W6T",Sui:"0x6081300950a4f1e2081580e919c210436a1bed49080502834950d31ee55a2396::coin::COIN",Aptos:"0xd1aa2ff36a0e93e1b4e4fecdecf8bb95bc5de399061c5e84b515281f48718842::coin::T",Base:"0x936Fa2DE8380Dc5BF34C80F1BaD53a9f3630263B",Arbitrum:"0x7f7dcDb91930033a4Eb269196EBb6fd5f0644E4B",Optimism:"0x0b0ecbe5C3995541876d27633B63296570FB34Af",Blast:"0xf1D0eEeB6B6B35dc7289E1AD5e523F68b82bd09A",Mantle:"0x6BFDc59ECBC5503aE16F71851064597D0a75dA76",Klaytn:"0xF3AebeA789F30C22F3657F70f4CaA0f8b49ed676",Scroll:"0x16f077e2e9bF99Adfb1FEEc8360ee002842C44A2",Xlayer:"0x956b5E88c311b976C76CB415C7E030A5Af87373b"},"0x2F733095B80A04b38b0D10cC884524a3d09b836a":{Bsc:"0x521af8b1c43B503BE91F542d82EEFEabc0C93340",Arbitrum:"0xF68734163731ad6A6108f76A8e09862C1d412B42",Ethereum:"0xfcC349c14013EdeFAAcAE09Ba30F4ef2571b8D2c"}},Celo:{"0x471EcE3750Da237f93B8E339c536989b8978a438":{Ethereum:"0x3294395e62F4eB6aF3f1Fcf89f5602D90Fb3Ef69",Bsc:"0x2A335e327a55b177f5B40132fEC5D7298aa0D7e6",Polygon:"0x922F49a9911effc034eE756196E59BE7b90D43b3",Avalanche:"0x494317B8521c5a5287a06DEE467dd6fe285dA4a8",Fantom:"0xF432490C6c96C9d3bF523a499a1CEaFd8208A373",Moonbeam:"0xc1a792041985F65c17Eb65E66E254DC879CF380b",Solana:"9kvAcwQbqejuJMd59mKuw2bfSsLRaQ7zuvaTVHEeBBec",Sui:"0xa198f3be41cda8c07b3bf3fee02263526e535d682499806979a111e88a5a8d0f::coin::COIN",Aptos:"0xac0c3c35d50f6ef00e3b4db6998732fe9ed6331384925fe8ec95fcd7745a9112::coin::T",Base:"0x74df3823aA29D278cAD0A3632fCB56C896a38eD4",Arbitrum:"0x4E51aC49bC5e2d87e0EF713E9e5AB2D71EF4F336",Optimism:"0x9b88D293b7a791E40d36A39765FFd5A1B9b5c349",Blast:"0x75345Cc6a3333cca03aCE2a28C7de328122Db3b1",Klaytn:"0xB2b5bC9bc872c7107CBC8E8e0E2805Db0ac4FBc2",Worldchain:"0x2250A0E2532A745b585B69dd2CdC75207384917c"}},Moonbeam:{"0xAcc15dC74880C9944775448304B263D191c6077F":{Ethereum:"0x93d3696A9F879b331f40CB5059e37015423A3Bd0",Bsc:"0x1C063db3c621BF901FC6C1D03328b08b2F9bbfba",Polygon:"0xcC48d6CF842083fEc0E01d913fB964b585975F05",Avalanche:"0x375aA6C67BF499fBf01804A9f92C03c0776F372d",Fantom:"0xBF227E92D6754EB4BFE26C40cb299ff2809Da45f",Celo:"0x383A5513AbE4Fe36e0E00d484F710148E348Aa9D",Solana:"7ixSaXGsHAFy34wogPk2YXiUX3BMmQMFdercdaHLnBby",Sui:"0x66f87084e49c38f76502d17f87d17f943f183bb94117561eb573e075fdc5ff75::coin::COIN",Aptos:"0x7ab1283a7b13c4254d4e1f803d7ce6578442c1d7a40d0faee41cd48ba4884c8a::coin::T",Base:"0xfdB7311BeC3b2CcCF8407d0585f81B97b3b5eff1",Arbitrum:"0x944C5b67a03e6Cb93Ae1E4B70081f13b04CDB6Bd",Optimism:"0xbffD46DFDb8d3a02b8D2E0F864a2cD712090a4D3",Blast:"0x43E43580A34c8FdD4694e1F9B5F9b1121a7044a5",Klaytn:"0x52a4558f98dDc7cb40cd9114C005f0B9571258Fc",Scroll:"0x2Aba1Ed24EaFC17F801b1A7dF1c3a06737F8aB72",Xlayer:"0xE2a44Dad57004517738FbD84cdf09Bd1451b4e43",Worldchain:"0xaAe2Bd4EB640f02dD3a53bd994ad19110b4191b0"}},Solana:{So11111111111111111111111111111111111111112:{Ethereum:"0xD31a59c85aE9D8edEFeC411D448f90841571b89c",Bsc:"0xfA54fF1a158B5189Ebba6ae130CEd6bbd3aEA76e",Polygon:"0xd93f7E271cB87c23AaA73edC008A79646d1F9912",Avalanche:"0xFE6B19286885a4F7F55AdAD09C3Cd1f906D2478F",Fantom:"0xd99021C2A33e4Cf243010539c9e9b7c52E0236c1",Celo:"0x4581E64115d46CcdeE65Be2336bEc86c9BA54C01",Moonbeam:"0x99Fec54a5Ad36D50A4Bba3a41CAB983a5BB86A7d",Sui:"0xb7844e289a8410e50fb3ca48d69eb9cf29e27d223ef90353fe1bd8e27ff8f3f8::coin::COIN",Aptos:"0xdd89c0e695df0692205912fb69fc290418bed0dbe6e4573d744a6d5e6bab6c13::coin::T",Base:"0x1C61629598e4a901136a81BC138E5828dc150d67",Arbitrum:"0x2bcC6D6CdBbDC0a4071e48bb3B969b06B3330c07",Optimism:"0xba1Cf949c382A32a09A17B2AdF3587fc7fA664f1",Blast:"0xA5370b8e2413b23eA16F3B78D1d1ba3969678227",Mantle:"0xDA03239f428c76A527e1ceCa0ecA6cC367A2D945",Klaytn:"0xfAA03A2AC2d1B8481Ec3fF44A0152eA818340e6d",Xlayer:"0x3a859D92da2E16Ad32C5C6F3ADAddFBa4dE3A47e",Scroll:"0xCDf95E1F720caade4b1DC83ABfE15400D2a458AD",Worldchain:"0xEfae32D1c15EDBaEA3ebdDe1e2C51003AED04d30"},EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v:{Ethereum:"0x41f7B8b9b897276b7AAE926a9016935280b44E97",Bsc:"0x91Ca579B0D47E5cfD5D0862c21D5659d39C8eCf0",Polygon:"0x576Cf361711cd940CD9C397BB98C4C896cBd38De",Avalanche:"0x0950Fc1AD509358dAeaD5eB8020a3c7d8b43b9DA",Fantom:"0xb8398DA4FB3BC4306B9D9d9d13d9573e7d0E299f",Celo:"0x8B6eef6C449D3Ac723a9C06a9eaE2dCd7d308BA9",Moonbeam:"0x098d6eE48341D6a0a0A72dE5baaF80A10E0F6082",Sui:"0xb231fcda8bbddb31f2ef02e6161444aec64a514e2c89279584ac9806ce9cf037::coin::COIN",Aptos:"0xc91d826e29a3183eb3b6f6aa3a722089fdffb8e9642b94c5fcd4c48d035c0080::coin::T",Arbitrum:"0x3870546cfd600ba87e4180686d29dC993A45d3B7",Optimism:"0x6F974A6dfD5B166731704Be226795901c45Bb815",Base:"0xe8CE40EBBB844142400D21558a2F1c9683d69139",Klaytn:"0xa1a7feeD29EbFa38079D943486c23f401939Ce80",Scroll:"0x883Ccb5aEfD0084f1e4D04b133675acd6D5F123F"},HZ1JovNiVvGrGNiiYvEozEVgZ58xaU3RKwX8eACQBCt3:{Aptos:"0x770211b47954e15bec1a4271bf33bacebc2d2adb43b7dc1ca45efa787615dd4c::coin::T",Bsc:"0xb0188B0bb2cD4a6D2744637fC83C94a284B247Da",Base:"0x4c5d8A75F3762c1561D96f177694f67378705E98",Celo:"0x985aa4814419ba338379A634785216301e51113D",Avalanche:"0x8A0691e602B7a5FCc51a27E4a08376dE50889B42",Polygon:"0xFa4B761A1e07909Ba31331a5dfa12390E3ff5583",Fantom:"0x77ad3B2dA29FBd208F12c3C701E969F4422aAD79",Optimism:"0x99C59ACeBFEF3BBFB7129DC90D1a11DB0E91187f",Ethereum:"0xeFc0CED4B3D536103e76a1c4c74F0385C8F4Bdd3",Arbitrum:"0xE4D5c6aE46ADFAF04313081e8C0052A30b6Dd724",Sui:"0x9c6d76eb273e6b5ba2ec8d708b7fa336a5531f6be59f326b5be8d4d8b12348a4::coin::COIN",Moonbeam:"0x27cc3FDbDD1F415b09a41232D0fD71345DAB8030",Xlayer:"0x057b766b3fB76527cf815c3b5C38Dfa8144335CF",Worldchain:"0x838f3045F3B2dcDFF8cB4e5CaB0c0092A69B790a"}},Sui:{native:{Ethereum:"0x84074EA631dEc7a4edcD5303d164D5dEa4c653D6",Bsc:"0x8314f6Bf1B4dd8604A0fC33C84F9AF2fc07AABC8",Polygon:"0x34bE049fEbfc6C64Ffd82Da08a8931A9a45f2cc8",Avalanche:"0x1703CB0F762D2a435199B64Ea47E5349B7C17480",Fantom:"0xC277423a21F6e32D886BF85Ef6cCB945d5D28347",Celo:"0x1Cb9859B1A16A67ef83A0c7b9A21eeC17d9a97Dc",Moonbeam:"0x484eCCE6775143D3335Ed2C7bCB22151C53B9F49",Solana:"G1vJEgzepqhnVu35BN4jrkv3wVwkujYWFFCxhbEZ1CZr",Aptos:"0xa72a97e872be9ee3d2f14d56fd511eb7e4a53f4055be3a267d8602e7685b41c0::coin::T",Base:"0x36c6FBF7B49bF65f5F82b674af219C05b2a4aDD1",Arbitrum:"0xCF79d86B8a830030aF6D835737d6eac3bE823fD7",Optimism:"0x27A533e438892DA192725b4C9AcA51447F457212",Mantle:"0x9ef1BB6072d7d6B9C935d9c040133036aD532119",Blast:"0x62c95Ffd6d2f893Ea2EF072d1EbBcb242a974b1A",Klaytn:"0xB0B40516293e0204fB376A18aA230A210cbE0305",Xlayer:"0xEa76dBFE6e449420f294e74E057518F750E99A16",Worldchain:"0xf69005c35B5d9AcC22E4DbCf52f892cAE21F83B0"}},Aptos:{native:{Ethereum:"0x8CDf7AF57E4c8B930e1B23c477c22f076530585e",Bsc:"0x2Ba98cf7Edd2c5C794e21bc3Dc6973D3C2585eE3",Polygon:"0xa4ef199d3ad524E9C3C51Ac46B303B103A307Cef",Avalanche:"0x43c588459b3243fA541B98CC4B2E995b3de553A2",Fantom:"0x3Cd9162Ca5256b8E26A0e3Ad14CCfF7C0Da0F174",Celo:"0x89F2b718Ca518db39d377F0ABBa6B42582b549F7",Moonbeam:"0x25331575641d35D9765e1934acC8F0991c58e904",Solana:"6LNeTYMqtNm1pBFN8PfhQaoLyegAH8GD32WmHU9erXKN",Sui:"0x3a5143bb1196e3bcdfab6203d1683ae29edd26294fc8bfeafe4aaa9d2704df37::coin::COIN",Base:"0x1d36126289Be1658297A35CC3EB2BB80A7D7A04b",Arbitrum:"0x4EdeF400eDe5309240814b5FC403F224504604e9",Optimism:"0xC5B3AC2DF8D8D7AC851F763a5b3Ff23B4A696d59",Blast:"0x2a3DdE20159FbDbC86f1da0e7a462711b610c815",Klaytn:"0x68d5254007BE3a6d3d2A37e2C1ad3921D049F46D",Xlayer:"0xEdF2AEaCE382A3c0722f110c4927d34b78bce34F",Worldchain:"0xfC5011f2037f2Dad9c9aC05CbB6749B383C3099c"}},Arbitrum:{"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1":{Ethereum:"0xb945E3F853B5f8033C8513Cf3cE9F8AD9beBB1c9",Bsc:"0xaA1eEdABC48D078350ccBdD620bD088848e299E5",Polygon:"0x6a5c59AB16268d2c872916054C50440B999e417C",Avalanche:"0xDfDA518A1612030536bD77Fd67eAcbe90dDC52Ab",Fantom:"0xE8367853A0823515D37b1538331B4704089becb4",Celo:"0xc6F962fCcb140ece554AfD0E589f971532A57f14",Solana:"CSD6JQMvLi46psjHdpfFdr826mF336pEVMJgjwcoS1m4",Sui:"0x33744e7df340a4d01c23f6b18c13563f767545ea95f976f8045f056358419da3::coin::COIN",Aptos:"0xe977796d7bfb3263609b90dffd264c7bd078ce35dac42b55302858d9fa3452b::coin::T",Base:"0x9D36e0edb8BBaBeec5edE8a218dc2B9a6Fce494F",Optimism:"0x825206E1D29456337769e6f1384101E997C6A732",Moonbeam:"0x18872b45c603eD2EbC508b9C5514a85c2e2791FB",Klaytn:"0x3CF1751E32c4225CB12ba953786C260C2cE89008"},"0xaf88d065e77c8cC2239327C5EDb3A432268e5831":{Ethereum:"0xCFc006a32a98031C2338BF9d5ff8ED2c0Cae4a9e",Bsc:"0x5caa170b465122D15a6D20FD9A804a9613CE7882",Polygon:"0x7800FE8951cdc1cDea748d878fAce63018D97960",Avalanche:"0x4b5fE357Eb11c735078e47526D6e853DBff18541",Celo:"0xA41a62567d9eb960D84b72663FdaeBE0BCdE2683",Solana:"CR4xnGrhsu1fWNPoX4KbTUUtqGMF3mzRLfj4S6YEs1Yo",Sui:"0xc3f8927de33d3deb52c282a836082a413bc73c6ee0bd4d7ec7e3b6b4c28e9abf::coin::COIN",Aptos:"0xca3a2c28bc8c6c762f752dd2a4ebbfd00356ca99977ce6636e3af5897124a87a::coin::T",Optimism:"0xa6252F56cc6eEA21165d56744C795F91c8a3Cf68",Base:"0xb96B82Cd6D45d98Fb6897D16A5E4EE888329C513",Fantom:"0x2228703672906fEe5eD681Ec28e42B4506b8c336",Moonbeam:"0xbd2B6D665439514EEaA8519f4fE87CC8C46e9167",Klaytn:"0x3d5973fF7288f47857dAa5a32C53976A9A968928",Xlayer:"0xd53bD30985B4125fc561774e388d9f679BB84117"},"0x5979D7b546E38E414F7E9822514be443A4800529":{Bsc:"0x159167e842C586a81f02E55bc043AC8EdB033E0b",Aptos:"0xd2ca17516bc4ca57c1c69577e0c9cc0129153286695b46b97f438ecc138c225e::coin::T",Solana:"8wJakbZuv7WApfHmRo2sdkeQfu6hXqfEqjb7BYXDKpKe",Sui:"0xb607aed1c09e676384d14ae638dbcb08523fc691d309e71c856c7fdcb60d4430::coin::COIN",Base:"0xbE3981b37CcE5eCb6925d2ad9D9E28dE7b165793",Optimism:"0xEae5ccc3c36beF59f6794b467e7e228CB3720415",Fantom:"0xf65BF40A3299Df500D440520dF7e6ce1BEa53E73",Ethereum:"0x906310cE867C22c5016248Bd791FA5dd162c9D6d",Polygon:"0xcf0aa97c2fD78Ee0f0C3090B9EB65d2bd6C1D81a"}},Optimism:{"0x4200000000000000000000000000000000000006":{Fantom:"0xe8E8f941377A955bFA72880ec0dc2319dbC827a8",Celo:"0x8d53771b1Ec7461f8e45Bca2609c45bC0bbd0677",Solana:"8M6d63oL7dvMZ1gNbgGe3h8afMSWJEKEhtPTFM2u8h3c",Sui:"0x0aab14ec22908de73d1b0619f5e03842398f8e68262981bd35ef44b42d22b23a::coin::COIN",Aptos:"0x6a7a7f36ef5e2d0e65fcf72669c20d514d68298b0f76c7554517208f73260aaf::coin::T",Arbitrum:"0xB1fC645a86fB5085e12D8BDDb77702F728D2A26F",Avalanche:"0xDf11535274c0FD2Fe41A88bd1bBF802D72296037",Bsc:"0x94AEc09B5e2CE591e39DC6aa58A3A6E85Ed45265",Ethereum:"0x8B5653Ae095529155462eDa8CF664eD96773F557",Polygon:"0x8182De59485Bb646542Db8C7E5958148Dc699319",Base:"0xCb725aC8d9985D3bE306Dd9e1517d3702929176c",Moonbeam:"0xd4870F7F5AD8Ae5139E1a5D8AD4ac55204aE4490",Klaytn:"0x4ab77AF7059435b71dBC3B7c5255983C8628eFdf"},"0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85":{Fantom:"0x385b219f0C4fa2e84EfE5aaf9692a821C57B8248",Celo:"0xEe48963C003e21EaCEdFA8a0A19BB3cbF7E776Fe",Moonbeam:"0x7143e8EA96e158381057a58AfdDF44601c7e532C",Base:"0xc6bfBeb3002aD563D2d1f72614C61C83Bf147Acd",Arbitrum:"0x3A5C2Da9E30741cb59a5e9446A23A86886fC9DC2",Aptos:"0x4f6ecb05a797902d472abc2f5804bde93a53d8b75f14f767824cdb1623a4ee83::coin::T",Bsc:"0xa41ae127D04F7ee73B5058E2C60Fb7c7A2D21F79",Avalanche:"0xBe04f76A0ba2100c3F2d6Aa1FD8484F415469573",Polygon:"0x31F12aCb60C3c32EE884F3894a873347C097D925",Sui:"0x6037801f060f0f54b3817bca05e3c8b9b9ffaa2da8e93fd5b80fa662aa3c9e55::coin::COIN",Solana:"J8kcD4Wnd1ehne1dpL8WNtgZQR6Jpui2cTZcrmg5ybAa",Klaytn:"0x7Ee2AB1443fDB59AECEa3aDD8F81296d68c2D1e3",Ethereum:"0xe77C99b64414e0fd9aeEA48AFFBBD2E97A895020"},"0x1F32b1c2345538c0c6f582fCB022739c4A194Ebb":{Bsc:"0x1f29fAD000255BF49D72803b2A8FaC8e31947eF8",Base:"0xBb0BeaB819dEAf091C193bE4bBEeA9D5b0F5227C",Arbitrum:"0xf99C5EEd186601955a9a1027536D1b46b1f909F8",Polygon:"0x9065e1D25E65F7A1D60bb6197154386B52faA469",Ethereum:"0xB3ceE6DCa1dD528CB7CC258e32D8B50ce9Ee46f5"}},Base:{"0x4200000000000000000000000000000000000006":{Ethereum:"0x1D4241F7370253C0f12EFC536B7e16E462Fb3526",Bsc:"0x9dc152F4941cE1A138326e70c3600385bf0C22dD",Polygon:"0x5BCf8d8c097FbB35C371F921E3FF3e6F6Eb54B41",Avalanche:"0xFA83178c66fE51ee99109b5cC912f8098Ff812eF",Fantom:"0xd3365E7355230c78098b44B172eE27DAB95B041A",Celo:"0x905CADB645684140E285e2D09D39dF5a2082BC87",Moonbeam:"0x6C6f83366A42fcA4D30a2D3f1914284de995Ac3a",Solana:"DWXe1hxpnb8LAH21iyXcjvMbiAGzoYyuCVQtRLvZdLYd",Sui:"0xaecbc804fa7ca7cffc74c9a05eb6ae86fda0c68375b5c1724204a1065bcb239a::coin::COIN",Aptos:"0x5b5f14781164cf77185a7b6acd8e4f3cbb7e7cfb1cd5760d2b8af81075fc153d::coin::T",Arbitrum:"0xBAfbCB010D920e0Dab9DFdcF634De1B777028a85",Optimism:"0x3F369a664fa665e01e8EB9f20bFcE03A0CAb8971",Mantle:"0x4a2176DE2Fb36485704965bd1Cc471854f21303B",Klaytn:"0x7Bf9ad1D104dEAE4B59Ef1be6a273Cb46BA16362"},"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913":{Solana:"EfqRM8ZGWhDTKJ7BHmFvNagKVu3AxQRDQs8WMMaoBCu6",Moonbeam:"0xE6d02a875CcC153c076fe418f33De3A5C420f505",Celo:"0x2e2acb1782Aad0490f8446b6fD4626C467987bD6",Bsc:"0x55CaD531c8E303Cab8B3BE4bB4744Db4f896ac81",Optimism:"0xb931c7BbD87A6e249EaA7355B13927F9c99Bce87",Arbitrum:"0x8619F97D4d08382548F536E5CE1D3e0D9bA40326",Polygon:"0x1eeCaB0F75fE93abbFa0cDFfb4fB13d1dC8706c8",Avalanche:"0xab933e939a9236BD439F7d29b87CE712f42bAC06",Fantom:"0xd9E4C283d8A49Dc3767A6F5a4dFdc1d0cEf21604",Sui:"0x7e3e74afcc1913aa9491c8cee89b02131a6e5519b090f16b54321835c1241cfb::coin::COIN",Aptos:"0xfcc4fcd734d5b8578fb629d238d15264a49eca6165c7444c21feec3b4962eb88::coin::T",Blast:"0x35a926D55A726cdF70Ac498972F22426363F3C77",Mantle:"0x5D628a3285a10fdd93AEa704007957F294e05F91",Ethereum:"0xc38261846c42C1E1D59E04dA675Eb1974E9cE7b1",Klaytn:"0x0a2330c1C46E9A74e8651F7117a1264410eA3C88",Scroll:"0x22C9bde4Ad49C4b6CCFB8D394B5ED42A57853d58"},"0xc1CBa3fCea344f92D9239c08C0568f6F2F0ee452":{Arbitrum:"0x09E79693E44c8813A8CA25EeD7A40e5E24cD9c01",Ethereum:"0x187175c7a526f48c905202Bd2Bf8D25A457F479F",Polygon:"0x95d4C8e851D9E8c6B92aa518474E991c373E9Fb2",Optimism:"0x6ee40855c0BaB20585d17D2b9dd8d2Cd1cd41801",Avalanche:"0x5e513CA12DbD8424bDFc5B50711dF4AE999a8C58"}},Klaytn:{"0xe4f05A66Ec68B54A58B17c22107b02e0232cC817":{Aptos:"0x539b652f8230a0e42adaeda4706b5639893d22362eda6ea897493c210cb48219::coin::T",Ethereum:"0x9AEA32B459e96C8eF5010f69130bf95fd129ac05",Celo:"0xe304254de5c2048F9bFb042dDFB54f84d1d77730",Polygon:"0x415ce980fde17F1FF102e1c6e4ce860Acc615D74",Base:"0x41c433c146c47Dc53FC48cDc69e406e365e298E1",Arbitrum:"0xFA95f6c796E54F9C4a99392CAE84410a25794BB3",Moonbeam:"0xf0a9476E4712123A807859f9Fd25fe98213379BD",Fantom:"0x787e2F3509583C0F03A339Be0826463C839CBE5E",Sui:"0xa5ec915864d7f37b25ca9144b2db6ebcf29e73603c2ccf9d0e765adcd9049a98::coin::COIN",Avalanche:"0x126C03982Ad6D7ef7E6aF020bF219e87185a6BC3",Bsc:"0xEA970e7b7D131Ea36c3051C9Ca11e785462fE00c",Optimism:"0xbbeF8233a0d10EEAb84E913FaDB337ab9b62F683",Solana:"2b8fZGLBZjpxFugCdnJbbLLBYxvx23rsrsvLYYueiHb7",Blast:"0x5F6fE613528df9AE4Bf6f667fbCB923263098617",Scroll:"0xA55FB7A046454998b2f6d8D99Df5F0E108b38229",Worldchain:"0xC080f0082029fC6e8A4Bb33a9B0655B8d4f2BAB0"}},Scroll:{"0x5300000000000000000000000000000000000004":{Arbitrum:"0xAe81a542e20270b48Bd5297E3e0f280f79E46C42"}},Mantle:{"0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8":{Optimism:"0xf704F6a3241609Cfb3E44Db1237E68EB6CaC7C04"}}},WXe={chains:pXe,tokens:FXe,wrappedTokens:UXe,rpcs:RXe,guardianSet:{index:4,keys:["0x5893b5a76c3f739645648885bdccc06cd70a3cd3","0xff6cb952589bde862c25ef4392132fb9d4a42157","0x114de8460193bdf3a2fcf81f86a09765f4762fd1","0x107a0086b32d7a0977926a205131d8731d39cbeb","0x8c82b2fd82faed2711d59af0f2499d16e726f6b2","0x11b39756c042441be6d8650b69b54ebe715e2343","0x54ce5b4d348fb74b958e8966e2ec3dbd4958a7cd","0x15e7caf07c4e3dc8e7c469f92c8cd88fb8005a20","0x74a3bf913953d695260d88bc1aa25a4eee363ef0","0x000ac0076727b35fbea2dac28fee5ccb0fea768e","0xaf45ced136b9d9e24903464ae889f5c8a723fc14","0xf93124b7c738843cbb89e864c862c38cddcccf95","0xd2cc37a4dc036a8d232b48f62cdd4731412f4890","0xda798f6896a3331f64b48c12d1d57fd9cbe70811","0x71aa1be1d36cafe3867910f99c09e347899c19c3","0x8192b6e7387ccd768277c17dab1b7a5027c0b3cf","0x178e21ad2e77ae06711549cfbb1f9c7a9d8096e8","0x5e1487f35515d02a92753504a8d75471b9f49edb","0x6fbebc898f403e4773e95feb15e80c9a99c8348d"]}},{chains:Fi}=fG.TESTNET,VXe={Bsc:{...Fi.Bsc,displayName:"BSC",explorerUrl:"https://testnet.bscscan.com/",explorerName:"BscScan",chainId:97,icon:"Bsc",symbol:"BSC",sdkName:"Bsc",wrappedGasToken:"0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd"},Avalanche:{...Fi.Avalanche,displayName:"Fuji",explorerUrl:"https://testnet.avascan.info/blockchain/c/",explorerName:"Avascan",chainId:43113,icon:"Avalanche",symbol:"AVAX",sdkName:"Avalanche",wrappedGasToken:"0xd00ae08403B9bbb9124bB305C09058E32C39A48c"},Fantom:{...Fi.Fantom,displayName:"Fantom",explorerUrl:"https://testnet.ftmscan.com/",explorerName:"FtmScan",chainId:4002,icon:"Fantom",symbol:"FTM",sdkName:"Fantom",wrappedGasToken:"0xf1277d1Ed8AD466beddF92ef448A132661956621"},Celo:{...Fi.Celo,displayName:"Alfajores",explorerUrl:"https://explorer.celo.org/alfajores/",explorerName:"Celo Explorer",chainId:44787,icon:"Celo",symbol:"CELO",sdkName:"Celo"},Moonbeam:{...Fi.Moonbeam,displayName:"Moonbase",explorerUrl:"https://moonbase.moonscan.io/",explorerName:"Moonscan",chainId:1287,icon:"Moonbeam",symbol:"GLMR",sdkName:"Moonbeam",wrappedGasToken:"0xD909178CC99d318e4D46e7E66a972955859670E1"},Solana:{...Fi.Solana,displayName:"Solana",explorerUrl:"https://explorer.solana.com/",explorerName:"Solana Explorer",chainId:0,icon:"Solana",symbol:"SOL",sdkName:"Solana",wrappedGasToken:"So11111111111111111111111111111111111111112"},Sui:{...Fi.Sui,displayName:"Sui",explorerUrl:"https://suiscan.xyz/testnet/",explorerName:"Suiscan",chainId:0,icon:"Sui",symbol:"SUI",sdkName:"Sui"},Aptos:{...Fi.Aptos,displayName:"Aptos",explorerUrl:"https://explorer.aptoslabs.com/",explorerName:"Aptos Explorer",chainId:0,icon:"Aptos",symbol:"APT",sdkName:"Aptos"},Klaytn:{...Fi.Klaytn,displayName:"Kaia",explorerUrl:"https://kairos.kaiascope.com/",explorerName:"Kaia Scope",chainId:1001,icon:"Klaytn",symbol:"KLAY",sdkName:"Klaytn",wrappedGasToken:"0x0339d5Eb6D195Ba90B13ed1BCeAa97EbD198b106"},Sepolia:{...Fi.Sepolia,displayName:"Sepolia",explorerUrl:"https://sepolia.etherscan.io/",explorerName:"Etherscan",chainId:11155111,icon:"Ethereum",symbol:"ETH",sdkName:"Sepolia",wrappedGasToken:"0xeef12A83EE5b7161D3873317c8E0E7B76e0B5D9c"},ArbitrumSepolia:{...Fi.ArbitrumSepolia,displayName:"Arbitrum Sepolia",explorerUrl:"https://sepolia.arbiscan.io/",explorerName:"Etherscan",chainId:421614,icon:"Arbitrum",symbol:"ARB",sdkName:"ArbitrumSepolia",wrappedGasToken:"0x980B62Da83eFf3D4576C647993b0c1D7faf17c73"},BaseSepolia:{...Fi.BaseSepolia,displayName:"Base Sepolia",explorerUrl:"https://base-sepolia.blockscout.com/",explorerName:"Etherscan",chainId:84532,icon:"Base",symbol:"BASE",sdkName:"BaseSepolia",wrappedGasToken:"0x4200000000000000000000000000000000000006"},OptimismSepolia:{...Fi.OptimismSepolia,displayName:"Optimism Sepolia",explorerUrl:"https://sepolia-optimistic.etherscan.io/",explorerName:"Etherscan",chainId:11155420,icon:"Optimism",symbol:"OP",sdkName:"OptimismSepolia",wrappedGasToken:"0x4200000000000000000000000000000000000006"},Scroll:{...Fi.Scroll,displayName:"Scroll",explorerUrl:"https://sepolia.scrollscan.dev/",explorerName:"Scrollscan",chainId:534351,icon:"Scroll",symbol:"SCR",sdkName:"Scroll",wrappedGasToken:"0x5300000000000000000000000000000000000004"},Blast:{...Fi.Blast,displayName:"Blast",explorerUrl:"https://testnet.blastscan.io/",explorerName:"Blastscan",chainId:168587773,icon:"Blast",symbol:"BLAST",sdkName:"Blast",wrappedGasToken:"0x9D020B1697035d9d54f115194c9e04a1e4Eb9aF7"},Xlayer:{...Fi.Xlayer,displayName:"X Layer",explorerUrl:"https://www.okx.com/web3/explorer/xlayer-test/",explorerName:"OKX Explorer",chainId:195,icon:"Xlayer",symbol:"OKX",sdkName:"Xlayer",wrappedGasToken:"0xa2aFfd8301BfB3c5b815829f2F509f053556D21B"},Mantle:{...Fi.Mantle,displayName:"Mantle",explorerUrl:"https://explorer.testnet.mantle.xyz/",explorerName:"Mantle Explorer",chainId:5003,icon:"Mantle",symbol:"MNT",sdkName:"Mantle",wrappedGasToken:"0xa4c4cb2A072eE99f77212Fa18c2B7Ca26DA23905"},Worldchain:{...Fi.Worldchain,displayName:"World Chain",explorerUrl:"https://worldchain-sepolia.explorer.alchemy.com/",explorerName:"World Scan",chainId:4801,icon:"Worldchain",sdkName:"Worldchain",symbol:"WORLD"},Unichain:{...Fi.Unichain,displayName:"Unichain",explorerUrl:"https://unichain-sepolia.blockscout.com/",explorerName:"Unichain Explorer",chainId:1301,icon:"Unichain",symbol:"UNI",sdkName:"Unichain",wrappedGasToken:"0x4200000000000000000000000000000000000006"}},$Xe={},{REACT_APP_SEPOLIA_RPC:HXe,REACT_APP_BSC_TESTNET_RPC:qXe,REACT_APP_FUJI_RPC:GXe,REACT_APP_FANTOM_TESTNET_RPC:YXe,REACT_APP_ALFAJORES_RPC:KXe,REACT_APP_SOLANA_DEVNET_RPC:ZXe,REACT_APP_MOONBASE_RPC:QXe,REACT_APP_SUI_TESTNET_RPC:JXe,REACT_APP_APTOS_TESTNET_RPC:XXe,REACT_APP_BASE_SEPOLIA_RPC:eet,REACT_APP_KLAYTN_TESTNET_RPC:tet,REACT_APP_ARBITRUM_SEPOLIA_RPC:ret,REACT_APP_OPTIMISM_SEPOLIA_RPC:net,REACT_APP_SCROLL_TESTNET_RPC:aet,REACT_APP_BLAST_TESTNET_RPC:iet,REACT_APP_XLAYER_TESTNET_RPC:set,REACT_APP_MANTLE_TESTNET_RPC:oet,REACT_APP_WORLDCHAIN_TESTNET_RPC:cet,REACT_APP_UNICHAIN_TESTNET_RPC:uet}=$Xe,det={...Wr("Sepolia",HXe),...Wr("Bsc",qXe),...Wr("Avalanche",GXe),...Wr("Fantom",YXe),...Wr("Celo",KXe),...Wr("Solana",ZXe),...Wr("Moonbeam",QXe),...Wr("Sui",JXe),...Wr("Aptos",XXe),...Wr("BaseSepolia",eet),...Wr("ArbitrumSepolia",ret),...Wr("OptimismSepolia",net),...Wr("Klaytn",tet),...Wr("Scroll",aet),...Wr("Blast",iet),...Wr("Xlayer",set),...Wr("Mantle",oet),...Wr("Worldchain",cet),...Wr("Unichain",uet)},fet=[{symbol:"BNB",icon:tt.BNB,decimals:18,tokenId:{chain:"Bsc",address:"native"}},{symbol:"WBNB",icon:tt.BNB,decimals:18,tokenId:{chain:"Bsc",address:"0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd"}},{symbol:"AVAX",icon:tt.AVAX,decimals:18,tokenId:{chain:"Avalanche",address:"native"}},{symbol:"WAVAX",icon:tt.AVAX,decimals:18,tokenId:{chain:"Avalanche",address:"0xd00ae08403B9bbb9124bB305C09058E32C39A48c"}},{symbol:"USDC",icon:tt.USDC,decimals:6,tokenId:{chain:"Avalanche",address:"0x5425890298aed601595a70AB815c96711a31Bc65"}},{symbol:"FTM",icon:tt.FANTOM,decimals:18,tokenId:{chain:"Fantom",address:"native"}},{symbol:"WFTM",icon:tt.FANTOM,decimals:18,tokenId:{chain:"Fantom",address:"0xf1277d1Ed8AD466beddF92ef448A132661956621"}},{symbol:"CELO",icon:tt.CELO,decimals:18,tokenId:{chain:"Celo",address:"0xF194afDf50B03e69Bd7D057c1Aa9e10c9954E4C9"}},{symbol:"USDC.e",icon:tt.USDC,decimals:6,tokenId:{chain:"Celo",address:"0x72CAaa7e9889E0a63e016748179b43911A3ec9e5"}},{symbol:"GLMR",icon:tt.GLMR,decimals:18,tokenId:{chain:"Moonbeam",address:"native"}},{symbol:"WGLMR",icon:tt.GLMR,decimals:18,tokenId:{chain:"Moonbeam",address:"0xD909178CC99d318e4D46e7E66a972955859670E1"}},{symbol:"SOL",icon:tt.SOLANA,decimals:9,tokenId:{chain:"Solana",address:"native"}},{symbol:"WSOL",tokenId:{chain:"Solana",address:"So11111111111111111111111111111111111111112"},icon:tt.SOLANA,decimals:9},{symbol:"USDC",tokenId:{chain:"Solana",address:"4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU"},icon:tt.USDC,decimals:6},{symbol:"SUI",tokenId:{chain:"Sui",address:"native"},icon:tt.SUI,decimals:9},{symbol:"USDC",decimals:6,tokenId:{chain:"Sui",address:"0xa1ec7fc00a6f40db9693ad1415d0c193ad3906494428cf252621037bd7117e29::usdc::USDC"},icon:tt.USDC},{symbol:"APT",tokenId:{chain:"Aptos",address:"native"},icon:tt.APT,decimals:8},{symbol:"USDC",decimals:6,tokenId:{chain:"Aptos",address:"0x69091fbab5f7d635ee7ac5098cf0c1efbe31d68fec0f2cd565e8d168daf52832"},icon:tt.USDC},{symbol:"KLAY",icon:tt.KLAY,decimals:18,tokenId:{chain:"Klaytn",address:"native"}},{symbol:"WKLAY",name:"wKLAY",icon:tt.KLAY,decimals:18,tokenId:{chain:"Klaytn",address:"0x0339d5Eb6D195Ba90B13ed1BCeAa97EbD198b106"}},{symbol:"ETH",icon:tt.ETH,decimals:18,tokenId:{chain:"Sepolia",address:"native"}},{symbol:"WETH",icon:tt.ETH,decimals:18,tokenId:{chain:"Sepolia",address:"0xeef12A83EE5b7161D3873317c8E0E7B76e0B5D9c"}},{symbol:"USDC",icon:tt.USDC,decimals:6,tokenId:{chain:"Sepolia",address:"0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238"}},{symbol:"ETH",icon:tt.ETH,decimals:18,tokenId:{chain:"ArbitrumSepolia",address:"native"}},{symbol:"WETH",icon:tt.ETH,decimals:18,tokenId:{chain:"ArbitrumSepolia",address:"0x980B62Da83eFf3D4576C647993b0c1D7faf17c73"}},{symbol:"ETH",icon:tt.ETH,decimals:18,tokenId:{chain:"BaseSepolia",address:"native"}},{symbol:"WETH",icon:tt.ETH,decimals:18,tokenId:{chain:"BaseSepolia",address:"0x4200000000000000000000000000000000000006"}},{symbol:"ETH",icon:tt.ETH,decimals:18,tokenId:{chain:"OptimismSepolia",address:"native"}},{symbol:"WETH",icon:tt.ETH,decimals:18,tokenId:{chain:"OptimismSepolia",address:"0x4200000000000000000000000000000000000006"}},{symbol:"ETH",icon:tt.SCROLL,decimals:18,tokenId:{chain:"Scroll",address:"native"}},{symbol:"WETH",icon:tt.SCROLL,decimals:18,tokenId:{chain:"Scroll",address:"0x5300000000000000000000000000000000000004"}},{symbol:"ETH",icon:tt.BLAST,decimals:18,tokenId:{chain:"Blast",address:"native"}},{symbol:"WETH",icon:tt.BLAST,decimals:18,tokenId:{chain:"Blast",address:"0x9D020B1697035d9d54f115194c9e04a1e4Eb9aF7"}},{symbol:"OKB",icon:tt.XLAYER,decimals:18,tokenId:{chain:"Xlayer",address:"native"}},{symbol:"WOKB",icon:tt.XLAYER,decimals:18,tokenId:{chain:"Xlayer",address:"0xa2aFfd8301BfB3c5b815829f2F509f053556D21B"}},{symbol:"MNT",icon:tt.MANTLE,decimals:18,tokenId:{chain:"Mantle",address:"native"}},{symbol:"WMNT",icon:tt.MANTLE,decimals:18,tokenId:{chain:"Mantle",address:"0xa4c4cb2A072eE99f77212Fa18c2B7Ca26DA23905"}},{symbol:"ETH",tokenId:{chain:"Worldchain",address:"native"},decimals:18,icon:tt.WORLDCHAIN},{symbol:"WETH",tokenId:{chain:"Worldchain",address:"0x4200000000000000000000000000000000000006"},decimals:18,icon:tt.WORLDCHAIN},{symbol:"ETH",tokenId:{chain:"Unichain",address:"native"},decimals:18,icon:tt.ETH},{symbol:"WETH",tokenId:{chain:"Unichain",address:"0x4200000000000000000000000000000000000006"},decimals:18,icon:tt.ETH},{symbol:"USDC",tokenId:{chain:"Unichain",address:"0x31d0220469e10c4E71834a79b1f276d740d3768F"},decimals:6,icon:tt.USDC}],pet={Bsc:{"0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd":{Avalanche:"0x10F1053bF2884b28ee0Bd7a2dDBa237Af3511d29",Fantom:"0xfB174b43228950C2055CFc25AE93f2DCe8E2beF0",Celo:"0xa8050be9389466c3c524F10F131f244ACbf21A0D",Moonbeam:"0x6097E80331B0c6aF4F74D7F2363E70Cb2Fd078A5",Solana:"BaGfF51MQ3a61papTRDYaNefBgTQ9ywnVne5fCff4bxT",Sui:"0xddcf8680a8a4b8a527d8c85ec203274991590c2ea898d1c4635b70164d9c584b::coin::COIN",Aptos:"0xa5894f5ddb8647e6143102aa336ff07374f7b32e88c1c703aef5b7c9a370bf80::coin::T",Klaytn:"0xEFa3626825C33C4cd83850920Ad7Ac0a392E1faE",Sepolia:"0x02CdD5eB55934663F0aD8fbA3516dC7DE4E22894"}},Avalanche:{"0xd00ae08403B9bbb9124bB305C09058E32C39A48c":{Bsc:"0x6cE9E2c8b59bbcf65dA375D3d8AB503c8524caf7",Fantom:"0x0f545Be981C37fB15ab7c65404648761e99016e4",Celo:"0x502c8C83008D9Dd812a7C5fB886C063060C73Dbf",Moonbeam:"0x2E8afeCC19842229358f3650cc3F091908dcbaB4",Solana:"3Ftc5hTz9sG4huk79onufGiebJNDMZNL8HYgdMJ9E7JR",Sui:"0xa600741c469fb57ed01497ddf101e798fa79a9c529bd176675c5c4d970811f80::coin::COIN",Aptos:"0xbe8f4301c0b54e870902b9a23eeb95ce74ac190531782aa3262337ceb145401a::coin::T",Blast:"0x74C6aA987658FcBaB9FdC2ee65f52Ddd5B2cEd95",Klaytn:"0x10257392a2B5e3C4D4bEe1607650a1C0C738202a",Scroll:"0x5Bd1ba0040C16b13894A6EbE3d55708c91eF08bb",Xlayer:"0xb13a464ceE7455A9b2941bFAe1bB1eB5A6833867"},"0x5425890298aed601595a70AB815c96711a31Bc65":{Bsc:"0x1cfeCf72bcBE1E429A21A5B11E708C7c397AaC54",Fantom:"0x6BC4E8D8c1d54656D1DeBCa96efc53aFd1408aD2",Celo:"0xDDB349c976cA2C873644F21f594767Eb5390C831",Moonbeam:"0x6533CE14804D113b1F494dC56c5D60A43cb5C3b5",Solana:"GQtMXZxnuacCFTXVeTvyHi6P9F6chbtzhVc8JgD8hv7c",Sui:"0x2aa8c885d04e676c4e87b7d0f94d4f3b243b1b5d93239d1cc41d5528ce1714c1::coin::COIN",Aptos:"0x2ef7697bdb33361ca39d228671203afc0dea3202e792d79d2072b761d87c834::coin::T"}},Fantom:{"0xf1277d1Ed8AD466beddF92ef448A132661956621":{Bsc:"0x9aB305B792DBdb8253bEE909E7006611Cb45175b",Avalanche:"0x094cB577C21Ab1360178beE74B9591fa12216dAD",Celo:"0xE6F8710cA14CFe7F5aAAD3A799C3d1D92dCba938",Moonbeam:"0x566c1cebc6A4AFa1C122E039C4BEBe77043148Ee",Solana:"DMw2tLaq1bVoAEKtkoUtieSk9bfCPUvubYLatTMsSVop",Sui:"0x14e756ff65e0ac810a5f69ca5276ef5b899a6df3c4717de1f85559d8b5ae6ea6::coin::COIN",Aptos:"0x533c6ade00d15d1e014c41e29e34853e87df92c4e01a6a3f41318dbd098048d6::coin::T",Klaytn:"0x097c8878A0d852581Dc4D8820151094Ddd3663Ac",Sepolia:"0x852132647d301B7EED02589B1dc73545E73c8596"}},Celo:{"0xF194afDf50B03e69Bd7D057c1Aa9e10c9954E4C9":{Bsc:"0x1471698cBD9cAB0228F2EEA9303A2b3aA0ABDC2B",Avalanche:"0xC66d9c2b33c347d4A4441975f4688fcD5DD4c441",Fantom:"0xB18E73a69c3Aaea39a610372537Cf8482622d199",Moonbeam:"0x3406a9b09adf0cb36DC04c1523C4b294C6b79513",Solana:"84F2QX9278ToDmA98u4A86xSV9hz1ovazr8zwGaX6qjS",Sui:"0x81868174a6b11e1acc337b3414f9912455435d486609fb8d50b34312865085f2::coin::COIN",Aptos:"0xecbb0f7e7d049499ca83ca1358344f56557886f6f7adc740d6734cce7bfc9a14::coin::T",Klaytn:"0xC951826bbB310a8160BB78c2eEe6C98246292ba7",Sepolia:"0x648f226f3bDcAEdc844622d604F76935DC05bC24"}},Moonbeam:{"0xD909178CC99d318e4D46e7E66a972955859670E1":{Bsc:"0x5C31B36599ED7f06b09c0ffC7A2F928cE496F046",Avalanche:"0xf080782DF38eD5228D2FC2882d13D56c8f1D6f21",Fantom:"0x41E3CFDFC255A4bF3C8D3560Bc8D3D9b5080338e",Celo:"0x132D2172D89cd9CfD480A8887c6bF92360fB460e",Solana:"8987WGkYa5viiZ9DD8sS3PB5XghKmWjkEgmzvwDuoAEc",Sui:"0xeffae382de96981f7ddd2d294429924827e8f325d612487a12d6a0b249171002::coin::COIN",Aptos:"0x338373b6694f71dbeac5ca4a30503bf5f083888d71678aed31255de416be37c0::coin::T",Sepolia:"0x3F7CD70ECd402BBe71f45A95156A2CAC0d6A822E"}},Solana:{So11111111111111111111111111111111111111112:{Bsc:"0x30f19eBba919954FDc020B8A20aEF13ab5e02Af0",Avalanche:"0xb10563644a6AB8948ee6d7f5b0a1fb15AaEa1E03",Fantom:"0xED1a08Fc69A7008d225890A96aaE258c465CC7ad",Celo:"0x05EEF2AE1A7A938D78598F7d9e8b97A9bED0c9eC",Sui:"0xbc03aaab4c11eb84df8bf39fdc714fa5d5b65b16eb7d155e22c74a68c8d4e17f::coin::COIN",Aptos:"0xdd89c0e695df0692205912fb69fc290418bed0dbe6e4573d744a6d5e6bab6c13::coin::T",Klaytn:"0x48D99C16638E6FFD2ED60375cD35ef6c139e5f41",Moonbeam:"0x5babD0d267Adf2081626654E51d1cABF8c477440",Sepolia:"0x824CB8fC742F8D3300d29f16cA8beE94471169f5"},"4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU":{Bsc:"0x51a3cc54eA30Da607974C5D07B8502599801AC08"}},Sui:{native:{Bsc:"0x5A73D76e09Af2E428EC64aE10F91B78AC990B298",Avalanche:"0xfc5128F8556a6F059466E67740e6cC31EE5C2C47",Fantom:"0xd882AB49372eC093E8697B5153f54ab5e7738e3b",Celo:"0xa40d9E69ca9867C4bFbeC11Ce79C939991e9bf26",Solana:"BJZ72CjPQojVoH68mzrd4VQ4nr6KuhbAGnhZEZCujKxY",Aptos:"0x7b22d0e02f653d4fd1caddcfa4719a2b329da56eb81d8f27db703f02466c26a5::coin::T",Moonbeam:"0x2ed4B5B1071A3C676664E9085C0e3826542C1b27",Klaytn:"0xbA5F07a20681Add3A396E7606c6DC9B03d71d28A"}},Aptos:{native:{Bsc:"0x4A7Bd5E135f421057F97BbA8BCeeE5c18334f454",Avalanche:"0x996a3f12C1FcD7339Ea8801f629201e4d42EAD04",Fantom:"0xAb2297E8994149BA91737944E40891881aF762a4",Celo:"0xAC0a2fF7DD597de863878a3372142b07B614C125",Moonbeam:"0xCaa2A1d3BbbA0D1466571e83b4E2CbE04252593D",Solana:"7EvFD3JKCJVdtkAYdaSVKJsrPEJCzy2neJha7TREGrCa",Sui:"0x812d6feb8b84e55d47a0bfcae9fb6a4e7e09be5ec86ce0a729e0f67d5f59f477::coin::COIN"}},Klaytn:{"0x0339d5Eb6D195Ba90B13ed1BCeAa97EbD198b106":{Bsc:"0x79D34FDb686B5D139949E4F92D83EEe376489176",Aptos:"0xa8ffe1ffe3057756019345cdf9cf3d1f1a3d9a355147dd9440878c448a057579::coin::T",Celo:"0x8e50fC4b7F8B7018E72475f78C640F973218C8Cf",Avalanche:"0x84f3298Bcc019BD5B995756494095e1Eb72B565C",Solana:"6p7qTfX4tRFtQovxwT77Jn9HFQEV7nxLbux9C31Tgm23",Fantom:"0x72A1C24dA7F08d11a7668E228Ec287Fc6ec16E48",Sepolia:"0x142D0E977768cA4De6f2161D9E5B5C9F00435F9e",Moonbeam:"0x6eFf019D79D4136e57A7FC141967F3D0AD41089a",Sui:"0xd4a59fb612b162df75a9d190c0f72098dcae883e88bd0eb28667c31f8208dc3c::coin::COIN"}},Sepolia:{"0xeef12A83EE5b7161D3873317c8E0E7B76e0B5D9c":{Solana:"6F5YWWrUMNpee8C6BDUc6DmRvYRMDDTgJHwKhbXuifWs",Celo:"0x890ad4a7eD5bD08b7d6638515157dF3bF4BaD1Bc",Bsc:"0x667a61Efa611399970AE927637dD6f9A16f51e40",Moonbeam:"0xa7276055a1d45fB9982575411801e10ac9970Da8",ArbitrumSepolia:"0x97Ee87C7Db6049669a518730a2Ee60d1Fc58844E",Avalanche:"0x12bFE94230daaE3d48067577F45b7b031dD357f3",Fantom:"0x7F96D67186561Aa17cEb699494E94bEE3F3499D4"},"0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238":{Aptos:"0x3f2912a313c5bea312dbf19f9080101d2e762df6546a6fe9f60a4de72c93d015::coin::T",Solana:"23Adx8na44L3M1Nf9RrUpQPb41eufdRXKseg25FfcJtw",Celo:"0xD6A34325e5F6BE27b7006bf06651444196Da579a",Bsc:"0xb8850F591019F0794F813426d4A4A9b5fB8f23C8",BaseSepolia:"0x3F872340B6A75397aa9b0A463000349962a8795D",ArbitrumSepolia:"0x27B8F40Cf0915e729ae5A96970E91045Fe9724dF",Fantom:"0xa686203C86140142230f44A724281E1BEd09c369",Klaytn:"0x25f2a470a2e1E75DDAc40289AB277eDE4DD98aFa",Sui:"0x6529fef82a8a09470c550a3129bbd889030b62306f0c14161224b1a40ef1346f::coin::COIN"}},OptimismSepolia:{"0x4200000000000000000000000000000000000006":{ArbitrumSepolia:"0xa2610700cCA8361DECD27dB2564848C530f20813"}}},het={chains:VXe,tokens:fet,wrappedTokens:pet,rpcs:det,guardianSet:{index:0,keys:["0x13947Bd48b18E53fdAeEe77F3473391aC727C638"]}},{chains:sS}=fG.DEVNET,met={Ethereum:{...sS.Ethereum,sdkName:"Ethereum",displayName:"EVM",explorerUrl:"",explorerName:"",wrappedGasToken:"0xDDb64fE46a91D46ee29420539FC25FD07c5FEa3E",chainId:1,icon:"Ethereum",symbol:"ETH"},Osmosis:{...sS.Osmosis,displayName:"Osmosis",sdkName:"Osmosis",explorerUrl:"",explorerName:"",wrappedGasToken:"",chainId:"osmosis-1002",icon:"Osmosis",symbol:"OSMO"},Wormchain:{...sS.Wormchain,sdkName:"Wormchain",displayName:"Wormchain",explorerUrl:"",explorerName:"",wrappedGasToken:"",chainId:"wormchain-1",icon:"Osmosis",symbol:"OSMO"},Terra2:{...sS.Terra2,sdkName:"Terra2",displayName:"Terra",explorerUrl:"",explorerName:"",wrappedGasToken:"",chainId:"localterra",icon:"Terra2",symbol:"OSMO"}},bet={},{REACT_APP_ETHEREUM_DEVNET_RPC:get}=bet,yet={...Wr("Ethereum",get)},vet=[{symbol:"ETH",icon:tt.ETH,decimals:18,tokenId:{chain:"Ethereum",address:"native"}},{symbol:"WETH",icon:tt.ETH,decimals:18,tokenId:{chain:"Ethereum",address:"0xDDb64fE46a91D46ee29420539FC25FD07c5FEa3E"}},{symbol:"TKN",icon:tt.ETH,decimals:18,tokenId:{chain:"Ethereum",address:"0x2D8BE6BF0baA74e0A907016679CaE9190e80dD0A"}}],xet={chains:met,tokens:vet,wrappedTokens:{},rpcs:yet,guardianSet:{index:0,keys:["0x13947Bd48b18E53fdAeEe77F3473391aC727C638"]}},Tye="https://wormholescan.io/#/",wet="2.1.0",Met="fc339e32130cb1bda84dbcaa6f8716d8e7216b68",Zoe=["Ethereum","Solana","Arbitrum","Base","Sui","Bsc","Optimism","Unichain","Fantom","Polygon","Avalanche","Celo","Moonbeam","Klaytn","Scroll","Evmos","Mantle","Berachain"];function Aet(t){return function(e){var n;const r={meta:{version:wet,hash:Met,host:(n=window==null?void 0:window.location)==null?void 0:n.host},...e};if(console.info("Wormhole Connect event:",r),t)try{t(r)}catch(a){console.error("Error handling event:",a)}}}const Eet="modulepreload",Cet=function(t){return"/"+t},Qoe={},Qs=function(e,r,n){let a=Promise.resolve();if(r&&r.length>0){document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),o=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));a=Promise.allSettled(r.map(c=>{if(c=Cet(c),c in Qoe)return;Qoe[c]=!0;const l=c.endsWith(".css"),d=l?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${d}`))return;const h=document.createElement("link");if(h.rel=l?"stylesheet":Eet,l||(h.as="script"),h.crossOrigin="",h.href=c,o&&h.setAttribute("nonce",o),document.head.appendChild(h),l)return new Promise((m,y)=>{h.addEventListener("load",m),h.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${c}`)))})}))}function i(s){const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=s,window.dispatchEvent(o),!o.defaultPrevented)throw s}return a.then(s=>{for(const o of s||[])o.status==="rejected"&&i(o.reason);return e().catch(i)})},Tet=async()=>(await Qs(async()=>{const{default:t}=await import("./assets/evm-Bh61_mSa.js");return{default:t}},[])).default,Iet=async()=>(await Qs(async()=>{const{default:t}=await import("./assets/solana-BJKBSUoJ.js");return{default:t}},__vite__mapDeps([0,1]))).default,Det=async()=>(await Qs(async()=>{const{default:t}=await import("./assets/aptos-BhW8ZShh.js").then(e=>e.a);return{default:t}},__vite__mapDeps([2,3,4,5]))).default,Net=async()=>(await Qs(async()=>{const{default:t}=await import("./assets/sui-BKctCUPP.js").then(e=>e.s);return{default:t}},__vite__mapDeps([6,4]))).default,ket="https://api.coingecko.com",_et="https://pro-api.coingecko.com",Joe={Solana:"solana",Ethereum:"ethereum",Arbitrum:"ethereum",Optimism:"ethereum",Base:"ethereum",Scroll:"ethereum",Blast:"ethereum",Bsc:"binancecoin",Polygon:"matic-network",Avalanche:"avalanche-2",Fantom:"fantom",Moonbeam:"moonbeam",Klaytn:"klay-token",Xlayer:"okb",Mantle:"mantle",Aptos:"aptos",Sui:"sui",Berachain:"berachain-bera"},Let={Bsc:"binance-smart-chain",Arbitrum:"arbitrum-one",Optimism:"optimism-ethereum",Polygon:"polygon-pos",Klaytn:"kaia-token",Xlayer:"x-layer"},dW=async(t,e)=>{var a,i,s,o;const r=new Headers({"Content-Type":"application/json",...(a=Oe.coingecko)!=null&&a.apiKey?{"x-cg-pro-api-key":Oe.coingecko.apiKey}:{}}),n=(i=Oe.coingecko)!=null&&i.customUrl?Oe.coingecko.customUrl:(s=Oe.coingecko)!=null&&s.apiKey?_et:ket;return fetch(`${n}${t}`,{signal:(o=e==null?void 0:e.abort)==null?void 0:o.signal,headers:r}).then(c=>c.json())},Bet=async(t,e)=>dW(`/api/v3/coins/${t.chain.toLowerCase()}/contract/${t.address.toString()}`,e),jet=async(t,e)=>{const r={},n=[];for(const o of t)kn(o.address)?n.push(o):(r[o.chain]===void 0&&(r[o.chain]=[]),r[o.chain].push(o.address.toString()));const a=Object.keys(r).map(o=>{const c=r[o];return new Promise((l,d)=>{const h=c.join(","),m=Let[o]||o.toLowerCase();dW(`/api/v3/simple/token_price/${m}?contract_addresses=${h}&vs_currencies=usd`,e).then(y=>{y.error!==void 0?d(y.error):l(Object.keys(y).map(x=>{try{const M=Zr.tokenId(o,x);return y[x]?{tokenId:M,price:y[x].usd}:null}catch(M){return console.error(M),null}}).filter(x=>x!==null))}).catch(d)})});n.length>0&&a.push(new Promise((o,c)=>{const l=[];for(const d of n){const h=Joe[d.chain];h?l.push(h):console.error(`Don't know a coingecko ID for native token for chain ${d.chain}`)}dW(`/api/v3/simple/price?ids=${l.join(",")}&vs_currencies=usd`,e).then(d=>o(n.map(h=>{const m=Joe[h.chain];if(m){const{usd:y}=d[m];return{tokenId:h,price:y}}else return null}).filter(h=>!!h))).catch(c)}));const i=new II,s=(await Promise.allSettled(a)).map(o=>o.status==="fulfilled"?o.value:null).filter(o=>!!o).flat();for(const{tokenId:o,price:c}of s)i.add(o,c);return i},pG=t=>({__option:"Some",value:t}),cI=()=>({__option:"None"}),hG=t=>t&&typeof t=="object"&&"__option"in t&&(t.__option==="Some"&&"value"in t||t.__option==="None"),h2=t=>t.__option==="Some",zet=t=>t.__option==="None";function Pet(t,e){return h2(t)?t.value:e?e():null}const Iye=t=>t!==null?pG(t):cI(),Oet=t=>h2(t)?t.value:null,Ret=(t,e)=>h2(t)?t.value:e();function fW(t,e){if(!t||ArrayBuffer.isView(t))return t;const r=n=>e?fW(n,e):fW(n);return hG(t)?h2(t)?r(t.value):e?e():null:Array.isArray(t)?t.map(r):typeof t=="object"?Object.fromEntries(Object.entries(t).map(([n,a])=>[n,r(a)])):t}let pk=class extends Error{constructor(r,n,a){const i=`Expected a string of base ${n}, got [${r}].`;super(i);ce(this,"name","InvalidBaseStringError");this.cause=a}};const hk=t=>{const e=t.length,r=BigInt(e);return{description:`base${e}`,fixedSize:null,maxSize:null,serialize(n){if(!n.match(new RegExp(`^[${t}]*$`)))throw new pk(n,e);if(n==="")return new Uint8Array;const a=[...n];let i=a.findIndex(h=>h!==t[0]);i=i===-1?a.length:i;const s=Array(i).fill(0);if(i===a.length)return Uint8Array.from(s);const o=a.slice(i);let c=0n,l=1n;for(let h=o.length-1;h>=0;h-=1)c+=l*BigInt(t.indexOf(o[h])),l*=r;const d=[];for(;c>0n;)d.unshift(Number(c%256n)),c/=256n;return Uint8Array.from(s.concat(d))},deserialize(n,a=0){if(n.length===0)return["",0];const i=n.slice(a);let s=i.findIndex(d=>d!==0);s=s===-1?i.length:s;const o=t[0].repeat(s);if(s===i.length)return[o,n.length];let c=i.slice(s).reduce((d,h)=>d*256n+BigInt(h),0n);const l=[];for(;c>0n;)l.unshift(t[Number(c%r)]),c/=r;return[o+l.join(""),n.length]}}},mG=hk("0123456789"),Dye={description:"base16",fixedSize:null,maxSize:null,serialize(t){const e=t.toLowerCase();if(!e.match(/^[0123456789abcdef]*$/))throw new pk(t,16);const r=e.match(/.{1,2}/g);return Uint8Array.from(r?r.map(n=>parseInt(n,16)):[])},deserialize(t,e=0){return[t.slice(e).reduce((n,a)=>n+a.toString(16).padStart(2,"0"),""),t.length]}},MM=hk("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),ls=t=>{const e=t.reduce((a,i)=>a+i.length,0),r=new Uint8Array(e);let n=0;return t.forEach(a=>{r.set(a,n),n+=a.length}),r},bG=(t,e)=>{if(t.length>=e)return t;const r=new Uint8Array(e).fill(0);return r.set(t),r},lI=(t,e)=>bG(t.slice(0,e),e);class u5 extends Error{constructor(r){super(`Serializer [${r}] cannot deserialize empty buffers.`);ce(this,"name","DeserializingEmptyBufferError")}}class M3 extends Error{constructor(r,n,a){super(`Serializer [${r}] expected ${n} bytes, got ${a}.`);ce(this,"name","NotEnoughBytesError")}}class AM extends Error{constructor(r){r??(r="Expected a fixed-size serializer, got a variable-size one.");super(r);ce(this,"name","ExpectedFixedSizeSerializerError")}}function mk(t,e,r){return{description:r??`fixed(${e}, ${t.description})`,fixedSize:e,maxSize:e,serialize:n=>lI(t.serialize(n),e),deserialize:(n,a=0)=>{if(n=n.slice(a,a+e),n.length<e)throw new M3("fixSerializer",e,n.length);t.fixedSize!==null&&(n=lI(n,t.fixedSize));const[i]=t.deserialize(n,0);return[i,a+e]}}}function SM(t,e,r){return{description:t.description,fixedSize:t.fixedSize,maxSize:t.maxSize,serialize:n=>t.serialize(e(n)),deserialize:(n,a=0)=>{const[i,s]=t.deserialize(n,a);return r?[r(i,n,a),s]:[i,s]}}}function Nye(t){if(t.fixedSize===null)throw new AM("Cannot reverse a serializer of variable size.");return{...t,serialize:e=>t.serialize(e).reverse(),deserialize:(e,r=0)=>{const n=t.fixedSize,a=ls([e.slice(0,r),e.slice(r,r+n).reverse(),e.slice(r+n)]);return t.deserialize(a,r)}}}const kye=(t,e)=>{const r=t.length,n=(a,i,s,o)=>{const c=[];let l=0,d=0;const h=(1<<s)-1;for(const m of a)for(l=l<<i|m,d+=i;d>=s;)d-=s,c.push(l>>d&h);return o&&d>0&&c.push(l<<s-d&h),c};return{description:`base${r}`,fixedSize:null,maxSize:null,serialize(a){if(!a.match(new RegExp(`^[${t}]*$`)))throw new pk(a,r);if(a==="")return new Uint8Array;const i=[...a].map(o=>t.indexOf(o)),s=n(i,e,8,!1);return Uint8Array.from(s)},deserialize(a,i=0){if(a.length===0)return["",0];const s=[...a.slice(i)];return[n(s,8,e,!0).map(c=>t[c]).join(""),a.length]}}},gG=SM(kye("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",6),t=>t.replace(/=/g,""),t=>t.padEnd(Math.ceil(t.length/4)*4,"=")),yG=t=>t.replace(/\u0000/g,""),_ye=(t,e)=>t.padEnd(e,"\0"),bk={description:"utf8",fixedSize:null,maxSize:null,serialize(t){return new TextEncoder().encode(t)},deserialize(t,e=0){const r=new TextDecoder().decode(t.slice(e));return[yG(r),t.length]}};class Mv extends Error{constructor(r,n){n=n?`. ${n}`:"";super(`The provided public key is invalid: ${r}${n}`);ce(this,"name","InvalidPublicKeyError");this.invalidPublicKey=r}}const Vx=32;function Oc(t,e=!0){const r=typeof t=="string"?t:typeof t=="object"&&"publicKey"in t?t.publicKey:typeof t=="object"&&"toBase58"in t?t.toBase58():Array.isArray(t)?t[0]:MM.deserialize(t)[0];return e&&vG(r),r}const Fet=()=>"11111111111111111111111111111111",dm=t=>{try{return vG(t),!0}catch{return!1}},Uet=t=>Array.isArray(t)&&t.length===2&&typeof t[1]=="number"&&dm(t[0]);function vG(t){if(typeof t!="string")throw new Mv(t,"Public keys must be strings.");gk(t)}const Wet=t=>[...new Set(t)],gk=t=>{if(t.length<32||t.length>44)throw new Mv(t,"Public keys must be between 32 and 44 characters.");let e;try{e=MM.serialize(t)}catch{throw new Mv(t,"Public keys must be base58 encoded.")}if(e.length!==Vx)throw new Mv(t,`Public keys must be ${Vx} bytes.`);return e},Vet=t=>Oc(t),$et=(t,e)=>Oc(t)===Oc(e);let $x;(function(t){t.Little="le",t.Big="be"})($x||($x={}));class Lye extends RangeError{constructor(r,n,a,i){super(`Serializer [${r}] expected number to be between ${n} and ${a}, got ${i}.`);ce(this,"name","NumberOutOfRangeError")}}function sc(t){let e,r=t.name;return t.size>1&&(e=!("endian"in t.options)||t.options.endian===$x.Little,r+=e?"(le)":"(be)"),{description:t.options.description??r,fixedSize:t.size,maxSize:t.size,serialize(n){t.range&&Bye(t.name,t.range[0],t.range[1],n);const a=new ArrayBuffer(t.size);return t.set(new DataView(a),n,e),new Uint8Array(a)},deserialize(n,a=0){const i=n.slice(a,a+t.size);Get("i8",i,t.size);const s=qet(i);return[t.get(s,e),a+t.size]}}}const Het=t=>t.buffer.slice(t.byteOffset,t.byteLength+t.byteOffset),qet=t=>new DataView(Het(t)),Bye=(t,e,r,n)=>{if(n<e||n>r)throw new Lye(t,e,r,n)},Get=(t,e,r)=>{if(e.length===0)throw new u5(t);if(e.length<r)throw new M3(t,r,e.length)},Yet=(t={})=>sc({name:"f32",size:4,set:(e,r,n)=>e.setFloat32(0,Number(r),n),get:(e,r)=>e.getFloat32(0,r),options:t}),Ket=(t={})=>sc({name:"f64",size:8,set:(e,r,n)=>e.setFloat64(0,Number(r),n),get:(e,r)=>e.getFloat64(0,r),options:t}),Zet=(t={})=>sc({name:"i8",size:1,range:[-+"0x7f"-1,+"0x7f"],set:(e,r)=>e.setInt8(0,Number(r)),get:e=>e.getInt8(0),options:t}),Qet=(t={})=>sc({name:"i16",size:2,range:[-+"0x7fff"-1,+"0x7fff"],set:(e,r,n)=>e.setInt16(0,Number(r),n),get:(e,r)=>e.getInt16(0,r),options:t}),Jet=(t={})=>sc({name:"i32",size:4,range:[-+"0x7fffffff"-1,+"0x7fffffff"],set:(e,r,n)=>e.setInt32(0,Number(r),n),get:(e,r)=>e.getInt32(0,r),options:t}),Xet=(t={})=>sc({name:"i64",size:8,range:[-BigInt("0x7fffffffffffffff")-1n,BigInt("0x7fffffffffffffff")],set:(e,r,n)=>e.setBigInt64(0,BigInt(r),n),get:(e,r)=>e.getBigInt64(0,r),options:t}),ett=(t={})=>sc({name:"i128",size:16,range:[-BigInt("0x7fffffffffffffffffffffffffffffff")-1n,BigInt("0x7fffffffffffffffffffffffffffffff")],set:(e,r,n)=>{const a=n?8:0,i=n?0:8,s=0xffffffffffffffffn;e.setBigInt64(a,BigInt(r)>>64n,n),e.setBigUint64(i,BigInt(r)&s,n)},get:(e,r)=>{const n=r?8:0,a=r?0:8,i=e.getBigInt64(n,r),s=e.getBigUint64(a,r);return(i<<64n)+s},options:t}),ry=(t={})=>sc({name:"u8",size:1,range:[0,+"0xff"],set:(e,r)=>e.setUint8(0,Number(r)),get:e=>e.getUint8(0),options:t}),ttt=(t={})=>sc({name:"u16",size:2,range:[0,+"0xffff"],set:(e,r,n)=>e.setUint16(0,Number(r),n),get:(e,r)=>e.getUint16(0,r),options:t}),EM=(t={})=>sc({name:"u32",size:4,range:[0,+"0xffffffff"],set:(e,r,n)=>e.setUint32(0,Number(r),n),get:(e,r)=>e.getUint32(0,r),options:t}),rtt=(t={})=>sc({name:"u64",size:8,range:[0,BigInt("0xffffffffffffffff")],set:(e,r,n)=>e.setBigUint64(0,BigInt(r),n),get:(e,r)=>e.getBigUint64(0,r),options:t}),ntt=(t={})=>sc({name:"u128",size:16,range:[0,BigInt("0xffffffffffffffffffffffffffffffff")],set:(e,r,n)=>{const a=n?8:0,i=n?0:8,s=0xffffffffffffffffn;e.setBigUint64(a,BigInt(r)>>64n,n),e.setBigUint64(i,BigInt(r)&s,n)},get:(e,r)=>{const n=r?8:0,a=r?0:8,i=e.getBigUint64(n,r),s=e.getBigUint64(a,r);return(i<<64n)+s},options:t}),att=(t={})=>({description:t.description??"shortU16",fixedSize:null,maxSize:3,serialize:e=>{Bye("shortU16",0,65535,e);const r=[0];for(let n=0;;n+=1){const a=e>>n*7;if(a===0)break;const i=127&a;r[n]=i,n>0&&(r[n-1]|=128)}return new Uint8Array(r)},deserialize:(e,r=0)=>{let n=0,a=0;for(;++a;){const i=a-1,s=e[r+i],o=127&s;if(n|=o<<i*7,!(s&128))break}return[n,r+a]}});class CM extends Error{constructor(r,n,a){super(`Expected [${r}] to have ${n} items, got ${a}.`);ce(this,"name","InvalidNumberOfItemsError")}}class itt extends Error{constructor(r,n){super(`The remainder of the buffer (${r} bytes) cannot be split into chunks of ${n} bytes. Serializers of "remainder" size must have a remainder that is a multiple of its item size. In other words, ${r} modulo ${n} should be equal to zero.`);ce(this,"name","InvalidArrayLikeRemainderSizeError")}}class jye extends Error{constructor(r){super(`Unrecognized array-like serializer size: ${JSON.stringify(r)}`);ce(this,"name","UnrecognizedArrayLikeSerializerSizeError")}}class zye extends Error{constructor(r,n){super(`Invalid data enum variant. Expected one of [${n.join(", ")}], got "${r}".`);ce(this,"name","InvalidDataEnumVariantError")}}class Pye extends Error{constructor(r,n,a,i){super(`Invalid scalar enum variant. Expected one of [${n.join(", ")}] or a number between ${a} and ${i}, got "${r}".`);ce(this,"name","InvalidScalarEnumVariantError")}}class xG extends RangeError{constructor(r,n,a){super(`Enum discriminator out of range. Expected a number between ${n} and ${a}, got ${r}.`);ce(this,"name","EnumDiscriminatorOutOfRangeError")}}function lu(t){return t.reduce((e,r)=>e===null||r===null?null:e+r,0)}function wG(t,e,r){if(typeof t=="number")return[t,r];if(typeof t=="object")return t.deserialize(e,r);throw new jye(t)}function A3(t){return typeof t=="object"?t.description:`${t}`}function H9(t,e){if(typeof t!="number")return null;if(t===0)return 0;const r=lu(e);return r===null?null:r*t}function MG(t,e){return typeof t=="object"?t.serialize(e):new Uint8Array}function stt(t,e={}){const r=e.size??EM();return{description:e.description??`array(${t.description}; ${A3(r)})`,fixedSize:H9(r,[t.fixedSize]),maxSize:H9(r,[t.maxSize]),serialize:n=>{if(typeof r=="number"&&n.length!==r)throw new CM("array",r,n.length);return ls([MG(r,n.length),...n.map(a=>t.serialize(a))])},deserialize:(n,a=0)=>{const i=[];if(typeof r=="object"&&n.slice(a).length===0)return[i,a];if(r==="remainder"){for(;a<n.length;){const[c,l]=t.deserialize(n,a);i.push(c),a=l}return[i,a]}const[s,o]=wG(r,n,a);a=o;for(let c=0;c<s;c+=1){const[l,d]=t.deserialize(n,a);i.push(l),a=d}return[i,a]}}}const Oye=(t,e={})=>{const r=typeof e=="boolean"?{backward:e}:e,n=r.backward??!1,a=n?"; backward":"";return{description:r.description??`bitArray(${t}${a})`,fixedSize:t,maxSize:t,serialize(i){const s=[];for(let o=0;o<t;o+=1){let c=0;for(let l=0;l<8;l+=1){const d=Number(i[o*8+l]??0);c|=d<<(n?l:7-l)}n?s.unshift(c):s.push(c)}return new Uint8Array(s)},deserialize(i,s=0){const o=[];let c=i.slice(s,s+t);if(c=n?c.reverse():c,c.length!==t)throw new M3("bitArray",t,c.length);return c.forEach(l=>{for(let d=0;d<8;d+=1)n?(o.push(!!(l&1)),l>>=1):(o.push(!!(l&128)),l<<=1)}),[o,s+t]}}};function ott(t={}){const e=t.size??ry();if(e.fixedSize===null)throw new AM("Serializer [bool] requires a fixed size.");return{description:t.description??`bool(${e.description})`,fixedSize:e.fixedSize,maxSize:e.fixedSize,serialize:r=>e.serialize(r?1:0),deserialize:(r,n=0)=>{if(r.slice(n).length===0)throw new u5("bool");const[a,i]=e.deserialize(r,n);return[a===1,i]}}}function ctt(t={}){const e=t.size??"variable",r=t.description??`bytes(${A3(e)})`,n={description:r,fixedSize:null,maxSize:null,serialize:a=>new Uint8Array(a),deserialize:(a,i=0)=>{const s=a.slice(i);return[s,i+s.length]}};return e==="variable"?n:typeof e=="number"?mk(n,e,r):{description:r,fixedSize:null,maxSize:null,serialize:a=>{const i=n.serialize(a),s=e.serialize(i.length);return ls([s,i])},deserialize:(a,i=0)=>{if(a.slice(i).length===0)throw new u5("bytes");const[s,o]=e.deserialize(a,i),c=Number(s);i=o;const l=a.slice(i,i+c);if(l.length<c)throw new M3("bytes",c,l.length);const[d,h]=n.deserialize(l);return i+=h,[d,i]}}}function Rye(t){return t.reduce((e,r)=>e===null||r===null?null:Math.max(e,r),0)}function ltt(t,e={}){const r=e.size??ry(),n=t.map(([o,c])=>`${String(o)}${c?`: ${c.description}`:""}`).join(", "),i=t.every((o,c,l)=>o[1].fixedSize===l[0][1].fixedSize)?t[0][1].fixedSize:null,s=Rye(t.map(([,o])=>o.maxSize));return{description:e.description??`dataEnum(${n}; ${r.description})`,fixedSize:t.length===0?r.fixedSize:lu([r.fixedSize,i]),maxSize:t.length===0?r.maxSize:lu([r.maxSize,s]),serialize:o=>{const c=t.findIndex(([m])=>o.__kind===m);if(c<0)throw new zye(o.__kind,t.map(([m])=>m));const l=r.serialize(c),h=t[c][1].serialize(o);return ls([l,h])},deserialize:(o,c=0)=>{if(o.slice(c).length===0)throw new u5("dataEnum");const[l,d]=r.deserialize(o,c);c=d;const h=t[Number(l)]??null;if(!h)throw new xG(l,0,t.length-1);const[m,y]=h[1].deserialize(o,c);return c=y,[{__kind:h[0],...m??{}},c]}}}function utt(t,e,r={}){const n=r.size??EM();return{description:r.description??`map(${t.description}, ${e.description}; ${A3(n)})`,fixedSize:H9(n,[t.fixedSize,e.fixedSize]),maxSize:H9(n,[t.maxSize,e.maxSize]),serialize:a=>{if(typeof n=="number"&&a.size!==n)throw new CM("map",n,a.size);const i=Array.from(a,([s,o])=>ls([t.serialize(s),e.serialize(o)]));return ls([MG(n,a.size),...i])},deserialize:(a,i=0)=>{const s=new Map;if(typeof n=="object"&&a.slice(i).length===0)return[s,i];if(n==="remainder"){for(;i<a.length;){const[l,d]=t.deserialize(a,i);i=d;const[h,m]=e.deserialize(a,i);i=m,s.set(l,h)}return[s,i]}const[o,c]=wG(n,a,i);i=c;for(let l=0;l<o;l+=1){const[d,h]=t.deserialize(a,i);i=h;const[m,y]=e.deserialize(a,i);i=y,s.set(d,m)}return[s,i]}}}function dtt(t,e={}){const r=e.prefix??ry(),n=e.fixed??!1;let a=`; ${A3(r)}`,i=t.fixedSize===0?r.fixedSize:null;if(n){if(t.fixedSize===null||r.fixedSize===null)throw new AM("Fixed nullables can only be used with fixed-size serializers");a+="; fixed",i=r.fixedSize+t.fixedSize}return{description:e.description??`nullable(${t.description+a})`,fixedSize:i,maxSize:lu([r.maxSize,t.maxSize]),serialize:s=>{const o=r.serialize(+(s!==null));if(n){const l=t.fixedSize,d=s!==null?t.serialize(s).slice(0,l):new Uint8Array(l).fill(0);return ls([o,d])}const c=s!==null?t.serialize(s):new Uint8Array;return ls([o,c])},deserialize:(s,o=0)=>{if(s.slice(o).length===0)return[null,o];const c=o+(r.fixedSize??0)+(t.fixedSize??0),[l,d]=r.deserialize(s,o);if(o=d,l===0)return[null,n?c:o];const[h,m]=t.deserialize(s,o);return o=m,[h,n?c:o]}}}function ftt(t,e={}){const r=e.prefix??ry(),n=e.fixed??!1;let a=`; ${A3(r)}`,i=t.fixedSize===0?r.fixedSize:null;if(n){if(t.fixedSize===null||r.fixedSize===null)throw new AM("Fixed options can only be used with fixed-size serializers");a+="; fixed",i=r.fixedSize+t.fixedSize}return{description:e.description??`option(${t.description+a})`,fixedSize:i,maxSize:lu([r.maxSize,t.maxSize]),serialize:s=>{const o=hG(s)?s:Iye(s),c=r.serialize(Number(h2(o)));if(n){const d=t.fixedSize,h=h2(o)?t.serialize(o.value).slice(0,d):new Uint8Array(d).fill(0);return ls([c,h])}const l=h2(o)?t.serialize(o.value):new Uint8Array;return ls([c,l])},deserialize:(s,o=0)=>{if(s.slice(o).length===0)return[cI(),o];const c=o+(r.fixedSize??0)+(t.fixedSize??0),[l,d]=r.deserialize(s,o);if(o=d,l===0)return[cI(),n?c:o];const[h,m]=t.deserialize(s,o);return o=m,[pG(h),n?c:o]}}}function ptt(t={}){return{description:t.description??"publicKey",fixedSize:32,maxSize:32,serialize:e=>gk(Oc(e)),deserialize:(e,r=0)=>{const n=e.slice(r,r+32);if(n.length===0)throw new u5("publicKey");if(n.length<Vx)throw new M3("publicKey",Vx,n.length);return[Oc(n),r+32]}}}function htt(t,e={}){const r=e.size??ry(),n=Object.keys(t),a=Object.values(t),i=a.some(h=>typeof h=="number"),s=a.filter(h=>typeof h=="string").join(", "),o=0,c=i?a.length/2-1:a.length-1,l=i?[...n]:[...new Set([...n,...a])];function d(h){const m=typeof h=="number"&&(h<o||h>c),y=typeof h=="string"&&!l.includes(h);if(m||y)throw new Pye(h,l,o,c)}return{description:e.description??`enum(${s}; ${r.description})`,fixedSize:r.fixedSize,maxSize:r.maxSize,serialize:h=>{if(d(h),typeof h=="number")return r.serialize(h);const m=a.indexOf(h);return m>=0?r.serialize(m):r.serialize(n.indexOf(h))},deserialize:(h,m=0)=>{if(h.slice(m).length===0)throw new u5("enum");const[y,x]=r.deserialize(h,m),M=Number(y);if(m=x,M<o||M>c)throw new xG(M,o,c);return[i?M:a[M],m]}}}function mtt(t,e={}){const r=e.size??EM();return{description:e.description??`set(${t.description}; ${A3(r)})`,fixedSize:H9(r,[t.fixedSize]),maxSize:H9(r,[t.maxSize]),serialize:n=>{if(typeof r=="number"&&n.size!==r)throw new CM("set",r,n.size);const a=Array.from(n,i=>t.serialize(i));return ls([MG(r,n.size),...a])},deserialize:(n,a=0)=>{const i=new Set;if(typeof r=="object"&&n.slice(a).length===0)return[i,a];if(r==="remainder"){for(;a<n.length;){const[c,l]=t.deserialize(n,a);i.add(c),a=l}return[i,a]}const[s,o]=wG(r,n,a);a=o;for(let c=0;c<s;c+=1){const[l,d]=t.deserialize(n,a);i.add(l),a=d}return[i,a]}}}function btt(t={}){const e=t.size??EM(),r=t.encoding??bk,n=t.description??`string(${r.description}; ${A3(e)})`;return e==="variable"?{...r,description:n}:typeof e=="number"?mk(r,e,n):{description:n,fixedSize:null,maxSize:null,serialize:a=>{const i=r.serialize(a),s=e.serialize(i.length);return ls([s,i])},deserialize:(a,i=0)=>{if(a.slice(i).length===0)throw new u5("string");const[s,o]=e.deserialize(a,i),c=Number(s);i=o;const l=a.slice(i,i+c);if(l.length<c)throw new M3("string",c,l.length);const[d,h]=r.deserialize(l);return i+=h,[d,i]}}}function gtt(t,e={}){const r=t.map(([n,a])=>`${String(n)}: ${a.description}`).join(", ");return{description:e.description??`struct(${r})`,fixedSize:lu(t.map(([,n])=>n.fixedSize)),maxSize:lu(t.map(([,n])=>n.maxSize)),serialize:n=>{const a=t.map(([i,s])=>s.serialize(n[i]));return ls(a)},deserialize:(n,a=0)=>{const i={};return t.forEach(([s,o])=>{const[c,l]=o.deserialize(n,a);a=l,i[s]=c}),[i,a]}}}function ytt(t,e={}){const r=t.map(n=>n.description).join(", ");return{description:e.description??`tuple(${r})`,fixedSize:lu(t.map(n=>n.fixedSize)),maxSize:lu(t.map(n=>n.maxSize)),serialize:n=>{if(n.length!==t.length)throw new CM("tuple",t.length,n.length);return ls(t.map((a,i)=>a.serialize(n[i])))},deserialize:(n,a=0)=>{const i=[];return t.forEach(s=>{const[o,c]=s.deserialize(n,a);i.push(o),a=c}),[i,a]}}}function vtt(t={}){return{description:t.description??"unit",fixedSize:0,maxSize:0,serialize:()=>new Uint8Array,deserialize:(e,r=0)=>[void 0,r]}}const xtt=Object.freeze(Object.defineProperty({__proto__:null,DeserializingEmptyBufferError:u5,get Endian(){return $x},EnumDiscriminatorOutOfRangeError:xG,ExpectedFixedSizeSerializerError:AM,InvalidArrayLikeRemainderSizeError:itt,InvalidBaseStringError:pk,InvalidDataEnumVariantError:zye,InvalidNumberOfItemsError:CM,InvalidScalarEnumVariantError:Pye,NotEnoughBytesError:M3,NumberOutOfRangeError:Lye,UnrecognizedArrayLikeSerializerSizeError:jye,array:stt,base10:mG,base16:Dye,base58:MM,base64:gG,baseX:hk,baseXReslice:kye,bitArray:Oye,bool:ott,bytes:ctt,dataEnum:ltt,f32:Yet,f64:Ket,fixBytes:lI,fixSerializer:mk,i128:ett,i16:Qet,i32:Jet,i64:Xet,i8:Zet,map:utt,mapSerializer:SM,maxSerializerSizes:Rye,mergeBytes:ls,nullable:dtt,option:ftt,padBytes:bG,padNullCharacters:_ye,publicKey:ptt,removeNullCharacters:yG,reverseSerializer:Nye,scalarEnum:htt,set:mtt,shortU16:att,string:btt,struct:gtt,sumSerializerSizes:lu,tuple:ytt,u128:ntt,u16:ttt,u32:EM,u64:rtt,u8:ry,unit:vtt,utf8:bk},Symbol.toStringTag,{value:"Module"})),wtt=SM,Mtt=mk,Att=Nye,Stt=ls,Ett=bG,Ctt=lI,Ttt=bk,Itt=hk,Dtt=mG,Ntt=MM,ktt=gG,_tt=Dye,Ltt=Oye,Btt=yG,jtt=_ye,ztt=$x;class AG extends Error{constructor(r,n,a,i){super(r);ce(this,"name","UmiError");this.source=n,this.sourceDetails=a,this.cause=i,this.message=`${this.message}
|
|
91
91
|
|
|
92
92
|
Source: ${this.getFullSource()}${this.cause?`
|
|
93
93
|
|