const o = (e, i) => {
  const r = e.find((n) => n.assetId === i && !n.isIntent);
  if (!r) {
    const n = e.find((t) => t.assetId === i);
    if (n)
      return n;
    if (i.startsWith("nep141:")) {
      const t = i.replace("nep141:", "nep245:");
      return e.find((a) => a.assetId === t);
    }
    return;
  }
  return r.blockchain !== "near" ? r : e.some(
    (n) => n.symbol === r.symbol && !n.isIntent && n.blockchain !== "near"
  ) ? e.find((n) => n.assetId === i && n.isIntent) ?? r : r;
};
export {
  o as findTransactionToken
};
//# sourceMappingURL=findTransactionToken.js.map
