import { ap as c } from "./index-KlKYOR0p.mjs";
class C extends Error {
  constructor() {
    super("Not supported");
  }
}
class S extends Error {
  constructor() {
    super("Not connected");
  }
}
var a;
(function(s) {
  s.SignTransaction = "SignTransaction", s.SendTransaction = "SendTransaction", s.SignAndSendTransaction = "SignAndSendTransaction", s.SignMessage = "SignMessage";
})(a || (a = {}));
var t;
(function(s) {
  s.Installed = "Installed", s.NotDetected = "NotDetected", s.Loadable = "Loadable", s.Unsupported = "Unsupported";
})(t || (t = {}));
class g extends c {
  /**
   * Retrieve the wallet's current state
   *
   * The possible states are as those used by the {@link https://github.com/solana-labs/wallet-adapter solana} and {@link https://github.com/aptos-labs/aptos-wallet-adapter aptos} libraries, summarized as follows:
   *  * `Installed`: the wallet was detected through the global scope or any other mechanism and can be interacted with. Example: `window.ethereum` for Metamask or `window.phantom` for Phantom wallet)
   *  * `NotDetected`: as opposed to `Installed`, no point of interaction with the wallet was found, and thus it is not available. Users can be redirected to the project url offered by `getUrl`
   *  * `Loadable`: the wallet might not require installation, and thus can be interacted with after being loaded
   *  * `Unsupported`: the wallet is not supported by the environment
   *
   * @returns The wallet's state. Defaults to Installed.
   */
  getWalletState() {
    return t.Installed;
  }
  /**
   * Query whether a feature or set of features is supported by the wallet.
   * For a list of features see {@link BaseFeatures}.
   * Some chains might add additional features of their own.
   */
  supportsFeature(o) {
    const n = this.getFeatures();
    return Array.isArray(o) ? o.every((r) => n.includes(r)) : n.includes(o);
  }
}
const e = {
  unset: 0,
  solana: 1,
  ethereum: 2,
  terra: 3,
  bsc: 4,
  polygon: 5,
  avalanche: 6,
  oasis: 7,
  algorand: 8,
  aurora: 9,
  fantom: 10,
  karura: 11,
  acala: 12,
  klaytn: 13,
  celo: 14,
  near: 15,
  moonbeam: 16,
  neon: 17,
  terra2: 18,
  injective: 19,
  osmosis: 20,
  sui: 21,
  aptos: 22,
  arbitrum: 23,
  optimism: 24,
  gnosis: 25,
  pythnet: 26,
  xpla: 28,
  btc: 29,
  base: 30,
  sei: 32,
  rootstock: 33,
  //
  scroll: 34,
  mantle: 35,
  blast: 36,
  xlayer: 37,
  linea: 38,
  berachain: 39,
  seievm: 40,
  wormchain: 3104,
  cosmoshub: 4e3,
  evmos: 4001,
  kujira: 4002,
  neutron: 4003,
  celestia: 4004,
  stargaze: 4005,
  seda: 4006,
  dymension: 4007,
  provenance: 4008,
  sepolia: 10002,
  arbitrum_sepolia: 10003,
  base_sepolia: 10004,
  optimism_sepolia: 10005,
  holesky: 10006,
  polygon_sepolia: 10007
};
Object.entries(e).reduce(
  (s, [o, n]) => (s[n] = o, s),
  {}
  // eslint-disable-line
);
const H = e.solana, i = e.terra, l = e.terra2, u = e.injective, b = e.sui, D = e.aptos, p = e.xpla, _ = e.sei, I = e.wormchain, m = e.cosmoshub, A = e.evmos, N = e.kujira;
function v(s) {
  return s === i || s === l || s === u || s === p || s === _ || s === I || s === m || s === A || s === N;
}
export {
  a as B,
  I as C,
  S as N,
  g as W,
  t as a,
  H as b,
  b as c,
  C as d,
  D as e,
  _ as f,
  v as i
};
