PageSourceSearch

https://carv.io/assets/solana_wallet-standard-wallet-adapter-base-vMV6OjNM.js

js carv.io collected 2026-10-02 04:56:51 UTC 7,577 bytes, 2 lines download raw bytes

1try{let t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="ea76dea4-8386-4493-b596-2b55b257ce2b",t._sentryDebugIdIdentifier="sentry-dbid-ea76dea4-8386-4493-b596-2b55b257ce2b")}catch($){}import{P as t,V as e,T as s}from"./solana_web3.js-KnZ67T3l.js";import{b as i}from"./bs58-RvKlpWlK.js";import{r as n,a,b as r,g as o,h,f,t as c,l,j as u,k as w,d,e as m,c as g,m as p,n as y,u as b,v as T}from"./solana_wallet-adapter-base-J47LKJ2c.js";import{a as v,b as S,S as k}from"./wallet-standard_features-C1vXGIBv.js";import{g as C,a as M}from"./solana_wallet-standard-util-Ho2cCeWM.js";import{a as j}from"./wallet-standard_wallet-aCO-gGMu.js";import{S as I,a as W,b as _,c as A}from"./solana_wallet-standard-features-03Q3p8-h.js";var x,z,E,P,D,U,V,q,R,G,K,L,X,B,F,H,J,N,O=function(t,e,s,i,n){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!n)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!n:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?n.call(t,s):n?n.value=s:e.set(t,s),s},Q=function(t,e,s,i){if("a"===s&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===s?i:"a"===s?i.call(t):i?i.value:e.get(t)};class Y extends n{constructor({wallet:t}){super(),x.add(this),z.set(this,void 0),E.set(this,void 0),P.set(this,void 0),D.set(this,void 0),U.set(this,void 0),V.set(this,void 0),q.set(this,void 0),R.set(this,"undefined"==typeof window||"undefined"==typeof document?a.Unsupported:a.Installed),B.set(this,t=>{if("accounts"in t){const t=Q(this,q,"f").accounts[0];Q(this,z,"f")&&!Q(this,D,"f")&&t!==Q(this,z,"f")&&(t?Q(this,x,"m",K).call(this,t):(this.emit("error",new r),Q(this,x,"m",L).call(this)))}"features"in t&&Q(this,x,"m",X).call(this)}),O(this,q,t,"f"),O(this,z,null,"f"),O(this,E,null,"f"),O(this,P,!1,"f"),O(this,D,!1,"f"),O(this,U,Q(this,q,"f").features[v].on("change",Q(this,B,"f")),"f"),Q(this,x,"m",X).call(this)}get name(){return Q(this,q,"f").name}get url(){return"https://github.com/solana-labs/wallet-standard"}get icon(){return Q(this,q,"f").icon}get readyState(){return Q(this,R,"f")}get publicKey(){return Q(this,E,"f")}get connecting(){return Q(this,P,"f")}get supportedTransactionVersions(){return Q(this,V,"f")}get wallet(){return Q(this,q,"f")}get standard(){return!0}destroy(){O(this,z,null,"f"),O(this,E,null,"f"),O(this,P,!1,"f"),O(this,D,!1,"f");const t=Q(this,U,"f");t&&(O(this,U,null,"f"),t())}async autoConnect(){return Q(this,x,"m",G).call(this,{silent:!0})}async connect(){return Q(this,x,"m",G).call(this)}async disconnect(){if(S in Q(this,q,"f").features)try{O(this,D,!0,"f"),await Q(this,q,"f").features[S].disconnect()}catch(t){this.emit("error",new o(t?.message,t))}finally{O(this,D,!1,"f")}Q(this,x,"m",L).call(this)}async sendTransaction(t,e,s={}){try{const a=Q(this,z,"f");if(!a)throw new h;let r;if(I in Q(this,q,"f").features)if(a.features.includes(I))r=I;else{if(!(W in Q(this,q,"f").features)||!a.features.includes(W))throw new f;r=W}else{if(!(W in Q(this,q,"f").features))throw new c;if(!a.features.includes(W))throw new f;r=W}const o=C(e.rpcEndpoint);if(!a.chains.includes(o))throw new l;try{const{signers:n,...h}=s;let f;if(u(t)?(n?.length&&t.sign(n),f=t.serialize()):(t=await this.prepareTransaction(t,e,h),n?.length&&t.partialSign(...n),f=new Uint8Array(t.serialize({requireAllSignatures:!1,verifySignatures:!1}))),r===I){const[t]=await Q(this,q,"f").features[I].signAndSendTransaction({account:a,chain:o,transaction:f,options:{preflightCommitment:M(h.preflightCommitment||e.commitment),skipPreflight:h.skipPreflight,maxRetries:h.maxRetries,minContextSlot:h.minContextSlot}});return i.encode(t.signature)}{const[t]=await Q(this,q,"f").features[W].signTransaction({account:a,chain:o,transaction:f,options:{preflightCommitment:M(h.preflightCommitment||e.commitment),minContextSlot:h.minContextSlot}});return await e.sendRawTransaction(t.signedTransaction,{...h,preflightCommitment:M(h.preflightCommitment||e.commitment)})}}catch(n){if(n instanceof w)throw n;throw new l(n?.message,n)}}
1catch(n){throw this.emit("error",n),n}}}z=new WeakMap,E=new WeakMap,P=new WeakMap,D=new WeakMap,U=new WeakMap,V=new WeakMap,q=new WeakMap,R=new WeakMap,B=new WeakMap,x=new WeakSet,G=async function(t){try{if(this.connected||this.connecting)return;if(Q(this,R,"f")!==a.Installed)throw new d;if(O(this,P,!0,"f"),!Q(this,q,"f").accounts.length)try{await Q(this,q,"f").features[k].connect(t)}catch(e){throw new m(e?.message,e)}const s=Q(this,q,"f").accounts[0];if(!s)throw new f;Q(this,x,"m",K).call(this,s)}catch(e){throw this.emit("error",e),e}finally{O(this,P,!1,"f")}},K=function(e){let s;try{s=new t(e.address)}catch(i){throw new g(i?.message,i)}O(this,z,e,"f"),O(this,E,s,"f"),Q(this,x,"m",X).call(this),this.emit("connect",s)},L=function(){O(this,z,null,"f"),O(this,E,null,"f"),Q(this,x,"m",X).call(this),this.emit("disconnect")},X=function(){const t=I in Q(this,q,"f").features?Q(this,q,"f").features[I].supportedTransactionVersions:Q(this,q,"f").features[W].supportedTransactionVersions;O(this,V,j(t,["legacy"])?null:new Set(t),"f"),W in Q(this,q,"f").features&&Q(this,z,"f")?.features.includes(W)?(this.signTransaction=Q(this,x,"m",F),this.signAllTransactions=Q(this,x,"m",H)):(delete this.signTransaction,delete this.signAllTransactions),_ in Q(this,q,"f").features&&Q(this,z,"f")?.features.includes(_)?this.signMessage=Q(this,x,"m",J):delete this.signMessage,A in Q(this,q,"f").features?this.signIn=Q(this,x,"m",N):delete this.signIn},F=async function(t){try{const n=Q(this,z,"f");if(!n)throw new h;if(!(W in Q(this,q,"f").features))throw new c;if(!n.features.includes(W))throw new f;try{const i=(await Q(this,q,"f").features[W].signTransaction({account:n,transaction:u(t)?t.serialize():new Uint8Array(t.serialize({requireAllSignatures:!1,verifySignatures:!1}))}))[0].signedTransaction;return u(t)?e.deserialize(i):s.from(i)}catch(i){if(i instanceof w)throw i;throw new p(i?.message,i)}}catch(i){throw this.emit("error",i),i}},H=async function(t){try{const n=Q(this,z,"f");if(!n)throw new h;if(!(W in Q(this,q,"f").features))throw new c;if(!n.features.includes(W))throw new f;try{const i=await Q(this,q,"f").features[W].signTransaction(...t.map(t=>({account:n,transaction:u(t)?t.serialize():new Uint8Array(t.serialize({requireAllSignatures:!1,verifySignatures:!1}))})));return t.map((t,n)=>{const a=i[n].signedTransaction;return u(t)?e.deserialize(a):s.from(a)})}catch(i){throw new p(i?.message,i)}}catch(i){throw this.emit("error",i),i}},J=async function(t){try{const s=Q(this,z,"f");if(!s)throw new h;if(!(_ in Q(this,q,"f").features))throw new c;if(!s.features.includes(_))throw new f;try{return(await Q(this,q,"f").features[_].signMessage({account:s,message:t}))[0].signature}catch(e){throw new y(e?.message,e)}}catch(e){throw this.emit("error",e),e}},N=async function(t={}){try{if(!(A in Q(this,q,"f").features))throw new c;let s;try{[s]=await Q(this,q,"f").features[A].signIn(t)}catch(e){throw new b(e?.message,e)}if(!s)throw new b;return Q(this,x,"m",K).call(this,s.account),s}catch(e){throw this.emit("error",e),e}};const Z=T;export{Y as S,Z as i};
2//# sourceMappingURL=solana_wallet-standard-wallet-adapter-base-vMV6OjNM.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.