PageSourceSearch

https://www.xstable.ai/_next/static/chunks/2463.997bda6590e15256.js

js xstable.ai collected 2026-10-05 14:38:30 UTC 13,051 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2463],{52463:(e,t,a)=>{a.d(t,{SolanaWalletConnectStandardWallet:()=>V});var s,n,i,r,o,c,l,M,h,d,w,u,f,D,T,g,p,N,j,y,A,E,v,z,L,m=a(13048),I=function(e,t,a,s){if("a"===a&&!s)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!s:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===a?s:"a"===a?s.call(e):s?s.value:t.get(e)},k=function(e,t,a,s,n){if("m"===s)throw TypeError("Private method is not writable");if("a"===s&&!n)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===s?n.call(e,a):n?n.value=a:t.set(e,a),a};function O(e){let t=({register:t})=>t(e);try{window.dispatchEvent(new b(t))}catch(e){console.error("wallet-standard:register-wallet event could not be dispatched\n",e)}try{window.addEventListener("wallet-standard:app-ready",({detail
1:e})=>t(e))}catch(e){console.error("wallet-standard:app-ready event listener could not be added\n",e)}}class b extends Event{get detail(){return I(this,s,"f")}get type(){return"wallet-standard:register-wallet"}constructor(e){super("wallet-standard:register-wallet",{bubbles:!1,cancelable:!1,composed:!1}),s.set(this,void 0),k(this,s,e,"f")}preventDefault(){throw Error("preventDefault cannot be called")}stopImmediatePropagation(){throw Error("stopImmediatePropagation cannot be called")}stopPropagation(){throw Error("stopPropagation cannot be called")}}s=new WeakMap;var S=a(69760),U=a(52335),x=a(26274);let C={ton:["ton_sendMessage","ton_signData"],solana:["solana_signMessage","solana_signTransaction","solana_requestAccounts","solana_getAccounts","solana_signAllTransactions","solana_signAndSendTransaction"],eip155:["eth_accounts","eth_requestAccounts","eth_sendRawTransaction","eth_sign","eth_signTransaction","eth_signTypedData","eth_signTypedData_v3","eth_signTypedData_v4","eth_sendTransaction","personal_sign","wallet_switchEthereumChain","wallet_addEthereumChain","wallet_getPermissions","wallet_requestPermissions","wallet_registerOnboarding","wallet_watchAsset","wallet_scanQRCode","wallet_getCallsStatus","wallet_showCallsStatus","wallet_sendCalls","wallet_getCapabilities","wallet_grantPermissions","wallet_revokePermissions","wallet_getAssets"],bip122:["sendTransfer","signMessage","signPsbt","getAccountAddresses"]},Y={mainnet:"5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",deprecatedMainnet:"4sGjMW1sUnHzSxGspuhpqLDx6wiyjNtZ",devnet:"EtWTRABZaYq6iMfeYKouRu166VU2xqa1",deprecatedDevnet:"8E9rvCKLFQia2Y35HXjjpWzj8weVo44K"};var Q=a(70485);let _=["solana:mainnet","solana:devnet","solana:testnet","solana:localnet"];var W=function(e,t,a,s){if("a"===a&&!s)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!s:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===a?s:"a"===a?s.call(e):s?s.value:t.get(e)},P=function(e,t,a,s,n){if("m"===s)throw TypeError("Private method is not writable");if("a"===s&&!n)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===s?n.call(e,a):n?n.value=a:t.set(e,a),a};class q{get address(){return W(this,n,"f")}get publicKey(){return W(this,i,"f").slice()}get chains(){return W(this,r,"f").slice()}get features(){return W(this,o,"f").slice()}get label(){return W(this,c,"f")}get icon(){return W(this,l,"f")}constructor({address:e,publicKey:t,label:a,icon:s}){n.set(this,void 0),i.set(this,void 0),r.set(this,void 0),o.set(this,void 0),c.set(this,void 0),l.set(this,void 0),P(this,n,e,"f"),P(this,i,t,"f"),P(this,r,_,"f"),P(this,o,["solana:signAndSendTransaction","solana:signTransaction","solana:signMessage"],"f"),P(this,c,a,"f"),P(this,l,s,"f")}}function K(e){return _.includes(e)}function H(e){return"version"in e}n=new WeakMap,i=new WeakMap,r=new WeakMap,o=new WeakMap,c=new WeakMap,l=new WeakMap;var Z=a(44168).Buffer,R=function(e,t,a,s){if("a"===a&&!s)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!s:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===a?s:"a"===a?s.call(e):s?s.value:t.get(e)},B=function(e,t,a,s,n){if("m"===s)throw TypeError("Private method is not writable");if("a"===s&&!n)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===s?n.call(e,a):n?n.value=a:t.set(e,a),a};class V{static register(e){O(new V(e))}get version(){return R(this,d,"f")}get name(){return R(this,u,"f")}get icon(){return R(this,f,"f")}get chains(){return _.slice()}get features(){return{"standard:connect":{version:"1.0.0",connect:R(this,A,"f")},"standard:disconnect":{version:"1.0.0",disconnect:R(this,E,"f")},"standard:events":{version:"1.0.0",on:R(this,T,"f")},"solana:signAndSendTransaction":{version:"1.0.0",supportedTransactionVersions:["legacy",0],signAndSendTransaction:R(this,v,"f")},"solana:signTransaction":{version:"1.0.0",supportedTransactionVersions:["legacy",0],signTransaction:R(this,z,"f")},"solana:signMessage":{version:"1.0.0",signMessage:R(this,L,"f")}}}get accounts(){let e=R(this,w,"f").session?.namespaces?.solana,t=e?.chains?.map(e=>({"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp":"solana:mainnet","solana:4sGjMW1sUnHzSxGspuhpqLDx6wiyjNtZ":"solana:mainnet","solana:4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z":"solana:testnet","solana:8E9rvCKLFQia2Y35HXjjpWzj8weVo44K":"solana:devnet","solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1":"solana:devnet"})[e]);return e?.accounts.map(e=>{let{address:a}=U.C.parseCaipAddress(e),s=new m.PublicKey(S.A.decode(a));
1return{address:a,publicKey:s.toBytes(),chains:t,features:["solana:signAndSendTransaction","solana:signTransaction","solana:signMessage"]}})||[]}constructor(e){M.add(this),h.set(this,{}),d.set(this,"1.0.0"),w.set(this,void 0),u.set(this,"WalletConnect"),f.set(this,"data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjE4NSIgdmlld0JveD0iMCAwIDMwMCAxODUiIHdpZHRoPSIzMDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0ibTYxLjQzODU0MjkgMzYuMjU2MjYxMmM0OC45MTEyMjQxLTQ3Ljg4ODE2NjMgMTI4LjIxMTk4NzEtNDcuODg4MTY2MyAxNzcuMTIzMjA5MSAwbDUuODg2NTQ1IDUuNzYzNDE3NGMyLjQ0NTU2MSAyLjM5NDQwODEgMi40NDU1NjEgNi4yNzY1MTEyIDAgOC42NzA5MjA0bC0yMC4xMzY2OTUgMTkuNzE1NTAzYy0xLjIyMjc4MSAxLjE5NzIwNTEtMy4yMDUzIDEuMTk3MjA1MS00LjQyODA4MSAwbC04LjEwMDU4NC03LjkzMTE0NzljLTM0LjEyMTY5Mi0zMy40MDc5ODE3LTg5LjQ0Mzg4Ni0zMy40MDc5ODE3LTEyMy41NjU1Nzg4IDBsLTguNjc1MDU2MiA4LjQ5MzYwNTFjLTEuMjIyNzgxNiAxLjE5NzIwNDEtMy4yMDUzMDEgMS4xOTcyMDQxLTQuNDI4MDgwNiAwbC0yMC4xMzY2OTQ5LTE5LjcxNTUwMzFjLTIuNDQ1NTYxMi0yLjM5NDQwOTItMi40NDU1NjEyLTYuMjc2NTEyMiAwLTguNjcwOTIwNHptMjE4Ljc2Nzc5NjEgNDAuNzczNzQ0OSAxNy45MjE2OTcgMTcuNTQ2ODk3YzIuNDQ1NTQ5IDIuMzk0Mzk2OSAyLjQ0NTU2MyA2LjI3NjQ3NjkuMDAwMDMxIDguNjcwODg5OWwtODAuODEwMTcxIDc5LjEyMTEzNGMtMi40NDU1NDQgMi4zOTQ0MjYt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MyNDljMi40NDU1NjEtMi4zOTQ0MDkyIDYuNDEwNTk5LTIuMzk0NDA5MiA4Ljg1NjE2IDB6IiBmaWxsPSIjM2I5OWZjIi8+PC9zdmc+"),D.set(this,null),T.set(this,(e,t)=>(R(this,h,"f")[e]||(R(this,h,"f")[e]=[]),R(this,h,"f")[e].push(t),()=>R(this,M,"m",p).call(this,e,t))),N.set(this,()=>{let e=this.accounts[0];e?.publicKey&&(B(this,D,new q(e),"f"),R(this,M,"m",g).call(this,"change",{accounts:this.accounts}))}),j.set(this,()=>{R(this,D,"f")&&(B(this,D,null,"f"),R(this,M,"m",g).call(this,"change",{accounts:this.accounts}))}),y.set(this,()=>{R(this,w,"f").session?.namespaces?.solana?.accounts.length?R(this,N,"f").call(this):R(this,j,"f").call(this)}),A.set(this,async()=>(R(this,D,"f")||(x.I.push("ConnectingWalletConnect"),await R(this,w,"f").connect({namespaces:[Q.w.DEFAULT_CHAIN].reduce((e,t)=>{let{id:a,chainNamespace:s,rpcUrls:n}=t,i=n.default.http[0];e[s]||(e[s]={methods:C[s]||[],events:["accountsChanged","chainChanged"],chains:[],rpcMap:{}});let r=`${s}:${a}`,o=e[s];switch(o?.chains.push(r),r){case Y.mainnet:o.chains.push(Y.deprecatedMainnet);break;case Y.devnet:o.chains.push(Y.deprecatedDevnet)}return o?.rpcMap&&i&&(o.rpcMap[a]=i),e},{})})),R(this,N,"f").call(this),{accounts:this.accounts})),E.set(this,async()=>{await R(this,w,"f").disconnect()}),v.set(this,async(...e)=>{if(!R(this,D,"f"))throw Error("not connected");let t=[];if(1===e.length){let{transaction:a,account:s,chain:n,options:i}=e[0]||{},{minContextSlot:r,preflightCommitment:o,skipPreflight:c,maxRetries:l}=i||{};if(s?.address!==R(this,D,"f")?.address)throw Error("invalid account");if(!K(n||":"))throw Error("invalid chain");if(!a)throw Error("invalid transaction");let M=await R(this,w,"f").request({method:"solana_signAndSendTransaction",params:{transaction:a,pubkey:R(this,D,"f").address,sendOptions:{preflightCommitment:o,minContextSlot:r,maxRetries:l,skipPreflight:c}}});t.push({signature:S.A.decode(M.signature)})}else if(e.length>1)for(let a of(await Promise.all(e.map(e=>R(this,v,"f").call(this,e)))))t.push(...a);return t}),z.set(this,async(...e)=>{if(!R(this,D,"f"))throw Error("not connected");let t=[];if(1===e.length){let a,{transaction:s,account:n,chain:i}=e[0]||{};if(n?.address!==R(this,D,"f").address)throw Error("invalid account");if(i&&!K(i))throw Error("invalid chain");if(!s)throw Error("invalid transaction");let r=m.Transaction.from(s),o=await R(this,w,"f").request({method:"solana_signTransaction",params:{transaction:s,pubkey:R(this,D,"f").address}});if("signature"in o){let e=S.A.decode(o.signature);r.addSignature(new m.PublicKey(R(this,D,"f").publicKey),Z.from(e)),a=r}else{let e=Z.from(o.transaction,"base64");H(r)&&(a=m.VersionedTransaction.deserialize(new Uint8Array(e))),a=m.Transaction.from(e)}if(!a)throw Error("invalid transaction");let c=H(a)?a.serialize():new Uint8Array(a.serialize({requireAllSignatures:!1,verifySignatures:!1}));t.push({signedTransaction:c})}else if(e.length>1){let a;for(let t of e){if(t.account?.address!==R(this,D,"f").address)throw Error("invalid account");if(t.chain){if(!K(t.chain))throw Error("invalid chain");if(a&&t.chain!==a)throw Error("conflicting chain");a=t.chain}}let s=e.map(({transaction:e})=>m.VersionedTransaction.deserialize(e)),n=(await R(this,w,"f").request({method:"solana_signAllTransactions",params:{transactions:s}})).transactions.map((e,t)=>{let a=s[t];if(!a)throw Error("Invalid transactions response");let n=Z.from(e,"base64");return H(a)?m.VersionedTransaction.deserialize(new Uint8Array(n)):m.Transaction.from(n)});t.push(...n.map(e=>({signedTransaction:H(e)?e.serialize():new Uint8Array(e.serialize({requireAllSignatures:!1,verifySignatures:!1}))}
1)))}return t}),L.set(this,async(...e)=>{if(!R(this,D,"f"))throw Error("not connected");let t=[];if(1===e.length){let{message:a,account:s}=e[0]||{};if(s?.address!==R(this,D,"f").address)throw Error("invalid account");if(!a)throw Error("invalid message");let n=await R(this,w,"f").request({method:"solana_signMessage",params:{message:a,pubkey:R(this,D,"f").address}});t.push({signedMessage:a,signature:S.A.decode(n.signature)})}else if(e.length>1)for(let a of(await Promise.all(e.map(e=>R(this,L,"f").call(this,e)))))t.push(...a);return t}),B(this,w,e,"f"),this.setProvider(e),O(this)}setProvider(e){B(this,w,e,"f"),B(this,u,"WalletConnect","f"),e.on("connect",()=>R(this,N,"f").call(this)),e.on("disconnect",()=>R(this,j,"f").call(this)),e.on("accountsChanged",()=>R(this,y,"f").call(this)),e.on("chainChanged",()=>R(this,y,"f").call(this)),R(this,N,"f").call(this)}}h=new WeakMap,d=new WeakMap,w=new WeakMap,u=new WeakMap,f=new WeakMap,D=new WeakMap,T=new WeakMap,N=new WeakMap,j=new WeakMap,y=new WeakMap,A=new WeakMap,E=new WeakMap,v=new WeakMap,z=new WeakMap,L=new WeakMap,M=new WeakSet,g=function(e,...t){R(this,h,"f")[e]?.forEach(e=>e.apply(null,t))},p=function(e,t){R(this,h,"f")[e]=R(this,h,"f")[e]?.filter(e=>t!==e)}}}]);

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.