@solana/web3.js 2.0.0-rc.2 → 2.0.0-rc.4
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +0 -3
- package/dist/index.development.js +15 -23
- package/dist/index.development.js.map +1 -1
- package/dist/index.production.min.js +229 -229
- package/package.json +19 -27
@@ -2,12 +2,12 @@ this.globalThis = this.globalThis || {};
|
|
2
2
|
this.globalThis.solanaWeb3 = (function (exports) {
|
3
3
|
'use strict';
|
4
4
|
|
5
|
-
var Xa=Object.defineProperty;var Ka=(e,t,n)=>t in e?Xa(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var gt=(e,t,n)=>Ka(e,typeof t!="symbol"?t+"":t,n);var pt=1,Ue=2,It=3,Ct=4,ht=5,Lt=6,bt=7,Dt=8,yt=9,Ao=-32700,So=-32603,Oo=-32602,No=-32601,mo=-32600,Ya=-32016,go=-32015,To=-32014,Ja=-32013,po=-32012,qa=-32011,Io=-32010,Co=-32009,Za=-32008,ho=-32007,Lo=-32006,Qa=-32005,bo=-32004,es=-32003,Tt=-32002,Do=-32001,wt=28e5,vt=2800001,ts=2800002,Pt=2800003,xt=2800004,Ut=2800005,Bt=2800006,Be=2800007,Me=2800008,Mt=2800009,Ft=2800010,zt=323e4,kt=32300001,Vt=3230002,Gt=3230003,Ht=3230004,$t=361e4,Wt=3610001,jt=3610002,Xt=3610003,Kt=3610004,Yt=3610005,Jt=3610006,qt=3610007,Zt=3611e3,Qt=3704e3,en=3704001,tn=3704002,nn=3704003,rn=3704004,on=4128e3,an=4128001,sn=4128002,yo=4615e3,ns=4615001,rs=4615002,os=4615003,is=4615004,as=4615005,ss=4615006,cs=4615007,us=4615008,_s=4615009,ds=4615010,ls=4615011,Rs=4615012,fs=4615013,Es=4615014,As=4615015,Ss=4615016,Os=4615017,Ns=4615018,ms=4615019,gs=4615020,Ts=4615021,ps=4615022,Is=4615023,Cs=4615024,hs=4615025,Fe=4615026,Ls=4615027,bs=4615028,Ds=4615029,ys=4615030,ws=4615031,vs=4615032,Ps=4615033,xs=4615034,Us=4615035,Bs=4615036,Ms=4615037,Fs=4615038,zs=4615039,ks=4615040,Vs=4615041,Gs=4615042,Hs=4615043,$s=4615044,wo=4615045,Ws=4615046,js=4615047,Xs=4615048,Ks=4615049,Ys=4615050,Js=4615051,qs=4615052,Zs=4615053,Qs=4615054,cn=5508e3,un=5508001,_n=5508002,dn=5508003,ln=5508004,Rn=5508005,fn=5508006,En=5508007,An=5508008,Sn=5508009,ze=5508010,ec=5508011,On=5663e3,ke=5663001,Nn=5663002,mn=5663003,gn=5663004,Tn=5663005,pn=5663006,In=5663007,Cn=5663008,hn=5663009,tc=5663010,nc=5663011,Ln=5663012,rc=5663013,oc=5663014,bn=5663015,Dn=5663016,yn=5663017,Ve=5663018,Ge=5663019,vo=705e4,ic=7050001,ac=7050002,sc=7050003,cc=7050004,uc=7050005,_c=7050006,dc=7050007,lc=7050008,Rc=7050009,fc=7050010,Ec=7050011,Ac=7050012,Sc=7050013,Oc=7050014,Nc=7050015,mc=7050016,gc=7050017,Tc=7050018,pc=7050019,Ic=7050020,Cc=7050021,hc=7050022,Lc=7050023,bc=7050024,Dc=7050025,yc=7050026,wc=7050027,vc=7050028,Pc=7050029,Po=7050030,xo=7050031,xc=7050032,Uc=7050033,Bc=7050034,Uo=7050035,Mc=7050036,wn=8078e3,vn=8078001,Pn=8078002,xn=8078003,Un=8078004,Bn=8078005,Mn=8078006,Fn=8078007,zn=8078008,kn=8078009,Vn=8078010,Gn=8078011,X=8078012,ge=8078013,Hn=8078014,Fc=8078015,zc=8078016,$n=8078017,Wn=8078018,kc=8078019,jn=8078020,Xn=8078021,He=8078022,Te=81e5,Bo=8100001,Kn=8100002,Yn=8100003,Jn=819e4,qn=8190001,Zn=8190002,ce=8190003,Qn=8190004,er=99e5,tr=9900001,Vc=9900002,nr=9900003,rr=9900004;function Mo(e){return Array.isArray(e)?"%5B"+e.map(Mo).join("%2C%20")+"%5D":typeof e=="bigint"?`${e}n`:encodeURIComponent(String(e!=null&&Object.getPrototypeOf(e)===null?{...e}:e))}function Gc([e,t]){return `${e}=${Mo(t)}`}function Hc(e){let t=Object.entries(e).map(Gc).join("&");return btoa(t)}function $c(e,t={}){{let n=`Solana error #${e}; Decode this error by running \`npx @solana/errors decode -- ${e}`;return Object.keys(t).length&&(n+=` '${Hc(t)}'`),`${n}\``}}function J(e,t){return e instanceof Error&&e.name==="SolanaError"?t!==void 0?e.context.__code===t:!0:!1}var _=class extends Error{constructor(...[t,n]){let r,o;if(n){let{cause:a,...s}=n;a&&(o={cause:a}),Object.keys(s).length>0&&(r=s);}let i=$c(t,r);super(i,o);gt(this,"cause",this.cause);gt(this,"context");this.context={__code:t,...r},this.name="SolanaError";}};function ue(...e){"captureStackTrace"in Error&&typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(...e);}function Fo({errorCodeBaseOffset:e,getErrorContext:t,orderedErrorNames:n,rpcEnumError:r},o){let i,a;typeof r=="string"?i=r:(i=Object.keys(r)[0],a=r[i]);let s=n.indexOf(i),c=e+s,u=t(c,i,a),d=new _(c,u);return ue(d,o),d}var Wc=["GenericError","InvalidArgument","InvalidInstructionData","InvalidAccountData","AccountDataTooSmall","InsufficientFunds","IncorrectProgramId","MissingRequiredSignature","AccountAlreadyInitialized","UninitializedAccount","UnbalancedInstruction","ModifiedProgramId","ExternalAccountLamportSpend","ExternalAccountDataModified","ReadonlyLamportChange","ReadonlyDataModified","DuplicateAccountIndex","ExecutableModified","RentEpochModified","NotEnoughAccountKeys","AccountDataSizeChanged","AccountNotExecutable","AccountBorrowFailed","AccountBorrowOutstanding","DuplicateAccountOutOfSync","Custom","InvalidError","ExecutableDataModified","ExecutableLamportChange","ExecutableAccountNotRentExempt","UnsupportedProgramId","CallDepth","MissingAccount","ReentrancyNotAllowed","MaxSeedLengthExceeded","InvalidSeeds","InvalidRealloc","ComputationalBudgetExceeded","PrivilegeEscalation","ProgramEnvironmentSetupFailure","ProgramFailedToComplete","ProgramFailedToCompile","Immutable","IncorrectAuthority","BorshIoError","AccountNotRentExempt","InvalidAccountOwner","ArithmeticOverflow","UnsupportedSysvar","IllegalOwner","MaxAccountsDataAllocationsExceeded","MaxAccountsExceeded","MaxInstructionTraceLengthExceeded","BuiltinProgramsMustConsumeComputeUnits"];function zo(e,t){return Fo({errorCodeBaseOffset:4615001,getErrorContext(n,r,o){return n===yo?{errorName:r,index:e,...o!==void 0?{instructionErrorContext:o}:null}:n===Fe?{code:o,index:e}:n===wo?{encodedData:o,index:e}:{index:e}},orderedErrorNames:Wc,rpcEnumError:t},zo)}var jc=["AccountInUse","AccountLoadedTwice","AccountNotFound","ProgramAccountNotFound","InsufficientFundsForFee","InvalidAccountForFee","AlreadyProcessed","BlockhashNotFound","CallChainTooDeep","MissingSignatureForFee","InvalidAccountIndex","SignatureFailure","InvalidProgramForExecution","SanitizeFailure","ClusterMaintenance","AccountBorrowOutstanding","WouldExceedMaxBlockCostLimit","UnsupportedVersion","InvalidWritableAccount","WouldExceedMaxAccountCostLimit","WouldExceedAccountDataBlockLimit","TooManyAccountLocks","AddressLookupTableNotFound","InvalidAddressLookupTableOwner","InvalidAddressLookupTableData","InvalidAddressLookupTableIndex","InvalidRentPayingAccount","WouldExceedMaxVoteCostLimit","WouldExceedAccountDataTotalLimit","DuplicateInstruction","InsufficientFundsForRent","MaxLoadedAccountsDataSizeExceeded","InvalidLoadedAccountsDataSizeLimit","ResanitizationNeeded","ProgramExecutionTemporarilyRestricted","UnbalancedTransaction"];function $e(e){return typeof e=="object"&&"InstructionError"in e?zo(...e.InstructionError):Fo({errorCodeBaseOffset:7050001,getErrorContext(t,n,r){if(t===vo)return {errorName:n,...r!==void 0?{transactionErrorContext:r}:null};if(t===Po)return {index:r};if(t===xo||t===Uo)return {accountIndex:r.account_index}},orderedErrorNames:jc,rpcEnumError:e},$e)}function pe({code:e,data:t,message:n}){let r;if(e===Tt){let{err:o,...i}=t,a=o?{cause:$e(o)}:null;r=new _(Tt,{...i,...a});}else {let o;switch(e){case So:case Oo:case mo:case No:case Ao:case po:case Do:case bo:case To:case Io:case Co:case ho:case Lo:case go:o={__serverMessage:n};break;default:typeof t=="object"&&!Array.isArray(t)&&(o=t);}r=new _(e,o);}return ue(r,pe),r}var xl=e=>{let t=e.filter(i=>i.length);if(t.length===0)return e.length?e[0]:new Uint8Array;if(t.length===1)return t[0];let n=t.reduce((i,a)=>i+a.length,0),r=new Uint8Array(n),o=0;return t.forEach(i=>{r.set(i,o),o+=i.length;}),r},Xc=(e,t)=>{if(e.length>=t)return e;let n=new Uint8Array(t).fill(0);return n.set(e),n},Kc=(e,t)=>Xc(e.length<=t?e:e.slice(0,t),t);function _e(e,t,n){let r=n===0&&e.length===t.length?e:e.slice(n,n+t.length);return r.length!==t.length?!1:t.every((o,i)=>o===r[i])}function G(e,t){return "fixedSize"in t?t.fixedSize:t.getSizeFromValue(e)}function O(e){return Object.freeze({...e,encode:t=>{let n=new Uint8Array(G(t,e));return e.write(t,n,0),n}})}function N(e){return Object.freeze({...e,decode:(t,n=0)=>e.read(t,n)[0]})}function Yc(e){return Object.freeze({...e,decode:(t,n=0)=>e.read(t,n)[0],encode:t=>{let n=new Uint8Array(G(t,e));return e.write(t,n,0),n}})}function g(e){return "fixedSize"in e&&typeof e.fixedSize=="number"}function q(e){if(!g(e))throw new _(Pn)}function ko(e){return !g(e)}function Ul(e){if(!ko(e))throw new _(xn)}function E(e,t){if(g(e)!==g(t))throw new _(Un);if(g(e)&&g(t)&&e.fixedSize!==t.fixedSize)throw new _(Bn,{decoderFixedSize:t.fixedSize,encoderFixedSize:e.fixedSize});if(!g(e)&&!g(t)&&e.maxSize!==t.maxSize)throw new _(Mn,{decoderMaxSize:t.maxSize,encoderMaxSize:e.maxSize});return {...t,...e,decode:t.decode,encode:e.encode,read:t.read,write:e.write}}function Jc(e,t){let n=(r,o,i)=>{let a=e.encode(r);if(Vo(a,t)>=0)throw new _(jn,{encodedBytes:a,hexEncodedBytes:We(a),hexSentinel:We(t),sentinel:t});return o.set(a,i),i+=a.length,o.set(t,i),i+=t.length,i};return g(e)?O({...e,fixedSize:e.fixedSize+t.length,write:n}):O({...e,...e.maxSize!=null?{maxSize:e.maxSize+t.length}:{},getSizeFromValue:r=>e.getSizeFromValue(r)+t.length,write:n})}function qc(e,t){let n=(r,o)=>{let i=o===0?r:r.slice(o),a=Vo(i,t);if(a===-1)throw new _(Xn,{decodedBytes:i,hexDecodedBytes:We(i),hexSentinel:We(t),sentinel:t});let s=i.slice(0,a);return [e.decode(s),o+s.length+t.length]};return g(e)?N({...e,fixedSize:e.fixedSize+t.length,read:n}):N({...e,...e.maxSize!=null?{maxSize:e.maxSize+t.length}:{},read:n})}function Bl(e,t){return E(Jc(e,t),qc(e,t))}function Vo(e,t){return e.findIndex((n,r,o)=>t.length===1?n===t[0]:_e(o,t,r))}function We(e){return e.reduce((t,n)=>t+n.toString(16).padStart(2,"0"),"")}function Go(e,t,n=0){if(t.length-n<=0)throw new _(wn,{codecDescription:e})}function de(e,t,n,r=0){let o=n.length-r;if(o<t)throw new _(vn,{bytesLength:o,codecDescription:e,expected:t})}function je(e,t,n){if(t<0||t>n)throw new _(Hn,{bytesLength:n,codecDescription:e,offset:t})}function or(e,t){var a,s;let n=(c,u,d)=>{let l=e.encode(c);return d=t.write(l.length,u,d),u.set(l,d),d+l.length};if(g(t)&&g(e))return O({...e,fixedSize:t.fixedSize+e.fixedSize,write:n});let r=g(t)?t.fixedSize:(a=t.maxSize)!=null?a:null,o=g(e)?e.fixedSize:(s=e.maxSize)!=null?s:null,i=r!==null&&o!==null?r+o:null;return O({...e,...i!==null?{maxSize:i}:{},getSizeFromValue:c=>{let u=G(c,e);return G(u,t)+u},write:n})}function ir(e,t){var a,s;let n=(c,u)=>{let[d,l]=t.read(c,u),f=Number(d);return u=l,(u>0||c.length>f)&&(c=c.slice(u,u+f)),de("addDecoderSizePrefix",f,c),[e.decode(c),u+f]};if(g(t)&&g(e))return N({...e,fixedSize:t.fixedSize+e.fixedSize,read:n});let r=g(t)?t.fixedSize:(a=t.maxSize)!=null?a:null,o=g(e)?e.fixedSize:(s=e.maxSize)!=null?s:null,i=r!==null&&o!==null?r+o:null;return N({...e,...i!==null?{maxSize:i}:{},read:n})}function Ml(e,t){return E(or(e,t),ir(e,t))}function w(e,t){return O({fixedSize:t,write:(n,r,o)=>{let i=e.encode(n),a=i.length>t?i.slice(0,t):i;return r.set(a,o),o+t}})}function v(e,t){return N({fixedSize:t,read:(n,r)=>{de("fixCodecSize",t,n,r),(r>0||n.length>t)&&(n=n.slice(r,r+t)),g(e)&&(n=Kc(n,e.fixedSize));let[o]=e.read(n,0);return [o,r+t]}})}function Fl(e,t){return E(w(e,t),v(e,t))}function ar(e,t){return O({...e,write:(n,r,o)=>{let i=u=>Ho(u,r.length),a=t.preOffset?t.preOffset({bytes:r,preOffset:o,wrapBytes:i}):o;je("offsetEncoder",a,r.length);let s=e.write(n,r,a),c=t.postOffset?t.postOffset({bytes:r,newPreOffset:a,postOffset:s,preOffset:o,wrapBytes:i}):s;return je("offsetEncoder",c,r.length),c}})}function sr(e,t){return N({...e,read:(n,r)=>{let o=u=>Ho(u,n.length),i=t.preOffset?t.preOffset({bytes:n,preOffset:r,wrapBytes:o}):r;je("offsetDecoder",i,n.length);let[a,s]=e.read(n,i),c=t.postOffset?t.postOffset({bytes:n,newPreOffset:i,postOffset:s,preOffset:r,wrapBytes:o}):s;return je("offsetDecoder",c,n.length),[a,c]}})}function zl(e,t){return E(ar(e,t),sr(e,t))}function Ho(e,t){return t===0?0:(e%t+t)%t}function cr(e,t){if(g(e)){let n=t(e.fixedSize);if(n<0)throw new _(ge,{bytesLength:n,codecDescription:"resizeEncoder"});return O({...e,fixedSize:n})}return O({...e,getSizeFromValue:n=>{let r=t(e.getSizeFromValue(n));if(r<0)throw new _(ge,{bytesLength:r,codecDescription:"resizeEncoder"});return r}})}function ur(e,t){if(g(e)){let n=t(e.fixedSize);if(n<0)throw new _(ge,{bytesLength:n,codecDescription:"resizeDecoder"});return N({...e,fixedSize:n})}return e}function kl(e,t){return E(cr(e,t),ur(e,t))}function Zc(e,t){return ar(cr(e,n=>n+t),{preOffset:({preOffset:n})=>n+t})}function Qc(e,t){return ar(cr(e,n=>n+t),{postOffset:({postOffset:n})=>n+t})}function eu(e,t){return sr(ur(e,n=>n+t),{preOffset:({preOffset:n})=>n+t})}function _r(e,t){return sr(ur(e,n=>n+t),{postOffset:({postOffset:n})=>n+t})}function Vl(e,t){return E(Zc(e,t),eu(e,t))}function Gl(e,t){return E(Qc(e,t),_r(e,t))}function $o(e,t,n,r,o=0){for(;n<--r;){let i=e[n];t[n+o]=e[r],t[r+o]=i,n++;}n===r&&(t[n+o]=e[n]);}function tu(e){return q(e),O({...e,write:(t,n,r)=>{let o=e.write(t,n,r);return $o(n,n,r,r+e.fixedSize),o}})}function nu(e){return q(e),N({...e,read:(t,n)=>{let r=t.slice();return $o(t,r,n,n+e.fixedSize),e.read(r,n)}})}function Hl(e){return E(tu(e),nu(e))}function T(e,t){return O({...ko(e)?{...e,getSizeFromValue:n=>e.getSizeFromValue(t(n))}:e,write:(n,r,o)=>e.write(t(n),r,o)})}function p(e,t){return N({...e,read:(n,r)=>{let[o,i]=e.read(n,r);return [t(o,n,r),i]}})}function $l(e,t,n){return Yc({...T(e,t),read:n?p(e,n).read:e.read})}function Jo(e,t,n=t){if(!t.match(new RegExp(`^[${e}]*$`)))throw new _(X,{alphabet:e,base:e.length,value:n})}var lr=e=>O({getSizeFromValue:t=>{let[n,r]=Wo(t,e[0]);if(!r)return t.length;let o=jo(r,e);return n.length+Math.ceil(o.toString(16).length/2)},write(t,n,r){if(Jo(e,t),t==="")return r;let[o,i]=Wo(t,e[0]);if(!i)return n.set(new Uint8Array(o.length).fill(0),r),r+o.length;let a=jo(i,e),s=[];for(;a>0n;)s.unshift(Number(a%256n)),a/=256n;let c=[...Array(o.length).fill(0),...s];return n.set(c,r),r+c.length}}),Rr=e=>N({read(t,n){let r=n===0?t:t.slice(n);if(r.length===0)return ["",0];let o=r.findIndex(c=>c!==0);o=o===-1?r.length:o;let i=e[0].repeat(o);if(o===r.length)return [i,t.length];let a=r.slice(o).reduce((c,u)=>c*256n+BigInt(u),0n),s=ru(a,e);return [i+s,t.length]}}),qo=e=>E(lr(e),Rr(e));function Wo(e,t){let[n,r]=e.split(new RegExp(`((?!${t}).*)`));return [n,r]}function jo(e,t){let n=BigInt(t.length),r=0n;for(let o of e)r*=n,r+=BigInt(t.indexOf(o));return r}function ru(e,t){let n=BigInt(t.length),r=[];for(;e>0n;)r.unshift(t[Number(e%n)]),e/=n;return r.join("")}var fr="0123456789",Kl=()=>lr(fr),Yl=()=>Rr(fr),Jl=()=>qo(fr),Xo={alphabet:"0123456789abcdef",base:16};function dr(e){if(e>=48&&e<=57)return e-48;if(e>=65&&e<=70)return e-55;if(e>=97&&e<=102)return e-87}var ou=()=>O({getSizeFromValue:e=>Math.ceil(e.length/2),write(e,t,n){let r=e.length,o=r/2;if(r===1){let a=e.charCodeAt(0),s=dr(a);if(s===void 0)throw new _(X,{...Xo,value:e});return t.set([s],n),1+n}let i=new Uint8Array(o);for(let a=0,s=0;a<o;a++){let c=e.charCodeAt(s++),u=e.charCodeAt(s++),d=dr(c),l=dr(u);if(d===void 0||l===void 0&&!Number.isNaN(u))throw new _(X,{...Xo,value:e});i[a]=Number.isNaN(u)?d:d<<4|(l!=null?l:0);}return t.set(i,n),i.length+n}}),iu=()=>N({read(e,t){return [e.slice(t).reduce((r,o)=>r+o.toString(16).padStart(2,"0"),""),e.length]}}),ql=()=>E(ou(),iu()),Er="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",K=()=>lr(Er),Z=()=>Rr(Er),Zl=()=>qo(Er),au=(e,t)=>O({getSizeFromValue:n=>Math.floor(n.length*t/8),write(n,r,o){if(Jo(e,n),n==="")return o;let i=[...n].map(s=>e.indexOf(s)),a=Zo(i,t,8,!1);return r.set(a,o),a.length+o}}),su=(e,t)=>N({read(n,r=0){let o=r===0?n:n.slice(r);return o.length===0?["",n.length]:[Zo([...o],8,t,!0).map(a=>e[a]).join(""),n.length]}}),Ql=(e,t)=>E(au(e,t),su(e,t));function Zo(e,t,n,r){let o=[],i=0,a=0,s=(1<<n)-1;for(let c of e)for(i=i<<t|c,a+=t;a>=n;)a-=n,o.push(i>>a&s);return r&&a>0&&o.push(i<<n-a&s),o}var Ko="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ie=()=>O({getSizeFromValue:e=>{try{return atob(e).length}catch{throw new _(X,{alphabet:Ko,base:64,value:e})}},write(e,t,n){try{let r=atob(e).split("").map(o=>o.charCodeAt(0));return t.set(r,n),r.length+n}catch{throw new _(X,{alphabet:Ko,base:64,value:e})}}}),Ar=()=>N({read(e,t=0){let n=e.slice(t);return [btoa(String.fromCharCode(...n)),e.length]}}),eR=()=>E(Ie(),Ar()),cu=e=>e.replace(/\u0000/g,""),tR=(e,t)=>e.padEnd(t,"\0"),uu=globalThis.TextDecoder,Yo=globalThis.TextEncoder,_u=()=>{let e;return O({getSizeFromValue:t=>(e||(e=new Yo)).encode(t).length,write:(t,n,r)=>{let o=(e||(e=new Yo)).encode(t);return n.set(o,r),r+o.length}})},du=()=>{let e;return N({read(t,n){let r=(e||(e=new uu)).decode(t.slice(n));return [cu(r),t.length]}})},nR=()=>E(_u(),du());var aR=128;function sR(e,t){try{return "exists"in e&&!e.exists?e:Object.freeze({...e,data:t.decode(e.data)})}catch{throw new _(Vt,{address:e.address})}}function Qo(e){return !("exists"in e)||"exists"in e&&e.exists}function cR(e){if(Qo(e)&&e.data instanceof Uint8Array)throw new _(Gt,{address:e.address})}function ei(e){let t=e.filter(n=>Qo(n)&&n.data instanceof Uint8Array);if(t.length>0){let n=t.map(r=>r.address);throw new _(Ht,{addresses:n})}}function Xe(e,t){if(!t)return Object.freeze({address:e,exists:!1});let n=Ie().encode(t.data[0]);return Object.freeze({...Sr(t),address:e,data:n,exists:!0})}function uR(e,t){if(!t)return Object.freeze({address:e,exists:!1});let n=K().encode(typeof t.data=="string"?t.data:t.data[0]);return Object.freeze({...Sr(t),address:e,data:n,exists:!0})}function ti(e,t){if(!t)return Object.freeze({address:e,exists:!1});let n=t.data.parsed.info;return Object.freeze({...Sr(t),address:e,data:n,exists:!0})}function Sr(e){return Object.freeze({executable:e.executable,lamports:e.lamports,programAddress:e.owner})}async function _R(e,t,n={}){let{abortSignal:r,...o}=n,i=await e.getAccountInfo(t,{...o,encoding:"base64"}).send({abortSignal:r});return Xe(t,i.value)}async function dR(e,t,n={}){let{abortSignal:r,...o}=n,{value:i}=await e.getAccountInfo(t,{...o,encoding:"jsonParsed"}).send({abortSignal:r});return i&&typeof i=="object"&&"parsed"in i.data?ti(t,i):Xe(t,i)}async function lR(e,t,n={}){let{abortSignal:r,...o}=n;return (await e.getMultipleAccounts(t,{...o,encoding:"base64"}).send({abortSignal:r})).value.map((a,s)=>Xe(t[s],a))}async function ni(e,t,n={}){let{abortSignal:r,...o}=n;return (await e.getMultipleAccounts(t,{...o,encoding:"jsonParsed"}).send({abortSignal:r})).value.map((a,s)=>a&&typeof a=="object"&&"parsed"in a.data?ti(t[s],a):Xe(t[s],a))}function RR(e){if(!e.exists)throw new _(zt,{address:e.address})}function ri(e){let t=e.filter(n=>!n.exists);if(t.length>0){let n=t.map(r=>r.address);throw new _(kt,{addresses:n})}}function Ce(){if(!globalThis.isSecureContext)throw new _($t)}var ie;async function lu(e){return ie===void 0&&(ie=new Promise(t=>{e.generateKey("Ed25519",!1,["sign","verify"]).then(()=>{t(ie=!0);}).catch(()=>{t(ie=!1);});})),typeof ie=="boolean"?ie:await ie}function oi(){var e;if(Ce(),typeof globalThis.crypto>"u"||typeof((e=globalThis.crypto.subtle)==null?void 0:e.digest)!="function")throw new _(Wt)}async function ii(){var e;if(Ce(),typeof globalThis.crypto>"u"||typeof((e=globalThis.crypto.subtle)==null?void 0:e.generateKey)!="function")throw new _(Kt);if(!await lu(globalThis.crypto.subtle))throw new _(jt)}function Ke(){var e;if(Ce(),typeof globalThis.crypto>"u"||typeof((e=globalThis.crypto.subtle)==null?void 0:e.exportKey)!="function")throw new _(Xt)}function ai(){var e;if(Ce(),typeof globalThis.crypto>"u"||typeof((e=globalThis.crypto.subtle)==null?void 0:e.sign)!="function")throw new _(Yt)}function si(){var e;if(Ce(),typeof globalThis.crypto>"u"||typeof((e=globalThis.crypto.subtle)==null?void 0:e.verify)!="function")throw new _(Jt)}function ci(){if(typeof globalThis.crypto>"u"||typeof globalThis.crypto.getRandomValues!="function")throw new _(Zt)}var Or,Nr;function mr(){return Or||(Or=K()),Or}function Ru(){return Nr||(Nr=Z()),Nr}function gr(e){if(e.length<32||e.length>44)return !1;let t=mr();try{return t.encode(e).byteLength===32}catch{return !1}}function he(e){if(e.length<32||e.length>44)throw new _(vt,{actualLength:e.length});let r=mr().encode(e).byteLength;if(r!==32)throw new _(wt,{actualLength:r})}function fu(e){return he(e),e}function qe(){return T(w(mr(),32),e=>fu(e))}function ae(){return v(Ru(),32)}function di(){return E(qe(),ae())}function Ze(){return new Intl.Collator("en",{caseFirst:"lower",ignorePunctuation:!1,localeMatcher:"best fit",numeric:!1,sensitivity:"variant",usage:"sort"}).compare}var Eu=37095705934669439343138083508754565189542113879843219016388785533085940283555n,b=57896044618658097711785492504343953926634992332820282019728792003956564819949n,ui=19681161376707505956807079304988542015446066515923890162744021073123829784752n;function x(e){let t=e%b;return t>=0n?t:b+t}function H(e,t){let n=e;for(;t-- >0n;)n*=n,n%=b;return n}function Au(e){let n=e*e%b*e%b,r=H(n,2n)*n%b,o=H(r,1n)*e%b,i=H(o,5n)*o%b,a=H(i,10n)*i%b,s=H(a,20n)*a%b,c=H(s,40n)*s%b,u=H(c,80n)*c%b,d=H(u,80n)*c%b,l=H(d,10n)*i%b;return H(l,2n)*e%b}function Su(e,t){let n=x(t*t*t),r=x(n*n*t),o=Au(e*r),i=x(e*n*o),a=x(t*i*i),s=i,c=x(i*ui),u=a===e,d=a===x(-e),l=a===x(-e*ui);return u&&(i=s),(d||l)&&(i=c),(x(i)&1n)===1n&&(i=x(-i)),!u&&!d?null:i}function Ou(e,t){let n=x(e*e),r=x(n-1n),o=x(Eu*n+1n),i=Su(r,o);if(i===null)return !1;let a=(t&128)!==0;return !(i===0n&&a)}function Nu(e){let t=e.toString(16);return t.length===1?`0${t}`:t}function mu(e){let n=`0x${e.reduce((r,o,i)=>`${Nu(i===31?o&-129:o)}${r}`,"")}`;return BigInt(n)}function gu(e){if(e.byteLength!==32)return !1;let t=mu(e);return Ou(t,e[31])}function gR(e){return Array.isArray(e)&&e.length===2&&typeof e[0]=="string"&&typeof e[1]=="number"&&e[1]>=0&&e[1]<=255&&gr(e[0])}function TR(e){if(!(Array.isArray(e)&&e.length===2&&typeof e[0]=="string"&&typeof e[1]=="number"))throw new _(xt);if(e[1]<0||e[1]>255)throw new _(Ut,{bump:e[1]});he(e[0]);}var Je=32,_i=16,Ye=[80,114,111,103,114,97,109,68,101,114,105,118,101,100,65,100,100,114,101,115,115];async function Tu({programAddress:e,seeds:t}){if(oi(),t.length>_i)throw new _(Bt,{actual:t.length,maxSeeds:_i});let n,r=t.reduce((c,u,d)=>{let l=typeof u=="string"?(n||(n=new TextEncoder)).encode(u):u;if(l.byteLength>Je)throw new _(Be,{actual:l.byteLength,index:d,maxSeedLength:Je});return c.push(...l),c},[]),o=di(),i=o.encode(e),a=await crypto.subtle.digest("SHA-256",new Uint8Array([...r,...i,...Ye])),s=new Uint8Array(a);if(gu(s))throw new _(Me);return o.decode(s)}async function pR({programAddress:e,seeds:t}){let n=255;for(;n>0;)try{return [await Tu({programAddress:e,seeds:[...t,new Uint8Array([n])]}),n]}catch(r){if(J(r,Me))n--;else throw r}throw new _(Mt)}async function IR({baseAddress:e,programAddress:t,seed:n}){let{encode:r,decode:o}=di(),i=typeof n=="string"?new TextEncoder().encode(n):n;if(i.byteLength>Je)throw new _(Be,{actual:i.byteLength,index:0,maxSeedLength:Je});let a=r(t);if(a.length>=Ye.length&&a.slice(-Ye.length).every((u,d)=>u===Ye[d]))throw new _(Ft);let s=await crypto.subtle.digest("SHA-256",new Uint8Array([...r(e),...i,...a])),c=new Uint8Array(s);return o(c)}async function Qe(e){if(Ke(),e.type!=="public"||e.algorithm.name!=="Ed25519")throw new _(Pt);let t=await crypto.subtle.exportKey("raw",e);return ae().decode(new Uint8Array(t))}function li(e,t,n,r){if(r<t||r>n)throw new _(Gn,{codecDescription:e,max:n,min:t,value:r})}var pu=(e=>(e[e.Little=0]="Little",e[e.Big=1]="Big",e))(pu||{});function Ri(e){return (e==null?void 0:e.endian)!==1}function U(e){return O({fixedSize:e.size,write(t,n,r){e.range&&li(e.name,e.range[0],e.range[1],t);let o=new ArrayBuffer(e.size);return e.set(new DataView(o),t,Ri(e.config)),n.set(new Uint8Array(o),r),r+e.size}})}function B(e){return N({fixedSize:e.size,read(t,n=0){Go(e.name,t,n),de(e.name,e.size,t,n);let r=new DataView(Iu(t,n,e.size));return [e.get(r,Ri(e.config)),n+e.size]}})}function Iu(e,t,n){let r=e.byteOffset+(t!=null?t:0),o=n!=null?n:e.byteLength;return e.buffer.slice(r,r+o)}var Cu=(e={})=>U({config:e,name:"f32",set:(t,n,r)=>t.setFloat32(0,Number(n),r),size:4}),hu=(e={})=>B({config:e,get:(t,n)=>t.getFloat32(0,n),name:"f32",size:4}),bR=(e={})=>E(Cu(e),hu(e)),Lu=(e={})=>U({config:e,name:"f64",set:(t,n,r)=>t.setFloat64(0,Number(n),r),size:8}),bu=(e={})=>B({config:e,get:(t,n)=>t.getFloat64(0,n),name:"f64",size:8}),DR=(e={})=>E(Lu(e),bu(e)),Du=(e={})=>U({config:e,name:"i128",range:[-BigInt("0x7fffffffffffffffffffffffffffffff")-1n,BigInt("0x7fffffffffffffffffffffffffffffff")],set:(t,n,r)=>{let o=r?8:0,i=r?0:8,a=0xffffffffffffffffn;t.setBigInt64(o,BigInt(n)>>64n,r),t.setBigUint64(i,BigInt(n)&a,r);},size:16}),yu=(e={})=>B({config:e,get:(t,n)=>{let r=n?8:0,o=n?0:8,i=t.getBigInt64(r,n),a=t.getBigUint64(o,n);return (i<<64n)+a},name:"i128",size:16}),yR=(e={})=>E(Du(e),yu(e)),wu=(e={})=>U({config:e,name:"i16",range:[-+"0x7fff"-1,+"0x7fff"],set:(t,n,r)=>t.setInt16(0,Number(n),r),size:2}),vu=(e={})=>B({config:e,get:(t,n)=>t.getInt16(0,n),name:"i16",size:2}),wR=(e={})=>E(wu(e),vu(e)),Pu=(e={})=>U({config:e,name:"i32",range:[-+"0x7fffffff"-1,+"0x7fffffff"],set:(t,n,r)=>t.setInt32(0,Number(n),r),size:4}),xu=(e={})=>B({config:e,get:(t,n)=>t.getInt32(0,n),name:"i32",size:4}),vR=(e={})=>E(Pu(e),xu(e)),Uu=(e={})=>U({config:e,name:"i64",range:[-BigInt("0x7fffffffffffffff")-1n,BigInt("0x7fffffffffffffff")],set:(t,n,r)=>t.setBigInt64(0,BigInt(n),r),size:8}),Bu=(e={})=>B({config:e,get:(t,n)=>t.getBigInt64(0,n),name:"i64",size:8}),PR=(e={})=>E(Uu(e),Bu(e)),Mu=()=>U({name:"i8",range:[-+"0x7f"-1,+"0x7f"],set:(e,t)=>e.setInt8(0,Number(t)),size:1}),Fu=()=>B({get:e=>e.getInt8(0),name:"i8",size:1}),xR=()=>E(Mu(),Fu()),V=()=>O({getSizeFromValue:e=>e<=127?1:e<=16383?2:3,maxSize:3,write:(e,t,n)=>{li("shortU16",0,65535,e);let r=[0];for(let o=0;;o+=1){let i=Number(e)>>o*7;if(i===0)break;let a=127&i;r[o]=a,o>0&&(r[o-1]|=128);}return t.set(r,n),n+r.length}}),M=()=>N({maxSize:3,read:(e,t)=>{let n=0,r=0;for(;++r;){let o=r-1,i=e[t+o],a=127&i;if(n|=a<<o*7,!(i&128))break}return [n,t+r]}}),UR=()=>E(V(),M()),zu=(e={})=>U({config:e,name:"u128",range:[0n,BigInt("0xffffffffffffffffffffffffffffffff")],set:(t,n,r)=>{let o=r?8:0,i=r?0:8,a=0xffffffffffffffffn;t.setBigUint64(o,BigInt(n)>>64n,r),t.setBigUint64(i,BigInt(n)&a,r);},size:16}),ku=(e={})=>B({config:e,get:(t,n)=>{let r=n?8:0,o=n?0:8,i=t.getBigUint64(r,n),a=t.getBigUint64(o,n);return (i<<64n)+a},name:"u128",size:16}),BR=(e={})=>E(zu(e),ku(e)),Vu=(e={})=>U({config:e,name:"u16",range:[0,+"0xffff"],set:(t,n,r)=>t.setUint16(0,Number(n),r),size:2}),Gu=(e={})=>B({config:e,get:(t,n)=>t.getUint16(0,n),name:"u16",size:2}),MR=(e={})=>E(Vu(e),Gu(e)),Le=(e={})=>U({config:e,name:"u32",range:[0,+"0xffffffff"],set:(t,n,r)=>t.setUint32(0,Number(n),r),size:4}),Tr=(e={})=>B({config:e,get:(t,n)=>t.getUint32(0,n),name:"u32",size:4}),FR=(e={})=>E(Le(e),Tr(e)),pr=(e={})=>U({config:e,name:"u64",range:[0n,BigInt("0xffffffffffffffff")],set:(t,n,r)=>t.setBigUint64(0,BigInt(n),r),size:8}),Ir=(e={})=>B({config:e,get:(t,n)=>t.getBigUint64(0,n),name:"u64",size:8}),zR=(e={})=>E(pr(e),Ir(e)),D=()=>U({name:"u8",range:[0,+"0xff"],set:(e,t)=>e.setUint8(0,Number(t)),size:1}),L=()=>B({get:e=>e.getUint8(0),name:"u8",size:1}),kR=()=>E(D(),L());function fi(e,t,n){if(t!==n)throw new _(Fn,{actual:n,codecDescription:e,expected:t})}function Hu(e){return e.reduce((t,n)=>t===null||n===null?null:Math.max(t,n),0)}function te(e){return e.reduce((t,n)=>t===null||n===null?null:t+n,0)}function le(e){return g(e)?e.fixedSize:null}function se(e){var t;return g(e)?e.fixedSize:(t=e.maxSize)!=null?t:null}function z(e,t={}){var i,a;let n=(i=t.size)!=null?i:Le(),r=et(n,le(e)),o=(a=et(n,se(e)))!=null?a:void 0;return O({...r!==null?{fixedSize:r}:{getSizeFromValue:s=>(typeof n=="object"?G(s.length,n):0)+[...s].reduce((u,d)=>u+G(d,e),0),maxSize:o},write:(s,c,u)=>(typeof n=="number"&&fi("array",n,s.length),typeof n=="object"&&(u=n.write(s.length,c,u)),s.forEach(d=>{u=e.write(d,c,u);}),u)})}function P(e,t={}){var a,s;let n=(a=t.size)!=null?a:Tr(),r=le(e),o=et(n,r),i=(s=et(n,se(e)))!=null?s:void 0;return N({...o!==null?{fixedSize:o}:{maxSize:i},read:(c,u)=>{let d=[];if(typeof n=="object"&&c.slice(u).length===0)return [d,u];if(n==="remainder"){for(;u<c.length;){let[A,S]=e.read(c,u);u=S,d.push(A);}return [d,u]}let[l,f]=typeof n=="number"?[n,u]:n.read(c,u);u=f;for(let A=0;A<l;A+=1){let[S,m]=e.read(c,u);u=m,d.push(S);}return [d,u]}})}function WR(e,t={}){return E(z(e,t),P(e,t))}function et(e,t){return typeof e!="number"?null:e===0?0:t===null?null:t*e}function $u(e,t={}){var o;let r=(o=(typeof t=="boolean"?{backward:t}:t).backward)!=null?o:!1;return O({fixedSize:e,write(i,a,s){var u;let c=[];for(let d=0;d<e;d+=1){let l=0;for(let f=0;f<8;f+=1){let A=Number((u=i[d*8+f])!=null?u:0);l|=A<<(r?f:7-f);}r?c.unshift(l):c.push(l);}return a.set(c,s),e}})}function Wu(e,t={}){var o;let r=(o=(typeof t=="boolean"?{backward:t}:t).backward)!=null?o:!1;return N({fixedSize:e,read(i,a){de("bitArray",e,i,a);let s=[],c=i.slice(a,a+e);return c=r?c.reverse():c,c.forEach(u=>{for(let d=0;d<8;d+=1)r?(s.push(!!(u&1)),u>>=1):(s.push(!!(u&128)),u<<=1);}),[s,a+e]}})}function jR(e,t={}){return E($u(e,t),Wu(e,t))}function tt(e={}){var t;return T((t=e.size)!=null?t:D(),n=>n?1:0)}function nt(e={}){var t;return p((t=e.size)!=null?t:L(),n=>Number(n)===1)}function XR(e={}){return E(tt(e),nt(e))}function Re(){return O({getSizeFromValue:e=>e.length,write:(e,t,n)=>(t.set(e,n),n+e.length)})}function fe(){return N({read:(e,t)=>{let n=e.slice(t);return [n,t+n.length]}})}function KR(){return E(Re(),fe())}var ju=()=>N({read(e,t){return [e.slice(t).reduce((r,o)=>r+o.toString(16).padStart(2,"0"),""),e.length]}});function rt(e){return O({fixedSize:e.length,write:(t,n,r)=>(n.set(e,r),r+e.length)})}function ot(e){return N({fixedSize:e.length,read:(t,n)=>{let r=ju();if(!_e(t,e,n))throw new _(Wn,{constant:e,data:t,hexConstant:r.decode(e),hexData:r.decode(t),offset:n});return [void 0,n+e.length]}})}function YR(e){return E(rt(e),ot(e))}function $(e){var r;let t=te(e.map(le)),n=(r=te(e.map(se)))!=null?r:void 0;return O({...t===null?{getSizeFromValue:o=>e.map((i,a)=>G(o[a],i)).reduce((i,a)=>i+a,0),maxSize:n}:{fixedSize:t},write:(o,i,a)=>(fi("tuple",e.length,o.length),e.forEach((s,c)=>{a=s.write(o[c],i,a);}),a)})}function F(e){var r;let t=te(e.map(le)),n=(r=te(e.map(se)))!=null?r:void 0;return N({...t===null?{maxSize:n}:{fixedSize:t},read:(o,i)=>{let a=[];return e.forEach(s=>{let[c,u]=s.read(o,i);a.push(c),i=u;}),[a,i]}})}function JR(e){return E($(e),F(e))}function be(e,t){let n=Ei(e),r=(i,a,s)=>{let c=t(i);return Cr(e,c),e[c].write(i,a,s)};if(n!==null)return O({fixedSize:n,write:r});let o=Ai(e);return O({...o!==null?{maxSize:o}:{},getSizeFromValue:i=>{let a=t(i);return Cr(e,a),G(i,e[a])},write:r})}function De(e,t){let n=Ei(e),r=(i,a)=>{let s=t(i,a);return Cr(e,s),e[s].read(i,a)};if(n!==null)return N({fixedSize:n,read:r});let o=Ai(e);return N({...o!==null?{maxSize:o}:{},read:r})}function qR(e,t,n){return E(be(e,t),De(e,n))}function Cr(e,t){if(typeof e[t]>"u")throw new _($n,{maxRange:e.length-1,minRange:0,variant:t})}function Ei(e){if(e.length===0)return 0;if(!g(e[0]))return null;let t=e[0].fixedSize;return e.every(r=>g(r)&&r.fixedSize===t)?t:null}function Ai(e){return Hu(e.map(t=>se(t)))}function Si(e,t={}){var o,i;let n=(o=t.discriminator)!=null?o:"__kind",r=(i=t.size)!=null?i:D();return be(e.map(([,a],s)=>T($([r,a]),c=>[s,c])),a=>Ku(e,a[n]))}function Oi(e,t={}){var o,i;let n=(o=t.discriminator)!=null?o:"__kind",r=(i=t.size)!=null?i:L();return De(e.map(([a,s])=>p(F([r,s]),([,c])=>({[n]:a,...c}))),(a,s)=>Number(r.read(a,s)[0]))}function Xu(e,t={}){return E(Si(e,t),Oi(e,t))}function Ku(e,t){let n=e.findIndex(([r])=>t===r);if(n<0)throw new _(kn,{value:t,variants:e.map(([r])=>r)});return n}var ZR=Si,QR=Oi,ef=Xu;function Ni(e){let t=[...new Set(Object.values(e).filter(a=>typeof a=="number"))].sort(),n=Object.fromEntries(Object.entries(e).slice(t.length)),r=Object.keys(n),o=Object.values(n),i=[...new Set([...r,...o.filter(a=>typeof a=="string")])];return {enumKeys:r,enumRecord:n,enumValues:o,numericalValues:t,stringValues:i}}function Yu({enumKeys:e,enumValues:t,variant:n}){let r=mi(t,o=>o===n);return r>=0?r:e.findIndex(o=>o===n)}function Ju({discriminator:e,enumKeys:t,enumValues:n,useValuesAsDiscriminators:r}){return r?mi(n,o=>o===e):e>=0&&e<t.length?e:-1}function mi(e,t){let n=e.length;for(;n--;)if(t(e[n],n,e))return n;return -1}function gi(e){if(e.length===0)return "";let t=[e[0],e[0]],n=[];for(let r=1;r<e.length;r++){let o=e[r];t[1]+1===o?t[1]=o:(n.push(t[0]===t[1]?`${t[0]}`:`${t[0]}-${t[1]}`),t=[o,o]);}return n.push(t[0]===t[1]?`${t[0]}`:`${t[0]}-${t[1]}`),n.join(", ")}function Ti(e,t={}){var c,u;let n=(c=t.size)!=null?c:D(),r=(u=t.useValuesAsDiscriminators)!=null?u:!1,{enumKeys:o,enumValues:i,numericalValues:a,stringValues:s}=Ni(e);if(r&&i.some(d=>typeof d=="string"))throw new _(He,{stringValues:i.filter(d=>typeof d=="string")});return T(n,d=>{let l=Yu({enumKeys:o,enumValues:i,variant:d});if(l<0)throw new _(Vn,{formattedNumericalValues:gi(a),numericalValues:a,stringValues:s,variant:d});return r?i[l]:l})}function pi(e,t={}){var s,c;let n=(s=t.size)!=null?s:L(),r=(c=t.useValuesAsDiscriminators)!=null?c:!1,{enumKeys:o,enumValues:i,numericalValues:a}=Ni(e);if(r&&i.some(u=>typeof u=="string"))throw new _(He,{stringValues:i.filter(u=>typeof u=="string")});return p(n,u=>{let d=Number(u),l=Ju({discriminator:d,enumKeys:o,enumValues:i,useValuesAsDiscriminators:r});if(l<0){let f=r?a:[...Array(o.length).keys()];throw new _(zn,{discriminator:d,formattedValidDiscriminators:gi(f),validDiscriminators:f})}return i[l]})}function qu(e,t={}){return E(Ti(e,t),pi(e,t))}var tf=Ti,nf=pi,rf=qu;function Zu(e,t){return T($([...t,e]),n=>[...t.map(()=>{}),n])}function Qu(e,t){return p(F([...t,e]),n=>n[n.length-1])}function of(e,t){return E(Zu(e,t),Qu(e,t))}function e_(e,t){return T($([e,...t]),n=>[n,...t.map(()=>{})])}function t_(e,t){return p(F([e,...t]),n=>n[0])}function af(e,t){return E(e_(e,t),t_(e,t))}function n_(e,t,n={}){return T(z($([e,t]),n),r=>[...r.entries()])}function r_(e,t,n={}){return p(P(F([e,t]),n),r=>new Map(r))}function sf(e,t,n={}){return E(n_(e,t,n),r_(e,t,n))}function Q(){return O({fixedSize:0,write:(e,t,n)=>n})}function ee(){return N({fixedSize:0,read:(e,t)=>[void 0,t]})}function cf(){return E(Q(),ee())}function o_(e,t={}){let n=(()=>{var o;return t.prefix===null?T(Q(),i=>{}):tt({size:(o=t.prefix)!=null?o:D()})})(),r=t.noneValue==="zeroes"?(q(e),w(Q(),e.fixedSize)):t.noneValue?rt(t.noneValue):Q();return be([T($([n,r]),o=>[!1,void 0]),T($([n,e]),o=>[!0,o])],o=>+(o!==null))}function i_(e,t={}){let n=(()=>{var o;return t.prefix===null?p(ee(),()=>!1):nt({size:(o=t.prefix)!=null?o:L()})})(),r=t.noneValue==="zeroes"?(q(e),v(ee(),e.fixedSize)):t.noneValue?ot(t.noneValue):ee();return De([p(F([n,r]),()=>null),p(F([n,e]),([,o])=>o)],(o,i)=>{if(t.prefix===null&&!t.noneValue)return +(i<o.length);if(t.prefix===null&&t.noneValue!=null){let a=t.noneValue==="zeroes"?new Uint8Array(r.fixedSize).fill(0):t.noneValue;return _e(o,a,i)?0:1}return Number(n.read(o,i)[0])})}function uf(e,t={}){return E(o_(e,t),i_(e,t))}function a_(e,t={}){return T(z(e,t),n=>[...n])}function s_(e,t={}){return p(P(e,t),n=>new Set(n))}function _f(e,t={}){return E(a_(e,t),s_(e,t))}function Y(e){var o;let t=e.map(([,i])=>i),n=te(t.map(le)),r=(o=te(t.map(se)))!=null?o:void 0;return O({...n===null?{getSizeFromValue:i=>e.map(([a,s])=>G(i[a],s)).reduce((a,s)=>a+s,0),maxSize:r}:{fixedSize:n},write:(i,a,s)=>(e.forEach(([c,u])=>{s=u.write(i[c],a,s);}),s)})}function ne(e){var o;let t=e.map(([,i])=>i),n=te(t.map(le)),r=(o=te(t.map(se)))!=null?o:void 0;return N({...n===null?{maxSize:r}:{fixedSize:n},read:(i,a)=>{let s={};return e.forEach(([c,u])=>{let[d,l]=u.read(i,a);a=l,s[c]=d;}),[s,a]}})}function df(e){return E(Y(e),ne(e))}var Ci=e=>({__option:"Some",value:e}),hi=()=>({__option:"None"}),hr=e=>!!(e&&typeof e=="object"&&"__option"in e&&(e.__option==="Some"&&"value"in e||e.__option==="None")),it=e=>e.__option==="Some",Af=e=>e.__option==="None";function Sf(e,t){return it(e)?e.value:t?t():null}var c_=e=>e!==null?Ci(e):hi();function u_(e,t={}){let n=(()=>{var o;return t.prefix===null?T(Q(),i=>{}):tt({size:(o=t.prefix)!=null?o:D()})})(),r=t.noneValue==="zeroes"?(q(e),w(Q(),e.fixedSize)):t.noneValue?rt(t.noneValue):Q();return be([T($([n,r]),o=>[!1,void 0]),T($([n,e]),o=>[!0,hr(o)&&it(o)?o.value:o])],o=>{let i=hr(o)?o:c_(o);return Number(it(i))})}function __(e,t={}){let n=(()=>{var o;return t.prefix===null?p(ee(),()=>!1):nt({size:(o=t.prefix)!=null?o:L()})})(),r=t.noneValue==="zeroes"?(q(e),v(ee(),e.fixedSize)):t.noneValue?ot(t.noneValue):ee();return De([p(F([n,r]),()=>hi()),p(F([n,e]),([,o])=>Ci(o))],(o,i)=>{if(t.prefix===null&&!t.noneValue)return +(i<o.length);if(t.prefix===null&&t.noneValue!=null){let a=t.noneValue==="zeroes"?new Uint8Array(r.fixedSize).fill(0):t.noneValue;return _e(o,a,i)?0:1}return Number(n.read(o,i)[0])})}function Of(e,t={}){return E(u_(e,t),__(e,t))}function Ii(e,t){if(!e||ArrayBuffer.isView(e))return e;let n=r=>t?Ii(r,t):Ii(r);return hr(e)?it(e)?n(e.value):t?t():null:Array.isArray(e)?e.map(n):typeof e=="object"?Object.fromEntries(Object.entries(e).map(([r,o])=>[r,n(o)])):e}function k(e,...t){return t.reduce((n,r)=>r(n),e)}function Li(e,t){return e.programAddress===t}function Tf(e,t){if(e.programAddress!==t)throw new _(sn,{actualProgramAddress:e.programAddress,expectedProgramAddress:t})}function pf(e){return e.accounts!==void 0}function If(e){if(e.accounts===void 0)throw new _(on,{data:e.data,programAddress:e.programAddress})}function bi(e){return e.data!==void 0}function Cf(e){var t;if(e.data===void 0)throw new _(an,{accountAddresses:(t=e.accounts)==null?void 0:t.map(n=>n.address),programAddress:e.programAddress})}var h=(e=>(e[e.WRITABLE_SIGNER=3]="WRITABLE_SIGNER",e[e.READONLY_SIGNER=2]="READONLY_SIGNER",e[e.WRITABLE=1]="WRITABLE",e[e.READONLY=0]="READONLY",e))(h||{}),Di=2,Lr=1;function hf(e){return e&~Di}function Lf(e){return e&~Lr}function W(e){return e>=2}function Ee(e){return (e&Lr)!==0}function br(e,t){return e|t}function bf(e){return e|Di}function Df(e){return e|Lr}function d_(e){return new Uint8Array([48,46,2,1,0,48,5,6,3,43,101,112,4,34,4,32,...e])}async function Dr(e,t){let n=e.byteLength;if(n!==32)throw new _(en,{actualLength:n});let r=d_(e);return await crypto.subtle.importKey("pkcs8",r,"Ed25519",t!=null?t:!1,["sign"])}async function l_(e,t=!1){if(Ke(),e.extractable===!1)throw new _(qt,{key:e});let n=await crypto.subtle.exportKey("jwk",e);return await crypto.subtle.importKey("jwk",{crv:"Ed25519",ext:t,key_ops:["verify"],kty:"OKP",x:n.x},"Ed25519",t,["verify"])}var Ae;function R_(e){if(Ae||(Ae=K()),e.length<64||e.length>88)throw new _(nn,{actualLength:e.length});let n=Ae.encode(e).byteLength;if(n!==64)throw new _(tn,{actualLength:n})}function xf(e){return Ae||(Ae=K()),!(e.length<64||e.length>88||Ae.encode(e).byteLength!==64)}async function ye(e,t){ai();let n=await crypto.subtle.sign("Ed25519",e,t);return new Uint8Array(n)}function Uf(e){return R_(e),e}async function f_(e,t,n){return si(),await crypto.subtle.verify("Ed25519",e,t,n)}async function yi(){return await ii(),await crypto.subtle.generateKey("Ed25519",!1,["sign","verify"])}async function wi(e,t){if(ci(),e.byteLength!==64)throw new _(Qt,{byteLength:e.byteLength});let[n,r]=await Promise.all([crypto.subtle.importKey("raw",e.slice(32),"Ed25519",!0,["verify"]),Dr(e.slice(0,32),t)]),o=new Uint8Array(32);crypto.getRandomValues(o);let i=await ye(r,o);if(!await f_(n,i,o))throw new _(rn);return {privateKey:r,publicKey:n}}async function vi(e,t=!1){let n=Dr(e,t),[r,o]=await Promise.all([(t?n:Dr(e,!0)).then(async i=>await l_(i,!0)),n]);return {privateKey:o,publicKey:r}}function Ff(e,t,n,r){var i;if(!J(e,Fe))return !1;let o=(i=t.instructions[e.context.index])==null?void 0:i.programAddress;return !o||o!==n?!1:typeof r>"u"||e.context.code===r}function at(e){return JSON.parse(E_(e),(t,n)=>N_(n)?O_(n):n)}function E_(e){let t=[],n=!1;for(let r=0;r<e.length;r++){let o=!1;if(e[r]==="\\"&&(t.push(e[r++]),o=!o),e[r]==='"'){t.push(e[r]),o||(n=!n);continue}if(!n){let i=A_(e,r);if(i!=null&&i.length){r+=i.length-1,i.match(/\.|[eE]-/)?t.push(i):t.push(S_(i));continue}}t.push(e[r]);}return t.join("")}function A_(e,t){var o;let n=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/;if(!((o=e[t])!=null&&o.match(/[-\d]/)))return null;let r=e.slice(t).match(n);return r?r[0]:null}function S_(e){return `{"$n":"${e}"}`}function O_({$n:e}){if(e.match(/[eE]/)){let[t,n]=e.split(/[eE]/);return BigInt(t)*BigInt(10)**BigInt(n)}return BigInt(e)}function N_(e){return !!e&&typeof e=="object"&&"$n"in e&&typeof e.$n=="string"}var yr=0;function m_(){let e=yr;return yr=(yr+1)%Number.MAX_SAFE_INTEGER,e}function Se(e){return {id:m_(),jsonrpc:"2.0",method:e.methodName,params:e.params}}function st(e,t){return T_(JSON.stringify(e,(n,r)=>typeof r=="bigint"?g_(r):r,t))}function g_(e){return {$n:`${e}`}}function T_(e){return e.replace(/\{\s*"\$n"\s*:\s*"(-?\d+)"\s*\}/g,"$1")}function Pi(e){return p_(e)}function p_(e){return new Proxy(e.api,{defineProperty(){return !1},deleteProperty(){return !1},get(t,n,r){return function(...o){let i=n.toString(),a=Reflect.get(t,i,r);if(!a)throw new _(Yn,{method:i,params:o});let s=a(...o);return I_(e,s)}}})}function I_({transport:e},t){return {async send(n){return await t.execute({signal:n==null?void 0:n.abortSignal,transport:e})}}}function xi(e){return new Proxy({},{defineProperty(){return !1},deleteProperty(){return !1},get(...t){let[n,r]=t,o=r.toString();return function(...i){let a=Object.freeze({methodName:o,params:i}),s=e!=null&&e.requestTransformer?e==null?void 0:e.requestTransformer(a):a;return Object.freeze({execute:async({signal:c,transport:u})=>{let d=Se(s),l=await u({payload:d,signal:c});return e!=null&&e.responseTransformer?e.responseTransformer(l,s):l}})}}})}function ct(e){return e==null||typeof e!="object"||Array.isArray(e)?!1:"jsonrpc"in e&&e.jsonrpc==="2.0"&&"method"in e&&typeof e.method=="string"&&"params"in e}var R={};function Ui(e){return function t(n,r){if(Array.isArray(n))return n.map((o,i)=>{let a={...r,keyPath:[...r.keyPath,i]};return t(o,a)});if(typeof n=="object"&&n!==null){let o={};for(let i in n){if(!Object.prototype.hasOwnProperty.call(n,i))continue;let a={...r,keyPath:[...r.keyPath,i]};o[i]=t(n[i],a);}return o}else return e.reduce((o,i)=>i(o,r),n)}}function Bi(e,t){return n=>{let r=Ui(e);return Object.freeze({...n,params:r(n.params,t)})}}function C_(e,t){return n=>Ui(e)(n,t)}function h_(){return Bi([L_],{keyPath:[]})}function L_(e){return typeof e=="bigint"?Number(e):e}function b_({defaultCommitment:e,optionsObjectPositionByMethod:t}){return n=>{let{params:r,methodName:o}=n;if(!Array.isArray(r))return n;let i=t[o];return i==null?n:Object.freeze({methodName:o,params:D_({commitmentPropertyName:o==="sendTransaction"?"preflightCommitment":"commitment",optionsObjectPositionInParams:i,overrideCommitment:e,params:r})})}}function D_({commitmentPropertyName:e,params:t,optionsObjectPositionInParams:n,overrideCommitment:r}){let o=t[n];if(o===void 0||o&&typeof o=="object"&&!Array.isArray(o)){if(o&&e in o){if(!o[e]||o[e]==="finalized"){let i=[...t],{[e]:a,...s}=o;return Object.keys(s).length>0?i[n]=s:n===i.length-1?i.length--:i[n]=void 0,i}}else if(r!=="finalized"){let i=[...t];return i[n]={...o,[e]:r},i}}return t}function y_(e){return t=>Bi([w_((...r)=>e(t,...r))],{keyPath:[]})(t)}function w_(e){return (t,{keyPath:n})=>(typeof t=="bigint"&&e&&(t>Number.MAX_SAFE_INTEGER||t<-Number.MAX_SAFE_INTEGER)&&e(n,t),t)}var v_={accountNotifications:1,blockNotifications:1,getAccountInfo:1,getBalance:1,getBlock:1,getBlockHeight:0,getBlockProduction:0,getBlocks:2,getBlocksWithLimit:2,getEpochInfo:0,getFeeForMessage:1,getInflationGovernor:0,getInflationReward:1,getLargestAccounts:0,getLatestBlockhash:0,getLeaderSchedule:1,getMinimumBalanceForRentExemption:1,getMultipleAccounts:1,getProgramAccounts:1,getSignaturesForAddress:1,getSlot:0,getSlotLeader:0,getStakeMinimumDelegation:0,getSupply:0,getTokenAccountBalance:1,getTokenAccountsByDelegate:2,getTokenAccountsByOwner:2,getTokenLargestAccounts:1,getTokenSupply:1,getTransaction:1,getTransactionCount:0,getVoteAccounts:0,isBlockhashValid:1,logsNotifications:1,programNotifications:1,requestAirdrop:2,sendTransaction:1,signatureNotifications:1,simulateTransaction:1};function ut(e){let t=e==null?void 0:e.onIntegerOverflow;return n=>k(n,t?y_(t):r=>r,h_(),b_({defaultCommitment:e==null?void 0:e.defaultCommitment,optionsObjectPositionByMethod:v_}))}function Mi(e){return C_([P_(e)],{keyPath:[]})}function P_(e){return function(n,{keyPath:r}){return typeof n=="number"&&Number.isInteger(n)||typeof n=="bigint"?x_(r,e)?Number(n):BigInt(n):n}}function x_(e,t){return t.some(n=>{if(n.length!==e.length)return !1;for(let r=e.length-1;r>=0;r--){let o=e[r],i=n[r];if(i!==o&&(i!==R||typeof o!="number"))return !1}return !0})}function U_(){return e=>e.result}function B_(){return e=>{let t=e;if("error"in t)throw pe(t.error);return t}}function Fi(e){return (t,n)=>{let r=n.methodName,o=e!=null&&e.allowedNumericKeyPaths&&r?e.allowedNumericKeyPaths[r]:void 0;return k(t,i=>B_()(i,n),i=>U_()(i,n),i=>Mi(o!=null?o:[])(i,n))}}function zi(e){return (t,n)=>{let r=n.methodName,o=e!=null&&e.allowedNumericKeyPaths&&r?e.allowedNumericKeyPaths[r]:void 0;return k(t,i=>Mi(o!=null?o:[])(i,n))}}var _t=[["data","parsed","info","tokenAmount","decimals"],["data","parsed","info","tokenAmount","uiAmount"],["data","parsed","info","rentExemptReserve","decimals"],["data","parsed","info","rentExemptReserve","uiAmount"],["data","parsed","info","delegatedAmount","decimals"],["data","parsed","info","delegatedAmount","uiAmount"],["data","parsed","info","extensions",R,"state","olderTransferFee","transferFeeBasisPoints"],["data","parsed","info","extensions",R,"state","newerTransferFee","transferFeeBasisPoints"],["data","parsed","info","extensions",R,"state","preUpdateAverageRate"],["data","parsed","info","extensions",R,"state","currentRate"]],re=[..._t,["data","parsed","info","lastExtendedSlotStartIndex"],["data","parsed","info","slashPenalty"],["data","parsed","info","warmupCooldownRate"],["data","parsed","info","decimals"],["data","parsed","info","numRequiredSigners"],["data","parsed","info","numValidSigners"],["data","parsed","info","stake","delegation","warmupCooldownRate"],["data","parsed","info","exemptionThreshold"],["data","parsed","info","burnPercent"],["data","parsed","info","commission"],["data","parsed","info","votes",R,"confirmationCount"]],dt=[["index"],["instructions",R,"accounts",R],["instructions",R,"programIdIndex"],["instructions",R,"stackHeight"]],wr=[["addressTableLookups",R,"writableIndexes",R],["addressTableLookups",R,"readonlyIndexes",R],["header","numReadonlySignedAccounts"],["header","numReadonlyUnsignedAccounts"],["header","numRequiredSignatures"],["instructions",R,"accounts",R],["instructions",R,"programIdIndex"],["instructions",R,"stackHeight"]];function ki(e){return xi({requestTransformer:ut(e),responseTransformer:Fi({allowedNumericKeyPaths:M_()})})}var vr;function M_(){return vr||(vr={getAccountInfo:re.map(e=>["value",...e]),getBlock:[["transactions",R,"meta","preTokenBalances",R,"accountIndex"],["transactions",R,"meta","preTokenBalances",R,"uiTokenAmount","decimals"],["transactions",R,"meta","postTokenBalances",R,"accountIndex"],["transactions",R,"meta","postTokenBalances",R,"uiTokenAmount","decimals"],["transactions",R,"meta","rewards",R,"commission"],...dt.map(e=>["transactions",R,"meta","innerInstructions",R,...e]),...wr.map(e=>["transactions",R,"transaction","message",...e]),["rewards",R,"commission"]],getClusterNodes:[[R,"featureSet"],[R,"shredVersion"]],getInflationGovernor:[["initial"],["foundation"],["foundationTerm"],["taper"],["terminal"]],getInflationRate:[["foundation"],["total"],["validator"]],getInflationReward:[[R,"commission"]],getMultipleAccounts:re.map(e=>["value",R,...e]),getProgramAccounts:re.flatMap(e=>[["value",R,"account",...e],[R,"account",...e]]),getRecentPerformanceSamples:[[R,"samplePeriodSecs"]],getTokenAccountBalance:[["value","decimals"],["value","uiAmount"]],getTokenAccountsByDelegate:_t.map(e=>["value",R,"account",...e]),getTokenAccountsByOwner:_t.map(e=>["value",R,"account",...e]),getTokenLargestAccounts:[["value",R,"decimals"],["value",R,"uiAmount"]],getTokenSupply:[["value","decimals"],["value","uiAmount"]],getTransaction:[["meta","preTokenBalances",R,"accountIndex"],["meta","preTokenBalances",R,"uiTokenAmount","decimals"],["meta","postTokenBalances",R,"accountIndex"],["meta","postTokenBalances",R,"uiTokenAmount","decimals"],["meta","rewards",R,"commission"],...dt.map(e=>["meta","innerInstructions",R,...e]),...wr.map(e=>["transaction","message",...e])],getVersion:[["feature-set"]],getVoteAccounts:[["current",R,"commission"],["delinquent",R,"commission"]],simulateTransaction:[...re.map(e=>["value","accounts",R,...e]),...dt.map(e=>["value","innerInstructions",R,...e])]}),vr}function F_(e){let t={};for(let n in e)t[n.toLowerCase()]=e[n];return t}function z_(e){let{fromJson:t,headers:n,toJson:r,url:o}=e,i,a=n&&F_(n);return async function({payload:c,signal:u}){let d=r?r(c):JSON.stringify(c),l={...i,body:d,headers:{...a,accept:"application/json","content-length":d.length.toString(),"content-type":"application/json; charset=utf-8"},method:"POST",signal:u},f=await fetch(o,l);if(!f.ok)throw new _(Kn,{message:f.statusText,statusCode:f.status});return t?t(await f.text(),c):await f.json()}}var k_=["getAccountInfo","getBalance","getBlock","getBlockCommitment","getBlockHeight","getBlockProduction","getBlocks","getBlocksWithLimit","getBlockTime","getClusterNodes","getEpochInfo","getEpochSchedule","getFeeForMessage","getFirstAvailableBlock","getGenesisHash","getHealth","getHighestSnapshotSlot","getIdentity","getInflationGovernor","getInflationRate","getInflationReward","getLargestAccounts","getLatestBlockhash","getLeaderSchedule","getMaxRetransmitSlot","getMaxShredInsertSlot","getMinimumBalanceForRentExemption","getMultipleAccounts","getProgramAccounts","getRecentPerformanceSamples","getRecentPrioritizationFees","getSignaturesForAddress","getSignatureStatuses","getSlot","getSlotLeader","getSlotLeaders","getStakeMinimumDelegation","getSupply","getTokenAccountBalance","getTokenAccountsByDelegate","getTokenAccountsByOwner","getTokenLargestAccounts","getTokenSupply","getTransaction","getTransactionCount","getVersion","getVoteAccounts","index","isBlockhashValid","minimumLedgerSlot","requestAirdrop","sendTransaction","simulateTransaction"];function Vi(e){return ct(e)&&k_.includes(e.method)}function Gi(e){return z_({...e,fromJson:(t,n)=>{if(!Vi(n))return JSON.parse(t);let r=at(t);return V_(r)?{...r,error:{...r.error,code:Number(r.error.code)}}:r},toJson:t=>Vi(t)?st(t):JSON.stringify(t)})}function V_(e){return !!e&&typeof e=="object"&&"error"in e&&!!e.error&&typeof e.error=="object"&&"code"in e.error}var G_=Object.prototype.toString,H_=Object.keys||function(e){let t=[];for(let n in e)t.push(n);return t};function we(e,t){let n,r,o,i,a,s,c;if(e===!0)return "true";if(e===!1)return "false";switch(typeof e){case"object":if(e===null)return null;if("toJSON"in e&&typeof e.toJSON=="function")return we(e.toJSON(),t);if(c=G_.call(e),c==="[object Array]"){for(o="[",r=e.length-1,n=0;n<r;n++)o+=we(e[n],!0)+",";return r>-1&&(o+=we(e[n],!0)),o+"]"}else if(c==="[object Object]"){for(i=H_(e).sort(),r=i.length,o="",n=0;n<r;)a=i[n],s=we(e[a],!1),s!==void 0&&(o&&(o+=","),o+=JSON.stringify(a)+":"+s),n++;return "{"+o+"}"}else return JSON.stringify(e);case"function":case"undefined":return t?null:void 0;case"bigint":return `${e.toString()}n`;case"string":return JSON.stringify(e);default:return isFinite(e)?e:null}}function lt(e){let t=we(e,!1);if(t!==void 0)return ""+t}function Wi(e,t,n){let r="";if(typeof t[0]=="number"){let a=t[0]+1,s=a%10,c=a%100;s==1&&c!=11?r=a+"st":s==2&&c!=12?r=a+"nd":s==3&&c!=13?r=a+"rd":r=a+"th";}else r=`\`${t[0].toString()}\``;let o=t.length>1?t.slice(1).map(a=>typeof a=="number"?`[${a}]`:a).join("."):void 0,i=new _(Te,{argumentLabel:r,keyPath:t,methodName:e,optionalPathLabel:o?` at path \`${o}\``:"",value:n,...o!==void 0?{path:o}:void 0});return ue(i,Wi),i}var $_={defaultCommitment:"confirmed",onIntegerOverflow(e,t,n){throw Wi(e.methodName,t,n)}},Hi;function $i(){return {}}function W_(e,t){let n;return async function(o){let{payload:i,signal:a}=o,s=t(i);if(s===void 0)return await e(o);if(n||(queueMicrotask(()=>{n=void 0;}),n={}),n[s]==null){let u=new AbortController,d=(async()=>{try{return await e({...o,signal:u.signal})}catch(l){if(l===(Hi||(Hi=$i())))return;throw l}})();n[s]={abortController:u,numConsumers:0,responsePromise:d};}let c=n[s];if(c.numConsumers++,a){let u=c.responsePromise;return await new Promise((d,l)=>{let f=A=>{a.removeEventListener("abort",f),c.numConsumers-=1,queueMicrotask(()=>{c.numConsumers===0&&c.abortController.abort(Hi||(Hi=$i()));}),l(A.target.reason);};a.addEventListener("abort",f),u.then(d).catch(l).finally(()=>{a.removeEventListener("abort",f);});})}else return await c.responsePromise}}function j_(e){return ct(e)?lt([e.method,e.params]):void 0}function X_(e){let t={};for(let n in e)t[n.toLowerCase()]=e[n];return t}function K_(e){return k(Gi({...e,headers:{...e.headers?X_(e.headers):void 0,"solana-client":"js/2.0.0-rc.2"}}),t=>W_(t,j_))}function sE(e,t){return Y_(K_({url:e,...t}))}function Y_(e){return Pi({api:ki($_),transport:e})}var ji;function Xi(){return Symbol(void 0)}var Pr=Symbol();function Ki({abortSignal:e,dataChannelName:t,dataPublisher:n,errorChannelName:r}){let o=new Map;function i(u){for(let[d,l]of o.entries())l.__hasPolled?(o.delete(d),l.onError(u)):l.publishQueue.push({__type:1,err:u});}let a=new AbortController;e.addEventListener("abort",()=>{a.abort(),i(ji||(ji=Xi()));});let s={signal:a.signal},c=Pr;return n.on(r,u=>{c===Pr&&(c=u,a.abort(),i(u));},s),n.on(t,u=>{o.forEach((d,l)=>{if(d.__hasPolled){let{onData:f}=d;o.set(l,{__hasPolled:!1,publishQueue:[]}),f(u);}else d.publishQueue.push({__type:0,data:u});});},s),{async*[Symbol.asyncIterator](){if(e.aborted)return;if(c!==Pr)throw c;let u=Symbol();o.set(u,{__hasPolled:!1,publishQueue:[]});try{for(;;){let d=o.get(u);if(!d)throw new _(er);if(d.__hasPolled)throw new _(tr);let l=d.publishQueue;try{if(l.length){d.publishQueue=[];for(let f of l)if(f.__type===0)yield f.data;else throw f.err}else yield await new Promise((f,A)=>{o.set(u,{__hasPolled:!0,onData:f,onError:A});});}catch(f){if(f===(ji||(ji=Xi())))return;throw f}}}finally{o.delete(u);}}}}function xr(e){return {on(t,n,r){function o(i){if(i instanceof CustomEvent){let a=i.detail;n(a);}else n();}return e.addEventListener(t,o,r),()=>{e.removeEventListener(t,o);}}}}function Yi(e,t,n){let r,o=new EventTarget,i=xr(o);return {...i,on(a,s,c){r||(r={dispose:e.on(t,A=>{let S=n(A);if(!S)return;let[m,y]=S;o.dispatchEvent(new CustomEvent(m,{detail:y}));}),numSubscribers:0}),r.numSubscribers++;let u=i.on(a,s,c),d=!0;function l(){d&&(d=!1,c==null||c.signal.removeEventListener("abort",l),r.numSubscribers--,r.numSubscribers===0&&(r.dispose(),r=void 0),u());}return c==null||c.signal.addEventListener("abort",l),l}}}function Ji(e){return e!==null&&(typeof e=="object"||typeof e=="function")}function J_(e){let t=new Set,n={deferreds:t,settled:!1};return Promise.resolve(e).then(r=>{for(let{resolve:o}of t)o(r);t.clear(),n.settled=!0;},r=>{for(let{reject:o}of t)o(r);t.clear(),n.settled=!0;}),n}var Ur=new WeakMap;async function Oe(e){let t;return await new Promise((r,o)=>{t={reject:o,resolve:r};for(let i of e){if(!Ji(i)){Promise.resolve(i).then(r,o);continue}let a=Ur.get(i);a===void 0?(a=J_(i),a.deferreds.add(t),Ur.set(i,a)):a.settled?Promise.resolve(i).then(r,o):a.deferreds.add(t);}}).finally(()=>{for(let r of e)Ji(r)&&Ur.get(r).deferreds.delete(t);})}function Zi(e){return new Proxy(e.api,{defineProperty(){return !1},deleteProperty(){return !1},get(t,n,r){return function(...o){let i=n.toString(),a=Reflect.get(t,i,r);if(!a)throw new _(Jn,{notificationName:i});let s=a(...o);return q_(e.transport,s)}}})}function q_(e,t){return {async subscribe({abortSignal:n}){let r=await e({signal:n,...t});return Ki({abortSignal:n,dataChannelName:"notification",dataPublisher:r,errorChannelName:"error"})}}}function Qi(e){return new Proxy({},{defineProperty(){return !1},deleteProperty(){return !1},get(...t){let[n,r]=t,o=r.toString();return function(...i){let a={methodName:o,params:i},s=e.requestTransformer?e.requestTransformer(a):a;return {execute(c){return e.planExecutor({...c,request:s})},request:s}}}})}function Mr(e,t){return Object.freeze({...e,on(n,r,o){return n!=="message"?e.on(n,r,o):e.on("message",i=>r(t(i)),o)}})}function Fr(e,t){return Object.freeze({...e,send:n=>e.send(t(n))})}var Br=new WeakMap;function Z_(e,t){return ea(-1,e,t)}function Q_(e,t){ea(1,e,t);}function ea(e,t,n){if(n===void 0)return;let r=Br.get(t);if(!r&&e>0&&Br.set(t,r={[n]:0}),(r==null?void 0:r[n])!==void 0)return r[n]=e+r[n]}var qi=new WeakMap;function ed(e,t,n){let r=qi.get(e);r||qi.set(e,r=new WeakMap);let o=n!=null?n:e,i=r.get(o);return i||r.set(o,i=Yi(e,"message",a=>{let s=a;if(!("method"in s))return;let c=n?n(s.params.result,t):s.params.result;return [`notification:${s.params.subscription}`,c]})),i}async function ta({channel:e,responseTransformer:t,signal:n,subscribeRequest:r,unsubscribeMethodName:o}){let i;e.on("error",()=>{i=void 0,Br.delete(e);},{signal:n});let a=new Promise((l,f)=>{function A(){if(Z_(e,i)===0){let S=Se({methodName:o,params:[i]});i=void 0,e.send(S).catch(()=>{});}f(this.reason);}n.aborted?A.call(n):n.addEventListener("abort",A);}),s=Se(r);await e.send(s);let c=new Promise((l,f)=>{let A=new AbortController;n.addEventListener("abort",A.abort.bind(A));let S={signal:A.signal};e.on("error",m=>{A.abort(),f(m);},S),e.on("message",m=>{m&&typeof m=="object"&&"id"in m&&m.id===s.id&&(A.abort(),"error"in m?f(pe(m.error)):l(m.result));},S);});if(i=await Oe([a,c]),i==null)throw new _(qn);Q_(e,i);let u=ed(e,r,t),d=`notification:${i}`;return {on(l,f,A){switch(l){case"notification":return u.on(d,f,A);case"error":return e.on("error",f,A);default:throw new _(rr,{channelName:l,supportedChannelNames:["notification","error"]})}}}}function na(e){let t=ut(e),n=zi({allowedNumericKeyPaths:td()});return Qi({planExecutor({request:r,...o}){return ta({...o,responseTransformer:n,subscribeRequest:{...r,methodName:r.methodName.replace(/Notifications$/,"Subscribe")},unsubscribeMethodName:r.methodName.replace(/Notifications$/,"Unsubscribe")})},requestTransformer:t})}function ra(e){return na(e)}function gE(e){return na(e)}var zr;function td(){return zr||(zr={accountNotifications:re.map(e=>["value",...e]),blockNotifications:[["value","block","transactions",R,"meta","preTokenBalances",R,"accountIndex"],["value","block","transactions",R,"meta","preTokenBalances",R,"uiTokenAmount","decimals"],["value","block","transactions",R,"meta","postTokenBalances",R,"accountIndex"],["value","block","transactions",R,"meta","postTokenBalances",R,"uiTokenAmount","decimals"],["value","block","transactions",R,"meta","rewards",R,"commission"],["value","block","transactions",R,"meta","innerInstructions",R,"index"],["value","block","transactions",R,"meta","innerInstructions",R,"instructions",R,"programIdIndex"],["value","block","transactions",R,"meta","innerInstructions",R,"instructions",R,"accounts",R],["value","block","transactions",R,"transaction","message","addressTableLookups",R,"writableIndexes",R],["value","block","transactions",R,"transaction","message","addressTableLookups",R,"readonlyIndexes",R],["value","block","transactions",R,"transaction","message","instructions",R,"programIdIndex"],["value","block","transactions",R,"transaction","message","instructions",R,"accounts",R],["value","block","transactions",R,"transaction","message","header","numReadonlySignedAccounts"],["value","block","transactions",R,"transaction","message","header","numReadonlyUnsignedAccounts"],["value","block","transactions",R,"transaction","message","header","numRequiredSignatures"],["value","block","rewards",R,"commission"]],programNotifications:re.flatMap(e=>[["value",R,"account",...e],[R,"account",...e]])}),zr}var ve=globalThis.WebSocket,oa=1e3;function ia({sendBufferHighWatermark:e,signal:t,url:n}){if(t.aborted)return Promise.reject(t.reason);let r,o=!1,i=new Set;function a(){i.forEach(I=>{I();}),i.clear();}function s(){a(),o||m(t.reason),S.readyState!==ve.CLOSED&&S.readyState!==ve.CLOSING&&S.close(oa);}function c(I){a(),r==null||r.onCancel(),t.removeEventListener("abort",s),S.removeEventListener("close",c),S.removeEventListener("error",u),S.removeEventListener("message",d),S.removeEventListener("open",A),!t.aborted&&!(I.wasClean&&I.code===oa)&&l.dispatchEvent(new CustomEvent("error",{detail:new _(ce,{cause:I})}));}function u(I){if(!t.aborted&&!o){let j=new _(Qn,{errorEvent:I});m(j),l.dispatchEvent(new CustomEvent("error",{detail:j}));}}function d(I){t.aborted||l.dispatchEvent(new CustomEvent("message",{detail:I.data}));}let l=new EventTarget,f=xr(l);function A(){o=!0,y({...f,async send(I){if(S.readyState!==ve.OPEN)throw new _(ce);if(!r&&S.bufferedAmount>e){let j,$a=new Promise((Wa,ja)=>{let Eo=setInterval(()=>{(S.readyState!==ve.OPEN||!(S.bufferedAmount>e))&&(clearInterval(Eo),r=void 0,Wa());},16);j=()=>{r=void 0,clearInterval(Eo),ja(new _(Zn));};});r={onCancel:j,promise:$a};}if(r){if(ArrayBuffer.isView(I)&&!(I instanceof DataView)){let j=I.constructor;I=new j(I);}await r.promise;}S.send(I);}});}let S=new ve(n);t.addEventListener("abort",s),S.addEventListener("close",c),S.addEventListener("error",u),S.addEventListener("message",d),S.addEventListener("open",A);let m,y;return new Promise((I,j)=>{m=j,y=I;})}function aa(e,t,n){let r="";if(typeof t[0]=="number"){let a=t[0]+1,s=a%10,c=a%100;s==1&&c!=11?r=a+"st":s==2&&c!=12?r=a+"nd":s==3&&c!=13?r=a+"rd":r=a+"th";}else r=`\`${t[0].toString()}\``;let o=t.length>1?t.slice(1).map(a=>typeof a=="number"?`[${a}]`:a).join("."):void 0,i=new _(Te,{argumentLabel:r,keyPath:t,methodName:e,optionalPathLabel:o?` at path \`${o}\``:"",value:n,...o!==void 0?{path:o}:void 0});return ue(i,aa),i}var nd={defaultCommitment:"confirmed",onIntegerOverflow(e,t,n){throw aa(e.methodName,t,n)}},rd={jsonrpc:"2.0",method:"ping"};function od({abortSignal:e,channel:t,intervalMs:n}){let r;function o(){t.send(rd).catch(s=>{J(s,ce)&&a.abort();});}function i(){clearInterval(r),r=setInterval(o,n);}let a=new AbortController;return a.signal.addEventListener("abort",()=>{clearInterval(r);}),e.addEventListener("abort",()=>{a.abort();}),t.on("error",()=>{a.abort();},{signal:a.signal}),t.on("message",i,{signal:a.signal}),globalThis.navigator.onLine&&i(),globalThis.window.addEventListener("offline",function(){clearInterval(r);},{signal:a.signal}),globalThis.window.addEventListener("online",function(){o(),i();},{signal:a.signal}),{...t,send(...s){return a.signal.aborted||i(),t.send(...s)}}}function id(){return {entries:[],freeChannelIndex:-1}}function ad(e,{maxSubscriptionsPerChannel:t,minChannels:n}){let r=id();function o(){var a;if(r.entries.length<n){r.freeChannelIndex=-1;return}let i;for(let s=0;s<r.entries.length;s++){let c=(r.freeChannelIndex+s+2)%r.entries.length,u=r.entries[c];u.subscriptionCount<t&&(!i||i.subscriptionCount>=u.subscriptionCount)&&(i={poolIndex:c,subscriptionCount:u.subscriptionCount});}r.freeChannelIndex=(a=i==null?void 0:i.poolIndex)!=null?a:-1;}return function({abortSignal:a}){let s;function c(){let u=r.entries.findIndex(d=>d===s);r.entries.splice(u,1),s.dispose(),o();}if(r.freeChannelIndex===-1){let u=new AbortController,d=e({abortSignal:u.signal});d.then(l=>{l.on("error",c,{signal:u.signal});}).catch(c),s={channel:d,dispose(){u.abort();},subscriptionCount:0},r.entries.push(s);}else s=r.entries[r.freeChannelIndex];return s.subscriptionCount++,a.addEventListener("abort",function(){s.subscriptionCount--,s.subscriptionCount===0?c():r.freeChannelIndex!==-1&&(r.freeChannelIndex--,o());}),o(),s.channel}}function sd(e){return k(e,t=>Mr(t,JSON.parse),t=>Fr(t,JSON.stringify))}function cd(e){return k(e,t=>Mr(t,at),t=>Fr(t,st))}function ud(e){return sa({...e,jsonSerializer:cd})}function PE(e){return sa({...e,jsonSerializer:sd})}function sa(e){var o,i;if(/^wss?:/i.test(e.url)===!1){let a=e.url.match(/^([^:]+):/);throw new DOMException(a?`Failed to construct 'WebSocket': The URL's scheme must be either 'ws' or 'wss'. '${a[1]}:' is not allowed.`:`Failed to construct 'WebSocket': The URL '${e.url}' is invalid.`)}let{intervalMs:t,...n}=e;return ad(({abortSignal:a})=>{var s;return ia({...n,sendBufferHighWatermark:(s=e.sendBufferHighWatermark)!=null?s:131072,signal:a}).then(e.jsonSerializer).then(c=>od({abortSignal:a,channel:c,intervalMs:t!=null?t:5e3}))},{maxSubscriptionsPerChannel:(o=e.maxSubscriptionsPerChannel)!=null?o:100,minChannels:(i=e.minChannels)!=null?i:1})}function _d(e){let t=new Map;return function(r){let{request:o,signal:i}=r,a=lt([o.methodName,o.params]),s=t.get(a);if(!s){let c=new AbortController,u=e({...r,signal:c.signal});u.then(d=>{d.on("error",()=>{t.delete(a),c.abort();},{signal:c.signal});}).catch(()=>{}),t.set(a,s={abortController:c,dataPublisherPromise:u,numSubscribers:0});}return s.numSubscribers++,i.addEventListener("abort",()=>{s.numSubscribers--,s.numSubscribers===0&&queueMicrotask(()=>{s.numSubscribers===0&&(t.delete(a),s.abortController.abort());});},{signal:s.abortController.signal}),s.dataPublisherPromise}}function dd({createChannel:e}){return k(ld(e),t=>_d(t))}function ld(e){return async({execute:t,signal:n})=>{let r=await e({abortSignal:n});return await t({channel:r,signal:n})}}function ca(e,t){let n=dd({createChannel:ud({...t,url:e})});return Rd(n)}function xE(e,t){return ca(e,t)}function UE(e,t){return ca(e,t)}function Rd(e){return Zi({api:ra(nd),transport:e})}var kr,Vr;function $r(){return kr||(kr=K()),kr}function fd(){return Vr||(Vr=Z()),Vr}function HE(e){return !(e.length<32||e.length>44||$r().encode(e).byteLength!==32)}function Wr(e){if(e.length<32||e.length>44)throw new _(Ct,{actualLength:e.length});let r=$r().encode(e).byteLength;if(r!==32)throw new _(ht,{actualLength:r})}function Ed(e){return Wr(e),e}function Ad(){return T(w($r(),32),e=>Ed(e))}function Sd(){return v(fd(),32)}function $E(){return E(Ad(),Sd())}function WE(){return new Intl.Collator("en",{caseFirst:"lower",ignorePunctuation:!1,localeMatcher:"best fit",numeric:!1,sensitivity:"variant",usage:"sort"}).compare}function jE(e){return e}function XE(e){return e}function KE(e){return e}function ua(e){switch(e){case"finalized":return 2;case"confirmed":return 1;case"processed":return 0;default:throw new _(nr,{unexpectedValue:e})}}function Rt(e,t){return e===t?0:ua(e)<ua(t)?-1:1}var _a=18446744073709551615n,Gr,Hr;function Od(){return Gr||(Gr=pr()),Gr}function Nd(){return Hr||(Hr=Ir()),Hr}function YE(e){return e>=0&&e<=_a}function md(e){if(e<0||e>_a)throw new _(Lt)}function gd(e){return md(e),e}function Td(){return Od()}function JE(e){return e}function pd(){return da(Nd())}function da(e){return p(e,t=>gd(typeof t=="bigint"?t:BigInt(t)))}function qE(){return E(Td(),pd())}function ZE(e){return E(e,da(e))}function QE(e){try{return BigInt(e),!0}catch{return !1}}function Id(e){try{BigInt(e);}catch{throw new _(bt,{value:e})}}function eA(e){return Id(e),e}function tA(e){return !Number.isNaN(Number(e))}function Cd(e){if(Number.isNaN(Number(e)))throw new _(Dt,{value:e})}function nA(e){return Cd(e),e}var la=9223372036854775807n,Ra=-9223372036854775808n;function rA(e){return e>=Ra&&e<=la}function hd(e){if(e<Ra||e>la)throw new _(yt,{value:e})}function oA(e){return hd(e),e}function Pe(e){if(!("lifetimeConstraint"in e&&typeof e.lifetimeConstraint.blockhash=="string"&&typeof e.lifetimeConstraint.lastValidBlockHeight=="bigint"))return !1;try{return Wr(e.lifetimeConstraint.blockhash),!0}catch{return !1}}function fA(e){if(!Pe(e))throw new _(Nn)}function to(e,t){if("lifetimeConstraint"in t&&t.lifetimeConstraint.blockhash===e.blockhash&&t.lifetimeConstraint.lastValidBlockHeight===e.lastValidBlockHeight)return t;let n={...t,lifetimeConstraint:Object.freeze(e)};return Object.freeze(n),n}function Ld(e,t,n=t){if(!t.match(new RegExp(`^[${e}]*$`)))throw new _(X,{alphabet:e,base:e.length,value:n})}var bd=e=>O({getSizeFromValue:t=>{let[n,r]=fa(t,e[0]);if(!r)return t.length;let o=Ea(r,e);return n.length+Math.ceil(o.toString(16).length/2)},write(t,n,r){if(Ld(e,t),t==="")return r;let[o,i]=fa(t,e[0]);if(!i)return n.set(new Uint8Array(o.length).fill(0),r),r+o.length;let a=Ea(i,e),s=[];for(;a>0n;)s.unshift(Number(a%256n)),a/=256n;let c=[...Array(o.length).fill(0),...s];return n.set(c,r),r+c.length}}),Dd=e=>N({read(t,n){let r=n===0?t:t.slice(n);if(r.length===0)return ["",0];let o=r.findIndex(c=>c!==0);o=o===-1?r.length:o;let i=e[0].repeat(o);if(o===r.length)return [i,t.length];let a=r.slice(o).reduce((c,u)=>c*256n+BigInt(u),0n),s=yd(a,e);return [i+s,t.length]}});function fa(e,t){let[n,r]=e.split(new RegExp(`((?!${t}).*)`));return [n,r]}function Ea(e,t){let n=BigInt(t.length),r=0n;for(let o of e)r*=n,r+=BigInt(t.indexOf(o));return r}function yd(e,t){let n=BigInt(t.length),r=[];for(;e>0n;)r.unshift(t[Number(e%n)]),e/=n;return r.join("")}var ma="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",wd=()=>bd(ma),vd=()=>Dd(ma),jr;function Pd(){return jr||(jr=Y([["lookupTableAddress",qe()],["writableIndices",z(D(),{size:V()})],["readableIndices",z(D(),{size:V()})]])),jr}var Xr;function xd(){return Xr||(Xr=ne([["lookupTableAddress",ae()],["writableIndices",P(L(),{size:M()})],["readableIndices",P(L(),{size:M()})]])),Xr}var Kr;function Yr(){return Kr||(Kr=D()),Kr}var Jr;function qr(){return Jr||(Jr=L()),Jr}function Ud(){return Y([["numSignerAccounts",Yr()],["numReadonlySignerAccounts",Yr()],["numReadonlyNonSignerAccounts",Yr()]])}function Bd(){return ne([["numSignerAccounts",qr()],["numReadonlySignerAccounts",qr()],["numReadonlyNonSignerAccounts",qr()]])}var Zr;function Md(){return Zr||(Zr=T(Y([["programAddressIndex",D()],["accountIndices",z(D(),{size:V()})],["data",or(Re(),V())]]),e=>{var t,n;return e.accountIndices!==void 0&&e.data!==void 0?e:{...e,accountIndices:(t=e.accountIndices)!=null?t:[],data:(n=e.data)!=null?n:new Uint8Array(0)}})),Zr}var Qr;function Fd(){return Qr||(Qr=p(ne([["programAddressIndex",L()],["accountIndices",P(L(),{size:M()})],["data",ir(fe(),M())]]),e=>{if(e.accountIndices.length&&e.data.byteLength)return e;let{accountIndices:t,data:n,...r}=e;return {...r,...t.length?{accountIndices:t}:null,...n.byteLength?{data:n}:null}})),Qr}var eo=128;function ga(){return O({getSizeFromValue:e=>e==="legacy"?0:1,maxSize:1,write:(e,t,n)=>{if(e==="legacy")return n;if(e<0||e>127)throw new _(gn,{actualVersion:e});return t.set([e|eo],n),n+1}})}function ft(){return N({maxSize:1,read:(e,t)=>{let n=e[t];return n&eo?[n^eo,t+1]:["legacy",t]}})}function EA(){return E(ga(),ft())}function Aa(){return Y(Ta())}function Sa(){return T(Y([...Ta(),["addressTableLookups",kd()]]),e=>{var t;return e.version==="legacy"?e:{...e,addressTableLookups:(t=e.addressTableLookups)!=null?t:[]}})}function Ta(){return [["version",ga()],["header",Ud()],["staticAccounts",z(qe(),{size:V()})],["lifetimeToken",w(wd(),32)],["instructions",z(Md(),{size:V()})]]}function zd(){return [["version",ft()],["header",Bd()],["staticAccounts",P(ae(),{size:M()})],["lifetimeToken",v(vd(),32)],["instructions",P(Fd(),{size:M()})],["addressTableLookups",Vd()]]}function kd(){return z(Pd(),{size:V()})}function Vd(){return P(xd(),{size:M()})}function no(){return O({getSizeFromValue:e=>e.version==="legacy"?Aa().getSizeFromValue(e):Sa().getSizeFromValue(e),write:(e,t,n)=>e.version==="legacy"?Aa().write(e,t,n):Sa().write(e,t,n)})}function Gd(){return p(ne(zd()),({addressTableLookups:e,...t})=>t.version==="legacy"||!(e!=null&&e.length)?t:{...t,addressTableLookups:e})}function AA(){return E(no(),Gd())}function Oa(e,t,n){var r;e[t]=n((r=e[t])!=null?r:{role:h.READONLY});}var C=Symbol("AddressMapTypeProperty");function Hd(e,t){let n={[e]:{[C]:0,role:h.WRITABLE_SIGNER}},r=new Set;for(let o of t){Oa(n,o.programAddress,a=>{if(r.add(o.programAddress),C in a){if(Ee(a.role))switch(a[C]){case 0:throw new _(On,{programAddress:o.programAddress});default:throw new _(ke,{programAddress:o.programAddress})}if(a[C]===2)return a}return {[C]:2,role:h.READONLY}});let i;if(o.accounts)for(let a of o.accounts)Oa(n,a.address,s=>{let{address:c,...u}=a;if(C in s)switch(s[C]){case 0:return s;case 1:{let d=br(s.role,u.role);if("lookupTableAddress"in u){if(s.lookupTableAddress!==u.lookupTableAddress&&(i||(i=Ze()))(u.lookupTableAddress,s.lookupTableAddress)<0)return {[C]:1,...u,role:d}}else if(W(u.role))return {[C]:2,role:d};return s.role!==d?{...s,role:d}:s}case 2:{let d=br(s.role,u.role);if(r.has(a.address)){if(Ee(u.role))throw new _(ke,{programAddress:a.address});return s.role!==d?{...s,role:d}:s}else return "lookupTableAddress"in u&&!W(s.role)?{...u,[C]:1,role:d}:s.role!==d?{...s,role:d}:s}}return "lookupTableAddress"in u?{...u,[C]:1}:{...u,[C]:2}});}return n}function $d(e){let t;return Object.entries(e).sort(([r,o],[i,a])=>{if(o[C]!==a[C]){if(o[C]===0)return -1;if(a[C]===0)return 1;if(o[C]===2)return -1;if(a[C]===2)return 1}let s=W(o.role);if(s!==W(a.role))return s?-1:1;let c=Ee(o.role);return c!==Ee(a.role)?c?-1:1:(t||(t=Ze()),o[C]===1&&a[C]===1&&o.lookupTableAddress!==a.lookupTableAddress?t(o.lookupTableAddress,a.lookupTableAddress):t(r,i))}).map(([r,o])=>({address:r,...o}))}function Wd(e){var n;let t={};for(let r of e){if(!("lookupTableAddress"in r))continue;let o=t[n=r.lookupTableAddress]||(t[n]={readableIndices:[],writableIndices:[]});r.role===h.WRITABLE?o.writableIndices.push(r.addressIndex):o.readableIndices.push(r.addressIndex);}return Object.keys(t).sort(Ze()).map(r=>({lookupTableAddress:r,...t[r]}))}function jd(e){let t=0,n=0,r=0;for(let o of e){if("lookupTableAddress"in o)break;let i=Ee(o.role);W(o.role)?(r++,i||n++):i||t++;}return {numReadonlyNonSignerAccounts:t,numReadonlySignerAccounts:n,numSignerAccounts:r}}function Xd(e){let t={};for(let[n,r]of e.entries())t[r.address]=n;return t}function Kd(e,t){let n=Xd(t);return e.map(({accounts:r,data:o,programAddress:i})=>({programAddressIndex:n[i],...r?{accountIndices:r.map(({address:a})=>n[a])}:null,...o?{data:o}:null}))}function Yd(e){return "nonce"in e?e.nonce:e.blockhash}function Jd(e){let t=e.findIndex(r=>"lookupTableAddress"in r);return (t===-1?e:e.slice(0,t)).map(({address:r})=>r)}function pa(e){let t=Hd(e.feePayer.address,e.instructions),n=$d(t);return {...e.version!=="legacy"?{addressTableLookups:Wd(n)}:null,header:jd(n),instructions:Kd(e.instructions,n),lifetimeToken:Yd(e.lifetimeConstraint),staticAccounts:Jd(n),version:e.version}}function qd(e,t,n){for(let[r,o]of Object.entries(n))for(let i=0;i<o.length;i++)if(e===o[i])return {address:e,addressIndex:i,lookupTableAddress:r,role:t}}function SA(e,t){let n=new Set(Object.values(t).flatMap(i=>i)),r=[],o=!1;for(let i of e.instructions){if(!i.accounts){r.push(i);continue}let a=[],s=!1;for(let c of i.accounts){if("lookupTableAddress"in c||!n.has(c.address)||W(c.role)){a.push(c);continue}let u=qd(c.address,c.role,t);a.push(Object.freeze(u)),s=!0,o=!0;}r.push(Object.freeze(s?{...i,accounts:a}:i));}return Object.freeze(o?{...e,instructions:r}:e)}function Zd({version:e}){return Object.freeze({instructions:Object.freeze([]),version:e})}var Ia="SysvarRecentB1ockHashes11111111111111111111",Ca="11111111111111111111111111111111";function OA(e){if(!Et(e))throw new _(mn)}function Na(e,t){return {accounts:[{address:e,role:h.WRITABLE},{address:Ia,role:h.READONLY},{address:t,role:h.READONLY_SIGNER}],data:new Uint8Array([4,0,0,0]),programAddress:Ca}}function ro(e){var t;return e.programAddress===Ca&&e.data!=null&&Qd(e.data)&&((t=e.accounts)==null?void 0:t.length)===3&&e.accounts[0].address!=null&&e.accounts[0].role===h.WRITABLE&&e.accounts[1].address===Ia&&e.accounts[1].role===h.READONLY&&e.accounts[2].address!=null&&W(e.accounts[2].role)}function Qd(e){return e.byteLength===4&&e[0]===4&&e[1]===0&&e[2]===0&&e[3]===0}function Et(e){return "lifetimeConstraint"in e&&typeof e.lifetimeConstraint.nonce=="string"&&e.instructions[0]!=null&&ro(e.instructions[0])}function el(e,t,n){return e.accounts[0].address===t&&e.accounts[2].address===n}function tl({nonce:e,nonceAccountAddress:t,nonceAuthorityAddress:n},r){let o,i=r.instructions[0];if(i&&ro(i))if(el(i,t,n)){if(Et(r)&&r.lifetimeConstraint.nonce===e)return r;o=[i,...r.instructions.slice(1)];}else o=[Object.freeze(Na(t,n)),...r.instructions.slice(1)];else o=[Object.freeze(Na(t,n)),...r.instructions];return Object.freeze({...r,instructions:Object.freeze(o),lifetimeConstraint:Object.freeze({nonce:e})})}function nl(e,t){var r;if("feePayer"in t&&e===((r=t.feePayer)==null?void 0:r.address)&&rl(t.feePayer))return t;let n={...t,feePayer:Object.freeze({address:e})};return Object.freeze(n),n}function rl(e){return !!e&&"address"in e&&typeof e.address=="string"&&Object.keys(e).length===1}function oo(e,t){return ol([e],t)}function ol(e,t){return Object.freeze({...t,instructions:Object.freeze([...t.instructions,...e])})}function NA(e,t){return il([e],t)}function il(e,t){return Object.freeze({...t,instructions:Object.freeze([...e,...t.instructions])})}function al(e){let{header:t}=e,n=t.numSignerAccounts-t.numReadonlySignerAccounts,r=e.staticAccounts.length-t.numSignerAccounts-t.numReadonlyNonSignerAccounts,o=[],i=0;for(let a=0;a<n;a++)o.push({address:e.staticAccounts[i],role:h.WRITABLE_SIGNER}),i++;for(let a=0;a<t.numReadonlySignerAccounts;a++)o.push({address:e.staticAccounts[i],role:h.READONLY_SIGNER}),i++;for(let a=0;a<r;a++)o.push({address:e.staticAccounts[i],role:h.WRITABLE}),i++;for(let a=0;a<t.numReadonlyNonSignerAccounts;a++)o.push({address:e.staticAccounts[i],role:h.READONLY}),i++;return o}function sl(e,t){let r=e.map(a=>a.lookupTableAddress).filter(a=>t[a]===void 0);if(r.length>0)throw new _(Tn,{lookupTableAddresses:r});let o=[],i=[];for(let a of e){let s=t[a.lookupTableAddress],c=Math.max(...a.readableIndices,...a.writableIndices);if(c>=s.length)throw new _(pn,{highestKnownIndex:s.length-1,highestRequestedIndex:c,lookupTableAddress:a.lookupTableAddress});let u=a.readableIndices.map(l=>({address:s[l],addressIndex:l,lookupTableAddress:a.lookupTableAddress,role:h.READONLY}));o.push(...u);let d=a.writableIndices.map(l=>({address:s[l],addressIndex:l,lookupTableAddress:a.lookupTableAddress,role:h.WRITABLE}));i.push(...d);}return [...i,...o]}function cl(e,t){var i,a;let n=(i=t[e.programAddressIndex])==null?void 0:i.address;if(!n)throw new _(In,{index:e.programAddressIndex});let r=(a=e.accountIndices)==null?void 0:a.map(s=>t[s]),{data:o}=e;return Object.freeze({programAddress:n,...r&&r.length?{accounts:Object.freeze(r)}:{},...o&&o.length?{data:o}:{}})}function ul(e,t,n){if(!t||!ro(t))return {blockhash:e,lastValidBlockHeight:n!=null?n:2n**64n-1n};{let r=t.accounts[0].address;he(r);let o=t.accounts[2].address;return he(o),{nonce:e,nonceAccountAddress:r,nonceAuthorityAddress:o}}}function ha(e,t){var u;let n=e.staticAccounts[0];if(!n)throw new _(Cn);let r=al(e),o="addressTableLookups"in e&&e.addressTableLookups!==void 0&&e.addressTableLookups.length>0?sl(e.addressTableLookups,(u=t==null?void 0:t.addressesByLookupTableAddress)!=null?u:{}):[],i=[...r,...o],a=e.instructions.map(d=>cl(d,i)),s=a[0],c=ul(e.lifetimeToken,s,t==null?void 0:t.lastValidBlockHeight);return k(Zd({version:e.version}),d=>nl(n,d),d=>a.reduce((l,f)=>oo(f,l),d),d=>"blockhash"in c?to(c,d):tl(c,d))}function _l(e){let t=Object.values(e);if(t.length===0)throw new _(Dn);return t.map(n=>n||new Uint8Array(64).fill(0))}function dl(){return T(z(w(Re(),64),{size:V()}),_l)}function La(){return Y([["signatures",dl()],["messageBytes",Re()]])}function ll(){return p(ne([["signatures",P(v(fe(),64),{size:M()})],["messageBytes",fe()]]),Rl)}function DA(){return E(La(),ll())}function Rl(e){let{messageBytes:t,signatures:n}=e,r=F([ft(),_r(L(),2),P(ae(),{size:M()})]),[o,i,a]=r.decode(t),s=a.slice(0,i);if(s.length!==n.length)throw new _(yn,{numRequiredSignatures:i,signaturesLength:n.length,signerAddresses:s});let c={};return s.forEach((u,d)=>{let l=n[d];l.every(f=>f===0)?c[u]=null:c[u]=l;}),{messageBytes:t,signatures:Object.freeze(c)}}function At(e){let t=pa(e),n=no().encode(t),r=t.staticAccounts.slice(0,t.header.numSignerAccounts),o={};for(let s of r)o[s]=null;let i;Pe(e)?i={blockhash:e.lifetimeConstraint.blockhash,lastValidBlockHeight:e.lifetimeConstraint.lastValidBlockHeight}:i={nonce:e.lifetimeConstraint.nonce,nonceAccountAddress:e.instructions[0].accounts[0].address};let a={lifetimeConstraint:i,messageBytes:n,signatures:Object.freeze(o)};return Object.freeze(a)}var io;function ao(e){io||(io=Z());let t=Object.values(e.signatures)[0];if(!t)throw new _(Ln);return io.decode(t)}function fl(e,t){return e.length===t.length&&e.every((n,r)=>n===t[r])}async function so(e,t){let n,r;if(await Promise.all(e.map(async o=>{let i=await Qe(o.publicKey),a=t.signatures[i];if(a===void 0){r||(r=new Set),r.add(i);return}if(r)return;let s=await ye(o.privateKey,t.messageBytes);a!==null&&fl(s,a)||(n||(n={}),n[i]=s);})),r&&r.size>0){let o=Object.keys(t.signatures);throw new _(bn,{expectedAddresses:o,unexpectedAddresses:[...r]})}return n?Object.freeze({...t,signatures:Object.freeze({...t.signatures,...n})}):t}async function yA(e,t){let n=await so(e,t);return co(n),Object.freeze(n),n}function co(e){let t=[];if(Object.entries(e.signatures).forEach(([n,r])=>{r||t.push(n);}),t.length>0)throw new _(hn,{addresses:t})}function St(e){let t=La().encode(e);return Ar().decode(t)}function xe(e){let t={};return e.forEach(n=>{if(!t[n.address])t[n.address]=n;else if(t[n.address]!==n)throw new _(cn,{address:n.address})}),Object.values(t)}function Ne(e){return "modifyAndSignTransactions"in e&&typeof e.modifyAndSignTransactions=="function"}function MA(e){if(!Ne(e))throw new _(fn,{address:e.address})}function oe(e){return "signTransactions"in e&&typeof e.signTransactions=="function"}function FA(e){if(!oe(e))throw new _(En,{address:e.address})}function Ot(e){return "signAndSendTransactions"in e&&typeof e.signAndSendTransactions=="function"}function zA(e){if(!Ot(e))throw new _(An,{address:e.address})}function Nt(e){return oe(e)||Ne(e)||Ot(e)}function kA(e){if(!Nt(e))throw new _(Rn,{address:e.address})}function El(e){var t;return xe(((t=e.accounts)!=null?t:[]).flatMap(n=>"signer"in n?n.signer:[]))}function uo(e){return xe([...e.feePayer&&Nt(e.feePayer)?[e.feePayer]:[],...e.instructions.flatMap(El)])}function Al(e,t){if(!t.accounts||t.accounts.length===0)return t;let n=new Map(xe(e).map(r=>[r.address,r]));return Object.freeze({...t,accounts:t.accounts.map(r=>{let o=n.get(r.address);return !W(r.role)||"signer"in r||!o?r:Object.freeze({...r,signer:o})})})}function VA(e,t){return t.instructions.length===0?t:Object.freeze({...t,instructions:t.instructions.map(n=>Al(e,n))})}function GA(e,t){Object.freeze(e);let n={...t,feePayer:e};return Object.freeze(n),n}function _o(e){return "signMessages"in e&&typeof e.signMessages=="function"}function HA(e){if(!_o(e))throw new _(ln,{address:e.address})}function Sl(e){return "keyPair"in e&&typeof e.keyPair=="object"&&_o(e)&&oe(e)}function $A(e){if(!Sl(e))throw new _(un,{address:e.address})}async function lo(e){let t=await Qe(e.publicKey);return Object.freeze({address:t,keyPair:e,signMessages:r=>Promise.all(r.map(async o=>Object.freeze({[t]:await ye(e.privateKey,o.content)}))),signTransactions:r=>Promise.all(r.map(async o=>{let i=await so([e],o);return Object.freeze({[t]:i.signatures[t]})}))})}async function WA(){return await lo(await yi())}async function jA(e,t){return await lo(await wi(e,t))}async function XA(e,t){return await lo(await vi(e,t))}function ba(e){return gr(e.address)&&"modifyAndSignMessages"in e&&typeof e.modifyAndSignMessages=="function"}function KA(e){if(!ba(e))throw new _(dn,{address:e.address})}function Ol(e){return _o(e)||ba(e)}function YA(e){if(!Ol(e))throw new _(_n,{address:e.address})}function JA(e){return Object.freeze({address:e,signMessages:n=>Promise.resolve(n.map(()=>Object.freeze({}))),signTransactions:n=>Promise.resolve(n.map(()=>Object.freeze({})))})}function qA(e){try{return Da(e),!0}catch{return !1}}function Da(e){let n=uo(e).filter(Ot);if(n.length===0)throw new _(ze);if(n.filter(o=>!oe(o)&&!Ne(o)).length>1)throw new _(Sn)}async function Nl(e,t){let{partialSigners:n,modifyingSigners:r}=ya(xe(uo(e).filter(Nt)),{identifySendingSigner:!1});return await wa(e,r,n,t)}async function ZA(e,t){let n=await Nl(e,t);return co(n),n}async function QA(e,t){Da(e);let n=t==null?void 0:t.abortSignal,{partialSigners:r,modifyingSigners:o,sendingSigner:i}=ya(xe(uo(e).filter(Nt)));n==null||n.throwIfAborted();let a=await wa(e,o,r,t);if(!i)throw new _(ze);n==null||n.throwIfAborted();let[s]=await i.signAndSendTransactions([a],t);return n==null||n.throwIfAborted(),s}function ya(e,t={}){var s;let r=((s=t.identifySendingSigner)!=null?s:!0)?ml(e):null,o=e.filter(c=>c!==r&&(Ne(c)||oe(c))),i=gl(o),a=o.filter(oe).filter(c=>!i.includes(c));return Object.freeze({modifyingSigners:i,partialSigners:a,sendingSigner:r})}function ml(e){let t=e.filter(Ot);if(t.length===0)return null;let n=t.filter(r=>!Ne(r)&&!oe(r));return n.length>0?n[0]:t[0]}function gl(e){let t=e.filter(Ne);if(t.length===0)return [];let n=t.filter(r=>!oe(r));return n.length>0?n:[t[0]]}async function wa(e,t=[],n=[],r){var c,u;let o=At(e),i=await t.reduce(async(d,l)=>{var A;(A=r==null?void 0:r.abortSignal)==null||A.throwIfAborted();let[f]=await l.modifyAndSignTransactions([await d],r);return Object.freeze(f)},Promise.resolve(o));(c=r==null?void 0:r.abortSignal)==null||c.throwIfAborted();let a=await Promise.all(n.map(async d=>{let[l]=await d.signTransactions([i],r);return l})),s={...i,signatures:Object.freeze(a.reduce((d,l)=>({...d,...l}),(u=i.signatures)!=null?u:{}))};return Object.freeze(s)}var Tl=globalThis.TextEncoder;function eS(e,t={}){return Object.freeze({content:typeof e=="string"?new Tl().encode(e):e,signatures:Object.freeze({...t})})}function va({rpc:e,rpcSubscriptions:t}){return async function({abortSignal:r,commitment:o,lastValidBlockHeight:i}){r.throwIfAborted();let a=new AbortController,s=()=>{a.abort();};r.addEventListener("abort",s,{signal:a.signal});async function c(){let{absoluteSlot:u,blockHeight:d}=await e.getEpochInfo({commitment:o}).send({abortSignal:a.signal});return {blockHeight:d,differenceBetweenSlotHeightAndBlockHeight:u-d}}try{let[u,{blockHeight:d,differenceBetweenSlotHeightAndBlockHeight:l}]=await Promise.all([t.slotNotifications().subscribe({abortSignal:a.signal}),c()]);r.throwIfAborted();let f=d;if(f<=i){let A=l;for await(let S of u){let{slot:m}=S;if(m-A>i){let{blockHeight:y,differenceBetweenSlotHeightAndBlockHeight:I}=await c();if(f=y,f>i)break;A=I;}}}throw r.throwIfAborted(),new _(pt,{currentBlockHeight:f,lastValidBlockHeight:i})}finally{a.abort();}}}var Ro=40;function Pa({rpc:e,rpcSubscriptions:t}){return async function({abortSignal:r,commitment:o,currentNonceValue:i,nonceAccountAddress:a}){let s=new AbortController;function c(){s.abort();}r.addEventListener("abort",c,{signal:s.signal});let u=await t.accountNotifications(a,{commitment:o,encoding:"base64"}).subscribe({abortSignal:s.signal}),d=Z(),l=Ie();function f([m]){let I=l.encode(m).slice(Ro,Ro+32);return d.decode(I)}let A=(async()=>{for await(let m of u){let y=f(m.value.data);if(y!==i)throw new _(Ue,{actualNonceValue:y,expectedNonceValue:i})}})(),S=(async()=>{let{value:m}=await e.getAccountInfo(a,{commitment:o,dataSlice:{length:32,offset:Ro},encoding:"base58"}).send({abortSignal:s.signal});if(!m)throw new _(It,{nonceAccountAddress:a});let y=m.data[0];if(y!==i)throw new _(Ue,{actualNonceValue:y,expectedNonceValue:i});await new Promise(()=>{});})();try{return await Oe([A,S])}finally{s.abort();}}}function me({rpc:e,rpcSubscriptions:t}){return async function({abortSignal:r,commitment:o,signature:i}){let a=new AbortController;function s(){a.abort();}r.addEventListener("abort",s,{signal:a.signal});let c=await t.signatureNotifications(i,{commitment:o}).subscribe({abortSignal:a.signal}),u=(async()=>{for await(let l of c){if(l.value.err)throw $e(l.value.err);return}})(),d=(async()=>{let{value:l}=await e.getSignatureStatuses([i]).send({abortSignal:a.signal}),f=l[0];f&&f.confirmationStatus&&Rt(f.confirmationStatus,o)>=0||await new Promise(()=>{});})();try{return await Oe([u,d])}finally{a.abort();}}}async function xa({abortSignal:e,commitment:t}){return await new Promise((n,r)=>{let o=c=>{clearTimeout(s);let u=new DOMException(c.target.reason,"AbortError");r(u);};e.addEventListener("abort",o);let i=t==="processed"?3e4:6e4,a=performance.now(),s=setTimeout(()=>{let c=performance.now()-a;r(new DOMException(`Timeout elapsed after ${c} ms`,"TimeoutError"));},i);})}async function fo(e,t,n){let{abortSignal:r,commitment:o,getRecentSignatureConfirmationPromise:i}=t;r==null||r.throwIfAborted();let a=new AbortController;if(r){let s=()=>{a.abort();};r.addEventListener("abort",s,{signal:a.signal});}try{let s=n({...t,abortSignal:a.signal});return await Oe([i({abortSignal:a.signal,commitment:o,signature:e}),...s])}finally{a.abort();}}async function Ua(e){await fo(ao(e.transaction),e,function({abortSignal:n,commitment:r,getNonceInvalidationPromise:o,transaction:i}){return [o({abortSignal:n,commitment:r,currentNonceValue:i.lifetimeConstraint.nonce,nonceAccountAddress:i.lifetimeConstraint.nonceAccountAddress})]});}async function Ba(e){await fo(ao(e.transaction),e,function({abortSignal:n,commitment:r,getBlockHeightExceedencePromise:o,transaction:i}){return [o({abortSignal:n,commitment:r,lastValidBlockHeight:i.lifetimeConstraint.lastValidBlockHeight})]});}async function Ma(e){await fo(e.signature,e,function({abortSignal:n,commitment:r,getTimeoutPromise:o}){return [o({abortSignal:n,commitment:r})]});}async function Fa({abortSignal:e,commitment:t,confirmSignatureOnlyTransaction:n,lamports:r,recipientAddress:o,rpc:i}){let a=await i.requestAirdrop(o,r,{commitment:t}).send({abortSignal:e});return await n({abortSignal:e,commitment:t,signature:a}),a}function dS({rpc:e,rpcSubscriptions:t}){let n=me({rpc:e,rpcSubscriptions:t});async function r(o){await Ma({...o,getRecentSignatureConfirmationPromise:n,getTimeoutPromise:xa});}return async function(i){return await Fa({...i,confirmSignatureOnlyTransaction:r,rpc:e})}}var za="ComputeBudget111111111111111111111111111111",pl={blockhash:"11111111111111111111111111111111",lastValidBlockHeight:0n},ka=2;function Il(e){let t=new Uint8Array(5);return t[0]=ka,Le().write(e,t,1),Object.freeze({data:t,programAddress:za})}function Cl(e){return Li(e,za)&&bi(e)&&e.data[0]===ka}async function Va({abortSignal:e,rpc:t,transactionMessage:n,...r}){let o=Et(n),i;o||Pe(n)?i=n:i=to(pl,n);let a=n.instructions.findIndex(Cl),s=Il(14e5);if(a===-1)i=oo(s,i);else {let d=[...i.instructions];d.splice(a,1,s),i=Object.freeze({...i,instructions:d});}let c=At(i),u=St(c);try{let{value:{err:d,unitsConsumed:l}}=await t.simulateTransaction(u,{...r,encoding:"base64",replaceRecentBlockhash:!o,sigVerify:!1}).send({abortSignal:e});if(l==null)throw new _(Ve);let f=l>4294967295n?4294967295:Number(l);if(d)throw new _(Ge,{cause:d,unitsConsumed:f});return f}catch(d){throw J(d,Ge)?d:new _(Ve,{cause:d})}}function CS({rpc:e}){return async function(n,r){return await Va({...r,rpc:e,transactionMessage:n})}}async function hl(e,t,n){let r=await ni(t,e,n);return ei(r),ri(r),r.reduce((o,i)=>({...o,[i.address]:i.data.addresses}),{})}async function wS(e,t,n){let o=("addressTableLookups"in e&&e.addressTableLookups!==void 0&&e.addressTableLookups.length>0?e.addressTableLookups:[]).map(c=>c.lookupTableAddress),{lastValidBlockHeight:i,...a}=n!=null?n:{},s=o.length>0?await hl(o,t,a):{};return ha(e,{addressesByLookupTableAddress:s,lastValidBlockHeight:i})}function Ll(e,t){return !(t!=null&&t.preflightCommitment)&&Rt(e,"finalized")<0?{...t,preflightCommitment:e}:t}async function mt({abortSignal:e,commitment:t,rpc:n,transaction:r,...o}){let i=St(r);return await n.sendTransaction(i,{...Ll(t,o),encoding:"base64"}).send({abortSignal:e})}async function Ga({abortSignal:e,commitment:t,confirmDurableNonceTransaction:n,rpc:r,transaction:o,...i}){let a=await mt({...i,abortSignal:e,commitment:t,rpc:r,transaction:o});return await n({abortSignal:e,commitment:t,transaction:o}),a}async function Ha({abortSignal:e,commitment:t,confirmRecentTransaction:n,rpc:r,transaction:o,...i}){let a=await mt({...i,abortSignal:e,commitment:t,rpc:r,transaction:o});return await n({abortSignal:e,commitment:t,transaction:o}),a}function GS({rpc:e,rpcSubscriptions:t}){let n=Pa({rpc:e,rpcSubscriptions:t}),r=me({rpc:e,rpcSubscriptions:t});async function o(i){await Ua({...i,getNonceInvalidationPromise:n,getRecentSignatureConfirmationPromise:r});}return async function(a,s){await Ga({...s,confirmDurableNonceTransaction:o,rpc:e,transaction:a});}}function jS({rpc:e,rpcSubscriptions:t}){let n=va({rpc:e,rpcSubscriptions:t}),r=me({rpc:e,rpcSubscriptions:t});async function o(i){await Ba({...i,getBlockHeightExceedencePromise:n,getRecentSignatureConfirmationPromise:r});}return async function(a,s){await Ha({...s,confirmRecentTransaction:o,rpc:e,transaction:a});}}function YS({rpc:e}){return async function(n,r){await mt({...r,rpc:e,transaction:n});}}
|
5
|
+
var Xa=Object.defineProperty;var Ka=(e,t,n)=>t in e?Xa(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var gt=(e,t,n)=>Ka(e,typeof t!="symbol"?t+"":t,n);var pt=1,Ue=2,It=3,Ct=4,ht=5,Lt=6,bt=7,Dt=8,yt=9,Ao=-32700,Eo=-32603,So=-32602,Oo=-32601,No=-32600,Ya=-32016,mo=-32015,go=-32014,Ja=-32013,To=-32012,qa=-32011,po=-32010,Io=-32009,Za=-32008,Co=-32007,ho=-32006,Qa=-32005,Lo=-32004,es=-32003,Tt=-32002,bo=-32001,wt=28e5,vt=2800001,ts=2800002,Pt=2800003,xt=2800004,Ut=2800005,Bt=2800006,Be=2800007,Me=2800008,Mt=2800009,Ft=2800010,zt=323e4,kt=32300001,Vt=3230002,Gt=3230003,Ht=3230004,$t=361e4,Wt=3610001,jt=3610002,Xt=3610003,Kt=3610004,Yt=3610005,Jt=3610006,qt=3610007,Zt=3611e3,Qt=3704e3,en=3704001,tn=3704002,nn=3704003,rn=3704004,on=4128e3,an=4128001,sn=4128002,Do=4615e3,ns=4615001,rs=4615002,os=4615003,is=4615004,as=4615005,ss=4615006,cs=4615007,us=4615008,_s=4615009,ds=4615010,ls=4615011,Rs=4615012,fs=4615013,As=4615014,Es=4615015,Ss=4615016,Os=4615017,Ns=4615018,ms=4615019,gs=4615020,Ts=4615021,ps=4615022,Is=4615023,Cs=4615024,hs=4615025,Fe=4615026,Ls=4615027,bs=4615028,Ds=4615029,ys=4615030,ws=4615031,vs=4615032,Ps=4615033,xs=4615034,Us=4615035,Bs=4615036,Ms=4615037,Fs=4615038,zs=4615039,ks=4615040,Vs=4615041,Gs=4615042,Hs=4615043,$s=4615044,yo=4615045,Ws=4615046,js=4615047,Xs=4615048,Ks=4615049,Ys=4615050,Js=4615051,qs=4615052,Zs=4615053,Qs=4615054,cn=5508e3,un=5508001,_n=5508002,dn=5508003,ln=5508004,Rn=5508005,fn=5508006,An=5508007,En=5508008,Sn=5508009,ze=5508010,ec=5508011,On=5663e3,ke=5663001,Nn=5663002,mn=5663003,gn=5663004,Tn=5663005,pn=5663006,In=5663007,Cn=5663008,hn=5663009,tc=5663010,nc=5663011,Ln=5663012,rc=5663013,oc=5663014,bn=5663015,Dn=5663016,yn=5663017,Ve=5663018,Ge=5663019,wo=705e4,ic=7050001,ac=7050002,sc=7050003,cc=7050004,uc=7050005,_c=7050006,dc=7050007,lc=7050008,Rc=7050009,fc=7050010,Ac=7050011,Ec=7050012,Sc=7050013,Oc=7050014,Nc=7050015,mc=7050016,gc=7050017,Tc=7050018,pc=7050019,Ic=7050020,Cc=7050021,hc=7050022,Lc=7050023,bc=7050024,Dc=7050025,yc=7050026,wc=7050027,vc=7050028,Pc=7050029,vo=7050030,Po=7050031,xc=7050032,Uc=7050033,Bc=7050034,xo=7050035,Mc=7050036,wn=8078e3,vn=8078001,Pn=8078002,xn=8078003,Un=8078004,Bn=8078005,Mn=8078006,Fn=8078007,zn=8078008,kn=8078009,Vn=8078010,Gn=8078011,X=8078012,ge=8078013,Hn=8078014,Fc=8078015,zc=8078016,$n=8078017,Wn=8078018,kc=8078019,jn=8078020,Xn=8078021,He=8078022,Te=81e5,Uo=8100001,Kn=8100002,Yn=8100003,Jn=819e4,qn=8190001,Zn=8190002,ce=8190003,Qn=8190004,er=99e5,tr=9900001,Vc=9900002,nr=9900003,rr=9900004;function Bo(e){return Array.isArray(e)?"%5B"+e.map(Bo).join("%2C%20")+"%5D":typeof e=="bigint"?`${e}n`:encodeURIComponent(String(e!=null&&Object.getPrototypeOf(e)===null?{...e}:e))}function Gc([e,t]){return `${e}=${Bo(t)}`}function Hc(e){let t=Object.entries(e).map(Gc).join("&");return btoa(t)}function $c(e,t={}){{let n=`Solana error #${e}; Decode this error by running \`npx @solana/errors decode -- ${e}`;return Object.keys(t).length&&(n+=` '${Hc(t)}'`),`${n}\``}}function J(e,t){return e instanceof Error&&e.name==="SolanaError"?t!==void 0?e.context.__code===t:!0:!1}var _=class extends Error{constructor(...[t,n]){let r,o;if(n){let{cause:a,...s}=n;a&&(o={cause:a}),Object.keys(s).length>0&&(r=s);}let i=$c(t,r);super(i,o);gt(this,"cause",this.cause);gt(this,"context");this.context={__code:t,...r},this.name="SolanaError";}};function ue(...e){"captureStackTrace"in Error&&typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(...e);}function Mo({errorCodeBaseOffset:e,getErrorContext:t,orderedErrorNames:n,rpcEnumError:r},o){let i,a;typeof r=="string"?i=r:(i=Object.keys(r)[0],a=r[i]);let s=n.indexOf(i),c=e+s,u=t(c,i,a),d=new _(c,u);return ue(d,o),d}var Wc=["GenericError","InvalidArgument","InvalidInstructionData","InvalidAccountData","AccountDataTooSmall","InsufficientFunds","IncorrectProgramId","MissingRequiredSignature","AccountAlreadyInitialized","UninitializedAccount","UnbalancedInstruction","ModifiedProgramId","ExternalAccountLamportSpend","ExternalAccountDataModified","ReadonlyLamportChange","ReadonlyDataModified","DuplicateAccountIndex","ExecutableModified","RentEpochModified","NotEnoughAccountKeys","AccountDataSizeChanged","AccountNotExecutable","AccountBorrowFailed","AccountBorrowOutstanding","DuplicateAccountOutOfSync","Custom","InvalidError","ExecutableDataModified","ExecutableLamportChange","ExecutableAccountNotRentExempt","UnsupportedProgramId","CallDepth","MissingAccount","ReentrancyNotAllowed","MaxSeedLengthExceeded","InvalidSeeds","InvalidRealloc","ComputationalBudgetExceeded","PrivilegeEscalation","ProgramEnvironmentSetupFailure","ProgramFailedToComplete","ProgramFailedToCompile","Immutable","IncorrectAuthority","BorshIoError","AccountNotRentExempt","InvalidAccountOwner","ArithmeticOverflow","UnsupportedSysvar","IllegalOwner","MaxAccountsDataAllocationsExceeded","MaxAccountsExceeded","MaxInstructionTraceLengthExceeded","BuiltinProgramsMustConsumeComputeUnits"];function Fo(e,t){let n=Number(e);return Mo({errorCodeBaseOffset:4615001,getErrorContext(r,o,i){return r===Do?{errorName:o,index:n,...i!==void 0?{instructionErrorContext:i}:null}:r===Fe?{code:Number(i),index:n}:r===yo?{encodedData:i,index:n}:{index:n}},orderedErrorNames:Wc,rpcEnumError:t},Fo)}var jc=["AccountInUse","AccountLoadedTwice","AccountNotFound","ProgramAccountNotFound","InsufficientFundsForFee","InvalidAccountForFee","AlreadyProcessed","BlockhashNotFound","CallChainTooDeep","MissingSignatureForFee","InvalidAccountIndex","SignatureFailure","InvalidProgramForExecution","SanitizeFailure","ClusterMaintenance","AccountBorrowOutstanding","WouldExceedMaxBlockCostLimit","UnsupportedVersion","InvalidWritableAccount","WouldExceedMaxAccountCostLimit","WouldExceedAccountDataBlockLimit","TooManyAccountLocks","AddressLookupTableNotFound","InvalidAddressLookupTableOwner","InvalidAddressLookupTableData","InvalidAddressLookupTableIndex","InvalidRentPayingAccount","WouldExceedMaxVoteCostLimit","WouldExceedAccountDataTotalLimit","DuplicateInstruction","InsufficientFundsForRent","MaxLoadedAccountsDataSizeExceeded","InvalidLoadedAccountsDataSizeLimit","ResanitizationNeeded","ProgramExecutionTemporarilyRestricted","UnbalancedTransaction"];function $e(e){return typeof e=="object"&&"InstructionError"in e?Fo(...e.InstructionError):Mo({errorCodeBaseOffset:7050001,getErrorContext(t,n,r){if(t===wo)return {errorName:n,...r!==void 0?{transactionErrorContext:r}:null};if(t===vo)return {index:Number(r)};if(t===Po||t===xo)return {accountIndex:Number(r.account_index)}},orderedErrorNames:jc,rpcEnumError:e},$e)}function pe({code:e,data:t,message:n}){let r,o=Number(e);if(o===Tt){let{err:i,...a}=t,s=i?{cause:$e(i)}:null;r=new _(Tt,{...a,...s});}else {let i;switch(o){case Eo:case So:case No:case Oo:case Ao:case To:case bo:case Lo:case go:case po:case Io:case Co:case ho:case mo:i={__serverMessage:n};break;default:typeof t=="object"&&!Array.isArray(t)&&(i=t);}r=new _(o,i);}return ue(r,pe),r}var Pl=e=>{let t=e.filter(i=>i.length);if(t.length===0)return e.length?e[0]:new Uint8Array;if(t.length===1)return t[0];let n=t.reduce((i,a)=>i+a.length,0),r=new Uint8Array(n),o=0;return t.forEach(i=>{r.set(i,o),o+=i.length;}),r},Xc=(e,t)=>{if(e.length>=t)return e;let n=new Uint8Array(t).fill(0);return n.set(e),n},Kc=(e,t)=>Xc(e.length<=t?e:e.slice(0,t),t);function _e(e,t,n){let r=n===0&&e.length===t.length?e:e.slice(n,n+t.length);return r.length!==t.length?!1:t.every((o,i)=>o===r[i])}function G(e,t){return "fixedSize"in t?t.fixedSize:t.getSizeFromValue(e)}function O(e){return Object.freeze({...e,encode:t=>{let n=new Uint8Array(G(t,e));return e.write(t,n,0),n}})}function N(e){return Object.freeze({...e,decode:(t,n=0)=>e.read(t,n)[0]})}function Yc(e){return Object.freeze({...e,decode:(t,n=0)=>e.read(t,n)[0],encode:t=>{let n=new Uint8Array(G(t,e));return e.write(t,n,0),n}})}function g(e){return "fixedSize"in e&&typeof e.fixedSize=="number"}function q(e){if(!g(e))throw new _(Pn)}function zo(e){return !g(e)}function xl(e){if(!zo(e))throw new _(xn)}function A(e,t){if(g(e)!==g(t))throw new _(Un);if(g(e)&&g(t)&&e.fixedSize!==t.fixedSize)throw new _(Bn,{decoderFixedSize:t.fixedSize,encoderFixedSize:e.fixedSize});if(!g(e)&&!g(t)&&e.maxSize!==t.maxSize)throw new _(Mn,{decoderMaxSize:t.maxSize,encoderMaxSize:e.maxSize});return {...t,...e,decode:t.decode,encode:e.encode,read:t.read,write:e.write}}function Jc(e,t){let n=(r,o,i)=>{let a=e.encode(r);if(ko(a,t)>=0)throw new _(jn,{encodedBytes:a,hexEncodedBytes:We(a),hexSentinel:We(t),sentinel:t});return o.set(a,i),i+=a.length,o.set(t,i),i+=t.length,i};return g(e)?O({...e,fixedSize:e.fixedSize+t.length,write:n}):O({...e,...e.maxSize!=null?{maxSize:e.maxSize+t.length}:{},getSizeFromValue:r=>e.getSizeFromValue(r)+t.length,write:n})}function qc(e,t){let n=(r,o)=>{let i=o===0?r:r.slice(o),a=ko(i,t);if(a===-1)throw new _(Xn,{decodedBytes:i,hexDecodedBytes:We(i),hexSentinel:We(t),sentinel:t});let s=i.slice(0,a);return [e.decode(s),o+s.length+t.length]};return g(e)?N({...e,fixedSize:e.fixedSize+t.length,read:n}):N({...e,...e.maxSize!=null?{maxSize:e.maxSize+t.length}:{},read:n})}function Ul(e,t){return A(Jc(e,t),qc(e,t))}function ko(e,t){return e.findIndex((n,r,o)=>t.length===1?n===t[0]:_e(o,t,r))}function We(e){return e.reduce((t,n)=>t+n.toString(16).padStart(2,"0"),"")}function Vo(e,t,n=0){if(t.length-n<=0)throw new _(wn,{codecDescription:e})}function de(e,t,n,r=0){let o=n.length-r;if(o<t)throw new _(vn,{bytesLength:o,codecDescription:e,expected:t})}function je(e,t,n){if(t<0||t>n)throw new _(Hn,{bytesLength:n,codecDescription:e,offset:t})}function or(e,t){var a,s;let n=(c,u,d)=>{let l=e.encode(c);return d=t.write(l.length,u,d),u.set(l,d),d+l.length};if(g(t)&&g(e))return O({...e,fixedSize:t.fixedSize+e.fixedSize,write:n});let r=g(t)?t.fixedSize:(a=t.maxSize)!=null?a:null,o=g(e)?e.fixedSize:(s=e.maxSize)!=null?s:null,i=r!==null&&o!==null?r+o:null;return O({...e,...i!==null?{maxSize:i}:{},getSizeFromValue:c=>{let u=G(c,e);return G(u,t)+u},write:n})}function ir(e,t){var a,s;let n=(c,u)=>{let[d,l]=t.read(c,u),f=Number(d);return u=l,(u>0||c.length>f)&&(c=c.slice(u,u+f)),de("addDecoderSizePrefix",f,c),[e.decode(c),u+f]};if(g(t)&&g(e))return N({...e,fixedSize:t.fixedSize+e.fixedSize,read:n});let r=g(t)?t.fixedSize:(a=t.maxSize)!=null?a:null,o=g(e)?e.fixedSize:(s=e.maxSize)!=null?s:null,i=r!==null&&o!==null?r+o:null;return N({...e,...i!==null?{maxSize:i}:{},read:n})}function Bl(e,t){return A(or(e,t),ir(e,t))}function w(e,t){return O({fixedSize:t,write:(n,r,o)=>{let i=e.encode(n),a=i.length>t?i.slice(0,t):i;return r.set(a,o),o+t}})}function v(e,t){return N({fixedSize:t,read:(n,r)=>{de("fixCodecSize",t,n,r),(r>0||n.length>t)&&(n=n.slice(r,r+t)),g(e)&&(n=Kc(n,e.fixedSize));let[o]=e.read(n,0);return [o,r+t]}})}function Ml(e,t){return A(w(e,t),v(e,t))}function ar(e,t){return O({...e,write:(n,r,o)=>{let i=u=>Go(u,r.length),a=t.preOffset?t.preOffset({bytes:r,preOffset:o,wrapBytes:i}):o;je("offsetEncoder",a,r.length);let s=e.write(n,r,a),c=t.postOffset?t.postOffset({bytes:r,newPreOffset:a,postOffset:s,preOffset:o,wrapBytes:i}):s;return je("offsetEncoder",c,r.length),c}})}function sr(e,t){return N({...e,read:(n,r)=>{let o=u=>Go(u,n.length),i=t.preOffset?t.preOffset({bytes:n,preOffset:r,wrapBytes:o}):r;je("offsetDecoder",i,n.length);let[a,s]=e.read(n,i),c=t.postOffset?t.postOffset({bytes:n,newPreOffset:i,postOffset:s,preOffset:r,wrapBytes:o}):s;return je("offsetDecoder",c,n.length),[a,c]}})}function Fl(e,t){return A(ar(e,t),sr(e,t))}function Go(e,t){return t===0?0:(e%t+t)%t}function cr(e,t){if(g(e)){let n=t(e.fixedSize);if(n<0)throw new _(ge,{bytesLength:n,codecDescription:"resizeEncoder"});return O({...e,fixedSize:n})}return O({...e,getSizeFromValue:n=>{let r=t(e.getSizeFromValue(n));if(r<0)throw new _(ge,{bytesLength:r,codecDescription:"resizeEncoder"});return r}})}function ur(e,t){if(g(e)){let n=t(e.fixedSize);if(n<0)throw new _(ge,{bytesLength:n,codecDescription:"resizeDecoder"});return N({...e,fixedSize:n})}return e}function zl(e,t){return A(cr(e,t),ur(e,t))}function Zc(e,t){return ar(cr(e,n=>n+t),{preOffset:({preOffset:n})=>n+t})}function Qc(e,t){return ar(cr(e,n=>n+t),{postOffset:({postOffset:n})=>n+t})}function eu(e,t){return sr(ur(e,n=>n+t),{preOffset:({preOffset:n})=>n+t})}function _r(e,t){return sr(ur(e,n=>n+t),{postOffset:({postOffset:n})=>n+t})}function kl(e,t){return A(Zc(e,t),eu(e,t))}function Vl(e,t){return A(Qc(e,t),_r(e,t))}function Ho(e,t,n,r,o=0){for(;n<--r;){let i=e[n];t[n+o]=e[r],t[r+o]=i,n++;}n===r&&(t[n+o]=e[n]);}function tu(e){return q(e),O({...e,write:(t,n,r)=>{let o=e.write(t,n,r);return Ho(n,n,r,r+e.fixedSize),o}})}function nu(e){return q(e),N({...e,read:(t,n)=>{let r=t.slice();return Ho(t,r,n,n+e.fixedSize),e.read(r,n)}})}function Gl(e){return A(tu(e),nu(e))}function T(e,t){return O({...zo(e)?{...e,getSizeFromValue:n=>e.getSizeFromValue(t(n))}:e,write:(n,r,o)=>e.write(t(n),r,o)})}function p(e,t){return N({...e,read:(n,r)=>{let[o,i]=e.read(n,r);return [t(o,n,r),i]}})}function Hl(e,t,n){return Yc({...T(e,t),read:n?p(e,n).read:e.read})}function Yo(e,t,n=t){if(!t.match(new RegExp(`^[${e}]*$`)))throw new _(X,{alphabet:e,base:e.length,value:n})}var lr=e=>O({getSizeFromValue:t=>{let[n,r]=$o(t,e[0]);if(!r)return t.length;let o=Wo(r,e);return n.length+Math.ceil(o.toString(16).length/2)},write(t,n,r){if(Yo(e,t),t==="")return r;let[o,i]=$o(t,e[0]);if(!i)return n.set(new Uint8Array(o.length).fill(0),r),r+o.length;let a=Wo(i,e),s=[];for(;a>0n;)s.unshift(Number(a%256n)),a/=256n;let c=[...Array(o.length).fill(0),...s];return n.set(c,r),r+c.length}}),Rr=e=>N({read(t,n){let r=n===0?t:t.slice(n);if(r.length===0)return ["",0];let o=r.findIndex(c=>c!==0);o=o===-1?r.length:o;let i=e[0].repeat(o);if(o===r.length)return [i,t.length];let a=r.slice(o).reduce((c,u)=>c*256n+BigInt(u),0n),s=ru(a,e);return [i+s,t.length]}}),Jo=e=>A(lr(e),Rr(e));function $o(e,t){let[n,r]=e.split(new RegExp(`((?!${t}).*)`));return [n,r]}function Wo(e,t){let n=BigInt(t.length),r=0n;for(let o of e)r*=n,r+=BigInt(t.indexOf(o));return r}function ru(e,t){let n=BigInt(t.length),r=[];for(;e>0n;)r.unshift(t[Number(e%n)]),e/=n;return r.join("")}var fr="0123456789",Xl=()=>lr(fr),Kl=()=>Rr(fr),Yl=()=>Jo(fr),jo={alphabet:"0123456789abcdef",base:16};function dr(e){if(e>=48&&e<=57)return e-48;if(e>=65&&e<=70)return e-55;if(e>=97&&e<=102)return e-87}var ou=()=>O({getSizeFromValue:e=>Math.ceil(e.length/2),write(e,t,n){let r=e.length,o=r/2;if(r===1){let a=e.charCodeAt(0),s=dr(a);if(s===void 0)throw new _(X,{...jo,value:e});return t.set([s],n),1+n}let i=new Uint8Array(o);for(let a=0,s=0;a<o;a++){let c=e.charCodeAt(s++),u=e.charCodeAt(s++),d=dr(c),l=dr(u);if(d===void 0||l===void 0&&!Number.isNaN(u))throw new _(X,{...jo,value:e});i[a]=Number.isNaN(u)?d:d<<4|(l!=null?l:0);}return t.set(i,n),i.length+n}}),iu=()=>N({read(e,t){return [e.slice(t).reduce((r,o)=>r+o.toString(16).padStart(2,"0"),""),e.length]}}),Jl=()=>A(ou(),iu()),Ar="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",K=()=>lr(Ar),Z=()=>Rr(Ar),ql=()=>Jo(Ar),au=(e,t)=>O({getSizeFromValue:n=>Math.floor(n.length*t/8),write(n,r,o){if(Yo(e,n),n==="")return o;let i=[...n].map(s=>e.indexOf(s)),a=qo(i,t,8,!1);return r.set(a,o),a.length+o}}),su=(e,t)=>N({read(n,r=0){let o=r===0?n:n.slice(r);return o.length===0?["",n.length]:[qo([...o],8,t,!0).map(a=>e[a]).join(""),n.length]}}),Zl=(e,t)=>A(au(e,t),su(e,t));function qo(e,t,n,r){let o=[],i=0,a=0,s=(1<<n)-1;for(let c of e)for(i=i<<t|c,a+=t;a>=n;)a-=n,o.push(i>>a&s);return r&&a>0&&o.push(i<<n-a&s),o}var Xo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ie=()=>O({getSizeFromValue:e=>{try{return atob(e).length}catch{throw new _(X,{alphabet:Xo,base:64,value:e})}},write(e,t,n){try{let r=atob(e).split("").map(o=>o.charCodeAt(0));return t.set(r,n),r.length+n}catch{throw new _(X,{alphabet:Xo,base:64,value:e})}}}),Er=()=>N({read(e,t=0){let n=e.slice(t);return [btoa(String.fromCharCode(...n)),e.length]}}),Ql=()=>A(Ie(),Er()),cu=e=>e.replace(/\u0000/g,""),eR=(e,t)=>e.padEnd(t,"\0"),uu=globalThis.TextDecoder,Ko=globalThis.TextEncoder,_u=()=>{let e;return O({getSizeFromValue:t=>(e||(e=new Ko)).encode(t).length,write:(t,n,r)=>{let o=(e||(e=new Ko)).encode(t);return n.set(o,r),r+o.length}})},du=()=>{let e;return N({read(t,n){let r=(e||(e=new uu)).decode(t.slice(n));return [cu(r),t.length]}})},tR=()=>A(_u(),du());var iR=128;function aR(e,t){try{return "exists"in e&&!e.exists?e:Object.freeze({...e,data:t.decode(e.data)})}catch{throw new _(Vt,{address:e.address})}}function Zo(e){return !("exists"in e)||"exists"in e&&e.exists}function sR(e){if(Zo(e)&&e.data instanceof Uint8Array)throw new _(Gt,{address:e.address})}function Qo(e){let t=e.filter(n=>Zo(n)&&n.data instanceof Uint8Array);if(t.length>0){let n=t.map(r=>r.address);throw new _(Ht,{addresses:n})}}function Xe(e,t){if(!t)return Object.freeze({address:e,exists:!1});let n=Ie().encode(t.data[0]);return Object.freeze({...Sr(t),address:e,data:n,exists:!0})}function cR(e,t){if(!t)return Object.freeze({address:e,exists:!1});let n=K().encode(typeof t.data=="string"?t.data:t.data[0]);return Object.freeze({...Sr(t),address:e,data:n,exists:!0})}function ei(e,t){if(!t)return Object.freeze({address:e,exists:!1});let n=t.data.parsed.info;return Object.freeze({...Sr(t),address:e,data:n,exists:!0})}function Sr(e){return Object.freeze({executable:e.executable,lamports:e.lamports,programAddress:e.owner})}async function uR(e,t,n={}){let{abortSignal:r,...o}=n,i=await e.getAccountInfo(t,{...o,encoding:"base64"}).send({abortSignal:r});return Xe(t,i.value)}async function _R(e,t,n={}){let{abortSignal:r,...o}=n,{value:i}=await e.getAccountInfo(t,{...o,encoding:"jsonParsed"}).send({abortSignal:r});return i&&typeof i=="object"&&"parsed"in i.data?ei(t,i):Xe(t,i)}async function dR(e,t,n={}){let{abortSignal:r,...o}=n;return (await e.getMultipleAccounts(t,{...o,encoding:"base64"}).send({abortSignal:r})).value.map((a,s)=>Xe(t[s],a))}async function ti(e,t,n={}){let{abortSignal:r,...o}=n;return (await e.getMultipleAccounts(t,{...o,encoding:"jsonParsed"}).send({abortSignal:r})).value.map((a,s)=>a&&typeof a=="object"&&"parsed"in a.data?ei(t[s],a):Xe(t[s],a))}function lR(e){if(!e.exists)throw new _(zt,{address:e.address})}function ni(e){let t=e.filter(n=>!n.exists);if(t.length>0){let n=t.map(r=>r.address);throw new _(kt,{addresses:n})}}function Ce(){if(!globalThis.isSecureContext)throw new _($t)}var ie;async function lu(e){return ie===void 0&&(ie=new Promise(t=>{e.generateKey("Ed25519",!1,["sign","verify"]).then(()=>{t(ie=!0);}).catch(()=>{t(ie=!1);});})),typeof ie=="boolean"?ie:await ie}function ri(){var e;if(Ce(),typeof globalThis.crypto>"u"||typeof((e=globalThis.crypto.subtle)==null?void 0:e.digest)!="function")throw new _(Wt)}async function oi(){var e;if(Ce(),typeof globalThis.crypto>"u"||typeof((e=globalThis.crypto.subtle)==null?void 0:e.generateKey)!="function")throw new _(Kt);if(!await lu(globalThis.crypto.subtle))throw new _(jt)}function Ke(){var e;if(Ce(),typeof globalThis.crypto>"u"||typeof((e=globalThis.crypto.subtle)==null?void 0:e.exportKey)!="function")throw new _(Xt)}function ii(){var e;if(Ce(),typeof globalThis.crypto>"u"||typeof((e=globalThis.crypto.subtle)==null?void 0:e.sign)!="function")throw new _(Yt)}function ai(){var e;if(Ce(),typeof globalThis.crypto>"u"||typeof((e=globalThis.crypto.subtle)==null?void 0:e.verify)!="function")throw new _(Jt)}function si(){if(typeof globalThis.crypto>"u"||typeof globalThis.crypto.getRandomValues!="function")throw new _(Zt)}var Or,Nr;function mr(){return Or||(Or=K()),Or}function Ru(){return Nr||(Nr=Z()),Nr}function gr(e){if(e.length<32||e.length>44)return !1;let t=mr();try{return t.encode(e).byteLength===32}catch{return !1}}function he(e){if(e.length<32||e.length>44)throw new _(vt,{actualLength:e.length});let r=mr().encode(e).byteLength;if(r!==32)throw new _(wt,{actualLength:r})}function fu(e){return he(e),e}function qe(){return T(w(mr(),32),e=>fu(e))}function ae(){return v(Ru(),32)}function _i(){return A(qe(),ae())}function Ze(){return new Intl.Collator("en",{caseFirst:"lower",ignorePunctuation:!1,localeMatcher:"best fit",numeric:!1,sensitivity:"variant",usage:"sort"}).compare}var Au=37095705934669439343138083508754565189542113879843219016388785533085940283555n,b=57896044618658097711785492504343953926634992332820282019728792003956564819949n,ci=19681161376707505956807079304988542015446066515923890162744021073123829784752n;function x(e){let t=e%b;return t>=0n?t:b+t}function H(e,t){let n=e;for(;t-- >0n;)n*=n,n%=b;return n}function Eu(e){let n=e*e%b*e%b,r=H(n,2n)*n%b,o=H(r,1n)*e%b,i=H(o,5n)*o%b,a=H(i,10n)*i%b,s=H(a,20n)*a%b,c=H(s,40n)*s%b,u=H(c,80n)*c%b,d=H(u,80n)*c%b,l=H(d,10n)*i%b;return H(l,2n)*e%b}function Su(e,t){let n=x(t*t*t),r=x(n*n*t),o=Eu(e*r),i=x(e*n*o),a=x(t*i*i),s=i,c=x(i*ci),u=a===e,d=a===x(-e),l=a===x(-e*ci);return u&&(i=s),(d||l)&&(i=c),(x(i)&1n)===1n&&(i=x(-i)),!u&&!d?null:i}function Ou(e,t){let n=x(e*e),r=x(n-1n),o=x(Au*n+1n),i=Su(r,o);if(i===null)return !1;let a=(t&128)!==0;return !(i===0n&&a)}function Nu(e){let t=e.toString(16);return t.length===1?`0${t}`:t}function mu(e){let n=`0x${e.reduce((r,o,i)=>`${Nu(i===31?o&-129:o)}${r}`,"")}`;return BigInt(n)}function gu(e){if(e.byteLength!==32)return !1;let t=mu(e);return Ou(t,e[31])}function mR(e){return Array.isArray(e)&&e.length===2&&typeof e[0]=="string"&&typeof e[1]=="number"&&e[1]>=0&&e[1]<=255&&gr(e[0])}function gR(e){if(!(Array.isArray(e)&&e.length===2&&typeof e[0]=="string"&&typeof e[1]=="number"))throw new _(xt);if(e[1]<0||e[1]>255)throw new _(Ut,{bump:e[1]});he(e[0]);}var Je=32,ui=16,Ye=[80,114,111,103,114,97,109,68,101,114,105,118,101,100,65,100,100,114,101,115,115];async function Tu({programAddress:e,seeds:t}){if(ri(),t.length>ui)throw new _(Bt,{actual:t.length,maxSeeds:ui});let n,r=t.reduce((c,u,d)=>{let l=typeof u=="string"?(n||(n=new TextEncoder)).encode(u):u;if(l.byteLength>Je)throw new _(Be,{actual:l.byteLength,index:d,maxSeedLength:Je});return c.push(...l),c},[]),o=_i(),i=o.encode(e),a=await crypto.subtle.digest("SHA-256",new Uint8Array([...r,...i,...Ye])),s=new Uint8Array(a);if(gu(s))throw new _(Me);return o.decode(s)}async function TR({programAddress:e,seeds:t}){let n=255;for(;n>0;)try{return [await Tu({programAddress:e,seeds:[...t,new Uint8Array([n])]}),n]}catch(r){if(J(r,Me))n--;else throw r}throw new _(Mt)}async function pR({baseAddress:e,programAddress:t,seed:n}){let{encode:r,decode:o}=_i(),i=typeof n=="string"?new TextEncoder().encode(n):n;if(i.byteLength>Je)throw new _(Be,{actual:i.byteLength,index:0,maxSeedLength:Je});let a=r(t);if(a.length>=Ye.length&&a.slice(-Ye.length).every((u,d)=>u===Ye[d]))throw new _(Ft);let s=await crypto.subtle.digest("SHA-256",new Uint8Array([...r(e),...i,...a])),c=new Uint8Array(s);return o(c)}async function Qe(e){if(Ke(),e.type!=="public"||e.algorithm.name!=="Ed25519")throw new _(Pt);let t=await crypto.subtle.exportKey("raw",e);return ae().decode(new Uint8Array(t))}function di(e,t,n,r){if(r<t||r>n)throw new _(Gn,{codecDescription:e,max:n,min:t,value:r})}var pu=(e=>(e[e.Little=0]="Little",e[e.Big=1]="Big",e))(pu||{});function li(e){return (e==null?void 0:e.endian)!==1}function U(e){return O({fixedSize:e.size,write(t,n,r){e.range&&di(e.name,e.range[0],e.range[1],t);let o=new ArrayBuffer(e.size);return e.set(new DataView(o),t,li(e.config)),n.set(new Uint8Array(o),r),r+e.size}})}function B(e){return N({fixedSize:e.size,read(t,n=0){Vo(e.name,t,n),de(e.name,e.size,t,n);let r=new DataView(Iu(t,n,e.size));return [e.get(r,li(e.config)),n+e.size]}})}function Iu(e,t,n){let r=e.byteOffset+(t!=null?t:0),o=n!=null?n:e.byteLength;return e.buffer.slice(r,r+o)}var Cu=(e={})=>U({config:e,name:"f32",set:(t,n,r)=>t.setFloat32(0,Number(n),r),size:4}),hu=(e={})=>B({config:e,get:(t,n)=>t.getFloat32(0,n),name:"f32",size:4}),LR=(e={})=>A(Cu(e),hu(e)),Lu=(e={})=>U({config:e,name:"f64",set:(t,n,r)=>t.setFloat64(0,Number(n),r),size:8}),bu=(e={})=>B({config:e,get:(t,n)=>t.getFloat64(0,n),name:"f64",size:8}),bR=(e={})=>A(Lu(e),bu(e)),Du=(e={})=>U({config:e,name:"i128",range:[-BigInt("0x7fffffffffffffffffffffffffffffff")-1n,BigInt("0x7fffffffffffffffffffffffffffffff")],set:(t,n,r)=>{let o=r?8:0,i=r?0:8,a=0xffffffffffffffffn;t.setBigInt64(o,BigInt(n)>>64n,r),t.setBigUint64(i,BigInt(n)&a,r);},size:16}),yu=(e={})=>B({config:e,get:(t,n)=>{let r=n?8:0,o=n?0:8,i=t.getBigInt64(r,n),a=t.getBigUint64(o,n);return (i<<64n)+a},name:"i128",size:16}),DR=(e={})=>A(Du(e),yu(e)),wu=(e={})=>U({config:e,name:"i16",range:[-+"0x7fff"-1,+"0x7fff"],set:(t,n,r)=>t.setInt16(0,Number(n),r),size:2}),vu=(e={})=>B({config:e,get:(t,n)=>t.getInt16(0,n),name:"i16",size:2}),yR=(e={})=>A(wu(e),vu(e)),Pu=(e={})=>U({config:e,name:"i32",range:[-+"0x7fffffff"-1,+"0x7fffffff"],set:(t,n,r)=>t.setInt32(0,Number(n),r),size:4}),xu=(e={})=>B({config:e,get:(t,n)=>t.getInt32(0,n),name:"i32",size:4}),wR=(e={})=>A(Pu(e),xu(e)),Uu=(e={})=>U({config:e,name:"i64",range:[-BigInt("0x7fffffffffffffff")-1n,BigInt("0x7fffffffffffffff")],set:(t,n,r)=>t.setBigInt64(0,BigInt(n),r),size:8}),Bu=(e={})=>B({config:e,get:(t,n)=>t.getBigInt64(0,n),name:"i64",size:8}),vR=(e={})=>A(Uu(e),Bu(e)),Mu=()=>U({name:"i8",range:[-+"0x7f"-1,+"0x7f"],set:(e,t)=>e.setInt8(0,Number(t)),size:1}),Fu=()=>B({get:e=>e.getInt8(0),name:"i8",size:1}),PR=()=>A(Mu(),Fu()),V=()=>O({getSizeFromValue:e=>e<=127?1:e<=16383?2:3,maxSize:3,write:(e,t,n)=>{di("shortU16",0,65535,e);let r=[0];for(let o=0;;o+=1){let i=Number(e)>>o*7;if(i===0)break;let a=127&i;r[o]=a,o>0&&(r[o-1]|=128);}return t.set(r,n),n+r.length}}),M=()=>N({maxSize:3,read:(e,t)=>{let n=0,r=0;for(;++r;){let o=r-1,i=e[t+o],a=127&i;if(n|=a<<o*7,!(i&128))break}return [n,t+r]}}),xR=()=>A(V(),M()),zu=(e={})=>U({config:e,name:"u128",range:[0n,BigInt("0xffffffffffffffffffffffffffffffff")],set:(t,n,r)=>{let o=r?8:0,i=r?0:8,a=0xffffffffffffffffn;t.setBigUint64(o,BigInt(n)>>64n,r),t.setBigUint64(i,BigInt(n)&a,r);},size:16}),ku=(e={})=>B({config:e,get:(t,n)=>{let r=n?8:0,o=n?0:8,i=t.getBigUint64(r,n),a=t.getBigUint64(o,n);return (i<<64n)+a},name:"u128",size:16}),UR=(e={})=>A(zu(e),ku(e)),Vu=(e={})=>U({config:e,name:"u16",range:[0,+"0xffff"],set:(t,n,r)=>t.setUint16(0,Number(n),r),size:2}),Gu=(e={})=>B({config:e,get:(t,n)=>t.getUint16(0,n),name:"u16",size:2}),BR=(e={})=>A(Vu(e),Gu(e)),Le=(e={})=>U({config:e,name:"u32",range:[0,+"0xffffffff"],set:(t,n,r)=>t.setUint32(0,Number(n),r),size:4}),Tr=(e={})=>B({config:e,get:(t,n)=>t.getUint32(0,n),name:"u32",size:4}),MR=(e={})=>A(Le(e),Tr(e)),pr=(e={})=>U({config:e,name:"u64",range:[0n,BigInt("0xffffffffffffffff")],set:(t,n,r)=>t.setBigUint64(0,BigInt(n),r),size:8}),Ir=(e={})=>B({config:e,get:(t,n)=>t.getBigUint64(0,n),name:"u64",size:8}),FR=(e={})=>A(pr(e),Ir(e)),D=()=>U({name:"u8",range:[0,+"0xff"],set:(e,t)=>e.setUint8(0,Number(t)),size:1}),L=()=>B({get:e=>e.getUint8(0),name:"u8",size:1}),zR=()=>A(D(),L());function Ri(e,t,n){if(t!==n)throw new _(Fn,{actual:n,codecDescription:e,expected:t})}function Hu(e){return e.reduce((t,n)=>t===null||n===null?null:Math.max(t,n),0)}function te(e){return e.reduce((t,n)=>t===null||n===null?null:t+n,0)}function le(e){return g(e)?e.fixedSize:null}function se(e){var t;return g(e)?e.fixedSize:(t=e.maxSize)!=null?t:null}function z(e,t={}){var i,a;let n=(i=t.size)!=null?i:Le(),r=et(n,le(e)),o=(a=et(n,se(e)))!=null?a:void 0;return O({...r!==null?{fixedSize:r}:{getSizeFromValue:s=>(typeof n=="object"?G(s.length,n):0)+[...s].reduce((u,d)=>u+G(d,e),0),maxSize:o},write:(s,c,u)=>(typeof n=="number"&&Ri("array",n,s.length),typeof n=="object"&&(u=n.write(s.length,c,u)),s.forEach(d=>{u=e.write(d,c,u);}),u)})}function P(e,t={}){var a,s;let n=(a=t.size)!=null?a:Tr(),r=le(e),o=et(n,r),i=(s=et(n,se(e)))!=null?s:void 0;return N({...o!==null?{fixedSize:o}:{maxSize:i},read:(c,u)=>{let d=[];if(typeof n=="object"&&c.slice(u).length===0)return [d,u];if(n==="remainder"){for(;u<c.length;){let[E,S]=e.read(c,u);u=S,d.push(E);}return [d,u]}let[l,f]=typeof n=="number"?[n,u]:n.read(c,u);u=f;for(let E=0;E<l;E+=1){let[S,m]=e.read(c,u);u=m,d.push(S);}return [d,u]}})}function $R(e,t={}){return A(z(e,t),P(e,t))}function et(e,t){return typeof e!="number"?null:e===0?0:t===null?null:t*e}function $u(e,t={}){var o;let r=(o=(typeof t=="boolean"?{backward:t}:t).backward)!=null?o:!1;return O({fixedSize:e,write(i,a,s){var u;let c=[];for(let d=0;d<e;d+=1){let l=0;for(let f=0;f<8;f+=1){let E=Number((u=i[d*8+f])!=null?u:0);l|=E<<(r?f:7-f);}r?c.unshift(l):c.push(l);}return a.set(c,s),e}})}function Wu(e,t={}){var o;let r=(o=(typeof t=="boolean"?{backward:t}:t).backward)!=null?o:!1;return N({fixedSize:e,read(i,a){de("bitArray",e,i,a);let s=[],c=i.slice(a,a+e);return c=r?c.reverse():c,c.forEach(u=>{for(let d=0;d<8;d+=1)r?(s.push(!!(u&1)),u>>=1):(s.push(!!(u&128)),u<<=1);}),[s,a+e]}})}function WR(e,t={}){return A($u(e,t),Wu(e,t))}function tt(e={}){var t;return T((t=e.size)!=null?t:D(),n=>n?1:0)}function nt(e={}){var t;return p((t=e.size)!=null?t:L(),n=>Number(n)===1)}function jR(e={}){return A(tt(e),nt(e))}function Re(){return O({getSizeFromValue:e=>e.length,write:(e,t,n)=>(t.set(e,n),n+e.length)})}function fe(){return N({read:(e,t)=>{let n=e.slice(t);return [n,t+n.length]}})}function XR(){return A(Re(),fe())}var ju=()=>N({read(e,t){return [e.slice(t).reduce((r,o)=>r+o.toString(16).padStart(2,"0"),""),e.length]}});function rt(e){return O({fixedSize:e.length,write:(t,n,r)=>(n.set(e,r),r+e.length)})}function ot(e){return N({fixedSize:e.length,read:(t,n)=>{let r=ju();if(!_e(t,e,n))throw new _(Wn,{constant:e,data:t,hexConstant:r.decode(e),hexData:r.decode(t),offset:n});return [void 0,n+e.length]}})}function KR(e){return A(rt(e),ot(e))}function $(e){var r;let t=te(e.map(le)),n=(r=te(e.map(se)))!=null?r:void 0;return O({...t===null?{getSizeFromValue:o=>e.map((i,a)=>G(o[a],i)).reduce((i,a)=>i+a,0),maxSize:n}:{fixedSize:t},write:(o,i,a)=>(Ri("tuple",e.length,o.length),e.forEach((s,c)=>{a=s.write(o[c],i,a);}),a)})}function F(e){var r;let t=te(e.map(le)),n=(r=te(e.map(se)))!=null?r:void 0;return N({...t===null?{maxSize:n}:{fixedSize:t},read:(o,i)=>{let a=[];return e.forEach(s=>{let[c,u]=s.read(o,i);a.push(c),i=u;}),[a,i]}})}function YR(e){return A($(e),F(e))}function be(e,t){let n=fi(e),r=(i,a,s)=>{let c=t(i);return Cr(e,c),e[c].write(i,a,s)};if(n!==null)return O({fixedSize:n,write:r});let o=Ai(e);return O({...o!==null?{maxSize:o}:{},getSizeFromValue:i=>{let a=t(i);return Cr(e,a),G(i,e[a])},write:r})}function De(e,t){let n=fi(e),r=(i,a)=>{let s=t(i,a);return Cr(e,s),e[s].read(i,a)};if(n!==null)return N({fixedSize:n,read:r});let o=Ai(e);return N({...o!==null?{maxSize:o}:{},read:r})}function JR(e,t,n){return A(be(e,t),De(e,n))}function Cr(e,t){if(typeof e[t]>"u")throw new _($n,{maxRange:e.length-1,minRange:0,variant:t})}function fi(e){if(e.length===0)return 0;if(!g(e[0]))return null;let t=e[0].fixedSize;return e.every(r=>g(r)&&r.fixedSize===t)?t:null}function Ai(e){return Hu(e.map(t=>se(t)))}function Ei(e,t={}){var o,i;let n=(o=t.discriminator)!=null?o:"__kind",r=(i=t.size)!=null?i:D();return be(e.map(([,a],s)=>T($([r,a]),c=>[s,c])),a=>Ku(e,a[n]))}function Si(e,t={}){var o,i;let n=(o=t.discriminator)!=null?o:"__kind",r=(i=t.size)!=null?i:L();return De(e.map(([a,s])=>p(F([r,s]),([,c])=>({[n]:a,...c}))),(a,s)=>Number(r.read(a,s)[0]))}function Xu(e,t={}){return A(Ei(e,t),Si(e,t))}function Ku(e,t){let n=e.findIndex(([r])=>t===r);if(n<0)throw new _(kn,{value:t,variants:e.map(([r])=>r)});return n}var qR=Ei,ZR=Si,QR=Xu;function Oi(e){let t=[...new Set(Object.values(e).filter(a=>typeof a=="number"))].sort(),n=Object.fromEntries(Object.entries(e).slice(t.length)),r=Object.keys(n),o=Object.values(n),i=[...new Set([...r,...o.filter(a=>typeof a=="string")])];return {enumKeys:r,enumRecord:n,enumValues:o,numericalValues:t,stringValues:i}}function Yu({enumKeys:e,enumValues:t,variant:n}){let r=Ni(t,o=>o===n);return r>=0?r:e.findIndex(o=>o===n)}function Ju({discriminator:e,enumKeys:t,enumValues:n,useValuesAsDiscriminators:r}){return r?Ni(n,o=>o===e):e>=0&&e<t.length?e:-1}function Ni(e,t){let n=e.length;for(;n--;)if(t(e[n],n,e))return n;return -1}function mi(e){if(e.length===0)return "";let t=[e[0],e[0]],n=[];for(let r=1;r<e.length;r++){let o=e[r];t[1]+1===o?t[1]=o:(n.push(t[0]===t[1]?`${t[0]}`:`${t[0]}-${t[1]}`),t=[o,o]);}return n.push(t[0]===t[1]?`${t[0]}`:`${t[0]}-${t[1]}`),n.join(", ")}function gi(e,t={}){var c,u;let n=(c=t.size)!=null?c:D(),r=(u=t.useValuesAsDiscriminators)!=null?u:!1,{enumKeys:o,enumValues:i,numericalValues:a,stringValues:s}=Oi(e);if(r&&i.some(d=>typeof d=="string"))throw new _(He,{stringValues:i.filter(d=>typeof d=="string")});return T(n,d=>{let l=Yu({enumKeys:o,enumValues:i,variant:d});if(l<0)throw new _(Vn,{formattedNumericalValues:mi(a),numericalValues:a,stringValues:s,variant:d});return r?i[l]:l})}function Ti(e,t={}){var s,c;let n=(s=t.size)!=null?s:L(),r=(c=t.useValuesAsDiscriminators)!=null?c:!1,{enumKeys:o,enumValues:i,numericalValues:a}=Oi(e);if(r&&i.some(u=>typeof u=="string"))throw new _(He,{stringValues:i.filter(u=>typeof u=="string")});return p(n,u=>{let d=Number(u),l=Ju({discriminator:d,enumKeys:o,enumValues:i,useValuesAsDiscriminators:r});if(l<0){let f=r?a:[...Array(o.length).keys()];throw new _(zn,{discriminator:d,formattedValidDiscriminators:mi(f),validDiscriminators:f})}return i[l]})}function qu(e,t={}){return A(gi(e,t),Ti(e,t))}var ef=gi,tf=Ti,nf=qu;function Zu(e,t){return T($([...t,e]),n=>[...t.map(()=>{}),n])}function Qu(e,t){return p(F([...t,e]),n=>n[n.length-1])}function rf(e,t){return A(Zu(e,t),Qu(e,t))}function e_(e,t){return T($([e,...t]),n=>[n,...t.map(()=>{})])}function t_(e,t){return p(F([e,...t]),n=>n[0])}function of(e,t){return A(e_(e,t),t_(e,t))}function n_(e,t,n={}){return T(z($([e,t]),n),r=>[...r.entries()])}function r_(e,t,n={}){return p(P(F([e,t]),n),r=>new Map(r))}function af(e,t,n={}){return A(n_(e,t,n),r_(e,t,n))}function Q(){return O({fixedSize:0,write:(e,t,n)=>n})}function ee(){return N({fixedSize:0,read:(e,t)=>[void 0,t]})}function sf(){return A(Q(),ee())}function o_(e,t={}){let n=(()=>{var o;return t.prefix===null?T(Q(),i=>{}):tt({size:(o=t.prefix)!=null?o:D()})})(),r=t.noneValue==="zeroes"?(q(e),w(Q(),e.fixedSize)):t.noneValue?rt(t.noneValue):Q();return be([T($([n,r]),o=>[!1,void 0]),T($([n,e]),o=>[!0,o])],o=>+(o!==null))}function i_(e,t={}){let n=(()=>{var o;return t.prefix===null?p(ee(),()=>!1):nt({size:(o=t.prefix)!=null?o:L()})})(),r=t.noneValue==="zeroes"?(q(e),v(ee(),e.fixedSize)):t.noneValue?ot(t.noneValue):ee();return De([p(F([n,r]),()=>null),p(F([n,e]),([,o])=>o)],(o,i)=>{if(t.prefix===null&&!t.noneValue)return +(i<o.length);if(t.prefix===null&&t.noneValue!=null){let a=t.noneValue==="zeroes"?new Uint8Array(r.fixedSize).fill(0):t.noneValue;return _e(o,a,i)?0:1}return Number(n.read(o,i)[0])})}function cf(e,t={}){return A(o_(e,t),i_(e,t))}function a_(e,t={}){return T(z(e,t),n=>[...n])}function s_(e,t={}){return p(P(e,t),n=>new Set(n))}function uf(e,t={}){return A(a_(e,t),s_(e,t))}function Y(e){var o;let t=e.map(([,i])=>i),n=te(t.map(le)),r=(o=te(t.map(se)))!=null?o:void 0;return O({...n===null?{getSizeFromValue:i=>e.map(([a,s])=>G(i[a],s)).reduce((a,s)=>a+s,0),maxSize:r}:{fixedSize:n},write:(i,a,s)=>(e.forEach(([c,u])=>{s=u.write(i[c],a,s);}),s)})}function ne(e){var o;let t=e.map(([,i])=>i),n=te(t.map(le)),r=(o=te(t.map(se)))!=null?o:void 0;return N({...n===null?{maxSize:r}:{fixedSize:n},read:(i,a)=>{let s={};return e.forEach(([c,u])=>{let[d,l]=u.read(i,a);a=l,s[c]=d;}),[s,a]}})}function _f(e){return A(Y(e),ne(e))}var Ii=e=>({__option:"Some",value:e}),Ci=()=>({__option:"None"}),hr=e=>!!(e&&typeof e=="object"&&"__option"in e&&(e.__option==="Some"&&"value"in e||e.__option==="None")),it=e=>e.__option==="Some",Af=e=>e.__option==="None";function Ef(e,t){return it(e)?e.value:t?t():null}var c_=e=>e!==null?Ii(e):Ci();function u_(e,t={}){let n=(()=>{var o;return t.prefix===null?T(Q(),i=>{}):tt({size:(o=t.prefix)!=null?o:D()})})(),r=t.noneValue==="zeroes"?(q(e),w(Q(),e.fixedSize)):t.noneValue?rt(t.noneValue):Q();return be([T($([n,r]),o=>[!1,void 0]),T($([n,e]),o=>[!0,hr(o)&&it(o)?o.value:o])],o=>{let i=hr(o)?o:c_(o);return Number(it(i))})}function __(e,t={}){let n=(()=>{var o;return t.prefix===null?p(ee(),()=>!1):nt({size:(o=t.prefix)!=null?o:L()})})(),r=t.noneValue==="zeroes"?(q(e),v(ee(),e.fixedSize)):t.noneValue?ot(t.noneValue):ee();return De([p(F([n,r]),()=>Ci()),p(F([n,e]),([,o])=>Ii(o))],(o,i)=>{if(t.prefix===null&&!t.noneValue)return +(i<o.length);if(t.prefix===null&&t.noneValue!=null){let a=t.noneValue==="zeroes"?new Uint8Array(r.fixedSize).fill(0):t.noneValue;return _e(o,a,i)?0:1}return Number(n.read(o,i)[0])})}function Sf(e,t={}){return A(u_(e,t),__(e,t))}function pi(e,t){if(!e||ArrayBuffer.isView(e))return e;let n=r=>t?pi(r,t):pi(r);return hr(e)?it(e)?n(e.value):t?t():null:Array.isArray(e)?e.map(n):typeof e=="object"?Object.fromEntries(Object.entries(e).map(([r,o])=>[r,n(o)])):e}function k(e,...t){return t.reduce((n,r)=>r(n),e)}function hi(e,t){return e.programAddress===t}function gf(e,t){if(e.programAddress!==t)throw new _(sn,{actualProgramAddress:e.programAddress,expectedProgramAddress:t})}function Tf(e){return e.accounts!==void 0}function pf(e){if(e.accounts===void 0)throw new _(on,{data:e.data,programAddress:e.programAddress})}function Li(e){return e.data!==void 0}function If(e){var t;if(e.data===void 0)throw new _(an,{accountAddresses:(t=e.accounts)==null?void 0:t.map(n=>n.address),programAddress:e.programAddress})}var h=(e=>(e[e.WRITABLE_SIGNER=3]="WRITABLE_SIGNER",e[e.READONLY_SIGNER=2]="READONLY_SIGNER",e[e.WRITABLE=1]="WRITABLE",e[e.READONLY=0]="READONLY",e))(h||{}),bi=2,Lr=1;function Cf(e){return e&~bi}function hf(e){return e&~Lr}function W(e){return e>=2}function Ae(e){return (e&Lr)!==0}function br(e,t){return e|t}function Lf(e){return e|bi}function bf(e){return e|Lr}function d_(e){return new Uint8Array([48,46,2,1,0,48,5,6,3,43,101,112,4,34,4,32,...e])}async function Dr(e,t){let n=e.byteLength;if(n!==32)throw new _(en,{actualLength:n});let r=d_(e);return await crypto.subtle.importKey("pkcs8",r,"Ed25519",t!=null?t:!1,["sign"])}async function l_(e,t=!1){if(Ke(),e.extractable===!1)throw new _(qt,{key:e});let n=await crypto.subtle.exportKey("jwk",e);return await crypto.subtle.importKey("jwk",{crv:"Ed25519",ext:t,key_ops:["verify"],kty:"OKP",x:n.x},"Ed25519",t,["verify"])}var Ee;function R_(e){if(Ee||(Ee=K()),e.length<64||e.length>88)throw new _(nn,{actualLength:e.length});let n=Ee.encode(e).byteLength;if(n!==64)throw new _(tn,{actualLength:n})}function Pf(e){return Ee||(Ee=K()),!(e.length<64||e.length>88||Ee.encode(e).byteLength!==64)}async function ye(e,t){ii();let n=await crypto.subtle.sign("Ed25519",e,t);return new Uint8Array(n)}function xf(e){return R_(e),e}async function f_(e,t,n){return ai(),await crypto.subtle.verify("Ed25519",e,t,n)}async function Di(){return await oi(),await crypto.subtle.generateKey("Ed25519",!1,["sign","verify"])}async function yi(e,t){if(si(),e.byteLength!==64)throw new _(Qt,{byteLength:e.byteLength});let[n,r]=await Promise.all([crypto.subtle.importKey("raw",e.slice(32),"Ed25519",!0,["verify"]),Dr(e.slice(0,32),t)]),o=new Uint8Array(32);crypto.getRandomValues(o);let i=await ye(r,o);if(!await f_(n,i,o))throw new _(rn);return {privateKey:r,publicKey:n}}async function wi(e,t=!1){let n=Dr(e,t),[r,o]=await Promise.all([(t?n:Dr(e,!0)).then(async i=>await l_(i,!0)),n]);return {privateKey:o,publicKey:r}}function Mf(e,t,n,r){var i;if(!J(e,Fe))return !1;let o=(i=t.instructions[e.context.index])==null?void 0:i.programAddress;return !o||o!==n?!1:typeof r>"u"||e.context.code===r}function at(e){return JSON.parse(A_(e),(t,n)=>N_(n)?O_(n):n)}function A_(e){let t=[],n=!1;for(let r=0;r<e.length;r++){let o=!1;if(e[r]==="\\"&&(t.push(e[r++]),o=!o),e[r]==='"'){t.push(e[r]),o||(n=!n);continue}if(!n){let i=E_(e,r);if(i!=null&&i.length){r+=i.length-1,i.match(/\.|[eE]-/)?t.push(i):t.push(S_(i));continue}}t.push(e[r]);}return t.join("")}function E_(e,t){var o;let n=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/;if(!((o=e[t])!=null&&o.match(/[-\d]/)))return null;let r=e.slice(t).match(n);return r?r[0]:null}function S_(e){return `{"$n":"${e}"}`}function O_({$n:e}){if(e.match(/[eE]/)){let[t,n]=e.split(/[eE]/);return BigInt(t)*BigInt(10)**BigInt(n)}return BigInt(e)}function N_(e){return !!e&&typeof e=="object"&&"$n"in e&&typeof e.$n=="string"}var vi=0n;function m_(){let e=vi;return vi++,e.toString()}function Se(e){return {id:m_(),jsonrpc:"2.0",method:e.methodName,params:e.params}}function st(e,t){return T_(JSON.stringify(e,(n,r)=>typeof r=="bigint"?g_(r):r,t))}function g_(e){return {$n:`${e}`}}function T_(e){return e.replace(/\{\s*"\$n"\s*:\s*"(-?\d+)"\s*\}/g,"$1")}function Pi(e){return p_(e)}function p_(e){return new Proxy(e.api,{defineProperty(){return !1},deleteProperty(){return !1},get(t,n,r){return function(...o){let i=n.toString(),a=Reflect.get(t,i,r);if(!a)throw new _(Yn,{method:i,params:o});let s=a(...o);return I_(e,s)}}})}function I_({transport:e},t){return {async send(n){return await t.execute({signal:n==null?void 0:n.abortSignal,transport:e})}}}function xi(e){return new Proxy({},{defineProperty(){return !1},deleteProperty(){return !1},get(...t){let[n,r]=t,o=r.toString();return function(...i){let a=Object.freeze({methodName:o,params:i}),s=e!=null&&e.requestTransformer?e==null?void 0:e.requestTransformer(a):a;return Object.freeze({execute:async({signal:c,transport:u})=>{let d=Se(s),l=await u({payload:d,signal:c});return e!=null&&e.responseTransformer?e.responseTransformer(l,s):l}})}}})}function ct(e){return e==null||typeof e!="object"||Array.isArray(e)?!1:"jsonrpc"in e&&e.jsonrpc==="2.0"&&"method"in e&&typeof e.method=="string"&&"params"in e}var R={};function Ui(e){return function t(n,r){if(Array.isArray(n))return n.map((o,i)=>{let a={...r,keyPath:[...r.keyPath,i]};return t(o,a)});if(typeof n=="object"&&n!==null){let o={};for(let i in n){if(!Object.prototype.hasOwnProperty.call(n,i))continue;let a={...r,keyPath:[...r.keyPath,i]};o[i]=t(n[i],a);}return o}else return e.reduce((o,i)=>i(o,r),n)}}function Bi(e,t){return n=>{let r=Ui(e);return Object.freeze({...n,params:r(n.params,t)})}}function C_(e,t){return n=>Ui(e)(n,t)}function h_(){return Bi([L_],{keyPath:[]})}function L_(e){return typeof e=="bigint"?Number(e):e}function b_({defaultCommitment:e,optionsObjectPositionByMethod:t}){return n=>{let{params:r,methodName:o}=n;if(!Array.isArray(r))return n;let i=t[o];return i==null?n:Object.freeze({methodName:o,params:D_({commitmentPropertyName:o==="sendTransaction"?"preflightCommitment":"commitment",optionsObjectPositionInParams:i,overrideCommitment:e,params:r})})}}function D_({commitmentPropertyName:e,params:t,optionsObjectPositionInParams:n,overrideCommitment:r}){let o=t[n];if(o===void 0||o&&typeof o=="object"&&!Array.isArray(o)){if(o&&e in o){if(!o[e]||o[e]==="finalized"){let i=[...t],{[e]:a,...s}=o;return Object.keys(s).length>0?i[n]=s:n===i.length-1?i.length--:i[n]=void 0,i}}else if(r!=="finalized"){let i=[...t];return i[n]={...o,[e]:r},i}}return t}function y_(e){return t=>Bi([w_((...r)=>e(t,...r))],{keyPath:[]})(t)}function w_(e){return (t,{keyPath:n})=>(typeof t=="bigint"&&e&&(t>Number.MAX_SAFE_INTEGER||t<-Number.MAX_SAFE_INTEGER)&&e(n,t),t)}var v_={accountNotifications:1,blockNotifications:1,getAccountInfo:1,getBalance:1,getBlock:1,getBlockHeight:0,getBlockProduction:0,getBlocks:2,getBlocksWithLimit:2,getEpochInfo:0,getFeeForMessage:1,getInflationGovernor:0,getInflationReward:1,getLargestAccounts:0,getLatestBlockhash:0,getLeaderSchedule:1,getMinimumBalanceForRentExemption:1,getMultipleAccounts:1,getProgramAccounts:1,getSignaturesForAddress:1,getSlot:0,getSlotLeader:0,getStakeMinimumDelegation:0,getSupply:0,getTokenAccountBalance:1,getTokenAccountsByDelegate:2,getTokenAccountsByOwner:2,getTokenLargestAccounts:1,getTokenSupply:1,getTransaction:1,getTransactionCount:0,getVoteAccounts:0,isBlockhashValid:1,logsNotifications:1,programNotifications:1,requestAirdrop:2,sendTransaction:1,signatureNotifications:1,simulateTransaction:1};function ut(e){let t=e==null?void 0:e.onIntegerOverflow;return n=>k(n,t?y_(t):r=>r,h_(),b_({defaultCommitment:e==null?void 0:e.defaultCommitment,optionsObjectPositionByMethod:v_}))}function Mi(e){return C_([P_(e)],{keyPath:[]})}function P_(e){return function(n,{keyPath:r}){return typeof n=="number"&&Number.isInteger(n)||typeof n=="bigint"?x_(r,e)?Number(n):BigInt(n):n}}function x_(e,t){return t.some(n=>{if(n.length!==e.length)return !1;for(let r=e.length-1;r>=0;r--){let o=e[r],i=n[r];if(i!==o&&(i!==R||typeof o!="number"))return !1}return !0})}function U_(){return e=>e.result}function B_(){return e=>{let t=e;if("error"in t)throw pe(t.error);return t}}function Fi(e){return (t,n)=>{let r=n.methodName,o=e!=null&&e.allowedNumericKeyPaths&&r?e.allowedNumericKeyPaths[r]:void 0;return k(t,i=>B_()(i,n),i=>U_()(i,n),i=>Mi(o!=null?o:[])(i,n))}}function zi(e){return (t,n)=>{let r=n.methodName,o=e!=null&&e.allowedNumericKeyPaths&&r?e.allowedNumericKeyPaths[r]:void 0;return k(t,i=>Mi(o!=null?o:[])(i,n))}}var _t=[["data","parsed","info","tokenAmount","decimals"],["data","parsed","info","tokenAmount","uiAmount"],["data","parsed","info","rentExemptReserve","decimals"],["data","parsed","info","rentExemptReserve","uiAmount"],["data","parsed","info","delegatedAmount","decimals"],["data","parsed","info","delegatedAmount","uiAmount"],["data","parsed","info","extensions",R,"state","olderTransferFee","transferFeeBasisPoints"],["data","parsed","info","extensions",R,"state","newerTransferFee","transferFeeBasisPoints"],["data","parsed","info","extensions",R,"state","preUpdateAverageRate"],["data","parsed","info","extensions",R,"state","currentRate"]],re=[..._t,["data","parsed","info","lastExtendedSlotStartIndex"],["data","parsed","info","slashPenalty"],["data","parsed","info","warmupCooldownRate"],["data","parsed","info","decimals"],["data","parsed","info","numRequiredSigners"],["data","parsed","info","numValidSigners"],["data","parsed","info","stake","delegation","warmupCooldownRate"],["data","parsed","info","exemptionThreshold"],["data","parsed","info","burnPercent"],["data","parsed","info","commission"],["data","parsed","info","votes",R,"confirmationCount"]],dt=[["index"],["instructions",R,"accounts",R],["instructions",R,"programIdIndex"],["instructions",R,"stackHeight"]],yr=[["addressTableLookups",R,"writableIndexes",R],["addressTableLookups",R,"readonlyIndexes",R],["header","numReadonlySignedAccounts"],["header","numReadonlyUnsignedAccounts"],["header","numRequiredSignatures"],["instructions",R,"accounts",R],["instructions",R,"programIdIndex"],["instructions",R,"stackHeight"]];function ki(e){return xi({requestTransformer:ut(e),responseTransformer:Fi({allowedNumericKeyPaths:M_()})})}var wr;function M_(){return wr||(wr={getAccountInfo:re.map(e=>["value",...e]),getBlock:[["transactions",R,"meta","preTokenBalances",R,"accountIndex"],["transactions",R,"meta","preTokenBalances",R,"uiTokenAmount","decimals"],["transactions",R,"meta","postTokenBalances",R,"accountIndex"],["transactions",R,"meta","postTokenBalances",R,"uiTokenAmount","decimals"],["transactions",R,"meta","rewards",R,"commission"],...dt.map(e=>["transactions",R,"meta","innerInstructions",R,...e]),...yr.map(e=>["transactions",R,"transaction","message",...e]),["rewards",R,"commission"]],getClusterNodes:[[R,"featureSet"],[R,"shredVersion"]],getInflationGovernor:[["initial"],["foundation"],["foundationTerm"],["taper"],["terminal"]],getInflationRate:[["foundation"],["total"],["validator"]],getInflationReward:[[R,"commission"]],getMultipleAccounts:re.map(e=>["value",R,...e]),getProgramAccounts:re.flatMap(e=>[["value",R,"account",...e],[R,"account",...e]]),getRecentPerformanceSamples:[[R,"samplePeriodSecs"]],getTokenAccountBalance:[["value","decimals"],["value","uiAmount"]],getTokenAccountsByDelegate:_t.map(e=>["value",R,"account",...e]),getTokenAccountsByOwner:_t.map(e=>["value",R,"account",...e]),getTokenLargestAccounts:[["value",R,"decimals"],["value",R,"uiAmount"]],getTokenSupply:[["value","decimals"],["value","uiAmount"]],getTransaction:[["meta","preTokenBalances",R,"accountIndex"],["meta","preTokenBalances",R,"uiTokenAmount","decimals"],["meta","postTokenBalances",R,"accountIndex"],["meta","postTokenBalances",R,"uiTokenAmount","decimals"],["meta","rewards",R,"commission"],...dt.map(e=>["meta","innerInstructions",R,...e]),...yr.map(e=>["transaction","message",...e])],getVersion:[["feature-set"]],getVoteAccounts:[["current",R,"commission"],["delinquent",R,"commission"]],simulateTransaction:[...re.map(e=>["value","accounts",R,...e]),...dt.map(e=>["value","innerInstructions",R,...e])]}),wr}function F_(e){let t={};for(let n in e)t[n.toLowerCase()]=e[n];return t}function z_(e){let{fromJson:t,headers:n,toJson:r,url:o}=e,i,a=n&&F_(n);return async function({payload:c,signal:u}){let d=r?r(c):JSON.stringify(c),l={...i,body:d,headers:{...a,accept:"application/json","content-length":d.length.toString(),"content-type":"application/json; charset=utf-8"},method:"POST",signal:u},f=await fetch(o,l);if(!f.ok)throw new _(Kn,{message:f.statusText,statusCode:f.status});return t?t(await f.text(),c):await f.json()}}var k_=["getAccountInfo","getBalance","getBlock","getBlockCommitment","getBlockHeight","getBlockProduction","getBlocks","getBlocksWithLimit","getBlockTime","getClusterNodes","getEpochInfo","getEpochSchedule","getFeeForMessage","getFirstAvailableBlock","getGenesisHash","getHealth","getHighestSnapshotSlot","getIdentity","getInflationGovernor","getInflationRate","getInflationReward","getLargestAccounts","getLatestBlockhash","getLeaderSchedule","getMaxRetransmitSlot","getMaxShredInsertSlot","getMinimumBalanceForRentExemption","getMultipleAccounts","getProgramAccounts","getRecentPerformanceSamples","getRecentPrioritizationFees","getSignaturesForAddress","getSignatureStatuses","getSlot","getSlotLeader","getSlotLeaders","getStakeMinimumDelegation","getSupply","getTokenAccountBalance","getTokenAccountsByDelegate","getTokenAccountsByOwner","getTokenLargestAccounts","getTokenSupply","getTransaction","getTransactionCount","getVersion","getVoteAccounts","index","isBlockhashValid","minimumLedgerSlot","requestAirdrop","sendTransaction","simulateTransaction"];function Vi(e){return ct(e)&&k_.includes(e.method)}function Gi(e){return z_({...e,fromJson:(t,n)=>Vi(n)?at(t):JSON.parse(t),toJson:t=>Vi(t)?st(t):JSON.stringify(t)})}var V_=Object.prototype.toString,G_=Object.keys||function(e){let t=[];for(let n in e)t.push(n);return t};function we(e,t){let n,r,o,i,a,s,c;if(e===!0)return "true";if(e===!1)return "false";switch(typeof e){case"object":if(e===null)return null;if("toJSON"in e&&typeof e.toJSON=="function")return we(e.toJSON(),t);if(c=V_.call(e),c==="[object Array]"){for(o="[",r=e.length-1,n=0;n<r;n++)o+=we(e[n],!0)+",";return r>-1&&(o+=we(e[n],!0)),o+"]"}else if(c==="[object Object]"){for(i=G_(e).sort(),r=i.length,o="",n=0;n<r;)a=i[n],s=we(e[a],!1),s!==void 0&&(o&&(o+=","),o+=JSON.stringify(a)+":"+s),n++;return "{"+o+"}"}else return JSON.stringify(e);case"function":case"undefined":return t?null:void 0;case"bigint":return `${e.toString()}n`;case"string":return JSON.stringify(e);default:return isFinite(e)?e:null}}function lt(e){let t=we(e,!1);if(t!==void 0)return ""+t}function Wi(e,t,n){let r="";if(typeof t[0]=="number"){let a=t[0]+1,s=a%10,c=a%100;s==1&&c!=11?r=a+"st":s==2&&c!=12?r=a+"nd":s==3&&c!=13?r=a+"rd":r=a+"th";}else r=`\`${t[0].toString()}\``;let o=t.length>1?t.slice(1).map(a=>typeof a=="number"?`[${a}]`:a).join("."):void 0,i=new _(Te,{argumentLabel:r,keyPath:t,methodName:e,optionalPathLabel:o?` at path \`${o}\``:"",value:n,...o!==void 0?{path:o}:void 0});return ue(i,Wi),i}var H_={defaultCommitment:"confirmed",onIntegerOverflow(e,t,n){throw Wi(e.methodName,t,n)}},Hi;function $i(){return {}}function $_(e,t){let n;return async function(o){let{payload:i,signal:a}=o,s=t(i);if(s===void 0)return await e(o);if(n||(queueMicrotask(()=>{n=void 0;}),n={}),n[s]==null){let u=new AbortController,d=(async()=>{try{return await e({...o,signal:u.signal})}catch(l){if(l===(Hi||(Hi=$i())))return;throw l}})();n[s]={abortController:u,numConsumers:0,responsePromise:d};}let c=n[s];if(c.numConsumers++,a){let u=c.responsePromise;return await new Promise((d,l)=>{let f=E=>{a.removeEventListener("abort",f),c.numConsumers-=1,queueMicrotask(()=>{c.numConsumers===0&&c.abortController.abort(Hi||(Hi=$i()));}),l(E.target.reason);};a.addEventListener("abort",f),u.then(d).catch(l).finally(()=>{a.removeEventListener("abort",f);});})}else return await c.responsePromise}}function W_(e){return ct(e)?lt([e.method,e.params]):void 0}function j_(e){let t={};for(let n in e)t[n.toLowerCase()]=e[n];return t}function X_(e){return k(Gi({...e,headers:{...e.headers?j_(e.headers):void 0,"solana-client":"js/2.0.0-rc.4"}}),t=>$_(t,W_))}function aA(e,t){return K_(X_({url:e,...t}))}function K_(e){return Pi({api:ki(H_),transport:e})}var ji;function Xi(){return Symbol(void 0)}var vr=Symbol();function Ki({abortSignal:e,dataChannelName:t,dataPublisher:n,errorChannelName:r}){let o=new Map;function i(u){for(let[d,l]of o.entries())l.__hasPolled?(o.delete(d),l.onError(u)):l.publishQueue.push({__type:1,err:u});}let a=new AbortController;e.addEventListener("abort",()=>{a.abort(),i(ji||(ji=Xi()));});let s={signal:a.signal},c=vr;return n.on(r,u=>{c===vr&&(c=u,a.abort(),i(u));},s),n.on(t,u=>{o.forEach((d,l)=>{if(d.__hasPolled){let{onData:f}=d;o.set(l,{__hasPolled:!1,publishQueue:[]}),f(u);}else d.publishQueue.push({__type:0,data:u});});},s),{async*[Symbol.asyncIterator](){if(e.aborted)return;if(c!==vr)throw c;let u=Symbol();o.set(u,{__hasPolled:!1,publishQueue:[]});try{for(;;){let d=o.get(u);if(!d)throw new _(er);if(d.__hasPolled)throw new _(tr);let l=d.publishQueue;try{if(l.length){d.publishQueue=[];for(let f of l)if(f.__type===0)yield f.data;else throw f.err}else yield await new Promise((f,E)=>{o.set(u,{__hasPolled:!0,onData:f,onError:E});});}catch(f){if(f===(ji||(ji=Xi())))return;throw f}}}finally{o.delete(u);}}}}function Pr(e){return {on(t,n,r){function o(i){if(i instanceof CustomEvent){let a=i.detail;n(a);}else n();}return e.addEventListener(t,o,r),()=>{e.removeEventListener(t,o);}}}}function Yi(e,t,n){let r,o=new EventTarget,i=Pr(o);return {...i,on(a,s,c){r||(r={dispose:e.on(t,E=>{let S=n(E);if(!S)return;let[m,y]=S;o.dispatchEvent(new CustomEvent(m,{detail:y}));}),numSubscribers:0}),r.numSubscribers++;let u=i.on(a,s,c),d=!0;function l(){d&&(d=!1,c==null||c.signal.removeEventListener("abort",l),r.numSubscribers--,r.numSubscribers===0&&(r.dispose(),r=void 0),u());}return c==null||c.signal.addEventListener("abort",l),l}}}function Ji(e){return e!==null&&(typeof e=="object"||typeof e=="function")}function Y_(e){let t=new Set,n={deferreds:t,settled:!1};return Promise.resolve(e).then(r=>{for(let{resolve:o}of t)o(r);t.clear(),n.settled=!0;},r=>{for(let{reject:o}of t)o(r);t.clear(),n.settled=!0;}),n}var xr=new WeakMap;async function Oe(e){let t;return await new Promise((r,o)=>{t={reject:o,resolve:r};for(let i of e){if(!Ji(i)){Promise.resolve(i).then(r,o);continue}let a=xr.get(i);a===void 0?(a=Y_(i),a.deferreds.add(t),xr.set(i,a)):a.settled?Promise.resolve(i).then(r,o):a.deferreds.add(t);}}).finally(()=>{for(let r of e)Ji(r)&&xr.get(r).deferreds.delete(t);})}function Zi(e){return new Proxy(e.api,{defineProperty(){return !1},deleteProperty(){return !1},get(t,n,r){return function(...o){let i=n.toString(),a=Reflect.get(t,i,r);if(!a)throw new _(Jn,{notificationName:i});let s=a(...o);return J_(e.transport,s)}}})}function J_(e,t){return {async subscribe({abortSignal:n}){let r=await e({signal:n,...t});return Ki({abortSignal:n,dataChannelName:"notification",dataPublisher:r,errorChannelName:"error"})}}}function Qi(e){return new Proxy({},{defineProperty(){return !1},deleteProperty(){return !1},get(...t){let[n,r]=t,o=r.toString();return function(...i){let a={methodName:o,params:i},s=e.requestTransformer?e.requestTransformer(a):a;return {execute(c){return e.planExecutor({...c,request:s})},request:s}}}})}function Br(e,t){return Object.freeze({...e,on(n,r,o){return n!=="message"?e.on(n,r,o):e.on("message",i=>r(t(i)),o)}})}function Mr(e,t){return Object.freeze({...e,send:n=>e.send(t(n))})}var Ur=new WeakMap;function q_(e,t){return ea(-1,e,t)}function Z_(e,t){ea(1,e,t);}function ea(e,t,n){if(n===void 0)return;let r=Ur.get(t);if(!r&&e>0&&Ur.set(t,r={[n]:0}),(r==null?void 0:r[n])!==void 0)return r[n]=e+r[n]}var qi=new WeakMap;function Q_(e,t,n){let r=qi.get(e);r||qi.set(e,r=new WeakMap);let o=n!=null?n:e,i=r.get(o);return i||r.set(o,i=Yi(e,"message",a=>{let s=a;if(!("method"in s))return;let c=n?n(s.params.result,t):s.params.result;return [`notification:${s.params.subscription}`,c]})),i}async function ta({channel:e,responseTransformer:t,signal:n,subscribeRequest:r,unsubscribeMethodName:o}){let i;e.on("error",()=>{i=void 0,Ur.delete(e);},{signal:n});let a=new Promise((l,f)=>{function E(){if(q_(e,i)===0){let S=Se({methodName:o,params:[i]});i=void 0,e.send(S).catch(()=>{});}f(this.reason);}n.aborted?E.call(n):n.addEventListener("abort",E);}),s=Se(r);await e.send(s);let c=new Promise((l,f)=>{let E=new AbortController;n.addEventListener("abort",E.abort.bind(E));let S={signal:E.signal};e.on("error",m=>{E.abort(),f(m);},S),e.on("message",m=>{m&&typeof m=="object"&&"id"in m&&m.id===s.id&&(E.abort(),"error"in m?f(pe(m.error)):l(m.result));},S);});if(i=await Oe([a,c]),i==null)throw new _(qn);Z_(e,i);let u=Q_(e,r,t),d=`notification:${i}`;return {on(l,f,E){switch(l){case"notification":return u.on(d,f,E);case"error":return e.on("error",f,E);default:throw new _(rr,{channelName:l,supportedChannelNames:["notification","error"]})}}}}function na(e){let t=ut(e),n=zi({allowedNumericKeyPaths:ed()});return Qi({planExecutor({request:r,...o}){return ta({...o,responseTransformer:n,subscribeRequest:{...r,methodName:r.methodName.replace(/Notifications$/,"Subscribe")},unsubscribeMethodName:r.methodName.replace(/Notifications$/,"Unsubscribe")})},requestTransformer:t})}function ra(e){return na(e)}function mA(e){return na(e)}var Fr;function ed(){return Fr||(Fr={accountNotifications:re.map(e=>["value",...e]),blockNotifications:[["value","block","transactions",R,"meta","preTokenBalances",R,"accountIndex"],["value","block","transactions",R,"meta","preTokenBalances",R,"uiTokenAmount","decimals"],["value","block","transactions",R,"meta","postTokenBalances",R,"accountIndex"],["value","block","transactions",R,"meta","postTokenBalances",R,"uiTokenAmount","decimals"],["value","block","transactions",R,"meta","rewards",R,"commission"],["value","block","transactions",R,"meta","innerInstructions",R,"index"],["value","block","transactions",R,"meta","innerInstructions",R,"instructions",R,"programIdIndex"],["value","block","transactions",R,"meta","innerInstructions",R,"instructions",R,"accounts",R],["value","block","transactions",R,"transaction","message","addressTableLookups",R,"writableIndexes",R],["value","block","transactions",R,"transaction","message","addressTableLookups",R,"readonlyIndexes",R],["value","block","transactions",R,"transaction","message","instructions",R,"programIdIndex"],["value","block","transactions",R,"transaction","message","instructions",R,"accounts",R],["value","block","transactions",R,"transaction","message","header","numReadonlySignedAccounts"],["value","block","transactions",R,"transaction","message","header","numReadonlyUnsignedAccounts"],["value","block","transactions",R,"transaction","message","header","numRequiredSignatures"],["value","block","rewards",R,"commission"]],programNotifications:re.flatMap(e=>[["value",R,"account",...e],[R,"account",...e]])}),Fr}var ve=globalThis.WebSocket,oa=1e3;function ia({sendBufferHighWatermark:e,signal:t,url:n}){if(t.aborted)return Promise.reject(t.reason);let r,o=!1,i=new Set;function a(){i.forEach(I=>{I();}),i.clear();}function s(){a(),o||m(t.reason),S.readyState!==ve.CLOSED&&S.readyState!==ve.CLOSING&&S.close(oa);}function c(I){a(),r==null||r.onCancel(),t.removeEventListener("abort",s),S.removeEventListener("close",c),S.removeEventListener("error",u),S.removeEventListener("message",d),S.removeEventListener("open",E),!t.aborted&&!(I.wasClean&&I.code===oa)&&l.dispatchEvent(new CustomEvent("error",{detail:new _(ce,{cause:I})}));}function u(I){if(!t.aborted&&!o){let j=new _(Qn,{errorEvent:I});m(j),l.dispatchEvent(new CustomEvent("error",{detail:j}));}}function d(I){t.aborted||l.dispatchEvent(new CustomEvent("message",{detail:I.data}));}let l=new EventTarget,f=Pr(l);function E(){o=!0,y({...f,async send(I){if(S.readyState!==ve.OPEN)throw new _(ce);if(!r&&S.bufferedAmount>e){let j,$a=new Promise((Wa,ja)=>{let fo=setInterval(()=>{(S.readyState!==ve.OPEN||!(S.bufferedAmount>e))&&(clearInterval(fo),r=void 0,Wa());},16);j=()=>{r=void 0,clearInterval(fo),ja(new _(Zn));};});r={onCancel:j,promise:$a};}if(r){if(ArrayBuffer.isView(I)&&!(I instanceof DataView)){let j=I.constructor;I=new j(I);}await r.promise;}S.send(I);}});}let S=new ve(n);t.addEventListener("abort",s),S.addEventListener("close",c),S.addEventListener("error",u),S.addEventListener("message",d),S.addEventListener("open",E);let m,y;return new Promise((I,j)=>{m=j,y=I;})}function aa(e,t,n){let r="";if(typeof t[0]=="number"){let a=t[0]+1,s=a%10,c=a%100;s==1&&c!=11?r=a+"st":s==2&&c!=12?r=a+"nd":s==3&&c!=13?r=a+"rd":r=a+"th";}else r=`\`${t[0].toString()}\``;let o=t.length>1?t.slice(1).map(a=>typeof a=="number"?`[${a}]`:a).join("."):void 0,i=new _(Te,{argumentLabel:r,keyPath:t,methodName:e,optionalPathLabel:o?` at path \`${o}\``:"",value:n,...o!==void 0?{path:o}:void 0});return ue(i,aa),i}var td={defaultCommitment:"confirmed",onIntegerOverflow(e,t,n){throw aa(e.methodName,t,n)}},nd={jsonrpc:"2.0",method:"ping"};function rd({abortSignal:e,channel:t,intervalMs:n}){let r;function o(){t.send(nd).catch(s=>{J(s,ce)&&a.abort();});}function i(){clearInterval(r),r=setInterval(o,n);}let a=new AbortController;return a.signal.addEventListener("abort",()=>{clearInterval(r);}),e.addEventListener("abort",()=>{a.abort();}),t.on("error",()=>{a.abort();},{signal:a.signal}),t.on("message",i,{signal:a.signal}),globalThis.navigator.onLine&&i(),globalThis.window.addEventListener("offline",function(){clearInterval(r);},{signal:a.signal}),globalThis.window.addEventListener("online",function(){o(),i();},{signal:a.signal}),{...t,send(...s){return a.signal.aborted||i(),t.send(...s)}}}function od(){return {entries:[],freeChannelIndex:-1}}function id(e,{maxSubscriptionsPerChannel:t,minChannels:n}){let r=od();function o(){var a;if(r.entries.length<n){r.freeChannelIndex=-1;return}let i;for(let s=0;s<r.entries.length;s++){let c=(r.freeChannelIndex+s+2)%r.entries.length,u=r.entries[c];u.subscriptionCount<t&&(!i||i.subscriptionCount>=u.subscriptionCount)&&(i={poolIndex:c,subscriptionCount:u.subscriptionCount});}r.freeChannelIndex=(a=i==null?void 0:i.poolIndex)!=null?a:-1;}return function({abortSignal:a}){let s;function c(){let u=r.entries.findIndex(d=>d===s);r.entries.splice(u,1),s.dispose(),o();}if(r.freeChannelIndex===-1){let u=new AbortController,d=e({abortSignal:u.signal});d.then(l=>{l.on("error",c,{signal:u.signal});}).catch(c),s={channel:d,dispose(){u.abort();},subscriptionCount:0},r.entries.push(s);}else s=r.entries[r.freeChannelIndex];return s.subscriptionCount++,a.addEventListener("abort",function(){s.subscriptionCount--,s.subscriptionCount===0?c():r.freeChannelIndex!==-1&&(r.freeChannelIndex--,o());}),o(),s.channel}}function ad(e){return k(e,t=>Br(t,JSON.parse),t=>Mr(t,JSON.stringify))}function sd(e){return k(e,t=>Br(t,at),t=>Mr(t,st))}function cd(e){return sa({...e,jsonSerializer:sd})}function vA(e){return sa({...e,jsonSerializer:ad})}function sa(e){var o,i;if(/^wss?:/i.test(e.url)===!1){let a=e.url.match(/^([^:]+):/);throw new DOMException(a?`Failed to construct 'WebSocket': The URL's scheme must be either 'ws' or 'wss'. '${a[1]}:' is not allowed.`:`Failed to construct 'WebSocket': The URL '${e.url}' is invalid.`)}let{intervalMs:t,...n}=e;return id(({abortSignal:a})=>{var s;return ia({...n,sendBufferHighWatermark:(s=e.sendBufferHighWatermark)!=null?s:131072,signal:a}).then(e.jsonSerializer).then(c=>rd({abortSignal:a,channel:c,intervalMs:t!=null?t:5e3}))},{maxSubscriptionsPerChannel:(o=e.maxSubscriptionsPerChannel)!=null?o:100,minChannels:(i=e.minChannels)!=null?i:1})}function ud(e){let t=new Map;return function(r){let{request:o,signal:i}=r,a=lt([o.methodName,o.params]),s=t.get(a);if(!s){let c=new AbortController,u=e({...r,signal:c.signal});u.then(d=>{d.on("error",()=>{t.delete(a),c.abort();},{signal:c.signal});}).catch(()=>{}),t.set(a,s={abortController:c,dataPublisherPromise:u,numSubscribers:0});}return s.numSubscribers++,i.addEventListener("abort",()=>{s.numSubscribers--,s.numSubscribers===0&&queueMicrotask(()=>{s.numSubscribers===0&&(t.delete(a),s.abortController.abort());});},{signal:s.abortController.signal}),s.dataPublisherPromise}}function _d({createChannel:e}){return k(dd(e),t=>ud(t))}function dd(e){return async({execute:t,signal:n})=>{let r=await e({abortSignal:n});return await t({channel:r,signal:n})}}function ca(e,t){let n=_d({createChannel:cd({...t,url:e})});return ld(n)}function PA(e,t){return ca(e,t)}function xA(e,t){return ca(e,t)}function ld(e){return Zi({api:ra(td),transport:e})}var zr,kr;function Hr(){return zr||(zr=K()),zr}function Rd(){return kr||(kr=Z()),kr}function GA(e){return !(e.length<32||e.length>44||Hr().encode(e).byteLength!==32)}function $r(e){if(e.length<32||e.length>44)throw new _(Ct,{actualLength:e.length});let r=Hr().encode(e).byteLength;if(r!==32)throw new _(ht,{actualLength:r})}function fd(e){return $r(e),e}function Ad(){return T(w(Hr(),32),e=>fd(e))}function Ed(){return v(Rd(),32)}function HA(){return A(Ad(),Ed())}function $A(){return new Intl.Collator("en",{caseFirst:"lower",ignorePunctuation:!1,localeMatcher:"best fit",numeric:!1,sensitivity:"variant",usage:"sort"}).compare}function WA(e){return e}function jA(e){return e}function XA(e){return e}function ua(e){switch(e){case"finalized":return 2;case"confirmed":return 1;case"processed":return 0;default:throw new _(nr,{unexpectedValue:e})}}function Rt(e,t){return e===t?0:ua(e)<ua(t)?-1:1}var _a=18446744073709551615n,Vr,Gr;function Sd(){return Vr||(Vr=pr()),Vr}function Od(){return Gr||(Gr=Ir()),Gr}function KA(e){return e>=0&&e<=_a}function Nd(e){if(e<0||e>_a)throw new _(Lt)}function md(e){return Nd(e),e}function gd(){return Sd()}function YA(e){return e}function Td(){return da(Od())}function da(e){return p(e,t=>md(typeof t=="bigint"?t:BigInt(t)))}function JA(){return A(gd(),Td())}function qA(e){return A(e,da(e))}function ZA(e){try{return BigInt(e),!0}catch{return !1}}function pd(e){try{BigInt(e);}catch{throw new _(bt,{value:e})}}function QA(e){return pd(e),e}function eE(e){return !Number.isNaN(Number(e))}function Id(e){if(Number.isNaN(Number(e)))throw new _(Dt,{value:e})}function tE(e){return Id(e),e}var la=9223372036854775807n,Ra=-9223372036854775808n;function nE(e){return e>=Ra&&e<=la}function Cd(e){if(e<Ra||e>la)throw new _(yt,{value:e})}function rE(e){return Cd(e),e}function Pe(e){if(!("lifetimeConstraint"in e&&typeof e.lifetimeConstraint.blockhash=="string"&&typeof e.lifetimeConstraint.lastValidBlockHeight=="bigint"))return !1;try{return $r(e.lifetimeConstraint.blockhash),!0}catch{return !1}}function RE(e){if(!Pe(e))throw new _(Nn)}function eo(e,t){if("lifetimeConstraint"in t&&t.lifetimeConstraint.blockhash===e.blockhash&&t.lifetimeConstraint.lastValidBlockHeight===e.lastValidBlockHeight)return t;let n={...t,lifetimeConstraint:Object.freeze(e)};return Object.freeze(n),n}function hd(e,t,n=t){if(!t.match(new RegExp(`^[${e}]*$`)))throw new _(X,{alphabet:e,base:e.length,value:n})}var Ld=e=>O({getSizeFromValue:t=>{let[n,r]=fa(t,e[0]);if(!r)return t.length;let o=Aa(r,e);return n.length+Math.ceil(o.toString(16).length/2)},write(t,n,r){if(hd(e,t),t==="")return r;let[o,i]=fa(t,e[0]);if(!i)return n.set(new Uint8Array(o.length).fill(0),r),r+o.length;let a=Aa(i,e),s=[];for(;a>0n;)s.unshift(Number(a%256n)),a/=256n;let c=[...Array(o.length).fill(0),...s];return n.set(c,r),r+c.length}}),bd=e=>N({read(t,n){let r=n===0?t:t.slice(n);if(r.length===0)return ["",0];let o=r.findIndex(c=>c!==0);o=o===-1?r.length:o;let i=e[0].repeat(o);if(o===r.length)return [i,t.length];let a=r.slice(o).reduce((c,u)=>c*256n+BigInt(u),0n),s=Dd(a,e);return [i+s,t.length]}});function fa(e,t){let[n,r]=e.split(new RegExp(`((?!${t}).*)`));return [n,r]}function Aa(e,t){let n=BigInt(t.length),r=0n;for(let o of e)r*=n,r+=BigInt(t.indexOf(o));return r}function Dd(e,t){let n=BigInt(t.length),r=[];for(;e>0n;)r.unshift(t[Number(e%n)]),e/=n;return r.join("")}var ma="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",yd=()=>Ld(ma),wd=()=>bd(ma),Wr;function vd(){return Wr||(Wr=Y([["lookupTableAddress",qe()],["writableIndices",z(D(),{size:V()})],["readableIndices",z(D(),{size:V()})]])),Wr}var jr;function Pd(){return jr||(jr=ne([["lookupTableAddress",ae()],["writableIndices",P(L(),{size:M()})],["readableIndices",P(L(),{size:M()})]])),jr}var Xr;function Kr(){return Xr||(Xr=D()),Xr}var Yr;function Jr(){return Yr||(Yr=L()),Yr}function xd(){return Y([["numSignerAccounts",Kr()],["numReadonlySignerAccounts",Kr()],["numReadonlyNonSignerAccounts",Kr()]])}function Ud(){return ne([["numSignerAccounts",Jr()],["numReadonlySignerAccounts",Jr()],["numReadonlyNonSignerAccounts",Jr()]])}var qr;function Bd(){return qr||(qr=T(Y([["programAddressIndex",D()],["accountIndices",z(D(),{size:V()})],["data",or(Re(),V())]]),e=>{var t,n;return e.accountIndices!==void 0&&e.data!==void 0?e:{...e,accountIndices:(t=e.accountIndices)!=null?t:[],data:(n=e.data)!=null?n:new Uint8Array(0)}})),qr}var Zr;function Md(){return Zr||(Zr=p(ne([["programAddressIndex",L()],["accountIndices",P(L(),{size:M()})],["data",ir(fe(),M())]]),e=>{if(e.accountIndices.length&&e.data.byteLength)return e;let{accountIndices:t,data:n,...r}=e;return {...r,...t.length?{accountIndices:t}:null,...n.byteLength?{data:n}:null}})),Zr}var Qr=128;function ga(){return O({getSizeFromValue:e=>e==="legacy"?0:1,maxSize:1,write:(e,t,n)=>{if(e==="legacy")return n;if(e<0||e>127)throw new _(gn,{actualVersion:e});return t.set([e|Qr],n),n+1}})}function ft(){return N({maxSize:1,read:(e,t)=>{let n=e[t];return n&Qr?[n^Qr,t+1]:["legacy",t]}})}function fE(){return A(ga(),ft())}function Ea(){return Y(Ta())}function Sa(){return T(Y([...Ta(),["addressTableLookups",zd()]]),e=>{var t;return e.version==="legacy"?e:{...e,addressTableLookups:(t=e.addressTableLookups)!=null?t:[]}})}function Ta(){return [["version",ga()],["header",xd()],["staticAccounts",z(qe(),{size:V()})],["lifetimeToken",w(yd(),32)],["instructions",z(Bd(),{size:V()})]]}function Fd(){return [["version",ft()],["header",Ud()],["staticAccounts",P(ae(),{size:M()})],["lifetimeToken",v(wd(),32)],["instructions",P(Md(),{size:M()})],["addressTableLookups",kd()]]}function zd(){return z(vd(),{size:V()})}function kd(){return P(Pd(),{size:M()})}function to(){return O({getSizeFromValue:e=>e.version==="legacy"?Ea().getSizeFromValue(e):Sa().getSizeFromValue(e),write:(e,t,n)=>e.version==="legacy"?Ea().write(e,t,n):Sa().write(e,t,n)})}function Vd(){return p(ne(Fd()),({addressTableLookups:e,...t})=>t.version==="legacy"||!(e!=null&&e.length)?t:{...t,addressTableLookups:e})}function AE(){return A(to(),Vd())}function Oa(e,t,n){var r;e[t]=n((r=e[t])!=null?r:{role:h.READONLY});}var C=Symbol("AddressMapTypeProperty");function Gd(e,t){let n={[e]:{[C]:0,role:h.WRITABLE_SIGNER}},r=new Set;for(let o of t){Oa(n,o.programAddress,a=>{if(r.add(o.programAddress),C in a){if(Ae(a.role))switch(a[C]){case 0:throw new _(On,{programAddress:o.programAddress});default:throw new _(ke,{programAddress:o.programAddress})}if(a[C]===2)return a}return {[C]:2,role:h.READONLY}});let i;if(o.accounts)for(let a of o.accounts)Oa(n,a.address,s=>{let{address:c,...u}=a;if(C in s)switch(s[C]){case 0:return s;case 1:{let d=br(s.role,u.role);if("lookupTableAddress"in u){if(s.lookupTableAddress!==u.lookupTableAddress&&(i||(i=Ze()))(u.lookupTableAddress,s.lookupTableAddress)<0)return {[C]:1,...u,role:d}}else if(W(u.role))return {[C]:2,role:d};return s.role!==d?{...s,role:d}:s}case 2:{let d=br(s.role,u.role);if(r.has(a.address)){if(Ae(u.role))throw new _(ke,{programAddress:a.address});return s.role!==d?{...s,role:d}:s}else return "lookupTableAddress"in u&&!W(s.role)?{...u,[C]:1,role:d}:s.role!==d?{...s,role:d}:s}}return "lookupTableAddress"in u?{...u,[C]:1}:{...u,[C]:2}});}return n}function Hd(e){let t;return Object.entries(e).sort(([r,o],[i,a])=>{if(o[C]!==a[C]){if(o[C]===0)return -1;if(a[C]===0)return 1;if(o[C]===2)return -1;if(a[C]===2)return 1}let s=W(o.role);if(s!==W(a.role))return s?-1:1;let c=Ae(o.role);return c!==Ae(a.role)?c?-1:1:(t||(t=Ze()),o[C]===1&&a[C]===1&&o.lookupTableAddress!==a.lookupTableAddress?t(o.lookupTableAddress,a.lookupTableAddress):t(r,i))}).map(([r,o])=>({address:r,...o}))}function $d(e){var n;let t={};for(let r of e){if(!("lookupTableAddress"in r))continue;let o=t[n=r.lookupTableAddress]||(t[n]={readableIndices:[],writableIndices:[]});r.role===h.WRITABLE?o.writableIndices.push(r.addressIndex):o.readableIndices.push(r.addressIndex);}return Object.keys(t).sort(Ze()).map(r=>({lookupTableAddress:r,...t[r]}))}function Wd(e){let t=0,n=0,r=0;for(let o of e){if("lookupTableAddress"in o)break;let i=Ae(o.role);W(o.role)?(r++,i||n++):i||t++;}return {numReadonlyNonSignerAccounts:t,numReadonlySignerAccounts:n,numSignerAccounts:r}}function jd(e){let t={};for(let[n,r]of e.entries())t[r.address]=n;return t}function Xd(e,t){let n=jd(t);return e.map(({accounts:r,data:o,programAddress:i})=>({programAddressIndex:n[i],...r?{accountIndices:r.map(({address:a})=>n[a])}:null,...o?{data:o}:null}))}function Kd(e){return "nonce"in e?e.nonce:e.blockhash}function Yd(e){let t=e.findIndex(r=>"lookupTableAddress"in r);return (t===-1?e:e.slice(0,t)).map(({address:r})=>r)}function pa(e){let t=Gd(e.feePayer.address,e.instructions),n=Hd(t);return {...e.version!=="legacy"?{addressTableLookups:$d(n)}:null,header:Wd(n),instructions:Xd(e.instructions,n),lifetimeToken:Kd(e.lifetimeConstraint),staticAccounts:Yd(n),version:e.version}}function Jd(e,t,n){for(let[r,o]of Object.entries(n))for(let i=0;i<o.length;i++)if(e===o[i])return {address:e,addressIndex:i,lookupTableAddress:r,role:t}}function EE(e,t){let n=new Set(Object.values(t).flatMap(i=>i)),r=[],o=!1;for(let i of e.instructions){if(!i.accounts){r.push(i);continue}let a=[],s=!1;for(let c of i.accounts){if("lookupTableAddress"in c||!n.has(c.address)||W(c.role)){a.push(c);continue}let u=Jd(c.address,c.role,t);a.push(Object.freeze(u)),s=!0,o=!0;}r.push(Object.freeze(s?{...i,accounts:a}:i));}return Object.freeze(o?{...e,instructions:r}:e)}function qd({version:e}){return Object.freeze({instructions:Object.freeze([]),version:e})}var Ia="SysvarRecentB1ockHashes11111111111111111111",Ca="11111111111111111111111111111111";function SE(e){if(!At(e))throw new _(mn)}function Na(e,t){return {accounts:[{address:e,role:h.WRITABLE},{address:Ia,role:h.READONLY},{address:t,role:h.READONLY_SIGNER}],data:new Uint8Array([4,0,0,0]),programAddress:Ca}}function no(e){var t;return e.programAddress===Ca&&e.data!=null&&Zd(e.data)&&((t=e.accounts)==null?void 0:t.length)===3&&e.accounts[0].address!=null&&e.accounts[0].role===h.WRITABLE&&e.accounts[1].address===Ia&&e.accounts[1].role===h.READONLY&&e.accounts[2].address!=null&&W(e.accounts[2].role)}function Zd(e){return e.byteLength===4&&e[0]===4&&e[1]===0&&e[2]===0&&e[3]===0}function At(e){return "lifetimeConstraint"in e&&typeof e.lifetimeConstraint.nonce=="string"&&e.instructions[0]!=null&&no(e.instructions[0])}function Qd(e,t,n){return e.accounts[0].address===t&&e.accounts[2].address===n}function el({nonce:e,nonceAccountAddress:t,nonceAuthorityAddress:n},r){let o,i=r.instructions[0];if(i&&no(i))if(Qd(i,t,n)){if(At(r)&&r.lifetimeConstraint.nonce===e)return r;o=[i,...r.instructions.slice(1)];}else o=[Object.freeze(Na(t,n)),...r.instructions.slice(1)];else o=[Object.freeze(Na(t,n)),...r.instructions];return Object.freeze({...r,instructions:Object.freeze(o),lifetimeConstraint:Object.freeze({nonce:e})})}function tl(e,t){var r;if("feePayer"in t&&e===((r=t.feePayer)==null?void 0:r.address)&&nl(t.feePayer))return t;let n={...t,feePayer:Object.freeze({address:e})};return Object.freeze(n),n}function nl(e){return !!e&&"address"in e&&typeof e.address=="string"&&Object.keys(e).length===1}function ro(e,t){return rl([e],t)}function rl(e,t){return Object.freeze({...t,instructions:Object.freeze([...t.instructions,...e])})}function OE(e,t){return ol([e],t)}function ol(e,t){return Object.freeze({...t,instructions:Object.freeze([...e,...t.instructions])})}function il(e){let{header:t}=e,n=t.numSignerAccounts-t.numReadonlySignerAccounts,r=e.staticAccounts.length-t.numSignerAccounts-t.numReadonlyNonSignerAccounts,o=[],i=0;for(let a=0;a<n;a++)o.push({address:e.staticAccounts[i],role:h.WRITABLE_SIGNER}),i++;for(let a=0;a<t.numReadonlySignerAccounts;a++)o.push({address:e.staticAccounts[i],role:h.READONLY_SIGNER}),i++;for(let a=0;a<r;a++)o.push({address:e.staticAccounts[i],role:h.WRITABLE}),i++;for(let a=0;a<t.numReadonlyNonSignerAccounts;a++)o.push({address:e.staticAccounts[i],role:h.READONLY}),i++;return o}function al(e,t){let r=e.map(a=>a.lookupTableAddress).filter(a=>t[a]===void 0);if(r.length>0)throw new _(Tn,{lookupTableAddresses:r});let o=[],i=[];for(let a of e){let s=t[a.lookupTableAddress],c=Math.max(...a.readableIndices,...a.writableIndices);if(c>=s.length)throw new _(pn,{highestKnownIndex:s.length-1,highestRequestedIndex:c,lookupTableAddress:a.lookupTableAddress});let u=a.readableIndices.map(l=>({address:s[l],addressIndex:l,lookupTableAddress:a.lookupTableAddress,role:h.READONLY}));o.push(...u);let d=a.writableIndices.map(l=>({address:s[l],addressIndex:l,lookupTableAddress:a.lookupTableAddress,role:h.WRITABLE}));i.push(...d);}return [...i,...o]}function sl(e,t){var i,a;let n=(i=t[e.programAddressIndex])==null?void 0:i.address;if(!n)throw new _(In,{index:e.programAddressIndex});let r=(a=e.accountIndices)==null?void 0:a.map(s=>t[s]),{data:o}=e;return Object.freeze({programAddress:n,...r&&r.length?{accounts:Object.freeze(r)}:{},...o&&o.length?{data:o}:{}})}function cl(e,t,n){if(!t||!no(t))return {blockhash:e,lastValidBlockHeight:n!=null?n:2n**64n-1n};{let r=t.accounts[0].address;he(r);let o=t.accounts[2].address;return he(o),{nonce:e,nonceAccountAddress:r,nonceAuthorityAddress:o}}}function ha(e,t){var u;let n=e.staticAccounts[0];if(!n)throw new _(Cn);let r=il(e),o="addressTableLookups"in e&&e.addressTableLookups!==void 0&&e.addressTableLookups.length>0?al(e.addressTableLookups,(u=t==null?void 0:t.addressesByLookupTableAddress)!=null?u:{}):[],i=[...r,...o],a=e.instructions.map(d=>sl(d,i)),s=a[0],c=cl(e.lifetimeToken,s,t==null?void 0:t.lastValidBlockHeight);return k(qd({version:e.version}),d=>tl(n,d),d=>a.reduce((l,f)=>ro(f,l),d),d=>"blockhash"in c?eo(c,d):el(c,d))}function ul(e){let t=Object.values(e);if(t.length===0)throw new _(Dn);return t.map(n=>n||new Uint8Array(64).fill(0))}function _l(){return T(z(w(Re(),64),{size:V()}),ul)}function La(){return Y([["signatures",_l()],["messageBytes",Re()]])}function dl(){return p(ne([["signatures",P(v(fe(),64),{size:M()})],["messageBytes",fe()]]),ll)}function bE(){return A(La(),dl())}function ll(e){let{messageBytes:t,signatures:n}=e,r=F([ft(),_r(L(),2),P(ae(),{size:M()})]),[o,i,a]=r.decode(t),s=a.slice(0,i);if(s.length!==n.length)throw new _(yn,{numRequiredSignatures:i,signaturesLength:n.length,signerAddresses:s});let c={};return s.forEach((u,d)=>{let l=n[d];l.every(f=>f===0)?c[u]=null:c[u]=l;}),{messageBytes:t,signatures:Object.freeze(c)}}function Et(e){let t=pa(e),n=to().encode(t),r=t.staticAccounts.slice(0,t.header.numSignerAccounts),o={};for(let s of r)o[s]=null;let i;Pe(e)?i={blockhash:e.lifetimeConstraint.blockhash,lastValidBlockHeight:e.lifetimeConstraint.lastValidBlockHeight}:i={nonce:e.lifetimeConstraint.nonce,nonceAccountAddress:e.instructions[0].accounts[0].address};let a={lifetimeConstraint:i,messageBytes:n,signatures:Object.freeze(o)};return Object.freeze(a)}var oo;function io(e){oo||(oo=Z());let t=Object.values(e.signatures)[0];if(!t)throw new _(Ln);return oo.decode(t)}function Rl(e,t){return e.length===t.length&&e.every((n,r)=>n===t[r])}async function ao(e,t){let n,r;if(await Promise.all(e.map(async o=>{let i=await Qe(o.publicKey),a=t.signatures[i];if(a===void 0){r||(r=new Set),r.add(i);return}if(r)return;let s=await ye(o.privateKey,t.messageBytes);a!==null&&Rl(s,a)||(n||(n={}),n[i]=s);})),r&&r.size>0){let o=Object.keys(t.signatures);throw new _(bn,{expectedAddresses:o,unexpectedAddresses:[...r]})}return n?Object.freeze({...t,signatures:Object.freeze({...t.signatures,...n})}):t}async function DE(e,t){let n=await ao(e,t);return so(n),Object.freeze(n),n}function so(e){let t=[];if(Object.entries(e.signatures).forEach(([n,r])=>{r||t.push(n);}),t.length>0)throw new _(hn,{addresses:t})}function St(e){let t=La().encode(e);return Er().decode(t)}function xe(e){let t={};return e.forEach(n=>{if(!t[n.address])t[n.address]=n;else if(t[n.address]!==n)throw new _(cn,{address:n.address})}),Object.values(t)}function Ne(e){return "modifyAndSignTransactions"in e&&typeof e.modifyAndSignTransactions=="function"}function BE(e){if(!Ne(e))throw new _(fn,{address:e.address})}function oe(e){return "signTransactions"in e&&typeof e.signTransactions=="function"}function ME(e){if(!oe(e))throw new _(An,{address:e.address})}function Ot(e){return "signAndSendTransactions"in e&&typeof e.signAndSendTransactions=="function"}function FE(e){if(!Ot(e))throw new _(En,{address:e.address})}function Nt(e){return oe(e)||Ne(e)||Ot(e)}function zE(e){if(!Nt(e))throw new _(Rn,{address:e.address})}function fl(e){var t;return xe(((t=e.accounts)!=null?t:[]).flatMap(n=>"signer"in n?n.signer:[]))}function co(e){return xe([...e.feePayer&&Nt(e.feePayer)?[e.feePayer]:[],...e.instructions.flatMap(fl)])}function Al(e,t){if(!t.accounts||t.accounts.length===0)return t;let n=new Map(xe(e).map(r=>[r.address,r]));return Object.freeze({...t,accounts:t.accounts.map(r=>{let o=n.get(r.address);return !W(r.role)||"signer"in r||!o?r:Object.freeze({...r,signer:o})})})}function kE(e,t){return t.instructions.length===0?t:Object.freeze({...t,instructions:t.instructions.map(n=>Al(e,n))})}function VE(e,t){Object.freeze(e);let n={...t,feePayer:e};return Object.freeze(n),n}function uo(e){return "signMessages"in e&&typeof e.signMessages=="function"}function GE(e){if(!uo(e))throw new _(ln,{address:e.address})}function El(e){return "keyPair"in e&&typeof e.keyPair=="object"&&uo(e)&&oe(e)}function HE(e){if(!El(e))throw new _(un,{address:e.address})}async function _o(e){let t=await Qe(e.publicKey);return Object.freeze({address:t,keyPair:e,signMessages:r=>Promise.all(r.map(async o=>Object.freeze({[t]:await ye(e.privateKey,o.content)}))),signTransactions:r=>Promise.all(r.map(async o=>{let i=await ao([e],o);return Object.freeze({[t]:i.signatures[t]})}))})}async function $E(){return await _o(await Di())}async function WE(e,t){return await _o(await yi(e,t))}async function jE(e,t){return await _o(await wi(e,t))}function ba(e){return gr(e.address)&&"modifyAndSignMessages"in e&&typeof e.modifyAndSignMessages=="function"}function XE(e){if(!ba(e))throw new _(dn,{address:e.address})}function Sl(e){return uo(e)||ba(e)}function KE(e){if(!Sl(e))throw new _(_n,{address:e.address})}function YE(e){return Object.freeze({address:e,signMessages:n=>Promise.resolve(n.map(()=>Object.freeze({}))),signTransactions:n=>Promise.resolve(n.map(()=>Object.freeze({})))})}function JE(e){try{return Da(e),!0}catch{return !1}}function Da(e){let n=co(e).filter(Ot);if(n.length===0)throw new _(ze);if(n.filter(o=>!oe(o)&&!Ne(o)).length>1)throw new _(Sn)}async function Ol(e,t){let{partialSigners:n,modifyingSigners:r}=ya(xe(co(e).filter(Nt)),{identifySendingSigner:!1});return await wa(e,r,n,t)}async function qE(e,t){let n=await Ol(e,t);return so(n),n}async function ZE(e,t){Da(e);let n=t==null?void 0:t.abortSignal,{partialSigners:r,modifyingSigners:o,sendingSigner:i}=ya(xe(co(e).filter(Nt)));n==null||n.throwIfAborted();let a=await wa(e,o,r,t);if(!i)throw new _(ze);n==null||n.throwIfAborted();let[s]=await i.signAndSendTransactions([a],t);return n==null||n.throwIfAborted(),s}function ya(e,t={}){var s;let r=((s=t.identifySendingSigner)!=null?s:!0)?Nl(e):null,o=e.filter(c=>c!==r&&(Ne(c)||oe(c))),i=ml(o),a=o.filter(oe).filter(c=>!i.includes(c));return Object.freeze({modifyingSigners:i,partialSigners:a,sendingSigner:r})}function Nl(e){let t=e.filter(Ot);if(t.length===0)return null;let n=t.filter(r=>!Ne(r)&&!oe(r));return n.length>0?n[0]:t[0]}function ml(e){let t=e.filter(Ne);if(t.length===0)return [];let n=t.filter(r=>!oe(r));return n.length>0?n:[t[0]]}async function wa(e,t=[],n=[],r){var c,u;let o=Et(e),i=await t.reduce(async(d,l)=>{var E;(E=r==null?void 0:r.abortSignal)==null||E.throwIfAborted();let[f]=await l.modifyAndSignTransactions([await d],r);return Object.freeze(f)},Promise.resolve(o));(c=r==null?void 0:r.abortSignal)==null||c.throwIfAborted();let a=await Promise.all(n.map(async d=>{let[l]=await d.signTransactions([i],r);return l})),s={...i,signatures:Object.freeze(a.reduce((d,l)=>({...d,...l}),(u=i.signatures)!=null?u:{}))};return Object.freeze(s)}var gl=globalThis.TextEncoder;function QE(e,t={}){return Object.freeze({content:typeof e=="string"?new gl().encode(e):e,signatures:Object.freeze({...t})})}function va({rpc:e,rpcSubscriptions:t}){return async function({abortSignal:r,commitment:o,lastValidBlockHeight:i}){r.throwIfAborted();let a=new AbortController,s=()=>{a.abort();};r.addEventListener("abort",s,{signal:a.signal});async function c(){let{absoluteSlot:u,blockHeight:d}=await e.getEpochInfo({commitment:o}).send({abortSignal:a.signal});return {blockHeight:d,differenceBetweenSlotHeightAndBlockHeight:u-d}}try{let[u,{blockHeight:d,differenceBetweenSlotHeightAndBlockHeight:l}]=await Promise.all([t.slotNotifications().subscribe({abortSignal:a.signal}),c()]);r.throwIfAborted();let f=d;if(f<=i){let E=l;for await(let S of u){let{slot:m}=S;if(m-E>i){let{blockHeight:y,differenceBetweenSlotHeightAndBlockHeight:I}=await c();if(f=y,f>i)break;E=I;}}}throw r.throwIfAborted(),new _(pt,{currentBlockHeight:f,lastValidBlockHeight:i})}finally{a.abort();}}}var lo=40;function Pa({rpc:e,rpcSubscriptions:t}){return async function({abortSignal:r,commitment:o,currentNonceValue:i,nonceAccountAddress:a}){let s=new AbortController;function c(){s.abort();}r.addEventListener("abort",c,{signal:s.signal});let u=await t.accountNotifications(a,{commitment:o,encoding:"base64"}).subscribe({abortSignal:s.signal}),d=Z(),l=Ie();function f([m]){let I=l.encode(m).slice(lo,lo+32);return d.decode(I)}let E=(async()=>{for await(let m of u){let y=f(m.value.data);if(y!==i)throw new _(Ue,{actualNonceValue:y,expectedNonceValue:i})}})(),S=(async()=>{let{value:m}=await e.getAccountInfo(a,{commitment:o,dataSlice:{length:32,offset:lo},encoding:"base58"}).send({abortSignal:s.signal});if(!m)throw new _(It,{nonceAccountAddress:a});let y=m.data[0];if(y!==i)throw new _(Ue,{actualNonceValue:y,expectedNonceValue:i});await new Promise(()=>{});})();try{return await Oe([E,S])}finally{s.abort();}}}function me({rpc:e,rpcSubscriptions:t}){return async function({abortSignal:r,commitment:o,signature:i}){let a=new AbortController;function s(){a.abort();}r.addEventListener("abort",s,{signal:a.signal});let c=await t.signatureNotifications(i,{commitment:o}).subscribe({abortSignal:a.signal}),u=(async()=>{for await(let l of c){if(l.value.err)throw $e(l.value.err);return}})(),d=(async()=>{let{value:l}=await e.getSignatureStatuses([i]).send({abortSignal:a.signal}),f=l[0];f&&f.confirmationStatus&&Rt(f.confirmationStatus,o)>=0||await new Promise(()=>{});})();try{return await Oe([u,d])}finally{a.abort();}}}async function xa({abortSignal:e,commitment:t}){return await new Promise((n,r)=>{let o=c=>{clearTimeout(s);let u=new DOMException(c.target.reason,"AbortError");r(u);};e.addEventListener("abort",o);let i=t==="processed"?3e4:6e4,a=performance.now(),s=setTimeout(()=>{let c=performance.now()-a;r(new DOMException(`Timeout elapsed after ${c} ms`,"TimeoutError"));},i);})}async function Ro(e,t,n){let{abortSignal:r,commitment:o,getRecentSignatureConfirmationPromise:i}=t;r==null||r.throwIfAborted();let a=new AbortController;if(r){let s=()=>{a.abort();};r.addEventListener("abort",s,{signal:a.signal});}try{let s=n({...t,abortSignal:a.signal});return await Oe([i({abortSignal:a.signal,commitment:o,signature:e}),...s])}finally{a.abort();}}async function Ua(e){await Ro(io(e.transaction),e,function({abortSignal:n,commitment:r,getNonceInvalidationPromise:o,transaction:i}){return [o({abortSignal:n,commitment:r,currentNonceValue:i.lifetimeConstraint.nonce,nonceAccountAddress:i.lifetimeConstraint.nonceAccountAddress})]});}async function Ba(e){await Ro(io(e.transaction),e,function({abortSignal:n,commitment:r,getBlockHeightExceedencePromise:o,transaction:i}){return [o({abortSignal:n,commitment:r,lastValidBlockHeight:i.lifetimeConstraint.lastValidBlockHeight})]});}async function Ma(e){await Ro(e.signature,e,function({abortSignal:n,commitment:r,getTimeoutPromise:o}){return [o({abortSignal:n,commitment:r})]});}async function Fa({abortSignal:e,commitment:t,confirmSignatureOnlyTransaction:n,lamports:r,recipientAddress:o,rpc:i}){let a=await i.requestAirdrop(o,r,{commitment:t}).send({abortSignal:e});return await n({abortSignal:e,commitment:t,signature:a}),a}function _S({rpc:e,rpcSubscriptions:t}){let n=me({rpc:e,rpcSubscriptions:t});async function r(o){await Ma({...o,getRecentSignatureConfirmationPromise:n,getTimeoutPromise:xa});}return async function(i){return await Fa({...i,confirmSignatureOnlyTransaction:r,rpc:e})}}var za="ComputeBudget111111111111111111111111111111",Tl={blockhash:"11111111111111111111111111111111",lastValidBlockHeight:0n},ka=2;function pl(e){let t=new Uint8Array(5);return t[0]=ka,Le().write(e,t,1),Object.freeze({data:t,programAddress:za})}function Il(e){return hi(e,za)&&Li(e)&&e.data[0]===ka}async function Va({abortSignal:e,rpc:t,transactionMessage:n,...r}){let o=At(n),i;o||Pe(n)?i=n:i=eo(Tl,n);let a=n.instructions.findIndex(Il),s=pl(14e5);if(a===-1)i=ro(s,i);else {let d=[...i.instructions];d.splice(a,1,s),i=Object.freeze({...i,instructions:d});}let c=Et(i),u=St(c);try{let{value:{err:d,unitsConsumed:l}}=await t.simulateTransaction(u,{...r,encoding:"base64",replaceRecentBlockhash:!o,sigVerify:!1}).send({abortSignal:e});if(l==null)throw new _(Ve);let f=l>4294967295n?4294967295:Number(l);if(d)throw new _(Ge,{cause:d,unitsConsumed:f});return f}catch(d){throw J(d,Ge)?d:new _(Ve,{cause:d})}}function IS({rpc:e}){return async function(n,r){return await Va({...r,rpc:e,transactionMessage:n})}}async function Cl(e,t,n){let r=await ti(t,e,n);return Qo(r),ni(r),r.reduce((o,i)=>({...o,[i.address]:i.data.addresses}),{})}async function yS(e,t,n){let o=("addressTableLookups"in e&&e.addressTableLookups!==void 0&&e.addressTableLookups.length>0?e.addressTableLookups:[]).map(c=>c.lookupTableAddress),{lastValidBlockHeight:i,...a}=n!=null?n:{},s=o.length>0?await Cl(o,t,a):{};return ha(e,{addressesByLookupTableAddress:s,lastValidBlockHeight:i})}function hl(e,t){return !(t!=null&&t.preflightCommitment)&&Rt(e,"finalized")<0?{...t,preflightCommitment:e}:t}async function mt({abortSignal:e,commitment:t,rpc:n,transaction:r,...o}){let i=St(r);return await n.sendTransaction(i,{...hl(t,o),encoding:"base64"}).send({abortSignal:e})}async function Ga({abortSignal:e,commitment:t,confirmDurableNonceTransaction:n,rpc:r,transaction:o,...i}){let a=await mt({...i,abortSignal:e,commitment:t,rpc:r,transaction:o});return await n({abortSignal:e,commitment:t,transaction:o}),a}async function Ha({abortSignal:e,commitment:t,confirmRecentTransaction:n,rpc:r,transaction:o,...i}){let a=await mt({...i,abortSignal:e,commitment:t,rpc:r,transaction:o});return await n({abortSignal:e,commitment:t,transaction:o}),a}function VS({rpc:e,rpcSubscriptions:t}){let n=Pa({rpc:e,rpcSubscriptions:t}),r=me({rpc:e,rpcSubscriptions:t});async function o(i){await Ua({...i,getNonceInvalidationPromise:n,getRecentSignatureConfirmationPromise:r});}return async function(a,s){await Ga({...s,confirmDurableNonceTransaction:o,rpc:e,transaction:a});}}function WS({rpc:e,rpcSubscriptions:t}){let n=va({rpc:e,rpcSubscriptions:t}),r=me({rpc:e,rpcSubscriptions:t});async function o(i){await Ba({...i,getBlockHeightExceedencePromise:n,getRecentSignatureConfirmationPromise:r});}return async function(a,s){await Ha({...s,confirmRecentTransaction:o,rpc:e,transaction:a});}}function KS({rpc:e}){return async function(n,r){await mt({...r,rpc:e,transaction:n});}}
|
6
6
|
|
7
7
|
exports.AccountRole = h;
|
8
|
-
exports.BASE_ACCOUNT_SIZE =
|
9
|
-
exports.DEFAULT_RPC_CONFIG =
|
10
|
-
exports.DEFAULT_RPC_SUBSCRIPTIONS_CONFIG =
|
8
|
+
exports.BASE_ACCOUNT_SIZE = iR;
|
9
|
+
exports.DEFAULT_RPC_CONFIG = H_;
|
10
|
+
exports.DEFAULT_RPC_SUBSCRIPTIONS_CONFIG = td;
|
11
11
|
exports.Endian = pu;
|
12
12
|
exports.SOLANA_ERROR__ACCOUNTS__ACCOUNT_NOT_FOUND = zt;
|
13
13
|
exports.SOLANA_ERROR__ACCOUNTS__EXPECTED_ALL_ACCOUNTS_TO_BE_DECODED = Ht;
|
@@ -59,7 +59,7 @@ this.globalThis.solanaWeb3 = (function (exports) {
|
|
59
59
|
exports.SOLANA_ERROR__INSTRUCTION_ERROR__ACCOUNT_NOT_EXECUTABLE = ps;
|
60
60
|
exports.SOLANA_ERROR__INSTRUCTION_ERROR__ACCOUNT_NOT_RENT_EXEMPT = Ws;
|
61
61
|
exports.SOLANA_ERROR__INSTRUCTION_ERROR__ARITHMETIC_OVERFLOW = Xs;
|
62
|
-
exports.SOLANA_ERROR__INSTRUCTION_ERROR__BORSH_IO_ERROR =
|
62
|
+
exports.SOLANA_ERROR__INSTRUCTION_ERROR__BORSH_IO_ERROR = yo;
|
63
63
|
exports.SOLANA_ERROR__INSTRUCTION_ERROR__BUILTIN_PROGRAMS_MUST_CONSUME_COMPUTE_UNITS = Qs;
|
64
64
|
exports.SOLANA_ERROR__INSTRUCTION_ERROR__CALL_DEPTH = vs;
|
65
65
|
exports.SOLANA_ERROR__INSTRUCTION_ERROR__COMPUTATIONAL_BUDGET_EXCEEDED = Fs;
|
@@ -70,7 +70,7 @@ this.globalThis.solanaWeb3 = (function (exports) {
|
|
70
70
|
exports.SOLANA_ERROR__INSTRUCTION_ERROR__EXECUTABLE_DATA_MODIFIED = bs;
|
71
71
|
exports.SOLANA_ERROR__INSTRUCTION_ERROR__EXECUTABLE_LAMPORT_CHANGE = Ds;
|
72
72
|
exports.SOLANA_ERROR__INSTRUCTION_ERROR__EXECUTABLE_MODIFIED = Ns;
|
73
|
-
exports.SOLANA_ERROR__INSTRUCTION_ERROR__EXTERNAL_ACCOUNT_DATA_MODIFIED =
|
73
|
+
exports.SOLANA_ERROR__INSTRUCTION_ERROR__EXTERNAL_ACCOUNT_DATA_MODIFIED = As;
|
74
74
|
exports.SOLANA_ERROR__INSTRUCTION_ERROR__EXTERNAL_ACCOUNT_LAMPORT_SPEND = fs;
|
75
75
|
exports.SOLANA_ERROR__INSTRUCTION_ERROR__GENERIC_ERROR = ns;
|
76
76
|
exports.SOLANA_ERROR__INSTRUCTION_ERROR__ILLEGAL_OWNER = Ys;
|
@@ -98,12 +98,12 @@ this.globalThis.solanaWeb3 = (function (exports) {
|
|
98
98
|
exports.SOLANA_ERROR__INSTRUCTION_ERROR__PROGRAM_FAILED_TO_COMPILE = Gs;
|
99
99
|
exports.SOLANA_ERROR__INSTRUCTION_ERROR__PROGRAM_FAILED_TO_COMPLETE = Vs;
|
100
100
|
exports.SOLANA_ERROR__INSTRUCTION_ERROR__READONLY_DATA_MODIFIED = Ss;
|
101
|
-
exports.SOLANA_ERROR__INSTRUCTION_ERROR__READONLY_LAMPORT_CHANGE =
|
101
|
+
exports.SOLANA_ERROR__INSTRUCTION_ERROR__READONLY_LAMPORT_CHANGE = Es;
|
102
102
|
exports.SOLANA_ERROR__INSTRUCTION_ERROR__REENTRANCY_NOT_ALLOWED = xs;
|
103
103
|
exports.SOLANA_ERROR__INSTRUCTION_ERROR__RENT_EPOCH_MODIFIED = ms;
|
104
104
|
exports.SOLANA_ERROR__INSTRUCTION_ERROR__UNBALANCED_INSTRUCTION = ls;
|
105
105
|
exports.SOLANA_ERROR__INSTRUCTION_ERROR__UNINITIALIZED_ACCOUNT = ds;
|
106
|
-
exports.SOLANA_ERROR__INSTRUCTION_ERROR__UNKNOWN =
|
106
|
+
exports.SOLANA_ERROR__INSTRUCTION_ERROR__UNKNOWN = Do;
|
107
107
|
exports.SOLANA_ERROR__INSTRUCTION_ERROR__UNSUPPORTED_PROGRAM_ID = ws;
|
108
108
|
exports.SOLANA_ERROR__INSTRUCTION_ERROR__UNSUPPORTED_SYSVAR = Ks;
|
109
109
|
exports.SOLANA_ERROR__INSTRUCTION__EXPECTED_TO_HAVE_ACCOUNTS = on;
|
@@ -116,27 +116,27 @@ this.globalThis.solanaWeb3 = (function (exports) {
|
|
116
116
|
exports.SOLANA_ERROR__INVARIANT_VIOLATION__SUBSCRIPTION_ITERATOR_MUST_NOT_POLL_BEFORE_RESOLVING_EXISTING_MESSAGE_PROMISE = tr;
|
117
117
|
exports.SOLANA_ERROR__INVARIANT_VIOLATION__SUBSCRIPTION_ITERATOR_STATE_MISSING = er;
|
118
118
|
exports.SOLANA_ERROR__INVARIANT_VIOLATION__SWITCH_MUST_BE_EXHAUSTIVE = nr;
|
119
|
-
exports.SOLANA_ERROR__JSON_RPC__INTERNAL_ERROR =
|
120
|
-
exports.SOLANA_ERROR__JSON_RPC__INVALID_PARAMS =
|
121
|
-
exports.SOLANA_ERROR__JSON_RPC__INVALID_REQUEST =
|
122
|
-
exports.SOLANA_ERROR__JSON_RPC__METHOD_NOT_FOUND =
|
119
|
+
exports.SOLANA_ERROR__JSON_RPC__INTERNAL_ERROR = Eo;
|
120
|
+
exports.SOLANA_ERROR__JSON_RPC__INVALID_PARAMS = So;
|
121
|
+
exports.SOLANA_ERROR__JSON_RPC__INVALID_REQUEST = No;
|
122
|
+
exports.SOLANA_ERROR__JSON_RPC__METHOD_NOT_FOUND = Oo;
|
123
123
|
exports.SOLANA_ERROR__JSON_RPC__PARSE_ERROR = Ao;
|
124
|
-
exports.SOLANA_ERROR__JSON_RPC__SCAN_ERROR =
|
125
|
-
exports.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_BLOCK_CLEANED_UP =
|
126
|
-
exports.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_BLOCK_NOT_AVAILABLE =
|
127
|
-
exports.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_BLOCK_STATUS_NOT_AVAILABLE_YET =
|
128
|
-
exports.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_KEY_EXCLUDED_FROM_SECONDARY_INDEX =
|
129
|
-
exports.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_LONG_TERM_STORAGE_SLOT_SKIPPED =
|
124
|
+
exports.SOLANA_ERROR__JSON_RPC__SCAN_ERROR = To;
|
125
|
+
exports.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_BLOCK_CLEANED_UP = bo;
|
126
|
+
exports.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_BLOCK_NOT_AVAILABLE = Lo;
|
127
|
+
exports.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_BLOCK_STATUS_NOT_AVAILABLE_YET = go;
|
128
|
+
exports.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_KEY_EXCLUDED_FROM_SECONDARY_INDEX = po;
|
129
|
+
exports.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_LONG_TERM_STORAGE_SLOT_SKIPPED = Io;
|
130
130
|
exports.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_MIN_CONTEXT_SLOT_NOT_REACHED = Ya;
|
131
131
|
exports.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_NODE_UNHEALTHY = Qa;
|
132
132
|
exports.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_NO_SNAPSHOT = Za;
|
133
133
|
exports.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_SEND_TRANSACTION_PREFLIGHT_FAILURE = Tt;
|
134
|
-
exports.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_SLOT_SKIPPED =
|
134
|
+
exports.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_SLOT_SKIPPED = Co;
|
135
135
|
exports.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_TRANSACTION_HISTORY_NOT_AVAILABLE = qa;
|
136
|
-
exports.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_TRANSACTION_PRECOMPILE_VERIFICATION_FAILURE =
|
136
|
+
exports.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_TRANSACTION_PRECOMPILE_VERIFICATION_FAILURE = ho;
|
137
137
|
exports.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_TRANSACTION_SIGNATURE_LEN_MISMATCH = Ja;
|
138
138
|
exports.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_TRANSACTION_SIGNATURE_VERIFICATION_FAILURE = es;
|
139
|
-
exports.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_UNSUPPORTED_TRANSACTION_VERSION =
|
139
|
+
exports.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_UNSUPPORTED_TRANSACTION_VERSION = mo;
|
140
140
|
exports.SOLANA_ERROR__KEYS__INVALID_KEY_PAIR_BYTE_LENGTH = Qt;
|
141
141
|
exports.SOLANA_ERROR__KEYS__INVALID_PRIVATE_KEY_BYTE_LENGTH = en;
|
142
142
|
exports.SOLANA_ERROR__KEYS__INVALID_SIGNATURE_BYTE_LENGTH = tn;
|
@@ -154,15 +154,15 @@ this.globalThis.solanaWeb3 = (function (exports) {
|
|
154
154
|
exports.SOLANA_ERROR__RPC__API_PLAN_MISSING_FOR_RPC_METHOD = Yn;
|
155
155
|
exports.SOLANA_ERROR__RPC__INTEGER_OVERFLOW = Te;
|
156
156
|
exports.SOLANA_ERROR__RPC__TRANSPORT_HTTP_ERROR = Kn;
|
157
|
-
exports.SOLANA_ERROR__RPC__TRANSPORT_HTTP_HEADER_FORBIDDEN =
|
157
|
+
exports.SOLANA_ERROR__RPC__TRANSPORT_HTTP_HEADER_FORBIDDEN = Uo;
|
158
158
|
exports.SOLANA_ERROR__SIGNER__ADDRESS_CANNOT_HAVE_MULTIPLE_SIGNERS = cn;
|
159
159
|
exports.SOLANA_ERROR__SIGNER__EXPECTED_KEY_PAIR_SIGNER = un;
|
160
160
|
exports.SOLANA_ERROR__SIGNER__EXPECTED_MESSAGE_MODIFYING_SIGNER = dn;
|
161
161
|
exports.SOLANA_ERROR__SIGNER__EXPECTED_MESSAGE_PARTIAL_SIGNER = ln;
|
162
162
|
exports.SOLANA_ERROR__SIGNER__EXPECTED_MESSAGE_SIGNER = _n;
|
163
163
|
exports.SOLANA_ERROR__SIGNER__EXPECTED_TRANSACTION_MODIFYING_SIGNER = fn;
|
164
|
-
exports.SOLANA_ERROR__SIGNER__EXPECTED_TRANSACTION_PARTIAL_SIGNER =
|
165
|
-
exports.SOLANA_ERROR__SIGNER__EXPECTED_TRANSACTION_SENDING_SIGNER =
|
164
|
+
exports.SOLANA_ERROR__SIGNER__EXPECTED_TRANSACTION_PARTIAL_SIGNER = An;
|
165
|
+
exports.SOLANA_ERROR__SIGNER__EXPECTED_TRANSACTION_SENDING_SIGNER = En;
|
166
166
|
exports.SOLANA_ERROR__SIGNER__EXPECTED_TRANSACTION_SIGNER = Rn;
|
167
167
|
exports.SOLANA_ERROR__SIGNER__TRANSACTION_CANNOT_HAVE_MULTIPLE_SENDING_SIGNERS = Sn;
|
168
168
|
exports.SOLANA_ERROR__SIGNER__TRANSACTION_SENDING_SIGNER_MISSING = ze;
|
@@ -185,11 +185,11 @@ this.globalThis.solanaWeb3 = (function (exports) {
|
|
185
185
|
exports.SOLANA_ERROR__TRANSACTION_ERROR__BLOCKHASH_NOT_FOUND = lc;
|
186
186
|
exports.SOLANA_ERROR__TRANSACTION_ERROR__CALL_CHAIN_TOO_DEEP = Rc;
|
187
187
|
exports.SOLANA_ERROR__TRANSACTION_ERROR__CLUSTER_MAINTENANCE = Nc;
|
188
|
-
exports.SOLANA_ERROR__TRANSACTION_ERROR__DUPLICATE_INSTRUCTION =
|
188
|
+
exports.SOLANA_ERROR__TRANSACTION_ERROR__DUPLICATE_INSTRUCTION = vo;
|
189
189
|
exports.SOLANA_ERROR__TRANSACTION_ERROR__INSUFFICIENT_FUNDS_FOR_FEE = uc;
|
190
|
-
exports.SOLANA_ERROR__TRANSACTION_ERROR__INSUFFICIENT_FUNDS_FOR_RENT =
|
190
|
+
exports.SOLANA_ERROR__TRANSACTION_ERROR__INSUFFICIENT_FUNDS_FOR_RENT = Po;
|
191
191
|
exports.SOLANA_ERROR__TRANSACTION_ERROR__INVALID_ACCOUNT_FOR_FEE = _c;
|
192
|
-
exports.SOLANA_ERROR__TRANSACTION_ERROR__INVALID_ACCOUNT_INDEX =
|
192
|
+
exports.SOLANA_ERROR__TRANSACTION_ERROR__INVALID_ACCOUNT_INDEX = Ac;
|
193
193
|
exports.SOLANA_ERROR__TRANSACTION_ERROR__INVALID_ADDRESS_LOOKUP_TABLE_DATA = Dc;
|
194
194
|
exports.SOLANA_ERROR__TRANSACTION_ERROR__INVALID_ADDRESS_LOOKUP_TABLE_INDEX = yc;
|
195
195
|
exports.SOLANA_ERROR__TRANSACTION_ERROR__INVALID_ADDRESS_LOOKUP_TABLE_OWNER = bc;
|
@@ -200,13 +200,13 @@ this.globalThis.solanaWeb3 = (function (exports) {
|
|
200
200
|
exports.SOLANA_ERROR__TRANSACTION_ERROR__MAX_LOADED_ACCOUNTS_DATA_SIZE_EXCEEDED = xc;
|
201
201
|
exports.SOLANA_ERROR__TRANSACTION_ERROR__MISSING_SIGNATURE_FOR_FEE = fc;
|
202
202
|
exports.SOLANA_ERROR__TRANSACTION_ERROR__PROGRAM_ACCOUNT_NOT_FOUND = cc;
|
203
|
-
exports.SOLANA_ERROR__TRANSACTION_ERROR__PROGRAM_EXECUTION_TEMPORARILY_RESTRICTED =
|
203
|
+
exports.SOLANA_ERROR__TRANSACTION_ERROR__PROGRAM_EXECUTION_TEMPORARILY_RESTRICTED = xo;
|
204
204
|
exports.SOLANA_ERROR__TRANSACTION_ERROR__RESANITIZATION_NEEDED = Bc;
|
205
205
|
exports.SOLANA_ERROR__TRANSACTION_ERROR__SANITIZE_FAILURE = Oc;
|
206
|
-
exports.SOLANA_ERROR__TRANSACTION_ERROR__SIGNATURE_FAILURE =
|
206
|
+
exports.SOLANA_ERROR__TRANSACTION_ERROR__SIGNATURE_FAILURE = Ec;
|
207
207
|
exports.SOLANA_ERROR__TRANSACTION_ERROR__TOO_MANY_ACCOUNT_LOCKS = hc;
|
208
208
|
exports.SOLANA_ERROR__TRANSACTION_ERROR__UNBALANCED_TRANSACTION = Mc;
|
209
|
-
exports.SOLANA_ERROR__TRANSACTION_ERROR__UNKNOWN =
|
209
|
+
exports.SOLANA_ERROR__TRANSACTION_ERROR__UNKNOWN = wo;
|
210
210
|
exports.SOLANA_ERROR__TRANSACTION_ERROR__UNSUPPORTED_VERSION = Tc;
|
211
211
|
exports.SOLANA_ERROR__TRANSACTION_ERROR__WOULD_EXCEED_ACCOUNT_DATA_BLOCK_LIMIT = Cc;
|
212
212
|
exports.SOLANA_ERROR__TRANSACTION_ERROR__WOULD_EXCEED_ACCOUNT_DATA_TOTAL_LIMIT = Pc;
|
@@ -234,352 +234,352 @@ this.globalThis.solanaWeb3 = (function (exports) {
|
|
234
234
|
exports.SOLANA_ERROR__TRANSACTION__SIGNATURES_MISSING = hn;
|
235
235
|
exports.SOLANA_ERROR__TRANSACTION__VERSION_NUMBER_OUT_OF_RANGE = gn;
|
236
236
|
exports.SolanaError = _;
|
237
|
-
exports.addCodecSentinel =
|
238
|
-
exports.addCodecSizePrefix =
|
237
|
+
exports.addCodecSentinel = Ul;
|
238
|
+
exports.addCodecSizePrefix = Bl;
|
239
239
|
exports.addDecoderSentinel = qc;
|
240
240
|
exports.addDecoderSizePrefix = ir;
|
241
241
|
exports.addEncoderSentinel = Jc;
|
242
242
|
exports.addEncoderSizePrefix = or;
|
243
243
|
exports.addSignersToInstruction = Al;
|
244
|
-
exports.addSignersToTransactionMessage =
|
244
|
+
exports.addSignersToTransactionMessage = kE;
|
245
245
|
exports.address = fu;
|
246
|
-
exports.airdropFactory =
|
247
|
-
exports.appendTransactionMessageInstruction =
|
248
|
-
exports.appendTransactionMessageInstructions =
|
249
|
-
exports.assertAccountDecoded =
|
250
|
-
exports.assertAccountExists =
|
251
|
-
exports.assertAccountsDecoded =
|
252
|
-
exports.assertAccountsExist =
|
246
|
+
exports.airdropFactory = _S;
|
247
|
+
exports.appendTransactionMessageInstruction = ro;
|
248
|
+
exports.appendTransactionMessageInstructions = rl;
|
249
|
+
exports.assertAccountDecoded = sR;
|
250
|
+
exports.assertAccountExists = lR;
|
251
|
+
exports.assertAccountsDecoded = Qo;
|
252
|
+
exports.assertAccountsExist = ni;
|
253
253
|
exports.assertByteArrayHasEnoughBytesForCodec = de;
|
254
|
-
exports.assertByteArrayIsNotEmptyForCodec =
|
254
|
+
exports.assertByteArrayIsNotEmptyForCodec = Vo;
|
255
255
|
exports.assertByteArrayOffsetIsNotOutOfRange = je;
|
256
256
|
exports.assertIsAddress = he;
|
257
|
-
exports.assertIsBlockhash =
|
258
|
-
exports.assertIsDurableNonceTransactionMessage =
|
257
|
+
exports.assertIsBlockhash = $r;
|
258
|
+
exports.assertIsDurableNonceTransactionMessage = SE;
|
259
259
|
exports.assertIsFixedSize = q;
|
260
|
-
exports.assertIsInstructionForProgram =
|
261
|
-
exports.assertIsInstructionWithAccounts =
|
262
|
-
exports.assertIsInstructionWithData =
|
263
|
-
exports.assertIsKeyPairSigner =
|
264
|
-
exports.assertIsLamports =
|
265
|
-
exports.assertIsMessageModifyingSigner =
|
266
|
-
exports.assertIsMessagePartialSigner =
|
267
|
-
exports.assertIsMessageSigner =
|
268
|
-
exports.assertIsProgramDerivedAddress =
|
260
|
+
exports.assertIsInstructionForProgram = gf;
|
261
|
+
exports.assertIsInstructionWithAccounts = pf;
|
262
|
+
exports.assertIsInstructionWithData = If;
|
263
|
+
exports.assertIsKeyPairSigner = HE;
|
264
|
+
exports.assertIsLamports = Nd;
|
265
|
+
exports.assertIsMessageModifyingSigner = XE;
|
266
|
+
exports.assertIsMessagePartialSigner = GE;
|
267
|
+
exports.assertIsMessageSigner = KE;
|
268
|
+
exports.assertIsProgramDerivedAddress = gR;
|
269
269
|
exports.assertIsSignature = R_;
|
270
|
-
exports.assertIsStringifiedBigInt =
|
271
|
-
exports.assertIsStringifiedNumber =
|
272
|
-
exports.assertIsTransactionMessageWithBlockhashLifetime =
|
270
|
+
exports.assertIsStringifiedBigInt = pd;
|
271
|
+
exports.assertIsStringifiedNumber = Id;
|
272
|
+
exports.assertIsTransactionMessageWithBlockhashLifetime = RE;
|
273
273
|
exports.assertIsTransactionMessageWithSingleSendingSigner = Da;
|
274
|
-
exports.assertIsTransactionModifyingSigner =
|
275
|
-
exports.assertIsTransactionPartialSigner =
|
276
|
-
exports.assertIsTransactionSendingSigner =
|
277
|
-
exports.assertIsTransactionSigner =
|
278
|
-
exports.assertIsUnixTimestamp =
|
279
|
-
exports.assertIsVariableSize =
|
280
|
-
exports.assertNumberIsBetweenForCodec =
|
281
|
-
exports.assertTransactionIsFullySigned =
|
282
|
-
exports.assertValidBaseString =
|
283
|
-
exports.assertValidNumberOfItemsForCodec =
|
284
|
-
exports.blockhash =
|
285
|
-
exports.combineCodec =
|
274
|
+
exports.assertIsTransactionModifyingSigner = BE;
|
275
|
+
exports.assertIsTransactionPartialSigner = ME;
|
276
|
+
exports.assertIsTransactionSendingSigner = FE;
|
277
|
+
exports.assertIsTransactionSigner = zE;
|
278
|
+
exports.assertIsUnixTimestamp = Cd;
|
279
|
+
exports.assertIsVariableSize = xl;
|
280
|
+
exports.assertNumberIsBetweenForCodec = di;
|
281
|
+
exports.assertTransactionIsFullySigned = so;
|
282
|
+
exports.assertValidBaseString = Yo;
|
283
|
+
exports.assertValidNumberOfItemsForCodec = Ri;
|
284
|
+
exports.blockhash = fd;
|
285
|
+
exports.combineCodec = A;
|
286
286
|
exports.commitmentComparator = Rt;
|
287
|
-
exports.compileTransaction =
|
287
|
+
exports.compileTransaction = Et;
|
288
288
|
exports.compileTransactionMessage = pa;
|
289
|
-
exports.compressTransactionMessageUsingAddressLookupTables =
|
289
|
+
exports.compressTransactionMessageUsingAddressLookupTables = EE;
|
290
290
|
exports.containsBytes = _e;
|
291
|
-
exports.createAddressWithSeed =
|
291
|
+
exports.createAddressWithSeed = pR;
|
292
292
|
exports.createCodec = Yc;
|
293
293
|
exports.createDecoder = N;
|
294
|
-
exports.createDefaultRpcSubscriptionsChannelCreator =
|
295
|
-
exports.createDefaultRpcSubscriptionsTransport =
|
296
|
-
exports.createDefaultRpcTransport =
|
297
|
-
exports.createDefaultSolanaRpcSubscriptionsChannelCreator =
|
294
|
+
exports.createDefaultRpcSubscriptionsChannelCreator = vA;
|
295
|
+
exports.createDefaultRpcSubscriptionsTransport = _d;
|
296
|
+
exports.createDefaultRpcTransport = X_;
|
297
|
+
exports.createDefaultSolanaRpcSubscriptionsChannelCreator = cd;
|
298
298
|
exports.createEncoder = O;
|
299
299
|
exports.createJsonRpcApi = xi;
|
300
|
-
exports.createKeyPairFromBytes =
|
301
|
-
exports.createKeyPairFromPrivateKeyBytes =
|
302
|
-
exports.createKeyPairSignerFromBytes =
|
303
|
-
exports.createKeyPairSignerFromPrivateKeyBytes =
|
304
|
-
exports.createNoopSigner =
|
300
|
+
exports.createKeyPairFromBytes = yi;
|
301
|
+
exports.createKeyPairFromPrivateKeyBytes = wi;
|
302
|
+
exports.createKeyPairSignerFromBytes = WE;
|
303
|
+
exports.createKeyPairSignerFromPrivateKeyBytes = jE;
|
304
|
+
exports.createNoopSigner = YE;
|
305
305
|
exports.createPrivateKeyFromBytes = Dr;
|
306
306
|
exports.createRpc = Pi;
|
307
307
|
exports.createRpcMessage = Se;
|
308
308
|
exports.createRpcSubscriptionsApi = Qi;
|
309
|
-
exports.createRpcSubscriptionsTransportFromChannelCreator =
|
310
|
-
exports.createSignableMessage =
|
311
|
-
exports.createSignerFromKeyPair =
|
312
|
-
exports.createSolanaRpc =
|
309
|
+
exports.createRpcSubscriptionsTransportFromChannelCreator = dd;
|
310
|
+
exports.createSignableMessage = QE;
|
311
|
+
exports.createSignerFromKeyPair = _o;
|
312
|
+
exports.createSolanaRpc = aA;
|
313
313
|
exports.createSolanaRpcApi = ki;
|
314
|
-
exports.createSolanaRpcFromTransport =
|
315
|
-
exports.createSolanaRpcSubscriptions =
|
314
|
+
exports.createSolanaRpcFromTransport = K_;
|
315
|
+
exports.createSolanaRpcSubscriptions = PA;
|
316
316
|
exports.createSolanaRpcSubscriptionsApi = ra;
|
317
|
-
exports.createSolanaRpcSubscriptionsApi_UNSTABLE =
|
318
|
-
exports.createSolanaRpcSubscriptionsFromTransport =
|
319
|
-
exports.createSolanaRpcSubscriptions_UNSTABLE =
|
317
|
+
exports.createSolanaRpcSubscriptionsApi_UNSTABLE = mA;
|
318
|
+
exports.createSolanaRpcSubscriptionsFromTransport = ld;
|
319
|
+
exports.createSolanaRpcSubscriptions_UNSTABLE = xA;
|
320
320
|
exports.createSubscriptionRpc = Zi;
|
321
|
-
exports.createTransactionMessage =
|
322
|
-
exports.decodeAccount =
|
321
|
+
exports.createTransactionMessage = qd;
|
322
|
+
exports.decodeAccount = aR;
|
323
323
|
exports.decompileTransactionMessage = ha;
|
324
|
-
exports.decompileTransactionMessageFetchingLookupTables =
|
325
|
-
exports.devnet =
|
326
|
-
exports.downgradeRoleToNonSigner =
|
327
|
-
exports.downgradeRoleToReadonly =
|
324
|
+
exports.decompileTransactionMessageFetchingLookupTables = yS;
|
325
|
+
exports.devnet = jA;
|
326
|
+
exports.downgradeRoleToNonSigner = Cf;
|
327
|
+
exports.downgradeRoleToReadonly = hf;
|
328
328
|
exports.executeRpcPubSubSubscriptionPlan = ta;
|
329
|
-
exports.fetchEncodedAccount =
|
330
|
-
exports.fetchEncodedAccounts =
|
331
|
-
exports.fetchJsonParsedAccount =
|
332
|
-
exports.fetchJsonParsedAccounts =
|
329
|
+
exports.fetchEncodedAccount = uR;
|
330
|
+
exports.fetchEncodedAccounts = dR;
|
331
|
+
exports.fetchJsonParsedAccount = _R;
|
332
|
+
exports.fetchJsonParsedAccounts = ti;
|
333
333
|
exports.fixBytes = Kc;
|
334
|
-
exports.fixCodecSize =
|
334
|
+
exports.fixCodecSize = Ml;
|
335
335
|
exports.fixDecoderSize = v;
|
336
336
|
exports.fixEncoderSize = w;
|
337
|
-
exports.generateKeyPair =
|
338
|
-
exports.generateKeyPairSigner =
|
339
|
-
exports.getAddressCodec =
|
337
|
+
exports.generateKeyPair = Di;
|
338
|
+
exports.generateKeyPairSigner = $E;
|
339
|
+
exports.getAddressCodec = _i;
|
340
340
|
exports.getAddressComparator = Ze;
|
341
341
|
exports.getAddressDecoder = ae;
|
342
342
|
exports.getAddressEncoder = qe;
|
343
343
|
exports.getAddressFromPublicKey = Qe;
|
344
|
-
exports.getArrayCodec =
|
344
|
+
exports.getArrayCodec = $R;
|
345
345
|
exports.getArrayDecoder = P;
|
346
346
|
exports.getArrayEncoder = z;
|
347
|
-
exports.getBase10Codec =
|
348
|
-
exports.getBase10Decoder =
|
349
|
-
exports.getBase10Encoder =
|
350
|
-
exports.getBase16Codec =
|
347
|
+
exports.getBase10Codec = Yl;
|
348
|
+
exports.getBase10Decoder = Kl;
|
349
|
+
exports.getBase10Encoder = Xl;
|
350
|
+
exports.getBase16Codec = Jl;
|
351
351
|
exports.getBase16Decoder = iu;
|
352
352
|
exports.getBase16Encoder = ou;
|
353
|
-
exports.getBase58Codec =
|
353
|
+
exports.getBase58Codec = ql;
|
354
354
|
exports.getBase58Decoder = Z;
|
355
355
|
exports.getBase58Encoder = K;
|
356
|
-
exports.getBase64Codec =
|
357
|
-
exports.getBase64Decoder =
|
356
|
+
exports.getBase64Codec = Ql;
|
357
|
+
exports.getBase64Decoder = Er;
|
358
358
|
exports.getBase64EncodedWireTransaction = St;
|
359
359
|
exports.getBase64Encoder = Ie;
|
360
|
-
exports.getBaseXCodec =
|
360
|
+
exports.getBaseXCodec = Jo;
|
361
361
|
exports.getBaseXDecoder = Rr;
|
362
362
|
exports.getBaseXEncoder = lr;
|
363
|
-
exports.getBaseXResliceCodec =
|
363
|
+
exports.getBaseXResliceCodec = Zl;
|
364
364
|
exports.getBaseXResliceDecoder = su;
|
365
365
|
exports.getBaseXResliceEncoder = au;
|
366
|
-
exports.getBitArrayCodec =
|
366
|
+
exports.getBitArrayCodec = WR;
|
367
367
|
exports.getBitArrayDecoder = Wu;
|
368
368
|
exports.getBitArrayEncoder = $u;
|
369
|
-
exports.getBlockhashCodec =
|
370
|
-
exports.getBlockhashComparator =
|
371
|
-
exports.getBlockhashDecoder =
|
369
|
+
exports.getBlockhashCodec = HA;
|
370
|
+
exports.getBlockhashComparator = $A;
|
371
|
+
exports.getBlockhashDecoder = Ed;
|
372
372
|
exports.getBlockhashEncoder = Ad;
|
373
|
-
exports.getBooleanCodec =
|
373
|
+
exports.getBooleanCodec = jR;
|
374
374
|
exports.getBooleanDecoder = nt;
|
375
375
|
exports.getBooleanEncoder = tt;
|
376
|
-
exports.getBytesCodec =
|
376
|
+
exports.getBytesCodec = XR;
|
377
377
|
exports.getBytesDecoder = fe;
|
378
378
|
exports.getBytesEncoder = Re;
|
379
|
-
exports.getCompiledTransactionMessageCodec =
|
380
|
-
exports.getCompiledTransactionMessageDecoder =
|
381
|
-
exports.getCompiledTransactionMessageEncoder =
|
382
|
-
exports.getComputeUnitEstimateForTransactionMessageFactory =
|
383
|
-
exports.getConstantCodec =
|
379
|
+
exports.getCompiledTransactionMessageCodec = AE;
|
380
|
+
exports.getCompiledTransactionMessageDecoder = Vd;
|
381
|
+
exports.getCompiledTransactionMessageEncoder = to;
|
382
|
+
exports.getComputeUnitEstimateForTransactionMessageFactory = IS;
|
383
|
+
exports.getConstantCodec = KR;
|
384
384
|
exports.getConstantDecoder = ot;
|
385
385
|
exports.getConstantEncoder = rt;
|
386
|
-
exports.getDataEnumCodec =
|
387
|
-
exports.getDataEnumDecoder =
|
388
|
-
exports.getDataEnumEncoder =
|
389
|
-
exports.getDefaultLamportsCodec =
|
390
|
-
exports.getDefaultLamportsDecoder =
|
391
|
-
exports.getDefaultLamportsEncoder =
|
386
|
+
exports.getDataEnumCodec = QR;
|
387
|
+
exports.getDataEnumDecoder = ZR;
|
388
|
+
exports.getDataEnumEncoder = qR;
|
389
|
+
exports.getDefaultLamportsCodec = JA;
|
390
|
+
exports.getDefaultLamportsDecoder = Td;
|
391
|
+
exports.getDefaultLamportsEncoder = gd;
|
392
392
|
exports.getDiscriminatedUnionCodec = Xu;
|
393
|
-
exports.getDiscriminatedUnionDecoder =
|
394
|
-
exports.getDiscriminatedUnionEncoder =
|
393
|
+
exports.getDiscriminatedUnionDecoder = Si;
|
394
|
+
exports.getDiscriminatedUnionEncoder = Ei;
|
395
395
|
exports.getEncodedSize = G;
|
396
396
|
exports.getEnumCodec = qu;
|
397
|
-
exports.getEnumDecoder =
|
398
|
-
exports.getEnumEncoder =
|
399
|
-
exports.getF32Codec =
|
397
|
+
exports.getEnumDecoder = Ti;
|
398
|
+
exports.getEnumEncoder = gi;
|
399
|
+
exports.getF32Codec = LR;
|
400
400
|
exports.getF32Decoder = hu;
|
401
401
|
exports.getF32Encoder = Cu;
|
402
|
-
exports.getF64Codec =
|
402
|
+
exports.getF64Codec = bR;
|
403
403
|
exports.getF64Decoder = bu;
|
404
404
|
exports.getF64Encoder = Lu;
|
405
|
-
exports.getHiddenPrefixCodec =
|
405
|
+
exports.getHiddenPrefixCodec = rf;
|
406
406
|
exports.getHiddenPrefixDecoder = Qu;
|
407
407
|
exports.getHiddenPrefixEncoder = Zu;
|
408
|
-
exports.getHiddenSuffixCodec =
|
408
|
+
exports.getHiddenSuffixCodec = of;
|
409
409
|
exports.getHiddenSuffixDecoder = t_;
|
410
410
|
exports.getHiddenSuffixEncoder = e_;
|
411
|
-
exports.getI128Codec =
|
411
|
+
exports.getI128Codec = DR;
|
412
412
|
exports.getI128Decoder = yu;
|
413
413
|
exports.getI128Encoder = Du;
|
414
|
-
exports.getI16Codec =
|
414
|
+
exports.getI16Codec = yR;
|
415
415
|
exports.getI16Decoder = vu;
|
416
416
|
exports.getI16Encoder = wu;
|
417
|
-
exports.getI32Codec =
|
417
|
+
exports.getI32Codec = wR;
|
418
418
|
exports.getI32Decoder = xu;
|
419
419
|
exports.getI32Encoder = Pu;
|
420
|
-
exports.getI64Codec =
|
420
|
+
exports.getI64Codec = vR;
|
421
421
|
exports.getI64Decoder = Bu;
|
422
422
|
exports.getI64Encoder = Uu;
|
423
|
-
exports.getI8Codec =
|
423
|
+
exports.getI8Codec = PR;
|
424
424
|
exports.getI8Decoder = Fu;
|
425
425
|
exports.getI8Encoder = Mu;
|
426
|
-
exports.getLamportsCodec =
|
426
|
+
exports.getLamportsCodec = qA;
|
427
427
|
exports.getLamportsDecoder = da;
|
428
|
-
exports.getLamportsEncoder =
|
429
|
-
exports.getMapCodec =
|
428
|
+
exports.getLamportsEncoder = YA;
|
429
|
+
exports.getMapCodec = af;
|
430
430
|
exports.getMapDecoder = r_;
|
431
431
|
exports.getMapEncoder = n_;
|
432
|
-
exports.getNullableCodec =
|
432
|
+
exports.getNullableCodec = cf;
|
433
433
|
exports.getNullableDecoder = i_;
|
434
434
|
exports.getNullableEncoder = o_;
|
435
|
-
exports.getOptionCodec =
|
435
|
+
exports.getOptionCodec = Sf;
|
436
436
|
exports.getOptionDecoder = __;
|
437
437
|
exports.getOptionEncoder = u_;
|
438
|
-
exports.getProgramDerivedAddress =
|
438
|
+
exports.getProgramDerivedAddress = TR;
|
439
439
|
exports.getPublicKeyFromPrivateKey = l_;
|
440
|
-
exports.getRpcSubscriptionsChannelWithJSONSerialization =
|
441
|
-
exports.getScalarEnumCodec =
|
442
|
-
exports.getScalarEnumDecoder =
|
443
|
-
exports.getScalarEnumEncoder =
|
444
|
-
exports.getSetCodec =
|
440
|
+
exports.getRpcSubscriptionsChannelWithJSONSerialization = ad;
|
441
|
+
exports.getScalarEnumCodec = nf;
|
442
|
+
exports.getScalarEnumDecoder = tf;
|
443
|
+
exports.getScalarEnumEncoder = ef;
|
444
|
+
exports.getSetCodec = uf;
|
445
445
|
exports.getSetDecoder = s_;
|
446
446
|
exports.getSetEncoder = a_;
|
447
|
-
exports.getShortU16Codec =
|
447
|
+
exports.getShortU16Codec = xR;
|
448
448
|
exports.getShortU16Decoder = M;
|
449
449
|
exports.getShortU16Encoder = V;
|
450
|
-
exports.getSignatureFromTransaction =
|
451
|
-
exports.getSignersFromInstruction =
|
452
|
-
exports.getSignersFromTransactionMessage =
|
453
|
-
exports.getSolanaErrorFromInstructionError =
|
450
|
+
exports.getSignatureFromTransaction = io;
|
451
|
+
exports.getSignersFromInstruction = fl;
|
452
|
+
exports.getSignersFromTransactionMessage = co;
|
453
|
+
exports.getSolanaErrorFromInstructionError = Fo;
|
454
454
|
exports.getSolanaErrorFromJsonRpcError = pe;
|
455
455
|
exports.getSolanaErrorFromTransactionError = $e;
|
456
|
-
exports.getStructCodec =
|
456
|
+
exports.getStructCodec = _f;
|
457
457
|
exports.getStructDecoder = ne;
|
458
458
|
exports.getStructEncoder = Y;
|
459
|
-
exports.getTransactionCodec =
|
460
|
-
exports.getTransactionDecoder =
|
459
|
+
exports.getTransactionCodec = bE;
|
460
|
+
exports.getTransactionDecoder = dl;
|
461
461
|
exports.getTransactionEncoder = La;
|
462
|
-
exports.getTransactionVersionCodec =
|
462
|
+
exports.getTransactionVersionCodec = fE;
|
463
463
|
exports.getTransactionVersionDecoder = ft;
|
464
464
|
exports.getTransactionVersionEncoder = ga;
|
465
|
-
exports.getTupleCodec =
|
465
|
+
exports.getTupleCodec = YR;
|
466
466
|
exports.getTupleDecoder = F;
|
467
467
|
exports.getTupleEncoder = $;
|
468
|
-
exports.getU128Codec =
|
468
|
+
exports.getU128Codec = UR;
|
469
469
|
exports.getU128Decoder = ku;
|
470
470
|
exports.getU128Encoder = zu;
|
471
|
-
exports.getU16Codec =
|
471
|
+
exports.getU16Codec = BR;
|
472
472
|
exports.getU16Decoder = Gu;
|
473
473
|
exports.getU16Encoder = Vu;
|
474
|
-
exports.getU32Codec =
|
474
|
+
exports.getU32Codec = MR;
|
475
475
|
exports.getU32Decoder = Tr;
|
476
476
|
exports.getU32Encoder = Le;
|
477
|
-
exports.getU64Codec =
|
477
|
+
exports.getU64Codec = FR;
|
478
478
|
exports.getU64Decoder = Ir;
|
479
479
|
exports.getU64Encoder = pr;
|
480
|
-
exports.getU8Codec =
|
480
|
+
exports.getU8Codec = zR;
|
481
481
|
exports.getU8Decoder = L;
|
482
482
|
exports.getU8Encoder = D;
|
483
|
-
exports.getUnionCodec =
|
483
|
+
exports.getUnionCodec = JR;
|
484
484
|
exports.getUnionDecoder = De;
|
485
485
|
exports.getUnionEncoder = be;
|
486
|
-
exports.getUnitCodec =
|
486
|
+
exports.getUnitCodec = sf;
|
487
487
|
exports.getUnitDecoder = ee;
|
488
488
|
exports.getUnitEncoder = Q;
|
489
|
-
exports.getUtf8Codec =
|
489
|
+
exports.getUtf8Codec = tR;
|
490
490
|
exports.getUtf8Decoder = du;
|
491
491
|
exports.getUtf8Encoder = _u;
|
492
492
|
exports.isAddress = gr;
|
493
|
-
exports.isAdvanceNonceAccountInstruction =
|
494
|
-
exports.isBlockhash =
|
495
|
-
exports.isDurableNonceTransaction =
|
493
|
+
exports.isAdvanceNonceAccountInstruction = no;
|
494
|
+
exports.isBlockhash = GA;
|
495
|
+
exports.isDurableNonceTransaction = At;
|
496
496
|
exports.isFixedSize = g;
|
497
|
-
exports.isInstructionForProgram =
|
498
|
-
exports.isInstructionWithAccounts =
|
499
|
-
exports.isInstructionWithData =
|
497
|
+
exports.isInstructionForProgram = hi;
|
498
|
+
exports.isInstructionWithAccounts = Tf;
|
499
|
+
exports.isInstructionWithData = Li;
|
500
500
|
exports.isJsonRpcPayload = ct;
|
501
|
-
exports.isKeyPairSigner =
|
502
|
-
exports.isLamports =
|
501
|
+
exports.isKeyPairSigner = El;
|
502
|
+
exports.isLamports = KA;
|
503
503
|
exports.isMessageModifyingSigner = ba;
|
504
|
-
exports.isMessagePartialSigner =
|
505
|
-
exports.isMessageSigner =
|
504
|
+
exports.isMessagePartialSigner = uo;
|
505
|
+
exports.isMessageSigner = Sl;
|
506
506
|
exports.isNone = Af;
|
507
507
|
exports.isOption = hr;
|
508
|
-
exports.isProgramDerivedAddress =
|
509
|
-
exports.isProgramError =
|
510
|
-
exports.isSignature =
|
508
|
+
exports.isProgramDerivedAddress = mR;
|
509
|
+
exports.isProgramError = Mf;
|
510
|
+
exports.isSignature = Pf;
|
511
511
|
exports.isSignerRole = W;
|
512
512
|
exports.isSolanaError = J;
|
513
513
|
exports.isSome = it;
|
514
|
-
exports.isStringifiedBigInt =
|
515
|
-
exports.isStringifiedNumber =
|
514
|
+
exports.isStringifiedBigInt = ZA;
|
515
|
+
exports.isStringifiedNumber = eE;
|
516
516
|
exports.isTransactionMessageWithBlockhashLifetime = Pe;
|
517
|
-
exports.isTransactionMessageWithSingleSendingSigner =
|
517
|
+
exports.isTransactionMessageWithSingleSendingSigner = JE;
|
518
518
|
exports.isTransactionModifyingSigner = Ne;
|
519
519
|
exports.isTransactionPartialSigner = oe;
|
520
520
|
exports.isTransactionSendingSigner = Ot;
|
521
521
|
exports.isTransactionSigner = Nt;
|
522
|
-
exports.isUnixTimestamp =
|
523
|
-
exports.isVariableSize =
|
524
|
-
exports.isWritableRole =
|
525
|
-
exports.lamports =
|
526
|
-
exports.mainnet =
|
527
|
-
exports.mergeBytes =
|
522
|
+
exports.isUnixTimestamp = nE;
|
523
|
+
exports.isVariableSize = zo;
|
524
|
+
exports.isWritableRole = Ae;
|
525
|
+
exports.lamports = md;
|
526
|
+
exports.mainnet = WA;
|
527
|
+
exports.mergeBytes = Pl;
|
528
528
|
exports.mergeRoles = br;
|
529
|
-
exports.none =
|
530
|
-
exports.offsetCodec =
|
529
|
+
exports.none = Ci;
|
530
|
+
exports.offsetCodec = Fl;
|
531
531
|
exports.offsetDecoder = sr;
|
532
532
|
exports.offsetEncoder = ar;
|
533
533
|
exports.padBytes = Xc;
|
534
|
-
exports.padLeftCodec =
|
534
|
+
exports.padLeftCodec = kl;
|
535
535
|
exports.padLeftDecoder = eu;
|
536
536
|
exports.padLeftEncoder = Zc;
|
537
|
-
exports.padNullCharacters =
|
538
|
-
exports.padRightCodec =
|
537
|
+
exports.padNullCharacters = eR;
|
538
|
+
exports.padRightCodec = Vl;
|
539
539
|
exports.padRightDecoder = _r;
|
540
540
|
exports.padRightEncoder = Qc;
|
541
|
-
exports.parseBase58RpcAccount =
|
541
|
+
exports.parseBase58RpcAccount = cR;
|
542
542
|
exports.parseBase64RpcAccount = Xe;
|
543
|
-
exports.parseJsonRpcAccount =
|
544
|
-
exports.partiallySignTransaction =
|
545
|
-
exports.partiallySignTransactionMessageWithSigners =
|
543
|
+
exports.parseJsonRpcAccount = ei;
|
544
|
+
exports.partiallySignTransaction = ao;
|
545
|
+
exports.partiallySignTransactionMessageWithSigners = Ol;
|
546
546
|
exports.pipe = k;
|
547
|
-
exports.prependTransactionMessageInstruction =
|
548
|
-
exports.prependTransactionMessageInstructions =
|
547
|
+
exports.prependTransactionMessageInstruction = OE;
|
548
|
+
exports.prependTransactionMessageInstructions = ol;
|
549
549
|
exports.removeNullCharacters = cu;
|
550
|
-
exports.resizeCodec =
|
550
|
+
exports.resizeCodec = zl;
|
551
551
|
exports.resizeDecoder = ur;
|
552
552
|
exports.resizeEncoder = cr;
|
553
|
-
exports.reverseCodec =
|
553
|
+
exports.reverseCodec = Gl;
|
554
554
|
exports.reverseDecoder = nu;
|
555
555
|
exports.reverseEncoder = tu;
|
556
556
|
exports.safeCaptureStackTrace = ue;
|
557
|
-
exports.sendAndConfirmDurableNonceTransactionFactory =
|
558
|
-
exports.sendAndConfirmTransactionFactory =
|
559
|
-
exports.sendTransactionWithoutConfirmingFactory =
|
560
|
-
exports.setTransactionMessageFeePayer =
|
561
|
-
exports.setTransactionMessageFeePayerSigner =
|
562
|
-
exports.setTransactionMessageLifetimeUsingBlockhash =
|
563
|
-
exports.setTransactionMessageLifetimeUsingDurableNonce =
|
564
|
-
exports.signAndSendTransactionMessageWithSigners =
|
557
|
+
exports.sendAndConfirmDurableNonceTransactionFactory = VS;
|
558
|
+
exports.sendAndConfirmTransactionFactory = WS;
|
559
|
+
exports.sendTransactionWithoutConfirmingFactory = KS;
|
560
|
+
exports.setTransactionMessageFeePayer = tl;
|
561
|
+
exports.setTransactionMessageFeePayerSigner = VE;
|
562
|
+
exports.setTransactionMessageLifetimeUsingBlockhash = eo;
|
563
|
+
exports.setTransactionMessageLifetimeUsingDurableNonce = el;
|
564
|
+
exports.signAndSendTransactionMessageWithSigners = ZE;
|
565
565
|
exports.signBytes = ye;
|
566
|
-
exports.signTransaction =
|
567
|
-
exports.signTransactionMessageWithSigners =
|
568
|
-
exports.signature =
|
569
|
-
exports.some =
|
570
|
-
exports.stringifiedBigInt =
|
571
|
-
exports.stringifiedNumber =
|
572
|
-
exports.testnet =
|
573
|
-
exports.transformChannelInboundMessages =
|
574
|
-
exports.transformChannelOutboundMessages =
|
575
|
-
exports.transformCodec =
|
566
|
+
exports.signTransaction = DE;
|
567
|
+
exports.signTransactionMessageWithSigners = qE;
|
568
|
+
exports.signature = xf;
|
569
|
+
exports.some = Ii;
|
570
|
+
exports.stringifiedBigInt = QA;
|
571
|
+
exports.stringifiedNumber = tE;
|
572
|
+
exports.testnet = XA;
|
573
|
+
exports.transformChannelInboundMessages = Br;
|
574
|
+
exports.transformChannelOutboundMessages = Mr;
|
575
|
+
exports.transformCodec = Hl;
|
576
576
|
exports.transformDecoder = p;
|
577
577
|
exports.transformEncoder = T;
|
578
|
-
exports.unixTimestamp =
|
579
|
-
exports.unwrapOption =
|
580
|
-
exports.unwrapOptionRecursively =
|
581
|
-
exports.upgradeRoleToSigner =
|
582
|
-
exports.upgradeRoleToWritable =
|
578
|
+
exports.unixTimestamp = rE;
|
579
|
+
exports.unwrapOption = Ef;
|
580
|
+
exports.unwrapOptionRecursively = pi;
|
581
|
+
exports.upgradeRoleToSigner = Lf;
|
582
|
+
exports.upgradeRoleToWritable = bf;
|
583
583
|
exports.verifySignature = f_;
|
584
584
|
exports.wrapNullable = c_;
|
585
585
|
|