"use strict";const u=require("./platform-CCG_jgOO.js"),t=require("./unsignedTransaction-DA4tlY5u.js"),r=e=>typeof e=="string"?u.Buffer.from(e):e;function c(e,n){return t.PublicKey.findProgramAddressSync(Array.isArray(e)?e.map(r):[r(e)],new t.PublicKey(n))[0]}function i(e,n){return{pubkey:new t.PublicKey(e),isWritable:!0,isSigner:n}}function a(e,n){return{pubkey:new t.PublicKey(e),isWritable:!1,isSigner:n}}function o(e){if(e===null)throw Error("account info is null");return e.data}exports.deriveAddress=c;exports.getAccountData=o;exports.newAccountMeta=i;exports.newReadOnlyAccountMeta=a;
