diff --git a/.agents/context/adapters.md b/.agents/context/adapters.md deleted file mode 100644 index 53731368d4..0000000000 --- a/.agents/context/adapters.md +++ /dev/null @@ -1,162 +0,0 @@ -# Blockchain Adapters Guide - -Adapters bridge between the AppKit SDK and specific blockchain ecosystems. They live in `packages/adapters/`. - -## AdapterBlueprint (Abstract Base) - -Location: `packages/controllers/src/controllers/AdapterController/ChainAdapterBlueprint.ts` - -Every adapter extends this abstract class: - -```typescript -abstract class AdapterBlueprint { - public namespace: ChainNamespace | undefined - public adapterType: string | undefined - protected availableConnectors: Connector[] = [] - protected availableConnections: Connection[] = [] - - // Must implement: - abstract construct(params: AdapterBlueprint.Params): void - abstract setUniversalProvider(provider: UniversalProvider): Promise - - // Core connection methods: - async connect(params): Promise - async disconnect(): Promise - async switchNetwork(caipNetwork): Promise - async signMessage(message): Promise - async sendTransaction(args): Promise - async estimateGas(args): Promise - async getBalance(): Promise - - // Event system: - addEventListener(event: EventName, callback): void - removeEventListener(event: EventName, callback): void - - // Provider management: - setAuthProvider(authProvider: W3mFrameProvider): void - setUniversalProvider(universalProvider: UniversalProvider): Promise -} -``` - -### Event Types - -Adapters emit these events: - -- `disconnect` — Wallet disconnected -- `accountChanged` — Active account changed -- `switchNetwork` — Network switched -- `connections` — Available connections changed -- `connectors` — Available connectors changed -- `pendingTransactions` — Pending transaction state changed - -## Available Adapters - -### Wagmi (`@reown/appkit-adapter-wagmi`) - -EVM chains via Wagmi/Viem. - -```typescript -import { WagmiAdapter } from '@reown/appkit-adapter-wagmi' - -const wagmiAdapter = new WagmiAdapter({ - networks: [mainnet, polygon, arbitrum], - projectId: 'your-project-id', - customRpcUrls: { 1: 'https://...' } // Optional -}) - -// Exposes wagmiConfig for direct Wagmi usage -wagmiAdapter.wagmiConfig -``` - -### Solana (`@reown/appkit-adapter-solana`) - -Solana blockchain. - -```typescript -import { SolanaAdapter } from '@reown/appkit-adapter-solana' - -const solanaAdapter = new SolanaAdapter({ - connectionSettings: 'confirmed', // Commitment level - wallets: [...], // Optional wallet list -}) -``` - -### Bitcoin (`@reown/appkit-adapter-bitcoin`) - -Bitcoin and UTXO-based chains. - -### Ethers v6 (`@reown/appkit-adapter-ethers`) - -EVM via ethers.js v6. - -### Ethers v5 (`@reown/appkit-adapter-ethers5`) - -EVM via ethers.js v5 (legacy support). - -### Polkadot (`@reown/appkit-adapter-polkadot`) - -Polkadot ecosystem (private/internal). - -### TON (`@reown/appkit-adapter-ton`) - -TON blockchain. - -## Creating a New Adapter - -1. Create `packages/adapters//` mirroring existing adapter structure: - - ``` - packages/adapters// - ├── src/ - │ ├── client.ts # Adapter class extending AdapterBlueprint - │ ├── index.ts # Package exports - │ ├── connectors/ # Connector implementations - │ ├── providers/ # Provider implementations - │ └── utils/ # Helper utilities - ├── tests/ - ├── package.json - ├── tsconfig.json - └── vitest.config.ts - ``` - -2. Extend `AdapterBlueprint`: - - ```typescript - export class MyAdapter extends AdapterBlueprint { - constructor(params: MyAdapterParams) { - super({ namespace: 'mychain' }) - } - - override async connect(params) { - /* ... */ - } - override async disconnect() { - /* ... */ - } - override async switchNetwork(network) { - /* ... */ - } - override async signMessage(message) { - /* ... */ - } - override async sendTransaction(args) { - /* ... */ - } - override async getBalance() { - /* ... */ - } - } - ``` - -3. Dependencies in `package.json`: - - - `@reown/appkit` — SDK facade - - `@reown/appkit-common` — Types/utils - - `@reown/appkit-utils` — Integration helpers - - `@reown/appkit-wallet` — Wallet models - - Ecosystem SDKs as `peerDependencies` - - Optional wallets as `optionalDependencies` - -4. Keep business logic in controllers/utilities; adapters translate between host SDK APIs and AppKit abstractions. - -5. Add to `pnpm-workspace.yaml` and test with an example app. diff --git a/.agents/context/architecture.md b/.agents/context/architecture.md deleted file mode 100644 index 2934e9a507..0000000000 --- a/.agents/context/architecture.md +++ /dev/null @@ -1,113 +0,0 @@ -# Architecture Deep Dive - -## Layered Dependency Graph - -Dependencies flow strictly downward. Never import upward across layers. - -``` -┌─────────────────────────────────────────────────┐ -│ apps/ & examples/ (consumers) │ -├─────────────────────────────────────────────────┤ -│ adapters/wagmi, solana, bitcoin, ethers, etc. │ -│ @reown/appkit (SDK facade) │ -│ scaffold-ui (w3m-* flows) │ -│ pay (payment UI+state) │ -│ ui (wui-* atoms) │ -│ controllers (valtio state) │ -│ appkit-utils (chain helpers) │ -│ common (types, math, utils) │ -│ wallet (wallet models) │ -│ polyfills (browser shims) │ -└─────────────────────────────────────────────────┘ -``` - -## Import Boundaries (Enforced by DangerJS) - -| Package | CAN import from | CANNOT import from | -| ------------------------------- | --------------------------------------------------- | ------------------------------------------ | -| `common`, `wallet`, `polyfills` | standard library only | anything above | -| `controllers` | common, wallet, polyfills | ui, scaffold-ui, appkit, adapters | -| `ui` (wui-\*) | common only | controllers, scaffold-ui, appkit, adapters | -| `scaffold-ui` (w3m-\*) | ui, controllers, common, appkit-utils | appkit, adapters | -| `appkit` (facade) | controllers, ui, scaffold-ui, common, utils, wallet | adapters | -| adapters (wagmi, etc.) | appkit, common, utils, wallet | controllers directly, ui directly | -| apps/examples | any published package via entrypoints | deep internal paths | - -### Import Style Rules - -- **Within a package**: Use relative imports with `.js` extension (`./utils/helper.js`) -- **Cross-package**: Use package name (`@reown/appkit-controllers`) -- **Subpath exports**: Use when available (`@reown/appkit/react`, `@reown/appkit-controllers/react`) -- **Never**: Deep internal paths (`@reown/appkit-controllers/dist/...`) - -## Initialization Flow - -``` -createAppKit(options) - → new AppKit(options + sdkVersion) - → AppKitBaseClient constructor - → Register chain adapters (ChainController.addChain) - → Initialize controllers - → Setup universal provider (WalletConnect) - → Configure features (local + remote) - → ModalController.open() - → Prefetch API data - → Router.reset(initialView) - → W3mModal renders - → Mount Web Components - → Subscribe to controller state -``` - -## Chain Namespaces - -Each blockchain ecosystem has a unique namespace identifier: - -| Namespace | Chain | Adapter Package | -| ---------- | ----------------------------- | --------------------------------------------------- | -| `eip155` | EVM (Ethereum, Polygon, etc.) | `@reown/appkit-adapter-wagmi` or `ethers`/`ethers5` | -| `solana` | Solana | `@reown/appkit-adapter-solana` | -| `bip122` | Bitcoin | `@reown/appkit-adapter-bitcoin` | -| `polkadot` | Polkadot | `@reown/appkit-adapter-polkadot` | -| `ton` | TON | `@reown/appkit-adapter-ton` | - -Namespaces are used as keys in `ChainController.chains` Map and to route operations to the correct adapter. - -## Connector Types - -```typescript -type ConnectorType = - | 'EXTERNAL' // Injected wallets (MetaMask, Phantom) - | 'WALLET_CONNECT' // WalletConnect protocol - | 'INJECTED' // Browser extension injected - | 'ANNOUNCED' // EIP-6963 announced wallets - | 'AUTH' // Email/social authentication - | 'MULTI_CHAIN' // Multi-chain capable connectors -``` - -## SDK Configuration (AppKitOptions) - -```typescript -createAppKit({ - networks: [mainnet, polygon, solana], // Required: supported networks - adapters: [wagmiAdapter, solanaAdapter], // Optional: blockchain adapters - projectId: 'your-project-id', // Required: Reown Cloud project ID - metadata: { name, description, url, icons }, - features: { - email: true, // Email login - socials: ['google'], // Social login providers - swaps: true, // Token swaps - onramp: true, // Fiat on-ramp - pay: true, // Payments - }, - themeMode: 'dark', // 'dark' | 'light' | 'system' - themeVariables: { ... }, // CSS custom property overrides -}) -``` - -## Network Request Policy - -- No startup I/O: SDK must not issue network requests during module import, init, or initial page load -- Single intent-bound fetch: On first user action, perform one consolidated request -- No redundant/parallel calls: Disallow duplicate requests for the same resource -- Scope discipline: Only fetch what is needed for the current UI state -- Graceful UI: Render skeleton/placeholders while data loads diff --git a/.agents/context/contributing.md b/.agents/context/contributing.md deleted file mode 100644 index ae41717238..0000000000 --- a/.agents/context/contributing.md +++ /dev/null @@ -1,96 +0,0 @@ -# Contributing & PR Guide - -## Before Submitting a PR - -Run these from the repo root: - -```bash -pnpm build # Build all packages -pnpm typecheck # Type checking -pnpm test # Unit tests -pnpm lint # Linting -pnpm run prettier:format # Code formatting -``` - -## Commit & PR Title Format - -Use conventional commits: - -``` -feat: add new wallet connection flow -fix: resolve QR code rendering on mobile -chore: update WalletConnect dependency -refactor: simplify chain switching logic -test: add swap controller tests -docs: update adapter creation guide -``` - -## Changesets - -All publishable changes need a changeset: - -```bash -pnpm changeset -``` - -This creates a markdown file in `.changeset/` describing the change. All `@reown/appkit-*` packages are versioned together as a fixed group. - -## DangerJS Automated Checks - -Every PR is validated by DangerJS (`dangerfile.ts`). Key checks: - -### Dependency Checks - -- `pnpm-lock.yaml` must be updated when `package.json` changes -- No `yarn.lock` or `package-lock.json` allowed -- No loose dependency versions (`^`, `~`) except whitelisted packages - -### UI Package (`packages/ui/src/`) - -- Components must apply `resetStyles` -- No `@state()` decorator allowed -- No imports from `@reown/appkit-controllers` -- Required section comments: `// -- Render ----`, `// -- State & Properties ----`, `// -- Private ----` -- Must use `wui-` prefix -- Must have corresponding Storybook stories - -### Scaffold UI (`packages/scaffold-ui/src/`) - -- Must use `w3m-` prefix -- Must have proper unsubscribe cleanup -- Must use relative imports - -### Controllers (`packages/controllers/src/`) - -- Must have section comments: `// -- Types ----`, `// -- State ----`, `// -- Controller ----` -- Must use `valtio/vanilla` -- Must have corresponding tests - -## CI/CD Pipeline - -PR checks: - -1. Setup and build -2. Code style validation (Prettier, ESLint) -3. Unit tests (Vitest) -4. Bundle size checks -5. UI tests (Playwright in Laboratory app, sharded across runners) - -## Public API Changes - -- The `exports` entrypoints in `packages/appkit/exports/*.ts` define the public SDK surface -- Treat changes to exported functions, classes, or types as potentially breaking -- Follow semver: breaking changes require major bump + clear changeset -- Prefer additive changes; deprecate with `@deprecated` JSDoc first -- Keep exports stable; avoid re-exporting deep internals - -## Release Channels - -| Channel | Purpose | -| -------- | --------------------------- | -| `latest` | Stable production releases | -| `alpha` | Alpha pre-releases | -| `beta` | Beta pre-releases | -| `canary` | Canary releases for testing | - -Publishing is handled through GitHub Actions workflows. `@examples/*` and `@apps/*` are excluded. diff --git a/.agents/context/controllers.md b/.agents/context/controllers.md deleted file mode 100644 index 6d8766009d..0000000000 --- a/.agents/context/controllers.md +++ /dev/null @@ -1,166 +0,0 @@ -# Controllers Reference - -Controllers manage all application state using valtio proxies. They are framework-agnostic and live in `packages/controllers/`. - -## Controller Pattern - -Every controller follows this exact structure: - -```typescript -import { proxy, subscribe as sub } from 'valtio/vanilla' -// Always vanilla -import { subscribeKey as subKey } from 'valtio/vanilla/utils' - -import { withErrorBoundary } from '../utils/withErrorBoundary.js' - -// -- Types ---- -export interface MyControllerState { - someValue: string - loading: boolean -} - -// -- State ---- -const state = proxy({ - someValue: '', - loading: false -}) - -// -- Controller ---- -const controller = { - state, - - subscribe(callback: (newState: MyControllerState) => void) { - return sub(state, () => callback(state)) - }, - - subscribeKey( - key: K, - callback: (value: MyControllerState[K]) => void - ) { - return subKey(state, key, callback) - }, - - setSomeValue(value: string) { - state.someValue = value - } -} - -export const MyController = withErrorBoundary(controller) -``` - -### Required Section Comments - -DangerJS enforces these section comments in controller files: - -``` -// -- Types ---- -// -- State ---- -// -- Controller ---- -``` - -### Rules - -- Always import from `valtio/vanilla`, never from `valtio` -- Wrap exported controller with `withErrorBoundary` -- Keep controller surface small: state object + pure methods that mutate state -- Do not import UI code into controllers -- Controllers depend only on foundations/utilities -- Every controller must have corresponding tests in `packages/controllers/tests/` - -## Key Controllers - -### ChainController (~875 LOC) - -Multi-chain state management. Tracks active chain, active network, per-namespace account data. - -```typescript -ChainController.state.activeChain // Current namespace: 'eip155' | 'solana' | ... -ChainController.state.activeCaipAddress // Current CAIP-10 address -ChainController.state.activeCaipNetwork // Current network -ChainController.state.chains // Map -``` - -Key methods: - -- `switchActiveNetwork(caipNetwork)` — Switch to a different network -- `switchActiveChainNamespace(namespace)` — Switch entire chain ecosystem -- `getAccountData(namespace?)` — Get account state for a namespace -- `subscribeAccountStateProp(property, callback)` — Subscribe to account state changes - -### ConnectionController (~695 LOC) - -Wallet connection lifecycle. - -```typescript -ConnectionController.state.wcUri // WalletConnect URI for QR -ConnectionController.state.wcPairingExpiry // WC pairing timeout -ConnectionController.state.recentWallets // Recently used wallets -``` - -Key methods: - -- `connect(args)` — Initiate wallet connection -- `disconnect()` — Disconnect current wallet -- `signMessage(message)` — Request message signature -- `sendTransaction(args)` — Send a blockchain transaction - -### RouterController (~271 LOC) - -Modal view navigation with history stack. - -```typescript -RouterController.state.view // Current view name -RouterController.state.history // Navigation history stack -RouterController.state.data // Data passed to current view -``` - -Key methods: - -- `push(view, data?)` — Navigate to view, push to history -- `replace(view, data?)` — Replace current view -- `reset(view, data?)` — Clear history, set view -- `goBack()` — Pop from history - -### ModalController (~172 LOC) - -Modal visibility and loading states. - -```typescript -ModalController.state.open // Modal open/closed -ModalController.state.loading // Loading state -ModalController.state.shake // Shake animation trigger -``` - -Key methods: - -- `open(options?)` — Open modal with optional view/namespace -- `close()` — Close modal -- `shake()` — Trigger shake animation - -### ConnectorController (~506 LOC) - -Manages available wallet connectors, filtering, and discovery. - -### OptionsController (~470 LOC) - -Feature flags and SDK configuration. Manages enableEmbedded, defaultAccountTypes, allowUnsupportedChain, etc. - -### Other Controllers - -| Controller | Purpose | -| ------------------------- | ------------------------------------------------- | -| `ApiController` | Wallet/network data fetching from Reown Cloud API | -| `AccountController` | (Legacy) Account display state | -| `EventsController` | Event tracking and telemetry | -| `SendController` | Token transfer transaction state | -| `SwapController` | Token swap state and execution | -| `BlockchainApiController` | Transaction history, balance APIs | -| `ExchangeController` | Fund from exchange flow | -| `EnsController` | ENS domain resolution | -| `OnRampController` | Fiat on-ramp provider state | -| `AssetController` | Token/asset management | -| `PublicStateController` | Public read-only state | -| `ThemeController` | Theme mode and variables | -| `SnackController` | Toast notifications | -| `AlertController` | Alert dialogs | -| `TelemetryController` | Analytics and performance | diff --git a/.agents/context/packages.md b/.agents/context/packages.md deleted file mode 100644 index 6bff640f35..0000000000 --- a/.agents/context/packages.md +++ /dev/null @@ -1,109 +0,0 @@ -# Package Reference - -All packages are ESM (`"type": "module"`) with `sideEffects: false`. - -## Package Map - -### Core SDK - -| Package | npm Name | Purpose | -| ----------------------- | --------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | -| `packages/appkit` | `@reown/appkit` | Main SDK entry point and facade. Re-exports subdomains via subpath exports (`./react`, `./vue`, `./utils`, `./adapters`, `./connectors`). | -| `packages/common` | `@reown/appkit-common` | Shared types, math/date utils, light helpers. Zero heavy dependencies. | -| `packages/controllers` | `@reown/appkit-controllers` | Stateful business logic with valtio. Optional `./react` and `./vue` subpaths. | -| `packages/appkit-utils` | `@reown/appkit-utils` | Integration helpers per chain family (Ethers, Solana, Bitcoin, Wallet Standard). | -| `packages/wallet` | `@reown/appkit-wallet` | Wallet models, schema validation, core wallet utilities. | - -### UI - -| Package | npm Name | Purpose | -| ------------------------ | ----------------------------- | ------------------------------------------------------------------------------------ | -| `packages/ui` | `@reown/appkit-ui` | Atomic Web Components (Lit). 100+ `wui-*` components. No business logic. | -| `packages/scaffold-ui` | `@reown/appkit-scaffold-ui` | High-level UI flows: modal, router, views, partials. Composes `wui-*` + controllers. | -| `packages/wallet-button` | `@reown/appkit-wallet-button` | Standalone wallet button component. Optional `@lit/react` wrapper. | - -### Adapters - -| Package | npm Name | Ecosystem | -| ---------------------------- | -------------------------------- | ------------------ | -| `packages/adapters/wagmi` | `@reown/appkit-adapter-wagmi` | EVM via Wagmi/Viem | -| `packages/adapters/ethers` | `@reown/appkit-adapter-ethers` | EVM via ethers v6 | -| `packages/adapters/ethers5` | `@reown/appkit-adapter-ethers5` | EVM via ethers v5 | -| `packages/adapters/solana` | `@reown/appkit-adapter-solana` | Solana | -| `packages/adapters/bitcoin` | `@reown/appkit-adapter-bitcoin` | Bitcoin | -| `packages/adapters/polkadot` | `@reown/appkit-adapter-polkadot` | Polkadot (private) | -| `packages/adapters/ton` | `@reown/appkit-adapter-ton` | TON | - -### Auth & Payments - -| Package | npm Name | Purpose | -| --------------- | -------------------- | ------------------------------------------ | -| `packages/siwe` | `@reown/appkit-siwe` | Sign-In With Ethereum | -| `packages/siwx` | `@reown/appkit-siwx` | Cross-chain Sign-In (EVM, Solana, Bitcoin) | -| `packages/pay` | `@reown/appkit-pay` | Payment flows (UI + state) | - -### Infrastructure - -| Package | npm Name | Purpose | -| ------------------------------ | ----------------------------------- | --------------------------------------------- | -| `packages/universal-connector` | `@reown/appkit-universal-connector` | Bridge to `@walletconnect/universal-provider` | -| `packages/polyfills` | `@reown/appkit-polyfills` | Browser Buffer and similar shims | -| `packages/cdn` | `@reown/appkit-cdn` | Pre-bundled CDN builds (not tree-shaken) | -| `packages/experimental` | `@reown/appkit-experimental` | Gated/unstable features (smart sessions) | - -### Tooling - -| Package | npm Name | Purpose | -| ---------------------- | ----------------------- | ----------------------------------------- | -| `packages/testing` | `@reown/appkit-testing` | Test harnesses, Playwright utilities | -| `packages/cli` | `@reown/appkit-cli` | Scaffolding/utility CLI | -| `packages/codemod` | `@reown/appkit-codemod` | Upgrade helpers for dependency migrations | -| `packages/core-legacy` | `@reown/appkit-core` | Legacy compatibility wrapper | - -## Build Outputs - -``` -dist/ -├── esm/ # ES module JavaScript -└── types/ # TypeScript declarations -``` - -## Package.json Conventions - -```json -{ - "type": "module", - "sideEffects": false, - "exports": { - ".": { - "types": "./dist/types/index.d.ts", - "import": "./dist/esm/index.js" - }, - "./react": { - "types": "./dist/types/react/index.d.ts", - "import": "./dist/esm/react/index.js" - } - }, - "files": ["dist", "README.md"] -} -``` - -## Scripts (per package) - -| Script | Command | -| ------------- | ---------------------------------------------- | -| `build:clean` | Remove `dist/` | -| `build` | `tsc --build` (some use `tsconfig.build.json`) | -| `watch` | `tsc --watch` | -| `typecheck` | `tsc --noEmit` | -| `lint` | ESLint | -| `test` | Vitest | - -## Adding a New Package - -1. Create `packages//` with ESM config, `exports` map, `files: ["dist", "README.md"]`, `sideEffects: false` -2. Use `workspace:*` for internal deps, `peerDependencies` for host libs, `optionalDependencies` for optional providers -3. Add `vitest.config.ts` and `tests/` directory -4. Expose subpaths deliberately — only when stable and necessary -5. Run `pnpm build`, `pnpm typecheck`, `pnpm lint`, `pnpm test` -6. Add to `pnpm-workspace.yaml` diff --git a/.agents/context/testing.md b/.agents/context/testing.md deleted file mode 100644 index 80fa0b23c5..0000000000 --- a/.agents/context/testing.md +++ /dev/null @@ -1,129 +0,0 @@ -# Testing Guide - -## Unit Tests (Vitest) - -Configuration: `vitest.workspace.ts` at repo root picks up `packages/*/vitest.config.ts` and `packages/adapters/*/vitest.config.ts`. - -Default environment: `jsdom` for DOM-related packages, Node for pure utilities. - -### Running Tests - -```bash -# Run all unit tests -pnpm test - -# Run tests for a specific package -pnpm --filter @reown/appkit-controllers test - -# Run with coverage -pnpm --filter @reown/appkit-controllers test -- --coverage - -# Run a specific test file -pnpm --filter @reown/appkit-controllers test -- tests/controllers/RouterController.test.ts -``` - -### Test File Locations - -| Package | Test Location | -| -------------------- | ------------------------------------------------------------- | -| Controllers | `packages/controllers/tests/` | -| Scaffold UI partials | `packages/scaffold-ui/test/partials/[component-name].test.ts` | -| Adapters | `packages/adapters/*/tests/` | -| Utils | `packages/appkit-utils/tests/` | -| Common | `packages/common/tests/` | -| Main SDK | `packages/appkit/tests/` | - -### Controller Test Pattern - -```typescript -import { beforeEach, describe, expect, it } from 'vitest' - -import { MyController } from '../../src/controllers/MyController.js' - -describe('MyController', () => { - beforeEach(() => { - // Reset state between tests - MyController.state.someValue = '' - }) - - it('should update value', () => { - MyController.setSomeValue('test') - expect(MyController.state.someValue).toBe('test') - }) -}) -``` - -### Scaffold UI Partial Test Pattern - -Naming convention: `packages/scaffold-ui/test/partials/[component-name].test.ts` - ---- - -## E2E Tests (Playwright) - -Location: `apps/laboratory/tests/` - -The Laboratory app is a Next.js application that serves as the primary E2E testing environment. - -### Running E2E Tests - -```bash -# Install Playwright browsers -pnpm --filter @apps/laboratory playwright:install - -# Run all E2E tests -pnpm --filter @apps/laboratory playwright:test - -# Run specific test suite -pnpm --filter @apps/laboratory playwright:test:basic -``` - -### Page Object Model - -E2E tests use the Page Object Model pattern: - -- `ModalPage` — Interacts with the AppKit modal -- `WalletPage` — Interacts with wallet simulation -- Corresponding validators for assertions - -### Test File Naming - -``` -apps/laboratory/tests/ -├── basic-tests.spec.ts -├── siwx-email.spec.ts -├── mobile-wallet-features.spec.ts -├── flag-enable-reconnect.spec.ts -└── ... -``` - -### CI/CD Test Execution - -- Unit tests run on every PR -- E2E tests run via Playwright with sharded execution across multiple CI runners -- Bundle size checks run on every PR -- Canary tests run in Docker containers with timing metrics - ---- - -## Writing Tests for New Code - -### New Controller - -Required. Place in `packages/controllers/tests/controllers/[ControllerName].test.ts`. - -### New UI Component (wui-\*) - -Required for DangerJS. Add Storybook story in `apps/gallery/stories/composites/[component-name].stories.ts`. - -### New Scaffold Partial (w3m-\*) - -Place in `packages/scaffold-ui/test/partials/[component-name].test.ts`. - -### New Adapter - -Place in `packages/adapters/[name]/tests/`. - -### Bug Fixes and New Features - -PR requirements mandate tests for bug fixes and new features. diff --git a/.agents/context/ui-components.md b/.agents/context/ui-components.md deleted file mode 100644 index 93c5a62b7d..0000000000 --- a/.agents/context/ui-components.md +++ /dev/null @@ -1,172 +0,0 @@ -# UI Components Guide - -The UI is split into two packages: atomic components (`wui-*`) and high-level flows (`w3m-*`). - -## Atomic Components (`@reown/appkit-ui`) - -Location: `packages/ui/src/components/` and `packages/ui/src/composites/` - -### Component Structure - -Every component lives in its own directory: - -``` -packages/ui/src/components/wui-button/ -├── index.ts # Component class -└── styles.ts # CSS-in-JS styles -``` - -### Required Pattern - -```typescript -import { LitElement, html } from 'lit' -import { property } from 'lit/decorators.js' - -import { resetStyles } from '../../utils/ThemeUtil.js' -import styles from './styles.js' - -@customElement('wui-my-component') -export class WuiMyComponent extends LitElement { - public static override styles = [resetStyles, styles] - - // -- State & Properties ---- - @property() public variant: 'primary' | 'secondary' = 'primary' - - // -- Render ---- - public override render() { - return html`` - } - - // -- Private ---- - private handleClick() { - /* ... */ - } -} - -declare global { - interface HTMLElementTagNameMap { - 'wui-my-component': WuiMyComponent - } -} -``` - -### DangerJS Enforced Rules for `wui-*` Components - -1. **Must** apply `resetStyles` in the static styles array -2. **Must** use `@customElement('wui-')` prefix -3. **Must NOT** use `@state()` decorator (use `@property()` instead) -4. **Must NOT** import from `@reown/appkit-controllers` -5. **Must** include section comments: - - `// -- Render ----` (if has render method) - - `// -- State & Properties ----` (if has @property) - - `// -- Private ----` (if has private methods) -6. **Must** have corresponding Storybook story in `apps/gallery/` - -### Component Categories - -**Atomic** (`packages/ui/src/components/`): wui-text, wui-card, wui-icon, wui-button, wui-input, wui-loading-spinner, wui-shimmer, wui-divider, wui-tag, wui-flex, wui-image, wui-visual, etc. - -**Composites** (`packages/ui/src/composites/`): wui-account-button, wui-transaction-item, wui-network-list, wui-token-list, wui-list-item, wui-wallet-image, etc. (78+ components) - -### Styling - -- Use CSS custom properties from theme variables -- `resetStyles` normalizes base element styles -- Component styles use `css` tagged template from lit -- Theme variables prefixed with `--wui-` or `--apkt-` - ---- - -## Scaffold UI (`@reown/appkit-scaffold-ui`) - -Location: `packages/scaffold-ui/src/` - -High-level UI that composes `wui-*` atoms and subscribes to controllers. - -### Structure - -``` -packages/scaffold-ui/src/ -├── modal/ -│ ├── w3m-modal/ # Main modal wrapper -│ └── w3m-router/ # View router -├── views/ # 57 view components -│ ├── w3m-account-view/ -│ ├── w3m-connect-view/ -│ ├── w3m-networks-view/ -│ ├── w3m-swap-view/ -│ └── ... -└── partials/ # 50 reusable sections - ├── w3m-header/ - ├── w3m-connector-list/ - ├── w3m-snackbar/ - └── ... -``` - -### Required Pattern for `w3m-*` Components - -```typescript -import { LitElement, html } from 'lit' -import { state } from 'lit/decorators.js' - -import { ChainController, RouterController } from '../../imports.js' - -// Relative! - -@customElement('w3m-my-view') -export class W3mMyView extends LitElement { - // -- Members ---- - private unsubscribe: (() => void)[] = [] - - // -- State & Properties ---- - @state() private someState = SomeController.state.value - - // -- Lifecycle ---- - constructor() { - super() - this.unsubscribe.push( - SomeController.subscribeKey('value', val => { - this.someState = val - }) - ) - } - - public override disconnectedCallback() { - this.unsubscribe.forEach(unsub => unsub()) - } - - // -- Render ---- - public override render() { - return html`Hello` - } -} -``` - -### DangerJS Enforced Rules for `w3m-*` Components - -1. **Must** use `w3m-` prefix -2. **Must** have proper unsubscribe cleanup in `disconnectedCallback()` -3. **Must** use relative imports (not `@reown/appkit-*` package paths) - -### Adding a New View - -1. Create `packages/scaffold-ui/src/views/w3m-my-view/index.ts` + `styles.ts` -2. Export from scaffold package barrel -3. Add discriminant to `RouterControllerState['view']` in `packages/controllers/src/controllers/RouterController.ts` -4. Map in router switch: `packages/scaffold-ui/src/modal/w3m-router/index.ts` -5. Navigate with `RouterController.push('MyView')` - -### Router View Navigation - -The router maintains a history stack. Views are rendered by a switch statement in `w3m-router`: - -```typescript -case 'Account': return html`` -case 'Connect': return html`` -case 'Networks': return html`` -// ... 80+ views -``` - -### Test Location - -Tests for scaffold-ui partials: `packages/scaffold-ui/test/partials/[component-name].test.ts` diff --git a/.changeset/expose-approved-networks.md b/.changeset/expose-approved-networks.md deleted file mode 100644 index 00df162df3..0000000000 --- a/.changeset/expose-approved-networks.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@reown/appkit': patch -'@reown/appkit-controllers': patch ---- - -Expose `approvedCaipNetworkIds` and `supportsAllNetworks` in `useAppKitNetwork` hook diff --git a/.changeset/forty-pugs-return.md b/.changeset/forty-pugs-return.md new file mode 100644 index 0000000000..b3c1931c7d --- /dev/null +++ b/.changeset/forty-pugs-return.md @@ -0,0 +1,25 @@ +--- +'@reown/appkit-adapter-solana': patch +'@reown/appkit-adapter-wagmi': patch +'@reown/appkit-wallet-button': patch +'@reown/appkit-utils': patch +'@reown/appkit-experimental': patch +'@reown/appkit-controllers': patch +'@reown/appkit-core': patch +'@reown/appkit-scaffold-ui': patch +'@reown/appkit': patch +'@reown/appkit-common': patch +'@reown/appkit-wallet': patch +'@reown/appkit-siwe': patch +'@reown/appkit-siwx': patch +'@reown/appkit-cdn': patch +'@reown/appkit-pay': patch +'@reown/appkit-ui': patch +'@reown/appkit-adapter-bitcoin': patch +'@reown/appkit-adapter-ethers': patch +'@reown/appkit-adapter-ethers5': patch +'@reown/appkit-cli': patch +'@reown/appkit-polyfills': patch +--- + +Upgrade all dependencies with minor and patch updates diff --git a/.changeset/happy-shoes-feel.md b/.changeset/happy-shoes-feel.md new file mode 100644 index 0000000000..87057b8657 --- /dev/null +++ b/.changeset/happy-shoes-feel.md @@ -0,0 +1,25 @@ +--- +'@reown/appkit-controllers': patch +'@reown/appkit-scaffold-ui': patch +'@reown/appkit-adapter-bitcoin': patch +'@reown/appkit-adapter-ethers': patch +'@reown/appkit-adapter-ethers5': patch +'@reown/appkit-adapter-solana': patch +'@reown/appkit-adapter-wagmi': patch +'@reown/appkit': patch +'@reown/appkit-utils': patch +'@reown/appkit-cdn': patch +'@reown/appkit-cli': patch +'@reown/appkit-common': patch +'@reown/appkit-core': patch +'@reown/appkit-experimental': patch +'@reown/appkit-pay': patch +'@reown/appkit-polyfills': patch +'@reown/appkit-siwe': patch +'@reown/appkit-siwx': patch +'@reown/appkit-ui': patch +'@reown/appkit-wallet': patch +'@reown/appkit-wallet-button': patch +--- + +Fixes issue where excludeWalletIds would not be properly set on api requests. diff --git a/.changeset/hot-rabbits-thank.md b/.changeset/hot-rabbits-thank.md new file mode 100644 index 0000000000..faa90637ea --- /dev/null +++ b/.changeset/hot-rabbits-thank.md @@ -0,0 +1,25 @@ +--- +'@reown/appkit': patch +'@reown/appkit-adapter-bitcoin': patch +'@reown/appkit-adapter-ethers': patch +'@reown/appkit-adapter-ethers5': patch +'@reown/appkit-adapter-solana': patch +'@reown/appkit-adapter-wagmi': patch +'@reown/appkit-utils': patch +'@reown/appkit-cdn': patch +'@reown/appkit-cli': patch +'@reown/appkit-common': patch +'@reown/appkit-controllers': patch +'@reown/appkit-core': patch +'@reown/appkit-experimental': patch +'@reown/appkit-pay': patch +'@reown/appkit-polyfills': patch +'@reown/appkit-scaffold-ui': patch +'@reown/appkit-siwe': patch +'@reown/appkit-siwx': patch +'@reown/appkit-ui': patch +'@reown/appkit-wallet': patch +'@reown/appkit-wallet-button': patch +--- + +This PR fixes an issue where the auth connector would override the previous account state when switching network (switching on auth connector in stead of using the already existing account state (with different provider) diff --git a/.changeset/jolly-dolls-cover.md b/.changeset/jolly-dolls-cover.md new file mode 100644 index 0000000000..d4d892c0a2 --- /dev/null +++ b/.changeset/jolly-dolls-cover.md @@ -0,0 +1,6 @@ +--- +'@reown/appkit-controllers': patch +'@reown/appkit-scaffold-ui': patch +--- + +Fixed an issue where customWallets didn't show up in the all wallets list when there are no adapters diff --git a/.changeset/khaki-hairs-protect.md b/.changeset/khaki-hairs-protect.md new file mode 100644 index 0000000000..9f7937ee5f --- /dev/null +++ b/.changeset/khaki-hairs-protect.md @@ -0,0 +1,5 @@ +--- +"@fake-scope/fake-pkg": patch +--- + +chore: improve syncAccount readability diff --git a/.changeset/lovely-hairs-enjoy.md b/.changeset/lovely-hairs-enjoy.md new file mode 100644 index 0000000000..a948f1491b --- /dev/null +++ b/.changeset/lovely-hairs-enjoy.md @@ -0,0 +1,25 @@ +--- +'@reown/appkit-utils': patch +'@reown/appkit-controllers': patch +'@reown/appkit': patch +'@reown/appkit-siwe': patch +'@reown/appkit-adapter-bitcoin': patch +'@reown/appkit-adapter-ethers': patch +'@reown/appkit-adapter-ethers5': patch +'@reown/appkit-adapter-solana': patch +'@reown/appkit-adapter-wagmi': patch +'@reown/appkit-cdn': patch +'@reown/appkit-cli': patch +'@reown/appkit-common': patch +'@reown/appkit-core': patch +'@reown/appkit-experimental': patch +'@reown/appkit-pay': patch +'@reown/appkit-polyfills': patch +'@reown/appkit-scaffold-ui': patch +'@reown/appkit-siwx': patch +'@reown/appkit-ui': patch +'@reown/appkit-wallet': patch +'@reown/appkit-wallet-button': patch +--- + +Upgrades WalletConnect dependencies to latest diff --git a/.changeset/modern-eyes-smash.md b/.changeset/modern-eyes-smash.md new file mode 100644 index 0000000000..b2a6887851 --- /dev/null +++ b/.changeset/modern-eyes-smash.md @@ -0,0 +1,24 @@ +--- +'@reown/appkit-adapter-ethers5': patch +'@reown/appkit-adapter-ethers': patch +'@reown/appkit-adapter-solana': patch +'@reown/appkit-adapter-wagmi': patch +'@reown/appkit-wallet-button': patch +'@reown/appkit-utils': patch +'@reown/appkit-controllers': patch +'@reown/appkit-scaffold-ui': patch +'@reown/appkit': patch +'@reown/appkit-wallet': patch +'@reown/appkit-adapter-bitcoin': patch +'@reown/appkit-cdn': patch +'@reown/appkit-cli': patch +'@reown/appkit-common': patch +'@reown/appkit-core': patch +'@reown/appkit-experimental': patch +'@reown/appkit-polyfills': patch +'@reown/appkit-siwe': patch +'@reown/appkit-siwx': patch +'@reown/appkit-ui': patch +--- + +This change includes social login improvments. We will remove an abudant call that we make to our backend to receive the users data. Also changed the wallet schema according to the new data that we receive. diff --git a/.changeset/ninety-poets-bake.md b/.changeset/ninety-poets-bake.md new file mode 100644 index 0000000000..78db806627 --- /dev/null +++ b/.changeset/ninety-poets-bake.md @@ -0,0 +1,30 @@ +--- +"@examples/html-ak-basic-sign-client": patch +"@examples/html-ak-basic-up": patch +"@examples/html-ak-basic": patch +"@examples/html-bitcoin": patch +"@examples/html-ep": patch +"@examples/html-ethers": patch +"@examples/html-solana": patch +"@examples/html-wagmi-cdn": patch +"@examples/html-wagmi-solana-bitcoin": patch +"@examples/html-wagmi-wallet-button": patch +"@examples/html-wagmi": patch +"@examples/react-ak-basic-sign-client": patch +"@examples/react-ak-basic-up": patch +"@examples/react-ak-basic": patch +"@examples/react-ep": patch +"@examples/react-ethers": patch +"@examples/react-ethers5": patch +"@examples/react-solana": patch +"@examples/react-wagmi": patch +"@examples/sveltekit-4-wagmi": patch +"@examples/sveltekit-ethers": patch +"@examples/sveltekit-wagmi": patch +"@examples/vue-ak-basic-sign-client": patch +"@examples/vue-ak-basic-up": patch +"@examples/vue-ak-basic": patch +"@examples/vue-ep": patch +--- + +compare merge diff --git a/.changeset/old-lands-ring.md b/.changeset/old-lands-ring.md new file mode 100644 index 0000000000..8c68c92e1c --- /dev/null +++ b/.changeset/old-lands-ring.md @@ -0,0 +1,25 @@ +--- +'@reown/appkit-adapter-bitcoin': patch +'@reown/appkit-adapter-ethers5': patch +'@reown/appkit-adapter-ethers': patch +'@reown/appkit-adapter-solana': patch +'@reown/appkit-adapter-wagmi': patch +'@reown/appkit-utils': patch +'@reown/appkit-controllers': patch +'@reown/appkit': patch +'@reown/appkit-siwe': patch +'@reown/appkit-cdn': patch +'@reown/appkit-cli': patch +'@reown/appkit-common': patch +'@reown/appkit-core': patch +'@reown/appkit-experimental': patch +'@reown/appkit-pay': patch +'@reown/appkit-polyfills': patch +'@reown/appkit-scaffold-ui': patch +'@reown/appkit-siwx': patch +'@reown/appkit-ui': patch +'@reown/appkit-wallet': patch +'@reown/appkit-wallet-button': patch +--- + +Fixed a bug where wagmi adapter wasn't using the dedicated `.getProvider()` api but a custom `.provider` prop which is unreliable in getting the provider diff --git a/.changeset/phantom-android-intent.md b/.changeset/phantom-android-intent.md new file mode 100644 index 0000000000..2adab4214e --- /dev/null +++ b/.changeset/phantom-android-intent.md @@ -0,0 +1,10 @@ +--- +'@reown/appkit-controllers': patch +--- + +fix: use Android intent URL for Phantom deeplinks on Android devices + +Universal Links don't work reliably on many Android browsers (Opera, UC Browser, Samsung Internet, in-app browsers like Facebook, Instagram). This change uses Android intent URLs on Android devices which bypass browser app link verification and work on all Android browsers. + +- iOS continues to use Universal Links (well supported by Safari) +- Android now uses intent URLs that trigger OS-level intent resolution diff --git a/.changeset/pre.json b/.changeset/pre.json new file mode 100644 index 0000000000..c23dd3517d --- /dev/null +++ b/.changeset/pre.json @@ -0,0 +1,68 @@ +{ + "mode": "exit", + "tag": "2613322306", + "initialVersions": { + "@apps/browser-extension": "1.0.0", + "@apps/builder": "1.1.7", + "@apps/gallery": "1.5.2", + "@apps/laboratory": "1.5.1", + "@examples/html-ak-basic": "1.2.0", + "@examples/html-ak-basic-sign-client": "1.2.0", + "@examples/html-ak-basic-up": "1.2.0", + "@examples/html-bitcoin": "1.2.0", + "@examples/html-ep": "1.2.0", + "@examples/html-ethers": "1.2.0", + "@examples/html-solana": "1.2.0", + "@examples/html-wagmi": "1.2.0", + "@examples/html-wagmi-cdn": "1.2.0", + "@examples/html-wagmi-wallet-button": "1.2.0", + "@examples/next-ak-basic-app-router": "1.0.5", + "@examples/next-ak-basic-sign-client-app-router": "1.0.5", + "@examples/next-ak-basic-up-app-router": "1.0.5", + "@examples/next-ep-app-router": "1.0.5", + "@examples/next-ethers-app-router": "1.0.5", + "@examples/next-wagmi-app-router": "1.0.5", + "@examples/next-wagmi-solana-app-router": "1.0.5", + "@examples/parcel-react-wagmi": "1.0.0", + "@examples/react-ak-basic": "1.2.0", + "@examples/react-ak-basic-sign-client": "1.2.0", + "@examples/react-ak-basic-up": "1.2.0", + "@examples/react-ep": "1.2.0", + "@examples/react-ethers": "1.2.0", + "@examples/react-ethers5": "1.2.0", + "@examples/react-solana": "1.2.0", + "@examples/react-wagmi": "1.2.0", + "@examples/sveltekit-ethers": "0.0.1", + "@examples/vue-ak-basic": "1.2.0", + "@examples/vue-ak-basic-sign-client": "1.2.0", + "@examples/vue-ak-basic-up": "1.2.0", + "@examples/vue-ep": "1.2.0", + "@examples/vue-ethers-solana": "1.2.0", + "@examples/vue-ethers5": "1.2.0", + "@examples/vue-solana": "1.2.0", + "@examples/vue-wagmi": "1.2.0", + "@examples/vue-wagmi-solana": "1.2.0", + "@reown/appkit-adapter-bitcoin": "1.6.7", + "@reown/appkit-adapter-ethers": "1.6.7", + "@reown/appkit-adapter-ethers5": "1.6.7", + "@reown/appkit-adapter-polkadot": "1.5.2", + "@reown/appkit-adapter-solana": "1.6.7", + "@reown/appkit-adapter-wagmi": "1.6.7", + "@reown/appkit": "1.6.7", + "@reown/appkit-utils": "1.6.7", + "@reown/appkit-cdn": "1.6.7", + "@reown/appkit-cli": "1.6.7", + "@reown/appkit-common": "1.6.7", + "@reown/appkit-core": "1.6.7", + "@reown/appkit-experimental": "1.6.7", + "@reown/appkit-polyfills": "1.6.7", + "@reown/appkit-scaffold-ui": "1.6.7", + "@reown/appkit-siwe": "1.6.7", + "@reown/appkit-siwx": "1.6.7", + "@reown/appkit-ui": "1.6.7", + "@reown/appkit-ui-new": "1.4.1", + "@reown/appkit-wallet": "1.6.7", + "@reown/appkit-wallet-button": "1.6.7" + }, + "changesets": [] +} diff --git a/.changeset/sad-flowers-lose.md b/.changeset/sad-flowers-lose.md new file mode 100644 index 0000000000..b9a9684eaa --- /dev/null +++ b/.changeset/sad-flowers-lose.md @@ -0,0 +1,25 @@ +--- +'@reown/appkit-controllers': patch +'@reown/appkit-scaffold-ui': patch +'@reown/appkit': patch +'@reown/appkit-adapter-bitcoin': patch +'@reown/appkit-adapter-ethers': patch +'@reown/appkit-adapter-ethers5': patch +'@reown/appkit-adapter-solana': patch +'@reown/appkit-adapter-wagmi': patch +'@reown/appkit-utils': patch +'@reown/appkit-cdn': patch +'@reown/appkit-cli': patch +'@reown/appkit-common': patch +'@reown/appkit-core': patch +'@reown/appkit-experimental': patch +'@reown/appkit-pay': patch +'@reown/appkit-polyfills': patch +'@reown/appkit-siwe': patch +'@reown/appkit-siwx': patch +'@reown/appkit-ui': patch +'@reown/appkit-wallet': patch +'@reown/appkit-wallet-button': patch +--- + +Fixes issue where balance would not be properly updated after a send flow transaction' diff --git a/.changeset/sharp-glasses-type.md b/.changeset/sharp-glasses-type.md new file mode 100644 index 0000000000..022f28ec7a --- /dev/null +++ b/.changeset/sharp-glasses-type.md @@ -0,0 +1,5 @@ +--- + +--- + +chore: update bug report and feature request tags diff --git a/.changeset/soft-terms-design.md b/.changeset/soft-terms-design.md new file mode 100644 index 0000000000..c12d3d97e2 --- /dev/null +++ b/.changeset/soft-terms-design.md @@ -0,0 +1,50 @@ +--- +<<<<<<<< HEAD:.changeset/soft-terms-design.md +<<<<<<<< HEAD:.changeset/soft-terms-design.md +'@reown/appkit-scaffold-ui': patch +======== +'@reown/appkit-controllers': patch +>>>>>>>> upstream/main:.changeset/vast-trams-pull.md +======== +'@reown/appkit-controllers': patch +'@reown/appkit-scaffold-ui': patch +'@reown/appkit-common': patch +'@reown/appkit-pay': patch +'@reown/appkit-ui': patch +>>>>>>>> main:.changeset/stale-files-work.md +'pay-test-exchange': patch +'@reown/appkit-adapter-bitcoin': patch +'@reown/appkit-adapter-ethers': patch +'@reown/appkit-adapter-ethers5': patch +'@reown/appkit-adapter-solana': patch +'@reown/appkit-adapter-ton': patch +'@reown/appkit-adapter-wagmi': patch +'@reown/appkit': patch +'@reown/appkit-utils': patch +'@reown/appkit-cdn': patch +'@reown/appkit-cli': patch +'@reown/appkit-codemod': patch +'@reown/appkit-core': patch +'@reown/appkit-experimental': patch +'@reown/appkit-polyfills': patch +'@reown/appkit-scaffold-ui': patch +'@reown/appkit-siwe': patch +'@reown/appkit-siwx': patch +'@reown/appkit-testing': patch +'@reown/appkit-universal-connector': patch +'@reown/appkit-wallet': patch +'@reown/appkit-wallet-button': patch +--- + +<<<<<<<< HEAD:.changeset/soft-terms-design.md +<<<<<<<< HEAD:.changeset/soft-terms-design.md +Enhanced connection UX by allowing scanning of QR code with main device camera and prompting the target wallet +======== +Fixed an issue where selecting Base Account incorrectly triggered the Coinbase Wallet extension connection instead of the Base Account SDK connection +>>>>>>>> upstream/main:.changeset/vast-trams-pull.md +======== +This update brings another level of upgrade to AppKit Pay and AppKit Deposit 🔥 + +- Users can pay with any token they choose, while the recipient always receives their preferred token through automatic swapping and bridging +- Implemented fee splitting between Reown and partners +>>>>>>>> main:.changeset/stale-files-work.md diff --git a/.changeset/spotty-cherries-raise.md b/.changeset/spotty-cherries-raise.md new file mode 100644 index 0000000000..85ab1ed406 --- /dev/null +++ b/.changeset/spotty-cherries-raise.md @@ -0,0 +1,5 @@ +--- +"@reown/appkit-scaffold-ui": patch +--- + +Fix: show correct icon for continue with a wallet button diff --git a/.changeset/spotty-deers-knock.md b/.changeset/spotty-deers-knock.md new file mode 100644 index 0000000000..99746a6712 --- /dev/null +++ b/.changeset/spotty-deers-knock.md @@ -0,0 +1,27 @@ +--- +"@examples/html-ak-basic-sign-client": patch +"@examples/html-ak-basic-up": patch +"@examples/html-ak-basic": patch +"@examples/html-bitcoin": patch +"@examples/html-ep": patch +"@examples/html-ethers": patch +"@examples/html-solana": patch +"@examples/html-wagmi-cdn": patch +"@examples/html-wagmi-solana-bitcoin": patch +"@examples/html-wagmi-wallet-button": patch +"@examples/html-wagmi": patch +"@examples/react-ak-basic-sign-client": patch +"@examples/react-ak-basic-up": patch +"@examples/react-ak-basic": patch +"@examples/react-ep": patch +"@examples/react-ethers": patch +"@examples/react-ethers5": patch +"@examples/react-solana": patch +"@examples/react-wagmi": patch +"@examples/sveltekit-4-wagmi": patch +"@examples/sveltekit-ethers": patch +"@examples/sveltekit-wagmi": patch +"@examples/vue-ak-basic-sign-client": patch +--- + +config bug diff --git a/.changeset/sweet-dancers-mix.md b/.changeset/sweet-dancers-mix.md new file mode 100644 index 0000000000..6d28c202b2 --- /dev/null +++ b/.changeset/sweet-dancers-mix.md @@ -0,0 +1,25 @@ +--- +'@reown/appkit-adapter-solana': patch +'@reown/appkit-utils': patch +'@reown/appkit-adapter-bitcoin': patch +'@reown/appkit-adapter-ethers': patch +'@reown/appkit-adapter-ethers5': patch +'@reown/appkit-adapter-wagmi': patch +'@reown/appkit': patch +'@reown/appkit-cdn': patch +'@reown/appkit-cli': patch +'@reown/appkit-common': patch +'@reown/appkit-controllers': patch +'@reown/appkit-core': patch +'@reown/appkit-experimental': patch +'@reown/appkit-pay': patch +'@reown/appkit-polyfills': patch +'@reown/appkit-scaffold-ui': patch +'@reown/appkit-siwe': patch +'@reown/appkit-siwx': patch +'@reown/appkit-ui': patch +'@reown/appkit-wallet': patch +'@reown/appkit-wallet-button': patch +--- + +Upgrade Solana packages to latest diff --git a/.changeset/tiny-pugs-shop.md b/.changeset/tiny-pugs-shop.md new file mode 100644 index 0000000000..bf29e691a6 --- /dev/null +++ b/.changeset/tiny-pugs-shop.md @@ -0,0 +1,23 @@ +--- +'@reown/appkit': patch +'@reown/appkit-adapter-bitcoin': patch +'@reown/appkit-adapter-ethers': patch +'@reown/appkit-adapter-ethers5': patch +'@reown/appkit-adapter-solana': patch +'@reown/appkit-adapter-wagmi': patch +'@reown/appkit-utils': patch +'@reown/appkit-cdn': patch +'@reown/appkit-cli': patch +'@reown/appkit-common': patch +'@reown/appkit-core': patch +'@reown/appkit-experimental': patch +'@reown/appkit-polyfills': patch +'@reown/appkit-scaffold-ui': patch +'@reown/appkit-siwe': patch +'@reown/appkit-siwx': patch +'@reown/appkit-ui': patch +'@reown/appkit-wallet': patch +'@reown/appkit-wallet-button': patch +--- + +Expose fetchBalance method so apps can call this function after a transaction has happened on their side diff --git a/.changeset/tough-foxes-hunt.md b/.changeset/tough-foxes-hunt.md deleted file mode 100644 index 8a1f27f37a..0000000000 --- a/.changeset/tough-foxes-hunt.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@reown/appkit-utils': patch -'@reown/appkit-common': patch ---- - -Adds network image for monad mainnet diff --git a/.changeset/vast-sheep-cut.md b/.changeset/vast-sheep-cut.md new file mode 100644 index 0000000000..259a21f084 --- /dev/null +++ b/.changeset/vast-sheep-cut.md @@ -0,0 +1,25 @@ +--- +'@reown/appkit-controllers': patch +'@reown/appkit-adapter-bitcoin': patch +'@reown/appkit-adapter-ethers': patch +'@reown/appkit-adapter-ethers5': patch +'@reown/appkit-adapter-solana': patch +'@reown/appkit-adapter-wagmi': patch +'@reown/appkit': patch +'@reown/appkit-utils': patch +'@reown/appkit-cdn': patch +'@reown/appkit-cli': patch +'@reown/appkit-common': patch +'@reown/appkit-core': patch +'@reown/appkit-experimental': patch +'@reown/appkit-pay': patch +'@reown/appkit-polyfills': patch +'@reown/appkit-scaffold-ui': patch +'@reown/appkit-siwe': patch +'@reown/appkit-siwx': patch +'@reown/appkit-ui': patch +'@reown/appkit-wallet': patch +'@reown/appkit-wallet-button': patch +--- + +Adds try catch preventing error from bubbling up if fetching supported networks for Blockchain API fails' diff --git a/.changeset/wet-hotels-repair.md b/.changeset/wet-hotels-repair.md new file mode 100644 index 0000000000..06e6ffd264 --- /dev/null +++ b/.changeset/wet-hotels-repair.md @@ -0,0 +1,5 @@ +--- +'@reown/appkit-scaffold-ui': patch +--- + +Fix an issue where the continue with wallet didn't show the correct icon diff --git a/.changeset/wise-tigers-poke.md b/.changeset/wise-tigers-poke.md new file mode 100644 index 0000000000..9c90083f88 --- /dev/null +++ b/.changeset/wise-tigers-poke.md @@ -0,0 +1,28 @@ +--- +"@examples/html-ak-basic-sign-client": patch +"@examples/html-ak-basic-up": patch +"@examples/html-ak-basic": patch +"@examples/html-bitcoin": patch +"@examples/html-ep": patch +"@examples/html-ethers": patch +"@examples/html-solana": patch +"@examples/html-wagmi-cdn": patch +"@examples/html-wagmi-solana-bitcoin": patch +"@examples/html-wagmi-wallet-button": patch +"@examples/html-wagmi": patch +"@examples/react-ak-basic-sign-client": patch +"@examples/react-ak-basic-up": patch +"@examples/react-ak-basic": patch +"@examples/react-ep": patch +"@examples/react-ethers": patch +"@examples/react-ethers5": patch +"@examples/react-solana": patch +"@examples/react-wagmi": patch +"@examples/sveltekit-4-wagmi": patch +"@examples/sveltekit-ethers": patch +"@examples/sveltekit-wagmi": patch +"@examples/vue-ak-basic-sign-client": patch +"@examples/vue-ak-basic-up": patch +--- + +config bug diff --git a/.circleci/ci-tmp.yml b/.circleci/ci-tmp.yml new file mode 100644 index 0000000000..8f10f7e7ce --- /dev/null +++ b/.circleci/ci-tmp.yml @@ -0,0 +1,22 @@ +version: 2.1 + +jobs: + build: + docker: + - image: cimg/node:current + + working_directory: /tmp + steps: + - run: + name: Creating Dummy Artifacts + command: | + echo "my artifact file" > /tmp/art-1; + mkdir -p /tmp/artifacts; + echo "my artifact files in a dir" > /tmp/artifacts/art-2; + + - store_artifacts: + path: /tmp/art-1 + destination: artifact-file + + - store_artifacts: + path: /tmp/artifacts diff --git a/.circleci/ci_cargo.yml b/.circleci/ci_cargo.yml new file mode 100644 index 0000000000..d7a82b5c93 --- /dev/null +++ b/.circleci/ci_cargo.yml @@ -0,0 +1,37 @@ +version: 2.1 + +jobs: + build-and-test: + docker: + - image: cimg/rust:1.89.0 + steps: + - checkout + - restore_cache: + keys: + - v1-cargo-{{ checksum "Cargo.lock" }} + - v1-cargo- + - run: + name: "Check formatting" + command: cargo fmt -- --check + - run: + name: "Run tests" + command: cargo test + - save_cache: + key: v1-cargo-{{ checksum "Cargo.lock" }} + paths: + - "~/.cargo/bin" + - "~/.cargo/registry/index" + - "~/.cargo/registry/cache" + - "~/.cargo/git/db" + - "target" + - run: + name: "Check formatting" + command: cargo fmt -- --check + - run: + name: "Run tests" + command: cargo test + +workflows: + ci: + jobs: + - build-and-test diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000000..4b5c432172 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,9 @@ +# Use the latest 2.1 version of CircleCI pipeline process engine. +# See: https://circleci.com/docs/configuration-reference +version: 2.1 + +jobs: + docker: + steps: +workflows: + jobs: diff --git a/.circleci/web3_defi_gamefi.yml b/.circleci/web3_defi_gamefi.yml new file mode 100644 index 0000000000..edb6605e3f --- /dev/null +++ b/.circleci/web3_defi_gamefi.yml @@ -0,0 +1,26 @@ +# Use the latest 2.1 version of CircleCI pipeline process engine. +# See: https://circleci.com/docs/configuration-reference + +version: 2.1 +executors: + my-custom-executor: + docker: + - image: cimg/base:stable + auth: + # ensure you have first added these secrets + # visit app.circleci.com/settings/project/github/Dargon789/foundry/environment-variables + username: $DOCKER_HUB_USER + password: $DOCKER_HUB_PASSWORD +jobs: + web3-defi-game-project-: + + executor: my-custom-executor + steps: + - checkout + - run: | + # echo Hello, World! + +workflows: + my-custom-workflow: + jobs: + - web3-defi-game-project- diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000000..dd84ea7824 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,38 @@ +--- +name: Bug report +about: Create a report to help us improve +title: '' +labels: '' +assignees: '' + +--- + +**Describe the bug** +A clear and concise description of what the bug is. + +**To Reproduce** +Steps to reproduce the behavior: +1. Go to '...' +2. Click on '....' +3. Scroll down to '....' +4. See error + +**Expected behavior** +A clear and concise description of what you expected to happen. + +**Screenshots** +If applicable, add screenshots to help explain your problem. + +**Desktop (please complete the following information):** + - OS: [e.g. iOS] + - Browser [e.g. chrome, safari] + - Version [e.g. 22] + +**Smartphone (please complete the following information):** + - Device: [e.g. iPhone6] + - OS: [e.g. iOS8.1] + - Browser [e.g. stock browser, safari] + - Version [e.g. 22] + +**Additional context** +Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/custom.md b/.github/ISSUE_TEMPLATE/custom.md new file mode 100644 index 0000000000..48d5f81fa4 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/custom.md @@ -0,0 +1,10 @@ +--- +name: Custom issue template +about: Describe this issue template's purpose here. +title: '' +labels: '' +assignees: '' + +--- + + diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 0000000000..bbcbbe7d61 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,20 @@ +--- +name: Feature request +about: Suggest an idea for this project +title: '' +labels: '' +assignees: '' + +--- + +**Is your feature request related to a problem? Please describe.** +A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] + +**Describe the solution you'd like** +A clear and concise description of what you want to happen. + +**Describe alternatives you've considered** +A clear and concise description of any alternative solutions or features you've considered. + +**Additional context** +Add any other context or screenshots about the feature request here. diff --git a/.github/workflows/aws.yml b/.github/workflows/aws.yml new file mode 100644 index 0000000000..a8219c4c47 --- /dev/null +++ b/.github/workflows/aws.yml @@ -0,0 +1,94 @@ +# This workflow will build and push a new container image to Amazon ECR, +# and then will deploy a new task definition to Amazon ECS, when there is a push to the "main" branch. +# +# To use this workflow, you will need to complete the following set-up steps: +# +# 1. Create an ECR repository to store your images. +# For example: `aws ecr create-repository --repository-name my-ecr-repo --region us-east-2`. +# Replace the value of the `ECR_REPOSITORY` environment variable in the workflow below with your repository's name. +# Replace the value of the `AWS_REGION` environment variable in the workflow below with your repository's region. +# +# 2. Create an ECS task definition, an ECS cluster, and an ECS service. +# For example, follow the Getting Started guide on the ECS console: +# https://us-east-2.console.aws.amazon.com/ecs/home?region=us-east-2#/firstRun +# Replace the value of the `ECS_SERVICE` environment variable in the workflow below with the name you set for the Amazon ECS service. +# Replace the value of the `ECS_CLUSTER` environment variable in the workflow below with the name you set for the cluster. +# +# 3. Store your ECS task definition as a JSON file in your repository. +# The format should follow the output of `aws ecs register-task-definition --generate-cli-skeleton`. +# Replace the value of the `ECS_TASK_DEFINITION` environment variable in the workflow below with the path to the JSON file. +# Replace the value of the `CONTAINER_NAME` environment variable in the workflow below with the name of the container +# in the `containerDefinitions` section of the task definition. +# +# 4. Store an IAM user access key in GitHub Actions secrets named `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY`. +# See the documentation for each action used below for the recommended IAM policies for this IAM user, +# and best practices on handling the access key credentials. + +name: Deploy to Amazon ECS + +on: + push: + branches: [ "main" ] + +env: + AWS_REGION: MY_AWS_REGION # set this to your preferred AWS region, e.g. us-west-1 + ECR_REPOSITORY: MY_ECR_REPOSITORY # set this to your Amazon ECR repository name + ECS_SERVICE: MY_ECS_SERVICE # set this to your Amazon ECS service name + ECS_CLUSTER: MY_ECS_CLUSTER # set this to your Amazon ECS cluster name + ECS_TASK_DEFINITION: MY_ECS_TASK_DEFINITION # set this to the path to your Amazon ECS task definition + # file, e.g. .aws/task-definition.json + CONTAINER_NAME: MY_CONTAINER_NAME # set this to the name of the container in the + # containerDefinitions section of your task definition + +permissions: + contents: read + +jobs: + deploy: + name: Deploy + runs-on: ubuntu-latest + environment: production + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Configure AWS credentials + uses: aws-actions/configure-aws-credentials@v1 + with: + aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} + aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + aws-region: ${{ env.AWS_REGION }} + + - name: Login to Amazon ECR + id: login-ecr + uses: aws-actions/amazon-ecr-login@v1 + + - name: Build, tag, and push image to Amazon ECR + id: build-image + env: + ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }} + IMAGE_TAG: ${{ github.sha }} + run: | + # Build a docker container and + # push it to ECR so that it can + # be deployed to ECS. + docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG . + docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG + echo "image=$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG" >> $GITHUB_OUTPUT + + - name: Fill in the new image ID in the Amazon ECS task definition + id: task-def + uses: aws-actions/amazon-ecs-render-task-definition@v1 + with: + task-definition: ${{ env.ECS_TASK_DEFINITION }} + container-name: ${{ env.CONTAINER_NAME }} + image: ${{ steps.build-image.outputs.image }} + + - name: Deploy Amazon ECS task definition + uses: aws-actions/amazon-ecs-deploy-task-definition@v1 + with: + task-definition: ${{ steps.task-def.outputs.task-definition }} + service: ${{ env.ECS_SERVICE }} + cluster: ${{ env.ECS_CLUSTER }} + wait-for-service-stability: true diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000000..57cf5c8365 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,35 @@ +name: ci + +on: + push: + branches: + - "main" + +permissions: + contents: read + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Log in to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ vars.DOCKER_USER }} + password: ${{ secrets.DOCKER_PAT }} + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + with: + driver: cloud + endpoint: "toton/dargon789" + install: true + - name: Build and push + uses: docker/build-push-action@v6 + with: + tags: "${{ vars.DOCKER_USER }}/docker-build-cloud-demo:latest" + # For pull requests, export results to the build cache. + # Otherwise, push to a registry. + outputs: ${{ github.event_name == 'pull_request' && 'type=cacheonly' || 'type=registry' }} + diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000000..02d9871c41 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,93 @@ +# This workflow's name will appear on the GitHub Actions page. + +name: Deploy to Vercel +permissions: + contents: read + +# This specifies when the workflow should run. + +on: + + # The workflow will run on every 'push' to the 'main' branch. + + push: + branches: + - main + + # This allows you to manually trigger the workflow from the GitHub Actions page. + + workflow_dispatch: + +# These are environment variables passed to the Vercel CLI. +# They must be set as GitHub Secrets for security. + +env: + VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} + VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} + + # Add any other environment variables your project needs here, + # such as API keys for the Coinbase SDK. + # Example: VITE_COINBASE_API_KEY: ${{ secrets.VITE_COINBASE_API_KEY }} + +# Defines a job named 'deploy'. + +jobs: + deploy: + # Specifies the runner environment for this job. + + runs-on: ubuntu-latest + + # The steps in the 'deploy' job. + steps: + # 1. Check out the project code from the repository. + # This is the first essential step to get access to your code. + - name: Checkout project code + uses: actions/checkout@v3 + + # 2. Set up Node.js. + # The version should match the one in your project. + steps: + - uses: actions/setup-node@v4 + - name: Setup Node.js + - uses: actions/setup-node@v4 + with: + node-version: 18.x,20.x,22.x + strategy: + matrix: + node-version: [18.x, 20.x, 22.x] + steps: + - uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + + # 3. Install the Vercel CLI. + # The Vercel CLI is the main tool for interacting with the Vercel platform. + with: + node-version: 22.x + name: Install Vercel CLI + run: npm install --global vercel@latest + + # 4. Pull Vercel project settings. + # This fetches Vercel project links and Org ID. + with: + - name: Pull Vercel environment variables + run: vercel pull --yes --environment=production + env: + VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} + + # 5. Build the project. + # This command builds your project for a production environment. + # It will automatically use the build command defined in your project's `package.json`. + with: + - name: Build project + run: vercel build + + # 6. Deploy the project to Vercel. + # This step deploys the pre-built code to Vercel. +strategy: + matrix: + node-version: [18.x, 20.x, 22.x] + name: Deploy to Vercel + run: vercel deploy --prebuilt + env: + VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} diff --git a/.github/workflows/devin_docs_update.yml b/.github/workflows/devin_docs_update.yml index b272310dfa..1211f2e87d 100644 --- a/.github/workflows/devin_docs_update.yml +++ b/.github/workflows/devin_docs_update.yml @@ -10,9 +10,9 @@ permissions: jobs: trigger-devin-docs-analysis: - # This job runs only if the head commit message on the push to main contains 'Release/' or 'release/' + # This job runs only if the head commit message on the push to main contains 'Merge release/' and 'back to main' if: | - contains(github.event.head_commit.message, 'Release/') || contains(github.event.head_commit.message, 'release/') + contains(github.event.head_commit.message, 'Merge release/') && contains(github.event.head_commit.message, 'back to main') runs-on: ubuntu-latest steps: - name: Send Slack Notification for Docs Analysis diff --git a/.github/workflows/devin_staking_dashboard_update.yml b/.github/workflows/devin_staking_dashboard_update.yml index 14c89e53b0..49c3b7a645 100644 --- a/.github/workflows/devin_staking_dashboard_update.yml +++ b/.github/workflows/devin_staking_dashboard_update.yml @@ -10,9 +10,9 @@ permissions: jobs: trigger-devin-appkit-staking-dashboard: - # This job runs only if the head commit message on the push to main contains 'Release/' or 'release/' + # This job runs only if the head commit message on the push to main contains 'Merge release/' and 'back to main' if: | - contains(github.event.head_commit.message, 'Release/') || contains(github.event.head_commit.message, 'release/') + contains(github.event.head_commit.message, 'Merge release/') && contains(github.event.head_commit.message, 'back to main') runs-on: ubuntu-latest steps: - name: Send Slack Notification for Staking Dashboard Update diff --git a/.github/workflows/devin_unity_cdn_update.yml b/.github/workflows/devin_unity_cdn_update.yml index e8eecfa1a4..8f3c20a108 100644 --- a/.github/workflows/devin_unity_cdn_update.yml +++ b/.github/workflows/devin_unity_cdn_update.yml @@ -10,9 +10,9 @@ permissions: jobs: trigger-devin-appkit-cdn-unity: - # This job runs only if the head commit message on the push to main contains 'Release/' or 'release/' + # This job runs only if the head commit message on the push to main contains 'Merge release/' and 'back to main' if: | - contains(github.event.head_commit.message, 'Release/') || contains(github.event.head_commit.message, 'release/') + contains(github.event.head_commit.message, 'Merge release/') && contains(github.event.head_commit.message, 'back to main') runs-on: ubuntu-latest steps: - name: Send Slack Notification for Unity Update diff --git a/.github/workflows/google.yml b/.github/workflows/google.yml new file mode 100644 index 0000000000..3ab19274fd --- /dev/null +++ b/.github/workflows/google.yml @@ -0,0 +1,116 @@ +# This workflow will build a docker container, publish it to Google Container +# Registry, and deploy it to GKE when there is a push to the "main" +# branch. +# +# To configure this workflow: +# +# 1. Enable the following Google Cloud APIs: +# +# - Artifact Registry (artifactregistry.googleapis.com) +# - Google Kubernetes Engine (container.googleapis.com) +# - IAM Credentials API (iamcredentials.googleapis.com) +# +# You can learn more about enabling APIs at +# https://support.google.com/googleapi/answer/6158841. +# +# 2. Ensure that your repository contains the necessary configuration for your +# Google Kubernetes Engine cluster, including deployment.yml, +# kustomization.yml, service.yml, etc. +# +# 3. Create and configure a Workload Identity Provider for GitHub: +# https://github.com/google-github-actions/auth#preferred-direct-workload-identity-federation. +# +# Depending on how you authenticate, you will need to grant an IAM principal +# permissions on Google Cloud: +# +# - Artifact Registry Administrator (roles/artifactregistry.admin) +# - Kubernetes Engine Developer (roles/container.developer) +# +# You can learn more about setting IAM permissions at +# https://cloud.google.com/iam/docs/manage-access-other-resources +# +# 5. Change the values in the "env" block to match your values. + +name: "Build and Deploy to GKE" +on: + push: + branches: + - '"main"' + +env: + PROJECT_ID: "my-project" # TODO: update to your Google Cloud project ID + GAR_LOCATION: "us-central1" # TODO: update to your region + GKE_CLUSTER: "cluster-1" # TODO: update to your cluster name + GKE_ZONE: "us-central1-c" # TODO: update to your cluster zone + DEPLOYMENT_NAME: "gke-test" # TODO: update to your deployment name + REPOSITORY: "samples" # TODO: update to your Artifact Registry docker repository name + IMAGE: "static-site" + WORKLOAD_IDENTITY_PROVIDER: "projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider" # TODO: update to your workload identity provider + +jobs: + setup-build-publish-deploy: + name: "Setup, Build, Publish, and Deploy" + runs-on: "ubuntu-latest" + environment: "production" + + permissions: + contents: "read" + id-token: "write" + + steps: + - name: "Checkout" + uses: "actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332" # actions/checkout@v4 + + # Configure Workload Identity Federation and generate an access token. + # + # See https://github.com/google-github-actions/auth for more options, + # including authenticating via a JSON credentials file. + - id: "auth" + name: "Authenticate to Google Cloud" + uses: "google-github-actions/auth@f112390a2df9932162083945e46d439060d66ec2" # google-github-actions/auth@v2 + with: + workload_identity_provider: "${{ env.WORKLOAD_IDENTITY_PROVIDER }}" + + # Authenticate Docker to Google Cloud Artifact Registry + - name: "Docker Auth" + uses: "docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567" # docker/login-action@v3 + with: + username: "oauth2accesstoken" + password: "${{ steps.auth.outputs.auth_token }}" + registry: "${{ env.GAR_LOCATION }}-docker.pkg.dev" + + # Get the GKE credentials so we can deploy to the cluster + - name: "Set up GKE credentials" + uses: "google-github-actions/get-gke-credentials@6051de21ad50fbb1767bc93c11357a49082ad116" # google-github-actions/get-gke-credentials@v2 + with: + cluster_name: "${{ env.GKE_CLUSTER }}" + location: "${{ env.GKE_ZONE }}" + + # Build the Docker image + - name: "Build and push Docker container" + run: |- + DOCKER_TAG="${GAR_LOCATION}-docker.pkg.dev/${PROJECT_ID}/${REPOSITORY}/${IMAGE}:${GITHUB_SHA}" + + docker build \ + --tag "${DOCKER_TAG}" \ + --build-arg GITHUB_SHA="${GITHUB_SHA}" \ + --build-arg GITHUB_REF="${GITHUB_REF}" \ + . + + docker push "${DOCKER_TAG}" + + # Set up kustomize + - name: "Set up Kustomize" + run: |- + curl -sfLo kustomize https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize%2Fv5.4.3/kustomize_v5.4.3_linux_amd64.tar.gz + chmod u+x ./kustomize + + # Deploy the Docker image to the GKE cluster + - name: "Deploy to GKE" + run: |- + # replacing the image name in the k8s template + ./kustomize edit set image LOCATION-docker.pkg.dev/PROJECT_ID/REPOSITORY/IMAGE:TAG=$GAR_LOCATION-docker.pkg.dev/$PROJECT_ID/$REPOSITORY/$IMAGE:$GITHUB_SHA + ./kustomize build . | kubectl apply -f - + kubectl rollout status deployment/$DEPLOYMENT_NAME + kubectl get services -o wide + diff --git a/.github/workflows/jekyll-docker.yml b/.github/workflows/jekyll-docker.yml new file mode 100644 index 0000000000..3d0eedb4ce --- /dev/null +++ b/.github/workflows/jekyll-docker.yml @@ -0,0 +1,20 @@ +name: Jekyll site CI + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Build the site in the jekyll/builder container + run: | + docker run \ + -v ${{ github.workspace }}:/srv/jekyll -v ${{ github.workspace }}/_site:/srv/jekyll/_site \ + jekyll/builder:latest /bin/bash -c "chmod -R 777 /srv/jekyll && jekyll build --future" diff --git a/.github/workflows/publish-prerelease.yml b/.github/workflows/publish-prerelease.yml index c5adaa34c5..63c51e2fa1 100644 --- a/.github/workflows/publish-prerelease.yml +++ b/.github/workflows/publish-prerelease.yml @@ -58,3 +58,4 @@ jobs: pnpm changeset:version pnpm changeset:pre:exit pnpm publish:canary + diff --git a/.github/workflows/publish_canary.yml b/.github/workflows/publish_canary.yml index 3d1e16be34..147db75761 100644 --- a/.github/workflows/publish_canary.yml +++ b/.github/workflows/publish_canary.yml @@ -28,6 +28,9 @@ jobs: aws-access-key-id: ${{ secrets.AWS_ECR_PUBLISHER_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_ECR_PUBLISHER_SECRET_ACCESS_KEY }} aws-region: eu-central-1 + - name: Debug Secrets + run: + echo "AWS_ACCESS_KEY_ID=${{ secrets.AWS_ECR_PUBLISHER_ACCESS_KEY_ID }}" - name: Login to Amazon ECR id: login-ecr uses: aws-actions/amazon-ecr-login@v2 diff --git a/.github/workflows/release-publish.yml b/.github/workflows/release-publish.yml index d939fd15c1..6843e040a8 100644 --- a/.github/workflows/release-publish.yml +++ b/.github/workflows/release-publish.yml @@ -56,6 +56,7 @@ jobs: --base main \ --title "Merge ${{ github.ref_name }} back to main" \ --body "Auto‑generated after publishing." + --verbose env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} GH_DEBUG: 1 diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml new file mode 100644 index 0000000000..57457de1fc --- /dev/null +++ b/.github/workflows/static.yml @@ -0,0 +1,49 @@ +# Simple workflow for deploying static content to GitHub Pages +name: Deploy static content to Pages + +on: +- deployment_status: ++ repository_dispatch: ++ types: ++ - 'vercel.deployment.success' + + run-e2es: +- if: github.event_name == 'deployment_status' && github.event.deployment_status.state == 'success' ++ if: github.event_name == 'repository_dispatch' + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Install dependencies + run: npm ci && npx playwright install --with-deps + - name: Run tests + run: npx playwright test + env: +- BASE_URL: ${{ github.event.deployment_status.environment_url }} ++ BASE_URL: ${{ github.event.client_payload.url }} + +# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. +# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. +concurrency: + group: "pages" + cancel-in-progress: false + +jobs: + # Single deploy job since we're just deploying + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Pages + uses: actions/configure-pages@v5 + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + # Upload entire repository + path: '.' + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 diff --git a/.gitignore b/.gitignore index 488d6cea8d..e27e9f0488 100644 --- a/.gitignore +++ b/.gitignore @@ -18,5 +18,6 @@ tsconfig.tsbuildinfo .cache-synpress .parcel-cache .coverage +.cursor .envrc* -**/test-results.json \ No newline at end of file +test-results.json \ No newline at end of file diff --git a/.prettierignore b/.prettierignore index 5fba4e737e..fb3c8b734c 100644 --- a/.prettierignore +++ b/.prettierignore @@ -5,15 +5,4 @@ pnpm-lock.yaml .svelte-kit bundle-analysis.html .open-next -/apps/pay-test-exchange/**.d.ts -.output/ -node_modules/ -.coverage/ -test-results.json -playwright-report/ -screenshots/ -blob-report/ -.cache-synpress/ -.parcel-cache/ -.turbo/ -next-env.d.ts +/apps/pay-test-exchange/**.d.ts \ No newline at end of file diff --git a/.vercel/.env.preview.local b/.vercel/.env.preview.local new file mode 100644 index 0000000000..86dd6484a8 --- /dev/null +++ b/.vercel/.env.preview.local @@ -0,0 +1,62 @@ +# Created by Vercel CLI +BLOB_READ_WRITE_TOKEN="vercel_blob_rw_UjLrE6dsiV479Qsc_33IFgbOPKXFn39IKTAB9tU9UONZT57" +DATABASE_URL="postgres://default:wcGa0bBN5mYF@ep-mute-lake-a400aq2a-pooler.us-east-1.aws.neon.tech/verceldb?sslmode=require" +DATABASE_URL_UNPOOLED="postgresql://default:wcGa0bBN5mYF@ep-mute-lake-a400aq2a.us-east-1.aws.neon.tech/verceldb?sslmode=require" +EDGEDB_INSTANCE="vercel-hrU7dDGYC5ByYVmTl1GtCB8J/edgedb-sky-dog" +EDGEDB_SECRET_KEY="nbwt1_eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJlZGIuZC5hbGwiOnRydWUsImVkYi5pIjpbInZlcmNlbC1oclU3ZERHWUM1QnlZVm1UbDFHdENCOEovZWRnZWRiLXNreS1kb2ciXSwiZWRiLnIuYWxsIjp0cnVlLCJpYXQiOjE3MzE0NzYyNjYsImlzcyI6ImF3cy5lZGdlZGIuY2xvdWQiLCJqdGkiOiJhVUpLOEtHQkVlLVd1YWR1MU1KX2RBIiwic3ViIjoiYU9tWXNLR0JFZS00Ukw5U1B4Z3ZpdyJ9.jOExhd2VDmodbfCCv-FbkqKPeQ4tk6P2hakefjBorh47gtD4Srpm2Jqv7EggKf7BM-vaEHSxAtVf_btRyaHJTQ" +EXPERIMENTATION_CONFIG="https://edge-config.vercel.com/ecfg_pnaobimj43jo27lvgaw7uhfoizgy?token=b0c18273-dbac-46e5-97ac-5775fc931a46" +EXPERIMENTATION_CONFIG_ITEM_KEY="statsig-3lYIQfLL0EDpWaVZU6rlYU" +KV_REST_API_READ_ONLY_TOKEN="AkPLAAIgcDHF1sKSB-xzXwFgRTIocEH4CpplboXPAh86hYbp-VhUCQ" +KV_REST_API_TOKEN="AUPLAAIjcDE1YmQ5MWU0ZGIyODI0ODNkYTMyZWIxODdjMWEwMmJlMXAxMA" +KV_REST_API_URL="https://cute-turtle-17355.upstash.io" +KV_URL="rediss://default:AUPLAAIjcDE1YmQ5MWU0ZGIyODI0ODNkYTMyZWIxODdjMWEwMmJlMXAxMA@cute-turtle-17355.upstash.io:6379" +MOTHERDUCK_READ_SCALING_TOKEN="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Im1vdGhlcmR1Y2stbGltZS1wYXJraC1lV0BzYS5tb3RoZXJkdWNrLmNvbSIsInNlc3Npb24iOiJtb3RoZXJkdWNrLWxpbWUtcGFya2gtZVcuc2EubW90aGVyZHVjay5jb20iLCJwYXQiOiJCbWZCd2otRmJXWjNmN2ZVblJLbUJPUzhZX1gwck9nNW9WTVRkVFRwTFRBIiwidXNlcklkIjoiYjNlNjJjMTgtMTc5YS00ZmY0LWE4NmEtMWY1OTgxZDc1NGIwIiwiaXNzIjoibWRfcGF0IiwicmVhZE9ubHkiOnRydWUsInRva2VuVHlwZSI6InJlYWRfc2NhbGluZyIsImlhdCI6MTczOTk2NDMyM30.BgfG_dMSJmjSsk319lG56vd_GPT5APQhfr3jWZ5chDk" +MOTHERDUCK_TOKEN="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Im1vdGhlcmR1Y2stbGltZS1wYXJraC1lV0BzYS5tb3RoZXJkdWNrLmNvbSIsInNlc3Npb24iOiJtb3RoZXJkdWNrLWxpbWUtcGFya2gtZVcuc2EubW90aGVyZHVjay5jb20iLCJwYXQiOiJMTFhIdTkxT0dIMFZRMmtFQXQ5U3lyNDJEX3prQkhlX3FVcnVoVVYzcmY4IiwidXNlcklkIjoiYjNlNjJjMTgtMTc5YS00ZmY0LWE4NmEtMWY1OTgxZDc1NGIwIiwiaXNzIjoibWRfcGF0IiwicmVhZE9ubHkiOmZhbHNlLCJ0b2tlblR5cGUiOiJyZWFkX3dyaXRlIiwiaWF0IjoxNzM5OTY0MzIzfQ.jLRpmzMwNtiRhC1UfncuNE5sGn3Fcq66fwSJdLexyrQ" +NEXT_PUBLIC_STATSIG_CLIENT_KEY="client-i5zGeSorD4wp02ZadmfcoQA3T680iCbOjY8B04pevFN" +NILEDB_API_URL="https://eu-central-1.api.thenile.dev/v2/databases/0193de50-f30f-7633-9d02-c41c7239f27a" +NILEDB_PASSWORD="4dc80077-f364-4305-b23a-a1d61a2f6010" +NILEDB_POSTGRES_URL="postgres://eu-central-1.db.thenile.dev/nile_lime_flower" +NILEDB_URL="postgres://0193de50-f6e3-756f-b089-cfa890da133c:4dc80077-f364-4305-b23a-a1d61a2f6010@eu-central-1.db.thenile.dev/nile_lime_flower" +NILEDB_USER="0193de50-f6e3-756f-b089-cfa890da133c" +NX_DAEMON="false" +PGDATABASE="verceldb" +PGHOST="ep-mute-lake-a400aq2a-pooler.us-east-1.aws.neon.tech" +PGHOST_UNPOOLED="ep-mute-lake-a400aq2a.us-east-1.aws.neon.tech" +PGPASSWORD="wcGa0bBN5mYF" +PGUSER="default" +POSTGRES_DATABASE="verceldb" +POSTGRES_HOST="ep-mute-lake-a400aq2a-pooler.us-east-1.aws.neon.tech" +POSTGRES_PASSWORD="wcGa0bBN5mYF" +POSTGRES_PRISMA_URL="postgres://default:wcGa0bBN5mYF@ep-mute-lake-a400aq2a-pooler.us-east-1.aws.neon.tech/verceldb?pgbouncer=true&connect_timeout=15&sslmode=require" +POSTGRES_URL="postgres://default:wcGa0bBN5mYF@ep-mute-lake-a400aq2a-pooler.us-east-1.aws.neon.tech/verceldb?sslmode=require" +POSTGRES_URL_NON_POOLING="postgres://default:wcGa0bBN5mYF@ep-mute-lake-a400aq2a.us-east-1.aws.neon.tech/verceldb?sslmode=require" +POSTGRES_URL_NO_SSL="postgres://default:wcGa0bBN5mYF@ep-mute-lake-a400aq2a-pooler.us-east-1.aws.neon.tech/verceldb" +POSTGRES_USER="default" +QSTASH_CURRENT_SIGNING_KEY="sig_86r5s4G8GT7m8swap1TP6yEmJiaH" +QSTASH_NEXT_SIGNING_KEY="sig_5uYvvAV8bQyGQxVW42NxkiGjmreT" +QSTASH_TOKEN="eyJVc2VySUQiOiI0YmZjNmMxMC1mODk3LTQyMjgtOGUzNS00NWUwZWI0NzUxYTYiLCJQYXNzd29yZCI6IjYxZDAyNGM0M2Q1ZTRmYjE4ZDIzMzk3NjBkMmM0Njc2In0=" +QSTASH_URL="https://qstash.upstash.io" +STATSIG_SERVER_API_KEY="secret-hxiN4JCVGDLZIu4YAFCzk1OZtYqzAO0lgrxgvBKUYxl" +TURBO_CACHE="remote:rw" +TURBO_DOWNLOAD_LOCAL_ENABLED="true" +TURBO_REMOTE_ONLY="true" +TURBO_RUN_SUMMARY="true" +UPSTASH_VECTOR_REST_READONLY_TOKEN="ABYIMHN1cmUtcGVuZ3Vpbi04ODA0OC11czFyZWFkb25seVpUQmxaR1k0TlRNdFl6azVZeTAwTm1VM0xXSTVORGd0TURReFlUSTRZemt4TW1NMg==" +UPSTASH_VECTOR_REST_TOKEN="ABYFMHN1cmUtcGVuZ3Vpbi04ODA0OC11czFhZG1pblpXTm1NR001T1RZdFl6UmtZeTAwTTJWaUxUazJOVEl0Wm1WbE5XVXdZbU15T0dRNA==" +UPSTASH_VECTOR_REST_URL="https://sure-penguin-88048-us1-vector.upstash.io" +VERCEL="1" +VERCEL_ENV="preview" +VERCEL_GIT_COMMIT_AUTHOR_LOGIN="" +VERCEL_GIT_COMMIT_AUTHOR_NAME="" +VERCEL_GIT_COMMIT_MESSAGE="" +VERCEL_GIT_COMMIT_REF="" +VERCEL_GIT_COMMIT_SHA="" +VERCEL_GIT_PREVIOUS_SHA="" +VERCEL_GIT_PROVIDER="" +VERCEL_GIT_PULL_REQUEST_ID="" +VERCEL_GIT_REPO_ID="" +VERCEL_GIT_REPO_OWNER="" +VERCEL_GIT_REPO_SLUG="" +VERCEL_OIDC_TOKEN="eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6Im1yay00MzAyZWMxYjY3MGY0OGE5OGFkNjFkYWRlNGEyM2JlNyJ9.eyJpc3MiOiJodHRwczovL29pZGMudmVyY2VsLmNvbSIsInN1YiI6Im93bmVyOmRhcmdvbjc4OXMtcHJvamVjdHM6cHJvamVjdDphcHBraXQ6ZW52aXJvbm1lbnQ6ZGV2ZWxvcG1lbnQiLCJzY29wZSI6Im93bmVyOmRhcmdvbjc4OXMtcHJvamVjdHM6cHJvamVjdDphcHBraXQ6ZW52aXJvbm1lbnQ6ZGV2ZWxvcG1lbnQiLCJhdWQiOiJodHRwczovL3ZlcmNlbC5jb20vZGFyZ29uNzg5cy1wcm9qZWN0cyIsIm93bmVyIjoiZGFyZ29uNzg5cy1wcm9qZWN0cyIsIm93bmVyX2lkIjoidGVhbV9nNlk5NzI1RU9velhQdFp6ZVlPTlNodDQiLCJwcm9qZWN0IjoiYXBwa2l0IiwicHJvamVjdF9pZCI6InByal9PMU45c0gwSzM2S0pqT0Voc3dsb1p4UjQ1Q1hRIiwiZW52aXJvbm1lbnQiOiJkZXZlbG9wbWVudCIsIm5iZiI6MTc0Nzk1MTM4MSwiaWF0IjoxNzQ3OTUxMzgxLCJleHAiOjE3NDc5OTQ1ODF9.BCg4zuafhVFPF0xAoUbM7-YqM9rgDjuj-TX2BnrCRw7zbHFJgUA6F7d_nTyr3Zjo9xGWJmtUJFlS2aLcfzMrcSvF2TNFhPJJ3Yq4MC5dW-xi5cDTo0oAZQS04bIT9N8XnITqIZmB0v6_5kjfQsxcJ208qImLLuyyyPf9ZNaHVu1c9iJo0YhbDd19eaV14i9ZFbfL8RBwgBDW_2EXP2hkMtpEzaf5n1qr1Vvh2yPMJfVLuWNh_ZRAfdIVNAGWWAjlv9elnA4SvIqD6dn69KCJixvNQp-3KNt4KgUAHlzIjhGj7JrXo99ZM1WcEpRGktrLERtzJEl2pS2Mfeb11_xyzw" +VERCEL_TARGET_ENV="preview" +VERCEL_URL="" diff --git a/.vercel/README.txt b/.vercel/README.txt new file mode 100644 index 0000000000..525d8ce8ef --- /dev/null +++ b/.vercel/README.txt @@ -0,0 +1,11 @@ +> Why do I have a folder named ".vercel" in my project? +The ".vercel" folder is created when you link a directory to a Vercel project. + +> What does the "project.json" file contain? +The "project.json" file contains: +- The ID of the Vercel project that you linked ("projectId") +- The ID of the user or team your Vercel project is owned by ("orgId") + +> Should I commit the ".vercel" folder? +No, you should not share the ".vercel" folder with anyone. +Upon creation, it will be automatically added to your ".gitignore" file. diff --git a/.vercel/output/builds.json b/.vercel/output/builds.json new file mode 100644 index 0000000000..370765050a --- /dev/null +++ b/.vercel/output/builds.json @@ -0,0 +1,36 @@ +{ + "//": "This file was generated by the `vercel build` command. It is not part of the Build Output API.", + "target": "preview", + "argv": [ + "/usr/bin/node", + "/usr/local/bin/vercel", + "build" + ], + "builds": [ + { + "require": "@vercel/static-build", + "requirePath": "/usr/local/lib/node_modules/vercel/node_modules/@vercel/static-build/dist/index", + "apiVersion": 2, + "src": "package.json", + "use": "@vercel/static-build", + "config": { + "zeroConfig": true, + "framework": "Vite" + }, + "error": { + "name": "Error", + "stack": "Error: Command \"pnpm run build\" exited with 1\n at ChildProcess. (/usr/local/lib/node_modules/vercel/node_modules/@vercel/build-utils/dist/index.js:23106:9)\n at ChildProcess.emit (node:events:517:28)\n at ChildProcess.emit (node:domain:489:12)\n at maybeClose (node:internal/child_process:1098:16)\n at ChildProcess._handle.onexit (node:internal/child_process:303:5)\n at Process.callbackTrampoline (node:internal/async_hooks:128:17)", + "message": "Command \"pnpm run build\" exited with 1", + "hideStackTrace": true, + "code": "BUILD_UTILS_SPAWN_1" + } + } + ], + "error": { + "name": "Error", + "stack": "Error: Command \"pnpm run build\" exited with 1\n at ChildProcess. (/usr/local/lib/node_modules/vercel/node_modules/@vercel/build-utils/dist/index.js:23106:9)\n at ChildProcess.emit (node:events:517:28)\n at ChildProcess.emit (node:domain:489:12)\n at maybeClose (node:internal/child_process:1098:16)\n at ChildProcess._handle.onexit (node:internal/child_process:303:5)\n at Process.callbackTrampoline (node:internal/async_hooks:128:17)", + "message": "Command \"pnpm run build\" exited with 1", + "hideStackTrace": true, + "code": "BUILD_UTILS_SPAWN_1" + } +} diff --git a/.vercel/output/config.json b/.vercel/output/config.json new file mode 100644 index 0000000000..cd2f236b29 --- /dev/null +++ b/.vercel/output/config.json @@ -0,0 +1,3 @@ +{ + "version": 3 +} diff --git a/.vercel/output/diagnostics/cli_traces.json b/.vercel/output/diagnostics/cli_traces.json new file mode 100644 index 0000000000..5756d485a3 --- /dev/null +++ b/.vercel/output/diagnostics/cli_traces.json @@ -0,0 +1 @@ +[{"name":"vc.builder","duration":66343067,"timestamp":62340827901,"id":"a90a6800-74d7-47b3-823d-b4dfec880565","parentId":"9cdaf023-dcfc-4ba5-8f41-68f7de6bde9d","tags":{"name":"@vercel/static-build"},"startTime":1745387700796},{"name":"vc.builder.diagnostics","duration":453,"timestamp":62407173187,"id":"c3192d46-3368-4068-80c2-6f5d0ae1289a","parentId":"a90a6800-74d7-47b3-823d-b4dfec880565","tags":{},"startTime":1745387767142},{"name":"vc.doBuild","duration":69567381,"timestamp":62337621478,"id":"9cdaf023-dcfc-4ba5-8f41-68f7de6bde9d","parentId":"5091315d-163c-4673-aee3-ac0e71d386f3","tags":{},"startTime":1745387697590}] \ No newline at end of file diff --git a/.vercel/project.json b/.vercel/project.json new file mode 100644 index 0000000000..ab2bafb8bd --- /dev/null +++ b/.vercel/project.json @@ -0,0 +1,15 @@ +{ + "projectId": "prj_O1N9sH0K36KJjOEhswloZxR45CXQ", + "orgId": "team_g6Y9725EOozXPtZzeYONSht4", + "settings": { + "createdAt": 1738919734863, + "framework": "Vite", + "devCommand": null, + "installCommand": null, + "buildCommand": null, + "outputDirectory": null, + "rootDirectory": null, + "directoryListing": false, + "nodeVersion": "22.x" + } +} diff --git a/AGENTS.md b/AGENTS.md index cbbf4327ed..fc7684d136 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -1,211 +1,172 @@ # AGENTS.md -Reown AppKit — a multi-chain onchain SDK providing wallet connection, authentication, swaps, on-ramp, and transaction UX for 700+ wallets across EVM, Solana, Bitcoin, Polkadot, and TON. Available for React, Next.js, Vue, Nuxt, Svelte, vanilla JS, React Native, Flutter, and native mobile. +This file provides guidance for AI agents working with the Reown AppKit repository. -## Quick Reference +## Project Overview -- **Package manager**: pnpm workspaces (`pnpm-workspace.yaml`) -- **Build orchestration**: Turborepo (`turbo.json`) -- **State management**: valtio (always import from `valtio/vanilla`) -- **UI framework**: LitElement Web Components -- **Testing**: Vitest (unit), Playwright (E2E in `apps/laboratory`) -- **TypeScript**: Strict mode, ESM only, `experimentalDecorators` enabled +Reown AppKit is a full-stack toolkit for building blockchain application user experiences. It provides developers with a comprehensive SDK that abstracts the complexity of Web3 wallet integration, multi-chain support, and user authentication across Ethereum (EVM), Solana, Bitcoin, Polkadot, and TON networks. -## Commands +AppKit enables connection to 300+ wallets including MetaMask, WalletConnect, Phantom, Leather, and embedded email/social wallets. It provides a single API for multiple blockchain ecosystems with automatic network switching, built-in support for token swaps, on-ramp (fiat-to-crypto), transaction sending, and pre-built customizable modal UI with dark/light themes. -```bash -pnpm install # Install dependencies -pnpm build # Build all packages (run before apps or tests) -pnpm test # Unit tests (Vitest) -pnpm typecheck # Type checking (depends on build) -pnpm lint # ESLint -pnpm run prettier:format # Format code (run before committing) -pnpm changeset # Create a changeset for versioning -pnpm laboratory # Run E2E testing app -pnpm demo:dev # Run demo app -pnpm gallery # Run Storybook component gallery -``` +The SDK is available for React, Next.js, Vue, Nuxt, Svelte, vanilla JavaScript, React Native, Flutter, Android, iOS, and Unity. + +## Repository Structure -## Repository Layout +This is a pnpm workspace monorepo managed by Turborepo, organized into four main categories: ``` -packages/ - appkit/ → @reown/appkit Main SDK facade - controllers/ → @reown/appkit-controllers Valtio state management - ui/ → @reown/appkit-ui Atomic wui-* Web Components - scaffold-ui/ → @reown/appkit-scaffold-ui High-level w3m-* UI flows - common/ → @reown/appkit-common Shared types and utilities - appkit-utils/ → @reown/appkit-utils Chain-specific helpers - wallet/ → @reown/appkit-wallet Wallet models - pay/ → @reown/appkit-pay Payment flows - siwe/ → @reown/appkit-siwe Sign-In With Ethereum - siwx/ → @reown/appkit-siwx Cross-chain authentication - adapters/ - wagmi/ → EVM via Wagmi/Viem - ethers/ → EVM via ethers v6 - ethers5/ → EVM via ethers v5 - solana/ → Solana - bitcoin/ → Bitcoin - polkadot/ → Polkadot - ton/ → TON -apps/ - laboratory/ → E2E testing (Next.js + Playwright) - demo/ → Marketing demo - gallery/ → Storybook component gallery -examples/ → Integration examples (next-*, react-*, vue-*, svelte-*, html-*) +@reown/appkit-monorepo/ +├── packages/ # Core SDK packages (publishable to npm) +│ ├── appkit/ # Main SDK entry point (@reown/appkit) +│ ├── adapters/ # Blockchain-specific adapters +│ │ ├── wagmi/ # EVM via Wagmi/viem +│ │ ├── ethers/ # EVM via ethers v6 +│ │ ├── ethers5/ # EVM via ethers v5 +│ │ ├── solana/ # Solana support +│ │ ├── bitcoin/ # Bitcoin support +│ │ ├── polkadot/ # Polkadot support +│ │ └── ton/ # TON support +│ ├── controllers/ # State management (valtio-based) +│ ├── ui/ # Atomic Web Components (LitElement, wui-* prefix) +│ ├── scaffold-ui/ # High-level UI flows (w3m-* prefix) +│ ├── common/ # Shared utilities +│ ├── appkit-utils/ # Multi-chain utilities +│ ├── siwe/ # Sign-In With Ethereum +│ ├── siwx/ # Cross-chain authentication +│ ├── wallet/ # Embedded wallet provider +│ └── ... # Other utility packages +├── apps/ # Internal applications +│ ├── laboratory/ # Primary E2E testing app (Next.js + Playwright) +│ ├── demo/ # Marketing/demo application +│ ├── gallery/ # Storybook component gallery +│ └── browser-extension/ +├── examples/ # Integration examples ({framework}-{adapter} pattern) +└── .github/ # CI/CD workflows ``` -## Architecture Rules +## Key Commands -### Layer Order (dependencies flow downward only) +All commands should be run from the repository root using pnpm: +```bash +# Install dependencies +pnpm install + +# Build all packages (required before running apps) +pnpm build + +# Format code with Prettier (run before committing) +pnpm run prettier:format + +# Run unit tests (Vitest) +pnpm test + +# Run type checking +pnpm typecheck + +# Run linting +pnpm lint + +# Run the Laboratory app for testing +pnpm laboratory + +# Run the demo app +pnpm demo:dev + +# Run the component gallery (Storybook) +pnpm gallery + +# Create a changeset for versioning +pnpm changeset + +# Check bundle size +pnpm size ``` -apps & examples - ↓ -adapters (wagmi, solana, bitcoin, ethers, ...) - ↓ -@reown/appkit (SDK facade) - ↓ -scaffold-ui (w3m-*) · pay - ↓ -ui (wui-*) · controllers · appkit-utils - ↓ -common · wallet · polyfills -``` -### Import Boundaries +## Architecture Overview + +### Core Packages + +The `@reown/appkit` package is the main entry point. It initializes via `createAppKit()` with configuration for networks, adapters, and features. The `AppKitBaseClient` class manages adapters, controllers, and connection lifecycle. + +### Adapters + +Each blockchain adapter implements the `AdapterBlueprint` interface with standard methods: `connect()`, `disconnect()`, `signMessage()`, `sendTransaction()`, `switchNetwork()`. Adapters emit events for `accountChanged`, `disconnect`, and `switchNetwork`. + +### Controllers + +State management uses valtio proxies. Key controllers include `ChainController` (multi-namespace blockchain state), `ConnectionController` (wallet connection lifecycle), `ModalController` (UI modal visibility), and `OptionsController` (feature flags and configuration). + +### UI Components -- **ui** (`wui-*`): Cannot import from controllers, scaffold-ui, appkit, or adapters -- **controllers**: Cannot import from ui, scaffold-ui, appkit, or adapters -- **scaffold-ui** (`w3m-*`): Uses relative imports within the package, not `@reown/` paths -- **adapters**: Import from `@reown/appkit` and foundations, never from controllers or ui directly -- **Cross-package**: Always use package entrypoints or declared subpath exports, never deep internal paths +The UI layer consists of atomic Web Components (`wui-*` prefix) from `@reown/appkit-ui` built with LitElement, and high-level scaffold components (`w3m-*` prefix) from `@reown/appkit-scaffold-ui` that compose the atoms and subscribe to controllers. ### Chain Namespaces -| Namespace | Chain | Adapter | -| ---------- | -------- | ---------------------- | -| `eip155` | EVM | wagmi, ethers, ethers5 | -| `solana` | Solana | solana | -| `bip122` | Bitcoin | bitcoin | -| `polkadot` | Polkadot | polkadot | -| `ton` | TON | ton | - -## Where to Put Things - -| What you're building | Where it goes | -| ------------------------ | ------------------------------------------------------------------------------------------------------- | -| New state/business logic | `packages/controllers/src/controllers/` — follow [controller pattern](.agents/context/controllers.md) | -| New atomic UI element | `packages/ui/src/composites/wui-/` — follow [UI guide](.agents/context/ui-components.md) | -| New modal view/screen | `packages/scaffold-ui/src/views/w3m--view/` — register in RouterController + w3m-router | -| Reusable UI section | `packages/scaffold-ui/src/partials/w3m-/` | -| New blockchain adapter | `packages/adapters//` — extend AdapterBlueprint, see [adapter guide](.agents/context/adapters.md) | -| Shared types or utils | `packages/common/src/` | -| Chain-specific helpers | `packages/appkit-utils/src/` | -| Public SDK API | `packages/appkit/exports/` — treat changes as potentially breaking | -| Unit tests | Co-located `tests/` directory in the relevant package | -| E2E tests | `apps/laboratory/tests/` using Page Object Model | -| Integration example | `examples/-/` | - -## Code Patterns - -### Controllers (valtio state) - -```typescript -// packages/controllers/src/controllers/MyController.ts -import { proxy, subscribe as sub } from 'valtio/vanilla' -import { subscribeKey as subKey } from 'valtio/vanilla/utils' - -// -- Types ---- -export interface MyControllerState { - value: string -} - -// -- State ---- -const state = proxy({ value: '' }) - -// -- Controller ---- -const controller = { - state, - subscribe(callback: (s: MyControllerState) => void) { - return sub(state, () => callback(state)) - }, - subscribeKey(key: K, cb: (v: MyControllerState[K]) => void) { - return subKey(state, key, cb) - }, - setValue(v: string) { - state.value = v - } -} -export const MyController = withErrorBoundary(controller) -``` +Blockchain ecosystems are identified by namespace: `eip155` (EVM), `solana`, `bip122` (Bitcoin), `polkadot`, and `ton`. These are used as keys in the `ChainController.chains` Map. -Section comments (`// -- Types ----`, `// -- State ----`, `// -- Controller ----`) are enforced by DangerJS. - -### UI Atoms (wui-\*) - -```typescript -// packages/ui/src/composites/wui-my-thing/index.ts -@customElement('wui-my-thing') -export class WuiMyThing extends LitElement { - public static override styles = [resetStyles, styles] // resetStyles required - // -- State & Properties ---- - @property() public variant = 'default' // @state() NOT allowed - // -- Render ---- - public override render() { - return html`` - } -} -``` +## Development Notes + +### Code Quality Standards + +When creating new UI components in `packages/ui/`, components must apply `resetStyles`, use the `wui-` prefix, and include required section comments (`// -- Render ----`, `// -- State & Properties ----`, `// -- Private ----`). New components require corresponding Storybook stories in `apps/gallery/`. + +When creating new scaffold components in `packages/scaffold-ui/`, components must use the `w3m-` prefix, include proper unsubscribe logic for controller subscriptions, and use relative imports instead of direct package access. + +Controllers in `packages/controllers/` must include section comments (`// -- Types ----`, `// -- State ----`, `// -- Controller ----`), use `valtio/vanilla` instead of `valtio`, and have corresponding tests. + +### Import Rules + +Use relative imports within packages instead of direct package access. Client packages (wagmi, solana, ethers, ethers5) cannot import from `@reown/appkit-controllers` or `@reown/appkit-ui`. The UI package cannot import from `@reown/appkit-controllers`. + +### Testing + +Unit tests use Vitest and are located alongside source files or in `test/` directories. E2E tests use Playwright in the Laboratory app (`apps/laboratory/tests/`). The Laboratory app uses Page Object Model pattern with `ModalPage`, `WalletPage`, and corresponding validators. + +Tests for scaffold-ui partials should be placed in `packages/scaffold-ui/test/partials/` with naming convention `[component-name].test.ts`. -### Scaffold Views (w3m-\*) - -```typescript -// packages/scaffold-ui/src/views/w3m-my-view/index.ts -@customElement('w3m-my-view') -export class W3mMyView extends LitElement { - private unsubscribe: (() => void)[] = [] // Cleanup required - @state() private value = SomeController.state.value - - constructor() { - super() - this.unsubscribe.push( - SomeController.subscribeKey('value', v => { - this.value = v - }) - ) - } - - public override disconnectedCallback() { - this.unsubscribe.forEach(u => u()) - } -} +### PR Requirements + +Before submitting a PR, run `pnpm build` and `pnpm run prettier:format`. Use conventional commit format for PR titles (e.g., `feat: add new feature`, `fix: resolve bug`, `chore: update dependencies`). Bug fixes and new features require tests. Large changes should be discussed in an issue first. + +The repository uses DangerJS for automated PR checks including package dependency validation, architectural boundary enforcement, security scanning, and breaking change detection. + +## Versioning and Publishing + +### Changesets + +The repository uses [Changesets](https://github.com/changesets/changesets) for versioning and changelog generation. All `@reown/appkit-*` packages are versioned together as a fixed group. + +To create a changeset for your changes: + +```bash +pnpm changeset ``` -### Adapters +This will prompt you to select affected packages and describe the changes. Changesets are stored in `.changeset/` as markdown files. + +### Release Channels + +The repository supports multiple release channels: -Extend `AdapterBlueprint` from `packages/controllers/src/controllers/AdapterController/ChainAdapterBlueprint.ts`. Implement: `connect()`, `disconnect()`, `switchNetwork()`, `signMessage()`, `sendTransaction()`, `getBalance()`. Host SDKs go in `peerDependencies`. +- `latest` - Stable production releases +- `alpha` - Alpha pre-releases +- `beta` - Beta pre-releases +- `canary` - Canary releases for testing -## PR Requirements +### Publishing Workflow -1. Run `pnpm build && pnpm run prettier:format` before submitting -2. Use conventional commit format for PR titles (`feat:`, `fix:`, `chore:`, `refactor:`, `test:`, `docs:`) -3. Bug fixes and new features require tests -4. Create a changeset: `pnpm changeset` -5. DangerJS validates import boundaries, naming conventions, section comments, and dependency rules +Publishing is handled through GitHub Actions workflows: -## Versioning +- `release-start.yml` - Initiates the release process +- `release-publish.yml` - Publishes packages to npm +- `release-canary.yml` - Publishes canary releases +- `publish-prerelease.yml` - Publishes alpha/beta pre-releases -All `@reown/appkit-*` packages are versioned together as a fixed group via Changesets. Release channels: `latest`, `alpha`, `beta`, `canary`. `@examples/*` and `@apps/*` are excluded from publishing. +The `@examples/*` and `@apps/*` packages are excluded from publishing. -## Detailed Context +### CI/CD -For in-depth guidance on specific topics: +PR checks include setup and build, code style validation, unit tests, bundle size checks, and UI tests. The UI tests run in the Laboratory app using Playwright with sharded execution across multiple runners. -- [Architecture & Initialization Flow](.agents/context/architecture.md) — layer diagram, import boundaries, init sequence, network request policy -- [Controllers Reference](.agents/context/controllers.md) — valtio patterns, all controllers, state shapes -- [UI Components Guide](.agents/context/ui-components.md) — wui-_ and w3m-_ patterns, DangerJS rules, adding views -- [Blockchain Adapters Guide](.agents/context/adapters.md) — AdapterBlueprint, creating new adapters -- [Testing Guide](.agents/context/testing.md) — Vitest, Playwright, test locations, writing new tests -- [Package Reference](.agents/context/packages.md) — all packages, build outputs, adding packages -- [Contributing & PR Guide](.agents/context/contributing.md) — PR checks, changesets, release process +Canary tests run in Docker containers and upload timing metrics to CloudWatch for performance monitoring. diff --git a/SECURITY.md b/SECURITY.md new file mode 100644 index 0000000000..034e848032 --- /dev/null +++ b/SECURITY.md @@ -0,0 +1,21 @@ +# Security Policy + +## Supported Versions + +Use this section to tell people about which versions of your project are +currently being supported with security updates. + +| Version | Supported | +| ------- | ------------------ | +| 5.1.x | :white_check_mark: | +| 5.0.x | :x: | +| 4.0.x | :white_check_mark: | +| < 4.0 | :x: | + +## Reporting a Vulnerability + +Use this section to tell people how to report a vulnerability. + +Tell them where to go, how often they can expect to get an update on a +reported vulnerability, what to expect if the vulnerability is accepted or +declined, etc. diff --git a/appkit-dapp/.env.test b/appkit-dapp/.env.test new file mode 100644 index 0000000000..545af0ca6e --- /dev/null +++ b/appkit-dapp/.env.test @@ -0,0 +1 @@ +VITE_PROJECT_ID= \ No newline at end of file diff --git a/appkit-dapp/.gitignore b/appkit-dapp/.gitignore new file mode 100644 index 0000000000..5a9ce19b21 --- /dev/null +++ b/appkit-dapp/.gitignore @@ -0,0 +1,28 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +dist +dist-ssr +*.local + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +.DS_Store +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? +.vercel + +.env +.env*.local diff --git a/appkit-dapp/README.md b/appkit-dapp/README.md new file mode 100644 index 0000000000..3132e216e7 --- /dev/null +++ b/appkit-dapp/README.md @@ -0,0 +1,17 @@ +# Reown AppKit Example using wagmi (Vite + React) + +This is a [Vite](https://vitejs.dev) project together with React. + +## Usage + +1. Go to [Reown Cloud](https://cloud.reown.com) and create a new project. +2. Copy your `Project ID` +3. Rename `.env.example` to `.env` and paste your `Project ID` as the value for `VITE_PROJECT_ID` +4. Run `pnpm install` to install dependencies +5. Run `pnpm run dev` to start the development server + +## Resources + +- [Reown — Docs](https://docs.reown.com) +- [Vite — GitHub](https://github.com/vitejs/vite) +- [Vite — Docs](https://vitejs.dev/guide/) diff --git a/appkit-dapp/eslint.config.js b/appkit-dapp/eslint.config.js new file mode 100644 index 0000000000..092408a9f0 --- /dev/null +++ b/appkit-dapp/eslint.config.js @@ -0,0 +1,28 @@ +import js from '@eslint/js' +import globals from 'globals' +import reactHooks from 'eslint-plugin-react-hooks' +import reactRefresh from 'eslint-plugin-react-refresh' +import tseslint from 'typescript-eslint' + +export default tseslint.config( + { ignores: ['dist'] }, + { + extends: [js.configs.recommended, ...tseslint.configs.recommended], + files: ['**/*.{ts,tsx}'], + languageOptions: { + ecmaVersion: 2020, + globals: globals.browser, + }, + plugins: { + 'react-hooks': reactHooks, + 'react-refresh': reactRefresh, + }, + rules: { + ...reactHooks.configs.recommended.rules, + 'react-refresh/only-export-components': [ + 'warn', + { allowConstantExport: true }, + ], + }, + }, +) diff --git a/appkit-dapp/index.html b/appkit-dapp/index.html new file mode 100644 index 0000000000..c4c4f5f07b --- /dev/null +++ b/appkit-dapp/index.html @@ -0,0 +1,13 @@ + + + + + + + Reown Appkit Example + + +
+ + + diff --git a/appkit-dapp/package-lock.json b/appkit-dapp/package-lock.json new file mode 100644 index 0000000000..c61fbbd7b1 --- /dev/null +++ b/appkit-dapp/package-lock.json @@ -0,0 +1,8050 @@ +{ + "name": "react-wagmi-appkit", + "version": "0.0.1", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "react-wagmi-appkit", + "version": "0.0.1", + "dependencies": { + "@rabby-wallet/rabbykit": "^0.1.2", + "@reown/appkit": "^1.7.0", + "@reown/appkit-adapter-wagmi": "^1.7.0", + "@reown/walletkit": "^1.2.2", + "@tanstack/react-query": "^5.74.4", + "@wagmi/connectors": "^5.7.11", + "@wagmi/core": "^2.16.7", + "@walletconnect/core": "^2.19.1", + "@walletconnect/utils": "^2.19.1", + "react": "19.0.0", + "react-dom": "19.0.0", + "viem": "^2.27.2", + "wagmi": "^2.14.16" + }, + "devDependencies": { + "@eslint/js": "^9.9.0", + "@types/react": "^19.0.10", + "@types/react-dom": "^19.0.4", + "@vitejs/plugin-react": "^4.3.1", + "eslint": "^9.9.0", + "eslint-plugin-react-hooks": "^5.1.0-rc.0", + "eslint-plugin-react-refresh": "^0.4.9", + "globals": "^16.0.0", + "typescript": "^5.5.3", + "typescript-eslint": "^8.0.1", + "vite": "^6.2.0" + } + }, + "node_modules/@adraffy/ens-normalize": { + "version": "1.11.0", + "resolved": "https://registry.npmjs.org/@adraffy/ens-normalize/-/ens-normalize-1.11.0.tgz", + "integrity": "sha512-/3DDPKHqqIqxUULp8yP4zODUY1i+2xvVWsv8A79xGWdCAG+8sb0hRh0Rk2QyOJUnnbyPUAZYcpBuRe3nS2OIUg==" + }, + "node_modules/@ampproject/remapping": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.3.0.tgz", + "integrity": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/code-frame": { + "version": "7.26.2", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.26.2.tgz", + "integrity": "sha512-RJlIHRueQgwWitWgF8OdFYGZX328Ax5BCemNGlqHfplnRT9ESi8JkFlvaVYbS+UubVY6dpv87Fs2u5M29iNFVQ==", + "dev": true, + "dependencies": { + "@babel/helper-validator-identifier": "^7.25.9", + "js-tokens": "^4.0.0", + "picocolors": "^1.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/compat-data": { + "version": "7.26.8", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.26.8.tgz", + "integrity": "sha512-oH5UPLMWR3L2wEFLnFJ1TZXqHufiTKAiLfqw5zkhS4dKXLJ10yVztfil/twG8EDTA4F/tvVNw9nOl4ZMslB8rQ==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core": { + "version": "7.26.10", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.26.10.tgz", + "integrity": "sha512-vMqyb7XCDMPvJFFOaT9kxtiRh42GwlZEg1/uIgtZshS5a/8OaduUfCi7kynKgc3Tw/6Uo2D+db9qBttghhmxwQ==", + "dev": true, + "dependencies": { + "@ampproject/remapping": "^2.2.0", + "@babel/code-frame": "^7.26.2", + "@babel/generator": "^7.26.10", + "@babel/helper-compilation-targets": "^7.26.5", + "@babel/helper-module-transforms": "^7.26.0", + "@babel/helpers": "^7.26.10", + "@babel/parser": "^7.26.10", + "@babel/template": "^7.26.9", + "@babel/traverse": "^7.26.10", + "@babel/types": "^7.26.10", + "convert-source-map": "^2.0.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.3", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@babel/generator": { + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.27.0.tgz", + "integrity": "sha512-VybsKvpiN1gU1sdMZIp7FcqphVVKEwcuj02x73uvcHE0PTihx1nlBcowYWhDwjpoAXRv43+gDzyggGnn1XZhVw==", + "dev": true, + "dependencies": { + "@babel/parser": "^7.27.0", + "@babel/types": "^7.27.0", + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.25", + "jsesc": "^3.0.2" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets": { + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.27.0.tgz", + "integrity": "sha512-LVk7fbXml0H2xH34dFzKQ7TDZ2G4/rVTOrq9V+icbbadjbVxxeFeDsNHv2SrZeWoA+6ZiTyWYWtScEIW07EAcA==", + "dev": true, + "dependencies": { + "@babel/compat-data": "^7.26.8", + "@babel/helper-validator-option": "^7.25.9", + "browserslist": "^4.24.0", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.25.9.tgz", + "integrity": "sha512-tnUA4RsrmflIM6W6RFTLFSXITtl0wKjgpnLgXyowocVPrbYrLUXSBXDgTs8BlbmIzIdlBySRQjINYs2BAkiLtw==", + "dev": true, + "dependencies": { + "@babel/traverse": "^7.25.9", + "@babel/types": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms": { + "version": "7.26.0", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.26.0.tgz", + "integrity": "sha512-xO+xu6B5K2czEnQye6BHA7DolFFmS3LB7stHZFaOLb1pAwO1HWLS8fXA+eh0A2yIvltPVmx3eNNDBJA2SLHXFw==", + "dev": true, + "dependencies": { + "@babel/helper-module-imports": "^7.25.9", + "@babel/helper-validator-identifier": "^7.25.9", + "@babel/traverse": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-plugin-utils": { + "version": "7.26.5", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.26.5.tgz", + "integrity": "sha512-RS+jZcRdZdRFzMyr+wcsaqOmld1/EqTghfaBGQQd/WnRdzdlvSZ//kF7U8VQTxf1ynZ4cjUcYgjVGx13ewNPMg==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.25.9.tgz", + "integrity": "sha512-4A/SCr/2KLd5jrtOMFzaKjVtAei3+2r/NChoBNoZ3EyP/+GlhoaEGoWOZUmFmoITP7zOJyHIMm+DYRd8o3PvHA==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.25.9.tgz", + "integrity": "sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-option": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.25.9.tgz", + "integrity": "sha512-e/zv1co8pp55dNdEcCynfj9X7nyUKUXoUEwfXqaZt0omVOmDe9oOTdKStH4GmAw6zxMFs50ZayuMfHDKlO7Tfw==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.27.0.tgz", + "integrity": "sha512-U5eyP/CTFPuNE3qk+WZMxFkp/4zUzdceQlfzf7DdGdhp+Fezd7HD+i8Y24ZuTMKX3wQBld449jijbGq6OdGNQg==", + "dev": true, + "dependencies": { + "@babel/template": "^7.27.0", + "@babel/types": "^7.27.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.27.0.tgz", + "integrity": "sha512-iaepho73/2Pz7w2eMS0Q5f83+0RKI7i4xmiYeBmDzfRVbQtTOG7Ts0S4HzJVsTMGI9keU8rNfuZr8DKfSt7Yyg==", + "dev": true, + "dependencies": { + "@babel/types": "^7.27.0" + }, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/plugin-transform-react-jsx-self": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.25.9.tgz", + "integrity": "sha512-y8quW6p0WHkEhmErnfe58r7x0A70uKphQm8Sp8cV7tjNQwK56sNVK0M73LK3WuYmsuyrftut4xAkjjgU0twaMg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-react-jsx-source": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.25.9.tgz", + "integrity": "sha512-+iqjT8xmXhhYv4/uiYd8FNQsraMFZIfxVSqxxVSZP0WbbSAWvBXAul0m/zu+7Vv4O/3WtApy9pmaTMiumEZgfg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/runtime": { + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.27.0.tgz", + "integrity": "sha512-VtPOkrdPHZsKc/clNqyi9WUA8TINkZ4cGk63UUE3u4pmB2k+ZMQRDuIOagv8UVd6j7k0T3+RRIb7beKTebNbcw==", + "dependencies": { + "regenerator-runtime": "^0.14.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/template": { + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.27.0.tgz", + "integrity": "sha512-2ncevenBqXI6qRMukPlXwHKHchC7RyMuu4xv5JBXRfOGVcTy1mXCD12qrp7Jsoxll1EV3+9sE4GugBVRjT2jFA==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.26.2", + "@babel/parser": "^7.27.0", + "@babel/types": "^7.27.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.27.0.tgz", + "integrity": "sha512-19lYZFzYVQkkHkl4Cy4WrAVcqBkgvV2YM2TU3xG6DIwO7O3ecbDPfW3yM3bjAGcqcQHi+CCtjMR3dIEHxsd6bA==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.26.2", + "@babel/generator": "^7.27.0", + "@babel/parser": "^7.27.0", + "@babel/template": "^7.27.0", + "@babel/types": "^7.27.0", + "debug": "^4.3.1", + "globals": "^11.1.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse/node_modules/globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/types": { + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.27.0.tgz", + "integrity": "sha512-H45s8fVLYjbhFH62dIJ3WtmJ6RSPt/3DRO0ZcT2SUiYiQyz3BLVb9ADEnLl91m74aQPS3AzzeajZHYOalWe3bg==", + "dev": true, + "dependencies": { + "@babel/helper-string-parser": "^7.25.9", + "@babel/helper-validator-identifier": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@coinbase/wallet-sdk": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@coinbase/wallet-sdk/-/wallet-sdk-4.3.0.tgz", + "integrity": "sha512-T3+SNmiCw4HzDm4we9wCHCxlP0pqCiwKe4sOwPH3YAK2KSKjxPRydKu6UQJrdONFVLG7ujXvbd/6ZqmvJb8rkw==", + "dependencies": { + "@noble/hashes": "^1.4.0", + "clsx": "^1.2.1", + "eventemitter3": "^5.0.1", + "preact": "^10.24.2" + } + }, + "node_modules/@ecies/ciphers": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/@ecies/ciphers/-/ciphers-0.2.3.tgz", + "integrity": "sha512-tapn6XhOueMwht3E2UzY0ZZjYokdaw9XtL9kEyjhQ/Fb9vL9xTFbOaI+fV0AWvTpYu4BNloC6getKW6NtSg4mA==", + "engines": { + "bun": ">=1", + "deno": ">=2", + "node": ">=16" + }, + "peerDependencies": { + "@noble/ciphers": "^1.0.0" + } + }, + "node_modules/@esbuild/aix-ppc64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.1.tgz", + "integrity": "sha512-kfYGy8IdzTGy+z0vFGvExZtxkFlA4zAxgKEahG9KE1ScBjpQnFsNOX8KTU5ojNru5ed5CVoJYXFtoxaq5nFbjQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.1.tgz", + "integrity": "sha512-dp+MshLYux6j/JjdqVLnMglQlFu+MuVeNrmT5nk6q07wNhCdSnB7QZj+7G8VMUGh1q+vj2Bq8kRsuyA00I/k+Q==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.1.tgz", + "integrity": "sha512-50tM0zCJW5kGqgG7fQ7IHvQOcAn9TKiVRuQ/lN0xR+T2lzEFvAi1ZcS8DiksFcEpf1t/GYOeOfCAgDHFpkiSmA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.1.tgz", + "integrity": "sha512-GCj6WfUtNldqUzYkN/ITtlhwQqGWu9S45vUXs7EIYf+7rCiiqH9bCloatO9VhxsL0Pji+PF4Lz2XXCES+Q8hDw==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.1.tgz", + "integrity": "sha512-5hEZKPf+nQjYoSr/elb62U19/l1mZDdqidGfmFutVUjjUZrOazAtwK+Kr+3y0C/oeJfLlxo9fXb1w7L+P7E4FQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.1.tgz", + "integrity": "sha512-hxVnwL2Dqs3fM1IWq8Iezh0cX7ZGdVhbTfnOy5uURtao5OIVCEyj9xIzemDi7sRvKsuSdtCAhMKarxqtlyVyfA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.1.tgz", + "integrity": "sha512-1MrCZs0fZa2g8E+FUo2ipw6jw5qqQiH+tERoS5fAfKnRx6NXH31tXBKI3VpmLijLH6yriMZsxJtaXUyFt/8Y4A==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.1.tgz", + "integrity": "sha512-0IZWLiTyz7nm0xuIs0q1Y3QWJC52R8aSXxe40VUxm6BB1RNmkODtW6LHvWRrGiICulcX7ZvyH6h5fqdLu4gkww==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.1.tgz", + "integrity": "sha512-NdKOhS4u7JhDKw9G3cY6sWqFcnLITn6SqivVArbzIaf3cemShqfLGHYMx8Xlm/lBit3/5d7kXvriTUGa5YViuQ==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.1.tgz", + "integrity": "sha512-jaN3dHi0/DDPelk0nLcXRm1q7DNJpjXy7yWaWvbfkPvI+7XNSc/lDOnCLN7gzsyzgu6qSAmgSvP9oXAhP973uQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.1.tgz", + "integrity": "sha512-OJykPaF4v8JidKNGz8c/q1lBO44sQNUQtq1KktJXdBLn1hPod5rE/Hko5ugKKZd+D2+o1a9MFGUEIUwO2YfgkQ==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.1.tgz", + "integrity": "sha512-nGfornQj4dzcq5Vp835oM/o21UMlXzn79KobKlcs3Wz9smwiifknLy4xDCLUU0BWp7b/houtdrgUz7nOGnfIYg==", + "cpu": [ + "loong64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.1.tgz", + "integrity": "sha512-1osBbPEFYwIE5IVB/0g2X6i1qInZa1aIoj1TdL4AaAb55xIIgbg8Doq6a5BzYWgr+tEcDzYH67XVnTmUzL+nXg==", + "cpu": [ + "mips64el" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.1.tgz", + "integrity": "sha512-/6VBJOwUf3TdTvJZ82qF3tbLuWsscd7/1w+D9LH0W/SqUgM5/JJD0lrJ1fVIfZsqB6RFmLCe0Xz3fmZc3WtyVg==", + "cpu": [ + "ppc64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.1.tgz", + "integrity": "sha512-nSut/Mx5gnilhcq2yIMLMe3Wl4FK5wx/o0QuuCLMtmJn+WeWYoEGDN1ipcN72g1WHsnIbxGXd4i/MF0gTcuAjQ==", + "cpu": [ + "riscv64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.1.tgz", + "integrity": "sha512-cEECeLlJNfT8kZHqLarDBQso9a27o2Zd2AQ8USAEoGtejOrCYHNtKP8XQhMDJMtthdF4GBmjR2au3x1udADQQQ==", + "cpu": [ + "s390x" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.1.tgz", + "integrity": "sha512-xbfUhu/gnvSEg+EGovRc+kjBAkrvtk38RlerAzQxvMzlB4fXpCFCeUAYzJvrnhFtdeyVCDANSjJvOvGYoeKzFA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-arm64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.1.tgz", + "integrity": "sha512-O96poM2XGhLtpTh+s4+nP7YCCAfb4tJNRVZHfIE7dgmax+yMP2WgMd2OecBuaATHKTHsLWHQeuaxMRnCsH8+5g==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.1.tgz", + "integrity": "sha512-X53z6uXip6KFXBQ+Krbx25XHV/NCbzryM6ehOAeAil7X7oa4XIq+394PWGnwaSQ2WRA0KI6PUO6hTO5zeF5ijA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-arm64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.1.tgz", + "integrity": "sha512-Na9T3szbXezdzM/Kfs3GcRQNjHzM6GzFBeU1/6IV/npKP5ORtp9zbQjvkDJ47s6BCgaAZnnnu/cY1x342+MvZg==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.1.tgz", + "integrity": "sha512-T3H78X2h1tszfRSf+txbt5aOp/e7TAz3ptVKu9Oyir3IAOFPGV6O9c2naym5TOriy1l0nNf6a4X5UXRZSGX/dw==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.1.tgz", + "integrity": "sha512-2H3RUvcmULO7dIE5EWJH8eubZAI4xw54H1ilJnRNZdeo8dTADEZ21w6J22XBkXqGJbe0+wnNJtw3UXRoLJnFEg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.1.tgz", + "integrity": "sha512-GE7XvrdOzrb+yVKB9KsRMq+7a2U/K5Cf/8grVFRAGJmfADr/e/ODQ134RK2/eeHqYV5eQRFxb1hY7Nr15fv1NQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.1.tgz", + "integrity": "sha512-uOxSJCIcavSiT6UnBhBzE8wy3n0hOkJsBOzy7HDAuTDE++1DJMRRVCPGisULScHL+a/ZwdXPpXD3IyFKjA7K8A==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.1.tgz", + "integrity": "sha512-Y1EQdcfwMSeQN/ujR5VayLOJ1BHaK+ssyk0AEzPjC+t1lITgsnccPqFjb6V+LsTp/9Iov4ysfjxLaGJ9RPtkVg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.5.1", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.5.1.tgz", + "integrity": "sha512-soEIOALTfTK6EjmKMMoLugwaP0rzkad90iIWd1hMO9ARkSAyjfMfkRRhLvD5qH7vvM0Cg72pieUfR6yh6XxC4w==", + "dev": true, + "dependencies": { + "eslint-visitor-keys": "^3.4.3" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + } + }, + "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint-community/regexpp": { + "version": "4.12.1", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.1.tgz", + "integrity": "sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==", + "dev": true, + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, + "node_modules/@eslint/config-array": { + "version": "0.19.2", + "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.19.2.tgz", + "integrity": "sha512-GNKqxfHG2ySmJOBSHg7LxeUx4xpuCoFjacmlCoYWEbaPXLwvfIjixRI12xCQZeULksQb23uiA8F40w5TojpV7w==", + "dev": true, + "dependencies": { + "@eslint/object-schema": "^2.1.6", + "debug": "^4.3.1", + "minimatch": "^3.1.2" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/config-helpers": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.2.0.tgz", + "integrity": "sha512-yJLLmLexii32mGrhW29qvU3QBVTu0GUmEf/J4XsBtVhp4JkIUFN/BjWqTF63yRvGApIDpZm5fa97LtYtINmfeQ==", + "dev": true, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/core": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.12.0.tgz", + "integrity": "sha512-cmrR6pytBuSMTaBweKoGMwu3EiHiEC+DoyupPmlZ0HxBJBtIxwe+j/E4XPIKNx+Q74c8lXKPwYawBf5glsTkHg==", + "dev": true, + "dependencies": { + "@types/json-schema": "^7.0.15" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/eslintrc": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.1.tgz", + "integrity": "sha512-gtF186CXhIl1p4pJNGZw8Yc6RlshoePRvE0X91oPGb3vZ8pM3qOS9W9NGPat9LziaBV7XrJWGylNQXkGcnM3IQ==", + "dev": true, + "dependencies": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^10.0.1", + "globals": "^14.0.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint/eslintrc/node_modules/globals": { + "version": "14.0.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", + "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", + "dev": true, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@eslint/js": { + "version": "9.23.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.23.0.tgz", + "integrity": "sha512-35MJ8vCPU0ZMxo7zfev2pypqTwWTofFZO6m4KAtdoFhRpLJUpHTZZ+KB3C7Hb1d7bULYwO4lJXGCi5Se+8OMbw==", + "dev": true, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/object-schema": { + "version": "2.1.6", + "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.6.tgz", + "integrity": "sha512-RBMg5FRL0I0gs51M/guSAj5/e14VQ4tpZnQNWwuDT66P14I43ItmPfIZRhO9fUVIPOAQXU47atlywZ/czoqFPA==", + "dev": true, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/plugin-kit": { + "version": "0.2.7", + "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.2.7.tgz", + "integrity": "sha512-JubJ5B2pJ4k4yGxaNLdbjrnk9d/iDz6/q8wOilpIowd6PJPgaxCuHBnBszq7Ce2TyMrywm5r4PnKm6V3iiZF+g==", + "dev": true, + "dependencies": { + "@eslint/core": "^0.12.0", + "levn": "^0.4.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@ethereumjs/common": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/@ethereumjs/common/-/common-3.2.0.tgz", + "integrity": "sha512-pksvzI0VyLgmuEF2FA/JR/4/y6hcPq8OUail3/AvycBaW1d5VSauOZzqGvJ3RTmR4MU35lWE8KseKOsEhrFRBA==", + "dependencies": { + "@ethereumjs/util": "^8.1.0", + "crc-32": "^1.2.0" + } + }, + "node_modules/@ethereumjs/rlp": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@ethereumjs/rlp/-/rlp-4.0.1.tgz", + "integrity": "sha512-tqsQiBQDQdmPWE1xkkBq4rlSW5QZpLOUJ5RJh2/9fug+q9tnUhuZoVLk7s0scUIKTOzEtR72DFBXI4WiZcMpvw==", + "bin": { + "rlp": "bin/rlp" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@ethereumjs/tx": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/@ethereumjs/tx/-/tx-4.2.0.tgz", + "integrity": "sha512-1nc6VO4jtFd172BbSnTnDQVr9IYBFl1y4xPzZdtkrkKIncBCkdbgfdRV+MiTkJYAtTxvV12GRZLqBFT1PNK6Yw==", + "dependencies": { + "@ethereumjs/common": "^3.2.0", + "@ethereumjs/rlp": "^4.0.1", + "@ethereumjs/util": "^8.1.0", + "ethereum-cryptography": "^2.0.0" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@ethereumjs/util": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/@ethereumjs/util/-/util-8.1.0.tgz", + "integrity": "sha512-zQ0IqbdX8FZ9aw11vP+dZkKDkS+kgIvQPHnSAXzP9pLu+Rfu3D3XEeLbicvoXJTYnhZiPmsZUxgdzXwNKxRPbA==", + "dependencies": { + "@ethereumjs/rlp": "^4.0.1", + "ethereum-cryptography": "^2.0.0", + "micro-ftch": "^0.3.1" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@formatjs/ecma402-abstract": { + "version": "2.3.4", + "resolved": "https://registry.npmjs.org/@formatjs/ecma402-abstract/-/ecma402-abstract-2.3.4.tgz", + "integrity": "sha512-qrycXDeaORzIqNhBOx0btnhpD1c+/qFIHAN9znofuMJX6QBwtbrmlpWfD4oiUUD2vJUOIYFA/gYtg2KAMGG7sA==", + "dependencies": { + "@formatjs/fast-memoize": "2.2.7", + "@formatjs/intl-localematcher": "0.6.1", + "decimal.js": "^10.4.3", + "tslib": "^2.8.0" + } + }, + "node_modules/@formatjs/fast-memoize": { + "version": "2.2.7", + "resolved": "https://registry.npmjs.org/@formatjs/fast-memoize/-/fast-memoize-2.2.7.tgz", + "integrity": "sha512-Yabmi9nSvyOMrlSeGGWDiH7rf3a7sIwplbvo/dlz9WCIjzIQAfy1RMf4S0X3yG724n5Ghu2GmEl5NJIV6O9sZQ==", + "dependencies": { + "tslib": "^2.8.0" + } + }, + "node_modules/@formatjs/icu-messageformat-parser": { + "version": "2.11.2", + "resolved": "https://registry.npmjs.org/@formatjs/icu-messageformat-parser/-/icu-messageformat-parser-2.11.2.tgz", + "integrity": "sha512-AfiMi5NOSo2TQImsYAg8UYddsNJ/vUEv/HaNqiFjnI3ZFfWihUtD5QtuX6kHl8+H+d3qvnE/3HZrfzgdWpsLNA==", + "dependencies": { + "@formatjs/ecma402-abstract": "2.3.4", + "@formatjs/icu-skeleton-parser": "1.8.14", + "tslib": "^2.8.0" + } + }, + "node_modules/@formatjs/icu-skeleton-parser": { + "version": "1.8.14", + "resolved": "https://registry.npmjs.org/@formatjs/icu-skeleton-parser/-/icu-skeleton-parser-1.8.14.tgz", + "integrity": "sha512-i4q4V4qslThK4Ig8SxyD76cp3+QJ3sAqr7f6q9VVfeGtxG9OhiAk3y9XF6Q41OymsKzsGQ6OQQoJNY4/lI8TcQ==", + "dependencies": { + "@formatjs/ecma402-abstract": "2.3.4", + "tslib": "^2.8.0" + } + }, + "node_modules/@formatjs/intl-localematcher": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/@formatjs/intl-localematcher/-/intl-localematcher-0.6.1.tgz", + "integrity": "sha512-ePEgLgVCqi2BBFnTMWPfIghu6FkbZnnBVhO2sSxvLfrdFw7wCHAHiDoM2h4NRgjbaY7+B7HgOLZGkK187pZTZg==", + "dependencies": { + "tslib": "^2.8.0" + } + }, + "node_modules/@humanfs/core": { + "version": "0.19.1", + "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz", + "integrity": "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==", + "dev": true, + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanfs/node": { + "version": "0.16.6", + "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.6.tgz", + "integrity": "sha512-YuI2ZHQL78Q5HbhDiBA1X4LmYdXCKCMQIfw0pw7piHJwyREFebJUvrQN4cMssyES6x+vfUbx1CIpaQUKYdQZOw==", + "dev": true, + "dependencies": { + "@humanfs/core": "^0.19.1", + "@humanwhocodes/retry": "^0.3.0" + }, + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanfs/node/node_modules/@humanwhocodes/retry": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.3.1.tgz", + "integrity": "sha512-JBxkERygn7Bv/GbN5Rv8Ul6LVknS+5Bp6RgDC/O8gEBU/yeH5Ui5C/OlWrTb6qct7LjjfT6Re2NxB0ln0yYybA==", + "dev": true, + "engines": { + "node": ">=18.18" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true, + "engines": { + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/retry": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.2.tgz", + "integrity": "sha512-xeO57FpIu4p1Ri3Jq/EXq4ClRm86dVF2z/+kvFnyqVYRavTZmaFaUBbWCOuuTh0o/g7DSsk6kc2vrS4Vl5oPOQ==", + "dev": true, + "engines": { + "node": ">=18.18" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.8", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.8.tgz", + "integrity": "sha512-imAbBGkb+ebQyxKgzv5Hu2nmROxoDOXHh80evxdoXNOrvAnVx7zimzc1Oo5h9RlfV4vPXaE2iM5pOFbvOCClWA==", + "dependencies": { + "@jridgewell/set-array": "^1.2.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.24" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/set-array": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz", + "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz", + "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.25", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", + "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@lit-labs/ssr-dom-shim": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@lit-labs/ssr-dom-shim/-/ssr-dom-shim-1.3.0.tgz", + "integrity": "sha512-nQIWonJ6eFAvUUrSlwyHDm/aE8PBDu5kRpL0vHMg6K8fK3Diq1xdPjTnsJSwxABhaZ+5eBi1btQB5ShUTKo4nQ==" + }, + "node_modules/@lit/reactive-element": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@lit/reactive-element/-/reactive-element-2.0.4.tgz", + "integrity": "sha512-GFn91inaUa2oHLak8awSIigYz0cU0Payr1rcFsrkf5OJ5eSPxElyZfKh0f2p9FsTiZWXQdWGJeXZICEfXXYSXQ==", + "dependencies": { + "@lit-labs/ssr-dom-shim": "^1.2.0" + } + }, + "node_modules/@metamask/eth-json-rpc-provider": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@metamask/eth-json-rpc-provider/-/eth-json-rpc-provider-1.0.1.tgz", + "integrity": "sha512-whiUMPlAOrVGmX8aKYVPvlKyG4CpQXiNNyt74vE1xb5sPvmx5oA7B/kOi/JdBvhGQq97U1/AVdXEdk2zkP8qyA==", + "dependencies": { + "@metamask/json-rpc-engine": "^7.0.0", + "@metamask/safe-event-emitter": "^3.0.0", + "@metamask/utils": "^5.0.1" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@metamask/eth-json-rpc-provider/node_modules/@metamask/json-rpc-engine": { + "version": "7.3.3", + "resolved": "https://registry.npmjs.org/@metamask/json-rpc-engine/-/json-rpc-engine-7.3.3.tgz", + "integrity": "sha512-dwZPq8wx9yV3IX2caLi9q9xZBw2XeIoYqdyihDDDpuHVCEiqadJLwqM3zy+uwf6F1QYQ65A8aOMQg1Uw7LMLNg==", + "dependencies": { + "@metamask/rpc-errors": "^6.2.1", + "@metamask/safe-event-emitter": "^3.0.0", + "@metamask/utils": "^8.3.0" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@metamask/eth-json-rpc-provider/node_modules/@metamask/json-rpc-engine/node_modules/@metamask/utils": { + "version": "8.5.0", + "resolved": "https://registry.npmjs.org/@metamask/utils/-/utils-8.5.0.tgz", + "integrity": "sha512-I6bkduevXb72TIM9q2LRO63JSsF9EXduh3sBr9oybNX2hNNpr/j1tEjXrsG0Uabm4MJ1xkGAQEMwifvKZIkyxQ==", + "dependencies": { + "@ethereumjs/tx": "^4.2.0", + "@metamask/superstruct": "^3.0.0", + "@noble/hashes": "^1.3.1", + "@scure/base": "^1.1.3", + "@types/debug": "^4.1.7", + "debug": "^4.3.4", + "pony-cause": "^2.1.10", + "semver": "^7.5.4", + "uuid": "^9.0.1" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@metamask/eth-json-rpc-provider/node_modules/@metamask/utils": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/@metamask/utils/-/utils-5.0.2.tgz", + "integrity": "sha512-yfmE79bRQtnMzarnKfX7AEJBwFTxvTyw3nBQlu/5rmGXrjAeAMltoGxO62TFurxrQAFMNa/fEjIHNvungZp0+g==", + "dependencies": { + "@ethereumjs/tx": "^4.1.2", + "@types/debug": "^4.1.7", + "debug": "^4.3.4", + "semver": "^7.3.8", + "superstruct": "^1.0.3" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@metamask/eth-json-rpc-provider/node_modules/semver": { + "version": "7.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz", + "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@metamask/eth-json-rpc-provider/node_modules/uuid": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", + "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==", + "funding": [ + "https://github.com/sponsors/broofa", + "https://github.com/sponsors/ctavan" + ], + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/@metamask/json-rpc-engine": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/@metamask/json-rpc-engine/-/json-rpc-engine-8.0.2.tgz", + "integrity": "sha512-IoQPmql8q7ABLruW7i4EYVHWUbF74yrp63bRuXV5Zf9BQwcn5H9Ww1eLtROYvI1bUXwOiHZ6qT5CWTrDc/t/AA==", + "dependencies": { + "@metamask/rpc-errors": "^6.2.1", + "@metamask/safe-event-emitter": "^3.0.0", + "@metamask/utils": "^8.3.0" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@metamask/json-rpc-middleware-stream": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@metamask/json-rpc-middleware-stream/-/json-rpc-middleware-stream-7.0.2.tgz", + "integrity": "sha512-yUdzsJK04Ev98Ck4D7lmRNQ8FPioXYhEUZOMS01LXW8qTvPGiRVXmVltj2p4wrLkh0vW7u6nv0mNl5xzC5Qmfg==", + "dependencies": { + "@metamask/json-rpc-engine": "^8.0.2", + "@metamask/safe-event-emitter": "^3.0.0", + "@metamask/utils": "^8.3.0", + "readable-stream": "^3.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@metamask/object-multiplex": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@metamask/object-multiplex/-/object-multiplex-2.1.0.tgz", + "integrity": "sha512-4vKIiv0DQxljcXwfpnbsXcfa5glMj5Zg9mqn4xpIWqkv6uJ2ma5/GtUfLFSxhlxnR8asRMv8dDmWya1Tc1sDFA==", + "dependencies": { + "once": "^1.4.0", + "readable-stream": "^3.6.2" + }, + "engines": { + "node": "^16.20 || ^18.16 || >=20" + } + }, + "node_modules/@metamask/onboarding": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@metamask/onboarding/-/onboarding-1.0.1.tgz", + "integrity": "sha512-FqHhAsCI+Vacx2qa5mAFcWNSrTcVGMNjzxVgaX8ECSny/BJ9/vgXP9V7WF/8vb9DltPeQkxr+Fnfmm6GHfmdTQ==", + "dependencies": { + "bowser": "^2.9.0" + } + }, + "node_modules/@metamask/providers": { + "version": "16.1.0", + "resolved": "https://registry.npmjs.org/@metamask/providers/-/providers-16.1.0.tgz", + "integrity": "sha512-znVCvux30+3SaUwcUGaSf+pUckzT5ukPRpcBmy+muBLC0yaWnBcvDqGfcsw6CBIenUdFrVoAFa8B6jsuCY/a+g==", + "dependencies": { + "@metamask/json-rpc-engine": "^8.0.1", + "@metamask/json-rpc-middleware-stream": "^7.0.1", + "@metamask/object-multiplex": "^2.0.0", + "@metamask/rpc-errors": "^6.2.1", + "@metamask/safe-event-emitter": "^3.1.1", + "@metamask/utils": "^8.3.0", + "detect-browser": "^5.2.0", + "extension-port-stream": "^3.0.0", + "fast-deep-equal": "^3.1.3", + "is-stream": "^2.0.0", + "readable-stream": "^3.6.2", + "webextension-polyfill": "^0.10.0" + }, + "engines": { + "node": "^18.18 || >=20" + } + }, + "node_modules/@metamask/rpc-errors": { + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/@metamask/rpc-errors/-/rpc-errors-6.4.0.tgz", + "integrity": "sha512-1ugFO1UoirU2esS3juZanS/Fo8C8XYocCuBpfZI5N7ECtoG+zu0wF+uWZASik6CkO6w9n/Iebt4iI4pT0vptpg==", + "dependencies": { + "@metamask/utils": "^9.0.0", + "fast-safe-stringify": "^2.0.6" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@metamask/rpc-errors/node_modules/@metamask/utils": { + "version": "9.3.0", + "resolved": "https://registry.npmjs.org/@metamask/utils/-/utils-9.3.0.tgz", + "integrity": "sha512-w8CVbdkDrVXFJbfBSlDfafDR6BAkpDmv1bC1UJVCoVny5tW2RKAdn9i68Xf7asYT4TnUhl/hN4zfUiKQq9II4g==", + "dependencies": { + "@ethereumjs/tx": "^4.2.0", + "@metamask/superstruct": "^3.1.0", + "@noble/hashes": "^1.3.1", + "@scure/base": "^1.1.3", + "@types/debug": "^4.1.7", + "debug": "^4.3.4", + "pony-cause": "^2.1.10", + "semver": "^7.5.4", + "uuid": "^9.0.1" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@metamask/rpc-errors/node_modules/semver": { + "version": "7.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz", + "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@metamask/rpc-errors/node_modules/uuid": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", + "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==", + "funding": [ + "https://github.com/sponsors/broofa", + "https://github.com/sponsors/ctavan" + ], + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/@metamask/safe-event-emitter": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@metamask/safe-event-emitter/-/safe-event-emitter-3.1.2.tgz", + "integrity": "sha512-5yb2gMI1BDm0JybZezeoX/3XhPDOtTbcFvpTXM9kxsoZjPZFh4XciqRbpD6N86HYZqWDhEaKUDuOyR0sQHEjMA==", + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/@metamask/sdk": { + "version": "0.32.0", + "resolved": "https://registry.npmjs.org/@metamask/sdk/-/sdk-0.32.0.tgz", + "integrity": "sha512-WmGAlP1oBuD9hk4CsdlG1WJFuPtYJY+dnTHJMeCyohTWD2GgkcLMUUuvu9lO1/NVzuOoSi1OrnjbuY1O/1NZ1g==", + "dependencies": { + "@babel/runtime": "^7.26.0", + "@metamask/onboarding": "^1.0.1", + "@metamask/providers": "16.1.0", + "@metamask/sdk-communication-layer": "0.32.0", + "@metamask/sdk-install-modal-web": "0.32.0", + "@paulmillr/qr": "^0.2.1", + "bowser": "^2.9.0", + "cross-fetch": "^4.0.0", + "debug": "^4.3.4", + "eciesjs": "^0.4.11", + "eth-rpc-errors": "^4.0.3", + "eventemitter2": "^6.4.9", + "obj-multiplex": "^1.0.0", + "pump": "^3.0.0", + "readable-stream": "^3.6.2", + "socket.io-client": "^4.5.1", + "tslib": "^2.6.0", + "util": "^0.12.4", + "uuid": "^8.3.2" + } + }, + "node_modules/@metamask/sdk-communication-layer": { + "version": "0.32.0", + "resolved": "https://registry.npmjs.org/@metamask/sdk-communication-layer/-/sdk-communication-layer-0.32.0.tgz", + "integrity": "sha512-dmj/KFjMi1fsdZGIOtbhxdg3amxhKL/A5BqSU4uh/SyDKPub/OT+x5pX8bGjpTL1WPWY/Q0OIlvFyX3VWnT06Q==", + "dependencies": { + "bufferutil": "^4.0.8", + "date-fns": "^2.29.3", + "debug": "^4.3.4", + "utf-8-validate": "^5.0.2", + "uuid": "^8.3.2" + }, + "peerDependencies": { + "cross-fetch": "^4.0.0", + "eciesjs": "*", + "eventemitter2": "^6.4.9", + "readable-stream": "^3.6.2", + "socket.io-client": "^4.5.1" + } + }, + "node_modules/@metamask/sdk-install-modal-web": { + "version": "0.32.0", + "resolved": "https://registry.npmjs.org/@metamask/sdk-install-modal-web/-/sdk-install-modal-web-0.32.0.tgz", + "integrity": "sha512-TFoktj0JgfWnQaL3yFkApqNwcaqJ+dw4xcnrJueMP3aXkSNev2Ido+WVNOg4IIMxnmOrfAC9t0UJ0u/dC9MjOQ==", + "dependencies": { + "@paulmillr/qr": "^0.2.1" + } + }, + "node_modules/@metamask/superstruct": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@metamask/superstruct/-/superstruct-3.1.0.tgz", + "integrity": "sha512-N08M56HdOgBfRKkrgCMZvQppkZGcArEop3kixNEtVbJKm6P9Cfg0YkI6X0s1g78sNrj2fWUwvJADdZuzJgFttA==", + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@metamask/utils": { + "version": "8.5.0", + "resolved": "https://registry.npmjs.org/@metamask/utils/-/utils-8.5.0.tgz", + "integrity": "sha512-I6bkduevXb72TIM9q2LRO63JSsF9EXduh3sBr9oybNX2hNNpr/j1tEjXrsG0Uabm4MJ1xkGAQEMwifvKZIkyxQ==", + "dependencies": { + "@ethereumjs/tx": "^4.2.0", + "@metamask/superstruct": "^3.0.0", + "@noble/hashes": "^1.3.1", + "@scure/base": "^1.1.3", + "@types/debug": "^4.1.7", + "debug": "^4.3.4", + "pony-cause": "^2.1.10", + "semver": "^7.5.4", + "uuid": "^9.0.1" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@metamask/utils/node_modules/semver": { + "version": "7.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz", + "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@metamask/utils/node_modules/uuid": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", + "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==", + "funding": [ + "https://github.com/sponsors/broofa", + "https://github.com/sponsors/ctavan" + ], + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/@motionone/animation": { + "version": "10.18.0", + "resolved": "https://registry.npmjs.org/@motionone/animation/-/animation-10.18.0.tgz", + "integrity": "sha512-9z2p5GFGCm0gBsZbi8rVMOAJCtw1WqBTIPw3ozk06gDvZInBPIsQcHgYogEJ4yuHJ+akuW8g1SEIOpTOvYs8hw==", + "license": "MIT", + "dependencies": { + "@motionone/easing": "^10.18.0", + "@motionone/types": "^10.17.1", + "@motionone/utils": "^10.18.0", + "tslib": "^2.3.1" + } + }, + "node_modules/@motionone/dom": { + "version": "10.18.0", + "resolved": "https://registry.npmjs.org/@motionone/dom/-/dom-10.18.0.tgz", + "integrity": "sha512-bKLP7E0eyO4B2UaHBBN55tnppwRnaE3KFfh3Ps9HhnAkar3Cb69kUCJY9as8LrccVYKgHA+JY5dOQqJLOPhF5A==", + "license": "MIT", + "dependencies": { + "@motionone/animation": "^10.18.0", + "@motionone/generators": "^10.18.0", + "@motionone/types": "^10.17.1", + "@motionone/utils": "^10.18.0", + "hey-listen": "^1.0.8", + "tslib": "^2.3.1" + } + }, + "node_modules/@motionone/easing": { + "version": "10.18.0", + "resolved": "https://registry.npmjs.org/@motionone/easing/-/easing-10.18.0.tgz", + "integrity": "sha512-VcjByo7XpdLS4o9T8t99JtgxkdMcNWD3yHU/n6CLEz3bkmKDRZyYQ/wmSf6daum8ZXqfUAgFeCZSpJZIMxaCzg==", + "license": "MIT", + "dependencies": { + "@motionone/utils": "^10.18.0", + "tslib": "^2.3.1" + } + }, + "node_modules/@motionone/generators": { + "version": "10.18.0", + "resolved": "https://registry.npmjs.org/@motionone/generators/-/generators-10.18.0.tgz", + "integrity": "sha512-+qfkC2DtkDj4tHPu+AFKVfR/C30O1vYdvsGYaR13W/1cczPrrcjdvYCj0VLFuRMN+lP1xvpNZHCRNM4fBzn1jg==", + "license": "MIT", + "dependencies": { + "@motionone/types": "^10.17.1", + "@motionone/utils": "^10.18.0", + "tslib": "^2.3.1" + } + }, + "node_modules/@motionone/svelte": { + "version": "10.16.4", + "resolved": "https://registry.npmjs.org/@motionone/svelte/-/svelte-10.16.4.tgz", + "integrity": "sha512-zRVqk20lD1xqe+yEDZhMYgftsuHc25+9JSo+r0a0OWUJFocjSV9D/+UGhX4xgJsuwB9acPzXLr20w40VnY2PQA==", + "license": "MIT", + "dependencies": { + "@motionone/dom": "^10.16.4", + "tslib": "^2.3.1" + } + }, + "node_modules/@motionone/types": { + "version": "10.17.1", + "resolved": "https://registry.npmjs.org/@motionone/types/-/types-10.17.1.tgz", + "integrity": "sha512-KaC4kgiODDz8hswCrS0btrVrzyU2CSQKO7Ps90ibBVSQmjkrt2teqta6/sOG59v7+dPnKMAg13jyqtMKV2yJ7A==", + "license": "MIT" + }, + "node_modules/@motionone/utils": { + "version": "10.18.0", + "resolved": "https://registry.npmjs.org/@motionone/utils/-/utils-10.18.0.tgz", + "integrity": "sha512-3XVF7sgyTSI2KWvTf6uLlBJ5iAgRgmvp3bpuOiQJvInd4nZ19ET8lX5unn30SlmRH7hXbBbH+Gxd0m0klJ3Xtw==", + "license": "MIT", + "dependencies": { + "@motionone/types": "^10.17.1", + "hey-listen": "^1.0.8", + "tslib": "^2.3.1" + } + }, + "node_modules/@motionone/vue": { + "version": "10.16.4", + "resolved": "https://registry.npmjs.org/@motionone/vue/-/vue-10.16.4.tgz", + "integrity": "sha512-z10PF9JV6SbjFq+/rYabM+8CVlMokgl8RFGvieSGNTmrkQanfHn+15XBrhG3BgUfvmTeSeyShfOHpG0i9zEdcg==", + "deprecated": "Motion One for Vue is deprecated. Use Oku Motion instead https://oku-ui.com/motion", + "license": "MIT", + "dependencies": { + "@motionone/dom": "^10.16.4", + "tslib": "^2.3.1" + } + }, + "node_modules/@noble/ciphers": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@noble/ciphers/-/ciphers-1.2.1.tgz", + "integrity": "sha512-rONPWMC7PeExE077uLE4oqWrZ1IvAfz3oH9LibVAcVCopJiA9R62uavnbEzdkVmJYI6M6Zgkbeb07+tWjlq2XA==", + "engines": { + "node": "^14.21.3 || >=16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@noble/curves": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.8.0.tgz", + "integrity": "sha512-j84kjAbzEnQHaSIhRPUmB3/eVXu2k3dKPl2LOrR8fSOIL+89U+7lV117EWHtq/GHM3ReGHM46iRBdZfpc4HRUQ==", + "dependencies": { + "@noble/hashes": "1.7.0" + }, + "engines": { + "node": "^14.21.3 || >=16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@noble/curves/node_modules/@noble/hashes": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.7.0.tgz", + "integrity": "sha512-HXydb0DgzTpDPwbVeDGCG1gIu7X6+AuU6Zl6av/E/KG8LMsvPntvq+w17CHRpKBmN6Ybdrt1eP3k4cj8DJa78w==", + "engines": { + "node": "^14.21.3 || >=16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@noble/hashes": { + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.7.1.tgz", + "integrity": "sha512-B8XBPsn4vT/KJAGqDzbwztd+6Yte3P4V7iafm24bxgDe/mlRuK6xmWPuCNrKt2vDafZ8MfJLlchDG/vYafQEjQ==", + "engines": { + "node": "^14.21.3 || >=16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dev": true, + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@paulmillr/qr": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/@paulmillr/qr/-/qr-0.2.1.tgz", + "integrity": "sha512-IHnV6A+zxU7XwmKFinmYjUcwlyK9+xkG3/s9KcQhI9BjQKycrJ1JRO+FbNYPwZiPKW3je/DR0k7w8/gLa5eaxQ==", + "deprecated": "The package is now available as \"qr\": npm install qr", + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@rabby-wallet/rabbykit": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/@rabby-wallet/rabbykit/-/rabbykit-0.1.2.tgz", + "integrity": "sha512-fJgLE0bo78G6jm63D2CmNOxi9x0M/0Re7U12TXM8ZJFlMf+wNxqUIsTjWhXQZF3w+Mg7I7t6Kf3KJwyoyxIjWg==", + "dependencies": { + "clsx": "^2.0.0", + "dequal": "^2.0.3", + "mipd": "^0.0.5", + "qrcode": "^1.5.3", + "react": ">=16.8", + "svelte": "^4.2.6", + "svelte-i18n": "^4.0.0", + "zustand": "^4.4.1" + }, + "peerDependencies": { + "@wagmi/core": "2.x", + "viem": "2.x", + "wagmi": "2.x" + }, + "peerDependenciesMeta": { + "react": { + "optional": true + }, + "react-dom": { + "optional": true + }, + "wagmi": { + "optional": true + } + } + }, + "node_modules/@rabby-wallet/rabbykit/node_modules/@adraffy/ens-normalize": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@adraffy/ens-normalize/-/ens-normalize-1.10.0.tgz", + "integrity": "sha512-nA9XHtlAkYfJxY7bce8DcN7eKxWWCWkU+1GR9d+U6MbNpfwQp8TI7vqOsBsMcHoT4mBu2kypKoSKnghEzOOq5Q==" + }, + "node_modules/@rabby-wallet/rabbykit/node_modules/@noble/curves": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.2.0.tgz", + "integrity": "sha512-oYclrNgRaM9SsBUBVbb8M6DTV7ZHRTKugureoYEncY5c65HOmRzvSiTE3y5CYaPYJA/GVkrhXEoF0M3Ya9PMnw==", + "dependencies": { + "@noble/hashes": "1.3.2" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@rabby-wallet/rabbykit/node_modules/@noble/hashes": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.2.tgz", + "integrity": "sha512-MVC8EAQp7MvEcm30KWENFjgR+Mkmf+D189XJTkFIlwohU5hcBbn1ZkKq7KVTi2Hme3PMGF390DaL52beVrIihQ==", + "engines": { + "node": ">= 16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@rabby-wallet/rabbykit/node_modules/@scure/base": { + "version": "1.1.9", + "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.1.9.tgz", + "integrity": "sha512-8YKhl8GHiNI/pU2VMaofa2Tor7PJRAjwQLBBuilkJ9L5+13yVbC7JO/wS7piioAvPSwR3JKM1IJ/u4xQzbcXKg==", + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@rabby-wallet/rabbykit/node_modules/@scure/bip32": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.3.2.tgz", + "integrity": "sha512-N1ZhksgwD3OBlwTv3R6KFEcPojl/W4ElJOeCZdi+vuI5QmTFwLq3OFf2zd2ROpKvxFdgZ6hUpb0dx9bVNEwYCA==", + "dependencies": { + "@noble/curves": "~1.2.0", + "@noble/hashes": "~1.3.2", + "@scure/base": "~1.1.2" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@rabby-wallet/rabbykit/node_modules/@scure/bip39": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.2.1.tgz", + "integrity": "sha512-Z3/Fsz1yr904dduJD0NpiyRHhRYHdcnyh73FZWiV+/qhWi83wNJ3NWolYqCEN+ZWsUz2TWwajJggcRE9r1zUYg==", + "dependencies": { + "@noble/hashes": "~1.3.0", + "@scure/base": "~1.1.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@rabby-wallet/rabbykit/node_modules/abitype": { + "version": "0.9.8", + "resolved": "https://registry.npmjs.org/abitype/-/abitype-0.9.8.tgz", + "integrity": "sha512-puLifILdm+8sjyss4S+fsUN09obiT1g2YW6CtcQF+QDzxR0euzgEB29MZujC6zMk2a6SVmtttq1fc6+YFA7WYQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/wagmi-dev" + } + ], + "peerDependencies": { + "typescript": ">=5.0.4", + "zod": "^3 >=3.19.1" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + }, + "zod": { + "optional": true + } + } + }, + "node_modules/@rabby-wallet/rabbykit/node_modules/clsx": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.1.tgz", + "integrity": "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==", + "engines": { + "node": ">=6" + } + }, + "node_modules/@rabby-wallet/rabbykit/node_modules/isows": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/isows/-/isows-1.0.3.tgz", + "integrity": "sha512-2cKei4vlmg2cxEjm3wVSqn8pcoRF/LX/wpifuuNquFO4SQmPwarClT+SUCA2lt+l581tTeZIPIZuIDo2jWN1fg==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/wagmi-dev" + } + ], + "peerDependencies": { + "ws": "*" + } + }, + "node_modules/@rabby-wallet/rabbykit/node_modules/mipd": { + "version": "0.0.5", + "resolved": "https://registry.npmjs.org/mipd/-/mipd-0.0.5.tgz", + "integrity": "sha512-gbKA784D2WKb5H/GtqEv+Ofd1S9Zj+Z/PGDIl1u1QAbswkxD28BQ5bSXQxkeBzPBABg1iDSbiwGG1XqlOxRspA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/wagmi-dev" + } + ], + "dependencies": { + "viem": "^1.1.4" + }, + "peerDependencies": { + "typescript": ">=5.0.4" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@rabby-wallet/rabbykit/node_modules/mipd/node_modules/viem": { + "version": "1.21.4", + "resolved": "https://registry.npmjs.org/viem/-/viem-1.21.4.tgz", + "integrity": "sha512-BNVYdSaUjeS2zKQgPs+49e5JKocfo60Ib2yiXOWBT6LuVxY1I/6fFX3waEtpXvL1Xn4qu+BVitVtMh9lyThyhQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/wevm" + } + ], + "dependencies": { + "@adraffy/ens-normalize": "1.10.0", + "@noble/curves": "1.2.0", + "@noble/hashes": "1.3.2", + "@scure/bip32": "1.3.2", + "@scure/bip39": "1.2.1", + "abitype": "0.9.8", + "isows": "1.0.3", + "ws": "8.13.0" + }, + "peerDependencies": { + "typescript": ">=5.0.4" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@rabby-wallet/rabbykit/node_modules/ws": { + "version": "8.13.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.13.0.tgz", + "integrity": "sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA==", + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": ">=5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/@rabby-wallet/rabbykit/node_modules/zustand": { + "version": "4.5.6", + "resolved": "https://registry.npmjs.org/zustand/-/zustand-4.5.6.tgz", + "integrity": "sha512-ibr/n1hBzLLj5Y+yUcU7dYw8p6WnIVzdJbnX+1YpaScvZVF2ziugqHs+LAmHw4lWO9c/zRj+K1ncgWDQuthEdQ==", + "dependencies": { + "use-sync-external-store": "^1.2.2" + }, + "engines": { + "node": ">=12.7.0" + }, + "peerDependencies": { + "@types/react": ">=16.8", + "immer": ">=9.0.6", + "react": ">=16.8" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "immer": { + "optional": true + }, + "react": { + "optional": true + } + } + }, + "node_modules/@reown/appkit": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@reown/appkit/-/appkit-1.7.0.tgz", + "integrity": "sha512-/F+By2dfoXJNuAdq/atRM1wt5PlWjUSpIQnk4j3rIFxmch0XJnw6YZzdMaDH0dNfzP2+ymUFsN7CFt7Se4QgoA==", + "license": "Apache-2.0", + "dependencies": { + "@reown/appkit-common": "1.7.0", + "@reown/appkit-controllers": "1.7.0", + "@reown/appkit-polyfills": "1.7.0", + "@reown/appkit-scaffold-ui": "1.7.0", + "@reown/appkit-ui": "1.7.0", + "@reown/appkit-utils": "1.7.0", + "@reown/appkit-wallet": "1.7.0", + "@walletconnect/types": "2.19.1", + "@walletconnect/universal-provider": "2.19.1", + "bs58": "6.0.0", + "valtio": "1.13.2", + "viem": ">=2.23.5" + } + }, + "node_modules/@reown/appkit-adapter-wagmi": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@reown/appkit-adapter-wagmi/-/appkit-adapter-wagmi-1.7.0.tgz", + "integrity": "sha512-5xkwFQCu8Ezb2J3nnVv8fLjEoBjADggBrxYmOwPDzT6D5heWtkRC/HYx2STiy+vsbj0G8Vs/x+SXq753CR94/Q==", + "license": "Apache-2.0", + "dependencies": { + "@reown/appkit": "1.7.0", + "@reown/appkit-common": "1.7.0", + "@reown/appkit-controllers": "1.7.0", + "@reown/appkit-polyfills": "1.7.0", + "@reown/appkit-scaffold-ui": "1.7.0", + "@reown/appkit-utils": "1.7.0", + "@reown/appkit-wallet": "1.7.0", + "@walletconnect/universal-provider": "2.19.1", + "valtio": "1.13.2" + }, + "optionalDependencies": { + "@wagmi/connectors": ">=5.7" + }, + "peerDependencies": { + "@wagmi/core": ">=2.16.5", + "viem": ">=2.23.5", + "wagmi": ">=2.14.12" + } + }, + "node_modules/@reown/appkit-common": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@reown/appkit-common/-/appkit-common-1.7.0.tgz", + "integrity": "sha512-yJc5lQLt64+ZjhagqZar/H9S9EDKiZa9z/4mII4ZTpRiOfSlKvRS+tLcjiqJNr+dTft4nVbF71sbnVLZ/ON2UQ==", + "dependencies": { + "big.js": "6.2.2", + "dayjs": "1.11.13", + "viem": ">=2.23.5" + } + }, + "node_modules/@reown/appkit-controllers": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@reown/appkit-controllers/-/appkit-controllers-1.7.0.tgz", + "integrity": "sha512-npFnrPQdm4t5YT+ai+525sQRnZdAQjGMKQ11hYBKifAZafx8xr7yObvyxeR9d6aM0ku+OSFHErbALKM9iJFtXw==", + "dependencies": { + "@reown/appkit-common": "1.7.0", + "@reown/appkit-wallet": "1.7.0", + "@walletconnect/universal-provider": "2.19.1", + "valtio": "1.13.2", + "viem": ">=2.23.5" + } + }, + "node_modules/@reown/appkit-polyfills": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@reown/appkit-polyfills/-/appkit-polyfills-1.7.0.tgz", + "integrity": "sha512-j7pHuOvnaXUJmd+Hj2WYkBDxar3LM71Z/FY8Qr8OaQsb+e6U9ho033npYXHEAkfjTv4mB/B0Y7yTKAJhxV9Lpg==", + "dependencies": { + "buffer": "6.0.3" + } + }, + "node_modules/@reown/appkit-scaffold-ui": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@reown/appkit-scaffold-ui/-/appkit-scaffold-ui-1.7.0.tgz", + "integrity": "sha512-BNlN01gOpcqf4w5iYLz10FN574cZqhwobHSKKSgthTb2DBZpaSeIK2K+97ku2uGb8o00m+9aFyKaRDOU3XpNNQ==", + "dependencies": { + "@reown/appkit-common": "1.7.0", + "@reown/appkit-controllers": "1.7.0", + "@reown/appkit-ui": "1.7.0", + "@reown/appkit-utils": "1.7.0", + "@reown/appkit-wallet": "1.7.0", + "lit": "3.1.0" + } + }, + "node_modules/@reown/appkit-ui": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@reown/appkit-ui/-/appkit-ui-1.7.0.tgz", + "integrity": "sha512-a2sCBE3Me9dbsqW0544S/3FIoJh/RER4ZhU4e7I2rfskdTX6W5Orw/vm9wK2ItesVDD0SB3WpyQ3F/4bCkJt/w==", + "dependencies": { + "lit": "3.1.0", + "qrcode": "1.5.3" + } + }, + "node_modules/@reown/appkit-utils": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@reown/appkit-utils/-/appkit-utils-1.7.0.tgz", + "integrity": "sha512-D88Lzms0RFgocBrJmeUB7jHG+ZlU2hDQgwjTHvXW+UlMdH1fUb2btPLYyt2dqI0X3ubAcPsQPmpH458G7sUKPA==", + "dependencies": { + "@reown/appkit-common": "1.7.0", + "@reown/appkit-controllers": "1.7.0", + "@reown/appkit-polyfills": "1.7.0", + "@reown/appkit-wallet": "1.7.0", + "@walletconnect/logger": "2.1.2", + "@walletconnect/universal-provider": "2.19.1", + "valtio": "1.13.2", + "viem": ">=2.23.5" + }, + "peerDependencies": { + "valtio": "1.13.2" + } + }, + "node_modules/@reown/appkit-wallet": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@reown/appkit-wallet/-/appkit-wallet-1.7.0.tgz", + "integrity": "sha512-hXrPe5ZYbxAwyytdBcWT504lJ+L8ckXDcSGZg62nk+7sck3jqpXmwn24mI4eS/ThTj3ExxlOG4bcGiXu1EBFwQ==", + "dependencies": { + "@reown/appkit-common": "1.7.0", + "@reown/appkit-polyfills": "1.7.0", + "@walletconnect/logger": "2.1.2", + "zod": "3.22.4" + } + }, + "node_modules/@reown/walletkit": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/@reown/walletkit/-/walletkit-1.2.2.tgz", + "integrity": "sha512-wEncKeW1ybw8vnKg7232XDtlAncK4SGXPt8Ax9J8U6++7iY4kVnngmT+FBEbo+fMRgjHKr9o6i2cLUnhBuqT1w==", + "dependencies": { + "@walletconnect/core": "2.19.1", + "@walletconnect/jsonrpc-provider": "1.0.14", + "@walletconnect/jsonrpc-utils": "1.0.8", + "@walletconnect/logger": "2.1.2", + "@walletconnect/sign-client": "2.19.1", + "@walletconnect/types": "2.19.1", + "@walletconnect/utils": "2.19.1" + } + }, + "node_modules/@rollup/rollup-android-arm-eabi": { + "version": "4.37.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.37.0.tgz", + "integrity": "sha512-l7StVw6WAa8l3vA1ov80jyetOAEo1FtHvZDbzXDO/02Sq/QVvqlHkYoFwDJPIMj0GKiistsBudfx5tGFnwYWDQ==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-android-arm64": { + "version": "4.37.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.37.0.tgz", + "integrity": "sha512-6U3SlVyMxezt8Y+/iEBcbp945uZjJwjZimu76xoG7tO1av9VO691z8PkhzQ85ith2I8R2RddEPeSfcbyPfD4hA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-darwin-arm64": { + "version": "4.37.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.37.0.tgz", + "integrity": "sha512-+iTQ5YHuGmPt10NTzEyMPbayiNTcOZDWsbxZYR1ZnmLnZxG17ivrPSWFO9j6GalY0+gV3Jtwrrs12DBscxnlYA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-darwin-x64": { + "version": "4.37.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.37.0.tgz", + "integrity": "sha512-m8W2UbxLDcmRKVjgl5J/k4B8d7qX2EcJve3Sut7YGrQoPtCIQGPH5AMzuFvYRWZi0FVS0zEY4c8uttPfX6bwYQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-freebsd-arm64": { + "version": "4.37.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.37.0.tgz", + "integrity": "sha512-FOMXGmH15OmtQWEt174v9P1JqqhlgYge/bUjIbiVD1nI1NeJ30HYT9SJlZMqdo1uQFyt9cz748F1BHghWaDnVA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-freebsd-x64": { + "version": "4.37.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.37.0.tgz", + "integrity": "sha512-SZMxNttjPKvV14Hjck5t70xS3l63sbVwl98g3FlVVx2YIDmfUIy29jQrsw06ewEYQ8lQSuY9mpAPlmgRD2iSsA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-linux-arm-gnueabihf": { + "version": "4.37.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.37.0.tgz", + "integrity": "sha512-hhAALKJPidCwZcj+g+iN+38SIOkhK2a9bqtJR+EtyxrKKSt1ynCBeqrQy31z0oWU6thRZzdx53hVgEbRkuI19w==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm-musleabihf": { + "version": "4.37.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.37.0.tgz", + "integrity": "sha512-jUb/kmn/Gd8epbHKEqkRAxq5c2EwRt0DqhSGWjPFxLeFvldFdHQs/n8lQ9x85oAeVb6bHcS8irhTJX2FCOd8Ag==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-gnu": { + "version": "4.37.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.37.0.tgz", + "integrity": "sha512-oNrJxcQT9IcbcmKlkF+Yz2tmOxZgG9D9GRq+1OE6XCQwCVwxixYAa38Z8qqPzQvzt1FCfmrHX03E0pWoXm1DqA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-musl": { + "version": "4.37.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.37.0.tgz", + "integrity": "sha512-pfxLBMls+28Ey2enpX3JvjEjaJMBX5XlPCZNGxj4kdJyHduPBXtxYeb8alo0a7bqOoWZW2uKynhHxF/MWoHaGQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-loongarch64-gnu": { + "version": "4.37.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loongarch64-gnu/-/rollup-linux-loongarch64-gnu-4.37.0.tgz", + "integrity": "sha512-yCE0NnutTC/7IGUq/PUHmoeZbIwq3KRh02e9SfFh7Vmc1Z7atuJRYWhRME5fKgT8aS20mwi1RyChA23qSyRGpA==", + "cpu": [ + "loong64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-powerpc64le-gnu": { + "version": "4.37.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.37.0.tgz", + "integrity": "sha512-NxcICptHk06E2Lh3a4Pu+2PEdZ6ahNHuK7o6Np9zcWkrBMuv21j10SQDJW3C9Yf/A/P7cutWoC/DptNLVsZ0VQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-gnu": { + "version": "4.37.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.37.0.tgz", + "integrity": "sha512-PpWwHMPCVpFZLTfLq7EWJWvrmEuLdGn1GMYcm5MV7PaRgwCEYJAwiN94uBuZev0/J/hFIIJCsYw4nLmXA9J7Pw==", + "cpu": [ + "riscv64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-musl": { + "version": "4.37.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.37.0.tgz", + "integrity": "sha512-DTNwl6a3CfhGTAOYZ4KtYbdS8b+275LSLqJVJIrPa5/JuIufWWZ/QFvkxp52gpmguN95eujrM68ZG+zVxa8zHA==", + "cpu": [ + "riscv64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-s390x-gnu": { + "version": "4.37.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.37.0.tgz", + "integrity": "sha512-hZDDU5fgWvDdHFuExN1gBOhCuzo/8TMpidfOR+1cPZJflcEzXdCy1LjnklQdW8/Et9sryOPJAKAQRw8Jq7Tg+A==", + "cpu": [ + "s390x" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-gnu": { + "version": "4.37.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.37.0.tgz", + "integrity": "sha512-pKivGpgJM5g8dwj0ywBwe/HeVAUSuVVJhUTa/URXjxvoyTT/AxsLTAbkHkDHG7qQxLoW2s3apEIl26uUe08LVQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-musl": { + "version": "4.37.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.37.0.tgz", + "integrity": "sha512-E2lPrLKE8sQbY/2bEkVTGDEk4/49UYRVWgj90MY8yPjpnGBQ+Xi1Qnr7b7UIWw1NOggdFQFOLZ8+5CzCiz143w==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-win32-arm64-msvc": { + "version": "4.37.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.37.0.tgz", + "integrity": "sha512-Jm7biMazjNzTU4PrQtr7VS8ibeys9Pn29/1bm4ph7CP2kf21950LgN+BaE2mJ1QujnvOc6p54eWWiVvn05SOBg==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-ia32-msvc": { + "version": "4.37.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.37.0.tgz", + "integrity": "sha512-e3/1SFm1OjefWICB2Ucstg2dxYDkDTZGDYgwufcbsxTHyqQps1UQf33dFEChBNmeSsTOyrjw2JJq0zbG5GF6RA==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-msvc": { + "version": "4.37.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.37.0.tgz", + "integrity": "sha512-LWbXUBwn/bcLx2sSsqy7pK5o+Nr+VCoRoAohfJ5C/aBio9nfJmGQqHAhU6pwxV/RmyTk5AqdySma7uwWGlmeuA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@safe-global/safe-apps-provider": { + "version": "0.18.5", + "resolved": "https://registry.npmjs.org/@safe-global/safe-apps-provider/-/safe-apps-provider-0.18.5.tgz", + "integrity": "sha512-9v9wjBi3TwLsEJ3C2ujYoexp3pFJ0omDLH/GX91e2QB+uwCKTBYyhxFSrTQ9qzoyQd+bfsk4gjOGW87QcJhf7g==", + "dependencies": { + "@safe-global/safe-apps-sdk": "^9.1.0", + "events": "^3.3.0" + } + }, + "node_modules/@safe-global/safe-apps-sdk": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/@safe-global/safe-apps-sdk/-/safe-apps-sdk-9.1.0.tgz", + "integrity": "sha512-N5p/ulfnnA2Pi2M3YeWjULeWbjo7ei22JwU/IXnhoHzKq3pYCN6ynL9mJBOlvDVv892EgLPCWCOwQk/uBT2v0Q==", + "dependencies": { + "@safe-global/safe-gateway-typescript-sdk": "^3.5.3", + "viem": "^2.1.1" + } + }, + "node_modules/@safe-global/safe-gateway-typescript-sdk": { + "version": "3.22.9", + "resolved": "https://registry.npmjs.org/@safe-global/safe-gateway-typescript-sdk/-/safe-gateway-typescript-sdk-3.22.9.tgz", + "integrity": "sha512-7ojVK/crhOaGowEO8uYWaopZzcr5rR76emgllGIfjCLR70aY4PbASpi9Pbs+7jIRzPDBBkM0RBo+zYx5UduX8Q==", + "engines": { + "node": ">=16" + } + }, + "node_modules/@scure/base": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.2.4.tgz", + "integrity": "sha512-5Yy9czTO47mqz+/J8GM6GIId4umdCk1wc1q8rKERQulIoc8VP9pzDcghv10Tl2E7R96ZUx/PhND3ESYUQX8NuQ==", + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@scure/bip32": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.4.0.tgz", + "integrity": "sha512-sVUpc0Vq3tXCkDGYVWGIZTRfnvu8LoTDaev7vbwh0omSvVORONr960MQWdKqJDCReIEmTj3PAr73O3aoxz7OPg==", + "dependencies": { + "@noble/curves": "~1.4.0", + "@noble/hashes": "~1.4.0", + "@scure/base": "~1.1.6" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@scure/bip32/node_modules/@noble/curves": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.4.2.tgz", + "integrity": "sha512-TavHr8qycMChk8UwMld0ZDRvatedkzWfH8IiaeGCfymOP5i0hSCozz9vHOL0nkwk7HRMlFnAiKpS2jrUmSybcw==", + "dependencies": { + "@noble/hashes": "1.4.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@scure/bip32/node_modules/@noble/hashes": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.4.0.tgz", + "integrity": "sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg==", + "engines": { + "node": ">= 16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@scure/bip32/node_modules/@scure/base": { + "version": "1.1.9", + "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.1.9.tgz", + "integrity": "sha512-8YKhl8GHiNI/pU2VMaofa2Tor7PJRAjwQLBBuilkJ9L5+13yVbC7JO/wS7piioAvPSwR3JKM1IJ/u4xQzbcXKg==", + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@scure/bip39": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.3.0.tgz", + "integrity": "sha512-disdg7gHuTDZtY+ZdkmLpPCk7fxZSu3gBiEGuoC1XYxv9cGx3Z6cpTggCgW6odSOOIXCiDjuGejW+aJKCY/pIQ==", + "dependencies": { + "@noble/hashes": "~1.4.0", + "@scure/base": "~1.1.6" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@scure/bip39/node_modules/@noble/hashes": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.4.0.tgz", + "integrity": "sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg==", + "engines": { + "node": ">= 16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@scure/bip39/node_modules/@scure/base": { + "version": "1.1.9", + "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.1.9.tgz", + "integrity": "sha512-8YKhl8GHiNI/pU2VMaofa2Tor7PJRAjwQLBBuilkJ9L5+13yVbC7JO/wS7piioAvPSwR3JKM1IJ/u4xQzbcXKg==", + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@socket.io/component-emitter": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@socket.io/component-emitter/-/component-emitter-3.1.2.tgz", + "integrity": "sha512-9BCxFwvbGg/RsZK9tjXd8s4UcwR0MWeFQ1XEKIQVVvAGJyINdrqKMcTRyLoK8Rse1GjzLV9cwjWV1olXRWEXVA==" + }, + "node_modules/@tanstack/query-core": { + "version": "5.74.4", + "resolved": "https://registry.npmjs.org/@tanstack/query-core/-/query-core-5.74.4.tgz", + "integrity": "sha512-YuG0A0+3i9b2Gfo9fkmNnkUWh5+5cFhWBN0pJAHkHilTx6A0nv8kepkk4T4GRt4e5ahbtFj2eTtkiPcVU1xO4A==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/tannerlinsley" + } + }, + "node_modules/@tanstack/react-query": { + "version": "5.74.4", + "resolved": "https://registry.npmjs.org/@tanstack/react-query/-/react-query-5.74.4.tgz", + "integrity": "sha512-mAbxw60d4ffQ4qmRYfkO1xzRBPUEf/72Dgo3qqea0J66nIKuDTLEqQt0ku++SDFlMGMnB6uKDnEG1xD/TDse4Q==", + "license": "MIT", + "dependencies": { + "@tanstack/query-core": "5.74.4" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/tannerlinsley" + }, + "peerDependencies": { + "react": "^18 || ^19" + } + }, + "node_modules/@types/babel__core": { + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", + "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", + "dev": true, + "dependencies": { + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7", + "@types/babel__generator": "*", + "@types/babel__template": "*", + "@types/babel__traverse": "*" + } + }, + "node_modules/@types/babel__generator": { + "version": "7.6.8", + "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.8.tgz", + "integrity": "sha512-ASsj+tpEDsEiFr1arWrlN6V3mdfjRMZt6LtK/Vp/kreFLnr5QH5+DhvD5nINYZXzwJvXeGq+05iUXcAzVrqWtw==", + "dev": true, + "dependencies": { + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__template": { + "version": "7.4.4", + "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz", + "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==", + "dev": true, + "dependencies": { + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__traverse": { + "version": "7.20.7", + "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.7.tgz", + "integrity": "sha512-dkO5fhS7+/oos4ciWxyEyjWe48zmG6wbCheo/G2ZnHx4fs3EU6YC6UM8rk56gAjNJ9P3MTH2jo5jb92/K6wbng==", + "dev": true, + "dependencies": { + "@babel/types": "^7.20.7" + } + }, + "node_modules/@types/debug": { + "version": "4.1.12", + "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.12.tgz", + "integrity": "sha512-vIChWdVG3LG1SMxEvI/AK+FWJthlrqlTu7fbrlywTkkaONwk/UAGaULXRlf8vkzFBLVm0zkMdCquhL5aOjhXPQ==", + "dependencies": { + "@types/ms": "*" + } + }, + "node_modules/@types/estree": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.7.tgz", + "integrity": "sha512-w28IoSUCJpidD/TGviZwwMJckNESJZXFu7NBZ5YJ4mEUnNraUn9Pm8HSZm/jDF1pDWYKspWE7oVphigUPRakIQ==" + }, + "node_modules/@types/json-schema": { + "version": "7.0.15", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", + "dev": true + }, + "node_modules/@types/ms": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@types/ms/-/ms-2.1.0.tgz", + "integrity": "sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA==" + }, + "node_modules/@types/react": { + "version": "19.0.12", + "resolved": "https://registry.npmjs.org/@types/react/-/react-19.0.12.tgz", + "integrity": "sha512-V6Ar115dBDrjbtXSrS+/Oruobc+qVbbUxDFC1RSbRqLt5SYvxxyIDrSC85RWml54g+jfNeEMZhEj7wW07ONQhA==", + "devOptional": true, + "dependencies": { + "csstype": "^3.0.2" + } + }, + "node_modules/@types/react-dom": { + "version": "19.0.4", + "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.0.4.tgz", + "integrity": "sha512-4fSQ8vWFkg+TGhePfUzVmat3eC14TXYSsiiDSLI0dVLsrm9gZFABjPy/Qu6TKgl1tq1Bu1yDsuQgY3A3DOjCcg==", + "dev": true, + "peerDependencies": { + "@types/react": "^19.0.0" + } + }, + "node_modules/@types/trusted-types": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/@types/trusted-types/-/trusted-types-2.0.7.tgz", + "integrity": "sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw==" + }, + "node_modules/@typescript-eslint/eslint-plugin": { + "version": "8.28.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.28.0.tgz", + "integrity": "sha512-lvFK3TCGAHsItNdWZ/1FkvpzCxTHUVuFrdnOGLMa0GGCFIbCgQWVk3CzCGdA7kM3qGVc+dfW9tr0Z/sHnGDFyg==", + "dev": true, + "dependencies": { + "@eslint-community/regexpp": "^4.10.0", + "@typescript-eslint/scope-manager": "8.28.0", + "@typescript-eslint/type-utils": "8.28.0", + "@typescript-eslint/utils": "8.28.0", + "@typescript-eslint/visitor-keys": "8.28.0", + "graphemer": "^1.4.0", + "ignore": "^5.3.1", + "natural-compare": "^1.4.0", + "ts-api-utils": "^2.0.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^8.0.0 || ^8.0.0-alpha.0", + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <5.9.0" + } + }, + "node_modules/@typescript-eslint/parser": { + "version": "8.28.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.28.0.tgz", + "integrity": "sha512-LPcw1yHD3ToaDEoljFEfQ9j2xShY367h7FZ1sq5NJT9I3yj4LHer1Xd1yRSOdYy9BpsrxU7R+eoDokChYM53lQ==", + "dev": true, + "dependencies": { + "@typescript-eslint/scope-manager": "8.28.0", + "@typescript-eslint/types": "8.28.0", + "@typescript-eslint/typescript-estree": "8.28.0", + "@typescript-eslint/visitor-keys": "8.28.0", + "debug": "^4.3.4" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <5.9.0" + } + }, + "node_modules/@typescript-eslint/scope-manager": { + "version": "8.28.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.28.0.tgz", + "integrity": "sha512-u2oITX3BJwzWCapoZ/pXw6BCOl8rJP4Ij/3wPoGvY8XwvXflOzd1kLrDUUUAIEdJSFh+ASwdTHqtan9xSg8buw==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "8.28.0", + "@typescript-eslint/visitor-keys": "8.28.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/type-utils": { + "version": "8.28.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.28.0.tgz", + "integrity": "sha512-oRoXu2v0Rsy/VoOGhtWrOKDiIehvI+YNrDk5Oqj40Mwm0Yt01FC/Q7nFqg088d3yAsR1ZcZFVfPCTTFCe/KPwg==", + "dev": true, + "dependencies": { + "@typescript-eslint/typescript-estree": "8.28.0", + "@typescript-eslint/utils": "8.28.0", + "debug": "^4.3.4", + "ts-api-utils": "^2.0.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <5.9.0" + } + }, + "node_modules/@typescript-eslint/types": { + "version": "8.28.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.28.0.tgz", + "integrity": "sha512-bn4WS1bkKEjx7HqiwG2JNB3YJdC1q6Ue7GyGlwPHyt0TnVq6TtD/hiOdTZt71sq0s7UzqBFXD8t8o2e63tXgwA==", + "dev": true, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/typescript-estree": { + "version": "8.28.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.28.0.tgz", + "integrity": "sha512-H74nHEeBGeklctAVUvmDkxB1mk+PAZ9FiOMPFncdqeRBXxk1lWSYraHw8V12b7aa6Sg9HOBNbGdSHobBPuQSuA==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "8.28.0", + "@typescript-eslint/visitor-keys": "8.28.0", + "debug": "^4.3.4", + "fast-glob": "^3.3.2", + "is-glob": "^4.0.3", + "minimatch": "^9.0.4", + "semver": "^7.6.0", + "ts-api-utils": "^2.0.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <5.9.0" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "dev": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/semver": { + "version": "7.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz", + "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@typescript-eslint/utils": { + "version": "8.28.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.28.0.tgz", + "integrity": "sha512-OELa9hbTYciYITqgurT1u/SzpQVtDLmQMFzy/N8pQE+tefOyCWT79jHsav294aTqV1q1u+VzqDGbuujvRYaeSQ==", + "dev": true, + "dependencies": { + "@eslint-community/eslint-utils": "^4.4.0", + "@typescript-eslint/scope-manager": "8.28.0", + "@typescript-eslint/types": "8.28.0", + "@typescript-eslint/typescript-estree": "8.28.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <5.9.0" + } + }, + "node_modules/@typescript-eslint/visitor-keys": { + "version": "8.28.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.28.0.tgz", + "integrity": "sha512-hbn8SZ8w4u2pRwgQ1GlUrPKE+t2XvcCW5tTRF7j6SMYIuYG37XuzIW44JCZPa36evi0Oy2SnM664BlIaAuQcvg==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "8.28.0", + "eslint-visitor-keys": "^4.2.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@vitejs/plugin-react": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-4.3.4.tgz", + "integrity": "sha512-SCCPBJtYLdE8PX/7ZQAs1QAZ8Jqwih+0VBLum1EGqmCCQal+MIUqLCzj3ZUy8ufbC0cAM4LRlSTm7IQJwWT4ug==", + "dev": true, + "dependencies": { + "@babel/core": "^7.26.0", + "@babel/plugin-transform-react-jsx-self": "^7.25.9", + "@babel/plugin-transform-react-jsx-source": "^7.25.9", + "@types/babel__core": "^7.20.5", + "react-refresh": "^0.14.2" + }, + "engines": { + "node": "^14.18.0 || >=16.0.0" + }, + "peerDependencies": { + "vite": "^4.2.0 || ^5.0.0 || ^6.0.0" + } + }, + "node_modules/@wagmi/connectors": { + "version": "5.7.12", + "resolved": "https://registry.npmjs.org/@wagmi/connectors/-/connectors-5.7.12.tgz", + "integrity": "sha512-pLFuZ1PsLkNyY11mx0+IOrMM7xACWCBRxaulfX17osqixkDFeOAyqFGBjh/XxkvRyrDJUdO4F+QHEeSoOiPpgg==", + "license": "MIT", + "dependencies": { + "@coinbase/wallet-sdk": "4.3.0", + "@metamask/sdk": "0.32.0", + "@safe-global/safe-apps-provider": "0.18.5", + "@safe-global/safe-apps-sdk": "9.1.0", + "@walletconnect/ethereum-provider": "2.19.2", + "cbw-sdk": "npm:@coinbase/wallet-sdk@3.9.3" + }, + "funding": { + "url": "https://github.com/sponsors/wevm" + }, + "peerDependencies": { + "@wagmi/core": "2.16.7", + "typescript": ">=5.0.4", + "viem": "2.x" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@wagmi/core": { + "version": "2.16.7", + "resolved": "https://registry.npmjs.org/@wagmi/core/-/core-2.16.7.tgz", + "integrity": "sha512-Kpgrw6OXV0VBhDs4toQVKQ0NK5yUO6uxEqnvRGjNjbO85d93Gbfsp5BlxSLeWq6iVMSBFSitdl5i9W7b1miq1g==", + "dependencies": { + "eventemitter3": "5.0.1", + "mipd": "0.0.7", + "zustand": "5.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/wevm" + }, + "peerDependencies": { + "@tanstack/query-core": ">=5.0.0", + "typescript": ">=5.0.4", + "viem": "2.x" + }, + "peerDependenciesMeta": { + "@tanstack/query-core": { + "optional": true + }, + "typescript": { + "optional": true + } + } + }, + "node_modules/@walletconnect/core": { + "version": "2.19.1", + "resolved": "https://registry.npmjs.org/@walletconnect/core/-/core-2.19.1.tgz", + "integrity": "sha512-rMvpZS0tQXR/ivzOxN1GkHvw3jRRMlI/jRX5g7ZteLgg2L0ZcANsFvAU5IxILxIKcIkTCloF9TcfloKVbK3qmw==", + "dependencies": { + "@walletconnect/heartbeat": "1.2.2", + "@walletconnect/jsonrpc-provider": "1.0.14", + "@walletconnect/jsonrpc-types": "1.0.4", + "@walletconnect/jsonrpc-utils": "1.0.8", + "@walletconnect/jsonrpc-ws-connection": "1.0.16", + "@walletconnect/keyvaluestorage": "1.1.1", + "@walletconnect/logger": "2.1.2", + "@walletconnect/relay-api": "1.0.11", + "@walletconnect/relay-auth": "1.1.0", + "@walletconnect/safe-json": "1.0.2", + "@walletconnect/time": "1.0.2", + "@walletconnect/types": "2.19.1", + "@walletconnect/utils": "2.19.1", + "@walletconnect/window-getters": "1.0.1", + "es-toolkit": "1.33.0", + "events": "3.3.0", + "uint8arrays": "3.1.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/@walletconnect/environment": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@walletconnect/environment/-/environment-1.0.1.tgz", + "integrity": "sha512-T426LLZtHj8e8rYnKfzsw1aG6+M0BT1ZxayMdv/p8yM0MU+eJDISqNY3/bccxRr4LrF9csq02Rhqt08Ibl0VRg==", + "dependencies": { + "tslib": "1.14.1" + } + }, + "node_modules/@walletconnect/environment/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" + }, + "node_modules/@walletconnect/ethereum-provider": { + "version": "2.19.2", + "resolved": "https://registry.npmjs.org/@walletconnect/ethereum-provider/-/ethereum-provider-2.19.2.tgz", + "integrity": "sha512-NzPzNcjMLqow6ha2nssB1ciMD0cdHZesYcHSQKjCi9waIDMov9Fr2yEJccbiVFE3cxek7f9dCPsoZez2q8ihvg==", + "license": "Apache-2.0", + "dependencies": { + "@walletconnect/jsonrpc-http-connection": "1.0.8", + "@walletconnect/jsonrpc-provider": "1.0.14", + "@walletconnect/jsonrpc-types": "1.0.4", + "@walletconnect/jsonrpc-utils": "1.0.8", + "@walletconnect/keyvaluestorage": "1.1.1", + "@walletconnect/modal": "2.7.0", + "@walletconnect/sign-client": "2.19.2", + "@walletconnect/types": "2.19.2", + "@walletconnect/universal-provider": "2.19.2", + "@walletconnect/utils": "2.19.2", + "events": "3.3.0" + } + }, + "node_modules/@walletconnect/ethereum-provider/node_modules/@noble/curves": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.8.1.tgz", + "integrity": "sha512-warwspo+UYUPep0Q+vtdVB4Ugn8GGQj8iyB3gnRWsztmUHTI3S1nhdiWNsPUGL0vud7JlRRk1XEu7Lq1KGTnMQ==", + "license": "MIT", + "dependencies": { + "@noble/hashes": "1.7.1" + }, + "engines": { + "node": "^14.21.3 || >=16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@walletconnect/ethereum-provider/node_modules/@scure/bip32": { + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.6.2.tgz", + "integrity": "sha512-t96EPDMbtGgtb7onKKqxRLfE5g05k7uHnHRM2xdE6BP/ZmxaLtPek4J4KfVn/90IQNrU1IOAqMgiDtUdtbe3nw==", + "license": "MIT", + "dependencies": { + "@noble/curves": "~1.8.1", + "@noble/hashes": "~1.7.1", + "@scure/base": "~1.2.2" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@walletconnect/ethereum-provider/node_modules/@scure/bip39": { + "version": "1.5.4", + "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.5.4.tgz", + "integrity": "sha512-TFM4ni0vKvCfBpohoh+/lY05i9gRbSwXWngAsF4CABQxoaOHijxuaZ2R6cStDQ5CHtHO9aGJTr4ksVJASRRyMA==", + "license": "MIT", + "dependencies": { + "@noble/hashes": "~1.7.1", + "@scure/base": "~1.2.4" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@walletconnect/ethereum-provider/node_modules/@walletconnect/core": { + "version": "2.19.2", + "resolved": "https://registry.npmjs.org/@walletconnect/core/-/core-2.19.2.tgz", + "integrity": "sha512-iu0mgLj51AXcKpdNj8+4EdNNBd/mkNjLEhZn6UMc/r7BM9WbmpPMEydA39WeRLbdLO4kbpmq4wTbiskI1rg+HA==", + "license": "Apache-2.0", + "dependencies": { + "@walletconnect/heartbeat": "1.2.2", + "@walletconnect/jsonrpc-provider": "1.0.14", + "@walletconnect/jsonrpc-types": "1.0.4", + "@walletconnect/jsonrpc-utils": "1.0.8", + "@walletconnect/jsonrpc-ws-connection": "1.0.16", + "@walletconnect/keyvaluestorage": "1.1.1", + "@walletconnect/logger": "2.1.2", + "@walletconnect/relay-api": "1.0.11", + "@walletconnect/relay-auth": "1.1.0", + "@walletconnect/safe-json": "1.0.2", + "@walletconnect/time": "1.0.2", + "@walletconnect/types": "2.19.2", + "@walletconnect/utils": "2.19.2", + "@walletconnect/window-getters": "1.0.1", + "es-toolkit": "1.33.0", + "events": "3.3.0", + "uint8arrays": "3.1.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/@walletconnect/ethereum-provider/node_modules/@walletconnect/sign-client": { + "version": "2.19.2", + "resolved": "https://registry.npmjs.org/@walletconnect/sign-client/-/sign-client-2.19.2.tgz", + "integrity": "sha512-a/K5PRIFPCjfHq5xx3WYKHAAF8Ft2I1LtxloyibqiQOoUtNLfKgFB1r8sdMvXM7/PADNPe4iAw4uSE6PrARrfg==", + "license": "Apache-2.0", + "dependencies": { + "@walletconnect/core": "2.19.2", + "@walletconnect/events": "1.0.1", + "@walletconnect/heartbeat": "1.2.2", + "@walletconnect/jsonrpc-utils": "1.0.8", + "@walletconnect/logger": "2.1.2", + "@walletconnect/time": "1.0.2", + "@walletconnect/types": "2.19.2", + "@walletconnect/utils": "2.19.2", + "events": "3.3.0" + } + }, + "node_modules/@walletconnect/ethereum-provider/node_modules/@walletconnect/types": { + "version": "2.19.2", + "resolved": "https://registry.npmjs.org/@walletconnect/types/-/types-2.19.2.tgz", + "integrity": "sha512-/LZWhkVCUN+fcTgQUxArxhn2R8DF+LSd/6Wh9FnpjeK/Sdupx1EPS8okWG6WPAqq2f404PRoNAfQytQ82Xdl3g==", + "license": "Apache-2.0", + "dependencies": { + "@walletconnect/events": "1.0.1", + "@walletconnect/heartbeat": "1.2.2", + "@walletconnect/jsonrpc-types": "1.0.4", + "@walletconnect/keyvaluestorage": "1.1.1", + "@walletconnect/logger": "2.1.2", + "events": "3.3.0" + } + }, + "node_modules/@walletconnect/ethereum-provider/node_modules/@walletconnect/universal-provider": { + "version": "2.19.2", + "resolved": "https://registry.npmjs.org/@walletconnect/universal-provider/-/universal-provider-2.19.2.tgz", + "integrity": "sha512-LkKg+EjcSUpPUhhvRANgkjPL38wJPIWumAYD8OK/g4OFuJ4W3lS/XTCKthABQfFqmiNbNbVllmywiyE44KdpQg==", + "license": "Apache-2.0", + "dependencies": { + "@walletconnect/events": "1.0.1", + "@walletconnect/jsonrpc-http-connection": "1.0.8", + "@walletconnect/jsonrpc-provider": "1.0.14", + "@walletconnect/jsonrpc-types": "1.0.4", + "@walletconnect/jsonrpc-utils": "1.0.8", + "@walletconnect/keyvaluestorage": "1.1.1", + "@walletconnect/logger": "2.1.2", + "@walletconnect/sign-client": "2.19.2", + "@walletconnect/types": "2.19.2", + "@walletconnect/utils": "2.19.2", + "es-toolkit": "1.33.0", + "events": "3.3.0" + } + }, + "node_modules/@walletconnect/ethereum-provider/node_modules/@walletconnect/utils": { + "version": "2.19.2", + "resolved": "https://registry.npmjs.org/@walletconnect/utils/-/utils-2.19.2.tgz", + "integrity": "sha512-VU5CcUF4sZDg8a2/ov29OJzT3KfLuZqJUM0GemW30dlipI5fkpb0VPenZK7TcdLPXc1LN+Q+7eyTqHRoAu/BIA==", + "license": "Apache-2.0", + "dependencies": { + "@noble/ciphers": "1.2.1", + "@noble/curves": "1.8.1", + "@noble/hashes": "1.7.1", + "@walletconnect/jsonrpc-utils": "1.0.8", + "@walletconnect/keyvaluestorage": "1.1.1", + "@walletconnect/relay-api": "1.0.11", + "@walletconnect/relay-auth": "1.1.0", + "@walletconnect/safe-json": "1.0.2", + "@walletconnect/time": "1.0.2", + "@walletconnect/types": "2.19.2", + "@walletconnect/window-getters": "1.0.1", + "@walletconnect/window-metadata": "1.0.1", + "bs58": "6.0.0", + "detect-browser": "5.3.0", + "query-string": "7.1.3", + "uint8arrays": "3.1.0", + "viem": "2.23.2" + } + }, + "node_modules/@walletconnect/ethereum-provider/node_modules/ox": { + "version": "0.6.7", + "resolved": "https://registry.npmjs.org/ox/-/ox-0.6.7.tgz", + "integrity": "sha512-17Gk/eFsFRAZ80p5eKqv89a57uXjd3NgIf1CaXojATPBuujVc/fQSVhBeAU9JCRB+k7J50WQAyWTxK19T9GgbA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/wevm" + } + ], + "license": "MIT", + "dependencies": { + "@adraffy/ens-normalize": "^1.10.1", + "@noble/curves": "^1.6.0", + "@noble/hashes": "^1.5.0", + "@scure/bip32": "^1.5.0", + "@scure/bip39": "^1.4.0", + "abitype": "^1.0.6", + "eventemitter3": "5.0.1" + }, + "peerDependencies": { + "typescript": ">=5.4.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@walletconnect/ethereum-provider/node_modules/viem": { + "version": "2.23.2", + "resolved": "https://registry.npmjs.org/viem/-/viem-2.23.2.tgz", + "integrity": "sha512-NVmW/E0c5crMOtbEAqMF0e3NmvQykFXhLOc/CkLIXOlzHSA6KXVz3CYVmaKqBF8/xtjsjHAGjdJN3Ru1kFJLaA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/wevm" + } + ], + "license": "MIT", + "dependencies": { + "@noble/curves": "1.8.1", + "@noble/hashes": "1.7.1", + "@scure/bip32": "1.6.2", + "@scure/bip39": "1.5.4", + "abitype": "1.0.8", + "isows": "1.0.6", + "ox": "0.6.7", + "ws": "8.18.0" + }, + "peerDependencies": { + "typescript": ">=5.0.4" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@walletconnect/ethereum-provider/node_modules/ws": { + "version": "8.18.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.0.tgz", + "integrity": "sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==", + "license": "MIT", + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": ">=5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/@walletconnect/events": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@walletconnect/events/-/events-1.0.1.tgz", + "integrity": "sha512-NPTqaoi0oPBVNuLv7qPaJazmGHs5JGyO8eEAk5VGKmJzDR7AHzD4k6ilox5kxk1iwiOnFopBOOMLs86Oa76HpQ==", + "dependencies": { + "keyvaluestorage-interface": "^1.0.0", + "tslib": "1.14.1" + } + }, + "node_modules/@walletconnect/events/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" + }, + "node_modules/@walletconnect/heartbeat": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/@walletconnect/heartbeat/-/heartbeat-1.2.2.tgz", + "integrity": "sha512-uASiRmC5MwhuRuf05vq4AT48Pq8RMi876zV8rr8cV969uTOzWdB/k+Lj5yI2PBtB1bGQisGen7MM1GcZlQTBXw==", + "dependencies": { + "@walletconnect/events": "^1.0.1", + "@walletconnect/time": "^1.0.2", + "events": "^3.3.0" + } + }, + "node_modules/@walletconnect/jsonrpc-http-connection": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/@walletconnect/jsonrpc-http-connection/-/jsonrpc-http-connection-1.0.8.tgz", + "integrity": "sha512-+B7cRuaxijLeFDJUq5hAzNyef3e3tBDIxyaCNmFtjwnod5AGis3RToNqzFU33vpVcxFhofkpE7Cx+5MYejbMGw==", + "dependencies": { + "@walletconnect/jsonrpc-utils": "^1.0.6", + "@walletconnect/safe-json": "^1.0.1", + "cross-fetch": "^3.1.4", + "events": "^3.3.0" + } + }, + "node_modules/@walletconnect/jsonrpc-http-connection/node_modules/cross-fetch": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.2.0.tgz", + "integrity": "sha512-Q+xVJLoGOeIMXZmbUK4HYk+69cQH6LudR0Vu/pRm2YlU/hDV9CiS0gKUMaWY5f2NeUH9C1nV3bsTlCo0FsTV1Q==", + "dependencies": { + "node-fetch": "^2.7.0" + } + }, + "node_modules/@walletconnect/jsonrpc-provider": { + "version": "1.0.14", + "resolved": "https://registry.npmjs.org/@walletconnect/jsonrpc-provider/-/jsonrpc-provider-1.0.14.tgz", + "integrity": "sha512-rtsNY1XqHvWj0EtITNeuf8PHMvlCLiS3EjQL+WOkxEOA4KPxsohFnBDeyPYiNm4ZvkQdLnece36opYidmtbmow==", + "dependencies": { + "@walletconnect/jsonrpc-utils": "^1.0.8", + "@walletconnect/safe-json": "^1.0.2", + "events": "^3.3.0" + } + }, + "node_modules/@walletconnect/jsonrpc-types": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@walletconnect/jsonrpc-types/-/jsonrpc-types-1.0.4.tgz", + "integrity": "sha512-P6679fG/M+wuWg9TY8mh6xFSdYnFyFjwFelxyISxMDrlbXokorEVXYOxiqEbrU3x1BmBoCAJJ+vtEaEoMlpCBQ==", + "dependencies": { + "events": "^3.3.0", + "keyvaluestorage-interface": "^1.0.0" + } + }, + "node_modules/@walletconnect/jsonrpc-utils": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/@walletconnect/jsonrpc-utils/-/jsonrpc-utils-1.0.8.tgz", + "integrity": "sha512-vdeb03bD8VzJUL6ZtzRYsFMq1eZQcM3EAzT0a3st59dyLfJ0wq+tKMpmGH7HlB7waD858UWgfIcudbPFsbzVdw==", + "dependencies": { + "@walletconnect/environment": "^1.0.1", + "@walletconnect/jsonrpc-types": "^1.0.3", + "tslib": "1.14.1" + } + }, + "node_modules/@walletconnect/jsonrpc-utils/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" + }, + "node_modules/@walletconnect/jsonrpc-ws-connection": { + "version": "1.0.16", + "resolved": "https://registry.npmjs.org/@walletconnect/jsonrpc-ws-connection/-/jsonrpc-ws-connection-1.0.16.tgz", + "integrity": "sha512-G81JmsMqh5nJheE1mPst1W0WfVv0SG3N7JggwLLGnI7iuDZJq8cRJvQwLGKHn5H1WTW7DEPCo00zz5w62AbL3Q==", + "dependencies": { + "@walletconnect/jsonrpc-utils": "^1.0.6", + "@walletconnect/safe-json": "^1.0.2", + "events": "^3.3.0", + "ws": "^7.5.1" + } + }, + "node_modules/@walletconnect/keyvaluestorage": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@walletconnect/keyvaluestorage/-/keyvaluestorage-1.1.1.tgz", + "integrity": "sha512-V7ZQq2+mSxAq7MrRqDxanTzu2RcElfK1PfNYiaVnJgJ7Q7G7hTVwF8voIBx92qsRyGHZihrwNPHuZd1aKkd0rA==", + "dependencies": { + "@walletconnect/safe-json": "^1.0.1", + "idb-keyval": "^6.2.1", + "unstorage": "^1.9.0" + }, + "peerDependencies": { + "@react-native-async-storage/async-storage": "1.x" + }, + "peerDependenciesMeta": { + "@react-native-async-storage/async-storage": { + "optional": true + } + } + }, + "node_modules/@walletconnect/logger": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/@walletconnect/logger/-/logger-2.1.2.tgz", + "integrity": "sha512-aAb28I3S6pYXZHQm5ESB+V6rDqIYfsnHaQyzFbwUUBFY4H0OXx/YtTl8lvhUNhMMfb9UxbwEBS253TlXUYJWSw==", + "dependencies": { + "@walletconnect/safe-json": "^1.0.2", + "pino": "7.11.0" + } + }, + "node_modules/@walletconnect/modal": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@walletconnect/modal/-/modal-2.7.0.tgz", + "integrity": "sha512-RQVt58oJ+rwqnPcIvRFeMGKuXb9qkgSmwz4noF8JZGUym3gUAzVs+uW2NQ1Owm9XOJAV+sANrtJ+VoVq1ftElw==", + "license": "Apache-2.0", + "dependencies": { + "@walletconnect/modal-core": "2.7.0", + "@walletconnect/modal-ui": "2.7.0" + } + }, + "node_modules/@walletconnect/modal-core": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@walletconnect/modal-core/-/modal-core-2.7.0.tgz", + "integrity": "sha512-oyMIfdlNdpyKF2kTJowTixZSo0PGlCJRdssUN/EZdA6H6v03hZnf09JnwpljZNfir2M65Dvjm/15nGrDQnlxSA==", + "license": "Apache-2.0", + "dependencies": { + "valtio": "1.11.2" + } + }, + "node_modules/@walletconnect/modal-core/node_modules/proxy-compare": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/proxy-compare/-/proxy-compare-2.5.1.tgz", + "integrity": "sha512-oyfc0Tx87Cpwva5ZXezSp5V9vht1c7dZBhvuV/y3ctkgMVUmiAGDVeeB0dKhGSyT0v1ZTEQYpe/RXlBVBNuCLA==", + "license": "MIT" + }, + "node_modules/@walletconnect/modal-core/node_modules/react": { + "version": "18.3.1", + "resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz", + "integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==", + "license": "MIT", + "peer": true, + "dependencies": { + "loose-envify": "^1.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/@walletconnect/modal-core/node_modules/use-sync-external-store": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.2.0.tgz", + "integrity": "sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA==", + "license": "MIT", + "peerDependencies": { + "react": "^16.8.0 || ^17.0.0 || ^18.0.0" + } + }, + "node_modules/@walletconnect/modal-core/node_modules/valtio": { + "version": "1.11.2", + "resolved": "https://registry.npmjs.org/valtio/-/valtio-1.11.2.tgz", + "integrity": "sha512-1XfIxnUXzyswPAPXo1P3Pdx2mq/pIqZICkWN60Hby0d9Iqb+MEIpqgYVlbflvHdrp2YR/q3jyKWRPJJ100yxaw==", + "license": "MIT", + "dependencies": { + "proxy-compare": "2.5.1", + "use-sync-external-store": "1.2.0" + }, + "engines": { + "node": ">=12.20.0" + }, + "peerDependencies": { + "@types/react": ">=16.8", + "react": ">=16.8" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "react": { + "optional": true + } + } + }, + "node_modules/@walletconnect/modal-ui": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@walletconnect/modal-ui/-/modal-ui-2.7.0.tgz", + "integrity": "sha512-gERYvU7D7K1ANCN/8vUgsE0d2hnRemfAFZ2novm9aZBg7TEd/4EgB+AqbJ+1dc7GhOL6dazckVq78TgccHb7mQ==", + "license": "Apache-2.0", + "dependencies": { + "@walletconnect/modal-core": "2.7.0", + "lit": "2.8.0", + "motion": "10.16.2", + "qrcode": "1.5.3" + } + }, + "node_modules/@walletconnect/modal-ui/node_modules/@lit/reactive-element": { + "version": "1.6.3", + "resolved": "https://registry.npmjs.org/@lit/reactive-element/-/reactive-element-1.6.3.tgz", + "integrity": "sha512-QuTgnG52Poic7uM1AN5yJ09QMe0O28e10XzSvWDz02TJiiKee4stsiownEIadWm8nYzyDAyT+gKzUoZmiWQtsQ==", + "license": "BSD-3-Clause", + "dependencies": { + "@lit-labs/ssr-dom-shim": "^1.0.0" + } + }, + "node_modules/@walletconnect/modal-ui/node_modules/lit": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/lit/-/lit-2.8.0.tgz", + "integrity": "sha512-4Sc3OFX9QHOJaHbmTMk28SYgVxLN3ePDjg7hofEft2zWlehFL3LiAuapWc4U/kYwMYJSh2hTCPZ6/LIC7ii0MA==", + "license": "BSD-3-Clause", + "dependencies": { + "@lit/reactive-element": "^1.6.0", + "lit-element": "^3.3.0", + "lit-html": "^2.8.0" + } + }, + "node_modules/@walletconnect/modal-ui/node_modules/lit-element": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/lit-element/-/lit-element-3.3.3.tgz", + "integrity": "sha512-XbeRxmTHubXENkV4h8RIPyr8lXc+Ff28rkcQzw3G6up2xg5E8Zu1IgOWIwBLEQsu3cOVFqdYwiVi0hv0SlpqUA==", + "license": "BSD-3-Clause", + "dependencies": { + "@lit-labs/ssr-dom-shim": "^1.1.0", + "@lit/reactive-element": "^1.3.0", + "lit-html": "^2.8.0" + } + }, + "node_modules/@walletconnect/modal-ui/node_modules/lit-html": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/lit-html/-/lit-html-2.8.0.tgz", + "integrity": "sha512-o9t+MQM3P4y7M7yNzqAyjp7z+mQGa4NS4CxiyLqFPyFWyc4O+nodLrkrxSaCTrla6M5YOLaT3RpbbqjszB5g3Q==", + "license": "BSD-3-Clause", + "dependencies": { + "@types/trusted-types": "^2.0.2" + } + }, + "node_modules/@walletconnect/relay-api": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/@walletconnect/relay-api/-/relay-api-1.0.11.tgz", + "integrity": "sha512-tLPErkze/HmC9aCmdZOhtVmYZq1wKfWTJtygQHoWtgg722Jd4homo54Cs4ak2RUFUZIGO2RsOpIcWipaua5D5Q==", + "dependencies": { + "@walletconnect/jsonrpc-types": "^1.0.2" + } + }, + "node_modules/@walletconnect/relay-auth": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@walletconnect/relay-auth/-/relay-auth-1.1.0.tgz", + "integrity": "sha512-qFw+a9uRz26jRCDgL7Q5TA9qYIgcNY8jpJzI1zAWNZ8i7mQjaijRnWFKsCHAU9CyGjvt6RKrRXyFtFOpWTVmCQ==", + "dependencies": { + "@noble/curves": "1.8.0", + "@noble/hashes": "1.7.0", + "@walletconnect/safe-json": "^1.0.1", + "@walletconnect/time": "^1.0.2", + "uint8arrays": "^3.0.0" + } + }, + "node_modules/@walletconnect/relay-auth/node_modules/@noble/hashes": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.7.0.tgz", + "integrity": "sha512-HXydb0DgzTpDPwbVeDGCG1gIu7X6+AuU6Zl6av/E/KG8LMsvPntvq+w17CHRpKBmN6Ybdrt1eP3k4cj8DJa78w==", + "engines": { + "node": "^14.21.3 || >=16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@walletconnect/safe-json": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@walletconnect/safe-json/-/safe-json-1.0.2.tgz", + "integrity": "sha512-Ogb7I27kZ3LPC3ibn8ldyUr5544t3/STow9+lzz7Sfo808YD7SBWk7SAsdBFlYgP2zDRy2hS3sKRcuSRM0OTmA==", + "dependencies": { + "tslib": "1.14.1" + } + }, + "node_modules/@walletconnect/safe-json/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" + }, + "node_modules/@walletconnect/sign-client": { + "version": "2.19.1", + "resolved": "https://registry.npmjs.org/@walletconnect/sign-client/-/sign-client-2.19.1.tgz", + "integrity": "sha512-OgBHRPo423S02ceN3lAzcZ3MYb1XuLyTTkKqLmKp/icYZCyRzm3/ynqJDKndiBLJ5LTic0y07LiZilnliYqlvw==", + "dependencies": { + "@walletconnect/core": "2.19.1", + "@walletconnect/events": "1.0.1", + "@walletconnect/heartbeat": "1.2.2", + "@walletconnect/jsonrpc-utils": "1.0.8", + "@walletconnect/logger": "2.1.2", + "@walletconnect/time": "1.0.2", + "@walletconnect/types": "2.19.1", + "@walletconnect/utils": "2.19.1", + "events": "3.3.0" + } + }, + "node_modules/@walletconnect/time": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@walletconnect/time/-/time-1.0.2.tgz", + "integrity": "sha512-uzdd9woDcJ1AaBZRhqy5rNC9laqWGErfc4dxA9a87mPdKOgWMD85mcFo9dIYIts/Jwocfwn07EC6EzclKubk/g==", + "dependencies": { + "tslib": "1.14.1" + } + }, + "node_modules/@walletconnect/time/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" + }, + "node_modules/@walletconnect/types": { + "version": "2.19.1", + "resolved": "https://registry.npmjs.org/@walletconnect/types/-/types-2.19.1.tgz", + "integrity": "sha512-XWWGLioddH7MjxhyGhylL7VVariVON2XatJq/hy0kSGJ1hdp31z194nHN5ly9M495J9Hw8lcYjGXpsgeKvgxzw==", + "dependencies": { + "@walletconnect/events": "1.0.1", + "@walletconnect/heartbeat": "1.2.2", + "@walletconnect/jsonrpc-types": "1.0.4", + "@walletconnect/keyvaluestorage": "1.1.1", + "@walletconnect/logger": "2.1.2", + "events": "3.3.0" + } + }, + "node_modules/@walletconnect/universal-provider": { + "version": "2.19.1", + "resolved": "https://registry.npmjs.org/@walletconnect/universal-provider/-/universal-provider-2.19.1.tgz", + "integrity": "sha512-4rdLvJ2TGDIieNWW3sZw2MXlX65iHpTuKb5vyvUHQtjIVNLj+7X/09iUAI/poswhtspBK0ytwbH+AIT/nbGpjg==", + "dependencies": { + "@walletconnect/events": "1.0.1", + "@walletconnect/jsonrpc-http-connection": "1.0.8", + "@walletconnect/jsonrpc-provider": "1.0.14", + "@walletconnect/jsonrpc-types": "1.0.4", + "@walletconnect/jsonrpc-utils": "1.0.8", + "@walletconnect/keyvaluestorage": "1.1.1", + "@walletconnect/logger": "2.1.2", + "@walletconnect/sign-client": "2.19.1", + "@walletconnect/types": "2.19.1", + "@walletconnect/utils": "2.19.1", + "es-toolkit": "1.33.0", + "events": "3.3.0" + } + }, + "node_modules/@walletconnect/utils": { + "version": "2.19.1", + "resolved": "https://registry.npmjs.org/@walletconnect/utils/-/utils-2.19.1.tgz", + "integrity": "sha512-aOwcg+Hpph8niJSXLqkU25pmLR49B8ECXp5gFQDW5IeVgXHoOoK7w8a79GBhIBheMLlIt1322sTKQ7Rq5KzzFg==", + "dependencies": { + "@noble/ciphers": "1.2.1", + "@noble/curves": "1.8.1", + "@noble/hashes": "1.7.1", + "@walletconnect/jsonrpc-utils": "1.0.8", + "@walletconnect/keyvaluestorage": "1.1.1", + "@walletconnect/relay-api": "1.0.11", + "@walletconnect/relay-auth": "1.1.0", + "@walletconnect/safe-json": "1.0.2", + "@walletconnect/time": "1.0.2", + "@walletconnect/types": "2.19.1", + "@walletconnect/window-getters": "1.0.1", + "@walletconnect/window-metadata": "1.0.1", + "bs58": "6.0.0", + "detect-browser": "5.3.0", + "elliptic": "6.6.1", + "query-string": "7.1.3", + "uint8arrays": "3.1.0", + "viem": "2.23.2" + } + }, + "node_modules/@walletconnect/utils/node_modules/@noble/curves": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.8.1.tgz", + "integrity": "sha512-warwspo+UYUPep0Q+vtdVB4Ugn8GGQj8iyB3gnRWsztmUHTI3S1nhdiWNsPUGL0vud7JlRRk1XEu7Lq1KGTnMQ==", + "dependencies": { + "@noble/hashes": "1.7.1" + }, + "engines": { + "node": "^14.21.3 || >=16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@walletconnect/utils/node_modules/@scure/bip32": { + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.6.2.tgz", + "integrity": "sha512-t96EPDMbtGgtb7onKKqxRLfE5g05k7uHnHRM2xdE6BP/ZmxaLtPek4J4KfVn/90IQNrU1IOAqMgiDtUdtbe3nw==", + "dependencies": { + "@noble/curves": "~1.8.1", + "@noble/hashes": "~1.7.1", + "@scure/base": "~1.2.2" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@walletconnect/utils/node_modules/@scure/bip39": { + "version": "1.5.4", + "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.5.4.tgz", + "integrity": "sha512-TFM4ni0vKvCfBpohoh+/lY05i9gRbSwXWngAsF4CABQxoaOHijxuaZ2R6cStDQ5CHtHO9aGJTr4ksVJASRRyMA==", + "dependencies": { + "@noble/hashes": "~1.7.1", + "@scure/base": "~1.2.4" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@walletconnect/utils/node_modules/ox": { + "version": "0.6.7", + "resolved": "https://registry.npmjs.org/ox/-/ox-0.6.7.tgz", + "integrity": "sha512-17Gk/eFsFRAZ80p5eKqv89a57uXjd3NgIf1CaXojATPBuujVc/fQSVhBeAU9JCRB+k7J50WQAyWTxK19T9GgbA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/wevm" + } + ], + "dependencies": { + "@adraffy/ens-normalize": "^1.10.1", + "@noble/curves": "^1.6.0", + "@noble/hashes": "^1.5.0", + "@scure/bip32": "^1.5.0", + "@scure/bip39": "^1.4.0", + "abitype": "^1.0.6", + "eventemitter3": "5.0.1" + }, + "peerDependencies": { + "typescript": ">=5.4.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@walletconnect/utils/node_modules/viem": { + "version": "2.23.2", + "resolved": "https://registry.npmjs.org/viem/-/viem-2.23.2.tgz", + "integrity": "sha512-NVmW/E0c5crMOtbEAqMF0e3NmvQykFXhLOc/CkLIXOlzHSA6KXVz3CYVmaKqBF8/xtjsjHAGjdJN3Ru1kFJLaA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/wevm" + } + ], + "dependencies": { + "@noble/curves": "1.8.1", + "@noble/hashes": "1.7.1", + "@scure/bip32": "1.6.2", + "@scure/bip39": "1.5.4", + "abitype": "1.0.8", + "isows": "1.0.6", + "ox": "0.6.7", + "ws": "8.18.0" + }, + "peerDependencies": { + "typescript": ">=5.0.4" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@walletconnect/utils/node_modules/ws": { + "version": "8.18.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.0.tgz", + "integrity": "sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==", + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": ">=5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/@walletconnect/window-getters": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@walletconnect/window-getters/-/window-getters-1.0.1.tgz", + "integrity": "sha512-vHp+HqzGxORPAN8gY03qnbTMnhqIwjeRJNOMOAzePRg4xVEEE2WvYsI9G2NMjOknA8hnuYbU3/hwLcKbjhc8+Q==", + "dependencies": { + "tslib": "1.14.1" + } + }, + "node_modules/@walletconnect/window-getters/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" + }, + "node_modules/@walletconnect/window-metadata": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@walletconnect/window-metadata/-/window-metadata-1.0.1.tgz", + "integrity": "sha512-9koTqyGrM2cqFRW517BPY/iEtUDx2r1+Pwwu5m7sJ7ka79wi3EyqhqcICk/yDmv6jAS1rjKgTKXlEhanYjijcA==", + "dependencies": { + "@walletconnect/window-getters": "^1.0.1", + "tslib": "1.14.1" + } + }, + "node_modules/@walletconnect/window-metadata/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" + }, + "node_modules/abitype": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/abitype/-/abitype-1.0.8.tgz", + "integrity": "sha512-ZeiI6h3GnW06uYDLx0etQtX/p8E24UaHHBj57RSjK7YBFe7iuVn07EDpOeP451D06sF27VOz9JJPlIKJmXgkEg==", + "funding": { + "url": "https://github.com/sponsors/wevm" + }, + "peerDependencies": { + "typescript": ">=5.0.4", + "zod": "^3 >=3.22.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + }, + "zod": { + "optional": true + } + } + }, + "node_modules/acorn": { + "version": "8.14.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.1.tgz", + "integrity": "sha512-OvQ/2pUDKmgfCg++xsTX1wGxfTaszcHVcTctW4UJB4hibJx2HXxxO5UmVgyjMa+ZDsiaf5wWLXYpRWMmBI0QHg==", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true + }, + "node_modules/aria-query": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.2.tgz", + "integrity": "sha512-COROpnaoap1E2F000S62r6A60uHZnmlvomhfyT2DlTcrY1OrBKn2UhH7qn5wTC9zMvD0AY7csdPSNwKP+7WiQw==", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/async-mutex": { + "version": "0.2.6", + "resolved": "https://registry.npmjs.org/async-mutex/-/async-mutex-0.2.6.tgz", + "integrity": "sha512-Hs4R+4SPgamu6rSGW8C7cV9gaWUKEHykfzCCvIRuaVv636Ju10ZdeUbvb4TBEW0INuq2DHZqXbK4Nd3yG4RaRw==", + "dependencies": { + "tslib": "^2.0.0" + } + }, + "node_modules/atomic-sleep": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/atomic-sleep/-/atomic-sleep-1.0.0.tgz", + "integrity": "sha512-kNOjDqAh7px0XWNI+4QbzoiR/nTkHAWNud2uvnJquD1/x5a7EQZMJT0AczqK0Qn67oY/TTQ1LbUKajZpp3I9tQ==", + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/available-typed-arrays": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz", + "integrity": "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==", + "dependencies": { + "possible-typed-array-names": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/axobject-query": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-4.1.0.tgz", + "integrity": "sha512-qIj0G9wZbMGNLjLmg1PT6v2mE9AH2zlnADJD/2tC6E00hgmhUOfEB6greHPAfLRSufHqROIUTkw6E+M3lH0PTQ==", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true + }, + "node_modules/base-x": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/base-x/-/base-x-5.0.1.tgz", + "integrity": "sha512-M7uio8Zt++eg3jPj+rHMfCC+IuygQHHCOU+IYsVtik6FWjuYpVt/+MRKcgsAMHh8mMFAwnB+Bs+mTrFiXjMzKg==" + }, + "node_modules/base64-js": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/big.js": { + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/big.js/-/big.js-6.2.2.tgz", + "integrity": "sha512-y/ie+Faknx7sZA5MfGA2xKlu0GDv8RWrXGsmlteyJQ2lvoKv9GBK/fpRMc2qlSoBAgNxrixICFCBefIq8WCQpQ==", + "engines": { + "node": "*" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/bigjs" + } + }, + "node_modules/bn.js": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-5.2.1.tgz", + "integrity": "sha512-eXRvHzWyYPBuB4NBy0cmYQjGitUrtqwbvlzP3G6VFnNRbsZQIxQ10PbKKHt8gZ/HW/D/747aDl+QkDqg3KQLMQ==" + }, + "node_modules/bowser": { + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/bowser/-/bowser-2.11.0.tgz", + "integrity": "sha512-AlcaJBi/pqqJBIQ8U9Mcpc9i8Aqxn88Skv5d+xBX006BY5u8N3mGLHa5Lgppa7L/HfwgwLgZ6NYs+Ag6uUmJRA==" + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "dev": true, + "dependencies": { + "fill-range": "^7.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/brorand": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/brorand/-/brorand-1.1.0.tgz", + "integrity": "sha512-cKV8tMCEpQs4hK/ik71d6LrPOnpkpGBR0wzxqr68g2m/LB2GxVYQroAjMJZRVM1Y4BCjCKc3vAamxSzOY2RP+w==" + }, + "node_modules/browserslist": { + "version": "4.24.4", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.24.4.tgz", + "integrity": "sha512-KDi1Ny1gSePi1vm0q4oxSF8b4DR44GF4BbmS2YdhPLOEqd8pDviZOGH/GsmRwoWJ2+5Lr085X7naowMwKHDG1A==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "caniuse-lite": "^1.0.30001688", + "electron-to-chromium": "^1.5.73", + "node-releases": "^2.0.19", + "update-browserslist-db": "^1.1.1" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/bs58": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/bs58/-/bs58-6.0.0.tgz", + "integrity": "sha512-PD0wEnEYg6ijszw/u8s+iI3H17cTymlrwkKhDhPZq+Sokl3AU4htyBFTjAeNAlCCmg0f53g6ih3jATyCKftTfw==", + "dependencies": { + "base-x": "^5.0.0" + } + }, + "node_modules/buffer": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", + "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.2.1" + } + }, + "node_modules/bufferutil": { + "version": "4.0.9", + "resolved": "https://registry.npmjs.org/bufferutil/-/bufferutil-4.0.9.tgz", + "integrity": "sha512-WDtdLmJvAuNNPzByAYpRo2rF1Mmradw6gvWsQKf63476DDXmomT9zUiGypLcG4ibIM67vhAj8jJRdbmEws2Aqw==", + "hasInstallScript": true, + "dependencies": { + "node-gyp-build": "^4.3.0" + }, + "engines": { + "node": ">=6.14.2" + } + }, + "node_modules/call-bind": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.8.tgz", + "integrity": "sha512-oKlSFMcMwpUg2ednkhQ454wfWiU/ul3CkJe/PEHcTKuiX6RpbehUiFMXu13HalGZxfUwCQzZG747YXBn1im9ww==", + "dependencies": { + "call-bind-apply-helpers": "^1.0.0", + "es-define-property": "^1.0.0", + "get-intrinsic": "^1.2.4", + "set-function-length": "^1.2.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/call-bind-apply-helpers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", + "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/call-bound": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", + "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "get-intrinsic": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "engines": { + "node": ">=6" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001707", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001707.tgz", + "integrity": "sha512-3qtRjw/HQSMlDWf+X79N206fepf4SOOU6SQLMaq/0KkZLmSjPxAkBOQQ+FxbHKfHmYLZFfdWsO3KA90ceHPSnw==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ] + }, + "node_modules/cbw-sdk": { + "name": "@coinbase/wallet-sdk", + "version": "3.9.3", + "resolved": "https://registry.npmjs.org/@coinbase/wallet-sdk/-/wallet-sdk-3.9.3.tgz", + "integrity": "sha512-N/A2DRIf0Y3PHc1XAMvbBUu4zisna6qAdqABMZwBMNEfWrXpAwx16pZGkYCLGE+Rvv1edbcB2LYDRnACNcmCiw==", + "dependencies": { + "bn.js": "^5.2.1", + "buffer": "^6.0.3", + "clsx": "^1.2.1", + "eth-block-tracker": "^7.1.0", + "eth-json-rpc-filters": "^6.0.0", + "eventemitter3": "^5.0.1", + "keccak": "^3.0.3", + "preact": "^10.16.0", + "sha.js": "^2.4.11" + } + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/chokidar": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.3.tgz", + "integrity": "sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==", + "dependencies": { + "readdirp": "^4.0.1" + }, + "engines": { + "node": ">= 14.16.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/cli-color": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/cli-color/-/cli-color-2.0.4.tgz", + "integrity": "sha512-zlnpg0jNcibNrO7GG9IeHH7maWFeCz+Ja1wx/7tZNU5ASSSSZ+/qZciM0/LHCYxSdqv5h2sdbQ/PXYdOuetXvA==", + "dependencies": { + "d": "^1.0.1", + "es5-ext": "^0.10.64", + "es6-iterator": "^2.0.3", + "memoizee": "^0.4.15", + "timers-ext": "^0.1.7" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/cliui": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", + "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^6.2.0" + } + }, + "node_modules/clsx": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/clsx/-/clsx-1.2.1.tgz", + "integrity": "sha512-EcR6r5a8bj6pu3ycsa/E/cKVGuTgZJZdsyUYHOksG/UHIiKfjxzRxYJpyVBwYaQeOvghal9fcc4PidlgzugAQg==", + "engines": { + "node": ">=6" + } + }, + "node_modules/code-red": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/code-red/-/code-red-1.0.4.tgz", + "integrity": "sha512-7qJWqItLA8/VPVlKJlFXU+NBlo/qyfs39aJcuMT/2ere32ZqvF5OSxgdM5xOfJJ7O429gg2HM47y8v9P+9wrNw==", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.4.15", + "@types/estree": "^1.0.1", + "acorn": "^8.10.0", + "estree-walker": "^3.0.3", + "periscopic": "^3.1.0" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true + }, + "node_modules/convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "dev": true + }, + "node_modules/cookie-es": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/cookie-es/-/cookie-es-1.2.2.tgz", + "integrity": "sha512-+W7VmiVINB+ywl1HGXJXmrqkOhpKrIiVZV6tQuV54ZyQC7MMuBt81Vc336GMLoHBq5hV/F9eXgt5Mnx0Rha5Fg==" + }, + "node_modules/core-util-is": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", + "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==" + }, + "node_modules/crc-32": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/crc-32/-/crc-32-1.2.2.tgz", + "integrity": "sha512-ROmzCKrTnOwybPcJApAA6WBWij23HVfGVNKqqrZpuyZOHqK2CwHSvpGuyt/UNNvaIjEd8X5IFGp4Mh+Ie1IHJQ==", + "bin": { + "crc32": "bin/crc32.njs" + }, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/cross-fetch": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-4.1.0.tgz", + "integrity": "sha512-uKm5PU+MHTootlWEY+mZ4vvXoCn4fLQxT9dSc1sXVMSFkINTJVN8cAQROpwcKm8bJ/c7rgZVIBWzH5T78sNZZw==", + "dependencies": { + "node-fetch": "^2.7.0" + } + }, + "node_modules/cross-spawn": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "dev": true, + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/crossws": { + "version": "0.3.4", + "resolved": "https://registry.npmjs.org/crossws/-/crossws-0.3.4.tgz", + "integrity": "sha512-uj0O1ETYX1Bh6uSgktfPvwDiPYGQ3aI4qVsaC/LWpkIzGj1nUYm5FK3K+t11oOlpN01lGbprFCH4wBlKdJjVgw==", + "dependencies": { + "uncrypto": "^0.1.3" + } + }, + "node_modules/css-tree": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-2.3.1.tgz", + "integrity": "sha512-6Fv1DV/TYw//QF5IzQdqsNDjx/wc8TrMBZsqjL9eW01tWb7R7k/mq+/VXfJCl7SoD5emsJop9cOByJZfs8hYIw==", + "dependencies": { + "mdn-data": "2.0.30", + "source-map-js": "^1.0.1" + }, + "engines": { + "node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0" + } + }, + "node_modules/csstype": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz", + "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==", + "devOptional": true + }, + "node_modules/d": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/d/-/d-1.0.2.tgz", + "integrity": "sha512-MOqHvMWF9/9MX6nza0KgvFH4HpMU0EF5uUDXqX/BtxtU8NfB0QzRtJ8Oe/6SuS4kbhyzVJwjd97EA4PKrzJ8bw==", + "dependencies": { + "es5-ext": "^0.10.64", + "type": "^2.7.2" + }, + "engines": { + "node": ">=0.12" + } + }, + "node_modules/date-fns": { + "version": "2.30.0", + "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-2.30.0.tgz", + "integrity": "sha512-fnULvOpxnC5/Vg3NCiWelDsLiUc9bRwAPs/+LfTLNvetFCtCTN+yQz15C/fs4AwX1R9K5GLtLfn8QW+dWisaAw==", + "dependencies": { + "@babel/runtime": "^7.21.0" + }, + "engines": { + "node": ">=0.11" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/date-fns" + } + }, + "node_modules/dayjs": { + "version": "1.11.13", + "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.13.tgz", + "integrity": "sha512-oaMBel6gjolK862uaPQOVTA7q3TZhuSvuMQAAglQDOWYO9A91IrAOUJEyKVlqJlHE0vq5p5UXxzdPfMH/x6xNg==" + }, + "node_modules/debug": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", + "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/decimal.js": { + "version": "10.5.0", + "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.5.0.tgz", + "integrity": "sha512-8vDa8Qxvr/+d94hSh5P3IJwI5t8/c0KsMp+g8bNw9cY2icONa5aPfvKeieW1WlG0WQYwwhJ7mjui2xtiePQSXw==" + }, + "node_modules/decode-uri-component": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.2.tgz", + "integrity": "sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ==", + "engines": { + "node": ">=0.10" + } + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true + }, + "node_modules/deepmerge": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", + "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/define-data-property": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", + "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", + "dependencies": { + "es-define-property": "^1.0.0", + "es-errors": "^1.3.0", + "gopd": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/defu": { + "version": "6.1.4", + "resolved": "https://registry.npmjs.org/defu/-/defu-6.1.4.tgz", + "integrity": "sha512-mEQCMmwJu317oSz8CwdIOdwf3xMif1ttiM8LTufzc3g6kR+9Pe236twL8j3IYT1F7GfRgGcW6MWxzZjLIkuHIg==" + }, + "node_modules/dequal": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz", + "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==", + "engines": { + "node": ">=6" + } + }, + "node_modules/derive-valtio": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/derive-valtio/-/derive-valtio-0.1.0.tgz", + "integrity": "sha512-OCg2UsLbXK7GmmpzMXhYkdO64vhJ1ROUUGaTFyHjVwEdMEcTTRj7W1TxLbSBxdY8QLBPCcp66MTyaSy0RpO17A==", + "peerDependencies": { + "valtio": "*" + } + }, + "node_modules/destr": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/destr/-/destr-2.0.3.tgz", + "integrity": "sha512-2N3BOUU4gYMpTP24s5rF5iP7BDr7uNTCs4ozw3kf/eKfvWSIu93GEBi5m427YoyJoeOzQ5smuu4nNAPGb8idSQ==" + }, + "node_modules/detect-browser": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/detect-browser/-/detect-browser-5.3.0.tgz", + "integrity": "sha512-53rsFbGdwMwlF7qvCt0ypLM5V5/Mbl0szB7GPN8y9NCcbknYOeVVXdrXEq+90IwAfrrzt6Hd+u2E2ntakICU8w==" + }, + "node_modules/dijkstrajs": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/dijkstrajs/-/dijkstrajs-1.0.3.tgz", + "integrity": "sha512-qiSlmBq9+BCdCA/L46dw8Uy93mloxsPSbwnm5yrKn2vMPiy8KyAskTF6zuV/j5BMsmOGZDPs7KjU+mjb670kfA==" + }, + "node_modules/dunder-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", + "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", + "dependencies": { + "call-bind-apply-helpers": "^1.0.1", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/duplexify": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/duplexify/-/duplexify-4.1.3.tgz", + "integrity": "sha512-M3BmBhwJRZsSx38lZyhE53Csddgzl5R7xGJNk7CVddZD6CcmwMCH8J+7AprIrQKH7TonKxaCjcv27Qmf+sQ+oA==", + "dependencies": { + "end-of-stream": "^1.4.1", + "inherits": "^2.0.3", + "readable-stream": "^3.1.1", + "stream-shift": "^1.0.2" + } + }, + "node_modules/eciesjs": { + "version": "0.4.14", + "resolved": "https://registry.npmjs.org/eciesjs/-/eciesjs-0.4.14.tgz", + "integrity": "sha512-eJAgf9pdv214Hn98FlUzclRMYWF7WfoLlkS9nWMTm1qcCwn6Ad4EGD9lr9HXMBfSrZhYQujRE+p0adPRkctC6A==", + "dependencies": { + "@ecies/ciphers": "^0.2.2", + "@noble/ciphers": "^1.0.0", + "@noble/curves": "^1.6.0", + "@noble/hashes": "^1.5.0" + }, + "engines": { + "bun": ">=1", + "deno": ">=2", + "node": ">=16" + } + }, + "node_modules/electron-to-chromium": { + "version": "1.5.124", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.124.tgz", + "integrity": "sha512-riELkpDUqBi00gqreV3RIGoowxGrfueEKBd6zPdOk/I8lvuFpBGNkYoHof3zUHbiTBsIU8oxdIIL/WNrAG1/7A==", + "dev": true + }, + "node_modules/elliptic": { + "version": "6.6.1", + "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.6.1.tgz", + "integrity": "sha512-RaddvvMatK2LJHqFJ+YA4WysVN5Ita9E35botqIYspQ4TkRAlCicdzKOjlyv/1Za5RyTNn7di//eEV0uTAfe3g==", + "dependencies": { + "bn.js": "^4.11.9", + "brorand": "^1.1.0", + "hash.js": "^1.0.0", + "hmac-drbg": "^1.0.1", + "inherits": "^2.0.4", + "minimalistic-assert": "^1.0.1", + "minimalistic-crypto-utils": "^1.0.1" + } + }, + "node_modules/elliptic/node_modules/bn.js": { + "version": "4.12.1", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.1.tgz", + "integrity": "sha512-k8TVBiPkPJT9uHLdOKfFpqcfprwBFOAAXXozRubr7R7PfIuKvQlzcI4M0pALeqXN09vdaMbUdUj+pass+uULAg==" + }, + "node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" + }, + "node_modules/encode-utf8": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/encode-utf8/-/encode-utf8-1.0.3.tgz", + "integrity": "sha512-ucAnuBEhUK4boH2HjVYG5Q2mQyPorvv0u/ocS+zhdw0S8AlHYY+GOFhP1Gio5z4icpP2ivFSvhtFjQi8+T9ppw==" + }, + "node_modules/end-of-stream": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", + "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", + "dependencies": { + "once": "^1.4.0" + } + }, + "node_modules/engine.io-client": { + "version": "6.6.3", + "resolved": "https://registry.npmjs.org/engine.io-client/-/engine.io-client-6.6.3.tgz", + "integrity": "sha512-T0iLjnyNWahNyv/lcjS2y4oE358tVS/SYQNxYXGAJ9/GLgH4VCvOQ/mhTjqU88mLZCQgiG8RIegFHYCdVC+j5w==", + "dependencies": { + "@socket.io/component-emitter": "~3.1.0", + "debug": "~4.3.1", + "engine.io-parser": "~5.2.1", + "ws": "~8.17.1", + "xmlhttprequest-ssl": "~2.1.1" + } + }, + "node_modules/engine.io-client/node_modules/debug": { + "version": "4.3.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.7.tgz", + "integrity": "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/engine.io-client/node_modules/ws": { + "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.17.1.tgz", + "integrity": "sha512-6XQFvXTkbfUOZOKKILFG1PDK2NDQs4azKQl26T0YS5CxqWLgXajbPZ+h4gZekJyRqFU8pvnbAbbs/3TgRPy+GQ==", + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": ">=5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/engine.io-parser": { + "version": "5.2.3", + "resolved": "https://registry.npmjs.org/engine.io-parser/-/engine.io-parser-5.2.3.tgz", + "integrity": "sha512-HqD3yTBfnBxIrbnM1DoD6Pcq8NECnh8d4As1Qgh0z5Gg3jRRIqijury0CL3ghu/edArpUYiYqQiDUQBIs4np3Q==", + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/es-define-property": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", + "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-object-atoms": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", + "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", + "dependencies": { + "es-errors": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-toolkit": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/es-toolkit/-/es-toolkit-1.33.0.tgz", + "integrity": "sha512-X13Q/ZSc+vsO1q600bvNK4bxgXMkHcf//RxCmYDaRY5DAcT+eoXjY5hoAPGMdRnWQjvyLEcyauG3b6hz76LNqg==", + "workspaces": [ + "docs", + "benchmarks" + ] + }, + "node_modules/es5-ext": { + "version": "0.10.64", + "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.64.tgz", + "integrity": "sha512-p2snDhiLaXe6dahss1LddxqEm+SkuDvV8dnIQG0MWjyHpcMNfXKPE+/Cc0y+PhxJX3A4xGNeFCj5oc0BUh6deg==", + "hasInstallScript": true, + "dependencies": { + "es6-iterator": "^2.0.3", + "es6-symbol": "^3.1.3", + "esniff": "^2.0.1", + "next-tick": "^1.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/es6-iterator": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/es6-iterator/-/es6-iterator-2.0.3.tgz", + "integrity": "sha512-zw4SRzoUkd+cl+ZoE15A9o1oQd920Bb0iOJMQkQhl3jNc03YqVjAhG7scf9C5KWRU/R13Orf588uCC6525o02g==", + "dependencies": { + "d": "1", + "es5-ext": "^0.10.35", + "es6-symbol": "^3.1.1" + } + }, + "node_modules/es6-symbol": { + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/es6-symbol/-/es6-symbol-3.1.4.tgz", + "integrity": "sha512-U9bFFjX8tFiATgtkJ1zg25+KviIXpgRvRHS8sau3GfhVzThRQrOeksPeT0BWW2MNZs1OEWJ1DPXOQMn0KKRkvg==", + "dependencies": { + "d": "^1.0.2", + "ext": "^1.7.0" + }, + "engines": { + "node": ">=0.12" + } + }, + "node_modules/es6-weak-map": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/es6-weak-map/-/es6-weak-map-2.0.3.tgz", + "integrity": "sha512-p5um32HOTO1kP+w7PRnB+5lQ43Z6muuMuIMffvDN8ZB4GcnjLBV6zGStpbASIMk4DCAvEaamhe2zhyCb/QXXsA==", + "dependencies": { + "d": "1", + "es5-ext": "^0.10.46", + "es6-iterator": "^2.0.3", + "es6-symbol": "^3.1.1" + } + }, + "node_modules/esbuild": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.1.tgz", + "integrity": "sha512-BGO5LtrGC7vxnqucAe/rmvKdJllfGaYWdyABvyMoXQlfYMb2bbRuReWR5tEGE//4LcNJj9XrkovTqNYRFZHAMQ==", + "dev": true, + "hasInstallScript": true, + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.25.1", + "@esbuild/android-arm": "0.25.1", + "@esbuild/android-arm64": "0.25.1", + "@esbuild/android-x64": "0.25.1", + "@esbuild/darwin-arm64": "0.25.1", + "@esbuild/darwin-x64": "0.25.1", + "@esbuild/freebsd-arm64": "0.25.1", + "@esbuild/freebsd-x64": "0.25.1", + "@esbuild/linux-arm": "0.25.1", + "@esbuild/linux-arm64": "0.25.1", + "@esbuild/linux-ia32": "0.25.1", + "@esbuild/linux-loong64": "0.25.1", + "@esbuild/linux-mips64el": "0.25.1", + "@esbuild/linux-ppc64": "0.25.1", + "@esbuild/linux-riscv64": "0.25.1", + "@esbuild/linux-s390x": "0.25.1", + "@esbuild/linux-x64": "0.25.1", + "@esbuild/netbsd-arm64": "0.25.1", + "@esbuild/netbsd-x64": "0.25.1", + "@esbuild/openbsd-arm64": "0.25.1", + "@esbuild/openbsd-x64": "0.25.1", + "@esbuild/sunos-x64": "0.25.1", + "@esbuild/win32-arm64": "0.25.1", + "@esbuild/win32-ia32": "0.25.1", + "@esbuild/win32-x64": "0.25.1" + } + }, + "node_modules/escalade": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint": { + "version": "9.23.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.23.0.tgz", + "integrity": "sha512-jV7AbNoFPAY1EkFYpLq5bslU9NLNO8xnEeQXwErNibVryjk67wHVmddTBilc5srIttJDBrB0eMHKZBFbSIABCw==", + "dev": true, + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.12.1", + "@eslint/config-array": "^0.19.2", + "@eslint/config-helpers": "^0.2.0", + "@eslint/core": "^0.12.0", + "@eslint/eslintrc": "^3.3.1", + "@eslint/js": "9.23.0", + "@eslint/plugin-kit": "^0.2.7", + "@humanfs/node": "^0.16.6", + "@humanwhocodes/module-importer": "^1.0.1", + "@humanwhocodes/retry": "^0.4.2", + "@types/estree": "^1.0.6", + "@types/json-schema": "^7.0.15", + "ajv": "^6.12.4", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.6", + "debug": "^4.3.2", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^8.3.0", + "eslint-visitor-keys": "^4.2.0", + "espree": "^10.3.0", + "esquery": "^1.5.0", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^8.0.0", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "ignore": "^5.2.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.3" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://eslint.org/donate" + }, + "peerDependencies": { + "jiti": "*" + }, + "peerDependenciesMeta": { + "jiti": { + "optional": true + } + } + }, + "node_modules/eslint-plugin-react-hooks": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-5.2.0.tgz", + "integrity": "sha512-+f15FfK64YQwZdJNELETdn5ibXEUQmW1DZL6KXhNnc2heoy/sg9VJJeT7n8TlMWouzWqSWavFkIhHyIbIAEapg==", + "dev": true, + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0" + } + }, + "node_modules/eslint-plugin-react-refresh": { + "version": "0.4.19", + "resolved": "https://registry.npmjs.org/eslint-plugin-react-refresh/-/eslint-plugin-react-refresh-0.4.19.tgz", + "integrity": "sha512-eyy8pcr/YxSYjBoqIFSrlbn9i/xvxUFa8CjzAYo9cFjgGXqq1hyjihcpZvxRLalpaWmueWR81xn7vuKmAFijDQ==", + "dev": true, + "peerDependencies": { + "eslint": ">=8.40" + } + }, + "node_modules/eslint-scope": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.3.0.tgz", + "integrity": "sha512-pUNxi75F8MJ/GdeKtVLSbYg4ZI34J6C0C7sbL4YOp2exGwen7ZsuBqKzUhXd0qMQ362yET3z+uPwKeg/0C2XCQ==", + "dev": true, + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.0.tgz", + "integrity": "sha512-UyLnSehNt62FFhSwjZlHmeokpRK59rcz29j+F1/aDgbkbRTk7wIc9XzdoasMUbRNKDM0qQt/+BJ4BrpFeABemw==", + "dev": true, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/esniff": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/esniff/-/esniff-2.0.1.tgz", + "integrity": "sha512-kTUIGKQ/mDPFoJ0oVfcmyJn4iBDRptjNVIzwIFR7tqWXdVI9xfA2RMwY/gbSpJG3lkdWNEjLap/NqVHZiJsdfg==", + "dependencies": { + "d": "^1.0.1", + "es5-ext": "^0.10.62", + "event-emitter": "^0.3.5", + "type": "^2.7.2" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/espree": { + "version": "10.3.0", + "resolved": "https://registry.npmjs.org/espree/-/espree-10.3.0.tgz", + "integrity": "sha512-0QYC8b24HWY8zjRnDTL6RiHfDbAWn63qb4LMj1Z4b076A4une81+z03Kg7l7mn/48PUTqoLptSXez8oknU8Clg==", + "dev": true, + "dependencies": { + "acorn": "^8.14.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^4.2.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/esquery": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.6.0.tgz", + "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==", + "dev": true, + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estree-walker": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz", + "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==", + "dependencies": { + "@types/estree": "^1.0.0" + } + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/eth-block-tracker": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/eth-block-tracker/-/eth-block-tracker-7.1.0.tgz", + "integrity": "sha512-8YdplnuE1IK4xfqpf4iU7oBxnOYAc35934o083G8ao+8WM8QQtt/mVlAY6yIAdY1eMeLqg4Z//PZjJGmWGPMRg==", + "dependencies": { + "@metamask/eth-json-rpc-provider": "^1.0.0", + "@metamask/safe-event-emitter": "^3.0.0", + "@metamask/utils": "^5.0.1", + "json-rpc-random-id": "^1.0.1", + "pify": "^3.0.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/eth-block-tracker/node_modules/@metamask/utils": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/@metamask/utils/-/utils-5.0.2.tgz", + "integrity": "sha512-yfmE79bRQtnMzarnKfX7AEJBwFTxvTyw3nBQlu/5rmGXrjAeAMltoGxO62TFurxrQAFMNa/fEjIHNvungZp0+g==", + "dependencies": { + "@ethereumjs/tx": "^4.1.2", + "@types/debug": "^4.1.7", + "debug": "^4.3.4", + "semver": "^7.3.8", + "superstruct": "^1.0.3" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/eth-block-tracker/node_modules/semver": { + "version": "7.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz", + "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/eth-json-rpc-filters": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/eth-json-rpc-filters/-/eth-json-rpc-filters-6.0.1.tgz", + "integrity": "sha512-ITJTvqoCw6OVMLs7pI8f4gG92n/St6x80ACtHodeS+IXmO0w+t1T5OOzfSt7KLSMLRkVUoexV7tztLgDxg+iig==", + "dependencies": { + "@metamask/safe-event-emitter": "^3.0.0", + "async-mutex": "^0.2.6", + "eth-query": "^2.1.2", + "json-rpc-engine": "^6.1.0", + "pify": "^5.0.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/eth-json-rpc-filters/node_modules/pify": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-5.0.0.tgz", + "integrity": "sha512-eW/gHNMlxdSP6dmG6uJip6FXN0EQBwm2clYYd8Wul42Cwu/DK8HEftzsapcNdYe2MfLiIwZqsDk2RDEsTE79hA==", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eth-query": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/eth-query/-/eth-query-2.1.2.tgz", + "integrity": "sha512-srES0ZcvwkR/wd5OQBRA1bIJMww1skfGS0s8wlwK3/oNP4+wnds60krvu5R1QbpRQjMmpG5OMIWro5s7gvDPsA==", + "dependencies": { + "json-rpc-random-id": "^1.0.0", + "xtend": "^4.0.1" + } + }, + "node_modules/eth-rpc-errors": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/eth-rpc-errors/-/eth-rpc-errors-4.0.3.tgz", + "integrity": "sha512-Z3ymjopaoft7JDoxZcEb3pwdGh7yiYMhOwm2doUt6ASXlMavpNlK6Cre0+IMl2VSGyEU9rkiperQhp5iRxn5Pg==", + "dependencies": { + "fast-safe-stringify": "^2.0.6" + } + }, + "node_modules/ethereum-cryptography": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-2.2.1.tgz", + "integrity": "sha512-r/W8lkHSiTLxUxW8Rf3u4HGB0xQweG2RyETjywylKZSzLWoWAijRz8WCuOtJ6wah+avllXBqZuk29HCCvhEIRg==", + "dependencies": { + "@noble/curves": "1.4.2", + "@noble/hashes": "1.4.0", + "@scure/bip32": "1.4.0", + "@scure/bip39": "1.3.0" + } + }, + "node_modules/ethereum-cryptography/node_modules/@noble/curves": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.4.2.tgz", + "integrity": "sha512-TavHr8qycMChk8UwMld0ZDRvatedkzWfH8IiaeGCfymOP5i0hSCozz9vHOL0nkwk7HRMlFnAiKpS2jrUmSybcw==", + "dependencies": { + "@noble/hashes": "1.4.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/ethereum-cryptography/node_modules/@noble/hashes": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.4.0.tgz", + "integrity": "sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg==", + "engines": { + "node": ">= 16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/event-emitter": { + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/event-emitter/-/event-emitter-0.3.5.tgz", + "integrity": "sha512-D9rRn9y7kLPnJ+hMq7S/nhvoKwwvVJahBi2BPmx3bvbsEdK3W9ii8cBSGjP+72/LnM4n6fo3+dkCX5FeTQruXA==", + "dependencies": { + "d": "1", + "es5-ext": "~0.10.14" + } + }, + "node_modules/eventemitter2": { + "version": "6.4.9", + "resolved": "https://registry.npmjs.org/eventemitter2/-/eventemitter2-6.4.9.tgz", + "integrity": "sha512-JEPTiaOt9f04oa6NOkc4aH+nVp5I3wEjpHbIPqfgCdD5v5bUzy7xQqwcVO2aDQgOWhI28da57HksMrzK9HlRxg==" + }, + "node_modules/eventemitter3": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.1.tgz", + "integrity": "sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==" + }, + "node_modules/events": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", + "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", + "engines": { + "node": ">=0.8.x" + } + }, + "node_modules/ext": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/ext/-/ext-1.7.0.tgz", + "integrity": "sha512-6hxeJYaL110a9b5TEJSj0gojyHQAmA2ch5Os+ySCiA1QGdS697XWY1pzsrSjqA9LDEEgdB/KypIlR59RcLuHYw==", + "dependencies": { + "type": "^2.7.2" + } + }, + "node_modules/extension-port-stream": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/extension-port-stream/-/extension-port-stream-3.0.0.tgz", + "integrity": "sha512-an2S5quJMiy5bnZKEf6AkfH/7r8CzHvhchU40gxN+OM6HPhe7Z9T1FUychcf2M9PpPOO0Hf7BAEfJkw2TDIBDw==", + "dependencies": { + "readable-stream": "^3.6.2 || ^4.4.2", + "webextension-polyfill": ">=0.10.0 <1.0" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" + }, + "node_modules/fast-glob": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz", + "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.8" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/fast-glob/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true + }, + "node_modules/fast-redact": { + "version": "3.5.0", + "resolved": "https://registry.npmjs.org/fast-redact/-/fast-redact-3.5.0.tgz", + "integrity": "sha512-dwsoQlS7h9hMeYUq1W++23NDcBLV4KqONnITDV9DjfS3q1SgDGVrBdvvTLUotWtPSD7asWDV9/CmsZPy8Hf70A==", + "engines": { + "node": ">=6" + } + }, + "node_modules/fast-safe-stringify": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/fast-safe-stringify/-/fast-safe-stringify-2.1.1.tgz", + "integrity": "sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==" + }, + "node_modules/fastq": { + "version": "1.19.1", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.19.1.tgz", + "integrity": "sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ==", + "dev": true, + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/file-entry-cache": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", + "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==", + "dev": true, + "dependencies": { + "flat-cache": "^4.0.0" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/fill-range": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "dev": true, + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/filter-obj": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/filter-obj/-/filter-obj-1.1.0.tgz", + "integrity": "sha512-8rXg1ZnX7xzy2NGDVkBVaAy+lSlPNwad13BtgSlLuxfIslyt5Vg64U7tFcCt4WS1R0hvtnQybT/IyCkGZ3DpXQ==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/flat-cache": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz", + "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==", + "dev": true, + "dependencies": { + "flatted": "^3.2.9", + "keyv": "^4.5.4" + }, + "engines": { + "node": ">=16" + } + }, + "node_modules/flatted": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.3.tgz", + "integrity": "sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==", + "dev": true + }, + "node_modules/for-each": { + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.5.tgz", + "integrity": "sha512-dKx12eRCVIzqCxFGplyFKJMPvLEWgmNtUrpTiJIR5u97zEhRG8ySrtboPHZXx7daLxQVrl643cTzbab2tkQjxg==", + "dependencies": { + "is-callable": "^1.2.7" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/get-intrinsic": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", + "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", + "function-bind": "^1.1.2", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "math-intrinsics": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", + "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", + "dependencies": { + "dunder-proto": "^1.0.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/globals": { + "version": "16.0.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-16.0.0.tgz", + "integrity": "sha512-iInW14XItCXET01CQFqudPOWP2jYMl7T+QRQT+UNcR/iQncN/F0UNpgd76iFkBPgNQb4+X3LV9tLJYzwh+Gl3A==", + "dev": true, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/globalyzer": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/globalyzer/-/globalyzer-0.1.0.tgz", + "integrity": "sha512-40oNTM9UfG6aBmuKxk/giHn5nQ8RVz/SS4Ir6zgzOv9/qC3kKZ9v4etGTcJbEl/NyVQH7FGU7d+X1egr57Md2Q==" + }, + "node_modules/globrex": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/globrex/-/globrex-0.1.2.tgz", + "integrity": "sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg==" + }, + "node_modules/gopd": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", + "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/graphemer": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", + "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", + "dev": true + }, + "node_modules/h3": { + "version": "1.15.1", + "resolved": "https://registry.npmjs.org/h3/-/h3-1.15.1.tgz", + "integrity": "sha512-+ORaOBttdUm1E2Uu/obAyCguiI7MbBvsLTndc3gyK3zU+SYLoZXlyCP9Xgy0gikkGufFLTZXCXD6+4BsufnmHA==", + "dependencies": { + "cookie-es": "^1.2.2", + "crossws": "^0.3.3", + "defu": "^6.1.4", + "destr": "^2.0.3", + "iron-webcrypto": "^1.2.1", + "node-mock-http": "^1.0.0", + "radix3": "^1.1.2", + "ufo": "^1.5.4", + "uncrypto": "^0.1.3" + } + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/has-property-descriptors": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", + "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", + "dependencies": { + "es-define-property": "^1.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-symbols": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-tostringtag": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", + "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", + "dependencies": { + "has-symbols": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/hash.js": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.7.tgz", + "integrity": "sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA==", + "dependencies": { + "inherits": "^2.0.3", + "minimalistic-assert": "^1.0.1" + } + }, + "node_modules/hasown": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/hey-listen": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/hey-listen/-/hey-listen-1.0.8.tgz", + "integrity": "sha512-COpmrF2NOg4TBWUJ5UVyaCU2A88wEMkUPK4hNqyCkqHbxT92BbvfjoSozkAIIm6XhicGlJHhFdullInrdhwU8Q==", + "license": "MIT" + }, + "node_modules/hmac-drbg": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz", + "integrity": "sha512-Tti3gMqLdZfhOQY1Mzf/AanLiqh1WTiJgEj26ZuYQ9fbkLomzGchCws4FyrSd4VkpBfiNhaE1On+lOz894jvXg==", + "dependencies": { + "hash.js": "^1.0.3", + "minimalistic-assert": "^1.0.0", + "minimalistic-crypto-utils": "^1.0.1" + } + }, + "node_modules/idb-keyval": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/idb-keyval/-/idb-keyval-6.2.1.tgz", + "integrity": "sha512-8Sb3veuYCyrZL+VBt9LJfZjLUPWVvqn8tG28VqYNFCo43KHcKuq+b4EiXGeuaLAQWL2YmyDgMp2aSpH9JHsEQg==" + }, + "node_modules/ieee754": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", + "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/ignore": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", + "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", + "dev": true, + "engines": { + "node": ">= 4" + } + }, + "node_modules/import-fresh": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz", + "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==", + "dev": true, + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" + }, + "node_modules/intl-messageformat": { + "version": "10.7.16", + "resolved": "https://registry.npmjs.org/intl-messageformat/-/intl-messageformat-10.7.16.tgz", + "integrity": "sha512-UmdmHUmp5CIKKjSoE10la5yfU+AYJAaiYLsodbjL4lji83JNvgOQUjGaGhGrpFCb0Uh7sl7qfP1IyILa8Z40ug==", + "dependencies": { + "@formatjs/ecma402-abstract": "2.3.4", + "@formatjs/fast-memoize": "2.2.7", + "@formatjs/icu-messageformat-parser": "2.11.2", + "tslib": "^2.8.0" + } + }, + "node_modules/iron-webcrypto": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/iron-webcrypto/-/iron-webcrypto-1.2.1.tgz", + "integrity": "sha512-feOM6FaSr6rEABp/eDfVseKyTMDt+KGpeB35SkVn9Tyn0CqvVsY3EwI0v5i8nMHyJnzCIQf7nsy3p41TPkJZhg==", + "funding": { + "url": "https://github.com/sponsors/brc-dd" + } + }, + "node_modules/is-arguments": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.2.0.tgz", + "integrity": "sha512-7bVbi0huj/wrIAOzb8U1aszg9kdi3KN/CyU19CTI7tAoZYEZoL9yCDXpbXN+uPsuWnP02cyug1gleqq+TU+YCA==", + "dependencies": { + "call-bound": "^1.0.2", + "has-tostringtag": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-callable": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", + "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-generator-function": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.1.0.tgz", + "integrity": "sha512-nPUB5km40q9e8UfN/Zc24eLlzdSf9OfKByBw9CIdw4H1giPMeA0OIJvbchsCu4npfI2QcMVBsGEBHKZ7wLTWmQ==", + "dependencies": { + "call-bound": "^1.0.3", + "get-proto": "^1.0.0", + "has-tostringtag": "^1.0.2", + "safe-regex-test": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-promise": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-2.2.2.tgz", + "integrity": "sha512-+lP4/6lKUBfQjZ2pdxThZvLUAafmZb8OAxFb8XXtiQmS35INgr85hdOGoEs124ez1FCnZJt6jau/T+alh58QFQ==" + }, + "node_modules/is-reference": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/is-reference/-/is-reference-3.0.3.tgz", + "integrity": "sha512-ixkJoqQvAP88E6wLydLGGqCJsrFUnqoH6HnaczB8XmDH1oaWU+xxdptvikTgaEhtZ53Ky6YXiBuUI2WXLMCwjw==", + "dependencies": { + "@types/estree": "^1.0.6" + } + }, + "node_modules/is-regex": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.2.1.tgz", + "integrity": "sha512-MjYsKHO5O7mCsmRGxWcLWheFqN9DJ/2TmngvjKXihe6efViPqc274+Fx/4fYj/r03+ESvBdTXK0V6tA3rgez1g==", + "dependencies": { + "call-bound": "^1.0.2", + "gopd": "^1.2.0", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-typed-array": { + "version": "1.1.15", + "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.15.tgz", + "integrity": "sha512-p3EcsicXjit7SaskXHs1hA91QxgTw46Fv6EFKKGS5DRFLD8yKnohjF3hxoju94b/OcMZoQukzpPpBE9uLVKzgQ==", + "dependencies": { + "which-typed-array": "^1.1.16" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==" + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true + }, + "node_modules/isows": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/isows/-/isows-1.0.6.tgz", + "integrity": "sha512-lPHCayd40oW98/I0uvgaHKWCSvkzY27LjWLbtzOm64yQ+G3Q5npjjbdppU65iZXkK1Zt+kH9pfegli0AYfwYYw==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/wevm" + } + ], + "peerDependencies": { + "ws": "*" + } + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" + }, + "node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dev": true, + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/jsesc": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", + "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", + "dev": true, + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/json-buffer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", + "dev": true + }, + "node_modules/json-rpc-engine": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/json-rpc-engine/-/json-rpc-engine-6.1.0.tgz", + "integrity": "sha512-NEdLrtrq1jUZyfjkr9OCz9EzCNhnRyWtt1PAnvnhwy6e8XETS0Dtc+ZNCO2gvuAoKsIn2+vCSowXTYE4CkgnAQ==", + "dependencies": { + "@metamask/safe-event-emitter": "^2.0.0", + "eth-rpc-errors": "^4.0.2" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/json-rpc-engine/node_modules/@metamask/safe-event-emitter": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@metamask/safe-event-emitter/-/safe-event-emitter-2.0.0.tgz", + "integrity": "sha512-/kSXhY692qiV1MXu6EeOZvg5nECLclxNXcKCxJ3cXQgYuRymRHpdx/t7JXfsK+JLjwA1e1c1/SBrlQYpusC29Q==" + }, + "node_modules/json-rpc-random-id": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-rpc-random-id/-/json-rpc-random-id-1.0.1.tgz", + "integrity": "sha512-RJ9YYNCkhVDBuP4zN5BBtYAzEl03yq/jIIsyif0JY9qyJuQQZNeDK7anAPKKlyEtLSj2s8h6hNh2F8zO5q7ScA==" + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "dev": true + }, + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true, + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/keccak": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/keccak/-/keccak-3.0.4.tgz", + "integrity": "sha512-3vKuW0jV8J3XNTzvfyicFR5qvxrSAGl7KIhvgOu5cmWwM7tZRj3fMbj/pfIf4be7aznbc+prBWGjywox/g2Y6Q==", + "hasInstallScript": true, + "dependencies": { + "node-addon-api": "^2.0.0", + "node-gyp-build": "^4.2.0", + "readable-stream": "^3.6.0" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/keyv": { + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", + "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", + "dev": true, + "dependencies": { + "json-buffer": "3.0.1" + } + }, + "node_modules/keyvaluestorage-interface": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/keyvaluestorage-interface/-/keyvaluestorage-interface-1.0.0.tgz", + "integrity": "sha512-8t6Q3TclQ4uZynJY9IGr2+SsIGwK9JHcO6ootkHCGA0CrQCRy+VkouYNO2xicET6b9al7QKzpebNow+gkpCL8g==" + }, + "node_modules/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/lit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/lit/-/lit-3.1.0.tgz", + "integrity": "sha512-rzo/hmUqX8zmOdamDAeydfjsGXbbdtAFqMhmocnh2j9aDYqbu0fjXygjCa0T99Od9VQ/2itwaGrjZz/ZELVl7w==", + "dependencies": { + "@lit/reactive-element": "^2.0.0", + "lit-element": "^4.0.0", + "lit-html": "^3.1.0" + } + }, + "node_modules/lit-element": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/lit-element/-/lit-element-4.1.1.tgz", + "integrity": "sha512-HO9Tkkh34QkTeUmEdNYhMT8hzLid7YlMlATSi1q4q17HE5d9mrrEHJ/o8O2D0cMi182zK1F3v7x0PWFjrhXFew==", + "dependencies": { + "@lit-labs/ssr-dom-shim": "^1.2.0", + "@lit/reactive-element": "^2.0.4", + "lit-html": "^3.2.0" + } + }, + "node_modules/lit-html": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/lit-html/-/lit-html-3.2.1.tgz", + "integrity": "sha512-qI/3lziaPMSKsrwlxH/xMgikhQ0EGOX2ICU73Bi/YHFvz2j/yMCIrw4+puF2IpQ4+upd3EWbvnHM9+PnJn48YA==", + "dependencies": { + "@types/trusted-types": "^2.0.2" + } + }, + "node_modules/locate-character": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/locate-character/-/locate-character-3.0.0.tgz", + "integrity": "sha512-SW13ws7BjaeJ6p7Q6CO2nchbYEc3X3J6WrmTTDto7yMPqVSZTUyY5Tjbid+Ab8gLnATtygYtiDIJGQRRn2ZOiA==" + }, + "node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true + }, + "node_modules/loose-envify": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", + "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", + "license": "MIT", + "peer": true, + "dependencies": { + "js-tokens": "^3.0.0 || ^4.0.0" + }, + "bin": { + "loose-envify": "cli.js" + } + }, + "node_modules/lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/lru-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/lru-queue/-/lru-queue-0.1.0.tgz", + "integrity": "sha512-BpdYkt9EvGl8OfWHDQPISVpcl5xZthb+XPsbELj5AQXxIC8IriDZIQYjBJPEm5rS420sjZ0TLEzRcq5KdBhYrQ==", + "dependencies": { + "es5-ext": "~0.10.2" + } + }, + "node_modules/magic-string": { + "version": "0.30.17", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.17.tgz", + "integrity": "sha512-sNPKHvyjVf7gyjwS4xGTaW/mCnF8wnjtifKBEhxfZ7E/S8tQ0rssrwGNn6q8JH/ohItJfSQp9mBtQYuTlH5QnA==", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.0" + } + }, + "node_modules/math-intrinsics": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", + "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/mdn-data": { + "version": "2.0.30", + "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.30.tgz", + "integrity": "sha512-GaqWWShW4kv/G9IEucWScBx9G1/vsFZZJUO+tD26M8J8z3Kw5RDQjaoZe03YAClgeS/SWPOcb4nkFBTEi5DUEA==" + }, + "node_modules/memoizee": { + "version": "0.4.17", + "resolved": "https://registry.npmjs.org/memoizee/-/memoizee-0.4.17.tgz", + "integrity": "sha512-DGqD7Hjpi/1or4F/aYAspXKNm5Yili0QDAFAY4QYvpqpgiY6+1jOfqpmByzjxbWd/T9mChbCArXAbDAsTm5oXA==", + "dependencies": { + "d": "^1.0.2", + "es5-ext": "^0.10.64", + "es6-weak-map": "^2.0.3", + "event-emitter": "^0.3.5", + "is-promise": "^2.2.2", + "lru-queue": "^0.1.0", + "next-tick": "^1.1.0", + "timers-ext": "^0.1.7" + }, + "engines": { + "node": ">=0.12" + } + }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/micro-ftch": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/micro-ftch/-/micro-ftch-0.3.1.tgz", + "integrity": "sha512-/0LLxhzP0tfiR5hcQebtudP56gUurs2CLkGarnCiB/OqEyUFQ6U3paQi/tgLv0hBJYt2rnr9MNpxz4fiiugstg==" + }, + "node_modules/micromatch": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", + "dev": true, + "dependencies": { + "braces": "^3.0.3", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/minimalistic-assert": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", + "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==" + }, + "node_modules/minimalistic-crypto-utils": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz", + "integrity": "sha512-JIYlbt6g8i5jKfJ3xz7rF0LXmv2TkDxBLUkiBeZ7bAx4GnnNMr8xFpGnOxn6GhTEHx3SjRrZEoU+j04prX1ktg==" + }, + "node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/mipd": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/mipd/-/mipd-0.0.7.tgz", + "integrity": "sha512-aAPZPNDQ3uMTdKbuO2YmAw2TxLHO0moa4YKAyETM/DTj5FloZo+a+8tU+iv4GmW+sOxKLSRwcSFuczk+Cpt6fg==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/wagmi-dev" + } + ], + "peerDependencies": { + "typescript": ">=5.0.4" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/motion": { + "version": "10.16.2", + "resolved": "https://registry.npmjs.org/motion/-/motion-10.16.2.tgz", + "integrity": "sha512-p+PurYqfUdcJZvtnmAqu5fJgV2kR0uLFQuBKtLeFVTrYEVllI99tiOTSefVNYuip9ELTEkepIIDftNdze76NAQ==", + "license": "MIT", + "dependencies": { + "@motionone/animation": "^10.15.1", + "@motionone/dom": "^10.16.2", + "@motionone/svelte": "^10.16.2", + "@motionone/types": "^10.15.1", + "@motionone/utils": "^10.15.1", + "@motionone/vue": "^10.16.2" + } + }, + "node_modules/mri": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/mri/-/mri-1.2.0.tgz", + "integrity": "sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==", + "engines": { + "node": ">=4" + } + }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" + }, + "node_modules/multiformats": { + "version": "9.9.0", + "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-9.9.0.tgz", + "integrity": "sha512-HoMUjhH9T8DDBNT+6xzkrd9ga/XiBI4xLr58LJACwK6G3HTOPeMz4nB4KJs33L2BelrIJa7P0VuNaVF3hMYfjg==" + }, + "node_modules/nanoid": { + "version": "3.3.11", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz", + "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true + }, + "node_modules/next-tick": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/next-tick/-/next-tick-1.1.0.tgz", + "integrity": "sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ==" + }, + "node_modules/node-addon-api": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-2.0.2.tgz", + "integrity": "sha512-Ntyt4AIXyaLIuMHF6IOoTakB3K+RWxwtsHNRxllEoA6vPwP9o4866g6YWDLUdnucilZhmkxiHwHr11gAENw+QA==" + }, + "node_modules/node-fetch": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", + "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", + "dependencies": { + "whatwg-url": "^5.0.0" + }, + "engines": { + "node": "4.x || >=6.0.0" + }, + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } + } + }, + "node_modules/node-fetch-native": { + "version": "1.6.6", + "resolved": "https://registry.npmjs.org/node-fetch-native/-/node-fetch-native-1.6.6.tgz", + "integrity": "sha512-8Mc2HhqPdlIfedsuZoc3yioPuzp6b+L5jRCRY1QzuWZh2EGJVQrGppC6V6cF0bLdbW0+O2YpqCA25aF/1lvipQ==" + }, + "node_modules/node-gyp-build": { + "version": "4.8.4", + "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.8.4.tgz", + "integrity": "sha512-LA4ZjwlnUblHVgq0oBF3Jl/6h/Nvs5fzBLwdEF4nuxnFdsfajde4WfxtJr3CaiH+F6ewcIB/q4jQ4UzPyid+CQ==", + "bin": { + "node-gyp-build": "bin.js", + "node-gyp-build-optional": "optional.js", + "node-gyp-build-test": "build-test.js" + } + }, + "node_modules/node-mock-http": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/node-mock-http/-/node-mock-http-1.0.0.tgz", + "integrity": "sha512-0uGYQ1WQL1M5kKvGRXWQ3uZCHtLTO8hln3oBjIusM75WoesZ909uQJs/Hb946i2SS+Gsrhkaa6iAO17jRIv6DQ==" + }, + "node_modules/node-releases": { + "version": "2.0.19", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.19.tgz", + "integrity": "sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw==", + "dev": true + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/obj-multiplex": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/obj-multiplex/-/obj-multiplex-1.0.0.tgz", + "integrity": "sha512-0GNJAOsHoBHeNTvl5Vt6IWnpUEcc3uSRxzBri7EDyIcMgYvnY2JL2qdeV5zTMjWQX5OHcD5amcW2HFfDh0gjIA==", + "dependencies": { + "end-of-stream": "^1.4.0", + "once": "^1.4.0", + "readable-stream": "^2.3.3" + } + }, + "node_modules/obj-multiplex/node_modules/readable-stream": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/obj-multiplex/node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + }, + "node_modules/obj-multiplex/node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, + "node_modules/ofetch": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/ofetch/-/ofetch-1.4.1.tgz", + "integrity": "sha512-QZj2DfGplQAr2oj9KzceK9Hwz6Whxazmn85yYeVuS3u9XTMOGMRx0kO95MQ+vLsj/S/NwBDMMLU5hpxvI6Tklw==", + "dependencies": { + "destr": "^2.0.3", + "node-fetch-native": "^1.6.4", + "ufo": "^1.5.4" + } + }, + "node_modules/on-exit-leak-free": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/on-exit-leak-free/-/on-exit-leak-free-0.2.0.tgz", + "integrity": "sha512-dqaz3u44QbRXQooZLTUKU41ZrzYrcvLISVgbrzbyCMxpmSLJvZ3ZamIJIZ29P6OhZIkNIQKosdeM6t1LYbA9hg==" + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/optionator": { + "version": "0.9.4", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", + "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", + "dev": true, + "dependencies": { + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.5" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/ox": { + "version": "0.6.9", + "resolved": "https://registry.npmjs.org/ox/-/ox-0.6.9.tgz", + "integrity": "sha512-wi5ShvzE4eOcTwQVsIPdFr+8ycyX+5le/96iAJutaZAvCes1J0+RvpEPg5QDPDiaR0XQQAvZVl7AwqQcINuUug==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/wevm" + } + ], + "dependencies": { + "@adraffy/ens-normalize": "^1.10.1", + "@noble/curves": "^1.6.0", + "@noble/hashes": "^1.5.0", + "@scure/bip32": "^1.5.0", + "@scure/bip39": "^1.4.0", + "abitype": "^1.0.6", + "eventemitter3": "5.0.1" + }, + "peerDependencies": { + "typescript": ">=5.4.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/ox/node_modules/@noble/curves": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.8.1.tgz", + "integrity": "sha512-warwspo+UYUPep0Q+vtdVB4Ugn8GGQj8iyB3gnRWsztmUHTI3S1nhdiWNsPUGL0vud7JlRRk1XEu7Lq1KGTnMQ==", + "dependencies": { + "@noble/hashes": "1.7.1" + }, + "engines": { + "node": "^14.21.3 || >=16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/ox/node_modules/@scure/bip32": { + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.6.2.tgz", + "integrity": "sha512-t96EPDMbtGgtb7onKKqxRLfE5g05k7uHnHRM2xdE6BP/ZmxaLtPek4J4KfVn/90IQNrU1IOAqMgiDtUdtbe3nw==", + "dependencies": { + "@noble/curves": "~1.8.1", + "@noble/hashes": "~1.7.1", + "@scure/base": "~1.2.2" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/ox/node_modules/@scure/bip39": { + "version": "1.5.4", + "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.5.4.tgz", + "integrity": "sha512-TFM4ni0vKvCfBpohoh+/lY05i9gRbSwXWngAsF4CABQxoaOHijxuaZ2R6cStDQ5CHtHO9aGJTr4ksVJASRRyMA==", + "dependencies": { + "@noble/hashes": "~1.7.1", + "@scure/base": "~1.2.4" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "engines": { + "node": ">=6" + } + }, + "node_modules/parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dev": true, + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/periscopic": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/periscopic/-/periscopic-3.1.0.tgz", + "integrity": "sha512-vKiQ8RRtkl9P+r/+oefh25C3fhybptkHKCZSPlcXiJux2tJF55GnEj3BVn4A5gKfq9NWWXXrxkHBwVPUfH0opw==", + "dependencies": { + "@types/estree": "^1.0.0", + "estree-walker": "^3.0.0", + "is-reference": "^3.0.0" + } + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "dev": true + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pify": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", + "integrity": "sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg==", + "engines": { + "node": ">=4" + } + }, + "node_modules/pino": { + "version": "7.11.0", + "resolved": "https://registry.npmjs.org/pino/-/pino-7.11.0.tgz", + "integrity": "sha512-dMACeu63HtRLmCG8VKdy4cShCPKaYDR4youZqoSWLxl5Gu99HUw8bw75thbPv9Nip+H+QYX8o3ZJbTdVZZ2TVg==", + "dependencies": { + "atomic-sleep": "^1.0.0", + "fast-redact": "^3.0.0", + "on-exit-leak-free": "^0.2.0", + "pino-abstract-transport": "v0.5.0", + "pino-std-serializers": "^4.0.0", + "process-warning": "^1.0.0", + "quick-format-unescaped": "^4.0.3", + "real-require": "^0.1.0", + "safe-stable-stringify": "^2.1.0", + "sonic-boom": "^2.2.1", + "thread-stream": "^0.15.1" + }, + "bin": { + "pino": "bin.js" + } + }, + "node_modules/pino-abstract-transport": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/pino-abstract-transport/-/pino-abstract-transport-0.5.0.tgz", + "integrity": "sha512-+KAgmVeqXYbTtU2FScx1XS3kNyfZ5TrXY07V96QnUSFqo2gAqlvmaxH67Lj7SWazqsMabf+58ctdTcBgnOLUOQ==", + "dependencies": { + "duplexify": "^4.1.2", + "split2": "^4.0.0" + } + }, + "node_modules/pino-std-serializers": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/pino-std-serializers/-/pino-std-serializers-4.0.0.tgz", + "integrity": "sha512-cK0pekc1Kjy5w9V2/n+8MkZwusa6EyyxfeQCB799CQRhRt/CqYKiWs5adeu8Shve2ZNffvfC/7J64A2PJo1W/Q==" + }, + "node_modules/pngjs": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/pngjs/-/pngjs-5.0.0.tgz", + "integrity": "sha512-40QW5YalBNfQo5yRYmiw7Yz6TKKVr3h6970B2YE+3fQpsWcrbj1PzJgxeJ19DRQjhMbKPIuMY8rFaXc8moolVw==", + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/pony-cause": { + "version": "2.1.11", + "resolved": "https://registry.npmjs.org/pony-cause/-/pony-cause-2.1.11.tgz", + "integrity": "sha512-M7LhCsdNbNgiLYiP4WjsfLUuFmCfnjdF6jKe2R9NKl4WFN+HZPGHJZ9lnLP7f9ZnKe3U9nuWD0szirmj+migUg==", + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/possible-typed-array-names": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.1.0.tgz", + "integrity": "sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg==", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/postcss": { + "version": "8.5.3", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.3.tgz", + "integrity": "sha512-dle9A3yYxlBSrt8Fu+IpjGT8SY8hN0mlaA6GY8t0P5PjIOZemULz/E2Bnm/2dcUOena75OTNkHI76uZBNUUq3A==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "nanoid": "^3.3.8", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.1" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/preact": { + "version": "10.26.4", + "resolved": "https://registry.npmjs.org/preact/-/preact-10.26.4.tgz", + "integrity": "sha512-KJhO7LBFTjP71d83trW+Ilnjbo+ySsaAgCfXOXUlmGzJ4ygYPWmysm77yg4emwfmoz3b22yvH5IsVFHbhUaH5w==", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/preact" + } + }, + "node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/process-nextick-args": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" + }, + "node_modules/process-warning": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/process-warning/-/process-warning-1.0.0.tgz", + "integrity": "sha512-du4wfLyj4yCZq1VupnVSZmRsPJsNuxoDQFdCFHLaYiEbFBD7QE0a+I4D7hOxrVnh78QE/YipFAj9lXHiXocV+Q==" + }, + "node_modules/proxy-compare": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/proxy-compare/-/proxy-compare-2.6.0.tgz", + "integrity": "sha512-8xuCeM3l8yqdmbPoYeLbrAXCBWu19XEYc5/F28f5qOaoAIMyfmBUkl5axiK+x9olUvRlcekvnm98AP9RDngOIw==" + }, + "node_modules/pump": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.2.tgz", + "integrity": "sha512-tUPXtzlGM8FE3P0ZL6DVs/3P58k9nk8/jZeQCurTJylQA8qFYzHFfhBJkuqyE0FifOsQ0uKWekiZ5g8wtr28cw==", + "dependencies": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + }, + "node_modules/punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/qrcode": { + "version": "1.5.3", + "resolved": "https://registry.npmjs.org/qrcode/-/qrcode-1.5.3.tgz", + "integrity": "sha512-puyri6ApkEHYiVl4CFzo1tDkAZ+ATcnbJrJ6RiBM1Fhctdn/ix9MTE3hRph33omisEbC/2fcfemsseiKgBPKZg==", + "dependencies": { + "dijkstrajs": "^1.0.1", + "encode-utf8": "^1.0.3", + "pngjs": "^5.0.0", + "yargs": "^15.3.1" + }, + "bin": { + "qrcode": "bin/qrcode" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/query-string": { + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/query-string/-/query-string-7.1.3.tgz", + "integrity": "sha512-hh2WYhq4fi8+b+/2Kg9CEge4fDPvHS534aOOvOZeQ3+Vf2mCFsaFBYj0i+iXcAq6I9Vzp5fjMFBlONvayDC1qg==", + "dependencies": { + "decode-uri-component": "^0.2.2", + "filter-obj": "^1.1.0", + "split-on-first": "^1.0.0", + "strict-uri-encode": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/quick-format-unescaped": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/quick-format-unescaped/-/quick-format-unescaped-4.0.4.tgz", + "integrity": "sha512-tYC1Q1hgyRuHgloV/YXs2w15unPVh8qfu/qCTfhTYamaw7fyhumKa2yGpdSo87vY32rIclj+4fWYQXUMs9EHvg==" + }, + "node_modules/radix3": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/radix3/-/radix3-1.1.2.tgz", + "integrity": "sha512-b484I/7b8rDEdSDKckSSBA8knMpcdsXudlE/LNL639wFoHKwLbEkQFZHWEYwDC0wa0FKUcCY+GAF73Z7wxNVFA==" + }, + "node_modules/react": { + "version": "19.0.0", + "resolved": "https://registry.npmjs.org/react/-/react-19.0.0.tgz", + "integrity": "sha512-V8AVnmPIICiWpGfm6GLzCR/W5FXLchHop40W4nXBmdlEceh16rCN8O8LNWm5bh5XUX91fh7KpA+W0TgMKmgTpQ==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-dom": { + "version": "19.0.0", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.0.0.tgz", + "integrity": "sha512-4GV5sHFG0e/0AD4X+ySy6UJd3jVl1iNsNHdpad0qhABJ11twS3TTBnseqsKurKcsNqCEFeGL3uLpVChpIO3QfQ==", + "dependencies": { + "scheduler": "^0.25.0" + }, + "peerDependencies": { + "react": "^19.0.0" + } + }, + "node_modules/react-refresh": { + "version": "0.14.2", + "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.14.2.tgz", + "integrity": "sha512-jCvmsr+1IUSMUyzOkRcvnVbX3ZYC6g9TDrDbFuFmRDq7PD4yaGbLKNQL6k2jnArV8hjYxh7hVhAZB6s9HDGpZA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/readdirp": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-4.1.2.tgz", + "integrity": "sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==", + "engines": { + "node": ">= 14.18.0" + }, + "funding": { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/real-require": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/real-require/-/real-require-0.1.0.tgz", + "integrity": "sha512-r/H9MzAWtrv8aSVjPCMFpDMl5q66GqtmmRkRjpHTsp4zBAa+snZyiQNlMONiUmEJcsnaw0wCauJ2GWODr/aFkg==", + "engines": { + "node": ">= 12.13.0" + } + }, + "node_modules/regenerator-runtime": { + "version": "0.14.1", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz", + "integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==" + }, + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/require-main-filename": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", + "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==" + }, + "node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/reusify": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz", + "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==", + "dev": true, + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/rollup": { + "version": "4.37.0", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.37.0.tgz", + "integrity": "sha512-iAtQy/L4QFU+rTJ1YUjXqJOJzuwEghqWzCEYD2FEghT7Gsy1VdABntrO4CLopA5IkflTyqNiLNwPcOJ3S7UKLg==", + "dev": true, + "dependencies": { + "@types/estree": "1.0.6" + }, + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=18.0.0", + "npm": ">=8.0.0" + }, + "optionalDependencies": { + "@rollup/rollup-android-arm-eabi": "4.37.0", + "@rollup/rollup-android-arm64": "4.37.0", + "@rollup/rollup-darwin-arm64": "4.37.0", + "@rollup/rollup-darwin-x64": "4.37.0", + "@rollup/rollup-freebsd-arm64": "4.37.0", + "@rollup/rollup-freebsd-x64": "4.37.0", + "@rollup/rollup-linux-arm-gnueabihf": "4.37.0", + "@rollup/rollup-linux-arm-musleabihf": "4.37.0", + "@rollup/rollup-linux-arm64-gnu": "4.37.0", + "@rollup/rollup-linux-arm64-musl": "4.37.0", + "@rollup/rollup-linux-loongarch64-gnu": "4.37.0", + "@rollup/rollup-linux-powerpc64le-gnu": "4.37.0", + "@rollup/rollup-linux-riscv64-gnu": "4.37.0", + "@rollup/rollup-linux-riscv64-musl": "4.37.0", + "@rollup/rollup-linux-s390x-gnu": "4.37.0", + "@rollup/rollup-linux-x64-gnu": "4.37.0", + "@rollup/rollup-linux-x64-musl": "4.37.0", + "@rollup/rollup-win32-arm64-msvc": "4.37.0", + "@rollup/rollup-win32-ia32-msvc": "4.37.0", + "@rollup/rollup-win32-x64-msvc": "4.37.0", + "fsevents": "~2.3.2" + } + }, + "node_modules/rollup/node_modules/@types/estree": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.6.tgz", + "integrity": "sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==", + "dev": true + }, + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, + "node_modules/sade": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/sade/-/sade-1.8.1.tgz", + "integrity": "sha512-xal3CZX1Xlo/k4ApwCFrHVACi9fBqJ7V+mwhBsuf/1IOKbBy098Fex+Wa/5QMubw09pSZ/u8EY8PWgevJsXp1A==", + "dependencies": { + "mri": "^1.1.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/safe-regex-test": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.1.0.tgz", + "integrity": "sha512-x/+Cz4YrimQxQccJf5mKEbIa1NzeCRNI5Ecl/ekmlYaampdNLPalVyIcCZNNH3MvmqBugV5TMYZXv0ljslUlaw==", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "is-regex": "^1.2.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/safe-stable-stringify": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/safe-stable-stringify/-/safe-stable-stringify-2.5.0.tgz", + "integrity": "sha512-b3rppTKm9T+PsVCBEOUR46GWI7fdOs00VKZ1+9c1EWDaDMvjQc6tUwuFyIprgGgTcWoVHSKrU8H31ZHA2e0RHA==", + "engines": { + "node": ">=10" + } + }, + "node_modules/scheduler": { + "version": "0.25.0", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.25.0.tgz", + "integrity": "sha512-xFVuu11jh+xcO7JOAGJNOXld8/TcEHK/4CituBUeUb5hqxJLj9YuemAEuvm9gQ/+pgXYfbQuqAkiYu+u7YEsNA==" + }, + "node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/set-blocking": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", + "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==" + }, + "node_modules/set-function-length": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", + "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==", + "dependencies": { + "define-data-property": "^1.1.4", + "es-errors": "^1.3.0", + "function-bind": "^1.1.2", + "get-intrinsic": "^1.2.4", + "gopd": "^1.0.1", + "has-property-descriptors": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/sha.js": { + "version": "2.4.11", + "resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.11.tgz", + "integrity": "sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ==", + "dependencies": { + "inherits": "^2.0.1", + "safe-buffer": "^5.0.1" + }, + "bin": { + "sha.js": "bin.js" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/socket.io-client": { + "version": "4.8.1", + "resolved": "https://registry.npmjs.org/socket.io-client/-/socket.io-client-4.8.1.tgz", + "integrity": "sha512-hJVXfu3E28NmzGk8o1sHhN3om52tRvwYeidbj7xKy2eIIse5IoKX3USlS6Tqt3BHAtflLIkCQBkzVrEEfWUyYQ==", + "dependencies": { + "@socket.io/component-emitter": "~3.1.0", + "debug": "~4.3.2", + "engine.io-client": "~6.6.1", + "socket.io-parser": "~4.2.4" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/socket.io-client/node_modules/debug": { + "version": "4.3.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.7.tgz", + "integrity": "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/socket.io-parser": { + "version": "4.2.4", + "resolved": "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-4.2.4.tgz", + "integrity": "sha512-/GbIKmo8ioc+NIWIhwdecY0ge+qVBSMdgxGygevmdHj24bsfgtCmcUUcQ5ZzcylGFHsN3k4HB4Cgkl96KVnuew==", + "dependencies": { + "@socket.io/component-emitter": "~3.1.0", + "debug": "~4.3.1" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/socket.io-parser/node_modules/debug": { + "version": "4.3.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.7.tgz", + "integrity": "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/sonic-boom": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/sonic-boom/-/sonic-boom-2.8.0.tgz", + "integrity": "sha512-kuonw1YOYYNOve5iHdSahXPOK49GqwA+LZhI6Wz/l0rP57iKyXXIHaRagOBHAPmGwJC6od2Z9zgvZ5loSgMlVg==", + "dependencies": { + "atomic-sleep": "^1.0.0" + } + }, + "node_modules/source-map-js": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", + "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/split-on-first": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/split-on-first/-/split-on-first-1.1.0.tgz", + "integrity": "sha512-43ZssAJaMusuKWL8sKUBQXHWOpq8d6CfN/u1p4gUzfJkM05C8rxTmYrkIPTXapZpORA6LkkzcUulJ8FqA7Uudw==", + "engines": { + "node": ">=6" + } + }, + "node_modules/split2": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/split2/-/split2-4.2.0.tgz", + "integrity": "sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==", + "engines": { + "node": ">= 10.x" + } + }, + "node_modules/stream-shift": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/stream-shift/-/stream-shift-1.0.3.tgz", + "integrity": "sha512-76ORR0DO1o1hlKwTbi/DM3EXWGf3ZJYO8cXX5RJwnul2DEg2oyoZyjLNoQM8WsvZiFKCRfC1O0J7iCvie3RZmQ==" + }, + "node_modules/strict-uri-encode": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strict-uri-encode/-/strict-uri-encode-2.0.0.tgz", + "integrity": "sha512-QwiXZgpRcKkhTj2Scnn++4PKtWsH0kpzZ62L2R6c/LUVYv7hVnZqcg2+sMuT6R7Jusu1vviK/MFsu6kNJfWlEQ==", + "engines": { + "node": ">=4" + } + }, + "node_modules/string_decoder": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "dependencies": { + "safe-buffer": "~5.2.0" + } + }, + "node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/superstruct": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/superstruct/-/superstruct-1.0.4.tgz", + "integrity": "sha512-7JpaAoX2NGyoFlI9NBh66BQXGONc+uE+MRS5i2iOBKuS4e+ccgMDjATgZldkah+33DakBxDHiss9kvUcGAO8UQ==", + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/svelte": { + "version": "4.2.19", + "resolved": "https://registry.npmjs.org/svelte/-/svelte-4.2.19.tgz", + "integrity": "sha512-IY1rnGr6izd10B0A8LqsBfmlT5OILVuZ7XsI0vdGPEvuonFV7NYEUK4dAkm9Zg2q0Um92kYjTpS1CAP3Nh/KWw==", + "dependencies": { + "@ampproject/remapping": "^2.2.1", + "@jridgewell/sourcemap-codec": "^1.4.15", + "@jridgewell/trace-mapping": "^0.3.18", + "@types/estree": "^1.0.1", + "acorn": "^8.9.0", + "aria-query": "^5.3.0", + "axobject-query": "^4.0.0", + "code-red": "^1.0.3", + "css-tree": "^2.3.1", + "estree-walker": "^3.0.3", + "is-reference": "^3.0.1", + "locate-character": "^3.0.0", + "magic-string": "^0.30.4", + "periscopic": "^3.1.0" + }, + "engines": { + "node": ">=16" + } + }, + "node_modules/svelte-i18n": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/svelte-i18n/-/svelte-i18n-4.0.1.tgz", + "integrity": "sha512-jaykGlGT5PUaaq04JWbJREvivlCnALtT+m87Kbm0fxyYHynkQaxQMnIKHLm2WeIuBRoljzwgyvz0Z6/CMwfdmQ==", + "dependencies": { + "cli-color": "^2.0.3", + "deepmerge": "^4.2.2", + "esbuild": "^0.19.2", + "estree-walker": "^2", + "intl-messageformat": "^10.5.3", + "sade": "^1.8.1", + "tiny-glob": "^0.2.9" + }, + "bin": { + "svelte-i18n": "dist/cli.js" + }, + "engines": { + "node": ">= 16" + }, + "peerDependencies": { + "svelte": "^3 || ^4 || ^5" + } + }, + "node_modules/svelte-i18n/node_modules/@esbuild/aix-ppc64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.19.12.tgz", + "integrity": "sha512-bmoCYyWdEL3wDQIVbcyzRyeKLgk2WtWLTWz1ZIAZF/EGbNOwSA6ew3PftJ1PqMiOOGu0OyFMzG53L0zqIpPeNA==", + "cpu": [ + "ppc64" + ], + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/svelte-i18n/node_modules/@esbuild/android-arm": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.19.12.tgz", + "integrity": "sha512-qg/Lj1mu3CdQlDEEiWrlC4eaPZ1KztwGJ9B6J+/6G+/4ewxJg7gqj8eVYWvao1bXrqGiW2rsBZFSX3q2lcW05w==", + "cpu": [ + "arm" + ], + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/svelte-i18n/node_modules/@esbuild/android-arm64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.19.12.tgz", + "integrity": "sha512-P0UVNGIienjZv3f5zq0DP3Nt2IE/3plFzuaS96vihvD0Hd6H/q4WXUGpCxD/E8YrSXfNyRPbpTq+T8ZQioSuPA==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/svelte-i18n/node_modules/@esbuild/android-x64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.19.12.tgz", + "integrity": "sha512-3k7ZoUW6Q6YqhdhIaq/WZ7HwBpnFBlW905Fa4s4qWJyiNOgT1dOqDiVAQFwBH7gBRZr17gLrlFCRzF6jFh7Kew==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/svelte-i18n/node_modules/@esbuild/darwin-arm64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.19.12.tgz", + "integrity": "sha512-B6IeSgZgtEzGC42jsI+YYu9Z3HKRxp8ZT3cqhvliEHovq8HSX2YX8lNocDn79gCKJXOSaEot9MVYky7AKjCs8g==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/svelte-i18n/node_modules/@esbuild/darwin-x64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.19.12.tgz", + "integrity": "sha512-hKoVkKzFiToTgn+41qGhsUJXFlIjxI/jSYeZf3ugemDYZldIXIxhvwN6erJGlX4t5h417iFuheZ7l+YVn05N3A==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/svelte-i18n/node_modules/@esbuild/freebsd-arm64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.19.12.tgz", + "integrity": "sha512-4aRvFIXmwAcDBw9AueDQ2YnGmz5L6obe5kmPT8Vd+/+x/JMVKCgdcRwH6APrbpNXsPz+K653Qg8HB/oXvXVukA==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/svelte-i18n/node_modules/@esbuild/freebsd-x64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.19.12.tgz", + "integrity": "sha512-EYoXZ4d8xtBoVN7CEwWY2IN4ho76xjYXqSXMNccFSx2lgqOG/1TBPW0yPx1bJZk94qu3tX0fycJeeQsKovA8gg==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/svelte-i18n/node_modules/@esbuild/linux-arm": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.19.12.tgz", + "integrity": "sha512-J5jPms//KhSNv+LO1S1TX1UWp1ucM6N6XuL6ITdKWElCu8wXP72l9MM0zDTzzeikVyqFE6U8YAV9/tFyj0ti+w==", + "cpu": [ + "arm" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/svelte-i18n/node_modules/@esbuild/linux-arm64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.19.12.tgz", + "integrity": "sha512-EoTjyYyLuVPfdPLsGVVVC8a0p1BFFvtpQDB/YLEhaXyf/5bczaGeN15QkR+O4S5LeJ92Tqotve7i1jn35qwvdA==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/svelte-i18n/node_modules/@esbuild/linux-ia32": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.19.12.tgz", + "integrity": "sha512-Thsa42rrP1+UIGaWz47uydHSBOgTUnwBwNq59khgIwktK6x60Hivfbux9iNR0eHCHzOLjLMLfUMLCypBkZXMHA==", + "cpu": [ + "ia32" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/svelte-i18n/node_modules/@esbuild/linux-loong64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.19.12.tgz", + "integrity": "sha512-LiXdXA0s3IqRRjm6rV6XaWATScKAXjI4R4LoDlvO7+yQqFdlr1Bax62sRwkVvRIrwXxvtYEHHI4dm50jAXkuAA==", + "cpu": [ + "loong64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/svelte-i18n/node_modules/@esbuild/linux-mips64el": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.19.12.tgz", + "integrity": "sha512-fEnAuj5VGTanfJ07ff0gOA6IPsvrVHLVb6Lyd1g2/ed67oU1eFzL0r9WL7ZzscD+/N6i3dWumGE1Un4f7Amf+w==", + "cpu": [ + "mips64el" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/svelte-i18n/node_modules/@esbuild/linux-ppc64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.19.12.tgz", + "integrity": "sha512-nYJA2/QPimDQOh1rKWedNOe3Gfc8PabU7HT3iXWtNUbRzXS9+vgB0Fjaqr//XNbd82mCxHzik2qotuI89cfixg==", + "cpu": [ + "ppc64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/svelte-i18n/node_modules/@esbuild/linux-riscv64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.19.12.tgz", + "integrity": "sha512-2MueBrlPQCw5dVJJpQdUYgeqIzDQgw3QtiAHUC4RBz9FXPrskyyU3VI1hw7C0BSKB9OduwSJ79FTCqtGMWqJHg==", + "cpu": [ + "riscv64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/svelte-i18n/node_modules/@esbuild/linux-s390x": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.19.12.tgz", + "integrity": "sha512-+Pil1Nv3Umes4m3AZKqA2anfhJiVmNCYkPchwFJNEJN5QxmTs1uzyy4TvmDrCRNT2ApwSari7ZIgrPeUx4UZDg==", + "cpu": [ + "s390x" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/svelte-i18n/node_modules/@esbuild/linux-x64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.19.12.tgz", + "integrity": "sha512-B71g1QpxfwBvNrfyJdVDexenDIt1CiDN1TIXLbhOw0KhJzE78KIFGX6OJ9MrtC0oOqMWf+0xop4qEU8JrJTwCg==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/svelte-i18n/node_modules/@esbuild/netbsd-x64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.19.12.tgz", + "integrity": "sha512-3ltjQ7n1owJgFbuC61Oj++XhtzmymoCihNFgT84UAmJnxJfm4sYCiSLTXZtE00VWYpPMYc+ZQmB6xbSdVh0JWA==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/svelte-i18n/node_modules/@esbuild/openbsd-x64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.19.12.tgz", + "integrity": "sha512-RbrfTB9SWsr0kWmb9srfF+L933uMDdu9BIzdA7os2t0TXhCRjrQyCeOt6wVxr79CKD4c+p+YhCj31HBkYcXebw==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/svelte-i18n/node_modules/@esbuild/sunos-x64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.19.12.tgz", + "integrity": "sha512-HKjJwRrW8uWtCQnQOz9qcU3mUZhTUQvi56Q8DPTLLB+DawoiQdjsYq+j+D3s9I8VFtDr+F9CjgXKKC4ss89IeA==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/svelte-i18n/node_modules/@esbuild/win32-arm64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.19.12.tgz", + "integrity": "sha512-URgtR1dJnmGvX864pn1B2YUYNzjmXkuJOIqG2HdU62MVS4EHpU2946OZoTMnRUHklGtJdJZ33QfzdjGACXhn1A==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/svelte-i18n/node_modules/@esbuild/win32-ia32": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.19.12.tgz", + "integrity": "sha512-+ZOE6pUkMOJfmxmBZElNOx72NKpIa/HFOMGzu8fqzQJ5kgf6aTGrcJaFsNiVMH4JKpMipyK+7k0n2UXN7a8YKQ==", + "cpu": [ + "ia32" + ], + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/svelte-i18n/node_modules/@esbuild/win32-x64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.19.12.tgz", + "integrity": "sha512-T1QyPSDCyMXaO3pzBkF96E8xMkiRYbUEZADd29SyPGabqxMViNoii+NcK7eWJAEoU6RZyEm5lVSIjTmcdoB9HA==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/svelte-i18n/node_modules/esbuild": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.19.12.tgz", + "integrity": "sha512-aARqgq8roFBj054KvQr5f1sFu0D65G+miZRCuJyJ0G13Zwx7vRar5Zhn2tkQNzIXcBrNVsv/8stehpj+GAjgbg==", + "hasInstallScript": true, + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=12" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.19.12", + "@esbuild/android-arm": "0.19.12", + "@esbuild/android-arm64": "0.19.12", + "@esbuild/android-x64": "0.19.12", + "@esbuild/darwin-arm64": "0.19.12", + "@esbuild/darwin-x64": "0.19.12", + "@esbuild/freebsd-arm64": "0.19.12", + "@esbuild/freebsd-x64": "0.19.12", + "@esbuild/linux-arm": "0.19.12", + "@esbuild/linux-arm64": "0.19.12", + "@esbuild/linux-ia32": "0.19.12", + "@esbuild/linux-loong64": "0.19.12", + "@esbuild/linux-mips64el": "0.19.12", + "@esbuild/linux-ppc64": "0.19.12", + "@esbuild/linux-riscv64": "0.19.12", + "@esbuild/linux-s390x": "0.19.12", + "@esbuild/linux-x64": "0.19.12", + "@esbuild/netbsd-x64": "0.19.12", + "@esbuild/openbsd-x64": "0.19.12", + "@esbuild/sunos-x64": "0.19.12", + "@esbuild/win32-arm64": "0.19.12", + "@esbuild/win32-ia32": "0.19.12", + "@esbuild/win32-x64": "0.19.12" + } + }, + "node_modules/svelte-i18n/node_modules/estree-walker": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", + "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==" + }, + "node_modules/thread-stream": { + "version": "0.15.2", + "resolved": "https://registry.npmjs.org/thread-stream/-/thread-stream-0.15.2.tgz", + "integrity": "sha512-UkEhKIg2pD+fjkHQKyJO3yoIvAP3N6RlNFt2dUhcS1FGvCD1cQa1M/PGknCLFIyZdtJOWQjejp7bdNqmN7zwdA==", + "dependencies": { + "real-require": "^0.1.0" + } + }, + "node_modules/timers-ext": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/timers-ext/-/timers-ext-0.1.8.tgz", + "integrity": "sha512-wFH7+SEAcKfJpfLPkrgMPvvwnEtj8W4IurvEyrKsDleXnKLCDw71w8jltvfLa8Rm4qQxxT4jmDBYbJG/z7qoww==", + "dependencies": { + "es5-ext": "^0.10.64", + "next-tick": "^1.1.0" + }, + "engines": { + "node": ">=0.12" + } + }, + "node_modules/tiny-glob": { + "version": "0.2.9", + "resolved": "https://registry.npmjs.org/tiny-glob/-/tiny-glob-0.2.9.tgz", + "integrity": "sha512-g/55ssRPUjShh+xkfx9UPDXqhckHEsHr4Vd9zX55oSdGZc/MD0m3sferOkwWtp98bv+kcVfEHtRJgBVJzelrzg==", + "dependencies": { + "globalyzer": "0.1.0", + "globrex": "^0.1.2" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" + }, + "node_modules/ts-api-utils": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.1.0.tgz", + "integrity": "sha512-CUgTZL1irw8u29bzrOD/nH85jqyc74D6SshFgujOIA7osm2Rz7dYH77agkx7H4FBNxDq7Cjf+IjaX/8zwFW+ZQ==", + "dev": true, + "engines": { + "node": ">=18.12" + }, + "peerDependencies": { + "typescript": ">=4.8.4" + } + }, + "node_modules/tslib": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", + "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==" + }, + "node_modules/type": { + "version": "2.7.3", + "resolved": "https://registry.npmjs.org/type/-/type-2.7.3.tgz", + "integrity": "sha512-8j+1QmAbPvLZow5Qpi6NCaN8FB60p/6x8/vfNqOk/hC+HuvFZhL4+WfekuhQLiqFZXOgQdrs3B+XxEmCc6b3FQ==" + }, + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/typescript": { + "version": "5.8.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.2.tgz", + "integrity": "sha512-aJn6wq13/afZp/jT9QZmwEjDqqvSGp1VT5GVg+f/t6/oVyrgXM6BY1h9BRh/O5p3PlUPAe+WuiEZOmb/49RqoQ==", + "devOptional": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/typescript-eslint": { + "version": "8.28.0", + "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.28.0.tgz", + "integrity": "sha512-jfZtxJoHm59bvoCMYCe2BM0/baMswRhMmYhy+w6VfcyHrjxZ0OJe0tGasydCpIpA+A/WIJhTyZfb3EtwNC/kHQ==", + "dev": true, + "dependencies": { + "@typescript-eslint/eslint-plugin": "8.28.0", + "@typescript-eslint/parser": "8.28.0", + "@typescript-eslint/utils": "8.28.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <5.9.0" + } + }, + "node_modules/ufo": { + "version": "1.5.4", + "resolved": "https://registry.npmjs.org/ufo/-/ufo-1.5.4.tgz", + "integrity": "sha512-UsUk3byDzKd04EyoZ7U4DOlxQaD14JUKQl6/P7wiX4FNvUfm3XL246n9W5AmqwW5RSFJ27NAuM0iLscAOYUiGQ==" + }, + "node_modules/uint8arrays": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/uint8arrays/-/uint8arrays-3.1.0.tgz", + "integrity": "sha512-ei5rfKtoRO8OyOIor2Rz5fhzjThwIHJZ3uyDPnDHTXbP0aMQ1RN/6AI5B5d9dBxJOU+BvOAk7ZQ1xphsX8Lrog==", + "dependencies": { + "multiformats": "^9.4.2" + } + }, + "node_modules/uncrypto": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/uncrypto/-/uncrypto-0.1.3.tgz", + "integrity": "sha512-Ql87qFHB3s/De2ClA9e0gsnS6zXG27SkTiSJwjCc9MebbfapQfuPzumMIUMi38ezPZVNFcHI9sUIepeQfw8J8Q==" + }, + "node_modules/unstorage": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/unstorage/-/unstorage-1.15.0.tgz", + "integrity": "sha512-m40eHdGY/gA6xAPqo8eaxqXgBuzQTlAKfmB1iF7oCKXE1HfwHwzDJBywK+qQGn52dta+bPlZluPF7++yR3p/bg==", + "dependencies": { + "anymatch": "^3.1.3", + "chokidar": "^4.0.3", + "destr": "^2.0.3", + "h3": "^1.15.0", + "lru-cache": "^10.4.3", + "node-fetch-native": "^1.6.6", + "ofetch": "^1.4.1", + "ufo": "^1.5.4" + }, + "peerDependencies": { + "@azure/app-configuration": "^1.8.0", + "@azure/cosmos": "^4.2.0", + "@azure/data-tables": "^13.3.0", + "@azure/identity": "^4.6.0", + "@azure/keyvault-secrets": "^4.9.0", + "@azure/storage-blob": "^12.26.0", + "@capacitor/preferences": "^6.0.3", + "@deno/kv": ">=0.9.0", + "@netlify/blobs": "^6.5.0 || ^7.0.0 || ^8.1.0", + "@planetscale/database": "^1.19.0", + "@upstash/redis": "^1.34.3", + "@vercel/blob": ">=0.27.1", + "@vercel/kv": "^1.0.1", + "aws4fetch": "^1.0.20", + "db0": ">=0.2.1", + "idb-keyval": "^6.2.1", + "ioredis": "^5.4.2", + "uploadthing": "^7.4.4" + }, + "peerDependenciesMeta": { + "@azure/app-configuration": { + "optional": true + }, + "@azure/cosmos": { + "optional": true + }, + "@azure/data-tables": { + "optional": true + }, + "@azure/identity": { + "optional": true + }, + "@azure/keyvault-secrets": { + "optional": true + }, + "@azure/storage-blob": { + "optional": true + }, + "@capacitor/preferences": { + "optional": true + }, + "@deno/kv": { + "optional": true + }, + "@netlify/blobs": { + "optional": true + }, + "@planetscale/database": { + "optional": true + }, + "@upstash/redis": { + "optional": true + }, + "@vercel/blob": { + "optional": true + }, + "@vercel/kv": { + "optional": true + }, + "aws4fetch": { + "optional": true + }, + "db0": { + "optional": true + }, + "idb-keyval": { + "optional": true + }, + "ioredis": { + "optional": true + }, + "uploadthing": { + "optional": true + } + } + }, + "node_modules/unstorage/node_modules/lru-cache": { + "version": "10.4.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", + "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==" + }, + "node_modules/update-browserslist-db": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.3.tgz", + "integrity": "sha512-UxhIZQ+QInVdunkDAaiazvvT/+fXL5Osr0JZlJulepYu6Jd7qJtDZjlur0emRlT71EN3ScPoE7gvsuIKKNavKw==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "escalade": "^3.2.0", + "picocolors": "^1.1.1" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/use-sync-external-store": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.4.0.tgz", + "integrity": "sha512-9WXSPC5fMv61vaupRkCKCxsPxBocVnwakBEkMIHHpkTTg6icbJtg6jzgtLDm4bl3cSHAca52rYWih0k4K3PfHw==", + "peerDependencies": { + "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" + } + }, + "node_modules/utf-8-validate": { + "version": "5.0.10", + "resolved": "https://registry.npmjs.org/utf-8-validate/-/utf-8-validate-5.0.10.tgz", + "integrity": "sha512-Z6czzLq4u8fPOyx7TU6X3dvUZVvoJmxSQ+IcrlmagKhilxlhZgxPK6C5Jqbkw1IDUmFTM+cz9QDnnLTwDz/2gQ==", + "hasInstallScript": true, + "dependencies": { + "node-gyp-build": "^4.3.0" + }, + "engines": { + "node": ">=6.14.2" + } + }, + "node_modules/util": { + "version": "0.12.5", + "resolved": "https://registry.npmjs.org/util/-/util-0.12.5.tgz", + "integrity": "sha512-kZf/K6hEIrWHI6XqOFUiiMa+79wE/D8Q+NCNAWclkyg3b4d2k7s0QGepNjiABc+aR3N1PAyHL7p6UcLY6LmrnA==", + "dependencies": { + "inherits": "^2.0.3", + "is-arguments": "^1.0.4", + "is-generator-function": "^1.0.7", + "is-typed-array": "^1.1.3", + "which-typed-array": "^1.1.2" + } + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" + }, + "node_modules/uuid": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/valtio": { + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/valtio/-/valtio-1.13.2.tgz", + "integrity": "sha512-Qik0o+DSy741TmkqmRfjq+0xpZBXi/Y6+fXZLn0xNF1z/waFMbE3rkivv5Zcf9RrMUp6zswf2J7sbh2KBlba5A==", + "dependencies": { + "derive-valtio": "0.1.0", + "proxy-compare": "2.6.0", + "use-sync-external-store": "1.2.0" + }, + "engines": { + "node": ">=12.20.0" + }, + "peerDependencies": { + "@types/react": ">=16.8", + "react": ">=16.8" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "react": { + "optional": true + } + } + }, + "node_modules/valtio/node_modules/use-sync-external-store": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.2.0.tgz", + "integrity": "sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA==", + "peerDependencies": { + "react": "^16.8.0 || ^17.0.0 || ^18.0.0" + } + }, + "node_modules/viem": { + "version": "2.27.2", + "resolved": "https://registry.npmjs.org/viem/-/viem-2.27.2.tgz", + "integrity": "sha512-VwsB+RswcflbwBNPMvzTHuafDA51iT8v4SuIFcudTP2skmxcdodbgoOLP4dYELVnCzcedxoSJDOeext4V3zdnA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/wevm" + } + ], + "license": "MIT", + "dependencies": { + "@noble/curves": "1.8.1", + "@noble/hashes": "1.7.1", + "@scure/bip32": "1.6.2", + "@scure/bip39": "1.5.4", + "abitype": "1.0.8", + "isows": "1.0.6", + "ox": "0.6.9", + "ws": "8.18.1" + }, + "peerDependencies": { + "typescript": ">=5.0.4" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/viem/node_modules/@noble/curves": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.8.1.tgz", + "integrity": "sha512-warwspo+UYUPep0Q+vtdVB4Ugn8GGQj8iyB3gnRWsztmUHTI3S1nhdiWNsPUGL0vud7JlRRk1XEu7Lq1KGTnMQ==", + "dependencies": { + "@noble/hashes": "1.7.1" + }, + "engines": { + "node": "^14.21.3 || >=16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/viem/node_modules/@scure/bip32": { + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.6.2.tgz", + "integrity": "sha512-t96EPDMbtGgtb7onKKqxRLfE5g05k7uHnHRM2xdE6BP/ZmxaLtPek4J4KfVn/90IQNrU1IOAqMgiDtUdtbe3nw==", + "dependencies": { + "@noble/curves": "~1.8.1", + "@noble/hashes": "~1.7.1", + "@scure/base": "~1.2.2" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/viem/node_modules/@scure/bip39": { + "version": "1.5.4", + "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.5.4.tgz", + "integrity": "sha512-TFM4ni0vKvCfBpohoh+/lY05i9gRbSwXWngAsF4CABQxoaOHijxuaZ2R6cStDQ5CHtHO9aGJTr4ksVJASRRyMA==", + "dependencies": { + "@noble/hashes": "~1.7.1", + "@scure/base": "~1.2.4" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/viem/node_modules/ws": { + "version": "8.18.1", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.1.tgz", + "integrity": "sha512-RKW2aJZMXeMxVpnZ6bck+RswznaxmzdULiBr6KY7XkTnW8uvt0iT9H5DkHUChXrc+uurzwa0rVI16n/Xzjdz1w==", + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": ">=5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/vite": { + "version": "6.2.3", + "resolved": "https://registry.npmjs.org/vite/-/vite-6.2.3.tgz", + "integrity": "sha512-IzwM54g4y9JA/xAeBPNaDXiBF8Jsgl3VBQ2YQ/wOY6fyW3xMdSoltIV3Bo59DErdqdE6RxUfv8W69DvUorE4Eg==", + "dev": true, + "dependencies": { + "esbuild": "^0.25.0", + "postcss": "^8.5.3", + "rollup": "^4.30.1" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^18.0.0 || ^20.0.0 || >=22.0.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0", + "jiti": ">=1.21.0", + "less": "*", + "lightningcss": "^1.21.0", + "sass": "*", + "sass-embedded": "*", + "stylus": "*", + "sugarss": "*", + "terser": "^5.16.0", + "tsx": "^4.8.1", + "yaml": "^2.4.2" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "jiti": { + "optional": true + }, + "less": { + "optional": true + }, + "lightningcss": { + "optional": true + }, + "sass": { + "optional": true + }, + "sass-embedded": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + }, + "tsx": { + "optional": true + }, + "yaml": { + "optional": true + } + } + }, + "node_modules/wagmi": { + "version": "2.14.16", + "resolved": "https://registry.npmjs.org/wagmi/-/wagmi-2.14.16.tgz", + "integrity": "sha512-njOPvB8L0+jt3m1FTJiVF44T1u+kcjLtVWKvwI0mZnIesZTQZ/xDF0M/NHj3Uljyn3qJw3pyHjJe31NC+VVHMA==", + "license": "MIT", + "dependencies": { + "@wagmi/connectors": "5.7.12", + "@wagmi/core": "2.16.7", + "use-sync-external-store": "1.4.0" + }, + "funding": { + "url": "https://github.com/sponsors/wevm" + }, + "peerDependencies": { + "@tanstack/react-query": ">=5.0.0", + "react": ">=18", + "typescript": ">=5.0.4", + "viem": "2.x" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/webextension-polyfill": { + "version": "0.10.0", + "resolved": "https://registry.npmjs.org/webextension-polyfill/-/webextension-polyfill-0.10.0.tgz", + "integrity": "sha512-c5s35LgVa5tFaHhrZDnr3FpQpjj1BB+RXhLTYUxGqBVN460HkbM8TBtEqdXWbpTKfzwCcjAZVF7zXCYSKtcp9g==" + }, + "node_modules/webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" + }, + "node_modules/whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "dependencies": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/which-module": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.1.tgz", + "integrity": "sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ==" + }, + "node_modules/which-typed-array": { + "version": "1.1.19", + "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.19.tgz", + "integrity": "sha512-rEvr90Bck4WZt9HHFC4DJMsjvu7x+r6bImz0/BrbWb7A2djJ8hnZMrWnHo9F8ssv0OMErasDhftrfROTyqSDrw==", + "dependencies": { + "available-typed-arrays": "^1.0.7", + "call-bind": "^1.0.8", + "call-bound": "^1.0.4", + "for-each": "^0.3.5", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-tostringtag": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/word-wrap": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", + "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" + }, + "node_modules/ws": { + "version": "7.5.10", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.10.tgz", + "integrity": "sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ==", + "engines": { + "node": ">=8.3.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": "^5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/xmlhttprequest-ssl": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/xmlhttprequest-ssl/-/xmlhttprequest-ssl-2.1.2.tgz", + "integrity": "sha512-TEU+nJVUUnA4CYJFLvK5X9AOeH4KvDvhIfm0vV1GaQRtchnG0hgK5p8hw/xjv8cunWYCsiPCSDzObPyhEwq3KQ==", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/xtend": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", + "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", + "engines": { + "node": ">=0.4" + } + }, + "node_modules/y18n": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", + "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==" + }, + "node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true + }, + "node_modules/yargs": { + "version": "15.4.1", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", + "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", + "dependencies": { + "cliui": "^6.0.0", + "decamelize": "^1.2.0", + "find-up": "^4.1.0", + "get-caller-file": "^2.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^4.2.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^18.1.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/yargs-parser": { + "version": "18.1.3", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", + "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", + "dependencies": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/yargs/node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/yargs/node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/yargs/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/yargs/node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/zod": { + "version": "3.22.4", + "resolved": "https://registry.npmjs.org/zod/-/zod-3.22.4.tgz", + "integrity": "sha512-iC+8Io04lddc+mVqQ9AZ7OQ2MrUKGN+oIQyq1vemgt46jwCwLfhq7/pwnBnNXXXZb8VTVLKwp9EDkx+ryxIWmg==", + "funding": { + "url": "https://github.com/sponsors/colinhacks" + } + }, + "node_modules/zustand": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/zustand/-/zustand-5.0.0.tgz", + "integrity": "sha512-LE+VcmbartOPM+auOjCCLQOsQ05zUTp8RkgwRzefUk+2jISdMMFnxvyTjA4YNWr5ZGXYbVsEMZosttuxUBkojQ==", + "engines": { + "node": ">=12.20.0" + }, + "peerDependencies": { + "@types/react": ">=18.0.0", + "immer": ">=9.0.6", + "react": ">=18.0.0", + "use-sync-external-store": ">=1.2.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "immer": { + "optional": true + }, + "react": { + "optional": true + }, + "use-sync-external-store": { + "optional": true + } + } + } + } +} diff --git a/appkit-dapp/package.json b/appkit-dapp/package.json new file mode 100644 index 0000000000..bd29405348 --- /dev/null +++ b/appkit-dapp/package.json @@ -0,0 +1,40 @@ +{ + "name": "react-wagmi-appkit", + "private": true, + "version": "0.0.1", + "type": "module", + "scripts": { + "dev": "vite", + "build": "tsc -b && vite build", + "lint": "eslint .", + "preview": "vite preview" + }, + "dependencies": { + "@rabby-wallet/rabbykit": "^0.1.2", + "@reown/appkit": "^1.7.0", + "@reown/appkit-adapter-wagmi": "^1.7.0", + "@reown/walletkit": "^1.2.2", + "@tanstack/react-query": "^5.74.4", + "@wagmi/connectors": "^5.7.11", + "@wagmi/core": "^2.16.7", + "@walletconnect/core": "^2.19.1", + "@walletconnect/utils": "^2.19.1", + "react": "19.0.0", + "react-dom": "19.0.0", + "viem": "^2.27.2", + "wagmi": "^2.14.16" + }, + "devDependencies": { + "@eslint/js": "^9.9.0", + "@types/react": "^19.0.10", + "@types/react-dom": "^19.0.4", + "@vitejs/plugin-react": "^4.3.1", + "eslint": "^9.9.0", + "eslint-plugin-react-hooks": "^5.1.0-rc.0", + "eslint-plugin-react-refresh": "^0.4.9", + "globals": "^16.0.0", + "typescript": "^5.5.3", + "typescript-eslint": "^8.0.1", + "vite": "^6.2.0" + } +} diff --git a/appkit-dapp/public/favicon.ico b/appkit-dapp/public/favicon.ico new file mode 100644 index 0000000000..db58b9a069 Binary files /dev/null and b/appkit-dapp/public/favicon.ico differ diff --git a/appkit-dapp/public/reown.svg b/appkit-dapp/public/reown.svg new file mode 100644 index 0000000000..99353d6aec --- /dev/null +++ b/appkit-dapp/public/reown.svg @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/appkit-dapp/src/App.css b/appkit-dapp/src/App.css new file mode 100644 index 0000000000..8dddf3f173 --- /dev/null +++ b/appkit-dapp/src/App.css @@ -0,0 +1,113 @@ +:root { + --background: #ffffff; + --foreground: #171717; +} + +html, +body { + max-width: 100vw; + overflow-x: hidden; +} + +body { + color: var(--foreground); + background: var(--background); + font-family: Arial, Helvetica, sans-serif; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +* { + box-sizing: border-box; + padding: 0; + margin: 0; +} + +a { + color: inherit; + text-decoration: none; +} + +@media (prefers-color-scheme: dark) { + html { + color-scheme: dark; + } +} + +section { + border: 1px solid #e0e0e0; + border-radius: 8px; + padding: 16px; + background-color: #f9f9f9; + padding: 13px; + margin: 10px; + width: 90%; + text-align: left; +} + +.pages { + align-items: center; + justify-items: center; + text-align: center; +} + +button { + padding: 10px 15px; + background-color: white; + color: black; + border: 2px solid black; + border-radius: 6px; + font-size: 16px; + font-weight: 600; + cursor: pointer; + transition: all 0.3s ease; + margin: 15px; /* Space between buttons */ +} + +button:hover { + background-color: black; + color: white; +} + +button:active { + background-color: #333; /* Dark gray on click */ + color: white; +} + +h1 { + margin: 20px; +} + +h2 { + padding-bottom: 6px; +} + +pre { + white-space: pre-wrap; /* Wrap text */ + word-wrap: break-word; /* Break long words */ + word-break: break-all; +} + + +.link-button { + background-color: black; + color: white; + padding: 5px 10px; + text-decoration: none; + border-radius: 5px; +} + +.link-button:hover { + background-color: #333; /* Darken the background on hover */ +} + +.link-button:hover { + background-color: white; /* Change background to white on hover */ + color: black; /* Change text color to black on hover */ +} + +.advice { + text-align: center; + margin-bottom: 10px; + line-height: 25px; +} \ No newline at end of file diff --git a/appkit-dapp/src/App.tsx b/appkit-dapp/src/App.tsx new file mode 100644 index 0000000000..d1eba14f4c --- /dev/null +++ b/appkit-dapp/src/App.tsx @@ -0,0 +1,75 @@ +import { createAppKit } from '@reown/appkit/react' + +import { WagmiProvider } from 'wagmi' +import { useState } from 'react' + +import { QueryClient, QueryClientProvider } from '@tanstack/react-query' +import { ActionButtonList } from './components/ActionButtonList' +import { SmartContractActionButtonList } from './components/SmartContractActionButtonList' +import { InfoList } from './components/InfoList' +import { projectId, metadata, networks, wagmiAdapter } from './config' + +import "./App.css" + +const queryClient = new QueryClient() + +const generalConfig = { + projectId, + networks, + metadata, + themeMode: 'light' as const, + themeVariables: { + '--w3m-accent': '#000000', + } +} + +// Create modal +createAppKit({ + adapters: [wagmiAdapter], + ...generalConfig, + features: { + analytics: true // Optional - defaults to your Cloud configuration + } +}) + +export function App() { + const [transactionHash, setTransactionHash] = useState<`0x${string}` | undefined>(undefined); + const [signedMsg, setSignedMsg] = useState(''); + const [balance, setBalance] = useState(''); + + const receiveHash = (hash: `0x${string}`) => { + setTransactionHash(hash); // Update the state with the transaction hash + }; + + const receiveSignedMsg = (signedMsg: string) => { + setSignedMsg(signedMsg); // Update the state with the transaction hash + }; + + const receivebalance = (balance: string) => { + setBalance(balance) + } + + + return ( +
+ Reown +

AppKit Wagmi React dApp Example

+ + + + + +
+

+ This projectId only works on localhost.
+ Go to Reown Cloud to get your own. +

+
+ +
+
+
+ ) +} + +export default App diff --git a/appkit-dapp/src/assets/react.svg b/appkit-dapp/src/assets/react.svg new file mode 100644 index 0000000000..6c87de9bb3 --- /dev/null +++ b/appkit-dapp/src/assets/react.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/appkit-dapp/src/components/ActionButtonList.tsx b/appkit-dapp/src/components/ActionButtonList.tsx new file mode 100644 index 0000000000..b4a5b002b0 --- /dev/null +++ b/appkit-dapp/src/components/ActionButtonList.tsx @@ -0,0 +1,85 @@ +import { useEffect } from 'react'; +import { useDisconnect, useAppKit, useAppKitNetwork, useAppKitAccount } from '@reown/appkit/react' +import { parseGwei, type Address } from 'viem' +import { useEstimateGas, useSendTransaction, useSignMessage, useBalance } from 'wagmi' +import { networks } from '../config' + +// test transaction +const TEST_TX = { + to: "0xd8da6bf26964af9d7eed9e03e53415d37aa96045" as Address, // vitalik address + value: parseGwei('0.0001') +} + +interface ActionButtonListProps { + sendHash: (hash: `0x${string}` ) => void; + sendSignMsg: (hash: string) => void; + sendBalance: (balance: string) => void; +} + +export const ActionButtonList = ({ sendHash, sendSignMsg, sendBalance }: ActionButtonListProps) => { + const { disconnect } = useDisconnect(); // AppKit hook to disconnect + const { open } = useAppKit(); // AppKit hook to open the modal + const { switchNetwork } = useAppKitNetwork(); // AppKithook to switch network + const { address, isConnected } = useAppKitAccount() // AppKit hook to get the address and check if the user is connected + + const { data: gas } = useEstimateGas({...TEST_TX}); // Wagmi hook to estimate gas + const { data: hash, sendTransaction, } = useSendTransaction(); // Wagmi hook to send a transaction + const { signMessageAsync } = useSignMessage() // Wagmi hook to sign a message + const { refetch } = useBalance({ + address: address as Address + }); // Wagmi hook to get the balance + + + useEffect(() => { + if (hash) { + sendHash(hash); + } + }, [hash]); + + // function to send a tx + const handleSendTx = () => { + try { + sendTransaction({ + ...TEST_TX, + gas // Add the gas to the transaction + }); + } catch (err) { + console.log('Error sending transaction:', err); + } + } + + // function to sing a msg + const handleSignMsg = async () => { + const msg = "Hello Reown AppKit!" // message to sign + const sig = await signMessageAsync({ message: msg, account: address as Address }); + sendSignMsg(sig); + } + + // function to get the balance + const handleGetBalance = async () => { + const balance = await refetch() + sendBalance(balance?.data?.value.toString() + " " + balance?.data?.symbol.toString()) + } + + const handleDisconnect = async () => { + try { + await disconnect(); + } catch (error) { + console.error("Failed to disconnect:", error); + } + }; + + + return ( + isConnected && ( +
+ + + + + + +
+ ) + ) +} diff --git a/appkit-dapp/src/components/InfoList.tsx b/appkit-dapp/src/components/InfoList.tsx new file mode 100644 index 0000000000..bcb9a0a1d7 --- /dev/null +++ b/appkit-dapp/src/components/InfoList.tsx @@ -0,0 +1,99 @@ +import { useEffect } from 'react' +import { + useAppKitState, + useAppKitTheme, + useAppKitEvents, + useAppKitAccount, + useWalletInfo + } from '@reown/appkit/react' +import { useWaitForTransactionReceipt } from 'wagmi' + +interface InfoListProps { + hash: `0x${string}` | undefined; + signedMsg: string; + balance: string; +} + +export const InfoList = ({ hash, signedMsg, balance }: InfoListProps) => { + const kitTheme = useAppKitTheme(); // AppKit hook to get the theme information and theme actions + const state = useAppKitState(); // AppKit hook to get the state + const {address, caipAddress, isConnected, status, embeddedWalletInfo } = useAppKitAccount(); // AppKit hook to get the account information + const events = useAppKitEvents() // AppKit hook to get the events + const { walletInfo } = useWalletInfo() // AppKit hook to get the wallet info + + const { data: receipt } = useWaitForTransactionReceipt({ hash, confirmations: 2, // Wait for at least 2 confirmation + timeout: 300000, // Timeout in milliseconds (5 minutes) + pollingInterval: 1000, }) + + useEffect(() => { + console.log("Events: ", events); + }, [events]); + + useEffect(() => { + console.log("Embedded Wallet Info: ", embeddedWalletInfo); + }, [embeddedWalletInfo]); + + return ( + <> + {balance && ( +
+

Balance: {balance}

+
+ )} + {hash && ( +
+

Sign Tx

+
+                Hash: {hash}
+ Status: {receipt?.status.toString()}
+
+
+ )} + {signedMsg && ( +
+

Sign msg

+
+                signedMsg: {signedMsg}
+
+
+ )} +
+

useAppKit

+
+                Address: {address}
+ caip Address: {caipAddress}
+ Connected: {isConnected.toString()}
+ Status: {status}
+ Account Type: {embeddedWalletInfo?.accountType}
+ {embeddedWalletInfo?.user?.email && (`Email: ${embeddedWalletInfo?.user?.email}\n`)} + {embeddedWalletInfo?.user?.username && (`Username: ${embeddedWalletInfo?.user?.username}\n`)} + {embeddedWalletInfo?.authProvider && (`Provider: ${embeddedWalletInfo?.authProvider}\n`)} +
+
+ +
+

Theme

+
+                Theme: {kitTheme.themeMode}
+
+
+ +
+

State

+
+                activeChain: {state.activeChain}
+ loading: {state.loading.toString()}
+ open: {state.open.toString()}
+ selectedNetworkId: {state.selectedNetworkId?.toString()}
+
+
+ +
+

WalletInfo

+
+                Name: {JSON.stringify(walletInfo)}
+
+
+ + ) +} diff --git a/appkit-dapp/src/components/SmartContractActionButtonList.tsx b/appkit-dapp/src/components/SmartContractActionButtonList.tsx new file mode 100644 index 0000000000..b44e72daf1 --- /dev/null +++ b/appkit-dapp/src/components/SmartContractActionButtonList.tsx @@ -0,0 +1,83 @@ +// +// if you are not going to read or write smart contract, you can delete this file +// + +import { useAppKitNetwork, useAppKitAccount } from '@reown/appkit/react' +import { useReadContract, useWriteContract } from 'wagmi' +import { useEffect } from 'react' +const storageABI = [ + { + "inputs": [], + "name": "retrieve", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "num", + "type": "uint256" + } + ], + "name": "store", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + } +] + +const storageSC = "0xEe6D291CC60d7CeD6627fA4cd8506912245c8cA4" + +export const SmartContractActionButtonList = () => { + const { isConnected } = useAppKitAccount() // AppKit hook to get the address and check if the user is connected + const { chainId } = useAppKitNetwork() + const { writeContract, isSuccess } = useWriteContract() + const readContract = useReadContract({ + address: storageSC, + abi: storageABI, + functionName: 'retrieve', + query: { + enabled: false, // disable the query in onload + } + }) + + useEffect(() => { + if (isSuccess) { + console.log("contract write success"); + } + }, [isSuccess]) + + const handleReadSmartContract = async () => { + console.log("Read Sepolia Smart Contract"); + const { data } = await readContract.refetch(); + console.log("data: ", data) + } + + const handleWriteSmartContract = () => { + console.log("Write Sepolia Smart Contract") + writeContract({ + address: storageSC, + abi: storageABI, + functionName: 'store', + args: [123n], + }) + } + + + return ( + isConnected && chainId === 11155111 && ( // Only show the buttons if the user is connected to Sepolia +
+ + +
+ ) + ) +} diff --git a/appkit-dapp/src/config/index.tsx b/appkit-dapp/src/config/index.tsx new file mode 100644 index 0000000000..8d50dcd025 --- /dev/null +++ b/appkit-dapp/src/config/index.tsx @@ -0,0 +1,28 @@ +import { WagmiAdapter } from '@reown/appkit-adapter-wagmi' +import { mainnet, arbitrum, sepolia } from '@reown/appkit/networks' +import type { AppKitNetwork } from '@reown/appkit/networks' + +// Get projectId from https://cloud.reown.com +export const projectId = import.meta.env.VITE_PROJECT_ID || "b56e18d47c72ab683b10814fe9495694" // this is a public projectId only to use on localhost + +if (!projectId) { + throw new Error('Project ID is not defined') +} + +export const metadata = { + name: 'AppKit', + description: 'AppKit Example', + url: 'https://reown.com', // origin must match your domain & subdomain + icons: ['https://avatars.githubusercontent.com/u/179229932'] + } + +// for custom networks visit -> https://docs.reown.com/appkit/react/core/custom-networks +export const networks = [mainnet, arbitrum, sepolia] as [AppKitNetwork, ...AppKitNetwork[]] + +//Set up the Wagmi Adapter (Config) +export const wagmiAdapter = new WagmiAdapter({ + projectId, + networks +}) + +export const config = wagmiAdapter.wagmiConfig \ No newline at end of file diff --git a/appkit-dapp/src/main.tsx b/appkit-dapp/src/main.tsx new file mode 100644 index 0000000000..feac8eed43 --- /dev/null +++ b/appkit-dapp/src/main.tsx @@ -0,0 +1,9 @@ +import { StrictMode } from 'react' +import { createRoot } from 'react-dom/client' +import App from './App' + +createRoot(document.getElementById('root')!).render( + + + , +) diff --git a/appkit-dapp/src/vite-env.d.ts b/appkit-dapp/src/vite-env.d.ts new file mode 100644 index 0000000000..11f02fe2a0 --- /dev/null +++ b/appkit-dapp/src/vite-env.d.ts @@ -0,0 +1 @@ +/// diff --git a/appkit-dapp/tsconfig.app.json b/appkit-dapp/tsconfig.app.json new file mode 100644 index 0000000000..f0a235055d --- /dev/null +++ b/appkit-dapp/tsconfig.app.json @@ -0,0 +1,24 @@ +{ + "compilerOptions": { + "target": "ES2020", + "useDefineForClassFields": true, + "lib": ["ES2020", "DOM", "DOM.Iterable"], + "module": "ESNext", + "skipLibCheck": true, + + /* Bundler mode */ + "moduleResolution": "bundler", + "allowImportingTsExtensions": true, + "isolatedModules": true, + "moduleDetection": "force", + "noEmit": true, + "jsx": "react-jsx", + + /* Linting */ + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noFallthroughCasesInSwitch": true + }, + "include": ["src"] +} diff --git a/appkit-dapp/tsconfig.app.tsbuildinfo b/appkit-dapp/tsconfig.app.tsbuildinfo new file mode 100644 index 0000000000..c07d1dadd3 --- /dev/null +++ b/appkit-dapp/tsconfig.app.tsbuildinfo @@ -0,0 +1 @@ +{"root":["./src/App.tsx","./src/main.tsx","./src/vite-env.d.ts","./src/components/ActionButtonList.tsx","./src/components/InfoList.tsx","./src/components/SmartContractActionButtonList.tsx","./src/config/index.tsx"],"version":"5.8.2"} \ No newline at end of file diff --git a/appkit-dapp/tsconfig.json b/appkit-dapp/tsconfig.json new file mode 100644 index 0000000000..1ffef600d9 --- /dev/null +++ b/appkit-dapp/tsconfig.json @@ -0,0 +1,7 @@ +{ + "files": [], + "references": [ + { "path": "./tsconfig.app.json" }, + { "path": "./tsconfig.node.json" } + ] +} diff --git a/appkit-dapp/tsconfig.node.json b/appkit-dapp/tsconfig.node.json new file mode 100644 index 0000000000..0d3d71446a --- /dev/null +++ b/appkit-dapp/tsconfig.node.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "target": "ES2022", + "lib": ["ES2023"], + "module": "ESNext", + "skipLibCheck": true, + + /* Bundler mode */ + "moduleResolution": "bundler", + "allowImportingTsExtensions": true, + "isolatedModules": true, + "moduleDetection": "force", + "noEmit": true, + + /* Linting */ + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noFallthroughCasesInSwitch": true + }, + "include": ["vite.config.ts"] +} diff --git a/appkit-dapp/tsconfig.node.tsbuildinfo b/appkit-dapp/tsconfig.node.tsbuildinfo new file mode 100644 index 0000000000..4eae9b60bf --- /dev/null +++ b/appkit-dapp/tsconfig.node.tsbuildinfo @@ -0,0 +1 @@ +{"root":["./vite.config.ts"],"version":"5.8.2"} \ No newline at end of file diff --git a/appkit-dapp/vite.config.ts b/appkit-dapp/vite.config.ts new file mode 100644 index 0000000000..e15875ff6a --- /dev/null +++ b/appkit-dapp/vite.config.ts @@ -0,0 +1,10 @@ +import { defineConfig } from 'vite' +import react from '@vitejs/plugin-react' + +// https://vitejs.dev/config/ +export default defineConfig({ + plugins: [react()], + define: { + 'process.env': {}, + }, +}) diff --git a/apps/browser-extension/package.json b/apps/browser-extension/package.json index 56693c45f4..7b41f5f0a7 100644 --- a/apps/browser-extension/package.json +++ b/apps/browser-extension/package.json @@ -59,7 +59,7 @@ "stream-browserify": "3.0.0", "tweetnacl": "1.0.3", "uuid": "10.0.0", - "viem": "2.45.0", + "viem": "2.44.2", "vm-browserify": "1.1.2", "wagmi": "2.19.5", "wasm-loader": "1.3.0", diff --git a/apps/browser-extension/src/assets/images/trx.png b/apps/browser-extension/src/assets/images/trx.png deleted file mode 100644 index 466b698ea1..0000000000 Binary files a/apps/browser-extension/src/assets/images/trx.png and /dev/null differ diff --git a/apps/browser-extension/src/components/ChainTabs/index.tsx b/apps/browser-extension/src/components/ChainTabs/index.tsx index 5c7923e0fc..0a9e58c7aa 100644 --- a/apps/browser-extension/src/components/ChainTabs/index.tsx +++ b/apps/browser-extension/src/components/ChainTabs/index.tsx @@ -6,26 +6,18 @@ import { sprinkles } from '../../css/sprinkless.css' import { Btc } from '../Icons/Btc' import { Eth } from '../Icons/Eth' import { Sol } from '../Icons/Sol' -import { Ton } from '../Icons/Ton' -import { Trx } from '../Icons/Trx' function Tab({ onTabClick }: { onTabClick: (tab: ChainNamespace) => void }) { const [activeTab, setActiveTab] = useState('eip155') - const tabs: ChainNamespace[] = ['eip155', 'solana', 'bip122', 'ton', 'tron'] - const icons: React.ReactNode[] = [, , , , ] + const tabs: ChainNamespace[] = ['eip155', 'solana', 'bip122'] + const icons: React.ReactNode[] = [, , ] function handleTabClick(tab: ChainNamespace) { setActiveTab(tab) onTabClick(tab) } - function getTabLabel(tab: ChainNamespace) { - const label = ConstantsUtil.CHAIN_NAME_MAP[tab] || tab - - return label.replaceAll('EVM Networks', 'EVM') - } - return (
void }) { })} > {icons[index]} - {activeTab === tab && getTabLabel(tab)} + {ConstantsUtil.CHAIN_NAME_MAP[tab].replaceAll('EVM Networks', 'Ethereum')} ))}
diff --git a/apps/browser-extension/src/components/Icons/Trx.tsx b/apps/browser-extension/src/components/Icons/Trx.tsx deleted file mode 100644 index 82c49ccc3c..0000000000 --- a/apps/browser-extension/src/components/Icons/Trx.tsx +++ /dev/null @@ -1,11 +0,0 @@ -export function Trx() { - return ( - - - - - ) -} diff --git a/apps/browser-extension/src/components/Token/index.tsx b/apps/browser-extension/src/components/Token/index.tsx index 4684aac0fa..cab9f70c51 100644 --- a/apps/browser-extension/src/components/Token/index.tsx +++ b/apps/browser-extension/src/components/Token/index.tsx @@ -39,16 +39,6 @@ const tokens: Record void - -/** - * Sign a message using the EVM account's secp256k1 key. - * Returns a hex signature string. - */ -async function signMessageWithKey(message: string): Promise { - const messageBytes = new TextEncoder().encode(message) - const signature = await evmAccount.signMessage({ message: { raw: messageBytes } }) - - return signature -} - -export class TronProvider { - private connected = false - private listeners: Record = {} - - // Properties that TronLinkAdapter checks (must be on the instance, not just tronWeb) - readonly isTronLink = true - /* Unique identifier for Reown */ - readonly isReownWallet = true - ready = true - address: string | null = null - - // Current chain ID (TRON mainnet) - /* 728126428 in decimal */ - private chainId = '0x2b6653dc' - - /** - * TronLink adapter reads wallet.tronWeb for: - * - _updateWallet(): wallet.tronWeb.defaultAddress.base58 - * - waitTronwebReady(): tronObj.tronWeb (truthy check) - * - signMessage(): wallet.tronWeb.trx.signMessageV2(message) - * - signTransaction(): wallet.tronWeb.trx.sign(transaction) - */ - tronWeb = { - ready: true, - defaultAddress: { - base58: tronAddress as string | false, - hex: tronHexAddress as string | false - }, - trx: { - async signMessageV2(message: string): Promise { - return signMessageWithKey(message) - }, - // eslint-disable-next-line @typescript-eslint/no-unused-vars - sign(transaction: unknown, _privateKey?: string): unknown { - // For E2E testing, return a signed transaction stub - return { txid: `0x${'a'.repeat(64)}`, result: true } - } - } - } - - connect(): string { - this.connected = true - this.address = tronAddress - this.tronWeb.ready = true - this.tronWeb.defaultAddress.base58 = tronAddress - this.tronWeb.defaultAddress.hex = tronHexAddress - this.emit('connect', tronAddress) - // Emit accountsChanged event for TronLink adapter compatibility - this.emit('accountsChanged', [tronAddress]) - - return tronAddress - } - - disconnect(): void { - this.connected = false - this.address = null - this.tronWeb.ready = false - this.tronWeb.defaultAddress.base58 = false - this.tronWeb.defaultAddress.hex = false - this.emit('disconnect') - // Emit accountsChanged event with empty array when disconnecting - this.emit('accountsChanged', []) - } - - request({ method, params }: { method: string; params?: unknown }): unknown { - switch (method) { - // TIP-1193 protocol: TronLinkAdapter calls eth_requestAccounts (not tron_requestAccounts) - case 'eth_requestAccounts': - case 'tron_requestAccounts': { - this.connect() - - return [tronAddress] - } - - case 'tron_accounts': - case 'eth_accounts': { - return this.connected ? [tronAddress] : [] - } - - case 'tron_chainId': - case 'eth_chainId': - return this.chainId - - case 'wallet_switchEthereumChain': { - // TronLink adapter calls this to switch chains - const switchParams = params as [{ chainId: string }] | undefined - if (switchParams?.[0]?.chainId) { - const newChainId = switchParams[0].chainId - this.chainId = newChainId - - // Emit chainChanged event - this.emit('chainChanged', newChainId) - - // If connected, also emit accountsChanged to trigger re-sync - if (this.connected) { - this.emit('accountsChanged', [tronAddress]) - } - - return null - } - - throw new Error('Invalid chain switch params') - } - - default: - throw new Error(`Unsupported method: ${method}`) - } - } - - on(event: string, handler: EventHandler): void { - if (!this.listeners[event]) { - this.listeners[event] = [] - } - this.listeners[event].push(handler) - } - - removeListener(event: string, handler: EventHandler): void { - if (this.listeners[event]) { - this.listeners[event] = this.listeners[event].filter(h => h !== handler) - } - } - - private emit(event: string, ...args: unknown[]): void { - ;(this.listeners[event] || []).forEach(handler => handler(...args)) - } - - /** Returns the TRON base58 address for display purposes. */ - getAddress(): string { - return tronAddress - } -} diff --git a/apps/browser-extension/src/hooks/useBalance.ts b/apps/browser-extension/src/hooks/useBalance.ts index 8437a3d128..129c0c1bf9 100644 --- a/apps/browser-extension/src/hooks/useBalance.ts +++ b/apps/browser-extension/src/hooks/useBalance.ts @@ -1,6 +1,5 @@ import { Connection, LAMPORTS_PER_SOL, PublicKey, clusterApiUrl } from '@solana/web3.js' import { useQuery } from '@tanstack/react-query' -import { TonClient } from '@ton/ton' import Big from 'big.js' import { Address, formatEther } from 'viem' import { useBalance as useWagmiBalance } from 'wagmi' @@ -16,7 +15,7 @@ export function useBalance(chain: ChainNamespace, account: string) { }) const { data: solanaBalance = 0 } = useQuery({ - queryKey: ['solana-balance', account], + queryKey: ['balance', account], queryFn: async () => { const connection = new Connection(clusterApiUrl('mainnet-beta')) const wallet = new PublicKey(account) @@ -28,27 +27,6 @@ export function useBalance(chain: ChainNamespace, account: string) { enabled: chain === 'solana' }) - const { data: tonBalance = 0 } = useQuery({ - queryKey: ['ton-balance', account], - queryFn: async () => { - try { - const client = new TonClient({ - endpoint: 'https://testnet.toncenter.com/api/v2/jsonRPC' - }) - const { Address } = await import('@ton/ton') - const address = Address.parse(account) - const balance = await client.getBalance(address) - - // TON uses 9 decimals - // eslint-disable-next-line new-cap - return Big(balance.toString()).div(1e9).toNumber() - } catch { - return 0 - } - }, - enabled: chain === 'ton' && account !== '' - }) - function getBalance() { switch (chain) { case 'eip155': @@ -57,10 +35,6 @@ export function useBalance(chain: ChainNamespace, account: string) { return solanaBalance.toString() case 'bip122': return '0' - case 'ton': - return tonBalance.toString() - case 'tron': - return '0' default: return '0' } diff --git a/apps/browser-extension/src/inpage.ts b/apps/browser-extension/src/inpage.ts index ab64304bb8..24925c10f0 100644 --- a/apps/browser-extension/src/inpage.ts +++ b/apps/browser-extension/src/inpage.ts @@ -5,30 +5,11 @@ import { v4 as uuidv4 } from 'uuid' import { BitcoinProvider } from './core/BitcoinProvider' import { EvmProvider } from './core/EvmProvider' import { SolanaProvider } from './core/SolanaProvider' -import { TonProvider } from './core/TonProvider' -import { TronProvider } from './core/TronProvider' import { ConstantsUtil } from './utils/ConstantsUtil' const evmProvider = new EvmProvider() const solanaProvider = new SolanaProvider() const bitcoinProvider = new BitcoinProvider() -const tonProvider = new TonProvider() -const tronProvider = new TronProvider() - -// Inject TON provider into window for TonConnect -;( - window as unknown as { - reownTon: { tonconnect: ReturnType } - } -).reownTon = { - tonconnect: tonProvider.createTonConnectInterface(ConstantsUtil.IconRaw) -} - -/* - * Inject TRON provider in a unique namespace to avoid conflicts with TronLink. - * ReownTronAdapter will check window.reownTron specifically. - */ -;(window as unknown as Record).reownTron = tronProvider announceProvider({ info: { diff --git a/apps/browser-extension/src/pages/Home/index.tsx b/apps/browser-extension/src/pages/Home/index.tsx index 73bf26226f..126347b9ba 100644 --- a/apps/browser-extension/src/pages/Home/index.tsx +++ b/apps/browser-extension/src/pages/Home/index.tsx @@ -4,7 +4,6 @@ import { Keypair } from '@solana/web3.js' import Big from 'big.js' import { privateKeyToAccount } from 'viem/accounts' -import { toUserFriendlyAddress } from '@reown/appkit-adapter-ton/utils' import { ChainNamespace } from '@reown/appkit-common' import { Box } from '../../components/Box' @@ -14,8 +13,6 @@ import { Text } from '../../components/Text' import { Token } from '../../components/Token' import { Zorb } from '../../components/Zorb' import { BitcoinProvider } from '../../core/BitcoinProvider' -import { TonProvider } from '../../core/TonProvider' -import { TronProvider } from '../../core/TronProvider' import { useBalance } from '../../hooks/useBalance' import { AccountUtil } from '../../utils/AccountUtil' import { HelperUtil } from '../../utils/HelperUtil' @@ -30,12 +27,6 @@ const publicKey = keypair.publicKey // Bitcoin const bitcoinProvider = new BitcoinProvider() -// TON -const tonProvider = new TonProvider() - -// TRON -const tronProvider = new TronProvider() - export function Home() { const [copied, setCopied] = useState(false) const [page, setPage] = useState('eip155') @@ -54,10 +45,6 @@ export function Home() { return publicKey.toString() case 'bip122': return bitcoinProvider.accounts[0].address - case 'ton': - return toUserFriendlyAddress(tonProvider.getAddress()) - case 'tron': - return tronProvider.getAddress() default: return '' } @@ -80,12 +67,6 @@ export function Home() { case 'bip122': window.open(`https://btcscan.org/address/${account}`, '_blank') break - case 'ton': - window.open(`https://tonscan.org/address/${account}`, '_blank') - break - case 'tron': - window.open(`https://tronscan.org/#/address/${account}`, '_blank') - break default: break } diff --git a/apps/browser-extension/src/utils/AccountUtil.ts b/apps/browser-extension/src/utils/AccountUtil.ts index 460140c00f..8f2cdda070 100644 --- a/apps/browser-extension/src/utils/AccountUtil.ts +++ b/apps/browser-extension/src/utils/AccountUtil.ts @@ -5,6 +5,5 @@ export const AccountUtil = { privateKeySolana: new Uint8Array( (process.env.SOLANA_PRIVATE_KEY as string).split(',') as unknown as number[] ), - privateKeyBitcoin: process.env.BIP122_PRIVATE_KEY, - privateKeyTon: process.env.TON_PRIVATE_KEY_1 as string + privateKeyBitcoin: process.env.BIP122_PRIVATE_KEY } diff --git a/apps/demo/app/layout.tsx b/apps/demo/app/layout.tsx index 7703dbf82a..ae61665763 100644 --- a/apps/demo/app/layout.tsx +++ b/apps/demo/app/layout.tsx @@ -1,4 +1,5 @@ import { GoogleTagManager } from '@next/third-parties/google' +import { Analytics } from '@vercel/analytics/next' import type { Metadata } from 'next' import { ThemeProvider } from 'next-themes' import Script from 'next/script' @@ -75,6 +76,7 @@ export default function RootLayout({ children }: Readonly<{ children: React.Reac {children} + + + diff --git a/walletkit-web3game/package.json b/walletkit-web3game/package.json new file mode 100644 index 0000000000..b324e18d67 --- /dev/null +++ b/walletkit-web3game/package.json @@ -0,0 +1,34 @@ +{ + "name": "react-wagmi-appkit", + "private": true, + "version": "0.0.1", + "type": "module", + "scripts": { + "dev": "vite", + "build": "tsc -b && vite build", + "lint": "eslint .", + "preview": "vite preview" + }, + "dependencies": { + "@reown/appkit": "1.7.4", + "@reown/appkit-adapter-wagmi": "1.7.4", + "@tanstack/react-query": "^5.75.7", + "react": "19.0.0", + "react-dom": "19.0.0", + "viem": "^2.29.2", + "wagmi": "^2.15.2" + }, + "devDependencies": { + "@eslint/js": "^9.26.0", + "@types/react": "^19.1.3", + "@types/react-dom": "^19.1.3", + "@vitejs/plugin-react": "^4.4.1", + "eslint": "^9.26.0", + "eslint-plugin-react-hooks": "^5.2.0", + "eslint-plugin-react-refresh": "^0.4.20", + "globals": "^16.1.0", + "typescript": "^5.8.3", + "typescript-eslint": "^8.32.0", + "vite": "^6.3.5" + } +} diff --git a/walletkit-web3game/public/favicon.ico b/walletkit-web3game/public/favicon.ico new file mode 100644 index 0000000000..db58b9a069 Binary files /dev/null and b/walletkit-web3game/public/favicon.ico differ diff --git a/walletkit-web3game/public/reown.svg b/walletkit-web3game/public/reown.svg new file mode 100644 index 0000000000..99353d6aec --- /dev/null +++ b/walletkit-web3game/public/reown.svg @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/walletkit-web3game/src/App.css b/walletkit-web3game/src/App.css new file mode 100644 index 0000000000..ce4b7e71dd --- /dev/null +++ b/walletkit-web3game/src/App.css @@ -0,0 +1,112 @@ +:root { + --background: #ffffff; + --foreground: #171717; +} + +html, +body { + max-width: 100vw; + overflow-x: hidden; +} + +body { + color: var(--foreground); + background: var(--background); + font-family: Arial, Helvetica, sans-serif; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +* { + box-sizing: border-box; + padding: 0; + margin: 0; +} + +a { + color: inherit; + text-decoration: none; +} + +@media (prefers-color-scheme: dark) { + html { + color-scheme: dark; + } +} + +section { + border: 1px solid #e0e0e0; + border-radius: 8px; + padding: 16px; + background-color: #f9f9f9; + padding: 13px; + margin: 10px; + width: 90%; + text-align: left; +} + +.pages { + align-items: center; + justify-items: center; + text-align: center; +} + +button { + padding: 10px 15px; + background-color: white; + color: black; + border: 2px solid black; + border-radius: 6px; + font-size: 16px; + font-weight: 600; + cursor: pointer; + transition: all 0.3s ease; + margin: 15px; /* Space between buttons */ +} + +button:hover { + background-color: black; + color: white; +} + +button:active { + background-color: #333; /* Dark gray on click */ + color: white; +} + +h1 { + margin: 20px; +} + +h2 { + padding-bottom: 6px; +} + +pre { + white-space: pre-wrap; /* Wrap text */ + word-wrap: break-word; /* Break long words */ + word-break: break-all; +} + +.link-button { + background-color: black; + color: white; + padding: 5px 10px; + text-decoration: none; + border-radius: 5px; +} + +.link-button:hover { + background-color: #333; /* Darken the background on hover */ +} + +.link-button:hover { + background-color: white; /* Change background to white on hover */ + color: black; /* Change text color to black on hover */ +} + +.advice { + text-align: 'center'; + margin-bottom: 10px; + line-height: 25px; +} diff --git a/walletkit-web3game/src/App.tsx b/walletkit-web3game/src/App.tsx new file mode 100644 index 0000000000..bfa9ed36ff --- /dev/null +++ b/walletkit-web3game/src/App.tsx @@ -0,0 +1,87 @@ +import { useState } from 'react' + +import { QueryClient, QueryClientProvider } from '@tanstack/react-query' +import { WagmiProvider } from 'wagmi' + +import { createAppKit } from '@reown/appkit/react' + +import './App.css' +import { ActionButtonList } from './components/ActionButtonList' +import { InfoList } from './components/InfoList' +import { SmartContractActionButtonList } from './components/SmartContractActionButtonList' +import { metadata, networks, projectId, wagmiAdapter } from './config' + +const queryClient = new QueryClient() + +const generalConfig = { + projectId, + networks, + metadata, + themeMode: 'light' as const, + themeVariables: { + '--w3m-accent': '#000000' + } +} + +// Create modal +createAppKit({ + adapters: [wagmiAdapter], + ...generalConfig, + features: { + analytics: true // Optional - defaults to your Cloud configuration + } +}) + +export function App() { + const [transactionHash, setTransactionHash] = useState<`0x${string}` | undefined>(undefined) + const [signedMsg, setSignedMsg] = useState('') + const [balance, setBalance] = useState('') + + const receiveHash = (hash: `0x${string}`) => { + setTransactionHash(hash) // Update the state with the transaction hash + } + + const receiveSignedMsg = (signedMsg: string) => { + setSignedMsg(signedMsg) // Update the state with the transaction hash + } + + const receivebalance = (balance: string) => { + setBalance(balance) + } + + return ( +
+ Reown +

AppKit Wagmi React dApp Example

+ + + + + +
+

+ This projectId only works on localhost.
+ Go to{' '} + + Reown Cloud + {' '} + to get your own. +

+
+ +
+
+
+ ) +} + +export default App diff --git a/walletkit-web3game/src/assets/react.svg b/walletkit-web3game/src/assets/react.svg new file mode 100644 index 0000000000..6c87de9bb3 --- /dev/null +++ b/walletkit-web3game/src/assets/react.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/walletkit-web3game/src/components/ActionButtonList.tsx b/walletkit-web3game/src/components/ActionButtonList.tsx new file mode 100644 index 0000000000..c4cdc36dbd --- /dev/null +++ b/walletkit-web3game/src/components/ActionButtonList.tsx @@ -0,0 +1,86 @@ +import { useEffect } from 'react' + +import { type Address, parseGwei } from 'viem' +import { useBalance, useEstimateGas, useSendTransaction, useSignMessage } from 'wagmi' + +import { useAppKit, useAppKitAccount, useAppKitNetwork, useDisconnect } from '@reown/appkit/react' + +import { networks } from '../config' + +// test transaction +const TEST_TX = { + to: '0xd8da6bf26964af9d7eed9e03e53415d37aa96045' as Address, // vitalik address + value: parseGwei('0.0001') +} + +interface ActionButtonListProps { + sendHash: (hash: `0x${string}`) => void + sendSignMsg: (hash: string) => void + sendBalance: (balance: string) => void +} + +export const ActionButtonList = ({ sendHash, sendSignMsg, sendBalance }: ActionButtonListProps) => { + const { disconnect } = useDisconnect() // AppKit hook to disconnect + const { open } = useAppKit() // AppKit hook to open the modal + const { switchNetwork } = useAppKitNetwork() // AppKithook to switch network + const { address, isConnected } = useAppKitAccount() // AppKit hook to get the address and check if the user is connected + + const { data: gas } = useEstimateGas({ ...TEST_TX }) // Wagmi hook to estimate gas + const { data: hash, sendTransaction } = useSendTransaction() // Wagmi hook to send a transaction + const { signMessageAsync } = useSignMessage() // Wagmi hook to sign a message + const { refetch } = useBalance({ + address: address as Address + }) // Wagmi hook to get the balance + + useEffect(() => { + if (hash) { + sendHash(hash) + } + }, [hash]) + + // function to send a tx + const handleSendTx = () => { + try { + sendTransaction({ + ...TEST_TX, + gas // Add the gas to the transaction + }) + } catch (err) { + console.log('Error sending transaction:', err) + } + } + + // function to sing a msg + const handleSignMsg = async () => { + const msg = 'Hello Reown AppKit!' // message to sign + const sig = await signMessageAsync({ message: msg, account: address as Address }) + sendSignMsg(sig) + } + + // function to get the balance + const handleGetBalance = async () => { + const balance = await refetch() + sendBalance(balance?.data?.value.toString() + ' ' + balance?.data?.symbol.toString()) + } + + const handleDisconnect = async () => { + try { + await disconnect() + } catch (error) { + console.error('Failed to disconnect:', error) + } + } + + return ( + isConnected && ( +
+ + + + + + +
+ ) + ) +} diff --git a/walletkit-web3game/src/components/InfoList.tsx b/walletkit-web3game/src/components/InfoList.tsx new file mode 100644 index 0000000000..d88920b50f --- /dev/null +++ b/walletkit-web3game/src/components/InfoList.tsx @@ -0,0 +1,119 @@ +import { useEffect } from 'react' + +import { useWaitForTransactionReceipt } from 'wagmi' + +import { + useAppKitAccount, + useAppKitEvents, + useAppKitState, + useAppKitTheme, + useWalletInfo +} from '@reown/appkit/react' + +interface InfoListProps { + hash: `0x${string}` | undefined + signedMsg: string + balance: string +} + +export const InfoList = ({ hash, signedMsg, balance }: InfoListProps) => { + const kitTheme = useAppKitTheme() // AppKit hook to get the theme information and theme actions + const state = useAppKitState() // AppKit hook to get the state + const { address, caipAddress, isConnected, status, embeddedWalletInfo } = useAppKitAccount() // AppKit hook to get the account information + const events = useAppKitEvents() // AppKit hook to get the events + const { walletInfo } = useWalletInfo() // AppKit hook to get the wallet info + + const { data: receipt } = useWaitForTransactionReceipt({ + hash, + confirmations: 2, // Wait for at least 2 confirmation + timeout: 300000, // Timeout in milliseconds (5 minutes) + pollingInterval: 1000 + }) + + useEffect(() => { + console.log('Events: ', events) + }, [events]) + + useEffect(() => { + console.log('Embedded Wallet Info: ', embeddedWalletInfo) + }, [embeddedWalletInfo]) + + return ( + <> + {balance && ( +
+

Balance: {balance}

+
+ )} + {hash && ( +
+

Sign Tx

+
+            Hash: {hash}
+            
+ Status: {receipt?.status.toString()} +
+
+
+ )} + {signedMsg && ( +
+

Sign msg

+
+            signedMsg: {signedMsg}
+            
+
+
+ )} +
+

useAppKit

+
+          Address: {address}
+          
+ caip Address: {caipAddress} +
+ Connected: {isConnected.toString()} +
+ Status: {status} +
+ Account Type: {embeddedWalletInfo?.accountType} +
+ {embeddedWalletInfo?.user?.email && `Email: ${embeddedWalletInfo?.user?.email}\n`} + {embeddedWalletInfo?.user?.username && + `Username: ${embeddedWalletInfo?.user?.username}\n`} + {embeddedWalletInfo?.authProvider && `Provider: ${embeddedWalletInfo?.authProvider}\n`} +
+
+ +
+

Theme

+
+          Theme: {kitTheme.themeMode}
+          
+
+
+ +
+

State

+
+          activeChain: {state.activeChain}
+          
+ loading: {state.loading.toString()} +
+ open: {state.open.toString()} +
+ selectedNetworkId: {state.selectedNetworkId?.toString()} +
+
+
+ +
+

WalletInfo

+
+          Name: {JSON.stringify(walletInfo)}
+          
+
+
+ + ) +} diff --git a/walletkit-web3game/src/components/SmartContractActionButtonList.tsx b/walletkit-web3game/src/components/SmartContractActionButtonList.tsx new file mode 100644 index 0000000000..e08313f2e2 --- /dev/null +++ b/walletkit-web3game/src/components/SmartContractActionButtonList.tsx @@ -0,0 +1,85 @@ +// +// if you are not going to read or write smart contract, you can delete this file +// +import { useEffect } from 'react' + +import { useReadContract, useWriteContract } from 'wagmi' + +import { useAppKitAccount, useAppKitNetwork } from '@reown/appkit/react' + +const storageABI = [ + { + inputs: [], + name: 'retrieve', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256' + } + ], + stateMutability: 'view', + type: 'function' + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'num', + type: 'uint256' + } + ], + name: 'store', + outputs: [], + stateMutability: 'nonpayable', + type: 'function' + } +] + +const storageSC = '0xEe6D291CC60d7CeD6627fA4cd8506912245c8cA4' + +export const SmartContractActionButtonList = () => { + const { isConnected } = useAppKitAccount() // AppKit hook to get the address and check if the user is connected + const { chainId } = useAppKitNetwork() + const { writeContract, isSuccess } = useWriteContract() + const readContract = useReadContract({ + address: storageSC, + abi: storageABI, + functionName: 'retrieve', + query: { + enabled: false // disable the query in onload + } + }) + + useEffect(() => { + if (isSuccess) { + console.log('contract write success') + } + }, [isSuccess]) + + const handleReadSmartContract = async () => { + console.log('Read Sepolia Smart Contract') + const { data } = await readContract.refetch() + console.log('data: ', data) + } + + const handleWriteSmartContract = () => { + console.log('Write Sepolia Smart Contract') + writeContract({ + address: storageSC, + abi: storageABI, + functionName: 'store', + args: [123n] + }) + } + + return ( + isConnected && + chainId === 11155111 && ( // Only show the buttons if the user is connected to Sepolia +
+ + +
+ ) + ) +} diff --git a/walletkit-web3game/src/config/index.tsx b/walletkit-web3game/src/config/index.tsx new file mode 100644 index 0000000000..239dfb40be --- /dev/null +++ b/walletkit-web3game/src/config/index.tsx @@ -0,0 +1,28 @@ +import { WagmiAdapter } from '@reown/appkit-adapter-wagmi' +import { arbitrum, mainnet, sepolia } from '@reown/appkit/networks' +import type { AppKitNetwork } from '@reown/appkit/networks' + +// Get projectId from https://cloud.reown.com +export const projectId = import.meta.env.VITE_PROJECT_ID || 'b56e18d47c72ab683b10814fe9495694' // this is a public projectId only to use on localhost + +if (!projectId) { + throw new Error('Project ID is not defined') +} + +export const metadata = { + name: 'AppKit', + description: 'AppKit Example', + url: 'https://reown.com', // origin must match your domain & subdomain + icons: ['https://avatars.githubusercontent.com/u/179229932'] +} + +// for custom networks visit -> https://docs.reown.com/appkit/react/core/custom-networks +export const networks = [mainnet, arbitrum, sepolia] as [AppKitNetwork, ...AppKitNetwork[]] + +//Set up the Wagmi Adapter (Config) +export const wagmiAdapter = new WagmiAdapter({ + projectId, + networks +}) + +export const config = wagmiAdapter.wagmiConfig diff --git a/walletkit-web3game/src/main.tsx b/walletkit-web3game/src/main.tsx new file mode 100644 index 0000000000..4d7c5fa10e --- /dev/null +++ b/walletkit-web3game/src/main.tsx @@ -0,0 +1,10 @@ +import { StrictMode } from 'react' +import { createRoot } from 'react-dom/client' + +import App from './App' + +createRoot(document.getElementById('root')!).render( + + + +) diff --git a/walletkit-web3game/src/vite-env.d.ts b/walletkit-web3game/src/vite-env.d.ts new file mode 100644 index 0000000000..11f02fe2a0 --- /dev/null +++ b/walletkit-web3game/src/vite-env.d.ts @@ -0,0 +1 @@ +/// diff --git a/walletkit-web3game/tsconfig.app.json b/walletkit-web3game/tsconfig.app.json new file mode 100644 index 0000000000..f0a235055d --- /dev/null +++ b/walletkit-web3game/tsconfig.app.json @@ -0,0 +1,24 @@ +{ + "compilerOptions": { + "target": "ES2020", + "useDefineForClassFields": true, + "lib": ["ES2020", "DOM", "DOM.Iterable"], + "module": "ESNext", + "skipLibCheck": true, + + /* Bundler mode */ + "moduleResolution": "bundler", + "allowImportingTsExtensions": true, + "isolatedModules": true, + "moduleDetection": "force", + "noEmit": true, + "jsx": "react-jsx", + + /* Linting */ + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noFallthroughCasesInSwitch": true + }, + "include": ["src"] +} diff --git a/walletkit-web3game/tsconfig.app.tsbuildinfo b/walletkit-web3game/tsconfig.app.tsbuildinfo new file mode 100644 index 0000000000..4e5dc2fe1a --- /dev/null +++ b/walletkit-web3game/tsconfig.app.tsbuildinfo @@ -0,0 +1 @@ +{"root":["./src/App.tsx","./src/main.tsx","./src/vite-env.d.ts","./src/components/ActionButtonList.tsx","./src/components/InfoList.tsx","./src/components/SmartContractActionButtonList.tsx","./src/config/index.tsx"],"version":"5.8.3"} \ No newline at end of file diff --git a/walletkit-web3game/tsconfig.json b/walletkit-web3game/tsconfig.json new file mode 100644 index 0000000000..d32ff68200 --- /dev/null +++ b/walletkit-web3game/tsconfig.json @@ -0,0 +1,4 @@ +{ + "files": [], + "references": [{ "path": "./tsconfig.app.json" }, { "path": "./tsconfig.node.json" }] +} diff --git a/walletkit-web3game/tsconfig.node.json b/walletkit-web3game/tsconfig.node.json new file mode 100644 index 0000000000..0d3d71446a --- /dev/null +++ b/walletkit-web3game/tsconfig.node.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "target": "ES2022", + "lib": ["ES2023"], + "module": "ESNext", + "skipLibCheck": true, + + /* Bundler mode */ + "moduleResolution": "bundler", + "allowImportingTsExtensions": true, + "isolatedModules": true, + "moduleDetection": "force", + "noEmit": true, + + /* Linting */ + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noFallthroughCasesInSwitch": true + }, + "include": ["vite.config.ts"] +} diff --git a/walletkit-web3game/tsconfig.node.tsbuildinfo b/walletkit-web3game/tsconfig.node.tsbuildinfo new file mode 100644 index 0000000000..3015526fa8 --- /dev/null +++ b/walletkit-web3game/tsconfig.node.tsbuildinfo @@ -0,0 +1 @@ +{"root":["./vite.config.ts"],"version":"5.8.3"} \ No newline at end of file diff --git a/walletkit-web3game/vite.config.ts b/walletkit-web3game/vite.config.ts new file mode 100644 index 0000000000..1655cfac78 --- /dev/null +++ b/walletkit-web3game/vite.config.ts @@ -0,0 +1,10 @@ +import react from '@vitejs/plugin-react' +import { defineConfig } from 'vite' + +// https://vitejs.dev/config/ +export default defineConfig({ + plugins: [react()], + define: { + 'process.env': {} + } +}) diff --git a/web3-game/.env.example b/web3-game/.env.example new file mode 100644 index 0000000000..b2e19273b7 --- /dev/null +++ b/web3-game/.env.example @@ -0,0 +1,5 @@ +NEXT_PUBLIC_PROJECT_ACCESS_KEY=AQAAAAAAADVH8R2AGuQhwQ1y8NaEf1T7PJM +NEXT_PUBLIC_WAAS_CONFIG_KEY="eyJwcm9qZWN0SWQiOjEzNjM5LCJycGNTZXJ2ZXIiOiJodHRwczovL3dhYXMuc2VxdWVuY2UuYXBwIn0=" +NEXT_PUBLIC_GOOGLE_CLIENT_ID=970987756660-35a6tc48hvi8cev9cnknp0iugv9poa23.apps.googleusercontent.com +NEXT_PUBLIC_APPLE_CLIENT_ID=com.horizon.sequence.kit-embedded-wallet-nextjs-boilerplate +NEXT_PUBLIC_WALLET_CONNECT_ID='c65a6cb1aa83c4e24500130f23a437d8' diff --git a/web3-game/.eslintrc.json b/web3-game/.eslintrc.json new file mode 100644 index 0000000000..3722418549 --- /dev/null +++ b/web3-game/.eslintrc.json @@ -0,0 +1,3 @@ +{ + "extends": ["next/core-web-vitals", "next/typescript"] +} diff --git a/web3-game/.gitignore b/web3-game/.gitignore new file mode 100644 index 0000000000..fa5b2b903d --- /dev/null +++ b/web3-game/.gitignore @@ -0,0 +1,44 @@ +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. + +# dependencies +/node_modules +/.pnp +.pnp.* +.yarn/* +!.yarn/patches +!.yarn/plugins +!.yarn/releases +!.yarn/versions + +# testing +/coverage + +# next.js +/.next/ +/out/ + +# production +/build + +# misc +.DS_Store +*.pem + +# debug +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# env files (can opt-in for committing if needed) +.env +.env.local + +# vercel +.vercel + +# typescript +*.tsbuildinfo +next-env.d.ts + +pnpm-lock.yaml +.env*.local diff --git a/web3-game/README.md b/web3-game/README.md new file mode 100644 index 0000000000..8fb1515db7 --- /dev/null +++ b/web3-game/README.md @@ -0,0 +1,16 @@ +# Reown AppKit Example using wagmi (next.js with App Router) + +This is a Next.js project. + +## Usage + +1. Go to [Reown Cloud](https://cloud.reown.com) and create a new project. +2. Copy your `Project ID` +3. Rename `.env.example` to `.env` and paste your `Project ID` as the value for `NEXT_PUBLIC_PROJECT_ID` +4. Run `pnpm install` to install dependencies +5. Run `pnpm run dev` to start the development server + +## Resources + +- [Reown — Docs](https://docs.reown.com) +- [Next.js — Docs](https://nextjs.org/docs) diff --git a/web3-game/next.config.ts b/web3-game/next.config.ts new file mode 100644 index 0000000000..69d79fd430 --- /dev/null +++ b/web3-game/next.config.ts @@ -0,0 +1,10 @@ +import type { NextConfig } from "next"; + +const nextConfig: NextConfig = { + webpack: config => { + config.externals.push('pino-pretty', 'lokijs', 'encoding') + return config + } +}; + +export default nextConfig; diff --git a/web3-game/package-lock.json b/web3-game/package-lock.json new file mode 100644 index 0000000000..392cfcc1bc --- /dev/null +++ b/web3-game/package-lock.json @@ -0,0 +1,13817 @@ +{ + "name": "next-wagmi-app-router", + "version": "0.1.0", + "lockfileVersion": 2, + "requires": true, + "packages": { + "": { + "name": "next-wagmi-app-router", + "version": "0.1.0", + "dependencies": { + "@reown/appkit": "1.7.3", + "@reown/appkit-adapter-wagmi": "1.7.3", + "@tanstack/react-query": "^5.59.20", + "next": "15.3.0", + "react": "19.0.0", + "react-dom": "19.0.0", + "viem": "^2.21.44", + "wagmi": "^2.12.31" + }, + "devDependencies": { + "@types/node": "^22", + "@types/react": "^19", + "@types/react-dom": "^19", + "eslint": "^9", + "eslint-config-next": "15.1.6", + "typescript": "^5" + } + }, + "node_modules/@adraffy/ens-normalize": { + "version": "1.11.0", + "resolved": "https://registry.npmjs.org/@adraffy/ens-normalize/-/ens-normalize-1.11.0.tgz", + "integrity": "sha512-/3DDPKHqqIqxUULp8yP4zODUY1i+2xvVWsv8A79xGWdCAG+8sb0hRh0Rk2QyOJUnnbyPUAZYcpBuRe3nS2OIUg==" + }, + "node_modules/@babel/runtime": { + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.27.0.tgz", + "integrity": "sha512-VtPOkrdPHZsKc/clNqyi9WUA8TINkZ4cGk63UUE3u4pmB2k+ZMQRDuIOagv8UVd6j7k0T3+RRIb7beKTebNbcw==", + "dependencies": { + "regenerator-runtime": "^0.14.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@coinbase/wallet-sdk": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@coinbase/wallet-sdk/-/wallet-sdk-4.3.0.tgz", + "integrity": "sha512-T3+SNmiCw4HzDm4we9wCHCxlP0pqCiwKe4sOwPH3YAK2KSKjxPRydKu6UQJrdONFVLG7ujXvbd/6ZqmvJb8rkw==", + "dependencies": { + "@noble/hashes": "^1.4.0", + "clsx": "^1.2.1", + "eventemitter3": "^5.0.1", + "preact": "^10.24.2" + } + }, + "node_modules/@ecies/ciphers": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/@ecies/ciphers/-/ciphers-0.2.3.tgz", + "integrity": "sha512-tapn6XhOueMwht3E2UzY0ZZjYokdaw9XtL9kEyjhQ/Fb9vL9xTFbOaI+fV0AWvTpYu4BNloC6getKW6NtSg4mA==", + "engines": { + "bun": ">=1", + "deno": ">=2", + "node": ">=16" + }, + "peerDependencies": { + "@noble/ciphers": "^1.0.0" + } + }, + "node_modules/@emnapi/core": { + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.4.3.tgz", + "integrity": "sha512-4m62DuCE07lw01soJwPiBGC0nAww0Q+RY70VZ+n49yDIO13yyinhbWCeNnaob0lakDtWQzSdtNWzJeOJt2ma+g==", + "dev": true, + "optional": true, + "dependencies": { + "@emnapi/wasi-threads": "1.0.2", + "tslib": "^2.4.0" + } + }, + "node_modules/@emnapi/runtime": { + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.4.3.tgz", + "integrity": "sha512-pBPWdu6MLKROBX05wSNKcNb++m5Er+KQ9QkB+WVM+pW2Kx9hoSrVTnu3BdkI5eBLZoKu/J6mW/B6i6bJB2ytXQ==", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@emnapi/wasi-threads": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.0.2.tgz", + "integrity": "sha512-5n3nTJblwRi8LlXkJ9eBzu+kZR8Yxcc7ubakyQTFzPMtIhFpUBRbsnc2Dv88IZDIbCDlBiWrknhB4Lsz7mg6BA==", + "dev": true, + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.6.1", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.6.1.tgz", + "integrity": "sha512-KTsJMmobmbrFLe3LDh0PC2FXpcSYJt/MLjlkh/9LEnmKYLSYmT/0EW9JWANjeoemiuZrmogti0tW5Ch+qNUYDw==", + "dev": true, + "dependencies": { + "eslint-visitor-keys": "^3.4.3" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + } + }, + "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint-community/regexpp": { + "version": "4.12.1", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.1.tgz", + "integrity": "sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==", + "dev": true, + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, + "node_modules/@eslint/config-array": { + "version": "0.20.0", + "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.20.0.tgz", + "integrity": "sha512-fxlS1kkIjx8+vy2SjuCB94q3htSNrufYTXubwiBFeaQHbH6Ipi43gFJq2zCMt6PHhImH3Xmr0NksKDvchWlpQQ==", + "dev": true, + "dependencies": { + "@eslint/object-schema": "^2.1.6", + "debug": "^4.3.1", + "minimatch": "^3.1.2" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/config-helpers": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.2.1.tgz", + "integrity": "sha512-RI17tsD2frtDu/3dmI7QRrD4bedNKPM08ziRYaC5AhkGrzIAJelm9kJU1TznK+apx6V+cqRz8tfpEeG3oIyjxw==", + "dev": true, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/core": { + "version": "0.13.0", + "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.13.0.tgz", + "integrity": "sha512-yfkgDw1KR66rkT5A8ci4irzDysN7FRpq3ttJolR88OqQikAWqwA8j5VZyas+vjyBNFIJ7MfybJ9plMILI2UrCw==", + "dev": true, + "dependencies": { + "@types/json-schema": "^7.0.15" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/eslintrc": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.1.tgz", + "integrity": "sha512-gtF186CXhIl1p4pJNGZw8Yc6RlshoePRvE0X91oPGb3vZ8pM3qOS9W9NGPat9LziaBV7XrJWGylNQXkGcnM3IQ==", + "dev": true, + "dependencies": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^10.0.1", + "globals": "^14.0.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint/js": { + "version": "9.25.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.25.0.tgz", + "integrity": "sha512-iWhsUS8Wgxz9AXNfvfOPFSW4VfMXdVhp1hjkZVhXCrpgh/aLcc45rX6MPu+tIVUWDw0HfNwth7O28M1xDxNf9w==", + "dev": true, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/object-schema": { + "version": "2.1.6", + "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.6.tgz", + "integrity": "sha512-RBMg5FRL0I0gs51M/guSAj5/e14VQ4tpZnQNWwuDT66P14I43ItmPfIZRhO9fUVIPOAQXU47atlywZ/czoqFPA==", + "dev": true, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/plugin-kit": { + "version": "0.2.8", + "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.2.8.tgz", + "integrity": "sha512-ZAoA40rNMPwSm+AeHpCq8STiNAwzWLJuP8Xv4CHIc9wv/PSuExjMrmjfYNj682vW0OOiZ1HKxzvjQr9XZIisQA==", + "dev": true, + "dependencies": { + "@eslint/core": "^0.13.0", + "levn": "^0.4.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@ethereumjs/common": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/@ethereumjs/common/-/common-3.2.0.tgz", + "integrity": "sha512-pksvzI0VyLgmuEF2FA/JR/4/y6hcPq8OUail3/AvycBaW1d5VSauOZzqGvJ3RTmR4MU35lWE8KseKOsEhrFRBA==", + "dependencies": { + "@ethereumjs/util": "^8.1.0", + "crc-32": "^1.2.0" + } + }, + "node_modules/@ethereumjs/rlp": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@ethereumjs/rlp/-/rlp-4.0.1.tgz", + "integrity": "sha512-tqsQiBQDQdmPWE1xkkBq4rlSW5QZpLOUJ5RJh2/9fug+q9tnUhuZoVLk7s0scUIKTOzEtR72DFBXI4WiZcMpvw==", + "bin": { + "rlp": "bin/rlp" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@ethereumjs/tx": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/@ethereumjs/tx/-/tx-4.2.0.tgz", + "integrity": "sha512-1nc6VO4jtFd172BbSnTnDQVr9IYBFl1y4xPzZdtkrkKIncBCkdbgfdRV+MiTkJYAtTxvV12GRZLqBFT1PNK6Yw==", + "dependencies": { + "@ethereumjs/common": "^3.2.0", + "@ethereumjs/rlp": "^4.0.1", + "@ethereumjs/util": "^8.1.0", + "ethereum-cryptography": "^2.0.0" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@ethereumjs/util": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/@ethereumjs/util/-/util-8.1.0.tgz", + "integrity": "sha512-zQ0IqbdX8FZ9aw11vP+dZkKDkS+kgIvQPHnSAXzP9pLu+Rfu3D3XEeLbicvoXJTYnhZiPmsZUxgdzXwNKxRPbA==", + "dependencies": { + "@ethereumjs/rlp": "^4.0.1", + "ethereum-cryptography": "^2.0.0", + "micro-ftch": "^0.3.1" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@humanfs/core": { + "version": "0.19.1", + "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz", + "integrity": "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==", + "dev": true, + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanfs/node": { + "version": "0.16.6", + "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.6.tgz", + "integrity": "sha512-YuI2ZHQL78Q5HbhDiBA1X4LmYdXCKCMQIfw0pw7piHJwyREFebJUvrQN4cMssyES6x+vfUbx1CIpaQUKYdQZOw==", + "dev": true, + "dependencies": { + "@humanfs/core": "^0.19.1", + "@humanwhocodes/retry": "^0.3.0" + }, + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanfs/node/node_modules/@humanwhocodes/retry": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.3.1.tgz", + "integrity": "sha512-JBxkERygn7Bv/GbN5Rv8Ul6LVknS+5Bp6RgDC/O8gEBU/yeH5Ui5C/OlWrTb6qct7LjjfT6Re2NxB0ln0yYybA==", + "dev": true, + "engines": { + "node": ">=18.18" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true, + "engines": { + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/retry": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.2.tgz", + "integrity": "sha512-xeO57FpIu4p1Ri3Jq/EXq4ClRm86dVF2z/+kvFnyqVYRavTZmaFaUBbWCOuuTh0o/g7DSsk6kc2vrS4Vl5oPOQ==", + "dev": true, + "engines": { + "node": ">=18.18" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@img/sharp-darwin-arm64": { + "version": "0.34.1", + "resolved": "https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.34.1.tgz", + "integrity": "sha512-pn44xgBtgpEbZsu+lWf2KNb6OAf70X68k+yk69Ic2Xz11zHR/w24/U49XT7AeRwJ0Px+mhALhU5LPci1Aymk7A==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-darwin-arm64": "1.1.0" + } + }, + "node_modules/@img/sharp-darwin-x64": { + "version": "0.34.1", + "resolved": "https://registry.npmjs.org/@img/sharp-darwin-x64/-/sharp-darwin-x64-0.34.1.tgz", + "integrity": "sha512-VfuYgG2r8BpYiOUN+BfYeFo69nP/MIwAtSJ7/Zpxc5QF3KS22z8Pvg3FkrSFJBPNQ7mmcUcYQFBmEQp7eu1F8Q==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-darwin-x64": "1.1.0" + } + }, + "node_modules/@img/sharp-libvips-darwin-arm64": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-arm64/-/sharp-libvips-darwin-arm64-1.1.0.tgz", + "integrity": "sha512-HZ/JUmPwrJSoM4DIQPv/BfNh9yrOA8tlBbqbLz4JZ5uew2+o22Ik+tHQJcih7QJuSa0zo5coHTfD5J8inqj9DA==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "darwin" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-darwin-x64": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-x64/-/sharp-libvips-darwin-x64-1.1.0.tgz", + "integrity": "sha512-Xzc2ToEmHN+hfvsl9wja0RlnXEgpKNmftriQp6XzY/RaSfwD9th+MSh0WQKzUreLKKINb3afirxW7A0fz2YWuQ==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "darwin" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linux-arm": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm/-/sharp-libvips-linux-arm-1.1.0.tgz", + "integrity": "sha512-s8BAd0lwUIvYCJyRdFqvsj+BJIpDBSxs6ivrOPm/R7piTs5UIwY5OjXrP2bqXC9/moGsyRa37eYWYCOGVXxVrA==", + "cpu": [ + "arm" + ], + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linux-arm64": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm64/-/sharp-libvips-linux-arm64-1.1.0.tgz", + "integrity": "sha512-IVfGJa7gjChDET1dK9SekxFFdflarnUB8PwW8aGwEoF3oAsSDuNUTYS+SKDOyOJxQyDC1aPFMuRYLoDInyV9Ew==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linux-ppc64": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-ppc64/-/sharp-libvips-linux-ppc64-1.1.0.tgz", + "integrity": "sha512-tiXxFZFbhnkWE2LA8oQj7KYR+bWBkiV2nilRldT7bqoEZ4HiDOcePr9wVDAZPi/Id5fT1oY9iGnDq20cwUz8lQ==", + "cpu": [ + "ppc64" + ], + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linux-s390x": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-s390x/-/sharp-libvips-linux-s390x-1.1.0.tgz", + "integrity": "sha512-xukSwvhguw7COyzvmjydRb3x/09+21HykyapcZchiCUkTThEQEOMtBj9UhkaBRLuBrgLFzQ2wbxdeCCJW/jgJA==", + "cpu": [ + "s390x" + ], + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linux-x64": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-x64/-/sharp-libvips-linux-x64-1.1.0.tgz", + "integrity": "sha512-yRj2+reB8iMg9W5sULM3S74jVS7zqSzHG3Ol/twnAAkAhnGQnpjj6e4ayUz7V+FpKypwgs82xbRdYtchTTUB+Q==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linuxmusl-arm64": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-arm64/-/sharp-libvips-linuxmusl-arm64-1.1.0.tgz", + "integrity": "sha512-jYZdG+whg0MDK+q2COKbYidaqW/WTz0cc1E+tMAusiDygrM4ypmSCjOJPmFTvHHJ8j/6cAGyeDWZOsK06tP33w==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linuxmusl-x64": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-x64/-/sharp-libvips-linuxmusl-x64-1.1.0.tgz", + "integrity": "sha512-wK7SBdwrAiycjXdkPnGCPLjYb9lD4l6Ze2gSdAGVZrEL05AOUJESWU2lhlC+Ffn5/G+VKuSm6zzbQSzFX/P65A==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-linux-arm": { + "version": "0.34.1", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm/-/sharp-linux-arm-0.34.1.tgz", + "integrity": "sha512-anKiszvACti2sGy9CirTlNyk7BjjZPiML1jt2ZkTdcvpLU1YH6CXwRAZCA2UmRXnhiIftXQ7+Oh62Ji25W72jA==", + "cpu": [ + "arm" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linux-arm": "1.1.0" + } + }, + "node_modules/@img/sharp-linux-arm64": { + "version": "0.34.1", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm64/-/sharp-linux-arm64-0.34.1.tgz", + "integrity": "sha512-kX2c+vbvaXC6vly1RDf/IWNXxrlxLNpBVWkdpRq5Ka7OOKj6nr66etKy2IENf6FtOgklkg9ZdGpEu9kwdlcwOQ==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linux-arm64": "1.1.0" + } + }, + "node_modules/@img/sharp-linux-s390x": { + "version": "0.34.1", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-s390x/-/sharp-linux-s390x-0.34.1.tgz", + "integrity": "sha512-7s0KX2tI9mZI2buRipKIw2X1ufdTeaRgwmRabt5bi9chYfhur+/C1OXg3TKg/eag1W+6CCWLVmSauV1owmRPxA==", + "cpu": [ + "s390x" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linux-s390x": "1.1.0" + } + }, + "node_modules/@img/sharp-linux-x64": { + "version": "0.34.1", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-x64/-/sharp-linux-x64-0.34.1.tgz", + "integrity": "sha512-wExv7SH9nmoBW3Wr2gvQopX1k8q2g5V5Iag8Zk6AVENsjwd+3adjwxtp3Dcu2QhOXr8W9NusBU6XcQUohBZ5MA==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linux-x64": "1.1.0" + } + }, + "node_modules/@img/sharp-linuxmusl-arm64": { + "version": "0.34.1", + "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-arm64/-/sharp-linuxmusl-arm64-0.34.1.tgz", + "integrity": "sha512-DfvyxzHxw4WGdPiTF0SOHnm11Xv4aQexvqhRDAoD00MzHekAj9a/jADXeXYCDFH/DzYruwHbXU7uz+H+nWmSOQ==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linuxmusl-arm64": "1.1.0" + } + }, + "node_modules/@img/sharp-linuxmusl-x64": { + "version": "0.34.1", + "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-x64/-/sharp-linuxmusl-x64-0.34.1.tgz", + "integrity": "sha512-pax/kTR407vNb9qaSIiWVnQplPcGU8LRIJpDT5o8PdAx5aAA7AS3X9PS8Isw1/WfqgQorPotjrZL3Pqh6C5EBg==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linuxmusl-x64": "1.1.0" + } + }, + "node_modules/@img/sharp-wasm32": { + "version": "0.34.1", + "resolved": "https://registry.npmjs.org/@img/sharp-wasm32/-/sharp-wasm32-0.34.1.tgz", + "integrity": "sha512-YDybQnYrLQfEpzGOQe7OKcyLUCML4YOXl428gOOzBgN6Gw0rv8dpsJ7PqTHxBnXnwXr8S1mYFSLSa727tpz0xg==", + "cpu": [ + "wasm32" + ], + "optional": true, + "dependencies": { + "@emnapi/runtime": "^1.4.0" + }, + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-win32-ia32": { + "version": "0.34.1", + "resolved": "https://registry.npmjs.org/@img/sharp-win32-ia32/-/sharp-win32-ia32-0.34.1.tgz", + "integrity": "sha512-WKf/NAZITnonBf3U1LfdjoMgNO5JYRSlhovhRhMxXVdvWYveM4kM3L8m35onYIdh75cOMCo1BexgVQcCDzyoWw==", + "cpu": [ + "ia32" + ], + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-win32-x64": { + "version": "0.34.1", + "resolved": "https://registry.npmjs.org/@img/sharp-win32-x64/-/sharp-win32-x64-0.34.1.tgz", + "integrity": "sha512-hw1iIAHpNE8q3uMIRCgGOeDoz9KtFNarFLQclLxr/LK1VBkj8nby18RjFvr6aP7USRYAjTZW6yisnBWMX571Tw==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@lit-labs/ssr-dom-shim": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@lit-labs/ssr-dom-shim/-/ssr-dom-shim-1.3.0.tgz", + "integrity": "sha512-nQIWonJ6eFAvUUrSlwyHDm/aE8PBDu5kRpL0vHMg6K8fK3Diq1xdPjTnsJSwxABhaZ+5eBi1btQB5ShUTKo4nQ==" + }, + "node_modules/@lit/reactive-element": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@lit/reactive-element/-/reactive-element-2.1.0.tgz", + "integrity": "sha512-L2qyoZSQClcBmq0qajBVbhYEcG6iK0XfLn66ifLe/RfC0/ihpc+pl0Wdn8bJ8o+hj38cG0fGXRgSS20MuXn7qA==", + "dependencies": { + "@lit-labs/ssr-dom-shim": "^1.2.0" + } + }, + "node_modules/@metamask/eth-json-rpc-provider": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@metamask/eth-json-rpc-provider/-/eth-json-rpc-provider-1.0.1.tgz", + "integrity": "sha512-whiUMPlAOrVGmX8aKYVPvlKyG4CpQXiNNyt74vE1xb5sPvmx5oA7B/kOi/JdBvhGQq97U1/AVdXEdk2zkP8qyA==", + "dependencies": { + "@metamask/json-rpc-engine": "^7.0.0", + "@metamask/safe-event-emitter": "^3.0.0", + "@metamask/utils": "^5.0.1" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@metamask/eth-json-rpc-provider/node_modules/@metamask/json-rpc-engine": { + "version": "7.3.3", + "resolved": "https://registry.npmjs.org/@metamask/json-rpc-engine/-/json-rpc-engine-7.3.3.tgz", + "integrity": "sha512-dwZPq8wx9yV3IX2caLi9q9xZBw2XeIoYqdyihDDDpuHVCEiqadJLwqM3zy+uwf6F1QYQ65A8aOMQg1Uw7LMLNg==", + "dependencies": { + "@metamask/rpc-errors": "^6.2.1", + "@metamask/safe-event-emitter": "^3.0.0", + "@metamask/utils": "^8.3.0" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@metamask/eth-json-rpc-provider/node_modules/@metamask/json-rpc-engine/node_modules/@metamask/utils": { + "version": "8.5.0", + "resolved": "https://registry.npmjs.org/@metamask/utils/-/utils-8.5.0.tgz", + "integrity": "sha512-I6bkduevXb72TIM9q2LRO63JSsF9EXduh3sBr9oybNX2hNNpr/j1tEjXrsG0Uabm4MJ1xkGAQEMwifvKZIkyxQ==", + "dependencies": { + "@ethereumjs/tx": "^4.2.0", + "@metamask/superstruct": "^3.0.0", + "@noble/hashes": "^1.3.1", + "@scure/base": "^1.1.3", + "@types/debug": "^4.1.7", + "debug": "^4.3.4", + "pony-cause": "^2.1.10", + "semver": "^7.5.4", + "uuid": "^9.0.1" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@metamask/eth-json-rpc-provider/node_modules/@metamask/utils": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/@metamask/utils/-/utils-5.0.2.tgz", + "integrity": "sha512-yfmE79bRQtnMzarnKfX7AEJBwFTxvTyw3nBQlu/5rmGXrjAeAMltoGxO62TFurxrQAFMNa/fEjIHNvungZp0+g==", + "dependencies": { + "@ethereumjs/tx": "^4.1.2", + "@types/debug": "^4.1.7", + "debug": "^4.3.4", + "semver": "^7.3.8", + "superstruct": "^1.0.3" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@metamask/eth-json-rpc-provider/node_modules/uuid": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", + "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==", + "funding": [ + "https://github.com/sponsors/broofa", + "https://github.com/sponsors/ctavan" + ], + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/@metamask/json-rpc-engine": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/@metamask/json-rpc-engine/-/json-rpc-engine-8.0.2.tgz", + "integrity": "sha512-IoQPmql8q7ABLruW7i4EYVHWUbF74yrp63bRuXV5Zf9BQwcn5H9Ww1eLtROYvI1bUXwOiHZ6qT5CWTrDc/t/AA==", + "dependencies": { + "@metamask/rpc-errors": "^6.2.1", + "@metamask/safe-event-emitter": "^3.0.0", + "@metamask/utils": "^8.3.0" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@metamask/json-rpc-middleware-stream": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@metamask/json-rpc-middleware-stream/-/json-rpc-middleware-stream-7.0.2.tgz", + "integrity": "sha512-yUdzsJK04Ev98Ck4D7lmRNQ8FPioXYhEUZOMS01LXW8qTvPGiRVXmVltj2p4wrLkh0vW7u6nv0mNl5xzC5Qmfg==", + "dependencies": { + "@metamask/json-rpc-engine": "^8.0.2", + "@metamask/safe-event-emitter": "^3.0.0", + "@metamask/utils": "^8.3.0", + "readable-stream": "^3.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@metamask/object-multiplex": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@metamask/object-multiplex/-/object-multiplex-2.1.0.tgz", + "integrity": "sha512-4vKIiv0DQxljcXwfpnbsXcfa5glMj5Zg9mqn4xpIWqkv6uJ2ma5/GtUfLFSxhlxnR8asRMv8dDmWya1Tc1sDFA==", + "dependencies": { + "once": "^1.4.0", + "readable-stream": "^3.6.2" + }, + "engines": { + "node": "^16.20 || ^18.16 || >=20" + } + }, + "node_modules/@metamask/onboarding": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@metamask/onboarding/-/onboarding-1.0.1.tgz", + "integrity": "sha512-FqHhAsCI+Vacx2qa5mAFcWNSrTcVGMNjzxVgaX8ECSny/BJ9/vgXP9V7WF/8vb9DltPeQkxr+Fnfmm6GHfmdTQ==", + "dependencies": { + "bowser": "^2.9.0" + } + }, + "node_modules/@metamask/providers": { + "version": "16.1.0", + "resolved": "https://registry.npmjs.org/@metamask/providers/-/providers-16.1.0.tgz", + "integrity": "sha512-znVCvux30+3SaUwcUGaSf+pUckzT5ukPRpcBmy+muBLC0yaWnBcvDqGfcsw6CBIenUdFrVoAFa8B6jsuCY/a+g==", + "dependencies": { + "@metamask/json-rpc-engine": "^8.0.1", + "@metamask/json-rpc-middleware-stream": "^7.0.1", + "@metamask/object-multiplex": "^2.0.0", + "@metamask/rpc-errors": "^6.2.1", + "@metamask/safe-event-emitter": "^3.1.1", + "@metamask/utils": "^8.3.0", + "detect-browser": "^5.2.0", + "extension-port-stream": "^3.0.0", + "fast-deep-equal": "^3.1.3", + "is-stream": "^2.0.0", + "readable-stream": "^3.6.2", + "webextension-polyfill": "^0.10.0" + }, + "engines": { + "node": "^18.18 || >=20" + } + }, + "node_modules/@metamask/rpc-errors": { + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/@metamask/rpc-errors/-/rpc-errors-6.4.0.tgz", + "integrity": "sha512-1ugFO1UoirU2esS3juZanS/Fo8C8XYocCuBpfZI5N7ECtoG+zu0wF+uWZASik6CkO6w9n/Iebt4iI4pT0vptpg==", + "dependencies": { + "@metamask/utils": "^9.0.0", + "fast-safe-stringify": "^2.0.6" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@metamask/rpc-errors/node_modules/@metamask/utils": { + "version": "9.3.0", + "resolved": "https://registry.npmjs.org/@metamask/utils/-/utils-9.3.0.tgz", + "integrity": "sha512-w8CVbdkDrVXFJbfBSlDfafDR6BAkpDmv1bC1UJVCoVny5tW2RKAdn9i68Xf7asYT4TnUhl/hN4zfUiKQq9II4g==", + "dependencies": { + "@ethereumjs/tx": "^4.2.0", + "@metamask/superstruct": "^3.1.0", + "@noble/hashes": "^1.3.1", + "@scure/base": "^1.1.3", + "@types/debug": "^4.1.7", + "debug": "^4.3.4", + "pony-cause": "^2.1.10", + "semver": "^7.5.4", + "uuid": "^9.0.1" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@metamask/rpc-errors/node_modules/uuid": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", + "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==", + "funding": [ + "https://github.com/sponsors/broofa", + "https://github.com/sponsors/ctavan" + ], + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/@metamask/safe-event-emitter": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@metamask/safe-event-emitter/-/safe-event-emitter-3.1.2.tgz", + "integrity": "sha512-5yb2gMI1BDm0JybZezeoX/3XhPDOtTbcFvpTXM9kxsoZjPZFh4XciqRbpD6N86HYZqWDhEaKUDuOyR0sQHEjMA==", + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/@metamask/sdk": { + "version": "0.32.0", + "resolved": "https://registry.npmjs.org/@metamask/sdk/-/sdk-0.32.0.tgz", + "integrity": "sha512-WmGAlP1oBuD9hk4CsdlG1WJFuPtYJY+dnTHJMeCyohTWD2GgkcLMUUuvu9lO1/NVzuOoSi1OrnjbuY1O/1NZ1g==", + "dependencies": { + "@babel/runtime": "^7.26.0", + "@metamask/onboarding": "^1.0.1", + "@metamask/providers": "16.1.0", + "@metamask/sdk-communication-layer": "0.32.0", + "@metamask/sdk-install-modal-web": "0.32.0", + "@paulmillr/qr": "^0.2.1", + "bowser": "^2.9.0", + "cross-fetch": "^4.0.0", + "debug": "^4.3.4", + "eciesjs": "^0.4.11", + "eth-rpc-errors": "^4.0.3", + "eventemitter2": "^6.4.9", + "obj-multiplex": "^1.0.0", + "pump": "^3.0.0", + "readable-stream": "^3.6.2", + "socket.io-client": "^4.5.1", + "tslib": "^2.6.0", + "util": "^0.12.4", + "uuid": "^8.3.2" + } + }, + "node_modules/@metamask/sdk-communication-layer": { + "version": "0.32.0", + "resolved": "https://registry.npmjs.org/@metamask/sdk-communication-layer/-/sdk-communication-layer-0.32.0.tgz", + "integrity": "sha512-dmj/KFjMi1fsdZGIOtbhxdg3amxhKL/A5BqSU4uh/SyDKPub/OT+x5pX8bGjpTL1WPWY/Q0OIlvFyX3VWnT06Q==", + "dependencies": { + "bufferutil": "^4.0.8", + "date-fns": "^2.29.3", + "debug": "^4.3.4", + "utf-8-validate": "^5.0.2", + "uuid": "^8.3.2" + }, + "peerDependencies": { + "cross-fetch": "^4.0.0", + "eciesjs": "*", + "eventemitter2": "^6.4.9", + "readable-stream": "^3.6.2", + "socket.io-client": "^4.5.1" + } + }, + "node_modules/@metamask/sdk-install-modal-web": { + "version": "0.32.0", + "resolved": "https://registry.npmjs.org/@metamask/sdk-install-modal-web/-/sdk-install-modal-web-0.32.0.tgz", + "integrity": "sha512-TFoktj0JgfWnQaL3yFkApqNwcaqJ+dw4xcnrJueMP3aXkSNev2Ido+WVNOg4IIMxnmOrfAC9t0UJ0u/dC9MjOQ==", + "dependencies": { + "@paulmillr/qr": "^0.2.1" + } + }, + "node_modules/@metamask/superstruct": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/@metamask/superstruct/-/superstruct-3.2.1.tgz", + "integrity": "sha512-fLgJnDOXFmuVlB38rUN5SmU7hAFQcCjrg3Vrxz67KTY7YHFnSNEKvX4avmEBdOI0yTCxZjwMCFEqsC8k2+Wd3g==", + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@metamask/utils": { + "version": "8.5.0", + "resolved": "https://registry.npmjs.org/@metamask/utils/-/utils-8.5.0.tgz", + "integrity": "sha512-I6bkduevXb72TIM9q2LRO63JSsF9EXduh3sBr9oybNX2hNNpr/j1tEjXrsG0Uabm4MJ1xkGAQEMwifvKZIkyxQ==", + "dependencies": { + "@ethereumjs/tx": "^4.2.0", + "@metamask/superstruct": "^3.0.0", + "@noble/hashes": "^1.3.1", + "@scure/base": "^1.1.3", + "@types/debug": "^4.1.7", + "debug": "^4.3.4", + "pony-cause": "^2.1.10", + "semver": "^7.5.4", + "uuid": "^9.0.1" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@metamask/utils/node_modules/uuid": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", + "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==", + "funding": [ + "https://github.com/sponsors/broofa", + "https://github.com/sponsors/ctavan" + ], + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/@motionone/animation": { + "version": "10.18.0", + "resolved": "https://registry.npmjs.org/@motionone/animation/-/animation-10.18.0.tgz", + "integrity": "sha512-9z2p5GFGCm0gBsZbi8rVMOAJCtw1WqBTIPw3ozk06gDvZInBPIsQcHgYogEJ4yuHJ+akuW8g1SEIOpTOvYs8hw==", + "dependencies": { + "@motionone/easing": "^10.18.0", + "@motionone/types": "^10.17.1", + "@motionone/utils": "^10.18.0", + "tslib": "^2.3.1" + } + }, + "node_modules/@motionone/dom": { + "version": "10.18.0", + "resolved": "https://registry.npmjs.org/@motionone/dom/-/dom-10.18.0.tgz", + "integrity": "sha512-bKLP7E0eyO4B2UaHBBN55tnppwRnaE3KFfh3Ps9HhnAkar3Cb69kUCJY9as8LrccVYKgHA+JY5dOQqJLOPhF5A==", + "dependencies": { + "@motionone/animation": "^10.18.0", + "@motionone/generators": "^10.18.0", + "@motionone/types": "^10.17.1", + "@motionone/utils": "^10.18.0", + "hey-listen": "^1.0.8", + "tslib": "^2.3.1" + } + }, + "node_modules/@motionone/easing": { + "version": "10.18.0", + "resolved": "https://registry.npmjs.org/@motionone/easing/-/easing-10.18.0.tgz", + "integrity": "sha512-VcjByo7XpdLS4o9T8t99JtgxkdMcNWD3yHU/n6CLEz3bkmKDRZyYQ/wmSf6daum8ZXqfUAgFeCZSpJZIMxaCzg==", + "dependencies": { + "@motionone/utils": "^10.18.0", + "tslib": "^2.3.1" + } + }, + "node_modules/@motionone/generators": { + "version": "10.18.0", + "resolved": "https://registry.npmjs.org/@motionone/generators/-/generators-10.18.0.tgz", + "integrity": "sha512-+qfkC2DtkDj4tHPu+AFKVfR/C30O1vYdvsGYaR13W/1cczPrrcjdvYCj0VLFuRMN+lP1xvpNZHCRNM4fBzn1jg==", + "dependencies": { + "@motionone/types": "^10.17.1", + "@motionone/utils": "^10.18.0", + "tslib": "^2.3.1" + } + }, + "node_modules/@motionone/svelte": { + "version": "10.16.4", + "resolved": "https://registry.npmjs.org/@motionone/svelte/-/svelte-10.16.4.tgz", + "integrity": "sha512-zRVqk20lD1xqe+yEDZhMYgftsuHc25+9JSo+r0a0OWUJFocjSV9D/+UGhX4xgJsuwB9acPzXLr20w40VnY2PQA==", + "dependencies": { + "@motionone/dom": "^10.16.4", + "tslib": "^2.3.1" + } + }, + "node_modules/@motionone/types": { + "version": "10.17.1", + "resolved": "https://registry.npmjs.org/@motionone/types/-/types-10.17.1.tgz", + "integrity": "sha512-KaC4kgiODDz8hswCrS0btrVrzyU2CSQKO7Ps90ibBVSQmjkrt2teqta6/sOG59v7+dPnKMAg13jyqtMKV2yJ7A==" + }, + "node_modules/@motionone/utils": { + "version": "10.18.0", + "resolved": "https://registry.npmjs.org/@motionone/utils/-/utils-10.18.0.tgz", + "integrity": "sha512-3XVF7sgyTSI2KWvTf6uLlBJ5iAgRgmvp3bpuOiQJvInd4nZ19ET8lX5unn30SlmRH7hXbBbH+Gxd0m0klJ3Xtw==", + "dependencies": { + "@motionone/types": "^10.17.1", + "hey-listen": "^1.0.8", + "tslib": "^2.3.1" + } + }, + "node_modules/@motionone/vue": { + "version": "10.16.4", + "resolved": "https://registry.npmjs.org/@motionone/vue/-/vue-10.16.4.tgz", + "integrity": "sha512-z10PF9JV6SbjFq+/rYabM+8CVlMokgl8RFGvieSGNTmrkQanfHn+15XBrhG3BgUfvmTeSeyShfOHpG0i9zEdcg==", + "deprecated": "Motion One for Vue is deprecated. Use Oku Motion instead https://oku-ui.com/motion", + "dependencies": { + "@motionone/dom": "^10.16.4", + "tslib": "^2.3.1" + } + }, + "node_modules/@napi-rs/wasm-runtime": { + "version": "0.2.9", + "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-0.2.9.tgz", + "integrity": "sha512-OKRBiajrrxB9ATokgEQoG87Z25c67pCpYcCwmXYX8PBftC9pBfN18gnm/fh1wurSLEKIAt+QRFLFCQISrb66Jg==", + "dev": true, + "optional": true, + "dependencies": { + "@emnapi/core": "^1.4.0", + "@emnapi/runtime": "^1.4.0", + "@tybys/wasm-util": "^0.9.0" + } + }, + "node_modules/@next/env": { + "version": "15.3.0", + "resolved": "https://registry.npmjs.org/@next/env/-/env-15.3.0.tgz", + "integrity": "sha512-6mDmHX24nWlHOlbwUiAOmMyY7KELimmi+ed8qWcJYjqXeC+G6JzPZ3QosOAfjNwgMIzwhXBiRiCgdh8axTTdTA==" + }, + "node_modules/@next/eslint-plugin-next": { + "version": "15.1.6", + "resolved": "https://registry.npmjs.org/@next/eslint-plugin-next/-/eslint-plugin-next-15.1.6.tgz", + "integrity": "sha512-+slMxhTgILUntZDGNgsKEYHUvpn72WP1YTlkmEhS51vnVd7S9jEEy0n9YAMcI21vUG4akTw9voWH02lrClt/yw==", + "dev": true, + "dependencies": { + "fast-glob": "3.3.1" + } + }, + "node_modules/@next/swc-darwin-arm64": { + "version": "15.3.0", + "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-15.3.0.tgz", + "integrity": "sha512-PDQcByT0ZfF2q7QR9d+PNj3wlNN4K6Q8JoHMwFyk252gWo4gKt7BF8Y2+KBgDjTFBETXZ/TkBEUY7NIIY7A/Kw==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-darwin-x64": { + "version": "15.3.0", + "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-15.3.0.tgz", + "integrity": "sha512-m+eO21yg80En8HJ5c49AOQpFDq+nP51nu88ZOMCorvw3g//8g1JSUsEiPSiFpJo1KCTQ+jm9H0hwXK49H/RmXg==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-linux-arm64-gnu": { + "version": "15.3.0", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-15.3.0.tgz", + "integrity": "sha512-H0Kk04ZNzb6Aq/G6e0un4B3HekPnyy6D+eUBYPJv9Abx8KDYgNMWzKt4Qhj57HXV3sTTjsfc1Trc1SxuhQB+Tg==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-linux-arm64-musl": { + "version": "15.3.0", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-15.3.0.tgz", + "integrity": "sha512-k8GVkdMrh/+J9uIv/GpnHakzgDQhrprJ/FbGQvwWmstaeFG06nnAoZCJV+wO/bb603iKV1BXt4gHG+s2buJqZA==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-linux-x64-gnu": { + "version": "15.3.0", + "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-15.3.0.tgz", + "integrity": "sha512-ZMQ9yzDEts/vkpFLRAqfYO1wSpIJGlQNK9gZ09PgyjBJUmg8F/bb8fw2EXKgEaHbCc4gmqMpDfh+T07qUphp9A==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-linux-x64-musl": { + "version": "15.3.0", + "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-15.3.0.tgz", + "integrity": "sha512-RFwq5VKYTw9TMr4T3e5HRP6T4RiAzfDJ6XsxH8j/ZeYq2aLsBqCkFzwMI0FmnSsLaUbOb46Uov0VvN3UciHX5A==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-win32-arm64-msvc": { + "version": "15.3.0", + "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-15.3.0.tgz", + "integrity": "sha512-a7kUbqa/k09xPjfCl0RSVAvEjAkYBYxUzSVAzk2ptXiNEL+4bDBo9wNC43G/osLA/EOGzG4CuNRFnQyIHfkRgQ==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-win32-x64-msvc": { + "version": "15.3.0", + "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-15.3.0.tgz", + "integrity": "sha512-vHUQS4YVGJPmpjn7r5lEZuMhK5UQBNBRSB+iGDvJjaNk649pTIcRluDWNb9siunyLLiu/LDPHfvxBtNamyuLTw==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@noble/ciphers": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@noble/ciphers/-/ciphers-1.2.1.tgz", + "integrity": "sha512-rONPWMC7PeExE077uLE4oqWrZ1IvAfz3oH9LibVAcVCopJiA9R62uavnbEzdkVmJYI6M6Zgkbeb07+tWjlq2XA==", + "engines": { + "node": "^14.21.3 || >=16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@noble/curves": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.8.0.tgz", + "integrity": "sha512-j84kjAbzEnQHaSIhRPUmB3/eVXu2k3dKPl2LOrR8fSOIL+89U+7lV117EWHtq/GHM3ReGHM46iRBdZfpc4HRUQ==", + "dependencies": { + "@noble/hashes": "1.7.0" + }, + "engines": { + "node": "^14.21.3 || >=16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@noble/curves/node_modules/@noble/hashes": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.7.0.tgz", + "integrity": "sha512-HXydb0DgzTpDPwbVeDGCG1gIu7X6+AuU6Zl6av/E/KG8LMsvPntvq+w17CHRpKBmN6Ybdrt1eP3k4cj8DJa78w==", + "engines": { + "node": "^14.21.3 || >=16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@noble/hashes": { + "version": "1.7.2", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.7.2.tgz", + "integrity": "sha512-biZ0NUSxyjLLqo6KxEJ1b+C2NAx0wtDoFvCaXHGgUkeHzf3Xc1xKumFKREuT7f7DARNZ/slvYUwFG6B0f2b6hQ==", + "engines": { + "node": "^14.21.3 || >=16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dev": true, + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nolyfill/is-core-module": { + "version": "1.0.39", + "resolved": "https://registry.npmjs.org/@nolyfill/is-core-module/-/is-core-module-1.0.39.tgz", + "integrity": "sha512-nn5ozdjYQpUCZlWGuxcJY/KpxkWQs4DcbMCmKojjyrYDEAGy4Ce19NN4v5MduafTwJlbKc99UA8YhSVqq9yPZA==", + "dev": true, + "engines": { + "node": ">=12.4.0" + } + }, + "node_modules/@paulmillr/qr": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/@paulmillr/qr/-/qr-0.2.1.tgz", + "integrity": "sha512-IHnV6A+zxU7XwmKFinmYjUcwlyK9+xkG3/s9KcQhI9BjQKycrJ1JRO+FbNYPwZiPKW3je/DR0k7w8/gLa5eaxQ==", + "deprecated": "The package is now available as \"qr\": npm install qr", + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@reown/appkit": { + "version": "1.7.3", + "resolved": "https://registry.npmjs.org/@reown/appkit/-/appkit-1.7.3.tgz", + "integrity": "sha512-aA/UIwi/dVzxEB62xlw3qxHa3RK1YcPMjNxoGj/fHNCqL2qWmbcOXT7coCUa9RG7/Bh26FZ3vdVT2v71j6hebQ==", + "dependencies": { + "@reown/appkit-common": "1.7.3", + "@reown/appkit-controllers": "1.7.3", + "@reown/appkit-polyfills": "1.7.3", + "@reown/appkit-scaffold-ui": "1.7.3", + "@reown/appkit-ui": "1.7.3", + "@reown/appkit-utils": "1.7.3", + "@reown/appkit-wallet": "1.7.3", + "@walletconnect/types": "2.19.2", + "@walletconnect/universal-provider": "2.19.2", + "bs58": "6.0.0", + "valtio": "1.13.2", + "viem": ">=2.23.11" + } + }, + "node_modules/@reown/appkit-adapter-wagmi": { + "version": "1.7.3", + "resolved": "https://registry.npmjs.org/@reown/appkit-adapter-wagmi/-/appkit-adapter-wagmi-1.7.3.tgz", + "integrity": "sha512-4N8OjR2kf/OzAbAsau5GMhmqhBTqk/oZVzAtsN2NJIjH57itMk4JNfhcKsnhrOK6lqjrYraTFCWq6ptm2N31bQ==", + "dependencies": { + "@reown/appkit": "1.7.3", + "@reown/appkit-common": "1.7.3", + "@reown/appkit-controllers": "1.7.3", + "@reown/appkit-polyfills": "1.7.3", + "@reown/appkit-scaffold-ui": "1.7.3", + "@reown/appkit-utils": "1.7.3", + "@reown/appkit-wallet": "1.7.3", + "@walletconnect/universal-provider": "2.19.2", + "valtio": "1.13.2" + }, + "optionalDependencies": { + "@wagmi/connectors": ">=5.7.11" + }, + "peerDependencies": { + "@wagmi/core": ">=2.16.7", + "viem": ">=2.23.11", + "wagmi": ">=2.14.15" + } + }, + "node_modules/@reown/appkit-common": { + "version": "1.7.3", + "resolved": "https://registry.npmjs.org/@reown/appkit-common/-/appkit-common-1.7.3.tgz", + "integrity": "sha512-wKTr6N3z8ly17cc51xBEVkZK4zAd8J1m7RubgsdQ1olFY9YJGe61RYoNv9yFjt6tUVeYT+z7iMUwPhX2PziefQ==", + "dependencies": { + "big.js": "6.2.2", + "dayjs": "1.11.13", + "viem": ">=2.23.11" + } + }, + "node_modules/@reown/appkit-controllers": { + "version": "1.7.3", + "resolved": "https://registry.npmjs.org/@reown/appkit-controllers/-/appkit-controllers-1.7.3.tgz", + "integrity": "sha512-aqAcX/nZe0gwqjncyCkVrAk3lEw0qZ9xGrdLOmA207RreO4J0Vxu8OJXCBn4C2AUI2OpBxCPah+vyuKTUJTeHQ==", + "dependencies": { + "@reown/appkit-common": "1.7.3", + "@reown/appkit-wallet": "1.7.3", + "@walletconnect/universal-provider": "2.19.2", + "valtio": "1.13.2", + "viem": ">=2.23.11" + } + }, + "node_modules/@reown/appkit-polyfills": { + "version": "1.7.3", + "resolved": "https://registry.npmjs.org/@reown/appkit-polyfills/-/appkit-polyfills-1.7.3.tgz", + "integrity": "sha512-vQUiAyI7WiNTUV4iNwv27iigdeg8JJTEo6ftUowIrKZ2/gtE2YdMtGpavuztT/qrXhrIlTjDGp5CIyv9WOTu4g==", + "dependencies": { + "buffer": "6.0.3" + } + }, + "node_modules/@reown/appkit-scaffold-ui": { + "version": "1.7.3", + "resolved": "https://registry.npmjs.org/@reown/appkit-scaffold-ui/-/appkit-scaffold-ui-1.7.3.tgz", + "integrity": "sha512-ssB15fcjmoKQ+VfoCo7JIIK66a4SXFpCH8uK1CsMmXmKIKqPN54ohLo291fniV6mKtnJxh5Xm68slGtGrO3bmA==", + "dependencies": { + "@reown/appkit-common": "1.7.3", + "@reown/appkit-controllers": "1.7.3", + "@reown/appkit-ui": "1.7.3", + "@reown/appkit-utils": "1.7.3", + "@reown/appkit-wallet": "1.7.3", + "lit": "3.1.0" + } + }, + "node_modules/@reown/appkit-ui": { + "version": "1.7.3", + "resolved": "https://registry.npmjs.org/@reown/appkit-ui/-/appkit-ui-1.7.3.tgz", + "integrity": "sha512-zKmFIjLp0X24pF9KtPtSHmdsh/RjEWIvz+faIbPGm4tQbwcxdg9A35HeoP0rMgKYx49SX51LgPwVXne2gYacqQ==", + "dependencies": { + "@reown/appkit-common": "1.7.3", + "@reown/appkit-controllers": "1.7.3", + "@reown/appkit-wallet": "1.7.3", + "lit": "3.1.0", + "qrcode": "1.5.3" + } + }, + "node_modules/@reown/appkit-utils": { + "version": "1.7.3", + "resolved": "https://registry.npmjs.org/@reown/appkit-utils/-/appkit-utils-1.7.3.tgz", + "integrity": "sha512-8/MNhmfri+2uu8WzBhZ5jm5llofOIa1dyXDXRC/hfrmGmCFJdrQKPpuqOFYoimo2s2g70pK4PYefvOKgZOWzgg==", + "dependencies": { + "@reown/appkit-common": "1.7.3", + "@reown/appkit-controllers": "1.7.3", + "@reown/appkit-polyfills": "1.7.3", + "@reown/appkit-wallet": "1.7.3", + "@walletconnect/logger": "2.1.2", + "@walletconnect/universal-provider": "2.19.2", + "valtio": "1.13.2", + "viem": ">=2.23.11" + }, + "peerDependencies": { + "valtio": "1.13.2" + } + }, + "node_modules/@reown/appkit-wallet": { + "version": "1.7.3", + "resolved": "https://registry.npmjs.org/@reown/appkit-wallet/-/appkit-wallet-1.7.3.tgz", + "integrity": "sha512-D0pExd0QUE71ursQPp3pq/0iFrz2oz87tOyFifrPANvH5X0RQCYn/34/kXr+BFVQzNFfCBDlYP+CniNA/S0KiQ==", + "dependencies": { + "@reown/appkit-common": "1.7.3", + "@reown/appkit-polyfills": "1.7.3", + "@walletconnect/logger": "2.1.2", + "zod": "3.22.4" + } + }, + "node_modules/@rtsao/scc": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@rtsao/scc/-/scc-1.1.0.tgz", + "integrity": "sha512-zt6OdqaDoOnJ1ZYsCYGt9YmWzDXl4vQdKTyJev62gFhRGKdx7mcT54V9KIjg+d2wi9EXsPvAPKe7i7WjfVWB8g==", + "dev": true + }, + "node_modules/@rushstack/eslint-patch": { + "version": "1.11.0", + "resolved": "https://registry.npmjs.org/@rushstack/eslint-patch/-/eslint-patch-1.11.0.tgz", + "integrity": "sha512-zxnHvoMQVqewTJr/W4pKjF0bMGiKJv1WX7bSrkl46Hg0QjESbzBROWK0Wg4RphzSOS5Jiy7eFimmM3UgMrMZbQ==", + "dev": true + }, + "node_modules/@safe-global/safe-apps-provider": { + "version": "0.18.5", + "resolved": "https://registry.npmjs.org/@safe-global/safe-apps-provider/-/safe-apps-provider-0.18.5.tgz", + "integrity": "sha512-9v9wjBi3TwLsEJ3C2ujYoexp3pFJ0omDLH/GX91e2QB+uwCKTBYyhxFSrTQ9qzoyQd+bfsk4gjOGW87QcJhf7g==", + "dependencies": { + "@safe-global/safe-apps-sdk": "^9.1.0", + "events": "^3.3.0" + } + }, + "node_modules/@safe-global/safe-apps-sdk": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/@safe-global/safe-apps-sdk/-/safe-apps-sdk-9.1.0.tgz", + "integrity": "sha512-N5p/ulfnnA2Pi2M3YeWjULeWbjo7ei22JwU/IXnhoHzKq3pYCN6ynL9mJBOlvDVv892EgLPCWCOwQk/uBT2v0Q==", + "dependencies": { + "@safe-global/safe-gateway-typescript-sdk": "^3.5.3", + "viem": "^2.1.1" + } + }, + "node_modules/@safe-global/safe-gateway-typescript-sdk": { + "version": "3.22.9", + "resolved": "https://registry.npmjs.org/@safe-global/safe-gateway-typescript-sdk/-/safe-gateway-typescript-sdk-3.22.9.tgz", + "integrity": "sha512-7ojVK/crhOaGowEO8uYWaopZzcr5rR76emgllGIfjCLR70aY4PbASpi9Pbs+7jIRzPDBBkM0RBo+zYx5UduX8Q==", + "engines": { + "node": ">=16" + } + }, + "node_modules/@scure/base": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.2.4.tgz", + "integrity": "sha512-5Yy9czTO47mqz+/J8GM6GIId4umdCk1wc1q8rKERQulIoc8VP9pzDcghv10Tl2E7R96ZUx/PhND3ESYUQX8NuQ==", + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@scure/bip32": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.4.0.tgz", + "integrity": "sha512-sVUpc0Vq3tXCkDGYVWGIZTRfnvu8LoTDaev7vbwh0omSvVORONr960MQWdKqJDCReIEmTj3PAr73O3aoxz7OPg==", + "dependencies": { + "@noble/curves": "~1.4.0", + "@noble/hashes": "~1.4.0", + "@scure/base": "~1.1.6" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@scure/bip32/node_modules/@noble/curves": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.4.2.tgz", + "integrity": "sha512-TavHr8qycMChk8UwMld0ZDRvatedkzWfH8IiaeGCfymOP5i0hSCozz9vHOL0nkwk7HRMlFnAiKpS2jrUmSybcw==", + "dependencies": { + "@noble/hashes": "1.4.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@scure/bip32/node_modules/@noble/hashes": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.4.0.tgz", + "integrity": "sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg==", + "engines": { + "node": ">= 16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@scure/bip32/node_modules/@scure/base": { + "version": "1.1.9", + "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.1.9.tgz", + "integrity": "sha512-8YKhl8GHiNI/pU2VMaofa2Tor7PJRAjwQLBBuilkJ9L5+13yVbC7JO/wS7piioAvPSwR3JKM1IJ/u4xQzbcXKg==", + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@scure/bip39": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.3.0.tgz", + "integrity": "sha512-disdg7gHuTDZtY+ZdkmLpPCk7fxZSu3gBiEGuoC1XYxv9cGx3Z6cpTggCgW6odSOOIXCiDjuGejW+aJKCY/pIQ==", + "dependencies": { + "@noble/hashes": "~1.4.0", + "@scure/base": "~1.1.6" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@scure/bip39/node_modules/@noble/hashes": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.4.0.tgz", + "integrity": "sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg==", + "engines": { + "node": ">= 16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@scure/bip39/node_modules/@scure/base": { + "version": "1.1.9", + "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.1.9.tgz", + "integrity": "sha512-8YKhl8GHiNI/pU2VMaofa2Tor7PJRAjwQLBBuilkJ9L5+13yVbC7JO/wS7piioAvPSwR3JKM1IJ/u4xQzbcXKg==", + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@socket.io/component-emitter": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@socket.io/component-emitter/-/component-emitter-3.1.2.tgz", + "integrity": "sha512-9BCxFwvbGg/RsZK9tjXd8s4UcwR0MWeFQ1XEKIQVVvAGJyINdrqKMcTRyLoK8Rse1GjzLV9cwjWV1olXRWEXVA==" + }, + "node_modules/@swc/counter": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/@swc/counter/-/counter-0.1.3.tgz", + "integrity": "sha512-e2BR4lsJkkRlKZ/qCHPw9ZaSxc0MVUd7gtbtaB7aMvHeJVYe8sOB8DBZkP2DtISHGSku9sCK6T6cnY0CtXrOCQ==" + }, + "node_modules/@swc/helpers": { + "version": "0.5.15", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.15.tgz", + "integrity": "sha512-JQ5TuMi45Owi4/BIMAJBoSQoOJu12oOk/gADqlcUL9JEdHB8vyjUSsxqeNXnmXHjYKMi2WcYtezGEEhqUI/E2g==", + "dependencies": { + "tslib": "^2.8.0" + } + }, + "node_modules/@tanstack/query-core": { + "version": "5.74.4", + "resolved": "https://registry.npmjs.org/@tanstack/query-core/-/query-core-5.74.4.tgz", + "integrity": "sha512-YuG0A0+3i9b2Gfo9fkmNnkUWh5+5cFhWBN0pJAHkHilTx6A0nv8kepkk4T4GRt4e5ahbtFj2eTtkiPcVU1xO4A==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/tannerlinsley" + } + }, + "node_modules/@tanstack/react-query": { + "version": "5.74.4", + "resolved": "https://registry.npmjs.org/@tanstack/react-query/-/react-query-5.74.4.tgz", + "integrity": "sha512-mAbxw60d4ffQ4qmRYfkO1xzRBPUEf/72Dgo3qqea0J66nIKuDTLEqQt0ku++SDFlMGMnB6uKDnEG1xD/TDse4Q==", + "dependencies": { + "@tanstack/query-core": "5.74.4" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/tannerlinsley" + }, + "peerDependencies": { + "react": "^18 || ^19" + } + }, + "node_modules/@tybys/wasm-util": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.9.0.tgz", + "integrity": "sha512-6+7nlbMVX/PVDCwaIQ8nTOPveOcFLSt8GcXdx8hD0bt39uWxYT88uXzqTd4fTvqta7oeUJqudepapKNt2DYJFw==", + "dev": true, + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@types/debug": { + "version": "4.1.12", + "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.12.tgz", + "integrity": "sha512-vIChWdVG3LG1SMxEvI/AK+FWJthlrqlTu7fbrlywTkkaONwk/UAGaULXRlf8vkzFBLVm0zkMdCquhL5aOjhXPQ==", + "dependencies": { + "@types/ms": "*" + } + }, + "node_modules/@types/estree": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.7.tgz", + "integrity": "sha512-w28IoSUCJpidD/TGviZwwMJckNESJZXFu7NBZ5YJ4mEUnNraUn9Pm8HSZm/jDF1pDWYKspWE7oVphigUPRakIQ==", + "dev": true + }, + "node_modules/@types/json-schema": { + "version": "7.0.15", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", + "dev": true + }, + "node_modules/@types/json5": { + "version": "0.0.29", + "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", + "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", + "dev": true + }, + "node_modules/@types/ms": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@types/ms/-/ms-2.1.0.tgz", + "integrity": "sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA==" + }, + "node_modules/@types/node": { + "version": "22.14.1", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.14.1.tgz", + "integrity": "sha512-u0HuPQwe/dHrItgHHpmw3N2fYCR6x4ivMNbPHRkBVP4CvN+kiRrKHWk3i8tXiO/joPwXLMYvF9TTF0eqgHIuOw==", + "dev": true, + "dependencies": { + "undici-types": "~6.21.0" + } + }, + "node_modules/@types/react": { + "version": "19.1.2", + "resolved": "https://registry.npmjs.org/@types/react/-/react-19.1.2.tgz", + "integrity": "sha512-oxLPMytKchWGbnQM9O7D67uPa9paTNxO7jVoNMXgkkErULBPhPARCfkKL9ytcIJJRGjbsVwW4ugJzyFFvm/Tiw==", + "devOptional": true, + "dependencies": { + "csstype": "^3.0.2" + } + }, + "node_modules/@types/react-dom": { + "version": "19.1.2", + "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.1.2.tgz", + "integrity": "sha512-XGJkWF41Qq305SKWEILa1O8vzhb3aOo3ogBlSmiqNko/WmRb6QIaweuZCXjKygVDXpzXb5wyxKTSOsmkuqj+Qw==", + "dev": true, + "peerDependencies": { + "@types/react": "^19.0.0" + } + }, + "node_modules/@types/trusted-types": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/@types/trusted-types/-/trusted-types-2.0.7.tgz", + "integrity": "sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw==" + }, + "node_modules/@typescript-eslint/eslint-plugin": { + "version": "8.30.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.30.1.tgz", + "integrity": "sha512-v+VWphxMjn+1t48/jO4t950D6KR8JaJuNXzi33Ve6P8sEmPr5k6CEXjdGwT6+LodVnEa91EQCtwjWNUCPweo+Q==", + "dev": true, + "dependencies": { + "@eslint-community/regexpp": "^4.10.0", + "@typescript-eslint/scope-manager": "8.30.1", + "@typescript-eslint/type-utils": "8.30.1", + "@typescript-eslint/utils": "8.30.1", + "@typescript-eslint/visitor-keys": "8.30.1", + "graphemer": "^1.4.0", + "ignore": "^5.3.1", + "natural-compare": "^1.4.0", + "ts-api-utils": "^2.0.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^8.0.0 || ^8.0.0-alpha.0", + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <5.9.0" + } + }, + "node_modules/@typescript-eslint/parser": { + "version": "8.30.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.30.1.tgz", + "integrity": "sha512-H+vqmWwT5xoNrXqWs/fesmssOW70gxFlgcMlYcBaWNPIEWDgLa4W9nkSPmhuOgLnXq9QYgkZ31fhDyLhleCsAg==", + "dev": true, + "dependencies": { + "@typescript-eslint/scope-manager": "8.30.1", + "@typescript-eslint/types": "8.30.1", + "@typescript-eslint/typescript-estree": "8.30.1", + "@typescript-eslint/visitor-keys": "8.30.1", + "debug": "^4.3.4" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <5.9.0" + } + }, + "node_modules/@typescript-eslint/scope-manager": { + "version": "8.30.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.30.1.tgz", + "integrity": "sha512-+C0B6ChFXZkuaNDl73FJxRYT0G7ufVPOSQkqkpM/U198wUwUFOtgo1k/QzFh1KjpBitaK7R1tgjVz6o9HmsRPg==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "8.30.1", + "@typescript-eslint/visitor-keys": "8.30.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/type-utils": { + "version": "8.30.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.30.1.tgz", + "integrity": "sha512-64uBF76bfQiJyHgZISC7vcNz3adqQKIccVoKubyQcOnNcdJBvYOILV1v22Qhsw3tw3VQu5ll8ND6hycgAR5fEA==", + "dev": true, + "dependencies": { + "@typescript-eslint/typescript-estree": "8.30.1", + "@typescript-eslint/utils": "8.30.1", + "debug": "^4.3.4", + "ts-api-utils": "^2.0.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <5.9.0" + } + }, + "node_modules/@typescript-eslint/types": { + "version": "8.30.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.30.1.tgz", + "integrity": "sha512-81KawPfkuulyWo5QdyG/LOKbspyyiW+p4vpn4bYO7DM/hZImlVnFwrpCTnmNMOt8CvLRr5ojI9nU1Ekpw4RcEw==", + "dev": true, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/typescript-estree": { + "version": "8.30.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.30.1.tgz", + "integrity": "sha512-kQQnxymiUy9tTb1F2uep9W6aBiYODgq5EMSk6Nxh4Z+BDUoYUSa029ISs5zTzKBFnexQEh71KqwjKnRz58lusQ==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "8.30.1", + "@typescript-eslint/visitor-keys": "8.30.1", + "debug": "^4.3.4", + "fast-glob": "^3.3.2", + "is-glob": "^4.0.3", + "minimatch": "^9.0.4", + "semver": "^7.6.0", + "ts-api-utils": "^2.0.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <5.9.0" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/fast-glob": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz", + "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.8" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "dev": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@typescript-eslint/utils": { + "version": "8.30.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.30.1.tgz", + "integrity": "sha512-T/8q4R9En2tcEsWPQgB5BQ0XJVOtfARcUvOa8yJP3fh9M/mXraLxZrkCfGb6ChrO/V3W+Xbd04RacUEqk1CFEQ==", + "dev": true, + "dependencies": { + "@eslint-community/eslint-utils": "^4.4.0", + "@typescript-eslint/scope-manager": "8.30.1", + "@typescript-eslint/types": "8.30.1", + "@typescript-eslint/typescript-estree": "8.30.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <5.9.0" + } + }, + "node_modules/@typescript-eslint/visitor-keys": { + "version": "8.30.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.30.1.tgz", + "integrity": "sha512-aEhgas7aJ6vZnNFC7K4/vMGDGyOiqWcYZPpIWrTKuTAlsvDNKy2GFDqh9smL+iq069ZvR0YzEeq0B8NJlLzjFA==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "8.30.1", + "eslint-visitor-keys": "^4.2.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@unrs/resolver-binding-darwin-arm64": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-darwin-arm64/-/resolver-binding-darwin-arm64-1.6.1.tgz", + "integrity": "sha512-wbOgzEUDjfEmziD0TKMdDoRsCa0zHhtBWcrllJr7iZGPvSfrU7m5VGlpbO3McCi1LLsv7FFvUWej5nFQ+Emigw==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@unrs/resolver-binding-darwin-x64": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-darwin-x64/-/resolver-binding-darwin-x64-1.6.1.tgz", + "integrity": "sha512-d5hh78dlTaoFXZTQuDLUxxmV/tS3etw11HCm1a1q5/nUrfgLBUkZLn4u7Pg/jN4ois6aMCabcbt5DZkf4dIx1g==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@unrs/resolver-binding-freebsd-x64": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-freebsd-x64/-/resolver-binding-freebsd-x64-1.6.1.tgz", + "integrity": "sha512-PEV8ICqDKe8ujbxO9FL62/MqNNN2BvahNgtkG5Z49BNNBGtogvzkbgf5GeyrIIt1b3ky1w7IllVRAyqIUeuFEg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@unrs/resolver-binding-linux-arm-gnueabihf": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm-gnueabihf/-/resolver-binding-linux-arm-gnueabihf-1.6.1.tgz", + "integrity": "sha512-MGBBPrWH0nKMkUvAJ8Qs3Fe2ObHY+t1TVylJdMFY620qvFcu7d0bc89O0tJuZtkzLAx0sUSHQNYQcczhVHn2wQ==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-linux-arm-musleabihf": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm-musleabihf/-/resolver-binding-linux-arm-musleabihf-1.6.1.tgz", + "integrity": "sha512-hEmYRcRhde66Pluis2epKWoow2qbeb5PWhX+s/VaqNbfxKIotV9EI88K/9jKH8s2Mwa8Xy/bfWLfDZzfMNtr6Q==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-linux-arm64-gnu": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm64-gnu/-/resolver-binding-linux-arm64-gnu-1.6.1.tgz", + "integrity": "sha512-ffY3KJvGXsPw+dYr7MDJcSpfJDw2sc7Y9A+Lz+xk89CX+cEzBt/sxbCY4n8Ew6xNC8jKRoE5+1ELVRxbpc5ozw==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-linux-arm64-musl": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm64-musl/-/resolver-binding-linux-arm64-musl-1.6.1.tgz", + "integrity": "sha512-dyH9+OAzA3klgwkVzMxz5jaYTNqcYPfp8YSSTugF8lC2M3pTrToPrbG+kPEAds5ejBgtkGGpHJ0ONRf1JblLoA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-linux-ppc64-gnu": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-ppc64-gnu/-/resolver-binding-linux-ppc64-gnu-1.6.1.tgz", + "integrity": "sha512-8y2ayqhBL0Y7KiuE1ZvuTwv/DmkjCRZQoSE2gvid3SkxRjJ6qJ3EfG/Yv8O9dktv3n6z++Q7ZtAUlKRsiN1wpQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-linux-riscv64-gnu": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-riscv64-gnu/-/resolver-binding-linux-riscv64-gnu-1.6.1.tgz", + "integrity": "sha512-GZQe8ADu2Y88IVgbob1e8RpVH5MlMWjbDC5X/USa6UZnWQn7sKrO7XdM/9HQHOir+jeu7tJjTBf3tyrq7qtKcA==", + "cpu": [ + "riscv64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-linux-s390x-gnu": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-s390x-gnu/-/resolver-binding-linux-s390x-gnu-1.6.1.tgz", + "integrity": "sha512-AkWpaZul4Q0bW1IJdfS6vxSoC0Gsjf/PTF1rgCCtDV7b8V25iGazCK02X/wLxcEmIh9uYq2UfasLal0DfKdPZw==", + "cpu": [ + "s390x" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-linux-x64-gnu": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-x64-gnu/-/resolver-binding-linux-x64-gnu-1.6.1.tgz", + "integrity": "sha512-aZlTp6kjbKFFOiDYwknTxB8YUvWLT+hwMbif3cAlvF/c1jtwNLKPGFP/iKx7HkYpRSJYbHf/N0Ns5HkdgeUM9A==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-linux-x64-musl": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-x64-musl/-/resolver-binding-linux-x64-musl-1.6.1.tgz", + "integrity": "sha512-A9P2H+/LKHtuUfk/REkWrrawWXx2Z5atIHuU1I5Sv8uOj+NirmoCOPS8H+nfZyemsX4vzSe4id/KDYSQGsnPrA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-wasm32-wasi": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-wasm32-wasi/-/resolver-binding-wasm32-wasi-1.6.1.tgz", + "integrity": "sha512-Y9Sz1GXo/2z43KiMh4MfP0rTknsFNOsTjly068QhGJYO6qjIsvpbf4vhDnMFTDlBz8bDsibG1ggZ6BRjEzjmiA==", + "cpu": [ + "wasm32" + ], + "dev": true, + "optional": true, + "dependencies": { + "@napi-rs/wasm-runtime": "^0.2.9" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@unrs/resolver-binding-win32-arm64-msvc": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-win32-arm64-msvc/-/resolver-binding-win32-arm64-msvc-1.6.1.tgz", + "integrity": "sha512-Z2gYsbEsv0eyD/wx8uDnGBmo7n9z1oAJnjpdovq3XkdAjKoIVNCRRlbrFQG0HkVuqBAxrJnWFNECfGebLrz7mA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@unrs/resolver-binding-win32-ia32-msvc": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-win32-ia32-msvc/-/resolver-binding-win32-ia32-msvc-1.6.1.tgz", + "integrity": "sha512-bpGw2JV9NN1zKt/jXpOB+U9AdqdcPdqA2tF8Or6axNoOl3gBtSaooEYx17NpQra33Wx/d7VX8jWv+3LX1dggJA==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@unrs/resolver-binding-win32-x64-msvc": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-win32-x64-msvc/-/resolver-binding-win32-x64-msvc-1.6.1.tgz", + "integrity": "sha512-uNnVmvDLZBDQ4sLFNTugTtzUH9LEoHXG46HdWaih+pK4knwi+wcz+nd0fQC92n/dH4PwPc5T8XArvlCKpfU6vQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@wagmi/connectors": { + "version": "5.7.12", + "resolved": "https://registry.npmjs.org/@wagmi/connectors/-/connectors-5.7.12.tgz", + "integrity": "sha512-pLFuZ1PsLkNyY11mx0+IOrMM7xACWCBRxaulfX17osqixkDFeOAyqFGBjh/XxkvRyrDJUdO4F+QHEeSoOiPpgg==", + "dependencies": { + "@coinbase/wallet-sdk": "4.3.0", + "@metamask/sdk": "0.32.0", + "@safe-global/safe-apps-provider": "0.18.5", + "@safe-global/safe-apps-sdk": "9.1.0", + "@walletconnect/ethereum-provider": "2.19.2", + "cbw-sdk": "npm:@coinbase/wallet-sdk@3.9.3" + }, + "funding": { + "url": "https://github.com/sponsors/wevm" + }, + "peerDependencies": { + "@wagmi/core": "2.16.7", + "typescript": ">=5.0.4", + "viem": "2.x" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@wagmi/core": { + "version": "2.16.7", + "resolved": "https://registry.npmjs.org/@wagmi/core/-/core-2.16.7.tgz", + "integrity": "sha512-Kpgrw6OXV0VBhDs4toQVKQ0NK5yUO6uxEqnvRGjNjbO85d93Gbfsp5BlxSLeWq6iVMSBFSitdl5i9W7b1miq1g==", + "dependencies": { + "eventemitter3": "5.0.1", + "mipd": "0.0.7", + "zustand": "5.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/wevm" + }, + "peerDependencies": { + "@tanstack/query-core": ">=5.0.0", + "typescript": ">=5.0.4", + "viem": "2.x" + }, + "peerDependenciesMeta": { + "@tanstack/query-core": { + "optional": true + }, + "typescript": { + "optional": true + } + } + }, + "node_modules/@walletconnect/core": { + "version": "2.19.2", + "resolved": "https://registry.npmjs.org/@walletconnect/core/-/core-2.19.2.tgz", + "integrity": "sha512-iu0mgLj51AXcKpdNj8+4EdNNBd/mkNjLEhZn6UMc/r7BM9WbmpPMEydA39WeRLbdLO4kbpmq4wTbiskI1rg+HA==", + "dependencies": { + "@walletconnect/heartbeat": "1.2.2", + "@walletconnect/jsonrpc-provider": "1.0.14", + "@walletconnect/jsonrpc-types": "1.0.4", + "@walletconnect/jsonrpc-utils": "1.0.8", + "@walletconnect/jsonrpc-ws-connection": "1.0.16", + "@walletconnect/keyvaluestorage": "1.1.1", + "@walletconnect/logger": "2.1.2", + "@walletconnect/relay-api": "1.0.11", + "@walletconnect/relay-auth": "1.1.0", + "@walletconnect/safe-json": "1.0.2", + "@walletconnect/time": "1.0.2", + "@walletconnect/types": "2.19.2", + "@walletconnect/utils": "2.19.2", + "@walletconnect/window-getters": "1.0.1", + "es-toolkit": "1.33.0", + "events": "3.3.0", + "uint8arrays": "3.1.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/@walletconnect/environment": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@walletconnect/environment/-/environment-1.0.1.tgz", + "integrity": "sha512-T426LLZtHj8e8rYnKfzsw1aG6+M0BT1ZxayMdv/p8yM0MU+eJDISqNY3/bccxRr4LrF9csq02Rhqt08Ibl0VRg==", + "dependencies": { + "tslib": "1.14.1" + } + }, + "node_modules/@walletconnect/environment/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" + }, + "node_modules/@walletconnect/ethereum-provider": { + "version": "2.19.2", + "resolved": "https://registry.npmjs.org/@walletconnect/ethereum-provider/-/ethereum-provider-2.19.2.tgz", + "integrity": "sha512-NzPzNcjMLqow6ha2nssB1ciMD0cdHZesYcHSQKjCi9waIDMov9Fr2yEJccbiVFE3cxek7f9dCPsoZez2q8ihvg==", + "dependencies": { + "@walletconnect/jsonrpc-http-connection": "1.0.8", + "@walletconnect/jsonrpc-provider": "1.0.14", + "@walletconnect/jsonrpc-types": "1.0.4", + "@walletconnect/jsonrpc-utils": "1.0.8", + "@walletconnect/keyvaluestorage": "1.1.1", + "@walletconnect/modal": "2.7.0", + "@walletconnect/sign-client": "2.19.2", + "@walletconnect/types": "2.19.2", + "@walletconnect/universal-provider": "2.19.2", + "@walletconnect/utils": "2.19.2", + "events": "3.3.0" + } + }, + "node_modules/@walletconnect/events": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@walletconnect/events/-/events-1.0.1.tgz", + "integrity": "sha512-NPTqaoi0oPBVNuLv7qPaJazmGHs5JGyO8eEAk5VGKmJzDR7AHzD4k6ilox5kxk1iwiOnFopBOOMLs86Oa76HpQ==", + "dependencies": { + "keyvaluestorage-interface": "^1.0.0", + "tslib": "1.14.1" + } + }, + "node_modules/@walletconnect/events/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" + }, + "node_modules/@walletconnect/heartbeat": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/@walletconnect/heartbeat/-/heartbeat-1.2.2.tgz", + "integrity": "sha512-uASiRmC5MwhuRuf05vq4AT48Pq8RMi876zV8rr8cV969uTOzWdB/k+Lj5yI2PBtB1bGQisGen7MM1GcZlQTBXw==", + "dependencies": { + "@walletconnect/events": "^1.0.1", + "@walletconnect/time": "^1.0.2", + "events": "^3.3.0" + } + }, + "node_modules/@walletconnect/jsonrpc-http-connection": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/@walletconnect/jsonrpc-http-connection/-/jsonrpc-http-connection-1.0.8.tgz", + "integrity": "sha512-+B7cRuaxijLeFDJUq5hAzNyef3e3tBDIxyaCNmFtjwnod5AGis3RToNqzFU33vpVcxFhofkpE7Cx+5MYejbMGw==", + "dependencies": { + "@walletconnect/jsonrpc-utils": "^1.0.6", + "@walletconnect/safe-json": "^1.0.1", + "cross-fetch": "^3.1.4", + "events": "^3.3.0" + } + }, + "node_modules/@walletconnect/jsonrpc-http-connection/node_modules/cross-fetch": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.2.0.tgz", + "integrity": "sha512-Q+xVJLoGOeIMXZmbUK4HYk+69cQH6LudR0Vu/pRm2YlU/hDV9CiS0gKUMaWY5f2NeUH9C1nV3bsTlCo0FsTV1Q==", + "dependencies": { + "node-fetch": "^2.7.0" + } + }, + "node_modules/@walletconnect/jsonrpc-provider": { + "version": "1.0.14", + "resolved": "https://registry.npmjs.org/@walletconnect/jsonrpc-provider/-/jsonrpc-provider-1.0.14.tgz", + "integrity": "sha512-rtsNY1XqHvWj0EtITNeuf8PHMvlCLiS3EjQL+WOkxEOA4KPxsohFnBDeyPYiNm4ZvkQdLnece36opYidmtbmow==", + "dependencies": { + "@walletconnect/jsonrpc-utils": "^1.0.8", + "@walletconnect/safe-json": "^1.0.2", + "events": "^3.3.0" + } + }, + "node_modules/@walletconnect/jsonrpc-types": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@walletconnect/jsonrpc-types/-/jsonrpc-types-1.0.4.tgz", + "integrity": "sha512-P6679fG/M+wuWg9TY8mh6xFSdYnFyFjwFelxyISxMDrlbXokorEVXYOxiqEbrU3x1BmBoCAJJ+vtEaEoMlpCBQ==", + "dependencies": { + "events": "^3.3.0", + "keyvaluestorage-interface": "^1.0.0" + } + }, + "node_modules/@walletconnect/jsonrpc-utils": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/@walletconnect/jsonrpc-utils/-/jsonrpc-utils-1.0.8.tgz", + "integrity": "sha512-vdeb03bD8VzJUL6ZtzRYsFMq1eZQcM3EAzT0a3st59dyLfJ0wq+tKMpmGH7HlB7waD858UWgfIcudbPFsbzVdw==", + "dependencies": { + "@walletconnect/environment": "^1.0.1", + "@walletconnect/jsonrpc-types": "^1.0.3", + "tslib": "1.14.1" + } + }, + "node_modules/@walletconnect/jsonrpc-utils/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" + }, + "node_modules/@walletconnect/jsonrpc-ws-connection": { + "version": "1.0.16", + "resolved": "https://registry.npmjs.org/@walletconnect/jsonrpc-ws-connection/-/jsonrpc-ws-connection-1.0.16.tgz", + "integrity": "sha512-G81JmsMqh5nJheE1mPst1W0WfVv0SG3N7JggwLLGnI7iuDZJq8cRJvQwLGKHn5H1WTW7DEPCo00zz5w62AbL3Q==", + "dependencies": { + "@walletconnect/jsonrpc-utils": "^1.0.6", + "@walletconnect/safe-json": "^1.0.2", + "events": "^3.3.0", + "ws": "^7.5.1" + } + }, + "node_modules/@walletconnect/keyvaluestorage": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@walletconnect/keyvaluestorage/-/keyvaluestorage-1.1.1.tgz", + "integrity": "sha512-V7ZQq2+mSxAq7MrRqDxanTzu2RcElfK1PfNYiaVnJgJ7Q7G7hTVwF8voIBx92qsRyGHZihrwNPHuZd1aKkd0rA==", + "dependencies": { + "@walletconnect/safe-json": "^1.0.1", + "idb-keyval": "^6.2.1", + "unstorage": "^1.9.0" + }, + "peerDependencies": { + "@react-native-async-storage/async-storage": "1.x" + }, + "peerDependenciesMeta": { + "@react-native-async-storage/async-storage": { + "optional": true + } + } + }, + "node_modules/@walletconnect/logger": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/@walletconnect/logger/-/logger-2.1.2.tgz", + "integrity": "sha512-aAb28I3S6pYXZHQm5ESB+V6rDqIYfsnHaQyzFbwUUBFY4H0OXx/YtTl8lvhUNhMMfb9UxbwEBS253TlXUYJWSw==", + "dependencies": { + "@walletconnect/safe-json": "^1.0.2", + "pino": "7.11.0" + } + }, + "node_modules/@walletconnect/modal": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@walletconnect/modal/-/modal-2.7.0.tgz", + "integrity": "sha512-RQVt58oJ+rwqnPcIvRFeMGKuXb9qkgSmwz4noF8JZGUym3gUAzVs+uW2NQ1Owm9XOJAV+sANrtJ+VoVq1ftElw==", + "dependencies": { + "@walletconnect/modal-core": "2.7.0", + "@walletconnect/modal-ui": "2.7.0" + } + }, + "node_modules/@walletconnect/modal-core": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@walletconnect/modal-core/-/modal-core-2.7.0.tgz", + "integrity": "sha512-oyMIfdlNdpyKF2kTJowTixZSo0PGlCJRdssUN/EZdA6H6v03hZnf09JnwpljZNfir2M65Dvjm/15nGrDQnlxSA==", + "dependencies": { + "valtio": "1.11.2" + } + }, + "node_modules/@walletconnect/modal-core/node_modules/proxy-compare": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/proxy-compare/-/proxy-compare-2.5.1.tgz", + "integrity": "sha512-oyfc0Tx87Cpwva5ZXezSp5V9vht1c7dZBhvuV/y3ctkgMVUmiAGDVeeB0dKhGSyT0v1ZTEQYpe/RXlBVBNuCLA==" + }, + "node_modules/@walletconnect/modal-core/node_modules/react": { + "version": "18.3.1", + "resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz", + "integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==", + "peer": true, + "dependencies": { + "loose-envify": "^1.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/@walletconnect/modal-core/node_modules/use-sync-external-store": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.2.0.tgz", + "integrity": "sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA==", + "peerDependencies": { + "react": "^16.8.0 || ^17.0.0 || ^18.0.0" + } + }, + "node_modules/@walletconnect/modal-core/node_modules/valtio": { + "version": "1.11.2", + "resolved": "https://registry.npmjs.org/valtio/-/valtio-1.11.2.tgz", + "integrity": "sha512-1XfIxnUXzyswPAPXo1P3Pdx2mq/pIqZICkWN60Hby0d9Iqb+MEIpqgYVlbflvHdrp2YR/q3jyKWRPJJ100yxaw==", + "dependencies": { + "proxy-compare": "2.5.1", + "use-sync-external-store": "1.2.0" + }, + "engines": { + "node": ">=12.20.0" + }, + "peerDependencies": { + "@types/react": ">=16.8", + "react": ">=16.8" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "react": { + "optional": true + } + } + }, + "node_modules/@walletconnect/modal-ui": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@walletconnect/modal-ui/-/modal-ui-2.7.0.tgz", + "integrity": "sha512-gERYvU7D7K1ANCN/8vUgsE0d2hnRemfAFZ2novm9aZBg7TEd/4EgB+AqbJ+1dc7GhOL6dazckVq78TgccHb7mQ==", + "dependencies": { + "@walletconnect/modal-core": "2.7.0", + "lit": "2.8.0", + "motion": "10.16.2", + "qrcode": "1.5.3" + } + }, + "node_modules/@walletconnect/modal-ui/node_modules/@lit/reactive-element": { + "version": "1.6.3", + "resolved": "https://registry.npmjs.org/@lit/reactive-element/-/reactive-element-1.6.3.tgz", + "integrity": "sha512-QuTgnG52Poic7uM1AN5yJ09QMe0O28e10XzSvWDz02TJiiKee4stsiownEIadWm8nYzyDAyT+gKzUoZmiWQtsQ==", + "dependencies": { + "@lit-labs/ssr-dom-shim": "^1.0.0" + } + }, + "node_modules/@walletconnect/modal-ui/node_modules/lit": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/lit/-/lit-2.8.0.tgz", + "integrity": "sha512-4Sc3OFX9QHOJaHbmTMk28SYgVxLN3ePDjg7hofEft2zWlehFL3LiAuapWc4U/kYwMYJSh2hTCPZ6/LIC7ii0MA==", + "dependencies": { + "@lit/reactive-element": "^1.6.0", + "lit-element": "^3.3.0", + "lit-html": "^2.8.0" + } + }, + "node_modules/@walletconnect/modal-ui/node_modules/lit-element": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/lit-element/-/lit-element-3.3.3.tgz", + "integrity": "sha512-XbeRxmTHubXENkV4h8RIPyr8lXc+Ff28rkcQzw3G6up2xg5E8Zu1IgOWIwBLEQsu3cOVFqdYwiVi0hv0SlpqUA==", + "dependencies": { + "@lit-labs/ssr-dom-shim": "^1.1.0", + "@lit/reactive-element": "^1.3.0", + "lit-html": "^2.8.0" + } + }, + "node_modules/@walletconnect/modal-ui/node_modules/lit-html": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/lit-html/-/lit-html-2.8.0.tgz", + "integrity": "sha512-o9t+MQM3P4y7M7yNzqAyjp7z+mQGa4NS4CxiyLqFPyFWyc4O+nodLrkrxSaCTrla6M5YOLaT3RpbbqjszB5g3Q==", + "dependencies": { + "@types/trusted-types": "^2.0.2" + } + }, + "node_modules/@walletconnect/relay-api": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/@walletconnect/relay-api/-/relay-api-1.0.11.tgz", + "integrity": "sha512-tLPErkze/HmC9aCmdZOhtVmYZq1wKfWTJtygQHoWtgg722Jd4homo54Cs4ak2RUFUZIGO2RsOpIcWipaua5D5Q==", + "dependencies": { + "@walletconnect/jsonrpc-types": "^1.0.2" + } + }, + "node_modules/@walletconnect/relay-auth": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@walletconnect/relay-auth/-/relay-auth-1.1.0.tgz", + "integrity": "sha512-qFw+a9uRz26jRCDgL7Q5TA9qYIgcNY8jpJzI1zAWNZ8i7mQjaijRnWFKsCHAU9CyGjvt6RKrRXyFtFOpWTVmCQ==", + "dependencies": { + "@noble/curves": "1.8.0", + "@noble/hashes": "1.7.0", + "@walletconnect/safe-json": "^1.0.1", + "@walletconnect/time": "^1.0.2", + "uint8arrays": "^3.0.0" + } + }, + "node_modules/@walletconnect/relay-auth/node_modules/@noble/hashes": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.7.0.tgz", + "integrity": "sha512-HXydb0DgzTpDPwbVeDGCG1gIu7X6+AuU6Zl6av/E/KG8LMsvPntvq+w17CHRpKBmN6Ybdrt1eP3k4cj8DJa78w==", + "engines": { + "node": "^14.21.3 || >=16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@walletconnect/safe-json": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@walletconnect/safe-json/-/safe-json-1.0.2.tgz", + "integrity": "sha512-Ogb7I27kZ3LPC3ibn8ldyUr5544t3/STow9+lzz7Sfo808YD7SBWk7SAsdBFlYgP2zDRy2hS3sKRcuSRM0OTmA==", + "dependencies": { + "tslib": "1.14.1" + } + }, + "node_modules/@walletconnect/safe-json/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" + }, + "node_modules/@walletconnect/sign-client": { + "version": "2.19.2", + "resolved": "https://registry.npmjs.org/@walletconnect/sign-client/-/sign-client-2.19.2.tgz", + "integrity": "sha512-a/K5PRIFPCjfHq5xx3WYKHAAF8Ft2I1LtxloyibqiQOoUtNLfKgFB1r8sdMvXM7/PADNPe4iAw4uSE6PrARrfg==", + "dependencies": { + "@walletconnect/core": "2.19.2", + "@walletconnect/events": "1.0.1", + "@walletconnect/heartbeat": "1.2.2", + "@walletconnect/jsonrpc-utils": "1.0.8", + "@walletconnect/logger": "2.1.2", + "@walletconnect/time": "1.0.2", + "@walletconnect/types": "2.19.2", + "@walletconnect/utils": "2.19.2", + "events": "3.3.0" + } + }, + "node_modules/@walletconnect/time": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@walletconnect/time/-/time-1.0.2.tgz", + "integrity": "sha512-uzdd9woDcJ1AaBZRhqy5rNC9laqWGErfc4dxA9a87mPdKOgWMD85mcFo9dIYIts/Jwocfwn07EC6EzclKubk/g==", + "dependencies": { + "tslib": "1.14.1" + } + }, + "node_modules/@walletconnect/time/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" + }, + "node_modules/@walletconnect/types": { + "version": "2.19.2", + "resolved": "https://registry.npmjs.org/@walletconnect/types/-/types-2.19.2.tgz", + "integrity": "sha512-/LZWhkVCUN+fcTgQUxArxhn2R8DF+LSd/6Wh9FnpjeK/Sdupx1EPS8okWG6WPAqq2f404PRoNAfQytQ82Xdl3g==", + "dependencies": { + "@walletconnect/events": "1.0.1", + "@walletconnect/heartbeat": "1.2.2", + "@walletconnect/jsonrpc-types": "1.0.4", + "@walletconnect/keyvaluestorage": "1.1.1", + "@walletconnect/logger": "2.1.2", + "events": "3.3.0" + } + }, + "node_modules/@walletconnect/universal-provider": { + "version": "2.19.2", + "resolved": "https://registry.npmjs.org/@walletconnect/universal-provider/-/universal-provider-2.19.2.tgz", + "integrity": "sha512-LkKg+EjcSUpPUhhvRANgkjPL38wJPIWumAYD8OK/g4OFuJ4W3lS/XTCKthABQfFqmiNbNbVllmywiyE44KdpQg==", + "dependencies": { + "@walletconnect/events": "1.0.1", + "@walletconnect/jsonrpc-http-connection": "1.0.8", + "@walletconnect/jsonrpc-provider": "1.0.14", + "@walletconnect/jsonrpc-types": "1.0.4", + "@walletconnect/jsonrpc-utils": "1.0.8", + "@walletconnect/keyvaluestorage": "1.1.1", + "@walletconnect/logger": "2.1.2", + "@walletconnect/sign-client": "2.19.2", + "@walletconnect/types": "2.19.2", + "@walletconnect/utils": "2.19.2", + "es-toolkit": "1.33.0", + "events": "3.3.0" + } + }, + "node_modules/@walletconnect/utils": { + "version": "2.19.2", + "resolved": "https://registry.npmjs.org/@walletconnect/utils/-/utils-2.19.2.tgz", + "integrity": "sha512-VU5CcUF4sZDg8a2/ov29OJzT3KfLuZqJUM0GemW30dlipI5fkpb0VPenZK7TcdLPXc1LN+Q+7eyTqHRoAu/BIA==", + "dependencies": { + "@noble/ciphers": "1.2.1", + "@noble/curves": "1.8.1", + "@noble/hashes": "1.7.1", + "@walletconnect/jsonrpc-utils": "1.0.8", + "@walletconnect/keyvaluestorage": "1.1.1", + "@walletconnect/relay-api": "1.0.11", + "@walletconnect/relay-auth": "1.1.0", + "@walletconnect/safe-json": "1.0.2", + "@walletconnect/time": "1.0.2", + "@walletconnect/types": "2.19.2", + "@walletconnect/window-getters": "1.0.1", + "@walletconnect/window-metadata": "1.0.1", + "bs58": "6.0.0", + "detect-browser": "5.3.0", + "query-string": "7.1.3", + "uint8arrays": "3.1.0", + "viem": "2.23.2" + } + }, + "node_modules/@walletconnect/utils/node_modules/@noble/curves": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.8.1.tgz", + "integrity": "sha512-warwspo+UYUPep0Q+vtdVB4Ugn8GGQj8iyB3gnRWsztmUHTI3S1nhdiWNsPUGL0vud7JlRRk1XEu7Lq1KGTnMQ==", + "dependencies": { + "@noble/hashes": "1.7.1" + }, + "engines": { + "node": "^14.21.3 || >=16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@walletconnect/utils/node_modules/@noble/hashes": { + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.7.1.tgz", + "integrity": "sha512-B8XBPsn4vT/KJAGqDzbwztd+6Yte3P4V7iafm24bxgDe/mlRuK6xmWPuCNrKt2vDafZ8MfJLlchDG/vYafQEjQ==", + "engines": { + "node": "^14.21.3 || >=16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@walletconnect/utils/node_modules/@scure/bip32": { + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.6.2.tgz", + "integrity": "sha512-t96EPDMbtGgtb7onKKqxRLfE5g05k7uHnHRM2xdE6BP/ZmxaLtPek4J4KfVn/90IQNrU1IOAqMgiDtUdtbe3nw==", + "dependencies": { + "@noble/curves": "~1.8.1", + "@noble/hashes": "~1.7.1", + "@scure/base": "~1.2.2" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@walletconnect/utils/node_modules/@scure/bip39": { + "version": "1.5.4", + "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.5.4.tgz", + "integrity": "sha512-TFM4ni0vKvCfBpohoh+/lY05i9gRbSwXWngAsF4CABQxoaOHijxuaZ2R6cStDQ5CHtHO9aGJTr4ksVJASRRyMA==", + "dependencies": { + "@noble/hashes": "~1.7.1", + "@scure/base": "~1.2.4" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@walletconnect/utils/node_modules/ox": { + "version": "0.6.7", + "resolved": "https://registry.npmjs.org/ox/-/ox-0.6.7.tgz", + "integrity": "sha512-17Gk/eFsFRAZ80p5eKqv89a57uXjd3NgIf1CaXojATPBuujVc/fQSVhBeAU9JCRB+k7J50WQAyWTxK19T9GgbA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/wevm" + } + ], + "dependencies": { + "@adraffy/ens-normalize": "^1.10.1", + "@noble/curves": "^1.6.0", + "@noble/hashes": "^1.5.0", + "@scure/bip32": "^1.5.0", + "@scure/bip39": "^1.4.0", + "abitype": "^1.0.6", + "eventemitter3": "5.0.1" + }, + "peerDependencies": { + "typescript": ">=5.4.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@walletconnect/utils/node_modules/viem": { + "version": "2.23.2", + "resolved": "https://registry.npmjs.org/viem/-/viem-2.23.2.tgz", + "integrity": "sha512-NVmW/E0c5crMOtbEAqMF0e3NmvQykFXhLOc/CkLIXOlzHSA6KXVz3CYVmaKqBF8/xtjsjHAGjdJN3Ru1kFJLaA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/wevm" + } + ], + "dependencies": { + "@noble/curves": "1.8.1", + "@noble/hashes": "1.7.1", + "@scure/bip32": "1.6.2", + "@scure/bip39": "1.5.4", + "abitype": "1.0.8", + "isows": "1.0.6", + "ox": "0.6.7", + "ws": "8.18.0" + }, + "peerDependencies": { + "typescript": ">=5.0.4" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@walletconnect/utils/node_modules/ws": { + "version": "8.18.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.0.tgz", + "integrity": "sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==", + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": ">=5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/@walletconnect/window-getters": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@walletconnect/window-getters/-/window-getters-1.0.1.tgz", + "integrity": "sha512-vHp+HqzGxORPAN8gY03qnbTMnhqIwjeRJNOMOAzePRg4xVEEE2WvYsI9G2NMjOknA8hnuYbU3/hwLcKbjhc8+Q==", + "dependencies": { + "tslib": "1.14.1" + } + }, + "node_modules/@walletconnect/window-getters/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" + }, + "node_modules/@walletconnect/window-metadata": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@walletconnect/window-metadata/-/window-metadata-1.0.1.tgz", + "integrity": "sha512-9koTqyGrM2cqFRW517BPY/iEtUDx2r1+Pwwu5m7sJ7ka79wi3EyqhqcICk/yDmv6jAS1rjKgTKXlEhanYjijcA==", + "dependencies": { + "@walletconnect/window-getters": "^1.0.1", + "tslib": "1.14.1" + } + }, + "node_modules/@walletconnect/window-metadata/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" + }, + "node_modules/abitype": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/abitype/-/abitype-1.0.8.tgz", + "integrity": "sha512-ZeiI6h3GnW06uYDLx0etQtX/p8E24UaHHBj57RSjK7YBFe7iuVn07EDpOeP451D06sF27VOz9JJPlIKJmXgkEg==", + "funding": { + "url": "https://github.com/sponsors/wevm" + }, + "peerDependencies": { + "typescript": ">=5.0.4", + "zod": "^3 >=3.22.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + }, + "zod": { + "optional": true + } + } + }, + "node_modules/acorn": { + "version": "8.14.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.1.tgz", + "integrity": "sha512-OvQ/2pUDKmgfCg++xsTX1wGxfTaszcHVcTctW4UJB4hibJx2HXxxO5UmVgyjMa+ZDsiaf5wWLXYpRWMmBI0QHg==", + "dev": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true + }, + "node_modules/aria-query": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.2.tgz", + "integrity": "sha512-COROpnaoap1E2F000S62r6A60uHZnmlvomhfyT2DlTcrY1OrBKn2UhH7qn5wTC9zMvD0AY7csdPSNwKP+7WiQw==", + "dev": true, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/array-buffer-byte-length": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.2.tgz", + "integrity": "sha512-LHE+8BuR7RYGDKvnrmcuSq3tDcKv9OFEXQt/HpbZhY7V6h0zlUXutnAD82GiFx9rdieCMjkvtcsPqBwgUl1Iiw==", + "dev": true, + "dependencies": { + "call-bound": "^1.0.3", + "is-array-buffer": "^3.0.5" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array-includes": { + "version": "3.1.8", + "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.8.tgz", + "integrity": "sha512-itaWrbYbqpGXkGhZPGUulwnhVf5Hpy1xiCFsGqyIGglbBxmG5vSjxQen3/WGOjPpNEv1RtBLKxbmVXm8HpJStQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.2", + "es-object-atoms": "^1.0.0", + "get-intrinsic": "^1.2.4", + "is-string": "^1.0.7" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.findlast": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/array.prototype.findlast/-/array.prototype.findlast-1.2.5.tgz", + "integrity": "sha512-CVvd6FHg1Z3POpBLxO6E6zr+rSKEQ9L6rZHAaY7lLfhKsWYUBBOuMs0e9o24oopj6H+geRCX0YJ+TJLBK2eHyQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.2", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.0.0", + "es-shim-unscopables": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.findlastindex": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/array.prototype.findlastindex/-/array.prototype.findlastindex-1.2.6.tgz", + "integrity": "sha512-F/TKATkzseUExPlfvmwQKGITM3DGTK+vkAsCZoDc5daVygbJBnjEUCbgkAvVFsgfXfX4YIqZ/27G3k3tdXrTxQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.4", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.9", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", + "es-shim-unscopables": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.flat": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.3.tgz", + "integrity": "sha512-rwG/ja1neyLqCuGZ5YYrznA62D4mZXg0i1cIskIUKSiqF3Cje9/wXAls9B9s1Wa2fomMsIv8czB8jZcPmxCXFg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.8", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.5", + "es-shim-unscopables": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.flatmap": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.3.tgz", + "integrity": "sha512-Y7Wt51eKJSyi80hFrJCePGGNo5ktJCslFuboqJsbf57CCPcm5zztluPlc4/aD8sWsKvlwatezpV4U1efk8kpjg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.8", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.5", + "es-shim-unscopables": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.tosorted": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/array.prototype.tosorted/-/array.prototype.tosorted-1.1.4.tgz", + "integrity": "sha512-p6Fx8B7b7ZhL/gmUsAy0D15WhvDccw3mnGNbZpi3pmeJdxtWsj2jEaI4Y6oo3XiHfzuSgPwKc04MYt6KgvC/wA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.3", + "es-errors": "^1.3.0", + "es-shim-unscopables": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/arraybuffer.prototype.slice": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.4.tgz", + "integrity": "sha512-BNoCY6SXXPQ7gF2opIP4GBE+Xw7U+pHMYKuzjgCN3GwiaIR09UUeKfheyIry77QtrCBlC0KK0q5/TER/tYh3PQ==", + "dev": true, + "dependencies": { + "array-buffer-byte-length": "^1.0.1", + "call-bind": "^1.0.8", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.5", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6", + "is-array-buffer": "^3.0.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/ast-types-flow": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/ast-types-flow/-/ast-types-flow-0.0.8.tgz", + "integrity": "sha512-OH/2E5Fg20h2aPrbe+QL8JZQFko0YZaF+j4mnQ7BGhfavO7OpSLa8a0y9sBwomHdSbkhTS8TQNayBfnW5DwbvQ==", + "dev": true + }, + "node_modules/async-function": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/async-function/-/async-function-1.0.0.tgz", + "integrity": "sha512-hsU18Ae8CDTR6Kgu9DYf0EbCr/a5iGL0rytQDobUcdpYOKokk8LEjVphnXkDkgpi0wYVsqrXuP0bZxJaTqdgoA==", + "dev": true, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/async-mutex": { + "version": "0.2.6", + "resolved": "https://registry.npmjs.org/async-mutex/-/async-mutex-0.2.6.tgz", + "integrity": "sha512-Hs4R+4SPgamu6rSGW8C7cV9gaWUKEHykfzCCvIRuaVv636Ju10ZdeUbvb4TBEW0INuq2DHZqXbK4Nd3yG4RaRw==", + "dependencies": { + "tslib": "^2.0.0" + } + }, + "node_modules/atomic-sleep": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/atomic-sleep/-/atomic-sleep-1.0.0.tgz", + "integrity": "sha512-kNOjDqAh7px0XWNI+4QbzoiR/nTkHAWNud2uvnJquD1/x5a7EQZMJT0AczqK0Qn67oY/TTQ1LbUKajZpp3I9tQ==", + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/available-typed-arrays": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz", + "integrity": "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==", + "dependencies": { + "possible-typed-array-names": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/axe-core": { + "version": "4.10.3", + "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.10.3.tgz", + "integrity": "sha512-Xm7bpRXnDSX2YE2YFfBk2FnF0ep6tmG7xPh8iHee8MIcrgq762Nkce856dYtJYLkuIoYZvGfTs/PbZhideTcEg==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/axobject-query": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-4.1.0.tgz", + "integrity": "sha512-qIj0G9wZbMGNLjLmg1PT6v2mE9AH2zlnADJD/2tC6E00hgmhUOfEB6greHPAfLRSufHqROIUTkw6E+M3lH0PTQ==", + "dev": true, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true + }, + "node_modules/base-x": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/base-x/-/base-x-5.0.1.tgz", + "integrity": "sha512-M7uio8Zt++eg3jPj+rHMfCC+IuygQHHCOU+IYsVtik6FWjuYpVt/+MRKcgsAMHh8mMFAwnB+Bs+mTrFiXjMzKg==" + }, + "node_modules/base64-js": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/big.js": { + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/big.js/-/big.js-6.2.2.tgz", + "integrity": "sha512-y/ie+Faknx7sZA5MfGA2xKlu0GDv8RWrXGsmlteyJQ2lvoKv9GBK/fpRMc2qlSoBAgNxrixICFCBefIq8WCQpQ==", + "engines": { + "node": "*" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/bigjs" + } + }, + "node_modules/bn.js": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-5.2.1.tgz", + "integrity": "sha512-eXRvHzWyYPBuB4NBy0cmYQjGitUrtqwbvlzP3G6VFnNRbsZQIxQ10PbKKHt8gZ/HW/D/747aDl+QkDqg3KQLMQ==" + }, + "node_modules/bowser": { + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/bowser/-/bowser-2.11.0.tgz", + "integrity": "sha512-AlcaJBi/pqqJBIQ8U9Mcpc9i8Aqxn88Skv5d+xBX006BY5u8N3mGLHa5Lgppa7L/HfwgwLgZ6NYs+Ag6uUmJRA==" + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "dev": true, + "dependencies": { + "fill-range": "^7.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/bs58": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/bs58/-/bs58-6.0.0.tgz", + "integrity": "sha512-PD0wEnEYg6ijszw/u8s+iI3H17cTymlrwkKhDhPZq+Sokl3AU4htyBFTjAeNAlCCmg0f53g6ih3jATyCKftTfw==", + "dependencies": { + "base-x": "^5.0.0" + } + }, + "node_modules/buffer": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", + "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.2.1" + } + }, + "node_modules/bufferutil": { + "version": "4.0.9", + "resolved": "https://registry.npmjs.org/bufferutil/-/bufferutil-4.0.9.tgz", + "integrity": "sha512-WDtdLmJvAuNNPzByAYpRo2rF1Mmradw6gvWsQKf63476DDXmomT9zUiGypLcG4ibIM67vhAj8jJRdbmEws2Aqw==", + "hasInstallScript": true, + "dependencies": { + "node-gyp-build": "^4.3.0" + }, + "engines": { + "node": ">=6.14.2" + } + }, + "node_modules/busboy": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/busboy/-/busboy-1.6.0.tgz", + "integrity": "sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==", + "dependencies": { + "streamsearch": "^1.1.0" + }, + "engines": { + "node": ">=10.16.0" + } + }, + "node_modules/call-bind": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.8.tgz", + "integrity": "sha512-oKlSFMcMwpUg2ednkhQ454wfWiU/ul3CkJe/PEHcTKuiX6RpbehUiFMXu13HalGZxfUwCQzZG747YXBn1im9ww==", + "dependencies": { + "call-bind-apply-helpers": "^1.0.0", + "es-define-property": "^1.0.0", + "get-intrinsic": "^1.2.4", + "set-function-length": "^1.2.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/call-bind-apply-helpers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", + "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/call-bound": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", + "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "get-intrinsic": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "engines": { + "node": ">=6" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001715", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001715.tgz", + "integrity": "sha512-7ptkFGMm2OAOgvZpwgA4yjQ5SQbrNVGdRjzH0pBdy1Fasvcr+KAeECmbCAECzTuDuoX0FCY8KzUxjf9+9kfZEw==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ] + }, + "node_modules/cbw-sdk": { + "name": "@coinbase/wallet-sdk", + "version": "3.9.3", + "resolved": "https://registry.npmjs.org/@coinbase/wallet-sdk/-/wallet-sdk-3.9.3.tgz", + "integrity": "sha512-N/A2DRIf0Y3PHc1XAMvbBUu4zisna6qAdqABMZwBMNEfWrXpAwx16pZGkYCLGE+Rvv1edbcB2LYDRnACNcmCiw==", + "dependencies": { + "bn.js": "^5.2.1", + "buffer": "^6.0.3", + "clsx": "^1.2.1", + "eth-block-tracker": "^7.1.0", + "eth-json-rpc-filters": "^6.0.0", + "eventemitter3": "^5.0.1", + "keccak": "^3.0.3", + "preact": "^10.16.0", + "sha.js": "^2.4.11" + } + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/chokidar": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.3.tgz", + "integrity": "sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==", + "dependencies": { + "readdirp": "^4.0.1" + }, + "engines": { + "node": ">= 14.16.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/client-only": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/client-only/-/client-only-0.0.1.tgz", + "integrity": "sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==" + }, + "node_modules/cliui": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", + "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^6.2.0" + } + }, + "node_modules/clsx": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/clsx/-/clsx-1.2.1.tgz", + "integrity": "sha512-EcR6r5a8bj6pu3ycsa/E/cKVGuTgZJZdsyUYHOksG/UHIiKfjxzRxYJpyVBwYaQeOvghal9fcc4PidlgzugAQg==", + "engines": { + "node": ">=6" + } + }, + "node_modules/color": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/color/-/color-4.2.3.tgz", + "integrity": "sha512-1rXeuUUiGGrykh+CeBdu5Ie7OJwinCgQY0bc7GCRxy5xVHy+moaqkpL/jqQq0MtQOeYcrqEz4abc5f0KtU7W4A==", + "optional": true, + "dependencies": { + "color-convert": "^2.0.1", + "color-string": "^1.9.0" + }, + "engines": { + "node": ">=12.5.0" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/color-string": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/color-string/-/color-string-1.9.1.tgz", + "integrity": "sha512-shrVawQFojnZv6xM40anx4CkoDP+fZsw/ZerEMsW/pyzsRbElpsL/DBVW7q3ExxwusdNXI3lXpuhEZkzs8p5Eg==", + "optional": true, + "dependencies": { + "color-name": "^1.0.0", + "simple-swizzle": "^0.2.2" + } + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true + }, + "node_modules/cookie-es": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/cookie-es/-/cookie-es-1.2.2.tgz", + "integrity": "sha512-+W7VmiVINB+ywl1HGXJXmrqkOhpKrIiVZV6tQuV54ZyQC7MMuBt81Vc336GMLoHBq5hV/F9eXgt5Mnx0Rha5Fg==" + }, + "node_modules/core-util-is": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", + "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==" + }, + "node_modules/crc-32": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/crc-32/-/crc-32-1.2.2.tgz", + "integrity": "sha512-ROmzCKrTnOwybPcJApAA6WBWij23HVfGVNKqqrZpuyZOHqK2CwHSvpGuyt/UNNvaIjEd8X5IFGp4Mh+Ie1IHJQ==", + "bin": { + "crc32": "bin/crc32.njs" + }, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/cross-fetch": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-4.1.0.tgz", + "integrity": "sha512-uKm5PU+MHTootlWEY+mZ4vvXoCn4fLQxT9dSc1sXVMSFkINTJVN8cAQROpwcKm8bJ/c7rgZVIBWzH5T78sNZZw==", + "dependencies": { + "node-fetch": "^2.7.0" + } + }, + "node_modules/cross-spawn": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "dev": true, + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/crossws": { + "version": "0.3.4", + "resolved": "https://registry.npmjs.org/crossws/-/crossws-0.3.4.tgz", + "integrity": "sha512-uj0O1ETYX1Bh6uSgktfPvwDiPYGQ3aI4qVsaC/LWpkIzGj1nUYm5FK3K+t11oOlpN01lGbprFCH4wBlKdJjVgw==", + "dependencies": { + "uncrypto": "^0.1.3" + } + }, + "node_modules/csstype": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz", + "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==", + "devOptional": true + }, + "node_modules/damerau-levenshtein": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/damerau-levenshtein/-/damerau-levenshtein-1.0.8.tgz", + "integrity": "sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==", + "dev": true + }, + "node_modules/data-view-buffer": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/data-view-buffer/-/data-view-buffer-1.0.2.tgz", + "integrity": "sha512-EmKO5V3OLXh1rtK2wgXRansaK1/mtVdTUEiEI0W8RkvgT05kfxaH29PliLnpLP73yYO6142Q72QNa8Wx/A5CqQ==", + "dev": true, + "dependencies": { + "call-bound": "^1.0.3", + "es-errors": "^1.3.0", + "is-data-view": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/data-view-byte-length": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/data-view-byte-length/-/data-view-byte-length-1.0.2.tgz", + "integrity": "sha512-tuhGbE6CfTM9+5ANGf+oQb72Ky/0+s3xKUpHvShfiz2RxMFgFPjsXuRLBVMtvMs15awe45SRb83D6wH4ew6wlQ==", + "dev": true, + "dependencies": { + "call-bound": "^1.0.3", + "es-errors": "^1.3.0", + "is-data-view": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/inspect-js" + } + }, + "node_modules/data-view-byte-offset": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/data-view-byte-offset/-/data-view-byte-offset-1.0.1.tgz", + "integrity": "sha512-BS8PfmtDGnrgYdOonGZQdLZslWIeCGFP9tpan0hi1Co2Zr2NKADsvGYA8XxuG/4UWgJ6Cjtv+YJnB6MM69QGlQ==", + "dev": true, + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "is-data-view": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/date-fns": { + "version": "2.30.0", + "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-2.30.0.tgz", + "integrity": "sha512-fnULvOpxnC5/Vg3NCiWelDsLiUc9bRwAPs/+LfTLNvetFCtCTN+yQz15C/fs4AwX1R9K5GLtLfn8QW+dWisaAw==", + "dependencies": { + "@babel/runtime": "^7.21.0" + }, + "engines": { + "node": ">=0.11" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/date-fns" + } + }, + "node_modules/dayjs": { + "version": "1.11.13", + "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.13.tgz", + "integrity": "sha512-oaMBel6gjolK862uaPQOVTA7q3TZhuSvuMQAAglQDOWYO9A91IrAOUJEyKVlqJlHE0vq5p5UXxzdPfMH/x6xNg==" + }, + "node_modules/debug": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", + "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/decode-uri-component": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.2.tgz", + "integrity": "sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ==", + "engines": { + "node": ">=0.10" + } + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true + }, + "node_modules/define-data-property": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", + "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", + "dependencies": { + "es-define-property": "^1.0.0", + "es-errors": "^1.3.0", + "gopd": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/define-properties": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz", + "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==", + "dev": true, + "dependencies": { + "define-data-property": "^1.0.1", + "has-property-descriptors": "^1.0.0", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/defu": { + "version": "6.1.4", + "resolved": "https://registry.npmjs.org/defu/-/defu-6.1.4.tgz", + "integrity": "sha512-mEQCMmwJu317oSz8CwdIOdwf3xMif1ttiM8LTufzc3g6kR+9Pe236twL8j3IYT1F7GfRgGcW6MWxzZjLIkuHIg==" + }, + "node_modules/derive-valtio": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/derive-valtio/-/derive-valtio-0.1.0.tgz", + "integrity": "sha512-OCg2UsLbXK7GmmpzMXhYkdO64vhJ1ROUUGaTFyHjVwEdMEcTTRj7W1TxLbSBxdY8QLBPCcp66MTyaSy0RpO17A==", + "peerDependencies": { + "valtio": "*" + } + }, + "node_modules/destr": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/destr/-/destr-2.0.5.tgz", + "integrity": "sha512-ugFTXCtDZunbzasqBxrK93Ik/DRYsO6S/fedkWEMKqt04xZ4csmnmwGDBAb07QWNaGMAmnTIemsYZCksjATwsA==" + }, + "node_modules/detect-browser": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/detect-browser/-/detect-browser-5.3.0.tgz", + "integrity": "sha512-53rsFbGdwMwlF7qvCt0ypLM5V5/Mbl0szB7GPN8y9NCcbknYOeVVXdrXEq+90IwAfrrzt6Hd+u2E2ntakICU8w==" + }, + "node_modules/detect-libc": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.3.tgz", + "integrity": "sha512-bwy0MGW55bG41VqxxypOsdSdGqLwXPI/focwgTYCFMbdUiBAxLg9CFzG08sz2aqzknwiX7Hkl0bQENjg8iLByw==", + "optional": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/dijkstrajs": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/dijkstrajs/-/dijkstrajs-1.0.3.tgz", + "integrity": "sha512-qiSlmBq9+BCdCA/L46dw8Uy93mloxsPSbwnm5yrKn2vMPiy8KyAskTF6zuV/j5BMsmOGZDPs7KjU+mjb670kfA==" + }, + "node_modules/doctrine": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", + "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", + "dev": true, + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/dunder-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", + "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", + "dependencies": { + "call-bind-apply-helpers": "^1.0.1", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/duplexify": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/duplexify/-/duplexify-4.1.3.tgz", + "integrity": "sha512-M3BmBhwJRZsSx38lZyhE53Csddgzl5R7xGJNk7CVddZD6CcmwMCH8J+7AprIrQKH7TonKxaCjcv27Qmf+sQ+oA==", + "dependencies": { + "end-of-stream": "^1.4.1", + "inherits": "^2.0.3", + "readable-stream": "^3.1.1", + "stream-shift": "^1.0.2" + } + }, + "node_modules/eciesjs": { + "version": "0.4.14", + "resolved": "https://registry.npmjs.org/eciesjs/-/eciesjs-0.4.14.tgz", + "integrity": "sha512-eJAgf9pdv214Hn98FlUzclRMYWF7WfoLlkS9nWMTm1qcCwn6Ad4EGD9lr9HXMBfSrZhYQujRE+p0adPRkctC6A==", + "dependencies": { + "@ecies/ciphers": "^0.2.2", + "@noble/ciphers": "^1.0.0", + "@noble/curves": "^1.6.0", + "@noble/hashes": "^1.5.0" + }, + "engines": { + "bun": ">=1", + "deno": ">=2", + "node": ">=16" + } + }, + "node_modules/emoji-regex": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", + "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", + "dev": true + }, + "node_modules/encode-utf8": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/encode-utf8/-/encode-utf8-1.0.3.tgz", + "integrity": "sha512-ucAnuBEhUK4boH2HjVYG5Q2mQyPorvv0u/ocS+zhdw0S8AlHYY+GOFhP1Gio5z4icpP2ivFSvhtFjQi8+T9ppw==" + }, + "node_modules/end-of-stream": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", + "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", + "dependencies": { + "once": "^1.4.0" + } + }, + "node_modules/engine.io-client": { + "version": "6.6.3", + "resolved": "https://registry.npmjs.org/engine.io-client/-/engine.io-client-6.6.3.tgz", + "integrity": "sha512-T0iLjnyNWahNyv/lcjS2y4oE358tVS/SYQNxYXGAJ9/GLgH4VCvOQ/mhTjqU88mLZCQgiG8RIegFHYCdVC+j5w==", + "dependencies": { + "@socket.io/component-emitter": "~3.1.0", + "debug": "~4.3.1", + "engine.io-parser": "~5.2.1", + "ws": "~8.17.1", + "xmlhttprequest-ssl": "~2.1.1" + } + }, + "node_modules/engine.io-client/node_modules/debug": { + "version": "4.3.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.7.tgz", + "integrity": "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/engine.io-client/node_modules/ws": { + "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.17.1.tgz", + "integrity": "sha512-6XQFvXTkbfUOZOKKILFG1PDK2NDQs4azKQl26T0YS5CxqWLgXajbPZ+h4gZekJyRqFU8pvnbAbbs/3TgRPy+GQ==", + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": ">=5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/engine.io-parser": { + "version": "5.2.3", + "resolved": "https://registry.npmjs.org/engine.io-parser/-/engine.io-parser-5.2.3.tgz", + "integrity": "sha512-HqD3yTBfnBxIrbnM1DoD6Pcq8NECnh8d4As1Qgh0z5Gg3jRRIqijury0CL3ghu/edArpUYiYqQiDUQBIs4np3Q==", + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/es-abstract": { + "version": "1.23.9", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.23.9.tgz", + "integrity": "sha512-py07lI0wjxAC/DcfK1S6G7iANonniZwTISvdPzk9hzeH0IZIshbuuFxLIU96OyF89Yb9hiqWn8M/bY83KY5vzA==", + "dev": true, + "dependencies": { + "array-buffer-byte-length": "^1.0.2", + "arraybuffer.prototype.slice": "^1.0.4", + "available-typed-arrays": "^1.0.7", + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "data-view-buffer": "^1.0.2", + "data-view-byte-length": "^1.0.2", + "data-view-byte-offset": "^1.0.1", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.0.0", + "es-set-tostringtag": "^2.1.0", + "es-to-primitive": "^1.3.0", + "function.prototype.name": "^1.1.8", + "get-intrinsic": "^1.2.7", + "get-proto": "^1.0.0", + "get-symbol-description": "^1.1.0", + "globalthis": "^1.0.4", + "gopd": "^1.2.0", + "has-property-descriptors": "^1.0.2", + "has-proto": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "internal-slot": "^1.1.0", + "is-array-buffer": "^3.0.5", + "is-callable": "^1.2.7", + "is-data-view": "^1.0.2", + "is-regex": "^1.2.1", + "is-shared-array-buffer": "^1.0.4", + "is-string": "^1.1.1", + "is-typed-array": "^1.1.15", + "is-weakref": "^1.1.0", + "math-intrinsics": "^1.1.0", + "object-inspect": "^1.13.3", + "object-keys": "^1.1.1", + "object.assign": "^4.1.7", + "own-keys": "^1.0.1", + "regexp.prototype.flags": "^1.5.3", + "safe-array-concat": "^1.1.3", + "safe-push-apply": "^1.0.0", + "safe-regex-test": "^1.1.0", + "set-proto": "^1.0.0", + "string.prototype.trim": "^1.2.10", + "string.prototype.trimend": "^1.0.9", + "string.prototype.trimstart": "^1.0.8", + "typed-array-buffer": "^1.0.3", + "typed-array-byte-length": "^1.0.3", + "typed-array-byte-offset": "^1.0.4", + "typed-array-length": "^1.0.7", + "unbox-primitive": "^1.1.0", + "which-typed-array": "^1.1.18" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/es-define-property": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", + "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-iterator-helpers": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/es-iterator-helpers/-/es-iterator-helpers-1.2.1.tgz", + "integrity": "sha512-uDn+FE1yrDzyC0pCo961B2IHbdM8y/ACZsKD4dG6WqrjV53BADjwa7D+1aom2rsNVfLyDgU/eigvlJGJ08OQ4w==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.6", + "es-errors": "^1.3.0", + "es-set-tostringtag": "^2.0.3", + "function-bind": "^1.1.2", + "get-intrinsic": "^1.2.6", + "globalthis": "^1.0.4", + "gopd": "^1.2.0", + "has-property-descriptors": "^1.0.2", + "has-proto": "^1.2.0", + "has-symbols": "^1.1.0", + "internal-slot": "^1.1.0", + "iterator.prototype": "^1.1.4", + "safe-array-concat": "^1.1.3" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-object-atoms": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", + "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", + "dependencies": { + "es-errors": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-set-tostringtag": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", + "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", + "dev": true, + "dependencies": { + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-shim-unscopables": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.1.0.tgz", + "integrity": "sha512-d9T8ucsEhh8Bi1woXCf+TIKDIROLG5WCkxg8geBCbvk22kzwC5G2OnXVMO6FUsvQlgUUXQ2itephWDLqDzbeCw==", + "dev": true, + "dependencies": { + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-to-primitive": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.3.0.tgz", + "integrity": "sha512-w+5mJ3GuFL+NjVtJlvydShqE1eN3h3PbI7/5LAsYJP/2qtuMXjfL2LpHSRqo4b4eSF5K/DH1JXKUAHSB2UW50g==", + "dev": true, + "dependencies": { + "is-callable": "^1.2.7", + "is-date-object": "^1.0.5", + "is-symbol": "^1.0.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/es-toolkit": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/es-toolkit/-/es-toolkit-1.33.0.tgz", + "integrity": "sha512-X13Q/ZSc+vsO1q600bvNK4bxgXMkHcf//RxCmYDaRY5DAcT+eoXjY5hoAPGMdRnWQjvyLEcyauG3b6hz76LNqg==" + }, + "node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint": { + "version": "9.25.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.25.0.tgz", + "integrity": "sha512-MsBdObhM4cEwkzCiraDv7A6txFXEqtNXOb877TsSp2FCkBNl8JfVQrmiuDqC1IkejT6JLPzYBXx/xAiYhyzgGA==", + "dev": true, + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.12.1", + "@eslint/config-array": "^0.20.0", + "@eslint/config-helpers": "^0.2.1", + "@eslint/core": "^0.13.0", + "@eslint/eslintrc": "^3.3.1", + "@eslint/js": "9.25.0", + "@eslint/plugin-kit": "^0.2.8", + "@humanfs/node": "^0.16.6", + "@humanwhocodes/module-importer": "^1.0.1", + "@humanwhocodes/retry": "^0.4.2", + "@types/estree": "^1.0.6", + "@types/json-schema": "^7.0.15", + "ajv": "^6.12.4", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.6", + "debug": "^4.3.2", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^8.3.0", + "eslint-visitor-keys": "^4.2.0", + "espree": "^10.3.0", + "esquery": "^1.5.0", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^8.0.0", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "ignore": "^5.2.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.3" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://eslint.org/donate" + }, + "peerDependencies": { + "jiti": "*" + }, + "peerDependenciesMeta": { + "jiti": { + "optional": true + } + } + }, + "node_modules/eslint-config-next": { + "version": "15.1.6", + "resolved": "https://registry.npmjs.org/eslint-config-next/-/eslint-config-next-15.1.6.tgz", + "integrity": "sha512-Wd1uy6y7nBbXUSg9QAuQ+xYEKli5CgUhLjz1QHW11jLDis5vK5XB3PemL6jEmy7HrdhaRFDz+GTZ/3FoH+EUjg==", + "dev": true, + "dependencies": { + "@next/eslint-plugin-next": "15.1.6", + "@rushstack/eslint-patch": "^1.10.3", + "@typescript-eslint/eslint-plugin": "^5.4.2 || ^6.0.0 || ^7.0.0 || ^8.0.0", + "@typescript-eslint/parser": "^5.4.2 || ^6.0.0 || ^7.0.0 || ^8.0.0", + "eslint-import-resolver-node": "^0.3.6", + "eslint-import-resolver-typescript": "^3.5.2", + "eslint-plugin-import": "^2.31.0", + "eslint-plugin-jsx-a11y": "^6.10.0", + "eslint-plugin-react": "^7.37.0", + "eslint-plugin-react-hooks": "^5.0.0" + }, + "peerDependencies": { + "eslint": "^7.23.0 || ^8.0.0 || ^9.0.0", + "typescript": ">=3.3.1" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/eslint-import-resolver-node": { + "version": "0.3.9", + "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.9.tgz", + "integrity": "sha512-WFj2isz22JahUv+B788TlO3N6zL3nNJGU8CcZbPZvVEkBPaJdCV4vy5wyghty5ROFbCRnm132v8BScu5/1BQ8g==", + "dev": true, + "dependencies": { + "debug": "^3.2.7", + "is-core-module": "^2.13.0", + "resolve": "^1.22.4" + } + }, + "node_modules/eslint-import-resolver-node/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-import-resolver-typescript": { + "version": "3.10.0", + "resolved": "https://registry.npmjs.org/eslint-import-resolver-typescript/-/eslint-import-resolver-typescript-3.10.0.tgz", + "integrity": "sha512-aV3/dVsT0/H9BtpNwbaqvl+0xGMRGzncLyhm793NFGvbwGGvzyAykqWZ8oZlZuGwuHkwJjhWJkG1cM3ynvd2pQ==", + "dev": true, + "dependencies": { + "@nolyfill/is-core-module": "1.0.39", + "debug": "^4.4.0", + "get-tsconfig": "^4.10.0", + "is-bun-module": "^2.0.0", + "stable-hash": "^0.0.5", + "tinyglobby": "^0.2.12", + "unrs-resolver": "^1.3.2" + }, + "engines": { + "node": "^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint-import-resolver-typescript" + }, + "peerDependencies": { + "eslint": "*", + "eslint-plugin-import": "*", + "eslint-plugin-import-x": "*" + }, + "peerDependenciesMeta": { + "eslint-plugin-import": { + "optional": true + }, + "eslint-plugin-import-x": { + "optional": true + } + } + }, + "node_modules/eslint-module-utils": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.12.0.tgz", + "integrity": "sha512-wALZ0HFoytlyh/1+4wuZ9FJCD/leWHQzzrxJ8+rebyReSLk7LApMyd3WJaLVoN+D5+WIdJyDK1c6JnE65V4Zyg==", + "dev": true, + "dependencies": { + "debug": "^3.2.7" + }, + "engines": { + "node": ">=4" + }, + "peerDependenciesMeta": { + "eslint": { + "optional": true + } + } + }, + "node_modules/eslint-module-utils/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-plugin-import": { + "version": "2.31.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.31.0.tgz", + "integrity": "sha512-ixmkI62Rbc2/w8Vfxyh1jQRTdRTF52VxwRVHl/ykPAmqG+Nb7/kNn+byLP0LxPgI7zWA16Jt82SybJInmMia3A==", + "dev": true, + "dependencies": { + "@rtsao/scc": "^1.1.0", + "array-includes": "^3.1.8", + "array.prototype.findlastindex": "^1.2.5", + "array.prototype.flat": "^1.3.2", + "array.prototype.flatmap": "^1.3.2", + "debug": "^3.2.7", + "doctrine": "^2.1.0", + "eslint-import-resolver-node": "^0.3.9", + "eslint-module-utils": "^2.12.0", + "hasown": "^2.0.2", + "is-core-module": "^2.15.1", + "is-glob": "^4.0.3", + "minimatch": "^3.1.2", + "object.fromentries": "^2.0.8", + "object.groupby": "^1.0.3", + "object.values": "^1.2.0", + "semver": "^6.3.1", + "string.prototype.trimend": "^1.0.8", + "tsconfig-paths": "^3.15.0" + }, + "engines": { + "node": ">=4" + }, + "peerDependencies": { + "eslint": "^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8 || ^9" + } + }, + "node_modules/eslint-plugin-import/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-plugin-import/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/eslint-plugin-jsx-a11y": { + "version": "6.10.2", + "resolved": "https://registry.npmjs.org/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.10.2.tgz", + "integrity": "sha512-scB3nz4WmG75pV8+3eRUQOHZlNSUhFNq37xnpgRkCCELU3XMvXAxLk1eqWWyE22Ki4Q01Fnsw9BA3cJHDPgn2Q==", + "dev": true, + "dependencies": { + "aria-query": "^5.3.2", + "array-includes": "^3.1.8", + "array.prototype.flatmap": "^1.3.2", + "ast-types-flow": "^0.0.8", + "axe-core": "^4.10.0", + "axobject-query": "^4.1.0", + "damerau-levenshtein": "^1.0.8", + "emoji-regex": "^9.2.2", + "hasown": "^2.0.2", + "jsx-ast-utils": "^3.3.5", + "language-tags": "^1.0.9", + "minimatch": "^3.1.2", + "object.fromentries": "^2.0.8", + "safe-regex-test": "^1.0.3", + "string.prototype.includes": "^2.0.1" + }, + "engines": { + "node": ">=4.0" + }, + "peerDependencies": { + "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9" + } + }, + "node_modules/eslint-plugin-react": { + "version": "7.37.5", + "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.37.5.tgz", + "integrity": "sha512-Qteup0SqU15kdocexFNAJMvCJEfa2xUKNV4CC1xsVMrIIqEy3SQ/rqyxCWNzfrd3/ldy6HMlD2e0JDVpDg2qIA==", + "dev": true, + "dependencies": { + "array-includes": "^3.1.8", + "array.prototype.findlast": "^1.2.5", + "array.prototype.flatmap": "^1.3.3", + "array.prototype.tosorted": "^1.1.4", + "doctrine": "^2.1.0", + "es-iterator-helpers": "^1.2.1", + "estraverse": "^5.3.0", + "hasown": "^2.0.2", + "jsx-ast-utils": "^2.4.1 || ^3.0.0", + "minimatch": "^3.1.2", + "object.entries": "^1.1.9", + "object.fromentries": "^2.0.8", + "object.values": "^1.2.1", + "prop-types": "^15.8.1", + "resolve": "^2.0.0-next.5", + "semver": "^6.3.1", + "string.prototype.matchall": "^4.0.12", + "string.prototype.repeat": "^1.0.0" + }, + "engines": { + "node": ">=4" + }, + "peerDependencies": { + "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9.7" + } + }, + "node_modules/eslint-plugin-react-hooks": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-5.2.0.tgz", + "integrity": "sha512-+f15FfK64YQwZdJNELETdn5ibXEUQmW1DZL6KXhNnc2heoy/sg9VJJeT7n8TlMWouzWqSWavFkIhHyIbIAEapg==", + "dev": true, + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0" + } + }, + "node_modules/eslint-plugin-react/node_modules/resolve": { + "version": "2.0.0-next.5", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-2.0.0-next.5.tgz", + "integrity": "sha512-U7WjGVG9sH8tvjW5SmGbQuui75FiyjAX72HX15DwBBwF9dNiQZRQAg9nnPhYy+TUnE0+VcrttuvNI8oSxZcocA==", + "dev": true, + "dependencies": { + "is-core-module": "^2.13.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/eslint-plugin-react/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/eslint-scope": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.3.0.tgz", + "integrity": "sha512-pUNxi75F8MJ/GdeKtVLSbYg4ZI34J6C0C7sbL4YOp2exGwen7ZsuBqKzUhXd0qMQ362yET3z+uPwKeg/0C2XCQ==", + "dev": true, + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.0.tgz", + "integrity": "sha512-UyLnSehNt62FFhSwjZlHmeokpRK59rcz29j+F1/aDgbkbRTk7wIc9XzdoasMUbRNKDM0qQt/+BJ4BrpFeABemw==", + "dev": true, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/espree": { + "version": "10.3.0", + "resolved": "https://registry.npmjs.org/espree/-/espree-10.3.0.tgz", + "integrity": "sha512-0QYC8b24HWY8zjRnDTL6RiHfDbAWn63qb4LMj1Z4b076A4une81+z03Kg7l7mn/48PUTqoLptSXez8oknU8Clg==", + "dev": true, + "dependencies": { + "acorn": "^8.14.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^4.2.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/esquery": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.6.0.tgz", + "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==", + "dev": true, + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/eth-block-tracker": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/eth-block-tracker/-/eth-block-tracker-7.1.0.tgz", + "integrity": "sha512-8YdplnuE1IK4xfqpf4iU7oBxnOYAc35934o083G8ao+8WM8QQtt/mVlAY6yIAdY1eMeLqg4Z//PZjJGmWGPMRg==", + "dependencies": { + "@metamask/eth-json-rpc-provider": "^1.0.0", + "@metamask/safe-event-emitter": "^3.0.0", + "@metamask/utils": "^5.0.1", + "json-rpc-random-id": "^1.0.1", + "pify": "^3.0.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/eth-block-tracker/node_modules/@metamask/utils": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/@metamask/utils/-/utils-5.0.2.tgz", + "integrity": "sha512-yfmE79bRQtnMzarnKfX7AEJBwFTxvTyw3nBQlu/5rmGXrjAeAMltoGxO62TFurxrQAFMNa/fEjIHNvungZp0+g==", + "dependencies": { + "@ethereumjs/tx": "^4.1.2", + "@types/debug": "^4.1.7", + "debug": "^4.3.4", + "semver": "^7.3.8", + "superstruct": "^1.0.3" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/eth-json-rpc-filters": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/eth-json-rpc-filters/-/eth-json-rpc-filters-6.0.1.tgz", + "integrity": "sha512-ITJTvqoCw6OVMLs7pI8f4gG92n/St6x80ACtHodeS+IXmO0w+t1T5OOzfSt7KLSMLRkVUoexV7tztLgDxg+iig==", + "dependencies": { + "@metamask/safe-event-emitter": "^3.0.0", + "async-mutex": "^0.2.6", + "eth-query": "^2.1.2", + "json-rpc-engine": "^6.1.0", + "pify": "^5.0.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/eth-json-rpc-filters/node_modules/pify": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-5.0.0.tgz", + "integrity": "sha512-eW/gHNMlxdSP6dmG6uJip6FXN0EQBwm2clYYd8Wul42Cwu/DK8HEftzsapcNdYe2MfLiIwZqsDk2RDEsTE79hA==", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eth-query": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/eth-query/-/eth-query-2.1.2.tgz", + "integrity": "sha512-srES0ZcvwkR/wd5OQBRA1bIJMww1skfGS0s8wlwK3/oNP4+wnds60krvu5R1QbpRQjMmpG5OMIWro5s7gvDPsA==", + "dependencies": { + "json-rpc-random-id": "^1.0.0", + "xtend": "^4.0.1" + } + }, + "node_modules/eth-rpc-errors": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/eth-rpc-errors/-/eth-rpc-errors-4.0.3.tgz", + "integrity": "sha512-Z3ymjopaoft7JDoxZcEb3pwdGh7yiYMhOwm2doUt6ASXlMavpNlK6Cre0+IMl2VSGyEU9rkiperQhp5iRxn5Pg==", + "dependencies": { + "fast-safe-stringify": "^2.0.6" + } + }, + "node_modules/ethereum-cryptography": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-2.2.1.tgz", + "integrity": "sha512-r/W8lkHSiTLxUxW8Rf3u4HGB0xQweG2RyETjywylKZSzLWoWAijRz8WCuOtJ6wah+avllXBqZuk29HCCvhEIRg==", + "dependencies": { + "@noble/curves": "1.4.2", + "@noble/hashes": "1.4.0", + "@scure/bip32": "1.4.0", + "@scure/bip39": "1.3.0" + } + }, + "node_modules/ethereum-cryptography/node_modules/@noble/curves": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.4.2.tgz", + "integrity": "sha512-TavHr8qycMChk8UwMld0ZDRvatedkzWfH8IiaeGCfymOP5i0hSCozz9vHOL0nkwk7HRMlFnAiKpS2jrUmSybcw==", + "dependencies": { + "@noble/hashes": "1.4.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/ethereum-cryptography/node_modules/@noble/hashes": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.4.0.tgz", + "integrity": "sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg==", + "engines": { + "node": ">= 16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/eventemitter2": { + "version": "6.4.9", + "resolved": "https://registry.npmjs.org/eventemitter2/-/eventemitter2-6.4.9.tgz", + "integrity": "sha512-JEPTiaOt9f04oa6NOkc4aH+nVp5I3wEjpHbIPqfgCdD5v5bUzy7xQqwcVO2aDQgOWhI28da57HksMrzK9HlRxg==" + }, + "node_modules/eventemitter3": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.1.tgz", + "integrity": "sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==" + }, + "node_modules/events": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", + "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", + "engines": { + "node": ">=0.8.x" + } + }, + "node_modules/extension-port-stream": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/extension-port-stream/-/extension-port-stream-3.0.0.tgz", + "integrity": "sha512-an2S5quJMiy5bnZKEf6AkfH/7r8CzHvhchU40gxN+OM6HPhe7Z9T1FUychcf2M9PpPOO0Hf7BAEfJkw2TDIBDw==", + "dependencies": { + "readable-stream": "^3.6.2 || ^4.4.2", + "webextension-polyfill": ">=0.10.0 <1.0" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" + }, + "node_modules/fast-glob": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.1.tgz", + "integrity": "sha512-kNFPyjhh5cKjrUltxs+wFx+ZkbRaxxmZ+X0ZU31SOsxCEtP9VPgtq2teZw1DebupL5GmDaNQ6yKMMVcM41iqDg==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/fast-glob/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true + }, + "node_modules/fast-redact": { + "version": "3.5.0", + "resolved": "https://registry.npmjs.org/fast-redact/-/fast-redact-3.5.0.tgz", + "integrity": "sha512-dwsoQlS7h9hMeYUq1W++23NDcBLV4KqONnITDV9DjfS3q1SgDGVrBdvvTLUotWtPSD7asWDV9/CmsZPy8Hf70A==", + "engines": { + "node": ">=6" + } + }, + "node_modules/fast-safe-stringify": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/fast-safe-stringify/-/fast-safe-stringify-2.1.1.tgz", + "integrity": "sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==" + }, + "node_modules/fastq": { + "version": "1.19.1", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.19.1.tgz", + "integrity": "sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ==", + "dev": true, + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/file-entry-cache": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", + "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==", + "dev": true, + "dependencies": { + "flat-cache": "^4.0.0" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/fill-range": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "dev": true, + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/filter-obj": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/filter-obj/-/filter-obj-1.1.0.tgz", + "integrity": "sha512-8rXg1ZnX7xzy2NGDVkBVaAy+lSlPNwad13BtgSlLuxfIslyt5Vg64U7tFcCt4WS1R0hvtnQybT/IyCkGZ3DpXQ==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/flat-cache": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz", + "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==", + "dev": true, + "dependencies": { + "flatted": "^3.2.9", + "keyv": "^4.5.4" + }, + "engines": { + "node": ">=16" + } + }, + "node_modules/flatted": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.3.tgz", + "integrity": "sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==", + "dev": true + }, + "node_modules/for-each": { + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.5.tgz", + "integrity": "sha512-dKx12eRCVIzqCxFGplyFKJMPvLEWgmNtUrpTiJIR5u97zEhRG8ySrtboPHZXx7daLxQVrl643cTzbab2tkQjxg==", + "dependencies": { + "is-callable": "^1.2.7" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/function.prototype.name": { + "version": "1.1.8", + "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.8.tgz", + "integrity": "sha512-e5iwyodOHhbMr/yNrc7fDYG4qlbIvI5gajyzPnb5TCwyhjApznQh1BMFou9b30SevY43gCJKXycoCBjMbsuW0Q==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "define-properties": "^1.2.1", + "functions-have-names": "^1.2.3", + "hasown": "^2.0.2", + "is-callable": "^1.2.7" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/functions-have-names": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", + "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/get-intrinsic": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", + "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", + "function-bind": "^1.1.2", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "math-intrinsics": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", + "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", + "dependencies": { + "dunder-proto": "^1.0.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/get-symbol-description": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.1.0.tgz", + "integrity": "sha512-w9UMqWwJxHNOvoNzSJ2oPF5wvYcvP7jUvYzhp67yEhTi17ZDBBC1z9pTdGuzjD+EFIqLSYRweZjqfiPzQ06Ebg==", + "dev": true, + "dependencies": { + "call-bound": "^1.0.3", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-tsconfig": { + "version": "4.10.0", + "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.10.0.tgz", + "integrity": "sha512-kGzZ3LWWQcGIAmg6iWvXn0ei6WDtV26wzHRMwDSzmAbcXrTEXxHy6IehI6/4eT6VRKyMP1eF1VqwrVUmE/LR7A==", + "dev": true, + "dependencies": { + "resolve-pkg-maps": "^1.0.0" + }, + "funding": { + "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1" + } + }, + "node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/globals": { + "version": "14.0.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", + "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", + "dev": true, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/globalthis": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.4.tgz", + "integrity": "sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ==", + "dev": true, + "dependencies": { + "define-properties": "^1.2.1", + "gopd": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/gopd": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", + "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/graphemer": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", + "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", + "dev": true + }, + "node_modules/h3": { + "version": "1.15.1", + "resolved": "https://registry.npmjs.org/h3/-/h3-1.15.1.tgz", + "integrity": "sha512-+ORaOBttdUm1E2Uu/obAyCguiI7MbBvsLTndc3gyK3zU+SYLoZXlyCP9Xgy0gikkGufFLTZXCXD6+4BsufnmHA==", + "dependencies": { + "cookie-es": "^1.2.2", + "crossws": "^0.3.3", + "defu": "^6.1.4", + "destr": "^2.0.3", + "iron-webcrypto": "^1.2.1", + "node-mock-http": "^1.0.0", + "radix3": "^1.1.2", + "ufo": "^1.5.4", + "uncrypto": "^0.1.3" + } + }, + "node_modules/has-bigints": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.1.0.tgz", + "integrity": "sha512-R3pbpkcIqv2Pm3dUwgjclDRVmWpTJW2DcMzcIhEXEx1oh/CEMObMm3KLmRJOdvhM7o4uQBnwr8pzRK2sJWIqfg==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/has-property-descriptors": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", + "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", + "dependencies": { + "es-define-property": "^1.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-proto": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.2.0.tgz", + "integrity": "sha512-KIL7eQPfHQRC8+XluaIw7BHUwwqL19bQn4hzNgdr+1wXoU0KKj6rufu47lhY7KbJR2C6T6+PfyN0Ea7wkSS+qQ==", + "dev": true, + "dependencies": { + "dunder-proto": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-symbols": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-tostringtag": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", + "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", + "dependencies": { + "has-symbols": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/hasown": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/hey-listen": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/hey-listen/-/hey-listen-1.0.8.tgz", + "integrity": "sha512-COpmrF2NOg4TBWUJ5UVyaCU2A88wEMkUPK4hNqyCkqHbxT92BbvfjoSozkAIIm6XhicGlJHhFdullInrdhwU8Q==" + }, + "node_modules/idb-keyval": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/idb-keyval/-/idb-keyval-6.2.1.tgz", + "integrity": "sha512-8Sb3veuYCyrZL+VBt9LJfZjLUPWVvqn8tG28VqYNFCo43KHcKuq+b4EiXGeuaLAQWL2YmyDgMp2aSpH9JHsEQg==" + }, + "node_modules/ieee754": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", + "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/ignore": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", + "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", + "dev": true, + "engines": { + "node": ">= 4" + } + }, + "node_modules/import-fresh": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz", + "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==", + "dev": true, + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" + }, + "node_modules/internal-slot": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.1.0.tgz", + "integrity": "sha512-4gd7VpWNQNB4UKKCFFVcp1AVv+FMOgs9NKzjHKusc8jTMhd5eL1NqQqOpE0KzMds804/yHlglp3uxgluOqAPLw==", + "dev": true, + "dependencies": { + "es-errors": "^1.3.0", + "hasown": "^2.0.2", + "side-channel": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/iron-webcrypto": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/iron-webcrypto/-/iron-webcrypto-1.2.1.tgz", + "integrity": "sha512-feOM6FaSr6rEABp/eDfVseKyTMDt+KGpeB35SkVn9Tyn0CqvVsY3EwI0v5i8nMHyJnzCIQf7nsy3p41TPkJZhg==", + "funding": { + "url": "https://github.com/sponsors/brc-dd" + } + }, + "node_modules/is-arguments": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.2.0.tgz", + "integrity": "sha512-7bVbi0huj/wrIAOzb8U1aszg9kdi3KN/CyU19CTI7tAoZYEZoL9yCDXpbXN+uPsuWnP02cyug1gleqq+TU+YCA==", + "dependencies": { + "call-bound": "^1.0.2", + "has-tostringtag": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-array-buffer": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.5.tgz", + "integrity": "sha512-DDfANUiiG2wC1qawP66qlTugJeL5HyzMpfr8lLK+jMQirGzNod0B12cFB/9q838Ru27sBwfw78/rdoU7RERz6A==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "get-intrinsic": "^1.2.6" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-arrayish": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.3.2.tgz", + "integrity": "sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ==", + "optional": true + }, + "node_modules/is-async-function": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-async-function/-/is-async-function-2.1.1.tgz", + "integrity": "sha512-9dgM/cZBnNvjzaMYHVoxxfPj2QXt22Ev7SuuPrs+xav0ukGB0S6d4ydZdEiM48kLx5kDV+QBPrpVnFyefL8kkQ==", + "dev": true, + "dependencies": { + "async-function": "^1.0.0", + "call-bound": "^1.0.3", + "get-proto": "^1.0.1", + "has-tostringtag": "^1.0.2", + "safe-regex-test": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-bigint": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.1.0.tgz", + "integrity": "sha512-n4ZT37wG78iz03xPRKJrHTdZbe3IicyucEtdRsV5yglwc3GyUfbAfpSeD0FJ41NbUNSt5wbhqfp1fS+BgnvDFQ==", + "dev": true, + "dependencies": { + "has-bigints": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-boolean-object": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.2.2.tgz", + "integrity": "sha512-wa56o2/ElJMYqjCjGkXri7it5FbebW5usLw/nPmCMs5DeZ7eziSYZhSmPRn0txqeW4LnAmQQU7FgqLpsEFKM4A==", + "dev": true, + "dependencies": { + "call-bound": "^1.0.3", + "has-tostringtag": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-bun-module": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-bun-module/-/is-bun-module-2.0.0.tgz", + "integrity": "sha512-gNCGbnnnnFAUGKeZ9PdbyeGYJqewpmc2aKHUEMO5nQPWU9lOmv7jcmQIv+qHD8fXW6W7qfuCwX4rY9LNRjXrkQ==", + "dev": true, + "dependencies": { + "semver": "^7.7.1" + } + }, + "node_modules/is-callable": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", + "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-core-module": { + "version": "2.16.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz", + "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==", + "dev": true, + "dependencies": { + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-data-view": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-data-view/-/is-data-view-1.0.2.tgz", + "integrity": "sha512-RKtWF8pGmS87i2D6gqQu/l7EYRlVdfzemCJN/P3UOs//x1QE7mfhvzHIApBTRf7axvT6DMGwSwBXYCT0nfB9xw==", + "dev": true, + "dependencies": { + "call-bound": "^1.0.2", + "get-intrinsic": "^1.2.6", + "is-typed-array": "^1.1.13" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-date-object": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.1.0.tgz", + "integrity": "sha512-PwwhEakHVKTdRNVOw+/Gyh0+MzlCl4R6qKvkhuvLtPMggI1WAHt9sOwZxQLSGpUaDnrdyDsomoRgNnCfKNSXXg==", + "dev": true, + "dependencies": { + "call-bound": "^1.0.2", + "has-tostringtag": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-finalizationregistry": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-finalizationregistry/-/is-finalizationregistry-1.1.1.tgz", + "integrity": "sha512-1pC6N8qWJbWoPtEjgcL2xyhQOP491EQjeUo3qTKcmV8YSDDJrOepfG8pcC7h/QgnQHYSv0mJ3Z/ZWxmatVrysg==", + "dev": true, + "dependencies": { + "call-bound": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-generator-function": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.1.0.tgz", + "integrity": "sha512-nPUB5km40q9e8UfN/Zc24eLlzdSf9OfKByBw9CIdw4H1giPMeA0OIJvbchsCu4npfI2QcMVBsGEBHKZ7wLTWmQ==", + "dependencies": { + "call-bound": "^1.0.3", + "get-proto": "^1.0.0", + "has-tostringtag": "^1.0.2", + "safe-regex-test": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-map": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.3.tgz", + "integrity": "sha512-1Qed0/Hr2m+YqxnM09CjA2d/i6YZNfF6R2oRAOj36eUdS6qIV/huPJNSEpKbupewFs+ZsJlxsjjPbc0/afW6Lw==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-number-object": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.1.1.tgz", + "integrity": "sha512-lZhclumE1G6VYD8VHe35wFaIif+CTy5SJIi5+3y4psDgWu4wPDoBhF8NxUOinEc7pHgiTsT6MaBb92rKhhD+Xw==", + "dev": true, + "dependencies": { + "call-bound": "^1.0.3", + "has-tostringtag": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-regex": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.2.1.tgz", + "integrity": "sha512-MjYsKHO5O7mCsmRGxWcLWheFqN9DJ/2TmngvjKXihe6efViPqc274+Fx/4fYj/r03+ESvBdTXK0V6tA3rgez1g==", + "dependencies": { + "call-bound": "^1.0.2", + "gopd": "^1.2.0", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-set": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/is-set/-/is-set-2.0.3.tgz", + "integrity": "sha512-iPAjerrse27/ygGLxw+EBR9agv9Y6uLeYVJMu+QNCoouJ1/1ri0mGrcWpfCqFZuzzx3WjtwxG098X+n4OuRkPg==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-shared-array-buffer": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.4.tgz", + "integrity": "sha512-ISWac8drv4ZGfwKl5slpHG9OwPNty4jOWPRIhBpxOoD+hqITiwuipOQ2bNthAzwA3B4fIjO4Nln74N0S9byq8A==", + "dev": true, + "dependencies": { + "call-bound": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-string": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.1.1.tgz", + "integrity": "sha512-BtEeSsoaQjlSPBemMQIrY1MY0uM6vnS1g5fmufYOtnxLGUZM2178PKbhsk7Ffv58IX+ZtcvoGwccYsh0PglkAA==", + "dev": true, + "dependencies": { + "call-bound": "^1.0.3", + "has-tostringtag": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-symbol": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.1.1.tgz", + "integrity": "sha512-9gGx6GTtCQM73BgmHQXfDmLtfjjTUDSyoxTCbp5WtoixAhfgsDirWIcVQ/IHpvI5Vgd5i/J5F7B9cN/WlVbC/w==", + "dev": true, + "dependencies": { + "call-bound": "^1.0.2", + "has-symbols": "^1.1.0", + "safe-regex-test": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-typed-array": { + "version": "1.1.15", + "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.15.tgz", + "integrity": "sha512-p3EcsicXjit7SaskXHs1hA91QxgTw46Fv6EFKKGS5DRFLD8yKnohjF3hxoju94b/OcMZoQukzpPpBE9uLVKzgQ==", + "dependencies": { + "which-typed-array": "^1.1.16" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-weakmap": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.2.tgz", + "integrity": "sha512-K5pXYOm9wqY1RgjpL3YTkF39tni1XajUIkawTLUo9EZEVUFga5gSQJF8nNS7ZwJQ02y+1YCNYcMh+HIf1ZqE+w==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-weakref": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.1.1.tgz", + "integrity": "sha512-6i9mGWSlqzNMEqpCp93KwRS1uUOodk2OJ6b+sq7ZPDSy2WuI5NFIxp/254TytR8ftefexkWn5xNiHUNpPOfSew==", + "dev": true, + "dependencies": { + "call-bound": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-weakset": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-weakset/-/is-weakset-2.0.4.tgz", + "integrity": "sha512-mfcwb6IzQyOKTs84CQMrOwW4gQcaTOAWJ0zzJCl2WSPDrWk/OzDaImWFH3djXhb24g4eudZfLRozAvPGw4d9hQ==", + "dev": true, + "dependencies": { + "call-bound": "^1.0.3", + "get-intrinsic": "^1.2.6" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/isarray": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", + "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", + "dev": true + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true + }, + "node_modules/isows": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/isows/-/isows-1.0.6.tgz", + "integrity": "sha512-lPHCayd40oW98/I0uvgaHKWCSvkzY27LjWLbtzOm64yQ+G3Q5npjjbdppU65iZXkK1Zt+kH9pfegli0AYfwYYw==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/wevm" + } + ], + "peerDependencies": { + "ws": "*" + } + }, + "node_modules/iterator.prototype": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/iterator.prototype/-/iterator.prototype-1.1.5.tgz", + "integrity": "sha512-H0dkQoCa3b2VEeKQBOxFph+JAbcrQdE7KC0UkqwpLmv2EC4P41QXP+rqo9wYodACiG5/WM5s9oDApTU8utwj9g==", + "dev": true, + "dependencies": { + "define-data-property": "^1.1.4", + "es-object-atoms": "^1.0.0", + "get-intrinsic": "^1.2.6", + "get-proto": "^1.0.0", + "has-symbols": "^1.1.0", + "set-function-name": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" + }, + "node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dev": true, + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/json-buffer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", + "dev": true + }, + "node_modules/json-rpc-engine": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/json-rpc-engine/-/json-rpc-engine-6.1.0.tgz", + "integrity": "sha512-NEdLrtrq1jUZyfjkr9OCz9EzCNhnRyWtt1PAnvnhwy6e8XETS0Dtc+ZNCO2gvuAoKsIn2+vCSowXTYE4CkgnAQ==", + "dependencies": { + "@metamask/safe-event-emitter": "^2.0.0", + "eth-rpc-errors": "^4.0.2" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/json-rpc-engine/node_modules/@metamask/safe-event-emitter": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@metamask/safe-event-emitter/-/safe-event-emitter-2.0.0.tgz", + "integrity": "sha512-/kSXhY692qiV1MXu6EeOZvg5nECLclxNXcKCxJ3cXQgYuRymRHpdx/t7JXfsK+JLjwA1e1c1/SBrlQYpusC29Q==" + }, + "node_modules/json-rpc-random-id": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-rpc-random-id/-/json-rpc-random-id-1.0.1.tgz", + "integrity": "sha512-RJ9YYNCkhVDBuP4zN5BBtYAzEl03yq/jIIsyif0JY9qyJuQQZNeDK7anAPKKlyEtLSj2s8h6hNh2F8zO5q7ScA==" + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "dev": true + }, + "node_modules/json5": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", + "dev": true, + "dependencies": { + "minimist": "^1.2.0" + }, + "bin": { + "json5": "lib/cli.js" + } + }, + "node_modules/jsx-ast-utils": { + "version": "3.3.5", + "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.3.5.tgz", + "integrity": "sha512-ZZow9HBI5O6EPgSJLUb8n2NKgmVWTwCvHGwFuJlMjvLFqlGG6pjirPhtdsseaLZjSibD8eegzmYpUZwoIlj2cQ==", + "dev": true, + "dependencies": { + "array-includes": "^3.1.6", + "array.prototype.flat": "^1.3.1", + "object.assign": "^4.1.4", + "object.values": "^1.1.6" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/keccak": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/keccak/-/keccak-3.0.4.tgz", + "integrity": "sha512-3vKuW0jV8J3XNTzvfyicFR5qvxrSAGl7KIhvgOu5cmWwM7tZRj3fMbj/pfIf4be7aznbc+prBWGjywox/g2Y6Q==", + "hasInstallScript": true, + "dependencies": { + "node-addon-api": "^2.0.0", + "node-gyp-build": "^4.2.0", + "readable-stream": "^3.6.0" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/keyv": { + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", + "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", + "dev": true, + "dependencies": { + "json-buffer": "3.0.1" + } + }, + "node_modules/keyvaluestorage-interface": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/keyvaluestorage-interface/-/keyvaluestorage-interface-1.0.0.tgz", + "integrity": "sha512-8t6Q3TclQ4uZynJY9IGr2+SsIGwK9JHcO6ootkHCGA0CrQCRy+VkouYNO2xicET6b9al7QKzpebNow+gkpCL8g==" + }, + "node_modules/language-subtag-registry": { + "version": "0.3.23", + "resolved": "https://registry.npmjs.org/language-subtag-registry/-/language-subtag-registry-0.3.23.tgz", + "integrity": "sha512-0K65Lea881pHotoGEa5gDlMxt3pctLi2RplBb7Ezh4rRdLEOtgi7n4EwK9lamnUCkKBqaeKRVebTq6BAxSkpXQ==", + "dev": true + }, + "node_modules/language-tags": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/language-tags/-/language-tags-1.0.9.tgz", + "integrity": "sha512-MbjN408fEndfiQXbFQ1vnd+1NoLDsnQW41410oQBXiyXDMYH5z505juWa4KUE1LqxRC7DgOgZDbKLxHIwm27hA==", + "dev": true, + "dependencies": { + "language-subtag-registry": "^0.3.20" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/lit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/lit/-/lit-3.1.0.tgz", + "integrity": "sha512-rzo/hmUqX8zmOdamDAeydfjsGXbbdtAFqMhmocnh2j9aDYqbu0fjXygjCa0T99Od9VQ/2itwaGrjZz/ZELVl7w==", + "dependencies": { + "@lit/reactive-element": "^2.0.0", + "lit-element": "^4.0.0", + "lit-html": "^3.1.0" + } + }, + "node_modules/lit-element": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/lit-element/-/lit-element-4.2.0.tgz", + "integrity": "sha512-MGrXJVAI5x+Bfth/pU9Kst1iWID6GHDLEzFEnyULB/sFiRLgkd8NPK/PeeXxktA3T6EIIaq8U3KcbTU5XFcP2Q==", + "dependencies": { + "@lit-labs/ssr-dom-shim": "^1.2.0", + "@lit/reactive-element": "^2.1.0", + "lit-html": "^3.3.0" + } + }, + "node_modules/lit-html": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/lit-html/-/lit-html-3.3.0.tgz", + "integrity": "sha512-RHoswrFAxY2d8Cf2mm4OZ1DgzCoBKUKSPvA1fhtSELxUERq2aQQ2h05pO9j81gS1o7RIRJ+CePLogfyahwmynw==", + "dependencies": { + "@types/trusted-types": "^2.0.2" + } + }, + "node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true + }, + "node_modules/loose-envify": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", + "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", + "dependencies": { + "js-tokens": "^3.0.0 || ^4.0.0" + }, + "bin": { + "loose-envify": "cli.js" + } + }, + "node_modules/lru-cache": { + "version": "10.4.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", + "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==" + }, + "node_modules/math-intrinsics": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", + "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/micro-ftch": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/micro-ftch/-/micro-ftch-0.3.1.tgz", + "integrity": "sha512-/0LLxhzP0tfiR5hcQebtudP56gUurs2CLkGarnCiB/OqEyUFQ6U3paQi/tgLv0hBJYt2rnr9MNpxz4fiiugstg==" + }, + "node_modules/micromatch": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", + "dev": true, + "dependencies": { + "braces": "^3.0.3", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/minimist": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/mipd": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/mipd/-/mipd-0.0.7.tgz", + "integrity": "sha512-aAPZPNDQ3uMTdKbuO2YmAw2TxLHO0moa4YKAyETM/DTj5FloZo+a+8tU+iv4GmW+sOxKLSRwcSFuczk+Cpt6fg==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/wagmi-dev" + } + ], + "peerDependencies": { + "typescript": ">=5.0.4" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/motion": { + "version": "10.16.2", + "resolved": "https://registry.npmjs.org/motion/-/motion-10.16.2.tgz", + "integrity": "sha512-p+PurYqfUdcJZvtnmAqu5fJgV2kR0uLFQuBKtLeFVTrYEVllI99tiOTSefVNYuip9ELTEkepIIDftNdze76NAQ==", + "dependencies": { + "@motionone/animation": "^10.15.1", + "@motionone/dom": "^10.16.2", + "@motionone/svelte": "^10.16.2", + "@motionone/types": "^10.15.1", + "@motionone/utils": "^10.15.1", + "@motionone/vue": "^10.16.2" + } + }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" + }, + "node_modules/multiformats": { + "version": "9.9.0", + "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-9.9.0.tgz", + "integrity": "sha512-HoMUjhH9T8DDBNT+6xzkrd9ga/XiBI4xLr58LJACwK6G3HTOPeMz4nB4KJs33L2BelrIJa7P0VuNaVF3hMYfjg==" + }, + "node_modules/nanoid": { + "version": "3.3.11", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz", + "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/napi-postinstall": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/napi-postinstall/-/napi-postinstall-0.1.5.tgz", + "integrity": "sha512-HI5bHONOUYqV+FJvueOSgjRxHTLB25a3xIv59ugAxFe7xRNbW96hyYbMbsKzl+QvFV9mN/SrtHwiU+vYhMwA7Q==", + "dev": true, + "bin": { + "napi-postinstall": "lib/cli.js" + }, + "engines": { + "node": "^12.20.0 || ^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/napi-postinstall" + } + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true + }, + "node_modules/next": { + "version": "15.3.0", + "resolved": "https://registry.npmjs.org/next/-/next-15.3.0.tgz", + "integrity": "sha512-k0MgP6BsK8cZ73wRjMazl2y2UcXj49ZXLDEgx6BikWuby/CN+nh81qFFI16edgd7xYpe/jj2OZEIwCoqnzz0bQ==", + "dependencies": { + "@next/env": "15.3.0", + "@swc/counter": "0.1.3", + "@swc/helpers": "0.5.15", + "busboy": "1.6.0", + "caniuse-lite": "^1.0.30001579", + "postcss": "8.4.31", + "styled-jsx": "5.1.6" + }, + "bin": { + "next": "dist/bin/next" + }, + "engines": { + "node": "^18.18.0 || ^19.8.0 || >= 20.0.0" + }, + "optionalDependencies": { + "@next/swc-darwin-arm64": "15.3.0", + "@next/swc-darwin-x64": "15.3.0", + "@next/swc-linux-arm64-gnu": "15.3.0", + "@next/swc-linux-arm64-musl": "15.3.0", + "@next/swc-linux-x64-gnu": "15.3.0", + "@next/swc-linux-x64-musl": "15.3.0", + "@next/swc-win32-arm64-msvc": "15.3.0", + "@next/swc-win32-x64-msvc": "15.3.0", + "sharp": "^0.34.1" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.1.0", + "@playwright/test": "^1.41.2", + "babel-plugin-react-compiler": "*", + "react": "^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0", + "react-dom": "^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0", + "sass": "^1.3.0" + }, + "peerDependenciesMeta": { + "@opentelemetry/api": { + "optional": true + }, + "@playwright/test": { + "optional": true + }, + "babel-plugin-react-compiler": { + "optional": true + }, + "sass": { + "optional": true + } + } + }, + "node_modules/node-addon-api": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-2.0.2.tgz", + "integrity": "sha512-Ntyt4AIXyaLIuMHF6IOoTakB3K+RWxwtsHNRxllEoA6vPwP9o4866g6YWDLUdnucilZhmkxiHwHr11gAENw+QA==" + }, + "node_modules/node-fetch": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", + "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", + "dependencies": { + "whatwg-url": "^5.0.0" + }, + "engines": { + "node": "4.x || >=6.0.0" + }, + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } + } + }, + "node_modules/node-fetch-native": { + "version": "1.6.6", + "resolved": "https://registry.npmjs.org/node-fetch-native/-/node-fetch-native-1.6.6.tgz", + "integrity": "sha512-8Mc2HhqPdlIfedsuZoc3yioPuzp6b+L5jRCRY1QzuWZh2EGJVQrGppC6V6cF0bLdbW0+O2YpqCA25aF/1lvipQ==" + }, + "node_modules/node-gyp-build": { + "version": "4.8.4", + "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.8.4.tgz", + "integrity": "sha512-LA4ZjwlnUblHVgq0oBF3Jl/6h/Nvs5fzBLwdEF4nuxnFdsfajde4WfxtJr3CaiH+F6ewcIB/q4jQ4UzPyid+CQ==", + "bin": { + "node-gyp-build": "bin.js", + "node-gyp-build-optional": "optional.js", + "node-gyp-build-test": "build-test.js" + } + }, + "node_modules/node-mock-http": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/node-mock-http/-/node-mock-http-1.0.0.tgz", + "integrity": "sha512-0uGYQ1WQL1M5kKvGRXWQ3uZCHtLTO8hln3oBjIusM75WoesZ909uQJs/Hb946i2SS+Gsrhkaa6iAO17jRIv6DQ==" + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/obj-multiplex": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/obj-multiplex/-/obj-multiplex-1.0.0.tgz", + "integrity": "sha512-0GNJAOsHoBHeNTvl5Vt6IWnpUEcc3uSRxzBri7EDyIcMgYvnY2JL2qdeV5zTMjWQX5OHcD5amcW2HFfDh0gjIA==", + "dependencies": { + "end-of-stream": "^1.4.0", + "once": "^1.4.0", + "readable-stream": "^2.3.3" + } + }, + "node_modules/obj-multiplex/node_modules/isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==" + }, + "node_modules/obj-multiplex/node_modules/readable-stream": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/obj-multiplex/node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + }, + "node_modules/obj-multiplex/node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, + "node_modules/object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-inspect": { + "version": "1.13.4", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", + "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object-keys": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", + "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", + "dev": true, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/object.assign": { + "version": "4.1.7", + "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.7.tgz", + "integrity": "sha512-nK28WOo+QIjBkDduTINE4JkF/UJJKyf2EJxvJKfblDpyg0Q+pkOHNTL0Qwy6NP6FhE/EnzV73BxxqcJaXY9anw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "define-properties": "^1.2.1", + "es-object-atoms": "^1.0.0", + "has-symbols": "^1.1.0", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object.entries": { + "version": "1.1.9", + "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.9.tgz", + "integrity": "sha512-8u/hfXFRBD1O0hPUjioLhoWFHRmt6tKA4/vZPyckBr18l1KE9uHrFaFaUi8MDRTpi4uak2goyPTSNJLXX2k2Hw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.4", + "define-properties": "^1.2.1", + "es-object-atoms": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/object.fromentries": { + "version": "2.0.8", + "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.8.tgz", + "integrity": "sha512-k6E21FzySsSK5a21KRADBd/NGneRegFO5pLHfdQLpRDETUNJueLXs3WCzyQ3tFRDYgbq3KHGXfTbi2bs8WQ6rQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.2", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object.groupby": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/object.groupby/-/object.groupby-1.0.3.tgz", + "integrity": "sha512-+Lhy3TQTuzXI5hevh8sBGqbmurHbbIjAi0Z4S63nthVLmLxfbj4T54a4CfZrXIrt9iP4mVAPYMo/v99taj3wjQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/object.values": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.2.1.tgz", + "integrity": "sha512-gXah6aZrcUxjWg2zR2MwouP2eHlCBzdV4pygudehaKXSGW4v2AsRQUK+lwwXhii6KFZcunEnmSUoYp5CXibxtA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "define-properties": "^1.2.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/ofetch": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/ofetch/-/ofetch-1.4.1.tgz", + "integrity": "sha512-QZj2DfGplQAr2oj9KzceK9Hwz6Whxazmn85yYeVuS3u9XTMOGMRx0kO95MQ+vLsj/S/NwBDMMLU5hpxvI6Tklw==", + "dependencies": { + "destr": "^2.0.3", + "node-fetch-native": "^1.6.4", + "ufo": "^1.5.4" + } + }, + "node_modules/on-exit-leak-free": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/on-exit-leak-free/-/on-exit-leak-free-0.2.0.tgz", + "integrity": "sha512-dqaz3u44QbRXQooZLTUKU41ZrzYrcvLISVgbrzbyCMxpmSLJvZ3ZamIJIZ29P6OhZIkNIQKosdeM6t1LYbA9hg==" + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/optionator": { + "version": "0.9.4", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", + "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", + "dev": true, + "dependencies": { + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.5" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/own-keys": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/own-keys/-/own-keys-1.0.1.tgz", + "integrity": "sha512-qFOyK5PjiWZd+QQIh+1jhdb9LpxTF0qs7Pm8o5QHYZ0M3vKqSqzsZaEB6oWlxZ+q2sJBMI/Ktgd2N5ZwQoRHfg==", + "dev": true, + "dependencies": { + "get-intrinsic": "^1.2.6", + "object-keys": "^1.1.1", + "safe-push-apply": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/ox": { + "version": "0.6.9", + "resolved": "https://registry.npmjs.org/ox/-/ox-0.6.9.tgz", + "integrity": "sha512-wi5ShvzE4eOcTwQVsIPdFr+8ycyX+5le/96iAJutaZAvCes1J0+RvpEPg5QDPDiaR0XQQAvZVl7AwqQcINuUug==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/wevm" + } + ], + "dependencies": { + "@adraffy/ens-normalize": "^1.10.1", + "@noble/curves": "^1.6.0", + "@noble/hashes": "^1.5.0", + "@scure/bip32": "^1.5.0", + "@scure/bip39": "^1.4.0", + "abitype": "^1.0.6", + "eventemitter3": "5.0.1" + }, + "peerDependencies": { + "typescript": ">=5.4.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/ox/node_modules/@noble/curves": { + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.8.2.tgz", + "integrity": "sha512-vnI7V6lFNe0tLAuJMu+2sX+FcL14TaCWy1qiczg1VwRmPrpQCdq5ESXQMqUc2tluRNf6irBXrWbl1mGN8uaU/g==", + "dependencies": { + "@noble/hashes": "1.7.2" + }, + "engines": { + "node": "^14.21.3 || >=16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/ox/node_modules/@scure/bip32": { + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.6.2.tgz", + "integrity": "sha512-t96EPDMbtGgtb7onKKqxRLfE5g05k7uHnHRM2xdE6BP/ZmxaLtPek4J4KfVn/90IQNrU1IOAqMgiDtUdtbe3nw==", + "dependencies": { + "@noble/curves": "~1.8.1", + "@noble/hashes": "~1.7.1", + "@scure/base": "~1.2.2" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/ox/node_modules/@scure/bip39": { + "version": "1.5.4", + "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.5.4.tgz", + "integrity": "sha512-TFM4ni0vKvCfBpohoh+/lY05i9gRbSwXWngAsF4CABQxoaOHijxuaZ2R6cStDQ5CHtHO9aGJTr4ksVJASRRyMA==", + "dependencies": { + "@noble/hashes": "~1.7.1", + "@scure/base": "~1.2.4" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "engines": { + "node": ">=6" + } + }, + "node_modules/parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dev": true, + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==" + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pify": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", + "integrity": "sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg==", + "engines": { + "node": ">=4" + } + }, + "node_modules/pino": { + "version": "7.11.0", + "resolved": "https://registry.npmjs.org/pino/-/pino-7.11.0.tgz", + "integrity": "sha512-dMACeu63HtRLmCG8VKdy4cShCPKaYDR4youZqoSWLxl5Gu99HUw8bw75thbPv9Nip+H+QYX8o3ZJbTdVZZ2TVg==", + "dependencies": { + "atomic-sleep": "^1.0.0", + "fast-redact": "^3.0.0", + "on-exit-leak-free": "^0.2.0", + "pino-abstract-transport": "v0.5.0", + "pino-std-serializers": "^4.0.0", + "process-warning": "^1.0.0", + "quick-format-unescaped": "^4.0.3", + "real-require": "^0.1.0", + "safe-stable-stringify": "^2.1.0", + "sonic-boom": "^2.2.1", + "thread-stream": "^0.15.1" + }, + "bin": { + "pino": "bin.js" + } + }, + "node_modules/pino-abstract-transport": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/pino-abstract-transport/-/pino-abstract-transport-0.5.0.tgz", + "integrity": "sha512-+KAgmVeqXYbTtU2FScx1XS3kNyfZ5TrXY07V96QnUSFqo2gAqlvmaxH67Lj7SWazqsMabf+58ctdTcBgnOLUOQ==", + "dependencies": { + "duplexify": "^4.1.2", + "split2": "^4.0.0" + } + }, + "node_modules/pino-std-serializers": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/pino-std-serializers/-/pino-std-serializers-4.0.0.tgz", + "integrity": "sha512-cK0pekc1Kjy5w9V2/n+8MkZwusa6EyyxfeQCB799CQRhRt/CqYKiWs5adeu8Shve2ZNffvfC/7J64A2PJo1W/Q==" + }, + "node_modules/pngjs": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/pngjs/-/pngjs-5.0.0.tgz", + "integrity": "sha512-40QW5YalBNfQo5yRYmiw7Yz6TKKVr3h6970B2YE+3fQpsWcrbj1PzJgxeJ19DRQjhMbKPIuMY8rFaXc8moolVw==", + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/pony-cause": { + "version": "2.1.11", + "resolved": "https://registry.npmjs.org/pony-cause/-/pony-cause-2.1.11.tgz", + "integrity": "sha512-M7LhCsdNbNgiLYiP4WjsfLUuFmCfnjdF6jKe2R9NKl4WFN+HZPGHJZ9lnLP7f9ZnKe3U9nuWD0szirmj+migUg==", + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/possible-typed-array-names": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.1.0.tgz", + "integrity": "sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg==", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/postcss": { + "version": "8.4.31", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.31.tgz", + "integrity": "sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "nanoid": "^3.3.6", + "picocolors": "^1.0.0", + "source-map-js": "^1.0.2" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/preact": { + "version": "10.26.5", + "resolved": "https://registry.npmjs.org/preact/-/preact-10.26.5.tgz", + "integrity": "sha512-fmpDkgfGU6JYux9teDWLhj9mKN55tyepwYbxHgQuIxbWQzgFg5vk7Mrrtfx7xRxq798ynkY4DDDxZr235Kk+4w==", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/preact" + } + }, + "node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/process-nextick-args": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" + }, + "node_modules/process-warning": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/process-warning/-/process-warning-1.0.0.tgz", + "integrity": "sha512-du4wfLyj4yCZq1VupnVSZmRsPJsNuxoDQFdCFHLaYiEbFBD7QE0a+I4D7hOxrVnh78QE/YipFAj9lXHiXocV+Q==" + }, + "node_modules/prop-types": { + "version": "15.8.1", + "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz", + "integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==", + "dev": true, + "dependencies": { + "loose-envify": "^1.4.0", + "object-assign": "^4.1.1", + "react-is": "^16.13.1" + } + }, + "node_modules/proxy-compare": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/proxy-compare/-/proxy-compare-2.6.0.tgz", + "integrity": "sha512-8xuCeM3l8yqdmbPoYeLbrAXCBWu19XEYc5/F28f5qOaoAIMyfmBUkl5axiK+x9olUvRlcekvnm98AP9RDngOIw==" + }, + "node_modules/pump": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.2.tgz", + "integrity": "sha512-tUPXtzlGM8FE3P0ZL6DVs/3P58k9nk8/jZeQCurTJylQA8qFYzHFfhBJkuqyE0FifOsQ0uKWekiZ5g8wtr28cw==", + "dependencies": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + }, + "node_modules/punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/qrcode": { + "version": "1.5.3", + "resolved": "https://registry.npmjs.org/qrcode/-/qrcode-1.5.3.tgz", + "integrity": "sha512-puyri6ApkEHYiVl4CFzo1tDkAZ+ATcnbJrJ6RiBM1Fhctdn/ix9MTE3hRph33omisEbC/2fcfemsseiKgBPKZg==", + "dependencies": { + "dijkstrajs": "^1.0.1", + "encode-utf8": "^1.0.3", + "pngjs": "^5.0.0", + "yargs": "^15.3.1" + }, + "bin": { + "qrcode": "bin/qrcode" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/query-string": { + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/query-string/-/query-string-7.1.3.tgz", + "integrity": "sha512-hh2WYhq4fi8+b+/2Kg9CEge4fDPvHS534aOOvOZeQ3+Vf2mCFsaFBYj0i+iXcAq6I9Vzp5fjMFBlONvayDC1qg==", + "dependencies": { + "decode-uri-component": "^0.2.2", + "filter-obj": "^1.1.0", + "split-on-first": "^1.0.0", + "strict-uri-encode": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/quick-format-unescaped": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/quick-format-unescaped/-/quick-format-unescaped-4.0.4.tgz", + "integrity": "sha512-tYC1Q1hgyRuHgloV/YXs2w15unPVh8qfu/qCTfhTYamaw7fyhumKa2yGpdSo87vY32rIclj+4fWYQXUMs9EHvg==" + }, + "node_modules/radix3": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/radix3/-/radix3-1.1.2.tgz", + "integrity": "sha512-b484I/7b8rDEdSDKckSSBA8knMpcdsXudlE/LNL639wFoHKwLbEkQFZHWEYwDC0wa0FKUcCY+GAF73Z7wxNVFA==" + }, + "node_modules/react": { + "version": "19.0.0", + "resolved": "https://registry.npmjs.org/react/-/react-19.0.0.tgz", + "integrity": "sha512-V8AVnmPIICiWpGfm6GLzCR/W5FXLchHop40W4nXBmdlEceh16rCN8O8LNWm5bh5XUX91fh7KpA+W0TgMKmgTpQ==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-dom": { + "version": "19.0.0", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.0.0.tgz", + "integrity": "sha512-4GV5sHFG0e/0AD4X+ySy6UJd3jVl1iNsNHdpad0qhABJ11twS3TTBnseqsKurKcsNqCEFeGL3uLpVChpIO3QfQ==", + "dependencies": { + "scheduler": "^0.25.0" + }, + "peerDependencies": { + "react": "^19.0.0" + } + }, + "node_modules/react-is": { + "version": "16.13.1", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", + "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==", + "dev": true + }, + "node_modules/readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/readdirp": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-4.1.2.tgz", + "integrity": "sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==", + "engines": { + "node": ">= 14.18.0" + }, + "funding": { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/real-require": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/real-require/-/real-require-0.1.0.tgz", + "integrity": "sha512-r/H9MzAWtrv8aSVjPCMFpDMl5q66GqtmmRkRjpHTsp4zBAa+snZyiQNlMONiUmEJcsnaw0wCauJ2GWODr/aFkg==", + "engines": { + "node": ">= 12.13.0" + } + }, + "node_modules/reflect.getprototypeof": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/reflect.getprototypeof/-/reflect.getprototypeof-1.0.10.tgz", + "integrity": "sha512-00o4I+DVrefhv+nX0ulyi3biSHCPDe+yLv5o/p6d/UVlirijB8E16FtfwSAi4g3tcqrQ4lRAqQSoFEZJehYEcw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.8", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.9", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.0.0", + "get-intrinsic": "^1.2.7", + "get-proto": "^1.0.1", + "which-builtin-type": "^1.2.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/regenerator-runtime": { + "version": "0.14.1", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz", + "integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==" + }, + "node_modules/regexp.prototype.flags": { + "version": "1.5.4", + "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.4.tgz", + "integrity": "sha512-dYqgNSZbDwkaJ2ceRd9ojCGjBq+mOm9LmtXnAnEGyHhN/5R7iDW2TRw3h+o/jCFxus3P2LfWIIiwowAjANm7IA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.8", + "define-properties": "^1.2.1", + "es-errors": "^1.3.0", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "set-function-name": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/require-main-filename": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", + "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==" + }, + "node_modules/resolve": { + "version": "1.22.10", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.10.tgz", + "integrity": "sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w==", + "dev": true, + "dependencies": { + "is-core-module": "^2.16.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/resolve-pkg-maps": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz", + "integrity": "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==", + "dev": true, + "funding": { + "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1" + } + }, + "node_modules/reusify": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz", + "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==", + "dev": true, + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, + "node_modules/safe-array-concat": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.1.3.tgz", + "integrity": "sha512-AURm5f0jYEOydBj7VQlVvDrjeFgthDdEF5H1dP+6mNpoXOMo1quQqJ4wvJDyRZ9+pO3kGWoOdmV08cSv2aJV6Q==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.2", + "get-intrinsic": "^1.2.6", + "has-symbols": "^1.1.0", + "isarray": "^2.0.5" + }, + "engines": { + "node": ">=0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/safe-push-apply": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/safe-push-apply/-/safe-push-apply-1.0.0.tgz", + "integrity": "sha512-iKE9w/Z7xCzUMIZqdBsp6pEQvwuEebH4vdpjcDWnyzaI6yl6O9FHvVpmGelvEHNsoY6wGblkxR6Zty/h00WiSA==", + "dev": true, + "dependencies": { + "es-errors": "^1.3.0", + "isarray": "^2.0.5" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/safe-regex-test": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.1.0.tgz", + "integrity": "sha512-x/+Cz4YrimQxQccJf5mKEbIa1NzeCRNI5Ecl/ekmlYaampdNLPalVyIcCZNNH3MvmqBugV5TMYZXv0ljslUlaw==", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "is-regex": "^1.2.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/safe-stable-stringify": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/safe-stable-stringify/-/safe-stable-stringify-2.5.0.tgz", + "integrity": "sha512-b3rppTKm9T+PsVCBEOUR46GWI7fdOs00VKZ1+9c1EWDaDMvjQc6tUwuFyIprgGgTcWoVHSKrU8H31ZHA2e0RHA==", + "engines": { + "node": ">=10" + } + }, + "node_modules/scheduler": { + "version": "0.25.0", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.25.0.tgz", + "integrity": "sha512-xFVuu11jh+xcO7JOAGJNOXld8/TcEHK/4CituBUeUb5hqxJLj9YuemAEuvm9gQ/+pgXYfbQuqAkiYu+u7YEsNA==" + }, + "node_modules/semver": { + "version": "7.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz", + "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/set-blocking": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", + "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==" + }, + "node_modules/set-function-length": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", + "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==", + "dependencies": { + "define-data-property": "^1.1.4", + "es-errors": "^1.3.0", + "function-bind": "^1.1.2", + "get-intrinsic": "^1.2.4", + "gopd": "^1.0.1", + "has-property-descriptors": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/set-function-name": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.2.tgz", + "integrity": "sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ==", + "dev": true, + "dependencies": { + "define-data-property": "^1.1.4", + "es-errors": "^1.3.0", + "functions-have-names": "^1.2.3", + "has-property-descriptors": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/set-proto": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/set-proto/-/set-proto-1.0.0.tgz", + "integrity": "sha512-RJRdvCo6IAnPdsvP/7m6bsQqNnn1FCBX5ZNtFL98MmFF/4xAIJTIg1YbHW5DC2W5SKZanrC6i4HsJqlajw/dZw==", + "dev": true, + "dependencies": { + "dunder-proto": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/sha.js": { + "version": "2.4.11", + "resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.11.tgz", + "integrity": "sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ==", + "dependencies": { + "inherits": "^2.0.1", + "safe-buffer": "^5.0.1" + }, + "bin": { + "sha.js": "bin.js" + } + }, + "node_modules/sharp": { + "version": "0.34.1", + "resolved": "https://registry.npmjs.org/sharp/-/sharp-0.34.1.tgz", + "integrity": "sha512-1j0w61+eVxu7DawFJtnfYcvSv6qPFvfTaqzTQ2BLknVhHTwGS8sc63ZBF4rzkWMBVKybo4S5OBtDdZahh2A1xg==", + "hasInstallScript": true, + "optional": true, + "dependencies": { + "color": "^4.2.3", + "detect-libc": "^2.0.3", + "semver": "^7.7.1" + }, + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-darwin-arm64": "0.34.1", + "@img/sharp-darwin-x64": "0.34.1", + "@img/sharp-libvips-darwin-arm64": "1.1.0", + "@img/sharp-libvips-darwin-x64": "1.1.0", + "@img/sharp-libvips-linux-arm": "1.1.0", + "@img/sharp-libvips-linux-arm64": "1.1.0", + "@img/sharp-libvips-linux-ppc64": "1.1.0", + "@img/sharp-libvips-linux-s390x": "1.1.0", + "@img/sharp-libvips-linux-x64": "1.1.0", + "@img/sharp-libvips-linuxmusl-arm64": "1.1.0", + "@img/sharp-libvips-linuxmusl-x64": "1.1.0", + "@img/sharp-linux-arm": "0.34.1", + "@img/sharp-linux-arm64": "0.34.1", + "@img/sharp-linux-s390x": "0.34.1", + "@img/sharp-linux-x64": "0.34.1", + "@img/sharp-linuxmusl-arm64": "0.34.1", + "@img/sharp-linuxmusl-x64": "0.34.1", + "@img/sharp-wasm32": "0.34.1", + "@img/sharp-win32-ia32": "0.34.1", + "@img/sharp-win32-x64": "0.34.1" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/side-channel": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz", + "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==", + "dev": true, + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.3", + "side-channel-list": "^1.0.0", + "side-channel-map": "^1.0.1", + "side-channel-weakmap": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-list": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz", + "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==", + "dev": true, + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-map": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", + "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", + "dev": true, + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-weakmap": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", + "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", + "dev": true, + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3", + "side-channel-map": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/simple-swizzle": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/simple-swizzle/-/simple-swizzle-0.2.2.tgz", + "integrity": "sha512-JA//kQgZtbuY83m+xT+tXJkmJncGMTFT+C+g2h2R9uxkYIrE2yy9sgmcLhCnw57/WSD+Eh3J97FPEDFnbXnDUg==", + "optional": true, + "dependencies": { + "is-arrayish": "^0.3.1" + } + }, + "node_modules/socket.io-client": { + "version": "4.8.1", + "resolved": "https://registry.npmjs.org/socket.io-client/-/socket.io-client-4.8.1.tgz", + "integrity": "sha512-hJVXfu3E28NmzGk8o1sHhN3om52tRvwYeidbj7xKy2eIIse5IoKX3USlS6Tqt3BHAtflLIkCQBkzVrEEfWUyYQ==", + "dependencies": { + "@socket.io/component-emitter": "~3.1.0", + "debug": "~4.3.2", + "engine.io-client": "~6.6.1", + "socket.io-parser": "~4.2.4" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/socket.io-client/node_modules/debug": { + "version": "4.3.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.7.tgz", + "integrity": "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/socket.io-parser": { + "version": "4.2.4", + "resolved": "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-4.2.4.tgz", + "integrity": "sha512-/GbIKmo8ioc+NIWIhwdecY0ge+qVBSMdgxGygevmdHj24bsfgtCmcUUcQ5ZzcylGFHsN3k4HB4Cgkl96KVnuew==", + "dependencies": { + "@socket.io/component-emitter": "~3.1.0", + "debug": "~4.3.1" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/socket.io-parser/node_modules/debug": { + "version": "4.3.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.7.tgz", + "integrity": "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/sonic-boom": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/sonic-boom/-/sonic-boom-2.8.0.tgz", + "integrity": "sha512-kuonw1YOYYNOve5iHdSahXPOK49GqwA+LZhI6Wz/l0rP57iKyXXIHaRagOBHAPmGwJC6od2Z9zgvZ5loSgMlVg==", + "dependencies": { + "atomic-sleep": "^1.0.0" + } + }, + "node_modules/source-map-js": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", + "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/split-on-first": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/split-on-first/-/split-on-first-1.1.0.tgz", + "integrity": "sha512-43ZssAJaMusuKWL8sKUBQXHWOpq8d6CfN/u1p4gUzfJkM05C8rxTmYrkIPTXapZpORA6LkkzcUulJ8FqA7Uudw==", + "engines": { + "node": ">=6" + } + }, + "node_modules/split2": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/split2/-/split2-4.2.0.tgz", + "integrity": "sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==", + "engines": { + "node": ">= 10.x" + } + }, + "node_modules/stable-hash": { + "version": "0.0.5", + "resolved": "https://registry.npmjs.org/stable-hash/-/stable-hash-0.0.5.tgz", + "integrity": "sha512-+L3ccpzibovGXFK+Ap/f8LOS0ahMrHTf3xu7mMLSpEGU0EO9ucaysSylKo9eRDFNhWve/y275iPmIZ4z39a9iA==", + "dev": true + }, + "node_modules/stream-shift": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/stream-shift/-/stream-shift-1.0.3.tgz", + "integrity": "sha512-76ORR0DO1o1hlKwTbi/DM3EXWGf3ZJYO8cXX5RJwnul2DEg2oyoZyjLNoQM8WsvZiFKCRfC1O0J7iCvie3RZmQ==" + }, + "node_modules/streamsearch": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/streamsearch/-/streamsearch-1.1.0.tgz", + "integrity": "sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==", + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/strict-uri-encode": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strict-uri-encode/-/strict-uri-encode-2.0.0.tgz", + "integrity": "sha512-QwiXZgpRcKkhTj2Scnn++4PKtWsH0kpzZ62L2R6c/LUVYv7hVnZqcg2+sMuT6R7Jusu1vviK/MFsu6kNJfWlEQ==", + "engines": { + "node": ">=4" + } + }, + "node_modules/string_decoder": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "dependencies": { + "safe-buffer": "~5.2.0" + } + }, + "node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/string-width/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" + }, + "node_modules/string.prototype.includes": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/string.prototype.includes/-/string.prototype.includes-2.0.1.tgz", + "integrity": "sha512-o7+c9bW6zpAdJHTtujeePODAhkuicdAryFsfVKwA+wGw89wJ4GTY484WTucM9hLtDEOpOvI+aHnzqnC5lHp4Rg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.3" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/string.prototype.matchall": { + "version": "4.0.12", + "resolved": "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.0.12.tgz", + "integrity": "sha512-6CC9uyBL+/48dYizRf7H7VAYCMCNTBeM78x/VTUe9bFEaxBepPJDa1Ow99LqI/1yF7kuy7Q3cQsYMrcjGUcskA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.6", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.0.0", + "get-intrinsic": "^1.2.6", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "internal-slot": "^1.1.0", + "regexp.prototype.flags": "^1.5.3", + "set-function-name": "^2.0.2", + "side-channel": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.repeat": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/string.prototype.repeat/-/string.prototype.repeat-1.0.0.tgz", + "integrity": "sha512-0u/TldDbKD8bFCQ/4f5+mNRrXwZ8hg2w7ZR8wa16e8z9XpePWl3eGEcUD0OXpEH/VJH/2G3gjUtR3ZOiBe2S/w==", + "dev": true, + "dependencies": { + "define-properties": "^1.1.3", + "es-abstract": "^1.17.5" + } + }, + "node_modules/string.prototype.trim": { + "version": "1.2.10", + "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.10.tgz", + "integrity": "sha512-Rs66F0P/1kedk5lyYyH9uBzuiI/kNRmwJAR9quK6VOtIpZ2G+hMZd+HQbbv25MgCA6gEffoMZYxlTod4WcdrKA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.2", + "define-data-property": "^1.1.4", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.5", + "es-object-atoms": "^1.0.0", + "has-property-descriptors": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.trimend": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.9.tgz", + "integrity": "sha512-G7Ok5C6E/j4SGfyLCloXTrngQIQU3PWtXGst3yM7Bea9FRURf1S42ZHlZZtsNque2FN2PoUhfZXYLNWwEr4dLQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.2", + "define-properties": "^1.2.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.trimstart": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.8.tgz", + "integrity": "sha512-UXSH262CSZY1tfu3G3Secr6uGLCFVPMhIqHjlgCUtCCcgihYc/xKs9djMTMUOb2j1mVSeU8EU6NWc/iQKU6Gfg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/styled-jsx": { + "version": "5.1.6", + "resolved": "https://registry.npmjs.org/styled-jsx/-/styled-jsx-5.1.6.tgz", + "integrity": "sha512-qSVyDTeMotdvQYoHWLNGwRFJHC+i+ZvdBRYosOFgC+Wg1vx4frN2/RG/NA7SYqqvKNLf39P2LSRA2pu6n0XYZA==", + "dependencies": { + "client-only": "0.0.1" + }, + "engines": { + "node": ">= 12.0.0" + }, + "peerDependencies": { + "react": ">= 16.8.0 || 17.x.x || ^18.0.0-0 || ^19.0.0-0" + }, + "peerDependenciesMeta": { + "@babel/core": { + "optional": true + }, + "babel-plugin-macros": { + "optional": true + } + } + }, + "node_modules/superstruct": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/superstruct/-/superstruct-1.0.4.tgz", + "integrity": "sha512-7JpaAoX2NGyoFlI9NBh66BQXGONc+uE+MRS5i2iOBKuS4e+ccgMDjATgZldkah+33DakBxDHiss9kvUcGAO8UQ==", + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/thread-stream": { + "version": "0.15.2", + "resolved": "https://registry.npmjs.org/thread-stream/-/thread-stream-0.15.2.tgz", + "integrity": "sha512-UkEhKIg2pD+fjkHQKyJO3yoIvAP3N6RlNFt2dUhcS1FGvCD1cQa1M/PGknCLFIyZdtJOWQjejp7bdNqmN7zwdA==", + "dependencies": { + "real-require": "^0.1.0" + } + }, + "node_modules/tinyglobby": { + "version": "0.2.13", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.13.tgz", + "integrity": "sha512-mEwzpUgrLySlveBwEVDMKk5B57bhLPYovRfPAXD5gA/98Opn0rCDj3GtLwFvCvH5RK9uPCExUROW5NjDwvqkxw==", + "dev": true, + "dependencies": { + "fdir": "^6.4.4", + "picomatch": "^4.0.2" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/SuperchupuDev" + } + }, + "node_modules/tinyglobby/node_modules/fdir": { + "version": "6.4.4", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.4.4.tgz", + "integrity": "sha512-1NZP+GK4GfuAv3PqKvxQRDMjdSRZjnkq7KfhlNrCNNlZ0ygQFpebfrnfnq/W7fpUnAv9aGWmY1zKx7FYL3gwhg==", + "dev": true, + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } + } + }, + "node_modules/tinyglobby/node_modules/picomatch": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.2.tgz", + "integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" + }, + "node_modules/ts-api-utils": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.1.0.tgz", + "integrity": "sha512-CUgTZL1irw8u29bzrOD/nH85jqyc74D6SshFgujOIA7osm2Rz7dYH77agkx7H4FBNxDq7Cjf+IjaX/8zwFW+ZQ==", + "dev": true, + "engines": { + "node": ">=18.12" + }, + "peerDependencies": { + "typescript": ">=4.8.4" + } + }, + "node_modules/tsconfig-paths": { + "version": "3.15.0", + "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.15.0.tgz", + "integrity": "sha512-2Ac2RgzDe/cn48GvOe3M+o82pEFewD3UPbyoUHHdKasHwJKjds4fLXWf/Ux5kATBKN20oaFGu+jbElp1pos0mg==", + "dev": true, + "dependencies": { + "@types/json5": "^0.0.29", + "json5": "^1.0.2", + "minimist": "^1.2.6", + "strip-bom": "^3.0.0" + } + }, + "node_modules/tslib": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", + "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==" + }, + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/typed-array-buffer": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.3.tgz", + "integrity": "sha512-nAYYwfY3qnzX30IkA6AQZjVbtK6duGontcQm1WSG1MD94YLqK0515GNApXkoxKOWMusVssAHWLh9SeaoefYFGw==", + "dev": true, + "dependencies": { + "call-bound": "^1.0.3", + "es-errors": "^1.3.0", + "is-typed-array": "^1.1.14" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/typed-array-byte-length": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/typed-array-byte-length/-/typed-array-byte-length-1.0.3.tgz", + "integrity": "sha512-BaXgOuIxz8n8pIq3e7Atg/7s+DpiYrxn4vdot3w9KbnBhcRQq6o3xemQdIfynqSeXeDrF32x+WvfzmOjPiY9lg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.8", + "for-each": "^0.3.3", + "gopd": "^1.2.0", + "has-proto": "^1.2.0", + "is-typed-array": "^1.1.14" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/typed-array-byte-offset": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.4.tgz", + "integrity": "sha512-bTlAFB/FBYMcuX81gbL4OcpH5PmlFHqlCCpAl8AlEzMz5k53oNDvN8p1PNOWLEmI2x4orp3raOFB51tv9X+MFQ==", + "dev": true, + "dependencies": { + "available-typed-arrays": "^1.0.7", + "call-bind": "^1.0.8", + "for-each": "^0.3.3", + "gopd": "^1.2.0", + "has-proto": "^1.2.0", + "is-typed-array": "^1.1.15", + "reflect.getprototypeof": "^1.0.9" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/typed-array-length": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.7.tgz", + "integrity": "sha512-3KS2b+kL7fsuk/eJZ7EQdnEmQoaho/r6KUef7hxvltNA5DR8NAUM+8wJMbJyZ4G9/7i3v5zPBIMN5aybAh2/Jg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.7", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "is-typed-array": "^1.1.13", + "possible-typed-array-names": "^1.0.0", + "reflect.getprototypeof": "^1.0.6" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/typescript": { + "version": "5.8.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz", + "integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==", + "devOptional": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/ufo": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/ufo/-/ufo-1.6.1.tgz", + "integrity": "sha512-9a4/uxlTWJ4+a5i0ooc1rU7C7YOw3wT+UGqdeNNHWnOF9qcMBgLRS+4IYUqbczewFx4mLEig6gawh7X6mFlEkA==" + }, + "node_modules/uint8arrays": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/uint8arrays/-/uint8arrays-3.1.0.tgz", + "integrity": "sha512-ei5rfKtoRO8OyOIor2Rz5fhzjThwIHJZ3uyDPnDHTXbP0aMQ1RN/6AI5B5d9dBxJOU+BvOAk7ZQ1xphsX8Lrog==", + "dependencies": { + "multiformats": "^9.4.2" + } + }, + "node_modules/unbox-primitive": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.1.0.tgz", + "integrity": "sha512-nWJ91DjeOkej/TA8pXQ3myruKpKEYgqvpw9lz4OPHj/NWFNluYrjbz9j01CJ8yKQd2g4jFoOkINCTW2I5LEEyw==", + "dev": true, + "dependencies": { + "call-bound": "^1.0.3", + "has-bigints": "^1.0.2", + "has-symbols": "^1.1.0", + "which-boxed-primitive": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/uncrypto": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/uncrypto/-/uncrypto-0.1.3.tgz", + "integrity": "sha512-Ql87qFHB3s/De2ClA9e0gsnS6zXG27SkTiSJwjCc9MebbfapQfuPzumMIUMi38ezPZVNFcHI9sUIepeQfw8J8Q==" + }, + "node_modules/undici-types": { + "version": "6.21.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz", + "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==", + "dev": true + }, + "node_modules/unrs-resolver": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/unrs-resolver/-/unrs-resolver-1.6.1.tgz", + "integrity": "sha512-PLDI7BRVaI1C0x8mXr8leLPIOPPF1wCRFyKIswJAPJG3LdMxWNiAVvlTvmff5DSezapWFLagk18NF2cCNhe8Fg==", + "dev": true, + "hasInstallScript": true, + "dependencies": { + "napi-postinstall": "^0.1.1" + }, + "funding": { + "url": "https://github.com/sponsors/JounQin" + }, + "optionalDependencies": { + "@unrs/resolver-binding-darwin-arm64": "1.6.1", + "@unrs/resolver-binding-darwin-x64": "1.6.1", + "@unrs/resolver-binding-freebsd-x64": "1.6.1", + "@unrs/resolver-binding-linux-arm-gnueabihf": "1.6.1", + "@unrs/resolver-binding-linux-arm-musleabihf": "1.6.1", + "@unrs/resolver-binding-linux-arm64-gnu": "1.6.1", + "@unrs/resolver-binding-linux-arm64-musl": "1.6.1", + "@unrs/resolver-binding-linux-ppc64-gnu": "1.6.1", + "@unrs/resolver-binding-linux-riscv64-gnu": "1.6.1", + "@unrs/resolver-binding-linux-s390x-gnu": "1.6.1", + "@unrs/resolver-binding-linux-x64-gnu": "1.6.1", + "@unrs/resolver-binding-linux-x64-musl": "1.6.1", + "@unrs/resolver-binding-wasm32-wasi": "1.6.1", + "@unrs/resolver-binding-win32-arm64-msvc": "1.6.1", + "@unrs/resolver-binding-win32-ia32-msvc": "1.6.1", + "@unrs/resolver-binding-win32-x64-msvc": "1.6.1" + } + }, + "node_modules/unstorage": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/unstorage/-/unstorage-1.15.0.tgz", + "integrity": "sha512-m40eHdGY/gA6xAPqo8eaxqXgBuzQTlAKfmB1iF7oCKXE1HfwHwzDJBywK+qQGn52dta+bPlZluPF7++yR3p/bg==", + "dependencies": { + "anymatch": "^3.1.3", + "chokidar": "^4.0.3", + "destr": "^2.0.3", + "h3": "^1.15.0", + "lru-cache": "^10.4.3", + "node-fetch-native": "^1.6.6", + "ofetch": "^1.4.1", + "ufo": "^1.5.4" + }, + "peerDependencies": { + "@azure/app-configuration": "^1.8.0", + "@azure/cosmos": "^4.2.0", + "@azure/data-tables": "^13.3.0", + "@azure/identity": "^4.6.0", + "@azure/keyvault-secrets": "^4.9.0", + "@azure/storage-blob": "^12.26.0", + "@capacitor/preferences": "^6.0.3", + "@deno/kv": ">=0.9.0", + "@netlify/blobs": "^6.5.0 || ^7.0.0 || ^8.1.0", + "@planetscale/database": "^1.19.0", + "@upstash/redis": "^1.34.3", + "@vercel/blob": ">=0.27.1", + "@vercel/kv": "^1.0.1", + "aws4fetch": "^1.0.20", + "db0": ">=0.2.1", + "idb-keyval": "^6.2.1", + "ioredis": "^5.4.2", + "uploadthing": "^7.4.4" + }, + "peerDependenciesMeta": { + "@azure/app-configuration": { + "optional": true + }, + "@azure/cosmos": { + "optional": true + }, + "@azure/data-tables": { + "optional": true + }, + "@azure/identity": { + "optional": true + }, + "@azure/keyvault-secrets": { + "optional": true + }, + "@azure/storage-blob": { + "optional": true + }, + "@capacitor/preferences": { + "optional": true + }, + "@deno/kv": { + "optional": true + }, + "@netlify/blobs": { + "optional": true + }, + "@planetscale/database": { + "optional": true + }, + "@upstash/redis": { + "optional": true + }, + "@vercel/blob": { + "optional": true + }, + "@vercel/kv": { + "optional": true + }, + "aws4fetch": { + "optional": true + }, + "db0": { + "optional": true + }, + "idb-keyval": { + "optional": true + }, + "ioredis": { + "optional": true + }, + "uploadthing": { + "optional": true + } + } + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/use-sync-external-store": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.4.0.tgz", + "integrity": "sha512-9WXSPC5fMv61vaupRkCKCxsPxBocVnwakBEkMIHHpkTTg6icbJtg6jzgtLDm4bl3cSHAca52rYWih0k4K3PfHw==", + "peerDependencies": { + "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" + } + }, + "node_modules/utf-8-validate": { + "version": "5.0.10", + "resolved": "https://registry.npmjs.org/utf-8-validate/-/utf-8-validate-5.0.10.tgz", + "integrity": "sha512-Z6czzLq4u8fPOyx7TU6X3dvUZVvoJmxSQ+IcrlmagKhilxlhZgxPK6C5Jqbkw1IDUmFTM+cz9QDnnLTwDz/2gQ==", + "hasInstallScript": true, + "dependencies": { + "node-gyp-build": "^4.3.0" + }, + "engines": { + "node": ">=6.14.2" + } + }, + "node_modules/util": { + "version": "0.12.5", + "resolved": "https://registry.npmjs.org/util/-/util-0.12.5.tgz", + "integrity": "sha512-kZf/K6hEIrWHI6XqOFUiiMa+79wE/D8Q+NCNAWclkyg3b4d2k7s0QGepNjiABc+aR3N1PAyHL7p6UcLY6LmrnA==", + "dependencies": { + "inherits": "^2.0.3", + "is-arguments": "^1.0.4", + "is-generator-function": "^1.0.7", + "is-typed-array": "^1.1.3", + "which-typed-array": "^1.1.2" + } + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" + }, + "node_modules/uuid": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/valtio": { + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/valtio/-/valtio-1.13.2.tgz", + "integrity": "sha512-Qik0o+DSy741TmkqmRfjq+0xpZBXi/Y6+fXZLn0xNF1z/waFMbE3rkivv5Zcf9RrMUp6zswf2J7sbh2KBlba5A==", + "dependencies": { + "derive-valtio": "0.1.0", + "proxy-compare": "2.6.0", + "use-sync-external-store": "1.2.0" + }, + "engines": { + "node": ">=12.20.0" + }, + "peerDependencies": { + "@types/react": ">=16.8", + "react": ">=16.8" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "react": { + "optional": true + } + } + }, + "node_modules/valtio/node_modules/use-sync-external-store": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.2.0.tgz", + "integrity": "sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA==", + "peerDependencies": { + "react": "^16.8.0 || ^17.0.0 || ^18.0.0" + } + }, + "node_modules/viem": { + "version": "2.27.2", + "resolved": "https://registry.npmjs.org/viem/-/viem-2.27.2.tgz", + "integrity": "sha512-VwsB+RswcflbwBNPMvzTHuafDA51iT8v4SuIFcudTP2skmxcdodbgoOLP4dYELVnCzcedxoSJDOeext4V3zdnA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/wevm" + } + ], + "dependencies": { + "@noble/curves": "1.8.1", + "@noble/hashes": "1.7.1", + "@scure/bip32": "1.6.2", + "@scure/bip39": "1.5.4", + "abitype": "1.0.8", + "isows": "1.0.6", + "ox": "0.6.9", + "ws": "8.18.1" + }, + "peerDependencies": { + "typescript": ">=5.0.4" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/viem/node_modules/@noble/curves": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.8.1.tgz", + "integrity": "sha512-warwspo+UYUPep0Q+vtdVB4Ugn8GGQj8iyB3gnRWsztmUHTI3S1nhdiWNsPUGL0vud7JlRRk1XEu7Lq1KGTnMQ==", + "dependencies": { + "@noble/hashes": "1.7.1" + }, + "engines": { + "node": "^14.21.3 || >=16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/viem/node_modules/@noble/hashes": { + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.7.1.tgz", + "integrity": "sha512-B8XBPsn4vT/KJAGqDzbwztd+6Yte3P4V7iafm24bxgDe/mlRuK6xmWPuCNrKt2vDafZ8MfJLlchDG/vYafQEjQ==", + "engines": { + "node": "^14.21.3 || >=16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/viem/node_modules/@scure/bip32": { + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.6.2.tgz", + "integrity": "sha512-t96EPDMbtGgtb7onKKqxRLfE5g05k7uHnHRM2xdE6BP/ZmxaLtPek4J4KfVn/90IQNrU1IOAqMgiDtUdtbe3nw==", + "dependencies": { + "@noble/curves": "~1.8.1", + "@noble/hashes": "~1.7.1", + "@scure/base": "~1.2.2" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/viem/node_modules/@scure/bip39": { + "version": "1.5.4", + "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.5.4.tgz", + "integrity": "sha512-TFM4ni0vKvCfBpohoh+/lY05i9gRbSwXWngAsF4CABQxoaOHijxuaZ2R6cStDQ5CHtHO9aGJTr4ksVJASRRyMA==", + "dependencies": { + "@noble/hashes": "~1.7.1", + "@scure/base": "~1.2.4" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/viem/node_modules/ws": { + "version": "8.18.1", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.1.tgz", + "integrity": "sha512-RKW2aJZMXeMxVpnZ6bck+RswznaxmzdULiBr6KY7XkTnW8uvt0iT9H5DkHUChXrc+uurzwa0rVI16n/Xzjdz1w==", + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": ">=5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/wagmi": { + "version": "2.14.16", + "resolved": "https://registry.npmjs.org/wagmi/-/wagmi-2.14.16.tgz", + "integrity": "sha512-njOPvB8L0+jt3m1FTJiVF44T1u+kcjLtVWKvwI0mZnIesZTQZ/xDF0M/NHj3Uljyn3qJw3pyHjJe31NC+VVHMA==", + "dependencies": { + "@wagmi/connectors": "5.7.12", + "@wagmi/core": "2.16.7", + "use-sync-external-store": "1.4.0" + }, + "funding": { + "url": "https://github.com/sponsors/wevm" + }, + "peerDependencies": { + "@tanstack/react-query": ">=5.0.0", + "react": ">=18", + "typescript": ">=5.0.4", + "viem": "2.x" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/webextension-polyfill": { + "version": "0.10.0", + "resolved": "https://registry.npmjs.org/webextension-polyfill/-/webextension-polyfill-0.10.0.tgz", + "integrity": "sha512-c5s35LgVa5tFaHhrZDnr3FpQpjj1BB+RXhLTYUxGqBVN460HkbM8TBtEqdXWbpTKfzwCcjAZVF7zXCYSKtcp9g==" + }, + "node_modules/webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" + }, + "node_modules/whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "dependencies": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/which-boxed-primitive": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.1.1.tgz", + "integrity": "sha512-TbX3mj8n0odCBFVlY8AxkqcHASw3L60jIuF8jFP78az3C2YhmGvqbHBpAjTRH2/xqYunrJ9g1jSyjCjpoWzIAA==", + "dev": true, + "dependencies": { + "is-bigint": "^1.1.0", + "is-boolean-object": "^1.2.1", + "is-number-object": "^1.1.1", + "is-string": "^1.1.1", + "is-symbol": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/which-builtin-type": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/which-builtin-type/-/which-builtin-type-1.2.1.tgz", + "integrity": "sha512-6iBczoX+kDQ7a3+YJBnh3T+KZRxM/iYNPXicqk66/Qfm1b93iu+yOImkg0zHbj5LNOcNv1TEADiZ0xa34B4q6Q==", + "dev": true, + "dependencies": { + "call-bound": "^1.0.2", + "function.prototype.name": "^1.1.6", + "has-tostringtag": "^1.0.2", + "is-async-function": "^2.0.0", + "is-date-object": "^1.1.0", + "is-finalizationregistry": "^1.1.0", + "is-generator-function": "^1.0.10", + "is-regex": "^1.2.1", + "is-weakref": "^1.0.2", + "isarray": "^2.0.5", + "which-boxed-primitive": "^1.1.0", + "which-collection": "^1.0.2", + "which-typed-array": "^1.1.16" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/which-collection": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/which-collection/-/which-collection-1.0.2.tgz", + "integrity": "sha512-K4jVyjnBdgvc86Y6BkaLZEN933SwYOuBFkdmBu9ZfkcAbdVbpITnDmjvZ/aQjRXQrv5EPkTnD1s39GiiqbngCw==", + "dev": true, + "dependencies": { + "is-map": "^2.0.3", + "is-set": "^2.0.3", + "is-weakmap": "^2.0.2", + "is-weakset": "^2.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/which-module": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.1.tgz", + "integrity": "sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ==" + }, + "node_modules/which-typed-array": { + "version": "1.1.19", + "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.19.tgz", + "integrity": "sha512-rEvr90Bck4WZt9HHFC4DJMsjvu7x+r6bImz0/BrbWb7A2djJ8hnZMrWnHo9F8ssv0OMErasDhftrfROTyqSDrw==", + "dependencies": { + "available-typed-arrays": "^1.0.7", + "call-bind": "^1.0.8", + "call-bound": "^1.0.4", + "for-each": "^0.3.5", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-tostringtag": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/word-wrap": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", + "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" + }, + "node_modules/ws": { + "version": "7.5.10", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.10.tgz", + "integrity": "sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ==", + "engines": { + "node": ">=8.3.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": "^5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/xmlhttprequest-ssl": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/xmlhttprequest-ssl/-/xmlhttprequest-ssl-2.1.2.tgz", + "integrity": "sha512-TEU+nJVUUnA4CYJFLvK5X9AOeH4KvDvhIfm0vV1GaQRtchnG0hgK5p8hw/xjv8cunWYCsiPCSDzObPyhEwq3KQ==", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/xtend": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", + "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", + "engines": { + "node": ">=0.4" + } + }, + "node_modules/y18n": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", + "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==" + }, + "node_modules/yargs": { + "version": "15.4.1", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", + "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", + "dependencies": { + "cliui": "^6.0.0", + "decamelize": "^1.2.0", + "find-up": "^4.1.0", + "get-caller-file": "^2.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^4.2.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^18.1.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/yargs-parser": { + "version": "18.1.3", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", + "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", + "dependencies": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/yargs/node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/yargs/node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/yargs/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/yargs/node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/zod": { + "version": "3.22.4", + "resolved": "https://registry.npmjs.org/zod/-/zod-3.22.4.tgz", + "integrity": "sha512-iC+8Io04lddc+mVqQ9AZ7OQ2MrUKGN+oIQyq1vemgt46jwCwLfhq7/pwnBnNXXXZb8VTVLKwp9EDkx+ryxIWmg==", + "funding": { + "url": "https://github.com/sponsors/colinhacks" + } + }, + "node_modules/zustand": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/zustand/-/zustand-5.0.0.tgz", + "integrity": "sha512-LE+VcmbartOPM+auOjCCLQOsQ05zUTp8RkgwRzefUk+2jISdMMFnxvyTjA4YNWr5ZGXYbVsEMZosttuxUBkojQ==", + "engines": { + "node": ">=12.20.0" + }, + "peerDependencies": { + "@types/react": ">=18.0.0", + "immer": ">=9.0.6", + "react": ">=18.0.0", + "use-sync-external-store": ">=1.2.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "immer": { + "optional": true + }, + "react": { + "optional": true + }, + "use-sync-external-store": { + "optional": true + } + } + } + }, + "dependencies": { + "@adraffy/ens-normalize": { + "version": "1.11.0", + "resolved": "https://registry.npmjs.org/@adraffy/ens-normalize/-/ens-normalize-1.11.0.tgz", + "integrity": "sha512-/3DDPKHqqIqxUULp8yP4zODUY1i+2xvVWsv8A79xGWdCAG+8sb0hRh0Rk2QyOJUnnbyPUAZYcpBuRe3nS2OIUg==" + }, + "@babel/runtime": { + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.27.0.tgz", + "integrity": "sha512-VtPOkrdPHZsKc/clNqyi9WUA8TINkZ4cGk63UUE3u4pmB2k+ZMQRDuIOagv8UVd6j7k0T3+RRIb7beKTebNbcw==", + "requires": { + "regenerator-runtime": "^0.14.0" + } + }, + "@coinbase/wallet-sdk": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@coinbase/wallet-sdk/-/wallet-sdk-4.3.0.tgz", + "integrity": "sha512-T3+SNmiCw4HzDm4we9wCHCxlP0pqCiwKe4sOwPH3YAK2KSKjxPRydKu6UQJrdONFVLG7ujXvbd/6ZqmvJb8rkw==", + "requires": { + "@noble/hashes": "^1.4.0", + "clsx": "^1.2.1", + "eventemitter3": "^5.0.1", + "preact": "^10.24.2" + } + }, + "@ecies/ciphers": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/@ecies/ciphers/-/ciphers-0.2.3.tgz", + "integrity": "sha512-tapn6XhOueMwht3E2UzY0ZZjYokdaw9XtL9kEyjhQ/Fb9vL9xTFbOaI+fV0AWvTpYu4BNloC6getKW6NtSg4mA==", + "requires": {} + }, + "@emnapi/core": { + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.4.3.tgz", + "integrity": "sha512-4m62DuCE07lw01soJwPiBGC0nAww0Q+RY70VZ+n49yDIO13yyinhbWCeNnaob0lakDtWQzSdtNWzJeOJt2ma+g==", + "dev": true, + "optional": true, + "requires": { + "@emnapi/wasi-threads": "1.0.2", + "tslib": "^2.4.0" + } + }, + "@emnapi/runtime": { + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.4.3.tgz", + "integrity": "sha512-pBPWdu6MLKROBX05wSNKcNb++m5Er+KQ9QkB+WVM+pW2Kx9hoSrVTnu3BdkI5eBLZoKu/J6mW/B6i6bJB2ytXQ==", + "optional": true, + "requires": { + "tslib": "^2.4.0" + } + }, + "@emnapi/wasi-threads": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.0.2.tgz", + "integrity": "sha512-5n3nTJblwRi8LlXkJ9eBzu+kZR8Yxcc7ubakyQTFzPMtIhFpUBRbsnc2Dv88IZDIbCDlBiWrknhB4Lsz7mg6BA==", + "dev": true, + "optional": true, + "requires": { + "tslib": "^2.4.0" + } + }, + "@eslint-community/eslint-utils": { + "version": "4.6.1", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.6.1.tgz", + "integrity": "sha512-KTsJMmobmbrFLe3LDh0PC2FXpcSYJt/MLjlkh/9LEnmKYLSYmT/0EW9JWANjeoemiuZrmogti0tW5Ch+qNUYDw==", + "dev": true, + "requires": { + "eslint-visitor-keys": "^3.4.3" + }, + "dependencies": { + "eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "dev": true + } + } + }, + "@eslint-community/regexpp": { + "version": "4.12.1", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.1.tgz", + "integrity": "sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==", + "dev": true + }, + "@eslint/config-array": { + "version": "0.20.0", + "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.20.0.tgz", + "integrity": "sha512-fxlS1kkIjx8+vy2SjuCB94q3htSNrufYTXubwiBFeaQHbH6Ipi43gFJq2zCMt6PHhImH3Xmr0NksKDvchWlpQQ==", + "dev": true, + "requires": { + "@eslint/object-schema": "^2.1.6", + "debug": "^4.3.1", + "minimatch": "^3.1.2" + } + }, + "@eslint/config-helpers": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.2.1.tgz", + "integrity": "sha512-RI17tsD2frtDu/3dmI7QRrD4bedNKPM08ziRYaC5AhkGrzIAJelm9kJU1TznK+apx6V+cqRz8tfpEeG3oIyjxw==", + "dev": true + }, + "@eslint/core": { + "version": "0.13.0", + "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.13.0.tgz", + "integrity": "sha512-yfkgDw1KR66rkT5A8ci4irzDysN7FRpq3ttJolR88OqQikAWqwA8j5VZyas+vjyBNFIJ7MfybJ9plMILI2UrCw==", + "dev": true, + "requires": { + "@types/json-schema": "^7.0.15" + } + }, + "@eslint/eslintrc": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.1.tgz", + "integrity": "sha512-gtF186CXhIl1p4pJNGZw8Yc6RlshoePRvE0X91oPGb3vZ8pM3qOS9W9NGPat9LziaBV7XrJWGylNQXkGcnM3IQ==", + "dev": true, + "requires": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^10.0.1", + "globals": "^14.0.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" + } + }, + "@eslint/js": { + "version": "9.25.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.25.0.tgz", + "integrity": "sha512-iWhsUS8Wgxz9AXNfvfOPFSW4VfMXdVhp1hjkZVhXCrpgh/aLcc45rX6MPu+tIVUWDw0HfNwth7O28M1xDxNf9w==", + "dev": true + }, + "@eslint/object-schema": { + "version": "2.1.6", + "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.6.tgz", + "integrity": "sha512-RBMg5FRL0I0gs51M/guSAj5/e14VQ4tpZnQNWwuDT66P14I43ItmPfIZRhO9fUVIPOAQXU47atlywZ/czoqFPA==", + "dev": true + }, + "@eslint/plugin-kit": { + "version": "0.2.8", + "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.2.8.tgz", + "integrity": "sha512-ZAoA40rNMPwSm+AeHpCq8STiNAwzWLJuP8Xv4CHIc9wv/PSuExjMrmjfYNj682vW0OOiZ1HKxzvjQr9XZIisQA==", + "dev": true, + "requires": { + "@eslint/core": "^0.13.0", + "levn": "^0.4.1" + } + }, + "@ethereumjs/common": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/@ethereumjs/common/-/common-3.2.0.tgz", + "integrity": "sha512-pksvzI0VyLgmuEF2FA/JR/4/y6hcPq8OUail3/AvycBaW1d5VSauOZzqGvJ3RTmR4MU35lWE8KseKOsEhrFRBA==", + "requires": { + "@ethereumjs/util": "^8.1.0", + "crc-32": "^1.2.0" + } + }, + "@ethereumjs/rlp": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@ethereumjs/rlp/-/rlp-4.0.1.tgz", + "integrity": "sha512-tqsQiBQDQdmPWE1xkkBq4rlSW5QZpLOUJ5RJh2/9fug+q9tnUhuZoVLk7s0scUIKTOzEtR72DFBXI4WiZcMpvw==" + }, + "@ethereumjs/tx": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/@ethereumjs/tx/-/tx-4.2.0.tgz", + "integrity": "sha512-1nc6VO4jtFd172BbSnTnDQVr9IYBFl1y4xPzZdtkrkKIncBCkdbgfdRV+MiTkJYAtTxvV12GRZLqBFT1PNK6Yw==", + "requires": { + "@ethereumjs/common": "^3.2.0", + "@ethereumjs/rlp": "^4.0.1", + "@ethereumjs/util": "^8.1.0", + "ethereum-cryptography": "^2.0.0" + } + }, + "@ethereumjs/util": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/@ethereumjs/util/-/util-8.1.0.tgz", + "integrity": "sha512-zQ0IqbdX8FZ9aw11vP+dZkKDkS+kgIvQPHnSAXzP9pLu+Rfu3D3XEeLbicvoXJTYnhZiPmsZUxgdzXwNKxRPbA==", + "requires": { + "@ethereumjs/rlp": "^4.0.1", + "ethereum-cryptography": "^2.0.0", + "micro-ftch": "^0.3.1" + } + }, + "@humanfs/core": { + "version": "0.19.1", + "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz", + "integrity": "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==", + "dev": true + }, + "@humanfs/node": { + "version": "0.16.6", + "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.6.tgz", + "integrity": "sha512-YuI2ZHQL78Q5HbhDiBA1X4LmYdXCKCMQIfw0pw7piHJwyREFebJUvrQN4cMssyES6x+vfUbx1CIpaQUKYdQZOw==", + "dev": true, + "requires": { + "@humanfs/core": "^0.19.1", + "@humanwhocodes/retry": "^0.3.0" + }, + "dependencies": { + "@humanwhocodes/retry": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.3.1.tgz", + "integrity": "sha512-JBxkERygn7Bv/GbN5Rv8Ul6LVknS+5Bp6RgDC/O8gEBU/yeH5Ui5C/OlWrTb6qct7LjjfT6Re2NxB0ln0yYybA==", + "dev": true + } + } + }, + "@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true + }, + "@humanwhocodes/retry": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.2.tgz", + "integrity": "sha512-xeO57FpIu4p1Ri3Jq/EXq4ClRm86dVF2z/+kvFnyqVYRavTZmaFaUBbWCOuuTh0o/g7DSsk6kc2vrS4Vl5oPOQ==", + "dev": true + }, + "@img/sharp-darwin-arm64": { + "version": "0.34.1", + "resolved": "https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.34.1.tgz", + "integrity": "sha512-pn44xgBtgpEbZsu+lWf2KNb6OAf70X68k+yk69Ic2Xz11zHR/w24/U49XT7AeRwJ0Px+mhALhU5LPci1Aymk7A==", + "optional": true, + "requires": { + "@img/sharp-libvips-darwin-arm64": "1.1.0" + } + }, + "@img/sharp-darwin-x64": { + "version": "0.34.1", + "resolved": "https://registry.npmjs.org/@img/sharp-darwin-x64/-/sharp-darwin-x64-0.34.1.tgz", + "integrity": "sha512-VfuYgG2r8BpYiOUN+BfYeFo69nP/MIwAtSJ7/Zpxc5QF3KS22z8Pvg3FkrSFJBPNQ7mmcUcYQFBmEQp7eu1F8Q==", + "optional": true, + "requires": { + "@img/sharp-libvips-darwin-x64": "1.1.0" + } + }, + "@img/sharp-libvips-darwin-arm64": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-arm64/-/sharp-libvips-darwin-arm64-1.1.0.tgz", + "integrity": "sha512-HZ/JUmPwrJSoM4DIQPv/BfNh9yrOA8tlBbqbLz4JZ5uew2+o22Ik+tHQJcih7QJuSa0zo5coHTfD5J8inqj9DA==", + "optional": true + }, + "@img/sharp-libvips-darwin-x64": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-x64/-/sharp-libvips-darwin-x64-1.1.0.tgz", + "integrity": "sha512-Xzc2ToEmHN+hfvsl9wja0RlnXEgpKNmftriQp6XzY/RaSfwD9th+MSh0WQKzUreLKKINb3afirxW7A0fz2YWuQ==", + "optional": true + }, + "@img/sharp-libvips-linux-arm": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm/-/sharp-libvips-linux-arm-1.1.0.tgz", + "integrity": "sha512-s8BAd0lwUIvYCJyRdFqvsj+BJIpDBSxs6ivrOPm/R7piTs5UIwY5OjXrP2bqXC9/moGsyRa37eYWYCOGVXxVrA==", + "optional": true + }, + "@img/sharp-libvips-linux-arm64": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm64/-/sharp-libvips-linux-arm64-1.1.0.tgz", + "integrity": "sha512-IVfGJa7gjChDET1dK9SekxFFdflarnUB8PwW8aGwEoF3oAsSDuNUTYS+SKDOyOJxQyDC1aPFMuRYLoDInyV9Ew==", + "optional": true + }, + "@img/sharp-libvips-linux-ppc64": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-ppc64/-/sharp-libvips-linux-ppc64-1.1.0.tgz", + "integrity": "sha512-tiXxFZFbhnkWE2LA8oQj7KYR+bWBkiV2nilRldT7bqoEZ4HiDOcePr9wVDAZPi/Id5fT1oY9iGnDq20cwUz8lQ==", + "optional": true + }, + "@img/sharp-libvips-linux-s390x": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-s390x/-/sharp-libvips-linux-s390x-1.1.0.tgz", + "integrity": "sha512-xukSwvhguw7COyzvmjydRb3x/09+21HykyapcZchiCUkTThEQEOMtBj9UhkaBRLuBrgLFzQ2wbxdeCCJW/jgJA==", + "optional": true + }, + "@img/sharp-libvips-linux-x64": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-x64/-/sharp-libvips-linux-x64-1.1.0.tgz", + "integrity": "sha512-yRj2+reB8iMg9W5sULM3S74jVS7zqSzHG3Ol/twnAAkAhnGQnpjj6e4ayUz7V+FpKypwgs82xbRdYtchTTUB+Q==", + "optional": true + }, + "@img/sharp-libvips-linuxmusl-arm64": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-arm64/-/sharp-libvips-linuxmusl-arm64-1.1.0.tgz", + "integrity": "sha512-jYZdG+whg0MDK+q2COKbYidaqW/WTz0cc1E+tMAusiDygrM4ypmSCjOJPmFTvHHJ8j/6cAGyeDWZOsK06tP33w==", + "optional": true + }, + "@img/sharp-libvips-linuxmusl-x64": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-x64/-/sharp-libvips-linuxmusl-x64-1.1.0.tgz", + "integrity": "sha512-wK7SBdwrAiycjXdkPnGCPLjYb9lD4l6Ze2gSdAGVZrEL05AOUJESWU2lhlC+Ffn5/G+VKuSm6zzbQSzFX/P65A==", + "optional": true + }, + "@img/sharp-linux-arm": { + "version": "0.34.1", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm/-/sharp-linux-arm-0.34.1.tgz", + "integrity": "sha512-anKiszvACti2sGy9CirTlNyk7BjjZPiML1jt2ZkTdcvpLU1YH6CXwRAZCA2UmRXnhiIftXQ7+Oh62Ji25W72jA==", + "optional": true, + "requires": { + "@img/sharp-libvips-linux-arm": "1.1.0" + } + }, + "@img/sharp-linux-arm64": { + "version": "0.34.1", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm64/-/sharp-linux-arm64-0.34.1.tgz", + "integrity": "sha512-kX2c+vbvaXC6vly1RDf/IWNXxrlxLNpBVWkdpRq5Ka7OOKj6nr66etKy2IENf6FtOgklkg9ZdGpEu9kwdlcwOQ==", + "optional": true, + "requires": { + "@img/sharp-libvips-linux-arm64": "1.1.0" + } + }, + "@img/sharp-linux-s390x": { + "version": "0.34.1", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-s390x/-/sharp-linux-s390x-0.34.1.tgz", + "integrity": "sha512-7s0KX2tI9mZI2buRipKIw2X1ufdTeaRgwmRabt5bi9chYfhur+/C1OXg3TKg/eag1W+6CCWLVmSauV1owmRPxA==", + "optional": true, + "requires": { + "@img/sharp-libvips-linux-s390x": "1.1.0" + } + }, + "@img/sharp-linux-x64": { + "version": "0.34.1", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-x64/-/sharp-linux-x64-0.34.1.tgz", + "integrity": "sha512-wExv7SH9nmoBW3Wr2gvQopX1k8q2g5V5Iag8Zk6AVENsjwd+3adjwxtp3Dcu2QhOXr8W9NusBU6XcQUohBZ5MA==", + "optional": true, + "requires": { + "@img/sharp-libvips-linux-x64": "1.1.0" + } + }, + "@img/sharp-linuxmusl-arm64": { + "version": "0.34.1", + "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-arm64/-/sharp-linuxmusl-arm64-0.34.1.tgz", + "integrity": "sha512-DfvyxzHxw4WGdPiTF0SOHnm11Xv4aQexvqhRDAoD00MzHekAj9a/jADXeXYCDFH/DzYruwHbXU7uz+H+nWmSOQ==", + "optional": true, + "requires": { + "@img/sharp-libvips-linuxmusl-arm64": "1.1.0" + } + }, + "@img/sharp-linuxmusl-x64": { + "version": "0.34.1", + "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-x64/-/sharp-linuxmusl-x64-0.34.1.tgz", + "integrity": "sha512-pax/kTR407vNb9qaSIiWVnQplPcGU8LRIJpDT5o8PdAx5aAA7AS3X9PS8Isw1/WfqgQorPotjrZL3Pqh6C5EBg==", + "optional": true, + "requires": { + "@img/sharp-libvips-linuxmusl-x64": "1.1.0" + } + }, + "@img/sharp-wasm32": { + "version": "0.34.1", + "resolved": "https://registry.npmjs.org/@img/sharp-wasm32/-/sharp-wasm32-0.34.1.tgz", + "integrity": "sha512-YDybQnYrLQfEpzGOQe7OKcyLUCML4YOXl428gOOzBgN6Gw0rv8dpsJ7PqTHxBnXnwXr8S1mYFSLSa727tpz0xg==", + "optional": true, + "requires": { + "@emnapi/runtime": "^1.4.0" + } + }, + "@img/sharp-win32-ia32": { + "version": "0.34.1", + "resolved": "https://registry.npmjs.org/@img/sharp-win32-ia32/-/sharp-win32-ia32-0.34.1.tgz", + "integrity": "sha512-WKf/NAZITnonBf3U1LfdjoMgNO5JYRSlhovhRhMxXVdvWYveM4kM3L8m35onYIdh75cOMCo1BexgVQcCDzyoWw==", + "optional": true + }, + "@img/sharp-win32-x64": { + "version": "0.34.1", + "resolved": "https://registry.npmjs.org/@img/sharp-win32-x64/-/sharp-win32-x64-0.34.1.tgz", + "integrity": "sha512-hw1iIAHpNE8q3uMIRCgGOeDoz9KtFNarFLQclLxr/LK1VBkj8nby18RjFvr6aP7USRYAjTZW6yisnBWMX571Tw==", + "optional": true + }, + "@lit-labs/ssr-dom-shim": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@lit-labs/ssr-dom-shim/-/ssr-dom-shim-1.3.0.tgz", + "integrity": "sha512-nQIWonJ6eFAvUUrSlwyHDm/aE8PBDu5kRpL0vHMg6K8fK3Diq1xdPjTnsJSwxABhaZ+5eBi1btQB5ShUTKo4nQ==" + }, + "@lit/reactive-element": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@lit/reactive-element/-/reactive-element-2.1.0.tgz", + "integrity": "sha512-L2qyoZSQClcBmq0qajBVbhYEcG6iK0XfLn66ifLe/RfC0/ihpc+pl0Wdn8bJ8o+hj38cG0fGXRgSS20MuXn7qA==", + "requires": { + "@lit-labs/ssr-dom-shim": "^1.2.0" + } + }, + "@metamask/eth-json-rpc-provider": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@metamask/eth-json-rpc-provider/-/eth-json-rpc-provider-1.0.1.tgz", + "integrity": "sha512-whiUMPlAOrVGmX8aKYVPvlKyG4CpQXiNNyt74vE1xb5sPvmx5oA7B/kOi/JdBvhGQq97U1/AVdXEdk2zkP8qyA==", + "requires": { + "@metamask/json-rpc-engine": "^7.0.0", + "@metamask/safe-event-emitter": "^3.0.0", + "@metamask/utils": "^5.0.1" + }, + "dependencies": { + "@metamask/json-rpc-engine": { + "version": "7.3.3", + "resolved": "https://registry.npmjs.org/@metamask/json-rpc-engine/-/json-rpc-engine-7.3.3.tgz", + "integrity": "sha512-dwZPq8wx9yV3IX2caLi9q9xZBw2XeIoYqdyihDDDpuHVCEiqadJLwqM3zy+uwf6F1QYQ65A8aOMQg1Uw7LMLNg==", + "requires": { + "@metamask/rpc-errors": "^6.2.1", + "@metamask/safe-event-emitter": "^3.0.0", + "@metamask/utils": "^8.3.0" + }, + "dependencies": { + "@metamask/utils": { + "version": "8.5.0", + "resolved": "https://registry.npmjs.org/@metamask/utils/-/utils-8.5.0.tgz", + "integrity": "sha512-I6bkduevXb72TIM9q2LRO63JSsF9EXduh3sBr9oybNX2hNNpr/j1tEjXrsG0Uabm4MJ1xkGAQEMwifvKZIkyxQ==", + "requires": { + "@ethereumjs/tx": "^4.2.0", + "@metamask/superstruct": "^3.0.0", + "@noble/hashes": "^1.3.1", + "@scure/base": "^1.1.3", + "@types/debug": "^4.1.7", + "debug": "^4.3.4", + "pony-cause": "^2.1.10", + "semver": "^7.5.4", + "uuid": "^9.0.1" + } + } + } + }, + "@metamask/utils": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/@metamask/utils/-/utils-5.0.2.tgz", + "integrity": "sha512-yfmE79bRQtnMzarnKfX7AEJBwFTxvTyw3nBQlu/5rmGXrjAeAMltoGxO62TFurxrQAFMNa/fEjIHNvungZp0+g==", + "requires": { + "@ethereumjs/tx": "^4.1.2", + "@types/debug": "^4.1.7", + "debug": "^4.3.4", + "semver": "^7.3.8", + "superstruct": "^1.0.3" + } + }, + "uuid": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", + "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==" + } + } + }, + "@metamask/json-rpc-engine": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/@metamask/json-rpc-engine/-/json-rpc-engine-8.0.2.tgz", + "integrity": "sha512-IoQPmql8q7ABLruW7i4EYVHWUbF74yrp63bRuXV5Zf9BQwcn5H9Ww1eLtROYvI1bUXwOiHZ6qT5CWTrDc/t/AA==", + "requires": { + "@metamask/rpc-errors": "^6.2.1", + "@metamask/safe-event-emitter": "^3.0.0", + "@metamask/utils": "^8.3.0" + } + }, + "@metamask/json-rpc-middleware-stream": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@metamask/json-rpc-middleware-stream/-/json-rpc-middleware-stream-7.0.2.tgz", + "integrity": "sha512-yUdzsJK04Ev98Ck4D7lmRNQ8FPioXYhEUZOMS01LXW8qTvPGiRVXmVltj2p4wrLkh0vW7u6nv0mNl5xzC5Qmfg==", + "requires": { + "@metamask/json-rpc-engine": "^8.0.2", + "@metamask/safe-event-emitter": "^3.0.0", + "@metamask/utils": "^8.3.0", + "readable-stream": "^3.6.2" + } + }, + "@metamask/object-multiplex": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@metamask/object-multiplex/-/object-multiplex-2.1.0.tgz", + "integrity": "sha512-4vKIiv0DQxljcXwfpnbsXcfa5glMj5Zg9mqn4xpIWqkv6uJ2ma5/GtUfLFSxhlxnR8asRMv8dDmWya1Tc1sDFA==", + "requires": { + "once": "^1.4.0", + "readable-stream": "^3.6.2" + } + }, + "@metamask/onboarding": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@metamask/onboarding/-/onboarding-1.0.1.tgz", + "integrity": "sha512-FqHhAsCI+Vacx2qa5mAFcWNSrTcVGMNjzxVgaX8ECSny/BJ9/vgXP9V7WF/8vb9DltPeQkxr+Fnfmm6GHfmdTQ==", + "requires": { + "bowser": "^2.9.0" + } + }, + "@metamask/providers": { + "version": "16.1.0", + "resolved": "https://registry.npmjs.org/@metamask/providers/-/providers-16.1.0.tgz", + "integrity": "sha512-znVCvux30+3SaUwcUGaSf+pUckzT5ukPRpcBmy+muBLC0yaWnBcvDqGfcsw6CBIenUdFrVoAFa8B6jsuCY/a+g==", + "requires": { + "@metamask/json-rpc-engine": "^8.0.1", + "@metamask/json-rpc-middleware-stream": "^7.0.1", + "@metamask/object-multiplex": "^2.0.0", + "@metamask/rpc-errors": "^6.2.1", + "@metamask/safe-event-emitter": "^3.1.1", + "@metamask/utils": "^8.3.0", + "detect-browser": "^5.2.0", + "extension-port-stream": "^3.0.0", + "fast-deep-equal": "^3.1.3", + "is-stream": "^2.0.0", + "readable-stream": "^3.6.2", + "webextension-polyfill": "^0.10.0" + } + }, + "@metamask/rpc-errors": { + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/@metamask/rpc-errors/-/rpc-errors-6.4.0.tgz", + "integrity": "sha512-1ugFO1UoirU2esS3juZanS/Fo8C8XYocCuBpfZI5N7ECtoG+zu0wF+uWZASik6CkO6w9n/Iebt4iI4pT0vptpg==", + "requires": { + "@metamask/utils": "^9.0.0", + "fast-safe-stringify": "^2.0.6" + }, + "dependencies": { + "@metamask/utils": { + "version": "9.3.0", + "resolved": "https://registry.npmjs.org/@metamask/utils/-/utils-9.3.0.tgz", + "integrity": "sha512-w8CVbdkDrVXFJbfBSlDfafDR6BAkpDmv1bC1UJVCoVny5tW2RKAdn9i68Xf7asYT4TnUhl/hN4zfUiKQq9II4g==", + "requires": { + "@ethereumjs/tx": "^4.2.0", + "@metamask/superstruct": "^3.1.0", + "@noble/hashes": "^1.3.1", + "@scure/base": "^1.1.3", + "@types/debug": "^4.1.7", + "debug": "^4.3.4", + "pony-cause": "^2.1.10", + "semver": "^7.5.4", + "uuid": "^9.0.1" + } + }, + "uuid": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", + "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==" + } + } + }, + "@metamask/safe-event-emitter": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@metamask/safe-event-emitter/-/safe-event-emitter-3.1.2.tgz", + "integrity": "sha512-5yb2gMI1BDm0JybZezeoX/3XhPDOtTbcFvpTXM9kxsoZjPZFh4XciqRbpD6N86HYZqWDhEaKUDuOyR0sQHEjMA==" + }, + "@metamask/sdk": { + "version": "0.32.0", + "resolved": "https://registry.npmjs.org/@metamask/sdk/-/sdk-0.32.0.tgz", + "integrity": "sha512-WmGAlP1oBuD9hk4CsdlG1WJFuPtYJY+dnTHJMeCyohTWD2GgkcLMUUuvu9lO1/NVzuOoSi1OrnjbuY1O/1NZ1g==", + "requires": { + "@babel/runtime": "^7.26.0", + "@metamask/onboarding": "^1.0.1", + "@metamask/providers": "16.1.0", + "@metamask/sdk-communication-layer": "0.32.0", + "@metamask/sdk-install-modal-web": "0.32.0", + "@paulmillr/qr": "^0.2.1", + "bowser": "^2.9.0", + "cross-fetch": "^4.0.0", + "debug": "^4.3.4", + "eciesjs": "^0.4.11", + "eth-rpc-errors": "^4.0.3", + "eventemitter2": "^6.4.9", + "obj-multiplex": "^1.0.0", + "pump": "^3.0.0", + "readable-stream": "^3.6.2", + "socket.io-client": "^4.5.1", + "tslib": "^2.6.0", + "util": "^0.12.4", + "uuid": "^8.3.2" + } + }, + "@metamask/sdk-communication-layer": { + "version": "0.32.0", + "resolved": "https://registry.npmjs.org/@metamask/sdk-communication-layer/-/sdk-communication-layer-0.32.0.tgz", + "integrity": "sha512-dmj/KFjMi1fsdZGIOtbhxdg3amxhKL/A5BqSU4uh/SyDKPub/OT+x5pX8bGjpTL1WPWY/Q0OIlvFyX3VWnT06Q==", + "requires": { + "bufferutil": "^4.0.8", + "date-fns": "^2.29.3", + "debug": "^4.3.4", + "utf-8-validate": "^5.0.2", + "uuid": "^8.3.2" + } + }, + "@metamask/sdk-install-modal-web": { + "version": "0.32.0", + "resolved": "https://registry.npmjs.org/@metamask/sdk-install-modal-web/-/sdk-install-modal-web-0.32.0.tgz", + "integrity": "sha512-TFoktj0JgfWnQaL3yFkApqNwcaqJ+dw4xcnrJueMP3aXkSNev2Ido+WVNOg4IIMxnmOrfAC9t0UJ0u/dC9MjOQ==", + "requires": { + "@paulmillr/qr": "^0.2.1" + } + }, + "@metamask/superstruct": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/@metamask/superstruct/-/superstruct-3.2.1.tgz", + "integrity": "sha512-fLgJnDOXFmuVlB38rUN5SmU7hAFQcCjrg3Vrxz67KTY7YHFnSNEKvX4avmEBdOI0yTCxZjwMCFEqsC8k2+Wd3g==" + }, + "@metamask/utils": { + "version": "8.5.0", + "resolved": "https://registry.npmjs.org/@metamask/utils/-/utils-8.5.0.tgz", + "integrity": "sha512-I6bkduevXb72TIM9q2LRO63JSsF9EXduh3sBr9oybNX2hNNpr/j1tEjXrsG0Uabm4MJ1xkGAQEMwifvKZIkyxQ==", + "requires": { + "@ethereumjs/tx": "^4.2.0", + "@metamask/superstruct": "^3.0.0", + "@noble/hashes": "^1.3.1", + "@scure/base": "^1.1.3", + "@types/debug": "^4.1.7", + "debug": "^4.3.4", + "pony-cause": "^2.1.10", + "semver": "^7.5.4", + "uuid": "^9.0.1" + }, + "dependencies": { + "uuid": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", + "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==" + } + } + }, + "@motionone/animation": { + "version": "10.18.0", + "resolved": "https://registry.npmjs.org/@motionone/animation/-/animation-10.18.0.tgz", + "integrity": "sha512-9z2p5GFGCm0gBsZbi8rVMOAJCtw1WqBTIPw3ozk06gDvZInBPIsQcHgYogEJ4yuHJ+akuW8g1SEIOpTOvYs8hw==", + "requires": { + "@motionone/easing": "^10.18.0", + "@motionone/types": "^10.17.1", + "@motionone/utils": "^10.18.0", + "tslib": "^2.3.1" + } + }, + "@motionone/dom": { + "version": "10.18.0", + "resolved": "https://registry.npmjs.org/@motionone/dom/-/dom-10.18.0.tgz", + "integrity": "sha512-bKLP7E0eyO4B2UaHBBN55tnppwRnaE3KFfh3Ps9HhnAkar3Cb69kUCJY9as8LrccVYKgHA+JY5dOQqJLOPhF5A==", + "requires": { + "@motionone/animation": "^10.18.0", + "@motionone/generators": "^10.18.0", + "@motionone/types": "^10.17.1", + "@motionone/utils": "^10.18.0", + "hey-listen": "^1.0.8", + "tslib": "^2.3.1" + } + }, + "@motionone/easing": { + "version": "10.18.0", + "resolved": "https://registry.npmjs.org/@motionone/easing/-/easing-10.18.0.tgz", + "integrity": "sha512-VcjByo7XpdLS4o9T8t99JtgxkdMcNWD3yHU/n6CLEz3bkmKDRZyYQ/wmSf6daum8ZXqfUAgFeCZSpJZIMxaCzg==", + "requires": { + "@motionone/utils": "^10.18.0", + "tslib": "^2.3.1" + } + }, + "@motionone/generators": { + "version": "10.18.0", + "resolved": "https://registry.npmjs.org/@motionone/generators/-/generators-10.18.0.tgz", + "integrity": "sha512-+qfkC2DtkDj4tHPu+AFKVfR/C30O1vYdvsGYaR13W/1cczPrrcjdvYCj0VLFuRMN+lP1xvpNZHCRNM4fBzn1jg==", + "requires": { + "@motionone/types": "^10.17.1", + "@motionone/utils": "^10.18.0", + "tslib": "^2.3.1" + } + }, + "@motionone/svelte": { + "version": "10.16.4", + "resolved": "https://registry.npmjs.org/@motionone/svelte/-/svelte-10.16.4.tgz", + "integrity": "sha512-zRVqk20lD1xqe+yEDZhMYgftsuHc25+9JSo+r0a0OWUJFocjSV9D/+UGhX4xgJsuwB9acPzXLr20w40VnY2PQA==", + "requires": { + "@motionone/dom": "^10.16.4", + "tslib": "^2.3.1" + } + }, + "@motionone/types": { + "version": "10.17.1", + "resolved": "https://registry.npmjs.org/@motionone/types/-/types-10.17.1.tgz", + "integrity": "sha512-KaC4kgiODDz8hswCrS0btrVrzyU2CSQKO7Ps90ibBVSQmjkrt2teqta6/sOG59v7+dPnKMAg13jyqtMKV2yJ7A==" + }, + "@motionone/utils": { + "version": "10.18.0", + "resolved": "https://registry.npmjs.org/@motionone/utils/-/utils-10.18.0.tgz", + "integrity": "sha512-3XVF7sgyTSI2KWvTf6uLlBJ5iAgRgmvp3bpuOiQJvInd4nZ19ET8lX5unn30SlmRH7hXbBbH+Gxd0m0klJ3Xtw==", + "requires": { + "@motionone/types": "^10.17.1", + "hey-listen": "^1.0.8", + "tslib": "^2.3.1" + } + }, + "@motionone/vue": { + "version": "10.16.4", + "resolved": "https://registry.npmjs.org/@motionone/vue/-/vue-10.16.4.tgz", + "integrity": "sha512-z10PF9JV6SbjFq+/rYabM+8CVlMokgl8RFGvieSGNTmrkQanfHn+15XBrhG3BgUfvmTeSeyShfOHpG0i9zEdcg==", + "requires": { + "@motionone/dom": "^10.16.4", + "tslib": "^2.3.1" + } + }, + "@napi-rs/wasm-runtime": { + "version": "0.2.9", + "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-0.2.9.tgz", + "integrity": "sha512-OKRBiajrrxB9ATokgEQoG87Z25c67pCpYcCwmXYX8PBftC9pBfN18gnm/fh1wurSLEKIAt+QRFLFCQISrb66Jg==", + "dev": true, + "optional": true, + "requires": { + "@emnapi/core": "^1.4.0", + "@emnapi/runtime": "^1.4.0", + "@tybys/wasm-util": "^0.9.0" + } + }, + "@next/env": { + "version": "15.3.0", + "resolved": "https://registry.npmjs.org/@next/env/-/env-15.3.0.tgz", + "integrity": "sha512-6mDmHX24nWlHOlbwUiAOmMyY7KELimmi+ed8qWcJYjqXeC+G6JzPZ3QosOAfjNwgMIzwhXBiRiCgdh8axTTdTA==" + }, + "@next/eslint-plugin-next": { + "version": "15.1.6", + "resolved": "https://registry.npmjs.org/@next/eslint-plugin-next/-/eslint-plugin-next-15.1.6.tgz", + "integrity": "sha512-+slMxhTgILUntZDGNgsKEYHUvpn72WP1YTlkmEhS51vnVd7S9jEEy0n9YAMcI21vUG4akTw9voWH02lrClt/yw==", + "dev": true, + "requires": { + "fast-glob": "3.3.1" + } + }, + "@next/swc-darwin-arm64": { + "version": "15.3.0", + "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-15.3.0.tgz", + "integrity": "sha512-PDQcByT0ZfF2q7QR9d+PNj3wlNN4K6Q8JoHMwFyk252gWo4gKt7BF8Y2+KBgDjTFBETXZ/TkBEUY7NIIY7A/Kw==", + "optional": true + }, + "@next/swc-darwin-x64": { + "version": "15.3.0", + "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-15.3.0.tgz", + "integrity": "sha512-m+eO21yg80En8HJ5c49AOQpFDq+nP51nu88ZOMCorvw3g//8g1JSUsEiPSiFpJo1KCTQ+jm9H0hwXK49H/RmXg==", + "optional": true + }, + "@next/swc-linux-arm64-gnu": { + "version": "15.3.0", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-15.3.0.tgz", + "integrity": "sha512-H0Kk04ZNzb6Aq/G6e0un4B3HekPnyy6D+eUBYPJv9Abx8KDYgNMWzKt4Qhj57HXV3sTTjsfc1Trc1SxuhQB+Tg==", + "optional": true + }, + "@next/swc-linux-arm64-musl": { + "version": "15.3.0", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-15.3.0.tgz", + "integrity": "sha512-k8GVkdMrh/+J9uIv/GpnHakzgDQhrprJ/FbGQvwWmstaeFG06nnAoZCJV+wO/bb603iKV1BXt4gHG+s2buJqZA==", + "optional": true + }, + "@next/swc-linux-x64-gnu": { + "version": "15.3.0", + "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-15.3.0.tgz", + "integrity": "sha512-ZMQ9yzDEts/vkpFLRAqfYO1wSpIJGlQNK9gZ09PgyjBJUmg8F/bb8fw2EXKgEaHbCc4gmqMpDfh+T07qUphp9A==", + "optional": true + }, + "@next/swc-linux-x64-musl": { + "version": "15.3.0", + "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-15.3.0.tgz", + "integrity": "sha512-RFwq5VKYTw9TMr4T3e5HRP6T4RiAzfDJ6XsxH8j/ZeYq2aLsBqCkFzwMI0FmnSsLaUbOb46Uov0VvN3UciHX5A==", + "optional": true + }, + "@next/swc-win32-arm64-msvc": { + "version": "15.3.0", + "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-15.3.0.tgz", + "integrity": "sha512-a7kUbqa/k09xPjfCl0RSVAvEjAkYBYxUzSVAzk2ptXiNEL+4bDBo9wNC43G/osLA/EOGzG4CuNRFnQyIHfkRgQ==", + "optional": true + }, + "@next/swc-win32-x64-msvc": { + "version": "15.3.0", + "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-15.3.0.tgz", + "integrity": "sha512-vHUQS4YVGJPmpjn7r5lEZuMhK5UQBNBRSB+iGDvJjaNk649pTIcRluDWNb9siunyLLiu/LDPHfvxBtNamyuLTw==", + "optional": true + }, + "@noble/ciphers": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@noble/ciphers/-/ciphers-1.2.1.tgz", + "integrity": "sha512-rONPWMC7PeExE077uLE4oqWrZ1IvAfz3oH9LibVAcVCopJiA9R62uavnbEzdkVmJYI6M6Zgkbeb07+tWjlq2XA==" + }, + "@noble/curves": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.8.0.tgz", + "integrity": "sha512-j84kjAbzEnQHaSIhRPUmB3/eVXu2k3dKPl2LOrR8fSOIL+89U+7lV117EWHtq/GHM3ReGHM46iRBdZfpc4HRUQ==", + "requires": { + "@noble/hashes": "1.7.0" + }, + "dependencies": { + "@noble/hashes": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.7.0.tgz", + "integrity": "sha512-HXydb0DgzTpDPwbVeDGCG1gIu7X6+AuU6Zl6av/E/KG8LMsvPntvq+w17CHRpKBmN6Ybdrt1eP3k4cj8DJa78w==" + } + } + }, + "@noble/hashes": { + "version": "1.7.2", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.7.2.tgz", + "integrity": "sha512-biZ0NUSxyjLLqo6KxEJ1b+C2NAx0wtDoFvCaXHGgUkeHzf3Xc1xKumFKREuT7f7DARNZ/slvYUwFG6B0f2b6hQ==" + }, + "@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dev": true, + "requires": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + } + }, + "@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true + }, + "@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dev": true, + "requires": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + } + }, + "@nolyfill/is-core-module": { + "version": "1.0.39", + "resolved": "https://registry.npmjs.org/@nolyfill/is-core-module/-/is-core-module-1.0.39.tgz", + "integrity": "sha512-nn5ozdjYQpUCZlWGuxcJY/KpxkWQs4DcbMCmKojjyrYDEAGy4Ce19NN4v5MduafTwJlbKc99UA8YhSVqq9yPZA==", + "dev": true + }, + "@paulmillr/qr": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/@paulmillr/qr/-/qr-0.2.1.tgz", + "integrity": "sha512-IHnV6A+zxU7XwmKFinmYjUcwlyK9+xkG3/s9KcQhI9BjQKycrJ1JRO+FbNYPwZiPKW3je/DR0k7w8/gLa5eaxQ==" + }, + "@reown/appkit": { + "version": "1.7.3", + "resolved": "https://registry.npmjs.org/@reown/appkit/-/appkit-1.7.3.tgz", + "integrity": "sha512-aA/UIwi/dVzxEB62xlw3qxHa3RK1YcPMjNxoGj/fHNCqL2qWmbcOXT7coCUa9RG7/Bh26FZ3vdVT2v71j6hebQ==", + "requires": { + "@reown/appkit-common": "1.7.3", + "@reown/appkit-controllers": "1.7.3", + "@reown/appkit-polyfills": "1.7.3", + "@reown/appkit-scaffold-ui": "1.7.3", + "@reown/appkit-ui": "1.7.3", + "@reown/appkit-utils": "1.7.3", + "@reown/appkit-wallet": "1.7.3", + "@walletconnect/types": "2.19.2", + "@walletconnect/universal-provider": "2.19.2", + "bs58": "6.0.0", + "valtio": "1.13.2", + "viem": ">=2.23.11" + } + }, + "@reown/appkit-adapter-wagmi": { + "version": "1.7.3", + "resolved": "https://registry.npmjs.org/@reown/appkit-adapter-wagmi/-/appkit-adapter-wagmi-1.7.3.tgz", + "integrity": "sha512-4N8OjR2kf/OzAbAsau5GMhmqhBTqk/oZVzAtsN2NJIjH57itMk4JNfhcKsnhrOK6lqjrYraTFCWq6ptm2N31bQ==", + "requires": { + "@reown/appkit": "1.7.3", + "@reown/appkit-common": "1.7.3", + "@reown/appkit-controllers": "1.7.3", + "@reown/appkit-polyfills": "1.7.3", + "@reown/appkit-scaffold-ui": "1.7.3", + "@reown/appkit-utils": "1.7.3", + "@reown/appkit-wallet": "1.7.3", + "@wagmi/connectors": ">=5.7.11", + "@walletconnect/universal-provider": "2.19.2", + "valtio": "1.13.2" + } + }, + "@reown/appkit-common": { + "version": "1.7.3", + "resolved": "https://registry.npmjs.org/@reown/appkit-common/-/appkit-common-1.7.3.tgz", + "integrity": "sha512-wKTr6N3z8ly17cc51xBEVkZK4zAd8J1m7RubgsdQ1olFY9YJGe61RYoNv9yFjt6tUVeYT+z7iMUwPhX2PziefQ==", + "requires": { + "big.js": "6.2.2", + "dayjs": "1.11.13", + "viem": ">=2.23.11" + } + }, + "@reown/appkit-controllers": { + "version": "1.7.3", + "resolved": "https://registry.npmjs.org/@reown/appkit-controllers/-/appkit-controllers-1.7.3.tgz", + "integrity": "sha512-aqAcX/nZe0gwqjncyCkVrAk3lEw0qZ9xGrdLOmA207RreO4J0Vxu8OJXCBn4C2AUI2OpBxCPah+vyuKTUJTeHQ==", + "requires": { + "@reown/appkit-common": "1.7.3", + "@reown/appkit-wallet": "1.7.3", + "@walletconnect/universal-provider": "2.19.2", + "valtio": "1.13.2", + "viem": ">=2.23.11" + } + }, + "@reown/appkit-polyfills": { + "version": "1.7.3", + "resolved": "https://registry.npmjs.org/@reown/appkit-polyfills/-/appkit-polyfills-1.7.3.tgz", + "integrity": "sha512-vQUiAyI7WiNTUV4iNwv27iigdeg8JJTEo6ftUowIrKZ2/gtE2YdMtGpavuztT/qrXhrIlTjDGp5CIyv9WOTu4g==", + "requires": { + "buffer": "6.0.3" + } + }, + "@reown/appkit-scaffold-ui": { + "version": "1.7.3", + "resolved": "https://registry.npmjs.org/@reown/appkit-scaffold-ui/-/appkit-scaffold-ui-1.7.3.tgz", + "integrity": "sha512-ssB15fcjmoKQ+VfoCo7JIIK66a4SXFpCH8uK1CsMmXmKIKqPN54ohLo291fniV6mKtnJxh5Xm68slGtGrO3bmA==", + "requires": { + "@reown/appkit-common": "1.7.3", + "@reown/appkit-controllers": "1.7.3", + "@reown/appkit-ui": "1.7.3", + "@reown/appkit-utils": "1.7.3", + "@reown/appkit-wallet": "1.7.3", + "lit": "3.1.0" + } + }, + "@reown/appkit-ui": { + "version": "1.7.3", + "resolved": "https://registry.npmjs.org/@reown/appkit-ui/-/appkit-ui-1.7.3.tgz", + "integrity": "sha512-zKmFIjLp0X24pF9KtPtSHmdsh/RjEWIvz+faIbPGm4tQbwcxdg9A35HeoP0rMgKYx49SX51LgPwVXne2gYacqQ==", + "requires": { + "@reown/appkit-common": "1.7.3", + "@reown/appkit-controllers": "1.7.3", + "@reown/appkit-wallet": "1.7.3", + "lit": "3.1.0", + "qrcode": "1.5.3" + } + }, + "@reown/appkit-utils": { + "version": "1.7.3", + "resolved": "https://registry.npmjs.org/@reown/appkit-utils/-/appkit-utils-1.7.3.tgz", + "integrity": "sha512-8/MNhmfri+2uu8WzBhZ5jm5llofOIa1dyXDXRC/hfrmGmCFJdrQKPpuqOFYoimo2s2g70pK4PYefvOKgZOWzgg==", + "requires": { + "@reown/appkit-common": "1.7.3", + "@reown/appkit-controllers": "1.7.3", + "@reown/appkit-polyfills": "1.7.3", + "@reown/appkit-wallet": "1.7.3", + "@walletconnect/logger": "2.1.2", + "@walletconnect/universal-provider": "2.19.2", + "valtio": "1.13.2", + "viem": ">=2.23.11" + } + }, + "@reown/appkit-wallet": { + "version": "1.7.3", + "resolved": "https://registry.npmjs.org/@reown/appkit-wallet/-/appkit-wallet-1.7.3.tgz", + "integrity": "sha512-D0pExd0QUE71ursQPp3pq/0iFrz2oz87tOyFifrPANvH5X0RQCYn/34/kXr+BFVQzNFfCBDlYP+CniNA/S0KiQ==", + "requires": { + "@reown/appkit-common": "1.7.3", + "@reown/appkit-polyfills": "1.7.3", + "@walletconnect/logger": "2.1.2", + "zod": "3.22.4" + } + }, + "@rtsao/scc": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@rtsao/scc/-/scc-1.1.0.tgz", + "integrity": "sha512-zt6OdqaDoOnJ1ZYsCYGt9YmWzDXl4vQdKTyJev62gFhRGKdx7mcT54V9KIjg+d2wi9EXsPvAPKe7i7WjfVWB8g==", + "dev": true + }, + "@rushstack/eslint-patch": { + "version": "1.11.0", + "resolved": "https://registry.npmjs.org/@rushstack/eslint-patch/-/eslint-patch-1.11.0.tgz", + "integrity": "sha512-zxnHvoMQVqewTJr/W4pKjF0bMGiKJv1WX7bSrkl46Hg0QjESbzBROWK0Wg4RphzSOS5Jiy7eFimmM3UgMrMZbQ==", + "dev": true + }, + "@safe-global/safe-apps-provider": { + "version": "0.18.5", + "resolved": "https://registry.npmjs.org/@safe-global/safe-apps-provider/-/safe-apps-provider-0.18.5.tgz", + "integrity": "sha512-9v9wjBi3TwLsEJ3C2ujYoexp3pFJ0omDLH/GX91e2QB+uwCKTBYyhxFSrTQ9qzoyQd+bfsk4gjOGW87QcJhf7g==", + "requires": { + "@safe-global/safe-apps-sdk": "^9.1.0", + "events": "^3.3.0" + } + }, + "@safe-global/safe-apps-sdk": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/@safe-global/safe-apps-sdk/-/safe-apps-sdk-9.1.0.tgz", + "integrity": "sha512-N5p/ulfnnA2Pi2M3YeWjULeWbjo7ei22JwU/IXnhoHzKq3pYCN6ynL9mJBOlvDVv892EgLPCWCOwQk/uBT2v0Q==", + "requires": { + "@safe-global/safe-gateway-typescript-sdk": "^3.5.3", + "viem": "^2.1.1" + } + }, + "@safe-global/safe-gateway-typescript-sdk": { + "version": "3.22.9", + "resolved": "https://registry.npmjs.org/@safe-global/safe-gateway-typescript-sdk/-/safe-gateway-typescript-sdk-3.22.9.tgz", + "integrity": "sha512-7ojVK/crhOaGowEO8uYWaopZzcr5rR76emgllGIfjCLR70aY4PbASpi9Pbs+7jIRzPDBBkM0RBo+zYx5UduX8Q==" + }, + "@scure/base": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.2.4.tgz", + "integrity": "sha512-5Yy9czTO47mqz+/J8GM6GIId4umdCk1wc1q8rKERQulIoc8VP9pzDcghv10Tl2E7R96ZUx/PhND3ESYUQX8NuQ==" + }, + "@scure/bip32": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.4.0.tgz", + "integrity": "sha512-sVUpc0Vq3tXCkDGYVWGIZTRfnvu8LoTDaev7vbwh0omSvVORONr960MQWdKqJDCReIEmTj3PAr73O3aoxz7OPg==", + "requires": { + "@noble/curves": "~1.4.0", + "@noble/hashes": "~1.4.0", + "@scure/base": "~1.1.6" + }, + "dependencies": { + "@noble/curves": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.4.2.tgz", + "integrity": "sha512-TavHr8qycMChk8UwMld0ZDRvatedkzWfH8IiaeGCfymOP5i0hSCozz9vHOL0nkwk7HRMlFnAiKpS2jrUmSybcw==", + "requires": { + "@noble/hashes": "1.4.0" + } + }, + "@noble/hashes": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.4.0.tgz", + "integrity": "sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg==" + }, + "@scure/base": { + "version": "1.1.9", + "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.1.9.tgz", + "integrity": "sha512-8YKhl8GHiNI/pU2VMaofa2Tor7PJRAjwQLBBuilkJ9L5+13yVbC7JO/wS7piioAvPSwR3JKM1IJ/u4xQzbcXKg==" + } + } + }, + "@scure/bip39": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.3.0.tgz", + "integrity": "sha512-disdg7gHuTDZtY+ZdkmLpPCk7fxZSu3gBiEGuoC1XYxv9cGx3Z6cpTggCgW6odSOOIXCiDjuGejW+aJKCY/pIQ==", + "requires": { + "@noble/hashes": "~1.4.0", + "@scure/base": "~1.1.6" + }, + "dependencies": { + "@noble/hashes": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.4.0.tgz", + "integrity": "sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg==" + }, + "@scure/base": { + "version": "1.1.9", + "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.1.9.tgz", + "integrity": "sha512-8YKhl8GHiNI/pU2VMaofa2Tor7PJRAjwQLBBuilkJ9L5+13yVbC7JO/wS7piioAvPSwR3JKM1IJ/u4xQzbcXKg==" + } + } + }, + "@socket.io/component-emitter": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@socket.io/component-emitter/-/component-emitter-3.1.2.tgz", + "integrity": "sha512-9BCxFwvbGg/RsZK9tjXd8s4UcwR0MWeFQ1XEKIQVVvAGJyINdrqKMcTRyLoK8Rse1GjzLV9cwjWV1olXRWEXVA==" + }, + "@swc/counter": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/@swc/counter/-/counter-0.1.3.tgz", + "integrity": "sha512-e2BR4lsJkkRlKZ/qCHPw9ZaSxc0MVUd7gtbtaB7aMvHeJVYe8sOB8DBZkP2DtISHGSku9sCK6T6cnY0CtXrOCQ==" + }, + "@swc/helpers": { + "version": "0.5.15", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.15.tgz", + "integrity": "sha512-JQ5TuMi45Owi4/BIMAJBoSQoOJu12oOk/gADqlcUL9JEdHB8vyjUSsxqeNXnmXHjYKMi2WcYtezGEEhqUI/E2g==", + "requires": { + "tslib": "^2.8.0" + } + }, + "@tanstack/query-core": { + "version": "5.74.4", + "resolved": "https://registry.npmjs.org/@tanstack/query-core/-/query-core-5.74.4.tgz", + "integrity": "sha512-YuG0A0+3i9b2Gfo9fkmNnkUWh5+5cFhWBN0pJAHkHilTx6A0nv8kepkk4T4GRt4e5ahbtFj2eTtkiPcVU1xO4A==" + }, + "@tanstack/react-query": { + "version": "5.74.4", + "resolved": "https://registry.npmjs.org/@tanstack/react-query/-/react-query-5.74.4.tgz", + "integrity": "sha512-mAbxw60d4ffQ4qmRYfkO1xzRBPUEf/72Dgo3qqea0J66nIKuDTLEqQt0ku++SDFlMGMnB6uKDnEG1xD/TDse4Q==", + "requires": { + "@tanstack/query-core": "5.74.4" + } + }, + "@tybys/wasm-util": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.9.0.tgz", + "integrity": "sha512-6+7nlbMVX/PVDCwaIQ8nTOPveOcFLSt8GcXdx8hD0bt39uWxYT88uXzqTd4fTvqta7oeUJqudepapKNt2DYJFw==", + "dev": true, + "optional": true, + "requires": { + "tslib": "^2.4.0" + } + }, + "@types/debug": { + "version": "4.1.12", + "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.12.tgz", + "integrity": "sha512-vIChWdVG3LG1SMxEvI/AK+FWJthlrqlTu7fbrlywTkkaONwk/UAGaULXRlf8vkzFBLVm0zkMdCquhL5aOjhXPQ==", + "requires": { + "@types/ms": "*" + } + }, + "@types/estree": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.7.tgz", + "integrity": "sha512-w28IoSUCJpidD/TGviZwwMJckNESJZXFu7NBZ5YJ4mEUnNraUn9Pm8HSZm/jDF1pDWYKspWE7oVphigUPRakIQ==", + "dev": true + }, + "@types/json-schema": { + "version": "7.0.15", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", + "dev": true + }, + "@types/json5": { + "version": "0.0.29", + "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", + "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", + "dev": true + }, + "@types/ms": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@types/ms/-/ms-2.1.0.tgz", + "integrity": "sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA==" + }, + "@types/node": { + "version": "22.14.1", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.14.1.tgz", + "integrity": "sha512-u0HuPQwe/dHrItgHHpmw3N2fYCR6x4ivMNbPHRkBVP4CvN+kiRrKHWk3i8tXiO/joPwXLMYvF9TTF0eqgHIuOw==", + "dev": true, + "requires": { + "undici-types": "~6.21.0" + } + }, + "@types/react": { + "version": "19.1.2", + "resolved": "https://registry.npmjs.org/@types/react/-/react-19.1.2.tgz", + "integrity": "sha512-oxLPMytKchWGbnQM9O7D67uPa9paTNxO7jVoNMXgkkErULBPhPARCfkKL9ytcIJJRGjbsVwW4ugJzyFFvm/Tiw==", + "devOptional": true, + "requires": { + "csstype": "^3.0.2" + } + }, + "@types/react-dom": { + "version": "19.1.2", + "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.1.2.tgz", + "integrity": "sha512-XGJkWF41Qq305SKWEILa1O8vzhb3aOo3ogBlSmiqNko/WmRb6QIaweuZCXjKygVDXpzXb5wyxKTSOsmkuqj+Qw==", + "dev": true, + "requires": {} + }, + "@types/trusted-types": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/@types/trusted-types/-/trusted-types-2.0.7.tgz", + "integrity": "sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw==" + }, + "@typescript-eslint/eslint-plugin": { + "version": "8.30.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.30.1.tgz", + "integrity": "sha512-v+VWphxMjn+1t48/jO4t950D6KR8JaJuNXzi33Ve6P8sEmPr5k6CEXjdGwT6+LodVnEa91EQCtwjWNUCPweo+Q==", + "dev": true, + "requires": { + "@eslint-community/regexpp": "^4.10.0", + "@typescript-eslint/scope-manager": "8.30.1", + "@typescript-eslint/type-utils": "8.30.1", + "@typescript-eslint/utils": "8.30.1", + "@typescript-eslint/visitor-keys": "8.30.1", + "graphemer": "^1.4.0", + "ignore": "^5.3.1", + "natural-compare": "^1.4.0", + "ts-api-utils": "^2.0.1" + } + }, + "@typescript-eslint/parser": { + "version": "8.30.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.30.1.tgz", + "integrity": "sha512-H+vqmWwT5xoNrXqWs/fesmssOW70gxFlgcMlYcBaWNPIEWDgLa4W9nkSPmhuOgLnXq9QYgkZ31fhDyLhleCsAg==", + "dev": true, + "requires": { + "@typescript-eslint/scope-manager": "8.30.1", + "@typescript-eslint/types": "8.30.1", + "@typescript-eslint/typescript-estree": "8.30.1", + "@typescript-eslint/visitor-keys": "8.30.1", + "debug": "^4.3.4" + } + }, + "@typescript-eslint/scope-manager": { + "version": "8.30.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.30.1.tgz", + "integrity": "sha512-+C0B6ChFXZkuaNDl73FJxRYT0G7ufVPOSQkqkpM/U198wUwUFOtgo1k/QzFh1KjpBitaK7R1tgjVz6o9HmsRPg==", + "dev": true, + "requires": { + "@typescript-eslint/types": "8.30.1", + "@typescript-eslint/visitor-keys": "8.30.1" + } + }, + "@typescript-eslint/type-utils": { + "version": "8.30.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.30.1.tgz", + "integrity": "sha512-64uBF76bfQiJyHgZISC7vcNz3adqQKIccVoKubyQcOnNcdJBvYOILV1v22Qhsw3tw3VQu5ll8ND6hycgAR5fEA==", + "dev": true, + "requires": { + "@typescript-eslint/typescript-estree": "8.30.1", + "@typescript-eslint/utils": "8.30.1", + "debug": "^4.3.4", + "ts-api-utils": "^2.0.1" + } + }, + "@typescript-eslint/types": { + "version": "8.30.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.30.1.tgz", + "integrity": "sha512-81KawPfkuulyWo5QdyG/LOKbspyyiW+p4vpn4bYO7DM/hZImlVnFwrpCTnmNMOt8CvLRr5ojI9nU1Ekpw4RcEw==", + "dev": true + }, + "@typescript-eslint/typescript-estree": { + "version": "8.30.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.30.1.tgz", + "integrity": "sha512-kQQnxymiUy9tTb1F2uep9W6aBiYODgq5EMSk6Nxh4Z+BDUoYUSa029ISs5zTzKBFnexQEh71KqwjKnRz58lusQ==", + "dev": true, + "requires": { + "@typescript-eslint/types": "8.30.1", + "@typescript-eslint/visitor-keys": "8.30.1", + "debug": "^4.3.4", + "fast-glob": "^3.3.2", + "is-glob": "^4.0.3", + "minimatch": "^9.0.4", + "semver": "^7.6.0", + "ts-api-utils": "^2.0.1" + }, + "dependencies": { + "brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "requires": { + "balanced-match": "^1.0.0" + } + }, + "fast-glob": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz", + "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==", + "dev": true, + "requires": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.8" + } + }, + "glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "requires": { + "is-glob": "^4.0.1" + } + }, + "minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "dev": true, + "requires": { + "brace-expansion": "^2.0.1" + } + } + } + }, + "@typescript-eslint/utils": { + "version": "8.30.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.30.1.tgz", + "integrity": "sha512-T/8q4R9En2tcEsWPQgB5BQ0XJVOtfARcUvOa8yJP3fh9M/mXraLxZrkCfGb6ChrO/V3W+Xbd04RacUEqk1CFEQ==", + "dev": true, + "requires": { + "@eslint-community/eslint-utils": "^4.4.0", + "@typescript-eslint/scope-manager": "8.30.1", + "@typescript-eslint/types": "8.30.1", + "@typescript-eslint/typescript-estree": "8.30.1" + } + }, + "@typescript-eslint/visitor-keys": { + "version": "8.30.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.30.1.tgz", + "integrity": "sha512-aEhgas7aJ6vZnNFC7K4/vMGDGyOiqWcYZPpIWrTKuTAlsvDNKy2GFDqh9smL+iq069ZvR0YzEeq0B8NJlLzjFA==", + "dev": true, + "requires": { + "@typescript-eslint/types": "8.30.1", + "eslint-visitor-keys": "^4.2.0" + } + }, + "@unrs/resolver-binding-darwin-arm64": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-darwin-arm64/-/resolver-binding-darwin-arm64-1.6.1.tgz", + "integrity": "sha512-wbOgzEUDjfEmziD0TKMdDoRsCa0zHhtBWcrllJr7iZGPvSfrU7m5VGlpbO3McCi1LLsv7FFvUWej5nFQ+Emigw==", + "dev": true, + "optional": true + }, + "@unrs/resolver-binding-darwin-x64": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-darwin-x64/-/resolver-binding-darwin-x64-1.6.1.tgz", + "integrity": "sha512-d5hh78dlTaoFXZTQuDLUxxmV/tS3etw11HCm1a1q5/nUrfgLBUkZLn4u7Pg/jN4ois6aMCabcbt5DZkf4dIx1g==", + "dev": true, + "optional": true + }, + "@unrs/resolver-binding-freebsd-x64": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-freebsd-x64/-/resolver-binding-freebsd-x64-1.6.1.tgz", + "integrity": "sha512-PEV8ICqDKe8ujbxO9FL62/MqNNN2BvahNgtkG5Z49BNNBGtogvzkbgf5GeyrIIt1b3ky1w7IllVRAyqIUeuFEg==", + "dev": true, + "optional": true + }, + "@unrs/resolver-binding-linux-arm-gnueabihf": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm-gnueabihf/-/resolver-binding-linux-arm-gnueabihf-1.6.1.tgz", + "integrity": "sha512-MGBBPrWH0nKMkUvAJ8Qs3Fe2ObHY+t1TVylJdMFY620qvFcu7d0bc89O0tJuZtkzLAx0sUSHQNYQcczhVHn2wQ==", + "dev": true, + "optional": true + }, + "@unrs/resolver-binding-linux-arm-musleabihf": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm-musleabihf/-/resolver-binding-linux-arm-musleabihf-1.6.1.tgz", + "integrity": "sha512-hEmYRcRhde66Pluis2epKWoow2qbeb5PWhX+s/VaqNbfxKIotV9EI88K/9jKH8s2Mwa8Xy/bfWLfDZzfMNtr6Q==", + "dev": true, + "optional": true + }, + "@unrs/resolver-binding-linux-arm64-gnu": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm64-gnu/-/resolver-binding-linux-arm64-gnu-1.6.1.tgz", + "integrity": "sha512-ffY3KJvGXsPw+dYr7MDJcSpfJDw2sc7Y9A+Lz+xk89CX+cEzBt/sxbCY4n8Ew6xNC8jKRoE5+1ELVRxbpc5ozw==", + "dev": true, + "optional": true + }, + "@unrs/resolver-binding-linux-arm64-musl": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm64-musl/-/resolver-binding-linux-arm64-musl-1.6.1.tgz", + "integrity": "sha512-dyH9+OAzA3klgwkVzMxz5jaYTNqcYPfp8YSSTugF8lC2M3pTrToPrbG+kPEAds5ejBgtkGGpHJ0ONRf1JblLoA==", + "dev": true, + "optional": true + }, + "@unrs/resolver-binding-linux-ppc64-gnu": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-ppc64-gnu/-/resolver-binding-linux-ppc64-gnu-1.6.1.tgz", + "integrity": "sha512-8y2ayqhBL0Y7KiuE1ZvuTwv/DmkjCRZQoSE2gvid3SkxRjJ6qJ3EfG/Yv8O9dktv3n6z++Q7ZtAUlKRsiN1wpQ==", + "dev": true, + "optional": true + }, + "@unrs/resolver-binding-linux-riscv64-gnu": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-riscv64-gnu/-/resolver-binding-linux-riscv64-gnu-1.6.1.tgz", + "integrity": "sha512-GZQe8ADu2Y88IVgbob1e8RpVH5MlMWjbDC5X/USa6UZnWQn7sKrO7XdM/9HQHOir+jeu7tJjTBf3tyrq7qtKcA==", + "dev": true, + "optional": true + }, + "@unrs/resolver-binding-linux-s390x-gnu": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-s390x-gnu/-/resolver-binding-linux-s390x-gnu-1.6.1.tgz", + "integrity": "sha512-AkWpaZul4Q0bW1IJdfS6vxSoC0Gsjf/PTF1rgCCtDV7b8V25iGazCK02X/wLxcEmIh9uYq2UfasLal0DfKdPZw==", + "dev": true, + "optional": true + }, + "@unrs/resolver-binding-linux-x64-gnu": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-x64-gnu/-/resolver-binding-linux-x64-gnu-1.6.1.tgz", + "integrity": "sha512-aZlTp6kjbKFFOiDYwknTxB8YUvWLT+hwMbif3cAlvF/c1jtwNLKPGFP/iKx7HkYpRSJYbHf/N0Ns5HkdgeUM9A==", + "dev": true, + "optional": true + }, + "@unrs/resolver-binding-linux-x64-musl": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-x64-musl/-/resolver-binding-linux-x64-musl-1.6.1.tgz", + "integrity": "sha512-A9P2H+/LKHtuUfk/REkWrrawWXx2Z5atIHuU1I5Sv8uOj+NirmoCOPS8H+nfZyemsX4vzSe4id/KDYSQGsnPrA==", + "dev": true, + "optional": true + }, + "@unrs/resolver-binding-wasm32-wasi": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-wasm32-wasi/-/resolver-binding-wasm32-wasi-1.6.1.tgz", + "integrity": "sha512-Y9Sz1GXo/2z43KiMh4MfP0rTknsFNOsTjly068QhGJYO6qjIsvpbf4vhDnMFTDlBz8bDsibG1ggZ6BRjEzjmiA==", + "dev": true, + "optional": true, + "requires": { + "@napi-rs/wasm-runtime": "^0.2.9" + } + }, + "@unrs/resolver-binding-win32-arm64-msvc": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-win32-arm64-msvc/-/resolver-binding-win32-arm64-msvc-1.6.1.tgz", + "integrity": "sha512-Z2gYsbEsv0eyD/wx8uDnGBmo7n9z1oAJnjpdovq3XkdAjKoIVNCRRlbrFQG0HkVuqBAxrJnWFNECfGebLrz7mA==", + "dev": true, + "optional": true + }, + "@unrs/resolver-binding-win32-ia32-msvc": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-win32-ia32-msvc/-/resolver-binding-win32-ia32-msvc-1.6.1.tgz", + "integrity": "sha512-bpGw2JV9NN1zKt/jXpOB+U9AdqdcPdqA2tF8Or6axNoOl3gBtSaooEYx17NpQra33Wx/d7VX8jWv+3LX1dggJA==", + "dev": true, + "optional": true + }, + "@unrs/resolver-binding-win32-x64-msvc": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-win32-x64-msvc/-/resolver-binding-win32-x64-msvc-1.6.1.tgz", + "integrity": "sha512-uNnVmvDLZBDQ4sLFNTugTtzUH9LEoHXG46HdWaih+pK4knwi+wcz+nd0fQC92n/dH4PwPc5T8XArvlCKpfU6vQ==", + "dev": true, + "optional": true + }, + "@wagmi/connectors": { + "version": "5.7.12", + "resolved": "https://registry.npmjs.org/@wagmi/connectors/-/connectors-5.7.12.tgz", + "integrity": "sha512-pLFuZ1PsLkNyY11mx0+IOrMM7xACWCBRxaulfX17osqixkDFeOAyqFGBjh/XxkvRyrDJUdO4F+QHEeSoOiPpgg==", + "requires": { + "@coinbase/wallet-sdk": "4.3.0", + "@metamask/sdk": "0.32.0", + "@safe-global/safe-apps-provider": "0.18.5", + "@safe-global/safe-apps-sdk": "9.1.0", + "@walletconnect/ethereum-provider": "2.19.2", + "cbw-sdk": "npm:@coinbase/wallet-sdk@3.9.3" + } + }, + "@wagmi/core": { + "version": "2.16.7", + "resolved": "https://registry.npmjs.org/@wagmi/core/-/core-2.16.7.tgz", + "integrity": "sha512-Kpgrw6OXV0VBhDs4toQVKQ0NK5yUO6uxEqnvRGjNjbO85d93Gbfsp5BlxSLeWq6iVMSBFSitdl5i9W7b1miq1g==", + "requires": { + "eventemitter3": "5.0.1", + "mipd": "0.0.7", + "zustand": "5.0.0" + } + }, + "@walletconnect/core": { + "version": "2.19.2", + "resolved": "https://registry.npmjs.org/@walletconnect/core/-/core-2.19.2.tgz", + "integrity": "sha512-iu0mgLj51AXcKpdNj8+4EdNNBd/mkNjLEhZn6UMc/r7BM9WbmpPMEydA39WeRLbdLO4kbpmq4wTbiskI1rg+HA==", + "requires": { + "@walletconnect/heartbeat": "1.2.2", + "@walletconnect/jsonrpc-provider": "1.0.14", + "@walletconnect/jsonrpc-types": "1.0.4", + "@walletconnect/jsonrpc-utils": "1.0.8", + "@walletconnect/jsonrpc-ws-connection": "1.0.16", + "@walletconnect/keyvaluestorage": "1.1.1", + "@walletconnect/logger": "2.1.2", + "@walletconnect/relay-api": "1.0.11", + "@walletconnect/relay-auth": "1.1.0", + "@walletconnect/safe-json": "1.0.2", + "@walletconnect/time": "1.0.2", + "@walletconnect/types": "2.19.2", + "@walletconnect/utils": "2.19.2", + "@walletconnect/window-getters": "1.0.1", + "es-toolkit": "1.33.0", + "events": "3.3.0", + "uint8arrays": "3.1.0" + } + }, + "@walletconnect/environment": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@walletconnect/environment/-/environment-1.0.1.tgz", + "integrity": "sha512-T426LLZtHj8e8rYnKfzsw1aG6+M0BT1ZxayMdv/p8yM0MU+eJDISqNY3/bccxRr4LrF9csq02Rhqt08Ibl0VRg==", + "requires": { + "tslib": "1.14.1" + }, + "dependencies": { + "tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" + } + } + }, + "@walletconnect/ethereum-provider": { + "version": "2.19.2", + "resolved": "https://registry.npmjs.org/@walletconnect/ethereum-provider/-/ethereum-provider-2.19.2.tgz", + "integrity": "sha512-NzPzNcjMLqow6ha2nssB1ciMD0cdHZesYcHSQKjCi9waIDMov9Fr2yEJccbiVFE3cxek7f9dCPsoZez2q8ihvg==", + "requires": { + "@walletconnect/jsonrpc-http-connection": "1.0.8", + "@walletconnect/jsonrpc-provider": "1.0.14", + "@walletconnect/jsonrpc-types": "1.0.4", + "@walletconnect/jsonrpc-utils": "1.0.8", + "@walletconnect/keyvaluestorage": "1.1.1", + "@walletconnect/modal": "2.7.0", + "@walletconnect/sign-client": "2.19.2", + "@walletconnect/types": "2.19.2", + "@walletconnect/universal-provider": "2.19.2", + "@walletconnect/utils": "2.19.2", + "events": "3.3.0" + } + }, + "@walletconnect/events": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@walletconnect/events/-/events-1.0.1.tgz", + "integrity": "sha512-NPTqaoi0oPBVNuLv7qPaJazmGHs5JGyO8eEAk5VGKmJzDR7AHzD4k6ilox5kxk1iwiOnFopBOOMLs86Oa76HpQ==", + "requires": { + "keyvaluestorage-interface": "^1.0.0", + "tslib": "1.14.1" + }, + "dependencies": { + "tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" + } + } + }, + "@walletconnect/heartbeat": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/@walletconnect/heartbeat/-/heartbeat-1.2.2.tgz", + "integrity": "sha512-uASiRmC5MwhuRuf05vq4AT48Pq8RMi876zV8rr8cV969uTOzWdB/k+Lj5yI2PBtB1bGQisGen7MM1GcZlQTBXw==", + "requires": { + "@walletconnect/events": "^1.0.1", + "@walletconnect/time": "^1.0.2", + "events": "^3.3.0" + } + }, + "@walletconnect/jsonrpc-http-connection": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/@walletconnect/jsonrpc-http-connection/-/jsonrpc-http-connection-1.0.8.tgz", + "integrity": "sha512-+B7cRuaxijLeFDJUq5hAzNyef3e3tBDIxyaCNmFtjwnod5AGis3RToNqzFU33vpVcxFhofkpE7Cx+5MYejbMGw==", + "requires": { + "@walletconnect/jsonrpc-utils": "^1.0.6", + "@walletconnect/safe-json": "^1.0.1", + "cross-fetch": "^3.1.4", + "events": "^3.3.0" + }, + "dependencies": { + "cross-fetch": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.2.0.tgz", + "integrity": "sha512-Q+xVJLoGOeIMXZmbUK4HYk+69cQH6LudR0Vu/pRm2YlU/hDV9CiS0gKUMaWY5f2NeUH9C1nV3bsTlCo0FsTV1Q==", + "requires": { + "node-fetch": "^2.7.0" + } + } + } + }, + "@walletconnect/jsonrpc-provider": { + "version": "1.0.14", + "resolved": "https://registry.npmjs.org/@walletconnect/jsonrpc-provider/-/jsonrpc-provider-1.0.14.tgz", + "integrity": "sha512-rtsNY1XqHvWj0EtITNeuf8PHMvlCLiS3EjQL+WOkxEOA4KPxsohFnBDeyPYiNm4ZvkQdLnece36opYidmtbmow==", + "requires": { + "@walletconnect/jsonrpc-utils": "^1.0.8", + "@walletconnect/safe-json": "^1.0.2", + "events": "^3.3.0" + } + }, + "@walletconnect/jsonrpc-types": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@walletconnect/jsonrpc-types/-/jsonrpc-types-1.0.4.tgz", + "integrity": "sha512-P6679fG/M+wuWg9TY8mh6xFSdYnFyFjwFelxyISxMDrlbXokorEVXYOxiqEbrU3x1BmBoCAJJ+vtEaEoMlpCBQ==", + "requires": { + "events": "^3.3.0", + "keyvaluestorage-interface": "^1.0.0" + } + }, + "@walletconnect/jsonrpc-utils": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/@walletconnect/jsonrpc-utils/-/jsonrpc-utils-1.0.8.tgz", + "integrity": "sha512-vdeb03bD8VzJUL6ZtzRYsFMq1eZQcM3EAzT0a3st59dyLfJ0wq+tKMpmGH7HlB7waD858UWgfIcudbPFsbzVdw==", + "requires": { + "@walletconnect/environment": "^1.0.1", + "@walletconnect/jsonrpc-types": "^1.0.3", + "tslib": "1.14.1" + }, + "dependencies": { + "tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" + } + } + }, + "@walletconnect/jsonrpc-ws-connection": { + "version": "1.0.16", + "resolved": "https://registry.npmjs.org/@walletconnect/jsonrpc-ws-connection/-/jsonrpc-ws-connection-1.0.16.tgz", + "integrity": "sha512-G81JmsMqh5nJheE1mPst1W0WfVv0SG3N7JggwLLGnI7iuDZJq8cRJvQwLGKHn5H1WTW7DEPCo00zz5w62AbL3Q==", + "requires": { + "@walletconnect/jsonrpc-utils": "^1.0.6", + "@walletconnect/safe-json": "^1.0.2", + "events": "^3.3.0", + "ws": "^7.5.1" + } + }, + "@walletconnect/keyvaluestorage": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@walletconnect/keyvaluestorage/-/keyvaluestorage-1.1.1.tgz", + "integrity": "sha512-V7ZQq2+mSxAq7MrRqDxanTzu2RcElfK1PfNYiaVnJgJ7Q7G7hTVwF8voIBx92qsRyGHZihrwNPHuZd1aKkd0rA==", + "requires": { + "@walletconnect/safe-json": "^1.0.1", + "idb-keyval": "^6.2.1", + "unstorage": "^1.9.0" + } + }, + "@walletconnect/logger": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/@walletconnect/logger/-/logger-2.1.2.tgz", + "integrity": "sha512-aAb28I3S6pYXZHQm5ESB+V6rDqIYfsnHaQyzFbwUUBFY4H0OXx/YtTl8lvhUNhMMfb9UxbwEBS253TlXUYJWSw==", + "requires": { + "@walletconnect/safe-json": "^1.0.2", + "pino": "7.11.0" + } + }, + "@walletconnect/modal": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@walletconnect/modal/-/modal-2.7.0.tgz", + "integrity": "sha512-RQVt58oJ+rwqnPcIvRFeMGKuXb9qkgSmwz4noF8JZGUym3gUAzVs+uW2NQ1Owm9XOJAV+sANrtJ+VoVq1ftElw==", + "requires": { + "@walletconnect/modal-core": "2.7.0", + "@walletconnect/modal-ui": "2.7.0" + } + }, + "@walletconnect/modal-core": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@walletconnect/modal-core/-/modal-core-2.7.0.tgz", + "integrity": "sha512-oyMIfdlNdpyKF2kTJowTixZSo0PGlCJRdssUN/EZdA6H6v03hZnf09JnwpljZNfir2M65Dvjm/15nGrDQnlxSA==", + "requires": { + "valtio": "1.11.2" + }, + "dependencies": { + "proxy-compare": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/proxy-compare/-/proxy-compare-2.5.1.tgz", + "integrity": "sha512-oyfc0Tx87Cpwva5ZXezSp5V9vht1c7dZBhvuV/y3ctkgMVUmiAGDVeeB0dKhGSyT0v1ZTEQYpe/RXlBVBNuCLA==" + }, + "react": { + "version": "18.3.1", + "resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz", + "integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==", + "peer": true, + "requires": { + "loose-envify": "^1.1.0" + } + }, + "use-sync-external-store": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.2.0.tgz", + "integrity": "sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA==", + "requires": {} + }, + "valtio": { + "version": "1.11.2", + "resolved": "https://registry.npmjs.org/valtio/-/valtio-1.11.2.tgz", + "integrity": "sha512-1XfIxnUXzyswPAPXo1P3Pdx2mq/pIqZICkWN60Hby0d9Iqb+MEIpqgYVlbflvHdrp2YR/q3jyKWRPJJ100yxaw==", + "requires": { + "proxy-compare": "2.5.1", + "use-sync-external-store": "1.2.0" + } + } + } + }, + "@walletconnect/modal-ui": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@walletconnect/modal-ui/-/modal-ui-2.7.0.tgz", + "integrity": "sha512-gERYvU7D7K1ANCN/8vUgsE0d2hnRemfAFZ2novm9aZBg7TEd/4EgB+AqbJ+1dc7GhOL6dazckVq78TgccHb7mQ==", + "requires": { + "@walletconnect/modal-core": "2.7.0", + "lit": "2.8.0", + "motion": "10.16.2", + "qrcode": "1.5.3" + }, + "dependencies": { + "@lit/reactive-element": { + "version": "1.6.3", + "resolved": "https://registry.npmjs.org/@lit/reactive-element/-/reactive-element-1.6.3.tgz", + "integrity": "sha512-QuTgnG52Poic7uM1AN5yJ09QMe0O28e10XzSvWDz02TJiiKee4stsiownEIadWm8nYzyDAyT+gKzUoZmiWQtsQ==", + "requires": { + "@lit-labs/ssr-dom-shim": "^1.0.0" + } + }, + "lit": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/lit/-/lit-2.8.0.tgz", + "integrity": "sha512-4Sc3OFX9QHOJaHbmTMk28SYgVxLN3ePDjg7hofEft2zWlehFL3LiAuapWc4U/kYwMYJSh2hTCPZ6/LIC7ii0MA==", + "requires": { + "@lit/reactive-element": "^1.6.0", + "lit-element": "^3.3.0", + "lit-html": "^2.8.0" + } + }, + "lit-element": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/lit-element/-/lit-element-3.3.3.tgz", + "integrity": "sha512-XbeRxmTHubXENkV4h8RIPyr8lXc+Ff28rkcQzw3G6up2xg5E8Zu1IgOWIwBLEQsu3cOVFqdYwiVi0hv0SlpqUA==", + "requires": { + "@lit-labs/ssr-dom-shim": "^1.1.0", + "@lit/reactive-element": "^1.3.0", + "lit-html": "^2.8.0" + } + }, + "lit-html": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/lit-html/-/lit-html-2.8.0.tgz", + "integrity": "sha512-o9t+MQM3P4y7M7yNzqAyjp7z+mQGa4NS4CxiyLqFPyFWyc4O+nodLrkrxSaCTrla6M5YOLaT3RpbbqjszB5g3Q==", + "requires": { + "@types/trusted-types": "^2.0.2" + } + } + } + }, + "@walletconnect/relay-api": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/@walletconnect/relay-api/-/relay-api-1.0.11.tgz", + "integrity": "sha512-tLPErkze/HmC9aCmdZOhtVmYZq1wKfWTJtygQHoWtgg722Jd4homo54Cs4ak2RUFUZIGO2RsOpIcWipaua5D5Q==", + "requires": { + "@walletconnect/jsonrpc-types": "^1.0.2" + } + }, + "@walletconnect/relay-auth": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@walletconnect/relay-auth/-/relay-auth-1.1.0.tgz", + "integrity": "sha512-qFw+a9uRz26jRCDgL7Q5TA9qYIgcNY8jpJzI1zAWNZ8i7mQjaijRnWFKsCHAU9CyGjvt6RKrRXyFtFOpWTVmCQ==", + "requires": { + "@noble/curves": "1.8.0", + "@noble/hashes": "1.7.0", + "@walletconnect/safe-json": "^1.0.1", + "@walletconnect/time": "^1.0.2", + "uint8arrays": "^3.0.0" + }, + "dependencies": { + "@noble/hashes": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.7.0.tgz", + "integrity": "sha512-HXydb0DgzTpDPwbVeDGCG1gIu7X6+AuU6Zl6av/E/KG8LMsvPntvq+w17CHRpKBmN6Ybdrt1eP3k4cj8DJa78w==" + } + } + }, + "@walletconnect/safe-json": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@walletconnect/safe-json/-/safe-json-1.0.2.tgz", + "integrity": "sha512-Ogb7I27kZ3LPC3ibn8ldyUr5544t3/STow9+lzz7Sfo808YD7SBWk7SAsdBFlYgP2zDRy2hS3sKRcuSRM0OTmA==", + "requires": { + "tslib": "1.14.1" + }, + "dependencies": { + "tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" + } + } + }, + "@walletconnect/sign-client": { + "version": "2.19.2", + "resolved": "https://registry.npmjs.org/@walletconnect/sign-client/-/sign-client-2.19.2.tgz", + "integrity": "sha512-a/K5PRIFPCjfHq5xx3WYKHAAF8Ft2I1LtxloyibqiQOoUtNLfKgFB1r8sdMvXM7/PADNPe4iAw4uSE6PrARrfg==", + "requires": { + "@walletconnect/core": "2.19.2", + "@walletconnect/events": "1.0.1", + "@walletconnect/heartbeat": "1.2.2", + "@walletconnect/jsonrpc-utils": "1.0.8", + "@walletconnect/logger": "2.1.2", + "@walletconnect/time": "1.0.2", + "@walletconnect/types": "2.19.2", + "@walletconnect/utils": "2.19.2", + "events": "3.3.0" + } + }, + "@walletconnect/time": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@walletconnect/time/-/time-1.0.2.tgz", + "integrity": "sha512-uzdd9woDcJ1AaBZRhqy5rNC9laqWGErfc4dxA9a87mPdKOgWMD85mcFo9dIYIts/Jwocfwn07EC6EzclKubk/g==", + "requires": { + "tslib": "1.14.1" + }, + "dependencies": { + "tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" + } + } + }, + "@walletconnect/types": { + "version": "2.19.2", + "resolved": "https://registry.npmjs.org/@walletconnect/types/-/types-2.19.2.tgz", + "integrity": "sha512-/LZWhkVCUN+fcTgQUxArxhn2R8DF+LSd/6Wh9FnpjeK/Sdupx1EPS8okWG6WPAqq2f404PRoNAfQytQ82Xdl3g==", + "requires": { + "@walletconnect/events": "1.0.1", + "@walletconnect/heartbeat": "1.2.2", + "@walletconnect/jsonrpc-types": "1.0.4", + "@walletconnect/keyvaluestorage": "1.1.1", + "@walletconnect/logger": "2.1.2", + "events": "3.3.0" + } + }, + "@walletconnect/universal-provider": { + "version": "2.19.2", + "resolved": "https://registry.npmjs.org/@walletconnect/universal-provider/-/universal-provider-2.19.2.tgz", + "integrity": "sha512-LkKg+EjcSUpPUhhvRANgkjPL38wJPIWumAYD8OK/g4OFuJ4W3lS/XTCKthABQfFqmiNbNbVllmywiyE44KdpQg==", + "requires": { + "@walletconnect/events": "1.0.1", + "@walletconnect/jsonrpc-http-connection": "1.0.8", + "@walletconnect/jsonrpc-provider": "1.0.14", + "@walletconnect/jsonrpc-types": "1.0.4", + "@walletconnect/jsonrpc-utils": "1.0.8", + "@walletconnect/keyvaluestorage": "1.1.1", + "@walletconnect/logger": "2.1.2", + "@walletconnect/sign-client": "2.19.2", + "@walletconnect/types": "2.19.2", + "@walletconnect/utils": "2.19.2", + "es-toolkit": "1.33.0", + "events": "3.3.0" + } + }, + "@walletconnect/utils": { + "version": "2.19.2", + "resolved": "https://registry.npmjs.org/@walletconnect/utils/-/utils-2.19.2.tgz", + "integrity": "sha512-VU5CcUF4sZDg8a2/ov29OJzT3KfLuZqJUM0GemW30dlipI5fkpb0VPenZK7TcdLPXc1LN+Q+7eyTqHRoAu/BIA==", + "requires": { + "@noble/ciphers": "1.2.1", + "@noble/curves": "1.8.1", + "@noble/hashes": "1.7.1", + "@walletconnect/jsonrpc-utils": "1.0.8", + "@walletconnect/keyvaluestorage": "1.1.1", + "@walletconnect/relay-api": "1.0.11", + "@walletconnect/relay-auth": "1.1.0", + "@walletconnect/safe-json": "1.0.2", + "@walletconnect/time": "1.0.2", + "@walletconnect/types": "2.19.2", + "@walletconnect/window-getters": "1.0.1", + "@walletconnect/window-metadata": "1.0.1", + "bs58": "6.0.0", + "detect-browser": "5.3.0", + "query-string": "7.1.3", + "uint8arrays": "3.1.0", + "viem": "2.23.2" + }, + "dependencies": { + "@noble/curves": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.8.1.tgz", + "integrity": "sha512-warwspo+UYUPep0Q+vtdVB4Ugn8GGQj8iyB3gnRWsztmUHTI3S1nhdiWNsPUGL0vud7JlRRk1XEu7Lq1KGTnMQ==", + "requires": { + "@noble/hashes": "1.7.1" + } + }, + "@noble/hashes": { + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.7.1.tgz", + "integrity": "sha512-B8XBPsn4vT/KJAGqDzbwztd+6Yte3P4V7iafm24bxgDe/mlRuK6xmWPuCNrKt2vDafZ8MfJLlchDG/vYafQEjQ==" + }, + "@scure/bip32": { + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.6.2.tgz", + "integrity": "sha512-t96EPDMbtGgtb7onKKqxRLfE5g05k7uHnHRM2xdE6BP/ZmxaLtPek4J4KfVn/90IQNrU1IOAqMgiDtUdtbe3nw==", + "requires": { + "@noble/curves": "~1.8.1", + "@noble/hashes": "~1.7.1", + "@scure/base": "~1.2.2" + } + }, + "@scure/bip39": { + "version": "1.5.4", + "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.5.4.tgz", + "integrity": "sha512-TFM4ni0vKvCfBpohoh+/lY05i9gRbSwXWngAsF4CABQxoaOHijxuaZ2R6cStDQ5CHtHO9aGJTr4ksVJASRRyMA==", + "requires": { + "@noble/hashes": "~1.7.1", + "@scure/base": "~1.2.4" + } + }, + "ox": { + "version": "0.6.7", + "resolved": "https://registry.npmjs.org/ox/-/ox-0.6.7.tgz", + "integrity": "sha512-17Gk/eFsFRAZ80p5eKqv89a57uXjd3NgIf1CaXojATPBuujVc/fQSVhBeAU9JCRB+k7J50WQAyWTxK19T9GgbA==", + "requires": { + "@adraffy/ens-normalize": "^1.10.1", + "@noble/curves": "^1.6.0", + "@noble/hashes": "^1.5.0", + "@scure/bip32": "^1.5.0", + "@scure/bip39": "^1.4.0", + "abitype": "^1.0.6", + "eventemitter3": "5.0.1" + } + }, + "viem": { + "version": "2.23.2", + "resolved": "https://registry.npmjs.org/viem/-/viem-2.23.2.tgz", + "integrity": "sha512-NVmW/E0c5crMOtbEAqMF0e3NmvQykFXhLOc/CkLIXOlzHSA6KXVz3CYVmaKqBF8/xtjsjHAGjdJN3Ru1kFJLaA==", + "requires": { + "@noble/curves": "1.8.1", + "@noble/hashes": "1.7.1", + "@scure/bip32": "1.6.2", + "@scure/bip39": "1.5.4", + "abitype": "1.0.8", + "isows": "1.0.6", + "ox": "0.6.7", + "ws": "8.18.0" + } + }, + "ws": { + "version": "8.18.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.0.tgz", + "integrity": "sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==", + "requires": {} + } + } + }, + "@walletconnect/window-getters": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@walletconnect/window-getters/-/window-getters-1.0.1.tgz", + "integrity": "sha512-vHp+HqzGxORPAN8gY03qnbTMnhqIwjeRJNOMOAzePRg4xVEEE2WvYsI9G2NMjOknA8hnuYbU3/hwLcKbjhc8+Q==", + "requires": { + "tslib": "1.14.1" + }, + "dependencies": { + "tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" + } + } + }, + "@walletconnect/window-metadata": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@walletconnect/window-metadata/-/window-metadata-1.0.1.tgz", + "integrity": "sha512-9koTqyGrM2cqFRW517BPY/iEtUDx2r1+Pwwu5m7sJ7ka79wi3EyqhqcICk/yDmv6jAS1rjKgTKXlEhanYjijcA==", + "requires": { + "@walletconnect/window-getters": "^1.0.1", + "tslib": "1.14.1" + }, + "dependencies": { + "tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" + } + } + }, + "abitype": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/abitype/-/abitype-1.0.8.tgz", + "integrity": "sha512-ZeiI6h3GnW06uYDLx0etQtX/p8E24UaHHBj57RSjK7YBFe7iuVn07EDpOeP451D06sF27VOz9JJPlIKJmXgkEg==", + "requires": {} + }, + "acorn": { + "version": "8.14.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.1.tgz", + "integrity": "sha512-OvQ/2pUDKmgfCg++xsTX1wGxfTaszcHVcTctW4UJB4hibJx2HXxxO5UmVgyjMa+ZDsiaf5wWLXYpRWMmBI0QHg==", + "dev": true + }, + "acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "requires": {} + }, + "ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "requires": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + } + }, + "ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==" + }, + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "requires": { + "color-convert": "^2.0.1" + } + }, + "anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "requires": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + } + }, + "argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true + }, + "aria-query": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.2.tgz", + "integrity": "sha512-COROpnaoap1E2F000S62r6A60uHZnmlvomhfyT2DlTcrY1OrBKn2UhH7qn5wTC9zMvD0AY7csdPSNwKP+7WiQw==", + "dev": true + }, + "array-buffer-byte-length": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.2.tgz", + "integrity": "sha512-LHE+8BuR7RYGDKvnrmcuSq3tDcKv9OFEXQt/HpbZhY7V6h0zlUXutnAD82GiFx9rdieCMjkvtcsPqBwgUl1Iiw==", + "dev": true, + "requires": { + "call-bound": "^1.0.3", + "is-array-buffer": "^3.0.5" + } + }, + "array-includes": { + "version": "3.1.8", + "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.8.tgz", + "integrity": "sha512-itaWrbYbqpGXkGhZPGUulwnhVf5Hpy1xiCFsGqyIGglbBxmG5vSjxQen3/WGOjPpNEv1RtBLKxbmVXm8HpJStQ==", + "dev": true, + "requires": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.2", + "es-object-atoms": "^1.0.0", + "get-intrinsic": "^1.2.4", + "is-string": "^1.0.7" + } + }, + "array.prototype.findlast": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/array.prototype.findlast/-/array.prototype.findlast-1.2.5.tgz", + "integrity": "sha512-CVvd6FHg1Z3POpBLxO6E6zr+rSKEQ9L6rZHAaY7lLfhKsWYUBBOuMs0e9o24oopj6H+geRCX0YJ+TJLBK2eHyQ==", + "dev": true, + "requires": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.2", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.0.0", + "es-shim-unscopables": "^1.0.2" + } + }, + "array.prototype.findlastindex": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/array.prototype.findlastindex/-/array.prototype.findlastindex-1.2.6.tgz", + "integrity": "sha512-F/TKATkzseUExPlfvmwQKGITM3DGTK+vkAsCZoDc5daVygbJBnjEUCbgkAvVFsgfXfX4YIqZ/27G3k3tdXrTxQ==", + "dev": true, + "requires": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.4", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.9", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", + "es-shim-unscopables": "^1.1.0" + } + }, + "array.prototype.flat": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.3.tgz", + "integrity": "sha512-rwG/ja1neyLqCuGZ5YYrznA62D4mZXg0i1cIskIUKSiqF3Cje9/wXAls9B9s1Wa2fomMsIv8czB8jZcPmxCXFg==", + "dev": true, + "requires": { + "call-bind": "^1.0.8", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.5", + "es-shim-unscopables": "^1.0.2" + } + }, + "array.prototype.flatmap": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.3.tgz", + "integrity": "sha512-Y7Wt51eKJSyi80hFrJCePGGNo5ktJCslFuboqJsbf57CCPcm5zztluPlc4/aD8sWsKvlwatezpV4U1efk8kpjg==", + "dev": true, + "requires": { + "call-bind": "^1.0.8", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.5", + "es-shim-unscopables": "^1.0.2" + } + }, + "array.prototype.tosorted": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/array.prototype.tosorted/-/array.prototype.tosorted-1.1.4.tgz", + "integrity": "sha512-p6Fx8B7b7ZhL/gmUsAy0D15WhvDccw3mnGNbZpi3pmeJdxtWsj2jEaI4Y6oo3XiHfzuSgPwKc04MYt6KgvC/wA==", + "dev": true, + "requires": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.3", + "es-errors": "^1.3.0", + "es-shim-unscopables": "^1.0.2" + } + }, + "arraybuffer.prototype.slice": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.4.tgz", + "integrity": "sha512-BNoCY6SXXPQ7gF2opIP4GBE+Xw7U+pHMYKuzjgCN3GwiaIR09UUeKfheyIry77QtrCBlC0KK0q5/TER/tYh3PQ==", + "dev": true, + "requires": { + "array-buffer-byte-length": "^1.0.1", + "call-bind": "^1.0.8", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.5", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6", + "is-array-buffer": "^3.0.4" + } + }, + "ast-types-flow": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/ast-types-flow/-/ast-types-flow-0.0.8.tgz", + "integrity": "sha512-OH/2E5Fg20h2aPrbe+QL8JZQFko0YZaF+j4mnQ7BGhfavO7OpSLa8a0y9sBwomHdSbkhTS8TQNayBfnW5DwbvQ==", + "dev": true + }, + "async-function": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/async-function/-/async-function-1.0.0.tgz", + "integrity": "sha512-hsU18Ae8CDTR6Kgu9DYf0EbCr/a5iGL0rytQDobUcdpYOKokk8LEjVphnXkDkgpi0wYVsqrXuP0bZxJaTqdgoA==", + "dev": true + }, + "async-mutex": { + "version": "0.2.6", + "resolved": "https://registry.npmjs.org/async-mutex/-/async-mutex-0.2.6.tgz", + "integrity": "sha512-Hs4R+4SPgamu6rSGW8C7cV9gaWUKEHykfzCCvIRuaVv636Ju10ZdeUbvb4TBEW0INuq2DHZqXbK4Nd3yG4RaRw==", + "requires": { + "tslib": "^2.0.0" + } + }, + "atomic-sleep": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/atomic-sleep/-/atomic-sleep-1.0.0.tgz", + "integrity": "sha512-kNOjDqAh7px0XWNI+4QbzoiR/nTkHAWNud2uvnJquD1/x5a7EQZMJT0AczqK0Qn67oY/TTQ1LbUKajZpp3I9tQ==" + }, + "available-typed-arrays": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz", + "integrity": "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==", + "requires": { + "possible-typed-array-names": "^1.0.0" + } + }, + "axe-core": { + "version": "4.10.3", + "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.10.3.tgz", + "integrity": "sha512-Xm7bpRXnDSX2YE2YFfBk2FnF0ep6tmG7xPh8iHee8MIcrgq762Nkce856dYtJYLkuIoYZvGfTs/PbZhideTcEg==", + "dev": true + }, + "axobject-query": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-4.1.0.tgz", + "integrity": "sha512-qIj0G9wZbMGNLjLmg1PT6v2mE9AH2zlnADJD/2tC6E00hgmhUOfEB6greHPAfLRSufHqROIUTkw6E+M3lH0PTQ==", + "dev": true + }, + "balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true + }, + "base-x": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/base-x/-/base-x-5.0.1.tgz", + "integrity": "sha512-M7uio8Zt++eg3jPj+rHMfCC+IuygQHHCOU+IYsVtik6FWjuYpVt/+MRKcgsAMHh8mMFAwnB+Bs+mTrFiXjMzKg==" + }, + "base64-js": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==" + }, + "big.js": { + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/big.js/-/big.js-6.2.2.tgz", + "integrity": "sha512-y/ie+Faknx7sZA5MfGA2xKlu0GDv8RWrXGsmlteyJQ2lvoKv9GBK/fpRMc2qlSoBAgNxrixICFCBefIq8WCQpQ==" + }, + "bn.js": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-5.2.1.tgz", + "integrity": "sha512-eXRvHzWyYPBuB4NBy0cmYQjGitUrtqwbvlzP3G6VFnNRbsZQIxQ10PbKKHt8gZ/HW/D/747aDl+QkDqg3KQLMQ==" + }, + "bowser": { + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/bowser/-/bowser-2.11.0.tgz", + "integrity": "sha512-AlcaJBi/pqqJBIQ8U9Mcpc9i8Aqxn88Skv5d+xBX006BY5u8N3mGLHa5Lgppa7L/HfwgwLgZ6NYs+Ag6uUmJRA==" + }, + "brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "requires": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "braces": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "dev": true, + "requires": { + "fill-range": "^7.1.1" + } + }, + "bs58": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/bs58/-/bs58-6.0.0.tgz", + "integrity": "sha512-PD0wEnEYg6ijszw/u8s+iI3H17cTymlrwkKhDhPZq+Sokl3AU4htyBFTjAeNAlCCmg0f53g6ih3jATyCKftTfw==", + "requires": { + "base-x": "^5.0.0" + } + }, + "buffer": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", + "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", + "requires": { + "base64-js": "^1.3.1", + "ieee754": "^1.2.1" + } + }, + "bufferutil": { + "version": "4.0.9", + "resolved": "https://registry.npmjs.org/bufferutil/-/bufferutil-4.0.9.tgz", + "integrity": "sha512-WDtdLmJvAuNNPzByAYpRo2rF1Mmradw6gvWsQKf63476DDXmomT9zUiGypLcG4ibIM67vhAj8jJRdbmEws2Aqw==", + "requires": { + "node-gyp-build": "^4.3.0" + } + }, + "busboy": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/busboy/-/busboy-1.6.0.tgz", + "integrity": "sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==", + "requires": { + "streamsearch": "^1.1.0" + } + }, + "call-bind": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.8.tgz", + "integrity": "sha512-oKlSFMcMwpUg2ednkhQ454wfWiU/ul3CkJe/PEHcTKuiX6RpbehUiFMXu13HalGZxfUwCQzZG747YXBn1im9ww==", + "requires": { + "call-bind-apply-helpers": "^1.0.0", + "es-define-property": "^1.0.0", + "get-intrinsic": "^1.2.4", + "set-function-length": "^1.2.2" + } + }, + "call-bind-apply-helpers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", + "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", + "requires": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2" + } + }, + "call-bound": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", + "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", + "requires": { + "call-bind-apply-helpers": "^1.0.2", + "get-intrinsic": "^1.3.0" + } + }, + "callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true + }, + "camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==" + }, + "caniuse-lite": { + "version": "1.0.30001715", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001715.tgz", + "integrity": "sha512-7ptkFGMm2OAOgvZpwgA4yjQ5SQbrNVGdRjzH0pBdy1Fasvcr+KAeECmbCAECzTuDuoX0FCY8KzUxjf9+9kfZEw==" + }, + "cbw-sdk": { + "version": "npm:@coinbase/wallet-sdk@3.9.3", + "resolved": "https://registry.npmjs.org/@coinbase/wallet-sdk/-/wallet-sdk-3.9.3.tgz", + "integrity": "sha512-N/A2DRIf0Y3PHc1XAMvbBUu4zisna6qAdqABMZwBMNEfWrXpAwx16pZGkYCLGE+Rvv1edbcB2LYDRnACNcmCiw==", + "requires": { + "bn.js": "^5.2.1", + "buffer": "^6.0.3", + "clsx": "^1.2.1", + "eth-block-tracker": "^7.1.0", + "eth-json-rpc-filters": "^6.0.0", + "eventemitter3": "^5.0.1", + "keccak": "^3.0.3", + "preact": "^10.16.0", + "sha.js": "^2.4.11" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "chokidar": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.3.tgz", + "integrity": "sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==", + "requires": { + "readdirp": "^4.0.1" + } + }, + "client-only": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/client-only/-/client-only-0.0.1.tgz", + "integrity": "sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==" + }, + "cliui": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", + "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", + "requires": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^6.2.0" + } + }, + "clsx": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/clsx/-/clsx-1.2.1.tgz", + "integrity": "sha512-EcR6r5a8bj6pu3ycsa/E/cKVGuTgZJZdsyUYHOksG/UHIiKfjxzRxYJpyVBwYaQeOvghal9fcc4PidlgzugAQg==" + }, + "color": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/color/-/color-4.2.3.tgz", + "integrity": "sha512-1rXeuUUiGGrykh+CeBdu5Ie7OJwinCgQY0bc7GCRxy5xVHy+moaqkpL/jqQq0MtQOeYcrqEz4abc5f0KtU7W4A==", + "optional": true, + "requires": { + "color-convert": "^2.0.1", + "color-string": "^1.9.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "color-string": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/color-string/-/color-string-1.9.1.tgz", + "integrity": "sha512-shrVawQFojnZv6xM40anx4CkoDP+fZsw/ZerEMsW/pyzsRbElpsL/DBVW7q3ExxwusdNXI3lXpuhEZkzs8p5Eg==", + "optional": true, + "requires": { + "color-name": "^1.0.0", + "simple-swizzle": "^0.2.2" + } + }, + "concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true + }, + "cookie-es": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/cookie-es/-/cookie-es-1.2.2.tgz", + "integrity": "sha512-+W7VmiVINB+ywl1HGXJXmrqkOhpKrIiVZV6tQuV54ZyQC7MMuBt81Vc336GMLoHBq5hV/F9eXgt5Mnx0Rha5Fg==" + }, + "core-util-is": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", + "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==" + }, + "crc-32": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/crc-32/-/crc-32-1.2.2.tgz", + "integrity": "sha512-ROmzCKrTnOwybPcJApAA6WBWij23HVfGVNKqqrZpuyZOHqK2CwHSvpGuyt/UNNvaIjEd8X5IFGp4Mh+Ie1IHJQ==" + }, + "cross-fetch": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-4.1.0.tgz", + "integrity": "sha512-uKm5PU+MHTootlWEY+mZ4vvXoCn4fLQxT9dSc1sXVMSFkINTJVN8cAQROpwcKm8bJ/c7rgZVIBWzH5T78sNZZw==", + "requires": { + "node-fetch": "^2.7.0" + } + }, + "cross-spawn": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "dev": true, + "requires": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + } + }, + "crossws": { + "version": "0.3.4", + "resolved": "https://registry.npmjs.org/crossws/-/crossws-0.3.4.tgz", + "integrity": "sha512-uj0O1ETYX1Bh6uSgktfPvwDiPYGQ3aI4qVsaC/LWpkIzGj1nUYm5FK3K+t11oOlpN01lGbprFCH4wBlKdJjVgw==", + "requires": { + "uncrypto": "^0.1.3" + } + }, + "csstype": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz", + "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==", + "devOptional": true + }, + "damerau-levenshtein": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/damerau-levenshtein/-/damerau-levenshtein-1.0.8.tgz", + "integrity": "sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==", + "dev": true + }, + "data-view-buffer": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/data-view-buffer/-/data-view-buffer-1.0.2.tgz", + "integrity": "sha512-EmKO5V3OLXh1rtK2wgXRansaK1/mtVdTUEiEI0W8RkvgT05kfxaH29PliLnpLP73yYO6142Q72QNa8Wx/A5CqQ==", + "dev": true, + "requires": { + "call-bound": "^1.0.3", + "es-errors": "^1.3.0", + "is-data-view": "^1.0.2" + } + }, + "data-view-byte-length": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/data-view-byte-length/-/data-view-byte-length-1.0.2.tgz", + "integrity": "sha512-tuhGbE6CfTM9+5ANGf+oQb72Ky/0+s3xKUpHvShfiz2RxMFgFPjsXuRLBVMtvMs15awe45SRb83D6wH4ew6wlQ==", + "dev": true, + "requires": { + "call-bound": "^1.0.3", + "es-errors": "^1.3.0", + "is-data-view": "^1.0.2" + } + }, + "data-view-byte-offset": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/data-view-byte-offset/-/data-view-byte-offset-1.0.1.tgz", + "integrity": "sha512-BS8PfmtDGnrgYdOonGZQdLZslWIeCGFP9tpan0hi1Co2Zr2NKADsvGYA8XxuG/4UWgJ6Cjtv+YJnB6MM69QGlQ==", + "dev": true, + "requires": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "is-data-view": "^1.0.1" + } + }, + "date-fns": { + "version": "2.30.0", + "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-2.30.0.tgz", + "integrity": "sha512-fnULvOpxnC5/Vg3NCiWelDsLiUc9bRwAPs/+LfTLNvetFCtCTN+yQz15C/fs4AwX1R9K5GLtLfn8QW+dWisaAw==", + "requires": { + "@babel/runtime": "^7.21.0" + } + }, + "dayjs": { + "version": "1.11.13", + "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.13.tgz", + "integrity": "sha512-oaMBel6gjolK862uaPQOVTA7q3TZhuSvuMQAAglQDOWYO9A91IrAOUJEyKVlqJlHE0vq5p5UXxzdPfMH/x6xNg==" + }, + "debug": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", + "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", + "requires": { + "ms": "^2.1.3" + } + }, + "decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==" + }, + "decode-uri-component": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.2.tgz", + "integrity": "sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ==" + }, + "deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true + }, + "define-data-property": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", + "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", + "requires": { + "es-define-property": "^1.0.0", + "es-errors": "^1.3.0", + "gopd": "^1.0.1" + } + }, + "define-properties": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz", + "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==", + "dev": true, + "requires": { + "define-data-property": "^1.0.1", + "has-property-descriptors": "^1.0.0", + "object-keys": "^1.1.1" + } + }, + "defu": { + "version": "6.1.4", + "resolved": "https://registry.npmjs.org/defu/-/defu-6.1.4.tgz", + "integrity": "sha512-mEQCMmwJu317oSz8CwdIOdwf3xMif1ttiM8LTufzc3g6kR+9Pe236twL8j3IYT1F7GfRgGcW6MWxzZjLIkuHIg==" + }, + "derive-valtio": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/derive-valtio/-/derive-valtio-0.1.0.tgz", + "integrity": "sha512-OCg2UsLbXK7GmmpzMXhYkdO64vhJ1ROUUGaTFyHjVwEdMEcTTRj7W1TxLbSBxdY8QLBPCcp66MTyaSy0RpO17A==", + "requires": {} + }, + "destr": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/destr/-/destr-2.0.5.tgz", + "integrity": "sha512-ugFTXCtDZunbzasqBxrK93Ik/DRYsO6S/fedkWEMKqt04xZ4csmnmwGDBAb07QWNaGMAmnTIemsYZCksjATwsA==" + }, + "detect-browser": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/detect-browser/-/detect-browser-5.3.0.tgz", + "integrity": "sha512-53rsFbGdwMwlF7qvCt0ypLM5V5/Mbl0szB7GPN8y9NCcbknYOeVVXdrXEq+90IwAfrrzt6Hd+u2E2ntakICU8w==" + }, + "detect-libc": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.3.tgz", + "integrity": "sha512-bwy0MGW55bG41VqxxypOsdSdGqLwXPI/focwgTYCFMbdUiBAxLg9CFzG08sz2aqzknwiX7Hkl0bQENjg8iLByw==", + "optional": true + }, + "dijkstrajs": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/dijkstrajs/-/dijkstrajs-1.0.3.tgz", + "integrity": "sha512-qiSlmBq9+BCdCA/L46dw8Uy93mloxsPSbwnm5yrKn2vMPiy8KyAskTF6zuV/j5BMsmOGZDPs7KjU+mjb670kfA==" + }, + "doctrine": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", + "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", + "dev": true, + "requires": { + "esutils": "^2.0.2" + } + }, + "dunder-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", + "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", + "requires": { + "call-bind-apply-helpers": "^1.0.1", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" + } + }, + "duplexify": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/duplexify/-/duplexify-4.1.3.tgz", + "integrity": "sha512-M3BmBhwJRZsSx38lZyhE53Csddgzl5R7xGJNk7CVddZD6CcmwMCH8J+7AprIrQKH7TonKxaCjcv27Qmf+sQ+oA==", + "requires": { + "end-of-stream": "^1.4.1", + "inherits": "^2.0.3", + "readable-stream": "^3.1.1", + "stream-shift": "^1.0.2" + } + }, + "eciesjs": { + "version": "0.4.14", + "resolved": "https://registry.npmjs.org/eciesjs/-/eciesjs-0.4.14.tgz", + "integrity": "sha512-eJAgf9pdv214Hn98FlUzclRMYWF7WfoLlkS9nWMTm1qcCwn6Ad4EGD9lr9HXMBfSrZhYQujRE+p0adPRkctC6A==", + "requires": { + "@ecies/ciphers": "^0.2.2", + "@noble/ciphers": "^1.0.0", + "@noble/curves": "^1.6.0", + "@noble/hashes": "^1.5.0" + } + }, + "emoji-regex": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", + "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", + "dev": true + }, + "encode-utf8": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/encode-utf8/-/encode-utf8-1.0.3.tgz", + "integrity": "sha512-ucAnuBEhUK4boH2HjVYG5Q2mQyPorvv0u/ocS+zhdw0S8AlHYY+GOFhP1Gio5z4icpP2ivFSvhtFjQi8+T9ppw==" + }, + "end-of-stream": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", + "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", + "requires": { + "once": "^1.4.0" + } + }, + "engine.io-client": { + "version": "6.6.3", + "resolved": "https://registry.npmjs.org/engine.io-client/-/engine.io-client-6.6.3.tgz", + "integrity": "sha512-T0iLjnyNWahNyv/lcjS2y4oE358tVS/SYQNxYXGAJ9/GLgH4VCvOQ/mhTjqU88mLZCQgiG8RIegFHYCdVC+j5w==", + "requires": { + "@socket.io/component-emitter": "~3.1.0", + "debug": "~4.3.1", + "engine.io-parser": "~5.2.1", + "ws": "~8.17.1", + "xmlhttprequest-ssl": "~2.1.1" + }, + "dependencies": { + "debug": { + "version": "4.3.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.7.tgz", + "integrity": "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==", + "requires": { + "ms": "^2.1.3" + } + }, + "ws": { + "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.17.1.tgz", + "integrity": "sha512-6XQFvXTkbfUOZOKKILFG1PDK2NDQs4azKQl26T0YS5CxqWLgXajbPZ+h4gZekJyRqFU8pvnbAbbs/3TgRPy+GQ==", + "requires": {} + } + } + }, + "engine.io-parser": { + "version": "5.2.3", + "resolved": "https://registry.npmjs.org/engine.io-parser/-/engine.io-parser-5.2.3.tgz", + "integrity": "sha512-HqD3yTBfnBxIrbnM1DoD6Pcq8NECnh8d4As1Qgh0z5Gg3jRRIqijury0CL3ghu/edArpUYiYqQiDUQBIs4np3Q==" + }, + "es-abstract": { + "version": "1.23.9", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.23.9.tgz", + "integrity": "sha512-py07lI0wjxAC/DcfK1S6G7iANonniZwTISvdPzk9hzeH0IZIshbuuFxLIU96OyF89Yb9hiqWn8M/bY83KY5vzA==", + "dev": true, + "requires": { + "array-buffer-byte-length": "^1.0.2", + "arraybuffer.prototype.slice": "^1.0.4", + "available-typed-arrays": "^1.0.7", + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "data-view-buffer": "^1.0.2", + "data-view-byte-length": "^1.0.2", + "data-view-byte-offset": "^1.0.1", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.0.0", + "es-set-tostringtag": "^2.1.0", + "es-to-primitive": "^1.3.0", + "function.prototype.name": "^1.1.8", + "get-intrinsic": "^1.2.7", + "get-proto": "^1.0.0", + "get-symbol-description": "^1.1.0", + "globalthis": "^1.0.4", + "gopd": "^1.2.0", + "has-property-descriptors": "^1.0.2", + "has-proto": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "internal-slot": "^1.1.0", + "is-array-buffer": "^3.0.5", + "is-callable": "^1.2.7", + "is-data-view": "^1.0.2", + "is-regex": "^1.2.1", + "is-shared-array-buffer": "^1.0.4", + "is-string": "^1.1.1", + "is-typed-array": "^1.1.15", + "is-weakref": "^1.1.0", + "math-intrinsics": "^1.1.0", + "object-inspect": "^1.13.3", + "object-keys": "^1.1.1", + "object.assign": "^4.1.7", + "own-keys": "^1.0.1", + "regexp.prototype.flags": "^1.5.3", + "safe-array-concat": "^1.1.3", + "safe-push-apply": "^1.0.0", + "safe-regex-test": "^1.1.0", + "set-proto": "^1.0.0", + "string.prototype.trim": "^1.2.10", + "string.prototype.trimend": "^1.0.9", + "string.prototype.trimstart": "^1.0.8", + "typed-array-buffer": "^1.0.3", + "typed-array-byte-length": "^1.0.3", + "typed-array-byte-offset": "^1.0.4", + "typed-array-length": "^1.0.7", + "unbox-primitive": "^1.1.0", + "which-typed-array": "^1.1.18" + } + }, + "es-define-property": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", + "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==" + }, + "es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==" + }, + "es-iterator-helpers": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/es-iterator-helpers/-/es-iterator-helpers-1.2.1.tgz", + "integrity": "sha512-uDn+FE1yrDzyC0pCo961B2IHbdM8y/ACZsKD4dG6WqrjV53BADjwa7D+1aom2rsNVfLyDgU/eigvlJGJ08OQ4w==", + "dev": true, + "requires": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.6", + "es-errors": "^1.3.0", + "es-set-tostringtag": "^2.0.3", + "function-bind": "^1.1.2", + "get-intrinsic": "^1.2.6", + "globalthis": "^1.0.4", + "gopd": "^1.2.0", + "has-property-descriptors": "^1.0.2", + "has-proto": "^1.2.0", + "has-symbols": "^1.1.0", + "internal-slot": "^1.1.0", + "iterator.prototype": "^1.1.4", + "safe-array-concat": "^1.1.3" + } + }, + "es-object-atoms": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", + "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", + "requires": { + "es-errors": "^1.3.0" + } + }, + "es-set-tostringtag": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", + "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", + "dev": true, + "requires": { + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" + } + }, + "es-shim-unscopables": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.1.0.tgz", + "integrity": "sha512-d9T8ucsEhh8Bi1woXCf+TIKDIROLG5WCkxg8geBCbvk22kzwC5G2OnXVMO6FUsvQlgUUXQ2itephWDLqDzbeCw==", + "dev": true, + "requires": { + "hasown": "^2.0.2" + } + }, + "es-to-primitive": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.3.0.tgz", + "integrity": "sha512-w+5mJ3GuFL+NjVtJlvydShqE1eN3h3PbI7/5LAsYJP/2qtuMXjfL2LpHSRqo4b4eSF5K/DH1JXKUAHSB2UW50g==", + "dev": true, + "requires": { + "is-callable": "^1.2.7", + "is-date-object": "^1.0.5", + "is-symbol": "^1.0.4" + } + }, + "es-toolkit": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/es-toolkit/-/es-toolkit-1.33.0.tgz", + "integrity": "sha512-X13Q/ZSc+vsO1q600bvNK4bxgXMkHcf//RxCmYDaRY5DAcT+eoXjY5hoAPGMdRnWQjvyLEcyauG3b6hz76LNqg==" + }, + "escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true + }, + "eslint": { + "version": "9.25.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.25.0.tgz", + "integrity": "sha512-MsBdObhM4cEwkzCiraDv7A6txFXEqtNXOb877TsSp2FCkBNl8JfVQrmiuDqC1IkejT6JLPzYBXx/xAiYhyzgGA==", + "dev": true, + "requires": { + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.12.1", + "@eslint/config-array": "^0.20.0", + "@eslint/config-helpers": "^0.2.1", + "@eslint/core": "^0.13.0", + "@eslint/eslintrc": "^3.3.1", + "@eslint/js": "9.25.0", + "@eslint/plugin-kit": "^0.2.8", + "@humanfs/node": "^0.16.6", + "@humanwhocodes/module-importer": "^1.0.1", + "@humanwhocodes/retry": "^0.4.2", + "@types/estree": "^1.0.6", + "@types/json-schema": "^7.0.15", + "ajv": "^6.12.4", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.6", + "debug": "^4.3.2", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^8.3.0", + "eslint-visitor-keys": "^4.2.0", + "espree": "^10.3.0", + "esquery": "^1.5.0", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^8.0.0", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "ignore": "^5.2.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.3" + } + }, + "eslint-config-next": { + "version": "15.1.6", + "resolved": "https://registry.npmjs.org/eslint-config-next/-/eslint-config-next-15.1.6.tgz", + "integrity": "sha512-Wd1uy6y7nBbXUSg9QAuQ+xYEKli5CgUhLjz1QHW11jLDis5vK5XB3PemL6jEmy7HrdhaRFDz+GTZ/3FoH+EUjg==", + "dev": true, + "requires": { + "@next/eslint-plugin-next": "15.1.6", + "@rushstack/eslint-patch": "^1.10.3", + "@typescript-eslint/eslint-plugin": "^5.4.2 || ^6.0.0 || ^7.0.0 || ^8.0.0", + "@typescript-eslint/parser": "^5.4.2 || ^6.0.0 || ^7.0.0 || ^8.0.0", + "eslint-import-resolver-node": "^0.3.6", + "eslint-import-resolver-typescript": "^3.5.2", + "eslint-plugin-import": "^2.31.0", + "eslint-plugin-jsx-a11y": "^6.10.0", + "eslint-plugin-react": "^7.37.0", + "eslint-plugin-react-hooks": "^5.0.0" + } + }, + "eslint-import-resolver-node": { + "version": "0.3.9", + "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.9.tgz", + "integrity": "sha512-WFj2isz22JahUv+B788TlO3N6zL3nNJGU8CcZbPZvVEkBPaJdCV4vy5wyghty5ROFbCRnm132v8BScu5/1BQ8g==", + "dev": true, + "requires": { + "debug": "^3.2.7", + "is-core-module": "^2.13.0", + "resolve": "^1.22.4" + }, + "dependencies": { + "debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "requires": { + "ms": "^2.1.1" + } + } + } + }, + "eslint-import-resolver-typescript": { + "version": "3.10.0", + "resolved": "https://registry.npmjs.org/eslint-import-resolver-typescript/-/eslint-import-resolver-typescript-3.10.0.tgz", + "integrity": "sha512-aV3/dVsT0/H9BtpNwbaqvl+0xGMRGzncLyhm793NFGvbwGGvzyAykqWZ8oZlZuGwuHkwJjhWJkG1cM3ynvd2pQ==", + "dev": true, + "requires": { + "@nolyfill/is-core-module": "1.0.39", + "debug": "^4.4.0", + "get-tsconfig": "^4.10.0", + "is-bun-module": "^2.0.0", + "stable-hash": "^0.0.5", + "tinyglobby": "^0.2.12", + "unrs-resolver": "^1.3.2" + } + }, + "eslint-module-utils": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.12.0.tgz", + "integrity": "sha512-wALZ0HFoytlyh/1+4wuZ9FJCD/leWHQzzrxJ8+rebyReSLk7LApMyd3WJaLVoN+D5+WIdJyDK1c6JnE65V4Zyg==", + "dev": true, + "requires": { + "debug": "^3.2.7" + }, + "dependencies": { + "debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "requires": { + "ms": "^2.1.1" + } + } + } + }, + "eslint-plugin-import": { + "version": "2.31.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.31.0.tgz", + "integrity": "sha512-ixmkI62Rbc2/w8Vfxyh1jQRTdRTF52VxwRVHl/ykPAmqG+Nb7/kNn+byLP0LxPgI7zWA16Jt82SybJInmMia3A==", + "dev": true, + "requires": { + "@rtsao/scc": "^1.1.0", + "array-includes": "^3.1.8", + "array.prototype.findlastindex": "^1.2.5", + "array.prototype.flat": "^1.3.2", + "array.prototype.flatmap": "^1.3.2", + "debug": "^3.2.7", + "doctrine": "^2.1.0", + "eslint-import-resolver-node": "^0.3.9", + "eslint-module-utils": "^2.12.0", + "hasown": "^2.0.2", + "is-core-module": "^2.15.1", + "is-glob": "^4.0.3", + "minimatch": "^3.1.2", + "object.fromentries": "^2.0.8", + "object.groupby": "^1.0.3", + "object.values": "^1.2.0", + "semver": "^6.3.1", + "string.prototype.trimend": "^1.0.8", + "tsconfig-paths": "^3.15.0" + }, + "dependencies": { + "debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "requires": { + "ms": "^2.1.1" + } + }, + "semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true + } + } + }, + "eslint-plugin-jsx-a11y": { + "version": "6.10.2", + "resolved": "https://registry.npmjs.org/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.10.2.tgz", + "integrity": "sha512-scB3nz4WmG75pV8+3eRUQOHZlNSUhFNq37xnpgRkCCELU3XMvXAxLk1eqWWyE22Ki4Q01Fnsw9BA3cJHDPgn2Q==", + "dev": true, + "requires": { + "aria-query": "^5.3.2", + "array-includes": "^3.1.8", + "array.prototype.flatmap": "^1.3.2", + "ast-types-flow": "^0.0.8", + "axe-core": "^4.10.0", + "axobject-query": "^4.1.0", + "damerau-levenshtein": "^1.0.8", + "emoji-regex": "^9.2.2", + "hasown": "^2.0.2", + "jsx-ast-utils": "^3.3.5", + "language-tags": "^1.0.9", + "minimatch": "^3.1.2", + "object.fromentries": "^2.0.8", + "safe-regex-test": "^1.0.3", + "string.prototype.includes": "^2.0.1" + } + }, + "eslint-plugin-react": { + "version": "7.37.5", + "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.37.5.tgz", + "integrity": "sha512-Qteup0SqU15kdocexFNAJMvCJEfa2xUKNV4CC1xsVMrIIqEy3SQ/rqyxCWNzfrd3/ldy6HMlD2e0JDVpDg2qIA==", + "dev": true, + "requires": { + "array-includes": "^3.1.8", + "array.prototype.findlast": "^1.2.5", + "array.prototype.flatmap": "^1.3.3", + "array.prototype.tosorted": "^1.1.4", + "doctrine": "^2.1.0", + "es-iterator-helpers": "^1.2.1", + "estraverse": "^5.3.0", + "hasown": "^2.0.2", + "jsx-ast-utils": "^2.4.1 || ^3.0.0", + "minimatch": "^3.1.2", + "object.entries": "^1.1.9", + "object.fromentries": "^2.0.8", + "object.values": "^1.2.1", + "prop-types": "^15.8.1", + "resolve": "^2.0.0-next.5", + "semver": "^6.3.1", + "string.prototype.matchall": "^4.0.12", + "string.prototype.repeat": "^1.0.0" + }, + "dependencies": { + "resolve": { + "version": "2.0.0-next.5", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-2.0.0-next.5.tgz", + "integrity": "sha512-U7WjGVG9sH8tvjW5SmGbQuui75FiyjAX72HX15DwBBwF9dNiQZRQAg9nnPhYy+TUnE0+VcrttuvNI8oSxZcocA==", + "dev": true, + "requires": { + "is-core-module": "^2.13.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + } + }, + "semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true + } + } + }, + "eslint-plugin-react-hooks": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-5.2.0.tgz", + "integrity": "sha512-+f15FfK64YQwZdJNELETdn5ibXEUQmW1DZL6KXhNnc2heoy/sg9VJJeT7n8TlMWouzWqSWavFkIhHyIbIAEapg==", + "dev": true, + "requires": {} + }, + "eslint-scope": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.3.0.tgz", + "integrity": "sha512-pUNxi75F8MJ/GdeKtVLSbYg4ZI34J6C0C7sbL4YOp2exGwen7ZsuBqKzUhXd0qMQ362yET3z+uPwKeg/0C2XCQ==", + "dev": true, + "requires": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + } + }, + "eslint-visitor-keys": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.0.tgz", + "integrity": "sha512-UyLnSehNt62FFhSwjZlHmeokpRK59rcz29j+F1/aDgbkbRTk7wIc9XzdoasMUbRNKDM0qQt/+BJ4BrpFeABemw==", + "dev": true + }, + "espree": { + "version": "10.3.0", + "resolved": "https://registry.npmjs.org/espree/-/espree-10.3.0.tgz", + "integrity": "sha512-0QYC8b24HWY8zjRnDTL6RiHfDbAWn63qb4LMj1Z4b076A4une81+z03Kg7l7mn/48PUTqoLptSXez8oknU8Clg==", + "dev": true, + "requires": { + "acorn": "^8.14.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^4.2.0" + } + }, + "esquery": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.6.0.tgz", + "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==", + "dev": true, + "requires": { + "estraverse": "^5.1.0" + } + }, + "esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "requires": { + "estraverse": "^5.2.0" + } + }, + "estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true + }, + "esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true + }, + "eth-block-tracker": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/eth-block-tracker/-/eth-block-tracker-7.1.0.tgz", + "integrity": "sha512-8YdplnuE1IK4xfqpf4iU7oBxnOYAc35934o083G8ao+8WM8QQtt/mVlAY6yIAdY1eMeLqg4Z//PZjJGmWGPMRg==", + "requires": { + "@metamask/eth-json-rpc-provider": "^1.0.0", + "@metamask/safe-event-emitter": "^3.0.0", + "@metamask/utils": "^5.0.1", + "json-rpc-random-id": "^1.0.1", + "pify": "^3.0.0" + }, + "dependencies": { + "@metamask/utils": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/@metamask/utils/-/utils-5.0.2.tgz", + "integrity": "sha512-yfmE79bRQtnMzarnKfX7AEJBwFTxvTyw3nBQlu/5rmGXrjAeAMltoGxO62TFurxrQAFMNa/fEjIHNvungZp0+g==", + "requires": { + "@ethereumjs/tx": "^4.1.2", + "@types/debug": "^4.1.7", + "debug": "^4.3.4", + "semver": "^7.3.8", + "superstruct": "^1.0.3" + } + } + } + }, + "eth-json-rpc-filters": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/eth-json-rpc-filters/-/eth-json-rpc-filters-6.0.1.tgz", + "integrity": "sha512-ITJTvqoCw6OVMLs7pI8f4gG92n/St6x80ACtHodeS+IXmO0w+t1T5OOzfSt7KLSMLRkVUoexV7tztLgDxg+iig==", + "requires": { + "@metamask/safe-event-emitter": "^3.0.0", + "async-mutex": "^0.2.6", + "eth-query": "^2.1.2", + "json-rpc-engine": "^6.1.0", + "pify": "^5.0.0" + }, + "dependencies": { + "pify": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-5.0.0.tgz", + "integrity": "sha512-eW/gHNMlxdSP6dmG6uJip6FXN0EQBwm2clYYd8Wul42Cwu/DK8HEftzsapcNdYe2MfLiIwZqsDk2RDEsTE79hA==" + } + } + }, + "eth-query": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/eth-query/-/eth-query-2.1.2.tgz", + "integrity": "sha512-srES0ZcvwkR/wd5OQBRA1bIJMww1skfGS0s8wlwK3/oNP4+wnds60krvu5R1QbpRQjMmpG5OMIWro5s7gvDPsA==", + "requires": { + "json-rpc-random-id": "^1.0.0", + "xtend": "^4.0.1" + } + }, + "eth-rpc-errors": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/eth-rpc-errors/-/eth-rpc-errors-4.0.3.tgz", + "integrity": "sha512-Z3ymjopaoft7JDoxZcEb3pwdGh7yiYMhOwm2doUt6ASXlMavpNlK6Cre0+IMl2VSGyEU9rkiperQhp5iRxn5Pg==", + "requires": { + "fast-safe-stringify": "^2.0.6" + } + }, + "ethereum-cryptography": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-2.2.1.tgz", + "integrity": "sha512-r/W8lkHSiTLxUxW8Rf3u4HGB0xQweG2RyETjywylKZSzLWoWAijRz8WCuOtJ6wah+avllXBqZuk29HCCvhEIRg==", + "requires": { + "@noble/curves": "1.4.2", + "@noble/hashes": "1.4.0", + "@scure/bip32": "1.4.0", + "@scure/bip39": "1.3.0" + }, + "dependencies": { + "@noble/curves": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.4.2.tgz", + "integrity": "sha512-TavHr8qycMChk8UwMld0ZDRvatedkzWfH8IiaeGCfymOP5i0hSCozz9vHOL0nkwk7HRMlFnAiKpS2jrUmSybcw==", + "requires": { + "@noble/hashes": "1.4.0" + } + }, + "@noble/hashes": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.4.0.tgz", + "integrity": "sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg==" + } + } + }, + "eventemitter2": { + "version": "6.4.9", + "resolved": "https://registry.npmjs.org/eventemitter2/-/eventemitter2-6.4.9.tgz", + "integrity": "sha512-JEPTiaOt9f04oa6NOkc4aH+nVp5I3wEjpHbIPqfgCdD5v5bUzy7xQqwcVO2aDQgOWhI28da57HksMrzK9HlRxg==" + }, + "eventemitter3": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.1.tgz", + "integrity": "sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==" + }, + "events": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", + "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==" + }, + "extension-port-stream": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/extension-port-stream/-/extension-port-stream-3.0.0.tgz", + "integrity": "sha512-an2S5quJMiy5bnZKEf6AkfH/7r8CzHvhchU40gxN+OM6HPhe7Z9T1FUychcf2M9PpPOO0Hf7BAEfJkw2TDIBDw==", + "requires": { + "readable-stream": "^3.6.2 || ^4.4.2", + "webextension-polyfill": ">=0.10.0 <1.0" + } + }, + "fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" + }, + "fast-glob": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.1.tgz", + "integrity": "sha512-kNFPyjhh5cKjrUltxs+wFx+ZkbRaxxmZ+X0ZU31SOsxCEtP9VPgtq2teZw1DebupL5GmDaNQ6yKMMVcM41iqDg==", + "dev": true, + "requires": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + }, + "dependencies": { + "glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "requires": { + "is-glob": "^4.0.1" + } + } + } + }, + "fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true + }, + "fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true + }, + "fast-redact": { + "version": "3.5.0", + "resolved": "https://registry.npmjs.org/fast-redact/-/fast-redact-3.5.0.tgz", + "integrity": "sha512-dwsoQlS7h9hMeYUq1W++23NDcBLV4KqONnITDV9DjfS3q1SgDGVrBdvvTLUotWtPSD7asWDV9/CmsZPy8Hf70A==" + }, + "fast-safe-stringify": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/fast-safe-stringify/-/fast-safe-stringify-2.1.1.tgz", + "integrity": "sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==" + }, + "fastq": { + "version": "1.19.1", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.19.1.tgz", + "integrity": "sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ==", + "dev": true, + "requires": { + "reusify": "^1.0.4" + } + }, + "file-entry-cache": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", + "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==", + "dev": true, + "requires": { + "flat-cache": "^4.0.0" + } + }, + "fill-range": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "dev": true, + "requires": { + "to-regex-range": "^5.0.1" + } + }, + "filter-obj": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/filter-obj/-/filter-obj-1.1.0.tgz", + "integrity": "sha512-8rXg1ZnX7xzy2NGDVkBVaAy+lSlPNwad13BtgSlLuxfIslyt5Vg64U7tFcCt4WS1R0hvtnQybT/IyCkGZ3DpXQ==" + }, + "find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, + "requires": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + } + }, + "flat-cache": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz", + "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==", + "dev": true, + "requires": { + "flatted": "^3.2.9", + "keyv": "^4.5.4" + } + }, + "flatted": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.3.tgz", + "integrity": "sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==", + "dev": true + }, + "for-each": { + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.5.tgz", + "integrity": "sha512-dKx12eRCVIzqCxFGplyFKJMPvLEWgmNtUrpTiJIR5u97zEhRG8ySrtboPHZXx7daLxQVrl643cTzbab2tkQjxg==", + "requires": { + "is-callable": "^1.2.7" + } + }, + "function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==" + }, + "function.prototype.name": { + "version": "1.1.8", + "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.8.tgz", + "integrity": "sha512-e5iwyodOHhbMr/yNrc7fDYG4qlbIvI5gajyzPnb5TCwyhjApznQh1BMFou9b30SevY43gCJKXycoCBjMbsuW0Q==", + "dev": true, + "requires": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "define-properties": "^1.2.1", + "functions-have-names": "^1.2.3", + "hasown": "^2.0.2", + "is-callable": "^1.2.7" + } + }, + "functions-have-names": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", + "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", + "dev": true + }, + "get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==" + }, + "get-intrinsic": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", + "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", + "requires": { + "call-bind-apply-helpers": "^1.0.2", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", + "function-bind": "^1.1.2", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "math-intrinsics": "^1.1.0" + } + }, + "get-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", + "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", + "requires": { + "dunder-proto": "^1.0.1", + "es-object-atoms": "^1.0.0" + } + }, + "get-symbol-description": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.1.0.tgz", + "integrity": "sha512-w9UMqWwJxHNOvoNzSJ2oPF5wvYcvP7jUvYzhp67yEhTi17ZDBBC1z9pTdGuzjD+EFIqLSYRweZjqfiPzQ06Ebg==", + "dev": true, + "requires": { + "call-bound": "^1.0.3", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6" + } + }, + "get-tsconfig": { + "version": "4.10.0", + "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.10.0.tgz", + "integrity": "sha512-kGzZ3LWWQcGIAmg6iWvXn0ei6WDtV26wzHRMwDSzmAbcXrTEXxHy6IehI6/4eT6VRKyMP1eF1VqwrVUmE/LR7A==", + "dev": true, + "requires": { + "resolve-pkg-maps": "^1.0.0" + } + }, + "glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "requires": { + "is-glob": "^4.0.3" + } + }, + "globals": { + "version": "14.0.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", + "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", + "dev": true + }, + "globalthis": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.4.tgz", + "integrity": "sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ==", + "dev": true, + "requires": { + "define-properties": "^1.2.1", + "gopd": "^1.0.1" + } + }, + "gopd": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", + "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==" + }, + "graphemer": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", + "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", + "dev": true + }, + "h3": { + "version": "1.15.1", + "resolved": "https://registry.npmjs.org/h3/-/h3-1.15.1.tgz", + "integrity": "sha512-+ORaOBttdUm1E2Uu/obAyCguiI7MbBvsLTndc3gyK3zU+SYLoZXlyCP9Xgy0gikkGufFLTZXCXD6+4BsufnmHA==", + "requires": { + "cookie-es": "^1.2.2", + "crossws": "^0.3.3", + "defu": "^6.1.4", + "destr": "^2.0.3", + "iron-webcrypto": "^1.2.1", + "node-mock-http": "^1.0.0", + "radix3": "^1.1.2", + "ufo": "^1.5.4", + "uncrypto": "^0.1.3" + } + }, + "has-bigints": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.1.0.tgz", + "integrity": "sha512-R3pbpkcIqv2Pm3dUwgjclDRVmWpTJW2DcMzcIhEXEx1oh/CEMObMm3KLmRJOdvhM7o4uQBnwr8pzRK2sJWIqfg==", + "dev": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "has-property-descriptors": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", + "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", + "requires": { + "es-define-property": "^1.0.0" + } + }, + "has-proto": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.2.0.tgz", + "integrity": "sha512-KIL7eQPfHQRC8+XluaIw7BHUwwqL19bQn4hzNgdr+1wXoU0KKj6rufu47lhY7KbJR2C6T6+PfyN0Ea7wkSS+qQ==", + "dev": true, + "requires": { + "dunder-proto": "^1.0.0" + } + }, + "has-symbols": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==" + }, + "has-tostringtag": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", + "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", + "requires": { + "has-symbols": "^1.0.3" + } + }, + "hasown": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "requires": { + "function-bind": "^1.1.2" + } + }, + "hey-listen": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/hey-listen/-/hey-listen-1.0.8.tgz", + "integrity": "sha512-COpmrF2NOg4TBWUJ5UVyaCU2A88wEMkUPK4hNqyCkqHbxT92BbvfjoSozkAIIm6XhicGlJHhFdullInrdhwU8Q==" + }, + "idb-keyval": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/idb-keyval/-/idb-keyval-6.2.1.tgz", + "integrity": "sha512-8Sb3veuYCyrZL+VBt9LJfZjLUPWVvqn8tG28VqYNFCo43KHcKuq+b4EiXGeuaLAQWL2YmyDgMp2aSpH9JHsEQg==" + }, + "ieee754": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", + "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==" + }, + "ignore": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", + "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", + "dev": true + }, + "import-fresh": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz", + "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==", + "dev": true, + "requires": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + } + }, + "imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true + }, + "inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" + }, + "internal-slot": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.1.0.tgz", + "integrity": "sha512-4gd7VpWNQNB4UKKCFFVcp1AVv+FMOgs9NKzjHKusc8jTMhd5eL1NqQqOpE0KzMds804/yHlglp3uxgluOqAPLw==", + "dev": true, + "requires": { + "es-errors": "^1.3.0", + "hasown": "^2.0.2", + "side-channel": "^1.1.0" + } + }, + "iron-webcrypto": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/iron-webcrypto/-/iron-webcrypto-1.2.1.tgz", + "integrity": "sha512-feOM6FaSr6rEABp/eDfVseKyTMDt+KGpeB35SkVn9Tyn0CqvVsY3EwI0v5i8nMHyJnzCIQf7nsy3p41TPkJZhg==" + }, + "is-arguments": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.2.0.tgz", + "integrity": "sha512-7bVbi0huj/wrIAOzb8U1aszg9kdi3KN/CyU19CTI7tAoZYEZoL9yCDXpbXN+uPsuWnP02cyug1gleqq+TU+YCA==", + "requires": { + "call-bound": "^1.0.2", + "has-tostringtag": "^1.0.2" + } + }, + "is-array-buffer": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.5.tgz", + "integrity": "sha512-DDfANUiiG2wC1qawP66qlTugJeL5HyzMpfr8lLK+jMQirGzNod0B12cFB/9q838Ru27sBwfw78/rdoU7RERz6A==", + "dev": true, + "requires": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "get-intrinsic": "^1.2.6" + } + }, + "is-arrayish": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.3.2.tgz", + "integrity": "sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ==", + "optional": true + }, + "is-async-function": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-async-function/-/is-async-function-2.1.1.tgz", + "integrity": "sha512-9dgM/cZBnNvjzaMYHVoxxfPj2QXt22Ev7SuuPrs+xav0ukGB0S6d4ydZdEiM48kLx5kDV+QBPrpVnFyefL8kkQ==", + "dev": true, + "requires": { + "async-function": "^1.0.0", + "call-bound": "^1.0.3", + "get-proto": "^1.0.1", + "has-tostringtag": "^1.0.2", + "safe-regex-test": "^1.1.0" + } + }, + "is-bigint": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.1.0.tgz", + "integrity": "sha512-n4ZT37wG78iz03xPRKJrHTdZbe3IicyucEtdRsV5yglwc3GyUfbAfpSeD0FJ41NbUNSt5wbhqfp1fS+BgnvDFQ==", + "dev": true, + "requires": { + "has-bigints": "^1.0.2" + } + }, + "is-boolean-object": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.2.2.tgz", + "integrity": "sha512-wa56o2/ElJMYqjCjGkXri7it5FbebW5usLw/nPmCMs5DeZ7eziSYZhSmPRn0txqeW4LnAmQQU7FgqLpsEFKM4A==", + "dev": true, + "requires": { + "call-bound": "^1.0.3", + "has-tostringtag": "^1.0.2" + } + }, + "is-bun-module": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-bun-module/-/is-bun-module-2.0.0.tgz", + "integrity": "sha512-gNCGbnnnnFAUGKeZ9PdbyeGYJqewpmc2aKHUEMO5nQPWU9lOmv7jcmQIv+qHD8fXW6W7qfuCwX4rY9LNRjXrkQ==", + "dev": true, + "requires": { + "semver": "^7.7.1" + } + }, + "is-callable": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", + "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==" + }, + "is-core-module": { + "version": "2.16.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz", + "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==", + "dev": true, + "requires": { + "hasown": "^2.0.2" + } + }, + "is-data-view": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-data-view/-/is-data-view-1.0.2.tgz", + "integrity": "sha512-RKtWF8pGmS87i2D6gqQu/l7EYRlVdfzemCJN/P3UOs//x1QE7mfhvzHIApBTRf7axvT6DMGwSwBXYCT0nfB9xw==", + "dev": true, + "requires": { + "call-bound": "^1.0.2", + "get-intrinsic": "^1.2.6", + "is-typed-array": "^1.1.13" + } + }, + "is-date-object": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.1.0.tgz", + "integrity": "sha512-PwwhEakHVKTdRNVOw+/Gyh0+MzlCl4R6qKvkhuvLtPMggI1WAHt9sOwZxQLSGpUaDnrdyDsomoRgNnCfKNSXXg==", + "dev": true, + "requires": { + "call-bound": "^1.0.2", + "has-tostringtag": "^1.0.2" + } + }, + "is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true + }, + "is-finalizationregistry": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-finalizationregistry/-/is-finalizationregistry-1.1.1.tgz", + "integrity": "sha512-1pC6N8qWJbWoPtEjgcL2xyhQOP491EQjeUo3qTKcmV8YSDDJrOepfG8pcC7h/QgnQHYSv0mJ3Z/ZWxmatVrysg==", + "dev": true, + "requires": { + "call-bound": "^1.0.3" + } + }, + "is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==" + }, + "is-generator-function": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.1.0.tgz", + "integrity": "sha512-nPUB5km40q9e8UfN/Zc24eLlzdSf9OfKByBw9CIdw4H1giPMeA0OIJvbchsCu4npfI2QcMVBsGEBHKZ7wLTWmQ==", + "requires": { + "call-bound": "^1.0.3", + "get-proto": "^1.0.0", + "has-tostringtag": "^1.0.2", + "safe-regex-test": "^1.1.0" + } + }, + "is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "requires": { + "is-extglob": "^2.1.1" + } + }, + "is-map": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.3.tgz", + "integrity": "sha512-1Qed0/Hr2m+YqxnM09CjA2d/i6YZNfF6R2oRAOj36eUdS6qIV/huPJNSEpKbupewFs+ZsJlxsjjPbc0/afW6Lw==", + "dev": true + }, + "is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true + }, + "is-number-object": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.1.1.tgz", + "integrity": "sha512-lZhclumE1G6VYD8VHe35wFaIif+CTy5SJIi5+3y4psDgWu4wPDoBhF8NxUOinEc7pHgiTsT6MaBb92rKhhD+Xw==", + "dev": true, + "requires": { + "call-bound": "^1.0.3", + "has-tostringtag": "^1.0.2" + } + }, + "is-regex": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.2.1.tgz", + "integrity": "sha512-MjYsKHO5O7mCsmRGxWcLWheFqN9DJ/2TmngvjKXihe6efViPqc274+Fx/4fYj/r03+ESvBdTXK0V6tA3rgez1g==", + "requires": { + "call-bound": "^1.0.2", + "gopd": "^1.2.0", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" + } + }, + "is-set": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/is-set/-/is-set-2.0.3.tgz", + "integrity": "sha512-iPAjerrse27/ygGLxw+EBR9agv9Y6uLeYVJMu+QNCoouJ1/1ri0mGrcWpfCqFZuzzx3WjtwxG098X+n4OuRkPg==", + "dev": true + }, + "is-shared-array-buffer": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.4.tgz", + "integrity": "sha512-ISWac8drv4ZGfwKl5slpHG9OwPNty4jOWPRIhBpxOoD+hqITiwuipOQ2bNthAzwA3B4fIjO4Nln74N0S9byq8A==", + "dev": true, + "requires": { + "call-bound": "^1.0.3" + } + }, + "is-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==" + }, + "is-string": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.1.1.tgz", + "integrity": "sha512-BtEeSsoaQjlSPBemMQIrY1MY0uM6vnS1g5fmufYOtnxLGUZM2178PKbhsk7Ffv58IX+ZtcvoGwccYsh0PglkAA==", + "dev": true, + "requires": { + "call-bound": "^1.0.3", + "has-tostringtag": "^1.0.2" + } + }, + "is-symbol": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.1.1.tgz", + "integrity": "sha512-9gGx6GTtCQM73BgmHQXfDmLtfjjTUDSyoxTCbp5WtoixAhfgsDirWIcVQ/IHpvI5Vgd5i/J5F7B9cN/WlVbC/w==", + "dev": true, + "requires": { + "call-bound": "^1.0.2", + "has-symbols": "^1.1.0", + "safe-regex-test": "^1.1.0" + } + }, + "is-typed-array": { + "version": "1.1.15", + "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.15.tgz", + "integrity": "sha512-p3EcsicXjit7SaskXHs1hA91QxgTw46Fv6EFKKGS5DRFLD8yKnohjF3hxoju94b/OcMZoQukzpPpBE9uLVKzgQ==", + "requires": { + "which-typed-array": "^1.1.16" + } + }, + "is-weakmap": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.2.tgz", + "integrity": "sha512-K5pXYOm9wqY1RgjpL3YTkF39tni1XajUIkawTLUo9EZEVUFga5gSQJF8nNS7ZwJQ02y+1YCNYcMh+HIf1ZqE+w==", + "dev": true + }, + "is-weakref": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.1.1.tgz", + "integrity": "sha512-6i9mGWSlqzNMEqpCp93KwRS1uUOodk2OJ6b+sq7ZPDSy2WuI5NFIxp/254TytR8ftefexkWn5xNiHUNpPOfSew==", + "dev": true, + "requires": { + "call-bound": "^1.0.3" + } + }, + "is-weakset": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-weakset/-/is-weakset-2.0.4.tgz", + "integrity": "sha512-mfcwb6IzQyOKTs84CQMrOwW4gQcaTOAWJ0zzJCl2WSPDrWk/OzDaImWFH3djXhb24g4eudZfLRozAvPGw4d9hQ==", + "dev": true, + "requires": { + "call-bound": "^1.0.3", + "get-intrinsic": "^1.2.6" + } + }, + "isarray": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", + "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", + "dev": true + }, + "isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true + }, + "isows": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/isows/-/isows-1.0.6.tgz", + "integrity": "sha512-lPHCayd40oW98/I0uvgaHKWCSvkzY27LjWLbtzOm64yQ+G3Q5npjjbdppU65iZXkK1Zt+kH9pfegli0AYfwYYw==", + "requires": {} + }, + "iterator.prototype": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/iterator.prototype/-/iterator.prototype-1.1.5.tgz", + "integrity": "sha512-H0dkQoCa3b2VEeKQBOxFph+JAbcrQdE7KC0UkqwpLmv2EC4P41QXP+rqo9wYodACiG5/WM5s9oDApTU8utwj9g==", + "dev": true, + "requires": { + "define-data-property": "^1.1.4", + "es-object-atoms": "^1.0.0", + "get-intrinsic": "^1.2.6", + "get-proto": "^1.0.0", + "has-symbols": "^1.1.0", + "set-function-name": "^2.0.2" + } + }, + "js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" + }, + "js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dev": true, + "requires": { + "argparse": "^2.0.1" + } + }, + "json-buffer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", + "dev": true + }, + "json-rpc-engine": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/json-rpc-engine/-/json-rpc-engine-6.1.0.tgz", + "integrity": "sha512-NEdLrtrq1jUZyfjkr9OCz9EzCNhnRyWtt1PAnvnhwy6e8XETS0Dtc+ZNCO2gvuAoKsIn2+vCSowXTYE4CkgnAQ==", + "requires": { + "@metamask/safe-event-emitter": "^2.0.0", + "eth-rpc-errors": "^4.0.2" + }, + "dependencies": { + "@metamask/safe-event-emitter": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@metamask/safe-event-emitter/-/safe-event-emitter-2.0.0.tgz", + "integrity": "sha512-/kSXhY692qiV1MXu6EeOZvg5nECLclxNXcKCxJ3cXQgYuRymRHpdx/t7JXfsK+JLjwA1e1c1/SBrlQYpusC29Q==" + } + } + }, + "json-rpc-random-id": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-rpc-random-id/-/json-rpc-random-id-1.0.1.tgz", + "integrity": "sha512-RJ9YYNCkhVDBuP4zN5BBtYAzEl03yq/jIIsyif0JY9qyJuQQZNeDK7anAPKKlyEtLSj2s8h6hNh2F8zO5q7ScA==" + }, + "json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "dev": true + }, + "json5": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", + "dev": true, + "requires": { + "minimist": "^1.2.0" + } + }, + "jsx-ast-utils": { + "version": "3.3.5", + "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.3.5.tgz", + "integrity": "sha512-ZZow9HBI5O6EPgSJLUb8n2NKgmVWTwCvHGwFuJlMjvLFqlGG6pjirPhtdsseaLZjSibD8eegzmYpUZwoIlj2cQ==", + "dev": true, + "requires": { + "array-includes": "^3.1.6", + "array.prototype.flat": "^1.3.1", + "object.assign": "^4.1.4", + "object.values": "^1.1.6" + } + }, + "keccak": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/keccak/-/keccak-3.0.4.tgz", + "integrity": "sha512-3vKuW0jV8J3XNTzvfyicFR5qvxrSAGl7KIhvgOu5cmWwM7tZRj3fMbj/pfIf4be7aznbc+prBWGjywox/g2Y6Q==", + "requires": { + "node-addon-api": "^2.0.0", + "node-gyp-build": "^4.2.0", + "readable-stream": "^3.6.0" + } + }, + "keyv": { + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", + "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", + "dev": true, + "requires": { + "json-buffer": "3.0.1" + } + }, + "keyvaluestorage-interface": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/keyvaluestorage-interface/-/keyvaluestorage-interface-1.0.0.tgz", + "integrity": "sha512-8t6Q3TclQ4uZynJY9IGr2+SsIGwK9JHcO6ootkHCGA0CrQCRy+VkouYNO2xicET6b9al7QKzpebNow+gkpCL8g==" + }, + "language-subtag-registry": { + "version": "0.3.23", + "resolved": "https://registry.npmjs.org/language-subtag-registry/-/language-subtag-registry-0.3.23.tgz", + "integrity": "sha512-0K65Lea881pHotoGEa5gDlMxt3pctLi2RplBb7Ezh4rRdLEOtgi7n4EwK9lamnUCkKBqaeKRVebTq6BAxSkpXQ==", + "dev": true + }, + "language-tags": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/language-tags/-/language-tags-1.0.9.tgz", + "integrity": "sha512-MbjN408fEndfiQXbFQ1vnd+1NoLDsnQW41410oQBXiyXDMYH5z505juWa4KUE1LqxRC7DgOgZDbKLxHIwm27hA==", + "dev": true, + "requires": { + "language-subtag-registry": "^0.3.20" + } + }, + "levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "requires": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + } + }, + "lit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/lit/-/lit-3.1.0.tgz", + "integrity": "sha512-rzo/hmUqX8zmOdamDAeydfjsGXbbdtAFqMhmocnh2j9aDYqbu0fjXygjCa0T99Od9VQ/2itwaGrjZz/ZELVl7w==", + "requires": { + "@lit/reactive-element": "^2.0.0", + "lit-element": "^4.0.0", + "lit-html": "^3.1.0" + } + }, + "lit-element": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/lit-element/-/lit-element-4.2.0.tgz", + "integrity": "sha512-MGrXJVAI5x+Bfth/pU9Kst1iWID6GHDLEzFEnyULB/sFiRLgkd8NPK/PeeXxktA3T6EIIaq8U3KcbTU5XFcP2Q==", + "requires": { + "@lit-labs/ssr-dom-shim": "^1.2.0", + "@lit/reactive-element": "^2.1.0", + "lit-html": "^3.3.0" + } + }, + "lit-html": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/lit-html/-/lit-html-3.3.0.tgz", + "integrity": "sha512-RHoswrFAxY2d8Cf2mm4OZ1DgzCoBKUKSPvA1fhtSELxUERq2aQQ2h05pO9j81gS1o7RIRJ+CePLogfyahwmynw==", + "requires": { + "@types/trusted-types": "^2.0.2" + } + }, + "locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "requires": { + "p-locate": "^5.0.0" + } + }, + "lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true + }, + "loose-envify": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", + "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", + "requires": { + "js-tokens": "^3.0.0 || ^4.0.0" + } + }, + "lru-cache": { + "version": "10.4.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", + "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==" + }, + "math-intrinsics": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", + "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==" + }, + "merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "dev": true + }, + "micro-ftch": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/micro-ftch/-/micro-ftch-0.3.1.tgz", + "integrity": "sha512-/0LLxhzP0tfiR5hcQebtudP56gUurs2CLkGarnCiB/OqEyUFQ6U3paQi/tgLv0hBJYt2rnr9MNpxz4fiiugstg==" + }, + "micromatch": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", + "dev": true, + "requires": { + "braces": "^3.0.3", + "picomatch": "^2.3.1" + } + }, + "minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "requires": { + "brace-expansion": "^1.1.7" + } + }, + "minimist": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "dev": true + }, + "mipd": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/mipd/-/mipd-0.0.7.tgz", + "integrity": "sha512-aAPZPNDQ3uMTdKbuO2YmAw2TxLHO0moa4YKAyETM/DTj5FloZo+a+8tU+iv4GmW+sOxKLSRwcSFuczk+Cpt6fg==", + "requires": {} + }, + "motion": { + "version": "10.16.2", + "resolved": "https://registry.npmjs.org/motion/-/motion-10.16.2.tgz", + "integrity": "sha512-p+PurYqfUdcJZvtnmAqu5fJgV2kR0uLFQuBKtLeFVTrYEVllI99tiOTSefVNYuip9ELTEkepIIDftNdze76NAQ==", + "requires": { + "@motionone/animation": "^10.15.1", + "@motionone/dom": "^10.16.2", + "@motionone/svelte": "^10.16.2", + "@motionone/types": "^10.15.1", + "@motionone/utils": "^10.15.1", + "@motionone/vue": "^10.16.2" + } + }, + "ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" + }, + "multiformats": { + "version": "9.9.0", + "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-9.9.0.tgz", + "integrity": "sha512-HoMUjhH9T8DDBNT+6xzkrd9ga/XiBI4xLr58LJACwK6G3HTOPeMz4nB4KJs33L2BelrIJa7P0VuNaVF3hMYfjg==" + }, + "nanoid": { + "version": "3.3.11", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz", + "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==" + }, + "napi-postinstall": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/napi-postinstall/-/napi-postinstall-0.1.5.tgz", + "integrity": "sha512-HI5bHONOUYqV+FJvueOSgjRxHTLB25a3xIv59ugAxFe7xRNbW96hyYbMbsKzl+QvFV9mN/SrtHwiU+vYhMwA7Q==", + "dev": true + }, + "natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true + }, + "next": { + "version": "15.3.0", + "resolved": "https://registry.npmjs.org/next/-/next-15.3.0.tgz", + "integrity": "sha512-k0MgP6BsK8cZ73wRjMazl2y2UcXj49ZXLDEgx6BikWuby/CN+nh81qFFI16edgd7xYpe/jj2OZEIwCoqnzz0bQ==", + "requires": { + "@next/env": "15.3.0", + "@next/swc-darwin-arm64": "15.3.0", + "@next/swc-darwin-x64": "15.3.0", + "@next/swc-linux-arm64-gnu": "15.3.0", + "@next/swc-linux-arm64-musl": "15.3.0", + "@next/swc-linux-x64-gnu": "15.3.0", + "@next/swc-linux-x64-musl": "15.3.0", + "@next/swc-win32-arm64-msvc": "15.3.0", + "@next/swc-win32-x64-msvc": "15.3.0", + "@swc/counter": "0.1.3", + "@swc/helpers": "0.5.15", + "busboy": "1.6.0", + "caniuse-lite": "^1.0.30001579", + "postcss": "8.4.31", + "sharp": "^0.34.1", + "styled-jsx": "5.1.6" + } + }, + "node-addon-api": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-2.0.2.tgz", + "integrity": "sha512-Ntyt4AIXyaLIuMHF6IOoTakB3K+RWxwtsHNRxllEoA6vPwP9o4866g6YWDLUdnucilZhmkxiHwHr11gAENw+QA==" + }, + "node-fetch": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", + "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", + "requires": { + "whatwg-url": "^5.0.0" + } + }, + "node-fetch-native": { + "version": "1.6.6", + "resolved": "https://registry.npmjs.org/node-fetch-native/-/node-fetch-native-1.6.6.tgz", + "integrity": "sha512-8Mc2HhqPdlIfedsuZoc3yioPuzp6b+L5jRCRY1QzuWZh2EGJVQrGppC6V6cF0bLdbW0+O2YpqCA25aF/1lvipQ==" + }, + "node-gyp-build": { + "version": "4.8.4", + "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.8.4.tgz", + "integrity": "sha512-LA4ZjwlnUblHVgq0oBF3Jl/6h/Nvs5fzBLwdEF4nuxnFdsfajde4WfxtJr3CaiH+F6ewcIB/q4jQ4UzPyid+CQ==" + }, + "node-mock-http": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/node-mock-http/-/node-mock-http-1.0.0.tgz", + "integrity": "sha512-0uGYQ1WQL1M5kKvGRXWQ3uZCHtLTO8hln3oBjIusM75WoesZ909uQJs/Hb946i2SS+Gsrhkaa6iAO17jRIv6DQ==" + }, + "normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==" + }, + "obj-multiplex": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/obj-multiplex/-/obj-multiplex-1.0.0.tgz", + "integrity": "sha512-0GNJAOsHoBHeNTvl5Vt6IWnpUEcc3uSRxzBri7EDyIcMgYvnY2JL2qdeV5zTMjWQX5OHcD5amcW2HFfDh0gjIA==", + "requires": { + "end-of-stream": "^1.4.0", + "once": "^1.4.0", + "readable-stream": "^2.3.3" + }, + "dependencies": { + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==" + }, + "readable-stream": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + }, + "string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "requires": { + "safe-buffer": "~5.1.0" + } + } + } + }, + "object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", + "dev": true + }, + "object-inspect": { + "version": "1.13.4", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", + "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==", + "dev": true + }, + "object-keys": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", + "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", + "dev": true + }, + "object.assign": { + "version": "4.1.7", + "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.7.tgz", + "integrity": "sha512-nK28WOo+QIjBkDduTINE4JkF/UJJKyf2EJxvJKfblDpyg0Q+pkOHNTL0Qwy6NP6FhE/EnzV73BxxqcJaXY9anw==", + "dev": true, + "requires": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "define-properties": "^1.2.1", + "es-object-atoms": "^1.0.0", + "has-symbols": "^1.1.0", + "object-keys": "^1.1.1" + } + }, + "object.entries": { + "version": "1.1.9", + "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.9.tgz", + "integrity": "sha512-8u/hfXFRBD1O0hPUjioLhoWFHRmt6tKA4/vZPyckBr18l1KE9uHrFaFaUi8MDRTpi4uak2goyPTSNJLXX2k2Hw==", + "dev": true, + "requires": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.4", + "define-properties": "^1.2.1", + "es-object-atoms": "^1.1.1" + } + }, + "object.fromentries": { + "version": "2.0.8", + "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.8.tgz", + "integrity": "sha512-k6E21FzySsSK5a21KRADBd/NGneRegFO5pLHfdQLpRDETUNJueLXs3WCzyQ3tFRDYgbq3KHGXfTbi2bs8WQ6rQ==", + "dev": true, + "requires": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.2", + "es-object-atoms": "^1.0.0" + } + }, + "object.groupby": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/object.groupby/-/object.groupby-1.0.3.tgz", + "integrity": "sha512-+Lhy3TQTuzXI5hevh8sBGqbmurHbbIjAi0Z4S63nthVLmLxfbj4T54a4CfZrXIrt9iP4mVAPYMo/v99taj3wjQ==", + "dev": true, + "requires": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.2" + } + }, + "object.values": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.2.1.tgz", + "integrity": "sha512-gXah6aZrcUxjWg2zR2MwouP2eHlCBzdV4pygudehaKXSGW4v2AsRQUK+lwwXhii6KFZcunEnmSUoYp5CXibxtA==", + "dev": true, + "requires": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "define-properties": "^1.2.1", + "es-object-atoms": "^1.0.0" + } + }, + "ofetch": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/ofetch/-/ofetch-1.4.1.tgz", + "integrity": "sha512-QZj2DfGplQAr2oj9KzceK9Hwz6Whxazmn85yYeVuS3u9XTMOGMRx0kO95MQ+vLsj/S/NwBDMMLU5hpxvI6Tklw==", + "requires": { + "destr": "^2.0.3", + "node-fetch-native": "^1.6.4", + "ufo": "^1.5.4" + } + }, + "on-exit-leak-free": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/on-exit-leak-free/-/on-exit-leak-free-0.2.0.tgz", + "integrity": "sha512-dqaz3u44QbRXQooZLTUKU41ZrzYrcvLISVgbrzbyCMxpmSLJvZ3ZamIJIZ29P6OhZIkNIQKosdeM6t1LYbA9hg==" + }, + "once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "requires": { + "wrappy": "1" + } + }, + "optionator": { + "version": "0.9.4", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", + "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", + "dev": true, + "requires": { + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.5" + } + }, + "own-keys": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/own-keys/-/own-keys-1.0.1.tgz", + "integrity": "sha512-qFOyK5PjiWZd+QQIh+1jhdb9LpxTF0qs7Pm8o5QHYZ0M3vKqSqzsZaEB6oWlxZ+q2sJBMI/Ktgd2N5ZwQoRHfg==", + "dev": true, + "requires": { + "get-intrinsic": "^1.2.6", + "object-keys": "^1.1.1", + "safe-push-apply": "^1.0.0" + } + }, + "ox": { + "version": "0.6.9", + "resolved": "https://registry.npmjs.org/ox/-/ox-0.6.9.tgz", + "integrity": "sha512-wi5ShvzE4eOcTwQVsIPdFr+8ycyX+5le/96iAJutaZAvCes1J0+RvpEPg5QDPDiaR0XQQAvZVl7AwqQcINuUug==", + "requires": { + "@adraffy/ens-normalize": "^1.10.1", + "@noble/curves": "^1.6.0", + "@noble/hashes": "^1.5.0", + "@scure/bip32": "^1.5.0", + "@scure/bip39": "^1.4.0", + "abitype": "^1.0.6", + "eventemitter3": "5.0.1" + }, + "dependencies": { + "@noble/curves": { + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.8.2.tgz", + "integrity": "sha512-vnI7V6lFNe0tLAuJMu+2sX+FcL14TaCWy1qiczg1VwRmPrpQCdq5ESXQMqUc2tluRNf6irBXrWbl1mGN8uaU/g==", + "requires": { + "@noble/hashes": "1.7.2" + } + }, + "@scure/bip32": { + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.6.2.tgz", + "integrity": "sha512-t96EPDMbtGgtb7onKKqxRLfE5g05k7uHnHRM2xdE6BP/ZmxaLtPek4J4KfVn/90IQNrU1IOAqMgiDtUdtbe3nw==", + "requires": { + "@noble/curves": "~1.8.1", + "@noble/hashes": "~1.7.1", + "@scure/base": "~1.2.2" + } + }, + "@scure/bip39": { + "version": "1.5.4", + "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.5.4.tgz", + "integrity": "sha512-TFM4ni0vKvCfBpohoh+/lY05i9gRbSwXWngAsF4CABQxoaOHijxuaZ2R6cStDQ5CHtHO9aGJTr4ksVJASRRyMA==", + "requires": { + "@noble/hashes": "~1.7.1", + "@scure/base": "~1.2.4" + } + } + } + }, + "p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "requires": { + "yocto-queue": "^0.1.0" + } + }, + "p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, + "requires": { + "p-limit": "^3.0.2" + } + }, + "p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==" + }, + "parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dev": true, + "requires": { + "callsites": "^3.0.0" + } + }, + "path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==" + }, + "path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true + }, + "path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true + }, + "picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==" + }, + "picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==" + }, + "pify": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", + "integrity": "sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg==" + }, + "pino": { + "version": "7.11.0", + "resolved": "https://registry.npmjs.org/pino/-/pino-7.11.0.tgz", + "integrity": "sha512-dMACeu63HtRLmCG8VKdy4cShCPKaYDR4youZqoSWLxl5Gu99HUw8bw75thbPv9Nip+H+QYX8o3ZJbTdVZZ2TVg==", + "requires": { + "atomic-sleep": "^1.0.0", + "fast-redact": "^3.0.0", + "on-exit-leak-free": "^0.2.0", + "pino-abstract-transport": "v0.5.0", + "pino-std-serializers": "^4.0.0", + "process-warning": "^1.0.0", + "quick-format-unescaped": "^4.0.3", + "real-require": "^0.1.0", + "safe-stable-stringify": "^2.1.0", + "sonic-boom": "^2.2.1", + "thread-stream": "^0.15.1" + } + }, + "pino-abstract-transport": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/pino-abstract-transport/-/pino-abstract-transport-0.5.0.tgz", + "integrity": "sha512-+KAgmVeqXYbTtU2FScx1XS3kNyfZ5TrXY07V96QnUSFqo2gAqlvmaxH67Lj7SWazqsMabf+58ctdTcBgnOLUOQ==", + "requires": { + "duplexify": "^4.1.2", + "split2": "^4.0.0" + } + }, + "pino-std-serializers": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/pino-std-serializers/-/pino-std-serializers-4.0.0.tgz", + "integrity": "sha512-cK0pekc1Kjy5w9V2/n+8MkZwusa6EyyxfeQCB799CQRhRt/CqYKiWs5adeu8Shve2ZNffvfC/7J64A2PJo1W/Q==" + }, + "pngjs": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/pngjs/-/pngjs-5.0.0.tgz", + "integrity": "sha512-40QW5YalBNfQo5yRYmiw7Yz6TKKVr3h6970B2YE+3fQpsWcrbj1PzJgxeJ19DRQjhMbKPIuMY8rFaXc8moolVw==" + }, + "pony-cause": { + "version": "2.1.11", + "resolved": "https://registry.npmjs.org/pony-cause/-/pony-cause-2.1.11.tgz", + "integrity": "sha512-M7LhCsdNbNgiLYiP4WjsfLUuFmCfnjdF6jKe2R9NKl4WFN+HZPGHJZ9lnLP7f9ZnKe3U9nuWD0szirmj+migUg==" + }, + "possible-typed-array-names": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.1.0.tgz", + "integrity": "sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg==" + }, + "postcss": { + "version": "8.4.31", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.31.tgz", + "integrity": "sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==", + "requires": { + "nanoid": "^3.3.6", + "picocolors": "^1.0.0", + "source-map-js": "^1.0.2" + } + }, + "preact": { + "version": "10.26.5", + "resolved": "https://registry.npmjs.org/preact/-/preact-10.26.5.tgz", + "integrity": "sha512-fmpDkgfGU6JYux9teDWLhj9mKN55tyepwYbxHgQuIxbWQzgFg5vk7Mrrtfx7xRxq798ynkY4DDDxZr235Kk+4w==" + }, + "prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true + }, + "process-nextick-args": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" + }, + "process-warning": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/process-warning/-/process-warning-1.0.0.tgz", + "integrity": "sha512-du4wfLyj4yCZq1VupnVSZmRsPJsNuxoDQFdCFHLaYiEbFBD7QE0a+I4D7hOxrVnh78QE/YipFAj9lXHiXocV+Q==" + }, + "prop-types": { + "version": "15.8.1", + "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz", + "integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==", + "dev": true, + "requires": { + "loose-envify": "^1.4.0", + "object-assign": "^4.1.1", + "react-is": "^16.13.1" + } + }, + "proxy-compare": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/proxy-compare/-/proxy-compare-2.6.0.tgz", + "integrity": "sha512-8xuCeM3l8yqdmbPoYeLbrAXCBWu19XEYc5/F28f5qOaoAIMyfmBUkl5axiK+x9olUvRlcekvnm98AP9RDngOIw==" + }, + "pump": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.2.tgz", + "integrity": "sha512-tUPXtzlGM8FE3P0ZL6DVs/3P58k9nk8/jZeQCurTJylQA8qFYzHFfhBJkuqyE0FifOsQ0uKWekiZ5g8wtr28cw==", + "requires": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + }, + "punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "dev": true + }, + "qrcode": { + "version": "1.5.3", + "resolved": "https://registry.npmjs.org/qrcode/-/qrcode-1.5.3.tgz", + "integrity": "sha512-puyri6ApkEHYiVl4CFzo1tDkAZ+ATcnbJrJ6RiBM1Fhctdn/ix9MTE3hRph33omisEbC/2fcfemsseiKgBPKZg==", + "requires": { + "dijkstrajs": "^1.0.1", + "encode-utf8": "^1.0.3", + "pngjs": "^5.0.0", + "yargs": "^15.3.1" + } + }, + "query-string": { + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/query-string/-/query-string-7.1.3.tgz", + "integrity": "sha512-hh2WYhq4fi8+b+/2Kg9CEge4fDPvHS534aOOvOZeQ3+Vf2mCFsaFBYj0i+iXcAq6I9Vzp5fjMFBlONvayDC1qg==", + "requires": { + "decode-uri-component": "^0.2.2", + "filter-obj": "^1.1.0", + "split-on-first": "^1.0.0", + "strict-uri-encode": "^2.0.0" + } + }, + "queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true + }, + "quick-format-unescaped": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/quick-format-unescaped/-/quick-format-unescaped-4.0.4.tgz", + "integrity": "sha512-tYC1Q1hgyRuHgloV/YXs2w15unPVh8qfu/qCTfhTYamaw7fyhumKa2yGpdSo87vY32rIclj+4fWYQXUMs9EHvg==" + }, + "radix3": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/radix3/-/radix3-1.1.2.tgz", + "integrity": "sha512-b484I/7b8rDEdSDKckSSBA8knMpcdsXudlE/LNL639wFoHKwLbEkQFZHWEYwDC0wa0FKUcCY+GAF73Z7wxNVFA==" + }, + "react": { + "version": "19.0.0", + "resolved": "https://registry.npmjs.org/react/-/react-19.0.0.tgz", + "integrity": "sha512-V8AVnmPIICiWpGfm6GLzCR/W5FXLchHop40W4nXBmdlEceh16rCN8O8LNWm5bh5XUX91fh7KpA+W0TgMKmgTpQ==" + }, + "react-dom": { + "version": "19.0.0", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.0.0.tgz", + "integrity": "sha512-4GV5sHFG0e/0AD4X+ySy6UJd3jVl1iNsNHdpad0qhABJ11twS3TTBnseqsKurKcsNqCEFeGL3uLpVChpIO3QfQ==", + "requires": { + "scheduler": "^0.25.0" + } + }, + "react-is": { + "version": "16.13.1", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", + "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==", + "dev": true + }, + "readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "requires": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + } + }, + "readdirp": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-4.1.2.tgz", + "integrity": "sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==" + }, + "real-require": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/real-require/-/real-require-0.1.0.tgz", + "integrity": "sha512-r/H9MzAWtrv8aSVjPCMFpDMl5q66GqtmmRkRjpHTsp4zBAa+snZyiQNlMONiUmEJcsnaw0wCauJ2GWODr/aFkg==" + }, + "reflect.getprototypeof": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/reflect.getprototypeof/-/reflect.getprototypeof-1.0.10.tgz", + "integrity": "sha512-00o4I+DVrefhv+nX0ulyi3biSHCPDe+yLv5o/p6d/UVlirijB8E16FtfwSAi4g3tcqrQ4lRAqQSoFEZJehYEcw==", + "dev": true, + "requires": { + "call-bind": "^1.0.8", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.9", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.0.0", + "get-intrinsic": "^1.2.7", + "get-proto": "^1.0.1", + "which-builtin-type": "^1.2.1" + } + }, + "regenerator-runtime": { + "version": "0.14.1", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz", + "integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==" + }, + "regexp.prototype.flags": { + "version": "1.5.4", + "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.4.tgz", + "integrity": "sha512-dYqgNSZbDwkaJ2ceRd9ojCGjBq+mOm9LmtXnAnEGyHhN/5R7iDW2TRw3h+o/jCFxus3P2LfWIIiwowAjANm7IA==", + "dev": true, + "requires": { + "call-bind": "^1.0.8", + "define-properties": "^1.2.1", + "es-errors": "^1.3.0", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "set-function-name": "^2.0.2" + } + }, + "require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==" + }, + "require-main-filename": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", + "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==" + }, + "resolve": { + "version": "1.22.10", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.10.tgz", + "integrity": "sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w==", + "dev": true, + "requires": { + "is-core-module": "^2.16.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + } + }, + "resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true + }, + "resolve-pkg-maps": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz", + "integrity": "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==", + "dev": true + }, + "reusify": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz", + "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==", + "dev": true + }, + "run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "dev": true, + "requires": { + "queue-microtask": "^1.2.2" + } + }, + "safe-array-concat": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.1.3.tgz", + "integrity": "sha512-AURm5f0jYEOydBj7VQlVvDrjeFgthDdEF5H1dP+6mNpoXOMo1quQqJ4wvJDyRZ9+pO3kGWoOdmV08cSv2aJV6Q==", + "dev": true, + "requires": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.2", + "get-intrinsic": "^1.2.6", + "has-symbols": "^1.1.0", + "isarray": "^2.0.5" + } + }, + "safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==" + }, + "safe-push-apply": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/safe-push-apply/-/safe-push-apply-1.0.0.tgz", + "integrity": "sha512-iKE9w/Z7xCzUMIZqdBsp6pEQvwuEebH4vdpjcDWnyzaI6yl6O9FHvVpmGelvEHNsoY6wGblkxR6Zty/h00WiSA==", + "dev": true, + "requires": { + "es-errors": "^1.3.0", + "isarray": "^2.0.5" + } + }, + "safe-regex-test": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.1.0.tgz", + "integrity": "sha512-x/+Cz4YrimQxQccJf5mKEbIa1NzeCRNI5Ecl/ekmlYaampdNLPalVyIcCZNNH3MvmqBugV5TMYZXv0ljslUlaw==", + "requires": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "is-regex": "^1.2.1" + } + }, + "safe-stable-stringify": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/safe-stable-stringify/-/safe-stable-stringify-2.5.0.tgz", + "integrity": "sha512-b3rppTKm9T+PsVCBEOUR46GWI7fdOs00VKZ1+9c1EWDaDMvjQc6tUwuFyIprgGgTcWoVHSKrU8H31ZHA2e0RHA==" + }, + "scheduler": { + "version": "0.25.0", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.25.0.tgz", + "integrity": "sha512-xFVuu11jh+xcO7JOAGJNOXld8/TcEHK/4CituBUeUb5hqxJLj9YuemAEuvm9gQ/+pgXYfbQuqAkiYu+u7YEsNA==" + }, + "semver": { + "version": "7.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz", + "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==" + }, + "set-blocking": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", + "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==" + }, + "set-function-length": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", + "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==", + "requires": { + "define-data-property": "^1.1.4", + "es-errors": "^1.3.0", + "function-bind": "^1.1.2", + "get-intrinsic": "^1.2.4", + "gopd": "^1.0.1", + "has-property-descriptors": "^1.0.2" + } + }, + "set-function-name": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.2.tgz", + "integrity": "sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ==", + "dev": true, + "requires": { + "define-data-property": "^1.1.4", + "es-errors": "^1.3.0", + "functions-have-names": "^1.2.3", + "has-property-descriptors": "^1.0.2" + } + }, + "set-proto": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/set-proto/-/set-proto-1.0.0.tgz", + "integrity": "sha512-RJRdvCo6IAnPdsvP/7m6bsQqNnn1FCBX5ZNtFL98MmFF/4xAIJTIg1YbHW5DC2W5SKZanrC6i4HsJqlajw/dZw==", + "dev": true, + "requires": { + "dunder-proto": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.0.0" + } + }, + "sha.js": { + "version": "2.4.11", + "resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.11.tgz", + "integrity": "sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ==", + "requires": { + "inherits": "^2.0.1", + "safe-buffer": "^5.0.1" + } + }, + "sharp": { + "version": "0.34.1", + "resolved": "https://registry.npmjs.org/sharp/-/sharp-0.34.1.tgz", + "integrity": "sha512-1j0w61+eVxu7DawFJtnfYcvSv6qPFvfTaqzTQ2BLknVhHTwGS8sc63ZBF4rzkWMBVKybo4S5OBtDdZahh2A1xg==", + "optional": true, + "requires": { + "@img/sharp-darwin-arm64": "0.34.1", + "@img/sharp-darwin-x64": "0.34.1", + "@img/sharp-libvips-darwin-arm64": "1.1.0", + "@img/sharp-libvips-darwin-x64": "1.1.0", + "@img/sharp-libvips-linux-arm": "1.1.0", + "@img/sharp-libvips-linux-arm64": "1.1.0", + "@img/sharp-libvips-linux-ppc64": "1.1.0", + "@img/sharp-libvips-linux-s390x": "1.1.0", + "@img/sharp-libvips-linux-x64": "1.1.0", + "@img/sharp-libvips-linuxmusl-arm64": "1.1.0", + "@img/sharp-libvips-linuxmusl-x64": "1.1.0", + "@img/sharp-linux-arm": "0.34.1", + "@img/sharp-linux-arm64": "0.34.1", + "@img/sharp-linux-s390x": "0.34.1", + "@img/sharp-linux-x64": "0.34.1", + "@img/sharp-linuxmusl-arm64": "0.34.1", + "@img/sharp-linuxmusl-x64": "0.34.1", + "@img/sharp-wasm32": "0.34.1", + "@img/sharp-win32-ia32": "0.34.1", + "@img/sharp-win32-x64": "0.34.1", + "color": "^4.2.3", + "detect-libc": "^2.0.3", + "semver": "^7.7.1" + } + }, + "shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "requires": { + "shebang-regex": "^3.0.0" + } + }, + "shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true + }, + "side-channel": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz", + "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==", + "dev": true, + "requires": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.3", + "side-channel-list": "^1.0.0", + "side-channel-map": "^1.0.1", + "side-channel-weakmap": "^1.0.2" + } + }, + "side-channel-list": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz", + "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==", + "dev": true, + "requires": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.3" + } + }, + "side-channel-map": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", + "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", + "dev": true, + "requires": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3" + } + }, + "side-channel-weakmap": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", + "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", + "dev": true, + "requires": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3", + "side-channel-map": "^1.0.1" + } + }, + "simple-swizzle": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/simple-swizzle/-/simple-swizzle-0.2.2.tgz", + "integrity": "sha512-JA//kQgZtbuY83m+xT+tXJkmJncGMTFT+C+g2h2R9uxkYIrE2yy9sgmcLhCnw57/WSD+Eh3J97FPEDFnbXnDUg==", + "optional": true, + "requires": { + "is-arrayish": "^0.3.1" + } + }, + "socket.io-client": { + "version": "4.8.1", + "resolved": "https://registry.npmjs.org/socket.io-client/-/socket.io-client-4.8.1.tgz", + "integrity": "sha512-hJVXfu3E28NmzGk8o1sHhN3om52tRvwYeidbj7xKy2eIIse5IoKX3USlS6Tqt3BHAtflLIkCQBkzVrEEfWUyYQ==", + "requires": { + "@socket.io/component-emitter": "~3.1.0", + "debug": "~4.3.2", + "engine.io-client": "~6.6.1", + "socket.io-parser": "~4.2.4" + }, + "dependencies": { + "debug": { + "version": "4.3.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.7.tgz", + "integrity": "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==", + "requires": { + "ms": "^2.1.3" + } + } + } + }, + "socket.io-parser": { + "version": "4.2.4", + "resolved": "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-4.2.4.tgz", + "integrity": "sha512-/GbIKmo8ioc+NIWIhwdecY0ge+qVBSMdgxGygevmdHj24bsfgtCmcUUcQ5ZzcylGFHsN3k4HB4Cgkl96KVnuew==", + "requires": { + "@socket.io/component-emitter": "~3.1.0", + "debug": "~4.3.1" + }, + "dependencies": { + "debug": { + "version": "4.3.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.7.tgz", + "integrity": "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==", + "requires": { + "ms": "^2.1.3" + } + } + } + }, + "sonic-boom": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/sonic-boom/-/sonic-boom-2.8.0.tgz", + "integrity": "sha512-kuonw1YOYYNOve5iHdSahXPOK49GqwA+LZhI6Wz/l0rP57iKyXXIHaRagOBHAPmGwJC6od2Z9zgvZ5loSgMlVg==", + "requires": { + "atomic-sleep": "^1.0.0" + } + }, + "source-map-js": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", + "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==" + }, + "split-on-first": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/split-on-first/-/split-on-first-1.1.0.tgz", + "integrity": "sha512-43ZssAJaMusuKWL8sKUBQXHWOpq8d6CfN/u1p4gUzfJkM05C8rxTmYrkIPTXapZpORA6LkkzcUulJ8FqA7Uudw==" + }, + "split2": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/split2/-/split2-4.2.0.tgz", + "integrity": "sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==" + }, + "stable-hash": { + "version": "0.0.5", + "resolved": "https://registry.npmjs.org/stable-hash/-/stable-hash-0.0.5.tgz", + "integrity": "sha512-+L3ccpzibovGXFK+Ap/f8LOS0ahMrHTf3xu7mMLSpEGU0EO9ucaysSylKo9eRDFNhWve/y275iPmIZ4z39a9iA==", + "dev": true + }, + "stream-shift": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/stream-shift/-/stream-shift-1.0.3.tgz", + "integrity": "sha512-76ORR0DO1o1hlKwTbi/DM3EXWGf3ZJYO8cXX5RJwnul2DEg2oyoZyjLNoQM8WsvZiFKCRfC1O0J7iCvie3RZmQ==" + }, + "streamsearch": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/streamsearch/-/streamsearch-1.1.0.tgz", + "integrity": "sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==" + }, + "strict-uri-encode": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strict-uri-encode/-/strict-uri-encode-2.0.0.tgz", + "integrity": "sha512-QwiXZgpRcKkhTj2Scnn++4PKtWsH0kpzZ62L2R6c/LUVYv7hVnZqcg2+sMuT6R7Jusu1vviK/MFsu6kNJfWlEQ==" + }, + "string_decoder": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "requires": { + "safe-buffer": "~5.2.0" + } + }, + "string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "requires": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "dependencies": { + "emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" + } + } + }, + "string.prototype.includes": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/string.prototype.includes/-/string.prototype.includes-2.0.1.tgz", + "integrity": "sha512-o7+c9bW6zpAdJHTtujeePODAhkuicdAryFsfVKwA+wGw89wJ4GTY484WTucM9hLtDEOpOvI+aHnzqnC5lHp4Rg==", + "dev": true, + "requires": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.3" + } + }, + "string.prototype.matchall": { + "version": "4.0.12", + "resolved": "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.0.12.tgz", + "integrity": "sha512-6CC9uyBL+/48dYizRf7H7VAYCMCNTBeM78x/VTUe9bFEaxBepPJDa1Ow99LqI/1yF7kuy7Q3cQsYMrcjGUcskA==", + "dev": true, + "requires": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.6", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.0.0", + "get-intrinsic": "^1.2.6", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "internal-slot": "^1.1.0", + "regexp.prototype.flags": "^1.5.3", + "set-function-name": "^2.0.2", + "side-channel": "^1.1.0" + } + }, + "string.prototype.repeat": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/string.prototype.repeat/-/string.prototype.repeat-1.0.0.tgz", + "integrity": "sha512-0u/TldDbKD8bFCQ/4f5+mNRrXwZ8hg2w7ZR8wa16e8z9XpePWl3eGEcUD0OXpEH/VJH/2G3gjUtR3ZOiBe2S/w==", + "dev": true, + "requires": { + "define-properties": "^1.1.3", + "es-abstract": "^1.17.5" + } + }, + "string.prototype.trim": { + "version": "1.2.10", + "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.10.tgz", + "integrity": "sha512-Rs66F0P/1kedk5lyYyH9uBzuiI/kNRmwJAR9quK6VOtIpZ2G+hMZd+HQbbv25MgCA6gEffoMZYxlTod4WcdrKA==", + "dev": true, + "requires": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.2", + "define-data-property": "^1.1.4", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.5", + "es-object-atoms": "^1.0.0", + "has-property-descriptors": "^1.0.2" + } + }, + "string.prototype.trimend": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.9.tgz", + "integrity": "sha512-G7Ok5C6E/j4SGfyLCloXTrngQIQU3PWtXGst3yM7Bea9FRURf1S42ZHlZZtsNque2FN2PoUhfZXYLNWwEr4dLQ==", + "dev": true, + "requires": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.2", + "define-properties": "^1.2.1", + "es-object-atoms": "^1.0.0" + } + }, + "string.prototype.trimstart": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.8.tgz", + "integrity": "sha512-UXSH262CSZY1tfu3G3Secr6uGLCFVPMhIqHjlgCUtCCcgihYc/xKs9djMTMUOb2j1mVSeU8EU6NWc/iQKU6Gfg==", + "dev": true, + "requires": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-object-atoms": "^1.0.0" + } + }, + "strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "requires": { + "ansi-regex": "^5.0.1" + } + }, + "strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", + "dev": true + }, + "strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true + }, + "styled-jsx": { + "version": "5.1.6", + "resolved": "https://registry.npmjs.org/styled-jsx/-/styled-jsx-5.1.6.tgz", + "integrity": "sha512-qSVyDTeMotdvQYoHWLNGwRFJHC+i+ZvdBRYosOFgC+Wg1vx4frN2/RG/NA7SYqqvKNLf39P2LSRA2pu6n0XYZA==", + "requires": { + "client-only": "0.0.1" + } + }, + "superstruct": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/superstruct/-/superstruct-1.0.4.tgz", + "integrity": "sha512-7JpaAoX2NGyoFlI9NBh66BQXGONc+uE+MRS5i2iOBKuS4e+ccgMDjATgZldkah+33DakBxDHiss9kvUcGAO8UQ==" + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + }, + "supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "dev": true + }, + "thread-stream": { + "version": "0.15.2", + "resolved": "https://registry.npmjs.org/thread-stream/-/thread-stream-0.15.2.tgz", + "integrity": "sha512-UkEhKIg2pD+fjkHQKyJO3yoIvAP3N6RlNFt2dUhcS1FGvCD1cQa1M/PGknCLFIyZdtJOWQjejp7bdNqmN7zwdA==", + "requires": { + "real-require": "^0.1.0" + } + }, + "tinyglobby": { + "version": "0.2.13", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.13.tgz", + "integrity": "sha512-mEwzpUgrLySlveBwEVDMKk5B57bhLPYovRfPAXD5gA/98Opn0rCDj3GtLwFvCvH5RK9uPCExUROW5NjDwvqkxw==", + "dev": true, + "requires": { + "fdir": "^6.4.4", + "picomatch": "^4.0.2" + }, + "dependencies": { + "fdir": { + "version": "6.4.4", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.4.4.tgz", + "integrity": "sha512-1NZP+GK4GfuAv3PqKvxQRDMjdSRZjnkq7KfhlNrCNNlZ0ygQFpebfrnfnq/W7fpUnAv9aGWmY1zKx7FYL3gwhg==", + "dev": true, + "requires": {} + }, + "picomatch": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.2.tgz", + "integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==", + "dev": true + } + } + }, + "to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "requires": { + "is-number": "^7.0.0" + } + }, + "tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" + }, + "ts-api-utils": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.1.0.tgz", + "integrity": "sha512-CUgTZL1irw8u29bzrOD/nH85jqyc74D6SshFgujOIA7osm2Rz7dYH77agkx7H4FBNxDq7Cjf+IjaX/8zwFW+ZQ==", + "dev": true, + "requires": {} + }, + "tsconfig-paths": { + "version": "3.15.0", + "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.15.0.tgz", + "integrity": "sha512-2Ac2RgzDe/cn48GvOe3M+o82pEFewD3UPbyoUHHdKasHwJKjds4fLXWf/Ux5kATBKN20oaFGu+jbElp1pos0mg==", + "dev": true, + "requires": { + "@types/json5": "^0.0.29", + "json5": "^1.0.2", + "minimist": "^1.2.6", + "strip-bom": "^3.0.0" + } + }, + "tslib": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", + "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==" + }, + "type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, + "requires": { + "prelude-ls": "^1.2.1" + } + }, + "typed-array-buffer": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.3.tgz", + "integrity": "sha512-nAYYwfY3qnzX30IkA6AQZjVbtK6duGontcQm1WSG1MD94YLqK0515GNApXkoxKOWMusVssAHWLh9SeaoefYFGw==", + "dev": true, + "requires": { + "call-bound": "^1.0.3", + "es-errors": "^1.3.0", + "is-typed-array": "^1.1.14" + } + }, + "typed-array-byte-length": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/typed-array-byte-length/-/typed-array-byte-length-1.0.3.tgz", + "integrity": "sha512-BaXgOuIxz8n8pIq3e7Atg/7s+DpiYrxn4vdot3w9KbnBhcRQq6o3xemQdIfynqSeXeDrF32x+WvfzmOjPiY9lg==", + "dev": true, + "requires": { + "call-bind": "^1.0.8", + "for-each": "^0.3.3", + "gopd": "^1.2.0", + "has-proto": "^1.2.0", + "is-typed-array": "^1.1.14" + } + }, + "typed-array-byte-offset": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.4.tgz", + "integrity": "sha512-bTlAFB/FBYMcuX81gbL4OcpH5PmlFHqlCCpAl8AlEzMz5k53oNDvN8p1PNOWLEmI2x4orp3raOFB51tv9X+MFQ==", + "dev": true, + "requires": { + "available-typed-arrays": "^1.0.7", + "call-bind": "^1.0.8", + "for-each": "^0.3.3", + "gopd": "^1.2.0", + "has-proto": "^1.2.0", + "is-typed-array": "^1.1.15", + "reflect.getprototypeof": "^1.0.9" + } + }, + "typed-array-length": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.7.tgz", + "integrity": "sha512-3KS2b+kL7fsuk/eJZ7EQdnEmQoaho/r6KUef7hxvltNA5DR8NAUM+8wJMbJyZ4G9/7i3v5zPBIMN5aybAh2/Jg==", + "dev": true, + "requires": { + "call-bind": "^1.0.7", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "is-typed-array": "^1.1.13", + "possible-typed-array-names": "^1.0.0", + "reflect.getprototypeof": "^1.0.6" + } + }, + "typescript": { + "version": "5.8.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz", + "integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==", + "devOptional": true + }, + "ufo": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/ufo/-/ufo-1.6.1.tgz", + "integrity": "sha512-9a4/uxlTWJ4+a5i0ooc1rU7C7YOw3wT+UGqdeNNHWnOF9qcMBgLRS+4IYUqbczewFx4mLEig6gawh7X6mFlEkA==" + }, + "uint8arrays": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/uint8arrays/-/uint8arrays-3.1.0.tgz", + "integrity": "sha512-ei5rfKtoRO8OyOIor2Rz5fhzjThwIHJZ3uyDPnDHTXbP0aMQ1RN/6AI5B5d9dBxJOU+BvOAk7ZQ1xphsX8Lrog==", + "requires": { + "multiformats": "^9.4.2" + } + }, + "unbox-primitive": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.1.0.tgz", + "integrity": "sha512-nWJ91DjeOkej/TA8pXQ3myruKpKEYgqvpw9lz4OPHj/NWFNluYrjbz9j01CJ8yKQd2g4jFoOkINCTW2I5LEEyw==", + "dev": true, + "requires": { + "call-bound": "^1.0.3", + "has-bigints": "^1.0.2", + "has-symbols": "^1.1.0", + "which-boxed-primitive": "^1.1.1" + } + }, + "uncrypto": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/uncrypto/-/uncrypto-0.1.3.tgz", + "integrity": "sha512-Ql87qFHB3s/De2ClA9e0gsnS6zXG27SkTiSJwjCc9MebbfapQfuPzumMIUMi38ezPZVNFcHI9sUIepeQfw8J8Q==" + }, + "undici-types": { + "version": "6.21.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz", + "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==", + "dev": true + }, + "unrs-resolver": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/unrs-resolver/-/unrs-resolver-1.6.1.tgz", + "integrity": "sha512-PLDI7BRVaI1C0x8mXr8leLPIOPPF1wCRFyKIswJAPJG3LdMxWNiAVvlTvmff5DSezapWFLagk18NF2cCNhe8Fg==", + "dev": true, + "requires": { + "@unrs/resolver-binding-darwin-arm64": "1.6.1", + "@unrs/resolver-binding-darwin-x64": "1.6.1", + "@unrs/resolver-binding-freebsd-x64": "1.6.1", + "@unrs/resolver-binding-linux-arm-gnueabihf": "1.6.1", + "@unrs/resolver-binding-linux-arm-musleabihf": "1.6.1", + "@unrs/resolver-binding-linux-arm64-gnu": "1.6.1", + "@unrs/resolver-binding-linux-arm64-musl": "1.6.1", + "@unrs/resolver-binding-linux-ppc64-gnu": "1.6.1", + "@unrs/resolver-binding-linux-riscv64-gnu": "1.6.1", + "@unrs/resolver-binding-linux-s390x-gnu": "1.6.1", + "@unrs/resolver-binding-linux-x64-gnu": "1.6.1", + "@unrs/resolver-binding-linux-x64-musl": "1.6.1", + "@unrs/resolver-binding-wasm32-wasi": "1.6.1", + "@unrs/resolver-binding-win32-arm64-msvc": "1.6.1", + "@unrs/resolver-binding-win32-ia32-msvc": "1.6.1", + "@unrs/resolver-binding-win32-x64-msvc": "1.6.1", + "napi-postinstall": "^0.1.1" + } + }, + "unstorage": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/unstorage/-/unstorage-1.15.0.tgz", + "integrity": "sha512-m40eHdGY/gA6xAPqo8eaxqXgBuzQTlAKfmB1iF7oCKXE1HfwHwzDJBywK+qQGn52dta+bPlZluPF7++yR3p/bg==", + "requires": { + "anymatch": "^3.1.3", + "chokidar": "^4.0.3", + "destr": "^2.0.3", + "h3": "^1.15.0", + "lru-cache": "^10.4.3", + "node-fetch-native": "^1.6.6", + "ofetch": "^1.4.1", + "ufo": "^1.5.4" + } + }, + "uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "requires": { + "punycode": "^2.1.0" + } + }, + "use-sync-external-store": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.4.0.tgz", + "integrity": "sha512-9WXSPC5fMv61vaupRkCKCxsPxBocVnwakBEkMIHHpkTTg6icbJtg6jzgtLDm4bl3cSHAca52rYWih0k4K3PfHw==", + "requires": {} + }, + "utf-8-validate": { + "version": "5.0.10", + "resolved": "https://registry.npmjs.org/utf-8-validate/-/utf-8-validate-5.0.10.tgz", + "integrity": "sha512-Z6czzLq4u8fPOyx7TU6X3dvUZVvoJmxSQ+IcrlmagKhilxlhZgxPK6C5Jqbkw1IDUmFTM+cz9QDnnLTwDz/2gQ==", + "requires": { + "node-gyp-build": "^4.3.0" + } + }, + "util": { + "version": "0.12.5", + "resolved": "https://registry.npmjs.org/util/-/util-0.12.5.tgz", + "integrity": "sha512-kZf/K6hEIrWHI6XqOFUiiMa+79wE/D8Q+NCNAWclkyg3b4d2k7s0QGepNjiABc+aR3N1PAyHL7p6UcLY6LmrnA==", + "requires": { + "inherits": "^2.0.3", + "is-arguments": "^1.0.4", + "is-generator-function": "^1.0.7", + "is-typed-array": "^1.1.3", + "which-typed-array": "^1.1.2" + } + }, + "util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" + }, + "uuid": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==" + }, + "valtio": { + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/valtio/-/valtio-1.13.2.tgz", + "integrity": "sha512-Qik0o+DSy741TmkqmRfjq+0xpZBXi/Y6+fXZLn0xNF1z/waFMbE3rkivv5Zcf9RrMUp6zswf2J7sbh2KBlba5A==", + "requires": { + "derive-valtio": "0.1.0", + "proxy-compare": "2.6.0", + "use-sync-external-store": "1.2.0" + }, + "dependencies": { + "use-sync-external-store": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.2.0.tgz", + "integrity": "sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA==", + "requires": {} + } + } + }, + "viem": { + "version": "2.27.2", + "resolved": "https://registry.npmjs.org/viem/-/viem-2.27.2.tgz", + "integrity": "sha512-VwsB+RswcflbwBNPMvzTHuafDA51iT8v4SuIFcudTP2skmxcdodbgoOLP4dYELVnCzcedxoSJDOeext4V3zdnA==", + "requires": { + "@noble/curves": "1.8.1", + "@noble/hashes": "1.7.1", + "@scure/bip32": "1.6.2", + "@scure/bip39": "1.5.4", + "abitype": "1.0.8", + "isows": "1.0.6", + "ox": "0.6.9", + "ws": "8.18.1" + }, + "dependencies": { + "@noble/curves": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.8.1.tgz", + "integrity": "sha512-warwspo+UYUPep0Q+vtdVB4Ugn8GGQj8iyB3gnRWsztmUHTI3S1nhdiWNsPUGL0vud7JlRRk1XEu7Lq1KGTnMQ==", + "requires": { + "@noble/hashes": "1.7.1" + } + }, + "@noble/hashes": { + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.7.1.tgz", + "integrity": "sha512-B8XBPsn4vT/KJAGqDzbwztd+6Yte3P4V7iafm24bxgDe/mlRuK6xmWPuCNrKt2vDafZ8MfJLlchDG/vYafQEjQ==" + }, + "@scure/bip32": { + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.6.2.tgz", + "integrity": "sha512-t96EPDMbtGgtb7onKKqxRLfE5g05k7uHnHRM2xdE6BP/ZmxaLtPek4J4KfVn/90IQNrU1IOAqMgiDtUdtbe3nw==", + "requires": { + "@noble/curves": "~1.8.1", + "@noble/hashes": "~1.7.1", + "@scure/base": "~1.2.2" + } + }, + "@scure/bip39": { + "version": "1.5.4", + "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.5.4.tgz", + "integrity": "sha512-TFM4ni0vKvCfBpohoh+/lY05i9gRbSwXWngAsF4CABQxoaOHijxuaZ2R6cStDQ5CHtHO9aGJTr4ksVJASRRyMA==", + "requires": { + "@noble/hashes": "~1.7.1", + "@scure/base": "~1.2.4" + } + }, + "ws": { + "version": "8.18.1", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.1.tgz", + "integrity": "sha512-RKW2aJZMXeMxVpnZ6bck+RswznaxmzdULiBr6KY7XkTnW8uvt0iT9H5DkHUChXrc+uurzwa0rVI16n/Xzjdz1w==", + "requires": {} + } + } + }, + "wagmi": { + "version": "2.14.16", + "resolved": "https://registry.npmjs.org/wagmi/-/wagmi-2.14.16.tgz", + "integrity": "sha512-njOPvB8L0+jt3m1FTJiVF44T1u+kcjLtVWKvwI0mZnIesZTQZ/xDF0M/NHj3Uljyn3qJw3pyHjJe31NC+VVHMA==", + "requires": { + "@wagmi/connectors": "5.7.12", + "@wagmi/core": "2.16.7", + "use-sync-external-store": "1.4.0" + } + }, + "webextension-polyfill": { + "version": "0.10.0", + "resolved": "https://registry.npmjs.org/webextension-polyfill/-/webextension-polyfill-0.10.0.tgz", + "integrity": "sha512-c5s35LgVa5tFaHhrZDnr3FpQpjj1BB+RXhLTYUxGqBVN460HkbM8TBtEqdXWbpTKfzwCcjAZVF7zXCYSKtcp9g==" + }, + "webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" + }, + "whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "requires": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, + "which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "requires": { + "isexe": "^2.0.0" + } + }, + "which-boxed-primitive": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.1.1.tgz", + "integrity": "sha512-TbX3mj8n0odCBFVlY8AxkqcHASw3L60jIuF8jFP78az3C2YhmGvqbHBpAjTRH2/xqYunrJ9g1jSyjCjpoWzIAA==", + "dev": true, + "requires": { + "is-bigint": "^1.1.0", + "is-boolean-object": "^1.2.1", + "is-number-object": "^1.1.1", + "is-string": "^1.1.1", + "is-symbol": "^1.1.1" + } + }, + "which-builtin-type": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/which-builtin-type/-/which-builtin-type-1.2.1.tgz", + "integrity": "sha512-6iBczoX+kDQ7a3+YJBnh3T+KZRxM/iYNPXicqk66/Qfm1b93iu+yOImkg0zHbj5LNOcNv1TEADiZ0xa34B4q6Q==", + "dev": true, + "requires": { + "call-bound": "^1.0.2", + "function.prototype.name": "^1.1.6", + "has-tostringtag": "^1.0.2", + "is-async-function": "^2.0.0", + "is-date-object": "^1.1.0", + "is-finalizationregistry": "^1.1.0", + "is-generator-function": "^1.0.10", + "is-regex": "^1.2.1", + "is-weakref": "^1.0.2", + "isarray": "^2.0.5", + "which-boxed-primitive": "^1.1.0", + "which-collection": "^1.0.2", + "which-typed-array": "^1.1.16" + } + }, + "which-collection": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/which-collection/-/which-collection-1.0.2.tgz", + "integrity": "sha512-K4jVyjnBdgvc86Y6BkaLZEN933SwYOuBFkdmBu9ZfkcAbdVbpITnDmjvZ/aQjRXQrv5EPkTnD1s39GiiqbngCw==", + "dev": true, + "requires": { + "is-map": "^2.0.3", + "is-set": "^2.0.3", + "is-weakmap": "^2.0.2", + "is-weakset": "^2.0.3" + } + }, + "which-module": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.1.tgz", + "integrity": "sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ==" + }, + "which-typed-array": { + "version": "1.1.19", + "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.19.tgz", + "integrity": "sha512-rEvr90Bck4WZt9HHFC4DJMsjvu7x+r6bImz0/BrbWb7A2djJ8hnZMrWnHo9F8ssv0OMErasDhftrfROTyqSDrw==", + "requires": { + "available-typed-arrays": "^1.0.7", + "call-bind": "^1.0.8", + "call-bound": "^1.0.4", + "for-each": "^0.3.5", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-tostringtag": "^1.0.2" + } + }, + "word-wrap": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", + "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", + "dev": true + }, + "wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "requires": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + } + }, + "wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" + }, + "ws": { + "version": "7.5.10", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.10.tgz", + "integrity": "sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ==", + "requires": {} + }, + "xmlhttprequest-ssl": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/xmlhttprequest-ssl/-/xmlhttprequest-ssl-2.1.2.tgz", + "integrity": "sha512-TEU+nJVUUnA4CYJFLvK5X9AOeH4KvDvhIfm0vV1GaQRtchnG0hgK5p8hw/xjv8cunWYCsiPCSDzObPyhEwq3KQ==" + }, + "xtend": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", + "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==" + }, + "y18n": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", + "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==" + }, + "yargs": { + "version": "15.4.1", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", + "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", + "requires": { + "cliui": "^6.0.0", + "decamelize": "^1.2.0", + "find-up": "^4.1.0", + "get-caller-file": "^2.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^4.2.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^18.1.2" + }, + "dependencies": { + "find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "requires": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + } + }, + "locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "requires": { + "p-locate": "^4.1.0" + } + }, + "p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "requires": { + "p-try": "^2.0.0" + } + }, + "p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "requires": { + "p-limit": "^2.2.0" + } + } + } + }, + "yargs-parser": { + "version": "18.1.3", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", + "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", + "requires": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + } + }, + "yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true + }, + "zod": { + "version": "3.22.4", + "resolved": "https://registry.npmjs.org/zod/-/zod-3.22.4.tgz", + "integrity": "sha512-iC+8Io04lddc+mVqQ9AZ7OQ2MrUKGN+oIQyq1vemgt46jwCwLfhq7/pwnBnNXXXZb8VTVLKwp9EDkx+ryxIWmg==" + }, + "zustand": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/zustand/-/zustand-5.0.0.tgz", + "integrity": "sha512-LE+VcmbartOPM+auOjCCLQOsQ05zUTp8RkgwRzefUk+2jISdMMFnxvyTjA4YNWr5ZGXYbVsEMZosttuxUBkojQ==", + "requires": {} + } + } +} diff --git a/web3-game/package.json b/web3-game/package.json new file mode 100644 index 0000000000..ef17359936 --- /dev/null +++ b/web3-game/package.json @@ -0,0 +1,29 @@ +{ + "name": "next-wagmi-app-router", + "version": "0.1.0", + "private": true, + "scripts": { + "dev": "next dev", + "build": "next build", + "start": "next start", + "lint": "next lint" + }, + "dependencies": { + "@reown/appkit": "1.7.3", + "@reown/appkit-adapter-wagmi": "1.7.3", + "@tanstack/react-query": "^5.59.20", + "next": "15.3.0", + "react": "19.0.0", + "react-dom": "19.0.0", + "viem": "^2.21.44", + "wagmi": "^2.12.31" + }, + "devDependencies": { + "@types/node": "^22", + "@types/react": "^19", + "@types/react-dom": "^19", + "eslint": "^9", + "eslint-config-next": "15.1.6", + "typescript": "^5" + } +} diff --git a/web3-game/public/favicon.ico b/web3-game/public/favicon.ico new file mode 100644 index 0000000000..db58b9a069 Binary files /dev/null and b/web3-game/public/favicon.ico differ diff --git a/web3-game/public/reown.svg b/web3-game/public/reown.svg new file mode 100644 index 0000000000..99353d6aec --- /dev/null +++ b/web3-game/public/reown.svg @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/web3-game/src/app/fonts/GeistMonoVF.woff b/web3-game/src/app/fonts/GeistMonoVF.woff new file mode 100644 index 0000000000..f2ae185cbf Binary files /dev/null and b/web3-game/src/app/fonts/GeistMonoVF.woff differ diff --git a/web3-game/src/app/fonts/GeistVF.woff b/web3-game/src/app/fonts/GeistVF.woff new file mode 100644 index 0000000000..1b62daacff Binary files /dev/null and b/web3-game/src/app/fonts/GeistVF.woff differ diff --git a/web3-game/src/app/globals.css b/web3-game/src/app/globals.css new file mode 100644 index 0000000000..a8ce8c2356 --- /dev/null +++ b/web3-game/src/app/globals.css @@ -0,0 +1,109 @@ +:root { + --background: #ffffff; + --foreground: #171717; +} + +html, +body { + max-width: 100vw; + overflow-x: hidden; +} + +body { + color: var(--foreground); + background: var(--background); + font-family: Arial, Helvetica, sans-serif; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +* { + box-sizing: border-box; + padding: 0; + margin: 0; +} + +a { + color: inherit; + text-decoration: none; +} + +@media (prefers-color-scheme: dark) { + html { + color-scheme: dark; + } +} + +section { + border: 1px solid #e0e0e0; + border-radius: 8px; + padding: 16px; + background-color: #f9f9f9; + padding: 13px; + margin: 10px; + width: 90%; + text-align: left; +} + +.pages { + align-items: center; + justify-items: center; + text-align: center; +} + +button { + padding: 10px 15px; + background-color: white; + color: black; + border: 2px solid black; + border-radius: 6px; + font-size: 16px; + font-weight: 600; + cursor: pointer; + transition: all 0.3s ease; + margin: 15px; /* Space between buttons */ +} + +button:hover { + background-color: black; + color: white; +} + +button:active { + background-color: #333; /* Dark gray on click */ + color: white; +} + +h1 { + margin: 20px; +} + +pre { + white-space: pre-wrap; /* Wrap text */ + word-wrap: break-word; /* Break long words */ + word-break: break-all; +} + + +.link-button { + background-color: black; + color: white; + padding: 5px 10px; + text-decoration: none; + border-radius: 5px; +} + +.link-button:hover { + background-color: #333; /* Darken the background on hover */ +} + +.link-button:hover { + background-color: white; /* Change background to white on hover */ + color: black; /* Change text color to black on hover */ +} + +.advice { + text-align: center; + margin-bottom: 10px; + line-height: 25px; +} \ No newline at end of file diff --git a/web3-game/src/app/layout.tsx b/web3-game/src/app/layout.tsx new file mode 100644 index 0000000000..9c391f8fe7 --- /dev/null +++ b/web3-game/src/app/layout.tsx @@ -0,0 +1,28 @@ +import type { Metadata } from "next"; + + +import { headers } from 'next/headers' // added +import './globals.css'; +import ContextProvider from '@/context' + +export const metadata: Metadata = { + title: "AppKit in Next.js + wagmi", + description: "AppKit example dApp", +}; + +export default async function RootLayout({ + children, +}: Readonly<{ + children: React.ReactNode; +}>) { + const headersData = await headers(); + const cookies = headersData.get('cookie'); + + return ( + + + {children} + + + ); +} diff --git a/web3-game/src/app/page.tsx b/web3-game/src/app/page.tsx new file mode 100644 index 0000000000..0df28773b5 --- /dev/null +++ b/web3-game/src/app/page.tsx @@ -0,0 +1,24 @@ +// import { cookieStorage, createStorage, http } from '@wagmi/core' +import { ConnectButton } from "@/components/ConnectButton"; +import { InfoList } from "@/components/InfoList"; +import { ActionButtonList } from "@/components/ActionButtonList"; +import Image from 'next/image'; + +export default function Home() { + + return ( +
+ Reown +

AppKit Wagmi Next.js App Router Example

+ + + +
+

+ This projectId only works on localhost.
Go to Reown Cloud to get your own. +

+
+ +
+ ); +} \ No newline at end of file diff --git a/web3-game/src/components/ActionButtonList.tsx b/web3-game/src/components/ActionButtonList.tsx new file mode 100644 index 0000000000..cae650a5ac --- /dev/null +++ b/web3-game/src/components/ActionButtonList.tsx @@ -0,0 +1,24 @@ +'use client' +import { useDisconnect, useAppKit, useAppKitNetwork } from '@reown/appkit/react' +import { networks } from '@/config' + +export const ActionButtonList = () => { + const { disconnect } = useDisconnect(); + const { open } = useAppKit(); + const { switchNetwork } = useAppKitNetwork(); + + const handleDisconnect = async () => { + try { + await disconnect(); + } catch (error) { + console.error("Failed to disconnect:", error); + } + } + return ( +
+ + + +
+ ) +} diff --git a/web3-game/src/components/ConnectButton.tsx b/web3-game/src/components/ConnectButton.tsx new file mode 100644 index 0000000000..bf6bec77c5 --- /dev/null +++ b/web3-game/src/components/ConnectButton.tsx @@ -0,0 +1,9 @@ +'use client' + +export const ConnectButton = () => { + return ( +
+ +
+ ) +} diff --git a/web3-game/src/components/InfoList.tsx b/web3-game/src/components/InfoList.tsx new file mode 100644 index 0000000000..f8dcde7b73 --- /dev/null +++ b/web3-game/src/components/InfoList.tsx @@ -0,0 +1,63 @@ +'use client' + +import { useEffect } from 'react' +import { + useAppKitState, + useAppKitTheme, + useAppKitEvents, + useAppKitAccount, + useWalletInfo + } from '@reown/appkit/react' +import { useClientMounted } from "@/hooks/useClientMount"; + +export const InfoList = () => { + const kitTheme = useAppKitTheme(); + const state = useAppKitState(); + const {address, caipAddress, isConnected, embeddedWalletInfo} = useAppKitAccount(); + const events = useAppKitEvents() + const walletInfo = useWalletInfo() + const mounted = useClientMounted(); + useEffect(() => { + console.log("Events: ", events); + }, [events]); + + return !mounted ? null : ( + <> +
+

useAppKit

+
+                Address: {address}
+ caip Address: {caipAddress}
+ Connected: {isConnected.toString()}
+ Account Type: {embeddedWalletInfo?.accountType}
+ {embeddedWalletInfo?.user?.email && (`Email: ${embeddedWalletInfo?.user?.email}\n`)} + {embeddedWalletInfo?.user?.username && (`Username: ${embeddedWalletInfo?.user?.username}\n`)} + {embeddedWalletInfo?.authProvider && (`Provider: ${embeddedWalletInfo?.authProvider}\n`)} +
+
+ +
+

Theme

+
+                Theme: {kitTheme.themeMode}
+
+
+ +
+

State

+
+                activeChain: {state.activeChain}
+ loading: {state.loading.toString()}
+ open: {state.open.toString()}
+
+
+ +
+

WalletInfo

+
+                Name: {walletInfo.walletInfo?.name?.toString()}
+
+
+ + ) +} diff --git a/web3-game/src/config/index.ts b/web3-game/src/config/index.ts new file mode 100644 index 0000000000..644122acdc --- /dev/null +++ b/web3-game/src/config/index.ts @@ -0,0 +1,25 @@ +import { cookieStorage, createStorage } from 'wagmi' +import { WagmiAdapter } from '@reown/appkit-adapter-wagmi' +import { mainnet, arbitrum } from '@reown/appkit/networks' +import type { AppKitNetwork } from '@reown/appkit/networks' + +// Get projectId from https://cloud.reown.com +export const projectId = process.env.NEXT_PUBLIC_PROJECT_ID || "b56e18d47c72ab683b10814fe9495694" // this is a public projectId only to use on localhost + +if (!projectId) { + throw new Error('Project ID is not defined') +} + +export const networks = [mainnet, arbitrum] as [AppKitNetwork, ...AppKitNetwork[]] + +//Set up the Wagmi Adapter (Config) +export const wagmiAdapter = new WagmiAdapter({ + storage: createStorage({ + storage: cookieStorage + }), + ssr: true, + projectId, + networks +}) + +export const config = wagmiAdapter.wagmiConfig \ No newline at end of file diff --git a/web3-game/src/context/index.tsx b/web3-game/src/context/index.tsx new file mode 100644 index 0000000000..22b5688ee5 --- /dev/null +++ b/web3-game/src/context/index.tsx @@ -0,0 +1,45 @@ +'use client' + +import { wagmiAdapter, projectId, networks } from '@/config' +import { QueryClient, QueryClientProvider } from '@tanstack/react-query' +import { createAppKit } from '@reown/appkit/react' +import React, { type ReactNode } from 'react' +import { cookieToInitialState, WagmiProvider, type Config } from 'wagmi' + +// Set up queryClient +const queryClient = new QueryClient() + +// Set up metadata +const metadata = { + name: 'next-reown-appkit', + description: 'next-reown-appkit', + url: 'https://github.com/0xonerb/next-reown-appkit-ssr', // origin must match your domain & subdomain + icons: ['https://avatars.githubusercontent.com/u/179229932'] +} + +// Create the modal +export const modal = createAppKit({ + adapters: [wagmiAdapter], + projectId, + networks, + metadata, + themeMode: 'light', + features: { + analytics: true // Optional - defaults to your Cloud configuration + }, + themeVariables: { + '--w3m-accent': '#000000', + } +}) + +function ContextProvider({ children, cookies }: { children: ReactNode; cookies: string | null }) { + const initialState = cookieToInitialState(wagmiAdapter.wagmiConfig as Config, cookies) + + return ( + + {children} + + ) +} + +export default ContextProvider diff --git a/web3-game/src/hooks/useClientMount.ts b/web3-game/src/hooks/useClientMount.ts new file mode 100644 index 0000000000..6699940661 --- /dev/null +++ b/web3-game/src/hooks/useClientMount.ts @@ -0,0 +1,12 @@ +'use client' +import { useEffect, useState } from "react"; + +export function useClientMounted() { + const [mounted, setMounted] = useState(false); + + useEffect(() => { + setMounted(true); + }, []); // Runs only on mount + + return mounted; +} \ No newline at end of file diff --git a/web3-game/tsconfig.json b/web3-game/tsconfig.json new file mode 100644 index 0000000000..c1334095f8 --- /dev/null +++ b/web3-game/tsconfig.json @@ -0,0 +1,27 @@ +{ + "compilerOptions": { + "target": "ES2017", + "lib": ["dom", "dom.iterable", "esnext"], + "allowJs": true, + "skipLibCheck": true, + "strict": true, + "noEmit": true, + "esModuleInterop": true, + "module": "esnext", + "moduleResolution": "bundler", + "resolveJsonModule": true, + "isolatedModules": true, + "jsx": "preserve", + "incremental": true, + "plugins": [ + { + "name": "next" + } + ], + "paths": { + "@/*": ["./src/*"] + } + }, + "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], + "exclude": ["node_modules"] +} diff --git a/web3game/.vercel/output/builds.json b/web3game/.vercel/output/builds.json new file mode 100644 index 0000000000..4c5e14d398 --- /dev/null +++ b/web3game/.vercel/output/builds.json @@ -0,0 +1,25 @@ +{ + "//": "This file was generated by the `vercel build` command. It is not part of the Build Output API.", + "target": "preview", + "argv": [ + "/usr/bin/node", + "/usr/local/bin/vercel", + "build" + ], + "builds": [ + { + "require": "@vercel/static-build", + "requirePath": "/usr/local/lib/node_modules/vercel/node_modules/@vercel/static-build/dist/index", + "apiVersion": 2, + "src": "package.json", + "use": "@vercel/static-build", + "config": { + "zeroConfig": true, + "framework": "vite" + } + } + ], + "features": { + "webAnalyticsVersion": "1.5.0" + } +} diff --git a/web3game/.vercel/output/config.json b/web3game/.vercel/output/config.json new file mode 100644 index 0000000000..72c53959ae --- /dev/null +++ b/web3game/.vercel/output/config.json @@ -0,0 +1,17 @@ +{ + "version": 3, + "routes": [ + { + "handle": "error" + }, + { + "status": 404, + "src": "^(?!/api).*$", + "dest": "/404.html" + } + ], + "framework": { + "version": "6.2.3" + }, + "crons": [] +} diff --git a/web3game/.vercel/output/diagnostics/cli_traces.json b/web3game/.vercel/output/diagnostics/cli_traces.json new file mode 100644 index 0000000000..5c4deefa81 --- /dev/null +++ b/web3game/.vercel/output/diagnostics/cli_traces.json @@ -0,0 +1 @@ +[{"name":"vc.builder","duration":38086106,"timestamp":23121910891,"id":"ec043405-72f5-4175-89f9-ba047c96ad54","parentId":"533d7ca6-1443-4e97-8c61-f7206d9a4cea","tags":{"name":"@vercel/static-build"},"startTime":1745348481879},{"name":"vc.builder.diagnostics","duration":92,"timestamp":23159997263,"id":"3fdc2ccd-8ab8-47fe-9305-ca8a98d46ee0","parentId":"ec043405-72f5-4175-89f9-ba047c96ad54","tags":{},"startTime":1745348519966},{"name":"vc.doBuild","duration":39077512,"timestamp":23121153772,"id":"533d7ca6-1443-4e97-8c61-f7206d9a4cea","parentId":"c1eb8a74-02f7-4b3c-8092-72ae8bc53a40","tags":{},"startTime":1745348481122},{"name":"vc","duration":39106006,"timestamp":23121125311,"id":"c1eb8a74-02f7-4b3c-8092-72ae8bc53a40","tags":{},"startTime":1745348481094}] \ No newline at end of file diff --git a/web3game/.vercel/output/static/assets/add-CtW7uzyn.js b/web3game/.vercel/output/static/assets/add-CtW7uzyn.js new file mode 100644 index 0000000000..c1b193825b --- /dev/null +++ b/web3game/.vercel/output/static/assets/add-CtW7uzyn.js @@ -0,0 +1,15 @@ +import{F as l}from"./index-DVkBgnkX.js";const o=l` + `;export{o as addSvg}; diff --git a/web3game/.vercel/output/static/assets/all-wallets-uVmi2mcT.js b/web3game/.vercel/output/static/assets/all-wallets-uVmi2mcT.js new file mode 100644 index 0000000000..7b50aeed54 --- /dev/null +++ b/web3game/.vercel/output/static/assets/all-wallets-uVmi2mcT.js @@ -0,0 +1,6 @@ +import{F as a}from"./index-DVkBgnkX.js";const o=a` + +`;export{o as allWalletsSvg}; diff --git a/web3game/.vercel/output/static/assets/app-store-BFyPJxxC.js b/web3game/.vercel/output/static/assets/app-store-BFyPJxxC.js new file mode 100644 index 0000000000..f97945179e --- /dev/null +++ b/web3game/.vercel/output/static/assets/app-store-BFyPJxxC.js @@ -0,0 +1,17 @@ +import{F as a}from"./index-DVkBgnkX.js";const e=a` + + + + + + + + + +`;export{e as appStoreSvg}; diff --git a/web3game/.vercel/output/static/assets/apple-CsMMFDsS.js b/web3game/.vercel/output/static/assets/apple-CsMMFDsS.js new file mode 100644 index 0000000000..b4331237e2 --- /dev/null +++ b/web3game/.vercel/output/static/assets/apple-CsMMFDsS.js @@ -0,0 +1,18 @@ +import{F as l}from"./index-DVkBgnkX.js";const f=l` + + + + + + + + + + + + + +`;export{f as appleSvg}; diff --git a/web3game/.vercel/output/static/assets/arrow-bottom-D6KxLury.js b/web3game/.vercel/output/static/assets/arrow-bottom-D6KxLury.js new file mode 100644 index 0000000000..0c90e8e385 --- /dev/null +++ b/web3game/.vercel/output/static/assets/arrow-bottom-D6KxLury.js @@ -0,0 +1,8 @@ +import{F as o}from"./index-DVkBgnkX.js";const e=o` + +`;export{e as arrowBottomSvg}; diff --git a/web3game/.vercel/output/static/assets/arrow-bottom-circle-XqzbGM4-.js b/web3game/.vercel/output/static/assets/arrow-bottom-circle-XqzbGM4-.js new file mode 100644 index 0000000000..e07f457233 --- /dev/null +++ b/web3game/.vercel/output/static/assets/arrow-bottom-circle-XqzbGM4-.js @@ -0,0 +1,11 @@ +import{F as C}from"./index-DVkBgnkX.js";const e=C` + `;export{e as arrowBottomCircleSvg}; diff --git a/web3game/.vercel/output/static/assets/arrow-left-FDMecMQy.js b/web3game/.vercel/output/static/assets/arrow-left-FDMecMQy.js new file mode 100644 index 0000000000..24a50f24da --- /dev/null +++ b/web3game/.vercel/output/static/assets/arrow-left-FDMecMQy.js @@ -0,0 +1,8 @@ +import{F as e}from"./index-DVkBgnkX.js";const o=e` + +`;export{o as arrowLeftSvg}; diff --git a/web3game/.vercel/output/static/assets/arrow-right-DX9Raeab.js b/web3game/.vercel/output/static/assets/arrow-right-DX9Raeab.js new file mode 100644 index 0000000000..1404e4781c --- /dev/null +++ b/web3game/.vercel/output/static/assets/arrow-right-DX9Raeab.js @@ -0,0 +1,8 @@ +import{F as l}from"./index-DVkBgnkX.js";const e=l` + +`;export{e as arrowRightSvg}; diff --git a/web3game/.vercel/output/static/assets/arrow-top-D7BEQRhs.js b/web3game/.vercel/output/static/assets/arrow-top-D7BEQRhs.js new file mode 100644 index 0000000000..2fd676eb4e --- /dev/null +++ b/web3game/.vercel/output/static/assets/arrow-top-D7BEQRhs.js @@ -0,0 +1,8 @@ +import{F as o}from"./index-DVkBgnkX.js";const e=o` + +`;export{e as arrowTopSvg}; diff --git a/web3game/.vercel/output/static/assets/bank-BQtytHN2.js b/web3game/.vercel/output/static/assets/bank-BQtytHN2.js new file mode 100644 index 0000000000..854873263f --- /dev/null +++ b/web3game/.vercel/output/static/assets/bank-BQtytHN2.js @@ -0,0 +1,14 @@ +import{F as e}from"./index-DVkBgnkX.js";const o=e` + `;export{o as bankSvg}; diff --git a/web3game/.vercel/output/static/assets/browser-kD_RfWKH.js b/web3game/.vercel/output/static/assets/browser-kD_RfWKH.js new file mode 100644 index 0000000000..a47f6ec185 --- /dev/null +++ b/web3game/.vercel/output/static/assets/browser-kD_RfWKH.js @@ -0,0 +1,14 @@ +import{F as l}from"./index-DVkBgnkX.js";const a=l` + + +`;export{a as browserSvg}; diff --git a/web3game/.vercel/output/static/assets/card-C2Vx-y4J.js b/web3game/.vercel/output/static/assets/card-C2Vx-y4J.js new file mode 100644 index 0000000000..33bfb7d36d --- /dev/null +++ b/web3game/.vercel/output/static/assets/card-C2Vx-y4J.js @@ -0,0 +1,14 @@ +import{F as C}from"./index-DVkBgnkX.js";const l=C` + `;export{l as cardSvg}; diff --git a/web3game/.vercel/output/static/assets/ccip-3DDqDkWC.js b/web3game/.vercel/output/static/assets/ccip-3DDqDkWC.js new file mode 100644 index 0000000000..f255b3fd4d --- /dev/null +++ b/web3game/.vercel/output/static/assets/ccip-3DDqDkWC.js @@ -0,0 +1 @@ +import{a4 as l,a5 as m,a6 as y,a7 as k,a8 as b,a9 as L,aa as O,ab as E,ac as h,ad as x}from"./index-DVkBgnkX.js";class M extends l{constructor({callbackSelector:r,cause:a,data:o,extraData:i,sender:d,urls:t}){var n;super(a.shortMessage||"An error occurred while fetching for an offchain result.",{cause:a,metaMessages:[...a.metaMessages||[],(n=a.metaMessages)!=null&&n.length?"":[],"Offchain Gateway Call:",t&&[" Gateway URL(s):",...t.map(f=>` ${m(f)}`)],` Sender: ${d}`,` Data: ${o}`,` Callback selector: ${r}`,` Extra data: ${i}`].flat(),name:"OffchainLookupError"})}}class R extends l{constructor({result:r,url:a}){super("Offchain gateway response is malformed. Response data must be a hex value.",{metaMessages:[`Gateway URL: ${m(a)}`,`Response: ${y(r)}`],name:"OffchainLookupResponseMalformedError"})}}class S extends l{constructor({sender:r,to:a}){super("Reverted sender address does not match target contract address (`to`).",{metaMessages:[`Contract address: ${a}`,`OffchainLookup sender address: ${r}`],name:"OffchainLookupSenderMismatchError"})}}const C="0x556f1830",$={name:"OffchainLookup",type:"error",inputs:[{name:"sender",type:"address"},{name:"urls",type:"string[]"},{name:"callData",type:"bytes"},{name:"callbackFunction",type:"bytes4"},{name:"extraData",type:"bytes"}]};async function A(c,{blockNumber:r,blockTag:a,data:o,to:i}){const{args:d}=k({data:o,abi:[$]}),[t,n,f,u,s]=d,{ccipRead:e}=c,w=e&&typeof(e==null?void 0:e.request)=="function"?e.request:T;try{if(!b(i,t))throw new S({sender:t,to:i});const p=await w({data:f,sender:t,urls:n}),{data:g}=await L(c,{blockNumber:r,blockTag:a,data:O([u,E([{type:"bytes"},{type:"bytes"}],[p,s])]),to:i});return g}catch(p){throw new M({callbackSelector:u,cause:p,data:o,extraData:s,sender:t,urls:n})}}async function T({data:c,sender:r,urls:a}){var i;let o=new Error("An unknown error occurred.");for(let d=0;d + + +`;export{o as checkmarkSvg}; diff --git a/web3game/.vercel/output/static/assets/checkmark-bold-D7LZzOJb.js b/web3game/.vercel/output/static/assets/checkmark-bold-D7LZzOJb.js new file mode 100644 index 0000000000..7d435cefbe --- /dev/null +++ b/web3game/.vercel/output/static/assets/checkmark-bold-D7LZzOJb.js @@ -0,0 +1,8 @@ +import{F as e}from"./index-DVkBgnkX.js";const o=e` + +`;export{o as checkmarkBoldSvg}; diff --git a/web3game/.vercel/output/static/assets/chevron-bottom-DsOyyH4p.js b/web3game/.vercel/output/static/assets/chevron-bottom-DsOyyH4p.js new file mode 100644 index 0000000000..288a928157 --- /dev/null +++ b/web3game/.vercel/output/static/assets/chevron-bottom-DsOyyH4p.js @@ -0,0 +1,8 @@ +import{F as o}from"./index-DVkBgnkX.js";const e=o` + +`;export{e as chevronBottomSvg}; diff --git a/web3game/.vercel/output/static/assets/chevron-left-DzSVlZvv.js b/web3game/.vercel/output/static/assets/chevron-left-DzSVlZvv.js new file mode 100644 index 0000000000..c701d002cd --- /dev/null +++ b/web3game/.vercel/output/static/assets/chevron-left-DzSVlZvv.js @@ -0,0 +1,8 @@ +import{F as e}from"./index-DVkBgnkX.js";const o=e` + +`;export{o as chevronLeftSvg}; diff --git a/web3game/.vercel/output/static/assets/chevron-right-DQzJJ18d.js b/web3game/.vercel/output/static/assets/chevron-right-DQzJJ18d.js new file mode 100644 index 0000000000..9b694e6288 --- /dev/null +++ b/web3game/.vercel/output/static/assets/chevron-right-DQzJJ18d.js @@ -0,0 +1,8 @@ +import{F as l}from"./index-DVkBgnkX.js";const o=l` + +`;export{o as chevronRightSvg}; diff --git a/web3game/.vercel/output/static/assets/chevron-top-ka9g3Cm6.js b/web3game/.vercel/output/static/assets/chevron-top-ka9g3Cm6.js new file mode 100644 index 0000000000..073f446cdc --- /dev/null +++ b/web3game/.vercel/output/static/assets/chevron-top-ka9g3Cm6.js @@ -0,0 +1,8 @@ +import{F as l}from"./index-DVkBgnkX.js";const e=l` + +`;export{e as chevronTopSvg}; diff --git a/web3game/.vercel/output/static/assets/chrome-store-DOASRzGs.js b/web3game/.vercel/output/static/assets/chrome-store-DOASRzGs.js new file mode 100644 index 0000000000..d8da2a1e71 --- /dev/null +++ b/web3game/.vercel/output/static/assets/chrome-store-DOASRzGs.js @@ -0,0 +1,61 @@ +import{F as t}from"./index-DVkBgnkX.js";const o=t` + + + + + + + + + + + + + + + + + + + + + +`;export{o as chromeStoreSvg}; diff --git a/web3game/.vercel/output/static/assets/clock-B1Wh7uwC.js b/web3game/.vercel/output/static/assets/clock-B1Wh7uwC.js new file mode 100644 index 0000000000..35b3574bcf --- /dev/null +++ b/web3game/.vercel/output/static/assets/clock-B1Wh7uwC.js @@ -0,0 +1,8 @@ +import{F as C}from"./index-DVkBgnkX.js";const l=C` + +`;export{l as clockSvg}; diff --git a/web3game/.vercel/output/static/assets/close-Bf1kfIEm.js b/web3game/.vercel/output/static/assets/close-Bf1kfIEm.js new file mode 100644 index 0000000000..a5709f6f66 --- /dev/null +++ b/web3game/.vercel/output/static/assets/close-Bf1kfIEm.js @@ -0,0 +1,8 @@ +import{F as l}from"./index-DVkBgnkX.js";const o=l` + +`;export{o as closeSvg}; diff --git a/web3game/.vercel/output/static/assets/coinPlaceholder-9vMcvGOx.js b/web3game/.vercel/output/static/assets/coinPlaceholder-9vMcvGOx.js new file mode 100644 index 0000000000..c20f761b44 --- /dev/null +++ b/web3game/.vercel/output/static/assets/coinPlaceholder-9vMcvGOx.js @@ -0,0 +1,8 @@ +import{F as l}from"./index-DVkBgnkX.js";const o=l` + +`;export{o as coinPlaceholderSvg}; diff --git a/web3game/.vercel/output/static/assets/compass-BNoEWA4P.js b/web3game/.vercel/output/static/assets/compass-BNoEWA4P.js new file mode 100644 index 0000000000..befac884aa --- /dev/null +++ b/web3game/.vercel/output/static/assets/compass-BNoEWA4P.js @@ -0,0 +1,8 @@ +import{F as l}from"./index-DVkBgnkX.js";const e=l` + +`;export{e as compassSvg}; diff --git a/web3game/.vercel/output/static/assets/copy-nRYwc7Fd.js b/web3game/.vercel/output/static/assets/copy-nRYwc7Fd.js new file mode 100644 index 0000000000..a2486cc9bb --- /dev/null +++ b/web3game/.vercel/output/static/assets/copy-nRYwc7Fd.js @@ -0,0 +1,15 @@ +import{F as C}from"./index-DVkBgnkX.js";const o=C` + `;export{o as copySvg}; diff --git a/web3game/.vercel/output/static/assets/cursor-DNgNU5g_.js b/web3game/.vercel/output/static/assets/cursor-DNgNU5g_.js new file mode 100644 index 0000000000..03533a7296 --- /dev/null +++ b/web3game/.vercel/output/static/assets/cursor-DNgNU5g_.js @@ -0,0 +1,3 @@ +import{F as o}from"./index-DVkBgnkX.js";const l=o` + +`;export{l as cursorSvg}; diff --git a/web3game/.vercel/output/static/assets/cursor-transparent-BjJpdM7K.js b/web3game/.vercel/output/static/assets/cursor-transparent-BjJpdM7K.js new file mode 100644 index 0000000000..d8200f5bba --- /dev/null +++ b/web3game/.vercel/output/static/assets/cursor-transparent-BjJpdM7K.js @@ -0,0 +1,12 @@ +import{F as o}from"./index-DVkBgnkX.js";const l=o` + + + + `;export{l as cursorTransparentSvg}; diff --git a/web3game/.vercel/output/static/assets/desktop-C9UTmYVU.js b/web3game/.vercel/output/static/assets/desktop-C9UTmYVU.js new file mode 100644 index 0000000000..0522948522 --- /dev/null +++ b/web3game/.vercel/output/static/assets/desktop-C9UTmYVU.js @@ -0,0 +1,9 @@ +import{F as c}from"./index-DVkBgnkX.js";const l=c` + + +`;export{l as desktopSvg}; diff --git a/web3game/.vercel/output/static/assets/disconnect-BxFYXvEL.js b/web3game/.vercel/output/static/assets/disconnect-BxFYXvEL.js new file mode 100644 index 0000000000..c54ae37ee7 --- /dev/null +++ b/web3game/.vercel/output/static/assets/disconnect-BxFYXvEL.js @@ -0,0 +1,8 @@ +import{F as a}from"./index-DVkBgnkX.js";const e=a` + +`;export{e as disconnectSvg}; diff --git a/web3game/.vercel/output/static/assets/discord-CPtsV2MW.js b/web3game/.vercel/output/static/assets/discord-CPtsV2MW.js new file mode 100644 index 0000000000..6355d6a09b --- /dev/null +++ b/web3game/.vercel/output/static/assets/discord-CPtsV2MW.js @@ -0,0 +1,17 @@ +import{F as l}from"./index-DVkBgnkX.js";const i=l` + + + + + + + + + + +`;export{i as discordSvg}; diff --git a/web3game/.vercel/output/static/assets/email-5kUJw0ce.js b/web3game/.vercel/output/static/assets/email-5kUJw0ce.js new file mode 100644 index 0000000000..19e2b07e05 --- /dev/null +++ b/web3game/.vercel/output/static/assets/email-5kUJw0ce.js @@ -0,0 +1,219 @@ +import{i as g,b as V,f as j,r as b,x as c,h as _,R as l,C as E,d as x,S as f,e as u,j as T,k as N,O as W,M as k}from"./index-DVkBgnkX.js";import{n as I,c as h,r as d,U as A}from"./if-defined-DVOmkLu5.js";import"./index-DeEXhxyT.js";import"./index-B2osUT2V.js";import"./index-Cxc8tIRM.js";import{e as U,n as z}from"./index-Cn1TwpSs.js";import"./index-C22vu2Z6.js";import"./index-BfDAOq8h.js";const M=g` + :host { + position: relative; + display: inline-block; + } + + input { + width: 50px; + height: 50px; + background: var(--wui-color-gray-glass-010); + border-radius: var(--wui-border-radius-xs); + border: 1px solid var(--wui-color-gray-glass-005); + font-family: var(--wui-font-family); + font-size: var(--wui-font-size-large); + font-weight: var(--wui-font-weight-regular); + letter-spacing: var(--wui-letter-spacing-large); + text-align: center; + color: var(--wui-color-fg-100); + caret-color: var(--wui-color-accent-100); + transition: + background-color var(--wui-ease-inout-power-1) var(--wui-duration-md), + border-color var(--wui-ease-inout-power-1) var(--wui-duration-md), + box-shadow var(--wui-ease-inout-power-1) var(--wui-duration-md); + will-change: background-color, border-color, box-shadow; + box-sizing: border-box; + -webkit-appearance: none; + -moz-appearance: textfield; + padding: 0px; + } + + input::-webkit-outer-spin-button, + input::-webkit-inner-spin-button { + -webkit-appearance: none; + margin: 0; + } + + input[type='number'] { + -moz-appearance: textfield; + } + + input:disabled { + cursor: not-allowed; + border: 1px solid var(--wui-color-gray-glass-010); + background: var(--wui-color-gray-glass-005); + } + + input:focus:enabled { + background-color: var(--wui-color-gray-glass-015); + border: 1px solid var(--wui-color-accent-100); + -webkit-box-shadow: 0px 0px 0px 4px var(--wui-box-shadow-blue); + -moz-box-shadow: 0px 0px 0px 4px var(--wui-box-shadow-blue); + box-shadow: 0px 0px 0px 4px var(--wui-box-shadow-blue); + } + + @media (hover: hover) and (pointer: fine) { + input:hover:enabled { + background-color: var(--wui-color-gray-glass-015); + } + } +`;var R=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let w=class extends b{constructor(){super(...arguments),this.disabled=!1,this.value=""}render(){return c` `}};w.styles=[V,j,M];R([I({type:Boolean})],w.prototype,"disabled",void 0);R([I({type:String})],w.prototype,"value",void 0);w=R([h("wui-input-numeric")],w);const B=g` + :host { + position: relative; + display: block; + } +`;var C=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let m=class extends b{constructor(){super(...arguments),this.length=6,this.otp="",this.values=Array.from({length:this.length}).map(()=>""),this.numerics=[],this.shouldInputBeEnabled=e=>this.values.slice(0,e).every(n=>n!==""),this.handleKeyDown=(e,t)=>{const n=e.target,o=this.getInputElement(n),i=["ArrowLeft","ArrowRight","Shift","Delete"];if(!o)return;i.includes(e.key)&&e.preventDefault();const r=o.selectionStart;switch(e.key){case"ArrowLeft":r&&o.setSelectionRange(r+1,r+1),this.focusInputField("prev",t);break;case"ArrowRight":this.focusInputField("next",t);break;case"Shift":this.focusInputField("next",t);break;case"Delete":o.value===""?this.focusInputField("prev",t):this.updateInput(o,t,"");break;case"Backspace":o.value===""?this.focusInputField("prev",t):this.updateInput(o,t,"");break}},this.focusInputField=(e,t)=>{if(e==="next"){const n=t+1;if(!this.shouldInputBeEnabled(n))return;const o=this.numerics[n-1?n:t],i=o?this.getInputElement(o):void 0;i&&i.focus()}}}firstUpdated(){var t,n;this.otp&&(this.values=this.otp.split(""));const e=(t=this.shadowRoot)==null?void 0:t.querySelectorAll("wui-input-numeric");e&&(this.numerics=Array.from(e)),(n=this.numerics[0])==null||n.focus()}render(){return c` + + ${Array.from({length:this.length}).map((e,t)=>c` + this.handleInput(n,t)} + @click=${n=>this.selectInput(n)} + @keydown=${n=>this.handleKeyDown(n,t)} + .disabled=${!this.shouldInputBeEnabled(t)} + .value=${this.values[t]||""} + > + + `)} + + `}updateInput(e,t,n){const o=this.numerics[t],i=e||(o?this.getInputElement(o):void 0);i&&(i.value=n,this.values=this.values.map((r,s)=>s===t?n:r))}selectInput(e){const t=e.target;if(t){const n=this.getInputElement(t);n==null||n.select()}}handleInput(e,t){const n=e.target,o=this.getInputElement(n);if(o){const i=o.value;e.inputType==="insertFromPaste"?this.handlePaste(o,i,t):A.isNumber(i)&&e.data?(this.updateInput(o,t,e.data),this.focusInputField("next",t)):this.updateInput(o,t,"")}this.dispatchInputChangeEvent()}handlePaste(e,t,n){const o=t[0];if(o&&A.isNumber(o)){this.updateInput(e,n,o);const r=t.substring(1);if(n+1=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};const H=6;let p=class extends b{firstUpdated(){this.startOTPTimeout()}disconnectedCallback(){clearTimeout(this.OTPTimeout)}constructor(){var e;super(),this.loading=!1,this.timeoutTimeLeft=_.getTimeToNextEmailLogin(),this.error="",this.otp="",this.email=(e=l.state.data)==null?void 0:e.email,this.authConnector=E.getAuthConnector()}render(){if(!this.email)throw new Error("w3m-email-otp-widget: No email provided");const e=!!this.timeoutTimeLeft,t=this.getFooterLabels(e);return c` + + + + The code expires in 20 minutes + + ${this.loading?c``:c` + + ${this.error?c` + + ${this.error}. Try Again + + `:null} + `} + + + ${t.title} + + ${t.action} + + + + `}startOTPTimeout(){this.timeoutTimeLeft=_.getTimeToNextEmailLogin(),this.OTPTimeout=setInterval(()=>{this.timeoutTimeLeft>0?this.timeoutTimeLeft=_.getTimeToNextEmailLogin():clearInterval(this.OTPTimeout)},1e3)}async onOtpInputChange(e){var t;try{this.loading||(this.otp=e.detail,this.authConnector&&this.otp.length===H&&(this.loading=!0,await((t=this.onOtpSubmit)==null?void 0:t.call(this,this.otp))))}catch(n){this.error=x.parseError(n),this.loading=!1}}async onResendCode(){try{if(this.onOtpResend){if(!this.loading&&!this.timeoutTimeLeft){if(this.error="",this.otp="",!E.getAuthConnector()||!this.email)throw new Error("w3m-email-otp-widget: Unable to resend email");this.loading=!0,await this.onOtpResend(this.email),this.startOTPTimeout(),f.showSuccess("Code email resent")}}else this.onStartOver&&this.onStartOver()}catch(e){f.showError(e)}finally{this.loading=!1}}getFooterLabels(e){return this.onStartOver?{title:"Something wrong?",action:`Try again ${e?`in ${this.timeoutTimeLeft}s`:""}`}:{title:"Didn't receive it?",action:`Resend ${e?`in ${this.timeoutTimeLeft}s`:"Code"}`}}};p.styles=q;O([d()],p.prototype,"loading",void 0);O([d()],p.prototype,"timeoutTimeLeft",void 0);O([d()],p.prototype,"error",void 0);p=O([h("w3m-email-otp-widget")],p);var G=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let D=class extends p{constructor(){super(...arguments),this.onOtpSubmit=async e=>{try{if(this.authConnector){if(await this.authConnector.provider.connectOtp({otp:e}),u.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_PASS"}),T.state.activeChain)await N.connectExternal(this.authConnector,T.state.activeChain);else throw new Error("Active chain is not set on ChainControll");u.sendEvent({type:"track",event:"CONNECT_SUCCESS",properties:{method:"email",name:this.authConnector.name||"Unknown"}}),W.state.siwx||k.close()}}catch(t){throw u.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_FAIL",properties:{message:x.parseError(t)}}),t}},this.onOtpResend=async e=>{this.authConnector&&(await this.authConnector.provider.connectEmail({email:e}),u.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_SENT"}))}}};D=G([h("w3m-email-verify-otp-view")],D);const K=g` + wui-icon-box { + height: var(--wui-icon-box-size-xl); + width: var(--wui-icon-box-size-xl); + } +`;var F=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let y=class extends b{constructor(){var e;super(),this.email=(e=l.state.data)==null?void 0:e.email,this.authConnector=E.getAuthConnector(),this.loading=!1,this.listenForDeviceApproval()}render(){if(!this.email)throw new Error("w3m-email-verify-device-view: No email provided");if(!this.authConnector)throw new Error("w3m-email-verify-device-view: No auth connector provided");return c` + + + + + + + Approve the login link we sent to + + ${this.email} + + + + The code expires in 20 minutes + + + + + Didn't receive it? + + + Resend email + + + + + `}async listenForDeviceApproval(){if(this.authConnector)try{await this.authConnector.provider.connectDevice(),u.sendEvent({type:"track",event:"DEVICE_REGISTERED_FOR_EMAIL"}),u.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_SENT"}),l.replace("EmailVerifyOtp",{email:this.email})}catch{l.goBack()}}async onResendCode(){try{if(!this.loading){if(!this.authConnector||!this.email)throw new Error("w3m-email-login-widget: Unable to resend email");this.loading=!0,await this.authConnector.provider.connectEmail({email:this.email}),this.listenForDeviceApproval(),f.showSuccess("Code email resent")}}catch(e){f.showError(e)}finally{this.loading=!1}}};y.styles=K;F([d()],y.prototype,"loading",void 0);y=F([h("w3m-email-verify-device-view")],y);const Y=g` + wui-email-input { + width: 100%; + } + + form { + width: 100%; + display: block; + position: relative; + } +`;var S=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let v=class extends b{constructor(){var e;super(...arguments),this.formRef=U(),this.initialEmail=((e=l.state.data)==null?void 0:e.email)??"",this.email="",this.loading=!1}firstUpdated(){var e;(e=this.formRef.value)==null||e.addEventListener("keydown",t=>{t.key==="Enter"&&this.onSubmitEmail(t)})}render(){const e=!this.loading&&this.email.length>3&&this.email!==this.initialEmail;return c` + +
+ + + +
+ + + + Cancel + + + + Save + + +
+ `}onEmailInputChange(e){this.email=e.detail}async onSubmitEmail(e){try{if(this.loading)return;this.loading=!0,e.preventDefault();const t=E.getAuthConnector();if(!t)throw new Error("w3m-update-email-wallet: Auth connector not found");const n=await t.provider.updateEmail({email:this.email});u.sendEvent({type:"track",event:"EMAIL_EDIT"}),n.action==="VERIFY_SECONDARY_OTP"?l.push("UpdateEmailSecondaryOtp",{email:this.initialEmail,newEmail:this.email}):l.push("UpdateEmailPrimaryOtp",{email:this.initialEmail,newEmail:this.email})}catch(t){f.showError(t),this.loading=!1}}};v.styles=Y;S([d()],v.prototype,"email",void 0);S([d()],v.prototype,"loading",void 0);v=S([h("w3m-update-email-wallet-view")],v);var J=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let P=class extends p{constructor(){var e;super(),this.email=(e=l.state.data)==null?void 0:e.email,this.onOtpSubmit=async t=>{try{this.authConnector&&(await this.authConnector.provider.updateEmailPrimaryOtp({otp:t}),u.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_PASS"}),l.replace("UpdateEmailSecondaryOtp",l.state.data))}catch(n){throw u.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_FAIL",properties:{message:x.parseError(n)}}),n}},this.onStartOver=()=>{l.replace("UpdateEmailWallet",l.state.data)}}};P=J([h("w3m-update-email-primary-otp-view")],P);var Q=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let L=class extends p{constructor(){var e;super(),this.email=(e=l.state.data)==null?void 0:e.newEmail,this.onOtpSubmit=async t=>{try{this.authConnector&&(await this.authConnector.provider.updateEmailSecondaryOtp({otp:t}),u.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_PASS"}),l.reset("Account"))}catch(n){throw u.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_FAIL",properties:{message:x.parseError(n)}}),n}},this.onStartOver=()=>{l.replace("UpdateEmailWallet",l.state.data)}}};L=Q([h("w3m-update-email-secondary-otp-view")],L);export{y as W3mEmailVerifyDeviceView,D as W3mEmailVerifyOtpView,P as W3mUpdateEmailPrimaryOtpView,L as W3mUpdateEmailSecondaryOtpView,v as W3mUpdateEmailWalletView}; diff --git a/web3game/.vercel/output/static/assets/embedded-wallet-CalfqdNI.js b/web3game/.vercel/output/static/assets/embedded-wallet-CalfqdNI.js new file mode 100644 index 0000000000..71d2a672f2 --- /dev/null +++ b/web3game/.vercel/output/static/assets/embedded-wallet-CalfqdNI.js @@ -0,0 +1,194 @@ +import{i as x,r as f,M as E,R as I,x as l,C as W,T as A,g as M,a as C,b as j,c as $,E as c,A as h,d as O,e as y,W as T,S as D}from"./index-DVkBgnkX.js";import{r as p,c as g,n as w,o as P}from"./if-defined-DVOmkLu5.js";import{N as k}from"./index-BxwsSeIL.js";import{e as z,n as H}from"./index-Cn1TwpSs.js";import"./index-B2osUT2V.js";import"./index-BfDAOq8h.js";import"./index-BGjtclTS.js";import"./index-Cxc8tIRM.js";import"./index-DeEXhxyT.js";import"./index-QpqlfPgl.js";const V=x` + div { + width: 100%; + } + + [data-ready='false'] { + transform: scale(1.05); + } + + @media (max-width: 430px) { + [data-ready='false'] { + transform: translateY(-50px); + } + } +`;var U=function(o,e,i,n){var s=arguments.length,t=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(o,e,i,n);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(t=(s<3?r(t):s>3?r(e,i,t):r(e,i))||t);return s>3&&t&&Object.defineProperty(e,i,t),t};const S=600,N=360,F=64;let v=class extends f{constructor(){super(),this.bodyObserver=void 0,this.unsubscribe=[],this.iframe=document.getElementById("w3m-iframe"),this.ready=!1,this.unsubscribe.push(E.subscribeKey("open",e=>{e||(this.onHideIframe(),I.popTransactionStack())}),E.subscribeKey("shake",e=>{e?this.iframe.style.animation="w3m-shake 500ms var(--wui-ease-out-power-2)":this.iframe.style.animation="none"}))}disconnectedCallback(){var e;this.onHideIframe(),this.unsubscribe.forEach(i=>i()),(e=this.bodyObserver)==null||e.unobserve(window.document.body)}async firstUpdated(){var i;await this.syncTheme(),this.iframe.style.display="block";const e=(i=this==null?void 0:this.renderRoot)==null?void 0:i.querySelector("div");this.bodyObserver=new ResizeObserver(n=>{var r,a;const s=(r=n==null?void 0:n[0])==null?void 0:r.contentBoxSize,t=(a=s==null?void 0:s[0])==null?void 0:a.inlineSize;this.iframe.style.height=`${S}px`,e.style.height=`${S}px`,t&&t<=430?(this.iframe.style.width="100%",this.iframe.style.left="0px",this.iframe.style.bottom="0px",this.iframe.style.top="unset"):(this.iframe.style.width=`${N}px`,this.iframe.style.left=`calc(50% - ${N/2}px)`,this.iframe.style.top=`calc(50% - ${S/2}px + ${F/2}px)`,this.iframe.style.bottom="unset"),this.ready=!0,this.onShowIframe()}),this.bodyObserver.observe(window.document.body)}render(){return l`
`}onShowIframe(){const e=window.innerWidth<=430;this.iframe.style.animation=e?"w3m-iframe-zoom-in-mobile 200ms var(--wui-ease-out-power-2)":"w3m-iframe-zoom-in 200ms var(--wui-ease-out-power-2)"}onHideIframe(){this.iframe.style.display="none",this.iframe.style.animation="w3m-iframe-fade-out 200ms var(--wui-ease-out-power-2)"}async syncTheme(){const e=W.getAuthConnector();if(e){const i=A.getSnapshot().themeMode,n=A.getSnapshot().themeVariables;await e.provider.syncTheme({themeVariables:n,w3mThemeVariables:M(n,i)})}}};v.styles=V;U([p()],v.prototype,"ready",void 0);v=U([g("w3m-approve-transaction-view")],v);var G=function(o,e,i,n){var s=arguments.length,t=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(o,e,i,n);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(t=(s<3?r(t):s>3?r(e,i,t):r(e,i))||t);return s>3&&t&&Object.defineProperty(e,i,t),t};let _=class extends f{render(){return l` + + Follow the instructions on + + + + You will have to reconnect for security reasons + + + `}};_=G([g("w3m-upgrade-wallet-view")],_);const Y=x` + :host { + position: relative; + width: 100%; + display: inline-block; + color: var(--wui-color-fg-275); + } + + .error { + margin: var(--wui-spacing-xxs) var(--wui-spacing-m) var(--wui-spacing-0) var(--wui-spacing-m); + } + + .base-name { + position: absolute; + right: 45px; + top: 15px; + text-align: right; + } +`;var b=function(o,e,i,n){var s=arguments.length,t=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(o,e,i,n);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(t=(s<3?r(t):s>3?r(e,i,t):r(e,i))||t);return s>3&&t&&Object.defineProperty(e,i,t),t};let d=class extends f{constructor(){super(...arguments),this.disabled=!1,this.loading=!1}render(){return l` + + ${this.baseNameTemplate()} ${this.errorTemplate()}${this.loadingTemplate()} + + `}baseNameTemplate(){return l` + ${$.WC_NAME_SUFFIX} + `}loadingTemplate(){return this.loading?l``:null}errorTemplate(){return this.errorMessage?l`${this.errorMessage}`:null}};d.styles=[j,Y];b([w()],d.prototype,"errorMessage",void 0);b([w({type:Boolean})],d.prototype,"disabled",void 0);b([w()],d.prototype,"value",void 0);b([w({type:Boolean})],d.prototype,"loading",void 0);d=b([g("wui-ens-input")],d);const L=x` + wui-flex { + width: 100%; + } + + .suggestion { + background: var(--wui-color-gray-glass-002); + border-radius: var(--wui-border-radius-xs); + } + + .suggestion:hover { + background-color: var(--wui-color-gray-glass-005); + cursor: pointer; + } + + .suggested-name { + max-width: 75%; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + } + + form { + width: 100%; + } + + wui-icon-link { + position: absolute; + right: 20px; + transform: translateY(11px); + } +`;var m=function(o,e,i,n){var s=arguments.length,t=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(o,e,i,n);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(t=(s<3?r(t):s>3?r(e,i,t):r(e,i))||t);return s>3&&t&&Object.defineProperty(e,i,t),t};let u=class extends f{constructor(){super(),this.formRef=z(),this.usubscribe=[],this.name="",this.error="",this.loading=c.state.loading,this.suggestions=c.state.suggestions,this.registered=!1,this.profileName=h.state.profileName,this.onDebouncedNameInputChange=O.debounce(e=>{c.validateName(e)?(this.error="",this.name=e,c.getSuggestions(e),c.isNameRegistered(e).then(i=>{this.registered=i})):e.length<4?this.error="Name must be at least 4 characters long":this.error="Can only contain letters, numbers and - characters"}),this.usubscribe.push(c.subscribe(e=>{this.suggestions=e.suggestions,this.loading=e.loading}),h.subscribeKey("profileName",e=>{this.profileName=e,e&&(this.error="You already own a name")}))}firstUpdated(){var e;(e=this.formRef.value)==null||e.addEventListener("keydown",this.onEnterKey.bind(this))}disconnectedCallback(){var e;super.disconnectedCallback(),this.usubscribe.forEach(i=>i()),(e=this.formRef.value)==null||e.removeEventListener("keydown",this.onEnterKey.bind(this))}render(){return l` + +
+ + + ${this.submitButtonTemplate()} + +
+ ${this.templateSuggestions()} +
+ `}submitButtonTemplate(){return this.isAllowedToSubmit()?l` + + + `:null}onSelectSuggestion(e){return()=>{this.name=e,this.registered=!1,this.requestUpdate()}}onNameInputChange(e){this.onDebouncedNameInputChange(e.detail)}nameSuggestionTagTemplate(){return this.loading?l``:this.registered?l`Registered`:l`Available`}templateSuggestions(){if(!this.name||this.name.length<4||this.error)return null;const e=this.registered?this.suggestions.filter(i=>i.name!==this.name):[];return l` + + + ${this.name}${this.nameSuggestionTagTemplate()} + + ${e.map(i=>this.availableNameTemplate(i.name))} + `}availableNameTemplate(e){return l` + + ${e} + + Available + `}isAllowedToSubmit(){return!this.loading&&!this.registered&&!this.error&&!this.profileName&&c.validateName(this.name)}async onSubmitName(){try{if(!this.isAllowedToSubmit())return;const e=`${this.name}${$.WC_NAME_SUFFIX}`;y.sendEvent({type:"track",event:"REGISTER_NAME_INITIATED",properties:{isSmartAccount:h.state.preferredAccountType===T.ACCOUNT_TYPES.SMART_ACCOUNT,ensName:e}}),await c.registerName(e),y.sendEvent({type:"track",event:"REGISTER_NAME_SUCCESS",properties:{isSmartAccount:h.state.preferredAccountType===T.ACCOUNT_TYPES.SMART_ACCOUNT,ensName:e}})}catch(e){D.showError(e.message),y.sendEvent({type:"track",event:"REGISTER_NAME_ERROR",properties:{isSmartAccount:h.state.preferredAccountType===T.ACCOUNT_TYPES.SMART_ACCOUNT,ensName:`${this.name}${$.WC_NAME_SUFFIX}`,error:(e==null?void 0:e.message)||"Unknown error"}})}}onEnterKey(e){e.key==="Enter"&&this.isAllowedToSubmit()&&this.onSubmitName()}};u.styles=L;m([w()],u.prototype,"errorMessage",void 0);m([p()],u.prototype,"name",void 0);m([p()],u.prototype,"error",void 0);m([p()],u.prototype,"loading",void 0);m([p()],u.prototype,"suggestions",void 0);m([p()],u.prototype,"registered",void 0);m([p()],u.prototype,"profileName",void 0);u=m([g("w3m-register-account-name-view")],u);const B=x` + .continue-button-container { + width: 100%; + } +`;var K=function(o,e,i,n){var s=arguments.length,t=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(o,e,i,n);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(t=(s<3?r(t):s>3?r(e,i,t):r(e,i))||t);return s>3&&t&&Object.defineProperty(e,i,t),t};let R=class extends f{render(){return l` + + ${this.onboardingTemplate()} ${this.buttonsTemplate()} + {O.openHref(k.URLS.FAQ,"_blank")}} + > + Learn more + + + + `}onboardingTemplate(){return l` + + + + + + Account name chosen successfully + + + You can now fund your account and trade crypto + + + `}buttonsTemplate(){return l` + Let's Go! + + `}redirectToAccount(){I.replace("Account")}};R.styles=B;R=K([g("w3m-register-account-name-success-view")],R);export{v as W3mApproveTransactionView,R as W3mRegisterAccountNameSuccess,u as W3mRegisterAccountNameView,_ as W3mUpgradeWalletView}; diff --git a/web3game/.vercel/output/static/assets/etherscan-B2qgBOrx.js b/web3game/.vercel/output/static/assets/etherscan-B2qgBOrx.js new file mode 100644 index 0000000000..3cd7af27f1 --- /dev/null +++ b/web3game/.vercel/output/static/assets/etherscan-B2qgBOrx.js @@ -0,0 +1,6 @@ +import{F as c}from"./index-DVkBgnkX.js";const v=c` + +`;export{v as etherscanSvg}; diff --git a/web3game/.vercel/output/static/assets/exclamation-triangle-BvTCgnwY.js b/web3game/.vercel/output/static/assets/exclamation-triangle-BvTCgnwY.js new file mode 100644 index 0000000000..dea4b0358a --- /dev/null +++ b/web3game/.vercel/output/static/assets/exclamation-triangle-BvTCgnwY.js @@ -0,0 +1,4 @@ +import{F as C}from"./index-DVkBgnkX.js";const t=C` + + +`;export{t as exclamationTriangleSvg}; diff --git a/web3game/.vercel/output/static/assets/extension-D-068koU.js b/web3game/.vercel/output/static/assets/extension-D-068koU.js new file mode 100644 index 0000000000..b9c16fdf14 --- /dev/null +++ b/web3game/.vercel/output/static/assets/extension-D-068koU.js @@ -0,0 +1,8 @@ +import{F as a}from"./index-DVkBgnkX.js";const e=a` + +`;export{e as extensionSvg}; diff --git a/web3game/.vercel/output/static/assets/external-link-B07cndH6.js b/web3game/.vercel/output/static/assets/external-link-B07cndH6.js new file mode 100644 index 0000000000..8978106afb --- /dev/null +++ b/web3game/.vercel/output/static/assets/external-link-B07cndH6.js @@ -0,0 +1,8 @@ +import{F as l}from"./index-DVkBgnkX.js";const o=l` + +`;export{o as externalLinkSvg}; diff --git a/web3game/.vercel/output/static/assets/facebook-DeckNMsP.js b/web3game/.vercel/output/static/assets/facebook-DeckNMsP.js new file mode 100644 index 0000000000..a34b9745db --- /dev/null +++ b/web3game/.vercel/output/static/assets/facebook-DeckNMsP.js @@ -0,0 +1,26 @@ +import{F as l}from"./index-DVkBgnkX.js";const f=l` + + + + + + + + + + + + + + + +`;export{f as facebookSvg}; diff --git a/web3game/.vercel/output/static/assets/farcaster-C9IkoArR.js b/web3game/.vercel/output/static/assets/farcaster-C9IkoArR.js new file mode 100644 index 0000000000..13bf6e095b --- /dev/null +++ b/web3game/.vercel/output/static/assets/farcaster-C9IkoArR.js @@ -0,0 +1,12 @@ +import{F as h}from"./index-DVkBgnkX.js";const a=h` + + + + +`;export{a as farcasterSvg}; diff --git a/web3game/.vercel/output/static/assets/filters-C-4gICs4.js b/web3game/.vercel/output/static/assets/filters-C-4gICs4.js new file mode 100644 index 0000000000..cf97bbd3ee --- /dev/null +++ b/web3game/.vercel/output/static/assets/filters-C-4gICs4.js @@ -0,0 +1,8 @@ +import{F as a}from"./index-DVkBgnkX.js";const l=a` + +`;export{l as filtersSvg}; diff --git a/web3game/.vercel/output/static/assets/github-C79GxuqQ.js b/web3game/.vercel/output/static/assets/github-C79GxuqQ.js new file mode 100644 index 0000000000..7e147acb5d --- /dev/null +++ b/web3game/.vercel/output/static/assets/github-C79GxuqQ.js @@ -0,0 +1,18 @@ +import{F as l}from"./index-DVkBgnkX.js";const c=l` + + + + + + + + + + + + + +`;export{c as githubSvg}; diff --git a/web3game/.vercel/output/static/assets/google-DeB6ib-m.js b/web3game/.vercel/output/static/assets/google-DeB6ib-m.js new file mode 100644 index 0000000000..a46061ebc3 --- /dev/null +++ b/web3game/.vercel/output/static/assets/google-DeB6ib-m.js @@ -0,0 +1,18 @@ +import{F as l}from"./index-DVkBgnkX.js";const o=l` + + + + +`;export{o as googleSvg}; diff --git a/web3game/.vercel/output/static/assets/help-circle-0Rz7XZ7f.js b/web3game/.vercel/output/static/assets/help-circle-0Rz7XZ7f.js new file mode 100644 index 0000000000..57fab89728 --- /dev/null +++ b/web3game/.vercel/output/static/assets/help-circle-0Rz7XZ7f.js @@ -0,0 +1,12 @@ +import{F as l}from"./index-DVkBgnkX.js";const o=l` + + +`;export{o as helpCircleSvg}; diff --git a/web3game/.vercel/output/static/assets/hooks.module-CUJGEegb.js b/web3game/.vercel/output/static/assets/hooks.module-CUJGEegb.js new file mode 100644 index 0000000000..e53fb248ce --- /dev/null +++ b/web3game/.vercel/output/static/assets/hooks.module-CUJGEegb.js @@ -0,0 +1 @@ +function m_(e){var _,t,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(_=0;_2&&(i.children=arguments.length>3?L.call(arguments,2):t),typeof e=="function"&&e.defaultProps!=null)for(r in e.defaultProps)i[r]===void 0&&(i[r]=e.defaultProps[r]);return A(e,i,n,u,null)}function A(e,_,t,n,u){var r={type:e,props:_,key:t,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:u??++y_,__i:-1,__u:0};return u==null&&m.vnode!=null&&m.vnode(r),r}function O_(){return{current:null}}function j(e){return e.children}function M(e,_){this.props=e,this.context=_}function P(e,_){if(_==null)return e.__?P(e.__,e.__i+1):null;for(var t;_c&&H.sort(k_),e=H.shift(),c=H.length,e.__d&&(t=void 0,u=(n=(_=e).__v).__e,r=[],i=[],_.__P&&((t=w({},n)).__v=n.__v+1,m.vnode&&m.vnode(t),__(_.__P,t,n,_.__n,_.__P.namespaceURI,32&n.__u?[u]:null,r,u??P(n),!!(32&n.__u),i),t.__v=n.__v,t.__.__k[t.__i]=t,E_(r,t,i),t.__e!=u&&x_(t)));z.__r=0}function H_(e,_,t,n,u,r,i,c,f,l,a){var o,p,s,g,k,b,d=n&&n.__k||C_,v=_.length;for(f=I_(t,_,d,f,v),o=0;o0?A(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i).__=e,i.__b=e.__b+1,c=null,(l=i.__i=R_(i,t,f,o))!==-1&&(o--,(c=t[l])&&(c.__u|=2)),c==null||c.__v===null?(l==-1&&(u>a?p--:uf?p--:p++,i.__u|=4))):e.__k[r]=null;if(o)for(r=0;r(f!=null&&(2&f.__u)==0?1:0))for(u=t-1,r=t+1;u>=0||r<_.length;){if(u>=0){if((f=_[u])&&(2&f.__u)==0&&i==f.key&&c===f.type)return u;u--}if(r<_.length){if((f=_[r])&&(2&f.__u)==0&&i==f.key&&c===f.type)return r;r++}}return-1}function i_(e,_,t){_[0]=="-"?e.setProperty(_,t??""):e[_]=t==null?"":typeof t!="number"||j_.test(_)?t:t+"px"}function R(e,_,t,n,u){var r;_:if(_=="style")if(typeof t=="string")e.style.cssText=t;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(_ in n)t&&_ in t||i_(e.style,_,"");if(t)for(_ in t)n&&t[_]===n[_]||i_(e.style,_,t[_])}else if(_[0]=="o"&&_[1]=="n")r=_!=(_=_.replace($_,"$1")),_=_.toLowerCase()in e||_=="onFocusOut"||_=="onFocusIn"?_.toLowerCase().slice(2):_.slice(2),e.l||(e.l={}),e.l[_+r]=t,t?n?t.t=n.t:(t.t=Y,e.addEventListener(_,r?J:G,r)):e.removeEventListener(_,r?J:G,r);else{if(u=="http://www.w3.org/2000/svg")_=_.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(_!="width"&&_!="height"&&_!="href"&&_!="list"&&_!="form"&&_!="tabIndex"&&_!="download"&&_!="rowSpan"&&_!="colSpan"&&_!="role"&&_!="popover"&&_ in e)try{e[_]=t??"";break _}catch{}typeof t=="function"||(t==null||t===!1&&_[4]!="-"?e.removeAttribute(_):e.setAttribute(_,_=="popover"&&t==1?"":t))}}function l_(e){return function(_){if(this.l){var t=this.l[_.type+e];if(_.u==null)_.u=Y++;else if(_.u2&&(c.children=arguments.length>3?L.call(arguments,2):t),A(e.type,c,n||e.key,u||e.ref,null)}function V_(e){function _(t){var n,u;return this.getChildContext||(n=new Set,(u={})[_.__c]=this,this.getChildContext=function(){return u},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(r){this.props.value!==r.value&&n.forEach(function(i){i.__e=!0,Q(i)})},this.sub=function(r){n.add(r);var i=r.componentWillUnmount;r.componentWillUnmount=function(){n&&n.delete(r),i&&i.call(r)}}),t.children}return _.__c="__cC"+w_++,_.__=e,_.Provider=_.__l=(_.Consumer=function(t,n){return t.children(n)}).contextType=_,_}L=C_.slice,m={__e:function(e,_,t,n){for(var u,r,i;_=_.__;)if((u=_.__c)&&!u.__)try{if((r=u.constructor)&&r.getDerivedStateFromError!=null&&(u.setState(r.getDerivedStateFromError(e)),i=u.__d),u.componentDidCatch!=null&&(u.componentDidCatch(e,n||{}),i=u.__d),i)return u.__E=u}catch(c){e=c}throw e}},y_=0,g_=function(e){return e!=null&&e.constructor==null},M.prototype.setState=function(e,_){var t;t=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=w({},this.state),typeof e=="function"&&(e=e(w({},t),this.props)),e&&w(t,e),e!=null&&this.__v&&(_&&this._sb.push(_),Q(this))},M.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Q(this))},M.prototype.render=j,H=[],b_=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,k_=function(e,_){return e.__v.__b-_.__v.__b},z.__r=0,$_=/(PointerCapture)$|Capture$/i,Y=0,G=l_(!1),J=l_(!0),w_=0;const re=Object.freeze(Object.defineProperty({__proto__:null,Component:M,Fragment:j,cloneElement:B_,createContext:V_,createElement:K,createRef:O_,h:K,hydrate:D_,get isValidElement(){return g_},get options(){return m},render:N_,toChildArray:P_},Symbol.toStringTag,{value:"Module"}));var C,h,V,c_,E=0,A_=[],y=m,f_=y.__b,s_=y.__r,a_=y.diffed,p_=y.__c,h_=y.unmount,d_=y.__;function S(e,_){y.__h&&y.__h(h,e,E||_),E=0;var t=h.__H||(h.__H={__:[],__h:[]});return e>=t.__.length&&t.__.push({}),t.__[e]}function M_(e){return E=1,F_(W_,e)}function F_(e,_,t){var n=S(C++,2);if(n.t=e,!n.__c&&(n.__=[t?t(_):W_(void 0,_),function(c){var f=n.__N?n.__N[0]:n.__[0],l=n.t(f,c);f!==l&&(n.__N=[l,n.__[1]],n.__c.setState({}))}],n.__c=h,!h.__f)){var u=function(c,f,l){if(!n.__c.__H)return!0;var a=n.__c.__H.__.filter(function(p){return!!p.__c});if(a.every(function(p){return!p.__N}))return!r||r.call(this,c,f,l);var o=n.__c.props!==c;return a.forEach(function(p){if(p.__N){var s=p.__[0];p.__=p.__N,p.__N=void 0,s!==p.__[0]&&(o=!0)}}),r&&r.call(this,c,f,l)||o};h.__f=!0;var r=h.shouldComponentUpdate,i=h.componentWillUpdate;h.componentWillUpdate=function(c,f,l){if(this.__e){var a=r;r=void 0,u(c,f,l),r=a}i&&i.call(this,c,f,l)},h.shouldComponentUpdate=u}return n.__N||n.__}function G_(e,_){var t=S(C++,3);!y.__s&&n_(t.__H,_)&&(t.__=e,t.u=_,h.__H.__h.push(t))}function L_(e,_){var t=S(C++,4);!y.__s&&n_(t.__H,_)&&(t.__=e,t.u=_,h.__h.push(t))}function J_(e){return E=5,t_(function(){return{current:e}},[])}function K_(e,_,t){E=6,L_(function(){if(typeof e=="function"){var n=e(_());return function(){e(null),n&&typeof n=="function"&&n()}}if(e)return e.current=_(),function(){return e.current=null}},t==null?t:t.concat(e))}function t_(e,_){var t=S(C++,7);return n_(t.__H,_)&&(t.__=e(),t.__H=_,t.__h=e),t.__}function Q_(e,_){return E=8,t_(function(){return e},_)}function X_(e){var _=h.context[e.__c],t=S(C++,9);return t.c=e,_?(t.__==null&&(t.__=!0,_.sub(h)),_.props.value):e.__}function Y_(e,_){y.useDebugValue&&y.useDebugValue(_?_(e):e)}function Z_(e){var _=S(C++,10),t=M_();return _.__=e,h.componentDidCatch||(h.componentDidCatch=function(n,u){_.__&&_.__(n,u),t[1](n)}),[t[0],function(){t[1](void 0)}]}function _e(){var e=S(C++,11);if(!e.__){for(var _=h.__v;_!==null&&!_.__m&&_.__!==null;)_=_.__;var t=_.__m||(_.__m=[0,0]);e.__="P"+t[0]+"-"+t[1]++}return e.__}function ee(){for(var e;e=A_.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(q),e.__H.__h.forEach(X),e.__H.__h=[]}catch(_){e.__H.__h=[],y.__e(_,e.__v)}}y.__b=function(e){h=null,f_&&f_(e)},y.__=function(e,_){e&&_.__k&&_.__k.__m&&(e.__m=_.__k.__m),d_&&d_(e,_)},y.__r=function(e){s_&&s_(e),C=0;var _=(h=e.__c).__H;_&&(V===h?(_.__h=[],h.__h=[],_.__.forEach(function(t){t.__N&&(t.__=t.__N),t.u=t.__N=void 0})):(_.__h.forEach(q),_.__h.forEach(X),_.__h=[],C=0)),V=h},y.diffed=function(e){a_&&a_(e);var _=e.__c;_&&_.__H&&(_.__H.__h.length&&(A_.push(_)!==1&&c_===y.requestAnimationFrame||((c_=y.requestAnimationFrame)||te)(ee)),_.__H.__.forEach(function(t){t.u&&(t.__H=t.u),t.u=void 0})),V=h=null},y.__c=function(e,_){_.some(function(t){try{t.__h.forEach(q),t.__h=t.__h.filter(function(n){return!n.__||X(n)})}catch(n){_.some(function(u){u.__h&&(u.__h=[])}),_=[],y.__e(n,t.__v)}}),p_&&p_(e,_)},y.unmount=function(e){h_&&h_(e);var _,t=e.__c;t&&t.__H&&(t.__H.__.forEach(function(n){try{q(n)}catch(u){_=u}}),t.__H=void 0,_&&y.__e(_,t.__v))};var v_=typeof requestAnimationFrame=="function";function te(e){var _,t=function(){clearTimeout(n),v_&&cancelAnimationFrame(_),setTimeout(e)},n=setTimeout(t,100);v_&&(_=requestAnimationFrame(t))}function q(e){var _=h,t=e.__c;typeof t=="function"&&(e.__c=void 0,t()),h=_}function X(e){var _=h;e.__c=e.__(),h=_}function n_(e,_){return!e||e.length!==_.length||_.some(function(t,n){return t!==e[n]})}function W_(e,_){return typeof _=="function"?_(e):_}const oe=Object.freeze(Object.defineProperty({__proto__:null,useCallback:Q_,useContext:X_,useDebugValue:Y_,useEffect:G_,useErrorBoundary:Z_,useId:_e,useImperativeHandle:K_,useLayoutEffect:L_,useMemo:t_,useReducer:F_,useRef:J_,useState:M_},Symbol.toStringTag,{value:"Module"}));export{N_ as E,K as _,ne as a,o_ as c,M_ as d,oe as h,re as p,G_ as y}; diff --git a/web3game/.vercel/output/static/assets/id-BHcw5yf4.js b/web3game/.vercel/output/static/assets/id-BHcw5yf4.js new file mode 100644 index 0000000000..1757081e64 --- /dev/null +++ b/web3game/.vercel/output/static/assets/id-BHcw5yf4.js @@ -0,0 +1,12 @@ +import{F as c}from"./index-DVkBgnkX.js";const v=c` + +`;export{v as idSvg}; diff --git a/web3game/.vercel/output/static/assets/if-defined-DVOmkLu5.js b/web3game/.vercel/output/static/assets/if-defined-DVOmkLu5.js new file mode 100644 index 0000000000..5be8aedf46 --- /dev/null +++ b/web3game/.vercel/output/static/assets/if-defined-DVOmkLu5.js @@ -0,0 +1,230 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/add-CtW7uzyn.js","assets/index-DVkBgnkX.js","assets/index-DFqzAh7d.css","assets/all-wallets-uVmi2mcT.js","assets/arrow-bottom-circle-XqzbGM4-.js","assets/app-store-BFyPJxxC.js","assets/apple-CsMMFDsS.js","assets/arrow-bottom-D6KxLury.js","assets/arrow-left-FDMecMQy.js","assets/arrow-right-DX9Raeab.js","assets/arrow-top-D7BEQRhs.js","assets/bank-BQtytHN2.js","assets/browser-kD_RfWKH.js","assets/card-C2Vx-y4J.js","assets/checkmark-DOxAmxwx.js","assets/checkmark-bold-D7LZzOJb.js","assets/chevron-bottom-DsOyyH4p.js","assets/chevron-left-DzSVlZvv.js","assets/chevron-right-DQzJJ18d.js","assets/chevron-top-ka9g3Cm6.js","assets/chrome-store-DOASRzGs.js","assets/clock-B1Wh7uwC.js","assets/close-Bf1kfIEm.js","assets/compass-BNoEWA4P.js","assets/coinPlaceholder-9vMcvGOx.js","assets/copy-nRYwc7Fd.js","assets/cursor-DNgNU5g_.js","assets/cursor-transparent-BjJpdM7K.js","assets/desktop-C9UTmYVU.js","assets/disconnect-BxFYXvEL.js","assets/discord-CPtsV2MW.js","assets/etherscan-B2qgBOrx.js","assets/extension-D-068koU.js","assets/external-link-B07cndH6.js","assets/facebook-DeckNMsP.js","assets/farcaster-C9IkoArR.js","assets/filters-C-4gICs4.js","assets/github-C79GxuqQ.js","assets/google-DeB6ib-m.js","assets/help-circle-0Rz7XZ7f.js","assets/image-HhoXTDX6.js","assets/id-BHcw5yf4.js","assets/info-circle-COWIYv2l.js","assets/lightbulb-CjRCkO6O.js","assets/mail-D7coD8o_.js","assets/mobile-3Krzacvp.js","assets/more-DGXZHGlR.js","assets/network-placeholder-E-UjXM4z.js","assets/nftPlaceholder-CjHKbcZ4.js","assets/off-yFnShhD4.js","assets/play-store-tvJjzaSb.js","assets/plus-DA4pqP2R.js","assets/qr-code-BC_08Sos.js","assets/recycle-horizontal-DLiPzQIQ.js","assets/refresh-DQ7TTnTe.js","assets/search-CSgRmoBq.js","assets/send-Dqw_tWKd.js","assets/swapHorizontal-DP2tiBl6.js","assets/swapHorizontalMedium-D_OW6wbc.js","assets/swapHorizontalBold-ub_CisFk.js","assets/swapHorizontalRoundedBold-5Y1wl0rz.js","assets/swapVertical-BXtoGSgK.js","assets/telegram-DRrPPrlc.js","assets/three-dots-wbEop_LN.js","assets/twitch-DY-zpdKt.js","assets/x-Pfa4sQvV.js","assets/twitterIcon-DTouZ5iL.js","assets/verify-BkwPA2pZ.js","assets/verify-filled-Dn8Tpdxd.js","assets/wallet-DHIi6hLs.js","assets/walletconnect-CsuS1Jxc.js","assets/wallet-placeholder-ZNRmXa0_.js","assets/warning-circle-pbE6L1a0.js","assets/info-CSLZ5wvI.js","assets/exclamation-triangle-BvTCgnwY.js","assets/reown-logo-CtO9kn0h.js"])))=>i.map(i=>d[i]); +import{U as k,V as B,X as T,i as P,b as R,D as H,r as L,x as S,_ as r,L as M}from"./index-DVkBgnkX.js";const d={getSpacingStyles(t,e){if(Array.isArray(t))return t[e]?`var(--wui-spacing-${t[e]})`:void 0;if(typeof t=="string")return`var(--wui-spacing-${t})`},getFormattedDate(t){return new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric"}).format(t)},getHostName(t){try{return new URL(t).hostname}catch{return""}},getTruncateString({string:t,charsStart:e,charsEnd:i,truncate:n}){return t.length<=e+i?t:n==="end"?`${t.substring(0,e)}...`:n==="start"?`...${t.substring(t.length-i)}`:`${t.substring(0,Math.floor(e))}...${t.substring(t.length-Math.floor(i))}`},generateAvatarColors(t){const i=t.toLowerCase().replace(/^0x/iu,"").replace(/[^a-f0-9]/gu,"").substring(0,6).padEnd(6,"0"),n=this.hexToRgb(i),o=getComputedStyle(document.documentElement).getPropertyValue("--w3m-border-radius-master"),s=100-3*Number(o==null?void 0:o.replace("px","")),c=`${s}% ${s}% at 65% 40%`,u=[];for(let h=0;h<5;h+=1){const g=this.tintColor(n,.15*h);u.push(`rgb(${g[0]}, ${g[1]}, ${g[2]})`)}return` + --local-color-1: ${u[0]}; + --local-color-2: ${u[1]}; + --local-color-3: ${u[2]}; + --local-color-4: ${u[3]}; + --local-color-5: ${u[4]}; + --local-radial-circle: ${c} + `},hexToRgb(t){const e=parseInt(t,16),i=e>>16&255,n=e>>8&255,o=e&255;return[i,n,o]},tintColor(t,e){const[i,n,o]=t,a=Math.round(i+(255-i)*e),s=Math.round(n+(255-n)*e),c=Math.round(o+(255-o)*e);return[a,s,c]},isNumber(t){return{number:/^[0-9]+$/u}.number.test(t)},getColorTheme(t){var e;return t||(typeof window<"u"&&window.matchMedia?(e=window.matchMedia("(prefers-color-scheme: dark)"))!=null&&e.matches?"dark":"light":"dark")},splitBalance(t){const e=t.split(".");return e.length===2?[e[0],e[1]]:["0","00"]},roundNumber(t,e,i){return t.toString().length>=e?Number(t).toFixed(i):t},formatNumberToLocalString(t,e=2){return t===void 0?"0.00":typeof t=="number"?t.toLocaleString("en-US",{maximumFractionDigits:e,minimumFractionDigits:e}):parseFloat(t).toLocaleString("en-US",{maximumFractionDigits:e,minimumFractionDigits:e})}};function j(t,e){const{kind:i,elements:n}=e;return{kind:i,elements:n,finisher(o){customElements.get(t)||customElements.define(t,o)}}}function U(t,e){return customElements.get(t)||customElements.define(t,e),e}function I(t){return function(i){return typeof i=="function"?U(t,i):j(t,i)}}/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const F={attribute:!0,type:String,converter:B,reflect:!1,hasChanged:k},N=(t=F,e,i)=>{const{kind:n,metadata:o}=i;let a=globalThis.litPropertyMetadata.get(o);if(a===void 0&&globalThis.litPropertyMetadata.set(o,a=new Map),a.set(i.name,t),n==="accessor"){const{name:s}=i;return{set(c){const u=e.get.call(this);e.set.call(this,c),this.requestUpdate(s,u,t)},init(c){return c!==void 0&&this.P(s,void 0,t),c}}}if(n==="setter"){const{name:s}=i;return function(c){const u=this[s];e.call(this,c),this.requestUpdate(s,u,t)}}throw Error("Unsupported decorator location: "+n)};function l(t){return(e,i)=>typeof i=="object"?N(t,e,i):((n,o,a)=>{const s=o.hasOwnProperty(a);return o.constructor.createProperty(a,s?{...n,wrapped:!0}:n),s?Object.getOwnPropertyDescriptor(o,a):void 0})(t,e,i)}/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */function ct(t){return l({...t,state:!0,attribute:!1})}/** + * @license + * Copyright 2020 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const W=t=>t===null||typeof t!="object"&&typeof t!="function",q=t=>t.strings===void 0;/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const V={ATTRIBUTE:1,CHILD:2},C=t=>(...e)=>({_$litDirective$:t,values:e});let x=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,i,n){this._$Ct=e,this._$AM=i,this._$Ci=n}_$AS(e,i){return this.update(e,i)}update(e,i){return this.render(...i)}};/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const f=(t,e)=>{var n;const i=t._$AN;if(i===void 0)return!1;for(const o of i)(n=o._$AO)==null||n.call(o,e,!1),f(o,e);return!0},E=t=>{let e,i;do{if((e=t._$AM)===void 0)break;i=e._$AN,i.delete(t),t=e}while((i==null?void 0:i.size)===0)},z=t=>{for(let e;e=t._$AM;t=e){let i=e._$AN;if(i===void 0)e._$AN=i=new Set;else if(i.has(t))break;i.add(t),K(e)}};function G(t){this._$AN!==void 0?(E(this),this._$AM=t,z(this)):this._$AM=t}function X(t,e=!1,i=0){const n=this._$AH,o=this._$AN;if(o!==void 0&&o.size!==0)if(e)if(Array.isArray(n))for(let a=i;a{t.type==V.CHILD&&(t._$AP??(t._$AP=X),t._$AQ??(t._$AQ=G))};class Y extends x{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,i,n){super._$AT(e,i,n),z(this),this.isConnected=e._$AU}_$AO(e,i=!0){var n,o;e!==this.isConnected&&(this.isConnected=e,e?(n=this.reconnected)==null||n.call(this):(o=this.disconnected)==null||o.call(this)),i&&(f(this,e),E(this))}setValue(e){if(q(this._$Ct))this._$Ct._$AI(e,this);else{const i=[...this._$Ct._$AH];i[this._$Ci]=e,this._$Ct._$AI(i,this,0)}}disconnected(){}reconnected(){}}/** + * @license + * Copyright 2021 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */class Z{constructor(e){this.Y=e}disconnect(){this.Y=void 0}reconnect(e){this.Y=e}deref(){return this.Y}}class Q{constructor(){this.Z=void 0,this.q=void 0}get(){return this.Z}pause(){this.Z??(this.Z=new Promise(e=>this.q=e))}resume(){var e;(e=this.q)==null||e.call(this),this.Z=this.q=void 0}}/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const D=t=>!W(t)&&typeof t.then=="function",b=1073741823;class J extends Y{constructor(){super(...arguments),this._$Cwt=b,this._$Cbt=[],this._$CK=new Z(this),this._$CX=new Q}render(...e){return e.find(i=>!D(i))??T}update(e,i){const n=this._$Cbt;let o=n.length;this._$Cbt=i;const a=this._$CK,s=this._$CX;this.isConnected||this.disconnected();for(let c=0;cthis._$Cwt);c++){const u=i[c];if(!D(u))return this._$Cwt=c,u;c{for(;s.get();)await s.get();const g=a.deref();if(g!==void 0){const $=g._$Cbt.indexOf(u);$>-1&&$=0;c--)(s=t[c])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};const O={add:async()=>(await r(async()=>{const{addSvg:t}=await import("./add-CtW7uzyn.js");return{addSvg:t}},__vite__mapDeps([0,1,2]))).addSvg,allWallets:async()=>(await r(async()=>{const{allWalletsSvg:t}=await import("./all-wallets-uVmi2mcT.js");return{allWalletsSvg:t}},__vite__mapDeps([3,1,2]))).allWalletsSvg,arrowBottomCircle:async()=>(await r(async()=>{const{arrowBottomCircleSvg:t}=await import("./arrow-bottom-circle-XqzbGM4-.js");return{arrowBottomCircleSvg:t}},__vite__mapDeps([4,1,2]))).arrowBottomCircleSvg,appStore:async()=>(await r(async()=>{const{appStoreSvg:t}=await import("./app-store-BFyPJxxC.js");return{appStoreSvg:t}},__vite__mapDeps([5,1,2]))).appStoreSvg,apple:async()=>(await r(async()=>{const{appleSvg:t}=await import("./apple-CsMMFDsS.js");return{appleSvg:t}},__vite__mapDeps([6,1,2]))).appleSvg,arrowBottom:async()=>(await r(async()=>{const{arrowBottomSvg:t}=await import("./arrow-bottom-D6KxLury.js");return{arrowBottomSvg:t}},__vite__mapDeps([7,1,2]))).arrowBottomSvg,arrowLeft:async()=>(await r(async()=>{const{arrowLeftSvg:t}=await import("./arrow-left-FDMecMQy.js");return{arrowLeftSvg:t}},__vite__mapDeps([8,1,2]))).arrowLeftSvg,arrowRight:async()=>(await r(async()=>{const{arrowRightSvg:t}=await import("./arrow-right-DX9Raeab.js");return{arrowRightSvg:t}},__vite__mapDeps([9,1,2]))).arrowRightSvg,arrowTop:async()=>(await r(async()=>{const{arrowTopSvg:t}=await import("./arrow-top-D7BEQRhs.js");return{arrowTopSvg:t}},__vite__mapDeps([10,1,2]))).arrowTopSvg,bank:async()=>(await r(async()=>{const{bankSvg:t}=await import("./bank-BQtytHN2.js");return{bankSvg:t}},__vite__mapDeps([11,1,2]))).bankSvg,browser:async()=>(await r(async()=>{const{browserSvg:t}=await import("./browser-kD_RfWKH.js");return{browserSvg:t}},__vite__mapDeps([12,1,2]))).browserSvg,card:async()=>(await r(async()=>{const{cardSvg:t}=await import("./card-C2Vx-y4J.js");return{cardSvg:t}},__vite__mapDeps([13,1,2]))).cardSvg,checkmark:async()=>(await r(async()=>{const{checkmarkSvg:t}=await import("./checkmark-DOxAmxwx.js");return{checkmarkSvg:t}},__vite__mapDeps([14,1,2]))).checkmarkSvg,checkmarkBold:async()=>(await r(async()=>{const{checkmarkBoldSvg:t}=await import("./checkmark-bold-D7LZzOJb.js");return{checkmarkBoldSvg:t}},__vite__mapDeps([15,1,2]))).checkmarkBoldSvg,chevronBottom:async()=>(await r(async()=>{const{chevronBottomSvg:t}=await import("./chevron-bottom-DsOyyH4p.js");return{chevronBottomSvg:t}},__vite__mapDeps([16,1,2]))).chevronBottomSvg,chevronLeft:async()=>(await r(async()=>{const{chevronLeftSvg:t}=await import("./chevron-left-DzSVlZvv.js");return{chevronLeftSvg:t}},__vite__mapDeps([17,1,2]))).chevronLeftSvg,chevronRight:async()=>(await r(async()=>{const{chevronRightSvg:t}=await import("./chevron-right-DQzJJ18d.js");return{chevronRightSvg:t}},__vite__mapDeps([18,1,2]))).chevronRightSvg,chevronTop:async()=>(await r(async()=>{const{chevronTopSvg:t}=await import("./chevron-top-ka9g3Cm6.js");return{chevronTopSvg:t}},__vite__mapDeps([19,1,2]))).chevronTopSvg,chromeStore:async()=>(await r(async()=>{const{chromeStoreSvg:t}=await import("./chrome-store-DOASRzGs.js");return{chromeStoreSvg:t}},__vite__mapDeps([20,1,2]))).chromeStoreSvg,clock:async()=>(await r(async()=>{const{clockSvg:t}=await import("./clock-B1Wh7uwC.js");return{clockSvg:t}},__vite__mapDeps([21,1,2]))).clockSvg,close:async()=>(await r(async()=>{const{closeSvg:t}=await import("./close-Bf1kfIEm.js");return{closeSvg:t}},__vite__mapDeps([22,1,2]))).closeSvg,compass:async()=>(await r(async()=>{const{compassSvg:t}=await import("./compass-BNoEWA4P.js");return{compassSvg:t}},__vite__mapDeps([23,1,2]))).compassSvg,coinPlaceholder:async()=>(await r(async()=>{const{coinPlaceholderSvg:t}=await import("./coinPlaceholder-9vMcvGOx.js");return{coinPlaceholderSvg:t}},__vite__mapDeps([24,1,2]))).coinPlaceholderSvg,copy:async()=>(await r(async()=>{const{copySvg:t}=await import("./copy-nRYwc7Fd.js");return{copySvg:t}},__vite__mapDeps([25,1,2]))).copySvg,cursor:async()=>(await r(async()=>{const{cursorSvg:t}=await import("./cursor-DNgNU5g_.js");return{cursorSvg:t}},__vite__mapDeps([26,1,2]))).cursorSvg,cursorTransparent:async()=>(await r(async()=>{const{cursorTransparentSvg:t}=await import("./cursor-transparent-BjJpdM7K.js");return{cursorTransparentSvg:t}},__vite__mapDeps([27,1,2]))).cursorTransparentSvg,desktop:async()=>(await r(async()=>{const{desktopSvg:t}=await import("./desktop-C9UTmYVU.js");return{desktopSvg:t}},__vite__mapDeps([28,1,2]))).desktopSvg,disconnect:async()=>(await r(async()=>{const{disconnectSvg:t}=await import("./disconnect-BxFYXvEL.js");return{disconnectSvg:t}},__vite__mapDeps([29,1,2]))).disconnectSvg,discord:async()=>(await r(async()=>{const{discordSvg:t}=await import("./discord-CPtsV2MW.js");return{discordSvg:t}},__vite__mapDeps([30,1,2]))).discordSvg,etherscan:async()=>(await r(async()=>{const{etherscanSvg:t}=await import("./etherscan-B2qgBOrx.js");return{etherscanSvg:t}},__vite__mapDeps([31,1,2]))).etherscanSvg,extension:async()=>(await r(async()=>{const{extensionSvg:t}=await import("./extension-D-068koU.js");return{extensionSvg:t}},__vite__mapDeps([32,1,2]))).extensionSvg,externalLink:async()=>(await r(async()=>{const{externalLinkSvg:t}=await import("./external-link-B07cndH6.js");return{externalLinkSvg:t}},__vite__mapDeps([33,1,2]))).externalLinkSvg,facebook:async()=>(await r(async()=>{const{facebookSvg:t}=await import("./facebook-DeckNMsP.js");return{facebookSvg:t}},__vite__mapDeps([34,1,2]))).facebookSvg,farcaster:async()=>(await r(async()=>{const{farcasterSvg:t}=await import("./farcaster-C9IkoArR.js");return{farcasterSvg:t}},__vite__mapDeps([35,1,2]))).farcasterSvg,filters:async()=>(await r(async()=>{const{filtersSvg:t}=await import("./filters-C-4gICs4.js");return{filtersSvg:t}},__vite__mapDeps([36,1,2]))).filtersSvg,github:async()=>(await r(async()=>{const{githubSvg:t}=await import("./github-C79GxuqQ.js");return{githubSvg:t}},__vite__mapDeps([37,1,2]))).githubSvg,google:async()=>(await r(async()=>{const{googleSvg:t}=await import("./google-DeB6ib-m.js");return{googleSvg:t}},__vite__mapDeps([38,1,2]))).googleSvg,helpCircle:async()=>(await r(async()=>{const{helpCircleSvg:t}=await import("./help-circle-0Rz7XZ7f.js");return{helpCircleSvg:t}},__vite__mapDeps([39,1,2]))).helpCircleSvg,image:async()=>(await r(async()=>{const{imageSvg:t}=await import("./image-HhoXTDX6.js");return{imageSvg:t}},__vite__mapDeps([40,1,2]))).imageSvg,id:async()=>(await r(async()=>{const{idSvg:t}=await import("./id-BHcw5yf4.js");return{idSvg:t}},__vite__mapDeps([41,1,2]))).idSvg,infoCircle:async()=>(await r(async()=>{const{infoCircleSvg:t}=await import("./info-circle-COWIYv2l.js");return{infoCircleSvg:t}},__vite__mapDeps([42,1,2]))).infoCircleSvg,lightbulb:async()=>(await r(async()=>{const{lightbulbSvg:t}=await import("./lightbulb-CjRCkO6O.js");return{lightbulbSvg:t}},__vite__mapDeps([43,1,2]))).lightbulbSvg,mail:async()=>(await r(async()=>{const{mailSvg:t}=await import("./mail-D7coD8o_.js");return{mailSvg:t}},__vite__mapDeps([44,1,2]))).mailSvg,mobile:async()=>(await r(async()=>{const{mobileSvg:t}=await import("./mobile-3Krzacvp.js");return{mobileSvg:t}},__vite__mapDeps([45,1,2]))).mobileSvg,more:async()=>(await r(async()=>{const{moreSvg:t}=await import("./more-DGXZHGlR.js");return{moreSvg:t}},__vite__mapDeps([46,1,2]))).moreSvg,networkPlaceholder:async()=>(await r(async()=>{const{networkPlaceholderSvg:t}=await import("./network-placeholder-E-UjXM4z.js");return{networkPlaceholderSvg:t}},__vite__mapDeps([47,1,2]))).networkPlaceholderSvg,nftPlaceholder:async()=>(await r(async()=>{const{nftPlaceholderSvg:t}=await import("./nftPlaceholder-CjHKbcZ4.js");return{nftPlaceholderSvg:t}},__vite__mapDeps([48,1,2]))).nftPlaceholderSvg,off:async()=>(await r(async()=>{const{offSvg:t}=await import("./off-yFnShhD4.js");return{offSvg:t}},__vite__mapDeps([49,1,2]))).offSvg,playStore:async()=>(await r(async()=>{const{playStoreSvg:t}=await import("./play-store-tvJjzaSb.js");return{playStoreSvg:t}},__vite__mapDeps([50,1,2]))).playStoreSvg,plus:async()=>(await r(async()=>{const{plusSvg:t}=await import("./plus-DA4pqP2R.js");return{plusSvg:t}},__vite__mapDeps([51,1,2]))).plusSvg,qrCode:async()=>(await r(async()=>{const{qrCodeIcon:t}=await import("./qr-code-BC_08Sos.js");return{qrCodeIcon:t}},__vite__mapDeps([52,1,2]))).qrCodeIcon,recycleHorizontal:async()=>(await r(async()=>{const{recycleHorizontalSvg:t}=await import("./recycle-horizontal-DLiPzQIQ.js");return{recycleHorizontalSvg:t}},__vite__mapDeps([53,1,2]))).recycleHorizontalSvg,refresh:async()=>(await r(async()=>{const{refreshSvg:t}=await import("./refresh-DQ7TTnTe.js");return{refreshSvg:t}},__vite__mapDeps([54,1,2]))).refreshSvg,search:async()=>(await r(async()=>{const{searchSvg:t}=await import("./search-CSgRmoBq.js");return{searchSvg:t}},__vite__mapDeps([55,1,2]))).searchSvg,send:async()=>(await r(async()=>{const{sendSvg:t}=await import("./send-Dqw_tWKd.js");return{sendSvg:t}},__vite__mapDeps([56,1,2]))).sendSvg,swapHorizontal:async()=>(await r(async()=>{const{swapHorizontalSvg:t}=await import("./swapHorizontal-DP2tiBl6.js");return{swapHorizontalSvg:t}},__vite__mapDeps([57,1,2]))).swapHorizontalSvg,swapHorizontalMedium:async()=>(await r(async()=>{const{swapHorizontalMediumSvg:t}=await import("./swapHorizontalMedium-D_OW6wbc.js");return{swapHorizontalMediumSvg:t}},__vite__mapDeps([58,1,2]))).swapHorizontalMediumSvg,swapHorizontalBold:async()=>(await r(async()=>{const{swapHorizontalBoldSvg:t}=await import("./swapHorizontalBold-ub_CisFk.js");return{swapHorizontalBoldSvg:t}},__vite__mapDeps([59,1,2]))).swapHorizontalBoldSvg,swapHorizontalRoundedBold:async()=>(await r(async()=>{const{swapHorizontalRoundedBoldSvg:t}=await import("./swapHorizontalRoundedBold-5Y1wl0rz.js");return{swapHorizontalRoundedBoldSvg:t}},__vite__mapDeps([60,1,2]))).swapHorizontalRoundedBoldSvg,swapVertical:async()=>(await r(async()=>{const{swapVerticalSvg:t}=await import("./swapVertical-BXtoGSgK.js");return{swapVerticalSvg:t}},__vite__mapDeps([61,1,2]))).swapVerticalSvg,telegram:async()=>(await r(async()=>{const{telegramSvg:t}=await import("./telegram-DRrPPrlc.js");return{telegramSvg:t}},__vite__mapDeps([62,1,2]))).telegramSvg,threeDots:async()=>(await r(async()=>{const{threeDotsSvg:t}=await import("./three-dots-wbEop_LN.js");return{threeDotsSvg:t}},__vite__mapDeps([63,1,2]))).threeDotsSvg,twitch:async()=>(await r(async()=>{const{twitchSvg:t}=await import("./twitch-DY-zpdKt.js");return{twitchSvg:t}},__vite__mapDeps([64,1,2]))).twitchSvg,twitter:async()=>(await r(async()=>{const{xSvg:t}=await import("./x-Pfa4sQvV.js");return{xSvg:t}},__vite__mapDeps([65,1,2]))).xSvg,twitterIcon:async()=>(await r(async()=>{const{twitterIconSvg:t}=await import("./twitterIcon-DTouZ5iL.js");return{twitterIconSvg:t}},__vite__mapDeps([66,1,2]))).twitterIconSvg,verify:async()=>(await r(async()=>{const{verifySvg:t}=await import("./verify-BkwPA2pZ.js");return{verifySvg:t}},__vite__mapDeps([67,1,2]))).verifySvg,verifyFilled:async()=>(await r(async()=>{const{verifyFilledSvg:t}=await import("./verify-filled-Dn8Tpdxd.js");return{verifyFilledSvg:t}},__vite__mapDeps([68,1,2]))).verifyFilledSvg,wallet:async()=>(await r(async()=>{const{walletSvg:t}=await import("./wallet-DHIi6hLs.js");return{walletSvg:t}},__vite__mapDeps([69,1,2]))).walletSvg,walletConnect:async()=>(await r(async()=>{const{walletConnectSvg:t}=await import("./walletconnect-CsuS1Jxc.js");return{walletConnectSvg:t}},__vite__mapDeps([70,1,2]))).walletConnectSvg,walletConnectLightBrown:async()=>(await r(async()=>{const{walletConnectLightBrownSvg:t}=await import("./walletconnect-CsuS1Jxc.js");return{walletConnectLightBrownSvg:t}},__vite__mapDeps([70,1,2]))).walletConnectLightBrownSvg,walletConnectBrown:async()=>(await r(async()=>{const{walletConnectBrownSvg:t}=await import("./walletconnect-CsuS1Jxc.js");return{walletConnectBrownSvg:t}},__vite__mapDeps([70,1,2]))).walletConnectBrownSvg,walletPlaceholder:async()=>(await r(async()=>{const{walletPlaceholderSvg:t}=await import("./wallet-placeholder-ZNRmXa0_.js");return{walletPlaceholderSvg:t}},__vite__mapDeps([71,1,2]))).walletPlaceholderSvg,warningCircle:async()=>(await r(async()=>{const{warningCircleSvg:t}=await import("./warning-circle-pbE6L1a0.js");return{warningCircleSvg:t}},__vite__mapDeps([72,1,2]))).warningCircleSvg,x:async()=>(await r(async()=>{const{xSvg:t}=await import("./x-Pfa4sQvV.js");return{xSvg:t}},__vite__mapDeps([65,1,2]))).xSvg,info:async()=>(await r(async()=>{const{infoSvg:t}=await import("./info-CSLZ5wvI.js");return{infoSvg:t}},__vite__mapDeps([73,1,2]))).infoSvg,exclamationTriangle:async()=>(await r(async()=>{const{exclamationTriangleSvg:t}=await import("./exclamation-triangle-BvTCgnwY.js");return{exclamationTriangleSvg:t}},__vite__mapDeps([74,1,2]))).exclamationTriangleSvg,reown:async()=>(await r(async()=>{const{reownSvg:t}=await import("./reown-logo-CtO9kn0h.js");return{reownSvg:t}},__vite__mapDeps([75,1,2]))).reownSvg};async function rt(t){if(A.has(t))return A.get(t);const i=(O[t]??O.copy)();return A.set(t,i),i}let v=class extends L{constructor(){super(...arguments),this.size="md",this.name="copy",this.color="fg-300",this.aspectRatio="1 / 1"}render(){return this.style.cssText=` + --local-color: ${`var(--wui-color-${this.color});`} + --local-width: ${`var(--wui-icon-size-${this.size});`} + --local-aspect-ratio: ${this.aspectRatio} + `,S`${tt(rt(this.name),S`
`)}`}};v.styles=[R,H,it];m([l()],v.prototype,"size",void 0);m([l()],v.prototype,"name",void 0);m([l()],v.prototype,"color",void 0);m([l()],v.prototype,"aspectRatio",void 0);v=m([I("wui-icon")],v);/** + * @license + * Copyright 2018 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const at=C(class extends x{constructor(t){var e;if(super(t),t.type!==V.ATTRIBUTE||t.name!=="class"||((e=t.strings)==null?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter(e=>t[e]).join(" ")+" "}update(t,[e]){var n,o;if(this.st===void 0){this.st=new Set,t.strings!==void 0&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter(a=>a!=="")));for(const a in e)e[a]&&!((n=this.nt)!=null&&n.has(a))&&this.st.add(a);return this.render(e)}const i=t.element.classList;for(const a of this.st)a in e||(i.remove(a),this.st.delete(a));for(const a in e){const s=!!e[a];s===this.st.has(a)||(o=this.nt)!=null&&o.has(a)||(s?(i.add(a),this.st.add(a)):(i.remove(a),this.st.delete(a)))}return T}}),nt=P` + :host { + display: inline-flex !important; + } + + slot { + width: 100%; + display: inline-block; + font-style: normal; + font-family: var(--wui-font-family); + font-feature-settings: + 'tnum' on, + 'lnum' on, + 'case' on; + line-height: 130%; + font-weight: var(--wui-font-weight-regular); + overflow: inherit; + text-overflow: inherit; + text-align: var(--local-align); + color: var(--local-color); + } + + .wui-line-clamp-1 { + overflow: hidden; + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 1; + } + + .wui-line-clamp-2 { + overflow: hidden; + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 2; + } + + .wui-font-medium-400 { + font-size: var(--wui-font-size-medium); + font-weight: var(--wui-font-weight-light); + letter-spacing: var(--wui-letter-spacing-medium); + } + + .wui-font-medium-600 { + font-size: var(--wui-font-size-medium); + letter-spacing: var(--wui-letter-spacing-medium); + } + + .wui-font-title-600 { + font-size: var(--wui-font-size-title); + letter-spacing: var(--wui-letter-spacing-title); + } + + .wui-font-title-6-600 { + font-size: var(--wui-font-size-title-6); + letter-spacing: var(--wui-letter-spacing-title-6); + } + + .wui-font-mini-700 { + font-size: var(--wui-font-size-mini); + letter-spacing: var(--wui-letter-spacing-mini); + text-transform: uppercase; + } + + .wui-font-large-500, + .wui-font-large-600, + .wui-font-large-700 { + font-size: var(--wui-font-size-large); + letter-spacing: var(--wui-letter-spacing-large); + } + + .wui-font-2xl-500, + .wui-font-2xl-600, + .wui-font-2xl-700 { + font-size: var(--wui-font-size-2xl); + letter-spacing: var(--wui-letter-spacing-2xl); + } + + .wui-font-paragraph-400, + .wui-font-paragraph-500, + .wui-font-paragraph-600, + .wui-font-paragraph-700 { + font-size: var(--wui-font-size-paragraph); + letter-spacing: var(--wui-letter-spacing-paragraph); + } + + .wui-font-small-400, + .wui-font-small-500, + .wui-font-small-600 { + font-size: var(--wui-font-size-small); + letter-spacing: var(--wui-letter-spacing-small); + } + + .wui-font-tiny-400, + .wui-font-tiny-500, + .wui-font-tiny-600 { + font-size: var(--wui-font-size-tiny); + letter-spacing: var(--wui-letter-spacing-tiny); + } + + .wui-font-micro-700, + .wui-font-micro-600 { + font-size: var(--wui-font-size-micro); + letter-spacing: var(--wui-letter-spacing-micro); + text-transform: uppercase; + } + + .wui-font-tiny-400, + .wui-font-small-400, + .wui-font-medium-400, + .wui-font-paragraph-400 { + font-weight: var(--wui-font-weight-light); + } + + .wui-font-large-700, + .wui-font-paragraph-700, + .wui-font-micro-700, + .wui-font-mini-700 { + font-weight: var(--wui-font-weight-bold); + } + + .wui-font-medium-600, + .wui-font-medium-title-600, + .wui-font-title-6-600, + .wui-font-large-600, + .wui-font-paragraph-600, + .wui-font-small-600, + .wui-font-tiny-600, + .wui-font-micro-600 { + font-weight: var(--wui-font-weight-medium); + } + + :host([disabled]) { + opacity: 0.4; + } +`;var y=function(t,e,i,n){var o=arguments.length,a=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,i,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};let p=class extends L{constructor(){super(...arguments),this.variant="paragraph-500",this.color="fg-300",this.align="left",this.lineClamp=void 0}render(){const e={[`wui-font-${this.variant}`]:!0,[`wui-color-${this.color}`]:!0,[`wui-line-clamp-${this.lineClamp}`]:!!this.lineClamp};return this.style.cssText=` + --local-align: ${this.align}; + --local-color: var(--wui-color-${this.color}); + `,S``}};p.styles=[R,nt];y([l()],p.prototype,"variant",void 0);y([l()],p.prototype,"color",void 0);y([l()],p.prototype,"align",void 0);y([l()],p.prototype,"lineClamp",void 0);p=y([I("wui-text")],p);const ot=P` + :host { + display: flex; + width: inherit; + height: inherit; + } +`;var w=function(t,e,i,n){var o=arguments.length,a=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,i,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};let _=class extends L{render(){return this.style.cssText=` + flex-direction: ${this.flexDirection}; + flex-wrap: ${this.flexWrap}; + flex-basis: ${this.flexBasis}; + flex-grow: ${this.flexGrow}; + flex-shrink: ${this.flexShrink}; + align-items: ${this.alignItems}; + justify-content: ${this.justifyContent}; + column-gap: ${this.columnGap&&`var(--wui-spacing-${this.columnGap})`}; + row-gap: ${this.rowGap&&`var(--wui-spacing-${this.rowGap})`}; + gap: ${this.gap&&`var(--wui-spacing-${this.gap})`}; + padding-top: ${this.padding&&d.getSpacingStyles(this.padding,0)}; + padding-right: ${this.padding&&d.getSpacingStyles(this.padding,1)}; + padding-bottom: ${this.padding&&d.getSpacingStyles(this.padding,2)}; + padding-left: ${this.padding&&d.getSpacingStyles(this.padding,3)}; + margin-top: ${this.margin&&d.getSpacingStyles(this.margin,0)}; + margin-right: ${this.margin&&d.getSpacingStyles(this.margin,1)}; + margin-bottom: ${this.margin&&d.getSpacingStyles(this.margin,2)}; + margin-left: ${this.margin&&d.getSpacingStyles(this.margin,3)}; + `,S``}};_.styles=[R,ot];w([l()],_.prototype,"flexDirection",void 0);w([l()],_.prototype,"flexWrap",void 0);w([l()],_.prototype,"flexBasis",void 0);w([l()],_.prototype,"flexGrow",void 0);w([l()],_.prototype,"flexShrink",void 0);w([l()],_.prototype,"alignItems",void 0);w([l()],_.prototype,"justifyContent",void 0);w([l()],_.prototype,"columnGap",void 0);w([l()],_.prototype,"rowGap",void 0);w([l()],_.prototype,"gap",void 0);w([l()],_.prototype,"padding",void 0);w([l()],_.prototype,"margin",void 0);_=w([I("wui-flex")],_);/** + * @license + * Copyright 2018 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const gt=t=>t??M;export{d as U,C as a,I as c,at as e,Y as f,l as n,gt as o,ct as r}; diff --git a/web3game/.vercel/output/static/assets/image-HhoXTDX6.js b/web3game/.vercel/output/static/assets/image-HhoXTDX6.js new file mode 100644 index 0000000000..f808804238 --- /dev/null +++ b/web3game/.vercel/output/static/assets/image-HhoXTDX6.js @@ -0,0 +1,4 @@ +import{F as C}from"./index-DVkBgnkX.js";const l=C` + + +`;export{l as imageSvg}; diff --git a/web3game/.vercel/output/static/assets/index-B2osUT2V.js b/web3game/.vercel/output/static/assets/index-B2osUT2V.js new file mode 100644 index 0000000000..16890fe338 --- /dev/null +++ b/web3game/.vercel/output/static/assets/index-B2osUT2V.js @@ -0,0 +1,71 @@ +import{i as d,b as f,r as p,x as g}from"./index-DVkBgnkX.js";import{n as c,c as u}from"./if-defined-DVOmkLu5.js";const x=d` + :host { + display: flex; + } + + :host([data-size='sm']) > svg { + width: 12px; + height: 12px; + } + + :host([data-size='md']) > svg { + width: 16px; + height: 16px; + } + + :host([data-size='lg']) > svg { + width: 24px; + height: 24px; + } + + :host([data-size='xl']) > svg { + width: 32px; + height: 32px; + } + + svg { + animation: rotate 2s linear infinite; + } + + circle { + fill: none; + stroke: var(--local-color); + stroke-width: 4px; + stroke-dasharray: 1, 124; + stroke-dashoffset: 0; + stroke-linecap: round; + animation: dash 1.5s ease-in-out infinite; + } + + :host([data-size='md']) > svg > circle { + stroke-width: 6px; + } + + :host([data-size='sm']) > svg > circle { + stroke-width: 8px; + } + + @keyframes rotate { + 100% { + transform: rotate(360deg); + } + } + + @keyframes dash { + 0% { + stroke-dasharray: 1, 124; + stroke-dashoffset: 0; + } + + 50% { + stroke-dasharray: 90, 124; + stroke-dashoffset: -35; + } + + 100% { + stroke-dashoffset: -125; + } + } +`;var l=function(i,t,s,r){var a=arguments.length,e=a<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,s):r,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(i,t,s,r);else for(var h=i.length-1;h>=0;h--)(n=i[h])&&(e=(a<3?n(e):a>3?n(t,s,e):n(t,s))||e);return a>3&&e&&Object.defineProperty(t,s,e),e};let o=class extends p{constructor(){super(...arguments),this.color="accent-100",this.size="lg"}render(){return this.style.cssText=`--local-color: ${this.color==="inherit"?"inherit":`var(--wui-color-${this.color})`}`,this.dataset.size=this.size,g` + + `}};o.styles=[f,x];l([c()],o.prototype,"color",void 0);l([c()],o.prototype,"size",void 0);o=l([u("wui-loading-spinner")],o); diff --git a/web3game/.vercel/output/static/assets/index-B4eb2ffY.js b/web3game/.vercel/output/static/assets/index-B4eb2ffY.js new file mode 100644 index 0000000000..9d0d8f2079 --- /dev/null +++ b/web3game/.vercel/output/static/assets/index-B4eb2ffY.js @@ -0,0 +1,279 @@ +import{i as N,r as k,x as a,b as L,j as A,y as p,d as O,R as Y,O as V,e as z,A as E,W}from"./index-DVkBgnkX.js";import{n as l,c as _,o as S,r as v}from"./if-defined-DVOmkLu5.js";import{T as C,D as F}from"./index-kA5-QyMM.js";import"./index-Cxc8tIRM.js";import"./index-DeEXhxyT.js";import"./index-QpqlfPgl.js";var R;(function(o){o.approve="approved",o.bought="bought",o.borrow="borrowed",o.burn="burnt",o.cancel="canceled",o.claim="claimed",o.deploy="deployed",o.deposit="deposited",o.execute="executed",o.mint="minted",o.receive="received",o.repay="repaid",o.send="sent",o.sell="sold",o.stake="staked",o.trade="swapped",o.unstake="unstaked",o.withdraw="withdrawn"})(R||(R={}));const U=N` + :host > wui-flex { + display: flex; + justify-content: center; + align-items: center; + position: relative; + width: 40px; + height: 40px; + box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005); + background-color: var(--wui-color-gray-glass-005); + } + + :host > wui-flex wui-image { + display: block; + } + + :host > wui-flex, + :host > wui-flex wui-image, + .swap-images-container, + .swap-images-container.nft, + wui-image.nft { + border-top-left-radius: var(--local-left-border-radius); + border-top-right-radius: var(--local-right-border-radius); + border-bottom-left-radius: var(--local-left-border-radius); + border-bottom-right-radius: var(--local-right-border-radius); + } + + wui-icon { + width: 20px; + height: 20px; + } + + wui-icon-box { + position: absolute; + right: 0; + bottom: 0; + transform: translate(20%, 20%); + } + + .swap-images-container { + position: relative; + width: 40px; + height: 40px; + overflow: hidden; + } + + .swap-images-container wui-image:first-child { + position: absolute; + width: 40px; + height: 40px; + top: 0; + left: 0%; + clip-path: inset(0px calc(50% + 2px) 0px 0%); + } + + .swap-images-container wui-image:last-child { + clip-path: inset(0px 0px 0px calc(50% + 2px)); + } +`;var m=function(o,t,e,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,t,e,r);else for(var c=o.length-1;c>=0;c--)(n=o[c])&&(i=(s<3?n(i):s>3?n(t,e,i):n(t,e))||i);return s>3&&i&&Object.defineProperty(t,e,i),i};let f=class extends k{constructor(){super(...arguments),this.images=[],this.secondImage={type:void 0,url:""}}render(){const[t,e]=this.images,r=(t==null?void 0:t.type)==="NFT",s=e!=null&&e.url?e.type==="NFT":r,i=r?"var(--wui-border-radius-xxs)":"var(--wui-border-radius-s)",n=s?"var(--wui-border-radius-xxs)":"var(--wui-border-radius-s)";return this.style.cssText=` + --local-left-border-radius: ${i}; + --local-right-border-radius: ${n}; + `,a` ${this.templateVisual()} ${this.templateIcon()} `}templateVisual(){const[t,e]=this.images,r=t==null?void 0:t.type;return this.images.length===2&&(t!=null&&t.url||e!=null&&e.url)?a`
+ ${t!=null&&t.url?a``:null} + ${e!=null&&e.url?a``:null} +
`:t!=null&&t.url?a``:r==="NFT"?a``:a``}templateIcon(){let t="accent-100",e;return e=this.getIcon(),this.status&&(t=this.getStatusColor()),e?a` + + `:null}getDirectionIcon(){switch(this.direction){case"in":return"arrowBottom";case"out":return"arrowTop";default:return}}getIcon(){return this.onlyDirectionIcon?this.getDirectionIcon():this.type==="trade"?"swapHorizontalBold":this.type==="approve"?"checkmark":this.type==="cancel"?"close":this.getDirectionIcon()}getStatusColor(){switch(this.status){case"confirmed":return"success-100";case"failed":return"error-100";case"pending":return"inverse-100";default:return"accent-100"}}};f.styles=[U];m([l()],f.prototype,"type",void 0);m([l()],f.prototype,"status",void 0);m([l()],f.prototype,"direction",void 0);m([l({type:Boolean})],f.prototype,"onlyDirectionIcon",void 0);m([l({type:Array})],f.prototype,"images",void 0);m([l({type:Object})],f.prototype,"secondImage",void 0);f=m([_("wui-transaction-visual")],f);const G=N` + :host > wui-flex:first-child { + align-items: center; + column-gap: var(--wui-spacing-s); + padding: 6.5px var(--wui-spacing-xs) 6.5px var(--wui-spacing-xs); + width: 100%; + } + + :host > wui-flex:first-child wui-text:nth-child(1) { + text-transform: capitalize; + } + + wui-transaction-visual { + width: 40px; + height: 40px; + } + + wui-flex { + flex: 1; + } + + :host wui-flex wui-flex { + overflow: hidden; + } + + :host .description-container wui-text span { + word-break: break-all; + } + + :host .description-container wui-text { + overflow: hidden; + } + + :host .description-separator-icon { + margin: 0px 6px; + } + + :host wui-text > span { + overflow: hidden; + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 1; + } +`;var w=function(o,t,e,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,t,e,r);else for(var c=o.length-1;c>=0;c--)(n=o[c])&&(i=(s<3?n(i):s>3?n(t,e,i):n(t,e))||i);return s>3&&i&&Object.defineProperty(t,e,i),i};let d=class extends k{constructor(){super(...arguments),this.type="approve",this.onlyDirectionIcon=!1,this.images=[],this.price=[],this.amount=[],this.symbol=[]}render(){return a` + + + + + ${R[this.type]||this.type} + + + ${this.templateDescription()} ${this.templateSecondDescription()} + + + ${this.date} + + `}templateDescription(){var e;const t=(e=this.descriptions)==null?void 0:e[0];return t?a` + + ${t} + + `:null}templateSecondDescription(){var e;const t=(e=this.descriptions)==null?void 0:e[1];return t?a` + + + ${t} + + `:null}};d.styles=[L,G];w([l()],d.prototype,"type",void 0);w([l({type:Array})],d.prototype,"descriptions",void 0);w([l()],d.prototype,"date",void 0);w([l({type:Boolean})],d.prototype,"onlyDirectionIcon",void 0);w([l()],d.prototype,"status",void 0);w([l()],d.prototype,"direction",void 0);w([l({type:Array})],d.prototype,"images",void 0);w([l({type:Array})],d.prototype,"price",void 0);w([l({type:Array})],d.prototype,"amount",void 0);w([l({type:Array})],d.prototype,"symbol",void 0);d=w([_("wui-transaction-list-item")],d);const M=N` + :host { + min-height: 100%; + } + + .group-container[last-group='true'] { + padding-bottom: var(--wui-spacing-m); + } + + .contentContainer { + height: 280px; + } + + .contentContainer > wui-icon-box { + width: 40px; + height: 40px; + border-radius: var(--wui-border-radius-xxs); + } + + .contentContainer > .textContent { + width: 65%; + } + + .emptyContainer { + height: 100%; + } +`;var x=function(o,t,e,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,t,e,r);else for(var c=o.length-1;c>=0;c--)(n=o[c])&&(i=(s<3?n(i):s>3?n(t,e,i):n(t,e))||i);return s>3&&i&&Object.defineProperty(t,e,i),i};const D="last-transaction",K=7;let g=class extends k{constructor(){super(),this.unsubscribe=[],this.paginationObserver=void 0,this.page="activity",this.caipAddress=A.state.activeCaipAddress,this.transactionsByYear=p.state.transactionsByYear,this.loading=p.state.loading,this.empty=p.state.empty,this.next=p.state.next,p.clearCursor(),this.unsubscribe.push(A.subscribeKey("activeCaipAddress",t=>{t&&this.caipAddress!==t&&(p.resetTransactions(),p.fetchTransactions(t)),this.caipAddress=t}),A.subscribeKey("activeCaipNetwork",()=>{this.updateTransactionView()}),p.subscribe(t=>{this.transactionsByYear=t.transactionsByYear,this.loading=t.loading,this.empty=t.empty,this.next=t.next}))}firstUpdated(){this.updateTransactionView(),this.createPaginationObserver()}updated(){this.setPaginationObserver()}disconnectedCallback(){this.unsubscribe.forEach(t=>t())}render(){return a` ${this.empty?null:this.templateTransactionsByYear()} + ${this.loading?this.templateLoading():null} + ${!this.loading&&this.empty?this.templateEmpty():null}`}updateTransactionView(){var r;const t=(r=A.state.activeCaipNetwork)==null?void 0:r.caipNetworkId;p.state.lastNetworkInView!==t&&(p.resetTransactions(),this.caipAddress&&p.fetchTransactions(O.getPlainAddress(this.caipAddress))),p.setLastNetworkInView(t)}templateTransactionsByYear(){return Object.keys(this.transactionsByYear).sort().reverse().map(e=>{const r=parseInt(e,10),s=new Array(12).fill(null).map((i,n)=>{var u;const c=C.getTransactionGroupTitle(r,n),h=(u=this.transactionsByYear[r])==null?void 0:u[n];return{groupTitle:c,transactions:h}}).filter(({transactions:i})=>i).reverse();return s.map(({groupTitle:i,transactions:n},c)=>{const h=c===s.length-1;return n?a` + + + ${i} + + + ${this.templateTransactions(n,h)} + + + `:null})})}templateRenderTransaction(t,e){const{date:r,descriptions:s,direction:i,isAllNFT:n,images:c,status:h,transfers:u,type:y}=this.getTransactionListItemProps(t),b=(u==null?void 0:u.length)>1;return(u==null?void 0:u.length)===2&&!n?a` + + `:b?u.map(($,j)=>{const B=C.getTransferDescription($),T=e&&j===u.length-1;return a` `}):a` + + `}templateTransactions(t,e){return t.map((r,s)=>{const i=e&&s===t.length-1;return a`${this.templateRenderTransaction(r,i)}`})}emptyStateActivity(){return a` + + + No Transactions yet + Start trading on dApps
+ to grow your wallet!
+
+
`}emptyStateAccount(){return a` + + + No activity yet + Your next transactions will appear here + + Trade + `}templateEmpty(){return this.page==="account"?a`${this.emptyStateAccount()}`:a`${this.emptyStateActivity()}`}templateLoading(){return this.page==="activity"?Array(K).fill(a` `).map(t=>t):null}onReceiveClick(){Y.push("WalletReceive")}createPaginationObserver(){const{projectId:t}=V.state;this.paginationObserver=new IntersectionObserver(([e])=>{e!=null&&e.isIntersecting&&!this.loading&&(p.fetchTransactions(O.getPlainAddress(this.caipAddress)),z.sendEvent({type:"track",event:"LOAD_MORE_TRANSACTIONS",properties:{address:O.getPlainAddress(this.caipAddress),projectId:t,cursor:this.next,isSmartAccount:E.state.preferredAccountType===W.ACCOUNT_TYPES.SMART_ACCOUNT}}))},{}),this.setPaginationObserver()}setPaginationObserver(){var e,r,s;(e=this.paginationObserver)==null||e.disconnect();const t=(r=this.shadowRoot)==null?void 0:r.querySelector(`#${D}`);t&&((s=this.paginationObserver)==null||s.observe(t))}getTransactionListItemProps(t){var h,u,y,b,I;const e=F.formatDate((h=t==null?void 0:t.metadata)==null?void 0:h.minedAt),r=C.getTransactionDescriptions(t),s=t==null?void 0:t.transfers,i=(u=t==null?void 0:t.transfers)==null?void 0:u[0],n=!!i&&((y=t==null?void 0:t.transfers)==null?void 0:y.every($=>!!$.nft_info)),c=C.getTransactionImages(s);return{date:e,direction:i==null?void 0:i.direction,descriptions:r,isAllNFT:n,images:c,status:(b=t.metadata)==null?void 0:b.status,transfers:s,type:(I=t.metadata)==null?void 0:I.operationType}}};g.styles=M;x([l()],g.prototype,"page",void 0);x([v()],g.prototype,"caipAddress",void 0);x([v()],g.prototype,"transactionsByYear",void 0);x([v()],g.prototype,"loading",void 0);x([v()],g.prototype,"empty",void 0);x([v()],g.prototype,"next",void 0);g=x([_("w3m-activity-list")],g); diff --git a/web3game/.vercel/output/static/assets/index-BGjtclTS.js b/web3game/.vercel/output/static/assets/index-BGjtclTS.js new file mode 100644 index 0000000000..832c6f010d --- /dev/null +++ b/web3game/.vercel/output/static/assets/index-BGjtclTS.js @@ -0,0 +1,81 @@ +import{i as v,b,f,D as m,r as g,x as h}from"./index-DVkBgnkX.js";import{n as l,c as w}from"./if-defined-DVOmkLu5.js";const x=v` + button { + border-radius: var(--local-border-radius); + color: var(--wui-color-fg-100); + padding: var(--local-padding); + } + + @media (max-width: 700px) { + button { + padding: var(--wui-spacing-s); + } + } + + button > wui-icon { + pointer-events: none; + } + + button:disabled > wui-icon { + color: var(--wui-color-bg-300) !important; + } + + button:disabled { + background-color: transparent; + } +`;var d=function(i,o,r,e){var a=arguments.length,t=a<3?o:e===null?e=Object.getOwnPropertyDescriptor(o,r):e,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(i,o,r,e);else for(var s=i.length-1;s>=0;s--)(n=i[s])&&(t=(a<3?n(t):a>3?n(o,r,t):n(o,r))||t);return a>3&&t&&Object.defineProperty(o,r,t),t};let c=class extends g{constructor(){super(...arguments),this.size="md",this.disabled=!1,this.icon="copy",this.iconColor="inherit"}render(){const o=this.size==="lg"?"--wui-border-radius-xs":"--wui-border-radius-xxs",r=this.size==="lg"?"--wui-spacing-1xs":"--wui-spacing-2xs";return this.style.cssText=` + --local-border-radius: var(${o}); + --local-padding: var(${r}); +`,h` + + `}};c.styles=[b,f,m,x];d([l()],c.prototype,"size",void 0);d([l({type:Boolean})],c.prototype,"disabled",void 0);d([l()],c.prototype,"icon",void 0);d([l()],c.prototype,"iconColor",void 0);c=d([w("wui-icon-link")],c);const y=v` + :host { + display: flex; + justify-content: center; + align-items: center; + height: var(--wui-spacing-m); + padding: 0 var(--wui-spacing-3xs) !important; + border-radius: var(--wui-border-radius-5xs); + transition: + border-radius var(--wui-duration-lg) var(--wui-ease-out-power-1), + background-color var(--wui-duration-lg) var(--wui-ease-out-power-1); + will-change: border-radius, background-color; + } + + :host > wui-text { + transform: translateY(5%); + } + + :host([data-variant='main']) { + background-color: var(--wui-color-accent-glass-015); + color: var(--wui-color-accent-100); + } + + :host([data-variant='shade']) { + background-color: var(--wui-color-gray-glass-010); + color: var(--wui-color-fg-200); + } + + :host([data-variant='success']) { + background-color: var(--wui-icon-box-bg-success-100); + color: var(--wui-color-success-100); + } + + :host([data-variant='error']) { + background-color: var(--wui-icon-box-bg-error-100); + color: var(--wui-color-error-100); + } + + :host([data-size='lg']) { + padding: 11px 5px !important; + } + + :host([data-size='lg']) > wui-text { + transform: translateY(2%); + } +`;var p=function(i,o,r,e){var a=arguments.length,t=a<3?o:e===null?e=Object.getOwnPropertyDescriptor(o,r):e,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(i,o,r,e);else for(var s=i.length-1;s>=0;s--)(n=i[s])&&(t=(a<3?n(t):a>3?n(o,r,t):n(o,r))||t);return a>3&&t&&Object.defineProperty(o,r,t),t};let u=class extends g{constructor(){super(...arguments),this.variant="main",this.size="lg"}render(){this.dataset.variant=this.variant,this.dataset.size=this.size;const o=this.size==="md"?"mini-700":"micro-700";return h` + + + + `}};u.styles=[b,y];p([l()],u.prototype,"variant",void 0);p([l()],u.prototype,"size",void 0);u=p([w("wui-tag")],u); diff --git a/web3game/.vercel/output/static/assets/index-BIRMkK39.js b/web3game/.vercel/output/static/assets/index-BIRMkK39.js new file mode 100644 index 0000000000..42e9d06185 --- /dev/null +++ b/web3game/.vercel/output/static/assets/index-BIRMkK39.js @@ -0,0 +1,35 @@ +import{i as d,b as g,f as w,r as b,x as c}from"./index-DVkBgnkX.js";import{n as p,c as h}from"./if-defined-DVOmkLu5.js";import"./index-QpqlfPgl.js";import"./index-Cxc8tIRM.js";const x=d` + :host { + display: block; + } + + :host > button { + gap: var(--wui-spacing-xxs); + padding: var(--wui-spacing-xs); + padding-right: var(--wui-spacing-1xs); + height: 40px; + border-radius: var(--wui-border-radius-l); + background: var(--wui-color-gray-glass-002); + border-width: 0px; + box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002); + } + + :host > button wui-image { + width: 24px; + height: 24px; + border-radius: var(--wui-border-radius-s); + box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010); + } +`;var l=function(i,e,r,n){var a=arguments.length,t=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(i,e,r,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(t=(a<3?s(t):a>3?s(e,r,t):s(e,r))||t);return a>3&&t&&Object.defineProperty(e,r,t),t};let o=class extends b{constructor(){super(...arguments),this.text=""}render(){return c` + + `}tokenTemplate(){return this.imageSrc?c``:c` + + `}};o.styles=[g,w,x];l([p()],o.prototype,"imageSrc",void 0);l([p()],o.prototype,"text",void 0);o=l([h("wui-token-button")],o); diff --git a/web3game/.vercel/output/static/assets/index-BaPrYmVj.js b/web3game/.vercel/output/static/assets/index-BaPrYmVj.js new file mode 100644 index 0000000000..d19e00cddb --- /dev/null +++ b/web3game/.vercel/output/static/assets/index-BaPrYmVj.js @@ -0,0 +1,130 @@ +import{i as v,b,f as g,r as h,x as l}from"./index-DVkBgnkX.js";import{n as r,c as w}from"./if-defined-DVOmkLu5.js";import"./index-QpqlfPgl.js";const p=v` + button { + border: none; + border-radius: var(--wui-border-radius-3xl); + } + + button[data-variant='main'] { + background-color: var(--wui-color-accent-100); + color: var(--wui-color-inverse-100); + box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010); + } + + button[data-variant='accent'] { + background-color: var(--wui-color-accent-glass-010); + color: var(--wui-color-accent-100); + box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005); + } + + button[data-variant='gray'] { + background-color: transparent; + color: var(--wui-color-fg-200); + box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010); + } + + button[data-variant='shade'] { + background-color: transparent; + color: var(--wui-color-accent-100); + box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010); + } + + button[data-size='sm'] { + height: 32px; + padding: 0 var(--wui-spacing-s); + } + + button[data-size='md'] { + height: 40px; + padding: 0 var(--wui-spacing-l); + } + + button[data-size='sm'] > wui-image { + width: 16px; + height: 16px; + } + + button[data-size='md'] > wui-image { + width: 24px; + height: 24px; + } + + button[data-size='sm'] > wui-icon { + width: 12px; + height: 12px; + } + + button[data-size='md'] > wui-icon { + width: 14px; + height: 14px; + } + + wui-image { + border-radius: var(--wui-border-radius-3xl); + overflow: hidden; + } + + button.disabled > wui-icon, + button.disabled > wui-image { + filter: grayscale(1); + } + + button[data-variant='main'] > wui-image { + box-shadow: inset 0 0 0 1px var(--wui-color-accent-090); + } + + button[data-variant='shade'] > wui-image, + button[data-variant='gray'] > wui-image { + box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010); + } + + @media (hover: hover) and (pointer: fine) { + button[data-variant='main']:focus-visible { + background-color: var(--wui-color-accent-090); + } + + button[data-variant='main']:hover:enabled { + background-color: var(--wui-color-accent-090); + } + + button[data-variant='main']:active:enabled { + background-color: var(--wui-color-accent-080); + } + + button[data-variant='accent']:hover:enabled { + background-color: var(--wui-color-accent-glass-015); + } + + button[data-variant='accent']:active:enabled { + background-color: var(--wui-color-accent-glass-020); + } + + button[data-variant='shade']:focus-visible, + button[data-variant='gray']:focus-visible, + button[data-variant='shade']:hover, + button[data-variant='gray']:hover { + background-color: var(--wui-color-gray-glass-002); + } + + button[data-variant='gray']:active, + button[data-variant='shade']:active { + background-color: var(--wui-color-gray-glass-005); + } + } + + button.disabled { + color: var(--wui-color-gray-glass-020); + background-color: var(--wui-color-gray-glass-002); + box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002); + pointer-events: none; + } +`;var i=function(n,t,e,c){var s=arguments.length,o=s<3?t:c===null?c=Object.getOwnPropertyDescriptor(t,e):c,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,t,e,c);else for(var d=n.length-1;d>=0;d--)(u=n[d])&&(o=(s<3?u(o):s>3?u(t,e,o):u(t,e))||o);return s>3&&o&&Object.defineProperty(t,e,o),o};let a=class extends h{constructor(){super(...arguments),this.variant="accent",this.imageSrc="",this.disabled=!1,this.icon="externalLink",this.size="md",this.text=""}render(){const t=this.size==="sm"?"small-600":"paragraph-600";return l` + + `}};a.styles=[b,g,p];i([r()],a.prototype,"variant",void 0);i([r()],a.prototype,"imageSrc",void 0);i([r({type:Boolean})],a.prototype,"disabled",void 0);i([r()],a.prototype,"icon",void 0);i([r()],a.prototype,"size",void 0);i([r()],a.prototype,"text",void 0);a=i([w("wui-chip-button")],a); diff --git a/web3game/.vercel/output/static/assets/index-BeTGsQ0g.js b/web3game/.vercel/output/static/assets/index-BeTGsQ0g.js new file mode 100644 index 0000000000..99571658e0 --- /dev/null +++ b/web3game/.vercel/output/static/assets/index-BeTGsQ0g.js @@ -0,0 +1,88 @@ +import{K as de,F as x,i as he,b as ge,r as me,x as j}from"./index-DVkBgnkX.js";import{n as z,c as we}from"./if-defined-DVOmkLu5.js";import"./index-QpqlfPgl.js";var K={},tt,Tt;function pe(){return Tt||(Tt=1,tt=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}),tt}var et={},k={},Pt;function $(){if(Pt)return k;Pt=1;let o;const r=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return k.getSymbolSize=function(n){if(!n)throw new Error('"version" cannot be null or undefined');if(n<1||n>40)throw new Error('"version" should be in range from 1 to 40');return n*4+17},k.getSymbolTotalCodewords=function(n){return r[n]},k.getBCHDigit=function(i){let n=0;for(;i!==0;)n++,i>>>=1;return n},k.setToSJISFunction=function(n){if(typeof n!="function")throw new Error('"toSJISFunc" is not a valid function.');o=n},k.isKanjiModeEnabled=function(){return typeof o<"u"},k.toSJIS=function(n){return o(n)},k}var nt={},vt;function bt(){return vt||(vt=1,function(o){o.L={bit:1},o.M={bit:0},o.Q={bit:3},o.H={bit:2};function r(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"l":case"low":return o.L;case"m":case"medium":return o.M;case"q":case"quartile":return o.Q;case"h":case"high":return o.H;default:throw new Error("Unknown EC Level: "+i)}}o.isValid=function(n){return n&&typeof n.bit<"u"&&n.bit>=0&&n.bit<4},o.from=function(n,t){if(o.isValid(n))return n;try{return r(n)}catch{return t}}}(nt)),nt}var rt,Lt;function ye(){if(Lt)return rt;Lt=1;function o(){this.buffer=[],this.length=0}return o.prototype={get:function(r){const i=Math.floor(r/8);return(this.buffer[i]>>>7-r%8&1)===1},put:function(r,i){for(let n=0;n>>i-n-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(r){const i=Math.floor(this.length/8);this.buffer.length<=i&&this.buffer.push(0),r&&(this.buffer[i]|=128>>>this.length%8),this.length++}},rt=o,rt}var ot,Dt;function Ce(){if(Dt)return ot;Dt=1;function o(r){if(!r||r<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=r,this.data=new Uint8Array(r*r),this.reservedBit=new Uint8Array(r*r)}return o.prototype.set=function(r,i,n,t){const e=r*this.size+i;this.data[e]=n,t&&(this.reservedBit[e]=!0)},o.prototype.get=function(r,i){return this.data[r*this.size+i]},o.prototype.xor=function(r,i,n){this.data[r*this.size+i]^=n},o.prototype.isReserved=function(r,i){return this.reservedBit[r*this.size+i]},ot=o,ot}var it={},_t;function Ee(){return _t||(_t=1,function(o){const r=$().getSymbolSize;o.getRowColCoords=function(n){if(n===1)return[];const t=Math.floor(n/7)+2,e=r(n),s=e===145?26:Math.ceil((e-13)/(2*t-2))*2,a=[e-7];for(let u=1;u=0&&t<=7},o.from=function(t){return o.isValid(t)?parseInt(t,10):void 0},o.getPenaltyN1=function(t){const e=t.size;let s=0,a=0,u=0,c=null,m=null;for(let A=0;A=5&&(s+=r.N1+(a-5)),c=h,a=1),h=t.get(C,A),h===m?u++:(u>=5&&(s+=r.N1+(u-5)),m=h,u=1)}a>=5&&(s+=r.N1+(a-5)),u>=5&&(s+=r.N1+(u-5))}return s},o.getPenaltyN2=function(t){const e=t.size;let s=0;for(let a=0;a=10&&(a===1488||a===93)&&s++,u=u<<1&2047|t.get(m,c),m>=10&&(u===1488||u===93)&&s++}return s*r.N3},o.getPenaltyN4=function(t){let e=0;const s=t.data.length;for(let u=0;u=0;){const s=e[0];for(let u=0;u0){const a=new Uint8Array(this.degree);return a.set(e,s),a}return e},ct=r,ct}var lt={},ft={},dt={},Vt;function se(){return Vt||(Vt=1,dt.isValid=function(r){return!isNaN(r)&&r>=1&&r<=40}),dt}var L={},Ot;function ue(){if(Ot)return L;Ot=1;const o="[0-9]+",r="[A-Z $%*+\\-./:]+";let i="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";i=i.replace(/u/g,"\\u");const n="(?:(?![A-Z0-9 $%*+\\-./:]|"+i+`)(?:.|[\r +]))+`;L.KANJI=new RegExp(i,"g"),L.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),L.BYTE=new RegExp(n,"g"),L.NUMERIC=new RegExp(o,"g"),L.ALPHANUMERIC=new RegExp(r,"g");const t=new RegExp("^"+i+"$"),e=new RegExp("^"+o+"$"),s=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return L.testKanji=function(u){return t.test(u)},L.testNumeric=function(u){return e.test(u)},L.testAlphanumeric=function(u){return s.test(u)},L}var Kt;function V(){return Kt||(Kt=1,function(o){const r=se(),i=ue();o.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},o.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},o.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},o.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},o.MIXED={bit:-1},o.getCharCountIndicator=function(e,s){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!r.isValid(s))throw new Error("Invalid version: "+s);return s>=1&&s<10?e.ccBits[0]:s<27?e.ccBits[1]:e.ccBits[2]},o.getBestModeForData=function(e){return i.testNumeric(e)?o.NUMERIC:i.testAlphanumeric(e)?o.ALPHANUMERIC:i.testKanji(e)?o.KANJI:o.BYTE},o.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},o.isValid=function(e){return e&&e.bit&&e.ccBits};function n(t){if(typeof t!="string")throw new Error("Param is not a string");switch(t.toLowerCase()){case"numeric":return o.NUMERIC;case"alphanumeric":return o.ALPHANUMERIC;case"kanji":return o.KANJI;case"byte":return o.BYTE;default:throw new Error("Unknown mode: "+t)}}o.from=function(e,s){if(o.isValid(e))return e;try{return n(e)}catch{return s}}}(ft)),ft}var Ht;function Ne(){return Ht||(Ht=1,function(o){const r=$(),i=ie(),n=bt(),t=V(),e=se(),s=7973,a=r.getBCHDigit(s);function u(C,h,S){for(let w=1;w<=40;w++)if(h<=o.getCapacity(w,S,C))return w}function c(C,h){return t.getCharCountIndicator(C,h)+4}function m(C,h){let S=0;return C.forEach(function(w){const I=c(w.mode,h);S+=I+w.getBitsLength()}),S}function A(C,h){for(let S=1;S<=40;S++)if(m(C,S)<=o.getCapacity(S,h,t.MIXED))return S}o.from=function(h,S){return e.isValid(h)?parseInt(h,10):S},o.getCapacity=function(h,S,w){if(!e.isValid(h))throw new Error("Invalid QR Code version");typeof w>"u"&&(w=t.BYTE);const I=r.getSymbolTotalCodewords(h),d=i.getTotalCodewordsCount(h,S),f=(I-d)*8;if(w===t.MIXED)return f;const g=f-c(w,h);switch(w){case t.NUMERIC:return Math.floor(g/10*3);case t.ALPHANUMERIC:return Math.floor(g/11*2);case t.KANJI:return Math.floor(g/13);case t.BYTE:default:return Math.floor(g/8)}},o.getBestVersionForData=function(h,S){let w;const I=n.from(S,n.M);if(Array.isArray(h)){if(h.length>1)return A(h,I);if(h.length===0)return 1;w=h[0]}else w=h;return u(w.mode,w.getLength(),I)},o.getEncodedBits=function(h){if(!e.isValid(h)||h<7)throw new Error("Invalid QR Code version");let S=h<<12;for(;r.getBCHDigit(S)-a>=0;)S^=s<=0;)u^=r<0&&(e=this.data.substr(t),s=parseInt(e,10),n.put(s,a*3+1))},mt=r,mt}var wt,jt;function Te(){if(jt)return wt;jt=1;const o=V(),r=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function i(n){this.mode=o.ALPHANUMERIC,this.data=n}return i.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(t){let e;for(e=0;e+2<=this.data.length;e+=2){let s=r.indexOf(this.data[e])*45;s+=r.indexOf(this.data[e+1]),t.put(s,11)}this.data.length%2&&t.put(r.indexOf(this.data[e]),6)},wt=i,wt}var pt,Qt;function Pe(){return Qt||(Qt=1,pt=function(r){for(var i=[],n=r.length,t=0;t=55296&&e<=56319&&n>t+1){var s=r.charCodeAt(t+1);s>=56320&&s<=57343&&(e=(e-55296)*1024+s-56320+65536,t+=1)}if(e<128){i.push(e);continue}if(e<2048){i.push(e>>6|192),i.push(e&63|128);continue}if(e<55296||e>=57344&&e<65536){i.push(e>>12|224),i.push(e>>6&63|128),i.push(e&63|128);continue}if(e>=65536&&e<=1114111){i.push(e>>18|240),i.push(e>>12&63|128),i.push(e>>6&63|128),i.push(e&63|128);continue}i.push(239,191,189)}return new Uint8Array(i).buffer}),pt}var yt,xt;function ve(){if(xt)return yt;xt=1;const o=Pe(),r=V();function i(n){this.mode=r.BYTE,typeof n=="string"&&(n=o(n)),this.data=new Uint8Array(n)}return i.getBitsLength=function(t){return t*8},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(n){for(let t=0,e=this.data.length;t=33088&&e<=40956)e-=33088;else if(e>=57408&&e<=60351)e-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+` +Make sure your charset is UTF-8`);e=(e>>>8&255)*192+(e&255),n.put(e,13)}},Ct=i,Ct}var Et={exports:{}},Wt;function De(){return Wt||(Wt=1,function(o){var r={single_source_shortest_paths:function(i,n,t){var e={},s={};s[n]=0;var a=r.PriorityQueue.make();a.push(n,0);for(var u,c,m,A,C,h,S,w,I;!a.empty();){u=a.pop(),c=u.value,A=u.cost,C=i[c]||{};for(m in C)C.hasOwnProperty(m)&&(h=C[m],S=A+h,w=s[m],I=typeof s[m]>"u",(I||w>S)&&(s[m]=S,a.push(m,S),e[m]=c))}if(typeof t<"u"&&typeof s[t]>"u"){var d=["Could not find a path from ",n," to ",t,"."].join("");throw new Error(d)}return e},extract_shortest_path_from_predecessor_list:function(i,n){for(var t=[],e=n;e;)t.push(e),i[e],e=i[e];return t.reverse(),t},find_path:function(i,n,t){var e=r.single_source_shortest_paths(i,n,t);return r.extract_shortest_path_from_predecessor_list(e,t)},PriorityQueue:{make:function(i){var n=r.PriorityQueue,t={},e;i=i||{};for(e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t.queue=[],t.sorter=i.sorter||n.default_sorter,t},default_sorter:function(i,n){return i.cost-n.cost},push:function(i,n){var t={value:i,cost:n};this.queue.push(t),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};o.exports=r}(Et)),Et.exports}var Xt;function _e(){return Xt||(Xt=1,function(o){const r=V(),i=Me(),n=Te(),t=ve(),e=Le(),s=ue(),a=$(),u=De();function c(d){return unescape(encodeURIComponent(d)).length}function m(d,f,g){const l=[];let P;for(;(P=d.exec(g))!==null;)l.push({data:P[0],index:P.index,mode:f,length:P[0].length});return l}function A(d){const f=m(s.NUMERIC,r.NUMERIC,d),g=m(s.ALPHANUMERIC,r.ALPHANUMERIC,d);let l,P;return a.isKanjiModeEnabled()?(l=m(s.BYTE,r.BYTE,d),P=m(s.KANJI,r.KANJI,d)):(l=m(s.BYTE_KANJI,r.BYTE,d),P=[]),f.concat(g,l,P).sort(function(b,R){return b.index-R.index}).map(function(b){return{data:b.data,mode:b.mode,length:b.length}})}function C(d,f){switch(f){case r.NUMERIC:return i.getBitsLength(d);case r.ALPHANUMERIC:return n.getBitsLength(d);case r.KANJI:return e.getBitsLength(d);case r.BYTE:return t.getBitsLength(d)}}function h(d){return d.reduce(function(f,g){const l=f.length-1>=0?f[f.length-1]:null;return l&&l.mode===g.mode?(f[f.length-1].data+=g.data,f):(f.push(g),f)},[])}function S(d){const f=[];for(let g=0;g=0&&B<=6&&(T===0||T===6)||T>=0&&T<=6&&(B===0||B===6)||B>=2&&B<=4&&T>=2&&T<=4?y.set(E+B,N+T,!0,!0):y.set(E+B,N+T,!1,!0))}}function S(y){const b=y.size;for(let R=8;R>B&1)===1,y.set(M,E,N,!0),y.set(E,M,N,!0)}function d(y,b,R){const p=y.size,M=m.getEncodedBits(b,R);let E,N;for(E=0;E<15;E++)N=(M>>E&1)===1,E<6?y.set(E,8,N,!0):E<8?y.set(E+1,8,N,!0):y.set(p-15+E,8,N,!0),E<8?y.set(8,p-E-1,N,!0):E<9?y.set(8,15-E-1+1,N,!0):y.set(8,15-E-1,N,!0);y.set(p-8,8,1,!0)}function f(y,b){const R=y.size;let p=-1,M=R-1,E=7,N=0;for(let B=R-1;B>0;B-=2)for(B===6&&B--;;){for(let T=0;T<2;T++)if(!y.isReserved(M,B-T)){let F=!1;N>>E&1)===1),y.set(M,B-T,F),E--,E===-1&&(N++,E=7)}if(M+=p,M<0||R<=M){M-=p,p=-p;break}}}function g(y,b,R){const p=new i;R.forEach(function(T){p.put(T.mode.bit,4),p.put(T.getLength(),A.getCharCountIndicator(T.mode,y)),T.write(p)});const M=o.getSymbolTotalCodewords(y),E=a.getTotalCodewordsCount(y,b),N=(M-E)*8;for(p.getLengthInBits()+4<=N&&p.put(0,4);p.getLengthInBits()%8!==0;)p.putBit(0);const B=(N-p.getLengthInBits())/8;for(let T=0;T=7&&I(T,b),f(T,N),isNaN(p)&&(p=s.getBestMask(T,d.bind(null,T,R))),s.applyMask(p,T),d(T,R,p),{modules:T,version:b,errorCorrectionLevel:R,maskPattern:p,segments:M}}return et.create=function(b,R){if(typeof b>"u"||b==="")throw new Error("No input text");let p=r.M,M,E;return typeof R<"u"&&(p=r.from(R.errorCorrectionLevel,r.M),M=c.from(R.version),E=s.from(R.maskPattern),R.toSJISFunc&&o.setToSJISFunction(R.toSJISFunc)),P(b,M,p,E)},et}var Bt={},Rt={},te;function ae(){return te||(te=1,function(o){function r(i){if(typeof i=="number"&&(i=i.toString()),typeof i!="string")throw new Error("Color should be defined as hex string");let n=i.slice().replace("#","").split("");if(n.length<3||n.length===5||n.length>8)throw new Error("Invalid hex color: "+i);(n.length===3||n.length===4)&&(n=Array.prototype.concat.apply([],n.map(function(e){return[e,e]}))),n.length===6&&n.push("F","F");const t=parseInt(n.join(""),16);return{r:t>>24&255,g:t>>16&255,b:t>>8&255,a:t&255,hex:"#"+n.slice(0,6).join("")}}o.getOptions=function(n){n||(n={}),n.color||(n.color={});const t=typeof n.margin>"u"||n.margin===null||n.margin<0?4:n.margin,e=n.width&&n.width>=21?n.width:void 0,s=n.scale||4;return{width:e,scale:e?4:s,margin:t,color:{dark:r(n.color.dark||"#000000ff"),light:r(n.color.light||"#ffffffff")},type:n.type,rendererOpts:n.rendererOpts||{}}},o.getScale=function(n,t){return t.width&&t.width>=n+t.margin*2?t.width/(n+t.margin*2):t.scale},o.getImageWidth=function(n,t){const e=o.getScale(n,t);return Math.floor((n+t.margin*2)*e)},o.qrToImageData=function(n,t,e){const s=t.modules.size,a=t.modules.data,u=o.getScale(s,e),c=Math.floor((s+e.margin*2)*u),m=e.margin*u,A=[e.color.light,e.color.dark];for(let C=0;C=m&&h>=m&&C"u"&&(!s||!s.getContext)&&(u=s,s=void 0),s||(c=n()),u=r.getOptions(u);const m=r.getImageWidth(e.modules.size,u),A=c.getContext("2d"),C=A.createImageData(m,m);return r.qrToImageData(C.data,e,u),i(A,c,m),A.putImageData(C,0,0),c},o.renderToDataURL=function(e,s,a){let u=a;typeof u>"u"&&(!s||!s.getContext)&&(u=s,s=void 0),u||(u={});const c=o.render(e,s,u),m=u.type||"image/png",A=u.rendererOpts||{};return c.toDataURL(m,A.quality)}}(Bt)),Bt}var At={},ne;function Fe(){if(ne)return At;ne=1;const o=ae();function r(t,e){const s=t.a/255,a=e+'="'+t.hex+'"';return s<1?a+" "+e+'-opacity="'+s.toFixed(2).slice(1)+'"':a}function i(t,e,s){let a=t+e;return typeof s<"u"&&(a+=" "+s),a}function n(t,e,s){let a="",u=0,c=!1,m=0;for(let A=0;A0&&C>0&&t[A-1]||(a+=c?i("M",C+s,.5+h+s):i("m",u,0),u=0,c=!1),C+1':"",h="',S='viewBox="0 0 '+A+" "+A+'"',I=''+C+h+` +`;return typeof a=="function"&&a(null,I),I},At}var re;function ke(){if(re)return K;re=1;const o=pe(),r=qe(),i=Ue(),n=Fe();function t(e,s,a,u,c){const m=[].slice.call(arguments,1),A=m.length,C=typeof m[A-1]=="function";if(!C&&!o())throw new Error("Callback required as last argument");if(C){if(A<2)throw new Error("Too few arguments provided");A===2?(c=a,a=s,s=u=void 0):A===3&&(s.getContext&&typeof c>"u"?(c=u,u=void 0):(c=u,u=a,a=s,s=void 0))}else{if(A<1)throw new Error("Too few arguments provided");return A===1?(a=s,s=u=void 0):A===2&&!s.getContext&&(u=a,a=s,s=void 0),new Promise(function(h,S){try{const w=r.create(a,u);h(e(w,s,u))}catch(w){S(w)}})}try{const h=r.create(a,u);c(null,e(h,s,u))}catch(h){c(h)}}return K.create=r.create,K.toCanvas=t.bind(null,i.render),K.toDataURL=t.bind(null,i.renderToDataURL),K.toString=t.bind(null,function(e,s,a){return n.render(e,a)}),K}var ze=ke();const $e=de(ze),Ve=.1,oe=2.5,q=7;function It(o,r,i){return o===r?!1:(o-r<0?r-o:o-r)<=i+Ve}function Oe(o,r){const i=Array.prototype.slice.call($e.create(o,{errorCorrectionLevel:r}).modules.data,0),n=Math.sqrt(i.length);return i.reduce((t,e,s)=>(s%n===0?t.push([e]):t[t.length-1].push(e))&&t,[])}const Ke={generate({uri:o,size:r,logoSize:i,dotColor:n="#141414"}){const t="transparent",s=[],a=Oe(o,"Q"),u=r/a.length,c=[{x:0,y:0},{x:1,y:0},{x:0,y:1}];c.forEach(({x:w,y:I})=>{const d=(a.length-q)*u*w,f=(a.length-q)*u*I,g=.45;for(let l=0;l + `)}});const m=Math.floor((i+25)/u),A=a.length/2-m/2,C=a.length/2+m/2-1,h=[];a.forEach((w,I)=>{w.forEach((d,f)=>{if(a[I][f]&&!(Ia.length-(q+1)&&fa.length-(q+1))&&!(I>A&&IA&&f{var d;S[w]?(d=S[w])==null||d.push(I):S[w]=[I]}),Object.entries(S).map(([w,I])=>{const d=I.filter(f=>I.every(g=>!It(f,g,u)));return[Number(w),d]}).forEach(([w,I])=>{I.forEach(d=>{s.push(x``)})}),Object.entries(S).filter(([w,I])=>I.length>1).map(([w,I])=>{const d=I.filter(f=>I.some(g=>It(f,g,u)));return[Number(w),d]}).map(([w,I])=>{I.sort((f,g)=>fl.some(P=>It(f,P,u)));g?g.push(f):d.push([f])}return[w,d.map(f=>[f[0],f[f.length-1]])]}).forEach(([w,I])=>{I.forEach(([d,f])=>{s.push(x` + + `)})}),s}},He=he` + :host { + position: relative; + user-select: none; + display: block; + overflow: hidden; + aspect-ratio: 1 / 1; + width: var(--local-size); + } + + :host([data-theme='dark']) { + border-radius: clamp(0px, var(--wui-border-radius-l), 40px); + background-color: var(--wui-color-inverse-100); + padding: var(--wui-spacing-l); + } + + :host([data-theme='light']) { + box-shadow: 0 0 0 1px var(--wui-color-bg-125); + background-color: var(--wui-color-bg-125); + } + + :host([data-clear='true']) > wui-icon { + display: none; + } + + svg:first-child, + wui-image, + wui-icon { + position: absolute; + top: 50%; + left: 50%; + transform: translateY(-50%) translateX(-50%); + } + + wui-image { + width: 25%; + height: 25%; + border-radius: var(--wui-border-radius-xs); + } + + wui-icon { + width: 100%; + height: 100%; + color: var(--local-icon-color) !important; + transform: translateY(-50%) translateX(-50%) scale(0.25); + } +`;var U=function(o,r,i,n){var t=arguments.length,e=t<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,i):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(o,r,i,n);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(e=(t<3?s(e):t>3?s(r,i,e):s(r,i))||e);return t>3&&e&&Object.defineProperty(r,i,e),e};const Je="#3396ff";let v=class extends me{constructor(){super(...arguments),this.uri="",this.size=0,this.theme="dark",this.imageSrc=void 0,this.alt=void 0,this.arenaClear=void 0,this.farcaster=void 0}render(){return this.dataset.theme=this.theme,this.dataset.clear=String(this.arenaClear),this.style.cssText=` + --local-size: ${this.size}px; + --local-icon-color: ${this.color??Je} + `,j`${this.templateVisual()} ${this.templateSvg()}`}templateSvg(){const r=this.theme==="light"?this.size:this.size-32;return x` + + ${Ke.generate({uri:this.uri,size:r,logoSize:this.arenaClear?0:r/4,dotColor:this.color})} + + `}templateVisual(){return this.imageSrc?j``:this.farcaster?j``:j``}};v.styles=[ge,He];U([z()],v.prototype,"uri",void 0);U([z({type:Number})],v.prototype,"size",void 0);U([z()],v.prototype,"theme",void 0);U([z()],v.prototype,"imageSrc",void 0);U([z()],v.prototype,"alt",void 0);U([z()],v.prototype,"color",void 0);U([z({type:Boolean})],v.prototype,"arenaClear",void 0);U([z({type:Boolean})],v.prototype,"farcaster",void 0);v=U([we("wui-qr-code")],v); diff --git a/web3game/.vercel/output/static/assets/index-BfDAOq8h.js b/web3game/.vercel/output/static/assets/index-BfDAOq8h.js new file mode 100644 index 0000000000..4fef432252 --- /dev/null +++ b/web3game/.vercel/output/static/assets/index-BfDAOq8h.js @@ -0,0 +1,202 @@ +import{i as w,b as g,f as h,r as v,x as l}from"./index-DVkBgnkX.js";import{n as a,c as x,e as m,o as c}from"./if-defined-DVOmkLu5.js";import{e as b,n as f}from"./index-Cn1TwpSs.js";const y=w` + :host { + position: relative; + width: 100%; + display: inline-block; + color: var(--wui-color-fg-275); + } + + input { + width: 100%; + border-radius: var(--wui-border-radius-xs); + box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002); + background: var(--wui-color-gray-glass-002); + font-size: var(--wui-font-size-paragraph); + letter-spacing: var(--wui-letter-spacing-paragraph); + color: var(--wui-color-fg-100); + transition: + background-color var(--wui-ease-inout-power-1) var(--wui-duration-md), + border-color var(--wui-ease-inout-power-1) var(--wui-duration-md), + box-shadow var(--wui-ease-inout-power-1) var(--wui-duration-md); + will-change: background-color, border-color, box-shadow; + caret-color: var(--wui-color-accent-100); + } + + input:disabled { + cursor: not-allowed; + border: 1px solid var(--wui-color-gray-glass-010); + } + + input:disabled::placeholder, + input:disabled + wui-icon { + color: var(--wui-color-fg-300); + } + + input::placeholder { + color: var(--wui-color-fg-275); + } + + input:focus:enabled { + background-color: var(--wui-color-gray-glass-005); + -webkit-box-shadow: + inset 0 0 0 1px var(--wui-color-accent-100), + 0px 0px 0px 4px var(--wui-box-shadow-blue); + -moz-box-shadow: + inset 0 0 0 1px var(--wui-color-accent-100), + 0px 0px 0px 4px var(--wui-box-shadow-blue); + box-shadow: + inset 0 0 0 1px var(--wui-color-accent-100), + 0px 0px 0px 4px var(--wui-box-shadow-blue); + } + + input:hover:enabled { + background-color: var(--wui-color-gray-glass-005); + } + + wui-icon { + position: absolute; + top: 50%; + transform: translateY(-50%); + pointer-events: none; + } + + .wui-size-sm { + padding: 9px var(--wui-spacing-m) 10px var(--wui-spacing-s); + } + + wui-icon + .wui-size-sm { + padding: 9px var(--wui-spacing-m) 10px 36px; + } + + wui-icon[data-input='sm'] { + left: var(--wui-spacing-s); + } + + .wui-size-md { + padding: 15px var(--wui-spacing-m) var(--wui-spacing-l) var(--wui-spacing-m); + } + + wui-icon + .wui-size-md, + wui-loading-spinner + .wui-size-md { + padding: 10.5px var(--wui-spacing-3xl) 10.5px var(--wui-spacing-3xl); + } + + wui-icon[data-input='md'] { + left: var(--wui-spacing-l); + } + + .wui-size-lg { + padding: var(--wui-spacing-s) var(--wui-spacing-s) var(--wui-spacing-s) var(--wui-spacing-l); + letter-spacing: var(--wui-letter-spacing-medium-title); + font-size: var(--wui-font-size-medium-title); + font-weight: var(--wui-font-weight-light); + line-height: 130%; + color: var(--wui-color-fg-100); + height: 64px; + } + + .wui-padding-right-xs { + padding-right: var(--wui-spacing-xs); + } + + .wui-padding-right-s { + padding-right: var(--wui-spacing-s); + } + + .wui-padding-right-m { + padding-right: var(--wui-spacing-m); + } + + .wui-padding-right-l { + padding-right: var(--wui-spacing-l); + } + + .wui-padding-right-xl { + padding-right: var(--wui-spacing-xl); + } + + .wui-padding-right-2xl { + padding-right: var(--wui-spacing-2xl); + } + + .wui-padding-right-3xl { + padding-right: var(--wui-spacing-3xl); + } + + .wui-padding-right-4xl { + padding-right: var(--wui-spacing-4xl); + } + + .wui-padding-right-5xl { + padding-right: var(--wui-spacing-5xl); + } + + wui-icon + .wui-size-lg, + wui-loading-spinner + .wui-size-lg { + padding-left: 50px; + } + + wui-icon[data-input='lg'] { + left: var(--wui-spacing-l); + } + + .wui-size-mdl { + padding: 17.25px var(--wui-spacing-m) 17.25px var(--wui-spacing-m); + } + wui-icon + .wui-size-mdl, + wui-loading-spinner + .wui-size-mdl { + padding: 17.25px var(--wui-spacing-3xl) 17.25px 40px; + } + wui-icon[data-input='mdl'] { + left: var(--wui-spacing-m); + } + + input:placeholder-shown ~ ::slotted(wui-input-element), + input:placeholder-shown ~ ::slotted(wui-icon) { + opacity: 0; + pointer-events: none; + } + + input::-webkit-outer-spin-button, + input::-webkit-inner-spin-button { + -webkit-appearance: none; + margin: 0; + } + + input[type='number'] { + -moz-appearance: textfield; + } + + ::slotted(wui-input-element), + ::slotted(wui-icon) { + position: absolute; + top: 50%; + transform: translateY(-50%); + } + + ::slotted(wui-input-element) { + right: var(--wui-spacing-m); + } + + ::slotted(wui-icon) { + right: 0px; + } +`;var e=function(s,t,o,r){var p=arguments.length,n=p<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,o):r,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(s,t,o,r);else for(var d=s.length-1;d>=0;d--)(u=s[d])&&(n=(p<3?u(n):p>3?u(t,o,n):u(t,o))||n);return p>3&&n&&Object.defineProperty(t,o,n),n};let i=class extends v{constructor(){super(...arguments),this.inputElementRef=b(),this.size="md",this.disabled=!1,this.placeholder="",this.type="text",this.value=""}render(){const t=`wui-padding-right-${this.inputRightPadding}`,r={[`wui-size-${this.size}`]:!0,[t]:!!this.inputRightPadding};return l`${this.templateIcon()} + + `}templateIcon(){return this.icon?l``:null}dispatchInputChangeEvent(){var t;this.dispatchEvent(new CustomEvent("inputChange",{detail:(t=this.inputElementRef.value)==null?void 0:t.value,bubbles:!0,composed:!0}))}};i.styles=[g,h,y];e([a()],i.prototype,"size",void 0);e([a()],i.prototype,"icon",void 0);e([a({type:Boolean})],i.prototype,"disabled",void 0);e([a()],i.prototype,"placeholder",void 0);e([a()],i.prototype,"type",void 0);e([a()],i.prototype,"keyHint",void 0);e([a()],i.prototype,"value",void 0);e([a()],i.prototype,"inputRightPadding",void 0);e([a()],i.prototype,"tabIdx",void 0);i=e([x("wui-input-text")],i); diff --git a/web3game/.vercel/output/static/assets/index-BxwsSeIL.js b/web3game/.vercel/output/static/assets/index-BxwsSeIL.js new file mode 100644 index 0000000000..f2d2f281a6 --- /dev/null +++ b/web3game/.vercel/output/static/assets/index-BxwsSeIL.js @@ -0,0 +1,201 @@ +import{i as v,b as g,f as h,r as p,x as u}from"./index-DVkBgnkX.js";import{n as t,c as w,U as m}from"./if-defined-DVOmkLu5.js";import"./index-QpqlfPgl.js";const S={URLS:{FAQ:"https://walletconnect.com/faq"}},f=v` + a { + border: 1px solid var(--wui-color-gray-glass-010); + border-radius: var(--wui-border-radius-3xl); + } + + wui-image { + border-radius: var(--wui-border-radius-3xl); + overflow: hidden; + } + + a.disabled > wui-icon:not(.image-icon), + a.disabled > wui-image { + filter: grayscale(1); + } + + a[data-variant='fill'] { + color: var(--wui-color-inverse-100); + background-color: var(--wui-color-accent-100); + } + + a[data-variant='shade'], + a[data-variant='shadeSmall'] { + background-color: transparent; + background-color: var(--wui-color-gray-glass-010); + color: var(--wui-color-fg-200); + } + + a[data-variant='success'] { + column-gap: var(--wui-spacing-xxs); + border: 1px solid var(--wui-color-success-glass-010); + background-color: var(--wui-color-success-glass-010); + color: var(--wui-color-success-100); + } + + a[data-variant='error'] { + column-gap: var(--wui-spacing-xxs); + border: 1px solid var(--wui-color-error-glass-010); + background-color: var(--wui-color-error-glass-010); + color: var(--wui-color-error-100); + } + + a[data-variant='transparent'] { + column-gap: var(--wui-spacing-xxs); + background-color: transparent; + color: var(--wui-color-fg-150); + } + + a[data-variant='transparent'], + a[data-variant='success'], + a[data-variant='shadeSmall'], + a[data-variant='error'] { + padding: 7px var(--wui-spacing-s) 7px 10px; + } + + a[data-variant='transparent']:has(wui-text:first-child), + a[data-variant='success']:has(wui-text:first-child), + a[data-variant='shadeSmall']:has(wui-text:first-child), + a[data-variant='error']:has(wui-text:first-child) { + padding: 7px var(--wui-spacing-s); + } + + a[data-variant='fill'], + a[data-variant='shade'] { + column-gap: var(--wui-spacing-xs); + padding: var(--wui-spacing-xxs) var(--wui-spacing-m) var(--wui-spacing-xxs) + var(--wui-spacing-xs); + } + + a[data-variant='fill']:has(wui-text:first-child), + a[data-variant='shade']:has(wui-text:first-child) { + padding: 9px var(--wui-spacing-m) 9px var(--wui-spacing-m); + } + + a[data-variant='fill'] > wui-image, + a[data-variant='shade'] > wui-image { + width: 24px; + height: 24px; + } + + a[data-variant='fill'] > wui-image { + box-shadow: inset 0 0 0 1px var(--wui-color-accent-090); + } + + a[data-variant='shade'] > wui-image, + a[data-variant='shadeSmall'] > wui-image { + box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010); + } + + a[data-variant='fill'] > wui-icon:not(.image-icon), + a[data-variant='shade'] > wui-icon:not(.image-icon) { + width: 14px; + height: 14px; + } + + a[data-variant='transparent'] > wui-image, + a[data-variant='success'] > wui-image, + a[data-variant='shadeSmall'] > wui-image, + a[data-variant='error'] > wui-image { + width: 14px; + height: 14px; + } + + a[data-variant='transparent'] > wui-icon:not(.image-icon), + a[data-variant='success'] > wui-icon:not(.image-icon), + a[data-variant='shadeSmall'] > wui-icon:not(.image-icon), + a[data-variant='error'] > wui-icon:not(.image-icon) { + width: 12px; + height: 12px; + } + + a[data-variant='fill']:focus-visible { + background-color: var(--wui-color-accent-090); + } + + a[data-variant='shade']:focus-visible, + a[data-variant='shadeSmall']:focus-visible { + background-color: var(--wui-color-gray-glass-015); + } + + a[data-variant='transparent']:focus-visible { + background-color: var(--wui-color-gray-glass-005); + } + + a[data-variant='success']:focus-visible { + background-color: var(--wui-color-success-glass-015); + } + + a[data-variant='error']:focus-visible { + background-color: var(--wui-color-error-glass-015); + } + + a.disabled { + color: var(--wui-color-gray-glass-015); + background-color: var(--wui-color-gray-glass-015); + pointer-events: none; + } + + @media (hover: hover) and (pointer: fine) { + a[data-variant='fill']:hover { + background-color: var(--wui-color-accent-090); + } + + a[data-variant='shade']:hover, + a[data-variant='shadeSmall']:hover { + background-color: var(--wui-color-gray-glass-015); + } + + a[data-variant='transparent']:hover { + background-color: var(--wui-color-gray-glass-005); + } + + a[data-variant='success']:hover { + background-color: var(--wui-color-success-glass-015); + } + + a[data-variant='error']:hover { + background-color: var(--wui-color-error-glass-015); + } + } + + a[data-variant='fill']:active { + background-color: var(--wui-color-accent-080); + } + + a[data-variant='shade']:active, + a[data-variant='shadeSmall']:active { + background-color: var(--wui-color-gray-glass-020); + } + + a[data-variant='transparent']:active { + background-color: var(--wui-color-gray-glass-010); + } + + a[data-variant='success']:active { + background-color: var(--wui-color-success-glass-020); + } + + a[data-variant='error']:active { + background-color: var(--wui-color-error-glass-020); + } +`;var r=function(s,o,e,n){var c=arguments.length,i=c<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,e):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(s,o,e,n);else for(var d=s.length-1;d>=0;d--)(l=s[d])&&(i=(c<3?l(i):c>3?l(o,e,i):l(o,e))||i);return c>3&&i&&Object.defineProperty(o,e,i),i};let a=class extends p{constructor(){super(...arguments),this.variant="fill",this.imageSrc=void 0,this.imageIcon=void 0,this.imageIconSize="md",this.disabled=!1,this.icon="externalLink",this.href="",this.text=void 0}render(){const e=this.variant==="success"||this.variant==="transparent"||this.variant==="shadeSmall"?"small-600":"paragraph-600";return u` + + ${this.imageTemplate()} + + ${this.title?this.title:m.getHostName(this.href)} + + + + `}imageTemplate(){return this.imageSrc?u``:this.imageIcon?u``:null}};a.styles=[g,h,f];r([t()],a.prototype,"variant",void 0);r([t()],a.prototype,"imageSrc",void 0);r([t()],a.prototype,"imageIcon",void 0);r([t()],a.prototype,"imageIconSize",void 0);r([t({type:Boolean})],a.prototype,"disabled",void 0);r([t()],a.prototype,"icon",void 0);r([t()],a.prototype,"href",void 0);r([t()],a.prototype,"text",void 0);a=r([w("wui-chip")],a);export{S as N}; diff --git a/web3game/.vercel/output/static/assets/index-Bz4Ul6tQ.js b/web3game/.vercel/output/static/assets/index-Bz4Ul6tQ.js new file mode 100644 index 0000000000..b379d27778 --- /dev/null +++ b/web3game/.vercel/output/static/assets/index-Bz4Ul6tQ.js @@ -0,0 +1,72 @@ +import{i as p,r as h,R as l,l as o,x as e}from"./index-DVkBgnkX.js";import{r as u,c as d}from"./if-defined-DVOmkLu5.js";import{T as g}from"./index-swSfGf8i.js";const f=p` + :host { + --prev-height: 0px; + --new-height: 0px; + display: block; + } + + div.w3m-router-container { + transform: translateY(0); + opacity: 1; + } + + div.w3m-router-container[view-direction='prev'] { + animation: + slide-left-out 150ms forwards ease, + slide-left-in 150ms forwards ease; + animation-delay: 0ms, 200ms; + } + + div.w3m-router-container[view-direction='next'] { + animation: + slide-right-out 150ms forwards ease, + slide-right-in 150ms forwards ease; + animation-delay: 0ms, 200ms; + } + + @keyframes slide-left-out { + from { + transform: translateX(0px); + opacity: 1; + } + to { + transform: translateX(10px); + opacity: 0; + } + } + + @keyframes slide-left-in { + from { + transform: translateX(-10px); + opacity: 0; + } + to { + transform: translateX(0); + opacity: 1; + } + } + + @keyframes slide-right-out { + from { + transform: translateX(0px); + opacity: 1; + } + to { + transform: translateX(-10px); + opacity: 0; + } + } + + @keyframes slide-right-in { + from { + transform: translateX(10px); + opacity: 0; + } + to { + transform: translateX(0); + opacity: 1; + } + } +`;var v=function(s,t,i,r){var w=arguments.length,n=w<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(s,t,i,r);else for(var m=s.length-1;m>=0;m--)(c=s[m])&&(n=(w<3?c(n):w>3?c(t,i,n):c(t,i))||n);return w>3&&n&&Object.defineProperty(t,i,n),n};let a=class extends h{constructor(){super(),this.resizeObserver=void 0,this.prevHeight="0px",this.prevHistoryLength=1,this.unsubscribe=[],this.view=l.state.view,this.viewDirection="",this.unsubscribe.push(l.subscribeKey("view",t=>this.onViewChange(t)))}firstUpdated(){var t;this.resizeObserver=new ResizeObserver(([i])=>{const r=`${i==null?void 0:i.contentRect.height}px`;this.prevHeight!=="0px"&&(this.style.setProperty("--prev-height",this.prevHeight),this.style.setProperty("--new-height",r),this.style.animation="w3m-view-height 150ms forwards ease",this.style.height="auto"),setTimeout(()=>{this.prevHeight=r,this.style.animation="unset"},o.ANIMATION_DURATIONS.ModalHeight)}),(t=this.resizeObserver)==null||t.observe(this.getWrapper())}disconnectedCallback(){var t;(t=this.resizeObserver)==null||t.unobserve(this.getWrapper()),this.unsubscribe.forEach(i=>i())}render(){return e`
+ ${this.viewTemplate()} +
`}viewTemplate(){switch(this.view){case"AccountSettings":return e``;case"Account":return e``;case"AllWallets":return e``;case"ApproveTransaction":return e``;case"BuyInProgress":return e``;case"ChooseAccountName":return e``;case"Connect":return e``;case"Create":return e``;case"ConnectingWalletConnect":return e``;case"ConnectingWalletConnectBasic":return e``;case"ConnectingExternal":return e``;case"ConnectingSiwe":return e``;case"ConnectWallets":return e``;case"ConnectSocials":return e``;case"ConnectingSocial":return e``;case"Downloads":return e``;case"EmailVerifyOtp":return e``;case"EmailVerifyDevice":return e``;case"GetWallet":return e``;case"Networks":return e``;case"SwitchNetwork":return e``;case"Profile":return e``;case"SwitchAddress":return e``;case"Transactions":return e``;case"OnRampProviders":return e``;case"OnRampActivity":return e``;case"OnRampTokenSelect":return e``;case"OnRampFiatSelect":return e``;case"UpgradeEmailWallet":return e``;case"UpdateEmailWallet":return e``;case"UpdateEmailPrimaryOtp":return e``;case"UpdateEmailSecondaryOtp":return e``;case"UnsupportedChain":return e``;case"Swap":return e``;case"SwapSelectToken":return e``;case"SwapPreview":return e``;case"WalletSend":return e``;case"WalletSendSelectToken":return e``;case"WalletSendPreview":return e``;case"WhatIsABuy":return e``;case"WalletReceive":return e``;case"WalletCompatibleNetworks":return e``;case"WhatIsAWallet":return e``;case"ConnectingMultiChain":return e``;case"WhatIsANetwork":return e``;case"ConnectingFarcaster":return e``;case"SwitchActiveChain":return e``;case"RegisterAccountName":return e``;case"RegisterAccountNameSuccess":return e``;case"SmartSessionCreated":return e``;case"SmartSessionList":return e``;case"SIWXSignMessage":return e``;default:return e``}}onViewChange(t){g.hide();let i=o.VIEW_DIRECTION.Next;const{history:r}=l.state;r.length{this.view=t},o.ANIMATION_DURATIONS.ViewTransition)}getWrapper(){var t;return(t=this.shadowRoot)==null?void 0:t.querySelector("div")}};a.styles=f;v([u()],a.prototype,"view",void 0);v([u()],a.prototype,"viewDirection",void 0);a=v([d("w3m-router")],a);export{a as W}; diff --git a/web3game/.vercel/output/static/assets/index-C22vu2Z6.js b/web3game/.vercel/output/static/assets/index-C22vu2Z6.js new file mode 100644 index 0000000000..4d050759b9 --- /dev/null +++ b/web3game/.vercel/output/static/assets/index-C22vu2Z6.js @@ -0,0 +1,22 @@ +import{i as c,b as m,r as f,x as d}from"./index-DVkBgnkX.js";import{n as u,c as v,o as b}from"./if-defined-DVOmkLu5.js";import"./index-BfDAOq8h.js";const w=c` + :host { + position: relative; + display: inline-block; + } + + wui-text { + margin: var(--wui-spacing-xxs) var(--wui-spacing-m) var(--wui-spacing-0) var(--wui-spacing-m); + } +`;var o=function(a,i,r,n){var l=arguments.length,e=l<3?i:n===null?n=Object.getOwnPropertyDescriptor(i,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,i,r,n);else for(var p=a.length-1;p>=0;p--)(s=a[p])&&(e=(l<3?s(e):l>3?s(i,r,e):s(i,r))||e);return l>3&&e&&Object.defineProperty(i,r,e),e};let t=class extends f{constructor(){super(...arguments),this.disabled=!1}render(){return d` + + ${this.templateError()} + `}templateError(){return this.errorMessage?d`${this.errorMessage}`:null}};t.styles=[m,w];o([u()],t.prototype,"errorMessage",void 0);o([u({type:Boolean})],t.prototype,"disabled",void 0);o([u()],t.prototype,"value",void 0);o([u()],t.prototype,"tabIdx",void 0);t=o([v("wui-email-input")],t); diff --git a/web3game/.vercel/output/static/assets/index-C5GW1wiz.js b/web3game/.vercel/output/static/assets/index-C5GW1wiz.js new file mode 100644 index 0000000000..dacce33505 --- /dev/null +++ b/web3game/.vercel/output/static/assets/index-C5GW1wiz.js @@ -0,0 +1,160 @@ +import{i as u,b as g,r as d,x as c,O as s,f as $}from"./index-DVkBgnkX.js";import{n as x,c as f,o as k}from"./if-defined-DVOmkLu5.js";import{e as _,n as C}from"./index-Cn1TwpSs.js";const R=u` + label { + display: flex; + align-items: center; + cursor: pointer; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + column-gap: var(--wui-spacing-1xs); + } + + label > input[type='checkbox'] { + height: 0; + width: 0; + opacity: 0; + pointer-events: none; + position: absolute; + } + + label > span { + width: var(--wui-spacing-xl); + height: var(--wui-spacing-xl); + min-width: var(--wui-spacing-xl); + min-height: var(--wui-spacing-xl); + border-radius: var(--wui-border-radius-3xs); + border-width: 1px; + border-style: solid; + border-color: var(--wui-color-gray-glass-010); + display: flex; + align-items: center; + justify-content: center; + transition: background-color var(--wui-ease-out-power-1) var(--wui-duration-lg); + will-change: background-color; + } + + label > span:hover, + label > input[type='checkbox']:focus-visible + span { + background-color: var(--wui-color-gray-glass-010); + } + + label input[type='checkbox']:checked + span { + background-color: var(--wui-color-blue-base-90); + } + + label > span > wui-icon { + opacity: 0; + transition: opacity var(--wui-ease-out-power-1) var(--wui-duration-lg); + will-change: opacity; + } + + label > input[type='checkbox']:checked + span wui-icon { + opacity: 1; + } +`;var v=function(l,e,n,r){var o=arguments.length,t=o<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(l,e,n,r);else for(var a=l.length-1;a>=0;a--)(i=l[a])&&(t=(o<3?i(t):o>3?i(e,n,t):i(e,n))||t);return o>3&&t&&Object.defineProperty(e,n,t),t};let p=class extends d{constructor(){super(...arguments),this.inputElementRef=_(),this.checked=void 0}render(){return c` + + `}dispatchChangeEvent(){var e;this.dispatchEvent(new CustomEvent("checkboxChange",{detail:(e=this.inputElementRef.value)==null?void 0:e.checked,bubbles:!0,composed:!0}))}};p.styles=[g,R];v([x({type:Boolean})],p.prototype,"checked",void 0);p=v([f("wui-checkbox")],p);const j=u` + :host { + display: flex; + align-items: center; + justify-content: center; + } + wui-checkbox { + padding: var(--wui-spacing-s); + } + a { + text-decoration: none; + color: var(--wui-color-fg-150); + font-weight: 500; + } +`;var O=function(l,e,n,r){var o=arguments.length,t=o<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(l,e,n,r);else for(var a=l.length-1;a>=0;a--)(i=l[a])&&(t=(o<3?i(t):o>3?i(e,n,t):i(e,n))||t);return o>3&&t&&Object.defineProperty(e,n,t),t};let w=class extends d{render(){var o;const{termsConditionsUrl:e,privacyPolicyUrl:n}=s.state,r=(o=s.state.features)==null?void 0:o.legalCheckbox;return!e&&!n||!r?null:c` + + + I agree to our ${this.termsTemplate()} ${this.andTemplate()} ${this.privacyTemplate()} + + + `}andTemplate(){const{termsConditionsUrl:e,privacyPolicyUrl:n}=s.state;return e&&n?"and":""}termsTemplate(){const{termsConditionsUrl:e}=s.state;return e?c`terms of service`:null}privacyTemplate(){const{privacyPolicyUrl:e}=s.state;return e?c`privacy policy`:null}};w.styles=[j];w=O([f("w3m-legal-checkbox")],w);const P=u` + .reown-logo { + height: var(--wui-spacing-xxl); + } +`;var T=function(l,e,n,r){var o=arguments.length,t=o<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(l,e,n,r);else for(var a=l.length-1;a>=0;a--)(i=l[a])&&(t=(o<3?i(t):o>3?i(e,n,t):i(e,n))||t);return o>3&&t&&Object.defineProperty(e,n,t),t};let m=class extends d{render(){return c` + + UX by + + + `}};m.styles=[g,$,P];m=T([f("wui-ux-by-reown")],m);const U=u` + :host > wui-flex { + background-color: var(--wui-color-gray-glass-005); + margin-top: var(--wui-spacing-s); + } + + a { + text-decoration: none; + color: var(--wui-color-fg-175); + font-weight: 500; + } +`;var W=function(l,e,n,r){var o=arguments.length,t=o<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(l,e,n,r);else for(var a=l.length-1;a>=0;a--)(i=l[a])&&(t=(o<3?i(t):o>3?i(e,n,t):i(e,n))||t);return o>3&&t&&Object.defineProperty(e,n,t),t};let b=class extends d{render(){var o;const{termsConditionsUrl:e,privacyPolicyUrl:n}=s.state,r=(o=s.state.features)==null?void 0:o.legalCheckbox;return!e&&!n||r?null:c` + + + + By connecting your wallet, you agree to our
+ ${this.termsTemplate()} ${this.andTemplate()} ${this.privacyTemplate()} +
+
+ +
+ `}andTemplate(){const{termsConditionsUrl:e,privacyPolicyUrl:n}=s.state;return e&&n?"and":""}termsTemplate(){const{termsConditionsUrl:e}=s.state;return e?c`Terms of Service`:null}privacyTemplate(){const{privacyPolicyUrl:e}=s.state;return e?c`Privacy Policy`:null}};b.styles=[U];b=W([f("w3m-legal-footer")],b);const E=u` + :host { + display: block; + width: var(--wui-box-size-md); + height: var(--wui-box-size-md); + } + + svg { + width: var(--wui-box-size-md); + height: var(--wui-box-size-md); + } + + rect { + fill: none; + stroke: var(--wui-color-accent-100); + stroke-width: 4px; + stroke-linecap: round; + animation: dash 1s linear infinite; + } + + @keyframes dash { + to { + stroke-dashoffset: 0px; + } + } +`;var y=function(l,e,n,r){var o=arguments.length,t=o<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(l,e,n,r);else for(var a=l.length-1;a>=0;a--)(i=l[a])&&(t=(o<3?i(t):o>3?i(e,n,t):i(e,n))||t);return o>3&&t&&Object.defineProperty(e,n,t),t};let h=class extends d{constructor(){super(...arguments),this.radius=36}render(){return this.svgLoaderTemplate()}svgLoaderTemplate(){const e=this.radius>50?50:this.radius,r=36-e,o=116+r,t=245+r,i=360+r*1.75;return c` + + + + `}};h.styles=[g,E];y([x({type:Number})],h.prototype,"radius",void 0);h=y([f("wui-loading-thumbnail")],h); diff --git a/web3game/.vercel/output/static/assets/index-CTojmOJx.js b/web3game/.vercel/output/static/assets/index-CTojmOJx.js new file mode 100644 index 0000000000..d22de4670c --- /dev/null +++ b/web3game/.vercel/output/static/assets/index-CTojmOJx.js @@ -0,0 +1,45 @@ +import{i as d,r as g,x as h}from"./index-DVkBgnkX.js";import{n,c as b}from"./if-defined-DVOmkLu5.js";const p=d` + :host { + display: block; + box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005); + background: linear-gradient( + 120deg, + var(--wui-color-bg-200) 5%, + var(--wui-color-bg-200) 48%, + var(--wui-color-bg-300) 55%, + var(--wui-color-bg-300) 60%, + var(--wui-color-bg-300) calc(60% + 10px), + var(--wui-color-bg-200) calc(60% + 12px), + var(--wui-color-bg-200) 100% + ); + background-size: 250%; + animation: shimmer 3s linear infinite reverse; + } + + :host([variant='light']) { + background: linear-gradient( + 120deg, + var(--wui-color-bg-150) 5%, + var(--wui-color-bg-150) 48%, + var(--wui-color-bg-200) 55%, + var(--wui-color-bg-200) 60%, + var(--wui-color-bg-200) calc(60% + 10px), + var(--wui-color-bg-150) calc(60% + 12px), + var(--wui-color-bg-150) 100% + ); + background-size: 250%; + } + + @keyframes shimmer { + from { + background-position: -250% 0; + } + to { + background-position: 250% 0; + } + } +`;var t=function(a,i,e,c){var s=arguments.length,r=s<3?i:c===null?c=Object.getOwnPropertyDescriptor(i,e):c,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(a,i,e,c);else for(var u=a.length-1;u>=0;u--)(l=a[u])&&(r=(s<3?l(r):s>3?l(i,e,r):l(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};let o=class extends g{constructor(){super(...arguments),this.width="",this.height="",this.borderRadius="m",this.variant="default"}render(){return this.style.cssText=` + width: ${this.width}; + height: ${this.height}; + border-radius: ${`clamp(0px,var(--wui-border-radius-${this.borderRadius}), 40px)`}; + `,h``}};o.styles=[p];t([n()],o.prototype,"width",void 0);t([n()],o.prototype,"height",void 0);t([n()],o.prototype,"borderRadius",void 0);t([n()],o.prototype,"variant",void 0);o=t([b("wui-shimmer")],o); diff --git a/web3game/.vercel/output/static/assets/index-Ch5gbc8c.js b/web3game/.vercel/output/static/assets/index-Ch5gbc8c.js new file mode 100644 index 0000000000..b0dfa4a1c9 --- /dev/null +++ b/web3game/.vercel/output/static/assets/index-Ch5gbc8c.js @@ -0,0 +1,2 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-DaWU74xu.js","assets/index-DVkBgnkX.js","assets/index-DFqzAh7d.css","assets/hooks.module-CUJGEegb.js","assets/index-LEBQNQA_.js"])))=>i.map(i=>d[i]); +import{Y as x,Z as g,$ as _,a0 as A,a1 as U,a2 as y,_ as k}from"./index-DVkBgnkX.js";import{a3 as K}from"./index-DVkBgnkX.js";D.type="coinbaseWallet";function D(r={}){return r.version==="3"||r.headlessMode?C(r):L(r)}function L(r){let b,f,w,s;return x(d=>({id:"coinbaseWalletSDK",name:"Coinbase Wallet",rdns:"com.coinbase.wallet",type:D.type,async connect({chainId:t,...c}={}){try{const n=await this.getProvider(),e=(await n.request({method:"eth_requestAccounts",params:"instantOnboarding"in c&&c.instantOnboarding?[{onboarding:"instant"}]:[]})).map(i=>g(i));f||(f=this.onAccountsChanged.bind(this),n.on("accountsChanged",f)),w||(w=this.onChainChanged.bind(this),n.on("chainChanged",w)),s||(s=this.onDisconnect.bind(this),n.on("disconnect",s));let o=await this.getChainId();if(t&&o!==t){const i=await this.switchChain({chainId:t}).catch(l=>{if(l.code===y.code)throw l;return{id:o}});o=(i==null?void 0:i.id)??o}return{accounts:e,chainId:o}}catch(n){throw/(user closed modal|accounts received is empty|user denied account|request rejected)/i.test(n.message)?new y(n):n}},async disconnect(){var c;const t=await this.getProvider();f&&(t.removeListener("accountsChanged",f),f=void 0),w&&(t.removeListener("chainChanged",w),w=void 0),s&&(t.removeListener("disconnect",s),s=void 0),t.disconnect(),(c=t.close)==null||c.call(t)},async getAccounts(){return(await(await this.getProvider()).request({method:"eth_accounts"})).map(c=>g(c))},async getChainId(){const c=await(await this.getProvider()).request({method:"eth_chainId"});return Number(c)},async getProvider(){if(!b){const t=(()=>{var e;return typeof r.preference=="string"?{options:r.preference}:{...r.preference,options:((e=r.preference)==null?void 0:e.options)??"all"}})(),{createCoinbaseWalletSDK:c}=await k(async()=>{const{createCoinbaseWalletSDK:e}=await import("./index-DaWU74xu.js");return{createCoinbaseWalletSDK:e}},__vite__mapDeps([0,1,2,3]));b=c({...r,appChainIds:d.chains.map(e=>e.id),preference:t}).getProvider()}return b},async isAuthorized(){try{return!!(await this.getAccounts()).length}catch{return!1}},async switchChain({addEthereumChainParameter:t,chainId:c}){var o,i,l,a;const n=d.chains.find(u=>u.id===c);if(!n)throw new _(new A);const e=await this.getProvider();try{return await e.request({method:"wallet_switchEthereumChain",params:[{chainId:U(n.id)}]}),n}catch(u){if(u.code===4902)try{let h;t!=null&&t.blockExplorerUrls?h=t.blockExplorerUrls:h=(o=n.blockExplorers)!=null&&o.default.url?[(i=n.blockExplorers)==null?void 0:i.default.url]:[];let p;(l=t==null?void 0:t.rpcUrls)!=null&&l.length?p=t.rpcUrls:p=[((a=n.rpcUrls.default)==null?void 0:a.http[0])??""];const v={blockExplorerUrls:h,chainId:U(c),chainName:(t==null?void 0:t.chainName)??n.name,iconUrls:t==null?void 0:t.iconUrls,nativeCurrency:(t==null?void 0:t.nativeCurrency)??n.nativeCurrency,rpcUrls:p};return await e.request({method:"wallet_addEthereumChain",params:[v]}),n}catch(h){throw new y(h)}throw new _(u)}},onAccountsChanged(t){t.length===0?this.onDisconnect():d.emitter.emit("change",{accounts:t.map(c=>g(c))})},onChainChanged(t){const c=Number(t);d.emitter.emit("change",{chainId:c})},async onDisconnect(t){d.emitter.emit("disconnect");const c=await this.getProvider();f&&(c.removeListener("accountsChanged",f),f=void 0),w&&(c.removeListener("chainChanged",w),w=void 0),s&&(c.removeListener("disconnect",s),s=void 0)}}))}function C(r){let f,w,s,d,t;return x(c=>({id:"coinbaseWalletSDK",name:"Coinbase Wallet",type:D.type,async connect({chainId:n}={}){try{const e=await this.getProvider(),o=(await e.request({method:"eth_requestAccounts"})).map(l=>g(l));s||(s=this.onAccountsChanged.bind(this),e.on("accountsChanged",s)),d||(d=this.onChainChanged.bind(this),e.on("chainChanged",d)),t||(t=this.onDisconnect.bind(this),e.on("disconnect",t));let i=await this.getChainId();if(n&&i!==n){const l=await this.switchChain({chainId:n}).catch(a=>{if(a.code===y.code)throw a;return{id:i}});i=(l==null?void 0:l.id)??i}return{accounts:o,chainId:i}}catch(e){throw/(user closed modal|accounts received is empty|user denied account)/i.test(e.message)?new y(e):e}},async disconnect(){const n=await this.getProvider();s&&(n.removeListener("accountsChanged",s),s=void 0),d&&(n.removeListener("chainChanged",d),d=void 0),t&&(n.removeListener("disconnect",t),t=void 0),n.disconnect(),n.close()},async getAccounts(){return(await(await this.getProvider()).request({method:"eth_accounts"})).map(e=>g(e))},async getChainId(){const e=await(await this.getProvider()).request({method:"eth_chainId"});return Number(e)},async getProvider(){var n;if(!w){const e=await(async()=>{const{default:u}=await k(async()=>{const{default:h}=await import("./index-LEBQNQA_.js").then(p=>p.i);return{default:h}},__vite__mapDeps([4,1,2,3]));return typeof u!="function"&&typeof u.default=="function"?u.default:u})();f=new e({...r,reloadOnDisconnect:!1});const o=(n=f.walletExtension)==null?void 0:n.getChainId(),i=c.chains.find(u=>r.chainId?u.id===r.chainId:u.id===o)||c.chains[0],l=r.chainId||(i==null?void 0:i.id),a=r.jsonRpcUrl||(i==null?void 0:i.rpcUrls.default.http[0]);w=f.makeWeb3Provider(a,l)}return w},async isAuthorized(){try{return!!(await this.getAccounts()).length}catch{return!1}},async switchChain({addEthereumChainParameter:n,chainId:e}){var l,a,u,h;const o=c.chains.find(p=>p.id===e);if(!o)throw new _(new A);const i=await this.getProvider();try{return await i.request({method:"wallet_switchEthereumChain",params:[{chainId:U(o.id)}]}),o}catch(p){if(p.code===4902)try{let v;n!=null&&n.blockExplorerUrls?v=n.blockExplorerUrls:v=(l=o.blockExplorers)!=null&&l.default.url?[(a=o.blockExplorers)==null?void 0:a.default.url]:[];let I;(u=n==null?void 0:n.rpcUrls)!=null&&u.length?I=n.rpcUrls:I=[((h=o.rpcUrls.default)==null?void 0:h.http[0])??""];const q={blockExplorerUrls:v,chainId:U(e),chainName:(n==null?void 0:n.chainName)??o.name,iconUrls:n==null?void 0:n.iconUrls,nativeCurrency:(n==null?void 0:n.nativeCurrency)??o.nativeCurrency,rpcUrls:I};return await i.request({method:"wallet_addEthereumChain",params:[q]}),o}catch(v){throw new y(v)}throw new _(p)}},onAccountsChanged(n){n.length===0?this.onDisconnect():c.emitter.emit("change",{accounts:n.map(e=>g(e))})},onChainChanged(n){const e=Number(n);c.emitter.emit("change",{chainId:e})},async onDisconnect(n){c.emitter.emit("disconnect");const e=await this.getProvider();s&&(e.removeListener("accountsChanged",s),s=void 0),d&&(e.removeListener("chainChanged",d),d=void 0),t&&(e.removeListener("disconnect",t),t=void 0)}}))}export{D as coinbaseWallet,K as injected}; diff --git a/web3game/.vercel/output/static/assets/index-Cn1TwpSs.js b/web3game/.vercel/output/static/assets/index-Cn1TwpSs.js new file mode 100644 index 0000000000..712b1f08dd --- /dev/null +++ b/web3game/.vercel/output/static/assets/index-Cn1TwpSs.js @@ -0,0 +1,220 @@ +import{L as h,i as b,b as p,f as w,r as f,x as u}from"./index-DVkBgnkX.js";import{a as x,f as y,n as i,c as m}from"./if-defined-DVOmkLu5.js";import"./index-B2osUT2V.js";/** + * @license + * Copyright 2020 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const S=()=>new k;class k{}const v=new WeakMap,B=x(class extends y{render(t){return h}update(t,[a]){var n;const o=a!==this.Y;return o&&this.Y!==void 0&&this.rt(void 0),(o||this.lt!==this.ct)&&(this.Y=a,this.ht=(n=t.options)==null?void 0:n.host,this.rt(this.ct=t.element)),h}rt(t){if(this.isConnected||(t=void 0),typeof this.Y=="function"){const a=this.ht??globalThis;let o=v.get(a);o===void 0&&(o=new WeakMap,v.set(a,o)),o.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),o.set(this.Y,t),t!==void 0&&this.Y.call(this.ht,t)}else this.Y.value=t}get lt(){var t,a;return typeof this.Y=="function"?(t=v.get(this.ht??globalThis))==null?void 0:t.get(this.Y):(a=this.Y)==null?void 0:a.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}}),R=b` + :host { + width: var(--local-width); + position: relative; + } + + button { + border: none; + border-radius: var(--local-border-radius); + width: var(--local-width); + white-space: nowrap; + } + + /* -- Sizes --------------------------------------------------- */ + button[data-size='md'] { + padding: 8.2px var(--wui-spacing-l) 9px var(--wui-spacing-l); + height: 36px; + } + + button[data-size='md'][data-icon-left='true'][data-icon-right='false'] { + padding: 8.2px var(--wui-spacing-l) 9px var(--wui-spacing-s); + } + + button[data-size='md'][data-icon-right='true'][data-icon-left='false'] { + padding: 8.2px var(--wui-spacing-s) 9px var(--wui-spacing-l); + } + + button[data-size='lg'] { + padding: var(--wui-spacing-m) var(--wui-spacing-2l); + height: 48px; + } + + /* -- Variants --------------------------------------------------------- */ + button[data-variant='main'] { + background-color: var(--wui-color-accent-100); + color: var(--wui-color-inverse-100); + border: none; + box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010); + } + + button[data-variant='inverse'] { + background-color: var(--wui-color-inverse-100); + color: var(--wui-color-inverse-000); + border: none; + box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010); + } + + button[data-variant='accent'] { + background-color: var(--wui-color-accent-glass-010); + color: var(--wui-color-accent-100); + border: none; + box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005); + } + + button[data-variant='accent-error'] { + background: var(--wui-color-error-glass-015); + color: var(--wui-color-error-100); + border: none; + box-shadow: inset 0 0 0 1px var(--wui-color-error-glass-010); + } + + button[data-variant='accent-success'] { + background: var(--wui-color-success-glass-015); + color: var(--wui-color-success-100); + border: none; + box-shadow: inset 0 0 0 1px var(--wui-color-success-glass-010); + } + + button[data-variant='neutral'] { + background: transparent; + color: var(--wui-color-fg-100); + border: none; + box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005); + } + + /* -- Focus states --------------------------------------------------- */ + button[data-variant='main']:focus-visible:enabled { + background-color: var(--wui-color-accent-090); + box-shadow: + inset 0 0 0 1px var(--wui-color-accent-100), + 0 0 0 4px var(--wui-color-accent-glass-020); + } + button[data-variant='inverse']:focus-visible:enabled { + background-color: var(--wui-color-inverse-100); + box-shadow: + inset 0 0 0 1px var(--wui-color-gray-glass-010), + 0 0 0 4px var(--wui-color-accent-glass-020); + } + button[data-variant='accent']:focus-visible:enabled { + background-color: var(--wui-color-accent-glass-010); + box-shadow: + inset 0 0 0 1px var(--wui-color-accent-100), + 0 0 0 4px var(--wui-color-accent-glass-020); + } + button[data-variant='accent-error']:focus-visible:enabled { + background: var(--wui-color-error-glass-015); + box-shadow: + inset 0 0 0 1px var(--wui-color-error-100), + 0 0 0 4px var(--wui-color-error-glass-020); + } + button[data-variant='accent-success']:focus-visible:enabled { + background: var(--wui-color-success-glass-015); + box-shadow: + inset 0 0 0 1px var(--wui-color-success-100), + 0 0 0 4px var(--wui-color-success-glass-020); + } + button[data-variant='neutral']:focus-visible:enabled { + background: var(--wui-color-gray-glass-005); + box-shadow: + inset 0 0 0 1px var(--wui-color-gray-glass-010), + 0 0 0 4px var(--wui-color-gray-glass-002); + } + + /* -- Hover & Active states ----------------------------------------------------------- */ + @media (hover: hover) and (pointer: fine) { + button[data-variant='main']:hover:enabled { + background-color: var(--wui-color-accent-090); + } + + button[data-variant='main']:active:enabled { + background-color: var(--wui-color-accent-080); + } + + button[data-variant='accent']:hover:enabled { + background-color: var(--wui-color-accent-glass-015); + } + + button[data-variant='accent']:active:enabled { + background-color: var(--wui-color-accent-glass-020); + } + + button[data-variant='accent-error']:hover:enabled { + background: var(--wui-color-error-glass-020); + color: var(--wui-color-error-100); + } + + button[data-variant='accent-error']:active:enabled { + background: var(--wui-color-error-glass-030); + color: var(--wui-color-error-100); + } + + button[data-variant='accent-success']:hover:enabled { + background: var(--wui-color-success-glass-020); + color: var(--wui-color-success-100); + } + + button[data-variant='accent-success']:active:enabled { + background: var(--wui-color-success-glass-030); + color: var(--wui-color-success-100); + } + + button[data-variant='neutral']:hover:enabled { + background: var(--wui-color-gray-glass-002); + } + + button[data-variant='neutral']:active:enabled { + background: var(--wui-color-gray-glass-005); + } + + button[data-size='lg'][data-icon-left='true'][data-icon-right='false'] { + padding-left: var(--wui-spacing-m); + } + + button[data-size='lg'][data-icon-right='true'][data-icon-left='false'] { + padding-right: var(--wui-spacing-m); + } + } + + /* -- Disabled state --------------------------------------------------- */ + button:disabled { + background-color: var(--wui-color-gray-glass-002); + box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002); + color: var(--wui-color-gray-glass-020); + cursor: not-allowed; + } + + button > wui-text { + transition: opacity var(--wui-ease-out-power-1) var(--wui-duration-md); + will-change: opacity; + opacity: var(--local-opacity-100); + } + + ::slotted(*) { + transition: opacity var(--wui-ease-out-power-1) var(--wui-duration-md); + will-change: opacity; + opacity: var(--local-opacity-100); + } + + wui-loading-spinner { + position: absolute; + left: 50%; + top: 50%; + transform: translate(-50%, -50%); + opacity: var(--local-opacity-000); + } +`;var e=function(t,a,o,n){var c=arguments.length,s=c<3?a:n===null?n=Object.getOwnPropertyDescriptor(a,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,a,o,n);else for(var d=t.length-1;d>=0;d--)(l=t[d])&&(s=(c<3?l(s):c>3?l(a,o,s):l(a,o))||s);return c>3&&s&&Object.defineProperty(a,o,s),s};const g={main:"inverse-100",inverse:"inverse-000",accent:"accent-100","accent-error":"error-100","accent-success":"success-100",neutral:"fg-100",disabled:"gray-glass-020"},$={lg:"paragraph-600",md:"small-600"},z={lg:"md",md:"md"};let r=class extends f{constructor(){super(...arguments),this.size="lg",this.disabled=!1,this.fullWidth=!1,this.loading=!1,this.variant="main",this.hasIconLeft=!1,this.hasIconRight=!1,this.borderRadius="m"}render(){this.style.cssText=` + --local-width: ${this.fullWidth?"100%":"auto"}; + --local-opacity-100: ${this.loading?0:1}; + --local-opacity-000: ${this.loading?1:0}; + --local-border-radius: var(--wui-border-radius-${this.borderRadius}); + `;const a=this.textVariant??$[this.size];return u` + + `}handleSlotLeftChange(){this.hasIconLeft=!0}handleSlotRightChange(){this.hasIconRight=!0}loadingTemplate(){if(this.loading){const a=z[this.size],o=this.disabled?g.disabled:g[this.variant];return u``}return u``}};r.styles=[p,w,R];e([i()],r.prototype,"size",void 0);e([i({type:Boolean})],r.prototype,"disabled",void 0);e([i({type:Boolean})],r.prototype,"fullWidth",void 0);e([i({type:Boolean})],r.prototype,"loading",void 0);e([i()],r.prototype,"variant",void 0);e([i({type:Boolean})],r.prototype,"hasIconLeft",void 0);e([i({type:Boolean})],r.prototype,"hasIconRight",void 0);e([i()],r.prototype,"borderRadius",void 0);e([i()],r.prototype,"textVariant",void 0);r=e([m("wui-button")],r);export{S as e,B as n}; diff --git a/web3game/.vercel/output/static/assets/index-Cxc8tIRM.js b/web3game/.vercel/output/static/assets/index-Cxc8tIRM.js new file mode 100644 index 0000000000..a6210c4be8 --- /dev/null +++ b/web3game/.vercel/output/static/assets/index-Cxc8tIRM.js @@ -0,0 +1,29 @@ +import{i as h,b as g,f as p,r as v,x as f}from"./index-DVkBgnkX.js";import{n as c,c as x}from"./if-defined-DVOmkLu5.js";const y=h` + :host { + display: inline-flex; + justify-content: center; + align-items: center; + position: relative; + overflow: hidden; + background-color: var(--wui-color-gray-glass-020); + border-radius: var(--local-border-radius); + border: var(--local-border); + box-sizing: content-box; + width: var(--local-size); + height: var(--local-size); + min-height: var(--local-size); + min-width: var(--local-size); + } + + @supports (background: color-mix(in srgb, white 50%, black)) { + :host { + background-color: color-mix(in srgb, var(--local-bg-value) var(--local-bg-mix), transparent); + } + } +`;var i=function(d,e,t,l){var a=arguments.length,r=a<3?e:l===null?l=Object.getOwnPropertyDescriptor(e,t):l,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(d,e,t,l);else for(var s=d.length-1;s>=0;s--)(n=d[s])&&(r=(a<3?n(r):a>3?n(e,t,r):n(e,t))||r);return a>3&&r&&Object.defineProperty(e,t,r),r};let o=class extends v{constructor(){super(...arguments),this.size="md",this.backgroundColor="accent-100",this.iconColor="accent-100",this.background="transparent",this.border=!1,this.borderColor="wui-color-bg-125",this.icon="copy"}render(){const e=this.iconSize||this.size,t=this.size==="lg",l=this.size==="xl",a=t?"12%":"16%",r=t?"xxs":l?"s":"3xl",n=this.background==="gray",s=this.background==="opaque",b=this.backgroundColor==="accent-100"&&s||this.backgroundColor==="success-100"&&s||this.backgroundColor==="error-100"&&s||this.backgroundColor==="inverse-100"&&s;let u=`var(--wui-color-${this.backgroundColor})`;return b?u=`var(--wui-icon-box-bg-${this.backgroundColor})`:n&&(u=`var(--wui-color-gray-${this.backgroundColor})`),this.style.cssText=` + --local-bg-value: ${u}; + --local-bg-mix: ${b||n?"100%":a}; + --local-border-radius: var(--wui-border-radius-${r}); + --local-size: var(--wui-icon-box-size-${this.size}); + --local-border: ${this.borderColor==="wui-color-bg-125"?"2px":"1px"} solid ${this.border?`var(--${this.borderColor})`:"transparent"} + `,f` `}};o.styles=[g,p,y];i([c()],o.prototype,"size",void 0);i([c()],o.prototype,"backgroundColor",void 0);i([c()],o.prototype,"iconColor",void 0);i([c()],o.prototype,"iconSize",void 0);i([c()],o.prototype,"background",void 0);i([c({type:Boolean})],o.prototype,"border",void 0);i([c()],o.prototype,"borderColor",void 0);i([c()],o.prototype,"icon",void 0);o=i([x("wui-icon-box")],o); diff --git a/web3game/.vercel/output/static/assets/index-DFqzAh7d.css b/web3game/.vercel/output/static/assets/index-DFqzAh7d.css new file mode 100644 index 0000000000..a3d3c166da --- /dev/null +++ b/web3game/.vercel/output/static/assets/index-DFqzAh7d.css @@ -0,0 +1 @@ +:root{--background: #ffffff;--foreground: #171717}html,body{max-width:100vw;overflow-x:hidden}body{color:var(--foreground);background:var(--background);font-family:Arial,Helvetica,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*{box-sizing:border-box;padding:0;margin:0}a{color:inherit;text-decoration:none}@media (prefers-color-scheme: dark){html{color-scheme:dark}}section{border:1px solid #e0e0e0;border-radius:8px;background-color:#f9f9f9;padding:13px;margin:10px;width:90%;text-align:left}.pages{align-items:center;justify-items:center;text-align:center}button{padding:10px 15px;background-color:#fff;color:#000;border:2px solid black;border-radius:6px;font-size:16px;font-weight:600;cursor:pointer;transition:all .3s ease;margin:15px}button:hover{background-color:#000;color:#fff}button:active{background-color:#333;color:#fff}h1{margin:20px}h2{padding-bottom:6px}pre{white-space:pre-wrap;word-wrap:break-word;word-break:break-all}.link-button{background-color:#000;color:#fff;padding:5px 10px;text-decoration:none;border-radius:5px}.link-button:hover{background-color:#333}.link-button:hover{background-color:#fff;color:#000}.advice{text-align:"center";margin-bottom:10px;line-height:25px} diff --git a/web3game/.vercel/output/static/assets/index-DHeF6YgC.js b/web3game/.vercel/output/static/assets/index-DHeF6YgC.js new file mode 100644 index 0000000000..845c4fdecd --- /dev/null +++ b/web3game/.vercel/output/static/assets/index-DHeF6YgC.js @@ -0,0 +1,3827 @@ +import{i as x,b as _,f as T,r as w,x as l,j as d,p as k,O as C,z as de,A as m,d as g,M as A,e as $,m as pe,C as b,c as S,R as f,a as D,S as O,W as M,k as v,o as gn,l as mn,B as qi,D as bn,F as oi,t as I,G as Ae,H as yi,I as xn,T as Kt,J as Ci}from"./index-DVkBgnkX.js";import{n as c,c as h,o as p,U as R,r as u,e as $i}from"./if-defined-DVOmkLu5.js";import"./index-QpqlfPgl.js";import"./index-B2osUT2V.js";import"./index-DsF4Gov6.js";import"./index-Cxc8tIRM.js";import{W as cs}from"./index-Bz4Ul6tQ.js";import"./index-BGjtclTS.js";import"./index-vgifefJD.js";import{e as ri,n as ai}from"./index-Cn1TwpSs.js";import"./index-B4eb2ffY.js";import"./index-DeEXhxyT.js";import{M as ki}from"./index-QVU1uMUX.js";import"./index-swSfGf8i.js";import"./index-BfDAOq8h.js";import"./index-CTojmOJx.js";import"./index-C22vu2Z6.js";import"./index-C5GW1wiz.js";import{S as vn}from"./index-DcIuyBCN.js";import{N as yn}from"./index-BxwsSeIL.js";import"./index-BaPrYmVj.js";import"./index-BeTGsQ0g.js";import"./index-kA5-QyMM.js";const Cn=x` + :host { + display: block; + } + + button { + border-radius: var(--wui-border-radius-3xl); + background: var(--wui-color-gray-glass-002); + display: flex; + gap: var(--wui-spacing-xs); + padding: var(--wui-spacing-3xs) var(--wui-spacing-xs) var(--wui-spacing-3xs) + var(--wui-spacing-xs); + border: 1px solid var(--wui-color-gray-glass-005); + } + + button:disabled { + background: var(--wui-color-gray-glass-015); + } + + button:disabled > wui-text { + color: var(--wui-color-gray-glass-015); + } + + button:disabled > wui-flex > wui-text { + color: var(--wui-color-gray-glass-015); + } + + button:disabled > wui-image, + button:disabled > wui-flex > wui-avatar { + filter: grayscale(1); + } + + button:has(wui-image) { + padding: var(--wui-spacing-3xs) var(--wui-spacing-3xs) var(--wui-spacing-3xs) + var(--wui-spacing-xs); + } + + wui-text { + color: var(--wui-color-fg-100); + } + + wui-flex > wui-text { + color: var(--wui-color-fg-200); + } + + wui-image, + wui-icon-box { + border-radius: var(--wui-border-radius-3xl); + width: 24px; + height: 24px; + box-shadow: 0 0 0 2px var(--wui-color-gray-glass-005); + } + + wui-flex { + border-radius: var(--wui-border-radius-3xl); + border: 1px solid var(--wui-color-gray-glass-005); + background: var(--wui-color-gray-glass-005); + padding: 4px var(--wui-spacing-m) 4px var(--wui-spacing-xxs); + } + + button.local-no-balance { + border-radius: 0px; + border: none; + background: transparent; + } + + wui-avatar { + width: 20px; + height: 20px; + box-shadow: 0 0 0 2px var(--wui-color-accent-glass-010); + } + + @media (max-width: 500px) { + button { + gap: 0px; + padding: var(--wui-spacing-3xs) var(--wui-spacing-xs) !important; + height: 32px; + } + wui-image, + wui-icon-box, + button > wui-text { + visibility: hidden; + width: 0px; + height: 0px; + } + button { + border-radius: 0px; + border: none; + background: transparent; + padding: 0px; + } + } + + @media (hover: hover) and (pointer: fine) { + button:hover:enabled > wui-flex > wui-text { + color: var(--wui-color-fg-175); + } + + button:active:enabled > wui-flex > wui-text { + color: var(--wui-color-fg-175); + } + } +`;var Q=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let H=class extends w{constructor(){super(...arguments),this.networkSrc=void 0,this.avatarSrc=void 0,this.balance=void 0,this.isUnsupportedChain=void 0,this.disabled=!1,this.loading=!1,this.address="",this.profileName="",this.charsStart=4,this.charsEnd=6}render(){return l` + + `}balanceTemplate(){if(this.isUnsupportedChain)return l` + Switch Network`;if(this.balance){const e=this.networkSrc?l``:l` + + `,t=this.loading?l``:l` ${this.balance}`;return l`${e} ${t}`}return null}};H.styles=[_,T,Cn];Q([c()],H.prototype,"networkSrc",void 0);Q([c()],H.prototype,"avatarSrc",void 0);Q([c()],H.prototype,"balance",void 0);Q([c({type:Boolean})],H.prototype,"isUnsupportedChain",void 0);Q([c({type:Boolean})],H.prototype,"disabled",void 0);Q([c({type:Boolean})],H.prototype,"loading",void 0);Q([c()],H.prototype,"address",void 0);Q([c()],H.prototype,"profileName",void 0);Q([c()],H.prototype,"charsStart",void 0);Q([c()],H.prototype,"charsEnd",void 0);H=Q([h("wui-account-button")],H);var L=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};class U extends w{constructor(){var e,t,n,o,i,r;super(...arguments),this.unsubscribe=[],this.disabled=!1,this.balance="show",this.charsStart=4,this.charsEnd=6,this.namespace=void 0,this.caipAddress=(e=d.getAccountData(this.namespace))==null?void 0:e.caipAddress,this.balanceVal=(t=d.getAccountData(this.namespace))==null?void 0:t.balance,this.balanceSymbol=(n=d.getAccountData(this.namespace))==null?void 0:n.balanceSymbol,this.profileName=(o=d.getAccountData(this.namespace))==null?void 0:o.profileName,this.profileImage=(i=d.getAccountData(this.namespace))==null?void 0:i.profileImage,this.network=(r=d.getNetworkData(this.namespace))==null?void 0:r.caipNetwork,this.networkImage=k.getNetworkImage(this.network),this.isSupported=C.state.allowUnsupportedChain?!0:d.state.activeChain?d.checkIfSupportedNetwork(d.state.activeChain):!0}firstUpdated(){const e=this.namespace;e?this.unsubscribe.push(d.subscribeChainProp("accountState",t=>{this.caipAddress=t==null?void 0:t.caipAddress,this.balanceVal=t==null?void 0:t.balance,this.balanceSymbol=t==null?void 0:t.balanceSymbol,this.profileName=t==null?void 0:t.profileName,this.profileImage=t==null?void 0:t.profileImage},e),d.subscribeChainProp("networkState",t=>{this.network=t==null?void 0:t.caipNetwork,this.isSupported=d.checkIfSupportedNetwork(e,t==null?void 0:t.caipNetwork),this.networkImage=k.getNetworkImage(t==null?void 0:t.caipNetwork)},e)):this.unsubscribe.push(de.subscribeNetworkImages(()=>{this.networkImage=k.getNetworkImage(this.network)}),d.subscribeKey("activeCaipAddress",t=>{this.caipAddress=t}),m.subscribeKey("balance",t=>this.balanceVal=t),m.subscribeKey("balanceSymbol",t=>this.balanceSymbol=t),m.subscribeKey("profileName",t=>this.profileName=t),m.subscribeKey("profileImage",t=>this.profileImage=t),d.subscribeKey("activeCaipNetwork",t=>{this.network=t,this.networkImage=k.getNetworkImage(t),this.isSupported=t!=null&&t.chainNamespace?d.checkIfSupportedNetwork(t==null?void 0:t.chainNamespace):!0,this.fetchNetworkImage(t)}))}updated(){this.fetchNetworkImage(this.network)}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){if(!d.state.activeChain)return null;const e=this.balance==="show",t=typeof this.balanceVal!="string";return l` + + + `}async onClick(){await d.switchActiveNamespace(this.namespace),this.isSupported||C.state.allowUnsupportedChain?A.open():A.open({view:"UnsupportedChain"})}async fetchNetworkImage(e){var t,n;(t=e==null?void 0:e.assets)!=null&&t.imageId&&(this.networkImage=await k.fetchNetworkImage((n=e==null?void 0:e.assets)==null?void 0:n.imageId))}}L([c({type:Boolean})],U.prototype,"disabled",void 0);L([c()],U.prototype,"balance",void 0);L([c()],U.prototype,"charsStart",void 0);L([c()],U.prototype,"charsEnd",void 0);L([c()],U.prototype,"namespace",void 0);L([u()],U.prototype,"caipAddress",void 0);L([u()],U.prototype,"balanceVal",void 0);L([u()],U.prototype,"balanceSymbol",void 0);L([u()],U.prototype,"profileName",void 0);L([u()],U.prototype,"profileImage",void 0);L([u()],U.prototype,"network",void 0);L([u()],U.prototype,"networkImage",void 0);L([u()],U.prototype,"isSupported",void 0);let Si=class extends U{};Si=L([h("w3m-account-button")],Si);let _i=class extends U{};_i=L([h("appkit-account-button")],_i);const $n=x` + :host { + display: block; + width: max-content; + } +`;var J=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};class F extends w{constructor(){super(...arguments),this.unsubscribe=[],this.disabled=!1,this.balance=void 0,this.size=void 0,this.label=void 0,this.loadingLabel=void 0,this.charsStart=4,this.charsEnd=6,this.namespace=void 0,this.caipAddress=d.state.activeCaipAddress}firstUpdated(){this.namespace?this.unsubscribe.push(d.subscribeChainProp("accountState",e=>{this.caipAddress=e==null?void 0:e.caipAddress},this.namespace)):this.unsubscribe.push(d.subscribeKey("activeCaipAddress",e=>this.caipAddress=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return this.caipAddress?l` + + + `:l` + + `}}F.styles=$n;J([c({type:Boolean})],F.prototype,"disabled",void 0);J([c()],F.prototype,"balance",void 0);J([c()],F.prototype,"size",void 0);J([c()],F.prototype,"label",void 0);J([c()],F.prototype,"loadingLabel",void 0);J([c()],F.prototype,"charsStart",void 0);J([c()],F.prototype,"charsEnd",void 0);J([c()],F.prototype,"namespace",void 0);J([u()],F.prototype,"caipAddress",void 0);let Ii=class extends F{};Ii=J([h("w3m-button")],Ii);let Ti=class extends F{};Ti=J([h("appkit-button")],Ti);const kn=x` + :host { + position: relative; + display: block; + } + + button { + background: var(--wui-color-accent-100); + border: 1px solid var(--wui-color-gray-glass-010); + border-radius: var(--wui-border-radius-m); + gap: var(--wui-spacing-xs); + } + + button.loading { + background: var(--wui-color-gray-glass-010); + border: 1px solid var(--wui-color-gray-glass-010); + pointer-events: none; + } + + button:disabled { + background-color: var(--wui-color-gray-glass-015); + border: 1px solid var(--wui-color-gray-glass-010); + } + + button:disabled > wui-text { + color: var(--wui-color-gray-glass-015); + } + + @media (hover: hover) and (pointer: fine) { + button:hover:enabled { + background-color: var(--wui-color-accent-090); + } + + button:active:enabled { + background-color: var(--wui-color-accent-080); + } + } + + button:focus-visible { + border: 1px solid var(--wui-color-gray-glass-010); + background-color: var(--wui-color-accent-090); + -webkit-box-shadow: 0px 0px 0px 4px var(--wui-box-shadow-blue); + -moz-box-shadow: 0px 0px 0px 4px var(--wui-box-shadow-blue); + box-shadow: 0px 0px 0px 4px var(--wui-box-shadow-blue); + } + + button[data-size='sm'] { + padding: 6.75px 10px 7.25px; + } + + ::slotted(*) { + transition: opacity var(--wui-ease-out-power-1) var(--wui-duration-md); + will-change: opacity; + opacity: var(--local-opacity-100); + } + + button > wui-text { + transition: opacity var(--wui-ease-out-power-1) var(--wui-duration-md); + will-change: opacity; + opacity: var(--local-opacity-100); + color: var(--wui-color-inverse-100); + } + + button[data-size='md'] { + padding: 9px var(--wui-spacing-l) 9px var(--wui-spacing-l); + } + + button[data-size='md'] + wui-text { + padding-left: var(--wui-spacing-3xs); + } + + @media (max-width: 500px) { + button[data-size='md'] { + height: 32px; + padding: 5px 12px; + } + + button[data-size='md'] > wui-text > slot { + font-size: 14px !important; + } + } + + wui-loading-spinner { + width: 14px; + height: 14px; + } + + wui-loading-spinner::slotted(svg) { + width: 10px !important; + height: 10px !important; + } + + button[data-size='sm'] > wui-loading-spinner { + width: 12px; + height: 12px; + } +`;var si=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let He=class extends w{constructor(){super(...arguments),this.size="md",this.loading=!1}render(){const e=this.size==="md"?"paragraph-600":"small-600";return l` + + `}loadingTemplate(){return this.loading?l``:null}};He.styles=[_,T,kn];si([c()],He.prototype,"size",void 0);si([c({type:Boolean})],He.prototype,"loading",void 0);He=si([h("wui-connect-button")],He);var me=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};class be extends w{constructor(){super(),this.unsubscribe=[],this.size="md",this.label="Connect Wallet",this.loadingLabel="Connecting...",this.open=A.state.open,this.loading=this.namespace?A.state.loadingNamespaceMap.get(this.namespace):A.state.loading,this.unsubscribe.push(A.subscribe(e=>{this.open=e.open,this.loading=this.namespace?e.loadingNamespaceMap.get(this.namespace):e.loading}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return l` + + ${this.loading?this.loadingLabel:this.label} + + `}onClick(){this.open?A.close():this.loading||A.open({view:"Connect",namespace:this.namespace})}}me([c()],be.prototype,"size",void 0);me([c()],be.prototype,"label",void 0);me([c()],be.prototype,"loadingLabel",void 0);me([c()],be.prototype,"namespace",void 0);me([u()],be.prototype,"open",void 0);me([u()],be.prototype,"loading",void 0);let Ai=class extends be{};Ai=me([h("w3m-connect-button")],Ai);let Ri=class extends be{};Ri=me([h("appkit-connect-button")],Ri);const Sn=x` + :host { + display: block; + } + + button { + border-radius: var(--wui-border-radius-3xl); + display: flex; + gap: var(--wui-spacing-xs); + padding: var(--wui-spacing-2xs) var(--wui-spacing-s) var(--wui-spacing-2xs) + var(--wui-spacing-xs); + border: 1px solid var(--wui-color-gray-glass-010); + background-color: var(--wui-color-gray-glass-005); + color: var(--wui-color-fg-100); + } + + button:disabled { + border: 1px solid var(--wui-color-gray-glass-005); + background-color: var(--wui-color-gray-glass-015); + color: var(--wui-color-gray-glass-015); + } + + @media (hover: hover) and (pointer: fine) { + button:hover:enabled { + background-color: var(--wui-color-gray-glass-010); + } + + button:active:enabled { + background-color: var(--wui-color-gray-glass-015); + } + } + + wui-image, + wui-icon-box { + border-radius: var(--wui-border-radius-3xl); + width: 24px; + height: 24px; + box-shadow: 0 0 0 2px var(--wui-color-gray-glass-005); + } +`;var At=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let Re=class extends w{constructor(){super(...arguments),this.imageSrc=void 0,this.isUnsupportedChain=void 0,this.disabled=!1}render(){return l` + + `}visualTemplate(){return this.isUnsupportedChain?l` + + `:this.imageSrc?l``:l` + + `}};Re.styles=[_,T,Sn];At([c()],Re.prototype,"imageSrc",void 0);At([c({type:Boolean})],Re.prototype,"isUnsupportedChain",void 0);At([c({type:Boolean})],Re.prototype,"disabled",void 0);Re=At([h("wui-network-button")],Re);const _n=x` + :host { + display: block; + width: max-content; + } +`;var ce=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};class ie extends w{constructor(){super(),this.unsubscribe=[],this.disabled=!1,this.network=d.state.activeCaipNetwork,this.networkImage=k.getNetworkImage(this.network),this.caipAddress=d.state.activeCaipAddress,this.loading=A.state.loading,this.isSupported=C.state.allowUnsupportedChain?!0:d.state.activeChain?d.checkIfSupportedNetwork(d.state.activeChain):!0,this.unsubscribe.push(de.subscribeNetworkImages(()=>{this.networkImage=k.getNetworkImage(this.network)}),d.subscribeKey("activeCaipAddress",e=>{this.caipAddress=e}),d.subscribeKey("activeCaipNetwork",e=>{var t;this.network=e,this.networkImage=k.getNetworkImage(e),this.isSupported=e!=null&&e.chainNamespace?d.checkIfSupportedNetwork(e.chainNamespace):!0,k.fetchNetworkImage((t=e==null?void 0:e.assets)==null?void 0:t.imageId)}),A.subscribeKey("loading",e=>this.loading=e))}firstUpdated(){var e,t;k.fetchNetworkImage((t=(e=this.network)==null?void 0:e.assets)==null?void 0:t.imageId)}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){const e=this.network?d.checkIfSupportedNetwork(this.network.chainNamespace):!0;return l` + + ${this.getLabel()} + + + `}getLabel(){return this.network?!this.isSupported&&!C.state.allowUnsupportedChain?"Switch Network":this.network.name:this.label?this.label:this.caipAddress?"Unknown Network":"Select Network"}onClick(){this.loading||($.sendEvent({type:"track",event:"CLICK_NETWORKS"}),A.open({view:"Networks"}))}}ie.styles=_n;ce([c({type:Boolean})],ie.prototype,"disabled",void 0);ce([c({type:String})],ie.prototype,"label",void 0);ce([u()],ie.prototype,"network",void 0);ce([u()],ie.prototype,"networkImage",void 0);ce([u()],ie.prototype,"caipAddress",void 0);ce([u()],ie.prototype,"loading",void 0);ce([u()],ie.prototype,"isSupported",void 0);let Wi=class extends ie{};Wi=ce([h("w3m-network-button")],Wi);let Ei=class extends ie{};Ei=ce([h("appkit-network-button")],Ei);const In=x` + :host { + display: block; + } + + button { + width: 100%; + display: block; + padding-top: var(--wui-spacing-l); + padding-bottom: var(--wui-spacing-l); + padding-left: var(--wui-spacing-s); + padding-right: var(--wui-spacing-2l); + border-radius: var(--wui-border-radius-s); + background-color: var(--wui-color-accent-glass-010); + } + + button:hover { + background-color: var(--wui-color-accent-glass-015) !important; + } + + button:active { + background-color: var(--wui-color-accent-glass-020) !important; + } +`;var Rt=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let We=class extends w{constructor(){super(...arguments),this.label="",this.description="",this.icon="wallet"}render(){return l` + + `}};We.styles=[_,T,In];Rt([c()],We.prototype,"label",void 0);Rt([c()],We.prototype,"description",void 0);Rt([c()],We.prototype,"icon",void 0);We=Rt([h("wui-notice-card")],We);var Fi=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let qt=class extends w{constructor(){super(),this.unsubscribe=[],this.socialProvider=pe.getConnectedSocialProvider(),this.socialUsername=pe.getConnectedSocialUsername(),this.namespace=d.state.activeChain,this.unsubscribe.push(d.subscribeKey("activeChain",e=>{this.namespace=e}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){const e=b.getConnectorId(this.namespace),t=b.getAuthConnector();if(!t||e!==S.CONNECTOR_ID.AUTH)return this.style.cssText="display: none",null;const n=t.provider.getEmail()??"";return!n&&!this.socialUsername?(this.style.cssText="display: none",null):l` + {this.onGoToUpdateEmail(n,this.socialProvider)}} + > + ${this.getAuthName(n)} + + `}onGoToUpdateEmail(e,t){t||f.push("UpdateEmailWallet",{email:e})}getAuthName(e){return this.socialUsername?this.socialProvider==="discord"&&this.socialUsername.endsWith("0")?this.socialUsername.slice(0,-1):this.socialUsername:e.length>30?`${e.slice(0,-3)}...`:e}};Fi([u()],qt.prototype,"namespace",void 0);qt=Fi([h("w3m-account-auth-button")],qt);var ne=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let Y=class extends w{constructor(){super(),this.usubscribe=[],this.networkImages=de.state.networkImages,this.address=m.state.address,this.profileImage=m.state.profileImage,this.profileName=m.state.profileName,this.network=d.state.activeCaipNetwork,this.preferredAccountType=m.state.preferredAccountType,this.disconnecting=!1,this.loading=!1,this.switched=!1,this.text="",this.usubscribe.push(m.subscribe(e=>{e.address?(this.address=e.address,this.profileImage=e.profileImage,this.profileName=e.profileName,this.preferredAccountType=e.preferredAccountType):A.close()}),m.subscribeKey("preferredAccountType",e=>this.preferredAccountType=e),d.subscribeKey("activeCaipNetwork",e=>{e!=null&&e.id&&(this.network=e)}))}disconnectedCallback(){this.usubscribe.forEach(e=>e())}render(){var t,n,o;if(!this.address)throw new Error("w3m-account-settings-view: No account provided");const e=this.networkImages[((n=(t=this.network)==null?void 0:t.assets)==null?void 0:n.imageId)??""];return l` + + + + + + ${R.getTruncateString({string:this.address,charsStart:4,charsEnd:6,truncate:"middle"})} + + + + + + + + ${this.authCardTemplate()} + + + + ${((o=this.network)==null?void 0:o.name)??"Unknown"} + + + ${this.togglePreferredAccountBtnTemplate()} ${this.chooseNameButtonTemplate()} + + Disconnect + + + + `}chooseNameButtonTemplate(){var i;const e=(i=this.network)==null?void 0:i.chainNamespace,t=b.getConnectorId(e),n=b.getAuthConnector();return!d.checkIfNamesSupported()||!n||t!==S.CONNECTOR_ID.AUTH||this.profileName?null:l` + + Choose account name + + `}authCardTemplate(){var i;const e=(i=this.network)==null?void 0:i.chainNamespace,t=b.getConnectorId(e),n=b.getAuthConnector(),{origin:o}=location;return!n||t!==S.CONNECTOR_ID.AUTH||o.includes(D.SECURE_SITE)?null:l` + + `}isAllowedNetworkSwitch(){const e=d.getAllRequestedCaipNetworks(),t=e?e.length>1:!1,n=e==null?void 0:e.find(({id:o})=>{var i;return o===((i=this.network)==null?void 0:i.id)});return t||!n}onCopyAddress(){try{this.address&&(g.copyToClopboard(this.address),O.showSuccess("Address copied"))}catch{O.showError("Failed to copy")}}togglePreferredAccountBtnTemplate(){var i;const e=(i=this.network)==null?void 0:i.chainNamespace,t=d.checkIfSmartAccountEnabled(),n=b.getConnectorId(e);return!b.getAuthConnector()||n!==S.CONNECTOR_ID.AUTH||!t?null:(this.switched||(this.text=this.preferredAccountType===M.ACCOUNT_TYPES.SMART_ACCOUNT?"Switch to your EOA":"Switch to your smart account"),l` + + ${this.text} + + `)}onChooseName(){f.push("ChooseAccountName")}async changePreferredAccountType(){const e=d.checkIfSmartAccountEnabled(),t=this.preferredAccountType===M.ACCOUNT_TYPES.SMART_ACCOUNT||!e?M.ACCOUNT_TYPES.EOA:M.ACCOUNT_TYPES.SMART_ACCOUNT;b.getAuthConnector()&&(this.loading=!0,await v.setPreferredAccountType(t),this.text=t===M.ACCOUNT_TYPES.SMART_ACCOUNT?"Switch to your EOA":"Switch to your smart account",this.switched=!0,gn.resetSend(),this.loading=!1,this.requestUpdate())}onNetworks(){this.isAllowedNetworkSwitch()&&f.push("Networks")}async onDisconnect(){try{this.disconnecting=!0,await v.disconnect(),$.sendEvent({type:"track",event:"DISCONNECT_SUCCESS"}),A.close()}catch{$.sendEvent({type:"track",event:"DISCONNECT_ERROR"}),O.showError("Failed to disconnect")}finally{this.disconnecting=!1}}onGoToUpgradeView(){$.sendEvent({type:"track",event:"EMAIL_UPGRADE_FROM_MODAL"}),f.push("UpgradeEmailWallet")}};ne([u()],Y.prototype,"address",void 0);ne([u()],Y.prototype,"profileImage",void 0);ne([u()],Y.prototype,"profileName",void 0);ne([u()],Y.prototype,"network",void 0);ne([u()],Y.prototype,"preferredAccountType",void 0);ne([u()],Y.prototype,"disconnecting",void 0);ne([u()],Y.prototype,"loading",void 0);ne([u()],Y.prototype,"switched",void 0);ne([u()],Y.prototype,"text",void 0);Y=ne([h("w3m-account-settings-view")],Y);const Tn=x` + button { + background-color: var(--wui-color-gray-glass-002); + border-radius: var(--wui-border-radius-3xl); + border: 1px solid var(--wui-color-gray-glass-002); + padding: var(--wui-spacing-xs) var(--wui-spacing-s) var(--wui-spacing-xs) var(--wui-spacing-xs); + position: relative; + } + + wui-avatar { + width: 32px; + height: 32px; + box-shadow: 0 0 0 0; + outline: 3px solid var(--wui-color-gray-glass-005); + } + + wui-icon-box, + wui-image { + width: 16px; + height: 16px; + border-radius: var(--wui-border-radius-3xl); + position: absolute; + left: 26px; + top: 24px; + } + + wui-image { + outline: 2px solid var(--wui-color-bg-125); + } + + wui-icon-box { + outline: 2px solid var(--wui-color-bg-200); + background-color: var(--wui-color-bg-250); + } +`;var _e=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let ae=class extends w{constructor(){super(...arguments),this.avatarSrc=void 0,this.profileName="",this.address="",this.icon="mail"}render(){const e=d.state.activeChain,n=b.getConnectorId(e)===S.CONNECTOR_ID.AUTH;return l``}handleClick(e){var t,n;if(e.target instanceof HTMLElement&&e.target.id==="copy-address"){(t=this.onCopyClick)==null||t.call(this,e);return}(n=this.onProfileClick)==null||n.call(this,e)}getIconTemplate(e){return l` + + `}};ae.styles=[_,T,Tn];_e([c()],ae.prototype,"avatarSrc",void 0);_e([c()],ae.prototype,"profileName",void 0);_e([c()],ae.prototype,"address",void 0);_e([c()],ae.prototype,"icon",void 0);_e([c()],ae.prototype,"onProfileClick",void 0);_e([c()],ae.prototype,"onCopyClick",void 0);ae=_e([h("wui-profile-button-v2")],ae);const An=x` + :host { + display: inline-flex; + background-color: var(--wui-color-gray-glass-002); + border-radius: var(--wui-border-radius-3xl); + padding: var(--wui-spacing-3xs); + position: relative; + height: 36px; + min-height: 36px; + overflow: hidden; + } + + :host::before { + content: ''; + position: absolute; + pointer-events: none; + top: 4px; + left: 4px; + display: block; + width: var(--local-tab-width); + height: 28px; + border-radius: var(--wui-border-radius-3xl); + background-color: var(--wui-color-gray-glass-002); + box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002); + transform: translateX(calc(var(--local-tab) * var(--local-tab-width))); + transition: transform var(--wui-ease-out-power-1) var(--wui-duration-md); + will-change: background-color, opacity; + } + + :host([data-type='flex'])::before { + left: 3px; + transform: translateX(calc((var(--local-tab) * 34px) + (var(--local-tab) * 4px))); + } + + :host([data-type='flex']) { + display: flex; + padding: 0px 0px 0px 12px; + gap: 4px; + } + + :host([data-type='flex']) > button > wui-text { + position: absolute; + left: 18px; + opacity: 0; + } + + button[data-active='true'] > wui-icon, + button[data-active='true'] > wui-text { + color: var(--wui-color-fg-100); + } + + button[data-active='false'] > wui-icon, + button[data-active='false'] > wui-text { + color: var(--wui-color-fg-200); + } + + button[data-active='true']:disabled, + button[data-active='false']:disabled { + background-color: transparent; + opacity: 0.5; + cursor: not-allowed; + } + + button[data-active='true']:disabled > wui-text { + color: var(--wui-color-fg-200); + } + + button[data-active='false']:disabled > wui-text { + color: var(--wui-color-fg-300); + } + + button > wui-icon, + button > wui-text { + pointer-events: none; + transition: color var(--wui-e ase-out-power-1) var(--wui-duration-md); + will-change: color; + } + + button { + width: var(--local-tab-width); + transition: background-color var(--wui-ease-out-power-1) var(--wui-duration-md); + will-change: background-color; + } + + :host([data-type='flex']) > button { + width: 34px; + position: relative; + display: flex; + justify-content: flex-start; + } + + button:hover:enabled, + button:active:enabled { + background-color: transparent !important; + } + + button:hover:enabled > wui-icon, + button:active:enabled > wui-icon { + transition: all var(--wui-ease-out-power-1) var(--wui-duration-lg); + color: var(--wui-color-fg-125); + } + + button:hover:enabled > wui-text, + button:active:enabled > wui-text { + transition: all var(--wui-ease-out-power-1) var(--wui-duration-lg); + color: var(--wui-color-fg-125); + } + + button { + border-radius: var(--wui-border-radius-3xl); + } +`;var xe=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let ee=class extends w{constructor(){super(...arguments),this.tabs=[],this.onTabChange=()=>null,this.buttons=[],this.disabled=!1,this.localTabWidth="100px",this.activeTab=0,this.isDense=!1}render(){return this.isDense=this.tabs.length>3,this.style.cssText=` + --local-tab: ${this.activeTab}; + --local-tab-width: ${this.localTabWidth}; + `,this.dataset.type=this.isDense?"flex":"block",this.tabs.map((e,t)=>{var o;const n=t===this.activeTab;return l` + + `})}firstUpdated(){this.shadowRoot&&this.isDense&&(this.buttons=[...this.shadowRoot.querySelectorAll("button")],setTimeout(()=>{this.animateTabs(0,!0)},0))}iconTemplate(e){return e.icon?l``:null}onTabClick(e){this.buttons&&this.animateTabs(e,!1),this.activeTab=e,this.onTabChange(e)}animateTabs(e,t){const n=this.buttons[this.activeTab],o=this.buttons[e],i=n==null?void 0:n.querySelector("wui-text"),r=o==null?void 0:o.querySelector("wui-text"),s=o==null?void 0:o.getBoundingClientRect(),y=r==null?void 0:r.getBoundingClientRect();n&&i&&!t&&e!==this.activeTab&&(i.animate([{opacity:0}],{duration:50,easing:"ease",fill:"forwards"}),n.animate([{width:"34px"}],{duration:500,easing:"ease",fill:"forwards"})),o&&s&&y&&r&&(e!==this.activeTab||t)&&(this.localTabWidth=`${Math.round(s.width+y.width)+6}px`,o.animate([{width:`${s.width+y.width}px`}],{duration:t?0:500,fill:"forwards",easing:"ease"}),r.animate([{opacity:1}],{duration:t?0:125,delay:t?0:200,fill:"forwards",easing:"ease"}))}};ee.styles=[_,T,An];xe([c({type:Array})],ee.prototype,"tabs",void 0);xe([c()],ee.prototype,"onTabChange",void 0);xe([c({type:Array})],ee.prototype,"buttons",void 0);xe([c({type:Boolean})],ee.prototype,"disabled",void 0);xe([c()],ee.prototype,"localTabWidth",void 0);xe([u()],ee.prototype,"activeTab",void 0);xe([u()],ee.prototype,"isDense",void 0);ee=xe([h("wui-tabs")],ee);const Rn=x` + wui-flex { + width: 100%; + } + + :host > wui-flex:first-child { + transform: translateY(calc(var(--wui-spacing-xxs) * -1)); + } + + wui-icon-link { + margin-right: calc(var(--wui-icon-box-size-md) * -1); + } + + wui-notice-card { + margin-bottom: var(--wui-spacing-3xs); + } + + wui-list-item > wui-text { + flex: 1; + } + + w3m-transactions-view { + max-height: 200px; + } + + .tab-content-container { + height: 300px; + overflow-y: auto; + overflow-x: hidden; + scrollbar-width: none; + } + + .tab-content-container::-webkit-scrollbar { + display: none; + } + + .account-button { + width: auto; + border: none; + display: flex; + align-items: center; + justify-content: center; + gap: var(--wui-spacing-s); + height: 48px; + padding: var(--wui-spacing-xs); + padding-right: var(--wui-spacing-s); + box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002); + background-color: var(--wui-color-gray-glass-002); + border-radius: 24px; + transition: background-color 0.2s linear; + } + + .account-button:hover { + background-color: var(--wui-color-gray-glass-005); + } + + .avatar-container { + position: relative; + } + + wui-avatar.avatar { + width: 32px; + height: 32px; + box-shadow: 0 0 0 2px var(--wui-color-gray-glass-005); + } + + wui-avatar.network-avatar { + width: 16px; + height: 16px; + position: absolute; + left: 100%; + top: 100%; + transform: translate(-75%, -75%); + box-shadow: 0 0 0 2px var(--wui-color-gray-glass-005); + } + + .account-links { + display: flex; + justify-content: space-between; + align-items: center; + } + + .account-links wui-flex { + cursor: pointer; + display: flex; + align-items: center; + justify-content: center; + flex: 1; + background: red; + align-items: center; + justify-content: center; + height: 48px; + padding: 10px; + flex: 1 0 0; + border-radius: var(--XS, 16px); + border: 1px solid var(--dark-accent-glass-010, rgba(71, 161, 255, 0.1)); + background: var(--dark-accent-glass-010, rgba(71, 161, 255, 0.1)); + transition: + background-color var(--wui-ease-out-power-1) var(--wui-duration-md), + opacity var(--wui-ease-out-power-1) var(--wui-duration-md); + will-change: background-color, opacity; + } + + .account-links wui-flex:hover { + background: var(--dark-accent-glass-015, rgba(71, 161, 255, 0.15)); + } + + .account-links wui-flex wui-icon { + width: var(--S, 20px); + height: var(--S, 20px); + } + + .account-links wui-flex wui-icon svg path { + stroke: #667dff; + } +`;var G=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let B=class extends w{constructor(){var e;super(),this.unsubscribe=[],this.caipAddress=m.state.caipAddress,this.address=g.getPlainAddress(m.state.caipAddress),this.allAccounts=m.state.allAccounts,this.profileImage=m.state.profileImage,this.profileName=m.state.profileName,this.disconnecting=!1,this.balance=m.state.balance,this.balanceSymbol=m.state.balanceSymbol,this.features=C.state.features,this.namespace=d.state.activeChain,this.chainId=(e=d.state.activeCaipNetwork)==null?void 0:e.id,this.unsubscribe.push(m.subscribeKey("caipAddress",t=>{this.address=g.getPlainAddress(t),this.caipAddress=t}),m.subscribeKey("balance",t=>this.balance=t),m.subscribeKey("balanceSymbol",t=>this.balanceSymbol=t),m.subscribeKey("profileName",t=>this.profileName=t),m.subscribeKey("profileImage",t=>this.profileImage=t),C.subscribeKey("features",t=>this.features=t),m.subscribeKey("allAccounts",t=>{this.allAccounts=t}),d.subscribeKey("activeChain",t=>this.namespace=t),d.subscribeKey("activeCaipNetwork",t=>{var n;if(t){const[o,i]=((n=t==null?void 0:t.caipNetworkId)==null?void 0:n.split(":"))||[];o&&i&&(this.namespace=o,this.chainId=i)}}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){if(!this.caipAddress)return null;const e=d.state.activeChain!==S.CHAIN.SOLANA&&this.allAccounts.length>1;return l` + ${e?this.multiAccountTemplate():this.singleAccountTemplate()} + + + ${g.formatBalance(this.balance,this.balanceSymbol)} + + + ${this.explorerBtnTemplate()} + + + + ${this.authCardTemplate()} + ${this.orderedFeaturesTemplate()} ${this.activityTemplate()} + + Disconnect + + `}onrampTemplate(){var n;if(!this.namespace)return null;const e=(n=this.features)==null?void 0:n.onramp,t=D.ONRAMP_SUPPORTED_CHAIN_NAMESPACES.includes(this.namespace);return!e||!t?null:l` + + Buy crypto + + `}orderedFeaturesTemplate(){var t;return(((t=this.features)==null?void 0:t.walletFeaturesOrder)||D.DEFAULT_FEATURES.walletFeaturesOrder).map(n=>{switch(n){case"onramp":return this.onrampTemplate();case"swaps":return this.swapsTemplate();case"send":return this.sendTemplate();default:return null}})}activityTemplate(){var n;if(!this.namespace)return null;const e=d.state.activeChain===S.CHAIN.SOLANA;return((n=this.features)==null?void 0:n.history)&&D.ACTIVITY_ENABLED_CHAIN_NAMESPACES.includes(this.namespace)?l` + + Activity + + ${e?l`Coming soon`:""} + `:null}swapsTemplate(){var n;const e=(n=this.features)==null?void 0:n.swaps,t=d.state.activeChain===S.CHAIN.EVM;return!e||!t?null:l` + + Swap + + `}sendTemplate(){var n;const e=(n=this.features)==null?void 0:n.send,t=d.state.activeChain===S.CHAIN.EVM;return!e||!t?null:l` + + Send + + `}authCardTemplate(){const e=d.state.activeChain,t=b.getConnectorId(e),n=b.getAuthConnector(),{origin:o}=location;return!n||t!==S.CONNECTOR_ID.AUTH||o.includes(D.SECURE_SITE)?null:l` + + `}handleSwitchAccountsView(){f.push("SwitchAddress")}handleClickPay(){f.push("OnRampProviders")}handleClickSwap(){f.push("Swap")}handleClickSend(){f.push("WalletSend")}explorerBtnTemplate(){return m.state.addressExplorerUrl?l` + + + Block Explorer + + + `:null}singleAccountTemplate(){return l` + + + + + ${this.profileName?R.getTruncateString({string:this.profileName,charsStart:20,charsEnd:0,truncate:"end"}):R.getTruncateString({string:this.address||"",charsStart:4,charsEnd:4,truncate:"middle"})} + + + `}multiAccountTemplate(){if(!this.address)throw new Error("w3m-account-view: No account provided");const e=this.allAccounts.find(n=>n.address===this.address),t=m.state.addressLabels.get(this.address);return this.namespace==="bip122"?this.btcAccountsTemplate():l` + + `}btcAccountsTemplate(){return l` + + {var t;return m.setCaipAddress(`bip122:${this.chainId}:${((t=this.allAccounts[e])==null?void 0:t.address)||""}`,this.namespace)}} + > + + + ${R.getTruncateString({string:this.profileName||this.address||"",charsStart:this.profileName?18:4,charsEnd:this.profileName?0:4,truncate:this.profileName?"end":"middle"})} + + + + `}onCopyAddress(){try{this.address&&(g.copyToClopboard(this.address),O.showSuccess("Address copied"))}catch{O.showError("Failed to copy")}}onTransactions(){$.sendEvent({type:"track",event:"CLICK_TRANSACTIONS",properties:{isSmartAccount:m.state.preferredAccountType===M.ACCOUNT_TYPES.SMART_ACCOUNT}}),f.push("Transactions")}async onDisconnect(){try{this.disconnecting=!0,await v.disconnect(),$.sendEvent({type:"track",event:"DISCONNECT_SUCCESS"}),A.close()}catch{$.sendEvent({type:"track",event:"DISCONNECT_ERROR"}),O.showError("Failed to disconnect")}finally{this.disconnecting=!1}}onExplorer(){const e=m.state.addressExplorerUrl;e&&g.openHref(e,"_blank")}onGoToUpgradeView(){$.sendEvent({type:"track",event:"EMAIL_UPGRADE_FROM_MODAL"}),f.push("UpgradeEmailWallet")}};B.styles=Rn;G([u()],B.prototype,"caipAddress",void 0);G([u()],B.prototype,"address",void 0);G([u()],B.prototype,"allAccounts",void 0);G([u()],B.prototype,"profileImage",void 0);G([u()],B.prototype,"profileName",void 0);G([u()],B.prototype,"disconnecting",void 0);G([u()],B.prototype,"balance",void 0);G([u()],B.prototype,"balanceSymbol",void 0);G([u()],B.prototype,"features",void 0);G([u()],B.prototype,"namespace",void 0);G([u()],B.prototype,"chainId",void 0);B=G([h("w3m-account-default-widget")],B);const Wn=x` + span { + font-weight: 500; + font-size: 40px; + color: var(--wui-color-fg-100); + line-height: 130%; /* 52px */ + letter-spacing: -1.6px; + text-align: center; + } + + .pennies { + color: var(--wui-color-fg-200); + } +`;var li=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let Ke=class extends w{constructor(){super(...arguments),this.dollars="0",this.pennies="00"}render(){return l`$${this.dollars}.${this.pennies}`}};Ke.styles=[_,Wn];li([c()],Ke.prototype,"dollars",void 0);li([c()],Ke.prototype,"pennies",void 0);Ke=li([h("wui-balance")],Ke);const En=x` + :host { + position: relative; + } + + button { + display: flex; + justify-content: center; + align-items: center; + height: 48px; + width: 100%; + background-color: var(--wui-color-accent-glass-010); + border-radius: var(--wui-border-radius-xs); + border: 1px solid var(--wui-color-accent-glass-010); + transition: background-color var(--wui-ease-out-power-1) var(--wui-duration-md); + will-change: background-color; + } + + wui-tooltip { + padding: 7px var(--wui-spacing-s) 8px var(--wui-spacing-s); + position: absolute; + top: -8px; + left: 50%; + transform: translate(-50%, -100%); + opacity: 0; + display: none; + } + + @media (hover: hover) and (pointer: fine) { + button:hover:enabled { + background-color: var(--wui-color-accent-glass-015); + } + + button:active:enabled { + background-color: var(--wui-color-accent-glass-020); + } + } +`;var ci=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let qe=class extends w{constructor(){super(...arguments),this.text="",this.icon="card"}render(){return l``}};qe.styles=[_,T,En];ci([c()],qe.prototype,"text",void 0);ci([c()],qe.prototype,"icon",void 0);qe=ci([h("wui-icon-button")],qe);const Nn=x` + button { + background-color: var(--wui-color-gray-glass-002); + border-radius: var(--wui-border-radius-3xl); + border: 1px solid var(--wui-color-gray-glass-002); + padding: var(--wui-spacing-xs) var(--wui-spacing-s) var(--wui-spacing-xs) var(--wui-spacing-xs); + position: relative; + } + + wui-avatar { + width: 32px; + height: 32px; + box-shadow: 0 0 0 0; + outline: 3px solid var(--wui-color-gray-glass-005); + } + + wui-icon-box, + wui-image { + width: 16px; + height: 16px; + border-radius: var(--wui-border-radius-3xl); + position: absolute; + left: 26px; + top: 24px; + } + + wui-image { + outline: 2px solid var(--wui-color-bg-125); + } + + wui-icon-box { + outline: 2px solid var(--wui-color-bg-200); + background-color: var(--wui-color-bg-250); + } +`;var Be=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let he=class extends w{constructor(){super(...arguments),this.networkSrc=void 0,this.avatarSrc=void 0,this.profileName="",this.address="",this.icon="chevronBottom"}render(){return l``}networkImageTemplate(){return this.networkSrc?l``:l` + + `}};he.styles=[_,T,Nn];Be([c()],he.prototype,"networkSrc",void 0);Be([c()],he.prototype,"avatarSrc",void 0);Be([c()],he.prototype,"profileName",void 0);Be([c()],he.prototype,"address",void 0);Be([c()],he.prototype,"icon",void 0);he=Be([h("wui-profile-button")],he);const On=x` + :host { + display: block; + padding: 9px var(--wui-spacing-s) 10px var(--wui-spacing-s); + border-radius: var(--wui-border-radius-xxs); + + color: var(--wui-color-bg-100); + position: relative; + } + + :host([data-variant='shade']) { + background-color: var(--wui-color-bg-150); + border: 1px solid var(--wui-color-gray-glass-005); + } + + :host([data-variant='shade']) > wui-text { + color: var(--wui-color-fg-150); + } + + :host([data-variant='fill']) { + background-color: var(--wui-color-fg-100); + border: none; + } + + wui-icon { + position: absolute; + width: 12px !important; + height: 4px !important; + } + + wui-icon[data-placement='top'] { + bottom: 0px; + left: 50%; + transform: translate(-50%, 95%); + } + + wui-icon[data-placement='bottom'] { + top: 0; + left: 50%; + transform: translate(-50%, -95%) rotate(180deg); + } + + wui-icon[data-placement='right'] { + top: 50%; + left: 0; + transform: translate(-65%, -50%) rotate(90deg); + } + + wui-icon[data-placement='left'] { + top: 50%; + right: 0%; + transform: translate(65%, -50%) rotate(270deg); + } +`;var Wt=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let Ee=class extends w{constructor(){super(...arguments),this.placement="top",this.variant="fill",this.message=""}render(){return this.dataset.variant=this.variant,l` + ${this.message}`}};Ee.styles=[_,T,On];Wt([c()],Ee.prototype,"placement",void 0);Wt([c()],Ee.prototype,"variant",void 0);Wt([c()],Ee.prototype,"message",void 0);Ee=Wt([h("wui-tooltip")],Ee);const jn=x` + :host { + width: 100%; + max-height: 280px; + overflow: scroll; + scrollbar-width: none; + } + + :host::-webkit-scrollbar { + display: none; + } +`;var Pn=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let Ft=class extends w{render(){return l``}};Ft.styles=jn;Ft=Pn([h("w3m-account-activity-widget")],Ft);const Dn=x` + .contentContainer { + height: 280px; + } + + .contentContainer > wui-icon-box { + width: 40px; + height: 40px; + border-radius: var(--wui-border-radius-xxs); + } + + .contentContainer > .textContent { + width: 65%; + } +`;var Ln=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let Gt=class extends w{render(){return l`${this.nftTemplate()}`}nftTemplate(){return l` + + + Coming soon + Stay tuned for our upcoming NFT feature + + Receive funds + `}onReceiveClick(){f.push("WalletReceive")}};Gt.styles=Dn;Gt=Ln([h("w3m-account-nfts-widget")],Gt);const Un=x` + button { + width: 100%; + display: flex; + gap: var(--wui-spacing-s); + align-items: center; + justify-content: flex-start; + padding: var(--wui-spacing-s) var(--wui-spacing-m) var(--wui-spacing-s) var(--wui-spacing-s); + background-color: var(--wui-color-gray-glass-002); + border-radius: var(--wui-border-radius-xs); + } + + wui-icon-box { + width: var(--wui-spacing-2xl); + height: var(--wui-spacing-2xl); + } + + wui-flex { + width: auto; + } +`;var ve=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let te=class extends w{constructor(){super(...arguments),this.icon="card",this.text="",this.description="",this.tag=void 0,this.iconBackgroundColor="accent-100",this.iconColor="accent-100",this.disabled=!1}render(){return l` + + `}titleTemplate(){return this.tag?l` ${this.text}${this.tag} + `:l`${this.text}`}};te.styles=[_,T,Un];ve([c()],te.prototype,"icon",void 0);ve([c()],te.prototype,"text",void 0);ve([c()],te.prototype,"description",void 0);ve([c()],te.prototype,"tag",void 0);ve([c()],te.prototype,"iconBackgroundColor",void 0);ve([c()],te.prototype,"iconColor",void 0);ve([c({type:Boolean})],te.prototype,"disabled",void 0);te=ve([h("wui-list-description")],te);const Bn=x` + :host { + width: 100%; + } + + wui-flex { + width: 100%; + } + + .contentContainer { + max-height: 280px; + overflow: scroll; + scrollbar-width: none; + } + + .contentContainer::-webkit-scrollbar { + display: none; + } +`;var Gi=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let ut=class extends w{constructor(){super(),this.unsubscribe=[],this.tokenBalance=m.state.tokenBalance,this.unsubscribe.push(m.subscribe(e=>{this.tokenBalance=e.tokenBalance}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return l`${this.tokenTemplate()}`}tokenTemplate(){var e;return this.tokenBalance&&((e=this.tokenBalance)==null?void 0:e.length)>0?l` + ${this.tokenItemTemplate()} + `:l` `}tokenItemTemplate(){var e;return(e=this.tokenBalance)==null?void 0:e.map(t=>l``)}onReceiveClick(){f.push("WalletReceive")}onBuyClick(){$.sendEvent({type:"track",event:"SELECT_BUY_CRYPTO",properties:{isSmartAccount:m.state.preferredAccountType===M.ACCOUNT_TYPES.SMART_ACCOUNT}}),f.push("OnRampProviders")}};ut.styles=Bn;Gi([u()],ut.prototype,"tokenBalance",void 0);ut=Gi([h("w3m-account-tokens-widget")],ut);const zn=x` + wui-flex { + width: 100%; + } + + wui-promo { + position: absolute; + top: -32px; + } + + wui-profile-button { + margin-top: calc(-1 * var(--wui-spacing-2l)); + } + + wui-promo + wui-profile-button { + margin-top: var(--wui-spacing-2l); + } + + wui-tabs { + width: 100%; + } + + .contentContainer { + height: 280px; + } + + .contentContainer > wui-icon-box { + width: 40px; + height: 40px; + border-radius: var(--wui-border-radius-xxs); + } + + .contentContainer > .textContent { + width: 65%; + } +`;var oe=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};const Vn=3,Mn=48,Hn=430;let q=class extends w{constructor(){super(),this.unsubscribe=[],this.address=m.state.address,this.profileImage=m.state.profileImage,this.profileName=m.state.profileName,this.network=d.state.activeCaipNetwork,this.currentTab=m.state.currentTab,this.tokenBalance=m.state.tokenBalance,this.features=C.state.features,this.networkImage=k.getNetworkImage(this.network),this.unsubscribe.push(de.subscribeNetworkImages(()=>{this.networkImage=k.getNetworkImage(this.network)}),m.subscribe(e=>{e.address?(this.address=e.address,this.profileImage=e.profileImage,this.profileName=e.profileName,this.currentTab=e.currentTab,this.tokenBalance=e.tokenBalance):A.close()}),d.subscribeKey("activeCaipNetwork",e=>this.network=e),C.subscribeKey("features",e=>this.features=e)),this.watchSwapValues()}disconnectedCallback(){this.unsubscribe.forEach(e=>e()),clearInterval(this.watchTokenBalance)}firstUpdated(){m.fetchTokenBalance()}render(){if(!this.address)throw new Error("w3m-account-view: No account provided");return l` + + + ${this.tokenBalanceTemplate()} ${this.orderedWalletFeatures()} + + + ${this.listContentTemplate()} + `}orderedWalletFeatures(){var n;const e=((n=this.features)==null?void 0:n.walletFeaturesOrder)||D.DEFAULT_FEATURES.walletFeaturesOrder;return e.every(o=>{var i;return!((i=this.features)!=null&&i[o])})?null:l` + ${e.map(o=>{switch(o){case"onramp":return this.onrampTemplate();case"swaps":return this.swapsTemplate();case"receive":return this.receiveTemplate();case"send":return this.sendTemplate();default:return null}})} + `}onrampTemplate(){var t;return((t=this.features)==null?void 0:t.onramp)?l` + + + + `:null}swapsTemplate(){var n;const e=(n=this.features)==null?void 0:n.swaps,t=d.state.activeChain===S.CHAIN.EVM;return!e||!t?null:l` + + + + + `}receiveTemplate(){var t;return((t=this.features)==null?void 0:t.receive)?l` + + + + + `:null}sendTemplate(){var n;const e=(n=this.features)==null?void 0:n.send,t=d.state.activeChain===S.CHAIN.EVM;return!e||!t?null:l` + + + + `}watchSwapValues(){this.watchTokenBalance=setInterval(()=>m.fetchTokenBalance(e=>this.onTokenBalanceError(e)),1e4)}onTokenBalanceError(e){e instanceof Error&&e.cause instanceof Response&&e.cause.status===S.HTTP_STATUS_CODES.SERVICE_UNAVAILABLE&&clearInterval(this.watchTokenBalance)}listContentTemplate(){return this.currentTab===0?l``:this.currentTab===1?l``:this.currentTab===2?l``:l``}tokenBalanceTemplate(){var e;if(this.tokenBalance&&((e=this.tokenBalance)==null?void 0:e.length)>=0){const t=g.calculateBalance(this.tokenBalance),{dollars:n="0",pennies:o="00"}=g.formatTokenBalance(t);return l``}return l``}onTabChange(e){m.setCurrentTab(e)}onProfileButtonClick(){const{allAccounts:e}=m.state;e.length>1?f.push("Profile"):f.push("AccountSettings")}onBuyClick(){f.push("OnRampProviders")}onSwapClick(){var e,t,n;(e=this.network)!=null&&e.caipNetworkId&&!D.SWAP_SUPPORTED_NETWORKS.includes((t=this.network)==null?void 0:t.caipNetworkId)?f.push("UnsupportedChain",{swapUnsupportedChain:!0}):($.sendEvent({type:"track",event:"OPEN_SWAP",properties:{network:((n=this.network)==null?void 0:n.caipNetworkId)||"",isSmartAccount:m.state.preferredAccountType===M.ACCOUNT_TYPES.SMART_ACCOUNT}}),f.push("Swap"))}onReceiveClick(){f.push("WalletReceive")}onSendClick(){var e;$.sendEvent({type:"track",event:"OPEN_SEND",properties:{network:((e=this.network)==null?void 0:e.caipNetworkId)||"",isSmartAccount:m.state.preferredAccountType===M.ACCOUNT_TYPES.SMART_ACCOUNT}}),f.push("WalletSend")}};q.styles=zn;oe([u()],q.prototype,"watchTokenBalance",void 0);oe([u()],q.prototype,"address",void 0);oe([u()],q.prototype,"profileImage",void 0);oe([u()],q.prototype,"profileName",void 0);oe([u()],q.prototype,"network",void 0);oe([u()],q.prototype,"currentTab",void 0);oe([u()],q.prototype,"tokenBalance",void 0);oe([u()],q.prototype,"features",void 0);oe([u()],q.prototype,"networkImage",void 0);q=oe([h("w3m-account-wallet-features-widget")],q);var Xi=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let Xt=class extends w{constructor(){super(),this.unsubscribe=[],this.namespace=d.state.activeChain,this.unsubscribe.push(d.subscribeKey("activeChain",e=>{this.namespace=e}))}render(){if(!this.namespace)return null;const e=b.getConnectorId(this.namespace),t=b.getAuthConnector();return l` + ${t&&e===S.CONNECTOR_ID.AUTH?this.walletFeaturesTemplate():this.defaultTemplate()} + `}walletFeaturesTemplate(){return l``}defaultTemplate(){return l``}};Xi([u()],Xt.prototype,"namespace",void 0);Xt=Xi([h("w3m-account-view")],Xt);const Kn=x` + button { + padding: 6.5px var(--wui-spacing-l) 6.5px var(--wui-spacing-xs); + display: flex; + justify-content: space-between; + width: 100%; + border-radius: var(--wui-border-radius-xs); + background-color: var(--wui-color-gray-glass-002); + } + + button[data-clickable='false'] { + pointer-events: none; + background-color: transparent; + } + + wui-image { + width: var(--wui-spacing-3xl); + height: var(--wui-spacing-3xl); + border-radius: var(--wui-border-radius-3xl); + } + + wui-avatar { + width: var(--wui-spacing-3xl); + height: var(--wui-spacing-3xl); + box-shadow: 0 0 0 0; + } + .address { + color: var(--wui-color-fg-base-100); + } + .address-description { + text-transform: capitalize; + color: var(--wui-color-fg-base-200); + } + + wui-icon-box { + position: relative; + right: 15px; + top: 15px; + border: 2px solid var(--wui-color-bg-150); + background-color: var(--wui-color-bg-125); + } +`;var ot=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let ye=class extends w{constructor(){super(...arguments),this.accountAddress="",this.accountType="",this.labels=m.state.addressLabels,this.caipNetwork=d.state.activeCaipNetwork,this.socialProvider=pe.getConnectedSocialProvider(),this.balance=0,this.fetchingBalance=!0,this.shouldShowIcon=!1,this.selected=!1}connectedCallback(){var e;super.connectedCallback(),qi.getBalance(this.accountAddress,(e=this.caipNetwork)==null?void 0:e.caipNetworkId).then(t=>{let n=this.balance;t.balances.length>0&&(n=t.balances.reduce((o,i)=>o+((i==null?void 0:i.value)||0),0)),this.balance=n,this.fetchingBalance=!1,this.requestUpdate()}).catch(()=>{this.fetchingBalance=!1,this.requestUpdate()})}render(){const e=this.getLabel(),t=d.state.activeChain,n=b.getConnectorId(t);return this.shouldShowIcon=n===S.CONNECTOR_ID.AUTH,l` + + + + ${this.shouldShowIcon?l``:l``} + + ${R.getTruncateString({string:this.accountAddress,charsStart:4,charsEnd:6,truncate:"middle"})} + ${e} + + + + ${this.fetchingBalance?l``:l` $${this.balance.toFixed(2)}`} + + + `}getLabel(){var o;let e=(o=this.labels)==null?void 0:o.get(this.accountAddress);const t=d.state.activeChain,n=b.getConnectorId(t);return!e&&n===S.CONNECTOR_ID.AUTH?e=`${this.accountType==="eoa"?this.socialProvider??"Email":"Smart"} Account`:e||(e="EOA"),e}};ye.styles=[_,T,Kn];ot([c()],ye.prototype,"accountAddress",void 0);ot([c()],ye.prototype,"accountType",void 0);ot([c({type:Boolean})],ye.prototype,"selected",void 0);ot([c({type:Function})],ye.prototype,"onSelect",void 0);ye=ot([h("wui-list-account")],ye);const qn=x` + wui-flex { + width: 100%; + } + + wui-icon-link { + margin-right: calc(var(--wui-icon-box-size-md) * -1); + } + + .account-links { + display: flex; + justify-content: space-between; + align-items: center; + } + + .account-links wui-flex { + cursor: pointer; + display: flex; + align-items: center; + justify-content: center; + flex: 1; + background: red; + align-items: center; + justify-content: center; + height: 48px; + padding: 10px; + flex: 1 0 0; + + border-radius: var(--XS, 16px); + border: 1px solid var(--dark-accent-glass-010, rgba(71, 161, 255, 0.1)); + background: var(--dark-accent-glass-010, rgba(71, 161, 255, 0.1)); + transition: background-color var(--wui-ease-out-power-1) var(--wui-duration-md); + will-change: background-color; + } + + .account-links wui-flex:hover { + background: var(--dark-accent-glass-015, rgba(71, 161, 255, 0.15)); + } + + .account-links wui-flex wui-icon { + width: var(--S, 20px); + height: var(--S, 20px); + } + + .account-links wui-flex wui-icon svg path { + stroke: #47a1ff; + } + + .account-settings-button { + padding: calc(var(--wui-spacing-m) - 1px) var(--wui-spacing-2l); + height: 40px; + border-radius: var(--wui-border-radius-xxs); + border: 1px solid var(--wui-color-gray-glass-002); + background: var(--wui-color-gray-glass-002); + cursor: pointer; + } + + .account-settings-button:hover { + background: var(--wui-color-gray-glass-005); + } +`;var ze=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let we=class extends w{constructor(){super(),this.usubscribe=[],this.address=m.state.address,this.profileImage=m.state.profileImage,this.profileName=m.state.profileName,this.accounts=m.state.allAccounts,this.loading=!1,this.usubscribe.push(m.subscribeKey("address",e=>{e?this.address=e:A.close()})),this.usubscribe.push(m.subscribeKey("profileImage",e=>{this.profileImage=e})),this.usubscribe.push(m.subscribeKey("profileName",e=>{this.profileName=e}))}disconnectedCallback(){this.usubscribe.forEach(e=>e())}render(){if(!this.address)throw new Error("w3m-profile-view: No account provided");return l` + + + + + + + ${this.profileName?R.getTruncateString({string:this.profileName,charsStart:20,charsEnd:0,truncate:"end"}):R.getTruncateString({string:this.address,charsStart:4,charsEnd:6,truncate:"middle"})} + + + + + + + ${this.accountsTemplate()} + + `}accountsTemplate(){return l` + + Your accounts + + + ${this.accounts.map(e=>this.accountTemplate(e))} + + `}async onSwitchAccount(e){if(this.loading=!0,b.getAuthConnector()){const n=e.type;await v.setPreferredAccountType(n)}m.setShouldUpdateToAddress(e.address,d.state.activeChain),this.loading=!1}accountTemplate(e){return l` + ${e.address===this.address?"":l`this.onSwitchAccount(e)} + .loading=${this.loading} + >Switch`} + `}onCopyAddress(){try{this.address&&(g.copyToClopboard(this.address),O.showSuccess("Address copied"))}catch{O.showError("Failed to copy")}}};we.styles=qn;ze([u()],we.prototype,"address",void 0);ze([u()],we.prototype,"profileImage",void 0);ze([u()],we.prototype,"profileName",void 0);ze([u()],we.prototype,"accounts",void 0);ze([u()],we.prototype,"loading",void 0);we=ze([h("w3m-profile-view")],we);const Fn=x` + wui-flex { + width: 100%; + background-color: var(--wui-color-gray-glass-005); + border-radius: var(--wui-border-radius-m); + padding: var(--wui-spacing-1xs) var(--wui-spacing-s) var(--wui-spacing-1xs) + var(--wui-spacing-1xs); + } +`;var Et=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let Ne=class extends w{constructor(){super(...arguments),this.imageSrc="",this.text="",this.size=""}render(){return l` + + + ${this.text} + + `}};Ne.styles=[_,T,Fn];Et([c()],Ne.prototype,"imageSrc",void 0);Et([c()],Ne.prototype,"text",void 0);Et([c()],Ne.prototype,"size",void 0);Ne=Et([h("wui-banner-img")],Ne);const Gn=x` + wui-avatar { + width: var(--wui-spacing-3xl); + height: var(--wui-spacing-3xl); + box-shadow: 0 0 0 0; + } + + wui-icon-box { + position: relative; + right: 15px; + top: 15px; + border: 2px solid var(--wui-color-bg-150); + background-color: var(--wui-color-bg-125); + } +`;var ui=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let Fe=class extends w{constructor(){super(),this.metadata=C.state.metadata,this.allAccounts=m.state.allAccounts||[],this.balances={},this.labels=m.state.addressLabels,this.currentAddress=m.state.address||"",this.caipNetwork=d.state.activeCaipNetwork,m.subscribeKey("allAccounts",e=>{this.allAccounts=e})}connectedCallback(){super.connectedCallback(),this.allAccounts.forEach(e=>{var t;qi.getBalance(e.address,(t=this.caipNetwork)==null?void 0:t.caipNetworkId).then(n=>{let o=this.balances[e.address]||0;n.balances.length>0&&(o=n.balances.reduce((i,r)=>i+((r==null?void 0:r.value)||0),0)),this.balances[e.address]=o,this.requestUpdate()})})}getAddressIcon(e){return e==="smartAccount"?"lightbulb":"mail"}render(){var e,t;return l` + + + + + ${this.allAccounts.map((n,o)=>this.getAddressTemplate(n,o))} + + `}getAddressTemplate(e,t){var s,y,N,E;const n=(s=this.labels)==null?void 0:s.get(e.address),o=d.state.activeChain,r=b.getConnectorId(o)===S.CONNECTOR_ID.AUTH;return l` + + + + ${r?l``:l``} + + ${n||R.getTruncateString({string:e.address,charsStart:4,charsEnd:6,truncate:"middle"})} + + ${typeof this.balances[e.address]=="number"?`$${(y=this.balances[e.address])==null?void 0:y.toFixed(2)}`:l``} + + + + + ${((N=e.address)==null?void 0:N.toLowerCase())===((E=this.currentAddress)==null?void 0:E.toLowerCase())?"":l` + this.onSwitchAddress(e.address)} + >Switch to + `} + + + `}onSwitchAddress(e){const t=d.state.activeCaipNetwork,n=t==null?void 0:t.chainNamespace,o=`${n}:${t==null?void 0:t.id}:${e}`;m.setCaipAddress(o,n),A.close()}};Fe.styles=Gn;ui([u()],Fe.prototype,"allAccounts",void 0);ui([u()],Fe.prototype,"balances",void 0);Fe=ui([h("w3m-switch-address-view")],Fe);const Xn=x` + :host { + display: flex; + align-items: center; + justify-content: center; + } + + label { + position: relative; + display: inline-block; + width: 32px; + height: 22px; + } + + input { + width: 0; + height: 0; + opacity: 0; + } + + span { + position: absolute; + cursor: pointer; + top: 0; + left: 0; + right: 0; + bottom: 0; + background-color: var(--wui-color-blue-100); + border-width: 1px; + border-style: solid; + border-color: var(--wui-color-gray-glass-002); + border-radius: 999px; + transition: + background-color var(--wui-ease-inout-power-1) var(--wui-duration-md), + border-color var(--wui-ease-inout-power-1) var(--wui-duration-md); + will-change: background-color, border-color; + } + + span:before { + position: absolute; + content: ''; + height: 16px; + width: 16px; + left: 3px; + top: 2px; + background-color: var(--wui-color-inverse-100); + transition: transform var(--wui-ease-inout-power-1) var(--wui-duration-lg); + will-change: transform; + border-radius: 50%; + } + + input:checked + span { + border-color: var(--wui-color-gray-glass-005); + background-color: var(--wui-color-blue-100); + } + + input:not(:checked) + span { + background-color: var(--wui-color-gray-glass-010); + } + + input:checked + span:before { + transform: translateX(calc(100% - 7px)); + } +`;var Yi=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let dt=class extends w{constructor(){super(...arguments),this.inputElementRef=ri(),this.checked=void 0}render(){return l` + + `}dispatchChangeEvent(){var e;this.dispatchEvent(new CustomEvent("switchChange",{detail:(e=this.inputElementRef.value)==null?void 0:e.checked,bubbles:!0,composed:!0}))}};dt.styles=[_,T,bn,Xn];Yi([c({type:Boolean})],dt.prototype,"checked",void 0);dt=Yi([h("wui-switch")],dt);const Yn=x` + :host { + height: 100%; + } + + button { + display: flex; + align-items: center; + justify-content: center; + column-gap: var(--wui-spacing-1xs); + padding: var(--wui-spacing-xs) var(--wui-spacing-s); + background-color: var(--wui-color-gray-glass-002); + border-radius: var(--wui-border-radius-xs); + box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002); + transition: background-color var(--wui-ease-out-power-1) var(--wui-duration-md); + will-change: background-color; + cursor: pointer; + } + + wui-switch { + pointer-events: none; + } +`;var Qi=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let pt=class extends w{constructor(){super(...arguments),this.checked=void 0}render(){return l` + + `}};pt.styles=[_,T,Yn];Qi([c({type:Boolean})],pt.prototype,"checked",void 0);pt=Qi([h("wui-certified-switch")],pt);const Qn=x` + button { + background-color: var(--wui-color-fg-300); + border-radius: var(--wui-border-radius-4xs); + width: 16px; + height: 16px; + } + + button:disabled { + background-color: var(--wui-color-bg-300); + } + + wui-icon { + color: var(--wui-color-bg-200) !important; + } + + button:focus-visible { + background-color: var(--wui-color-fg-250); + border: 1px solid var(--wui-color-accent-100); + } + + @media (hover: hover) and (pointer: fine) { + button:hover:enabled { + background-color: var(--wui-color-fg-250); + } + + button:active:enabled { + background-color: var(--wui-color-fg-225); + } + } +`;var Ji=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let ht=class extends w{constructor(){super(...arguments),this.icon="copy"}render(){return l` + + `}};ht.styles=[_,T,Qn];Ji([c()],ht.prototype,"icon",void 0);ht=Ji([h("wui-input-element")],ht);const Jn=x` + :host { + position: relative; + display: inline-block; + width: 100%; + } +`;var Zn=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let Yt=class extends w{constructor(){super(...arguments),this.inputComponentRef=ri()}render(){return l` + + + + `}clearValue(){const e=this.inputComponentRef.value,t=e==null?void 0:e.inputElementRef.value;t&&(t.value="",t.focus(),t.dispatchEvent(new Event("input")))}};Yt.styles=[_,Jn];Yt=Zn([h("wui-search-bar")],Yt);const Zi=oi` + +`,eo=x` + :host { + display: flex; + flex-direction: column; + align-items: center; + width: 104px; + row-gap: var(--wui-spacing-xs); + padding: var(--wui-spacing-xs) 10px; + background-color: var(--wui-color-gray-glass-002); + border-radius: clamp(0px, var(--wui-border-radius-xs), 20px); + position: relative; + } + + wui-shimmer[data-type='network'] { + border: none; + -webkit-clip-path: var(--wui-path-network); + clip-path: var(--wui-path-network); + } + + svg { + position: absolute; + width: 48px; + height: 54px; + z-index: 1; + } + + svg > path { + stroke: var(--wui-color-gray-glass-010); + stroke-width: 1px; + } + + @media (max-width: 350px) { + :host { + width: 100%; + } + } +`;var en=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let wt=class extends w{constructor(){super(...arguments),this.type="wallet"}render(){return l` + ${this.shimmerTemplate()} + + `}shimmerTemplate(){return this.type==="network"?l` + ${Zi}`:l``}};wt.styles=[_,T,eo];en([c()],wt.prototype,"type",void 0);wt=en([h("wui-card-select-loader")],wt);const to=x` + :host { + display: grid; + width: inherit; + height: inherit; + } +`;var X=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let z=class extends w{render(){return this.style.cssText=` + grid-template-rows: ${this.gridTemplateRows}; + grid-template-columns: ${this.gridTemplateColumns}; + justify-items: ${this.justifyItems}; + align-items: ${this.alignItems}; + justify-content: ${this.justifyContent}; + align-content: ${this.alignContent}; + column-gap: ${this.columnGap&&`var(--wui-spacing-${this.columnGap})`}; + row-gap: ${this.rowGap&&`var(--wui-spacing-${this.rowGap})`}; + gap: ${this.gap&&`var(--wui-spacing-${this.gap})`}; + padding-top: ${this.padding&&R.getSpacingStyles(this.padding,0)}; + padding-right: ${this.padding&&R.getSpacingStyles(this.padding,1)}; + padding-bottom: ${this.padding&&R.getSpacingStyles(this.padding,2)}; + padding-left: ${this.padding&&R.getSpacingStyles(this.padding,3)}; + margin-top: ${this.margin&&R.getSpacingStyles(this.margin,0)}; + margin-right: ${this.margin&&R.getSpacingStyles(this.margin,1)}; + margin-bottom: ${this.margin&&R.getSpacingStyles(this.margin,2)}; + margin-left: ${this.margin&&R.getSpacingStyles(this.margin,3)}; + `,l``}};z.styles=[_,to];X([c()],z.prototype,"gridTemplateRows",void 0);X([c()],z.prototype,"gridTemplateColumns",void 0);X([c()],z.prototype,"justifyItems",void 0);X([c()],z.prototype,"alignItems",void 0);X([c()],z.prototype,"justifyContent",void 0);X([c()],z.prototype,"alignContent",void 0);X([c()],z.prototype,"columnGap",void 0);X([c()],z.prototype,"rowGap",void 0);X([c()],z.prototype,"gap",void 0);X([c()],z.prototype,"padding",void 0);X([c()],z.prototype,"margin",void 0);z=X([h("wui-grid")],z);const io=x` + :host { + position: relative; + background-color: var(--wui-color-gray-glass-002); + display: flex; + justify-content: center; + align-items: center; + width: var(--local-size); + height: var(--local-size); + border-radius: inherit; + border-radius: var(--local-border-radius); + } + + :host > wui-flex { + overflow: hidden; + border-radius: inherit; + border-radius: var(--local-border-radius); + } + + :host::after { + content: ''; + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; + border-radius: inherit; + border: 1px solid var(--wui-color-gray-glass-010); + pointer-events: none; + } + + :host([name='Extension'])::after { + border: 1px solid var(--wui-color-accent-glass-010); + } + + :host([data-wallet-icon='allWallets']) { + background-color: var(--wui-all-wallets-bg-100); + } + + :host([data-wallet-icon='allWallets'])::after { + border: 1px solid var(--wui-color-accent-glass-010); + } + + wui-icon[data-parent-size='inherit'] { + width: 75%; + height: 75%; + align-items: center; + } + + wui-icon[data-parent-size='sm'] { + width: 18px; + height: 18px; + } + + wui-icon[data-parent-size='md'] { + width: 24px; + height: 24px; + } + + wui-icon[data-parent-size='lg'] { + width: 42px; + height: 42px; + } + + wui-icon[data-parent-size='full'] { + width: 100%; + height: 100%; + } + + :host > wui-icon-box { + position: absolute; + overflow: hidden; + right: -1px; + bottom: -2px; + z-index: 1; + border: 2px solid var(--wui-color-bg-150, #1e1f1f); + padding: 1px; + } +`;var Ie=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let se=class extends w{constructor(){super(...arguments),this.size="md",this.name="",this.installed=!1,this.badgeSize="xs"}render(){let e="xxs";return this.size==="lg"?e="m":this.size==="md"?e="xs":e="xxs",this.style.cssText=` + --local-border-radius: var(--wui-border-radius-${e}); + --local-size: var(--wui-wallet-image-size-${this.size}); + `,this.walletIcon&&(this.dataset.walletIcon=this.walletIcon),l` + ${this.templateVisual()} + `}templateVisual(){return this.imageSrc?l``:this.walletIcon?l``:l``}};se.styles=[T,_,io];Ie([c()],se.prototype,"size",void 0);Ie([c()],se.prototype,"name",void 0);Ie([c()],se.prototype,"imageSrc",void 0);Ie([c()],se.prototype,"walletIcon",void 0);Ie([c({type:Boolean})],se.prototype,"installed",void 0);Ie([c()],se.prototype,"badgeSize",void 0);se=Ie([h("wui-wallet-image")],se);const no=x` + button { + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + cursor: pointer; + width: 104px; + row-gap: var(--wui-spacing-xs); + padding: var(--wui-spacing-s) var(--wui-spacing-0); + background-color: var(--wui-color-gray-glass-002); + border-radius: clamp(0px, var(--wui-border-radius-xs), 20px); + transition: + color var(--wui-duration-lg) var(--wui-ease-out-power-1), + background-color var(--wui-duration-lg) var(--wui-ease-out-power-1), + border-radius var(--wui-duration-lg) var(--wui-ease-out-power-1); + will-change: background-color, color, border-radius; + outline: none; + border: none; + } + + button > wui-flex > wui-text { + color: var(--wui-color-fg-100); + max-width: 86px; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + justify-content: center; + } + + button > wui-flex > wui-text.certified { + max-width: 66px; + } + + button:hover:enabled { + background-color: var(--wui-color-gray-glass-005); + } + + button:disabled > wui-flex > wui-text { + color: var(--wui-color-gray-glass-015); + } + + [data-selected='true'] { + background-color: var(--wui-color-accent-glass-020); + } + + @media (hover: hover) and (pointer: fine) { + [data-selected='true']:hover:enabled { + background-color: var(--wui-color-accent-glass-015); + } + } + + [data-selected='true']:active:enabled { + background-color: var(--wui-color-accent-glass-010); + } + + @media (max-width: 350px) { + button { + width: 100%; + } + } +`;var rt=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let Ce=class extends w{constructor(){super(),this.observer=new IntersectionObserver(()=>{}),this.visible=!1,this.imageSrc=void 0,this.imageLoading=!1,this.wallet=void 0,this.observer=new IntersectionObserver(e=>{e.forEach(t=>{t.isIntersecting?(this.visible=!0,this.fetchImageSrc()):this.visible=!1})},{threshold:.01})}firstUpdated(){this.observer.observe(this)}disconnectedCallback(){this.observer.disconnect()}render(){var t,n;const e=((t=this.wallet)==null?void 0:t.badge_type)==="certified";return l` + + `}imageTemplate(){var e,t;return!this.visible&&!this.imageSrc||this.imageLoading?this.shimmerTemplate():l` + + + `}shimmerTemplate(){return l``}async fetchImageSrc(){this.wallet&&(this.imageSrc=k.getWalletImage(this.wallet),!this.imageSrc&&(this.imageLoading=!0,this.imageSrc=await k.fetchWalletImage(this.wallet.image_id),this.imageLoading=!1))}};Ce.styles=no;rt([u()],Ce.prototype,"visible",void 0);rt([u()],Ce.prototype,"imageSrc",void 0);rt([u()],Ce.prototype,"imageLoading",void 0);rt([c()],Ce.prototype,"wallet",void 0);Ce=rt([h("w3m-all-wallets-list-item")],Ce);const oo=x` + wui-grid { + max-height: clamp(360px, 400px, 80vh); + overflow: scroll; + scrollbar-width: none; + grid-auto-rows: min-content; + grid-template-columns: repeat(auto-fill, 104px); + } + + @media (max-width: 350px) { + wui-grid { + grid-template-columns: repeat(2, 1fr); + } + } + + wui-grid[data-scroll='false'] { + overflow: hidden; + } + + wui-grid::-webkit-scrollbar { + display: none; + } + + wui-loading-spinner { + padding-top: var(--wui-spacing-l); + padding-bottom: var(--wui-spacing-l); + justify-content: center; + grid-column: 1 / span 4; + } +`;var at=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};const Ni="local-paginator";let $e=class extends w{constructor(){super(),this.unsubscribe=[],this.paginationObserver=void 0,this.loading=!I.state.wallets.length,this.wallets=I.state.wallets,this.recommended=I.state.recommended,this.featured=I.state.featured,this.unsubscribe.push(I.subscribeKey("wallets",e=>this.wallets=e),I.subscribeKey("recommended",e=>this.recommended=e),I.subscribeKey("featured",e=>this.featured=e))}firstUpdated(){this.initialFetch(),this.createPaginationObserver()}disconnectedCallback(){var e;this.unsubscribe.forEach(t=>t()),(e=this.paginationObserver)==null||e.disconnect()}render(){return l` + + ${this.loading?this.shimmerTemplate(16):this.walletsTemplate()} + ${this.paginationLoaderTemplate()} + + `}async initialFetch(){var t;this.loading=!0;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("wui-grid");e&&(await I.fetchWallets({page:1}),await e.animate([{opacity:1},{opacity:0}],{duration:200,fill:"forwards",easing:"ease"}).finished,this.loading=!1,e.animate([{opacity:0},{opacity:1}],{duration:200,fill:"forwards",easing:"ease"}))}shimmerTemplate(e,t){return[...Array(e)].map(()=>l` + + `)}walletsTemplate(){const e=g.uniqueBy([...this.featured,...this.recommended,...this.wallets],"id");return Ae.markWalletsAsInstalled(e).map(n=>l` + this.onConnectWallet(n)} + .wallet=${n} + > + `)}paginationLoaderTemplate(){const{wallets:e,recommended:t,featured:n,count:o}=I.state,i=window.innerWidth<352?3:4,r=e.length+t.length;let y=Math.ceil(r/i)*i-r+i;return y-=e.length?n.length%i:0,o===0&&n.length>0?null:o===0||[...n,...e,...t].length{if(n!=null&&n.isIntersecting&&!this.loading){const{page:o,count:i,wallets:r}=I.state;r.length=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let Oe=class extends w{constructor(){super(...arguments),this.prevQuery="",this.prevBadge=void 0,this.loading=!0,this.query=""}render(){return this.onSearch(),this.loading?l``:this.walletsTemplate()}async onSearch(){(this.query.trim()!==this.prevQuery.trim()||this.badge!==this.prevBadge)&&(this.prevQuery=this.query,this.prevBadge=this.badge,this.loading=!0,await I.searchWallet({search:this.query,badge:this.badge}),this.loading=!1)}walletsTemplate(){const{search:e}=I.state,t=Ae.markWalletsAsInstalled(e);return e.length?l` + + ${t.map(n=>l` + this.onConnectWallet(n)} + .wallet=${n} + data-testid="wallet-search-item-${n.id}" + > + `)} + + `:l` + + + + No Wallet found + + + `}onConnectWallet(e){b.selectWalletConnector(e)}};Oe.styles=ro;Nt([u()],Oe.prototype,"loading",void 0);Nt([c()],Oe.prototype,"query",void 0);Nt([c()],Oe.prototype,"badge",void 0);Oe=Nt([h("w3m-all-wallets-search")],Oe);var di=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let ft=class extends w{constructor(){super(...arguments),this.search="",this.onDebouncedSearch=g.debounce(e=>{this.search=e})}render(){const e=this.search.length>=2;return l` + + + + ${this.qrButtonTemplate()} + + ${e||this.badge?l``:l``} + `}onInputChange(e){this.onDebouncedSearch(e.detail)}onClick(){if(this.badge==="certified"){this.badge=void 0;return}this.badge="certified",O.showSvg("Only WalletConnect certified",{icon:"walletConnectBrown",iconColor:"accent-100"})}qrButtonTemplate(){return g.isMobile()?l` + + `:null}onWalletConnectQr(){f.push("ConnectingWalletConnect")}};di([u()],ft.prototype,"search",void 0);di([u()],ft.prototype,"badge",void 0);ft=di([h("w3m-all-wallets-view")],ft);const ao=x` + button { + column-gap: var(--wui-spacing-s); + padding: 16.5px var(--wui-spacing-l) 16.5px var(--wui-spacing-xs); + width: 100%; + background-color: var(--wui-color-gray-glass-002); + border-radius: var(--wui-border-radius-xs); + color: var(--wui-color-fg-100); + justify-content: center; + align-items: center; + } + + button:disabled { + background-color: var(--wui-color-gray-glass-015); + color: var(--wui-color-gray-glass-015); + } +`;var Ot=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let je=class extends w{constructor(){super(...arguments),this.text="",this.disabled=!1,this.tabIdx=void 0}render(){return l` + + `}};je.styles=[_,T,ao];Ot([c()],je.prototype,"text",void 0);Ot([c({type:Boolean})],je.prototype,"disabled",void 0);Ot([c()],je.prototype,"tabIdx",void 0);je=Ot([h("wui-list-button")],je);const so=x` + wui-separator { + margin: var(--wui-spacing-s) calc(var(--wui-spacing-s) * -1); + width: calc(100% + var(--wui-spacing-s) * 2); + } + + wui-email-input { + width: 100%; + } + + form { + width: 100%; + display: block; + position: relative; + } + + wui-icon-link, + wui-loading-spinner { + position: absolute; + top: 50%; + transform: translateY(-50%); + } + + wui-icon-link { + right: var(--wui-spacing-xs); + } + + wui-loading-spinner { + right: var(--wui-spacing-m); + } + + wui-text { + margin: var(--wui-spacing-xxs) var(--wui-spacing-m) var(--wui-spacing-0) var(--wui-spacing-m); + } +`;var st=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let ke=class extends w{constructor(){super(...arguments),this.unsubscribe=[],this.formRef=ri(),this.email="",this.loading=!1,this.error=""}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}firstUpdated(){var e;(e=this.formRef.value)==null||e.addEventListener("keydown",t=>{t.key==="Enter"&&this.onSubmitEmail(t)})}render(){return l` +
+ + + + ${this.submitButtonTemplate()}${this.loadingTemplate()} + +
+ ${this.templateError()} + `}submitButtonTemplate(){return!this.loading&&this.email.length>3?l` + + + `:null}loadingTemplate(){return this.loading?l``:null}templateError(){return this.error?l`${this.error}`:null}onEmailInputChange(e){this.email=e.detail.trim(),this.error=""}async onSubmitEmail(e){if(!S.AUTH_CONNECTOR_SUPPORTED_CHAINS.find(n=>n===d.state.activeChain)){const n=d.getFirstCaipNetworkSupportsAuthConnector();if(n){f.push("SwitchNetwork",{network:n});return}}try{if(this.loading)return;this.loading=!0,e.preventDefault();const n=b.getAuthConnector();if(!n)throw new Error("w3m-email-login-widget: Auth connector not found");const{action:o}=await n.provider.connectEmail({email:this.email});$.sendEvent({type:"track",event:"EMAIL_SUBMITTED"}),o==="VERIFY_OTP"?($.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_SENT"}),f.push("EmailVerifyOtp",{email:this.email})):o==="VERIFY_DEVICE"?f.push("EmailVerifyDevice",{email:this.email}):o==="CONNECT"&&(await v.connectExternal(n,d.state.activeChain),f.replace("Account"))}catch(n){const o=g.parseError(n);o!=null&&o.includes("Invalid email")?this.error="Invalid email. Try again.":O.showError(n)}finally{this.loading=!1}}onFocusEvent(){$.sendEvent({type:"track",event:"EMAIL_LOGIN_SELECTED"})}};ke.styles=so;st([c()],ke.prototype,"tabIdx",void 0);st([u()],ke.prototype,"email",void 0);st([u()],ke.prototype,"loading",void 0);st([u()],ke.prototype,"error",void 0);ke=st([h("w3m-email-login-widget")],ke);const lo=x` + :host { + display: block; + width: 100%; + } + + button { + width: 100%; + height: 56px; + background: var(--wui-color-gray-glass-002); + border-radius: var(--wui-border-radius-xs); + } +`;var jt=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let Pe=class extends w{constructor(){super(...arguments),this.logo="google",this.disabled=!1,this.tabIdx=void 0}render(){return l` + + `}};Pe.styles=[_,T,lo];jt([c()],Pe.prototype,"logo",void 0);jt([c({type:Boolean})],Pe.prototype,"disabled",void 0);jt([c()],Pe.prototype,"tabIdx",void 0);Pe=jt([h("wui-logo-select")],Pe);const co=x` + wui-separator { + margin: var(--wui-spacing-m) calc(var(--wui-spacing-m) * -1) var(--wui-spacing-m) + calc(var(--wui-spacing-m) * -1); + width: calc(100% + var(--wui-spacing-s) * 2); + } +`;var Ve=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};const Oi=2,ji=6;let fe=class extends w{constructor(){super(),this.unsubscribe=[],this.walletGuide="get-started",this.tabIdx=void 0,this.connectors=b.state.connectors,this.features=C.state.features,this.authConnector=this.connectors.find(e=>e.type==="AUTH"),this.unsubscribe.push(b.subscribeKey("connectors",e=>{this.connectors=e,this.authConnector=this.connectors.find(t=>t.type==="AUTH")}),C.subscribeKey("features",e=>this.features=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return l` + + ${this.topViewTemplate()}${this.bottomViewTemplate()} + + `}topViewTemplate(){var n;const e=this.walletGuide==="explore";let t=(n=this.features)==null?void 0:n.socials;return!t&&e?(t=D.DEFAULT_FEATURES.socials,this.renderTopViewContent(t)):t?this.renderTopViewContent(t):null}renderTopViewContent(e){return e.length===2?l` + ${e.slice(0,Oi).map(t=>l`{this.onSocialClick(t)}} + logo=${t} + tabIdx=${p(this.tabIdx)} + >`)} + `:l` {this.onSocialClick(e[0])}} + logo=${p(e[0])} + align="center" + name=${`Continue with ${e[0]}`} + tabIdx=${p(this.tabIdx)} + >`}bottomViewTemplate(){var o;let e=(o=this.features)==null?void 0:o.socials;const t=this.walletGuide==="explore";return(!this.authConnector||!e||!(e!=null&&e.length))&&t&&(e=D.DEFAULT_FEATURES.socials),!e||e.length<=Oi?null:e&&e.length>ji?l` + ${e.slice(1,ji-1).map(i=>l`{this.onSocialClick(i)}} + logo=${i} + tabIdx=${p(this.tabIdx)} + >`)} + + `:e?l` + ${e.slice(1,e.length).map(i=>l`{this.onSocialClick(i)}} + logo=${i} + tabIdx=${p(this.tabIdx)} + >`)} + `:null}onMoreSocialsClick(){f.push("ConnectSocials")}async onSocialClick(e){var n,o;if(!S.AUTH_CONNECTOR_SUPPORTED_CHAINS.find(i=>i===d.state.activeChain)){const i=d.getFirstCaipNetworkSupportsAuthConnector();if(i){f.push("SwitchNetwork",{network:i});return}}if(e&&(m.setSocialProvider(e,d.state.activeChain),$.sendEvent({type:"track",event:"SOCIAL_LOGIN_STARTED",properties:{provider:e}})),e===vn.Farcaster){f.push("ConnectingFarcaster");const i=b.getAuthConnector();if(i&&!m.state.farcasterUrl)try{const{url:r}=await i.provider.getFarcasterUri();m.setFarcasterUrl(r,d.state.activeChain)}catch(r){f.goBack(),O.showError(r)}}else{f.push("ConnectingSocial");const i=b.getAuthConnector();try{if(i&&e){if(g.isTelegram()||(this.popupWindow=g.returnOpenHref("","popupWindow","width=600,height=800,scrollbars=yes")),this.popupWindow)m.setSocialWindow(this.popupWindow,d.state.activeChain);else if(!g.isTelegram())throw new Error("Something went wrong");const{uri:r}=await i.provider.getSocialRedirectUri({provider:e});if(!r)throw(n=this.popupWindow)==null||n.close(),new Error("Something went wrong");if(this.popupWindow&&(this.popupWindow.location.href=r),g.isTelegram()){pe.setTelegramSocialProvider(e);const s=g.formatTelegramSocialLoginUrl(r);return g.openHref(s,"_top")}}}catch{(o=this.popupWindow)==null||o.close(),O.showError("Something went wrong")}}}};fe.styles=co;Ve([c()],fe.prototype,"walletGuide",void 0);Ve([c()],fe.prototype,"tabIdx",void 0);Ve([u()],fe.prototype,"connectors",void 0);Ve([u()],fe.prototype,"features",void 0);Ve([u()],fe.prototype,"authConnector",void 0);fe=Ve([h("w3m-social-login-widget")],fe);const uo=x` + :host { + padding-bottom: var(--wui-spacing-s); + } + wui-flex { + width: 100%; + } + + .wallet-guide { + width: 100%; + } + + .chip-box { + width: fit-content; + background-color: var(--wui-color-gray-glass-005); + border-radius: var(--wui-border-radius-3xl); + } +`;var pi=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let Ge=class extends w{constructor(){super(...arguments),this.walletGuide="get-started"}render(){return this.walletGuide==="explore"?l` + + Looking for a self-custody wallet? + + + + + + `:l` + Haven't got a wallet? + + Get started + + `}onGetStarted(){f.push("Create")}};Ge.styles=uo;pi([c()],Ge.prototype,"tabIdx",void 0);pi([c()],Ge.prototype,"walletGuide",void 0);Ge=pi([h("w3m-wallet-guide")],Ge);const po=x` + :host { + position: relative; + border-radius: var(--wui-border-radius-xxs); + width: 40px; + height: 40px; + overflow: hidden; + background: var(--wui-color-gray-glass-002); + display: flex; + justify-content: center; + align-items: center; + flex-wrap: wrap; + gap: var(--wui-spacing-4xs); + padding: 3.75px !important; + } + + :host::after { + content: ''; + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; + border-radius: inherit; + border: 1px solid var(--wui-color-gray-glass-010); + pointer-events: none; + } + + :host > wui-wallet-image { + width: 14px; + height: 14px; + border-radius: var(--wui-border-radius-5xs); + } + + :host > wui-flex { + padding: 2px; + position: fixed; + overflow: hidden; + left: 34px; + bottom: 8px; + background: var(--dark-background-150, #1e1f1f); + border-radius: 50%; + z-index: 2; + display: flex; + } +`;var tn=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};const Ht=4;let gt=class extends w{constructor(){super(...arguments),this.walletImages=[]}render(){const e=this.walletImages.lengthl` + + `)} + ${e?[...Array(Ht-this.walletImages.length)].map(()=>l` `):null} + + + `}};gt.styles=[_,po];tn([c({type:Array})],gt.prototype,"walletImages",void 0);gt=tn([h("wui-all-wallets-image")],gt);const ho=x` + button { + column-gap: var(--wui-spacing-s); + padding: 7px var(--wui-spacing-l) 7px var(--wui-spacing-xs); + width: 100%; + background-color: var(--wui-color-gray-glass-002); + border-radius: var(--wui-border-radius-xs); + color: var(--wui-color-fg-100); + } + + button > wui-text:nth-child(2) { + display: flex; + flex: 1; + } + + button:disabled { + background-color: var(--wui-color-gray-glass-015); + color: var(--wui-color-gray-glass-015); + } + + button:disabled > wui-tag { + background-color: var(--wui-color-gray-glass-010); + color: var(--wui-color-fg-300); + } + + wui-icon { + color: var(--wui-color-fg-200) !important; + } +`;var V=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let P=class extends w{constructor(){super(...arguments),this.walletImages=[],this.imageSrc="",this.name="",this.tabIdx=void 0,this.installed=!1,this.disabled=!1,this.showAllWallets=!1,this.loading=!1,this.loadingSpinnerColor="accent-100"}render(){return l` + + `}templateAllWallets(){return this.showAllWallets&&this.imageSrc?l` `:this.showAllWallets&&this.walletIcon?l` `:null}templateWalletImage(){return!this.showAllWallets&&this.imageSrc?l``:!this.showAllWallets&&!this.imageSrc?l``:null}templateStatus(){return this.loading?l``:this.tagLabel&&this.tagVariant?l`${this.tagLabel}`:this.icon?l``:null}};P.styles=[_,T,ho];V([c({type:Array})],P.prototype,"walletImages",void 0);V([c()],P.prototype,"imageSrc",void 0);V([c()],P.prototype,"name",void 0);V([c()],P.prototype,"tagLabel",void 0);V([c()],P.prototype,"tagVariant",void 0);V([c()],P.prototype,"icon",void 0);V([c()],P.prototype,"walletIcon",void 0);V([c()],P.prototype,"tabIdx",void 0);V([c({type:Boolean})],P.prototype,"installed",void 0);V([c({type:Boolean})],P.prototype,"disabled",void 0);V([c({type:Boolean})],P.prototype,"showAllWallets",void 0);V([c({type:Boolean})],P.prototype,"loading",void 0);V([c({type:String})],P.prototype,"loadingSpinnerColor",void 0);P=V([h("wui-list-wallet")],P);var lt=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let De=class extends w{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=b.state.connectors,this.count=I.state.count,this.isFetchingRecommendedWallets=I.state.isFetchingRecommendedWallets,this.unsubscribe.push(b.subscribeKey("connectors",e=>this.connectors=e),I.subscribeKey("count",e=>this.count=e),I.subscribeKey("isFetchingRecommendedWallets",e=>this.isFetchingRecommendedWallets=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){const e=this.connectors.find(s=>s.id==="walletConnect"),{allWallets:t}=C.state;if(!e||t==="HIDE"||t==="ONLY_MOBILE"&&!g.isMobile())return null;const n=I.state.featured.length,o=this.count+n,i=o<10?o:Math.floor(o/10)*10,r=i + `}onAllWallets(){$.sendEvent({type:"track",event:"CLICK_ALL_WALLETS"}),f.push("AllWallets")}};lt([c()],De.prototype,"tabIdx",void 0);lt([u()],De.prototype,"connectors",void 0);lt([u()],De.prototype,"count",void 0);lt([u()],De.prototype,"isFetchingRecommendedWallets",void 0);De=lt([h("w3m-all-wallets-widget")],De);var hi=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let mt=class extends w{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=b.state.connectors,this.unsubscribe.push(b.subscribeKey("connectors",e=>this.connectors=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){const e=this.connectors.filter(t=>t.type==="ANNOUNCED");return e!=null&&e.length?l` + + ${e.map(t=>{var n,o;return(n=t.info)!=null&&n.rdns&&I.state.excludedRDNS&&I.state.excludedRDNS.includes((o=t==null?void 0:t.info)==null?void 0:o.rdns)?null:l` + this.onConnector(t)} + tagVariant="success" + tagLabel="installed" + data-testid=${`wallet-selector-${t.id}`} + .installed=${!0} + tabIdx=${p(this.tabIdx)} + > + + `})} + + `:(this.style.cssText="display: none",null)}onConnector(e){e.id==="walletConnect"?g.isMobile()?f.push("AllWallets"):f.push("ConnectingWalletConnect"):f.push("ConnectingExternal",{connector:e})}};hi([c()],mt.prototype,"tabIdx",void 0);hi([u()],mt.prototype,"connectors",void 0);mt=hi([h("w3m-connect-announced-widget")],mt);var Pt=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let Xe=class extends w{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=b.state.connectors,this.loading=!1,this.unsubscribe.push(b.subscribeKey("connectors",e=>this.connectors=e)),g.isTelegram()&&g.isIos()&&(this.loading=!v.state.wcUri,this.unsubscribe.push(v.subscribeKey("wcUri",e=>this.loading=!e)))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){const{customWallets:e}=C.state;if(!(e!=null&&e.length))return this.style.cssText="display: none",null;const t=this.filterOutDuplicateWallets(e);return l` + ${t.map(n=>l` + this.onConnectWallet(n)} + data-testid=${`wallet-selector-${n.id}`} + tabIdx=${p(this.tabIdx)} + ?loading=${this.loading} + > + + `)} + `}filterOutDuplicateWallets(e){const t=pe.getRecentWallets(),n=this.connectors.map(s=>{var y;return(y=s.info)==null?void 0:y.rdns}).filter(Boolean),o=t.map(s=>s.rdns).filter(Boolean),i=n.concat(o);if(i.includes("io.metamask.mobile")&&g.isMobile()){const s=i.indexOf("io.metamask.mobile");i[s]="io.metamask"}return e.filter(s=>!i.includes(String(s==null?void 0:s.rdns)))}onConnectWallet(e){this.loading||f.push("ConnectingWalletConnect",{wallet:e})}};Pt([c()],Xe.prototype,"tabIdx",void 0);Pt([u()],Xe.prototype,"connectors",void 0);Pt([u()],Xe.prototype,"loading",void 0);Xe=Pt([h("w3m-connect-custom-widget")],Xe);var wi=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let bt=class extends w{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=b.state.connectors,this.unsubscribe.push(b.subscribeKey("connectors",e=>this.connectors=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){const t=this.connectors.filter(n=>n.type==="EXTERNAL").filter(n=>n.id!==S.CONNECTOR_ID.COINBASE_SDK);return t!=null&&t.length?l` + + ${t.map(n=>l` + this.onConnector(n)} + tabIdx=${p(this.tabIdx)} + > + + `)} + + `:(this.style.cssText="display: none",null)}onConnector(e){f.push("ConnectingExternal",{connector:e})}};wi([c()],bt.prototype,"tabIdx",void 0);wi([u()],bt.prototype,"connectors",void 0);bt=wi([h("w3m-connect-external-widget")],bt);var nn=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let Qt=class extends w{constructor(){super(...arguments),this.unsubscribe=[],this.tabIdx=void 0}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){const{featured:e}=I.state;if(!e.length)return this.style.cssText="display: none",null;const t=Ae.filterOutDuplicateWallets(e);return l` + + ${t.map(n=>l` + this.onConnectWallet(n)} + tabIdx=${p(this.tabIdx)} + > + + `)} + + `}onConnectWallet(e){b.selectWalletConnector(e)}};nn([c()],Qt.prototype,"tabIdx",void 0);Qt=nn([h("w3m-connect-featured-widget")],Qt);var fi=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let xt=class extends w{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=b.state.connectors,this.unsubscribe.push(b.subscribeKey("connectors",e=>this.connectors=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){var t;const e=this.connectors.filter(n=>n.type==="INJECTED");return!(e!=null&&e.length)||e.length===1&&((t=e[0])==null?void 0:t.name)==="Browser Wallet"&&!g.isMobile()?(this.style.cssText="display: none",null):l` + + ${e.map(n=>{var i;if(!g.isMobile()&&n.name==="Browser Wallet")return null;const o=(i=n.info)==null?void 0:i.rdns;return!o&&!v.checkInstalled(void 0)?(this.style.cssText="display: none",null):o&&I.state.excludedRDNS&&I.state.excludedRDNS.includes(o)?null:l` + this.onConnector(n)} + tabIdx=${p(this.tabIdx)} + > + + `})} + + `}onConnector(e){b.setActiveConnector(e),f.push("ConnectingExternal",{connector:e})}};fi([c()],xt.prototype,"tabIdx",void 0);fi([u()],xt.prototype,"connectors",void 0);xt=fi([h("w3m-connect-injected-widget")],xt);var gi=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let vt=class extends w{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=b.state.connectors,this.unsubscribe.push(b.subscribeKey("connectors",e=>this.connectors=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){const e=this.connectors.filter(t=>t.type==="MULTI_CHAIN"&&t.name!=="WalletConnect");return e!=null&&e.length?l` + + ${e.map(t=>l` + this.onConnector(t)} + tabIdx=${p(this.tabIdx)} + > + + `)} + + `:(this.style.cssText="display: none",null)}onConnector(e){b.setActiveConnector(e),f.push("ConnectingMultiChain")}};gi([c()],vt.prototype,"tabIdx",void 0);gi([u()],vt.prototype,"connectors",void 0);vt=gi([h("w3m-connect-multi-chain-widget")],vt);var Dt=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let Ye=class extends w{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=b.state.connectors,this.loading=!1,this.unsubscribe.push(b.subscribeKey("connectors",e=>this.connectors=e)),g.isTelegram()&&g.isIos()&&(this.loading=!v.state.wcUri,this.unsubscribe.push(v.subscribeKey("wcUri",e=>this.loading=!e)))}render(){const t=pe.getRecentWallets().filter(n=>!this.connectors.some(o=>o.id===n.id||o.name===n.name));return t.length?l` + + ${t.map(n=>l` + this.onConnectWallet(n)} + tagLabel="recent" + tagVariant="shade" + tabIdx=${p(this.tabIdx)} + ?loading=${this.loading} + > + + `)} + + `:(this.style.cssText="display: none",null)}onConnectWallet(e){this.loading||b.selectWalletConnector(e)}};Dt([c()],Ye.prototype,"tabIdx",void 0);Dt([u()],Ye.prototype,"connectors",void 0);Dt([u()],Ye.prototype,"loading",void 0);Ye=Dt([h("w3m-connect-recent-widget")],Ye);var Lt=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let Qe=class extends w{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=b.state.connectors,this.loading=!1,this.unsubscribe.push(b.subscribeKey("connectors",e=>this.connectors=e)),g.isTelegram()&&g.isIos()&&(this.loading=!v.state.wcUri,this.unsubscribe.push(v.subscribeKey("wcUri",e=>this.loading=!e)))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){if(!this.connectors.find(W=>W.id==="walletConnect"))return null;const{recommended:t}=I.state,{customWallets:n,featuredWalletIds:o}=C.state,{connectors:i}=b.state,r=pe.getRecentWallets(),y=i.filter(W=>W.type==="INJECTED"||W.type==="ANNOUNCED"||W.type==="MULTI_CHAIN").filter(W=>W.name!=="Browser Wallet");if(o||n||!t.length)return this.style.cssText="display: none",null;const N=y.length+r.length,E=Math.max(0,2-N),ue=Ae.filterOutDuplicateWallets(t).slice(0,E);return ue.length?l` + + ${ue.map(W=>l` + this.onConnectWallet(W)} + tabIdx=${p(this.tabIdx)} + ?loading=${this.loading} + > + + `)} + + `:(this.style.cssText="display: none",null)}onConnectWallet(e){if(this.loading)return;const t=b.getConnector(e.id,e.rdns);t?f.push("ConnectingExternal",{connector:t}):f.push("ConnectingWalletConnect",{wallet:e})}};Lt([c()],Qe.prototype,"tabIdx",void 0);Lt([u()],Qe.prototype,"connectors",void 0);Lt([u()],Qe.prototype,"loading",void 0);Qe=Lt([h("w3m-connect-recommended-widget")],Qe);var Ut=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let Je=class extends w{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=b.state.connectors,this.connectorImages=de.state.connectorImages,this.unsubscribe.push(b.subscribeKey("connectors",e=>this.connectors=e),de.subscribeKey("connectorImages",e=>this.connectorImages=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){if(g.isMobile())return this.style.cssText="display: none",null;const e=this.connectors.find(n=>n.id==="walletConnect");if(!e)return this.style.cssText="display: none",null;const t=e.imageUrl||this.connectorImages[(e==null?void 0:e.imageId)??""];return l` + this.onConnector(e)} + tagLabel="qr code" + tagVariant="main" + tabIdx=${p(this.tabIdx)} + data-testid="wallet-selector-walletconnect" + > + + `}onConnector(e){b.setActiveConnector(e),f.push("ConnectingWalletConnect")}};Ut([c()],Je.prototype,"tabIdx",void 0);Ut([u()],Je.prototype,"connectors",void 0);Ut([u()],Je.prototype,"connectorImages",void 0);Je=Ut([h("w3m-connect-walletconnect-widget")],Je);const wo=x` + :host { + margin-top: var(--wui-spacing-3xs); + } + wui-separator { + margin: var(--wui-spacing-m) calc(var(--wui-spacing-m) * -1) var(--wui-spacing-xs) + calc(var(--wui-spacing-m) * -1); + width: calc(100% + var(--wui-spacing-s) * 2); + } +`;var mi=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let Ze=class extends w{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=b.state.connectors,this.unsubscribe.push(b.subscribeKey("connectors",e=>this.connectors=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){const{custom:e,recent:t,announced:n,injected:o,multiChain:i,recommended:r,featured:s,external:y}=yi.getConnectorsByType(this.connectors),N=yi.getIsConnectedWithWC(),E=C.state.enableWalletConnect;return l` + + ${E&&!N?l``:null} + ${t.length?l``:null} + ${i.length?l``:null} + ${n.length?l``:null} + ${o.length?l``:null} + ${s.length?l``:null} + ${e!=null&&e.length?l``:null} + ${y.length?l``:null} + ${r.length?l``:null} + + `}};Ze.styles=wo;mi([c()],Ze.prototype,"tabIdx",void 0);mi([u()],Ze.prototype,"connectors",void 0);Ze=mi([h("w3m-connector-list")],Ze);var on=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let Jt=class extends w{constructor(){super(...arguments),this.tabIdx=void 0}render(){return l` + + + + + `}};on([c()],Jt.prototype,"tabIdx",void 0);Jt=on([h("w3m-wallet-login-list")],Jt);const fo=x` + :host { + --connect-scroll--top-opacity: 0; + --connect-scroll--bottom-opacity: 0; + --connect-mask-image: none; + } + + .connect { + max-height: clamp(360px, 470px, 80vh); + scrollbar-width: none; + overflow-y: scroll; + overflow-x: hidden; + transition: opacity var(--wui-ease-out-power-1) var(--wui-duration-md); + will-change: opacity; + mask-image: var(--connect-mask-image); + } + + .guide { + transition: opacity var(--wui-ease-out-power-1) var(--wui-duration-md); + will-change: opacity; + } + + .connect::-webkit-scrollbar { + display: none; + } + + .all-wallets { + flex-flow: column; + } + + .connect.disabled, + .guide.disabled { + opacity: 0.3; + pointer-events: none; + user-select: none; + } + + wui-separator { + margin: var(--wui-spacing-s) calc(var(--wui-spacing-s) * -1); + width: calc(100% + var(--wui-spacing-s) * 2); + } +`;var Z=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};const go=470;let K=class extends w{constructor(){var e,t;super(),this.unsubscribe=[],this.connectors=b.state.connectors,this.authConnector=this.connectors.find(n=>n.type==="AUTH"),this.features=C.state.features,this.enableWallets=C.state.enableWallets,this.noAdapters=d.state.noAdapters,this.walletGuide="get-started",this.checked=!1,this.isEmailEnabled=((e=this.features)==null?void 0:e.email)&&!d.state.noAdapters,this.isSocialEnabled=((t=this.features)==null?void 0:t.socials)&&this.features.socials.length>0&&!d.state.noAdapters,this.isAuthEnabled=this.checkIfAuthEnabled(this.connectors),this.unsubscribe.push(b.subscribeKey("connectors",n=>{this.connectors=n,this.authConnector=this.connectors.find(o=>o.type==="AUTH"),this.isAuthEnabled=this.checkIfAuthEnabled(this.connectors)}),C.subscribeKey("features",n=>this.setEmailAndSocialEnableCheck(n,this.noAdapters)),C.subscribeKey("enableWallets",n=>this.enableWallets=n),d.subscribeKey("noAdapters",n=>this.setEmailAndSocialEnableCheck(this.features,n)))}disconnectedCallback(){var t,n;this.unsubscribe.forEach(o=>o()),(t=this.resizeObserver)==null||t.disconnect();const e=(n=this.shadowRoot)==null?void 0:n.querySelector(".connect");e==null||e.removeEventListener("scroll",this.handleConnectListScroll.bind(this))}firstUpdated(){var t,n;const e=(t=this.shadowRoot)==null?void 0:t.querySelector(".connect");e&&(requestAnimationFrame(this.handleConnectListScroll.bind(this)),e==null||e.addEventListener("scroll",this.handleConnectListScroll.bind(this)),this.resizeObserver=new ResizeObserver(()=>{this.handleConnectListScroll()}),(n=this.resizeObserver)==null||n.observe(e),this.handleConnectListScroll())}render(){var W;const{termsConditionsUrl:e,privacyPolicyUrl:t}=C.state,n=(W=C.state.features)==null?void 0:W.legalCheckbox,r=!!(e||t)&&!!n&&this.walletGuide==="get-started"&&!this.checked,s={connect:!0,disabled:r},y=C.state.enableWalletGuide,N=this.enableWallets,E=this.isSocialEnabled||this.authConnector,ue=r?-1:void 0;return l` + + ${this.legalCheckboxTemplate()} + + + ${this.renderConnectMethod(ue)} + + + ${this.guideTemplate(r)} + + + `}setEmailAndSocialEnableCheck(e,t){this.isEmailEnabled=(e==null?void 0:e.email)&&!t,this.isSocialEnabled=(e==null?void 0:e.socials)&&e.socials.length>0&&!t,this.features=e,this.noAdapters=t}checkIfAuthEnabled(e){const t=e.filter(o=>o.type===xn.CONNECTOR_TYPE_AUTH).map(o=>o.chain);return S.AUTH_CONNECTOR_SUPPORTED_CHAINS.some(o=>t.includes(o))}renderConnectMethod(e){const t=Ae.getConnectOrderMethod(this.features,this.connectors);return l`${t.map((n,o)=>{switch(n){case"email":return l`${this.emailTemplate(e)} ${this.separatorTemplate(o,"email")}`;case"social":return l`${this.socialListTemplate(e)} + ${this.separatorTemplate(o,"social")}`;case"wallet":return l`${this.walletListTemplate(e)} + ${this.separatorTemplate(o,"wallet")}`;default:return null}})}`}checkMethodEnabled(e){switch(e){case"wallet":return this.enableWallets;case"social":return this.isSocialEnabled&&this.isAuthEnabled;case"email":return this.isEmailEnabled&&this.isAuthEnabled;default:return null}}checkIsThereNextMethod(e){const n=Ae.getConnectOrderMethod(this.features,this.connectors)[e+1];return n?this.checkMethodEnabled(n)?n:this.checkIsThereNextMethod(e+1):void 0}separatorTemplate(e,t){const n=this.checkIsThereNextMethod(e),o=this.walletGuide==="explore";switch(t){case"wallet":return this.enableWallets&&n&&!o?l``:null;case"email":{const i=n==="social";return this.isAuthEnabled&&this.isEmailEnabled&&!i&&n?l``:null}case"social":{const i=n==="email";return this.isAuthEnabled&&this.isSocialEnabled&&!i&&n?l``:null}default:return null}}emailTemplate(e){return!this.isEmailEnabled||!this.isAuthEnabled?null:l``}socialListTemplate(e){return!this.isSocialEnabled||!this.isAuthEnabled?null:l``}walletListTemplate(e){var s,y;const t=this.enableWallets,n=((s=this.features)==null?void 0:s.emailShowWallets)===!1,o=(y=this.features)==null?void 0:y.collapseWallets,i=n||o;return!t||((g.isTelegram()||g.isSafari())&&g.isIos()&&v.connectWalletConnect().catch(N=>({})),this.walletGuide==="explore")?null:this.isAuthEnabled&&(this.isEmailEnabled||this.isSocialEnabled)&&i?l``:l``}guideTemplate(e=!1){if(!C.state.enableWalletGuide)return null;const n={guide:!0,disabled:e},o=e?-1:void 0;return!this.authConnector&&!this.isSocialEnabled?null:l` + ${this.walletGuide==="explore"&&!d.state.noAdapters?l``:null} + + + + `}legalCheckboxTemplate(){return this.walletGuide==="explore"?null:l``}handleConnectListScroll(){var n;const e=(n=this.shadowRoot)==null?void 0:n.querySelector(".connect");if(!e)return;e.scrollHeight>go?(e.style.setProperty("--connect-mask-image",`linear-gradient( + to bottom, + rgba(0, 0, 0, calc(1 - var(--connect-scroll--top-opacity))) 0px, + rgba(200, 200, 200, calc(1 - var(--connect-scroll--top-opacity))) 1px, + black 40px, + black calc(100% - 40px), + rgba(155, 155, 155, calc(1 - var(--connect-scroll--bottom-opacity))) calc(100% - 1px), + rgba(0, 0, 0, calc(1 - var(--connect-scroll--bottom-opacity))) 100% + )`),e.style.setProperty("--connect-scroll--top-opacity",ki.interpolate([0,50],[0,1],e.scrollTop).toString()),e.style.setProperty("--connect-scroll--bottom-opacity",ki.interpolate([0,50],[0,1],e.scrollHeight-e.scrollTop-e.offsetHeight).toString())):(e.style.setProperty("--connect-mask-image","none"),e.style.setProperty("--connect-scroll--top-opacity","0"),e.style.setProperty("--connect-scroll--bottom-opacity","0"))}onContinueWalletClick(){f.push("ConnectWallets")}onCheckboxChange(e){this.checked=!!e.detail}};K.styles=fo;Z([u()],K.prototype,"connectors",void 0);Z([u()],K.prototype,"authConnector",void 0);Z([u()],K.prototype,"features",void 0);Z([u()],K.prototype,"enableWallets",void 0);Z([u()],K.prototype,"noAdapters",void 0);Z([c()],K.prototype,"walletGuide",void 0);Z([u()],K.prototype,"checked",void 0);Z([u()],K.prototype,"isEmailEnabled",void 0);Z([u()],K.prototype,"isSocialEnabled",void 0);Z([u()],K.prototype,"isAuthEnabled",void 0);K=Z([h("w3m-connect-view")],K);const mo=x` + wui-flex { + width: 100%; + background-color: var(--wui-color-gray-glass-002); + border-radius: var(--wui-border-radius-xs); + } +`;var Bt=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let Le=class extends w{constructor(){super(...arguments),this.disabled=!1,this.label="",this.buttonLabel=""}render(){return l` + + ${this.label} + + + + `}};Le.styles=[_,T,mo];Bt([c({type:Boolean})],Le.prototype,"disabled",void 0);Bt([c()],Le.prototype,"label",void 0);Bt([c()],Le.prototype,"buttonLabel",void 0);Le=Bt([h("wui-cta-button")],Le);const bo=x` + :host { + display: block; + padding: 0 var(--wui-spacing-xl) var(--wui-spacing-xl); + } +`;var rn=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let yt=class extends w{constructor(){super(...arguments),this.wallet=void 0}render(){if(!this.wallet)return this.style.display="none",null;const{name:e,app_store:t,play_store:n,chrome_store:o,homepage:i}=this.wallet,r=g.isMobile(),s=g.isIos(),y=g.isAndroid(),N=[t,n,i,o].filter(Boolean).length>1,E=R.getTruncateString({string:e,charsStart:12,charsEnd:0,truncate:"end"});return N&&!r?l` + f.push("Downloads",{wallet:this.wallet})} + > + `:!N&&i?l` + + `:t&&s?l` + + `:n&&y?l` + + `:(this.style.display="none",null)}onAppStore(){var e;(e=this.wallet)!=null&&e.app_store&&g.openHref(this.wallet.app_store,"_blank")}onPlayStore(){var e;(e=this.wallet)!=null&&e.play_store&&g.openHref(this.wallet.play_store,"_blank")}onHomePage(){var e;(e=this.wallet)!=null&&e.homepage&&g.openHref(this.wallet.homepage,"_blank")}};yt.styles=[bo];rn([c({type:Object})],yt.prototype,"wallet",void 0);yt=rn([h("w3m-mobile-download-links")],yt);const xo=x` + @keyframes shake { + 0% { + transform: translateX(0); + } + 25% { + transform: translateX(3px); + } + 50% { + transform: translateX(-3px); + } + 75% { + transform: translateX(3px); + } + 100% { + transform: translateX(0); + } + } + + wui-flex:first-child:not(:only-child) { + position: relative; + } + + wui-loading-thumbnail { + position: absolute; + } + + wui-icon-box { + position: absolute; + right: calc(var(--wui-spacing-3xs) * -1); + bottom: calc(var(--wui-spacing-3xs) * -1); + opacity: 0; + transform: scale(0.5); + transition-property: opacity, transform; + transition-duration: var(--wui-duration-lg); + transition-timing-function: var(--wui-ease-out-power-2); + will-change: opacity, transform; + } + + wui-text[align='center'] { + width: 100%; + padding: 0px var(--wui-spacing-l); + } + + [data-error='true'] wui-icon-box { + opacity: 1; + transform: scale(1); + } + + [data-error='true'] > wui-flex:first-child { + animation: shake 250ms cubic-bezier(0.36, 0.07, 0.19, 0.97) both; + } + + [data-retry='false'] wui-link { + display: none; + } + + [data-retry='true'] wui-link { + display: block; + opacity: 1; + } +`;var re=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};class j extends w{constructor(){var e,t,n,o,i;super(),this.wallet=(e=f.state.data)==null?void 0:e.wallet,this.connector=(t=f.state.data)==null?void 0:t.connector,this.timeout=void 0,this.secondaryBtnIcon="refresh",this.onConnect=void 0,this.onRender=void 0,this.onAutoConnect=void 0,this.isWalletConnect=!0,this.unsubscribe=[],this.imageSrc=k.getWalletImage(this.wallet)??k.getConnectorImage(this.connector),this.name=((n=this.wallet)==null?void 0:n.name)??((o=this.connector)==null?void 0:o.name)??"Wallet",this.isRetrying=!1,this.uri=v.state.wcUri,this.error=v.state.wcError,this.ready=!1,this.showRetry=!1,this.secondaryBtnLabel="Try again",this.secondaryLabel="Accept connection request in the wallet",this.buffering=!1,this.isMobile=!1,this.onRetry=void 0,this.unsubscribe.push(v.subscribeKey("wcUri",r=>{var s;this.uri=r,this.isRetrying&&this.onRetry&&(this.isRetrying=!1,(s=this.onConnect)==null||s.call(this))}),v.subscribeKey("wcError",r=>this.error=r),v.subscribeKey("buffering",r=>this.buffering=r)),(g.isTelegram()||g.isSafari())&&g.isIos()&&v.state.wcUri&&((i=this.onConnect)==null||i.call(this))}firstUpdated(){var e;(e=this.onAutoConnect)==null||e.call(this),this.showRetry=!this.onAutoConnect}disconnectedCallback(){this.unsubscribe.forEach(e=>e()),clearTimeout(this.timeout)}render(){var n;(n=this.onRender)==null||n.call(this),this.onShowRetry();const e=this.error?"Connection can be declined if a previous request is still active":this.secondaryLabel;let t=`Continue in ${this.name}`;return this.buffering&&(t="Connecting..."),this.error&&(t="Connection declined"),l` + + + + + ${this.error?null:this.loaderTemplate()} + + + + + + + ${t} + + ${e} + + + ${this.secondaryBtnLabel?l` + + + ${this.secondaryBtnLabel} + + `:null} + + + ${this.isWalletConnect?l` + + + + Copy link + + + `:null} + + + `}onShowRetry(){var e;if(this.error&&!this.showRetry){this.showRetry=!0;const t=(e=this.shadowRoot)==null?void 0:e.querySelector("wui-button");t==null||t.animate([{opacity:0},{opacity:1}],{fill:"forwards",easing:"ease"})}}onTryAgain(){var e,t;this.buffering||(v.setWcError(!1),this.onRetry?(this.isRetrying=!0,(e=this.onRetry)==null||e.call(this)):(t=this.onConnect)==null||t.call(this))}loaderTemplate(){const e=Kt.state.themeVariables["--w3m-border-radius-master"],t=e?parseInt(e.replace("px",""),10):4;return l``}onCopyUri(){try{this.uri&&(g.copyToClopboard(this.uri),O.showSuccess("Link copied"))}catch{O.showError("Failed to copy")}}}j.styles=xo;re([u()],j.prototype,"isRetrying",void 0);re([u()],j.prototype,"uri",void 0);re([u()],j.prototype,"error",void 0);re([u()],j.prototype,"ready",void 0);re([u()],j.prototype,"showRetry",void 0);re([u()],j.prototype,"secondaryBtnLabel",void 0);re([u()],j.prototype,"secondaryLabel",void 0);re([u()],j.prototype,"buffering",void 0);re([c({type:Boolean})],j.prototype,"isMobile",void 0);re([c()],j.prototype,"onRetry",void 0);var vo=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let Pi=class extends j{constructor(){if(super(),this.externalViewUnsubscribe=[],!this.connector)throw new Error("w3m-connecting-view: No connector provided");$.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.connector.name??"Unknown",platform:"browser"}}),this.onConnect=this.onConnectProxy.bind(this),this.onAutoConnect=this.onConnectProxy.bind(this),this.isWalletConnect=!1,this.externalViewUnsubscribe.push(d.subscribeKey("activeCaipAddress",e=>{e&&A.close()}))}disconnectedCallback(){this.externalViewUnsubscribe.forEach(e=>e())}async onConnectProxy(){try{this.error=!1,this.connector&&(this.connector.id!==S.CONNECTOR_ID.COINBASE_SDK||!this.error)&&(await v.connectExternal(this.connector,this.connector.chain),$.sendEvent({type:"track",event:"CONNECT_SUCCESS",properties:{method:"browser",name:this.connector.name||"Unknown"}}))}catch(e){$.sendEvent({type:"track",event:"CONNECT_ERROR",properties:{message:(e==null?void 0:e.message)??"Unknown"}}),this.error=!0}}};Pi=vo([h("w3m-connecting-external-view")],Pi);const yo=x` + wui-flex, + wui-list-wallet { + width: 100%; + } +`;var an=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let Ct=class extends w{constructor(){super(),this.unsubscribe=[],this.activeConnector=b.state.activeConnector,this.unsubscribe.push(b.subscribeKey("activeConnector",e=>this.activeConnector=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){var e;return l` + + + + + + + Select Chain for ${(e=this.activeConnector)==null?void 0:e.name} + + Select which chain to connect to your multi chain wallet + + + ${this.networksTemplate()} + + + `}networksTemplate(){var e,t;return(t=(e=this.activeConnector)==null?void 0:e.connectors)==null?void 0:t.map(n=>n.name?l` + this.onConnector(n)} + data-testid="wui-list-chain-${n.chain}" + > + `:null)}onConnector(e){var n,o;const t=(o=(n=this.activeConnector)==null?void 0:n.connectors)==null?void 0:o.find(i=>i.chain===e.chain);if(!t){O.showError("Failed to find connector");return}t.id==="walletConnect"?g.isMobile()?f.push("AllWallets"):f.push("ConnectingWalletConnect"):f.push("ConnectingExternal",{connector:t})}};Ct.styles=yo;an([u()],Ct.prototype,"activeConnector",void 0);Ct=an([h("w3m-connecting-multi-chain-view")],Ct);var zt=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let et=class extends w{constructor(){super(),this.platformTabs=[],this.unsubscribe=[],this.platforms=[],this.onSelectPlatfrom=void 0,this.buffering=!1,this.unsubscribe.push(v.subscribeKey("buffering",e=>this.buffering=e))}disconnectCallback(){this.unsubscribe.forEach(e=>e())}render(){const e=this.generateTabs();return l` + + + + `}generateTabs(){const e=this.platforms.map(t=>t==="browser"?{label:"Browser",icon:"extension",platform:"browser"}:t==="mobile"?{label:"Mobile",icon:"mobile",platform:"mobile"}:t==="qrcode"?{label:"Mobile",icon:"mobile",platform:"qrcode"}:t==="web"?{label:"Webapp",icon:"browser",platform:"web"}:t==="desktop"?{label:"Desktop",icon:"desktop",platform:"desktop"}:{label:"Browser",icon:"extension",platform:"unsupported"});return this.platformTabs=e.map(({platform:t})=>t),e}onTabChange(e){var n;const t=this.platformTabs[e];t&&((n=this.onSelectPlatfrom)==null||n.call(this,t))}};zt([c({type:Array})],et.prototype,"platforms",void 0);zt([c()],et.prototype,"onSelectPlatfrom",void 0);zt([u()],et.prototype,"buffering",void 0);et=zt([h("w3m-connecting-header")],et);var Co=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let Di=class extends j{constructor(){if(super(),!this.wallet)throw new Error("w3m-connecting-wc-browser: No wallet provided");this.onConnect=this.onConnectProxy.bind(this),this.onAutoConnect=this.onConnectProxy.bind(this),$.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"browser"}})}async onConnectProxy(){var e;try{this.error=!1;const{connectors:t}=b.state,n=t.find(o=>{var i,r,s;return o.type==="ANNOUNCED"&&((i=o.info)==null?void 0:i.rdns)===((r=this.wallet)==null?void 0:r.rdns)||o.type==="INJECTED"||o.name===((s=this.wallet)==null?void 0:s.name)});if(n)await v.connectExternal(n,n.chain);else throw new Error("w3m-connecting-wc-browser: No connector found");A.close(),$.sendEvent({type:"track",event:"CONNECT_SUCCESS",properties:{method:"browser",name:((e=this.wallet)==null?void 0:e.name)||"Unknown"}})}catch(t){$.sendEvent({type:"track",event:"CONNECT_ERROR",properties:{message:(t==null?void 0:t.message)??"Unknown"}}),this.error=!0}}};Di=Co([h("w3m-connecting-wc-browser")],Di);var $o=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let Li=class extends j{constructor(){if(super(),!this.wallet)throw new Error("w3m-connecting-wc-desktop: No wallet provided");this.onConnect=this.onConnectProxy.bind(this),this.onRender=this.onRenderProxy.bind(this),$.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"desktop"}})}onRenderProxy(){var e;!this.ready&&this.uri&&(this.ready=!0,(e=this.onConnect)==null||e.call(this))}onConnectProxy(){var e;if((e=this.wallet)!=null&&e.desktop_link&&this.uri)try{this.error=!1;const{desktop_link:t,name:n}=this.wallet,{redirect:o,href:i}=g.formatNativeUrl(t,this.uri);v.setWcLinking({name:n,href:i}),v.setRecentWallet(this.wallet),g.openHref(o,"_blank")}catch{this.error=!0}}};Li=$o([h("w3m-connecting-wc-desktop")],Li);var ko=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let Ui=class extends j{constructor(){if(super(),this.btnLabelTimeout=void 0,this.labelTimeout=void 0,this.onRender=()=>{var e;!this.ready&&this.uri&&(this.ready=!0,(e=this.onConnect)==null||e.call(this))},this.onConnect=()=>{var e;if((e=this.wallet)!=null&&e.mobile_link&&this.uri)try{this.error=!1;const{mobile_link:t,name:n}=this.wallet,{redirect:o,href:i}=g.formatNativeUrl(t,this.uri);v.setWcLinking({name:n,href:i}),v.setRecentWallet(this.wallet);const r=g.isIframe()?"_top":"_self";g.openHref(o,r),clearTimeout(this.labelTimeout),this.secondaryLabel=D.CONNECT_LABELS.MOBILE}catch(t){$.sendEvent({type:"track",event:"CONNECT_PROXY_ERROR",properties:{message:t instanceof Error?t.message:"Error parsing the deeplink",uri:this.uri,mobile_link:this.wallet.mobile_link,name:this.wallet.name}}),this.error=!0}},!this.wallet)throw new Error("w3m-connecting-wc-mobile: No wallet provided");this.secondaryBtnLabel=void 0,this.secondaryLabel=D.CONNECT_LABELS.MOBILE,document.addEventListener("visibilitychange",this.onBuffering.bind(this)),$.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"mobile"}}),this.btnLabelTimeout=setTimeout(()=>{this.secondaryBtnLabel="Try again",this.secondaryLabel=D.CONNECT_LABELS.MOBILE},D.FIVE_SEC_MS),this.labelTimeout=setTimeout(()=>{this.secondaryLabel="Hold tight... it's taking longer than expected"},D.THREE_SEC_MS)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("visibilitychange",this.onBuffering.bind(this)),clearTimeout(this.btnLabelTimeout),clearTimeout(this.labelTimeout)}onBuffering(){const e=g.isIos();(document==null?void 0:document.visibilityState)==="visible"&&!this.error&&e&&(v.setBuffering(!0),setTimeout(()=>{v.setBuffering(!1)},5e3))}onTryAgain(){this.buffering||(v.setWcError(!1),this.onConnect())}};Ui=ko([h("w3m-connecting-wc-mobile")],Ui);const So=x` + @keyframes fadein { + from { + opacity: 0; + } + to { + opacity: 1; + } + } + + wui-shimmer { + width: 100%; + aspect-ratio: 1 / 1; + border-radius: clamp(0px, var(--wui-border-radius-l), 40px) !important; + } + + wui-qr-code { + opacity: 0; + animation-duration: 200ms; + animation-timing-function: ease; + animation-name: fadein; + animation-fill-mode: forwards; + } +`;var _o=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let Zt=class extends j{constructor(){var e;super(),this.forceUpdate=()=>{this.requestUpdate()},window.addEventListener("resize",this.forceUpdate),$.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:((e=this.wallet)==null?void 0:e.name)??"WalletConnect",platform:"qrcode"}})}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.unsubscribe)==null||e.forEach(t=>t()),window.removeEventListener("resize",this.forceUpdate)}render(){return this.onRenderProxy(),l` + + ${this.qrCodeTemplate()} + + + Scan this QR Code with your phone + + ${this.copyTemplate()} + + + `}onRenderProxy(){!this.ready&&this.uri&&(this.timeout=setTimeout(()=>{this.ready=!0},200))}qrCodeTemplate(){if(!this.uri||!this.ready)return null;const e=this.getBoundingClientRect().width-40,t=this.wallet?this.wallet.name:void 0;return v.setWcLinking(void 0),v.setRecentWallet(this.wallet),l` `}copyTemplate(){const e=!this.uri||!this.ready;return l` + + Copy link + `}};Zt.styles=So;Zt=_o([h("w3m-connecting-wc-qrcode")],Zt);var Io=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let Bi=class extends w{constructor(){var e;if(super(),this.wallet=(e=f.state.data)==null?void 0:e.wallet,!this.wallet)throw new Error("w3m-connecting-wc-unsupported: No wallet provided");$.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"browser"}})}render(){return l` + + + + Not Detected + + + + `}};Bi=Io([h("w3m-connecting-wc-unsupported")],Bi);var To=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let zi=class extends j{constructor(){if(super(),!this.wallet)throw new Error("w3m-connecting-wc-web: No wallet provided");this.onConnect=this.onConnectProxy.bind(this),this.secondaryBtnLabel="Open",this.secondaryLabel="Open and continue in a new browser tab",this.secondaryBtnIcon="externalLink",$.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"web"}})}onConnectProxy(){var e;if((e=this.wallet)!=null&&e.webapp_link&&this.uri)try{this.error=!1;const{webapp_link:t,name:n}=this.wallet,{redirect:o,href:i}=g.formatUniversalUrl(t,this.uri);v.setWcLinking({name:n,href:i}),v.setRecentWallet(this.wallet),g.openHref(o,"_blank")}catch{this.error=!0}}};zi=To([h("w3m-connecting-wc-web")],zi);var Vt=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let tt=class extends w{constructor(){var e;super(),this.wallet=(e=f.state.data)==null?void 0:e.wallet,this.platform=void 0,this.platforms=[],this.isSiwxEnabled=!!C.state.siwx,this.determinePlatforms(),this.initializeConnection()}render(){return l` + ${this.headerTemplate()} +
${this.platformTemplate()}
+ + `}async initializeConnection(e=!1){if(!(this.platform==="browser"||C.state.manualWCControl&&!e))try{const{wcPairingExpiry:t,status:n}=v.state;(e||g.isPairingExpired(t)||n==="connecting")&&(await v.connectWalletConnect(),this.isSiwxEnabled||A.close())}catch(t){$.sendEvent({type:"track",event:"CONNECT_ERROR",properties:{message:(t==null?void 0:t.message)??"Unknown"}}),v.setWcError(!0),O.showError(t.message??"Connection error"),v.resetWcConnection(),f.goBack()}}determinePlatforms(){if(!this.wallet){this.platforms.push("qrcode"),this.platform="qrcode";return}if(this.platform)return;const{mobile_link:e,desktop_link:t,webapp_link:n,injected:o,rdns:i}=this.wallet,r=o==null?void 0:o.map(({injected_id:fn})=>fn).filter(Boolean),s=[...i?[i]:r??[]],y=C.state.isUniversalProvider?!1:s.length,N=e,E=n,ue=v.checkInstalled(s),W=y&&ue,wn=t&&!g.isMobile();W&&!d.state.noAdapters&&this.platforms.push("browser"),N&&this.platforms.push(g.isMobile()?"mobile":"qrcode"),E&&this.platforms.push("web"),wn&&this.platforms.push("desktop"),!W&&y&&!d.state.noAdapters&&this.platforms.push("unsupported"),this.platform=this.platforms[0]}platformTemplate(){switch(this.platform){case"browser":return l``;case"web":return l``;case"desktop":return l` + this.initializeConnection(!0)}> + + `;case"mobile":return l` + this.initializeConnection(!0)}> + + `;case"qrcode":return l``;default:return l``}}headerTemplate(){return this.platforms.length>1?l` + + + `:null}async onSelectPlatform(e){var n;const t=(n=this.shadowRoot)==null?void 0:n.querySelector("div");t&&(await t.animate([{opacity:1},{opacity:0}],{duration:200,fill:"forwards",easing:"ease"}).finished,this.platform=e,t.animate([{opacity:0},{opacity:1}],{duration:200,fill:"forwards",easing:"ease"}))}};Vt([u()],tt.prototype,"platform",void 0);Vt([u()],tt.prototype,"platforms",void 0);Vt([u()],tt.prototype,"isSiwxEnabled",void 0);tt=Vt([h("w3m-connecting-wc-view")],tt);var sn=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let ei=class extends w{constructor(){super(...arguments),this.isMobile=g.isMobile()}render(){if(this.isMobile){const{featured:e,recommended:t}=I.state,{customWallets:n}=C.state,o=pe.getRecentWallets(),i=e.length||t.length||(n==null?void 0:n.length)||o.length;return l` + ${i?l``:null} + + `}return l` + + + `}};sn([u()],ei.prototype,"isMobile",void 0);ei=sn([h("w3m-connecting-wc-basic-view")],ei);const Ao=x` + .continue-button-container { + width: 100%; + } +`;var ln=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let $t=class extends w{constructor(){super(...arguments),this.loading=!1}render(){return l` + + ${this.onboardingTemplate()} ${this.buttonsTemplate()} + {g.openHref(yn.URLS.FAQ,"_blank")}} + > + Learn more about names + + + + `}onboardingTemplate(){return l` + + + + + + Choose your account name + + + Finally say goodbye to 0x addresses, name your account to make it easier to exchange + assets + + + `}buttonsTemplate(){return l` + Choose name + + `}handleContinue(){f.push("RegisterAccountName"),$.sendEvent({type:"track",event:"OPEN_ENS_FLOW",properties:{isSmartAccount:m.state.preferredAccountType===M.ACCOUNT_TYPES.SMART_ACCOUNT}})}};$t.styles=Ao;ln([u()],$t.prototype,"loading",void 0);$t=ln([h("w3m-choose-account-name-view")],$t);var Ro=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let Vi=class extends w{constructor(){var e;super(...arguments),this.wallet=(e=f.state.data)==null?void 0:e.wallet}render(){if(!this.wallet)throw new Error("w3m-downloads-view");return l` + + ${this.chromeTemplate()} ${this.iosTemplate()} ${this.androidTemplate()} + ${this.homepageTemplate()} + + `}chromeTemplate(){var e;return(e=this.wallet)!=null&&e.chrome_store?l` + Chrome Extension + `:null}iosTemplate(){var e;return(e=this.wallet)!=null&&e.app_store?l` + iOS App + `:null}androidTemplate(){var e;return(e=this.wallet)!=null&&e.play_store?l` + Android App + `:null}homepageTemplate(){var e;return(e=this.wallet)!=null&&e.homepage?l` + + Website + + `:null}onChromeStore(){var e;(e=this.wallet)!=null&&e.chrome_store&&g.openHref(this.wallet.chrome_store,"_blank")}onAppStore(){var e;(e=this.wallet)!=null&&e.app_store&&g.openHref(this.wallet.app_store,"_blank")}onPlayStore(){var e;(e=this.wallet)!=null&&e.play_store&&g.openHref(this.wallet.play_store,"_blank")}onHomePage(){var e;(e=this.wallet)!=null&&e.homepage&&g.openHref(this.wallet.homepage,"_blank")}};Vi=Ro([h("w3m-downloads-view")],Vi);var Wo=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};const Eo="https://walletconnect.com/explorer";let Mi=class extends w{render(){return l` + + ${this.recommendedWalletsTemplate()} + {g.openHref("https://walletconnect.com/explorer?type=wallet","_blank")}} + > + + `}recommendedWalletsTemplate(){const{recommended:e,featured:t}=I.state,{customWallets:n}=C.state;return[...t,...n??[],...e].slice(0,4).map(i=>l` + {g.openHref(i.homepage??Eo,"_blank")}} + > + `)}};Mi=Wo([h("w3m-get-wallet-view")],Mi);var cn=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let ti=class extends w{constructor(){super(...arguments),this.data=[]}render(){return l` + + ${this.data.map(e=>l` + + + ${e.images.map(t=>l``)} + + + + + ${e.title} + + ${e.text} + + `)} + + `}};cn([c({type:Array})],ti.prototype,"data",void 0);ti=cn([h("w3m-help-widget")],ti);var No=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};const Oo=[{images:["login","profile","lock"],title:"One login for all of web3",text:"Log in to any app by connecting your wallet. Say goodbye to countless passwords!"},{images:["defi","nft","eth"],title:"A home for your digital assets",text:"A wallet lets you store, send and receive digital assets like cryptocurrencies and NFTs."},{images:["browser","noun","dao"],title:"Your gateway to a new web",text:"With your wallet, you can explore and interact with DeFi, NFTs, DAOs, and much more."}];let Hi=class extends w{render(){return l` + + + + + Get a wallet + + + `}onGetWallet(){$.sendEvent({type:"track",event:"CLICK_GET_WALLET"}),f.push("GetWallet")}};Hi=No([h("w3m-what-is-a-wallet-view")],Hi);const jo=x` + wui-flex { + max-height: clamp(360px, 540px, 80vh); + overflow: scroll; + scrollbar-width: none; + transition: opacity var(--wui-ease-out-power-1) var(--wui-duration-md); + will-change: opacity; + } + wui-flex::-webkit-scrollbar { + display: none; + } + wui-flex.disabled { + opacity: 0.3; + pointer-events: none; + user-select: none; + } +`;var un=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let kt=class extends w{constructor(){super(...arguments),this.checked=!1}render(){var y;const{termsConditionsUrl:e,privacyPolicyUrl:t}=C.state,n=(y=C.state.features)==null?void 0:y.legalCheckbox,i=!!(e||t)&&!!n,r=i&&!this.checked,s=r?-1:void 0;return l` + + + + + + `}onCheckboxChange(e){this.checked=!!e.detail}};kt.styles=jo;un([u()],kt.prototype,"checked",void 0);kt=un([h("w3m-connect-wallets-view")],kt);const Po=x` + :host { + display: block; + width: var(--wui-box-size-lg); + height: var(--wui-box-size-lg); + } + + svg { + width: var(--wui-box-size-lg); + height: var(--wui-box-size-lg); + fill: none; + stroke: transparent; + stroke-linecap: round; + } + + use { + stroke: var(--wui-color-accent-100); + stroke-width: 2px; + stroke-dasharray: 54, 118; + stroke-dashoffset: 172; + animation: dash 1s linear infinite; + } + + @keyframes dash { + to { + stroke-dashoffset: 0px; + } + } +`;var Do=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let ii=class extends w{render(){return l` + + + + + `}};ii.styles=[_,Po];ii=Do([h("wui-loading-hexagon")],ii);const Lo=oi` + +`,Uo=oi` + + + +`,Bo=x` + :host { + position: relative; + border-radius: inherit; + display: flex; + justify-content: center; + align-items: center; + width: var(--local-width); + height: var(--local-height); + } + + :host([data-round='true']) { + background: var(--wui-color-gray-glass-002); + border-radius: 100%; + outline: 1px solid var(--wui-color-gray-glass-005); + } + + svg { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + z-index: 1; + fill: var(--wui-color-gray-glass-002); + } + + svg > path { + stroke: var(--local-stroke); + } + + wui-image { + width: 100%; + height: 100%; + -webkit-clip-path: var(--local-path); + clip-path: var(--local-path); + background: var(--wui-color-gray-glass-002); + } + + wui-icon { + transform: translateY(-5%); + width: var(--local-icon-size); + height: var(--local-icon-size); + } +`;var Te=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let le=class extends w{constructor(){super(...arguments),this.size="md",this.name="uknown",this.networkImagesBySize={sm:Uo,md:Zi,lg:Lo},this.selected=!1,this.round=!1}render(){return this.round?(this.dataset.round="true",this.style.cssText=` + --local-width: var(--wui-spacing-3xl); + --local-height: var(--wui-spacing-3xl); + --local-icon-size: var(--wui-spacing-l); + `):this.style.cssText=` + + --local-path: var(--wui-path-network-${this.size}); + --local-width: var(--wui-width-network-${this.size}); + --local-height: var(--wui-height-network-${this.size}); + --local-icon-size: var(--wui-icon-size-network-${this.size}); + `,l`${this.templateVisual()} ${this.svgTemplate()} `}svgTemplate(){return this.round?null:this.networkImagesBySize[this.size]}templateVisual(){return this.imageSrc?l``:l``}};le.styles=[_,Bo];Te([c()],le.prototype,"size",void 0);Te([c()],le.prototype,"name",void 0);Te([c({type:Object})],le.prototype,"networkImagesBySize",void 0);Te([c()],le.prototype,"imageSrc",void 0);Te([c({type:Boolean})],le.prototype,"selected",void 0);Te([c({type:Boolean})],le.prototype,"round",void 0);le=Te([h("wui-network-image")],le);const zo=x` + @keyframes shake { + 0% { + transform: translateX(0); + } + 25% { + transform: translateX(3px); + } + 50% { + transform: translateX(-3px); + } + 75% { + transform: translateX(3px); + } + 100% { + transform: translateX(0); + } + } + + wui-flex:first-child:not(:only-child) { + position: relative; + } + + wui-loading-hexagon { + position: absolute; + } + + wui-icon-box { + position: absolute; + right: 4px; + bottom: 0; + opacity: 0; + transform: scale(0.5); + z-index: 1; + } + + wui-button { + display: none; + } + + [data-error='true'] wui-icon-box { + opacity: 1; + transform: scale(1); + } + + [data-error='true'] > wui-flex:first-child { + animation: shake 250ms cubic-bezier(0.36, 0.07, 0.19, 0.97) both; + } + + wui-button[data-retry='true'] { + display: block; + opacity: 1; + } +`;var bi=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let it=class extends w{constructor(){var e;super(),this.network=(e=f.state.data)==null?void 0:e.network,this.unsubscribe=[],this.showRetry=!1,this.error=!1}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}firstUpdated(){this.onSwitchNetwork()}render(){if(!this.network)throw new Error("w3m-network-switch-view: No network provided");this.onShowRetry();const e=this.getLabel(),t=this.getSubLabel();return l` + + + + + ${this.error?null:l``} + + + + + + ${e} + ${t} + + + + + Try again + + + `}getSubLabel(){const e=d.state.activeChain,t=b.getConnectorId(e);return b.getAuthConnector()&&t===S.CONNECTOR_ID.AUTH?"":this.error?"Switch can be declined if chain is not supported by a wallet or previous request is still active":"Accept connection request in your wallet"}getLabel(){var o;const e=d.state.activeChain,t=b.getConnectorId(e);return b.getAuthConnector()&&t===S.CONNECTOR_ID.AUTH?`Switching to ${((o=this.network)==null?void 0:o.name)??"Unknown"} network...`:this.error?"Switch declined":"Approve in wallet"}onShowRetry(){var e;if(this.error&&!this.showRetry){this.showRetry=!0;const t=(e=this.shadowRoot)==null?void 0:e.querySelector("wui-button");t==null||t.animate([{opacity:0},{opacity:1}],{fill:"forwards",easing:"ease"})}}async onSwitchNetwork(){try{this.error=!1,this.network&&await d.switchActiveNetwork(this.network)}catch{this.error=!0}}};it.styles=zo;bi([u()],it.prototype,"showRetry",void 0);bi([u()],it.prototype,"error",void 0);it=bi([h("w3m-network-switch-view")],it);const Vo=x` + button { + column-gap: var(--wui-spacing-s); + padding: 7px var(--wui-spacing-l) 7px var(--wui-spacing-xs); + width: 100%; + transition: all var(--wui-ease-out-power-1) var(--wui-duration-md); + border-radius: var(--wui-border-radius-xs); + color: var(--wui-color-fg-100); + } + + button > wui-text:nth-child(2) { + display: flex; + flex: 1; + } + + button[data-transparent='true'] { + pointer-events: none; + background-color: transparent; + } + + button:hover { + background-color: var(--wui-color-gray-glass-002); + } + + button:active { + background-color: var(--wui-color-gray-glass-005); + } + + wui-image { + width: var(--wui-spacing-3xl); + height: var(--wui-spacing-3xl); + border-radius: 100%; + } + + button:disabled { + background-color: var(--wui-color-gray-glass-002); + opacity: 0.5; + cursor: not-allowed; + } + + button:disabled > wui-tag { + background-color: var(--wui-color-gray-glass-010); + color: var(--wui-color-fg-300); + } +`;var Me=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let ge=class extends w{constructor(){super(...arguments),this.imageSrc="",this.name="",this.disabled=!1,this.selected=!1,this.transparent=!1}render(){return l` + + `}checkmarkTemplate(){return this.selected?l``:null}templateNetworkImage(){return this.imageSrc?l``:this.imageSrc?null:l``}};ge.styles=[_,T,Vo];Me([c()],ge.prototype,"imageSrc",void 0);Me([c()],ge.prototype,"name",void 0);Me([c({type:Boolean})],ge.prototype,"disabled",void 0);Me([c({type:Boolean})],ge.prototype,"selected",void 0);Me([c({type:Boolean})],ge.prototype,"transparent",void 0);ge=Me([h("wui-list-network")],ge);const Mo=x` + .container { + max-height: 360px; + overflow: auto; + } + + .container::-webkit-scrollbar { + display: none; + } +`;var ct=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let Se=class extends w{constructor(){super(),this.unsubscribe=[],this.network=d.state.activeCaipNetwork,this.requestedCaipNetworks=d.getAllRequestedCaipNetworks(),this.search="",this.onDebouncedSearch=g.debounce(e=>{this.search=e},100),this.unsubscribe.push(de.subscribeNetworkImages(()=>this.requestUpdate()),d.subscribeKey("activeCaipNetwork",e=>this.network=e),d.subscribeKey("chains",()=>this.requestedCaipNetworks=d.getAllRequestedCaipNetworks()))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return l` + ${this.templateSearchInput()} + + ${this.networksTemplate()} + + + + + + + Your connected wallet may not support some of the networks available for this dApp + + + + What is a network + + + `}templateSearchInput(){return l` + + + + `}onInputChange(e){this.onDebouncedSearch(e.detail)}onNetworkHelp(){$.sendEvent({type:"track",event:"CLICK_NETWORK_HELP"}),f.push("WhatIsANetwork")}networksTemplate(){var o;const e=d.getAllRequestedCaipNetworks(),t=d.getAllApprovedCaipNetworkIds(),n=g.sortRequestedNetworks(t,e);return this.search?this.filteredNetworks=n==null?void 0:n.filter(i=>{var r;return(r=i==null?void 0:i.name)==null?void 0:r.toLowerCase().includes(this.search.toLowerCase())}):this.filteredNetworks=n,(o=this.filteredNetworks)==null?void 0:o.map(i=>{var r;return l` + this.onSwitchNetwork(i)} + .disabled=${this.getNetworkDisabled(i)} + data-testid=${`w3m-network-switch-${i.name??i.id}`} + > + `})}getNetworkDisabled(e){const t=e.chainNamespace,n=m.getCaipAddress(t),o=d.getAllApprovedCaipNetworkIds(),i=d.getNetworkProp("supportsAllNetworks",t)!==!1,r=b.getConnectorId(t),s=b.getAuthConnector(),y=r===S.CONNECTOR_ID.AUTH&&s;return!n||i||y?!1:!(o!=null&&o.includes(e.caipNetworkId))}onSwitchNetwork(e){var E;const t=f.state.data;if(e.id===((E=this.network)==null?void 0:E.id))return;const o=e.chainNamespace!==d.state.activeChain,i=m.state.caipAddress,r=m.getCaipAddress(e.chainNamespace),y=b.getConnectorId(d.state.activeChain)===S.CONNECTOR_ID.AUTH,N=S.AUTH_CONNECTOR_SUPPORTED_CHAINS.find(ue=>ue===e.chainNamespace);i?y&&N?f.push("SwitchNetwork",{...t,network:e}):y&&!N||o&&!r?f.push("SwitchActiveChain",{switchToChain:e.chainNamespace,navigateTo:"Connect",navigateWithReplace:!0,network:e}):f.push("SwitchNetwork",{...t,network:e}):f.push("SwitchNetwork",{...t,network:e})}};Se.styles=Mo;ct([u()],Se.prototype,"network",void 0);ct([u()],Se.prototype,"requestedCaipNetworks",void 0);ct([u()],Se.prototype,"filteredNetworks",void 0);ct([u()],Se.prototype,"search",void 0);Se=ct([h("w3m-networks-view")],Se);const Ho=x` + @keyframes shake { + 0% { + transform: translateX(0); + } + 25% { + transform: translateX(3px); + } + 50% { + transform: translateX(-3px); + } + 75% { + transform: translateX(3px); + } + 100% { + transform: translateX(0); + } + } + + wui-flex:first-child:not(:only-child) { + position: relative; + } + + wui-loading-thumbnail { + position: absolute; + } + + wui-visual { + width: var(--wui-wallet-image-size-lg); + height: var(--wui-wallet-image-size-lg); + border-radius: calc(var(--wui-border-radius-5xs) * 9 - var(--wui-border-radius-xxs)); + position: relative; + overflow: hidden; + } + + wui-visual::after { + content: ''; + display: block; + width: 100%; + height: 100%; + position: absolute; + inset: 0; + border-radius: calc(var(--wui-border-radius-5xs) * 9 - var(--wui-border-radius-xxs)); + box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005); + } + + wui-icon-box { + position: absolute; + right: calc(var(--wui-spacing-3xs) * -1); + bottom: calc(var(--wui-spacing-3xs) * -1); + opacity: 0; + transform: scale(0.5); + transition: + opacity var(--wui-ease-out-power-2) var(--wui-duration-lg), + transform var(--wui-ease-out-power-2) var(--wui-duration-lg); + will-change: opacity, transform; + } + + wui-text[align='center'] { + width: 100%; + padding: 0px var(--wui-spacing-l); + } + + [data-error='true'] wui-icon-box { + opacity: 1; + transform: scale(1); + } + + [data-error='true'] > wui-flex:first-child { + animation: shake 250ms cubic-bezier(0.36, 0.07, 0.19, 0.97) both; + } + + [data-retry='false'] wui-link { + display: none; + } + + [data-retry='true'] wui-link { + display: block; + opacity: 1; + } + + wui-link { + padding: var(--wui-spacing-4xs) var(--wui-spacing-xxs); + } + + .capitalize { + text-transform: capitalize; + } +`;var dn=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let St=class extends w{constructor(){var e,t,n,o;super(...arguments),this.unsubscribe=[],this.switchToChain=(e=f.state.data)==null?void 0:e.switchToChain,this.navigateTo=(t=f.state.data)==null?void 0:t.navigateTo,this.navigateWithReplace=(n=f.state.data)==null?void 0:n.navigateWithReplace,this.caipNetwork=(o=f.state.data)==null?void 0:o.network,this.activeChain=d.state.activeChain}firstUpdated(){this.unsubscribe.push(d.subscribeKey("activeChain",e=>this.activeChain=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){const e=this.switchToChain?S.CHAIN_NAME_MAP[this.switchToChain]:"supported";if(!this.switchToChain)return null;const t=this.switchToChain==="eip155"?"Ethereum":this.switchToChain;return l` + + + + Switch to ${t} + + Connected wallet doesn't support connecting to ${e} chain. You + need to connect with a different wallet. + + Switch + + + `}async switchActiveChain(){this.switchToChain&&(d.setIsSwitchingNamespace(!0),b.setFilterByNamespace(this.switchToChain),this.caipNetwork?await d.switchActiveNetwork(this.caipNetwork):d.setActiveNamespace(this.switchToChain),f.reset("Connect"))}};St.styles=Ho;dn([c()],St.prototype,"activeChain",void 0);St=dn([h("w3m-switch-active-chain-view")],St);var Ko=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};const qo=[{images:["network","layers","system"],title:"The system’s nuts and bolts",text:"A network is what brings the blockchain to life, as this technical infrastructure allows apps to access the ledger and smart contract services."},{images:["noun","defiAlt","dao"],title:"Designed for different uses",text:"Each network is designed differently, and may therefore suit certain apps and experiences."}];let Ki=class extends w{render(){return l` + + + {g.openHref("https://ethereum.org/en/developers/docs/networks/","_blank")}} + > + Learn more + + + + `}};Ki=Ko([h("w3m-what-is-a-network-view")],Ki);const Fo=x` + :host > wui-flex { + max-height: clamp(360px, 540px, 80vh); + overflow: scroll; + scrollbar-width: none; + } + + :host > wui-flex::-webkit-scrollbar { + display: none; + } +`;var pn=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let _t=class extends w{constructor(){var e;super(),this.swapUnsupportedChain=(e=f.state.data)==null?void 0:e.swapUnsupportedChain,this.unsubscribe=[],this.disconecting=!1,this.unsubscribe.push(de.subscribeNetworkImages(()=>this.requestUpdate()))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return l` + + + ${this.descriptionTemplate()} + + + + ${this.networksTemplate()} + + + + + + Disconnect + + + + `}descriptionTemplate(){return this.swapUnsupportedChain?l` + + The swap feature doesn’t support your current network. Switch to an available option to + continue. + + `:l` + + This app doesn’t support your current network. Switch to an available option to continue. + + `}networksTemplate(){const e=d.getAllRequestedCaipNetworks(),t=d.getAllApprovedCaipNetworkIds(),n=g.sortRequestedNetworks(t,e);return(this.swapUnsupportedChain?n.filter(i=>D.SWAP_SUPPORTED_NETWORKS.includes(i.caipNetworkId)):n).map(i=>l` + this.onSwitchNetwork(i)} + > + + `)}async onDisconnect(){try{this.disconecting=!0,await v.disconnect(),$.sendEvent({type:"track",event:"DISCONNECT_SUCCESS"}),A.close()}catch{$.sendEvent({type:"track",event:"DISCONNECT_ERROR"}),O.showError("Failed to disconnect")}finally{this.disconecting=!1}}async onSwitchNetwork(e){const t=m.state.caipAddress,n=d.getAllApprovedCaipNetworkIds(),o=d.getNetworkProp("supportsAllNetworks",e.chainNamespace),i=f.state.data;t?n!=null&&n.includes(e.caipNetworkId)?await d.switchActiveNetwork(e):o?f.push("SwitchNetwork",{...i,network:e}):f.push("SwitchNetwork",{...i,network:e}):t||(d.setActiveCaipNetwork(e),f.push("Connect"))}};_t.styles=Fo;pn([u()],_t.prototype,"disconecting",void 0);_t=pn([h("w3m-unsupported-chain-view")],_t);const Go=x` + wui-flex { + width: 100%; + background-color: var(--wui-color-gray-glass-005); + border-radius: var(--wui-border-radius-s); + padding: var(--wui-spacing-1xs) var(--wui-spacing-s) var(--wui-spacing-1xs) + var(--wui-spacing-1xs); + } +`;var xi=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let nt=class extends w{constructor(){super(...arguments),this.icon="externalLink",this.text=""}render(){return l` + + + ${this.text} + + `}};nt.styles=[_,T,Go];xi([c()],nt.prototype,"icon",void 0);xi([c()],nt.prototype,"text",void 0);nt=xi([h("wui-banner")],nt);const Xo=x` + :host > wui-flex { + max-height: clamp(360px, 540px, 80vh); + overflow: scroll; + scrollbar-width: none; + } + + :host > wui-flex::-webkit-scrollbar { + display: none; + } +`;var hn=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let It=class extends w{constructor(){super(),this.unsubscribe=[],this.preferredAccountType=m.state.preferredAccountType,this.unsubscribe.push(m.subscribeKey("preferredAccountType",e=>{this.preferredAccountType=e}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return l` + + ${this.networkTemplate()} + `}networkTemplate(){const e=d.getAllRequestedCaipNetworks(),t=d.getAllApprovedCaipNetworkIds(),n=d.state.activeCaipNetwork,o=d.checkIfSmartAccountEnabled();let i=g.sortRequestedNetworks(t,e);if(o&&this.preferredAccountType===M.ACCOUNT_TYPES.SMART_ACCOUNT){if(!n)return null;i=[n]}return i.map(r=>l` + + + `)}};It.styles=Xo;hn([u()],It.prototype,"preferredAccountType",void 0);It=hn([h("w3m-wallet-compatible-networks-view")],It);const Yo=x` + :host { + display: flex; + justify-content: center; + align-items: center; + width: var(--wui-icon-box-size-xl); + height: var(--wui-icon-box-size-xl); + box-shadow: 0 0 0 8px var(--wui-thumbnail-border); + border-radius: var(--local-border-radius); + overflow: hidden; + } + + wui-icon { + width: 32px; + height: 32px; + } +`;var Mt=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let Ue=class extends w{render(){return this.style.cssText=`--local-border-radius: ${this.borderRadiusFull?"1000px":"20px"}; background-color: var(--wui-color-modal-bg);`,l`${this.templateVisual()}`}templateVisual(){return this.imageSrc?l``:l``}};Ue.styles=[_,Yo];Mt([c()],Ue.prototype,"imageSrc",void 0);Mt([c()],Ue.prototype,"alt",void 0);Mt([c({type:Boolean})],Ue.prototype,"borderRadiusFull",void 0);Ue=Mt([h("wui-visual-thumbnail")],Ue);const Qo=x` + :host { + display: flex; + justify-content: center; + gap: var(--wui-spacing-2xl); + } + + wui-visual-thumbnail:nth-child(1) { + z-index: 1; + } +`;var Jo=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let ni=class extends w{constructor(){var e,t;super(...arguments),this.dappImageUrl=(e=C.state.metadata)==null?void 0:e.icons,this.walletImageUrl=(t=m.state.connectedWalletInfo)==null?void 0:t.icon}firstUpdated(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelectorAll("wui-visual-thumbnail");e!=null&&e[0]&&this.createAnimation(e[0],"translate(18px)"),e!=null&&e[1]&&this.createAnimation(e[1],"translate(-18px)")}render(){var e;return l` + + + `}createAnimation(e,t){e.animate([{transform:"translateX(0px)"},{transform:t}],{duration:1600,easing:"cubic-bezier(0.56, 0, 0.48, 1)",direction:"alternate",iterations:1/0})}};ni.styles=Qo;ni=Jo([h("w3m-siwx-sign-message-thumbnails")],ni);var vi=function(a,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,e,t,n);else for(var s=a.length-1;s>=0;s--)(r=a[s])&&(i=(o<3?r(i):o>3?r(e,t,i):r(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let Tt=class extends w{constructor(){var e;super(...arguments),this.dappName=(e=C.state.metadata)==null?void 0:e.name,this.isCancelling=!1,this.isSigning=!1}render(){return l` + + + + + ${this.dappName??"Dapp"} needs to connect to your wallet + + + Sign this message to prove you own this wallet and proceed. Canceling will disconnect + you. + + + + ${this.isCancelling?"Cancelling...":"Cancel"} + + + ${this.isSigning?"Signing...":"Sign"} + + + `}async onSign(){this.isSigning=!0,await Ci.requestSignMessage().finally(()=>this.isSigning=!1)}async onCancel(){this.isCancelling=!0,await Ci.cancelSignMessage().finally(()=>this.isCancelling=!1)}};vi([u()],Tt.prototype,"isCancelling",void 0);vi([u()],Tt.prototype,"isSigning",void 0);Tt=vi([h("w3m-siwx-sign-message-view")],Tt);export{_i as AppKitAccountButton,Ti as AppKitButton,Ri as AppKitConnectButton,Ei as AppKitNetworkButton,Si as W3mAccountButton,Y as W3mAccountSettingsView,Xt as W3mAccountView,ft as W3mAllWalletsView,Ii as W3mButton,$t as W3mChooseAccountNameView,Ai as W3mConnectButton,K as W3mConnectView,kt as W3mConnectWalletsView,Pi as W3mConnectingExternalView,Ct as W3mConnectingMultiChainView,ei as W3mConnectingWcBasicView,tt as W3mConnectingWcView,Vi as W3mDownloadsView,Mi as W3mGetWalletView,Wi as W3mNetworkButton,it as W3mNetworkSwitchView,Se as W3mNetworksView,we as W3mProfileView,cs as W3mRouter,Tt as W3mSIWXSignMessageView,St as W3mSwitchActiveChainView,Fe as W3mSwitchAddressView,_t as W3mUnsupportedChainView,It as W3mWalletCompatibleNetworksView,Ki as W3mWhatIsANetworkView,Hi as W3mWhatIsAWalletView}; diff --git a/web3game/.vercel/output/static/assets/index-DVkBgnkX.js b/web3game/.vercel/output/static/assets/index-DVkBgnkX.js new file mode 100644 index 0000000000..3afd59dfa7 --- /dev/null +++ b/web3game/.vercel/output/static/assets/index-DVkBgnkX.js @@ -0,0 +1,1032 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/embedded-wallet-CalfqdNI.js","assets/if-defined-DVOmkLu5.js","assets/index-BxwsSeIL.js","assets/index-QpqlfPgl.js","assets/index-Cn1TwpSs.js","assets/index-B2osUT2V.js","assets/index-BfDAOq8h.js","assets/index-BGjtclTS.js","assets/index-Cxc8tIRM.js","assets/index-DeEXhxyT.js","assets/email-5kUJw0ce.js","assets/index-C22vu2Z6.js","assets/socials-Uau0-5BN.js","assets/index-C5GW1wiz.js","assets/index-DcIuyBCN.js","assets/index-BeTGsQ0g.js","assets/index-CTojmOJx.js","assets/swaps-BYyffamV.js","assets/index-QVU1uMUX.js","assets/index-swSfGf8i.js","assets/index-BIRMkK39.js","assets/send-CrjHOw2Z.js","assets/index-DsF4Gov6.js","assets/receive-BTHURE40.js","assets/index-BaPrYmVj.js","assets/onramp-BzOH_Bbb.js","assets/index-kA5-QyMM.js","assets/index-vgifefJD.js","assets/transactions-C-U2YbwL.js","assets/index-B4eb2ffY.js","assets/index-DHeF6YgC.js","assets/index-Bz4Ul6tQ.js","assets/w3m-modal-2k5y_YMI.js"])))=>i.map(i=>d[i]); +var _C=t=>{throw TypeError(t)};var iv=(t,e,n)=>e.has(t)||_C("Cannot "+n);var W=(t,e,n)=>(iv(t,e,"read from private field"),n?n.call(t):e.get(t)),Ue=(t,e,n)=>e.has(t)?_C("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),Ee=(t,e,n,r)=>(iv(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n),Ye=(t,e,n)=>(iv(t,e,"access private method"),n);var W0=(t,e,n,r)=>({set _(i){Ee(t,e,i,n)},get _(){return W(t,e,r)}});(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const c of s.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&r(c)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();var $s=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pd(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function j8(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}),n}var sv={exports:{}},Nf={};/** + * @license React + * react-jsx-runtime.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var CC;function XR(){if(CC)return Nf;CC=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(r,i,s){var c=null;if(s!==void 0&&(c=""+s),i.key!==void 0&&(c=""+i.key),"key"in i){s={};for(var u in i)u!=="key"&&(s[u]=i[u])}else s=i;return i=s.ref,{$$typeof:t,type:r,key:c,ref:i!==void 0?i:null,props:s}}return Nf.Fragment=e,Nf.jsx=n,Nf.jsxs=n,Nf}var SC;function JR(){return SC||(SC=1,sv.exports=XR()),sv.exports}var De=JR(),av={exports:{}},We={};/** + * @license React + * react.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var TC;function e7(){if(TC)return We;TC=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),g=Symbol.iterator;function m(w){return w===null||typeof w!="object"?null:(w=g&&w[g]||w["@@iterator"],typeof w=="function"?w:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,E={};function x(w,B,Z){this.props=w,this.context=B,this.refs=E,this.updater=Z||y}x.prototype.isReactComponent={},x.prototype.setState=function(w,B){if(typeof w!="object"&&typeof w!="function"&&w!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,w,B,"setState")},x.prototype.forceUpdate=function(w){this.updater.enqueueForceUpdate(this,w,"forceUpdate")};function O(){}O.prototype=x.prototype;function I(w,B,Z){this.props=w,this.context=B,this.refs=E,this.updater=Z||y}var M=I.prototype=new O;M.constructor=I,A(M,x.prototype),M.isPureReactComponent=!0;var $=Array.isArray,D={H:null,A:null,T:null,S:null},R=Object.prototype.hasOwnProperty;function z(w,B,Z,ee,Y,se){return Z=se.ref,{$$typeof:t,type:w,key:B,ref:Z!==void 0?Z:null,props:se}}function G(w,B){return z(w.type,B,void 0,void 0,void 0,w.props)}function j(w){return typeof w=="object"&&w!==null&&w.$$typeof===t}function V(w){var B={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function(Z){return B[Z]})}var L=/\/+/g;function v(w,B){return typeof w=="object"&&w!==null&&w.key!=null?V(""+w.key):B.toString(36)}function C(){}function N(w){switch(w.status){case"fulfilled":return w.value;case"rejected":throw w.reason;default:switch(typeof w.status=="string"?w.then(C,C):(w.status="pending",w.then(function(B){w.status==="pending"&&(w.status="fulfilled",w.value=B)},function(B){w.status==="pending"&&(w.status="rejected",w.reason=B)})),w.status){case"fulfilled":return w.value;case"rejected":throw w.reason}}throw w}function T(w,B,Z,ee,Y){var se=typeof w;(se==="undefined"||se==="boolean")&&(w=null);var ce=!1;if(w===null)ce=!0;else switch(se){case"bigint":case"string":case"number":ce=!0;break;case"object":switch(w.$$typeof){case t:case e:ce=!0;break;case p:return ce=w._init,T(ce(w._payload),B,Z,ee,Y)}}if(ce)return Y=Y(w),ce=ee===""?"."+v(w,0):ee,$(Y)?(Z="",ce!=null&&(Z=ce.replace(L,"$&/")+"/"),T(Y,B,Z,"",function(ye){return ye})):Y!=null&&(j(Y)&&(Y=G(Y,Z+(Y.key==null||w&&w.key===Y.key?"":(""+Y.key).replace(L,"$&/")+"/")+ce)),B.push(Y)),1;ce=0;var we=ee===""?".":ee+":";if($(w))for(var _e=0;_e>>1,w=S[P];if(0>>1;Pi(ee,F))Yi(se,ee)?(S[P]=se,S[Y]=F,P=Y):(S[P]=ee,S[Z]=F,P=Z);else if(Yi(se,F))S[P]=se,S[Y]=F,P=Y;else break e}}return k}function i(S,k){var F=S.sortIndex-k.sortIndex;return F!==0?F:S.id-k.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;t.unstable_now=function(){return s.now()}}else{var c=Date,u=c.now();t.unstable_now=function(){return c.now()-u}}var f=[],d=[],p=1,g=null,m=3,y=!1,A=!1,E=!1,x=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,I=typeof setImmediate<"u"?setImmediate:null;function M(S){for(var k=n(d);k!==null;){if(k.callback===null)r(d);else if(k.startTime<=S)r(d),k.sortIndex=k.expirationTime,e(f,k);else break;k=n(d)}}function $(S){if(E=!1,M(S),!A)if(n(f)!==null)A=!0,N();else{var k=n(d);k!==null&&T($,k.startTime-S)}}var D=!1,R=-1,z=5,G=-1;function j(){return!(t.unstable_now()-GS&&j());){var P=g.callback;if(typeof P=="function"){g.callback=null,m=g.priorityLevel;var w=P(g.expirationTime<=S);if(S=t.unstable_now(),typeof w=="function"){g.callback=w,M(S),k=!0;break t}g===n(f)&&r(f),M(S)}else r(f);g=n(f)}if(g!==null)k=!0;else{var B=n(d);B!==null&&T($,B.startTime-S),k=!1}}break e}finally{g=null,m=F,y=!1}k=void 0}}finally{k?L():D=!1}}}var L;if(typeof I=="function")L=function(){I(V)};else if(typeof MessageChannel<"u"){var v=new MessageChannel,C=v.port2;v.port1.onmessage=V,L=function(){C.postMessage(null)}}else L=function(){x(V,0)};function N(){D||(D=!0,L())}function T(S,k){R=x(function(){S(t.unstable_now())},k)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(S){S.callback=null},t.unstable_continueExecution=function(){A||y||(A=!0,N())},t.unstable_forceFrameRate=function(S){0>S||125P?(S.sortIndex=F,e(d,S),n(f)===null&&S===n(d)&&(E?(O(R),R=-1):E=!0,T($,F-P))):(S.sortIndex=w,e(f,S),A||y||(A=!0,N())),S},t.unstable_shouldYield=j,t.unstable_wrapCallback=function(S){var k=m;return function(){var F=m;m=k;try{return S.apply(this,arguments)}finally{m=F}}}}(uv)),uv}var IC;function r7(){return IC||(IC=1,cv.exports=n7()),cv.exports}var lv={exports:{}},Sr={};/** + * @license React + * react-dom.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var OC;function i7(){if(OC)return Sr;OC=1;var t=gd();function e(f){var d="https://react.dev/errors/"+f;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),lv.exports=i7(),lv.exports}/** + * @license React + * react-dom-client.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var DC;function a7(){if(DC)return If;DC=1;var t=r7(),e=gd(),n=s7();function r(a){var o="https://react.dev/errors/"+a;if(1)":-1b||K[h]!==J[b]){var oe=` +`+K[h].replace(" at new "," at ");return a.displayName&&oe.includes("")&&(oe=oe.replace("",a.displayName)),oe}while(1<=h&&0<=b);break}}}finally{N=!1,Error.prepareStackTrace=l}return(l=a?a.displayName||a.name:"")?C(l):""}function S(a){switch(a.tag){case 26:case 27:case 5:return C(a.type);case 16:return C("Lazy");case 13:return C("Suspense");case 19:return C("SuspenseList");case 0:case 15:return a=T(a.type,!1),a;case 11:return a=T(a.type.render,!1),a;case 1:return a=T(a.type,!0),a;default:return""}}function k(a){try{var o="";do o+=S(a),a=a.return;while(a);return o}catch(l){return` +Error generating stack: `+l.message+` +`+l.stack}}function F(a){var o=a,l=a;if(a.alternate)for(;o.return;)o=o.return;else{a=o;do o=a,(o.flags&4098)!==0&&(l=o.return),a=o.return;while(a)}return o.tag===3?l:null}function P(a){if(a.tag===13){var o=a.memoizedState;if(o===null&&(a=a.alternate,a!==null&&(o=a.memoizedState)),o!==null)return o.dehydrated}return null}function w(a){if(F(a)!==a)throw Error(r(188))}function B(a){var o=a.alternate;if(!o){if(o=F(a),o===null)throw Error(r(188));return o!==a?null:a}for(var l=a,h=o;;){var b=l.return;if(b===null)break;var _=b.alternate;if(_===null){if(h=b.return,h!==null){l=h;continue}break}if(b.child===_.child){for(_=b.child;_;){if(_===l)return w(b),a;if(_===h)return w(b),o;_=_.sibling}throw Error(r(188))}if(l.return!==h.return)l=b,h=_;else{for(var U=!1,q=b.child;q;){if(q===l){U=!0,l=b,h=_;break}if(q===h){U=!0,h=b,l=_;break}q=q.sibling}if(!U){for(q=_.child;q;){if(q===l){U=!0,l=_,h=b;break}if(q===h){U=!0,h=_,l=b;break}q=q.sibling}if(!U)throw Error(r(189))}}if(l.alternate!==h)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?a:o}function Z(a){var o=a.tag;if(o===5||o===26||o===27||o===6)return a;for(a=a.child;a!==null;){if(o=Z(a),o!==null)return o;a=a.sibling}return null}var ee=Array.isArray,Y=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,se={pending:!1,data:null,method:null,action:null},ce=[],we=-1;function _e(a){return{current:a}}function ye(a){0>we||(a.current=ce[we],ce[we]=null,we--)}function Ce(a,o){we++,ce[we]=a.current,a.current=o}var kt=_e(null),tt=_e(null),Ke=_e(null),jn=_e(null);function ut(a,o){switch(Ce(Ke,o),Ce(tt,a),Ce(kt,null),a=o.nodeType,a){case 9:case 11:o=(o=o.documentElement)&&(o=o.namespaceURI)?X_(o):0;break;default:if(a=a===8?o.parentNode:o,o=a.tagName,a=a.namespaceURI)a=X_(a),o=J_(a,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}ye(kt),Ce(kt,o)}function lt(){ye(kt),ye(tt),ye(Ke)}function qr(a){a.memoizedState!==null&&Ce(jn,a);var o=kt.current,l=J_(o,a.type);o!==l&&(Ce(tt,a),Ce(kt,l))}function It(a){tt.current===a&&(ye(kt),ye(tt)),jn.current===a&&(ye(jn),_f._currentValue=se)}var Ot=Object.prototype.hasOwnProperty,yi=t.unstable_scheduleCallback,xt=t.unstable_cancelCallback,zt=t.unstable_shouldYield,ms=t.unstable_requestPaint,Je=t.unstable_now,Rt=t.unstable_getCurrentPriorityLevel,Ki=t.unstable_ImmediatePriority,qt=t.unstable_UserBlockingPriority,Zt=t.unstable_NormalPriority,_u=t.unstable_LowPriority,dn=t.unstable_IdlePriority,Tn=t.log,Bp=t.unstable_setDisableYieldValue,rn=null,mt=null;function Lp(a){if(mt&&typeof mt.onCommitFiberRoot=="function")try{mt.onCommitFiberRoot(rn,a,void 0,(a.current.flags&128)===128)}catch{}}function Ut(a){if(typeof Tn=="function"&&Bp(a),mt&&typeof mt.setStrictMode=="function")try{mt.setStrictMode(rn,a)}catch{}}var bt=Math.clz32?Math.clz32:Nn,$p=Math.log,xn=Math.LN2;function Nn(a){return a>>>=0,a===0?32:31-($p(a)/xn|0)|0}var Zo=128,fn=4194304;function Ht(a){var o=a&42;if(o!==0)return o;switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a&4194176;case 4194304:case 8388608:case 16777216:case 33554432:return a&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return a}}function Xo(a,o){var l=a.pendingLanes;if(l===0)return 0;var h=0,b=a.suspendedLanes,_=a.pingedLanes,U=a.warmLanes;a=a.finishedLanes!==0;var q=l&134217727;return q!==0?(l=q&~b,l!==0?h=Ht(l):(_&=q,_!==0?h=Ht(_):a||(U=q&~U,U!==0&&(h=Ht(U))))):(q=l&~b,q!==0?h=Ht(q):_!==0?h=Ht(_):a||(U=l&~U,U!==0&&(h=Ht(U)))),h===0?0:o!==0&&o!==h&&(o&b)===0&&(b=h&-h,U=o&-o,b>=U||b===32&&(U&4194176)!==0)?o:h}function sn(a,o){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&o)===0}function In(a,o){switch(a){case 1:case 2:case 4:case 8:return o+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return o+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Od(){var a=Zo;return Zo<<=1,(Zo&4194176)===0&&(Zo=128),a}function vn(){var a=fn;return fn<<=1,(fn&62914560)===0&&(fn=4194304),a}function mn(a){for(var o=[],l=0;31>l;l++)o.push(a);return o}function za(a,o){a.pendingLanes|=o,o!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}function On(a,o,l,h,b,_){var U=a.pendingLanes;a.pendingLanes=l,a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0,a.expiredLanes&=l,a.entangledLanes&=l,a.errorRecoveryDisabledLanes&=l,a.shellSuspendCounter=0;var q=a.entanglements,K=a.expirationTimes,J=a.hiddenUpdates;for(l=U&~l;0"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Md=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),xu={},Nu={};function kd(a){return Ot.call(Nu,a)?!0:Ot.call(xu,a)?!1:Md.test(a)?Nu[a]=!0:(xu[a]=!0,!1)}function jp(a,o,l){if(kd(o))if(l===null)a.removeAttribute(o);else{switch(typeof l){case"undefined":case"function":case"symbol":a.removeAttribute(o);return;case"boolean":var h=o.toLowerCase().slice(0,5);if(h!=="data-"&&h!=="aria-"){a.removeAttribute(o);return}}a.setAttribute(o,""+l)}}function zp(a,o,l){if(l===null)a.removeAttribute(o);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(o);return}a.setAttribute(o,""+l)}}function Js(a,o,l,h){if(h===null)a.removeAttribute(l);else{switch(typeof h){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(l);return}a.setAttributeNS(o,l,""+h)}}function vi(a){switch(typeof a){case"bigint":case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function tA(a){var o=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function KI(a){var o=tA(a)?"checked":"value",l=Object.getOwnPropertyDescriptor(a.constructor.prototype,o),h=""+a[o];if(!a.hasOwnProperty(o)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var b=l.get,_=l.set;return Object.defineProperty(a,o,{configurable:!0,get:function(){return b.call(this)},set:function(U){h=""+U,_.call(this,U)}}),Object.defineProperty(a,o,{enumerable:l.enumerable}),{getValue:function(){return h},setValue:function(U){h=""+U},stopTracking:function(){a._valueTracker=null,delete a[o]}}}}function qp(a){a._valueTracker||(a._valueTracker=KI(a))}function nA(a){if(!a)return!1;var o=a._valueTracker;if(!o)return!0;var l=o.getValue(),h="";return a&&(h=tA(a)?a.checked?"true":"false":a.value),a=h,a!==l?(o.setValue(a),!0):!1}function Hp(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}var WI=/[\n"\\]/g;function wi(a){return a.replace(WI,function(o){return"\\"+o.charCodeAt(0).toString(16)+" "})}function nb(a,o,l,h,b,_,U,q){a.name="",U!=null&&typeof U!="function"&&typeof U!="symbol"&&typeof U!="boolean"?a.type=U:a.removeAttribute("type"),o!=null?U==="number"?(o===0&&a.value===""||a.value!=o)&&(a.value=""+vi(o)):a.value!==""+vi(o)&&(a.value=""+vi(o)):U!=="submit"&&U!=="reset"||a.removeAttribute("value"),o!=null?rb(a,U,vi(o)):l!=null?rb(a,U,vi(l)):h!=null&&a.removeAttribute("value"),b==null&&_!=null&&(a.defaultChecked=!!_),b!=null&&(a.checked=b&&typeof b!="function"&&typeof b!="symbol"),q!=null&&typeof q!="function"&&typeof q!="symbol"&&typeof q!="boolean"?a.name=""+vi(q):a.removeAttribute("name")}function rA(a,o,l,h,b,_,U,q){if(_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"&&(a.type=_),o!=null||l!=null){if(!(_!=="submit"&&_!=="reset"||o!=null))return;l=l!=null?""+vi(l):"",o=o!=null?""+vi(o):l,q||o===a.value||(a.value=o),a.defaultValue=o}h=h??b,h=typeof h!="function"&&typeof h!="symbol"&&!!h,a.checked=q?a.checked:!!h,a.defaultChecked=!!h,U!=null&&typeof U!="function"&&typeof U!="symbol"&&typeof U!="boolean"&&(a.name=U)}function rb(a,o,l){o==="number"&&Hp(a.ownerDocument)===a||a.defaultValue===""+l||(a.defaultValue=""+l)}function Iu(a,o,l,h){if(a=a.options,o){o={};for(var b=0;b=Fd),mA=" ",bA=!1;function yA(a,o){switch(a){case"keyup":return AO.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vA(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var Pu=!1;function CO(a,o){switch(a){case"compositionend":return vA(o);case"keypress":return o.which!==32?null:(bA=!0,mA);case"textInput":return a=o.data,a===mA&&bA?null:a;default:return null}}function SO(a,o){if(Pu)return a==="compositionend"||!pb&&yA(a,o)?(a=lA(),Vp=ub=qa=null,Pu=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1=o)return{node:l,offset:o-a};a=h}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=xA(l)}}function IA(a,o){return a&&o?a===o?!0:a&&a.nodeType===3?!1:o&&o.nodeType===3?IA(a,o.parentNode):"contains"in a?a.contains(o):a.compareDocumentPosition?!!(a.compareDocumentPosition(o)&16):!1:!1}function OA(a){a=a!=null&&a.ownerDocument!=null&&a.ownerDocument.defaultView!=null?a.ownerDocument.defaultView:window;for(var o=Hp(a.document);o instanceof a.HTMLIFrameElement;){try{var l=typeof o.contentWindow.location.href=="string"}catch{l=!1}if(l)a=o.contentWindow;else break;o=Hp(a.document)}return o}function bb(a){var o=a&&a.nodeName&&a.nodeName.toLowerCase();return o&&(o==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||o==="textarea"||a.contentEditable==="true")}function PO(a,o){var l=OA(o);o=a.focusedElem;var h=a.selectionRange;if(l!==o&&o&&o.ownerDocument&&IA(o.ownerDocument.documentElement,o)){if(h!==null&&bb(o)){if(a=h.start,l=h.end,l===void 0&&(l=a),"selectionStart"in o)o.selectionStart=a,o.selectionEnd=Math.min(l,o.value.length);else if(l=(a=o.ownerDocument||document)&&a.defaultView||window,l.getSelection){l=l.getSelection();var b=o.textContent.length,_=Math.min(h.start,b);h=h.end===void 0?_:Math.min(h.end,b),!l.extend&&_>h&&(b=h,h=_,_=b),b=NA(o,_);var U=NA(o,h);b&&U&&(l.rangeCount!==1||l.anchorNode!==b.node||l.anchorOffset!==b.offset||l.focusNode!==U.node||l.focusOffset!==U.offset)&&(a=a.createRange(),a.setStart(b.node,b.offset),l.removeAllRanges(),_>h?(l.addRange(a),l.extend(U.node,U.offset)):(a.setEnd(U.node,U.offset),l.addRange(a)))}}for(a=[],l=o;l=l.parentNode;)l.nodeType===1&&a.push({element:l,left:l.scrollLeft,top:l.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o=document.documentMode,Mu=null,yb=null,Hd=null,vb=!1;function RA(a,o,l){var h=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;vb||Mu==null||Mu!==Hp(h)||(h=Mu,"selectionStart"in h&&bb(h)?h={start:h.selectionStart,end:h.selectionEnd}:(h=(h.ownerDocument&&h.ownerDocument.defaultView||window).getSelection(),h={anchorNode:h.anchorNode,anchorOffset:h.anchorOffset,focusNode:h.focusNode,focusOffset:h.focusOffset}),Hd&&qd(Hd,h)||(Hd=h,h=P0(yb,"onSelect"),0>=U,b-=U,ea=1<<32-bt(o)+b|l<Fe?(rr=ke,ke=null):rr=ke.sibling;var At=ie(te,ke,ne[Fe],ue);if(At===null){ke===null&&(ke=rr);break}a&&ke&&At.alternate===null&&o(te,ke),X=_(At,X,Fe),nt===null?Ie=At:nt.sibling=At,nt=At,ke=rr}if(Fe===ne.length)return l(te,ke),Et&&ic(te,Fe),Ie;if(ke===null){for(;FeFe?(rr=ke,ke=null):rr=ke.sibling;var uo=ie(te,ke,At.value,ue);if(uo===null){ke===null&&(ke=rr);break}a&&ke&&uo.alternate===null&&o(te,ke),X=_(uo,X,Fe),nt===null?Ie=uo:nt.sibling=uo,nt=uo,ke=rr}if(At.done)return l(te,ke),Et&&ic(te,Fe),Ie;if(ke===null){for(;!At.done;Fe++,At=ne.next())At=le(te,At.value,ue),At!==null&&(X=_(At,X,Fe),nt===null?Ie=At:nt.sibling=At,nt=At);return Et&&ic(te,Fe),Ie}for(ke=h(ke);!At.done;Fe++,At=ne.next())At=ae(ke,te,Fe,At.value,ue),At!==null&&(a&&At.alternate!==null&&ke.delete(At.key===null?Fe:At.key),X=_(At,X,Fe),nt===null?Ie=At:nt.sibling=At,nt=At);return a&&ke.forEach(function(ZR){return o(te,ZR)}),Et&&ic(te,Fe),Ie}function Mn(te,X,ne,ue){if(typeof ne=="object"&&ne!==null&&ne.type===f&&ne.key===null&&(ne=ne.props.children),typeof ne=="object"&&ne!==null){switch(ne.$$typeof){case c:e:{for(var Ie=ne.key;X!==null;){if(X.key===Ie){if(Ie=ne.type,Ie===f){if(X.tag===7){l(te,X.sibling),ue=b(X,ne.props.children),ue.return=te,te=ue;break e}}else if(X.elementType===Ie||typeof Ie=="object"&&Ie!==null&&Ie.$$typeof===I&&WA(Ie)===X.type){l(te,X.sibling),ue=b(X,ne.props),Zd(ue,ne),ue.return=te,te=ue;break e}l(te,X);break}else o(te,X);X=X.sibling}ne.type===f?(ue=gc(ne.props.children,te.mode,ue,ne.key),ue.return=te,te=ue):(ue=_0(ne.type,ne.key,ne.props,null,te.mode,ue),Zd(ue,ne),ue.return=te,te=ue)}return U(te);case u:e:{for(Ie=ne.key;X!==null;){if(X.key===Ie)if(X.tag===4&&X.stateNode.containerInfo===ne.containerInfo&&X.stateNode.implementation===ne.implementation){l(te,X.sibling),ue=b(X,ne.children||[]),ue.return=te,te=ue;break e}else{l(te,X);break}else o(te,X);X=X.sibling}ue=Ey(ne,te.mode,ue),ue.return=te,te=ue}return U(te);case I:return Ie=ne._init,ne=Ie(ne._payload),Mn(te,X,ne,ue)}if(ee(ne))return Pe(te,X,ne,ue);if(R(ne)){if(Ie=R(ne),typeof Ie!="function")throw Error(r(150));return ne=Ie.call(ne),qe(te,X,ne,ue)}if(typeof ne.then=="function")return Mn(te,X,i0(ne),ue);if(ne.$$typeof===y)return Mn(te,X,w0(te,ne),ue);s0(te,ne)}return typeof ne=="string"&&ne!==""||typeof ne=="number"||typeof ne=="bigint"?(ne=""+ne,X!==null&&X.tag===6?(l(te,X.sibling),ue=b(X,ne),ue.return=te,te=ue):(l(te,X),ue=wy(ne,te.mode,ue),ue.return=te,te=ue),U(te)):l(te,X)}return function(te,X,ne,ue){try{Yd=0;var Ie=Mn(te,X,ne,ue);return Fu=null,Ie}catch(ke){if(ke===Wd)throw ke;var nt=Ni(29,ke,null,te.mode);return nt.lanes=ue,nt.return=te,nt}finally{}}}var ac=QA(!0),YA=QA(!1),ju=_e(null),a0=_e(0);function ZA(a,o){a=fa,Ce(a0,a),Ce(ju,o),fa=a|o.baseLanes}function xb(){Ce(a0,fa),Ce(ju,ju.current)}function Nb(){fa=a0.current,ye(ju),ye(a0)}var Si=_e(null),Es=null;function Ga(a){var o=a.alternate;Ce(Wn,Wn.current&1),Ce(Si,a),Es===null&&(o===null||ju.current!==null||o.memoizedState!==null)&&(Es=a)}function XA(a){if(a.tag===22){if(Ce(Wn,Wn.current),Ce(Si,a),Es===null){var o=a.alternate;o!==null&&o.memoizedState!==null&&(Es=a)}}else Va()}function Va(){Ce(Wn,Wn.current),Ce(Si,Si.current)}function na(a){ye(Si),Es===a&&(Es=null),ye(Wn)}var Wn=_e(0);function o0(a){for(var o=a;o!==null;){if(o.tag===13){var l=o.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||l.data==="$!"))return o}else if(o.tag===19&&o.memoizedProps.revealOrder!==void 0){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===a)break;for(;o.sibling===null;){if(o.return===null||o.return===a)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var LO=typeof AbortController<"u"?AbortController:function(){var a=[],o=this.signal={aborted:!1,addEventListener:function(l,h){a.push(h)}};this.abort=function(){o.aborted=!0,a.forEach(function(l){return l()})}},$O=t.unstable_scheduleCallback,FO=t.unstable_NormalPriority,Qn={$$typeof:y,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ib(){return{controller:new LO,data:new Map,refCount:0}}function Xd(a){a.refCount--,a.refCount===0&&$O(FO,function(){a.controller.abort()})}var Jd=null,Ob=0,zu=0,qu=null;function jO(a,o){if(Jd===null){var l=Jd=[];Ob=0,zu=Uy(),qu={status:"pending",value:void 0,then:function(h){l.push(h)}}}return Ob++,o.then(JA,JA),o}function JA(){if(--Ob===0&&Jd!==null){qu!==null&&(qu.status="fulfilled");var a=Jd;Jd=null,zu=0,qu=null;for(var o=0;o_?_:8;var U=j.T,q={};j.T=q,Kb(a,!1,o,l);try{var K=b(),J=j.S;if(J!==null&&J(q,K),K!==null&&typeof K=="object"&&typeof K.then=="function"){var oe=zO(K,h);nf(a,o,oe,ui(a))}else nf(a,o,h,ui(a))}catch(le){nf(a,o,{then:function(){},status:"rejected",reason:le},ui())}finally{Y.p=_,j.T=U}}function KO(){}function Gb(a,o,l,h){if(a.tag!==5)throw Error(r(476));var b=O3(a).queue;I3(a,b,o,se,l===null?KO:function(){return R3(a),l(h)})}function O3(a){var o=a.memoizedState;if(o!==null)return o;o={memoizedState:se,baseState:se,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ra,lastRenderedState:se},next:null};var l={};return o.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ra,lastRenderedState:l},next:null},a.memoizedState=o,a=a.alternate,a!==null&&(a.memoizedState=o),o}function R3(a){var o=O3(a).next.queue;nf(a,o,{},ui())}function Vb(){return Cr(_f)}function D3(){return qn().memoizedState}function P3(){return qn().memoizedState}function WO(a){for(var o=a.return;o!==null;){switch(o.tag){case 24:case 3:var l=ui();a=Za(l);var h=Xa(o,a,l);h!==null&&(kr(h,o,l),af(h,o,l)),o={cache:Ib()},a.payload=o;return}o=o.return}}function QO(a,o,l){var h=ui();l={lane:h,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null},m0(a)?k3(o,l):(l=Ab(a,o,l,h),l!==null&&(kr(l,a,h),U3(l,o,h)))}function M3(a,o,l){var h=ui();nf(a,o,l,h)}function nf(a,o,l,h){var b={lane:h,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null};if(m0(a))k3(o,b);else{var _=a.alternate;if(a.lanes===0&&(_===null||_.lanes===0)&&(_=o.lastRenderedReducer,_!==null))try{var U=o.lastRenderedState,q=_(U,l);if(b.hasEagerState=!0,b.eagerState=q,si(q,U))return Jp(a,o,b,0),an===null&&Xp(),!1}catch{}finally{}if(l=Ab(a,o,b,h),l!==null)return kr(l,a,h),U3(l,o,h),!0}return!1}function Kb(a,o,l,h){if(h={lane:2,revertLane:Uy(),action:h,hasEagerState:!1,eagerState:null,next:null},m0(a)){if(o)throw Error(r(479))}else o=Ab(a,l,h,2),o!==null&&kr(o,a,2)}function m0(a){var o=a.alternate;return a===et||o!==null&&o===et}function k3(a,o){Hu=u0=!0;var l=a.pending;l===null?o.next=o:(o.next=l.next,l.next=o),a.pending=o}function U3(a,o,l){if((l&4194176)!==0){var h=o.lanes;h&=a.pendingLanes,l|=h,o.lanes=l,Rd(a,l)}}var As={readContext:Cr,use:f0,useCallback:Bn,useContext:Bn,useEffect:Bn,useImperativeHandle:Bn,useLayoutEffect:Bn,useInsertionEffect:Bn,useMemo:Bn,useReducer:Bn,useRef:Bn,useState:Bn,useDebugValue:Bn,useDeferredValue:Bn,useTransition:Bn,useSyncExternalStore:Bn,useId:Bn};As.useCacheRefresh=Bn,As.useMemoCache=Bn,As.useHostTransitionStatus=Bn,As.useFormState=Bn,As.useActionState=Bn,As.useOptimistic=Bn;var uc={readContext:Cr,use:f0,useCallback:function(a,o){return Gr().memoizedState=[a,o===void 0?null:o],a},useContext:Cr,useEffect:E3,useImperativeHandle:function(a,o,l){l=l!=null?l.concat([a]):null,p0(4194308,4,C3.bind(null,o,a),l)},useLayoutEffect:function(a,o){return p0(4194308,4,a,o)},useInsertionEffect:function(a,o){p0(4,2,a,o)},useMemo:function(a,o){var l=Gr();o=o===void 0?null:o;var h=a();if(cc){Ut(!0);try{a()}finally{Ut(!1)}}return l.memoizedState=[h,o],h},useReducer:function(a,o,l){var h=Gr();if(l!==void 0){var b=l(o);if(cc){Ut(!0);try{l(o)}finally{Ut(!1)}}}else b=o;return h.memoizedState=h.baseState=b,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:b},h.queue=a,a=a.dispatch=QO.bind(null,et,a),[h.memoizedState,a]},useRef:function(a){var o=Gr();return a={current:a},o.memoizedState=a},useState:function(a){a=Fb(a);var o=a.queue,l=M3.bind(null,et,o);return o.dispatch=l,[a.memoizedState,l]},useDebugValue:qb,useDeferredValue:function(a,o){var l=Gr();return Hb(l,a,o)},useTransition:function(){var a=Fb(!1);return a=I3.bind(null,et,a.queue,!0,!1),Gr().memoizedState=a,[!1,a]},useSyncExternalStore:function(a,o,l){var h=et,b=Gr();if(Et){if(l===void 0)throw Error(r(407));l=l()}else{if(l=o(),an===null)throw Error(r(349));(yt&60)!==0||s3(h,o,l)}b.memoizedState=l;var _={value:l,getSnapshot:o};return b.queue=_,E3(o3.bind(null,h,_,a),[a]),h.flags|=2048,Vu(9,a3.bind(null,h,_,l,o),{destroy:void 0},null),l},useId:function(){var a=Gr(),o=an.identifierPrefix;if(Et){var l=ta,h=ea;l=(h&~(1<<32-bt(h)-1)).toString(32)+l,o=":"+o+"R"+l,l=l0++,0 title"))),pr(_,h,l),_[st]=a,Rn(_),h=_;break e;case"link":var U=uC("link","href",b).get(h+(l.href||""));if(U){for(var q=0;q<\/script>",a=a.removeChild(a.firstChild);break;case"select":a=typeof h.is=="string"?b.createElement("select",{is:h.is}):b.createElement("select"),h.multiple?a.multiple=!0:h.size&&(a.size=h.size);break;default:a=typeof h.is=="string"?b.createElement(l,{is:h.is}):b.createElement(l)}}a[st]=o,a[dr]=h;e:for(b=o.child;b!==null;){if(b.tag===5||b.tag===6)a.appendChild(b.stateNode);else if(b.tag!==4&&b.tag!==27&&b.child!==null){b.child.return=b,b=b.child;continue}if(b===o)break e;for(;b.sibling===null;){if(b.return===null||b.return===o)break e;b=b.return}b.sibling.return=b.return,b=b.sibling}o.stateNode=a;e:switch(pr(a,l,h),l){case"button":case"input":case"select":case"textarea":a=!!h.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&la(o)}}return _n(o),o.flags&=-16777217,null;case 6:if(a&&o.stateNode!=null)a.memoizedProps!==h&&la(o);else{if(typeof h!="string"&&o.stateNode===null)throw Error(r(166));if(a=Ke.current,Gd(o)){if(a=o.stateNode,l=o.memoizedProps,h=null,b=Mr,b!==null)switch(b.tag){case 27:case 5:h=b.memoizedProps}a[st]=o,a=!!(a.nodeValue===l||h!==null&&h.suppressHydrationWarning===!0||Z_(a.nodeValue,l)),a||sc(o)}else a=k0(a).createTextNode(h),a[st]=o,o.stateNode=a}return _n(o),null;case 13:if(h=o.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(b=Gd(o),h!==null&&h.dehydrated!==null){if(a===null){if(!b)throw Error(r(318));if(b=o.memoizedState,b=b!==null?b.dehydrated:null,!b)throw Error(r(317));b[st]=o}else Vd(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;_n(o),b=!1}else Zi!==null&&(Iy(Zi),Zi=null),b=!0;if(!b)return o.flags&256?(na(o),o):(na(o),null)}if(na(o),(o.flags&128)!==0)return o.lanes=l,o;if(l=h!==null,a=a!==null&&a.memoizedState!==null,l){h=o.child,b=null,h.alternate!==null&&h.alternate.memoizedState!==null&&h.alternate.memoizedState.cachePool!==null&&(b=h.alternate.memoizedState.cachePool.pool);var _=null;h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(_=h.memoizedState.cachePool.pool),_!==b&&(h.flags|=2048)}return l!==a&&l&&(o.child.flags|=8192),C0(o,o.updateQueue),_n(o),null;case 4:return lt(),a===null&&Fy(o.stateNode.containerInfo),_n(o),null;case 10:return aa(o.type),_n(o),null;case 19:if(ye(Wn),b=o.memoizedState,b===null)return _n(o),null;if(h=(o.flags&128)!==0,_=b.rendering,_===null)if(h)hf(b,!1);else{if(Pn!==0||a!==null&&(a.flags&128)!==0)for(a=o.child;a!==null;){if(_=o0(a),_!==null){for(o.flags|=128,hf(b,!1),a=_.updateQueue,o.updateQueue=a,C0(o,a),o.subtreeFlags=0,a=l,l=o.child;l!==null;)S_(l,a),l=l.sibling;return Ce(Wn,Wn.current&1|2),o.child}a=a.sibling}b.tail!==null&&Je()>S0&&(o.flags|=128,h=!0,hf(b,!1),o.lanes=4194304)}else{if(!h)if(a=o0(_),a!==null){if(o.flags|=128,h=!0,a=a.updateQueue,o.updateQueue=a,C0(o,a),hf(b,!0),b.tail===null&&b.tailMode==="hidden"&&!_.alternate&&!Et)return _n(o),null}else 2*Je()-b.renderingStartTime>S0&&l!==536870912&&(o.flags|=128,h=!0,hf(b,!1),o.lanes=4194304);b.isBackwards?(_.sibling=o.child,o.child=_):(a=b.last,a!==null?a.sibling=_:o.child=_,b.last=_)}return b.tail!==null?(o=b.tail,b.rendering=o,b.tail=o.sibling,b.renderingStartTime=Je(),o.sibling=null,a=Wn.current,Ce(Wn,h?a&1|2:a&1),o):(_n(o),null);case 22:case 23:return na(o),Nb(),h=o.memoizedState!==null,a!==null?a.memoizedState!==null!==h&&(o.flags|=8192):h&&(o.flags|=8192),h?(l&536870912)!==0&&(o.flags&128)===0&&(_n(o),o.subtreeFlags&6&&(o.flags|=8192)):_n(o),l=o.updateQueue,l!==null&&C0(o,l.retryQueue),l=null,a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(l=a.memoizedState.cachePool.pool),h=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(h=o.memoizedState.cachePool.pool),h!==l&&(o.flags|=2048),a!==null&&ye(oc),null;case 24:return l=null,a!==null&&(l=a.memoizedState.cache),o.memoizedState.cache!==l&&(o.flags|=2048),aa(Qn),_n(o),null;case 25:return null}throw Error(r(156,o.tag))}function nR(a,o){switch(Cb(o),o.tag){case 1:return a=o.flags,a&65536?(o.flags=a&-65537|128,o):null;case 3:return aa(Qn),lt(),a=o.flags,(a&65536)!==0&&(a&128)===0?(o.flags=a&-65537|128,o):null;case 26:case 27:case 5:return It(o),null;case 13:if(na(o),a=o.memoizedState,a!==null&&a.dehydrated!==null){if(o.alternate===null)throw Error(r(340));Vd()}return a=o.flags,a&65536?(o.flags=a&-65537|128,o):null;case 19:return ye(Wn),null;case 4:return lt(),null;case 10:return aa(o.type),null;case 22:case 23:return na(o),Nb(),a!==null&&ye(oc),a=o.flags,a&65536?(o.flags=a&-65537|128,o):null;case 24:return aa(Qn),null;case 25:return null;default:return null}}function N_(a,o){switch(Cb(o),o.tag){case 3:aa(Qn),lt();break;case 26:case 27:case 5:It(o);break;case 4:lt();break;case 13:na(o);break;case 19:ye(Wn);break;case 10:aa(o.type);break;case 22:case 23:na(o),Nb(),a!==null&&ye(oc);break;case 24:aa(Qn)}}var rR={getCacheForType:function(a){var o=Cr(Qn),l=o.data.get(a);return l===void 0&&(l=a(),o.data.set(a,l)),l}},iR=typeof WeakMap=="function"?WeakMap:Map,Cn=0,an=null,at=null,yt=0,on=0,ci=null,da=!1,Yu=!1,Ay=!1,fa=0,Pn=0,ro=0,mc=0,_y=0,Ii=0,Zu=0,pf=null,_s=null,Cy=!1,Sy=0,S0=1/0,T0=null,io=null,x0=!1,bc=null,gf=0,Ty=0,xy=null,mf=0,Ny=null;function ui(){if((Cn&2)!==0&&yt!==0)return yt&-yt;if(j.T!==null){var a=zu;return a!==0?a:Uy()}return An()}function I_(){Ii===0&&(Ii=(yt&536870912)===0||Et?Od():536870912);var a=Si.current;return a!==null&&(a.flags|=32),Ii}function kr(a,o,l){(a===an&&on===2||a.cancelPendingCommit!==null)&&(Xu(a,0),ha(a,yt,Ii,!1)),za(a,l),((Cn&2)===0||a!==an)&&(a===an&&((Cn&2)===0&&(mc|=l),Pn===4&&ha(a,yt,Ii,!1)),Cs(a))}function O_(a,o,l){if((Cn&6)!==0)throw Error(r(327));var h=!l&&(o&60)===0&&(o&a.expiredLanes)===0||sn(a,o),b=h?oR(a,o):Dy(a,o,!0),_=h;do{if(b===0){Yu&&!h&&ha(a,o,0,!1);break}else if(b===6)ha(a,o,0,!da);else{if(l=a.current.alternate,_&&!sR(l)){b=Dy(a,o,!1),_=!1;continue}if(b===2){if(_=o,a.errorRecoveryDisabledLanes&_)var U=0;else U=a.pendingLanes&-536870913,U=U!==0?U:U&536870912?536870912:0;if(U!==0){o=U;e:{var q=a;b=pf;var K=q.current.memoizedState.isDehydrated;if(K&&(Xu(q,U).flags|=256),U=Dy(q,U,!1),U!==2){if(Ay&&!K){q.errorRecoveryDisabledLanes|=_,mc|=_,b=4;break e}_=_s,_s=b,_!==null&&Iy(_)}b=U}if(_=!1,b!==2)continue}}if(b===1){Xu(a,0),ha(a,o,0,!0);break}e:{switch(h=a,b){case 0:case 1:throw Error(r(345));case 4:if((o&4194176)===o){ha(h,o,Ii,!da);break e}break;case 2:_s=null;break;case 3:case 5:break;default:throw Error(r(329))}if(h.finishedWork=l,h.finishedLanes=o,(o&62914560)===o&&(_=Sy+300-Je(),10<_)){if(ha(h,o,Ii,!da),Xo(h,0)!==0)break e;h.timeoutHandle=eC(R_.bind(null,h,l,_s,T0,Cy,o,Ii,mc,Zu,da,2,-0,0),_);break e}R_(h,l,_s,T0,Cy,o,Ii,mc,Zu,da,0,-0,0)}}break}while(!0);Cs(a)}function Iy(a){_s===null?_s=a:_s.push.apply(_s,a)}function R_(a,o,l,h,b,_,U,q,K,J,oe,le,ie){var ae=o.subtreeFlags;if((ae&8192||(ae&16785408)===16785408)&&(Af={stylesheets:null,count:0,unsuspend:FR},E_(o),o=zR(),o!==null)){a.cancelPendingCommit=o(L_.bind(null,a,l,h,b,U,q,K,1,le,ie)),ha(a,_,U,!J);return}L_(a,l,h,b,U,q,K,oe,le,ie)}function sR(a){for(var o=a;;){var l=o.tag;if((l===0||l===11||l===15)&&o.flags&16384&&(l=o.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var h=0;hl?32:l,j.T=null,bc===null)var _=!1;else{l=xy,xy=null;var U=bc,q=gf;if(bc=null,gf=0,(Cn&6)!==0)throw Error(r(331));var K=Cn;if(Cn|=4,__(U.current),w_(U,U.current,q,l),Cn=K,bf(0,!1),mt&&typeof mt.onPostCommitFiberRoot=="function")try{mt.onPostCommitFiberRoot(rn,U)}catch{}_=!0}return _}finally{Y.p=b,j.T=h,$_(a,o)}}return!1}function F_(a,o,l){o=Ai(l,o),o=Yb(a.stateNode,o,2),a=Xa(a,o,2),a!==null&&(za(a,2),Cs(a))}function Jt(a,o,l){if(a.tag===3)F_(a,a,l);else for(;o!==null;){if(o.tag===3){F_(o,a,l);break}else if(o.tag===1){var h=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&(io===null||!io.has(h))){a=Ai(l,a),l=q3(2),h=Xa(o,l,2),h!==null&&(H3(l,h,o,a),za(h,2),Cs(h));break}}o=o.return}}function Py(a,o,l){var h=a.pingCache;if(h===null){h=a.pingCache=new iR;var b=new Set;h.set(o,b)}else b=h.get(o),b===void 0&&(b=new Set,h.set(o,b));b.has(l)||(Ay=!0,b.add(l),a=lR.bind(null,a,o,l),o.then(a,a))}function lR(a,o,l){var h=a.pingCache;h!==null&&h.delete(o),a.pingedLanes|=a.suspendedLanes&l,a.warmLanes&=~l,an===a&&(yt&l)===l&&(Pn===4||Pn===3&&(yt&62914560)===yt&&300>Je()-Sy?(Cn&2)===0&&Xu(a,0):_y|=l,Zu===yt&&(Zu=0)),Cs(a)}function j_(a,o){o===0&&(o=vn()),a=Ha(a,o),a!==null&&(za(a,o),Cs(a))}function dR(a){var o=a.memoizedState,l=0;o!==null&&(l=o.retryLane),j_(a,l)}function fR(a,o){var l=0;switch(a.tag){case 13:var h=a.stateNode,b=a.memoizedState;b!==null&&(l=b.retryLane);break;case 19:h=a.stateNode;break;case 22:h=a.stateNode._retryCache;break;default:throw Error(r(314))}h!==null&&h.delete(o),j_(a,l)}function hR(a,o){return yi(a,o)}var O0=null,tl=null,My=!1,R0=!1,ky=!1,yc=0;function Cs(a){a!==tl&&a.next===null&&(tl===null?O0=tl=a:tl=tl.next=a),R0=!0,My||(My=!0,gR(pR))}function bf(a,o){if(!ky&&R0){ky=!0;do for(var l=!1,h=O0;h!==null;){if(a!==0){var b=h.pendingLanes;if(b===0)var _=0;else{var U=h.suspendedLanes,q=h.pingedLanes;_=(1<<31-bt(42|a)+1)-1,_&=b&~(U&~q),_=_&201326677?_&201326677|1:_?_|2:0}_!==0&&(l=!0,H_(h,_))}else _=yt,_=Xo(h,h===an?_:0),(_&3)===0||sn(h,_)||(l=!0,H_(h,_));h=h.next}while(l);ky=!1}}function pR(){R0=My=!1;var a=0;yc!==0&&(_R()&&(a=yc),yc=0);for(var o=Je(),l=null,h=O0;h!==null;){var b=h.next,_=z_(h,o);_===0?(h.next=null,l===null?O0=b:l.next=b,b===null&&(tl=l)):(l=h,(a!==0||(_&3)!==0)&&(R0=!0)),h=b}bf(a)}function z_(a,o){for(var l=a.suspendedLanes,h=a.pingedLanes,b=a.expirationTimes,_=a.pendingLanes&-62914561;0<_;){var U=31-bt(_),q=1<"u"?null:document;function sC(a,o,l){var h=rl;if(h&&typeof o=="string"&&o){var b=wi(o);b='link[rel="'+a+'"][href="'+b+'"]',typeof l=="string"&&(b+='[crossorigin="'+l+'"]'),iC.has(b)||(iC.add(b),a={rel:a,crossOrigin:l,href:o},h.querySelector(b)===null&&(o=h.createElement("link"),pr(o,"link",a),Rn(o),h.head.appendChild(o)))}}function RR(a){pa.D(a),sC("dns-prefetch",a,null)}function DR(a,o){pa.C(a,o),sC("preconnect",a,o)}function PR(a,o,l){pa.L(a,o,l);var h=rl;if(h&&a&&o){var b='link[rel="preload"][as="'+wi(o)+'"]';o==="image"&&l&&l.imageSrcSet?(b+='[imagesrcset="'+wi(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(b+='[imagesizes="'+wi(l.imageSizes)+'"]')):b+='[href="'+wi(a)+'"]';var _=b;switch(o){case"style":_=il(a);break;case"script":_=sl(a)}Oi.has(_)||(a=V({rel:"preload",href:o==="image"&&l&&l.imageSrcSet?void 0:a,as:o},l),Oi.set(_,a),h.querySelector(b)!==null||o==="style"&&h.querySelector(wf(_))||o==="script"&&h.querySelector(Ef(_))||(o=h.createElement("link"),pr(o,"link",a),Rn(o),h.head.appendChild(o)))}}function MR(a,o){pa.m(a,o);var l=rl;if(l&&a){var h=o&&typeof o.as=="string"?o.as:"script",b='link[rel="modulepreload"][as="'+wi(h)+'"][href="'+wi(a)+'"]',_=b;switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":_=sl(a)}if(!Oi.has(_)&&(a=V({rel:"modulepreload",href:a},o),Oi.set(_,a),l.querySelector(b)===null)){switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Ef(_)))return}h=l.createElement("link"),pr(h,"link",a),Rn(h),l.head.appendChild(h)}}}function kR(a,o,l){pa.S(a,o,l);var h=rl;if(h&&a){var b=ys(h).hoistableStyles,_=il(a);o=o||"default";var U=b.get(_);if(!U){var q={loading:0,preload:null};if(U=h.querySelector(wf(_)))q.loading=5;else{a=V({rel:"stylesheet",href:a,"data-precedence":o},l),(l=Oi.get(_))&&Qy(a,l);var K=U=h.createElement("link");Rn(K),pr(K,"link",a),K._p=new Promise(function(J,oe){K.onload=J,K.onerror=oe}),K.addEventListener("load",function(){q.loading|=1}),K.addEventListener("error",function(){q.loading|=2}),q.loading|=4,B0(U,o,h)}U={type:"stylesheet",instance:U,count:1,state:q},b.set(_,U)}}}function UR(a,o){pa.X(a,o);var l=rl;if(l&&a){var h=ys(l).hoistableScripts,b=sl(a),_=h.get(b);_||(_=l.querySelector(Ef(b)),_||(a=V({src:a,async:!0},o),(o=Oi.get(b))&&Yy(a,o),_=l.createElement("script"),Rn(_),pr(_,"link",a),l.head.appendChild(_)),_={type:"script",instance:_,count:1,state:null},h.set(b,_))}}function BR(a,o){pa.M(a,o);var l=rl;if(l&&a){var h=ys(l).hoistableScripts,b=sl(a),_=h.get(b);_||(_=l.querySelector(Ef(b)),_||(a=V({src:a,async:!0,type:"module"},o),(o=Oi.get(b))&&Yy(a,o),_=l.createElement("script"),Rn(_),pr(_,"link",a),l.head.appendChild(_)),_={type:"script",instance:_,count:1,state:null},h.set(b,_))}}function aC(a,o,l,h){var b=(b=Ke.current)?U0(b):null;if(!b)throw Error(r(446));switch(a){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(o=il(l.href),l=ys(b).hoistableStyles,h=l.get(o),h||(h={type:"style",instance:null,count:0,state:null},l.set(o,h)),h):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){a=il(l.href);var _=ys(b).hoistableStyles,U=_.get(a);if(U||(b=b.ownerDocument||b,U={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},_.set(a,U),(_=b.querySelector(wf(a)))&&!_._p&&(U.instance=_,U.state.loading=5),Oi.has(a)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Oi.set(a,l),_||LR(b,a,l,U.state))),o&&h===null)throw Error(r(528,""));return U}if(o&&h!==null)throw Error(r(529,""));return null;case"script":return o=l.async,l=l.src,typeof l=="string"&&o&&typeof o!="function"&&typeof o!="symbol"?(o=sl(l),l=ys(b).hoistableScripts,h=l.get(o),h||(h={type:"script",instance:null,count:0,state:null},l.set(o,h)),h):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,a))}}function il(a){return'href="'+wi(a)+'"'}function wf(a){return'link[rel="stylesheet"]['+a+"]"}function oC(a){return V({},a,{"data-precedence":a.precedence,precedence:null})}function LR(a,o,l,h){a.querySelector('link[rel="preload"][as="style"]['+o+"]")?h.loading=1:(o=a.createElement("link"),h.preload=o,o.addEventListener("load",function(){return h.loading|=1}),o.addEventListener("error",function(){return h.loading|=2}),pr(o,"link",l),Rn(o),a.head.appendChild(o))}function sl(a){return'[src="'+wi(a)+'"]'}function Ef(a){return"script[async]"+a}function cC(a,o,l){if(o.count++,o.instance===null)switch(o.type){case"style":var h=a.querySelector('style[data-href~="'+wi(l.href)+'"]');if(h)return o.instance=h,Rn(h),h;var b=V({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return h=(a.ownerDocument||a).createElement("style"),Rn(h),pr(h,"style",b),B0(h,l.precedence,a),o.instance=h;case"stylesheet":b=il(l.href);var _=a.querySelector(wf(b));if(_)return o.state.loading|=4,o.instance=_,Rn(_),_;h=oC(l),(b=Oi.get(b))&&Qy(h,b),_=(a.ownerDocument||a).createElement("link"),Rn(_);var U=_;return U._p=new Promise(function(q,K){U.onload=q,U.onerror=K}),pr(_,"link",h),o.state.loading|=4,B0(_,l.precedence,a),o.instance=_;case"script":return _=sl(l.src),(b=a.querySelector(Ef(_)))?(o.instance=b,Rn(b),b):(h=l,(b=Oi.get(_))&&(h=V({},l),Yy(h,b)),a=a.ownerDocument||a,b=a.createElement("script"),Rn(b),pr(b,"link",h),a.head.appendChild(b),o.instance=b);case"void":return null;default:throw Error(r(443,o.type))}else o.type==="stylesheet"&&(o.state.loading&4)===0&&(h=o.instance,o.state.loading|=4,B0(h,l.precedence,a));return o.instance}function B0(a,o,l){for(var h=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),b=h.length?h[h.length-1]:null,_=b,U=0;U title"):null)}function $R(a,o,l){if(l===1||o.itemProp!=null)return!1;switch(a){case"meta":case"title":return!0;case"style":if(typeof o.precedence!="string"||typeof o.href!="string"||o.href==="")break;return!0;case"link":if(typeof o.rel!="string"||typeof o.href!="string"||o.href===""||o.onLoad||o.onError)break;switch(o.rel){case"stylesheet":return a=o.disabled,typeof o.precedence=="string"&&a==null;default:return!0}case"script":if(o.async&&typeof o.async!="function"&&typeof o.async!="symbol"&&!o.onLoad&&!o.onError&&o.src&&typeof o.src=="string")return!0}return!1}function dC(a){return!(a.type==="stylesheet"&&(a.state.loading&3)===0)}var Af=null;function FR(){}function jR(a,o,l){if(Af===null)throw Error(r(475));var h=Af;if(o.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(o.state.loading&4)===0){if(o.instance===null){var b=il(l.href),_=a.querySelector(wf(b));if(_){a=_._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(h.count++,h=$0.bind(h),a.then(h,h)),o.state.loading|=4,o.instance=_,Rn(_);return}_=a.ownerDocument||a,l=oC(l),(b=Oi.get(b))&&Qy(l,b),_=_.createElement("link"),Rn(_);var U=_;U._p=new Promise(function(q,K){U.onload=q,U.onerror=K}),pr(_,"link",l),o.instance=_}h.stylesheets===null&&(h.stylesheets=new Map),h.stylesheets.set(o,a),(a=o.state.preload)&&(o.state.loading&3)===0&&(h.count++,o=$0.bind(h),a.addEventListener("load",o),a.addEventListener("error",o))}}function zR(){if(Af===null)throw Error(r(475));var a=Af;return a.stylesheets&&a.count===0&&Zy(a,a.stylesheets),0"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),ov.exports=a7(),ov.exports}var c7=o7();const u7=Symbol(),BE=Symbol(),Of="a",oh="w";let l7=(t,e)=>new Proxy(t,e);const sw=Object.getPrototypeOf,aw=new WeakMap,z8=t=>t&&(aw.has(t)?aw.get(t):sw(t)===Object.prototype||sw(t)===Array.prototype),jg=t=>typeof t=="object"&&t!==null,d7=t=>{if(Array.isArray(t))return Array.from(t);const e=Object.getOwnPropertyDescriptors(t);return Object.values(e).forEach(n=>{n.configurable=!0}),Object.create(sw(t),e)},LE=t=>t[BE]||t,q8=(t,e,n,r)=>{if(!z8(t))return t;let i=r&&r.get(t);if(!i){const f=LE(t);i=(d=>Object.values(Object.getOwnPropertyDescriptors(d)).some(p=>!p.configurable&&!p.writable))(f)?[f,d7(f)]:[f],r==null||r.set(t,i)}const[s,c]=i;let u=n&&n.get(s);return u&&u[1].f===!!c||(u=((f,d)=>{const p={f:d};let g=!1;const m=(A,E)=>{if(!g){let x=p[Of].get(f);if(x||(x={},p[Of].set(f,x)),A===oh)x[oh]=!0;else{let O=x[A];O||(O=new Set,x[A]=O),O.add(E)}}},y={get:(A,E)=>E===BE?f:(m("k",E),q8(Reflect.get(A,E),p[Of],p.c,p.t)),has:(A,E)=>E===u7?(g=!0,p[Of].delete(f),!0):(m("h",E),Reflect.has(A,E)),getOwnPropertyDescriptor:(A,E)=>(m("o",E),Reflect.getOwnPropertyDescriptor(A,E)),ownKeys:A=>(m(oh),Reflect.ownKeys(A))};return d&&(y.set=y.deleteProperty=()=>!1),[y,p]})(s,!!c),u[1].p=l7(c||s,u[0]),n&&n.set(s,u)),u[1][Of]=e,u[1].c=n,u[1].t=r,u[1].p},H8=(t,e,n,r,i=Object.is)=>{if(i(t,e))return!1;if(!jg(t)||!jg(e))return!0;const s=n.get(LE(t));if(!s)return!0;if(r){const u=r.get(t);if(u&&u.n===e)return u.g;r.set(t,{n:e,g:!1})}let c=null;try{for(const u of s.h||[])if(c=Reflect.has(t,u)!==Reflect.has(e,u),c)return c;if(s[oh]===!0){if(c=((u,f)=>{const d=Reflect.ownKeys(u),p=Reflect.ownKeys(f);return d.length!==p.length||d.some((g,m)=>g!==p[m])})(t,e),c)return c}else for(const u of s.o||[])if(c=!!Reflect.getOwnPropertyDescriptor(t,u)!=!!Reflect.getOwnPropertyDescriptor(e,u),c)return c;for(const u of s.k||[])if(c=H8(t[u],e[u],n,r,i),c)return c;return c===null&&(c=!0),c}finally{r&&r.set(t,{n:e,g:c})}},f7=t=>z8(t)&&t[BE]||null,MC=(t,e=!0)=>{aw.set(t,e)},h7=(t,e,n)=>{const r=[],i=new WeakSet,s=(c,u)=>{if(i.has(c))return;jg(c)&&i.add(c);const f=jg(c)&&e.get(LE(c));if(f){var d,p;if((d=f.h)==null||d.forEach(m=>{const y=`:has(${String(m)})`;r.push(u?[...u,y]:[y])}),f[oh]===!0){const m=":ownKeys";r.push(u?[...u,m]:[m])}else{var g;(g=f.o)==null||g.forEach(m=>{const y=`:hasOwn(${String(m)})`;r.push(u?[...u,y]:[y])})}(p=f.k)==null||p.forEach(m=>{!("value"in(Object.getOwnPropertyDescriptor(c,m)||{}))||s(c[m],u?[...u,m]:[m])})}else u&&r.push(u)};return s(t),r},zg={},dv=t=>typeof t=="object"&&t!==null,wo=new WeakMap,Jf=new WeakSet,p7=(t=Object.is,e=(d,p)=>new Proxy(d,p),n=d=>dv(d)&&!Jf.has(d)&&(Array.isArray(d)||!(Symbol.iterator in d))&&!(d instanceof WeakMap)&&!(d instanceof WeakSet)&&!(d instanceof Error)&&!(d instanceof Number)&&!(d instanceof Date)&&!(d instanceof String)&&!(d instanceof RegExp)&&!(d instanceof ArrayBuffer),r=d=>{switch(d.status){case"fulfilled":return d.value;case"rejected":throw d.reason;default:throw d}},i=new WeakMap,s=(d,p,g=r)=>{const m=i.get(d);if((m==null?void 0:m[0])===p)return m[1];const y=Array.isArray(d)?[]:Object.create(Object.getPrototypeOf(d));return MC(y,!0),i.set(d,[p,y]),Reflect.ownKeys(d).forEach(A=>{if(Object.getOwnPropertyDescriptor(y,A))return;const E=Reflect.get(d,A),{enumerable:x}=Reflect.getOwnPropertyDescriptor(d,A),O={value:E,enumerable:x,configurable:!0};if(Jf.has(E))MC(E,!1);else if(E instanceof Promise)delete O.value,O.get=()=>g(E);else if(wo.has(E)){const[I,M]=wo.get(E);O.value=s(I,M(),g)}Object.defineProperty(y,A,O)}),Object.preventExtensions(y)},c=new WeakMap,u=[1,1],f=d=>{if(!dv(d))throw new Error("object required");const p=c.get(d);if(p)return p;let g=u[0];const m=new Set,y=(j,V=++u[0])=>{g!==V&&(g=V,m.forEach(L=>L(j,V)))};let A=u[1];const E=(j=++u[1])=>(A!==j&&!m.size&&(A=j,O.forEach(([V])=>{const L=V[1](j);L>g&&(g=L)})),g),x=j=>(V,L)=>{const v=[...V];v[1]=[j,...v[1]],y(v,L)},O=new Map,I=(j,V)=>{if((zg?"production":void 0)!=="production"&&O.has(j))throw new Error("prop listener already exists");if(m.size){const L=V[3](x(j));O.set(j,[V,L])}else O.set(j,[V])},M=j=>{var V;const L=O.get(j);L&&(O.delete(j),(V=L[1])==null||V.call(L))},$=j=>(m.add(j),m.size===1&&O.forEach(([L,v],C)=>{if((zg?"production":void 0)!=="production"&&v)throw new Error("remove already exists");const N=L[3](x(C));O.set(C,[L,N])}),()=>{m.delete(j),m.size===0&&O.forEach(([L,v],C)=>{v&&(v(),O.set(C,[L]))})}),D=Array.isArray(d)?[]:Object.create(Object.getPrototypeOf(d)),z=e(D,{deleteProperty(j,V){const L=Reflect.get(j,V);M(V);const v=Reflect.deleteProperty(j,V);return v&&y(["delete",[V],L]),v},set(j,V,L,v){const C=Reflect.has(j,V),N=Reflect.get(j,V,v);if(C&&(t(N,L)||c.has(L)&&t(N,c.get(L))))return!0;M(V),dv(L)&&(L=f7(L)||L);let T=L;if(L instanceof Promise)L.then(S=>{L.status="fulfilled",L.value=S,y(["resolve",[V],S])}).catch(S=>{L.status="rejected",L.reason=S,y(["reject",[V],S])});else{!wo.has(L)&&n(L)&&(T=f(L));const S=!Jf.has(T)&&wo.get(T);S&&I(V,S)}return Reflect.set(j,V,T,v),y(["set",[V],L,N]),!0}});c.set(d,z);const G=[D,E,s,$];return wo.set(z,G),Reflect.ownKeys(d).forEach(j=>{const V=Object.getOwnPropertyDescriptor(d,j);"value"in V&&(z[j]=d[j],delete V.value,delete V.writable),Object.defineProperty(D,j,V)}),z})=>[f,wo,Jf,t,e,n,r,i,s,c,u],[g7]=p7();function gn(t={}){return g7(t)}function Rr(t,e,n){const r=wo.get(t);(zg?"production":void 0)!=="production"&&!r&&console.warn("Please use proxy object");let i;const s=[],c=r[3];let u=!1;const d=c(p=>{s.push(p),i||(i=Promise.resolve().then(()=>{i=void 0,u&&e(s.splice(0))}))});return u=!0,()=>{u=!1,d()}}function Yc(t,e){const n=wo.get(t);(zg?"production":void 0)!=="production"&&!n&&console.warn("Please use proxy object");const[r,i,s]=n;return s(r,i(),e)}function Zc(t){return Jf.add(t),t}function zr(t,e,n,r){let i=t[e];return Rr(t,()=>{const s=t[e];Object.is(i,s)||n(i=s)})}function m7(t){const e=gn({data:Array.from([]),has(n){return this.data.some(r=>r[0]===n)},set(n,r){const i=this.data.find(s=>s[0]===n);return i?i[1]=r:this.data.push([n,r]),this},get(n){var r;return(r=this.data.find(i=>i[0]===n))==null?void 0:r[1]},delete(n){const r=this.data.findIndex(i=>i[0]===n);return r===-1?!1:(this.data.splice(r,1),!0)},clear(){this.data.splice(0)},get size(){return this.data.length},toJSON(){return new Map(this.data)},forEach(n){this.data.forEach(r=>{n(r[1],r[0],this)})},keys(){return this.data.map(n=>n[0]).values()},values(){return this.data.map(n=>n[1]).values()},entries(){return new Map(this.data).entries()},get[Symbol.toStringTag](){return"Map"},[Symbol.iterator](){return this.entries()}});return Object.defineProperties(e,{data:{enumerable:!1},size:{enumerable:!1},toJSON:{enumerable:!1}}),Object.seal(e),e}const yh={caipNetworkIdToNumber(t){return t?Number(t.split(":")[1]):void 0},parseEvmChainId(t){return typeof t=="string"?this.caipNetworkIdToNumber(t):t},getNetworksByNamespace(t,e){return(t==null?void 0:t.filter(n=>n.chainNamespace===e))||[]},getFirstNetworkByNamespace(t,e){return this.getNetworksByNamespace(t,e)[0]}};var b7=20,y7=1,md=1e6,v7=1e6,w7=-7,E7=21,A7=!1,dp="[big.js] ",gu=dp+"Invalid ",Tm=gu+"decimal places",_7=gu+"rounding mode",G8=dp+"Division by zero",jt={},js=void 0,C7=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function V8(){function t(e){var n=this;if(!(n instanceof t))return e===js?V8():new t(e);if(e instanceof t)n.s=e.s,n.e=e.e,n.c=e.c.slice();else{if(typeof e!="string"){if(t.strict===!0&&typeof e!="bigint")throw TypeError(gu+"value");e=e===0&&1/e<0?"-0":String(e)}S7(n,e)}n.constructor=t}return t.prototype=jt,t.DP=b7,t.RM=y7,t.NE=w7,t.PE=E7,t.strict=A7,t.roundDown=0,t.roundHalfUp=1,t.roundHalfEven=2,t.roundUp=3,t}function S7(t,e){var n,r,i;if(!C7.test(e))throw Error(gu+"number");for(t.s=e.charAt(0)=="-"?(e=e.slice(1),-1):1,(n=e.indexOf("."))>-1&&(e=e.replace(".","")),(r=e.search(/e/i))>0?(n<0&&(n=r),n+=+e.slice(r+1),e=e.substring(0,r)):n<0&&(n=e.length),i=e.length,r=0;r0&&e.charAt(--i)=="0";);for(t.e=n-r-1,t.c=[],n=0;r<=i;)t.c[n++]=+e.charAt(r++)}return t}function mu(t,e,n,r){var i=t.c;if(n===js&&(n=t.constructor.RM),n!==0&&n!==1&&n!==2&&n!==3)throw Error(_7);if(e<1)r=n===3&&(r||!!i[0])||e===0&&(n===1&&i[0]>=5||n===2&&(i[0]>5||i[0]===5&&(r||i[1]!==js))),i.length=1,r?(t.e=t.e-e+1,i[0]=1):i[0]=t.e=0;else if(e=5||n===2&&(i[e]>5||i[e]===5&&(r||i[e+1]!==js||i[e-1]&1))||n===3&&(r||!!i[0]),i.length=e,r){for(;++i[--e]>9;)if(i[e]=0,e===0){++t.e,i.unshift(1);break}}for(e=i.length;!i[--e];)i.pop()}return t}function bu(t,e,n){var r=t.e,i=t.c.join(""),s=i.length;if(e)i=i.charAt(0)+(s>1?"."+i.slice(1):"")+(r<0?"e":"e+")+r;else if(r<0){for(;++r;)i="0"+i;i="0."+i}else if(r>0)if(++r>s)for(r-=s;r--;)i+="0";else r1&&(i=i.charAt(0)+"."+i.slice(1));return t.s<0&&n?"-"+i:i}jt.abs=function(){var t=new this.constructor(this);return t.s=1,t};jt.cmp=function(t){var e,n=this,r=n.c,i=(t=new n.constructor(t)).c,s=n.s,c=t.s,u=n.e,f=t.e;if(!r[0]||!i[0])return r[0]?s:i[0]?-c:0;if(s!=c)return s;if(e=s<0,u!=f)return u>f^e?1:-1;for(c=(u=r.length)<(f=i.length)?u:f,s=-1;++si[s]^e?1:-1;return u==f?0:u>f^e?1:-1};jt.div=function(t){var e=this,n=e.constructor,r=e.c,i=(t=new n(t)).c,s=e.s==t.s?1:-1,c=n.DP;if(c!==~~c||c<0||c>md)throw Error(Tm);if(!i[0])throw Error(G8);if(!r[0])return t.s=s,t.c=[t.e=0],t;var u,f,d,p,g,m=i.slice(),y=u=i.length,A=r.length,E=r.slice(0,u),x=E.length,O=t,I=O.c=[],M=0,$=c+(O.e=e.e-t.e)+1;for(O.s=s,s=$<0?0:$,m.unshift(0);x++x?1:-1;else for(g=-1,p=0;++gE[g]?1:-1;break}if(p<0){for(f=x==u?i:m;x;){if(E[--x]$&&mu(O,$,n.RM,E[0]!==js),O};jt.eq=function(t){return this.cmp(t)===0};jt.gt=function(t){return this.cmp(t)>0};jt.gte=function(t){return this.cmp(t)>-1};jt.lt=function(t){return this.cmp(t)<0};jt.lte=function(t){return this.cmp(t)<1};jt.minus=jt.sub=function(t){var e,n,r,i,s=this,c=s.constructor,u=s.s,f=(t=new c(t)).s;if(u!=f)return t.s=-f,s.plus(t);var d=s.c.slice(),p=s.e,g=t.c,m=t.e;if(!d[0]||!g[0])return g[0]?t.s=-f:d[0]?t=new c(s):t.s=1,t;if(u=p-m){for((i=u<0)?(u=-u,r=d):(m=p,r=g),r.reverse(),f=u;f--;)r.push(0);r.reverse()}else for(n=((i=d.length0)for(;f--;)d[e++]=0;for(f=e;n>u;){if(d[--n]0?(f=c,r=d):(e=-e,r=u),r.reverse();e--;)r.push(0);r.reverse()}for(u.length-d.length<0&&(r=d,d=u,u=r),e=d.length,n=0;e;u[e]%=10)n=(u[--e]=u[e]+d[e]+n)/10|0;for(n&&(u.unshift(n),++f),e=u.length;u[--e]===0;)u.pop();return t.c=u,t.e=f,t};jt.pow=function(t){var e=this,n=new e.constructor("1"),r=n,i=t<0;if(t!==~~t||t<-1e6||t>v7)throw Error(gu+"exponent");for(i&&(t=-t);t&1&&(r=r.times(e)),t>>=1,!!t;)e=e.times(e);return i?n.div(r):r};jt.prec=function(t,e){if(t!==~~t||t<1||t>md)throw Error(gu+"precision");return mu(new this.constructor(this),t,e)};jt.round=function(t,e){if(t===js)t=0;else if(t!==~~t||t<-1e6||t>md)throw Error(Tm);return mu(new this.constructor(this),t+this.e+1,e)};jt.sqrt=function(){var t,e,n,r=this,i=r.constructor,s=r.s,c=r.e,u=new i("0.5");if(!r.c[0])return new i(r);if(s<0)throw Error(dp+"No square root");s=Math.sqrt(+bu(r,!0,!0)),s===0||s===1/0?(e=r.c.join(""),e.length+c&1||(e+="0"),s=Math.sqrt(e),c=((c+1)/2|0)-(c<0||c&1),t=new i((s==1/0?"5e":(s=s.toExponential()).slice(0,s.indexOf("e")+1))+c)):t=new i(s+""),c=t.e+(i.DP+=4);do n=t,t=u.times(n.plus(r.div(n)));while(n.c.slice(0,c).join("")!==t.c.slice(0,c).join(""));return mu(t,(i.DP-=4)+t.e+1,i.RM)};jt.times=jt.mul=function(t){var e,n=this,r=n.constructor,i=n.c,s=(t=new r(t)).c,c=i.length,u=s.length,f=n.e,d=t.e;if(t.s=n.s==t.s?1:-1,!i[0]||!s[0])return t.c=[t.e=0],t;for(t.e=f+d,cf;)u=e[d]+s[f]*i[d-f-1]+u,e[d--]=u%10,u=u/10|0;e[d]=u}for(u?++t.e:e.shift(),f=e.length;!e[--f];)e.pop();return t.c=e,t};jt.toExponential=function(t,e){var n=this,r=n.c[0];if(t!==js){if(t!==~~t||t<0||t>md)throw Error(Tm);for(n=mu(new n.constructor(n),++t,e);n.c.lengthmd)throw Error(Tm);for(n=mu(new n.constructor(n),t+n.e+1,e),t=t+n.e+1;n.c.length=e.PE,!!t.c[0])};jt.toNumber=function(){var t=+bu(this,!0,!0);if(this.constructor.strict===!0&&!this.eq(t.toString()))throw Error(dp+"Imprecise conversion");return t};jt.toPrecision=function(t,e){var n=this,r=n.constructor,i=n.c[0];if(t!==js){if(t!==~~t||t<1||t>md)throw Error(gu+"precision");for(n=mu(new r(n),t,e);n.c.length=r.PE,!!i)};jt.valueOf=function(){var t=this,e=t.constructor;if(e.strict===!0)throw Error(dp+"valueOf disallowed");return bu(t,t.e<=e.NE||t.e>=e.PE,!0)};var Rf=V8();const Lt={bigNumber(t){return t?new Rf(t):new Rf(0)},multiply(t,e){if(t===void 0||e===void 0)return new Rf(0);const n=new Rf(t),r=new Rf(e);return n.times(r)},formatNumberToLocalString(t,e=2){return t===void 0?"0.00":typeof t=="number"?t.toLocaleString("en-US",{maximumFractionDigits:e,minimumFractionDigits:e}):parseFloat(t).toLocaleString("en-US",{maximumFractionDigits:e,minimumFractionDigits:e})},parseLocalStringToNumber(t){return t===void 0?0:parseFloat(t.replace(/,/gu,""))}},T7=[{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"_to",type:"address"},{name:"_value",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"transferFrom",stateMutability:"nonpayable",inputs:[{name:"_from",type:"address"},{name:"_to",type:"address"},{name:"_value",type:"uint256"}],outputs:[{name:"",type:"bool"}]}],x7=[{type:"function",name:"approve",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]}],N7=[{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[]},{type:"function",name:"transferFrom",stateMutability:"nonpayable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]}],he={WC_NAME_SUFFIX:".reown.id",WC_NAME_SUFFIX_LEGACY:".wcn.id",BLOCKCHAIN_API_RPC_URL:"https://rpc.walletconnect.org",PULSE_API_URL:"https://pulse.walletconnect.org",W3M_API_URL:"https://api.web3modal.org",CONNECTOR_ID:{WALLET_CONNECT:"walletConnect",INJECTED:"injected",WALLET_STANDARD:"announced",COINBASE:"coinbaseWallet",COINBASE_SDK:"coinbaseWalletSDK",SAFE:"safe",LEDGER:"ledger",OKX:"okx",EIP6963:"eip6963",AUTH:"ID_AUTH"},CONNECTOR_NAMES:{AUTH:"Auth"},AUTH_CONNECTOR_SUPPORTED_CHAINS:["eip155","solana"],LIMITS:{PENDING_TRANSACTIONS:99},CHAIN:{EVM:"eip155",SOLANA:"solana",POLKADOT:"polkadot",BITCOIN:"bip122"},CHAIN_NAME_MAP:{eip155:"EVM Networks",solana:"Solana",polkadot:"Polkadot",bip122:"Bitcoin"},USDT_CONTRACT_ADDRESSES:["0xdac17f958d2ee523a2206206994597c13d831ec7","0xc2132d05d31c914a87c6611c10748aeb04b58e8f","0x9702230a8ea53601f5cd2dc00fdbc13d4df4a8c7","0x919C1c267BC06a7039e03fcc2eF738525769109c","0x48065fbBE25f71C9282ddf5e1cD6D6A887483D5e","0x55d398326f99059fF775485246999027B3197955","0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9"],HTTP_STATUS_CODES:{SERVICE_UNAVAILABLE:503,FORBIDDEN:403},UNSUPPORTED_NETWORK_NAME:"Unknown Network"},I7={getERC20Abi:t=>he.USDT_CONTRACT_ADDRESSES.includes(t)?N7:T7,getSwapAbi:()=>x7},lo={validateCaipAddress(t){var e;if(((e=t.split(":"))==null?void 0:e.length)!==3)throw new Error("Invalid CAIP Address");return t},parseCaipAddress(t){const e=t.split(":");if(e.length!==3)throw new Error(`Invalid CAIP-10 address: ${t}`);const[n,r,i]=e;if(!n||!r||!i)throw new Error(`Invalid CAIP-10 address: ${t}`);return{chainNamespace:n,chainId:r,address:i}},parseCaipNetworkId(t){const e=t.split(":");if(e.length!==2)throw new Error(`Invalid CAIP-2 network id: ${t}`);const[n,r]=e;if(!n||!r)throw new Error(`Invalid CAIP-2 network id: ${t}`);return{chainNamespace:n,chainId:r}}},rt={WALLET_ID:"@appkit/wallet_id",WALLET_NAME:"@appkit/wallet_name",SOLANA_WALLET:"@appkit/solana_wallet",SOLANA_CAIP_CHAIN:"@appkit/solana_caip_chain",ACTIVE_CAIP_NETWORK_ID:"@appkit/active_caip_network_id",CONNECTED_SOCIAL:"@appkit/connected_social",CONNECTED_SOCIAL_USERNAME:"@appkit-wallet/SOCIAL_USERNAME",RECENT_WALLETS:"@appkit/recent_wallets",DEEPLINK_CHOICE:"WALLETCONNECT_DEEPLINK_CHOICE",ACTIVE_NAMESPACE:"@appkit/active_namespace",CONNECTED_NAMESPACES:"@appkit/connected_namespaces",CONNECTION_STATUS:"@appkit/connection_status",SIWX_AUTH_TOKEN:"@appkit/siwx-auth-token",SIWX_NONCE_TOKEN:"@appkit/siwx-nonce-token",TELEGRAM_SOCIAL_PROVIDER:"@appkit/social_provider",NATIVE_BALANCE_CACHE:"@appkit/native_balance_cache",PORTFOLIO_CACHE:"@appkit/portfolio_cache",ENS_CACHE:"@appkit/ens_cache",IDENTITY_CACHE:"@appkit/identity_cache"};function fv(t){if(!t)throw new Error("Namespace is required for CONNECTED_CONNECTOR_ID");return`@appkit/${t}:connected_connector_id`}const Qe={setItem(t,e){eh()&&e!==void 0&&localStorage.setItem(t,e)},getItem(t){if(eh())return localStorage.getItem(t)||void 0},removeItem(t){eh()&&localStorage.removeItem(t)},clear(){eh()&&localStorage.clear()}};function eh(){return typeof window<"u"&&typeof localStorage<"u"}function Ia(t,e){return e==="light"?{"--w3m-accent":(t==null?void 0:t["--w3m-accent"])||"hsla(231, 100%, 70%, 1)","--w3m-background":"#fff"}:{"--w3m-accent":(t==null?void 0:t["--w3m-accent"])||"hsla(230, 100%, 67%, 1)","--w3m-background":"#121313"}}function O7(t){return(t==null?void 0:t.endsWith(he.WC_NAME_SUFFIX_LEGACY))||(t==null?void 0:t.endsWith(he.WC_NAME_SUFFIX))}var kC={};const hv=(typeof process<"u"&&typeof kC<"u"?kC.NEXT_PUBLIC_SECURE_SITE_ORIGIN:void 0)||"https://secure.walletconnect.org",Iie=[{label:"Coinbase",name:"coinbase",feeRange:"1-2%",url:"",supportedChains:["eip155"]},{label:"Meld.io",name:"meld",feeRange:"1-2%",url:"https://meldcrypto.com",supportedChains:["eip155","solana"]}],Oie="WXETMuFUQmqqybHuRkSgxv:25B8LJHSfpG6LVjR2ytU5Cwh7Z4Sch2ocoU",Fn={FOUR_MINUTES_MS:24e4,TEN_SEC_MS:1e4,FIVE_SEC_MS:5e3,THREE_SEC_MS:3e3,ONE_SEC_MS:1e3,SECURE_SITE:hv,SECURE_SITE_DASHBOARD:`${hv}/dashboard`,SECURE_SITE_FAVICON:`${hv}/images/favicon.png`,RESTRICTED_TIMEZONES:["ASIA/SHANGHAI","ASIA/URUMQI","ASIA/CHONGQING","ASIA/HARBIN","ASIA/KASHGAR","ASIA/MACAU","ASIA/HONG_KONG","ASIA/MACAO","ASIA/BEIJING","ASIA/HARBIN"],WC_COINBASE_PAY_SDK_CHAINS:["ethereum","arbitrum","polygon","berachain","avalanche-c-chain","optimism","celo","base"],WC_COINBASE_PAY_SDK_FALLBACK_CHAIN:"ethereum",WC_COINBASE_PAY_SDK_CHAIN_NAME_MAP:{Ethereum:"ethereum","Arbitrum One":"arbitrum",Polygon:"polygon",Berachain:"berachain",Avalanche:"avalanche-c-chain","OP Mainnet":"optimism",Celo:"celo",Base:"base"},WC_COINBASE_ONRAMP_APP_ID:"bf18c88d-495a-463b-b249-0b9d3656cf5e",SWAP_SUGGESTED_TOKENS:["ETH","UNI","1INCH","AAVE","SOL","ADA","AVAX","DOT","LINK","NITRO","GAIA","MILK","TRX","NEAR","GNO","WBTC","DAI","WETH","USDC","USDT","ARB","BAL","BICO","CRV","ENS","MATIC","OP"],SWAP_POPULAR_TOKENS:["ETH","UNI","1INCH","AAVE","SOL","ADA","AVAX","DOT","LINK","NITRO","GAIA","MILK","TRX","NEAR","GNO","WBTC","DAI","WETH","USDC","USDT","ARB","BAL","BICO","CRV","ENS","MATIC","OP","METAL","DAI","CHAMP","WOLF","SALE","BAL","BUSD","MUST","BTCpx","ROUTE","HEX","WELT","amDAI","VSQ","VISION","AURUM","pSP","SNX","VC","LINK","CHP","amUSDT","SPHERE","FOX","GIDDY","GFC","OMEN","OX_OLD","DE","WNT"],BALANCE_SUPPORTED_CHAINS:["eip155","solana"],SWAP_SUPPORTED_NETWORKS:["eip155:1","eip155:42161","eip155:10","eip155:324","eip155:8453","eip155:56","eip155:137","eip155:100","eip155:43114","eip155:250","eip155:8217","eip155:1313161554"],NAMES_SUPPORTED_CHAIN_NAMESPACES:["eip155"],ONRAMP_SUPPORTED_CHAIN_NAMESPACES:["eip155","solana"],ACTIVITY_ENABLED_CHAIN_NAMESPACES:["eip155","solana"],NATIVE_TOKEN_ADDRESS:{eip155:"0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",solana:"So11111111111111111111111111111111111111111",polkadot:"0x",bip122:"0x"},CONVERT_SLIPPAGE_TOLERANCE:1,CONNECT_LABELS:{MOBILE:"Open and continue in a new browser tab"},DEFAULT_FEATURES:{swaps:!0,onramp:!0,receive:!0,send:!0,email:!0,emailShowWallets:!0,socials:["google","x","discord","farcaster","github","apple","facebook"],history:!0,analytics:!0,allWallets:!0,legalCheckbox:!1,smartSessions:!1,collapseWallets:!1,walletFeaturesOrder:["onramp","swaps","receive","send"],connectMethodsOrder:void 0},DEFAULT_ACCOUNT_TYPES:{bip122:"payment",eip155:"smartAccount",polkadot:"eoa",solana:"eoa"},ADAPTER_TYPES:{UNIVERSAL:"universal",SOLANA:"solana",WAGMI:"wagmi",ETHERS:"ethers",ETHERS5:"ethers5",BITCOIN:"bitcoin"}},Ne={cacheExpiry:{portfolio:3e4,nativeBalance:3e4,ens:3e5,identity:3e5},isCacheExpired(t,e){return Date.now()-t>e},getActiveNetworkProps(){const t=Ne.getActiveNamespace(),e=Ne.getActiveCaipNetworkId(),n=e?e.split(":")[1]:void 0,r=n?isNaN(Number(n))?n:Number(n):void 0;return{namespace:t,caipNetworkId:e,chainId:r}},setWalletConnectDeepLink({name:t,href:e}){try{Qe.setItem(rt.DEEPLINK_CHOICE,JSON.stringify({href:e,name:t}))}catch{console.info("Unable to set WalletConnect deep link")}},getWalletConnectDeepLink(){try{const t=Qe.getItem(rt.DEEPLINK_CHOICE);if(t)return JSON.parse(t)}catch{console.info("Unable to get WalletConnect deep link")}},deleteWalletConnectDeepLink(){try{Qe.removeItem(rt.DEEPLINK_CHOICE)}catch{console.info("Unable to delete WalletConnect deep link")}},setActiveNamespace(t){try{Qe.setItem(rt.ACTIVE_NAMESPACE,t)}catch{console.info("Unable to set active namespace")}},setActiveCaipNetworkId(t){try{Qe.setItem(rt.ACTIVE_CAIP_NETWORK_ID,t),Ne.setActiveNamespace(t.split(":")[0])}catch{console.info("Unable to set active caip network id")}},getActiveCaipNetworkId(){try{return Qe.getItem(rt.ACTIVE_CAIP_NETWORK_ID)}catch{console.info("Unable to get active caip network id");return}},deleteActiveCaipNetworkId(){try{Qe.removeItem(rt.ACTIVE_CAIP_NETWORK_ID)}catch{console.info("Unable to delete active caip network id")}},deleteConnectedConnectorId(t){try{const e=fv(t);Qe.removeItem(e)}catch{console.info("Unable to delete connected connector id")}},setAppKitRecent(t){try{const e=Ne.getRecentWallets();e.find(r=>r.id===t.id)||(e.unshift(t),e.length>2&&e.pop(),Qe.setItem(rt.RECENT_WALLETS,JSON.stringify(e)))}catch{console.info("Unable to set AppKit recent")}},getRecentWallets(){try{const t=Qe.getItem(rt.RECENT_WALLETS);return t?JSON.parse(t):[]}catch{console.info("Unable to get AppKit recent")}return[]},setConnectedConnectorId(t,e){try{const n=fv(t);Qe.setItem(n,e)}catch{console.info("Unable to set Connected Connector Id")}},getActiveNamespace(){try{return Qe.getItem(rt.ACTIVE_NAMESPACE)}catch{console.info("Unable to get active namespace")}},getConnectedConnectorId(t){if(t)try{const e=fv(t);return Qe.getItem(e)}catch{console.info("Unable to get connected connector id in namespace ",t)}},setConnectedSocialProvider(t){try{Qe.setItem(rt.CONNECTED_SOCIAL,t)}catch{console.info("Unable to set connected social provider")}},getConnectedSocialProvider(){try{return Qe.getItem(rt.CONNECTED_SOCIAL)}catch{console.info("Unable to get connected social provider")}},deleteConnectedSocialProvider(){try{Qe.removeItem(rt.CONNECTED_SOCIAL)}catch{console.info("Unable to delete connected social provider")}},getConnectedSocialUsername(){try{return Qe.getItem(rt.CONNECTED_SOCIAL_USERNAME)}catch{console.info("Unable to get connected social username")}},getStoredActiveCaipNetworkId(){var n;const t=Qe.getItem(rt.ACTIVE_CAIP_NETWORK_ID);return(n=t==null?void 0:t.split(":"))==null?void 0:n[1]},setConnectionStatus(t){try{Qe.setItem(rt.CONNECTION_STATUS,t)}catch{console.info("Unable to set connection status")}},getConnectionStatus(){try{return Qe.getItem(rt.CONNECTION_STATUS)}catch{return}},getConnectedNamespaces(){try{const t=Qe.getItem(rt.CONNECTED_NAMESPACES);return t!=null&&t.length?t.split(","):[]}catch{return[]}},setConnectedNamespaces(t){try{const e=Array.from(new Set(t));Qe.setItem(rt.CONNECTED_NAMESPACES,e.join(","))}catch{console.info("Unable to set namespaces in storage")}},addConnectedNamespace(t){try{const e=Ne.getConnectedNamespaces();e.includes(t)||(e.push(t),Ne.setConnectedNamespaces(e))}catch{console.info("Unable to add connected namespace")}},removeConnectedNamespace(t){try{const e=Ne.getConnectedNamespaces(),n=e.indexOf(t);n>-1&&(e.splice(n,1),Ne.setConnectedNamespaces(e))}catch{console.info("Unable to remove connected namespace")}},getTelegramSocialProvider(){try{return Qe.getItem(rt.TELEGRAM_SOCIAL_PROVIDER)}catch{return console.info("Unable to get telegram social provider"),null}},setTelegramSocialProvider(t){try{Qe.setItem(rt.TELEGRAM_SOCIAL_PROVIDER,t)}catch{console.info("Unable to set telegram social provider")}},removeTelegramSocialProvider(){try{Qe.removeItem(rt.TELEGRAM_SOCIAL_PROVIDER)}catch{console.info("Unable to remove telegram social provider")}},getBalanceCache(){let t={};try{const e=Qe.getItem(rt.PORTFOLIO_CACHE);t=e?JSON.parse(e):{}}catch{console.info("Unable to get balance cache")}return t},removeAddressFromBalanceCache(t){try{const e=Ne.getBalanceCache();Qe.setItem(rt.PORTFOLIO_CACHE,JSON.stringify({...e,[t]:void 0}))}catch{console.info("Unable to remove address from balance cache",t)}},getBalanceCacheForCaipAddress(t){try{const n=Ne.getBalanceCache()[t];if(n&&!this.isCacheExpired(n.timestamp,this.cacheExpiry.portfolio))return n.balance;Ne.removeAddressFromBalanceCache(t)}catch{console.info("Unable to get balance cache for address",t)}},updateBalanceCache(t){try{const e=Ne.getBalanceCache();e[t.caipAddress]=t,Qe.setItem(rt.PORTFOLIO_CACHE,JSON.stringify(e))}catch{console.info("Unable to update balance cache",t)}},getNativeBalanceCache(){let t={};try{const e=Qe.getItem(rt.NATIVE_BALANCE_CACHE);t=e?JSON.parse(e):{}}catch{console.info("Unable to get balance cache")}return t},removeAddressFromNativeBalanceCache(t){try{const e=Ne.getBalanceCache();Qe.setItem(rt.NATIVE_BALANCE_CACHE,JSON.stringify({...e,[t]:void 0}))}catch{console.info("Unable to remove address from balance cache",t)}},getNativeBalanceCacheForCaipAddress(t){try{const n=Ne.getNativeBalanceCache()[t];if(n&&!this.isCacheExpired(n.timestamp,this.cacheExpiry.nativeBalance))return n;console.info("Discarding cache for address",t),Ne.removeAddressFromBalanceCache(t)}catch{console.info("Unable to get balance cache for address",t)}},updateNativeBalanceCache(t){try{const e=Ne.getNativeBalanceCache();e[t.caipAddress]=t,Qe.setItem(rt.NATIVE_BALANCE_CACHE,JSON.stringify(e))}catch{console.info("Unable to update balance cache",t)}},getEnsCache(){let t={};try{const e=Qe.getItem(rt.ENS_CACHE);t=e?JSON.parse(e):{}}catch{console.info("Unable to get ens name cache")}return t},getEnsFromCacheForAddress(t){try{const n=Ne.getEnsCache()[t];if(n&&!this.isCacheExpired(n.timestamp,this.cacheExpiry.ens))return n.ens;Ne.removeEnsFromCache(t)}catch{console.info("Unable to get ens name from cache",t)}},updateEnsCache(t){try{const e=Ne.getEnsCache();e[t.address]=t,Qe.setItem(rt.ENS_CACHE,JSON.stringify(e))}catch{console.info("Unable to update ens name cache",t)}},removeEnsFromCache(t){try{const e=Ne.getEnsCache();Qe.setItem(rt.ENS_CACHE,JSON.stringify({...e,[t]:void 0}))}catch{console.info("Unable to remove ens name from cache",t)}},getIdentityCache(){let t={};try{const e=Qe.getItem(rt.IDENTITY_CACHE);t=e?JSON.parse(e):{}}catch{console.info("Unable to get identity cache")}return t},getIdentityFromCacheForAddress(t){try{const n=Ne.getIdentityCache()[t];if(n&&!this.isCacheExpired(n.timestamp,this.cacheExpiry.identity))return n.identity;Ne.removeIdentityFromCache(t)}catch{console.info("Unable to get identity from cache",t)}},updateIdentityCache(t){try{const e=Ne.getIdentityCache();e[t.address]={identity:t.identity,timestamp:t.timestamp},Qe.setItem(rt.IDENTITY_CACHE,JSON.stringify(e))}catch{console.info("Unable to update identity cache",t)}},removeIdentityFromCache(t){try{const e=Ne.getIdentityCache();Qe.setItem(rt.IDENTITY_CACHE,JSON.stringify({...e,[t]:void 0}))}catch{console.info("Unable to remove identity from cache",t)}},clearAddressCache(){try{Qe.removeItem(rt.PORTFOLIO_CACHE),Qe.removeItem(rt.NATIVE_BALANCE_CACHE),Qe.removeItem(rt.ENS_CACHE),Qe.removeItem(rt.IDENTITY_CACHE)}catch{console.info("Unable to clear address cache")}}},$e={isMobile(){var t;return this.isClient()?!!((t=window==null?void 0:window.matchMedia("(pointer:coarse)"))!=null&&t.matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)):!1},checkCaipNetwork(t,e=""){return t==null?void 0:t.caipNetworkId.toLocaleLowerCase().includes(e.toLowerCase())},isAndroid(){if(!this.isMobile())return!1;const t=window==null?void 0:window.navigator.userAgent.toLowerCase();return $e.isMobile()&&t.includes("android")},isIos(){if(!this.isMobile())return!1;const t=window==null?void 0:window.navigator.userAgent.toLowerCase();return t.includes("iphone")||t.includes("ipad")},isSafari(){return this.isClient()?(window==null?void 0:window.navigator.userAgent.toLowerCase()).includes("safari"):!1},isClient(){return typeof window<"u"},isPairingExpired(t){return t?t-Date.now()<=Fn.TEN_SEC_MS:!0},isAllowedRetry(t,e=Fn.ONE_SEC_MS){return Date.now()-t>=e},copyToClopboard(t){navigator.clipboard.writeText(t)},isIframe(){try{return(window==null?void 0:window.self)!==(window==null?void 0:window.top)}catch{return!1}},getPairingExpiry(){return Date.now()+Fn.FOUR_MINUTES_MS},getNetworkId(t){return t==null?void 0:t.split(":")[1]},getPlainAddress(t){return t==null?void 0:t.split(":")[2]},async wait(t){return new Promise(e=>{setTimeout(e,t)})},debounce(t,e=500){let n;return(...r)=>{function i(){t(...r)}n&&clearTimeout(n),n=setTimeout(i,e)}},isHttpUrl(t){return t.startsWith("http://")||t.startsWith("https://")},formatNativeUrl(t,e){if($e.isHttpUrl(t))return this.formatUniversalUrl(t,e);let n=t;n.includes("://")||(n=t.replaceAll("/","").replaceAll(":",""),n=`${n}://`),n.endsWith("/")||(n=`${n}/`),this.isTelegram()&&this.isAndroid()&&(e=encodeURIComponent(e));const r=encodeURIComponent(e);return{redirect:`${n}wc?uri=${r}`,href:n}},formatUniversalUrl(t,e){if(!$e.isHttpUrl(t))return this.formatNativeUrl(t,e);let n=t;n.endsWith("/")||(n=`${n}/`);const r=encodeURIComponent(e);return{redirect:`${n}wc?uri=${r}`,href:n}},getOpenTargetForPlatform(t){return t==="popupWindow"?t:this.isTelegram()?Ne.getTelegramSocialProvider()?"_top":"_blank":t},openHref(t,e,n){window==null||window.open(t,this.getOpenTargetForPlatform(e),n||"noreferrer noopener")},returnOpenHref(t,e,n){return window==null?void 0:window.open(t,this.getOpenTargetForPlatform(e),n||"noreferrer noopener")},isTelegram(){return typeof window<"u"&&(!!window.TelegramWebviewProxy||!!window.Telegram||!!window.TelegramWebviewProxyProto)},async preloadImage(t){const e=new Promise((n,r)=>{const i=new Image;i.onload=n,i.onerror=r,i.crossOrigin="anonymous",i.src=t});return Promise.race([e,$e.wait(2e3)])},formatBalance(t,e){let n="0.000";if(typeof t=="string"){const r=Number(t);if(r){const i=Math.floor(r*1e3)/1e3;i&&(n=i.toString())}}return`${n}${e?` ${e}`:""}`},formatBalance2(t,e){var r;let n;if(t==="0")n="0";else if(typeof t=="string"){const i=Number(t);i&&(n=(r=i.toString().match(/^-?\d+(?:\.\d{0,3})?/u))==null?void 0:r[0])}return{value:n??"0",rest:n==="0"?"000":"",symbol:e}},getApiUrl(){return he.W3M_API_URL},getBlockchainApiUrl(){return he.BLOCKCHAIN_API_RPC_URL},getAnalyticsUrl(){return he.PULSE_API_URL},getUUID(){return crypto!=null&&crypto.randomUUID?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/gu,t=>{const e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})},parseError(t){var e,n;return typeof t=="string"?t:typeof((n=(e=t==null?void 0:t.issues)==null?void 0:e[0])==null?void 0:n.message)=="string"?t.issues[0].message:t instanceof Error?t.message:"Unknown error"},sortRequestedNetworks(t,e=[]){const n={};return e&&t&&(t.forEach((r,i)=>{n[r]=i}),e.sort((r,i)=>{const s=n[r.id],c=n[i.id];return s!==void 0&&c!==void 0?s-c:s!==void 0?-1:c!==void 0?1:0})),e},calculateBalance(t){let e=0;for(const n of t)e+=n.value??0;return e},formatTokenBalance(t){const e=t.toFixed(2),[n,r]=e.split(".");return{dollars:n,pennies:r}},isAddress(t,e="eip155"){switch(e){case"eip155":if(/^(?:0x)?[0-9a-f]{40}$/iu.test(t)){if(/^(?:0x)?[0-9a-f]{40}$/iu.test(t)||/^(?:0x)?[0-9A-F]{40}$/iu.test(t))return!0}else return!1;return!1;case"solana":return/[1-9A-HJ-NP-Za-km-z]{32,44}$/iu.test(t);default:return!1}},uniqueBy(t,e){const n=new Set;return t.filter(r=>{const i=r[e];return n.has(i)?!1:(n.add(i),!0)})},generateSdkVersion(t,e,n){const i=t.length===0?Fn.ADAPTER_TYPES.UNIVERSAL:t.map(s=>s.adapterType).join(",");return`${e}-${i}-${n}`},createAccount(t,e,n,r,i){return{namespace:t,address:e,type:n,publicKey:r,path:i}},isCaipAddress(t){if(typeof t!="string")return!1;const e=t.split(":"),n=e[0];return e.filter(Boolean).length===3&&n in he.CHAIN_NAME_MAP},isMac(){const t=window==null?void 0:window.navigator.userAgent.toLowerCase();return t.includes("macintosh")&&!t.includes("safari")},formatTelegramSocialLoginUrl(t){const e=`--${encodeURIComponent(window==null?void 0:window.location.href)}`,n="state=";if(new URL(t).host==="auth.magic.link"){const i="provider_authorization_url=",s=t.substring(t.indexOf(i)+i.length),c=this.injectIntoUrl(decodeURIComponent(s),n,e);return t.replace(s,encodeURIComponent(c))}return this.injectIntoUrl(t,n,e)},injectIntoUrl(t,e,n){const r=t.indexOf(e);if(r===-1)throw new Error(`${e} parameter not found in the URL: ${t}`);const i=t.indexOf("&",r),s=e.length,c=i!==-1?i:t.length,u=t.substring(0,r+s),f=t.substring(r+s,c),d=t.substring(i),p=f+n;return u+p+d}},li=gn({walletImages:{},networkImages:{},chainImages:{},connectorImages:{},tokenImages:{},currencyImages:{}}),os={state:li,subscribeNetworkImages(t){return Rr(li.networkImages,()=>t(li.networkImages))},subscribeKey(t,e){return zr(li,t,e)},subscribe(t){return Rr(li,()=>t(li))},setWalletImage(t,e){li.walletImages[t]=e},setNetworkImage(t,e){li.networkImages[t]=e},setChainImage(t,e){li.chainImages[t]=e},setConnectorImage(t,e){li.connectorImages={...li.connectorImages,[t]:e}},setTokenImage(t,e){li.tokenImages[t]=e},setCurrencyImage(t,e){li.currencyImages[t]=e}},R7={eip155:"ba0ba0cd-17c6-4806-ad93-f9d174f17900",solana:"a1b58899-f671-4276-6a5e-56ca5bd59700",polkadot:"",bip122:""},pv=gn({networkImagePromises:{}}),K8={async fetchWalletImage(t){if(t)return await gt._fetchWalletImage(t),this.getWalletImageById(t)},async fetchNetworkImage(t){if(!t)return;const e=this.getNetworkImageById(t);return e||(pv.networkImagePromises[t]||(pv.networkImagePromises[t]=gt._fetchNetworkImage(t)),await pv.networkImagePromises[t],this.getNetworkImageById(t))},getWalletImageById(t){if(t)return os.state.walletImages[t]},getWalletImage(t){if(t!=null&&t.image_url)return t==null?void 0:t.image_url;if(t!=null&&t.image_id)return os.state.walletImages[t.image_id]},getNetworkImage(t){var e,n,r;if((e=t==null?void 0:t.assets)!=null&&e.imageUrl)return(n=t==null?void 0:t.assets)==null?void 0:n.imageUrl;if((r=t==null?void 0:t.assets)!=null&&r.imageId)return os.state.networkImages[t.assets.imageId]},getNetworkImageById(t){if(t)return os.state.networkImages[t]},getConnectorImage(t){if(t!=null&&t.imageUrl)return t.imageUrl;if(t!=null&&t.imageId)return os.state.connectorImages[t.imageId]},getChainImage(t){return os.state.networkImages[R7[t]]}};async function Df(...t){const e=await fetch(...t);if(!e.ok)throw new Error(`HTTP status code: ${e.status}`,{cause:e});return e}class xm{constructor({baseUrl:e,clientId:n}){this.baseUrl=e,this.clientId=n}async get({headers:e,signal:n,cache:r,...i}){const s=this.createUrl(i);return(await Df(s,{method:"GET",headers:e,signal:n,cache:r})).json()}async getBlob({headers:e,signal:n,...r}){const i=this.createUrl(r);return(await Df(i,{method:"GET",headers:e,signal:n})).blob()}async post({body:e,headers:n,signal:r,...i}){const s=this.createUrl(i);return(await Df(s,{method:"POST",headers:n,body:e?JSON.stringify(e):void 0,signal:r})).json()}async put({body:e,headers:n,signal:r,...i}){const s=this.createUrl(i);return(await Df(s,{method:"PUT",headers:n,body:e?JSON.stringify(e):void 0,signal:r})).json()}async delete({body:e,headers:n,signal:r,...i}){const s=this.createUrl(i);return(await Df(s,{method:"DELETE",headers:n,body:e?JSON.stringify(e):void 0,signal:r})).json()}createUrl({path:e,params:n}){const r=new URL(e,this.baseUrl);return n&&Object.entries(n).forEach(([i,s])=>{s&&r.searchParams.append(i,s)}),this.clientId&&r.searchParams.append("clientId",this.clientId),r}}var Q0={exports:{}},UC;function D7(){if(UC)return Q0.exports;UC=1;var t=typeof Reflect=="object"?Reflect:null,e=t&&typeof t.apply=="function"?t.apply:function(D,R,z){return Function.prototype.apply.call(D,R,z)},n;t&&typeof t.ownKeys=="function"?n=t.ownKeys:Object.getOwnPropertySymbols?n=function(D){return Object.getOwnPropertyNames(D).concat(Object.getOwnPropertySymbols(D))}:n=function(D){return Object.getOwnPropertyNames(D)};function r($){console&&console.warn&&console.warn($)}var i=Number.isNaN||function(D){return D!==D};function s(){s.init.call(this)}Q0.exports=s,Q0.exports.once=O,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var c=10;function u($){if(typeof $!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof $)}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function($){if(typeof $!="number"||$<0||i($))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+$+".");c=$}}),s.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(D){if(typeof D!="number"||D<0||i(D))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+D+".");return this._maxListeners=D,this};function f($){return $._maxListeners===void 0?s.defaultMaxListeners:$._maxListeners}s.prototype.getMaxListeners=function(){return f(this)},s.prototype.emit=function(D){for(var R=[],z=1;z0&&(V=R[0]),V instanceof Error)throw V;var L=new Error("Unhandled error."+(V?" ("+V.message+")":""));throw L.context=V,L}var v=j[D];if(v===void 0)return!1;if(typeof v=="function")e(v,this,R);else for(var C=v.length,N=A(v,C),z=0;z0&&V.length>G&&!V.warned){V.warned=!0;var L=new Error("Possible EventEmitter memory leak detected. "+V.length+" "+String(D)+" listeners added. Use emitter.setMaxListeners() to increase limit");L.name="MaxListenersExceededWarning",L.emitter=$,L.type=D,L.count=V.length,r(L)}return $}s.prototype.addListener=function(D,R){return d(this,D,R,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(D,R){return d(this,D,R,!0)};function p(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function g($,D,R){var z={fired:!1,wrapFn:void 0,target:$,type:D,listener:R},G=p.bind(z);return G.listener=R,z.wrapFn=G,G}s.prototype.once=function(D,R){return u(R),this.on(D,g(this,D,R)),this},s.prototype.prependOnceListener=function(D,R){return u(R),this.prependListener(D,g(this,D,R)),this},s.prototype.removeListener=function(D,R){var z,G,j,V,L;if(u(R),G=this._events,G===void 0)return this;if(z=G[D],z===void 0)return this;if(z===R||z.listener===R)--this._eventsCount===0?this._events=Object.create(null):(delete G[D],G.removeListener&&this.emit("removeListener",D,z.listener||R));else if(typeof z!="function"){for(j=-1,V=z.length-1;V>=0;V--)if(z[V]===R||z[V].listener===R){L=z[V].listener,j=V;break}if(j<0)return this;j===0?z.shift():E(z,j),z.length===1&&(G[D]=z[0]),G.removeListener!==void 0&&this.emit("removeListener",D,L||R)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(D){var R,z,G;if(z=this._events,z===void 0)return this;if(z.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):z[D]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete z[D]),this;if(arguments.length===0){var j=Object.keys(z),V;for(G=0;G=0;G--)this.removeListener(D,R[G]);return this};function m($,D,R){var z=$._events;if(z===void 0)return[];var G=z[D];return G===void 0?[]:typeof G=="function"?R?[G.listener||G]:[G]:R?x(G):A(G,G.length)}s.prototype.listeners=function(D){return m(this,D,!0)},s.prototype.rawListeners=function(D){return m(this,D,!1)},s.listenerCount=function($,D){return typeof $.listenerCount=="function"?$.listenerCount(D):y.call($,D)},s.prototype.listenerCount=y;function y($){var D=this._events;if(D!==void 0){var R=D[$];if(typeof R=="function")return 1;if(R!==void 0)return R.length}return 0}s.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]};function A($,D){for(var R=new Array(D),z=0;z=0;u--)(c=t[u])&&(s=(i<3?c(s):i>3?c(e,n,s):c(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s}function U7(t,e){return function(n,r){e(n,r,t)}}function B7(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}function L7(t,e,n,r){function i(s){return s instanceof n?s:new n(function(c){c(s)})}return new(n||(n=Promise))(function(s,c){function u(p){try{d(r.next(p))}catch(g){c(g)}}function f(p){try{d(r.throw(p))}catch(g){c(g)}}function d(p){p.done?s(p.value):i(p.value).then(u,f)}d((r=r.apply(t,e||[])).next())})}function $7(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,i,s,c;return c={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function u(d){return function(p){return f([d,p])}}function f(d){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(s=d[0]&2?i.return:d[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,d[1])).done)return s;switch(i=0,s&&(d=[d[0]&2,s.value]),d[0]){case 0:case 1:s=d;break;case 4:return n.label++,{value:d[1],done:!1};case 5:n.label++,i=d[1],d=[0];continue;case 7:d=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!s||d[1]>s[0]&&d[1]=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function W8(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,s=[],c;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(u){c={error:u}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(c)throw c.error}}return s}function z7(){for(var t=[],e=0;e1||u(m,y)})})}function u(m,y){try{f(r[m](y))}catch(A){g(s[0][3],A)}}function f(m){m.value instanceof vh?Promise.resolve(m.value.v).then(d,p):g(s[0][2],m)}function d(m){u("next",m)}function p(m){u("throw",m)}function g(m,y){m(y),s.shift(),s.length&&u(s[0][0],s[0][1])}}function G7(t){var e,n;return e={},r("next"),r("throw",function(i){throw i}),r("return"),e[Symbol.iterator]=function(){return this},e;function r(i,s){e[i]=t[i]?function(c){return(n=!n)?{value:vh(t[i](c)),done:i==="return"}:s?s(c):c}:s}}function V7(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],n;return e?e.call(t):(t=typeof uw=="function"?uw(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(s){n[s]=t[s]&&function(c){return new Promise(function(u,f){c=t[s](c),i(u,f,c.done,c.value)})}}function i(s,c,u,f){Promise.resolve(f).then(function(d){s({value:d,done:u})},c)}}function K7(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function W7(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function Q7(t){return t&&t.__esModule?t:{default:t}}function Y7(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function Z7(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}const X7=Object.freeze(Object.defineProperty({__proto__:null,get __assign(){return cw},__asyncDelegator:G7,__asyncGenerator:H7,__asyncValues:V7,__await:vh,__awaiter:L7,__classPrivateFieldGet:Y7,__classPrivateFieldSet:Z7,__createBinding:F7,__decorate:k7,__exportStar:j7,__extends:P7,__generator:$7,__importDefault:Q7,__importStar:W7,__makeTemplateObject:K7,__metadata:B7,__param:U7,__read:W8,__rest:M7,__spread:z7,__spreadArrays:q7,__values:uw},Symbol.toStringTag,{value:"Module"})),fp=j8(X7);var mv={},Pf={},BC;function J7(){if(BC)return Pf;BC=1,Object.defineProperty(Pf,"__esModule",{value:!0}),Pf.delay=void 0;function t(e){return new Promise(n=>{setTimeout(()=>{n(!0)},e)})}return Pf.delay=t,Pf}var vc={},bv={},wc={},LC;function eD(){return LC||(LC=1,Object.defineProperty(wc,"__esModule",{value:!0}),wc.ONE_THOUSAND=wc.ONE_HUNDRED=void 0,wc.ONE_HUNDRED=100,wc.ONE_THOUSAND=1e3),wc}var yv={},$C;function tD(){return $C||($C=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.ONE_YEAR=t.FOUR_WEEKS=t.THREE_WEEKS=t.TWO_WEEKS=t.ONE_WEEK=t.THIRTY_DAYS=t.SEVEN_DAYS=t.FIVE_DAYS=t.THREE_DAYS=t.ONE_DAY=t.TWENTY_FOUR_HOURS=t.TWELVE_HOURS=t.SIX_HOURS=t.THREE_HOURS=t.ONE_HOUR=t.SIXTY_MINUTES=t.THIRTY_MINUTES=t.TEN_MINUTES=t.FIVE_MINUTES=t.ONE_MINUTE=t.SIXTY_SECONDS=t.THIRTY_SECONDS=t.TEN_SECONDS=t.FIVE_SECONDS=t.ONE_SECOND=void 0,t.ONE_SECOND=1,t.FIVE_SECONDS=5,t.TEN_SECONDS=10,t.THIRTY_SECONDS=30,t.SIXTY_SECONDS=60,t.ONE_MINUTE=t.SIXTY_SECONDS,t.FIVE_MINUTES=t.ONE_MINUTE*5,t.TEN_MINUTES=t.ONE_MINUTE*10,t.THIRTY_MINUTES=t.ONE_MINUTE*30,t.SIXTY_MINUTES=t.ONE_MINUTE*60,t.ONE_HOUR=t.SIXTY_MINUTES,t.THREE_HOURS=t.ONE_HOUR*3,t.SIX_HOURS=t.ONE_HOUR*6,t.TWELVE_HOURS=t.ONE_HOUR*12,t.TWENTY_FOUR_HOURS=t.ONE_HOUR*24,t.ONE_DAY=t.TWENTY_FOUR_HOURS,t.THREE_DAYS=t.ONE_DAY*3,t.FIVE_DAYS=t.ONE_DAY*5,t.SEVEN_DAYS=t.ONE_DAY*7,t.THIRTY_DAYS=t.ONE_DAY*30,t.ONE_WEEK=t.SEVEN_DAYS,t.TWO_WEEKS=t.ONE_WEEK*2,t.THREE_WEEKS=t.ONE_WEEK*3,t.FOUR_WEEKS=t.ONE_WEEK*4,t.ONE_YEAR=t.ONE_DAY*365}(yv)),yv}var FC;function Q8(){return FC||(FC=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});const e=fp;e.__exportStar(eD(),t),e.__exportStar(tD(),t)}(bv)),bv}var jC;function nD(){if(jC)return vc;jC=1,Object.defineProperty(vc,"__esModule",{value:!0}),vc.fromMiliseconds=vc.toMiliseconds=void 0;const t=Q8();function e(r){return r*t.ONE_THOUSAND}vc.toMiliseconds=e;function n(r){return Math.floor(r/t.ONE_THOUSAND)}return vc.fromMiliseconds=n,vc}var zC;function rD(){return zC||(zC=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});const e=fp;e.__exportStar(J7(),t),e.__exportStar(nD(),t)}(mv)),mv}var al={},qC;function iD(){if(qC)return al;qC=1,Object.defineProperty(al,"__esModule",{value:!0}),al.Watch=void 0;class t{constructor(){this.timestamps=new Map}start(n){if(this.timestamps.has(n))throw new Error(`Watch already started for label: ${n}`);this.timestamps.set(n,{started:Date.now()})}stop(n){const r=this.get(n);if(typeof r.elapsed<"u")throw new Error(`Watch already stopped for label: ${n}`);const i=Date.now()-r.started;this.timestamps.set(n,{started:r.started,elapsed:i})}get(n){const r=this.timestamps.get(n);if(typeof r>"u")throw new Error(`No timestamp found for label: ${n}`);return r}elapsed(n){const r=this.get(n);return r.elapsed||Date.now()-r.started}}return al.Watch=t,al.default=t,al}var vv={},Mf={},HC;function sD(){if(HC)return Mf;HC=1,Object.defineProperty(Mf,"__esModule",{value:!0}),Mf.IWatch=void 0;class t{}return Mf.IWatch=t,Mf}var GC;function aD(){return GC||(GC=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),fp.__exportStar(sD(),t)}(vv)),vv}var VC;function oD(){return VC||(VC=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});const e=fp;e.__exportStar(rD(),t),e.__exportStar(iD(),t),e.__exportStar(aD(),t),e.__exportStar(Q8(),t)}(gv)),gv}var ge=oD();class yu{}let cD=class extends yu{constructor(e){super()}};const KC=ge.FIVE_SECONDS,bd={pulse:"heartbeat_pulse"};let uD=class Y8 extends cD{constructor(e){super(e),this.events=new zi.EventEmitter,this.interval=KC,this.interval=(e==null?void 0:e.interval)||KC}static async init(e){const n=new Y8(e);return await n.init(),n}async init(){await this.initialize()}stop(){clearInterval(this.intervalRef)}on(e,n){this.events.on(e,n)}once(e,n){this.events.once(e,n)}off(e,n){this.events.off(e,n)}removeListener(e,n){this.events.removeListener(e,n)}async initialize(){this.intervalRef=setInterval(()=>this.pulse(),ge.toMiliseconds(this.interval))}pulse(){this.events.emit(bd.pulse)}};const lD=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,dD=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,fD=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function hD(t,e){if(t==="__proto__"||t==="constructor"&&e&&typeof e=="object"&&"prototype"in e){pD(t);return}return e}function pD(t){console.warn(`[destr] Dropping "${t}" key to prevent prototype pollution.`)}function Y0(t,e={}){if(typeof t!="string")return t;const n=t.trim();if(t[0]==='"'&&t.endsWith('"')&&!t.includes("\\"))return n.slice(1,-1);if(n.length<=9){const r=n.toLowerCase();if(r==="true")return!0;if(r==="false")return!1;if(r==="undefined")return;if(r==="null")return null;if(r==="nan")return Number.NaN;if(r==="infinity")return Number.POSITIVE_INFINITY;if(r==="-infinity")return Number.NEGATIVE_INFINITY}if(!fD.test(t)){if(e.strict)throw new SyntaxError("[destr] Invalid JSON");return t}try{if(lD.test(t)||dD.test(t)){if(e.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(t,hD)}return JSON.parse(t)}catch(r){if(e.strict)throw r;return t}}function gD(t){return!t||typeof t.then!="function"?Promise.resolve(t):t}function ar(t,...e){try{return gD(t(...e))}catch(n){return Promise.reject(n)}}function mD(t){const e=typeof t;return t===null||e!=="object"&&e!=="function"}function bD(t){const e=Object.getPrototypeOf(t);return!e||e.isPrototypeOf(Object)}function _g(t){if(mD(t))return String(t);if(bD(t)||Array.isArray(t))return JSON.stringify(t);if(typeof t.toJSON=="function")return _g(t.toJSON());throw new Error("[unstorage] Cannot stringify value!")}const lw="base64:";function yD(t){return typeof t=="string"?t:lw+ED(t)}function vD(t){return typeof t!="string"||!t.startsWith(lw)?t:wD(t.slice(lw.length))}function wD(t){return globalThis.Buffer?Buffer.from(t,"base64"):Uint8Array.from(globalThis.atob(t),e=>e.codePointAt(0))}function ED(t){return globalThis.Buffer?Buffer.from(t).toString("base64"):globalThis.btoa(String.fromCodePoint(...t))}function Yr(t){var e;return t&&((e=t.split("?")[0])==null?void 0:e.replace(/[/\\]/g,":").replace(/:+/g,":").replace(/^:|:$/g,""))||""}function AD(...t){return Yr(t.join(":"))}function Z0(t){return t=Yr(t),t?t+":":""}function _D(t,e){if(e===void 0)return!0;let n=0,r=t.indexOf(":");for(;r>-1;)n++,r=t.indexOf(":",r+1);return n<=e}function CD(t,e){return e?t.startsWith(e)&&t[t.length-1]!=="$":t[t.length-1]!=="$"}const SD="memory",TD=()=>{const t=new Map;return{name:SD,getInstance:()=>t,hasItem(e){return t.has(e)},getItem(e){return t.get(e)??null},getItemRaw(e){return t.get(e)??null},setItem(e,n){t.set(e,n)},setItemRaw(e,n){t.set(e,n)},removeItem(e){t.delete(e)},getKeys(){return[...t.keys()]},clear(){t.clear()},dispose(){t.clear()}}};function xD(t={}){const e={mounts:{"":t.driver||TD()},mountpoints:[""],watching:!1,watchListeners:[],unwatch:{}},n=d=>{for(const p of e.mountpoints)if(d.startsWith(p))return{base:p,relativeKey:d.slice(p.length),driver:e.mounts[p]};return{base:"",relativeKey:d,driver:e.mounts[""]}},r=(d,p)=>e.mountpoints.filter(g=>g.startsWith(d)||p&&d.startsWith(g)).map(g=>({relativeBase:d.length>g.length?d.slice(g.length):void 0,mountpoint:g,driver:e.mounts[g]})),i=(d,p)=>{if(e.watching){p=Yr(p);for(const g of e.watchListeners)g(d,p)}},s=async()=>{if(!e.watching){e.watching=!0;for(const d in e.mounts)e.unwatch[d]=await WC(e.mounts[d],i,d)}},c=async()=>{if(e.watching){for(const d in e.unwatch)await e.unwatch[d]();e.unwatch={},e.watching=!1}},u=(d,p,g)=>{const m=new Map,y=A=>{let E=m.get(A.base);return E||(E={driver:A.driver,base:A.base,items:[]},m.set(A.base,E)),E};for(const A of d){const E=typeof A=="string",x=Yr(E?A:A.key),O=E?void 0:A.value,I=E||!A.options?p:{...p,...A.options},M=n(x);y(M).items.push({key:x,value:O,relativeKey:M.relativeKey,options:I})}return Promise.all([...m.values()].map(A=>g(A))).then(A=>A.flat())},f={hasItem(d,p={}){d=Yr(d);const{relativeKey:g,driver:m}=n(d);return ar(m.hasItem,g,p)},getItem(d,p={}){d=Yr(d);const{relativeKey:g,driver:m}=n(d);return ar(m.getItem,g,p).then(y=>Y0(y))},getItems(d,p={}){return u(d,p,g=>g.driver.getItems?ar(g.driver.getItems,g.items.map(m=>({key:m.relativeKey,options:m.options})),p).then(m=>m.map(y=>({key:AD(g.base,y.key),value:Y0(y.value)}))):Promise.all(g.items.map(m=>ar(g.driver.getItem,m.relativeKey,m.options).then(y=>({key:m.key,value:Y0(y)})))))},getItemRaw(d,p={}){d=Yr(d);const{relativeKey:g,driver:m}=n(d);return m.getItemRaw?ar(m.getItemRaw,g,p):ar(m.getItem,g,p).then(y=>vD(y))},async setItem(d,p,g={}){if(p===void 0)return f.removeItem(d);d=Yr(d);const{relativeKey:m,driver:y}=n(d);y.setItem&&(await ar(y.setItem,m,_g(p),g),y.watch||i("update",d))},async setItems(d,p){await u(d,p,async g=>{if(g.driver.setItems)return ar(g.driver.setItems,g.items.map(m=>({key:m.relativeKey,value:_g(m.value),options:m.options})),p);g.driver.setItem&&await Promise.all(g.items.map(m=>ar(g.driver.setItem,m.relativeKey,_g(m.value),m.options)))})},async setItemRaw(d,p,g={}){if(p===void 0)return f.removeItem(d,g);d=Yr(d);const{relativeKey:m,driver:y}=n(d);if(y.setItemRaw)await ar(y.setItemRaw,m,p,g);else if(y.setItem)await ar(y.setItem,m,yD(p),g);else return;y.watch||i("update",d)},async removeItem(d,p={}){typeof p=="boolean"&&(p={removeMeta:p}),d=Yr(d);const{relativeKey:g,driver:m}=n(d);m.removeItem&&(await ar(m.removeItem,g,p),(p.removeMeta||p.removeMata)&&await ar(m.removeItem,g+"$",p),m.watch||i("remove",d))},async getMeta(d,p={}){typeof p=="boolean"&&(p={nativeOnly:p}),d=Yr(d);const{relativeKey:g,driver:m}=n(d),y=Object.create(null);if(m.getMeta&&Object.assign(y,await ar(m.getMeta,g,p)),!p.nativeOnly){const A=await ar(m.getItem,g+"$",p).then(E=>Y0(E));A&&typeof A=="object"&&(typeof A.atime=="string"&&(A.atime=new Date(A.atime)),typeof A.mtime=="string"&&(A.mtime=new Date(A.mtime)),Object.assign(y,A))}return y},setMeta(d,p,g={}){return this.setItem(d+"$",p,g)},removeMeta(d,p={}){return this.removeItem(d+"$",p)},async getKeys(d,p={}){var x;d=Z0(d);const g=r(d,!0);let m=[];const y=[];let A=!0;for(const O of g){(x=O.driver.flags)!=null&&x.maxDepth||(A=!1);const I=await ar(O.driver.getKeys,O.relativeBase,p);for(const M of I){const $=O.mountpoint+Yr(M);m.some(D=>$.startsWith(D))||y.push($)}m=[O.mountpoint,...m.filter(M=>!M.startsWith(O.mountpoint))]}const E=p.maxDepth!==void 0&&!A;return y.filter(O=>(!E||_D(O,p.maxDepth))&&CD(O,d))},async clear(d,p={}){d=Z0(d),await Promise.all(r(d,!1).map(async g=>{if(g.driver.clear)return ar(g.driver.clear,g.relativeBase,p);if(g.driver.removeItem){const m=await g.driver.getKeys(g.relativeBase||"",p);return Promise.all(m.map(y=>g.driver.removeItem(y,p)))}}))},async dispose(){await Promise.all(Object.values(e.mounts).map(d=>QC(d)))},async watch(d){return await s(),e.watchListeners.push(d),async()=>{e.watchListeners=e.watchListeners.filter(p=>p!==d),e.watchListeners.length===0&&await c()}},async unwatch(){e.watchListeners=[],await c()},mount(d,p){if(d=Z0(d),d&&e.mounts[d])throw new Error(`already mounted at ${d}`);return d&&(e.mountpoints.push(d),e.mountpoints.sort((g,m)=>m.length-g.length)),e.mounts[d]=p,e.watching&&Promise.resolve(WC(p,i,d)).then(g=>{e.unwatch[d]=g}).catch(console.error),f},async unmount(d,p=!0){var g,m;d=Z0(d),!(!d||!e.mounts[d])&&(e.watching&&d in e.unwatch&&((m=(g=e.unwatch)[d])==null||m.call(g),delete e.unwatch[d]),p&&await QC(e.mounts[d]),e.mountpoints=e.mountpoints.filter(y=>y!==d),delete e.mounts[d])},getMount(d=""){d=Yr(d)+":";const p=n(d);return{driver:p.driver,base:p.base}},getMounts(d="",p={}){return d=Yr(d),r(d,p.parents).map(m=>({driver:m.driver,base:m.mountpoint}))},keys:(d,p={})=>f.getKeys(d,p),get:(d,p={})=>f.getItem(d,p),set:(d,p,g={})=>f.setItem(d,p,g),has:(d,p={})=>f.hasItem(d,p),del:(d,p={})=>f.removeItem(d,p),remove:(d,p={})=>f.removeItem(d,p)};return f}function WC(t,e,n){return t.watch?t.watch((r,i)=>e(r,n+i)):()=>{}}async function QC(t){typeof t.dispose=="function"&&await ar(t.dispose)}function vu(t){return new Promise((e,n)=>{t.oncomplete=t.onsuccess=()=>e(t.result),t.onabort=t.onerror=()=>n(t.error)})}function Z8(t,e){const n=indexedDB.open(t);n.onupgradeneeded=()=>n.result.createObjectStore(e);const r=vu(n);return(i,s)=>r.then(c=>s(c.transaction(e,i).objectStore(e)))}let wv;function hp(){return wv||(wv=Z8("keyval-store","keyval")),wv}function YC(t,e=hp()){return e("readonly",n=>vu(n.get(t)))}function ND(t,e,n=hp()){return n("readwrite",r=>(r.put(e,t),vu(r.transaction)))}function ID(t,e=hp()){return e("readwrite",n=>(n.delete(t),vu(n.transaction)))}function OD(t=hp()){return t("readwrite",e=>(e.clear(),vu(e.transaction)))}function RD(t,e){return t.openCursor().onsuccess=function(){this.result&&(e(this.result),this.result.continue())},vu(t.transaction)}function DD(t=hp()){return t("readonly",e=>{if(e.getAllKeys)return vu(e.getAllKeys());const n=[];return RD(e,r=>n.push(r.key)).then(()=>n)})}const PD=t=>JSON.stringify(t,(e,n)=>typeof n=="bigint"?n.toString()+"n":n),MD=t=>{const e=/([\[:])?(\d{17,}|(?:[9](?:[1-9]07199254740991|0[1-9]7199254740991|00[8-9]199254740991|007[2-9]99254740991|007199[3-9]54740991|0071992[6-9]4740991|00719925[5-9]740991|007199254[8-9]40991|0071992547[5-9]0991|00719925474[1-9]991|00719925474099[2-9])))([,\}\]])/g,n=t.replace(e,'$1"$2n"$3');return JSON.parse(n,(r,i)=>typeof i=="string"&&i.match(/^\d+n$/)?BigInt(i.substring(0,i.length-1)):i)};function Xc(t){if(typeof t!="string")throw new Error(`Cannot safe json parse value of type ${typeof t}`);try{return MD(t)}catch{return t}}function ka(t){return typeof t=="string"?t:PD(t)||""}const kD="idb-keyval";var UD=(t={})=>{const e=t.base&&t.base.length>0?`${t.base}:`:"",n=i=>e+i;let r;return t.dbName&&t.storeName&&(r=Z8(t.dbName,t.storeName)),{name:kD,options:t,async hasItem(i){return!(typeof await YC(n(i),r)>"u")},async getItem(i){return await YC(n(i),r)??null},setItem(i,s){return ND(n(i),s,r)},removeItem(i){return ID(n(i),r)},getKeys(){return DD(r)},clear(){return OD(r)}}};const BD="WALLET_CONNECT_V2_INDEXED_DB",LD="keyvaluestorage";let $D=class{constructor(){this.indexedDb=xD({driver:UD({dbName:BD,storeName:LD})})}async getKeys(){return this.indexedDb.getKeys()}async getEntries(){return(await this.indexedDb.getItems(await this.indexedDb.getKeys())).map(e=>[e.key,e.value])}async getItem(e){const n=await this.indexedDb.getItem(e);if(n!==null)return n}async setItem(e,n){await this.indexedDb.setItem(e,ka(n))}async removeItem(e){await this.indexedDb.removeItem(e)}};var Ev=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Cg={exports:{}};(function(){let t;function e(){}t=e,t.prototype.getItem=function(n){return this.hasOwnProperty(n)?String(this[n]):null},t.prototype.setItem=function(n,r){this[n]=String(r)},t.prototype.removeItem=function(n){delete this[n]},t.prototype.clear=function(){const n=this;Object.keys(n).forEach(function(r){n[r]=void 0,delete n[r]})},t.prototype.key=function(n){return n=n||0,Object.keys(this)[n]},t.prototype.__defineGetter__("length",function(){return Object.keys(this).length}),typeof Ev<"u"&&Ev.localStorage?Cg.exports=Ev.localStorage:typeof window<"u"&&window.localStorage?Cg.exports=window.localStorage:Cg.exports=new e})();function FD(t){var e;return[t[0],Xc((e=t[1])!=null?e:"")]}let jD=class{constructor(){this.localStorage=Cg.exports}async getKeys(){return Object.keys(this.localStorage)}async getEntries(){return Object.entries(this.localStorage).map(FD)}async getItem(e){const n=this.localStorage.getItem(e);if(n!==null)return Xc(n)}async setItem(e,n){this.localStorage.setItem(e,ka(n))}async removeItem(e){this.localStorage.removeItem(e)}};const zD="wc_storage_version",ZC=1,qD=async(t,e,n)=>{const r=zD,i=await e.getItem(r);if(i&&i>=ZC){n(e);return}const s=await t.getKeys();if(!s.length){n(e);return}const c=[];for(;s.length;){const u=s.shift();if(!u)continue;const f=u.toLowerCase();if(f.includes("wc@")||f.includes("walletconnect")||f.includes("wc_")||f.includes("wallet_connect")){const d=await t.getItem(u);await e.setItem(u,d),c.push(u)}}await e.setItem(r,ZC),n(e),HD(t,c)},HD=async(t,e)=>{e.length&&e.forEach(async n=>{await t.removeItem(n)})};let GD=class{constructor(){this.initialized=!1,this.setInitialized=n=>{this.storage=n,this.initialized=!0};const e=new jD;this.storage=e;try{const n=new $D;qD(e,n,this.setInitialized)}catch{this.initialized=!0}}async getKeys(){return await this.initialize(),this.storage.getKeys()}async getEntries(){return await this.initialize(),this.storage.getEntries()}async getItem(e){return await this.initialize(),this.storage.getItem(e)}async setItem(e,n){return await this.initialize(),this.storage.setItem(e,n)}async removeItem(e){return await this.initialize(),this.storage.removeItem(e)}async initialize(){this.initialized||await new Promise(e=>{const n=setInterval(()=>{this.initialized&&(clearInterval(n),e())},20)})}};var Av,XC;function VD(){if(XC)return Av;XC=1;function t(n){try{return JSON.stringify(n)}catch{return'"[Circular]"'}}Av=e;function e(n,r,i){var s=i&&i.stringify||t,c=1;if(typeof n=="object"&&n!==null){var u=r.length+c;if(u===1)return n;var f=new Array(u);f[0]=s(n);for(var d=1;d-1?y:0,n.charCodeAt(E+1)){case 100:case 102:if(m>=p||r[m]==null)break;y=p||r[m]==null)break;y=p||r[m]===void 0)break;y",y=E+2,E++;break}g+=s(r[m]),y=E+2,E++;break;case 115:if(m>=p)break;y-1&&(L=!1);const v=["error","fatal","warn","info","debug","trace"];typeof G=="function"&&(G.error=G.fatal=G.warn=G.info=G.debug=G.trace=G),R.enabled===!1&&(R.level="silent");const C=R.level||"info",N=Object.create(G);N.log||(N.log=x),Object.defineProperty(N,"levelVal",{get:S}),Object.defineProperty(N,"level",{get:k,set:F});const T={transmit:z,serialize:V,asObject:R.browser.asObject,levels:v,timestamp:y(R)};N.levels=i.levels,N.level=C,N.setMaxListeners=N.getMaxListeners=N.emit=N.addListener=N.on=N.prependListener=N.once=N.prependOnceListener=N.removeListener=N.removeAllListeners=N.listeners=N.listenerCount=N.eventNames=N.write=N.flush=x,N.serializers=j,N._serialize=V,N._stdErrSerialize=L,N.child=P,z&&(N._logEvent=g());function S(){return this.level==="silent"?1/0:this.levels.values[this.level]}function k(){return this._level}function F(w){if(w!=="silent"&&!this.levels.values[w])throw Error("unknown level "+w);this._level=w,s(T,N,"error","log"),s(T,N,"fatal","error"),s(T,N,"warn","error"),s(T,N,"info","log"),s(T,N,"debug","log"),s(T,N,"trace","log")}function P(w,B){if(!w)throw new Error("missing bindings for child Pino");B=B||{},V&&w.serializers&&(B.serializers=w.serializers);const Z=B.serializers;if(V&&Z){var ee=Object.assign({},j,Z),Y=R.browser.serialize===!0?Object.keys(ee):V;delete w.serializers,f([w],Y,ee,this._stdErrSerialize)}function se(ce){this._childLevel=(ce._childLevel|0)+1,this.error=d(ce,w,"error"),this.fatal=d(ce,w,"fatal"),this.warn=d(ce,w,"warn"),this.info=d(ce,w,"info"),this.debug=d(ce,w,"debug"),this.trace=d(ce,w,"trace"),ee&&(this.serializers=ee,this._serialize=Y),z&&(this._logEvent=g([].concat(ce._logEvent.bindings,w)))}return se.prototype=this,new se(this)}return N}i.levels={values:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},labels:{10:"trace",20:"debug",30:"info",40:"warn",50:"error",60:"fatal"}},i.stdSerializers=n,i.stdTimeFunctions=Object.assign({},{nullTime:O,epochTime:I,unixTime:M,isoTime:$});function s(R,z,G,j){const V=Object.getPrototypeOf(z);z[G]=z.levelVal>z.levels.values[G]?x:V[G]?V[G]:e[G]||e[j]||x,c(R,z,G)}function c(R,z,G){!R.transmit&&z[G]===x||(z[G]=function(j){return function(){const L=R.timestamp(),v=new Array(arguments.length),C=Object.getPrototypeOf&&Object.getPrototypeOf(this)===e?e:this;for(var N=0;N-1&&L in G&&(R[V][L]=G[L](R[V][L]))}function d(R,z,G){return function(){const j=new Array(1+arguments.length);j[0]=z;for(var V=1;Vthis.maxSizeInBytes)throw new Error(`[LinkedList] Value too big to insert into list: ${e} with size ${n.size}`);for(;this.size+n.size>this.maxSizeInBytes;)this.shift();this.head?(this.tail&&(this.tail.next=n),this.tail=n):(this.head=n,this.tail=n),this.lengthInNodes++,this.sizeInBytes+=n.size}shift(){if(!this.head)return;const e=this.head;this.head=this.head.next,this.head||(this.tail=null),this.lengthInNodes--,this.sizeInBytes-=e.size}toArray(){const e=[];let n=this.head;for(;n!==null;)e.push(n.value),n=n.next;return e}get length(){return this.lengthInNodes}get size(){return this.sizeInBytes}toOrderedArray(){return Array.from(this)}[Symbol.iterator](){let e=this.head;return{next:()=>{if(!e)return{done:!0,value:null};const n=e.value;return e=e.next,{done:!1,value:n}}}}},X8=class{constructor(e,n=FE){this.level=e??"error",this.levelValue=Tl.levels.values[this.level],this.MAX_LOG_SIZE_IN_BYTES=n,this.logs=new eS(this.MAX_LOG_SIZE_IN_BYTES)}forwardToConsole(e,n){n===Tl.levels.values.error?console.error(e):n===Tl.levels.values.warn?console.warn(e):n===Tl.levels.values.debug?console.debug(e):n===Tl.levels.values.trace?console.trace(e):console.log(e)}appendToLogs(e){this.logs.append(ka({timestamp:new Date().toISOString(),log:e}));const n=typeof e=="string"?JSON.parse(e).level:e.level;n>=this.levelValue&&this.forwardToConsole(e,n)}getLogs(){return this.logs}clearLogs(){this.logs=new eS(this.MAX_LOG_SIZE_IN_BYTES)}getLogArray(){return Array.from(this.logs)}logsToBlob(e){const n=this.getLogArray();return n.push(ka({extraMetadata:e})),new Blob(n,{type:"application/json"})}},YD=class{constructor(e,n=FE){this.baseChunkLogger=new X8(e,n)}write(e){this.baseChunkLogger.appendToLogs(e)}getLogs(){return this.baseChunkLogger.getLogs()}clearLogs(){this.baseChunkLogger.clearLogs()}getLogArray(){return this.baseChunkLogger.getLogArray()}logsToBlob(e){return this.baseChunkLogger.logsToBlob(e)}downloadLogsBlobInBrowser(e){const n=URL.createObjectURL(this.logsToBlob(e)),r=document.createElement("a");r.href=n,r.download=`walletconnect-logs-${new Date().toISOString()}.txt`,document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(n)}},ZD=class{constructor(e,n=FE){this.baseChunkLogger=new X8(e,n)}write(e){this.baseChunkLogger.appendToLogs(e)}getLogs(){return this.baseChunkLogger.getLogs()}clearLogs(){this.baseChunkLogger.clearLogs()}getLogArray(){return this.baseChunkLogger.getLogArray()}logsToBlob(e){return this.baseChunkLogger.logsToBlob(e)}};var XD=Object.defineProperty,JD=Object.defineProperties,eP=Object.getOwnPropertyDescriptors,tS=Object.getOwnPropertySymbols,tP=Object.prototype.hasOwnProperty,nP=Object.prototype.propertyIsEnumerable,nS=(t,e,n)=>e in t?XD(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,qg=(t,e)=>{for(var n in e||(e={}))tP.call(e,n)&&nS(t,n,e[n]);if(tS)for(var n of tS(e))nP.call(e,n)&&nS(t,n,e[n]);return t},Hg=(t,e)=>JD(t,eP(e));function yd(t){return Hg(qg({},t),{level:(t==null?void 0:t.level)||WD.level})}function rP(t,e=gp){return t[e]||""}function iP(t,e,n=gp){return t[n]=e,t}function ni(t,e=gp){let n="";return typeof t.bindings>"u"?n=rP(t,e):n=t.bindings().context||"",n}function sP(t,e,n=gp){const r=ni(t,n);return r.trim()?`${r}/${e}`:e}function Pr(t,e,n=gp){const r=sP(t,e,n),i=t.child({context:r});return iP(i,r,n)}function aP(t){var e,n;const r=new YD((e=t.opts)==null?void 0:e.level,t.maxSizeInBytes);return{logger:pp(Hg(qg({},t.opts),{level:"trace",browser:Hg(qg({},(n=t.opts)==null?void 0:n.browser),{write:i=>r.write(i)})})),chunkLoggerController:r}}function oP(t){var e;const n=new ZD((e=t.opts)==null?void 0:e.level,t.maxSizeInBytes);return{logger:pp(Hg(qg({},t.opts),{level:"trace"}),n),chunkLoggerController:n}}function jE(t){return typeof t.loggerOverride<"u"&&typeof t.loggerOverride!="string"?{logger:t.loggerOverride,chunkLoggerController:null}:typeof window<"u"?aP(t):oP(t)}var cP=Object.defineProperty,uP=(t,e,n)=>e in t?cP(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,rS=(t,e,n)=>uP(t,typeof e!="symbol"?e+"":e,n);let lP=class extends yu{constructor(e){super(),this.opts=e,rS(this,"protocol","wc"),rS(this,"version",2)}};var dP=Object.defineProperty,fP=(t,e,n)=>e in t?dP(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,hP=(t,e,n)=>fP(t,e+"",n);let pP=class extends yu{constructor(e,n){super(),this.core=e,this.logger=n,hP(this,"records",new Map)}},gP=class{constructor(e,n){this.logger=e,this.core=n}},mP=class extends yu{constructor(e,n){super(),this.relayer=e,this.logger=n}},bP=class extends yu{constructor(e){super()}},yP=class{constructor(e,n,r,i){this.core=e,this.logger=n,this.name=r}},vP=class extends yu{constructor(e,n){super(),this.relayer=e,this.logger=n}},wP=class extends yu{constructor(e,n){super(),this.core=e,this.logger=n}},EP=class{constructor(e,n,r){this.core=e,this.logger=n,this.store=r}},AP=class{constructor(e,n){this.projectId=e,this.logger=n}},_P=class{constructor(e,n,r){this.core=e,this.logger=n,this.telemetryEnabled=r}};var CP=Object.defineProperty,SP=(t,e,n)=>e in t?CP(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,iS=(t,e,n)=>SP(t,typeof e!="symbol"?e+"":e,n);let TP=class{constructor(e){this.opts=e,iS(this,"protocol","wc"),iS(this,"version",2)}},xP=class{constructor(e){this.client=e}};function NP(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&t.constructor.name==="Uint8Array"}function J8(t,...e){if(!NP(t))throw new Error("Uint8Array expected");if(e.length>0&&!e.includes(t.length))throw new Error("Uint8Array expected of length "+e+", got length="+t.length)}function sS(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function IP(t,e){J8(t);const n=e.outputLen;if(t.lengthnew DataView(t.buffer,t.byteOffset,t.byteLength);function OP(t){if(typeof t!="string")throw new Error("utf8ToBytes expected string, got "+typeof t);return new Uint8Array(new TextEncoder().encode(t))}function eT(t){return typeof t=="string"&&(t=OP(t)),J8(t),t}let RP=class{clone(){return this._cloneInto()}};function DP(t){const e=r=>t().update(eT(r)).digest(),n=t();return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=()=>t(),e}function tT(t=32){if(ol&&typeof ol.getRandomValues=="function")return ol.getRandomValues(new Uint8Array(t));if(ol&&typeof ol.randomBytes=="function")return ol.randomBytes(t);throw new Error("crypto.getRandomValues must be defined")}function PP(t,e,n,r){if(typeof t.setBigUint64=="function")return t.setBigUint64(e,n,r);const i=BigInt(32),s=BigInt(4294967295),c=Number(n>>i&s),u=Number(n&s),f=r?4:0,d=r?0:4;t.setUint32(e+f,c,r),t.setUint32(e+d,u,r)}let MP=class extends RP{constructor(e,n,r,i){super(),this.blockLen=e,this.outputLen=n,this.padOffset=r,this.isLE=i,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=Cv(this.buffer)}update(e){sS(this);const{view:n,buffer:r,blockLen:i}=this;e=eT(e);const s=e.length;for(let c=0;ci-c&&(this.process(r,0),c=0);for(let g=c;gp.length)throw new Error("_sha2: outputLen bigger than state");for(let g=0;g>dw&X0)}:{h:Number(t>>dw&X0)|0,l:Number(t&X0)|0}}function kP(t,e=!1){let n=new Uint32Array(t.length),r=new Uint32Array(t.length);for(let i=0;iBigInt(t>>>0)<>>0),BP=(t,e,n)=>t>>>n,LP=(t,e,n)=>t<<32-n|e>>>n,$P=(t,e,n)=>t>>>n|e<<32-n,FP=(t,e,n)=>t<<32-n|e>>>n,jP=(t,e,n)=>t<<64-n|e>>>n-32,zP=(t,e,n)=>t>>>n-32|e<<64-n,qP=(t,e)=>e,HP=(t,e)=>t,GP=(t,e,n)=>t<>>32-n,VP=(t,e,n)=>e<>>32-n,KP=(t,e,n)=>e<>>64-n,WP=(t,e,n)=>t<>>64-n;function QP(t,e,n,r){const i=(e>>>0)+(r>>>0);return{h:t+n+(i/2**32|0)|0,l:i|0}}const YP=(t,e,n)=>(t>>>0)+(e>>>0)+(n>>>0),ZP=(t,e,n,r)=>e+n+r+(t/2**32|0)|0,XP=(t,e,n,r)=>(t>>>0)+(e>>>0)+(n>>>0)+(r>>>0),JP=(t,e,n,r,i)=>e+n+r+i+(t/2**32|0)|0,eM=(t,e,n,r,i)=>(t>>>0)+(e>>>0)+(n>>>0)+(r>>>0)+(i>>>0),tM=(t,e,n,r,i,s)=>e+n+r+i+s+(t/2**32|0)|0,Ze={fromBig:nT,split:kP,toBig:UP,shrSH:BP,shrSL:LP,rotrSH:$P,rotrSL:FP,rotrBH:jP,rotrBL:zP,rotr32H:qP,rotr32L:HP,rotlSH:GP,rotlSL:VP,rotlBH:KP,rotlBL:WP,add:QP,add3L:YP,add3H:ZP,add4L:XP,add4H:JP,add5H:tM,add5L:eM},[nM,rM]=Ze.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(t=>BigInt(t))),fo=new Uint32Array(80),ho=new Uint32Array(80);let iM=class extends MP{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:e,Al:n,Bh:r,Bl:i,Ch:s,Cl:c,Dh:u,Dl:f,Eh:d,El:p,Fh:g,Fl:m,Gh:y,Gl:A,Hh:E,Hl:x}=this;return[e,n,r,i,s,c,u,f,d,p,g,m,y,A,E,x]}set(e,n,r,i,s,c,u,f,d,p,g,m,y,A,E,x){this.Ah=e|0,this.Al=n|0,this.Bh=r|0,this.Bl=i|0,this.Ch=s|0,this.Cl=c|0,this.Dh=u|0,this.Dl=f|0,this.Eh=d|0,this.El=p|0,this.Fh=g|0,this.Fl=m|0,this.Gh=y|0,this.Gl=A|0,this.Hh=E|0,this.Hl=x|0}process(e,n){for(let M=0;M<16;M++,n+=4)fo[M]=e.getUint32(n),ho[M]=e.getUint32(n+=4);for(let M=16;M<80;M++){const $=fo[M-15]|0,D=ho[M-15]|0,R=Ze.rotrSH($,D,1)^Ze.rotrSH($,D,8)^Ze.shrSH($,D,7),z=Ze.rotrSL($,D,1)^Ze.rotrSL($,D,8)^Ze.shrSL($,D,7),G=fo[M-2]|0,j=ho[M-2]|0,V=Ze.rotrSH(G,j,19)^Ze.rotrBH(G,j,61)^Ze.shrSH(G,j,6),L=Ze.rotrSL(G,j,19)^Ze.rotrBL(G,j,61)^Ze.shrSL(G,j,6),v=Ze.add4L(z,L,ho[M-7],ho[M-16]),C=Ze.add4H(v,R,V,fo[M-7],fo[M-16]);fo[M]=C|0,ho[M]=v|0}let{Ah:r,Al:i,Bh:s,Bl:c,Ch:u,Cl:f,Dh:d,Dl:p,Eh:g,El:m,Fh:y,Fl:A,Gh:E,Gl:x,Hh:O,Hl:I}=this;for(let M=0;M<80;M++){const $=Ze.rotrSH(g,m,14)^Ze.rotrSH(g,m,18)^Ze.rotrBH(g,m,41),D=Ze.rotrSL(g,m,14)^Ze.rotrSL(g,m,18)^Ze.rotrBL(g,m,41),R=g&y^~g&E,z=m&A^~m&x,G=Ze.add5L(I,D,z,rM[M],ho[M]),j=Ze.add5H(G,O,$,R,nM[M],fo[M]),V=G|0,L=Ze.rotrSH(r,i,28)^Ze.rotrBH(r,i,34)^Ze.rotrBH(r,i,39),v=Ze.rotrSL(r,i,28)^Ze.rotrBL(r,i,34)^Ze.rotrBL(r,i,39),C=r&s^r&u^s&u,N=i&c^i&f^c&f;O=E|0,I=x|0,E=y|0,x=A|0,y=g|0,A=m|0,{h:g,l:m}=Ze.add(d|0,p|0,j|0,V|0),d=u|0,p=f|0,u=s|0,f=c|0,s=r|0,c=i|0;const T=Ze.add3L(V,v,N);r=Ze.add3H(T,j,L,C),i=T|0}({h:r,l:i}=Ze.add(this.Ah|0,this.Al|0,r|0,i|0)),{h:s,l:c}=Ze.add(this.Bh|0,this.Bl|0,s|0,c|0),{h:u,l:f}=Ze.add(this.Ch|0,this.Cl|0,u|0,f|0),{h:d,l:p}=Ze.add(this.Dh|0,this.Dl|0,d|0,p|0),{h:g,l:m}=Ze.add(this.Eh|0,this.El|0,g|0,m|0),{h:y,l:A}=Ze.add(this.Fh|0,this.Fl|0,y|0,A|0),{h:E,l:x}=Ze.add(this.Gh|0,this.Gl|0,E|0,x|0),{h:O,l:I}=Ze.add(this.Hh|0,this.Hl|0,O|0,I|0),this.set(r,i,s,c,u,f,d,p,g,m,y,A,E,x,O,I)}roundClean(){fo.fill(0),ho.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}};const sM=DP(()=>new iM);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const zE=BigInt(0),rT=BigInt(1),aM=BigInt(2);function qE(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&t.constructor.name==="Uint8Array"}function HE(t){if(!qE(t))throw new Error("Uint8Array expected")}function Sv(t,e){if(typeof e!="boolean")throw new Error(t+" boolean expected, got "+e)}const oM=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function GE(t){HE(t);let e="";for(let n=0;n=ga._0&&t<=ga._9)return t-ga._0;if(t>=ga.A&&t<=ga.F)return t-(ga.A-10);if(t>=ga.a&&t<=ga.f)return t-(ga.a-10)}function sT(t){if(typeof t!="string")throw new Error("hex string expected, got "+typeof t);const e=t.length,n=e/2;if(e%2)throw new Error("hex string expected, got unpadded hex of length "+e);const r=new Uint8Array(n);for(let i=0,s=0;itypeof t=="bigint"&&zE<=t;function uM(t,e,n){return Tv(t)&&Tv(e)&&Tv(n)&&e<=t&&tzE;t>>=rT,e+=1);return e}const dM=t=>(aM<typeof t=="bigint",function:t=>typeof t=="function",boolean:t=>typeof t=="boolean",string:t=>typeof t=="string",stringOrUint8Array:t=>typeof t=="string"||qE(t),isSafeInteger:t=>Number.isSafeInteger(t),array:t=>Array.isArray(t),field:(t,e)=>e.Fp.isValid(t),hash:t=>typeof t=="function"&&Number.isSafeInteger(t.outputLen)};function VE(t,e,n={}){const r=(i,s,c)=>{const u=fM[s];if(typeof u!="function")throw new Error("invalid validator function");const f=t[i];if(!(c&&f===void 0)&&!u(f,t))throw new Error("param "+String(i)+" is invalid. Expected "+s+", got "+f)};for(const[i,s]of Object.entries(e))r(i,s,!1);for(const[i,s]of Object.entries(n))r(i,s,!0);return t}function cS(t){const e=new WeakMap;return(n,...r)=>{const i=e.get(n);if(i!==void 0)return i;const s=t(n,...r);return e.set(n,s),s}}const ur=BigInt(0),$n=BigInt(1),Nc=BigInt(2),hM=BigInt(3),hw=BigInt(4),uS=BigInt(5),lS=BigInt(8);function Jn(t,e){const n=t%e;return n>=ur?n:e+n}function pM(t,e,n){if(eur;)e&$n&&(r=r*t%n),t=t*t%n,e>>=$n;return r}function Ss(t,e,n){let r=t;for(;e-- >ur;)r*=r,r%=n;return r}function dS(t,e){if(t===ur)throw new Error("invert: expected non-zero number");if(e<=ur)throw new Error("invert: expected positive modulus, got "+e);let n=Jn(t,e),r=e,i=ur,s=$n;for(;n!==ur;){const c=r/n,u=r%n,f=i-s*c;r=n,n=u,i=s,s=f}if(r!==$n)throw new Error("invert: does not exist");return Jn(i,e)}function gM(t){const e=(t-$n)/Nc;let n,r,i;for(n=t-$n,r=0;n%Nc===ur;n/=Nc,r++);for(i=Nc;i1e3)throw new Error("Cannot find square root: likely non-prime P");if(r===1){const c=(t+$n)/hw;return function(u,f){const d=u.pow(f,c);if(!u.eql(u.sqr(d),f))throw new Error("Cannot find square root");return d}}const s=(n+$n)/Nc;return function(c,u){if(c.pow(u,e)===c.neg(c.ONE))throw new Error("Cannot find square root");let f=r,d=c.pow(c.mul(c.ONE,i),n),p=c.pow(u,s),g=c.pow(u,n);for(;!c.eql(g,c.ONE);){if(c.eql(g,c.ZERO))return c.ZERO;let m=1;for(let A=c.sqr(g);m(Jn(t,e)&$n)===$n,yM=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function vM(t){const e={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},n=yM.reduce((r,i)=>(r[i]="function",r),e);return VE(t,n)}function wM(t,e,n){if(nur;)n&$n&&(r=t.mul(r,i)),i=t.sqr(i),n>>=$n;return r}function EM(t,e){const n=new Array(e.length),r=e.reduce((s,c,u)=>t.is0(c)?s:(n[u]=s,t.mul(s,c)),t.ONE),i=t.inv(r);return e.reduceRight((s,c,u)=>t.is0(c)?s:(n[u]=t.mul(s,n[u]),t.mul(s,c)),i),n}function oT(t,e){const n=e!==void 0?e:t.toString(2).length,r=Math.ceil(n/8);return{nBitLength:n,nByteLength:r}}function cT(t,e,n=!1,r={}){if(t<=ur)throw new Error("invalid field: expected ORDER > 0, got "+t);const{nBitLength:i,nByteLength:s}=oT(t,e);if(s>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let c;const u=Object.freeze({ORDER:t,isLE:n,BITS:i,BYTES:s,MASK:dM(i),ZERO:ur,ONE:$n,create:f=>Jn(f,t),isValid:f=>{if(typeof f!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof f);return ur<=f&&ff===ur,isOdd:f=>(f&$n)===$n,neg:f=>Jn(-f,t),eql:(f,d)=>f===d,sqr:f=>Jn(f*f,t),add:(f,d)=>Jn(f+d,t),sub:(f,d)=>Jn(f-d,t),mul:(f,d)=>Jn(f*d,t),pow:(f,d)=>wM(u,f,d),div:(f,d)=>Jn(f*dS(d,t),t),sqrN:f=>f*f,addN:(f,d)=>f+d,subN:(f,d)=>f-d,mulN:(f,d)=>f*d,inv:f=>dS(f,t),sqrt:r.sqrt||(f=>(c||(c=mM(t)),c(u,f))),invertBatch:f=>EM(u,f),cmov:(f,d,p)=>p?d:f,toBytes:f=>n?fw(f,s):aT(f,s),fromBytes:f=>{if(f.length!==s)throw new Error("Field.fromBytes: expected "+s+" bytes, got "+f.length);return n?Sg(f):cM(f)}});return Object.freeze(u)}const fS=BigInt(0),J0=BigInt(1);function xv(t,e){const n=e.negate();return t?n:e}function uT(t,e){if(!Number.isSafeInteger(t)||t<=0||t>e)throw new Error("invalid window size, expected [1.."+e+"], got W="+t)}function Nv(t,e){uT(t,e);const n=Math.ceil(e/t)+1,r=2**(t-1);return{windows:n,windowSize:r}}function AM(t,e){if(!Array.isArray(t))throw new Error("array expected");t.forEach((n,r)=>{if(!(n instanceof e))throw new Error("invalid point at index "+r)})}function _M(t,e){if(!Array.isArray(t))throw new Error("array of scalars expected");t.forEach((n,r)=>{if(!e.isValid(n))throw new Error("invalid scalar at index "+r)})}const Iv=new WeakMap,lT=new WeakMap;function Ov(t){return lT.get(t)||1}function CM(t,e){return{constTimeNegate:xv,hasPrecomputes(n){return Ov(n)!==1},unsafeLadder(n,r,i=t.ZERO){let s=n;for(;r>fS;)r&J0&&(i=i.add(s)),s=s.double(),r>>=J0;return i},precomputeWindow(n,r){const{windows:i,windowSize:s}=Nv(r,e),c=[];let u=n,f=u;for(let d=0;d>=g,A>c&&(A-=p,i+=J0);const E=y,x=y+Math.abs(A)-1,O=m%2!==0,I=A<0;A===0?f=f.add(xv(O,r[E])):u=u.add(xv(I,r[x]))}return{p:u,f}},wNAFUnsafe(n,r,i,s=t.ZERO){const{windows:c,windowSize:u}=Nv(n,e),f=BigInt(2**n-1),d=2**n,p=BigInt(n);for(let g=0;g>=p,y>u&&(y-=d,i+=J0),y===0)continue;let A=r[m+Math.abs(y)-1];y<0&&(A=A.negate()),s=s.add(A)}return s},getPrecomputes(n,r,i){let s=Iv.get(r);return s||(s=this.precomputeWindow(r,n),n!==1&&Iv.set(r,i(s))),s},wNAFCached(n,r,i){const s=Ov(n);return this.wNAF(s,this.getPrecomputes(s,n,i),r)},wNAFCachedUnsafe(n,r,i,s){const c=Ov(n);return c===1?this.unsafeLadder(n,r,s):this.wNAFUnsafe(c,this.getPrecomputes(c,n,i),r,s)},setWindowSize(n,r){uT(r,e),lT.set(n,r),Iv.delete(n)}}}function SM(t,e,n,r){if(AM(n,t),_M(r,e),n.length!==r.length)throw new Error("arrays of points and scalars must have equal length");const i=t.ZERO,s=lM(BigInt(n.length)),c=s>12?s-3:s>4?s-2:s?2:1,u=(1<=0;g-=c){f.fill(i);for(let y=0;y>BigInt(g)&BigInt(u));f[E]=f[E].add(n[y])}let m=i;for(let y=f.length-1,A=i;y>0;y--)A=A.add(f[y]),m=m.add(A);if(p=p.add(m),g!==0)for(let y=0;y{try{return{isValid:!0,value:n.sqrt(T*n.inv(S))}}catch{return{isValid:!1,value:es}}}),y=e.adjustScalarBytes||(T=>T),A=e.domain||((T,S,k)=>{if(Sv("phflag",k),S.length||k)throw new Error("Contexts/pre-hash are not supported");return T});function E(T,S){kf("coordinate "+T,S,es,d)}function x(T){if(!(T instanceof M))throw new Error("ExtendedPoint expected")}const O=cS((T,S)=>{const{ex:k,ey:F,ez:P}=T,w=T.is0();S==null&&(S=w?xM:n.inv(P));const B=p(k*S),Z=p(F*S),ee=p(P*S);if(w)return{x:es,y:Vr};if(ee!==Vr)throw new Error("invZ was invalid");return{x:B,y:Z}}),I=cS(T=>{const{a:S,d:k}=e;if(T.is0())throw new Error("bad point: ZERO");const{ex:F,ey:P,ez:w,et:B}=T,Z=p(F*F),ee=p(P*P),Y=p(w*w),se=p(Y*Y),ce=p(Z*S),we=p(Y*p(ce+ee)),_e=p(se+p(k*p(Z*ee)));if(we!==_e)throw new Error("bad point: equation left != right (1)");const ye=p(F*P),Ce=p(w*B);if(ye!==Ce)throw new Error("bad point: equation left != right (2)");return!0});class M{constructor(S,k,F,P){this.ex=S,this.ey=k,this.ez=F,this.et=P,E("x",S),E("y",k),E("z",F),E("t",P),Object.freeze(this)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static fromAffine(S){if(S instanceof M)throw new Error("extended point not allowed");const{x:k,y:F}=S||{};return E("x",k),E("y",F),new M(k,F,Vr,p(k*F))}static normalizeZ(S){const k=n.invertBatch(S.map(F=>F.ez));return S.map((F,P)=>F.toAffine(k[P])).map(M.fromAffine)}static msm(S,k){return SM(M,g,S,k)}_setWindowSize(S){R.setWindowSize(this,S)}assertValidity(){I(this)}equals(S){x(S);const{ex:k,ey:F,ez:P}=this,{ex:w,ey:B,ez:Z}=S,ee=p(k*Z),Y=p(w*P),se=p(F*Z),ce=p(B*P);return ee===Y&&se===ce}is0(){return this.equals(M.ZERO)}negate(){return new M(p(-this.ex),this.ey,this.ez,p(-this.et))}double(){const{a:S}=e,{ex:k,ey:F,ez:P}=this,w=p(k*k),B=p(F*F),Z=p(eg*p(P*P)),ee=p(S*w),Y=k+F,se=p(p(Y*Y)-w-B),ce=ee+B,we=ce-Z,_e=ee-B,ye=p(se*we),Ce=p(ce*_e),kt=p(se*_e),tt=p(we*ce);return new M(ye,Ce,tt,kt)}add(S){x(S);const{a:k,d:F}=e,{ex:P,ey:w,ez:B,et:Z}=this,{ex:ee,ey:Y,ez:se,et:ce}=S;if(k===BigInt(-1)){const Ot=p((w-P)*(Y+ee)),yi=p((w+P)*(Y-ee)),xt=p(yi-Ot);if(xt===es)return this.double();const zt=p(B*eg*ce),ms=p(Z*eg*se),Je=ms+zt,Rt=yi+Ot,Ki=ms-zt,qt=p(Je*xt),Zt=p(Rt*Ki),_u=p(Je*Ki),dn=p(xt*Rt);return new M(qt,Zt,dn,_u)}const we=p(P*ee),_e=p(w*Y),ye=p(Z*F*ce),Ce=p(B*se),kt=p((P+w)*(ee+Y)-we-_e),tt=Ce-ye,Ke=Ce+ye,jn=p(_e-k*we),ut=p(kt*tt),lt=p(Ke*jn),qr=p(kt*jn),It=p(tt*Ke);return new M(ut,lt,It,qr)}subtract(S){return this.add(S.negate())}wNAF(S){return R.wNAFCached(this,S,M.normalizeZ)}multiply(S){const k=S;kf("scalar",k,Vr,r);const{p:F,f:P}=this.wNAF(k);return M.normalizeZ([F,P])[0]}multiplyUnsafe(S,k=M.ZERO){const F=S;return kf("scalar",F,es,r),F===es?D:this.is0()||F===Vr?this:R.wNAFCachedUnsafe(this,F,M.normalizeZ,k)}isSmallOrder(){return this.multiplyUnsafe(f).is0()}isTorsionFree(){return R.unsafeLadder(this,r).is0()}toAffine(S){return O(this,S)}clearCofactor(){const{h:S}=e;return S===Vr?this:this.multiplyUnsafe(S)}static fromHex(S,k=!1){const{d:F,a:P}=e,w=n.BYTES;S=ma("pointHex",S,w),Sv("zip215",k);const B=S.slice(),Z=S[w-1];B[w-1]=Z&-129;const ee=Sg(B),Y=k?d:n.ORDER;kf("pointHex.y",ee,es,Y);const se=p(ee*ee),ce=p(se-Vr),we=p(F*se-P);let{isValid:_e,value:ye}=m(ce,we);if(!_e)throw new Error("Point.fromHex: invalid y coordinate");const Ce=(ye&Vr)===Vr,kt=(Z&128)!==0;if(!k&&ye===es&&kt)throw new Error("Point.fromHex: x=0 and x_0=1");return kt!==Ce&&(ye=p(-ye)),M.fromAffine({x:ye,y:ee})}static fromPrivateKey(S){return j(S).point}toRawBytes(){const{x:S,y:k}=this.toAffine(),F=fw(k,n.BYTES);return F[F.length-1]|=S&Vr?128:0,F}toHex(){return GE(this.toRawBytes())}}M.BASE=new M(e.Gx,e.Gy,Vr,p(e.Gx*e.Gy)),M.ZERO=new M(es,Vr,Vr,es);const{BASE:$,ZERO:D}=M,R=CM(M,u*8);function z(T){return Jn(T,r)}function G(T){return z(Sg(T))}function j(T){const S=n.BYTES;T=ma("private key",T,S);const k=ma("hashed private key",s(T),2*S),F=y(k.slice(0,S)),P=k.slice(S,2*S),w=G(F),B=$.multiply(w),Z=B.toRawBytes();return{head:F,prefix:P,scalar:w,point:B,pointBytes:Z}}function V(T){return j(T).pointBytes}function L(T=new Uint8Array,...S){const k=oS(...S);return G(s(A(k,ma("context",T),!!i)))}function v(T,S,k={}){T=ma("message",T),i&&(T=i(T));const{prefix:F,scalar:P,pointBytes:w}=j(S),B=L(k.context,F,T),Z=$.multiply(B).toRawBytes(),ee=L(k.context,Z,w,T),Y=z(B+ee*P);kf("signature.s",Y,es,r);const se=oS(Z,fw(Y,n.BYTES));return ma("result",se,n.BYTES*2)}const C=NM;function N(T,S,k,F=C){const{context:P,zip215:w}=F,B=n.BYTES;T=ma("signature",T,2*B),S=ma("message",S),k=ma("publicKey",k,B),w!==void 0&&Sv("zip215",w),i&&(S=i(S));const Z=Sg(T.slice(B,2*B));let ee,Y,se;try{ee=M.fromHex(k,w),Y=M.fromHex(T.slice(0,B),w),se=$.multiplyUnsafe(Z)}catch{return!1}if(!w&&ee.isSmallOrder())return!1;const ce=L(P,Y.toRawBytes(),ee.toRawBytes(),S);return Y.add(ee.multiplyUnsafe(ce)).subtract(se).clearCofactor().equals(M.ZERO)}return $._setWindowSize(8),{CURVE:e,getPublicKey:V,sign:v,verify:N,ExtendedPoint:M,utils:{getExtendedPublicKey:j,randomPrivateKey:()=>c(n.BYTES),precompute(T=8,S=M.BASE){return S._setWindowSize(T),S.multiply(BigInt(3)),S}}}}BigInt(0),BigInt(1);const KE=BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949"),hS=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752");BigInt(0);const RM=BigInt(1),pS=BigInt(2);BigInt(3);const DM=BigInt(5),PM=BigInt(8);function MM(t){const e=BigInt(10),n=BigInt(20),r=BigInt(40),i=BigInt(80),s=KE,c=t*t%s*t%s,u=Ss(c,pS,s)*c%s,f=Ss(u,RM,s)*t%s,d=Ss(f,DM,s)*f%s,p=Ss(d,e,s)*d%s,g=Ss(p,n,s)*p%s,m=Ss(g,r,s)*g%s,y=Ss(m,i,s)*m%s,A=Ss(y,i,s)*m%s,E=Ss(A,e,s)*d%s;return{pow_p_5_8:Ss(E,pS,s)*t%s,b2:c}}function kM(t){return t[0]&=248,t[31]&=127,t[31]|=64,t}function UM(t,e){const n=KE,r=Jn(e*e*e,n),i=Jn(r*r*e,n),s=MM(t*i).pow_p_5_8;let c=Jn(t*r*s,n);const u=Jn(e*c*c,n),f=c,d=Jn(c*hS,n),p=u===t,g=u===Jn(-t,n),m=u===Jn(-t*hS,n);return p&&(c=f),(g||m)&&(c=d),bM(c,n)&&(c=Jn(-c,n)),{isValid:p||g,value:c}}const BM=cT(KE,void 0,!0),LM={a:BigInt(-1),d:BigInt("37095705934669439343138083508754565189542113879843219016388785533085940283555"),Fp:BM,n:BigInt("7237005577332262213973186563042994240857116359379907606001950938285454250989"),h:PM,Gx:BigInt("15112221349535400772501151409588531511454012693041857206046113283949847762202"),Gy:BigInt("46316835694926478169428394003475163141307993866256225615783033603165251855960"),hash:sM,randomBytes:tT,adjustScalarBytes:kM,uvRatio:UM},dT=OM(LM),$M="EdDSA",FM="JWT",Gg=".",Nm="base64url",fT="utf8",hT="utf8",jM=":",zM="did",qM="key",gS="base58btc",HM="z",GM="K36",VM=32;function WE(t){return globalThis.Buffer!=null?new Uint8Array(t.buffer,t.byteOffset,t.byteLength):t}function pT(t=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?WE(globalThis.Buffer.allocUnsafe(t)):new Uint8Array(t)}function gT(t,e){e||(e=t.reduce((i,s)=>i+s.length,0));const n=pT(e);let r=0;for(const i of t)n.set(i,r),r+=i.length;return WE(n)}function KM(t,e){if(t.length>=255)throw new TypeError("Alphabet too long");for(var n=new Uint8Array(256),r=0;r>>0,$=new Uint8Array(M);O!==I;){for(var D=A[O],R=0,z=M-1;(D!==0||R>>0,$[z]=D%u>>>0,D=D/u>>>0;if(D!==0)throw new Error("Non-zero carry");x=R,O++}for(var G=M-x;G!==M&&$[G]===0;)G++;for(var j=f.repeat(E);G>>0,M=new Uint8Array(I);A[E];){var $=n[A.charCodeAt(E)];if($===255)return;for(var D=0,R=I-1;($!==0||D>>0,M[R]=$%256>>>0,$=$/256>>>0;if($!==0)throw new Error("Non-zero carry");O=D,E++}if(A[E]!==" "){for(var z=I-O;z!==I&&M[z]===0;)z++;for(var G=new Uint8Array(x+(I-z)),j=x;z!==I;)G[j++]=M[z++];return G}}}function y(A){var E=m(A);if(E)return E;throw new Error(`Non-${e} character`)}return{encode:g,decodeUnsafe:m,decode:y}}var WM=KM,QM=WM;const mT=t=>{if(t instanceof Uint8Array&&t.constructor.name==="Uint8Array")return t;if(t instanceof ArrayBuffer)return new Uint8Array(t);if(ArrayBuffer.isView(t))return new Uint8Array(t.buffer,t.byteOffset,t.byteLength);throw new Error("Unknown type, must be binary type")},YM=t=>new TextEncoder().encode(t),ZM=t=>new TextDecoder().decode(t);let XM=class{constructor(e,n,r){this.name=e,this.prefix=n,this.baseEncode=r}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}},JM=class{constructor(e,n,r){if(this.name=e,this.prefix=n,n.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=n.codePointAt(0),this.baseDecode=r}decode(e){if(typeof e=="string"){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(e){return bT(this,e)}},ek=class{constructor(e){this.decoders=e}or(e){return bT(this,e)}decode(e){const n=e[0],r=this.decoders[n];if(r)return r.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}};const bT=(t,e)=>new ek({...t.decoders||{[t.prefix]:t},...e.decoders||{[e.prefix]:e}});let tk=class{constructor(e,n,r,i){this.name=e,this.prefix=n,this.baseEncode=r,this.baseDecode=i,this.encoder=new XM(e,n,r),this.decoder=new JM(e,n,i)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}};const Im=({name:t,prefix:e,encode:n,decode:r})=>new tk(t,e,n,r),mp=({prefix:t,name:e,alphabet:n})=>{const{encode:r,decode:i}=QM(n,e);return Im({prefix:t,name:e,encode:r,decode:s=>mT(i(s))})},nk=(t,e,n,r)=>{const i={};for(let p=0;p=8&&(u-=8,c[d++]=255&f>>u)}if(u>=n||255&f<<8-u)throw new SyntaxError("Unexpected end of data");return c},rk=(t,e,n)=>{const r=e[e.length-1]==="=",i=(1<n;)c-=n,s+=e[i&u>>c];if(c&&(s+=e[i&u<Im({prefix:e,name:t,encode(i){return rk(i,r,n)},decode(i){return nk(i,r,n,t)}}),ik=Im({prefix:"\0",name:"identity",encode:t=>ZM(t),decode:t=>YM(t)});var sk=Object.freeze({__proto__:null,identity:ik});const ak=Er({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1});var ok=Object.freeze({__proto__:null,base2:ak});const ck=Er({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3});var uk=Object.freeze({__proto__:null,base8:ck});const lk=mp({prefix:"9",name:"base10",alphabet:"0123456789"});var dk=Object.freeze({__proto__:null,base10:lk});const fk=Er({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),hk=Er({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4});var pk=Object.freeze({__proto__:null,base16:fk,base16upper:hk});const gk=Er({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),mk=Er({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),bk=Er({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),yk=Er({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),vk=Er({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),wk=Er({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),Ek=Er({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),Ak=Er({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),_k=Er({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});var Ck=Object.freeze({__proto__:null,base32:gk,base32upper:mk,base32pad:bk,base32padupper:yk,base32hex:vk,base32hexupper:wk,base32hexpad:Ek,base32hexpadupper:Ak,base32z:_k});const Sk=mp({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),Tk=mp({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"});var xk=Object.freeze({__proto__:null,base36:Sk,base36upper:Tk});const Nk=mp({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),Ik=mp({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});var Ok=Object.freeze({__proto__:null,base58btc:Nk,base58flickr:Ik});const Rk=Er({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),Dk=Er({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),Pk=Er({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),Mk=Er({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6});var kk=Object.freeze({__proto__:null,base64:Rk,base64pad:Dk,base64url:Pk,base64urlpad:Mk});const yT=Array.from("🚀🪐☄🛰🌌🌑🌒🌓🌔🌕🌖🌗🌘🌍🌏🌎🐉☀💻🖥💾💿😂❤😍🤣😊🙏💕😭😘👍😅👏😁🔥🥰💔💖💙😢🤔😆🙄💪😉☺👌🤗💜😔😎😇🌹🤦🎉💞✌✨🤷😱😌🌸🙌😋💗💚😏💛🙂💓🤩😄😀🖤😃💯🙈👇🎶😒🤭❣😜💋👀😪😑💥🙋😞😩😡🤪👊🥳😥🤤👉💃😳✋😚😝😴🌟😬🙃🍀🌷😻😓⭐✅🥺🌈😈🤘💦✔😣🏃💐☹🎊💘😠☝😕🌺🎂🌻😐🖕💝🙊😹🗣💫💀👑🎵🤞😛🔴😤🌼😫⚽🤙☕🏆🤫👈😮🙆🍻🍃🐶💁😲🌿🧡🎁⚡🌞🎈❌✊👋😰🤨😶🤝🚶💰🍓💢🤟🙁🚨💨🤬✈🎀🍺🤓😙💟🌱😖👶🥴▶➡❓💎💸⬇😨🌚🦋😷🕺⚠🙅😟😵👎🤲🤠🤧📌🔵💅🧐🐾🍒😗🤑🌊🤯🐷☎💧😯💆👆🎤🙇🍑❄🌴💣🐸💌📍🥀🤢👅💡💩👐📸👻🤐🤮🎼🥵🚩🍎🍊👼💍📣🥂"),Uk=yT.reduce((t,e,n)=>(t[n]=e,t),[]),Bk=yT.reduce((t,e,n)=>(t[e.codePointAt(0)]=n,t),[]);function Lk(t){return t.reduce((e,n)=>(e+=Uk[n],e),"")}function $k(t){const e=[];for(const n of t){const r=Bk[n.codePointAt(0)];if(r===void 0)throw new Error(`Non-base256emoji character: ${n}`);e.push(r)}return new Uint8Array(e)}const Fk=Im({prefix:"🚀",name:"base256emoji",encode:Lk,decode:$k});var jk=Object.freeze({__proto__:null,base256emoji:Fk}),zk=vT,mS=128,qk=-128,Hk=Math.pow(2,31);function vT(t,e,n){e=e||[],n=n||0;for(var r=n;t>=Hk;)e[n++]=t&255|mS,t/=128;for(;t&qk;)e[n++]=t&255|mS,t>>>=7;return e[n]=t|0,vT.bytes=n-r+1,e}var Gk=pw,Vk=128,bS=127;function pw(t,r){var n=0,r=r||0,i=0,s=r,c,u=t.length;do{if(s>=u)throw pw.bytes=0,new RangeError("Could not decode varint");c=t[s++],n+=i<28?(c&bS)<=Vk);return pw.bytes=s-r,n}var Kk=Math.pow(2,7),Wk=Math.pow(2,14),Qk=Math.pow(2,21),Yk=Math.pow(2,28),Zk=Math.pow(2,35),Xk=Math.pow(2,42),Jk=Math.pow(2,49),eU=Math.pow(2,56),tU=Math.pow(2,63),nU=function(t){return t(wT.encode(t,e,n),e),vS=t=>wT.encodingLength(t),gw=(t,e)=>{const n=e.byteLength,r=vS(t),i=r+vS(n),s=new Uint8Array(i+n);return yS(t,s,0),yS(n,s,r),s.set(e,i),new iU(t,n,e,s)};let iU=class{constructor(e,n,r,i){this.code=e,this.size=n,this.digest=r,this.bytes=i}};const ET=({name:t,code:e,encode:n})=>new sU(t,e,n);let sU=class{constructor(e,n,r){this.name=e,this.code=n,this.encode=r}digest(e){if(e instanceof Uint8Array){const n=this.encode(e);return n instanceof Uint8Array?gw(this.code,n):n.then(r=>gw(this.code,r))}else throw Error("Unknown type, must be binary type")}};const AT=t=>async e=>new Uint8Array(await crypto.subtle.digest(t,e)),aU=ET({name:"sha2-256",code:18,encode:AT("SHA-256")}),oU=ET({name:"sha2-512",code:19,encode:AT("SHA-512")});var cU=Object.freeze({__proto__:null,sha256:aU,sha512:oU});const _T=0,uU="identity",CT=mT,lU=t=>gw(_T,CT(t)),dU={code:_T,name:uU,encode:CT,digest:lU};var fU=Object.freeze({__proto__:null,identity:dU});new TextEncoder,new TextDecoder;const wS={...sk,...ok,...uk,...dk,...pk,...Ck,...xk,...Ok,...kk,...jk};({...cU,...fU});function ST(t,e,n,r){return{name:t,prefix:e,encoder:{name:t,prefix:e,encode:n},decoder:{decode:r}}}const ES=ST("utf8","u",t=>"u"+new TextDecoder("utf8").decode(t),t=>new TextEncoder().encode(t.substring(1))),Rv=ST("ascii","a",t=>{let e="a";for(let n=0;n{t=t.substring(1);const e=pT(t.length);for(let n=0;n"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new AU:typeof navigator<"u"?NU(navigator.userAgent):OU()}function xU(t){return t!==""&&SU.reduce(function(e,n){var r=n[0],i=n[1];if(e)return e;var s=i.exec(t);return!!s&&[r,s]},!1)}function NU(t){var e=xU(t);if(!e)return null;var n=e[0],r=e[1];if(n==="searchbot")return new EU;var i=r[1]&&r[1].split(".").join("_").split("_").slice(0,3);i?i.length-1){const I=x.getAttribute("href");if(I)if(I.toLowerCase().indexOf("https:")===-1&&I.toLowerCase().indexOf("http:")===-1&&I.indexOf("//")!==0){let M=r.protocol+"//"+r.host;if(I.indexOf("/")===0)M+=I;else{const $=r.pathname.split("/");$.pop();const D=$.join("/");M+=D+"/"+I}A.push(M)}else if(I.indexOf("//")===0){const M=r.protocol+I;A.push(M)}else A.push(I)}}return A}function s(...y){const A=n.getElementsByTagName("meta");for(let E=0;Ex.getAttribute(I)).filter(I=>I?y.includes(I):!1);if(O.length&&O){const I=x.getAttribute("content");if(I)return I}}return""}function c(){let y=s("name","og:site_name","og:title","twitter:title");return y||(y=n.title),y}function u(){return s("description","og:description","twitter:description","keywords")}const f=c(),d=u(),p=r.origin,g=i();return{description:d,url:p,icons:g,name:f}}return Uf.getWindowMetadata=e,Uf}var PU=DU();const MU="1.0.8";let qi=class bw extends Error{constructor(e,n={}){var c;const r=n.cause instanceof bw?n.cause.details:(c=n.cause)!=null&&c.message?n.cause.message:n.details,i=n.cause instanceof bw&&n.cause.docsPath||n.docsPath,s=[e||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...i?[`Docs: https://abitype.dev${i}`]:[],...r?[`Details: ${r}`]:[],`Version: abitype@${MU}`].join(` +`);super(s),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiTypeError"}),n.cause&&(this.cause=n.cause),this.details=r,this.docsPath=i,this.metaMessages=n.metaMessages,this.shortMessage=e}};function $a(t,e){const n=t.exec(e);return n==null?void 0:n.groups}const IT=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,OT=/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,RT=/^\(.+?\).*?$/,IS=/^tuple(?(\[(\d*)\])*)$/;function yw(t){let e=t.type;if(IS.test(t.type)&&"components"in t){e="(";const n=t.components.length;for(let i=0;i[a-zA-Z$_][a-zA-Z0-9$_]*)\((?.*?)\)$/;function UU(t){return DT.test(t)}function BU(t){return $a(DT,t)}const PT=/^event (?[a-zA-Z$_][a-zA-Z0-9$_]*)\((?.*?)\)$/;function LU(t){return PT.test(t)}function $U(t){return $a(PT,t)}const MT=/^function (?[a-zA-Z$_][a-zA-Z0-9$_]*)\((?.*?)\)(?: (?external|public{1}))?(?: (?pure|view|nonpayable|payable{1}))?(?: returns\s?\((?.*?)\))?$/;function FU(t){return MT.test(t)}function jU(t){return $a(MT,t)}const kT=/^struct (?[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?.*?)\}$/;function UT(t){return kT.test(t)}function zU(t){return $a(kT,t)}const BT=/^constructor\((?.*?)\)(?:\s(?payable{1}))?$/;function qU(t){return BT.test(t)}function HU(t){return $a(BT,t)}const LT=/^fallback\(\) external(?:\s(?payable{1}))?$/;function GU(t){return LT.test(t)}function VU(t){return $a(LT,t)}const KU=/^receive\(\) external payable$/;function WU(t){return KU.test(t)}const QU=new Set(["indexed"]),vw=new Set(["calldata","memory","storage"]);class YU extends qi{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownTypeError"})}}class ZU extends qi{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}}class XU extends qi{constructor({param:e}){super("Invalid ABI parameter.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}class JU extends qi{constructor({param:e,name:n}){super("Invalid ABI parameter.",{details:e,metaMessages:[`"${n}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SolidityProtectedKeywordError"})}}class eB extends qi{constructor({param:e,type:n,modifier:r}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${r}" not allowed${n?` in "${n}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}class tB extends qi{constructor({param:e,type:n,modifier:r}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${r}" not allowed${n?` in "${n}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${r}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}class nB extends qi{constructor({abiParameter:e}){super("Invalid ABI parameter.",{details:JSON.stringify(e,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}class wd extends qi{constructor({signature:e,type:n}){super(`Invalid ${n} signature.`,{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}class rB extends qi{constructor({signature:e}){super("Unknown signature.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}class iB extends qi{constructor({signature:e}){super("Invalid struct signature.",{details:e,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}}class sB extends qi{constructor({type:e}){super("Circular reference detected.",{metaMessages:[`Struct "${e}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}}class aB extends qi{constructor({current:e,depth:n}){super("Unbalanced parentheses.",{metaMessages:[`"${e.trim()}" has too many ${n>0?"opening":"closing"} parentheses.`],details:`Depth "${n}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}}function oB(t,e,n){let r="";if(n)for(const i of Object.entries(n)){if(!i)continue;let s="";for(const c of i[1])s+=`[${c.type}${c.name?`:${c.name}`:""}]`;r+=`(${i[0]}{${s}})`}return e?`${e}:${t}${r}`:t}const Dv=new Map([["address",{type:"address"}],["bool",{type:"bool"}],["bytes",{type:"bytes"}],["bytes32",{type:"bytes32"}],["int",{type:"int256"}],["int256",{type:"int256"}],["string",{type:"string"}],["uint",{type:"uint256"}],["uint8",{type:"uint8"}],["uint16",{type:"uint16"}],["uint24",{type:"uint24"}],["uint32",{type:"uint32"}],["uint64",{type:"uint64"}],["uint96",{type:"uint96"}],["uint112",{type:"uint112"}],["uint160",{type:"uint160"}],["uint192",{type:"uint192"}],["uint256",{type:"uint256"}],["address owner",{type:"address",name:"owner"}],["address to",{type:"address",name:"to"}],["bool approved",{type:"bool",name:"approved"}],["bytes _data",{type:"bytes",name:"_data"}],["bytes data",{type:"bytes",name:"data"}],["bytes signature",{type:"bytes",name:"signature"}],["bytes32 hash",{type:"bytes32",name:"hash"}],["bytes32 r",{type:"bytes32",name:"r"}],["bytes32 root",{type:"bytes32",name:"root"}],["bytes32 s",{type:"bytes32",name:"s"}],["string name",{type:"string",name:"name"}],["string symbol",{type:"string",name:"symbol"}],["string tokenURI",{type:"string",name:"tokenURI"}],["uint tokenId",{type:"uint256",name:"tokenId"}],["uint8 v",{type:"uint8",name:"v"}],["uint256 balance",{type:"uint256",name:"balance"}],["uint256 tokenId",{type:"uint256",name:"tokenId"}],["uint256 value",{type:"uint256",name:"value"}],["event:address indexed from",{type:"address",name:"from",indexed:!0}],["event:address indexed to",{type:"address",name:"to",indexed:!0}],["event:uint indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}],["event:uint256 indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}]]);function cB(t,e={}){if(FU(t))return uB(t,e);if(LU(t))return lB(t,e);if(UU(t))return dB(t,e);if(qU(t))return fB(t,e);if(GU(t))return hB(t);if(WU(t))return{type:"receive",stateMutability:"payable"};throw new rB({signature:t})}function uB(t,e={}){const n=jU(t);if(!n)throw new wd({signature:t,type:"function"});const r=us(n.parameters),i=[],s=r.length;for(let u=0;u[a-zA-Z$_][a-zA-Z0-9$_]*)(?(?:\[\d*?\])+?)?(?:\s(?calldata|indexed|memory|storage{1}))?(?:\s(?[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,gB=/^\((?.+?)\)(?(?:\[\d*?\])+?)?(?:\s(?calldata|indexed|memory|storage{1}))?(?:\s(?[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,mB=/^u?int$/;function eu(t,e){var g,m;const n=oB(t,e==null?void 0:e.type,e==null?void 0:e.structs);if(Dv.has(n))return Dv.get(n);const r=RT.test(t),i=$a(r?gB:pB,t);if(!i)throw new XU({param:t});if(i.name&&yB(i.name))throw new JU({param:t,name:i.name});const s=i.name?{name:i.name}:{},c=i.modifier==="indexed"?{indexed:!0}:{},u=(e==null?void 0:e.structs)??{};let f,d={};if(r){f="tuple";const y=us(i.type),A=[],E=y.length;for(let x=0;x[a-zA-Z$_][a-zA-Z0-9$_]*)(?(?:\[\d*?\])+?)?$/;function FT(t,e,n=new Set){const r=[],i=t.length;for(let s=0;se?`${t??"https://viem.sh"}${e}${n?`#${n}`:""}`:void 0,version:`viem@${zT}`},Rm=class ww extends Error{constructor(e,n={}){var u;const r=(()=>{var f;return n.cause instanceof ww?n.cause.details:(f=n.cause)!=null&&f.message?n.cause.message:n.details})(),i=n.cause instanceof ww&&n.cause.docsPath||n.docsPath,s=(u=Lf.getDocsUrl)==null?void 0:u.call(Lf,{...n,docsPath:i}),c=[e||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...s?[`Docs: ${s}`]:[],...r?[`Details: ${r}`]:[],...Lf.version?[`Version: ${Lf.version}`]:[]].join(` +`);super(c,n.cause?{cause:n.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.details=r,this.docsPath=i,this.metaMessages=n.metaMessages,this.name=n.name??this.name,this.shortMessage=e,this.version=zT}walk(e){return qT(this,e)}};function qT(t,e){return e!=null&&e(t)?t:t&&typeof t=="object"&&"cause"in t&&t.cause!==void 0?qT(t.cause,e):e?null:t}let HT=class extends Rm{constructor({size:e,targetSize:n,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (${e}) exceeds padding size (${n}).`,{name:"SizeExceedsPaddingSizeError"})}};function Ed(t,{dir:e,size:n=32}={}){return typeof t=="string"?AB(t,{dir:e,size:n}):_B(t,{dir:e,size:n})}function AB(t,{dir:e,size:n=32}={}){if(n===null)return t;const r=t.replace("0x","");if(r.length>n*2)throw new HT({size:Math.ceil(r.length/2),targetSize:n,type:"hex"});return`0x${r[e==="right"?"padEnd":"padStart"](n*2,"0")}`}function _B(t,{dir:e,size:n=32}={}){if(n===null)return t;if(t.length>n)throw new HT({size:t.length,targetSize:n,type:"bytes"});const r=new Uint8Array(n);for(let i=0;ie)throw new SB({givenSize:OS(t),maxSize:e})}function Ew(t,e={}){const{signed:n}=e;e.size&&Ad(t,{size:e.size});const r=BigInt(t);if(!n)return r;const i=(t.length-2)/2,s=(1n<e.toString(16).padStart(2,"0"));function Aw(t,e={}){return typeof t=="number"||typeof t=="bigint"?VT(t,e):typeof t=="string"?OB(t,e):typeof t=="boolean"?NB(t,e):GT(t,e)}function NB(t,e={}){const n=`0x${Number(t)}`;return typeof e.size=="number"?(Ad(n,{size:e.size}),Ed(n,{size:e.size})):n}function GT(t,e={}){let n="";for(let i=0;is||i=ba.zero&&t<=ba.nine)return t-ba.zero;if(t>=ba.A&&t<=ba.F)return t-(ba.A-10);if(t>=ba.a&&t<=ba.f)return t-(ba.a-10)}function KT(t,e={}){let n=t;e.size&&(Ad(n,{size:e.size}),n=Ed(n,{dir:"right",size:e.size}));let r=n.slice(2);r.length%2&&(r=`0${r}`);const i=r.length/2,s=new Uint8Array(i);for(let c=0,u=0;c0&&!e.includes(t.length))throw new Error("Uint8Array expected of length "+e+", got length="+t.length)}function dse(t){if(typeof t!="function"||typeof t.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");Kg(t.outputLen),Kg(t.blockLen)}function Wg(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function QT(t,e){bp(t);const n=e.outputLen;if(t.length>DS&tg)}:{h:Number(t>>DS&tg)|0,l:Number(t&tg)|0}}function BB(t,e=!1){let n=new Uint32Array(t.length),r=new Uint32Array(t.length);for(let i=0;it<>>32-n,$B=(t,e,n)=>e<>>32-n,FB=(t,e,n)=>e<>>64-n,jB=(t,e,n)=>t<>>64-n,cl=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */function zB(t){return new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4))}function Pv(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function Ts(t,e){return t<<32-e|t>>>e}const PS=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function qB(t){return t<<24&4278190080|t<<8&16711680|t>>>8&65280|t>>>24&255}function MS(t){for(let e=0;ee.toString(16).padStart(2,"0"));function fse(t){bp(t);let e="";for(let n=0;nt().update(QE(r)).digest(),n=t();return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=()=>t(),e}function pse(t=32){if(cl&&typeof cl.getRandomValues=="function")return cl.getRandomValues(new Uint8Array(t));if(cl&&typeof cl.randomBytes=="function")return cl.randomBytes(t);throw new Error("crypto.getRandomValues must be defined")}const XT=[],JT=[],ex=[],VB=BigInt(0),$f=BigInt(1),KB=BigInt(2),WB=BigInt(7),QB=BigInt(256),YB=BigInt(113);for(let t=0,e=$f,n=1,r=0;t<24;t++){[n,r]=[r,(2*n+3*r)%5],XT.push(2*(5*r+n)),JT.push((t+1)*(t+2)/2%64);let i=VB;for(let s=0;s<7;s++)e=(e<<$f^(e>>WB)*YB)%QB,e&KB&&(i^=$f<<($f<n>32?FB(t,e,n):LB(t,e,n),US=(t,e,n)=>n>32?jB(t,e,n):$B(t,e,n);function JB(t,e=24){const n=new Uint32Array(10);for(let r=24-e;r<24;r++){for(let c=0;c<10;c++)n[c]=t[c]^t[c+10]^t[c+20]^t[c+30]^t[c+40];for(let c=0;c<10;c+=2){const u=(c+8)%10,f=(c+2)%10,d=n[f],p=n[f+1],g=kS(d,p,1)^n[u],m=US(d,p,1)^n[u+1];for(let y=0;y<50;y+=10)t[c+y]^=g,t[c+y+1]^=m}let i=t[2],s=t[3];for(let c=0;c<24;c++){const u=JT[c],f=kS(i,s,u),d=US(i,s,u),p=XT[c];i=t[p],s=t[p+1],t[p]=f,t[p+1]=d}for(let c=0;c<50;c+=10){for(let u=0;u<10;u++)n[u]=t[c+u];for(let u=0;u<10;u++)t[c+u]^=~n[(u+2)%10]&n[(u+4)%10]}t[0]^=ZB[r],t[1]^=XB[r]}n.fill(0)}class YE extends YT{constructor(e,n,r,i=!1,s=24){if(super(),this.blockLen=e,this.suffix=n,this.outputLen=r,this.enableXOF=i,this.rounds=s,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,Kg(r),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=zB(this.state)}keccak(){PS||MS(this.state32),JB(this.state32,this.rounds),PS||MS(this.state32),this.posOut=0,this.pos=0}update(e){Wg(this);const{blockLen:n,state:r}=this;e=QE(e);const i=e.length;for(let s=0;s=r&&this.keccak();const c=Math.min(r-this.posOut,s-i);e.set(n.subarray(this.posOut,this.posOut+c),i),this.posOut+=c,i+=c}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return Kg(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(QT(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){const{blockLen:n,suffix:r,outputLen:i,rounds:s,enableXOF:c}=this;return e||(e=new YE(n,r,i,c,s)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=s,e.suffix=r,e.outputLen=i,e.enableXOF=c,e.destroyed=this.destroyed,e}}const eL=(t,e,n)=>ZT(()=>new YE(e,t,n)),tx=eL(1,136,256/8);function nx(t,e){const n=e||"hex",r=tx(wh(t,{strict:!1})?DB(t):t);return n==="bytes"?r:Aw(r)}let tL=class extends Map{constructor(e){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}get(e){const n=super.get(e);return super.has(e)&&n!==void 0&&(this.delete(e),super.set(e,n)),n}set(e,n){if(super.set(e,n),this.maxSize&&this.size>this.maxSize){const r=this.keys().next().value;r&&this.delete(r)}return this}};const Mv=new tL(8192);function nL(t,e){if(Mv.has(`${t}.${e}`))return Mv.get(`${t}.${e}`);const n=t.substring(2).toLowerCase(),r=nx(WT(n),"bytes"),i=n.split("");for(let c=0;c<40;c+=2)r[c>>1]>>4>=8&&i[c]&&(i[c]=i[c].toUpperCase()),(r[c>>1]&15)>=8&&i[c+1]&&(i[c+1]=i[c+1].toUpperCase());const s=`0x${i.join("")}`;return Mv.set(`${t}.${e}`,s),s}function rL(t){const e=nx(`0x${t.substring(4)}`).substring(26);return nL(`0x${e}`)}const iL="modulepreload",sL=function(t){return"/"+t},BS={},ei=function(e,n,r){let i=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),u=(c==null?void 0:c.nonce)||(c==null?void 0:c.getAttribute("nonce"));i=Promise.allSettled(n.map(f=>{if(f=sL(f),f in BS)return;BS[f]=!0;const d=f.endsWith(".css"),p=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${p}`))return;const g=document.createElement("link");if(g.rel=d?"stylesheet":iL,d||(g.as="script"),g.crossOrigin="",g.href=f,u&&g.setAttribute("nonce",u),document.head.appendChild(g),d)return new Promise((m,y)=>{g.addEventListener("load",m),g.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${f}`)))})}))}function s(c){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=c,window.dispatchEvent(u),!u.defaultPrevented)throw c}return i.then(c=>{for(const u of c||[])u.status==="rejected"&&s(u.reason);return e().catch(s)})};async function aL({hash:t,signature:e}){const n=wh(t)?t:Aw(t),{secp256k1:r}=await ei(async()=>{const{secp256k1:c}=await import("./secp256k1-C-C-k1yE.js");return{secp256k1:c}},[]);return`0x${(()=>{if(typeof e=="object"&&"r"in e&&"s"in e){const{r:d,s:p,v:g,yParity:m}=e,y=Number(m??g),A=LS(y);return new r.Signature(Ew(d),Ew(p)).addRecoveryBit(A)}const c=wh(e)?e:Aw(e),u=TB(`0x${c.slice(130)}`),f=LS(u);return r.Signature.fromCompact(c.substring(2,130)).addRecoveryBit(f)})().recoverPublicKey(n.substring(2)).toHex(!1)}`}function LS(t){if(t===0||t===1)return t;if(t===27)return 0;if(t===28)return 1;throw new Error("Invalid yParityOrV value")}async function oL({hash:t,signature:e}){return rL(await aL({hash:t,signature:e}))}function cL(t,e,n,r){if(typeof t.setBigUint64=="function")return t.setBigUint64(e,n,r);const i=BigInt(32),s=BigInt(4294967295),c=Number(n>>i&s),u=Number(n&s),f=r?4:0,d=r?0:4;t.setUint32(e+f,c,r),t.setUint32(e+d,u,r)}function uL(t,e,n){return t&e^~t&n}function lL(t,e,n){return t&e^t&n^e&n}class dL extends YT{constructor(e,n,r,i){super(),this.blockLen=e,this.outputLen=n,this.padOffset=r,this.isLE=i,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=Pv(this.buffer)}update(e){Wg(this);const{view:n,buffer:r,blockLen:i}=this;e=QE(e);const s=e.length;for(let c=0;ci-c&&(this.process(r,0),c=0);for(let g=c;gp.length)throw new Error("_sha2: outputLen bigger than state");for(let g=0;g>>3,E=Ts(y,17)^Ts(y,19)^y>>>10;go[g]=E+go[g-7]+A+go[g-16]|0}let{A:r,B:i,C:s,D:c,E:u,F:f,G:d,H:p}=this;for(let g=0;g<64;g++){const m=Ts(u,6)^Ts(u,11)^Ts(u,25),y=p+m+uL(u,f,d)+fL[g]+go[g]|0,E=(Ts(r,2)^Ts(r,13)^Ts(r,22))+lL(r,i,s)|0;p=d,d=f,f=u,u=c+y|0,c=s,s=i,i=r,r=y+E|0}r=r+this.A|0,i=i+this.B|0,s=s+this.C|0,c=c+this.D|0,u=u+this.E|0,f=f+this.F|0,d=d+this.G|0,p=p+this.H|0,this.set(r,i,s,c,u,f,d,p)}roundClean(){go.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const pL=ZT(()=>new hL);function gL(t){if(t.length>=255)throw new TypeError("Alphabet too long");const e=new Uint8Array(256);for(let d=0;d>>0,E=new Uint8Array(A);for(;m!==y;){let I=d[m],M=0;for(let $=A-1;(I!==0||M>>0,E[$]=I%n>>>0,I=I/n>>>0;if(I!==0)throw new Error("Non-zero carry");g=M,m++}let x=A-g;for(;x!==A&&E[x]===0;)x++;let O=r.repeat(p);for(;x>>0,A=new Uint8Array(y);for(;p255)return;let M=e[I];if(M===255)return;let $=0;for(let D=y-1;(M!==0||$>>0,A[D]=M%256>>>0,M=M/256>>>0;if(M!==0)throw new Error("Non-zero carry");m=$,p++}let E=y-m;for(;E!==y&&A[E]===0;)E++;const x=new Uint8Array(g+(y-E));let O=g;for(;E!==y;)x[O++]=A[E++];return x}function f(d){const p=u(d);if(p)return p;throw new Error("Non-base"+n+" character")}return{encode:c,decodeUnsafe:u,decode:f}}var mL="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";const rx=gL(mL);function ix(t=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?globalThis.Buffer.allocUnsafe(t):new Uint8Array(t)}function kv(t,e){e||(e=t.reduce((i,s)=>i+s.length,0));const n=ix(e);let r=0;for(const i of t)n.set(i,r),r+=i.length;return n}function bL(t,e){if(t.length>=255)throw new TypeError("Alphabet too long");for(var n=new Uint8Array(256),r=0;r>>0,$=new Uint8Array(M);O!==I;){for(var D=A[O],R=0,z=M-1;(D!==0||R>>0,$[z]=D%u>>>0,D=D/u>>>0;if(D!==0)throw new Error("Non-zero carry");x=R,O++}for(var G=M-x;G!==M&&$[G]===0;)G++;for(var j=f.repeat(E);G>>0,M=new Uint8Array(I);A[E];){var $=n[A.charCodeAt(E)];if($===255)return;for(var D=0,R=I-1;($!==0||D>>0,M[R]=$%256>>>0,$=$/256>>>0;if($!==0)throw new Error("Non-zero carry");O=D,E++}if(A[E]!==" "){for(var z=I-O;z!==I&&M[z]===0;)z++;for(var G=new Uint8Array(x+(I-z)),j=x;z!==I;)G[j++]=M[z++];return G}}}function y(A){var E=m(A);if(E)return E;throw new Error(`Non-${e} character`)}return{encode:g,decodeUnsafe:m,decode:y}}var yL=bL,vL=yL;const wL=t=>{if(t instanceof Uint8Array&&t.constructor.name==="Uint8Array")return t;if(t instanceof ArrayBuffer)return new Uint8Array(t);if(ArrayBuffer.isView(t))return new Uint8Array(t.buffer,t.byteOffset,t.byteLength);throw new Error("Unknown type, must be binary type")},EL=t=>new TextEncoder().encode(t),AL=t=>new TextDecoder().decode(t);class _L{constructor(e,n,r){this.name=e,this.prefix=n,this.baseEncode=r}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}}class CL{constructor(e,n,r){if(this.name=e,this.prefix=n,n.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=n.codePointAt(0),this.baseDecode=r}decode(e){if(typeof e=="string"){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(e){return sx(this,e)}}class SL{constructor(e){this.decoders=e}or(e){return sx(this,e)}decode(e){const n=e[0],r=this.decoders[n];if(r)return r.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const sx=(t,e)=>new SL({...t.decoders||{[t.prefix]:t},...e.decoders||{[e.prefix]:e}});class TL{constructor(e,n,r,i){this.name=e,this.prefix=n,this.baseEncode=r,this.baseDecode=i,this.encoder=new _L(e,n,r),this.decoder=new CL(e,n,i)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}}const Dm=({name:t,prefix:e,encode:n,decode:r})=>new TL(t,e,n,r),yp=({prefix:t,name:e,alphabet:n})=>{const{encode:r,decode:i}=vL(n,e);return Dm({prefix:t,name:e,encode:r,decode:s=>wL(i(s))})},xL=(t,e,n,r)=>{const i={};for(let p=0;p=8&&(u-=8,c[d++]=255&f>>u)}if(u>=n||255&f<<8-u)throw new SyntaxError("Unexpected end of data");return c},NL=(t,e,n)=>{const r=e[e.length-1]==="=",i=(1<n;)c-=n,s+=e[i&u>>c];if(c&&(s+=e[i&u<Dm({prefix:e,name:t,encode(i){return NL(i,r,n)},decode(i){return xL(i,r,n,t)}}),IL=Dm({prefix:"\0",name:"identity",encode:t=>AL(t),decode:t=>EL(t)}),OL=Object.freeze(Object.defineProperty({__proto__:null,identity:IL},Symbol.toStringTag,{value:"Module"})),RL=Ar({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),DL=Object.freeze(Object.defineProperty({__proto__:null,base2:RL},Symbol.toStringTag,{value:"Module"})),PL=Ar({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),ML=Object.freeze(Object.defineProperty({__proto__:null,base8:PL},Symbol.toStringTag,{value:"Module"})),kL=yp({prefix:"9",name:"base10",alphabet:"0123456789"}),UL=Object.freeze(Object.defineProperty({__proto__:null,base10:kL},Symbol.toStringTag,{value:"Module"})),BL=Ar({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),LL=Ar({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4}),$L=Object.freeze(Object.defineProperty({__proto__:null,base16:BL,base16upper:LL},Symbol.toStringTag,{value:"Module"})),FL=Ar({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),jL=Ar({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),zL=Ar({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),qL=Ar({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),HL=Ar({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),GL=Ar({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),VL=Ar({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),KL=Ar({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),WL=Ar({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),QL=Object.freeze(Object.defineProperty({__proto__:null,base32:FL,base32hex:HL,base32hexpad:VL,base32hexpadupper:KL,base32hexupper:GL,base32pad:zL,base32padupper:qL,base32upper:jL,base32z:WL},Symbol.toStringTag,{value:"Module"})),YL=yp({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),ZL=yp({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"}),XL=Object.freeze(Object.defineProperty({__proto__:null,base36:YL,base36upper:ZL},Symbol.toStringTag,{value:"Module"})),JL=yp({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),e$=yp({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}),t$=Object.freeze(Object.defineProperty({__proto__:null,base58btc:JL,base58flickr:e$},Symbol.toStringTag,{value:"Module"})),n$=Ar({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),r$=Ar({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),i$=Ar({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),s$=Ar({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}),a$=Object.freeze(Object.defineProperty({__proto__:null,base64:n$,base64pad:r$,base64url:i$,base64urlpad:s$},Symbol.toStringTag,{value:"Module"})),ax=Array.from("🚀🪐☄🛰🌌🌑🌒🌓🌔🌕🌖🌗🌘🌍🌏🌎🐉☀💻🖥💾💿😂❤😍🤣😊🙏💕😭😘👍😅👏😁🔥🥰💔💖💙😢🤔😆🙄💪😉☺👌🤗💜😔😎😇🌹🤦🎉💞✌✨🤷😱😌🌸🙌😋💗💚😏💛🙂💓🤩😄😀🖤😃💯🙈👇🎶😒🤭❣😜💋👀😪😑💥🙋😞😩😡🤪👊🥳😥🤤👉💃😳✋😚😝😴🌟😬🙃🍀🌷😻😓⭐✅🥺🌈😈🤘💦✔😣🏃💐☹🎊💘😠☝😕🌺🎂🌻😐🖕💝🙊😹🗣💫💀👑🎵🤞😛🔴😤🌼😫⚽🤙☕🏆🤫👈😮🙆🍻🍃🐶💁😲🌿🧡🎁⚡🌞🎈❌✊👋😰🤨😶🤝🚶💰🍓💢🤟🙁🚨💨🤬✈🎀🍺🤓😙💟🌱😖👶🥴▶➡❓💎💸⬇😨🌚🦋😷🕺⚠🙅😟😵👎🤲🤠🤧📌🔵💅🧐🐾🍒😗🤑🌊🤯🐷☎💧😯💆👆🎤🙇🍑❄🌴💣🐸💌📍🥀🤢👅💡💩👐📸👻🤐🤮🎼🥵🚩🍎🍊👼💍📣🥂"),o$=ax.reduce((t,e,n)=>(t[n]=e,t),[]),c$=ax.reduce((t,e,n)=>(t[e.codePointAt(0)]=n,t),[]);function u$(t){return t.reduce((e,n)=>(e+=o$[n],e),"")}function l$(t){const e=[];for(const n of t){const r=c$[n.codePointAt(0)];if(r===void 0)throw new Error(`Non-base256emoji character: ${n}`);e.push(r)}return new Uint8Array(e)}const d$=Dm({prefix:"🚀",name:"base256emoji",encode:u$,decode:l$}),f$=Object.freeze(Object.defineProperty({__proto__:null,base256emoji:d$},Symbol.toStringTag,{value:"Module"}));new TextEncoder;new TextDecoder;const $S={...OL,...DL,...ML,...UL,...$L,...QL,...XL,...t$,...a$,...f$};function ox(t,e,n,r){return{name:t,prefix:e,encoder:{name:t,prefix:e,encode:n},decoder:{decode:r}}}const FS=ox("utf8","u",t=>"u"+new TextDecoder("utf8").decode(t),t=>new TextEncoder().encode(t.substring(1))),Uv=ox("ascii","a",t=>{let e="a";for(let n=0;n{t=t.substring(1);const e=ix(t.length);for(let n=0;n0?v:C},s.min=function(v,C){return v.cmp(C)<0?v:C},s.prototype._init=function(v,C,N){if(typeof v=="number")return this._initNumber(v,C,N);if(typeof v=="object")return this._initArray(v,C,N);C==="hex"&&(C=16),r(C===(C|0)&&C>=2&&C<=36),v=v.toString().replace(/\s+/g,"");var T=0;v[0]==="-"&&(T++,this.negative=1),T=0;T-=3)k=v[T]|v[T-1]<<8|v[T-2]<<16,this.words[S]|=k<>>26-F&67108863,F+=24,F>=26&&(F-=26,S++);else if(N==="le")for(T=0,S=0;T>>26-F&67108863,F+=24,F>=26&&(F-=26,S++);return this.strip()};function u(L,v){var C=L.charCodeAt(v);return C>=65&&C<=70?C-55:C>=97&&C<=102?C-87:C-48&15}function f(L,v,C){var N=u(L,C);return C-1>=v&&(N|=u(L,C-1)<<4),N}s.prototype._parseHex=function(v,C,N){this.length=Math.ceil((v.length-C)/6),this.words=new Array(this.length);for(var T=0;T=C;T-=2)F=f(v,C,T)<=18?(S-=18,k+=1,this.words[k]|=F>>>26):S+=8;else{var P=v.length-C;for(T=P%2===0?C+1:C;T=18?(S-=18,k+=1,this.words[k]|=F>>>26):S+=8}this.strip()};function d(L,v,C,N){for(var T=0,S=Math.min(L.length,C),k=v;k=49?T+=F-49+10:F>=17?T+=F-17+10:T+=F}return T}s.prototype._parseBase=function(v,C,N){this.words=[0],this.length=1;for(var T=0,S=1;S<=67108863;S*=C)T++;T--,S=S/C|0;for(var k=v.length-N,F=k%T,P=Math.min(k,k-F)+N,w=0,B=N;B1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},s.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?""};var p=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],g=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],m=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];s.prototype.toString=function(v,C){v=v||10,C=C|0||1;var N;if(v===16||v==="hex"){N="";for(var T=0,S=0,k=0;k>>24-T&16777215,T+=2,T>=26&&(T-=26,k--),S!==0||k!==this.length-1?N=p[6-P.length]+P+N:N=P+N}for(S!==0&&(N=S.toString(16)+N);N.length%C!==0;)N="0"+N;return this.negative!==0&&(N="-"+N),N}if(v===(v|0)&&v>=2&&v<=36){var w=g[v],B=m[v];N="";var Z=this.clone();for(Z.negative=0;!Z.isZero();){var ee=Z.modn(B).toString(v);Z=Z.idivn(B),Z.isZero()?N=ee+N:N=p[w-ee.length]+ee+N}for(this.isZero()&&(N="0"+N);N.length%C!==0;)N="0"+N;return this.negative!==0&&(N="-"+N),N}r(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var v=this.words[0];return this.length===2?v+=this.words[1]*67108864:this.length===3&&this.words[2]===1?v+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-v:v},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(v,C){return r(typeof c<"u"),this.toArrayLike(c,v,C)},s.prototype.toArray=function(v,C){return this.toArrayLike(Array,v,C)},s.prototype.toArrayLike=function(v,C,N){var T=this.byteLength(),S=N||Math.max(1,T);r(T<=S,"byte array longer than desired length"),r(S>0,"Requested array length <= 0"),this.strip();var k=C==="le",F=new v(S),P,w,B=this.clone();if(k){for(w=0;!B.isZero();w++)P=B.andln(255),B.iushrn(8),F[w]=P;for(;w=4096&&(N+=13,C>>>=13),C>=64&&(N+=7,C>>>=7),C>=8&&(N+=4,C>>>=4),C>=2&&(N+=2,C>>>=2),N+C},s.prototype._zeroBits=function(v){if(v===0)return 26;var C=v,N=0;return(C&8191)===0&&(N+=13,C>>>=13),(C&127)===0&&(N+=7,C>>>=7),(C&15)===0&&(N+=4,C>>>=4),(C&3)===0&&(N+=2,C>>>=2),(C&1)===0&&N++,N},s.prototype.bitLength=function(){var v=this.words[this.length-1],C=this._countBits(v);return(this.length-1)*26+C};function y(L){for(var v=new Array(L.bitLength()),C=0;C>>T}return v}s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var v=0,C=0;Cv.length?this.clone().ior(v):v.clone().ior(this)},s.prototype.uor=function(v){return this.length>v.length?this.clone().iuor(v):v.clone().iuor(this)},s.prototype.iuand=function(v){var C;this.length>v.length?C=v:C=this;for(var N=0;Nv.length?this.clone().iand(v):v.clone().iand(this)},s.prototype.uand=function(v){return this.length>v.length?this.clone().iuand(v):v.clone().iuand(this)},s.prototype.iuxor=function(v){var C,N;this.length>v.length?(C=this,N=v):(C=v,N=this);for(var T=0;Tv.length?this.clone().ixor(v):v.clone().ixor(this)},s.prototype.uxor=function(v){return this.length>v.length?this.clone().iuxor(v):v.clone().iuxor(this)},s.prototype.inotn=function(v){r(typeof v=="number"&&v>=0);var C=Math.ceil(v/26)|0,N=v%26;this._expand(C),N>0&&C--;for(var T=0;T0&&(this.words[T]=~this.words[T]&67108863>>26-N),this.strip()},s.prototype.notn=function(v){return this.clone().inotn(v)},s.prototype.setn=function(v,C){r(typeof v=="number"&&v>=0);var N=v/26|0,T=v%26;return this._expand(N+1),C?this.words[N]=this.words[N]|1<v.length?(N=this,T=v):(N=v,T=this);for(var S=0,k=0;k>>26;for(;S!==0&&k>>26;if(this.length=N.length,S!==0)this.words[this.length]=S,this.length++;else if(N!==this)for(;kv.length?this.clone().iadd(v):v.clone().iadd(this)},s.prototype.isub=function(v){if(v.negative!==0){v.negative=0;var C=this.iadd(v);return v.negative=1,C._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(v),this.negative=1,this._normSign();var N=this.cmp(v);if(N===0)return this.negative=0,this.length=1,this.words[0]=0,this;var T,S;N>0?(T=this,S=v):(T=v,S=this);for(var k=0,F=0;F>26,this.words[F]=C&67108863;for(;k!==0&&F>26,this.words[F]=C&67108863;if(k===0&&F>>26,Z=P&67108863,ee=Math.min(w,v.length-1),Y=Math.max(0,w-L.length+1);Y<=ee;Y++){var se=w-Y|0;T=L.words[se]|0,S=v.words[Y]|0,k=T*S+Z,B+=k/67108864|0,Z=k&67108863}C.words[w]=Z|0,P=B|0}return P!==0?C.words[w]=P|0:C.length--,C.strip()}var E=function(v,C,N){var T=v.words,S=C.words,k=N.words,F=0,P,w,B,Z=T[0]|0,ee=Z&8191,Y=Z>>>13,se=T[1]|0,ce=se&8191,we=se>>>13,_e=T[2]|0,ye=_e&8191,Ce=_e>>>13,kt=T[3]|0,tt=kt&8191,Ke=kt>>>13,jn=T[4]|0,ut=jn&8191,lt=jn>>>13,qr=T[5]|0,It=qr&8191,Ot=qr>>>13,yi=T[6]|0,xt=yi&8191,zt=yi>>>13,ms=T[7]|0,Je=ms&8191,Rt=ms>>>13,Ki=T[8]|0,qt=Ki&8191,Zt=Ki>>>13,_u=T[9]|0,dn=_u&8191,Tn=_u>>>13,Bp=S[0]|0,rn=Bp&8191,mt=Bp>>>13,Lp=S[1]|0,Ut=Lp&8191,bt=Lp>>>13,$p=S[2]|0,xn=$p&8191,Nn=$p>>>13,Zo=S[3]|0,fn=Zo&8191,Ht=Zo>>>13,Xo=S[4]|0,sn=Xo&8191,In=Xo>>>13,Od=S[5]|0,vn=Od&8191,mn=Od>>>13,za=S[6]|0,On=za&8191,wn=za>>>13,Rd=S[7]|0,En=Rd&8191,An=Rd>>>13,Fp=S[8]|0,Bt=Fp&8191,st=Fp>>>13,dr=S[9]|0,Xt=dr&8191,bn=dr>>>13;N.negative=v.negative^C.negative,N.length=19,P=Math.imul(ee,rn),w=Math.imul(ee,mt),w=w+Math.imul(Y,rn)|0,B=Math.imul(Y,mt);var Dd=(F+P|0)+((w&8191)<<13)|0;F=(B+(w>>>13)|0)+(Dd>>>26)|0,Dd&=67108863,P=Math.imul(ce,rn),w=Math.imul(ce,mt),w=w+Math.imul(we,rn)|0,B=Math.imul(we,mt),P=P+Math.imul(ee,Ut)|0,w=w+Math.imul(ee,bt)|0,w=w+Math.imul(Y,Ut)|0,B=B+Math.imul(Y,bt)|0;var Pd=(F+P|0)+((w&8191)<<13)|0;F=(B+(w>>>13)|0)+(Pd>>>26)|0,Pd&=67108863,P=Math.imul(ye,rn),w=Math.imul(ye,mt),w=w+Math.imul(Ce,rn)|0,B=Math.imul(Ce,mt),P=P+Math.imul(ce,Ut)|0,w=w+Math.imul(ce,bt)|0,w=w+Math.imul(we,Ut)|0,B=B+Math.imul(we,bt)|0,P=P+Math.imul(ee,xn)|0,w=w+Math.imul(ee,Nn)|0,w=w+Math.imul(Y,xn)|0,B=B+Math.imul(Y,Nn)|0;var Cu=(F+P|0)+((w&8191)<<13)|0;F=(B+(w>>>13)|0)+(Cu>>>26)|0,Cu&=67108863,P=Math.imul(tt,rn),w=Math.imul(tt,mt),w=w+Math.imul(Ke,rn)|0,B=Math.imul(Ke,mt),P=P+Math.imul(ye,Ut)|0,w=w+Math.imul(ye,bt)|0,w=w+Math.imul(Ce,Ut)|0,B=B+Math.imul(Ce,bt)|0,P=P+Math.imul(ce,xn)|0,w=w+Math.imul(ce,Nn)|0,w=w+Math.imul(we,xn)|0,B=B+Math.imul(we,Nn)|0,P=P+Math.imul(ee,fn)|0,w=w+Math.imul(ee,Ht)|0,w=w+Math.imul(Y,fn)|0,B=B+Math.imul(Y,Ht)|0;var Zs=(F+P|0)+((w&8191)<<13)|0;F=(B+(w>>>13)|0)+(Zs>>>26)|0,Zs&=67108863,P=Math.imul(ut,rn),w=Math.imul(ut,mt),w=w+Math.imul(lt,rn)|0,B=Math.imul(lt,mt),P=P+Math.imul(tt,Ut)|0,w=w+Math.imul(tt,bt)|0,w=w+Math.imul(Ke,Ut)|0,B=B+Math.imul(Ke,bt)|0,P=P+Math.imul(ye,xn)|0,w=w+Math.imul(ye,Nn)|0,w=w+Math.imul(Ce,xn)|0,B=B+Math.imul(Ce,Nn)|0,P=P+Math.imul(ce,fn)|0,w=w+Math.imul(ce,Ht)|0,w=w+Math.imul(we,fn)|0,B=B+Math.imul(we,Ht)|0,P=P+Math.imul(ee,sn)|0,w=w+Math.imul(ee,In)|0,w=w+Math.imul(Y,sn)|0,B=B+Math.imul(Y,In)|0;var Jo=(F+P|0)+((w&8191)<<13)|0;F=(B+(w>>>13)|0)+(Jo>>>26)|0,Jo&=67108863,P=Math.imul(It,rn),w=Math.imul(It,mt),w=w+Math.imul(Ot,rn)|0,B=Math.imul(Ot,mt),P=P+Math.imul(ut,Ut)|0,w=w+Math.imul(ut,bt)|0,w=w+Math.imul(lt,Ut)|0,B=B+Math.imul(lt,bt)|0,P=P+Math.imul(tt,xn)|0,w=w+Math.imul(tt,Nn)|0,w=w+Math.imul(Ke,xn)|0,B=B+Math.imul(Ke,Nn)|0,P=P+Math.imul(ye,fn)|0,w=w+Math.imul(ye,Ht)|0,w=w+Math.imul(Ce,fn)|0,B=B+Math.imul(Ce,Ht)|0,P=P+Math.imul(ce,sn)|0,w=w+Math.imul(ce,In)|0,w=w+Math.imul(we,sn)|0,B=B+Math.imul(we,In)|0,P=P+Math.imul(ee,vn)|0,w=w+Math.imul(ee,mn)|0,w=w+Math.imul(Y,vn)|0,B=B+Math.imul(Y,mn)|0;var Wi=(F+P|0)+((w&8191)<<13)|0;F=(B+(w>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,P=Math.imul(xt,rn),w=Math.imul(xt,mt),w=w+Math.imul(zt,rn)|0,B=Math.imul(zt,mt),P=P+Math.imul(It,Ut)|0,w=w+Math.imul(It,bt)|0,w=w+Math.imul(Ot,Ut)|0,B=B+Math.imul(Ot,bt)|0,P=P+Math.imul(ut,xn)|0,w=w+Math.imul(ut,Nn)|0,w=w+Math.imul(lt,xn)|0,B=B+Math.imul(lt,Nn)|0,P=P+Math.imul(tt,fn)|0,w=w+Math.imul(tt,Ht)|0,w=w+Math.imul(Ke,fn)|0,B=B+Math.imul(Ke,Ht)|0,P=P+Math.imul(ye,sn)|0,w=w+Math.imul(ye,In)|0,w=w+Math.imul(Ce,sn)|0,B=B+Math.imul(Ce,In)|0,P=P+Math.imul(ce,vn)|0,w=w+Math.imul(ce,mn)|0,w=w+Math.imul(we,vn)|0,B=B+Math.imul(we,mn)|0,P=P+Math.imul(ee,On)|0,w=w+Math.imul(ee,wn)|0,w=w+Math.imul(Y,On)|0,B=B+Math.imul(Y,wn)|0;var bs=(F+P|0)+((w&8191)<<13)|0;F=(B+(w>>>13)|0)+(bs>>>26)|0,bs&=67108863,P=Math.imul(Je,rn),w=Math.imul(Je,mt),w=w+Math.imul(Rt,rn)|0,B=Math.imul(Rt,mt),P=P+Math.imul(xt,Ut)|0,w=w+Math.imul(xt,bt)|0,w=w+Math.imul(zt,Ut)|0,B=B+Math.imul(zt,bt)|0,P=P+Math.imul(It,xn)|0,w=w+Math.imul(It,Nn)|0,w=w+Math.imul(Ot,xn)|0,B=B+Math.imul(Ot,Nn)|0,P=P+Math.imul(ut,fn)|0,w=w+Math.imul(ut,Ht)|0,w=w+Math.imul(lt,fn)|0,B=B+Math.imul(lt,Ht)|0,P=P+Math.imul(tt,sn)|0,w=w+Math.imul(tt,In)|0,w=w+Math.imul(Ke,sn)|0,B=B+Math.imul(Ke,In)|0,P=P+Math.imul(ye,vn)|0,w=w+Math.imul(ye,mn)|0,w=w+Math.imul(Ce,vn)|0,B=B+Math.imul(Ce,mn)|0,P=P+Math.imul(ce,On)|0,w=w+Math.imul(ce,wn)|0,w=w+Math.imul(we,On)|0,B=B+Math.imul(we,wn)|0,P=P+Math.imul(ee,En)|0,w=w+Math.imul(ee,An)|0,w=w+Math.imul(Y,En)|0,B=B+Math.imul(Y,An)|0;var Xs=(F+P|0)+((w&8191)<<13)|0;F=(B+(w>>>13)|0)+(Xs>>>26)|0,Xs&=67108863,P=Math.imul(qt,rn),w=Math.imul(qt,mt),w=w+Math.imul(Zt,rn)|0,B=Math.imul(Zt,mt),P=P+Math.imul(Je,Ut)|0,w=w+Math.imul(Je,bt)|0,w=w+Math.imul(Rt,Ut)|0,B=B+Math.imul(Rt,bt)|0,P=P+Math.imul(xt,xn)|0,w=w+Math.imul(xt,Nn)|0,w=w+Math.imul(zt,xn)|0,B=B+Math.imul(zt,Nn)|0,P=P+Math.imul(It,fn)|0,w=w+Math.imul(It,Ht)|0,w=w+Math.imul(Ot,fn)|0,B=B+Math.imul(Ot,Ht)|0,P=P+Math.imul(ut,sn)|0,w=w+Math.imul(ut,In)|0,w=w+Math.imul(lt,sn)|0,B=B+Math.imul(lt,In)|0,P=P+Math.imul(tt,vn)|0,w=w+Math.imul(tt,mn)|0,w=w+Math.imul(Ke,vn)|0,B=B+Math.imul(Ke,mn)|0,P=P+Math.imul(ye,On)|0,w=w+Math.imul(ye,wn)|0,w=w+Math.imul(Ce,On)|0,B=B+Math.imul(Ce,wn)|0,P=P+Math.imul(ce,En)|0,w=w+Math.imul(ce,An)|0,w=w+Math.imul(we,En)|0,B=B+Math.imul(we,An)|0,P=P+Math.imul(ee,Bt)|0,w=w+Math.imul(ee,st)|0,w=w+Math.imul(Y,Bt)|0,B=B+Math.imul(Y,st)|0;var ys=(F+P|0)+((w&8191)<<13)|0;F=(B+(w>>>13)|0)+(ys>>>26)|0,ys&=67108863,P=Math.imul(dn,rn),w=Math.imul(dn,mt),w=w+Math.imul(Tn,rn)|0,B=Math.imul(Tn,mt),P=P+Math.imul(qt,Ut)|0,w=w+Math.imul(qt,bt)|0,w=w+Math.imul(Zt,Ut)|0,B=B+Math.imul(Zt,bt)|0,P=P+Math.imul(Je,xn)|0,w=w+Math.imul(Je,Nn)|0,w=w+Math.imul(Rt,xn)|0,B=B+Math.imul(Rt,Nn)|0,P=P+Math.imul(xt,fn)|0,w=w+Math.imul(xt,Ht)|0,w=w+Math.imul(zt,fn)|0,B=B+Math.imul(zt,Ht)|0,P=P+Math.imul(It,sn)|0,w=w+Math.imul(It,In)|0,w=w+Math.imul(Ot,sn)|0,B=B+Math.imul(Ot,In)|0,P=P+Math.imul(ut,vn)|0,w=w+Math.imul(ut,mn)|0,w=w+Math.imul(lt,vn)|0,B=B+Math.imul(lt,mn)|0,P=P+Math.imul(tt,On)|0,w=w+Math.imul(tt,wn)|0,w=w+Math.imul(Ke,On)|0,B=B+Math.imul(Ke,wn)|0,P=P+Math.imul(ye,En)|0,w=w+Math.imul(ye,An)|0,w=w+Math.imul(Ce,En)|0,B=B+Math.imul(Ce,An)|0,P=P+Math.imul(ce,Bt)|0,w=w+Math.imul(ce,st)|0,w=w+Math.imul(we,Bt)|0,B=B+Math.imul(we,st)|0,P=P+Math.imul(ee,Xt)|0,w=w+Math.imul(ee,bn)|0,w=w+Math.imul(Y,Xt)|0,B=B+Math.imul(Y,bn)|0;var Rn=(F+P|0)+((w&8191)<<13)|0;F=(B+(w>>>13)|0)+(Rn>>>26)|0,Rn&=67108863,P=Math.imul(dn,Ut),w=Math.imul(dn,bt),w=w+Math.imul(Tn,Ut)|0,B=Math.imul(Tn,bt),P=P+Math.imul(qt,xn)|0,w=w+Math.imul(qt,Nn)|0,w=w+Math.imul(Zt,xn)|0,B=B+Math.imul(Zt,Nn)|0,P=P+Math.imul(Je,fn)|0,w=w+Math.imul(Je,Ht)|0,w=w+Math.imul(Rt,fn)|0,B=B+Math.imul(Rt,Ht)|0,P=P+Math.imul(xt,sn)|0,w=w+Math.imul(xt,In)|0,w=w+Math.imul(zt,sn)|0,B=B+Math.imul(zt,In)|0,P=P+Math.imul(It,vn)|0,w=w+Math.imul(It,mn)|0,w=w+Math.imul(Ot,vn)|0,B=B+Math.imul(Ot,mn)|0,P=P+Math.imul(ut,On)|0,w=w+Math.imul(ut,wn)|0,w=w+Math.imul(lt,On)|0,B=B+Math.imul(lt,wn)|0,P=P+Math.imul(tt,En)|0,w=w+Math.imul(tt,An)|0,w=w+Math.imul(Ke,En)|0,B=B+Math.imul(Ke,An)|0,P=P+Math.imul(ye,Bt)|0,w=w+Math.imul(ye,st)|0,w=w+Math.imul(Ce,Bt)|0,B=B+Math.imul(Ce,st)|0,P=P+Math.imul(ce,Xt)|0,w=w+Math.imul(ce,bn)|0,w=w+Math.imul(we,Xt)|0,B=B+Math.imul(we,bn)|0;var Su=(F+P|0)+((w&8191)<<13)|0;F=(B+(w>>>13)|0)+(Su>>>26)|0,Su&=67108863,P=Math.imul(dn,xn),w=Math.imul(dn,Nn),w=w+Math.imul(Tn,xn)|0,B=Math.imul(Tn,Nn),P=P+Math.imul(qt,fn)|0,w=w+Math.imul(qt,Ht)|0,w=w+Math.imul(Zt,fn)|0,B=B+Math.imul(Zt,Ht)|0,P=P+Math.imul(Je,sn)|0,w=w+Math.imul(Je,In)|0,w=w+Math.imul(Rt,sn)|0,B=B+Math.imul(Rt,In)|0,P=P+Math.imul(xt,vn)|0,w=w+Math.imul(xt,mn)|0,w=w+Math.imul(zt,vn)|0,B=B+Math.imul(zt,mn)|0,P=P+Math.imul(It,On)|0,w=w+Math.imul(It,wn)|0,w=w+Math.imul(Ot,On)|0,B=B+Math.imul(Ot,wn)|0,P=P+Math.imul(ut,En)|0,w=w+Math.imul(ut,An)|0,w=w+Math.imul(lt,En)|0,B=B+Math.imul(lt,An)|0,P=P+Math.imul(tt,Bt)|0,w=w+Math.imul(tt,st)|0,w=w+Math.imul(Ke,Bt)|0,B=B+Math.imul(Ke,st)|0,P=P+Math.imul(ye,Xt)|0,w=w+Math.imul(ye,bn)|0,w=w+Math.imul(Ce,Xt)|0,B=B+Math.imul(Ce,bn)|0;var Tu=(F+P|0)+((w&8191)<<13)|0;F=(B+(w>>>13)|0)+(Tu>>>26)|0,Tu&=67108863,P=Math.imul(dn,fn),w=Math.imul(dn,Ht),w=w+Math.imul(Tn,fn)|0,B=Math.imul(Tn,Ht),P=P+Math.imul(qt,sn)|0,w=w+Math.imul(qt,In)|0,w=w+Math.imul(Zt,sn)|0,B=B+Math.imul(Zt,In)|0,P=P+Math.imul(Je,vn)|0,w=w+Math.imul(Je,mn)|0,w=w+Math.imul(Rt,vn)|0,B=B+Math.imul(Rt,mn)|0,P=P+Math.imul(xt,On)|0,w=w+Math.imul(xt,wn)|0,w=w+Math.imul(zt,On)|0,B=B+Math.imul(zt,wn)|0,P=P+Math.imul(It,En)|0,w=w+Math.imul(It,An)|0,w=w+Math.imul(Ot,En)|0,B=B+Math.imul(Ot,An)|0,P=P+Math.imul(ut,Bt)|0,w=w+Math.imul(ut,st)|0,w=w+Math.imul(lt,Bt)|0,B=B+Math.imul(lt,st)|0,P=P+Math.imul(tt,Xt)|0,w=w+Math.imul(tt,bn)|0,w=w+Math.imul(Ke,Xt)|0,B=B+Math.imul(Ke,bn)|0;var Qi=(F+P|0)+((w&8191)<<13)|0;F=(B+(w>>>13)|0)+(Qi>>>26)|0,Qi&=67108863,P=Math.imul(dn,sn),w=Math.imul(dn,In),w=w+Math.imul(Tn,sn)|0,B=Math.imul(Tn,In),P=P+Math.imul(qt,vn)|0,w=w+Math.imul(qt,mn)|0,w=w+Math.imul(Zt,vn)|0,B=B+Math.imul(Zt,mn)|0,P=P+Math.imul(Je,On)|0,w=w+Math.imul(Je,wn)|0,w=w+Math.imul(Rt,On)|0,B=B+Math.imul(Rt,wn)|0,P=P+Math.imul(xt,En)|0,w=w+Math.imul(xt,An)|0,w=w+Math.imul(zt,En)|0,B=B+Math.imul(zt,An)|0,P=P+Math.imul(It,Bt)|0,w=w+Math.imul(It,st)|0,w=w+Math.imul(Ot,Bt)|0,B=B+Math.imul(Ot,st)|0,P=P+Math.imul(ut,Xt)|0,w=w+Math.imul(ut,bn)|0,w=w+Math.imul(lt,Xt)|0,B=B+Math.imul(lt,bn)|0;var vs=(F+P|0)+((w&8191)<<13)|0;F=(B+(w>>>13)|0)+(vs>>>26)|0,vs&=67108863,P=Math.imul(dn,vn),w=Math.imul(dn,mn),w=w+Math.imul(Tn,vn)|0,B=Math.imul(Tn,mn),P=P+Math.imul(qt,On)|0,w=w+Math.imul(qt,wn)|0,w=w+Math.imul(Zt,On)|0,B=B+Math.imul(Zt,wn)|0,P=P+Math.imul(Je,En)|0,w=w+Math.imul(Je,An)|0,w=w+Math.imul(Rt,En)|0,B=B+Math.imul(Rt,An)|0,P=P+Math.imul(xt,Bt)|0,w=w+Math.imul(xt,st)|0,w=w+Math.imul(zt,Bt)|0,B=B+Math.imul(zt,st)|0,P=P+Math.imul(It,Xt)|0,w=w+Math.imul(It,bn)|0,w=w+Math.imul(Ot,Xt)|0,B=B+Math.imul(Ot,bn)|0;var ii=(F+P|0)+((w&8191)<<13)|0;F=(B+(w>>>13)|0)+(ii>>>26)|0,ii&=67108863,P=Math.imul(dn,On),w=Math.imul(dn,wn),w=w+Math.imul(Tn,On)|0,B=Math.imul(Tn,wn),P=P+Math.imul(qt,En)|0,w=w+Math.imul(qt,An)|0,w=w+Math.imul(Zt,En)|0,B=B+Math.imul(Zt,An)|0,P=P+Math.imul(Je,Bt)|0,w=w+Math.imul(Je,st)|0,w=w+Math.imul(Rt,Bt)|0,B=B+Math.imul(Rt,st)|0,P=P+Math.imul(xt,Xt)|0,w=w+Math.imul(xt,bn)|0,w=w+Math.imul(zt,Xt)|0,B=B+Math.imul(zt,bn)|0;var Md=(F+P|0)+((w&8191)<<13)|0;F=(B+(w>>>13)|0)+(Md>>>26)|0,Md&=67108863,P=Math.imul(dn,En),w=Math.imul(dn,An),w=w+Math.imul(Tn,En)|0,B=Math.imul(Tn,An),P=P+Math.imul(qt,Bt)|0,w=w+Math.imul(qt,st)|0,w=w+Math.imul(Zt,Bt)|0,B=B+Math.imul(Zt,st)|0,P=P+Math.imul(Je,Xt)|0,w=w+Math.imul(Je,bn)|0,w=w+Math.imul(Rt,Xt)|0,B=B+Math.imul(Rt,bn)|0;var xu=(F+P|0)+((w&8191)<<13)|0;F=(B+(w>>>13)|0)+(xu>>>26)|0,xu&=67108863,P=Math.imul(dn,Bt),w=Math.imul(dn,st),w=w+Math.imul(Tn,Bt)|0,B=Math.imul(Tn,st),P=P+Math.imul(qt,Xt)|0,w=w+Math.imul(qt,bn)|0,w=w+Math.imul(Zt,Xt)|0,B=B+Math.imul(Zt,bn)|0;var Nu=(F+P|0)+((w&8191)<<13)|0;F=(B+(w>>>13)|0)+(Nu>>>26)|0,Nu&=67108863,P=Math.imul(dn,Xt),w=Math.imul(dn,bn),w=w+Math.imul(Tn,Xt)|0,B=Math.imul(Tn,bn);var kd=(F+P|0)+((w&8191)<<13)|0;return F=(B+(w>>>13)|0)+(kd>>>26)|0,kd&=67108863,k[0]=Dd,k[1]=Pd,k[2]=Cu,k[3]=Zs,k[4]=Jo,k[5]=Wi,k[6]=bs,k[7]=Xs,k[8]=ys,k[9]=Rn,k[10]=Su,k[11]=Tu,k[12]=Qi,k[13]=vs,k[14]=ii,k[15]=Md,k[16]=xu,k[17]=Nu,k[18]=kd,F!==0&&(k[19]=F,N.length++),N};Math.imul||(E=A);function x(L,v,C){C.negative=v.negative^L.negative,C.length=L.length+v.length;for(var N=0,T=0,S=0;S>>26)|0,T+=k>>>26,k&=67108863}C.words[S]=F,N=k,k=T}return N!==0?C.words[S]=N:C.length--,C.strip()}function O(L,v,C){var N=new I;return N.mulp(L,v,C)}s.prototype.mulTo=function(v,C){var N,T=this.length+v.length;return this.length===10&&v.length===10?N=E(this,v,C):T<63?N=A(this,v,C):T<1024?N=x(this,v,C):N=O(this,v,C),N};function I(L,v){this.x=L,this.y=v}I.prototype.makeRBT=function(v){for(var C=new Array(v),N=s.prototype._countBits(v)-1,T=0;T>=1;return T},I.prototype.permute=function(v,C,N,T,S,k){for(var F=0;F>>1)S++;return 1<>>13,N[2*k+1]=S&8191,S=S>>>13;for(k=2*C;k>=26,C+=T/67108864|0,C+=S>>>26,this.words[N]=S&67108863}return C!==0&&(this.words[N]=C,this.length++),this},s.prototype.muln=function(v){return this.clone().imuln(v)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(v){var C=y(v);if(C.length===0)return new s(1);for(var N=this,T=0;T=0);var C=v%26,N=(v-C)/26,T=67108863>>>26-C<<26-C,S;if(C!==0){var k=0;for(S=0;S>>26-C}k&&(this.words[S]=k,this.length++)}if(N!==0){for(S=this.length-1;S>=0;S--)this.words[S+N]=this.words[S];for(S=0;S=0);var T;C?T=(C-C%26)/26:T=0;var S=v%26,k=Math.min((v-S)/26,this.length),F=67108863^67108863>>>S<k)for(this.length-=k,w=0;w=0&&(B!==0||w>=T);w--){var Z=this.words[w]|0;this.words[w]=B<<26-S|Z>>>S,B=Z&F}return P&&B!==0&&(P.words[P.length++]=B),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(v,C,N){return r(this.negative===0),this.iushrn(v,C,N)},s.prototype.shln=function(v){return this.clone().ishln(v)},s.prototype.ushln=function(v){return this.clone().iushln(v)},s.prototype.shrn=function(v){return this.clone().ishrn(v)},s.prototype.ushrn=function(v){return this.clone().iushrn(v)},s.prototype.testn=function(v){r(typeof v=="number"&&v>=0);var C=v%26,N=(v-C)/26,T=1<=0);var C=v%26,N=(v-C)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=N)return this;if(C!==0&&N++,this.length=Math.min(N,this.length),C!==0){var T=67108863^67108863>>>C<=67108864;C++)this.words[C]-=67108864,C===this.length-1?this.words[C+1]=1:this.words[C+1]++;return this.length=Math.max(this.length,C+1),this},s.prototype.isubn=function(v){if(r(typeof v=="number"),r(v<67108864),v<0)return this.iaddn(-v);if(this.negative!==0)return this.negative=0,this.iaddn(v),this.negative=1,this;if(this.words[0]-=v,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var C=0;C>26)-(P/67108864|0),this.words[S+N]=k&67108863}for(;S>26,this.words[S+N]=k&67108863;if(F===0)return this.strip();for(r(F===-1),F=0,S=0;S>26,this.words[S]=k&67108863;return this.negative=1,this.strip()},s.prototype._wordDiv=function(v,C){var N=this.length-v.length,T=this.clone(),S=v,k=S.words[S.length-1]|0,F=this._countBits(k);N=26-F,N!==0&&(S=S.ushln(N),T.iushln(N),k=S.words[S.length-1]|0);var P=T.length-S.length,w;if(C!=="mod"){w=new s(null),w.length=P+1,w.words=new Array(w.length);for(var B=0;B=0;ee--){var Y=(T.words[S.length+ee]|0)*67108864+(T.words[S.length+ee-1]|0);for(Y=Math.min(Y/k|0,67108863),T._ishlnsubmul(S,Y,ee);T.negative!==0;)Y--,T.negative=0,T._ishlnsubmul(S,1,ee),T.isZero()||(T.negative^=1);w&&(w.words[ee]=Y)}return w&&w.strip(),T.strip(),C!=="div"&&N!==0&&T.iushrn(N),{div:w||null,mod:T}},s.prototype.divmod=function(v,C,N){if(r(!v.isZero()),this.isZero())return{div:new s(0),mod:new s(0)};var T,S,k;return this.negative!==0&&v.negative===0?(k=this.neg().divmod(v,C),C!=="mod"&&(T=k.div.neg()),C!=="div"&&(S=k.mod.neg(),N&&S.negative!==0&&S.iadd(v)),{div:T,mod:S}):this.negative===0&&v.negative!==0?(k=this.divmod(v.neg(),C),C!=="mod"&&(T=k.div.neg()),{div:T,mod:k.mod}):(this.negative&v.negative)!==0?(k=this.neg().divmod(v.neg(),C),C!=="div"&&(S=k.mod.neg(),N&&S.negative!==0&&S.isub(v)),{div:k.div,mod:S}):v.length>this.length||this.cmp(v)<0?{div:new s(0),mod:this}:v.length===1?C==="div"?{div:this.divn(v.words[0]),mod:null}:C==="mod"?{div:null,mod:new s(this.modn(v.words[0]))}:{div:this.divn(v.words[0]),mod:new s(this.modn(v.words[0]))}:this._wordDiv(v,C)},s.prototype.div=function(v){return this.divmod(v,"div",!1).div},s.prototype.mod=function(v){return this.divmod(v,"mod",!1).mod},s.prototype.umod=function(v){return this.divmod(v,"mod",!0).mod},s.prototype.divRound=function(v){var C=this.divmod(v);if(C.mod.isZero())return C.div;var N=C.div.negative!==0?C.mod.isub(v):C.mod,T=v.ushrn(1),S=v.andln(1),k=N.cmp(T);return k<0||S===1&&k===0?C.div:C.div.negative!==0?C.div.isubn(1):C.div.iaddn(1)},s.prototype.modn=function(v){r(v<=67108863);for(var C=(1<<26)%v,N=0,T=this.length-1;T>=0;T--)N=(C*N+(this.words[T]|0))%v;return N},s.prototype.idivn=function(v){r(v<=67108863);for(var C=0,N=this.length-1;N>=0;N--){var T=(this.words[N]|0)+C*67108864;this.words[N]=T/v|0,C=T%v}return this.strip()},s.prototype.divn=function(v){return this.clone().idivn(v)},s.prototype.egcd=function(v){r(v.negative===0),r(!v.isZero());var C=this,N=v.clone();C.negative!==0?C=C.umod(v):C=C.clone();for(var T=new s(1),S=new s(0),k=new s(0),F=new s(1),P=0;C.isEven()&&N.isEven();)C.iushrn(1),N.iushrn(1),++P;for(var w=N.clone(),B=C.clone();!C.isZero();){for(var Z=0,ee=1;(C.words[0]&ee)===0&&Z<26;++Z,ee<<=1);if(Z>0)for(C.iushrn(Z);Z-- >0;)(T.isOdd()||S.isOdd())&&(T.iadd(w),S.isub(B)),T.iushrn(1),S.iushrn(1);for(var Y=0,se=1;(N.words[0]&se)===0&&Y<26;++Y,se<<=1);if(Y>0)for(N.iushrn(Y);Y-- >0;)(k.isOdd()||F.isOdd())&&(k.iadd(w),F.isub(B)),k.iushrn(1),F.iushrn(1);C.cmp(N)>=0?(C.isub(N),T.isub(k),S.isub(F)):(N.isub(C),k.isub(T),F.isub(S))}return{a:k,b:F,gcd:N.iushln(P)}},s.prototype._invmp=function(v){r(v.negative===0),r(!v.isZero());var C=this,N=v.clone();C.negative!==0?C=C.umod(v):C=C.clone();for(var T=new s(1),S=new s(0),k=N.clone();C.cmpn(1)>0&&N.cmpn(1)>0;){for(var F=0,P=1;(C.words[0]&P)===0&&F<26;++F,P<<=1);if(F>0)for(C.iushrn(F);F-- >0;)T.isOdd()&&T.iadd(k),T.iushrn(1);for(var w=0,B=1;(N.words[0]&B)===0&&w<26;++w,B<<=1);if(w>0)for(N.iushrn(w);w-- >0;)S.isOdd()&&S.iadd(k),S.iushrn(1);C.cmp(N)>=0?(C.isub(N),T.isub(S)):(N.isub(C),S.isub(T))}var Z;return C.cmpn(1)===0?Z=T:Z=S,Z.cmpn(0)<0&&Z.iadd(v),Z},s.prototype.gcd=function(v){if(this.isZero())return v.abs();if(v.isZero())return this.abs();var C=this.clone(),N=v.clone();C.negative=0,N.negative=0;for(var T=0;C.isEven()&&N.isEven();T++)C.iushrn(1),N.iushrn(1);do{for(;C.isEven();)C.iushrn(1);for(;N.isEven();)N.iushrn(1);var S=C.cmp(N);if(S<0){var k=C;C=N,N=k}else if(S===0||N.cmpn(1)===0)break;C.isub(N)}while(!0);return N.iushln(T)},s.prototype.invm=function(v){return this.egcd(v).a.umod(v)},s.prototype.isEven=function(){return(this.words[0]&1)===0},s.prototype.isOdd=function(){return(this.words[0]&1)===1},s.prototype.andln=function(v){return this.words[0]&v},s.prototype.bincn=function(v){r(typeof v=="number");var C=v%26,N=(v-C)/26,T=1<>>26,F&=67108863,this.words[k]=F}return S!==0&&(this.words[k]=S,this.length++),this},s.prototype.isZero=function(){return this.length===1&&this.words[0]===0},s.prototype.cmpn=function(v){var C=v<0;if(this.negative!==0&&!C)return-1;if(this.negative===0&&C)return 1;this.strip();var N;if(this.length>1)N=1;else{C&&(v=-v),r(v<=67108863,"Number is too big");var T=this.words[0]|0;N=T===v?0:Tv.length)return 1;if(this.length=0;N--){var T=this.words[N]|0,S=v.words[N]|0;if(T!==S){TS&&(C=1);break}}return C},s.prototype.gtn=function(v){return this.cmpn(v)===1},s.prototype.gt=function(v){return this.cmp(v)===1},s.prototype.gten=function(v){return this.cmpn(v)>=0},s.prototype.gte=function(v){return this.cmp(v)>=0},s.prototype.ltn=function(v){return this.cmpn(v)===-1},s.prototype.lt=function(v){return this.cmp(v)===-1},s.prototype.lten=function(v){return this.cmpn(v)<=0},s.prototype.lte=function(v){return this.cmp(v)<=0},s.prototype.eqn=function(v){return this.cmpn(v)===0},s.prototype.eq=function(v){return this.cmp(v)===0},s.red=function(v){return new j(v)},s.prototype.toRed=function(v){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),v.convertTo(this)._forceRed(v)},s.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(v){return this.red=v,this},s.prototype.forceRed=function(v){return r(!this.red,"Already a number in reduction context"),this._forceRed(v)},s.prototype.redAdd=function(v){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,v)},s.prototype.redIAdd=function(v){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,v)},s.prototype.redSub=function(v){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,v)},s.prototype.redISub=function(v){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,v)},s.prototype.redShl=function(v){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,v)},s.prototype.redMul=function(v){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,v),this.red.mul(this,v)},s.prototype.redIMul=function(v){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,v),this.red.imul(this,v)},s.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(v){return r(this.red&&!v.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,v)};var M={k256:null,p224:null,p192:null,p25519:null};function $(L,v){this.name=L,this.p=new s(v,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}$.prototype._tmp=function(){var v=new s(null);return v.words=new Array(Math.ceil(this.n/13)),v},$.prototype.ireduce=function(v){var C=v,N;do this.split(C,this.tmp),C=this.imulK(C),C=C.iadd(this.tmp),N=C.bitLength();while(N>this.n);var T=N0?C.isub(this.p):C.strip!==void 0?C.strip():C._strip(),C},$.prototype.split=function(v,C){v.iushrn(this.n,0,C)},$.prototype.imulK=function(v){return v.imul(this.k)};function D(){$.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(D,$),D.prototype.split=function(v,C){for(var N=4194303,T=Math.min(v.length,9),S=0;S>>22,k=F}k>>>=22,v.words[S-10]=k,k===0&&v.length>10?v.length-=10:v.length-=9},D.prototype.imulK=function(v){v.words[v.length]=0,v.words[v.length+1]=0,v.length+=2;for(var C=0,N=0;N>>=26,v.words[N]=S,C=T}return C!==0&&(v.words[v.length++]=C),v},s._prime=function(v){if(M[v])return M[v];var C;if(v==="k256")C=new D;else if(v==="p224")C=new R;else if(v==="p192")C=new z;else if(v==="p25519")C=new G;else throw new Error("Unknown prime "+v);return M[v]=C,C};function j(L){if(typeof L=="string"){var v=s._prime(L);this.m=v.p,this.prime=v}else r(L.gtn(1),"modulus must be greater than 1"),this.m=L,this.prime=null}j.prototype._verify1=function(v){r(v.negative===0,"red works only with positives"),r(v.red,"red works only with red numbers")},j.prototype._verify2=function(v,C){r((v.negative|C.negative)===0,"red works only with positives"),r(v.red&&v.red===C.red,"red works only with red numbers")},j.prototype.imod=function(v){return this.prime?this.prime.ireduce(v)._forceRed(this):v.umod(this.m)._forceRed(this)},j.prototype.neg=function(v){return v.isZero()?v.clone():this.m.sub(v)._forceRed(this)},j.prototype.add=function(v,C){this._verify2(v,C);var N=v.add(C);return N.cmp(this.m)>=0&&N.isub(this.m),N._forceRed(this)},j.prototype.iadd=function(v,C){this._verify2(v,C);var N=v.iadd(C);return N.cmp(this.m)>=0&&N.isub(this.m),N},j.prototype.sub=function(v,C){this._verify2(v,C);var N=v.sub(C);return N.cmpn(0)<0&&N.iadd(this.m),N._forceRed(this)},j.prototype.isub=function(v,C){this._verify2(v,C);var N=v.isub(C);return N.cmpn(0)<0&&N.iadd(this.m),N},j.prototype.shl=function(v,C){return this._verify1(v),this.imod(v.ushln(C))},j.prototype.imul=function(v,C){return this._verify2(v,C),this.imod(v.imul(C))},j.prototype.mul=function(v,C){return this._verify2(v,C),this.imod(v.mul(C))},j.prototype.isqr=function(v){return this.imul(v,v.clone())},j.prototype.sqr=function(v){return this.mul(v,v)},j.prototype.sqrt=function(v){if(v.isZero())return v.clone();var C=this.m.andln(3);if(r(C%2===1),C===3){var N=this.m.add(new s(1)).iushrn(2);return this.pow(v,N)}for(var T=this.m.subn(1),S=0;!T.isZero()&&T.andln(1)===0;)S++,T.iushrn(1);r(!T.isZero());var k=new s(1).toRed(this),F=k.redNeg(),P=this.m.subn(1).iushrn(1),w=this.m.bitLength();for(w=new s(2*w*w).toRed(this);this.pow(w,P).cmp(F)!==0;)w.redIAdd(F);for(var B=this.pow(w,T),Z=this.pow(v,T.addn(1).iushrn(1)),ee=this.pow(v,T),Y=S;ee.cmp(k)!==0;){for(var se=ee,ce=0;se.cmp(k)!==0;ce++)se=se.redSqr();r(ce=0;S--){for(var B=C.words[S],Z=w-1;Z>=0;Z--){var ee=B>>Z&1;if(k!==T[0]&&(k=this.sqr(k)),ee===0&&F===0){P=0;continue}F<<=1,F|=ee,P++,!(P!==N&&(S!==0||Z!==0))&&(k=this.mul(k,T[F]),P=0,F=0)}w=26}return k},j.prototype.convertTo=function(v){var C=v.umod(this.m);return C===v?C.clone():C},j.prototype.convertFrom=function(v){var C=v.clone();return C.red=null,C},s.mont=function(v){return new V(v)};function V(L){j.call(this,L),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}i(V,j),V.prototype.convertTo=function(v){return this.imod(v.ushln(this.shift))},V.prototype.convertFrom=function(v){var C=this.imod(v.mul(this.rinv));return C.red=null,C},V.prototype.imul=function(v,C){if(v.isZero()||C.isZero())return v.words[0]=0,v.length=1,v;var N=v.imul(C),T=N.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),S=N.isub(T).iushrn(this.shift),k=S;return S.cmp(this.m)>=0?k=S.isub(this.m):S.cmpn(0)<0&&(k=S.iadd(this.m)),k._forceRed(this)},V.prototype.mul=function(v,C){if(v.isZero()||C.isZero())return new s(0)._forceRed(this);var N=v.mul(C),T=N.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),S=N.isub(T).iushrn(this.shift),k=S;return S.cmp(this.m)>=0?k=S.isub(this.m):S.cmpn(0)<0&&(k=S.iadd(this.m)),k._forceRed(this)},V.prototype.invm=function(v){var C=this.imod(v._invmp(this.m).mul(this.r2));return C._forceRed(this)}})(t,b$)}(Tg)),Tg.exports}var $v,zS;function wu(){if(zS)return $v;zS=1,$v=t;function t(e,n){if(!e)throw new Error(n||"Assertion failed")}return t.equal=function(n,r,i){if(n!=r)throw new Error(i||"Assertion failed: "+n+" != "+r)},$v}var Fv={},qS;function lx(){return qS||(qS=1,function(t){var e=t;function n(s,c){if(Array.isArray(s))return s.slice();if(!s)return[];var u=[];if(typeof s!="string"){for(var f=0;f>8,g=d&255;p?u.push(p,g):u.push(g)}return u}e.toArray=n;function r(s){return s.length===1?"0"+s:s}e.zero2=r;function i(s){for(var c="",u=0;u(E>>1)-1?O=(E>>1)-I:O=I,x.isubn(O)):O=0,y[A]=O,x.iushrn(1)}return y}e.getNAF=s;function c(p,g){var m=[[],[]];p=p.clone(),g=g.clone();for(var y=0,A=0,E;p.cmpn(-y)>0||g.cmpn(-A)>0;){var x=p.andln(3)+y&3,O=g.andln(3)+A&3;x===3&&(x=-1),O===3&&(O=-1);var I;(x&1)===0?I=0:(E=p.andln(7)+y&7,(E===3||E===5)&&O===2?I=-x:I=x),m[0].push(I);var M;(O&1)===0?M=0:(E=g.andln(7)+A&7,(E===3||E===5)&&x===2?M=-O:M=O),m[1].push(M),2*y===I+1&&(y=1-y),2*A===M+1&&(A=1-A),p.iushrn(1),g.iushrn(1)}return m}e.getJSF=c;function u(p,g,m){var y="_"+g;p.prototype[g]=function(){return this[y]!==void 0?this[y]:this[y]=m.call(this)}}e.cachedProperty=u;function f(p){return typeof p=="string"?e.toArray(p,"hex"):p}e.parseBytes=f;function d(p){return new n(p,"hex","le")}e.intFromLE=d}(Lv)),Lv}var ng={exports:{}},GS;function dx(){if(GS)return ng.exports;GS=1;var t;ng.exports=function(i){return t||(t=new e(null)),t.generate(i)};function e(r){this.rand=r}if(ng.exports.Rand=e,e.prototype.generate=function(i){return this._rand(i)},e.prototype._rand=function(i){if(this.rand.getBytes)return this.rand.getBytes(i);for(var s=new Uint8Array(i),c=0;c0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}zv=s,s.prototype.point=function(){throw new Error("Not implemented")},s.prototype.validate=function(){throw new Error("Not implemented")},s.prototype._fixedNafMul=function(f,d){i(f.precomputed);var p=f._getDoubles(),g=n(d,1,this._bitLength),m=(1<=A;x--)E=(E<<1)+g[x];y.push(E)}for(var O=this.jpoint(null,null,null),I=this.jpoint(null,null,null),M=m;M>0;M--){for(A=0;A=0;E--){for(var x=0;E>=0&&y[E]===0;E--)x++;if(E>=0&&x++,A=A.dblp(x),E<0)break;var O=y[E];i(O!==0),f.type==="affine"?O>0?A=A.mixedAdd(m[O-1>>1]):A=A.mixedAdd(m[-O-1>>1].neg()):O>0?A=A.add(m[O-1>>1]):A=A.add(m[-O-1>>1].neg())}return f.type==="affine"?A.toP():A},s.prototype._wnafMulAdd=function(f,d,p,g,m){var y=this._wnafT1,A=this._wnafT2,E=this._wnafT3,x=0,O,I,M;for(O=0;O=1;O-=2){var D=O-1,R=O;if(y[D]!==1||y[R]!==1){E[D]=n(p[D],y[D],this._bitLength),E[R]=n(p[R],y[R],this._bitLength),x=Math.max(E[D].length,x),x=Math.max(E[R].length,x);continue}var z=[d[D],null,null,d[R]];d[D].y.cmp(d[R].y)===0?(z[1]=d[D].add(d[R]),z[2]=d[D].toJ().mixedAdd(d[R].neg())):d[D].y.cmp(d[R].y.redNeg())===0?(z[1]=d[D].toJ().mixedAdd(d[R]),z[2]=d[D].add(d[R].neg())):(z[1]=d[D].toJ().mixedAdd(d[R]),z[2]=d[D].toJ().mixedAdd(d[R].neg()));var G=[-3,-1,-5,-7,0,7,5,1,3],j=r(p[D],p[R]);for(x=Math.max(j[0].length,x),E[D]=new Array(x),E[R]=new Array(x),I=0;I=0;O--){for(var N=0;O>=0;){var T=!0;for(I=0;I=0&&N++,v=v.dblp(N),O<0)break;for(I=0;I0?M=A[I][S-1>>1]:S<0&&(M=A[I][-S-1>>1].neg()),M.type==="affine"?v=v.mixedAdd(M):v=v.add(M))}}for(O=0;O=Math.ceil((f.bitLength()+1)/d.step):!1},c.prototype._getDoubles=function(f,d){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var p=[this],g=this,m=0;m=0&&(D=O,R=I),M.negative&&(M=M.neg(),$=$.neg()),D.negative&&(D=D.neg(),R=R.neg()),[{a:M,b:$},{a:D,b:R}]},s.prototype._endoSplit=function(d){var p=this.endo.basis,g=p[0],m=p[1],y=m.b.mul(d).divRound(this.n),A=g.b.neg().mul(d).divRound(this.n),E=y.mul(g.a),x=A.mul(m.a),O=y.mul(g.b),I=A.mul(m.b),M=d.sub(E).sub(x),$=O.add(I).neg();return{k1:M,k2:$}},s.prototype.pointFromX=function(d,p){d=new e(d,16),d.red||(d=d.toRed(this.red));var g=d.redSqr().redMul(d).redIAdd(d.redMul(this.a)).redIAdd(this.b),m=g.redSqrt();if(m.redSqr().redSub(g).cmp(this.zero)!==0)throw new Error("invalid point");var y=m.fromRed().isOdd();return(p&&!y||!p&&y)&&(m=m.redNeg()),this.point(d,m)},s.prototype.validate=function(d){if(d.inf)return!0;var p=d.x,g=d.y,m=this.a.redMul(p),y=p.redSqr().redMul(p).redIAdd(m).redIAdd(this.b);return g.redSqr().redISub(y).cmpn(0)===0},s.prototype._endoWnafMulAdd=function(d,p,g){for(var m=this._endoWnafT1,y=this._endoWnafT2,A=0;A":""},c.prototype.isInfinity=function(){return this.inf},c.prototype.add=function(d){if(this.inf)return d;if(d.inf)return this;if(this.eq(d))return this.dbl();if(this.neg().eq(d))return this.curve.point(null,null);if(this.x.cmp(d.x)===0)return this.curve.point(null,null);var p=this.y.redSub(d.y);p.cmpn(0)!==0&&(p=p.redMul(this.x.redSub(d.x).redInvm()));var g=p.redSqr().redISub(this.x).redISub(d.x),m=p.redMul(this.x.redSub(g)).redISub(this.y);return this.curve.point(g,m)},c.prototype.dbl=function(){if(this.inf)return this;var d=this.y.redAdd(this.y);if(d.cmpn(0)===0)return this.curve.point(null,null);var p=this.curve.a,g=this.x.redSqr(),m=d.redInvm(),y=g.redAdd(g).redIAdd(g).redIAdd(p).redMul(m),A=y.redSqr().redISub(this.x.redAdd(this.x)),E=y.redMul(this.x.redSub(A)).redISub(this.y);return this.curve.point(A,E)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(d){return d=new e(d,16),this.isInfinity()?this:this._hasDoubles(d)?this.curve._fixedNafMul(this,d):this.curve.endo?this.curve._endoWnafMulAdd([this],[d]):this.curve._wnafMul(this,d)},c.prototype.mulAdd=function(d,p,g){var m=[this,p],y=[d,g];return this.curve.endo?this.curve._endoWnafMulAdd(m,y):this.curve._wnafMulAdd(1,m,y,2)},c.prototype.jmulAdd=function(d,p,g){var m=[this,p],y=[d,g];return this.curve.endo?this.curve._endoWnafMulAdd(m,y,!0):this.curve._wnafMulAdd(1,m,y,2,!0)},c.prototype.eq=function(d){return this===d||this.inf===d.inf&&(this.inf||this.x.cmp(d.x)===0&&this.y.cmp(d.y)===0)},c.prototype.neg=function(d){if(this.inf)return this;var p=this.curve.point(this.x,this.y.redNeg());if(d&&this.precomputed){var g=this.precomputed,m=function(y){return y.neg()};p.precomputed={naf:g.naf&&{wnd:g.naf.wnd,points:g.naf.points.map(m)},doubles:g.doubles&&{step:g.doubles.step,points:g.doubles.points.map(m)}}}return p},c.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var d=this.curve.jpoint(this.x,this.y,this.curve.one);return d};function u(f,d,p,g){r.BasePoint.call(this,f,"jacobian"),d===null&&p===null&&g===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new e(0)):(this.x=new e(d,16),this.y=new e(p,16),this.z=new e(g,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}return n(u,r.BasePoint),s.prototype.jpoint=function(d,p,g){return new u(this,d,p,g)},u.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var d=this.z.redInvm(),p=d.redSqr(),g=this.x.redMul(p),m=this.y.redMul(p).redMul(d);return this.curve.point(g,m)},u.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},u.prototype.add=function(d){if(this.isInfinity())return d;if(d.isInfinity())return this;var p=d.z.redSqr(),g=this.z.redSqr(),m=this.x.redMul(p),y=d.x.redMul(g),A=this.y.redMul(p.redMul(d.z)),E=d.y.redMul(g.redMul(this.z)),x=m.redSub(y),O=A.redSub(E);if(x.cmpn(0)===0)return O.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var I=x.redSqr(),M=I.redMul(x),$=m.redMul(I),D=O.redSqr().redIAdd(M).redISub($).redISub($),R=O.redMul($.redISub(D)).redISub(A.redMul(M)),z=this.z.redMul(d.z).redMul(x);return this.curve.jpoint(D,R,z)},u.prototype.mixedAdd=function(d){if(this.isInfinity())return d.toJ();if(d.isInfinity())return this;var p=this.z.redSqr(),g=this.x,m=d.x.redMul(p),y=this.y,A=d.y.redMul(p).redMul(this.z),E=g.redSub(m),x=y.redSub(A);if(E.cmpn(0)===0)return x.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var O=E.redSqr(),I=O.redMul(E),M=g.redMul(O),$=x.redSqr().redIAdd(I).redISub(M).redISub(M),D=x.redMul(M.redISub($)).redISub(y.redMul(I)),R=this.z.redMul(E);return this.curve.jpoint($,D,R)},u.prototype.dblp=function(d){if(d===0)return this;if(this.isInfinity())return this;if(!d)return this.dbl();var p;if(this.curve.zeroA||this.curve.threeA){var g=this;for(p=0;p=0)return!1;if(g.redIAdd(y),this.x.cmp(g)===0)return!0}},u.prototype.inspect=function(){return this.isInfinity()?"":""},u.prototype.isInfinity=function(){return this.z.cmpn(0)===0},qv}var Hv,QS;function v$(){if(QS)return Hv;QS=1;var t=Fa(),e=Mm(),n=Pm(),r=Hi();function i(c){n.call(this,"mont",c),this.a=new t(c.a,16).toRed(this.red),this.b=new t(c.b,16).toRed(this.red),this.i4=new t(4).toRed(this.red).redInvm(),this.two=new t(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}e(i,n),Hv=i,i.prototype.validate=function(u){var f=u.normalize().x,d=f.redSqr(),p=d.redMul(f).redAdd(d.redMul(this.a)).redAdd(f),g=p.redSqrt();return g.redSqr().cmp(p)===0};function s(c,u,f){n.BasePoint.call(this,c,"projective"),u===null&&f===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new t(u,16),this.z=new t(f,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}return e(s,n.BasePoint),i.prototype.decodePoint=function(u,f){return this.point(r.toArray(u,f),1)},i.prototype.point=function(u,f){return new s(this,u,f)},i.prototype.pointFromJSON=function(u){return s.fromJSON(this,u)},s.prototype.precompute=function(){},s.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},s.fromJSON=function(u,f){return new s(u,f[0],f[1]||u.one)},s.prototype.inspect=function(){return this.isInfinity()?"":""},s.prototype.isInfinity=function(){return this.z.cmpn(0)===0},s.prototype.dbl=function(){var u=this.x.redAdd(this.z),f=u.redSqr(),d=this.x.redSub(this.z),p=d.redSqr(),g=f.redSub(p),m=f.redMul(p),y=g.redMul(p.redAdd(this.curve.a24.redMul(g)));return this.curve.point(m,y)},s.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},s.prototype.diffAdd=function(u,f){var d=this.x.redAdd(this.z),p=this.x.redSub(this.z),g=u.x.redAdd(u.z),m=u.x.redSub(u.z),y=m.redMul(d),A=g.redMul(p),E=f.z.redMul(y.redAdd(A).redSqr()),x=f.x.redMul(y.redISub(A).redSqr());return this.curve.point(E,x)},s.prototype.mul=function(u){for(var f=u.clone(),d=this,p=this.curve.point(null,null),g=this,m=[];f.cmpn(0)!==0;f.iushrn(1))m.push(f.andln(1));for(var y=m.length-1;y>=0;y--)m[y]===0?(d=d.diffAdd(p,g),p=p.dbl()):(p=d.diffAdd(p,g),d=d.dbl());return p},s.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},s.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},s.prototype.eq=function(u){return this.getX().cmp(u.getX())===0},s.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},s.prototype.getX=function(){return this.normalize(),this.x.fromRed()},Hv}var Gv,YS;function w$(){if(YS)return Gv;YS=1;var t=Hi(),e=Fa(),n=Mm(),r=Pm(),i=t.assert;function s(u){this.twisted=(u.a|0)!==1,this.mOneA=this.twisted&&(u.a|0)===-1,this.extended=this.mOneA,r.call(this,"edwards",u),this.a=new e(u.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new e(u.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new e(u.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),i(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(u.c|0)===1}n(s,r),Gv=s,s.prototype._mulA=function(f){return this.mOneA?f.redNeg():this.a.redMul(f)},s.prototype._mulC=function(f){return this.oneC?f:this.c.redMul(f)},s.prototype.jpoint=function(f,d,p,g){return this.point(f,d,p,g)},s.prototype.pointFromX=function(f,d){f=new e(f,16),f.red||(f=f.toRed(this.red));var p=f.redSqr(),g=this.c2.redSub(this.a.redMul(p)),m=this.one.redSub(this.c2.redMul(this.d).redMul(p)),y=g.redMul(m.redInvm()),A=y.redSqrt();if(A.redSqr().redSub(y).cmp(this.zero)!==0)throw new Error("invalid point");var E=A.fromRed().isOdd();return(d&&!E||!d&&E)&&(A=A.redNeg()),this.point(f,A)},s.prototype.pointFromY=function(f,d){f=new e(f,16),f.red||(f=f.toRed(this.red));var p=f.redSqr(),g=p.redSub(this.c2),m=p.redMul(this.d).redMul(this.c2).redSub(this.a),y=g.redMul(m.redInvm());if(y.cmp(this.zero)===0){if(d)throw new Error("invalid point");return this.point(this.zero,f)}var A=y.redSqrt();if(A.redSqr().redSub(y).cmp(this.zero)!==0)throw new Error("invalid point");return A.fromRed().isOdd()!==d&&(A=A.redNeg()),this.point(A,f)},s.prototype.validate=function(f){if(f.isInfinity())return!0;f.normalize();var d=f.x.redSqr(),p=f.y.redSqr(),g=d.redMul(this.a).redAdd(p),m=this.c2.redMul(this.one.redAdd(this.d.redMul(d).redMul(p)));return g.cmp(m)===0};function c(u,f,d,p,g){r.BasePoint.call(this,u,"projective"),f===null&&d===null&&p===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new e(f,16),this.y=new e(d,16),this.z=p?new e(p,16):this.curve.one,this.t=g&&new e(g,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}return n(c,r.BasePoint),s.prototype.pointFromJSON=function(f){return c.fromJSON(this,f)},s.prototype.point=function(f,d,p,g){return new c(this,f,d,p,g)},c.fromJSON=function(f,d){return new c(f,d[0],d[1],d[2])},c.prototype.inspect=function(){return this.isInfinity()?"":""},c.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},c.prototype._extDbl=function(){var f=this.x.redSqr(),d=this.y.redSqr(),p=this.z.redSqr();p=p.redIAdd(p);var g=this.curve._mulA(f),m=this.x.redAdd(this.y).redSqr().redISub(f).redISub(d),y=g.redAdd(d),A=y.redSub(p),E=g.redSub(d),x=m.redMul(A),O=y.redMul(E),I=m.redMul(E),M=A.redMul(y);return this.curve.point(x,O,M,I)},c.prototype._projDbl=function(){var f=this.x.redAdd(this.y).redSqr(),d=this.x.redSqr(),p=this.y.redSqr(),g,m,y,A,E,x;if(this.curve.twisted){A=this.curve._mulA(d);var O=A.redAdd(p);this.zOne?(g=f.redSub(d).redSub(p).redMul(O.redSub(this.curve.two)),m=O.redMul(A.redSub(p)),y=O.redSqr().redSub(O).redSub(O)):(E=this.z.redSqr(),x=O.redSub(E).redISub(E),g=f.redSub(d).redISub(p).redMul(x),m=O.redMul(A.redSub(p)),y=O.redMul(x))}else A=d.redAdd(p),E=this.curve._mulC(this.z).redSqr(),x=A.redSub(E).redSub(E),g=this.curve._mulC(f.redISub(A)).redMul(x),m=this.curve._mulC(A).redMul(d.redISub(p)),y=A.redMul(x);return this.curve.point(g,m,y)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(f){var d=this.y.redSub(this.x).redMul(f.y.redSub(f.x)),p=this.y.redAdd(this.x).redMul(f.y.redAdd(f.x)),g=this.t.redMul(this.curve.dd).redMul(f.t),m=this.z.redMul(f.z.redAdd(f.z)),y=p.redSub(d),A=m.redSub(g),E=m.redAdd(g),x=p.redAdd(d),O=y.redMul(A),I=E.redMul(x),M=y.redMul(x),$=A.redMul(E);return this.curve.point(O,I,$,M)},c.prototype._projAdd=function(f){var d=this.z.redMul(f.z),p=d.redSqr(),g=this.x.redMul(f.x),m=this.y.redMul(f.y),y=this.curve.d.redMul(g).redMul(m),A=p.redSub(y),E=p.redAdd(y),x=this.x.redAdd(this.y).redMul(f.x.redAdd(f.y)).redISub(g).redISub(m),O=d.redMul(A).redMul(x),I,M;return this.curve.twisted?(I=d.redMul(E).redMul(m.redSub(this.curve._mulA(g))),M=A.redMul(E)):(I=d.redMul(E).redMul(m.redSub(g)),M=this.curve._mulC(A).redMul(E)),this.curve.point(O,I,M)},c.prototype.add=function(f){return this.isInfinity()?f:f.isInfinity()?this:this.curve.extended?this._extAdd(f):this._projAdd(f)},c.prototype.mul=function(f){return this._hasDoubles(f)?this.curve._fixedNafMul(this,f):this.curve._wnafMul(this,f)},c.prototype.mulAdd=function(f,d,p){return this.curve._wnafMulAdd(1,[this,d],[f,p],2,!1)},c.prototype.jmulAdd=function(f,d,p){return this.curve._wnafMulAdd(1,[this,d],[f,p],2,!0)},c.prototype.normalize=function(){if(this.zOne)return this;var f=this.z.redInvm();return this.x=this.x.redMul(f),this.y=this.y.redMul(f),this.t&&(this.t=this.t.redMul(f)),this.z=this.curve.one,this.zOne=!0,this},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(f){return this===f||this.getX().cmp(f.getX())===0&&this.getY().cmp(f.getY())===0},c.prototype.eqXToP=function(f){var d=f.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(d)===0)return!0;for(var p=f.clone(),g=this.curve.redN.redMul(this.z);;){if(p.iadd(this.curve.n),p.cmp(this.curve.p)>=0)return!1;if(d.redIAdd(g),this.x.cmp(d)===0)return!0}},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add,Gv}var ZS;function fx(){return ZS||(ZS=1,function(t){var e=t;e.base=Pm(),e.short=y$(),e.mont=v$(),e.edwards=w$()}(jv)),jv}var Vv={},Kv={},Kt={},XS;function Ws(){if(XS)return Kt;XS=1;var t=wu(),e=Mm();Kt.inherits=e;function n(v,C){return(v.charCodeAt(C)&64512)!==55296||C<0||C+1>=v.length?!1:(v.charCodeAt(C+1)&64512)===56320}function r(v,C){if(Array.isArray(v))return v.slice();if(!v)return[];var N=[];if(typeof v=="string")if(C){if(C==="hex")for(v=v.replace(/[^a-z0-9]+/ig,""),v.length%2!==0&&(v="0"+v),S=0;S>6|192,N[T++]=k&63|128):n(v,S)?(k=65536+((k&1023)<<10)+(v.charCodeAt(++S)&1023),N[T++]=k>>18|240,N[T++]=k>>12&63|128,N[T++]=k>>6&63|128,N[T++]=k&63|128):(N[T++]=k>>12|224,N[T++]=k>>6&63|128,N[T++]=k&63|128)}else for(S=0;S>>24|v>>>8&65280|v<<8&16711680|(v&255)<<24;return C>>>0}Kt.htonl=s;function c(v,C){for(var N="",T=0;T>>0}return k}Kt.join32=d;function p(v,C){for(var N=new Array(v.length*4),T=0,S=0;T>>24,N[S+1]=k>>>16&255,N[S+2]=k>>>8&255,N[S+3]=k&255):(N[S+3]=k>>>24,N[S+2]=k>>>16&255,N[S+1]=k>>>8&255,N[S]=k&255)}return N}Kt.split32=p;function g(v,C){return v>>>C|v<<32-C}Kt.rotr32=g;function m(v,C){return v<>>32-C}Kt.rotl32=m;function y(v,C){return v+C>>>0}Kt.sum32=y;function A(v,C,N){return v+C+N>>>0}Kt.sum32_3=A;function E(v,C,N,T){return v+C+N+T>>>0}Kt.sum32_4=E;function x(v,C,N,T,S){return v+C+N+T+S>>>0}Kt.sum32_5=x;function O(v,C,N,T){var S=v[C],k=v[C+1],F=T+k>>>0,P=(F>>0,v[C+1]=F}Kt.sum64=O;function I(v,C,N,T){var S=C+T>>>0,k=(S>>0}Kt.sum64_hi=I;function M(v,C,N,T){var S=C+T;return S>>>0}Kt.sum64_lo=M;function $(v,C,N,T,S,k,F,P){var w=0,B=C;B=B+T>>>0,w+=B>>0,w+=B>>0,w+=B>>0}Kt.sum64_4_hi=$;function D(v,C,N,T,S,k,F,P){var w=C+T+k+P;return w>>>0}Kt.sum64_4_lo=D;function R(v,C,N,T,S,k,F,P,w,B){var Z=0,ee=C;ee=ee+T>>>0,Z+=ee>>0,Z+=ee>>0,Z+=ee>>0,Z+=ee>>0}Kt.sum64_5_hi=R;function z(v,C,N,T,S,k,F,P,w,B){var Z=C+T+k+P+B;return Z>>>0}Kt.sum64_5_lo=z;function G(v,C,N){var T=C<<32-N|v>>>N;return T>>>0}Kt.rotr64_hi=G;function j(v,C,N){var T=v<<32-N|C>>>N;return T>>>0}Kt.rotr64_lo=j;function V(v,C,N){return v>>>N}Kt.shr64_hi=V;function L(v,C,N){var T=v<<32-N|C>>>N;return T>>>0}return Kt.shr64_lo=L,Kt}var Wv={},JS;function vp(){if(JS)return Wv;JS=1;var t=Ws(),e=wu();function n(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}return Wv.BlockHash=n,n.prototype.update=function(i,s){if(i=t.toArray(i,s),this.pending?this.pending=this.pending.concat(i):this.pending=i,this.pendingTotal+=i.length,this.pending.length>=this._delta8){i=this.pending;var c=i.length%this._delta8;this.pending=i.slice(i.length-c,i.length),this.pending.length===0&&(this.pending=null),i=t.join32(i,0,i.length-c,this.endian);for(var u=0;u>>24&255,u[f++]=i>>>16&255,u[f++]=i>>>8&255,u[f++]=i&255}else for(u[f++]=i&255,u[f++]=i>>>8&255,u[f++]=i>>>16&255,u[f++]=i>>>24&255,u[f++]=0,u[f++]=0,u[f++]=0,u[f++]=0,d=8;d>>3}xs.g0_256=f;function d(p){return e(p,17)^e(p,19)^p>>>10}return xs.g1_256=d,xs}var Qv,t5;function E$(){if(t5)return Qv;t5=1;var t=Ws(),e=vp(),n=hx(),r=t.rotl32,i=t.sum32,s=t.sum32_5,c=n.ft_1,u=e.BlockHash,f=[1518500249,1859775393,2400959708,3395469782];function d(){if(!(this instanceof d))return new d;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}return t.inherits(d,u),Qv=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(g,m){for(var y=this.W,A=0;A<16;A++)y[A]=g[m+A];for(;Athis.blockSize&&(i=new this.Hash().update(i).digest()),e(i.length<=this.blockSize);for(var s=i.length;s=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(s,c,u)}return r1=r,r.prototype._init=function(s,c,u){var f=s.concat(c).concat(u);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var d=0;d=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(s.concat(u||[])),this._reseed=1},r.prototype.generate=function(s,c,u,f){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof c!="string"&&(f=u,u=c,c=null),u&&(u=e.toArray(u,f||"hex"),this._update(u));for(var d=[];d.length"},i1}var s1,p5;function O$(){if(p5)return s1;p5=1;var t=Fa(),e=Hi(),n=e.assert;function r(f,d){if(f instanceof r)return f;this._importDER(f,d)||(n(f.r&&f.s,"Signature without r or s"),this.r=new t(f.r,16),this.s=new t(f.s,16),f.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=f.recoveryParam)}s1=r;function i(){this.place=0}function s(f,d){var p=f[d.place++];if(!(p&128))return p;var g=p&15;if(g===0||g>4||f[d.place]===0)return!1;for(var m=0,y=0,A=d.place;y>>=0;return m<=127?!1:(d.place=A,m)}function c(f){for(var d=0,p=f.length-1;!f[d]&&!(f[d+1]&128)&&d>>3);for(f.push(p|128);--p;)f.push(d>>>(p<<3)&255);f.push(d)}return r.prototype.toDER=function(d){var p=this.r.toArray(),g=this.s.toArray();for(p[0]&128&&(p=[0].concat(p)),g[0]&128&&(g=[0].concat(g)),p=c(p),g=c(g);!g[0]&&!(g[1]&128);)g=g.slice(1);var m=[2];u(m,p.length),m=m.concat(p),m.push(2),u(m,g.length);var y=m.concat(g),A=[48];return u(A,y.length),A=A.concat(y),e.encode(A,d)},s1}var a1,g5;function R$(){if(g5)return a1;g5=1;var t=Fa(),e=N$(),n=Hi(),r=XE(),i=dx(),s=n.assert,c=I$(),u=O$();function f(d){if(!(this instanceof f))return new f(d);typeof d=="string"&&(s(Object.prototype.hasOwnProperty.call(r,d),"Unknown curve "+d),d=r[d]),d instanceof r.PresetCurve&&(d={curve:d}),this.curve=d.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=d.curve.g,this.g.precompute(d.curve.n.bitLength()+1),this.hash=d.hash||d.curve.hash}return a1=f,f.prototype.keyPair=function(p){return new c(this,p)},f.prototype.keyFromPrivate=function(p,g){return c.fromPrivate(this,p,g)},f.prototype.keyFromPublic=function(p,g){return c.fromPublic(this,p,g)},f.prototype.genKeyPair=function(p){p||(p={});for(var g=new e({hash:this.hash,pers:p.pers,persEnc:p.persEnc||"utf8",entropy:p.entropy||i(this.hash.hmacStrength),entropyEnc:p.entropy&&p.entropyEnc||"utf8",nonce:this.n.toArray()}),m=this.n.byteLength(),y=this.n.sub(new t(2));;){var A=new t(g.generate(m));if(!(A.cmp(y)>0))return A.iaddn(1),this.keyFromPrivate(A)}},f.prototype._truncateToN=function(p,g,m){var y;if(t.isBN(p)||typeof p=="number")p=new t(p,16),y=p.byteLength();else if(typeof p=="object")y=p.length,p=new t(p,16);else{var A=p.toString();y=A.length+1>>>1,p=new t(A,16)}typeof m!="number"&&(m=y*8);var E=m-this.n.bitLength();return E>0&&(p=p.ushrn(E)),!g&&p.cmp(this.n)>=0?p.sub(this.n):p},f.prototype.sign=function(p,g,m,y){if(typeof m=="object"&&(y=m,m=null),y||(y={}),typeof p!="string"&&typeof p!="number"&&!t.isBN(p)){s(typeof p=="object"&&p&&typeof p.length=="number","Expected message to be an array-like, a hex string, or a BN instance"),s(p.length>>>0===p.length);for(var A=0;A=0)){var R=this.g.mul(D);if(!R.isInfinity()){var z=R.getX(),G=z.umod(this.n);if(G.cmpn(0)!==0){var j=D.invm(this.n).mul(G.mul(g.getPrivate()).iadd(p));if(j=j.umod(this.n),j.cmpn(0)!==0){var V=(R.getY().isOdd()?1:0)|(z.cmp(G)!==0?2:0);return y.canonical&&j.cmp(this.nh)>0&&(j=this.n.sub(j),V^=1),new u({r:G,s:j,recoveryParam:V})}}}}}},f.prototype.verify=function(p,g,m,y,A){A||(A={}),p=this._truncateToN(p,!1,A.msgBitLength),m=this.keyFromPublic(m,y),g=new u(g,"hex");var E=g.r,x=g.s;if(E.cmpn(1)<0||E.cmp(this.n)>=0||x.cmpn(1)<0||x.cmp(this.n)>=0)return!1;var O=x.invm(this.n),I=O.mul(p).umod(this.n),M=O.mul(E).umod(this.n),$;return this.curve._maxwellTrick?($=this.g.jmulAdd(I,m.getPublic(),M),$.isInfinity()?!1:$.eqXToP(E)):($=this.g.mulAdd(I,m.getPublic(),M),$.isInfinity()?!1:$.getX().umod(this.n).cmp(E)===0)},f.prototype.recoverPubKey=function(d,p,g,m){s((3&g)===g,"The recovery param is more than two bits"),p=new u(p,m);var y=this.n,A=new t(d),E=p.r,x=p.s,O=g&1,I=g>>1;if(E.cmp(this.curve.p.umod(this.curve.n))>=0&&I)throw new Error("Unable to find sencond key candinate");I?E=this.curve.pointFromX(E.add(this.curve.n),O):E=this.curve.pointFromX(E,O);var M=p.r.invm(y),$=y.sub(A).mul(M).umod(y),D=x.mul(M).umod(y);return this.g.mulAdd($,E,D)},f.prototype.getKeyRecoveryParam=function(d,p,g,m){if(p=new u(p,m),p.recoveryParam!==null)return p.recoveryParam;for(var y=0;y<4;y++){var A;try{A=this.recoverPubKey(d,p,y)}catch{continue}if(A.eq(g))return y}throw new Error("Unable to find valid recovery factor")},a1}var o1,m5;function D$(){if(m5)return o1;m5=1;var t=Hi(),e=t.assert,n=t.parseBytes,r=t.cachedProperty;function i(s,c){this.eddsa=s,this._secret=n(c.secret),s.isPoint(c.pub)?this._pub=c.pub:this._pubBytes=n(c.pub)}return i.fromPublic=function(c,u){return u instanceof i?u:new i(c,{pub:u})},i.fromSecret=function(c,u){return u instanceof i?u:new i(c,{secret:u})},i.prototype.secret=function(){return this._secret},r(i,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),r(i,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),r(i,"privBytes",function(){var c=this.eddsa,u=this.hash(),f=c.encodingLength-1,d=u.slice(0,c.encodingLength);return d[0]&=248,d[f]&=127,d[f]|=64,d}),r(i,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),r(i,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),r(i,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),i.prototype.sign=function(c){return e(this._secret,"KeyPair can only verify"),this.eddsa.sign(c,this)},i.prototype.verify=function(c,u){return this.eddsa.verify(c,u,this)},i.prototype.getSecret=function(c){return e(this._secret,"KeyPair is public only"),t.encode(this.secret(),c)},i.prototype.getPublic=function(c){return t.encode(this.pubBytes(),c)},o1=i,o1}var c1,b5;function P$(){if(b5)return c1;b5=1;var t=Fa(),e=Hi(),n=e.assert,r=e.cachedProperty,i=e.parseBytes;function s(c,u){this.eddsa=c,typeof u!="object"&&(u=i(u)),Array.isArray(u)&&(n(u.length===c.encodingLength*2,"Signature has invalid size"),u={R:u.slice(0,c.encodingLength),S:u.slice(c.encodingLength)}),n(u.R&&u.S,"Signature without R or S"),c.isPoint(u.R)&&(this._R=u.R),u.S instanceof t&&(this._S=u.S),this._Rencoded=Array.isArray(u.R)?u.R:u.Rencoded,this._Sencoded=Array.isArray(u.S)?u.S:u.Sencoded}return r(s,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),r(s,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),r(s,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),r(s,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),s.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},s.prototype.toHex=function(){return e.encode(this.toBytes(),"hex").toUpperCase()},c1=s,c1}var u1,y5;function M$(){if(y5)return u1;y5=1;var t=ZE(),e=XE(),n=Hi(),r=n.assert,i=n.parseBytes,s=D$(),c=P$();function u(f){if(r(f==="ed25519","only tested with ed25519 so far"),!(this instanceof u))return new u(f);f=e[f].curve,this.curve=f,this.g=f.g,this.g.precompute(f.n.bitLength()+1),this.pointClass=f.point().constructor,this.encodingLength=Math.ceil(f.n.bitLength()/8),this.hash=t.sha512}return u1=u,u.prototype.sign=function(d,p){d=i(d);var g=this.keyFromSecret(p),m=this.hashInt(g.messagePrefix(),d),y=this.g.mul(m),A=this.encodePoint(y),E=this.hashInt(A,g.pubBytes(),d).mul(g.priv()),x=m.add(E).umod(this.curve.n);return this.makeSignature({R:y,S:x,Rencoded:A})},u.prototype.verify=function(d,p,g){if(d=i(d),p=this.makeSignature(p),p.S().gte(p.eddsa.curve.n)||p.S().isNeg())return!1;var m=this.keyFromPublic(g),y=this.hashInt(p.Rencoded(),m.pubBytes(),d),A=this.g.mul(p.S()),E=p.R().add(m.pub().mul(y));return E.eq(A)},u.prototype.hashInt=function(){for(var d=this.hash(),p=0;pe.includes(n)).length===t.length}function _w(t){return Object.fromEntries(t.entries())}function Cw(t){return new Map(Object.entries(t))}function Sc(t=ge.FIVE_MINUTES,e){const n=ge.toMiliseconds(t||ge.FIVE_MINUTES);let r,i,s,c;return{resolve:u=>{s&&r&&(clearTimeout(s),r(u),c=Promise.resolve(u))},reject:u=>{s&&i&&(clearTimeout(s),i(u))},done:()=>new Promise((u,f)=>{if(c)return u(c);s=setTimeout(()=>{const d=new Error(e);c=Promise.reject(d),f(d)},n),r=u,i=f})}}function Mo(t,e,n){return new Promise(async(r,i)=>{const s=setTimeout(()=>i(new Error(n)),e);try{const c=await t;r(c)}catch(c){i(c)}clearTimeout(s)})}function vx(t,e){if(typeof e=="string"&&e.startsWith(`${t}:`))return e;if(t.toLowerCase()==="topic"){if(typeof e!="string")throw new Error('Value must be "string" for expirer target type: topic');return`topic:${e}`}else if(t.toLowerCase()==="id"){if(typeof e!="number")throw new Error('Value must be "number" for expirer target type: id');return`id:${e}`}throw new Error(`Unknown expirer target type: ${t}`)}function W$(t){return vx("topic",t)}function Q$(t){return vx("id",t)}function wx(t){const[e,n]=t.split(":"),r={id:void 0,topic:void 0};if(e==="topic"&&typeof n=="string")r.topic=n;else if(e==="id"&&Number.isInteger(Number(n)))r.id=Number(n);else throw new Error(`Invalid target, expected id:number or topic:string, got ${e}:${n}`);return r}function Zn(t,e){return ge.fromMiliseconds(Date.now()+ge.toMiliseconds(t))}function Eo(t){return Date.now()>=ge.toMiliseconds(t)}function Pt(t,e){return`${t}${e?`:${e}`:""}`}function xg(t=[],e=[]){return[...new Set([...t,...e])]}async function Y$({id:t,topic:e,wcDeepLink:n}){var r;try{if(!n)return;const i=typeof n=="string"?JSON.parse(n):n,s=i==null?void 0:i.href;if(typeof s!="string")return;const c=Z$(s,t,e),u=Ep();if(u===mi.browser){if(!((r=Jc.getDocument())!=null&&r.hasFocus())){console.warn("Document does not have focus, skipping deeplink.");return}X$(c)}else u===mi.reactNative&&typeof(global==null?void 0:global.Linking)<"u"&&await global.Linking.openURL(c)}catch(i){console.error(i)}}function Z$(t,e,n){const r=`requestId=${e}&sessionTopic=${n}`;t.endsWith("/")&&(t=t.slice(0,-1));let i=`${t}`;if(t.startsWith("https://t.me")){const s=t.includes("?")?"&startapp=":"?startapp=";i=`${i}${s}${nF(r,!0)}`}else i=`${i}/wc?${r}`;return i}function X$(t){let e="_self";tF()?e="_top":(eF()||t.startsWith("https://")||t.startsWith("http://"))&&(e="_blank"),window.open(t,e,"noreferrer noopener")}async function J$(t,e){let n="";try{if(wp()&&(n=localStorage.getItem(e),n))return n;n=await t.getItem(e)}catch(r){console.error(r)}return n}function E5(t,e){if(!t.includes(e))return null;const n=t.split(/([&,?,=])/),r=n.indexOf(e);return n[r+2]}function A5(){return typeof crypto<"u"&&crypto!=null&&crypto.randomUUID?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/gu,t=>{const e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}function JE(){return typeof process<"u"&&L$.IS_VITEST==="true"}function eF(){return typeof window<"u"&&(!!window.TelegramWebviewProxy||!!window.Telegram||!!window.TelegramWebviewProxyProto)}function tF(){try{return window.self!==window.top}catch{return!1}}function nF(t,e=!1){const n=Buffer.from(t).toString("base64");return e?n.replace(/[=]/g,""):n}function Ex(t){return Buffer.from(t,"base64").toString("utf-8")}function rF(t){return new Promise(e=>setTimeout(e,t))}function Eh(t){if(!Number.isSafeInteger(t)||t<0)throw new Error("positive integer expected, got "+t)}function iF(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&t.constructor.name==="Uint8Array"}function km(t,...e){if(!iF(t))throw new Error("Uint8Array expected");if(e.length>0&&!e.includes(t.length))throw new Error("Uint8Array expected of length "+e+", got length="+t.length)}function e2(t){if(typeof t!="function"||typeof t.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");Eh(t.outputLen),Eh(t.blockLen)}function td(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function Ax(t,e){km(t);const n=e.outputLen;if(t.length>_5&ig)}:{h:Number(t>>_5&ig)|0,l:Number(t&ig)|0}}function aF(t,e=!1){let n=new Uint32Array(t.length),r=new Uint32Array(t.length);for(let i=0;it<>>32-n,cF=(t,e,n)=>e<>>32-n,uF=(t,e,n)=>e<>>64-n,lF=(t,e,n)=>t<>>64-n,ul=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;function dF(t){return new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4))}function l1(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function Ns(t,e){return t<<32-e|t>>>e}const C5=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function fF(t){return t<<24&4278190080|t<<8&16711680|t>>>8&65280|t>>>24&255}function S5(t){for(let e=0;et().update(nd(r)).digest(),n=t();return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=()=>t(),e}function Ap(t=32){if(ul&&typeof ul.getRandomValues=="function")return ul.getRandomValues(new Uint8Array(t));if(ul&&typeof ul.randomBytes=="function")return ul.randomBytes(t);throw new Error("crypto.getRandomValues must be defined")}const Cx=[],Sx=[],Tx=[],pF=BigInt(0),Ff=BigInt(1),gF=BigInt(2),mF=BigInt(7),bF=BigInt(256),yF=BigInt(113);for(let t=0,e=Ff,n=1,r=0;t<24;t++){[n,r]=[r,(2*n+3*r)%5],Cx.push(2*(5*r+n)),Sx.push((t+1)*(t+2)/2%64);let i=pF;for(let s=0;s<7;s++)e=(e<>mF)*yF)%bF,e&gF&&(i^=Ff<<(Ff<n>32?uF(t,e,n):oF(t,e,n),x5=(t,e,n)=>n>32?lF(t,e,n):cF(t,e,n);function EF(t,e=24){const n=new Uint32Array(10);for(let r=24-e;r<24;r++){for(let c=0;c<10;c++)n[c]=t[c]^t[c+10]^t[c+20]^t[c+30]^t[c+40];for(let c=0;c<10;c+=2){const u=(c+8)%10,f=(c+2)%10,d=n[f],p=n[f+1],g=T5(d,p,1)^n[u],m=x5(d,p,1)^n[u+1];for(let y=0;y<50;y+=10)t[c+y]^=g,t[c+y+1]^=m}let i=t[2],s=t[3];for(let c=0;c<24;c++){const u=Sx[c],f=T5(i,s,u),d=x5(i,s,u),p=Cx[c];i=t[p],s=t[p+1],t[p]=f,t[p+1]=d}for(let c=0;c<50;c+=10){for(let u=0;u<10;u++)n[u]=t[c+u];for(let u=0;u<10;u++)t[c+u]^=~n[(u+2)%10]&n[(u+4)%10]}t[0]^=vF[r],t[1]^=wF[r]}n.fill(0)}let AF=class xx extends t2{constructor(e,n,r,i=!1,s=24){if(super(),this.blockLen=e,this.suffix=n,this.outputLen=r,this.enableXOF=i,this.rounds=s,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,Eh(r),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=dF(this.state)}keccak(){C5||S5(this.state32),EF(this.state32,this.rounds),C5||S5(this.state32),this.posOut=0,this.pos=0}update(e){td(this);const{blockLen:n,state:r}=this;e=nd(e);const i=e.length;for(let s=0;s=r&&this.keccak();const c=Math.min(r-this.posOut,s-i);e.set(n.subarray(this.posOut,this.posOut+c),i),this.posOut+=c,i+=c}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return Eh(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(Ax(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){const{blockLen:n,suffix:r,outputLen:i,rounds:s,enableXOF:c}=this;return e||(e=new xx(n,r,i,c,s)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=s,e.suffix=r,e.outputLen=i,e.enableXOF=c,e.destroyed=this.destroyed,e}};const _F=(t,e,n)=>_x(()=>new AF(e,t,n)),CF=_F(1,136,256/8),SF="https://rpc.walletconnect.org/v1";function Nx(t){const e=`Ethereum Signed Message: +${t.length}`,n=new TextEncoder().encode(e+t);return"0x"+Buffer.from(CF(n)).toString("hex")}async function TF(t,e,n,r,i,s){switch(n.t){case"eip191":return await xF(t,e,n.s);case"eip1271":return await NF(t,e,n.s,r,i,s);default:throw new Error(`verifySignature failed: Attempted to verify CacaoSignature with unknown type: ${n.t}`)}}async function xF(t,e,n){return(await oL({hash:Nx(e),signature:n})).toLowerCase()===t.toLowerCase()}async function NF(t,e,n,r,i,s){const c=Ml(r);if(!c.namespace||!c.reference)throw new Error(`isValidEip1271Signature failed: chainId must be in CAIP-2 format, received: ${r}`);try{const u="0x1626ba7e",f="0000000000000000000000000000000000000000000000000000000000000040",d="0000000000000000000000000000000000000000000000000000000000000041",p=n.substring(2),g=Nx(e).substring(2),m=u+g+f+d+p,y=await fetch(`${s||SF}/?chainId=${r}&projectId=${i}`,{method:"POST",body:JSON.stringify({id:IF(),jsonrpc:"2.0",method:"eth_call",params:[{to:t,data:m},"latest"]})}),{result:A}=await y.json();return A?A.slice(0,u.length).toLowerCase()===u.toLowerCase():!1}catch(u){return console.error("isValidEip1271Signature: ",u),!1}}function IF(){return Date.now()+Math.floor(Math.random()*1e3)}function OF(t){const e=atob(t),n=new Uint8Array(e.length);for(let c=0;ce in t?RF(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,UF=(t,e)=>{for(var n in e||(e={}))MF.call(e,n)&&I5(t,n,e[n]);if(N5)for(var n of N5(e))kF.call(e,n)&&I5(t,n,e[n]);return t},BF=(t,e)=>DF(t,PF(e));const LF="did:pkh:",n2=t=>t==null?void 0:t.split(":"),$F=t=>{const e=t&&n2(t);if(e)return t.includes(LF)?e[3]:e[1]},Sw=t=>{const e=t&&n2(t);if(e)return e[2]+":"+e[3]},Yg=t=>{const e=t&&n2(t);if(e)return e.pop()};async function O5(t){const{cacao:e,projectId:n}=t,{s:r,p:i}=e,s=Ix(i,i.iss),c=Yg(i.iss);return await TF(c,s,r,Sw(i.iss),n)}const Ix=(t,e)=>{const n=`${t.domain} wants you to sign in with your Ethereum account:`,r=Yg(e);if(!t.aud&&!t.uri)throw new Error("Either `aud` or `uri` is required to construct the message");let i=t.statement||void 0;const s=`URI: ${t.aud||t.uri}`,c=`Version: ${t.version}`,u=`Chain ID: ${$F(e)}`,f=`Nonce: ${t.nonce}`,d=`Issued At: ${t.iat}`,p=t.exp?`Expiration Time: ${t.exp}`:void 0,g=t.nbf?`Not Before: ${t.nbf}`:void 0,m=t.requestId?`Request ID: ${t.requestId}`:void 0,y=t.resources?`Resources:${t.resources.map(E=>` +- ${E}`).join("")}`:void 0,A=Ng(t.resources);if(A){const E=Ah(A);i=WF(i,E)}return[n,r,"",i,"",s,c,u,f,d,p,g,m,y].filter(E=>E!=null).join(` +`)};function FF(t){return Buffer.from(JSON.stringify(t)).toString("base64")}function jF(t){return JSON.parse(Buffer.from(t,"base64").toString("utf-8"))}function tu(t){if(!t)throw new Error("No recap provided, value is undefined");if(!t.att)throw new Error("No `att` property found");const e=Object.keys(t.att);if(!(e!=null&&e.length))throw new Error("No resources found in `att` property");e.forEach(n=>{const r=t.att[n];if(Array.isArray(r))throw new Error(`Resource must be an object: ${n}`);if(typeof r!="object")throw new Error(`Resource must be an object: ${n}`);if(!Object.keys(r).length)throw new Error(`Resource object is empty: ${n}`);Object.keys(r).forEach(i=>{const s=r[i];if(!Array.isArray(s))throw new Error(`Ability limits ${i} must be an array of objects, found: ${s}`);if(!s.length)throw new Error(`Value of ${i} is empty array, must be an array with objects`);s.forEach(c=>{if(typeof c!="object")throw new Error(`Ability limits (${i}) must be an array of objects, found: ${c}`)})})})}function zF(t,e,n,r={}){return n==null||n.sort((i,s)=>i.localeCompare(s)),{att:{[t]:qF(e,n,r)}}}function qF(t,e,n={}){e=e==null?void 0:e.sort((i,s)=>i.localeCompare(s));const r=e.map(i=>({[`${t}/${i}`]:[n]}));return Object.assign({},...r)}function Ox(t){return tu(t),`urn:recap:${FF(t).replace(/=/g,"")}`}function Ah(t){const e=jF(t.replace("urn:recap:",""));return tu(e),e}function HF(t,e,n){const r=zF(t,e,n);return Ox(r)}function GF(t){return t&&t.includes("urn:recap:")}function VF(t,e){const n=Ah(t),r=Ah(e),i=KF(n,r);return Ox(i)}function KF(t,e){tu(t),tu(e);const n=Object.keys(t.att).concat(Object.keys(e.att)).sort((i,s)=>i.localeCompare(s)),r={att:{}};return n.forEach(i=>{var s,c;Object.keys(((s=t.att)==null?void 0:s[i])||{}).concat(Object.keys(((c=e.att)==null?void 0:c[i])||{})).sort((u,f)=>u.localeCompare(f)).forEach(u=>{var f,d;r.att[i]=BF(UF({},r.att[i]),{[u]:((f=t.att[i])==null?void 0:f[u])||((d=e.att[i])==null?void 0:d[u])})})}),r}function WF(t="",e){tu(e);const n="I further authorize the stated URI to perform the following actions on my behalf: ";if(t.includes(n))return t;const r=[];let i=0;Object.keys(e.att).forEach(u=>{const f=Object.keys(e.att[u]).map(g=>({ability:g.split("/")[0],action:g.split("/")[1]}));f.sort((g,m)=>g.action.localeCompare(m.action));const d={};f.forEach(g=>{d[g.ability]||(d[g.ability]=[]),d[g.ability].push(g.action)});const p=Object.keys(d).map(g=>(i++,`(${i}) '${g}': '${d[g].join("', '")}' for '${u}'.`));r.push(p.join(", ").replace(".,","."))});const s=r.join(" "),c=`${n}${s}`;return`${t?t+" ":""}${c}`}function R5(t){var e;const n=Ah(t);tu(n);const r=(e=n.att)==null?void 0:e.eip155;return r?Object.keys(r).map(i=>i.split("/")[1]):[]}function D5(t){const e=Ah(t);tu(e);const n=[];return Object.values(e.att).forEach(r=>{Object.values(r).forEach(i=>{var s;(s=i==null?void 0:i[0])!=null&&s.chains&&n.push(i[0].chains)})}),[...new Set(n.flat())]}function Ng(t){if(!t)return;const e=t==null?void 0:t[t.length-1];return GF(e)?e:void 0}function d1(t){if(!Number.isSafeInteger(t)||t<0)throw new Error("positive integer expected, got "+t)}function Rx(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&t.constructor.name==="Uint8Array"}function pi(t,...e){if(!Rx(t))throw new Error("Uint8Array expected");if(e.length>0&&!e.includes(t.length))throw new Error("Uint8Array expected of length "+e+", got length="+t.length)}function P5(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function QF(t,e){pi(t);const n=e.outputLen;if(t.lengthnew Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4)),YF=t=>new DataView(t.buffer,t.byteOffset,t.byteLength),ZF=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;if(!ZF)throw new Error("Non little-endian hardware is not supported");function XF(t){if(typeof t!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(t))}function Tw(t){if(typeof t=="string")t=XF(t);else if(Rx(t))t=xw(t);else throw new Error("Uint8Array expected, got "+typeof t);return t}function JF(t,e){if(e==null||typeof e!="object")throw new Error("options must be defined");return Object.assign(t,e)}function ej(t,e){if(t.length!==e.length)return!1;let n=0;for(let r=0;r{function n(r,...i){if(pi(r),t.nonceLength!==void 0){const d=i[0];if(!d)throw new Error("nonce / iv required");t.varSizeNonce?pi(d):pi(d,t.nonceLength)}const s=t.tagLength;s&&i[1]!==void 0&&pi(i[1]);const c=e(r,...i),u=(d,p)=>{if(p!==void 0){if(d!==2)throw new Error("cipher output not supported");pi(p)}};let f=!1;return{encrypt(d,p){if(f)throw new Error("cannot encrypt() twice with same key + nonce");return f=!0,pi(d),u(c.encrypt.length,p),c.encrypt(d,p)},decrypt(d,p){if(pi(d),s&&d.length>i&s),u=Number(n&s);t.setUint32(e+4,c,r),t.setUint32(e+0,u,r)}function nj(t){return t.byteOffset%4===0}function xw(t){return Uint8Array.from(t)}function rd(...t){for(let e=0;eUint8Array.from(t.split("").map(e=>e.charCodeAt(0))),rj=Dx("expand 16-byte k"),ij=Dx("expand 32-byte k"),sj=$o(rj),aj=$o(ij);function _t(t,e){return t<>>32-e}function Nw(t){return t.byteOffset%4===0}const sg=64,oj=16,Px=2**32-1,B5=new Uint32Array;function cj(t,e,n,r,i,s,c,u){const f=i.length,d=new Uint8Array(sg),p=$o(d),g=Nw(i)&&Nw(s),m=g?$o(i):B5,y=g?$o(s):B5;for(let A=0;A=Px)throw new Error("arx: counter overflow");const E=Math.min(sg,f-A);if(g&&E===sg){const x=A/4;if(A%4!==0)throw new Error("arx: invalid block position");for(let O=0,I;O{pi(u),pi(f),pi(d);const m=d.length;if(p===void 0&&(p=new Uint8Array(m)),pi(p),d1(g),g<0||g>=Px)throw new Error("arx: counter overflow");if(p.lengtht[e++]&255|(t[e++]&255)<<8;let lj=class{constructor(e){this.blockLen=16,this.outputLen=16,this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.pos=0,this.finished=!1,e=Tw(e),pi(e,32);const n=gr(e,0),r=gr(e,2),i=gr(e,4),s=gr(e,6),c=gr(e,8),u=gr(e,10),f=gr(e,12),d=gr(e,14);this.r[0]=n&8191,this.r[1]=(n>>>13|r<<3)&8191,this.r[2]=(r>>>10|i<<6)&7939,this.r[3]=(i>>>7|s<<9)&8191,this.r[4]=(s>>>4|c<<12)&255,this.r[5]=c>>>1&8190,this.r[6]=(c>>>14|u<<2)&8191,this.r[7]=(u>>>11|f<<5)&8065,this.r[8]=(f>>>8|d<<8)&8191,this.r[9]=d>>>5&127;for(let p=0;p<8;p++)this.pad[p]=gr(e,16+2*p)}process(e,n,r=!1){const i=r?0:2048,{h:s,r:c}=this,u=c[0],f=c[1],d=c[2],p=c[3],g=c[4],m=c[5],y=c[6],A=c[7],E=c[8],x=c[9],O=gr(e,n+0),I=gr(e,n+2),M=gr(e,n+4),$=gr(e,n+6),D=gr(e,n+8),R=gr(e,n+10),z=gr(e,n+12),G=gr(e,n+14);let j=s[0]+(O&8191),V=s[1]+((O>>>13|I<<3)&8191),L=s[2]+((I>>>10|M<<6)&8191),v=s[3]+((M>>>7|$<<9)&8191),C=s[4]+(($>>>4|D<<12)&8191),N=s[5]+(D>>>1&8191),T=s[6]+((D>>>14|R<<2)&8191),S=s[7]+((R>>>11|z<<5)&8191),k=s[8]+((z>>>8|G<<8)&8191),F=s[9]+(G>>>5|i),P=0,w=P+j*u+V*(5*x)+L*(5*E)+v*(5*A)+C*(5*y);P=w>>>13,w&=8191,w+=N*(5*m)+T*(5*g)+S*(5*p)+k*(5*d)+F*(5*f),P+=w>>>13,w&=8191;let B=P+j*f+V*u+L*(5*x)+v*(5*E)+C*(5*A);P=B>>>13,B&=8191,B+=N*(5*y)+T*(5*m)+S*(5*g)+k*(5*p)+F*(5*d),P+=B>>>13,B&=8191;let Z=P+j*d+V*f+L*u+v*(5*x)+C*(5*E);P=Z>>>13,Z&=8191,Z+=N*(5*A)+T*(5*y)+S*(5*m)+k*(5*g)+F*(5*p),P+=Z>>>13,Z&=8191;let ee=P+j*p+V*d+L*f+v*u+C*(5*x);P=ee>>>13,ee&=8191,ee+=N*(5*E)+T*(5*A)+S*(5*y)+k*(5*m)+F*(5*g),P+=ee>>>13,ee&=8191;let Y=P+j*g+V*p+L*d+v*f+C*u;P=Y>>>13,Y&=8191,Y+=N*(5*x)+T*(5*E)+S*(5*A)+k*(5*y)+F*(5*m),P+=Y>>>13,Y&=8191;let se=P+j*m+V*g+L*p+v*d+C*f;P=se>>>13,se&=8191,se+=N*u+T*(5*x)+S*(5*E)+k*(5*A)+F*(5*y),P+=se>>>13,se&=8191;let ce=P+j*y+V*m+L*g+v*p+C*d;P=ce>>>13,ce&=8191,ce+=N*f+T*u+S*(5*x)+k*(5*E)+F*(5*A),P+=ce>>>13,ce&=8191;let we=P+j*A+V*y+L*m+v*g+C*p;P=we>>>13,we&=8191,we+=N*d+T*f+S*u+k*(5*x)+F*(5*E),P+=we>>>13,we&=8191;let _e=P+j*E+V*A+L*y+v*m+C*g;P=_e>>>13,_e&=8191,_e+=N*p+T*d+S*f+k*u+F*(5*x),P+=_e>>>13,_e&=8191;let ye=P+j*x+V*E+L*A+v*y+C*m;P=ye>>>13,ye&=8191,ye+=N*g+T*p+S*d+k*f+F*u,P+=ye>>>13,ye&=8191,P=(P<<2)+P|0,P=P+w|0,w=P&8191,P=P>>>13,B+=P,s[0]=w,s[1]=B,s[2]=Z,s[3]=ee,s[4]=Y,s[5]=se,s[6]=ce,s[7]=we,s[8]=_e,s[9]=ye}finalize(){const{h:e,pad:n}=this,r=new Uint16Array(10);let i=e[1]>>>13;e[1]&=8191;for(let u=2;u<10;u++)e[u]+=i,i=e[u]>>>13,e[u]&=8191;e[0]+=i*5,i=e[0]>>>13,e[0]&=8191,e[1]+=i,i=e[1]>>>13,e[1]&=8191,e[2]+=i,r[0]=e[0]+5,i=r[0]>>>13,r[0]&=8191;for(let u=1;u<10;u++)r[u]=e[u]+i,i=r[u]>>>13,r[u]&=8191;r[9]-=8192;let s=(i^1)-1;for(let u=0;u<10;u++)r[u]&=s;s=~s;for(let u=0;u<10;u++)e[u]=e[u]&s|r[u];e[0]=(e[0]|e[1]<<13)&65535,e[1]=(e[1]>>>3|e[2]<<10)&65535,e[2]=(e[2]>>>6|e[3]<<7)&65535,e[3]=(e[3]>>>9|e[4]<<4)&65535,e[4]=(e[4]>>>12|e[5]<<1|e[6]<<14)&65535,e[5]=(e[6]>>>2|e[7]<<11)&65535,e[6]=(e[7]>>>5|e[8]<<8)&65535,e[7]=(e[8]>>>8|e[9]<<5)&65535;let c=e[0]+n[0];e[0]=c&65535;for(let u=1;u<8;u++)c=(e[u]+n[u]|0)+(c>>>16)|0,e[u]=c&65535;rd(r)}update(e){P5(this);const{buffer:n,blockLen:r}=this;e=Tw(e);const i=e.length;for(let s=0;s>>0,e[s++]=r[c]>>>8;return e}digest(){const{buffer:e,outputLen:n}=this;this.digestInto(e);const r=e.slice(0,n);return this.destroy(),r}};function dj(t){const e=(r,i)=>t(i).update(Tw(r)).digest(),n=t(new Uint8Array(32));return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=r=>t(r),e}const fj=dj(t=>new lj(t));function hj(t,e,n,r,i,s=20){let c=t[0],u=t[1],f=t[2],d=t[3],p=e[0],g=e[1],m=e[2],y=e[3],A=e[4],E=e[5],x=e[6],O=e[7],I=i,M=n[0],$=n[1],D=n[2],R=c,z=u,G=f,j=d,V=p,L=g,v=m,C=y,N=A,T=E,S=x,k=O,F=I,P=M,w=$,B=D;for(let ee=0;ee{t.update(e);const n=e.length%16;n&&t.update(gj.subarray(n))},mj=new Uint8Array(32);function $5(t,e,n,r,i){const s=t(e,n,mj),c=fj.create(s);i&&L5(c,i),L5(c,r);const u=new Uint8Array(16),f=YF(u);U5(f,0,BigInt(i?i.length:0),!0),U5(f,8,BigInt(r.length),!0),c.update(u);const d=c.digest();return rd(s,u),d}const bj=t=>(e,n,r)=>({encrypt(i,s){const c=i.length;s=k5(c+16,s,!1),s.set(i);const u=s.subarray(0,-16);t(e,n,u,u,1);const f=$5(t,e,n,u,r);return s.set(f,c),rd(f),s},decrypt(i,s){s=k5(i.length-16,s,!1);const c=i.subarray(0,-16),u=i.subarray(-16),f=$5(t,e,n,c,r);if(!ej(u,f))throw new Error("invalid tag");return s.set(i.subarray(0,-16)),t(e,n,s,s,1),rd(f),s}}),Mx=tj({blockSize:64,nonceLength:12,tagLength:16},bj(pj));let kx=class extends t2{constructor(e,n){super(),this.finished=!1,this.destroyed=!1,e2(e);const r=nd(n);if(this.iHash=e.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const i=this.blockLen,s=new Uint8Array(i);s.set(r.length>i?e.create().update(r).digest():r);for(let c=0;cnew kx(t,e).update(n).digest();r2.create=(t,e)=>new kx(t,e);function yj(t,e,n){return e2(t),n===void 0&&(n=new Uint8Array(t.outputLen)),r2(t,nd(n),nd(e))}const f1=new Uint8Array([0]),F5=new Uint8Array;function vj(t,e,n,r=32){if(e2(t),Eh(r),r>255*t.outputLen)throw new Error("Length should be <= 255*HashLen");const i=Math.ceil(r/t.outputLen);n===void 0&&(n=F5);const s=new Uint8Array(i*t.outputLen),c=r2.create(t,e),u=c._cloneInto(),f=new Uint8Array(c.outputLen);for(let d=0;dvj(t,yj(t,e,n),r,i);function Ej(t,e,n,r){if(typeof t.setBigUint64=="function")return t.setBigUint64(e,n,r);const i=BigInt(32),s=BigInt(4294967295),c=Number(n>>i&s),u=Number(n&s),f=r?4:0,d=r?0:4;t.setUint32(e+f,c,r),t.setUint32(e+d,u,r)}function Aj(t,e,n){return t&e^~t&n}function _j(t,e,n){return t&e^t&n^e&n}class Cj extends t2{constructor(e,n,r,i){super(),this.blockLen=e,this.outputLen=n,this.padOffset=r,this.isLE=i,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=l1(this.buffer)}update(e){td(this);const{view:n,buffer:r,blockLen:i}=this;e=nd(e);const s=e.length;for(let c=0;ci-c&&(this.process(r,0),c=0);for(let g=c;gp.length)throw new Error("_sha2: outputLen bigger than state");for(let g=0;g>>3,E=Ns(y,17)^Ns(y,19)^y>>>10;bo[g]=E+bo[g-7]+A+bo[g-16]|0}let{A:r,B:i,C:s,D:c,E:u,F:f,G:d,H:p}=this;for(let g=0;g<64;g++){const m=Ns(u,6)^Ns(u,11)^Ns(u,25),y=p+m+Aj(u,f,d)+Sj[g]+bo[g]|0,A=(Ns(r,2)^Ns(r,13)^Ns(r,22))+_j(r,i,s)|0;p=d,d=f,f=u,u=c+y|0,c=s,s=i,i=r,r=y+A|0}r=r+this.A|0,i=i+this.B|0,s=s+this.C|0,c=c+this.D|0,u=u+this.E|0,f=f+this.F|0,d=d+this.G|0,p=p+this.H|0,this.set(r,i,s,c,u,f,d,p)}roundClean(){bo.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}};const Um=_x(()=>new Tj);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Ux=BigInt(0);function i2(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&t.constructor.name==="Uint8Array"}function Bx(t){if(!i2(t))throw new Error("Uint8Array expected")}const xj=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function Nj(t){Bx(t);let e="";for(let n=0;n=ya._0&&t<=ya._9)return t-ya._0;if(t>=ya.A&&t<=ya.F)return t-(ya.A-10);if(t>=ya.a&&t<=ya.f)return t-(ya.a-10)}function Lx(t){if(typeof t!="string")throw new Error("hex string expected, got "+typeof t);const e=t.length,n=e/2;if(e%2)throw new Error("hex string expected, got unpadded hex of length "+e);const r=new Uint8Array(n);for(let i=0,s=0;itypeof t=="bigint"&&Ux<=t;function Dj(t,e,n){return h1(t)&&h1(e)&&h1(n)&&e<=t&&ttypeof t=="bigint",function:t=>typeof t=="function",boolean:t=>typeof t=="boolean",string:t=>typeof t=="string",stringOrUint8Array:t=>typeof t=="string"||i2(t),isSafeInteger:t=>Number.isSafeInteger(t),array:t=>Array.isArray(t),field:(t,e)=>e.Fp.isValid(t),hash:t=>typeof t=="function"&&Number.isSafeInteger(t.outputLen)};function Mj(t,e,n={}){const r=(i,s,c)=>{const u=Pj[s];if(typeof u!="function")throw new Error("invalid validator function");const f=t[i];if(!(c&&f===void 0)&&!u(f,t))throw new Error("param "+String(i)+" is invalid. Expected "+s+", got "+f)};for(const[i,s]of Object.entries(e))r(i,s,!1);for(const[i,s]of Object.entries(n))r(i,s,!0);return t}const Rl=BigInt(0),ag=BigInt(1);function $x(t,e){const n=t%e;return n>=Rl?n:e+n}function kj(t,e,n){if(eRl;)e&ag&&(r=r*t%n),t=t*t%n,e>>=ag;return r}function is(t,e,n){let r=t;for(;e-- >Rl;)r*=r,r%=n;return r}BigInt(0),BigInt(1),BigInt(0),BigInt(1),BigInt(2),BigInt(8);const ll=BigInt(0),p1=BigInt(1);function Uj(t){return Mj(t,{a:"bigint"},{montgomeryBits:"isSafeInteger",nByteLength:"isSafeInteger",adjustScalarBytes:"function",domain:"function",powPminus2:"function",Gu:"bigint"}),Object.freeze({...t})}function Bj(t){const e=Uj(t),{P:n}=e,r=I=>$x(I,n),i=e.montgomeryBits,s=Math.ceil(i/8),c=e.nByteLength,u=e.adjustScalarBytes||(I=>I),f=e.powPminus2||(I=>kj(I,n-BigInt(2),n));function d(I,M,$){const D=r(I*(M-$));return M=r(M-D),$=r($+D),[M,$]}const p=(e.a-BigInt(2))/BigInt(4);function g(I,M){H5("u",I,ll,n),H5("scalar",M,ll,n);const $=M,D=I;let R=p1,z=ll,G=I,j=p1,V=ll,L;for(let C=BigInt(i-1);C>=ll;C--){const N=$>>C&p1;V^=N,L=d(V,R,G),R=L[0],G=L[1],L=d(V,z,j),z=L[0],j=L[1],V=N;const T=R+z,S=r(T*T),k=R-z,F=r(k*k),P=S-F,w=G+j,B=G-j,Z=r(B*T),ee=r(w*k),Y=Z+ee,se=Z-ee;G=r(Y*Y),j=r(D*r(se*se)),R=r(S*F),z=r(P*(S+r(p*P)))}L=d(V,R,G),R=L[0],G=L[1],L=d(V,z,j),z=L[0],j=L[1];const v=f(z);return r(R*v)}function m(I){return Rj(r(I),s)}function y(I){const M=q5("u coordinate",I,s);return c===32&&(M[31]&=127),z5(M)}function A(I){const M=q5("scalar",I),$=M.length;if($!==s&&$!==c){let D=""+s+" or "+c;throw new Error("invalid scalar, expected "+D+" bytes, got "+$)}return z5(u(M))}function E(I,M){const $=y(M),D=A(I),R=g($,D);if(R===ll)throw new Error("invalid private or public key received");return m(R)}const x=m(e.Gu);function O(I){return E(I,x)}return{scalarMult:E,scalarMultBase:O,getSharedSecret:(I,M)=>E(I,M),getPublicKey:I=>O(I),utils:{randomPrivateKey:()=>e.randomBytes(e.nByteLength)},GuBytes:x}}const Iw=BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949");BigInt(0);const Lj=BigInt(1),G5=BigInt(2),$j=BigInt(3),Fj=BigInt(5);BigInt(8);function jj(t){const e=BigInt(10),n=BigInt(20),r=BigInt(40),i=BigInt(80),s=Iw,c=t*t%s*t%s,u=is(c,G5,s)*c%s,f=is(u,Lj,s)*t%s,d=is(f,Fj,s)*f%s,p=is(d,e,s)*d%s,g=is(p,n,s)*p%s,m=is(g,r,s)*g%s,y=is(m,i,s)*m%s,A=is(y,i,s)*m%s,E=is(A,e,s)*d%s;return{pow_p_5_8:is(E,G5,s)*t%s,b2:c}}function zj(t){return t[0]&=248,t[31]&=127,t[31]|=64,t}const Ow=Bj({P:Iw,a:BigInt(486662),montgomeryBits:255,nByteLength:32,Gu:BigInt(9),powPminus2:t=>{const e=Iw,{pow_p_5_8:n,b2:r}=jj(t);return $x(is(n,$j,e)*r,e)},adjustScalarBytes:zj,randomBytes:Ap}),Fx="base10",Or="base16",ko="base64pad",jf="base64url",_p="utf8",jx=0,Oa=1,Cp=2,qj=0,V5=1,ch=12,s2=32;function Hj(){const t=Ow.utils.randomPrivateKey(),e=Ow.getPublicKey(t);return{privateKey:$r(t,Or),publicKey:$r(e,Or)}}function Rw(){const t=Ap(s2);return $r(t,Or)}function Gj(t,e){const n=Ow.getSharedSecret(Fi(t,Or),Fi(e,Or)),r=wj(Um,n,void 0,void 0,s2);return $r(r,Or)}function Ig(t){const e=Um(Fi(t,Or));return $r(e,Or)}function Fs(t){const e=Um(Fi(t,_p));return $r(e,Or)}function zx(t){return Fi(`${t}`,Fx)}function nu(t){return Number($r(t,Fx))}function Vj(t){const e=zx(typeof t.type<"u"?t.type:jx);if(nu(e)===Oa&&typeof t.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");const n=typeof t.senderPublicKey<"u"?Fi(t.senderPublicKey,Or):void 0,r=typeof t.iv<"u"?Fi(t.iv,Or):Ap(ch),i=Fi(t.symKey,Or),s=Mx(i,r).encrypt(Fi(t.message,_p));return qx({type:e,sealed:s,iv:r,senderPublicKey:n,encoding:t.encoding})}function Kj(t){const e=Fi(t.symKey,Or),{sealed:n,iv:r}=_h(t),i=Mx(e,r).decrypt(n);if(i===null)throw new Error("Failed to decrypt");return $r(i,_p)}function Wj(t,e){const n=zx(Cp),r=Ap(ch),i=Fi(t,_p);return qx({type:n,sealed:i,iv:r,encoding:e})}function Qj(t,e){const{sealed:n}=_h({encoded:t,encoding:e});return $r(n,_p)}function qx(t){const{encoding:e=ko}=t;if(nu(t.type)===Cp)return $r(kv([t.type,t.sealed]),e);if(nu(t.type)===Oa){if(typeof t.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");return $r(kv([t.type,t.senderPublicKey,t.iv,t.sealed]),e)}return $r(kv([t.type,t.iv,t.sealed]),e)}function _h(t){const{encoded:e,encoding:n=ko}=t,r=Fi(e,n),i=r.slice(qj,V5),s=V5;if(nu(i)===Oa){const d=s+s2,p=d+ch,g=r.slice(s,d),m=r.slice(d,p),y=r.slice(p);return{type:i,sealed:y,iv:m,senderPublicKey:g}}if(nu(i)===Cp){const d=r.slice(s),p=Ap(ch);return{type:i,sealed:d,iv:p}}const c=s+ch,u=r.slice(s,c),f=r.slice(c);return{type:i,sealed:f,iv:u}}function Yj(t,e){const n=_h({encoded:t,encoding:e==null?void 0:e.encoding});return Hx({type:nu(n.type),senderPublicKey:typeof n.senderPublicKey<"u"?$r(n.senderPublicKey,Or):void 0,receiverPublicKey:e==null?void 0:e.receiverPublicKey})}function Hx(t){const e=(t==null?void 0:t.type)||jx;if(e===Oa){if(typeof(t==null?void 0:t.senderPublicKey)>"u")throw new Error("missing sender public key");if(typeof(t==null?void 0:t.receiverPublicKey)>"u")throw new Error("missing receiver public key")}return{type:e,senderPublicKey:t==null?void 0:t.senderPublicKey,receiverPublicKey:t==null?void 0:t.receiverPublicKey}}function K5(t){return t.type===Oa&&typeof t.senderPublicKey=="string"&&typeof t.receiverPublicKey=="string"}function W5(t){return t.type===Cp}function Zj(t){return new U$.ec("p256").keyFromPublic({x:Buffer.from(t.x,"base64").toString("hex"),y:Buffer.from(t.y,"base64").toString("hex")},"hex")}function Xj(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");const n=e.length%4;return n>0&&(e+="=".repeat(4-n)),e}function Jj(t){return Buffer.from(Xj(t),"base64")}function ez(t,e){const[n,r,i]=t.split("."),s=Jj(i);if(s.length!==64)throw new Error("Invalid signature length");const c=s.slice(0,32).toString("hex"),u=s.slice(32,64).toString("hex"),f=`${n}.${r}`,d=Um(f),p=Zj(e),g=$r(d,Or);if(!p.verify(g,{r:c,s:u}))throw new Error("Invalid signature");return mw(t).payload}const tz="irn";function Zg(t){return(t==null?void 0:t.relay)||{protocol:tz}}function th(t){const e=B$[t];if(typeof e>"u")throw new Error(`Relay Protocol not supported: ${t}`);return e}function nz(t,e="-"){const n={},r="relay"+e;return Object.keys(t).forEach(i=>{if(i.startsWith(r)){const s=i.replace(r,""),c=t[i];n[s]=c}}),n}function Q5(t){if(!t.includes("wc:")){const d=Ex(t);d!=null&&d.includes("wc:")&&(t=d)}t=t.includes("wc://")?t.replace("wc://",""):t,t=t.includes("wc:")?t.replace("wc:",""):t;const e=t.indexOf(":"),n=t.indexOf("?")!==-1?t.indexOf("?"):void 0,r=t.substring(0,e),i=t.substring(e+1,n).split("@"),s=typeof n<"u"?t.substring(n):"",c=new URLSearchParams(s),u={};c.forEach((d,p)=>{u[p]=d});const f=typeof u.methods=="string"?u.methods.split(","):void 0;return{protocol:r,topic:rz(i[0]),version:parseInt(i[1],10),symKey:u.symKey,relay:nz(u),methods:f,expiryTimestamp:u.expiryTimestamp?parseInt(u.expiryTimestamp,10):void 0}}function rz(t){return t.startsWith("//")?t.substring(2):t}function iz(t,e="-"){const n="relay",r={};return Object.keys(t).forEach(i=>{const s=i,c=n+e+s;t[s]&&(r[c]=t[s])}),r}function Y5(t){const e=new URLSearchParams,n=iz(t.relay);Object.keys(n).sort().forEach(i=>{e.set(i,n[i])}),e.set("symKey",t.symKey),t.expiryTimestamp&&e.set("expiryTimestamp",t.expiryTimestamp.toString()),t.methods&&e.set("methods",t.methods.join(","));const r=e.toString();return`${t.protocol}:${t.topic}@${t.version}?${r}`}function og(t,e,n){return`${t}?wc_ev=${n}&topic=${e}`}function _d(t){const e=[];return t.forEach(n=>{const[r,i]=n.split(":");e.push(`${r}:${i}`)}),e}function sz(t){const e=[];return Object.values(t).forEach(n=>{e.push(..._d(n.accounts))}),e}function az(t,e){const n=[];return Object.values(t).forEach(r=>{_d(r.accounts).includes(e)&&n.push(...r.methods)}),n}function oz(t,e){const n=[];return Object.values(t).forEach(r=>{_d(r.accounts).includes(e)&&n.push(...r.events)}),n}function a2(t){return t.includes(":")}function nh(t){return a2(t)?t.split(":")[0]:t}function cz(t){const e={};return t==null||t.forEach(n=>{var r;const[i,s]=n.split(":");e[i]||(e[i]={accounts:[],chains:[],events:[],methods:[]}),e[i].accounts.push(n),(r=e[i].chains)==null||r.push(`${i}:${s}`)}),e}function Z5(t,e){e=e.map(r=>r.replace("did:pkh:",""));const n=cz(e);for(const[r,i]of Object.entries(n))i.methods?i.methods=xg(i.methods,t):i.methods=t,i.events=["chainChanged","accountsChanged"];return n}const uz={INVALID_METHOD:{message:"Invalid method.",code:1001},INVALID_EVENT:{message:"Invalid event.",code:1002},INVALID_UPDATE_REQUEST:{message:"Invalid update request.",code:1003},INVALID_EXTEND_REQUEST:{message:"Invalid extend request.",code:1004},INVALID_SESSION_SETTLE_REQUEST:{message:"Invalid session settle request.",code:1005},UNAUTHORIZED_METHOD:{message:"Unauthorized method.",code:3001},UNAUTHORIZED_EVENT:{message:"Unauthorized event.",code:3002},UNAUTHORIZED_UPDATE_REQUEST:{message:"Unauthorized update request.",code:3003},UNAUTHORIZED_EXTEND_REQUEST:{message:"Unauthorized extend request.",code:3004},USER_REJECTED:{message:"User rejected.",code:5e3},USER_REJECTED_CHAINS:{message:"User rejected chains.",code:5001},USER_REJECTED_METHODS:{message:"User rejected methods.",code:5002},USER_REJECTED_EVENTS:{message:"User rejected events.",code:5003},UNSUPPORTED_CHAINS:{message:"Unsupported chains.",code:5100},UNSUPPORTED_METHODS:{message:"Unsupported methods.",code:5101},UNSUPPORTED_EVENTS:{message:"Unsupported events.",code:5102},UNSUPPORTED_ACCOUNTS:{message:"Unsupported accounts.",code:5103},UNSUPPORTED_NAMESPACE_KEY:{message:"Unsupported namespace key.",code:5104},USER_DISCONNECTED:{message:"User disconnected.",code:6e3},SESSION_SETTLEMENT_FAILED:{message:"Session settlement failed.",code:7e3},WC_METHOD_UNSUPPORTED:{message:"Unsupported wc_ method.",code:10001}},lz={NOT_INITIALIZED:{message:"Not initialized.",code:1},NO_MATCHING_KEY:{message:"No matching key.",code:2},RESTORE_WILL_OVERRIDE:{message:"Restore will override.",code:3},RESUBSCRIBED:{message:"Resubscribed.",code:4},MISSING_OR_INVALID:{message:"Missing or invalid.",code:5},EXPIRED:{message:"Expired.",code:6},UNKNOWN_TYPE:{message:"Unknown type.",code:7},MISMATCHED_TOPIC:{message:"Mismatched topic.",code:8},NON_CONFORMING_NAMESPACES:{message:"Non conforming namespaces.",code:9}};function me(t,e){const{message:n,code:r}=lz[t];return{message:e?`${n} ${e}`:n,code:r}}function Qt(t,e){const{message:n,code:r}=uz[t];return{message:e?`${n} ${e}`:n,code:r}}function ru(t,e){return!!Array.isArray(t)}function Ch(t){return Object.getPrototypeOf(t)===Object.prototype&&Object.keys(t).length}function vr(t){return typeof t>"u"}function Vn(t,e){return e&&vr(t)?!0:typeof t=="string"&&!!t.trim().length}function o2(t,e){return e&&vr(t)?!0:typeof t=="number"&&!isNaN(t)}function dz(t,e){const{requiredNamespaces:n}=e,r=Object.keys(t.namespaces),i=Object.keys(n);let s=!0;return Rc(i,r)?(r.forEach(c=>{const{accounts:u,methods:f,events:d}=t.namespaces[c],p=_d(u),g=n[c];(!Rc(mx(c,g),p)||!Rc(g.methods,f)||!Rc(g.events,d))&&(s=!1)}),s):!1}function Xg(t){return Vn(t,!1)&&t.includes(":")?t.split(":").length===2:!1}function fz(t){if(Vn(t,!1)&&t.includes(":")){const e=t.split(":");if(e.length===3){const n=e[0]+":"+e[1];return!!e[2]&&Xg(n)}}return!1}function hz(t){function e(n){try{return typeof new URL(n)<"u"}catch{return!1}}try{if(Vn(t,!1)){if(e(t))return!0;const n=Ex(t);return e(n)}}catch{}return!1}function pz(t){var e;return(e=t==null?void 0:t.proposer)==null?void 0:e.publicKey}function gz(t){return t==null?void 0:t.topic}function mz(t,e){let n=null;return Vn(t==null?void 0:t.publicKey,!1)||(n=me("MISSING_OR_INVALID",`${e} controller public key should be a string`)),n}function X5(t){let e=!0;return ru(t)?t.length&&(e=t.every(n=>Vn(n,!1))):e=!1,e}function bz(t,e,n){let r=null;return ru(e)&&e.length?e.forEach(i=>{r||Xg(i)||(r=Qt("UNSUPPORTED_CHAINS",`${n}, chain ${i} should be a string and conform to "namespace:chainId" format`))}):Xg(t)||(r=Qt("UNSUPPORTED_CHAINS",`${n}, chains must be defined as "namespace:chainId" e.g. "eip155:1": {...} in the namespace key OR as an array of CAIP-2 chainIds e.g. eip155: { chains: ["eip155:1", "eip155:5"] }`)),r}function yz(t,e,n){let r=null;return Object.entries(t).forEach(([i,s])=>{if(r)return;const c=bz(i,mx(i,s),`${e} ${n}`);c&&(r=c)}),r}function vz(t,e){let n=null;return ru(t)?t.forEach(r=>{n||fz(r)||(n=Qt("UNSUPPORTED_ACCOUNTS",`${e}, account ${r} should be a string and conform to "namespace:chainId:address" format`))}):n=Qt("UNSUPPORTED_ACCOUNTS",`${e}, accounts should be an array of strings conforming to "namespace:chainId:address" format`),n}function wz(t,e){let n=null;return Object.values(t).forEach(r=>{if(n)return;const i=vz(r==null?void 0:r.accounts,`${e} namespace`);i&&(n=i)}),n}function Ez(t,e){let n=null;return X5(t==null?void 0:t.methods)?X5(t==null?void 0:t.events)||(n=Qt("UNSUPPORTED_EVENTS",`${e}, events should be an array of strings or empty array for no events`)):n=Qt("UNSUPPORTED_METHODS",`${e}, methods should be an array of strings or empty array for no methods`),n}function Gx(t,e){let n=null;return Object.values(t).forEach(r=>{if(n)return;const i=Ez(r,`${e}, namespace`);i&&(n=i)}),n}function Az(t,e,n){let r=null;if(t&&Ch(t)){const i=Gx(t,e);i&&(r=i);const s=yz(t,e,n);s&&(r=s)}else r=me("MISSING_OR_INVALID",`${e}, ${n} should be an object with data`);return r}function g1(t,e){let n=null;if(t&&Ch(t)){const r=Gx(t,e);r&&(n=r);const i=wz(t,e);i&&(n=i)}else n=me("MISSING_OR_INVALID",`${e}, namespaces should be an object with data`);return n}function Vx(t){return Vn(t.protocol,!0)}function _z(t,e){let n=!1;return t?t&&ru(t)&&t.length&&t.forEach(r=>{n=Vx(r)}):n=!0,n}function Cz(t){return typeof t=="number"}function Zr(t){return typeof t<"u"&&typeof t!==null}function Sz(t){return!(!t||typeof t!="object"||!t.code||!o2(t.code,!1)||!t.message||!Vn(t.message,!1))}function Tz(t){return!(vr(t)||!Vn(t.method,!1))}function xz(t){return!(vr(t)||vr(t.result)&&vr(t.error)||!o2(t.id,!1)||!Vn(t.jsonrpc,!1))}function Nz(t){return!(vr(t)||!Vn(t.name,!1))}function J5(t,e){return!(!Xg(e)||!sz(t).includes(e))}function Iz(t,e,n){return Vn(n,!1)?az(t,e).includes(n):!1}function Oz(t,e,n){return Vn(n,!1)?oz(t,e).includes(n):!1}function e6(t,e,n){let r=null;const i=Rz(t),s=Dz(e),c=Object.keys(i),u=Object.keys(s),f=t6(Object.keys(t)),d=t6(Object.keys(e)),p=f.filter(g=>!d.includes(g));return p.length&&(r=me("NON_CONFORMING_NAMESPACES",`${n} namespaces keys don't satisfy requiredNamespaces. + Required: ${p.toString()} + Received: ${Object.keys(e).toString()}`)),Rc(c,u)||(r=me("NON_CONFORMING_NAMESPACES",`${n} namespaces chains don't satisfy required namespaces. + Required: ${c.toString()} + Approved: ${u.toString()}`)),Object.keys(e).forEach(g=>{if(!g.includes(":")||r)return;const m=_d(e[g].accounts);m.includes(g)||(r=me("NON_CONFORMING_NAMESPACES",`${n} namespaces accounts don't satisfy namespace accounts for ${g} + Required: ${g} + Approved: ${m.toString()}`))}),c.forEach(g=>{r||(Rc(i[g].methods,s[g].methods)?Rc(i[g].events,s[g].events)||(r=me("NON_CONFORMING_NAMESPACES",`${n} namespaces events don't satisfy namespace events for ${g}`)):r=me("NON_CONFORMING_NAMESPACES",`${n} namespaces methods don't satisfy namespace methods for ${g}`))}),r}function Rz(t){const e={};return Object.keys(t).forEach(n=>{var r;n.includes(":")?e[n]=t[n]:(r=t[n].chains)==null||r.forEach(i=>{e[i]={methods:t[n].methods,events:t[n].events}})}),e}function t6(t){return[...new Set(t.map(e=>e.includes(":")?e.split(":")[0]:e))]}function Dz(t){const e={};return Object.keys(t).forEach(n=>{if(n.includes(":"))e[n]=t[n];else{const r=_d(t[n].accounts);r==null||r.forEach(i=>{e[i]={accounts:t[n].accounts.filter(s=>s.includes(`${i}:`)),methods:t[n].methods,events:t[n].events}})}}),e}function Pz(t,e){return o2(t,!1)&&t<=e.max&&t>=e.min}function n6(){const t=Ep();return new Promise(e=>{switch(t){case mi.browser:e(Mz());break;case mi.reactNative:e(kz());break;case mi.node:e(Uz());break;default:e(!0)}})}function Mz(){return wp()&&(navigator==null?void 0:navigator.onLine)}async function kz(){if(Yo()&&typeof global<"u"&&global!=null&&global.NetInfo){const t=await(global==null?void 0:global.NetInfo.fetch());return t==null?void 0:t.isConnected}return!0}function Uz(){return!0}function Bz(t){switch(Ep()){case mi.browser:Lz(t);break;case mi.reactNative:$z(t);break}}function Lz(t){!Yo()&&wp()&&(window.addEventListener("online",()=>t(!0)),window.addEventListener("offline",()=>t(!1)))}function $z(t){Yo()&&typeof global<"u"&&global!=null&&global.NetInfo&&(global==null||global.NetInfo.addEventListener(e=>t(e==null?void 0:e.isConnected)))}const m1={};class zf{static get(e){return m1[e]}static set(e,n){m1[e]=n}static delete(e){delete m1[e]}}const Fz="PARSE_ERROR",jz="INVALID_REQUEST",zz="METHOD_NOT_FOUND",qz="INVALID_PARAMS",Kx="INTERNAL_ERROR",c2="SERVER_ERROR",Hz=[-32700,-32600,-32601,-32602,-32603],uh={[Fz]:{code:-32700,message:"Parse error"},[jz]:{code:-32600,message:"Invalid Request"},[zz]:{code:-32601,message:"Method not found"},[qz]:{code:-32602,message:"Invalid params"},[Kx]:{code:-32603,message:"Internal error"},[c2]:{code:-32e3,message:"Server error"}},Wx=c2;function Gz(t){return Hz.includes(t)}function r6(t){return Object.keys(uh).includes(t)?uh[t]:uh[Wx]}function Vz(t){const e=Object.values(uh).find(n=>n.code===t);return e||uh[Wx]}function Qx(t,e,n){return t.message.includes("getaddrinfo ENOTFOUND")||t.message.includes("connect ECONNREFUSED")?new Error(`Unavailable ${n} RPC url at ${e}`):t}var b1={},va={},i6;function Kz(){if(i6)return va;i6=1,Object.defineProperty(va,"__esModule",{value:!0}),va.isBrowserCryptoAvailable=va.getSubtleCrypto=va.getBrowerCrypto=void 0;function t(){return($s==null?void 0:$s.crypto)||($s==null?void 0:$s.msCrypto)||{}}va.getBrowerCrypto=t;function e(){const r=t();return r.subtle||r.webkitSubtle}va.getSubtleCrypto=e;function n(){return!!t()&&!!e()}return va.isBrowserCryptoAvailable=n,va}var wa={},s6;function Wz(){if(s6)return wa;s6=1,Object.defineProperty(wa,"__esModule",{value:!0}),wa.isBrowser=wa.isNode=wa.isReactNative=void 0;function t(){return typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"}wa.isReactNative=t;function e(){return typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u"}wa.isNode=e;function n(){return!t()&&!e()}return wa.isBrowser=n,wa}var a6;function Qz(){return a6||(a6=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});const e=fp;e.__exportStar(Kz(),t),e.__exportStar(Wz(),t)}(b1)),b1}var Yz=Qz();function Ps(t=3){const e=Date.now()*Math.pow(10,t),n=Math.floor(Math.random()*Math.pow(10,t));return e+n}function Dc(t=6){return BigInt(Ps(t))}function Uo(t,e,n){return{id:n||Ps(),jsonrpc:"2.0",method:t,params:e}}function Bm(t,e){return{id:t,jsonrpc:"2.0",result:e}}function Lm(t,e,n){return{id:t,jsonrpc:"2.0",error:Zz(e)}}function Zz(t,e){return typeof t>"u"?r6(Kx):(typeof t=="string"&&(t=Object.assign(Object.assign({},r6(c2)),{message:t})),Gz(t.code)&&(t=Vz(t.code)),t)}let Xz=class{},Jz=class extends Xz{constructor(){super()}},eq=class extends Jz{constructor(e){super()}};const tq="^https?:",nq="^wss?:";function rq(t){const e=t.match(new RegExp(/^\w+:/,"gi"));if(!(!e||!e.length))return e[0]}function Yx(t,e){const n=rq(t);return typeof n>"u"?!1:new RegExp(e).test(n)}function o6(t){return Yx(t,tq)}function c6(t){return Yx(t,nq)}function iq(t){return new RegExp("wss?://localhost(:d{2,5})?").test(t)}function Zx(t){return typeof t=="object"&&"id"in t&&"jsonrpc"in t&&t.jsonrpc==="2.0"}function u2(t){return Zx(t)&&"method"in t}function $m(t){return Zx(t)&&(Ms(t)||Li(t))}function Ms(t){return"result"in t}function Li(t){return"error"in t}let Gi=class extends eq{constructor(e){super(e),this.events=new zi.EventEmitter,this.hasRegisteredEventListeners=!1,this.connection=this.setConnection(e),this.connection.connected&&this.registerEventListeners()}async connect(e=this.connection){await this.open(e)}async disconnect(){await this.close()}on(e,n){this.events.on(e,n)}once(e,n){this.events.once(e,n)}off(e,n){this.events.off(e,n)}removeListener(e,n){this.events.removeListener(e,n)}async request(e,n){return this.requestStrict(Uo(e.method,e.params||[],e.id||Dc().toString()),n)}async requestStrict(e,n){return new Promise(async(r,i)=>{if(!this.connection.connected)try{await this.open()}catch(s){i(s)}this.events.on(`${e.id}`,s=>{Li(s)?i(s.error):r(s.result)});try{await this.connection.send(e,n)}catch(s){i(s)}})}setConnection(e=this.connection){return e}onPayload(e){this.events.emit("payload",e),$m(e)?this.events.emit(`${e.id}`,e):this.events.emit("message",{type:e.method,data:e.params})}onClose(e){e&&e.code===3e3&&this.events.emit("error",new Error(`WebSocket connection closed abnormally with code: ${e.code} ${e.reason?`(${e.reason})`:""}`)),this.events.emit("disconnect")}async open(e=this.connection){this.connection===e&&this.connection.connected||(this.connection.connected&&this.close(),typeof e=="string"&&(await this.connection.open(e),e=this.connection),this.connection=this.setConnection(e),await this.connection.open(),this.registerEventListeners(),this.events.emit("connect"))}async close(){await this.connection.close()}registerEventListeners(){this.hasRegisteredEventListeners||(this.connection.on("payload",e=>this.onPayload(e)),this.connection.on("close",e=>this.onClose(e)),this.connection.on("error",e=>this.events.emit("error",e)),this.connection.on("register_error",e=>this.onClose()),this.hasRegisteredEventListeners=!0)}};const sq=()=>typeof WebSocket<"u"?WebSocket:typeof global<"u"&&typeof global.WebSocket<"u"?global.WebSocket:typeof window<"u"&&typeof window.WebSocket<"u"?window.WebSocket:typeof self<"u"&&typeof self.WebSocket<"u"?self.WebSocket:require("ws"),aq=()=>typeof WebSocket<"u"||typeof global<"u"&&typeof global.WebSocket<"u"||typeof window<"u"&&typeof window.WebSocket<"u"||typeof self<"u"&&typeof self.WebSocket<"u",u6=t=>t.split("?")[0],l6=10,oq=sq();let cq=class{constructor(e){if(this.url=e,this.events=new zi.EventEmitter,this.registering=!1,!c6(e))throw new Error(`Provided URL is not compatible with WebSocket connection: ${e}`);this.url=e}get connected(){return typeof this.socket<"u"}get connecting(){return this.registering}on(e,n){this.events.on(e,n)}once(e,n){this.events.once(e,n)}off(e,n){this.events.off(e,n)}removeListener(e,n){this.events.removeListener(e,n)}async open(e=this.url){await this.register(e)}async close(){return new Promise((e,n)=>{if(typeof this.socket>"u"){n(new Error("Connection already closed"));return}this.socket.onclose=r=>{this.onClose(r),e()},this.socket.close()})}async send(e){typeof this.socket>"u"&&(this.socket=await this.register());try{this.socket.send(ka(e))}catch(n){this.onError(e.id,n)}}register(e=this.url){if(!c6(e))throw new Error(`Provided URL is not compatible with WebSocket connection: ${e}`);if(this.registering){const n=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=n||this.events.listenerCount("open")>=n)&&this.events.setMaxListeners(n+1),new Promise((r,i)=>{this.events.once("register_error",s=>{this.resetMaxListeners(),i(s)}),this.events.once("open",()=>{if(this.resetMaxListeners(),typeof this.socket>"u")return i(new Error("WebSocket connection is missing or invalid"));r(this.socket)})})}return this.url=e,this.registering=!0,new Promise((n,r)=>{const i=Yz.isReactNative()?void 0:{rejectUnauthorized:!iq(e)},s=new oq(e,[],i);aq()?s.onerror=c=>{const u=c;r(this.emitError(u.error))}:s.on("error",c=>{r(this.emitError(c))}),s.onopen=()=>{this.onOpen(s),n(s)}})}onOpen(e){e.onmessage=n=>this.onPayload(n),e.onclose=n=>this.onClose(n),this.socket=e,this.registering=!1,this.events.emit("open")}onClose(e){this.socket=void 0,this.registering=!1,this.events.emit("close",e)}onPayload(e){if(typeof e.data>"u")return;const n=typeof e.data=="string"?Xc(e.data):e.data;this.events.emit("payload",n)}onError(e,n){const r=this.parseError(n),i=r.message||r.toString(),s=Lm(e,i);this.events.emit("payload",s)}parseError(e,n=this.url){return Qx(e,u6(n),"WS")}resetMaxListeners(){this.events.getMaxListeners()>l6&&this.events.setMaxListeners(l6)}emitError(e){const n=this.parseError(new Error((e==null?void 0:e.message)||`WebSocket connection failed for host: ${u6(this.url)}`));return this.events.emit("register_error",n),n}};const Xx="wc",Jx=2,Dw="core",zs=`${Xx}@2:${Dw}:`,uq={logger:"error"},lq={database:":memory:"},dq="crypto",d6="client_ed25519_seed",fq=ge.ONE_DAY,hq="keychain",pq="0.3",gq="messages",mq="0.3",f6=ge.SIX_HOURS,bq="publisher",eN="irn",yq="error",tN="wss://relay.walletconnect.org",vq="relayer",or={message:"relayer_message",message_ack:"relayer_message_ack",connect:"relayer_connect",disconnect:"relayer_disconnect",error:"relayer_error",connection_stalled:"relayer_connection_stalled",transport_closed:"relayer_transport_closed",publish:"relayer_publish"},wq="_subscription",Ri={payload:"payload",connect:"connect",disconnect:"disconnect",error:"error"},Eq=.1,Pw="2.19.1",hn={link_mode:"link_mode",relay:"relay"},Og={inbound:"inbound",outbound:"outbound"},Aq="0.3",_q="WALLETCONNECT_CLIENT_ID",h6="WALLETCONNECT_LINK_MODE_APPS",hi={created:"subscription_created",deleted:"subscription_deleted",expired:"subscription_expired",disabled:"subscription_disabled",sync:"subscription_sync",resubscribed:"subscription_resubscribed"},Cq="subscription",Sq="0.3",Tq="pairing",xq="0.3",qf={wc_pairingDelete:{req:{ttl:ge.ONE_DAY,prompt:!1,tag:1e3},res:{ttl:ge.ONE_DAY,prompt:!1,tag:1001}},wc_pairingPing:{req:{ttl:ge.THIRTY_SECONDS,prompt:!1,tag:1002},res:{ttl:ge.THIRTY_SECONDS,prompt:!1,tag:1003}},unregistered_method:{req:{ttl:ge.ONE_DAY,prompt:!1,tag:0},res:{ttl:ge.ONE_DAY,prompt:!1,tag:0}}},Ic={create:"pairing_create",expire:"pairing_expire",delete:"pairing_delete",ping:"pairing_ping"},ts={created:"history_created",updated:"history_updated",deleted:"history_deleted",sync:"history_sync"},Nq="history",Iq="0.3",Oq="expirer",Ui={created:"expirer_created",deleted:"expirer_deleted",expired:"expirer_expired",sync:"expirer_sync"},Rq="0.3",Dq="verify-api",Pq="https://verify.walletconnect.com",nN="https://verify.walletconnect.org",lh=nN,Mq=`${lh}/v3`,kq=[Pq,nN],Uq="echo",Bq="https://echo.walletconnect.com",Ds={pairing_started:"pairing_started",pairing_uri_validation_success:"pairing_uri_validation_success",pairing_uri_not_expired:"pairing_uri_not_expired",store_new_pairing:"store_new_pairing",subscribing_pairing_topic:"subscribing_pairing_topic",subscribe_pairing_topic_success:"subscribe_pairing_topic_success",existing_pairing:"existing_pairing",pairing_not_expired:"pairing_not_expired",emit_inactive_pairing:"emit_inactive_pairing",emit_session_proposal:"emit_session_proposal",subscribing_to_pairing_topic:"subscribing_to_pairing_topic"},Ca={no_wss_connection:"no_wss_connection",no_internet_connection:"no_internet_connection",malformed_pairing_uri:"malformed_pairing_uri",active_pairing_already_exists:"active_pairing_already_exists",subscribe_pairing_topic_failure:"subscribe_pairing_topic_failure",pairing_expired:"pairing_expired",proposal_expired:"proposal_expired",proposal_listener_not_found:"proposal_listener_not_found"},ns={session_approve_started:"session_approve_started",proposal_not_expired:"proposal_not_expired",session_namespaces_validation_success:"session_namespaces_validation_success",create_session_topic:"create_session_topic",subscribing_session_topic:"subscribing_session_topic",subscribe_session_topic_success:"subscribe_session_topic_success",publishing_session_approve:"publishing_session_approve",session_approve_publish_success:"session_approve_publish_success",store_session:"store_session",publishing_session_settle:"publishing_session_settle",session_settle_publish_success:"session_settle_publish_success"},Ac={no_internet_connection:"no_internet_connection",no_wss_connection:"no_wss_connection",proposal_expired:"proposal_expired",subscribe_session_topic_failure:"subscribe_session_topic_failure",session_approve_publish_failure:"session_approve_publish_failure",session_settle_publish_failure:"session_settle_publish_failure",session_approve_namespace_validation_failure:"session_approve_namespace_validation_failure",proposal_not_found:"proposal_not_found"},_c={authenticated_session_approve_started:"authenticated_session_approve_started",create_authenticated_session_topic:"create_authenticated_session_topic",cacaos_verified:"cacaos_verified",store_authenticated_session:"store_authenticated_session",subscribing_authenticated_session_topic:"subscribing_authenticated_session_topic",subscribe_authenticated_session_topic_success:"subscribe_authenticated_session_topic_success",publishing_authenticated_session_approve:"publishing_authenticated_session_approve"},Hf={no_internet_connection:"no_internet_connection",invalid_cacao:"invalid_cacao",subscribe_authenticated_session_topic_failure:"subscribe_authenticated_session_topic_failure",authenticated_session_approve_publish_failure:"authenticated_session_approve_publish_failure",authenticated_session_pending_request_not_found:"authenticated_session_pending_request_not_found"},Lq=.1,$q="event-client",Fq=86400,jq="https://pulse.walletconnect.org/batch";function zq(t,e){if(t.length>=255)throw new TypeError("Alphabet too long");for(var n=new Uint8Array(256),r=0;r>>0,$=new Uint8Array(M);O!==I;){for(var D=A[O],R=0,z=M-1;(D!==0||R>>0,$[z]=D%u>>>0,D=D/u>>>0;if(D!==0)throw new Error("Non-zero carry");x=R,O++}for(var G=M-x;G!==M&&$[G]===0;)G++;for(var j=f.repeat(E);G>>0,M=new Uint8Array(I);A[E];){var $=n[A.charCodeAt(E)];if($===255)return;for(var D=0,R=I-1;($!==0||D>>0,M[R]=$%256>>>0,$=$/256>>>0;if($!==0)throw new Error("Non-zero carry");O=D,E++}if(A[E]!==" "){for(var z=I-O;z!==I&&M[z]===0;)z++;for(var G=new Uint8Array(x+(I-z)),j=x;z!==I;)G[j++]=M[z++];return G}}}function y(A){var E=m(A);if(E)return E;throw new Error(`Non-${e} character`)}return{encode:g,decodeUnsafe:m,decode:y}}var qq=zq,Hq=qq;const rN=t=>{if(t instanceof Uint8Array&&t.constructor.name==="Uint8Array")return t;if(t instanceof ArrayBuffer)return new Uint8Array(t);if(ArrayBuffer.isView(t))return new Uint8Array(t.buffer,t.byteOffset,t.byteLength);throw new Error("Unknown type, must be binary type")},Gq=t=>new TextEncoder().encode(t),Vq=t=>new TextDecoder().decode(t);class Kq{constructor(e,n,r){this.name=e,this.prefix=n,this.baseEncode=r}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}}class Wq{constructor(e,n,r){if(this.name=e,this.prefix=n,n.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=n.codePointAt(0),this.baseDecode=r}decode(e){if(typeof e=="string"){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(e){return iN(this,e)}}class Qq{constructor(e){this.decoders=e}or(e){return iN(this,e)}decode(e){const n=e[0],r=this.decoders[n];if(r)return r.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const iN=(t,e)=>new Qq({...t.decoders||{[t.prefix]:t},...e.decoders||{[e.prefix]:e}});class Yq{constructor(e,n,r,i){this.name=e,this.prefix=n,this.baseEncode=r,this.baseDecode=i,this.encoder=new Kq(e,n,r),this.decoder=new Wq(e,n,i)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}}const Fm=({name:t,prefix:e,encode:n,decode:r})=>new Yq(t,e,n,r),Sp=({prefix:t,name:e,alphabet:n})=>{const{encode:r,decode:i}=Hq(n,e);return Fm({prefix:t,name:e,encode:r,decode:s=>rN(i(s))})},Zq=(t,e,n,r)=>{const i={};for(let p=0;p=8&&(u-=8,c[d++]=255&f>>u)}if(u>=n||255&f<<8-u)throw new SyntaxError("Unexpected end of data");return c},Xq=(t,e,n)=>{const r=e[e.length-1]==="=",i=(1<n;)c-=n,s+=e[i&u>>c];if(c&&(s+=e[i&u<Fm({prefix:e,name:t,encode(i){return Xq(i,r,n)},decode(i){return Zq(i,r,n,t)}}),Jq=Fm({prefix:"\0",name:"identity",encode:t=>Vq(t),decode:t=>Gq(t)});var eH=Object.freeze({__proto__:null,identity:Jq});const tH=_r({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1});var nH=Object.freeze({__proto__:null,base2:tH});const rH=_r({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3});var iH=Object.freeze({__proto__:null,base8:rH});const sH=Sp({prefix:"9",name:"base10",alphabet:"0123456789"});var aH=Object.freeze({__proto__:null,base10:sH});const oH=_r({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),cH=_r({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4});var uH=Object.freeze({__proto__:null,base16:oH,base16upper:cH});const lH=_r({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),dH=_r({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),fH=_r({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),hH=_r({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),pH=_r({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),gH=_r({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),mH=_r({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),bH=_r({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),yH=_r({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});var vH=Object.freeze({__proto__:null,base32:lH,base32upper:dH,base32pad:fH,base32padupper:hH,base32hex:pH,base32hexupper:gH,base32hexpad:mH,base32hexpadupper:bH,base32z:yH});const wH=Sp({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),EH=Sp({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"});var AH=Object.freeze({__proto__:null,base36:wH,base36upper:EH});const _H=Sp({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),CH=Sp({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});var SH=Object.freeze({__proto__:null,base58btc:_H,base58flickr:CH});const TH=_r({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),xH=_r({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),NH=_r({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),IH=_r({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6});var OH=Object.freeze({__proto__:null,base64:TH,base64pad:xH,base64url:NH,base64urlpad:IH});const sN=Array.from("🚀🪐☄🛰🌌🌑🌒🌓🌔🌕🌖🌗🌘🌍🌏🌎🐉☀💻🖥💾💿😂❤😍🤣😊🙏💕😭😘👍😅👏😁🔥🥰💔💖💙😢🤔😆🙄💪😉☺👌🤗💜😔😎😇🌹🤦🎉💞✌✨🤷😱😌🌸🙌😋💗💚😏💛🙂💓🤩😄😀🖤😃💯🙈👇🎶😒🤭❣😜💋👀😪😑💥🙋😞😩😡🤪👊🥳😥🤤👉💃😳✋😚😝😴🌟😬🙃🍀🌷😻😓⭐✅🥺🌈😈🤘💦✔😣🏃💐☹🎊💘😠☝😕🌺🎂🌻😐🖕💝🙊😹🗣💫💀👑🎵🤞😛🔴😤🌼😫⚽🤙☕🏆🤫👈😮🙆🍻🍃🐶💁😲🌿🧡🎁⚡🌞🎈❌✊👋😰🤨😶🤝🚶💰🍓💢🤟🙁🚨💨🤬✈🎀🍺🤓😙💟🌱😖👶🥴▶➡❓💎💸⬇😨🌚🦋😷🕺⚠🙅😟😵👎🤲🤠🤧📌🔵💅🧐🐾🍒😗🤑🌊🤯🐷☎💧😯💆👆🎤🙇🍑❄🌴💣🐸💌📍🥀🤢👅💡💩👐📸👻🤐🤮🎼🥵🚩🍎🍊👼💍📣🥂"),RH=sN.reduce((t,e,n)=>(t[n]=e,t),[]),DH=sN.reduce((t,e,n)=>(t[e.codePointAt(0)]=n,t),[]);function PH(t){return t.reduce((e,n)=>(e+=RH[n],e),"")}function MH(t){const e=[];for(const n of t){const r=DH[n.codePointAt(0)];if(r===void 0)throw new Error(`Non-base256emoji character: ${n}`);e.push(r)}return new Uint8Array(e)}const kH=Fm({prefix:"🚀",name:"base256emoji",encode:PH,decode:MH});var UH=Object.freeze({__proto__:null,base256emoji:kH}),BH=aN,p6=128,LH=-128,$H=Math.pow(2,31);function aN(t,e,n){e=e||[],n=n||0;for(var r=n;t>=$H;)e[n++]=t&255|p6,t/=128;for(;t&LH;)e[n++]=t&255|p6,t>>>=7;return e[n]=t|0,aN.bytes=n-r+1,e}var FH=Mw,jH=128,g6=127;function Mw(t,r){var n=0,r=r||0,i=0,s=r,c,u=t.length;do{if(s>=u)throw Mw.bytes=0,new RangeError("Could not decode varint");c=t[s++],n+=i<28?(c&g6)<=jH);return Mw.bytes=s-r,n}var zH=Math.pow(2,7),qH=Math.pow(2,14),HH=Math.pow(2,21),GH=Math.pow(2,28),VH=Math.pow(2,35),KH=Math.pow(2,42),WH=Math.pow(2,49),QH=Math.pow(2,56),YH=Math.pow(2,63),ZH=function(t){return t(oN.encode(t,e,n),e),b6=t=>oN.encodingLength(t),kw=(t,e)=>{const n=e.byteLength,r=b6(t),i=r+b6(n),s=new Uint8Array(i+n);return m6(t,s,0),m6(n,s,r),s.set(e,i),new JH(t,n,e,s)};class JH{constructor(e,n,r,i){this.code=e,this.size=n,this.digest=r,this.bytes=i}}const cN=({name:t,code:e,encode:n})=>new eG(t,e,n);class eG{constructor(e,n,r){this.name=e,this.code=n,this.encode=r}digest(e){if(e instanceof Uint8Array){const n=this.encode(e);return n instanceof Uint8Array?kw(this.code,n):n.then(r=>kw(this.code,r))}else throw Error("Unknown type, must be binary type")}}const uN=t=>async e=>new Uint8Array(await crypto.subtle.digest(t,e)),tG=cN({name:"sha2-256",code:18,encode:uN("SHA-256")}),nG=cN({name:"sha2-512",code:19,encode:uN("SHA-512")});var rG=Object.freeze({__proto__:null,sha256:tG,sha512:nG});const lN=0,iG="identity",dN=rN,sG=t=>kw(lN,dN(t)),aG={code:lN,name:iG,encode:dN,digest:sG};var oG=Object.freeze({__proto__:null,identity:aG});new TextEncoder,new TextDecoder;const y6={...eH,...nH,...iH,...aH,...uH,...vH,...AH,...SH,...OH,...UH};({...rG,...oG});function cG(t=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?globalThis.Buffer.allocUnsafe(t):new Uint8Array(t)}function fN(t,e,n,r){return{name:t,prefix:e,encoder:{name:t,prefix:e,encode:n},decoder:{decode:r}}}const v6=fN("utf8","u",t=>"u"+new TextDecoder("utf8").decode(t),t=>new TextEncoder().encode(t.substring(1))),y1=fN("ascii","a",t=>{let e="a";for(let n=0;n{t=t.substring(1);const e=cG(t.length);for(let n=0;ne in t?dG(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Is=(t,e,n)=>fG(t,typeof e!="symbol"?e+"":e,n);class hG{constructor(e,n){this.core=e,this.logger=n,Is(this,"keychain",new Map),Is(this,"name",hq),Is(this,"version",pq),Is(this,"initialized",!1),Is(this,"storagePrefix",zs),Is(this,"init",async()=>{if(!this.initialized){const r=await this.getKeyChain();typeof r<"u"&&(this.keychain=r),this.initialized=!0}}),Is(this,"has",r=>(this.isInitialized(),this.keychain.has(r))),Is(this,"set",async(r,i)=>{this.isInitialized(),this.keychain.set(r,i),await this.persist()}),Is(this,"get",r=>{this.isInitialized();const i=this.keychain.get(r);if(typeof i>"u"){const{message:s}=me("NO_MATCHING_KEY",`${this.name}: ${r}`);throw new Error(s)}return i}),Is(this,"del",async r=>{this.isInitialized(),this.keychain.delete(r),await this.persist()}),this.core=e,this.logger=Pr(n,this.name)}get context(){return ni(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}async setKeyChain(e){await this.core.storage.setItem(this.storageKey,_w(e))}async getKeyChain(){const e=await this.core.storage.getItem(this.storageKey);return typeof e<"u"?Cw(e):void 0}async persist(){await this.setKeyChain(this.keychain)}isInitialized(){if(!this.initialized){const{message:e}=me("NOT_INITIALIZED",this.name);throw new Error(e)}}}var pG=Object.defineProperty,gG=(t,e,n)=>e in t?pG(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,mr=(t,e,n)=>gG(t,typeof e!="symbol"?e+"":e,n);class mG{constructor(e,n,r){this.core=e,this.logger=n,mr(this,"name",dq),mr(this,"keychain"),mr(this,"randomSessionIdentifier",Rw()),mr(this,"initialized",!1),mr(this,"init",async()=>{this.initialized||(await this.keychain.init(),this.initialized=!0)}),mr(this,"hasKeys",i=>(this.isInitialized(),this.keychain.has(i))),mr(this,"getClientId",async()=>{this.isInitialized();const i=await this.getClientSeed(),s=_S(i);return xT(s.publicKey)}),mr(this,"generateKeyPair",()=>{this.isInitialized();const i=Hj();return this.setPrivateKey(i.publicKey,i.privateKey)}),mr(this,"signJWT",async i=>{this.isInitialized();const s=await this.getClientSeed(),c=_S(s),u=this.randomSessionIdentifier;return await bU(u,i,fq,c)}),mr(this,"generateSharedKey",(i,s,c)=>{this.isInitialized();const u=this.getPrivateKey(i),f=Gj(u,s);return this.setSymKey(f,c)}),mr(this,"setSymKey",async(i,s)=>{this.isInitialized();const c=s||Ig(i);return await this.keychain.set(c,i),c}),mr(this,"deleteKeyPair",async i=>{this.isInitialized(),await this.keychain.del(i)}),mr(this,"deleteSymKey",async i=>{this.isInitialized(),await this.keychain.del(i)}),mr(this,"encode",async(i,s,c)=>{this.isInitialized();const u=Hx(c),f=ka(s);if(W5(u))return Wj(f,c==null?void 0:c.encoding);if(K5(u)){const m=u.senderPublicKey,y=u.receiverPublicKey;i=await this.generateSharedKey(m,y)}const d=this.getSymKey(i),{type:p,senderPublicKey:g}=u;return Vj({type:p,symKey:d,message:f,senderPublicKey:g,encoding:c==null?void 0:c.encoding})}),mr(this,"decode",async(i,s,c)=>{this.isInitialized();const u=Yj(s,c);if(W5(u)){const f=Qj(s,c==null?void 0:c.encoding);return Xc(f)}if(K5(u)){const f=u.receiverPublicKey,d=u.senderPublicKey;i=await this.generateSharedKey(f,d)}try{const f=this.getSymKey(i),d=Kj({symKey:f,encoded:s,encoding:c==null?void 0:c.encoding});return Xc(d)}catch(f){this.logger.error(`Failed to decode message from topic: '${i}', clientId: '${await this.getClientId()}'`),this.logger.error(f)}}),mr(this,"getPayloadType",(i,s=ko)=>{const c=_h({encoded:i,encoding:s});return nu(c.type)}),mr(this,"getPayloadSenderPublicKey",(i,s=ko)=>{const c=_h({encoded:i,encoding:s});return c.senderPublicKey?$r(c.senderPublicKey,Or):void 0}),this.core=e,this.logger=Pr(n,this.name),this.keychain=r||new hG(this.core,this.logger)}get context(){return ni(this.logger)}async setPrivateKey(e,n){return await this.keychain.set(e,n),e}getPrivateKey(e){return this.keychain.get(e)}async getClientSeed(){let e="";try{e=this.keychain.get(d6)}catch{e=Rw(),await this.keychain.set(d6,e)}return lG(e,"base16")}getSymKey(e){return this.keychain.get(e)}isInitialized(){if(!this.initialized){const{message:e}=me("NOT_INITIALIZED",this.name);throw new Error(e)}}}var bG=Object.defineProperty,yG=Object.defineProperties,vG=Object.getOwnPropertyDescriptors,w6=Object.getOwnPropertySymbols,wG=Object.prototype.hasOwnProperty,EG=Object.prototype.propertyIsEnumerable,Uw=(t,e,n)=>e in t?bG(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,AG=(t,e)=>{for(var n in e||(e={}))wG.call(e,n)&&Uw(t,n,e[n]);if(w6)for(var n of w6(e))EG.call(e,n)&&Uw(t,n,e[n]);return t},_G=(t,e)=>yG(t,vG(e)),di=(t,e,n)=>Uw(t,typeof e!="symbol"?e+"":e,n);class CG extends gP{constructor(e,n){super(e,n),this.logger=e,this.core=n,di(this,"messages",new Map),di(this,"messagesWithoutClientAck",new Map),di(this,"name",gq),di(this,"version",mq),di(this,"initialized",!1),di(this,"storagePrefix",zs),di(this,"init",async()=>{if(!this.initialized){this.logger.trace("Initialized");try{const r=await this.getRelayerMessages();typeof r<"u"&&(this.messages=r);const i=await this.getRelayerMessagesWithoutClientAck();typeof i<"u"&&(this.messagesWithoutClientAck=i),this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",size:this.messages.size})}catch(r){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(r)}finally{this.initialized=!0}}}),di(this,"set",async(r,i,s)=>{this.isInitialized();const c=Fs(i);let u=this.messages.get(r);if(typeof u>"u"&&(u={}),typeof u[c]<"u")return c;if(u[c]=i,this.messages.set(r,u),s===Og.inbound){const f=this.messagesWithoutClientAck.get(r)||{};this.messagesWithoutClientAck.set(r,_G(AG({},f),{[c]:i}))}return await this.persist(),c}),di(this,"get",r=>{this.isInitialized();let i=this.messages.get(r);return typeof i>"u"&&(i={}),i}),di(this,"getWithoutAck",r=>{this.isInitialized();const i={};for(const s of r){const c=this.messagesWithoutClientAck.get(s)||{};i[s]=Object.values(c)}return i}),di(this,"has",(r,i)=>{this.isInitialized();const s=this.get(r),c=Fs(i);return typeof s[c]<"u"}),di(this,"ack",async(r,i)=>{this.isInitialized();const s=this.messagesWithoutClientAck.get(r);if(typeof s>"u")return;const c=Fs(i);delete s[c],Object.keys(s).length===0?this.messagesWithoutClientAck.delete(r):this.messagesWithoutClientAck.set(r,s),await this.persist()}),di(this,"del",async r=>{this.isInitialized(),this.messages.delete(r),this.messagesWithoutClientAck.delete(r),await this.persist()}),this.logger=Pr(e,this.name),this.core=n}get context(){return ni(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get storageKeyWithoutClientAck(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name+"_withoutClientAck"}async setRelayerMessages(e){await this.core.storage.setItem(this.storageKey,_w(e))}async setRelayerMessagesWithoutClientAck(e){await this.core.storage.setItem(this.storageKeyWithoutClientAck,_w(e))}async getRelayerMessages(){const e=await this.core.storage.getItem(this.storageKey);return typeof e<"u"?Cw(e):void 0}async getRelayerMessagesWithoutClientAck(){const e=await this.core.storage.getItem(this.storageKeyWithoutClientAck);return typeof e<"u"?Cw(e):void 0}async persist(){await this.setRelayerMessages(this.messages),await this.setRelayerMessagesWithoutClientAck(this.messagesWithoutClientAck)}isInitialized(){if(!this.initialized){const{message:e}=me("NOT_INITIALIZED",this.name);throw new Error(e)}}}var SG=Object.defineProperty,TG=Object.defineProperties,xG=Object.getOwnPropertyDescriptors,E6=Object.getOwnPropertySymbols,NG=Object.prototype.hasOwnProperty,IG=Object.prototype.propertyIsEnumerable,Bw=(t,e,n)=>e in t?SG(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,cg=(t,e)=>{for(var n in e||(e={}))NG.call(e,n)&&Bw(t,n,e[n]);if(E6)for(var n of E6(e))IG.call(e,n)&&Bw(t,n,e[n]);return t},v1=(t,e)=>TG(t,xG(e)),rs=(t,e,n)=>Bw(t,typeof e!="symbol"?e+"":e,n);class OG extends mP{constructor(e,n){super(e,n),this.relayer=e,this.logger=n,rs(this,"events",new zi.EventEmitter),rs(this,"name",bq),rs(this,"queue",new Map),rs(this,"publishTimeout",ge.toMiliseconds(ge.ONE_MINUTE)),rs(this,"initialPublishTimeout",ge.toMiliseconds(ge.ONE_SECOND*15)),rs(this,"needsTransportRestart",!1),rs(this,"publish",async(r,i,s)=>{var c;this.logger.debug("Publishing Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:r,message:i,opts:s}});const u=(s==null?void 0:s.ttl)||f6,f=Zg(s),d=(s==null?void 0:s.prompt)||!1,p=(s==null?void 0:s.tag)||0,g=(s==null?void 0:s.id)||Dc().toString(),m={topic:r,message:i,opts:{ttl:u,relay:f,prompt:d,tag:p,id:g,attestation:s==null?void 0:s.attestation,tvf:s==null?void 0:s.tvf}},y=`Failed to publish payload, please try again. id:${g} tag:${p}`;try{const A=new Promise(async E=>{const x=({id:I})=>{m.opts.id===I&&(this.removeRequestFromQueue(I),this.relayer.events.removeListener(or.publish,x),E(m))};this.relayer.events.on(or.publish,x);const O=Mo(new Promise((I,M)=>{this.rpcPublish({topic:r,message:i,ttl:u,prompt:d,tag:p,id:g,attestation:s==null?void 0:s.attestation,tvf:s==null?void 0:s.tvf}).then(I).catch($=>{this.logger.warn($,$==null?void 0:$.message),M($)})}),this.initialPublishTimeout,`Failed initial publish, retrying.... id:${g} tag:${p}`);try{await O,this.events.removeListener(or.publish,x)}catch(I){this.queue.set(g,v1(cg({},m),{attempt:1})),this.logger.warn(I,I==null?void 0:I.message)}});this.logger.trace({type:"method",method:"publish",params:{id:g,topic:r,message:i,opts:s}}),await Mo(A,this.publishTimeout,y)}catch(A){if(this.logger.debug("Failed to Publish Payload"),this.logger.error(A),(c=s==null?void 0:s.internal)!=null&&c.throwOnFailedPublish)throw A}finally{this.queue.delete(g)}}),rs(this,"on",(r,i)=>{this.events.on(r,i)}),rs(this,"once",(r,i)=>{this.events.once(r,i)}),rs(this,"off",(r,i)=>{this.events.off(r,i)}),rs(this,"removeListener",(r,i)=>{this.events.removeListener(r,i)}),this.relayer=e,this.logger=Pr(n,this.name),this.registerEventListeners()}get context(){return ni(this.logger)}async rpcPublish(e){var n,r,i,s;const{topic:c,message:u,ttl:f=f6,prompt:d,tag:p,id:g,attestation:m,tvf:y}=e,A={method:th(Zg().protocol).publish,params:cg({topic:c,message:u,ttl:f,prompt:d,tag:p,attestation:m},y),id:g};vr((n=A.params)==null?void 0:n.prompt)&&((r=A.params)==null||delete r.prompt),vr((i=A.params)==null?void 0:i.tag)&&((s=A.params)==null||delete s.tag),this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"message",direction:"outgoing",request:A});const E=await this.relayer.request(A);return this.relayer.events.emit(or.publish,e),this.logger.debug("Successfully Published Payload"),E}removeRequestFromQueue(e){this.queue.delete(e)}checkQueue(){this.queue.forEach(async(e,n)=>{const r=e.attempt+1;this.queue.set(n,v1(cg({},e),{attempt:r}));const{topic:i,message:s,opts:c,attestation:u}=e;this.logger.warn({},`Publisher: queue->publishing: ${e.opts.id}, tag: ${e.opts.tag}, attempt: ${r}`),await this.rpcPublish(v1(cg({},e),{topic:i,message:s,ttl:c.ttl,prompt:c.prompt,tag:c.tag,id:c.id,attestation:u,tvf:c.tvf})),this.logger.warn({},`Publisher: queue->published: ${e.opts.id}`)})}registerEventListeners(){this.relayer.core.heartbeat.on(bd.pulse,()=>{if(this.needsTransportRestart){this.needsTransportRestart=!1,this.relayer.events.emit(or.connection_stalled);return}this.checkQueue()}),this.relayer.on(or.message_ack,e=>{this.removeRequestFromQueue(e.id.toString())})}}var RG=Object.defineProperty,DG=(t,e,n)=>e in t?RG(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,dl=(t,e,n)=>DG(t,typeof e!="symbol"?e+"":e,n);class PG{constructor(){dl(this,"map",new Map),dl(this,"set",(e,n)=>{const r=this.get(e);this.exists(e,n)||this.map.set(e,[...r,n])}),dl(this,"get",e=>this.map.get(e)||[]),dl(this,"exists",(e,n)=>this.get(e).includes(n)),dl(this,"delete",(e,n)=>{if(typeof n>"u"){this.map.delete(e);return}if(!this.map.has(e))return;const r=this.get(e);if(!this.exists(e,n))return;const i=r.filter(s=>s!==n);if(!i.length){this.map.delete(e);return}this.map.set(e,i)}),dl(this,"clear",()=>{this.map.clear()})}get topics(){return Array.from(this.map.keys())}}var MG=Object.defineProperty,kG=Object.defineProperties,UG=Object.getOwnPropertyDescriptors,A6=Object.getOwnPropertySymbols,BG=Object.prototype.hasOwnProperty,LG=Object.prototype.propertyIsEnumerable,Lw=(t,e,n)=>e in t?MG(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Gf=(t,e)=>{for(var n in e||(e={}))BG.call(e,n)&&Lw(t,n,e[n]);if(A6)for(var n of A6(e))LG.call(e,n)&&Lw(t,n,e[n]);return t},w1=(t,e)=>kG(t,UG(e)),tn=(t,e,n)=>Lw(t,typeof e!="symbol"?e+"":e,n);class $G extends vP{constructor(e,n){super(e,n),this.relayer=e,this.logger=n,tn(this,"subscriptions",new Map),tn(this,"topicMap",new PG),tn(this,"events",new zi.EventEmitter),tn(this,"name",Cq),tn(this,"version",Sq),tn(this,"pending",new Map),tn(this,"cached",[]),tn(this,"initialized",!1),tn(this,"storagePrefix",zs),tn(this,"subscribeTimeout",ge.toMiliseconds(ge.ONE_MINUTE)),tn(this,"initialSubscribeTimeout",ge.toMiliseconds(ge.ONE_SECOND*15)),tn(this,"clientId"),tn(this,"batchSubscribeTopicsLimit",500),tn(this,"init",async()=>{this.initialized||(this.logger.trace("Initialized"),this.registerEventListeners(),await this.restore()),this.initialized=!0}),tn(this,"subscribe",async(r,i)=>{this.isInitialized(),this.logger.debug("Subscribing Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:r,opts:i}});try{const s=Zg(i),c={topic:r,relay:s,transportType:i==null?void 0:i.transportType};this.pending.set(r,c);const u=await this.rpcSubscribe(r,s,i);return typeof u=="string"&&(this.onSubscribe(u,c),this.logger.debug("Successfully Subscribed Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:r,opts:i}})),u}catch(s){throw this.logger.debug("Failed to Subscribe Topic"),this.logger.error(s),s}}),tn(this,"unsubscribe",async(r,i)=>{this.isInitialized(),typeof(i==null?void 0:i.id)<"u"?await this.unsubscribeById(r,i.id,i):await this.unsubscribeByTopic(r,i)}),tn(this,"isSubscribed",r=>new Promise(i=>{i(this.topicMap.topics.includes(r))})),tn(this,"isKnownTopic",r=>new Promise(i=>{i(this.topicMap.topics.includes(r)||this.pending.has(r)||this.cached.some(s=>s.topic===r))})),tn(this,"on",(r,i)=>{this.events.on(r,i)}),tn(this,"once",(r,i)=>{this.events.once(r,i)}),tn(this,"off",(r,i)=>{this.events.off(r,i)}),tn(this,"removeListener",(r,i)=>{this.events.removeListener(r,i)}),tn(this,"start",async()=>{await this.onConnect()}),tn(this,"stop",async()=>{await this.onDisconnect()}),tn(this,"restart",async()=>{await this.restore(),await this.onRestart()}),tn(this,"checkPending",async()=>{if(this.pending.size===0&&(!this.initialized||!this.relayer.connected))return;const r=[];this.pending.forEach(i=>{r.push(i)}),await this.batchSubscribe(r)}),tn(this,"registerEventListeners",()=>{this.relayer.core.heartbeat.on(bd.pulse,async()=>{await this.checkPending()}),this.events.on(hi.created,async r=>{const i=hi.created;this.logger.info(`Emitting ${i}`),this.logger.debug({type:"event",event:i,data:r}),await this.persist()}),this.events.on(hi.deleted,async r=>{const i=hi.deleted;this.logger.info(`Emitting ${i}`),this.logger.debug({type:"event",event:i,data:r}),await this.persist()})}),this.relayer=e,this.logger=Pr(n,this.name),this.clientId=""}get context(){return ni(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.relayer.core.customStoragePrefix+"//"+this.name}get length(){return this.subscriptions.size}get ids(){return Array.from(this.subscriptions.keys())}get values(){return Array.from(this.subscriptions.values())}get topics(){return this.topicMap.topics}get hasAnyTopics(){return this.topicMap.topics.length>0||this.pending.size>0||this.cached.length>0||this.subscriptions.size>0}hasSubscription(e,n){let r=!1;try{r=this.getSubscription(e).topic===n}catch{}return r}reset(){this.cached=[],this.initialized=!0}onDisable(){this.cached=this.values,this.subscriptions.clear(),this.topicMap.clear()}async unsubscribeByTopic(e,n){const r=this.topicMap.get(e);await Promise.all(r.map(async i=>await this.unsubscribeById(e,i,n)))}async unsubscribeById(e,n,r){this.logger.debug("Unsubscribing Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:e,id:n,opts:r}});try{const i=Zg(r);await this.restartToComplete({topic:e,id:n,relay:i}),await this.rpcUnsubscribe(e,n,i);const s=Qt("USER_DISCONNECTED",`${this.name}, ${e}`);await this.onUnsubscribe(e,n,s),this.logger.debug("Successfully Unsubscribed Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:e,id:n,opts:r}})}catch(i){throw this.logger.debug("Failed to Unsubscribe Topic"),this.logger.error(i),i}}async rpcSubscribe(e,n,r){var i;(!r||(r==null?void 0:r.transportType)===hn.relay)&&await this.restartToComplete({topic:e,id:e,relay:n});const s={method:th(n.protocol).subscribe,params:{topic:e}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:s});const c=(i=r==null?void 0:r.internal)==null?void 0:i.throwOnFailedPublish;try{const u=await this.getSubscriptionId(e);if((r==null?void 0:r.transportType)===hn.link_mode)return setTimeout(()=>{(this.relayer.connected||this.relayer.connecting)&&this.relayer.request(s).catch(p=>this.logger.warn(p))},ge.toMiliseconds(ge.ONE_SECOND)),u;const f=new Promise(async p=>{const g=m=>{m.topic===e&&(this.events.removeListener(hi.created,g),p(m.id))};this.events.on(hi.created,g);try{const m=await Mo(new Promise((y,A)=>{this.relayer.request(s).catch(E=>{this.logger.warn(E,E==null?void 0:E.message),A(E)}).then(y)}),this.initialSubscribeTimeout,`Subscribing to ${e} failed, please try again`);this.events.removeListener(hi.created,g),p(m)}catch{}}),d=await Mo(f,this.subscribeTimeout,`Subscribing to ${e} failed, please try again`);if(!d&&c)throw new Error(`Subscribing to ${e} failed, please try again`);return d?u:null}catch(u){if(this.logger.debug("Outgoing Relay Subscribe Payload stalled"),this.relayer.events.emit(or.connection_stalled),c)throw u}return null}async rpcBatchSubscribe(e){if(!e.length)return;const n=e[0].relay,r={method:th(n.protocol).batchSubscribe,params:{topics:e.map(i=>i.topic)}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:r});try{await await Mo(new Promise(i=>{this.relayer.request(r).catch(s=>this.logger.warn(s)).then(i)}),this.subscribeTimeout,"rpcBatchSubscribe failed, please try again")}catch{this.relayer.events.emit(or.connection_stalled)}}async rpcBatchFetchMessages(e){if(!e.length)return;const n=e[0].relay,r={method:th(n.protocol).batchFetchMessages,params:{topics:e.map(s=>s.topic)}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:r});let i;try{i=await await Mo(new Promise((s,c)=>{this.relayer.request(r).catch(u=>{this.logger.warn(u),c(u)}).then(s)}),this.subscribeTimeout,"rpcBatchFetchMessages failed, please try again")}catch{this.relayer.events.emit(or.connection_stalled)}return i}rpcUnsubscribe(e,n,r){const i={method:th(r.protocol).unsubscribe,params:{topic:e,id:n}};return this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:i}),this.relayer.request(i)}onSubscribe(e,n){this.setSubscription(e,w1(Gf({},n),{id:e})),this.pending.delete(n.topic)}onBatchSubscribe(e){e.length&&e.forEach(n=>{this.setSubscription(n.id,Gf({},n)),this.pending.delete(n.topic)})}async onUnsubscribe(e,n,r){this.events.removeAllListeners(n),this.hasSubscription(n,e)&&this.deleteSubscription(n,r),await this.relayer.messages.del(e)}async setRelayerSubscriptions(e){await this.relayer.core.storage.setItem(this.storageKey,e)}async getRelayerSubscriptions(){return await this.relayer.core.storage.getItem(this.storageKey)}setSubscription(e,n){this.logger.debug("Setting subscription"),this.logger.trace({type:"method",method:"setSubscription",id:e,subscription:n}),this.addSubscription(e,n)}addSubscription(e,n){this.subscriptions.set(e,Gf({},n)),this.topicMap.set(n.topic,e),this.events.emit(hi.created,n)}getSubscription(e){this.logger.debug("Getting subscription"),this.logger.trace({type:"method",method:"getSubscription",id:e});const n=this.subscriptions.get(e);if(!n){const{message:r}=me("NO_MATCHING_KEY",`${this.name}: ${e}`);throw new Error(r)}return n}deleteSubscription(e,n){this.logger.debug("Deleting subscription"),this.logger.trace({type:"method",method:"deleteSubscription",id:e,reason:n});const r=this.getSubscription(e);this.subscriptions.delete(e),this.topicMap.delete(r.topic,e),this.events.emit(hi.deleted,w1(Gf({},r),{reason:n}))}async persist(){await this.setRelayerSubscriptions(this.values),this.events.emit(hi.sync)}async onRestart(){if(this.cached.length){const e=[...this.cached],n=Math.ceil(this.cached.length/this.batchSubscribeTopicsLimit);for(let r=0;r"u"||!e.length)return;if(this.subscriptions.size){const{message:n}=me("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(n),this.logger.error(`${this.name}: ${JSON.stringify(this.values)}`),new Error(n)}this.cached=e,this.logger.debug(`Successfully Restored subscriptions for ${this.name}`),this.logger.trace({type:"method",method:"restore",subscriptions:this.values})}catch(e){this.logger.debug(`Failed to Restore subscriptions for ${this.name}`),this.logger.error(e)}}async batchSubscribe(e){e.length&&(await this.rpcBatchSubscribe(e),this.onBatchSubscribe(await Promise.all(e.map(async n=>w1(Gf({},n),{id:await this.getSubscriptionId(n.topic)})))))}async batchFetchMessages(e){if(!e.length)return;this.logger.trace(`Fetching batch messages for ${e.length} subscriptions`);const n=await this.rpcBatchFetchMessages(e);n&&n.messages&&(await rF(ge.toMiliseconds(ge.ONE_SECOND)),await this.relayer.handleBatchMessageEvents(n.messages))}async onConnect(){await this.restart(),this.reset()}onDisconnect(){this.onDisable()}isInitialized(){if(!this.initialized){const{message:e}=me("NOT_INITIALIZED",this.name);throw new Error(e)}}async restartToComplete(e){!this.relayer.connected&&!this.relayer.connecting&&(this.cached.push(e),await this.relayer.transportOpen())}async getClientId(){return this.clientId||(this.clientId=await this.relayer.core.crypto.getClientId()),this.clientId}async getSubscriptionId(e){return Fs(e+await this.getClientId())}}var FG=Object.defineProperty,_6=Object.getOwnPropertySymbols,jG=Object.prototype.hasOwnProperty,zG=Object.prototype.propertyIsEnumerable,$w=(t,e,n)=>e in t?FG(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,C6=(t,e)=>{for(var n in e||(e={}))jG.call(e,n)&&$w(t,n,e[n]);if(_6)for(var n of _6(e))zG.call(e,n)&&$w(t,n,e[n]);return t},Ct=(t,e,n)=>$w(t,typeof e!="symbol"?e+"":e,n);class qG extends bP{constructor(e){super(e),Ct(this,"protocol","wc"),Ct(this,"version",2),Ct(this,"core"),Ct(this,"logger"),Ct(this,"events",new zi.EventEmitter),Ct(this,"provider"),Ct(this,"messages"),Ct(this,"subscriber"),Ct(this,"publisher"),Ct(this,"name",vq),Ct(this,"transportExplicitlyClosed",!1),Ct(this,"initialized",!1),Ct(this,"connectionAttemptInProgress",!1),Ct(this,"relayUrl"),Ct(this,"projectId"),Ct(this,"packageName"),Ct(this,"bundleId"),Ct(this,"hasExperiencedNetworkDisruption",!1),Ct(this,"pingTimeout"),Ct(this,"heartBeatTimeout",ge.toMiliseconds(ge.THIRTY_SECONDS+ge.FIVE_SECONDS)),Ct(this,"reconnectTimeout"),Ct(this,"connectPromise"),Ct(this,"reconnectInProgress",!1),Ct(this,"requestsInFlight",[]),Ct(this,"connectTimeout",ge.toMiliseconds(ge.ONE_SECOND*15)),Ct(this,"request",async n=>{var r,i;this.logger.debug("Publishing Request Payload");const s=n.id||Dc().toString();await this.toEstablishConnection();try{this.logger.trace({id:s,method:n.method,topic:(r=n.params)==null?void 0:r.topic},"relayer.request - publishing...");const c=`${s}:${((i=n.params)==null?void 0:i.tag)||""}`;this.requestsInFlight.push(c);const u=await this.provider.request(n);return this.requestsInFlight=this.requestsInFlight.filter(f=>f!==c),u}catch(c){throw this.logger.debug(`Failed to Publish Request: ${s}`),c}}),Ct(this,"resetPingTimeout",()=>{Qg()&&(clearTimeout(this.pingTimeout),this.pingTimeout=setTimeout(()=>{var n,r,i,s;try{this.logger.debug({},"pingTimeout: Connection stalled, terminating..."),(s=(i=(r=(n=this.provider)==null?void 0:n.connection)==null?void 0:r.socket)==null?void 0:i.terminate)==null||s.call(i)}catch(c){this.logger.warn(c,c==null?void 0:c.message)}},this.heartBeatTimeout))}),Ct(this,"onPayloadHandler",n=>{this.onProviderPayload(n),this.resetPingTimeout()}),Ct(this,"onConnectHandler",()=>{this.logger.warn({},"Relayer connected 🛜"),this.startPingTimeout(),this.events.emit(or.connect)}),Ct(this,"onDisconnectHandler",()=>{this.logger.warn({},"Relayer disconnected 🛑"),this.requestsInFlight=[],this.onProviderDisconnect()}),Ct(this,"onProviderErrorHandler",n=>{this.logger.fatal(`Fatal socket error: ${n.message}`),this.events.emit(or.error,n),this.logger.fatal("Fatal socket error received, closing transport"),this.transportClose()}),Ct(this,"registerProviderListeners",()=>{this.provider.on(Ri.payload,this.onPayloadHandler),this.provider.on(Ri.connect,this.onConnectHandler),this.provider.on(Ri.disconnect,this.onDisconnectHandler),this.provider.on(Ri.error,this.onProviderErrorHandler)}),this.core=e.core,this.logger=typeof e.logger<"u"&&typeof e.logger!="string"?Pr(e.logger,this.name):pp(yd({level:e.logger||yq})),this.messages=new CG(this.logger,e.core),this.subscriber=new $G(this,this.logger),this.publisher=new OG(this,this.logger),this.relayUrl=(e==null?void 0:e.relayUrl)||tN,this.projectId=e.projectId,z$()?this.packageName=w5():q$()&&(this.bundleId=w5()),this.provider={}}async init(){if(this.logger.trace("Initialized"),this.registerEventListeners(),await Promise.all([this.messages.init(),this.subscriber.init()]),this.initialized=!0,this.subscriber.hasAnyTopics)try{await this.transportOpen()}catch(e){this.logger.warn(e,e==null?void 0:e.message)}}get context(){return ni(this.logger)}get connected(){var e,n,r;return((r=(n=(e=this.provider)==null?void 0:e.connection)==null?void 0:n.socket)==null?void 0:r.readyState)===1||!1}get connecting(){var e,n,r;return((r=(n=(e=this.provider)==null?void 0:e.connection)==null?void 0:n.socket)==null?void 0:r.readyState)===0||this.connectPromise!==void 0||!1}async publish(e,n,r){this.isInitialized(),await this.publisher.publish(e,n,r),await this.recordMessageEvent({topic:e,message:n,publishedAt:Date.now(),transportType:hn.relay},Og.outbound)}async subscribe(e,n){var r,i,s;this.isInitialized(),(!(n!=null&&n.transportType)||(n==null?void 0:n.transportType)==="relay")&&await this.toEstablishConnection();const c=typeof((r=n==null?void 0:n.internal)==null?void 0:r.throwOnFailedPublish)>"u"?!0:(i=n==null?void 0:n.internal)==null?void 0:i.throwOnFailedPublish;let u=((s=this.subscriber.topicMap.get(e))==null?void 0:s[0])||"",f;const d=p=>{p.topic===e&&(this.subscriber.off(hi.created,d),f())};return await Promise.all([new Promise(p=>{f=p,this.subscriber.on(hi.created,d)}),new Promise(async(p,g)=>{u=await this.subscriber.subscribe(e,C6({internal:{throwOnFailedPublish:c}},n)).catch(m=>{c&&g(m)})||u,p()})]),u}async unsubscribe(e,n){this.isInitialized(),await this.subscriber.unsubscribe(e,n)}on(e,n){this.events.on(e,n)}once(e,n){this.events.once(e,n)}off(e,n){this.events.off(e,n)}removeListener(e,n){this.events.removeListener(e,n)}async transportDisconnect(){this.provider.disconnect&&(this.hasExperiencedNetworkDisruption||this.connected)?await Mo(this.provider.disconnect(),2e3,"provider.disconnect()").catch(()=>this.onProviderDisconnect()):this.onProviderDisconnect()}async transportClose(){this.transportExplicitlyClosed=!0,await this.transportDisconnect()}async transportOpen(e){if(!this.subscriber.hasAnyTopics){this.logger.warn("Starting WS connection skipped because the client has no topics to work with.");return}if(this.connectPromise?(this.logger.debug({},"Waiting for existing connection attempt to resolve..."),await this.connectPromise,this.logger.debug({},"Existing connection attempt resolved")):(this.connectPromise=new Promise(async(n,r)=>{await this.connect(e).then(n).catch(r).finally(()=>{this.connectPromise=void 0})}),await this.connectPromise),!this.connected)throw new Error(`Couldn't establish socket connection to the relay server: ${this.relayUrl}`)}async restartTransport(e){this.logger.debug({},"Restarting transport..."),!this.connectionAttemptInProgress&&(this.relayUrl=e||this.relayUrl,await this.confirmOnlineStateOrThrow(),await this.transportClose(),await this.transportOpen())}async confirmOnlineStateOrThrow(){if(!await n6())throw new Error("No internet connection detected. Please restart your network and try again.")}async handleBatchMessageEvents(e){if((e==null?void 0:e.length)===0){this.logger.trace("Batch message events is empty. Ignoring...");return}const n=e.sort((r,i)=>r.publishedAt-i.publishedAt);this.logger.debug(`Batch of ${n.length} message events sorted`);for(const r of n)try{await this.onMessageEvent(r)}catch(i){this.logger.warn(i,"Error while processing batch message event: "+(i==null?void 0:i.message))}this.logger.trace(`Batch of ${n.length} message events processed`)}async onLinkMessageEvent(e,n){const{topic:r}=e;if(!n.sessionExists){const i=Zn(ge.FIVE_MINUTES),s={topic:r,expiry:i,relay:{protocol:"irn"},active:!1};await this.core.pairing.pairings.set(r,s)}this.events.emit(or.message,e),await this.recordMessageEvent(e,Og.inbound)}async connect(e){await this.confirmOnlineStateOrThrow(),e&&e!==this.relayUrl&&(this.relayUrl=e,await this.transportDisconnect()),this.connectionAttemptInProgress=!0,this.transportExplicitlyClosed=!1;let n=1;for(;n<6;){try{if(this.transportExplicitlyClosed)break;this.logger.debug({},`Connecting to ${this.relayUrl}, attempt: ${n}...`),await this.createProvider(),await new Promise(async(r,i)=>{const s=()=>{i(new Error("Connection interrupted while trying to subscribe"))};this.provider.once(Ri.disconnect,s),await Mo(new Promise((c,u)=>{this.provider.connect().then(c).catch(u)}),this.connectTimeout,`Socket stalled when trying to connect to ${this.relayUrl}`).catch(c=>{i(c)}).finally(()=>{this.provider.off(Ri.disconnect,s),clearTimeout(this.reconnectTimeout)}),await new Promise(async(c,u)=>{const f=()=>{u(new Error("Connection interrupted while trying to subscribe"))};this.provider.once(Ri.disconnect,f),await this.subscriber.start().then(c).catch(u).finally(()=>{this.provider.off(Ri.disconnect,f)})}),this.hasExperiencedNetworkDisruption=!1,r()})}catch(r){await this.subscriber.stop();const i=r;this.logger.warn({},i.message),this.hasExperiencedNetworkDisruption=!0}finally{this.connectionAttemptInProgress=!1}if(this.connected){this.logger.debug({},`Connected to ${this.relayUrl} successfully on attempt: ${n}`);break}await new Promise(r=>setTimeout(r,ge.toMiliseconds(n*1))),n++}}startPingTimeout(){var e,n,r,i,s;if(Qg())try{(n=(e=this.provider)==null?void 0:e.connection)!=null&&n.socket&&((s=(i=(r=this.provider)==null?void 0:r.connection)==null?void 0:i.socket)==null||s.on("ping",()=>{this.resetPingTimeout()})),this.resetPingTimeout()}catch(c){this.logger.warn(c,c==null?void 0:c.message)}}async createProvider(){this.provider.connection&&this.unregisterProviderListeners();const e=await this.core.crypto.signJWT(this.relayUrl);this.provider=new Gi(new cq(K$({sdkVersion:Pw,protocol:this.protocol,version:this.version,relayUrl:this.relayUrl,projectId:this.projectId,auth:e,useOnCloseEvent:!0,bundleId:this.bundleId,packageName:this.packageName}))),this.registerProviderListeners()}async recordMessageEvent(e,n){const{topic:r,message:i}=e;await this.messages.set(r,i,n)}async shouldIgnoreMessageEvent(e){const{topic:n,message:r}=e;if(!r||r.length===0)return this.logger.warn(`Ignoring invalid/empty message: ${r}`),!0;if(!await this.subscriber.isKnownTopic(n))return this.logger.warn(`Ignoring message for unknown topic ${n}`),!0;const i=this.messages.has(n,r);return i&&this.logger.warn(`Ignoring duplicate message: ${r}`),i}async onProviderPayload(e){if(this.logger.debug("Incoming Relay Payload"),this.logger.trace({type:"payload",direction:"incoming",payload:e}),u2(e)){if(!e.method.endsWith(wq))return;const n=e.params,{topic:r,message:i,publishedAt:s,attestation:c}=n.data,u={topic:r,message:i,publishedAt:s,transportType:hn.relay,attestation:c};this.logger.debug("Emitting Relayer Payload"),this.logger.trace(C6({type:"event",event:n.id},u)),this.events.emit(n.id,u),await this.acknowledgePayload(e),await this.onMessageEvent(u)}else $m(e)&&this.events.emit(or.message_ack,e)}async onMessageEvent(e){await this.shouldIgnoreMessageEvent(e)||(await this.recordMessageEvent(e,Og.inbound),this.events.emit(or.message,e))}async acknowledgePayload(e){const n=Bm(e.id,!0);await this.provider.connection.send(n)}unregisterProviderListeners(){this.provider.off(Ri.payload,this.onPayloadHandler),this.provider.off(Ri.connect,this.onConnectHandler),this.provider.off(Ri.disconnect,this.onDisconnectHandler),this.provider.off(Ri.error,this.onProviderErrorHandler),clearTimeout(this.pingTimeout)}async registerEventListeners(){let e=await n6();Bz(async n=>{e!==n&&(e=n,n?await this.transportOpen().catch(r=>this.logger.error(r,r==null?void 0:r.message)):(this.hasExperiencedNetworkDisruption=!0,await this.transportDisconnect(),this.transportExplicitlyClosed=!1))})}async onProviderDisconnect(){clearTimeout(this.pingTimeout),this.events.emit(or.disconnect),this.connectionAttemptInProgress=!1,!this.reconnectInProgress&&(this.reconnectInProgress=!0,await this.subscriber.stop(),this.subscriber.hasAnyTopics&&(this.transportExplicitlyClosed||(this.reconnectTimeout=setTimeout(async()=>{await this.transportOpen().catch(e=>this.logger.error(e,e==null?void 0:e.message)),this.reconnectTimeout=void 0,this.reconnectInProgress=!1},ge.toMiliseconds(Eq)))))}isInitialized(){if(!this.initialized){const{message:e}=me("NOT_INITIALIZED",this.name);throw new Error(e)}}async toEstablishConnection(){await this.confirmOnlineStateOrThrow(),!this.connected&&await this.connect()}}function HG(){}function S6(t){if(!t||typeof t!="object")return!1;const e=Object.getPrototypeOf(t);return e===null||e===Object.prototype||Object.getPrototypeOf(e)===null?Object.prototype.toString.call(t)==="[object Object]":!1}function T6(t){return Object.getOwnPropertySymbols(t).filter(e=>Object.prototype.propertyIsEnumerable.call(t,e))}function x6(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const GG="[object RegExp]",VG="[object String]",KG="[object Number]",WG="[object Boolean]",N6="[object Arguments]",QG="[object Symbol]",YG="[object Date]",ZG="[object Map]",XG="[object Set]",JG="[object Array]",eV="[object Function]",tV="[object ArrayBuffer]",E1="[object Object]",nV="[object Error]",rV="[object DataView]",iV="[object Uint8Array]",sV="[object Uint8ClampedArray]",aV="[object Uint16Array]",oV="[object Uint32Array]",cV="[object BigUint64Array]",uV="[object Int8Array]",lV="[object Int16Array]",dV="[object Int32Array]",fV="[object BigInt64Array]",hV="[object Float32Array]",pV="[object Float64Array]";function gV(t,e){return t===e||Number.isNaN(t)&&Number.isNaN(e)}function mV(t,e,n){return rh(t,e,void 0,void 0,void 0,void 0,n)}function rh(t,e,n,r,i,s,c){const u=c(t,e,n,r,i,s);if(u!==void 0)return u;if(typeof t==typeof e)switch(typeof t){case"bigint":case"string":case"boolean":case"symbol":case"undefined":return t===e;case"number":return t===e||Object.is(t,e);case"function":return t===e;case"object":return dh(t,e,s,c)}return dh(t,e,s,c)}function dh(t,e,n,r){if(Object.is(t,e))return!0;let i=x6(t),s=x6(e);if(i===N6&&(i=E1),s===N6&&(s=E1),i!==s)return!1;switch(i){case VG:return t.toString()===e.toString();case KG:{const f=t.valueOf(),d=e.valueOf();return gV(f,d)}case WG:case YG:case QG:return Object.is(t.valueOf(),e.valueOf());case GG:return t.source===e.source&&t.flags===e.flags;case eV:return t===e}n=n??new Map;const c=n.get(t),u=n.get(e);if(c!=null&&u!=null)return c===e;n.set(t,e),n.set(e,t);try{switch(i){case ZG:{if(t.size!==e.size)return!1;for(const[f,d]of t.entries())if(!e.has(f)||!rh(d,e.get(f),f,t,e,n,r))return!1;return!0}case XG:{if(t.size!==e.size)return!1;const f=Array.from(t.values()),d=Array.from(e.values());for(let p=0;prh(g,y,void 0,t,e,n,r));if(m===-1)return!1;d.splice(m,1)}return!0}case JG:case iV:case sV:case aV:case oV:case cV:case uV:case lV:case dV:case fV:case hV:case pV:{if(typeof Buffer<"u"&&Buffer.isBuffer(t)!==Buffer.isBuffer(e)||t.length!==e.length)return!1;for(let f=0;fe in t?yV(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,O6=(t,e)=>{for(var n in e||(e={}))vV.call(e,n)&&Fw(t,n,e[n]);if(I6)for(var n of I6(e))wV.call(e,n)&&Fw(t,n,e[n]);return t},Kr=(t,e,n)=>Fw(t,typeof e!="symbol"?e+"":e,n);class Eu extends yP{constructor(e,n,r,i=zs,s=void 0){super(e,n,r,i),this.core=e,this.logger=n,this.name=r,Kr(this,"map",new Map),Kr(this,"version",Aq),Kr(this,"cached",[]),Kr(this,"initialized",!1),Kr(this,"getKey"),Kr(this,"storagePrefix",zs),Kr(this,"recentlyDeleted",[]),Kr(this,"recentlyDeletedLimit",200),Kr(this,"init",async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(c=>{this.getKey&&c!==null&&!vr(c)?this.map.set(this.getKey(c),c):pz(c)?this.map.set(c.id,c):gz(c)&&this.map.set(c.topic,c)}),this.cached=[],this.initialized=!0)}),Kr(this,"set",async(c,u)=>{this.isInitialized(),this.map.has(c)?await this.update(c,u):(this.logger.debug("Setting value"),this.logger.trace({type:"method",method:"set",key:c,value:u}),this.map.set(c,u),await this.persist())}),Kr(this,"get",c=>(this.isInitialized(),this.logger.debug("Getting value"),this.logger.trace({type:"method",method:"get",key:c}),this.getData(c))),Kr(this,"getAll",c=>(this.isInitialized(),c?this.values.filter(u=>Object.keys(c).every(f=>bV(u[f],c[f]))):this.values)),Kr(this,"update",async(c,u)=>{this.isInitialized(),this.logger.debug("Updating value"),this.logger.trace({type:"method",method:"update",key:c,update:u});const f=O6(O6({},this.getData(c)),u);this.map.set(c,f),await this.persist()}),Kr(this,"delete",async(c,u)=>{this.isInitialized(),this.map.has(c)&&(this.logger.debug("Deleting value"),this.logger.trace({type:"method",method:"delete",key:c,reason:u}),this.map.delete(c),this.addToRecentlyDeleted(c),await this.persist())}),this.logger=Pr(n,this.name),this.storagePrefix=i,this.getKey=s}get context(){return ni(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get length(){return this.map.size}get keys(){return Array.from(this.map.keys())}get values(){return Array.from(this.map.values())}addToRecentlyDeleted(e){this.recentlyDeleted.push(e),this.recentlyDeleted.length>=this.recentlyDeletedLimit&&this.recentlyDeleted.splice(0,this.recentlyDeletedLimit/2)}async setDataStore(e){await this.core.storage.setItem(this.storageKey,e)}async getDataStore(){return await this.core.storage.getItem(this.storageKey)}getData(e){const n=this.map.get(e);if(!n){if(this.recentlyDeleted.includes(e)){const{message:i}=me("MISSING_OR_INVALID",`Record was recently deleted - ${this.name}: ${e}`);throw this.logger.error(i),new Error(i)}const{message:r}=me("NO_MATCHING_KEY",`${this.name}: ${e}`);throw this.logger.error(r),new Error(r)}return n}async persist(){await this.setDataStore(this.values)}async restore(){try{const e=await this.getDataStore();if(typeof e>"u"||!e.length)return;if(this.map.size){const{message:n}=me("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(n),new Error(n)}this.cached=e,this.logger.debug(`Successfully Restored value for ${this.name}`),this.logger.trace({type:"method",method:"restore",value:this.values})}catch(e){this.logger.debug(`Failed to Restore value for ${this.name}`),this.logger.error(e)}}isInitialized(){if(!this.initialized){const{message:e}=me("NOT_INITIALIZED",this.name);throw new Error(e)}}}var EV=Object.defineProperty,AV=(t,e,n)=>e in t?EV(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ft=(t,e,n)=>AV(t,typeof e!="symbol"?e+"":e,n);class _V{constructor(e,n){this.core=e,this.logger=n,ft(this,"name",Tq),ft(this,"version",xq),ft(this,"events",new $E),ft(this,"pairings"),ft(this,"initialized",!1),ft(this,"storagePrefix",zs),ft(this,"ignoredPayloadTypes",[Oa]),ft(this,"registeredMethods",[]),ft(this,"init",async()=>{this.initialized||(await this.pairings.init(),await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.initialized=!0,this.logger.trace("Initialized"))}),ft(this,"register",({methods:r})=>{this.isInitialized(),this.registeredMethods=[...new Set([...this.registeredMethods,...r])]}),ft(this,"create",async r=>{this.isInitialized();const i=Rw(),s=await this.core.crypto.setSymKey(i),c=Zn(ge.FIVE_MINUTES),u={protocol:eN},f={topic:s,expiry:c,relay:u,active:!1,methods:r==null?void 0:r.methods},d=Y5({protocol:this.core.protocol,version:this.core.version,topic:s,symKey:i,relay:u,expiryTimestamp:c,methods:r==null?void 0:r.methods});return this.events.emit(Ic.create,f),this.core.expirer.set(s,c),await this.pairings.set(s,f),await this.core.relayer.subscribe(s,{transportType:r==null?void 0:r.transportType}),{topic:s,uri:d}}),ft(this,"pair",async r=>{this.isInitialized();const i=this.core.eventClient.createEvent({properties:{topic:r==null?void 0:r.uri,trace:[Ds.pairing_started]}});this.isValidPair(r,i);const{topic:s,symKey:c,relay:u,expiryTimestamp:f,methods:d}=Q5(r.uri);i.props.properties.topic=s,i.addTrace(Ds.pairing_uri_validation_success),i.addTrace(Ds.pairing_uri_not_expired);let p;if(this.pairings.keys.includes(s)){if(p=this.pairings.get(s),i.addTrace(Ds.existing_pairing),p.active)throw i.setError(Ca.active_pairing_already_exists),new Error(`Pairing already exists: ${s}. Please try again with a new connection URI.`);i.addTrace(Ds.pairing_not_expired)}const g=f||Zn(ge.FIVE_MINUTES),m={topic:s,relay:u,expiry:g,active:!1,methods:d};this.core.expirer.set(s,g),await this.pairings.set(s,m),i.addTrace(Ds.store_new_pairing),r.activatePairing&&await this.activate({topic:s}),this.events.emit(Ic.create,m),i.addTrace(Ds.emit_inactive_pairing),this.core.crypto.keychain.has(s)||await this.core.crypto.setSymKey(c,s),i.addTrace(Ds.subscribing_pairing_topic);try{await this.core.relayer.confirmOnlineStateOrThrow()}catch{i.setError(Ca.no_internet_connection)}try{await this.core.relayer.subscribe(s,{relay:u})}catch(y){throw i.setError(Ca.subscribe_pairing_topic_failure),y}return i.addTrace(Ds.subscribe_pairing_topic_success),m}),ft(this,"activate",async({topic:r})=>{this.isInitialized();const i=Zn(ge.FIVE_MINUTES);this.core.expirer.set(r,i),await this.pairings.update(r,{active:!0,expiry:i})}),ft(this,"ping",async r=>{this.isInitialized(),await this.isValidPing(r),this.logger.warn("ping() is deprecated and will be removed in the next major release.");const{topic:i}=r;if(this.pairings.keys.includes(i)){const s=await this.sendRequest(i,"wc_pairingPing",{}),{done:c,resolve:u,reject:f}=Sc();this.events.once(Pt("pairing_ping",s),({error:d})=>{d?f(d):u()}),await c()}}),ft(this,"updateExpiry",async({topic:r,expiry:i})=>{this.isInitialized(),await this.pairings.update(r,{expiry:i})}),ft(this,"updateMetadata",async({topic:r,metadata:i})=>{this.isInitialized(),await this.pairings.update(r,{peerMetadata:i})}),ft(this,"getPairings",()=>(this.isInitialized(),this.pairings.values)),ft(this,"disconnect",async r=>{this.isInitialized(),await this.isValidDisconnect(r);const{topic:i}=r;this.pairings.keys.includes(i)&&(await this.sendRequest(i,"wc_pairingDelete",Qt("USER_DISCONNECTED")),await this.deletePairing(i))}),ft(this,"formatUriFromPairing",r=>{this.isInitialized();const{topic:i,relay:s,expiry:c,methods:u}=r,f=this.core.crypto.keychain.get(i);return Y5({protocol:this.core.protocol,version:this.core.version,topic:i,symKey:f,relay:s,expiryTimestamp:c,methods:u})}),ft(this,"sendRequest",async(r,i,s)=>{const c=Uo(i,s),u=await this.core.crypto.encode(r,c),f=qf[i].req;return this.core.history.set(r,c),this.core.relayer.publish(r,u,f),c.id}),ft(this,"sendResult",async(r,i,s)=>{const c=Bm(r,s),u=await this.core.crypto.encode(i,c),f=(await this.core.history.get(i,r)).request.method,d=qf[f].res;await this.core.relayer.publish(i,u,d),await this.core.history.resolve(c)}),ft(this,"sendError",async(r,i,s)=>{const c=Lm(r,s),u=await this.core.crypto.encode(i,c),f=(await this.core.history.get(i,r)).request.method,d=qf[f]?qf[f].res:qf.unregistered_method.res;await this.core.relayer.publish(i,u,d),await this.core.history.resolve(c)}),ft(this,"deletePairing",async(r,i)=>{await this.core.relayer.unsubscribe(r),await Promise.all([this.pairings.delete(r,Qt("USER_DISCONNECTED")),this.core.crypto.deleteSymKey(r),i?Promise.resolve():this.core.expirer.del(r)])}),ft(this,"cleanup",async()=>{const r=this.pairings.getAll().filter(i=>Eo(i.expiry));await Promise.all(r.map(i=>this.deletePairing(i.topic)))}),ft(this,"onRelayEventRequest",async r=>{const{topic:i,payload:s}=r;switch(s.method){case"wc_pairingPing":return await this.onPairingPingRequest(i,s);case"wc_pairingDelete":return await this.onPairingDeleteRequest(i,s);default:return await this.onUnknownRpcMethodRequest(i,s)}}),ft(this,"onRelayEventResponse",async r=>{const{topic:i,payload:s}=r,c=(await this.core.history.get(i,s.id)).request.method;switch(c){case"wc_pairingPing":return this.onPairingPingResponse(i,s);default:return this.onUnknownRpcMethodResponse(c)}}),ft(this,"onPairingPingRequest",async(r,i)=>{const{id:s}=i;try{this.isValidPing({topic:r}),await this.sendResult(s,r,!0),this.events.emit(Ic.ping,{id:s,topic:r})}catch(c){await this.sendError(s,r,c),this.logger.error(c)}}),ft(this,"onPairingPingResponse",(r,i)=>{const{id:s}=i;setTimeout(()=>{Ms(i)?this.events.emit(Pt("pairing_ping",s),{}):Li(i)&&this.events.emit(Pt("pairing_ping",s),{error:i.error})},500)}),ft(this,"onPairingDeleteRequest",async(r,i)=>{const{id:s}=i;try{this.isValidDisconnect({topic:r}),await this.deletePairing(r),this.events.emit(Ic.delete,{id:s,topic:r})}catch(c){await this.sendError(s,r,c),this.logger.error(c)}}),ft(this,"onUnknownRpcMethodRequest",async(r,i)=>{const{id:s,method:c}=i;try{if(this.registeredMethods.includes(c))return;const u=Qt("WC_METHOD_UNSUPPORTED",c);await this.sendError(s,r,u),this.logger.error(u)}catch(u){await this.sendError(s,r,u),this.logger.error(u)}}),ft(this,"onUnknownRpcMethodResponse",r=>{this.registeredMethods.includes(r)||this.logger.error(Qt("WC_METHOD_UNSUPPORTED",r))}),ft(this,"isValidPair",(r,i)=>{var s;if(!Zr(r)){const{message:u}=me("MISSING_OR_INVALID",`pair() params: ${r}`);throw i.setError(Ca.malformed_pairing_uri),new Error(u)}if(!hz(r.uri)){const{message:u}=me("MISSING_OR_INVALID",`pair() uri: ${r.uri}`);throw i.setError(Ca.malformed_pairing_uri),new Error(u)}const c=Q5(r==null?void 0:r.uri);if(!((s=c==null?void 0:c.relay)!=null&&s.protocol)){const{message:u}=me("MISSING_OR_INVALID","pair() uri#relay-protocol");throw i.setError(Ca.malformed_pairing_uri),new Error(u)}if(!(c!=null&&c.symKey)){const{message:u}=me("MISSING_OR_INVALID","pair() uri#symKey");throw i.setError(Ca.malformed_pairing_uri),new Error(u)}if(c!=null&&c.expiryTimestamp&&ge.toMiliseconds(c==null?void 0:c.expiryTimestamp){if(!Zr(r)){const{message:s}=me("MISSING_OR_INVALID",`ping() params: ${r}`);throw new Error(s)}const{topic:i}=r;await this.isValidPairingTopic(i)}),ft(this,"isValidDisconnect",async r=>{if(!Zr(r)){const{message:s}=me("MISSING_OR_INVALID",`disconnect() params: ${r}`);throw new Error(s)}const{topic:i}=r;await this.isValidPairingTopic(i)}),ft(this,"isValidPairingTopic",async r=>{if(!Vn(r,!1)){const{message:i}=me("MISSING_OR_INVALID",`pairing topic should be a string: ${r}`);throw new Error(i)}if(!this.pairings.keys.includes(r)){const{message:i}=me("NO_MATCHING_KEY",`pairing topic doesn't exist: ${r}`);throw new Error(i)}if(Eo(this.pairings.get(r).expiry)){await this.deletePairing(r);const{message:i}=me("EXPIRED",`pairing topic: ${r}`);throw new Error(i)}}),this.core=e,this.logger=Pr(n,this.name),this.pairings=new Eu(this.core,this.logger,this.name,this.storagePrefix)}get context(){return ni(this.logger)}isInitialized(){if(!this.initialized){const{message:e}=me("NOT_INITIALIZED",this.name);throw new Error(e)}}registerRelayerEvents(){this.core.relayer.on(or.message,async e=>{const{topic:n,message:r,transportType:i}=e;if(this.pairings.keys.includes(n)&&i!==hn.link_mode&&!this.ignoredPayloadTypes.includes(this.core.crypto.getPayloadType(r)))try{const s=await this.core.crypto.decode(n,r);u2(s)?(this.core.history.set(n,s),await this.onRelayEventRequest({topic:n,payload:s})):$m(s)&&(await this.core.history.resolve(s),await this.onRelayEventResponse({topic:n,payload:s}),this.core.history.delete(n,s.id)),await this.core.relayer.messages.ack(n,r)}catch(s){this.logger.error(s)}})}registerExpirerEvents(){this.core.expirer.on(Ui.expired,async e=>{const{topic:n}=wx(e.target);n&&this.pairings.keys.includes(n)&&(await this.deletePairing(n,!0),this.events.emit(Ic.expire,{topic:n}))})}}var CV=Object.defineProperty,SV=(t,e,n)=>e in t?CV(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,br=(t,e,n)=>SV(t,typeof e!="symbol"?e+"":e,n);class TV extends pP{constructor(e,n){super(e,n),this.core=e,this.logger=n,br(this,"records",new Map),br(this,"events",new zi.EventEmitter),br(this,"name",Nq),br(this,"version",Iq),br(this,"cached",[]),br(this,"initialized",!1),br(this,"storagePrefix",zs),br(this,"init",async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(r=>this.records.set(r.id,r)),this.cached=[],this.registerEventListeners(),this.initialized=!0)}),br(this,"set",(r,i,s)=>{if(this.isInitialized(),this.logger.debug("Setting JSON-RPC request history record"),this.logger.trace({type:"method",method:"set",topic:r,request:i,chainId:s}),this.records.has(i.id))return;const c={id:i.id,topic:r,request:{method:i.method,params:i.params||null},chainId:s,expiry:Zn(ge.THIRTY_DAYS)};this.records.set(c.id,c),this.persist(),this.events.emit(ts.created,c)}),br(this,"resolve",async r=>{if(this.isInitialized(),this.logger.debug("Updating JSON-RPC response history record"),this.logger.trace({type:"method",method:"update",response:r}),!this.records.has(r.id))return;const i=await this.getRecord(r.id);typeof i.response>"u"&&(i.response=Li(r)?{error:r.error}:{result:r.result},this.records.set(i.id,i),this.persist(),this.events.emit(ts.updated,i))}),br(this,"get",async(r,i)=>(this.isInitialized(),this.logger.debug("Getting record"),this.logger.trace({type:"method",method:"get",topic:r,id:i}),await this.getRecord(i))),br(this,"delete",(r,i)=>{this.isInitialized(),this.logger.debug("Deleting record"),this.logger.trace({type:"method",method:"delete",id:i}),this.values.forEach(s=>{if(s.topic===r){if(typeof i<"u"&&s.id!==i)return;this.records.delete(s.id),this.events.emit(ts.deleted,s)}}),this.persist()}),br(this,"exists",async(r,i)=>(this.isInitialized(),this.records.has(i)?(await this.getRecord(i)).topic===r:!1)),br(this,"on",(r,i)=>{this.events.on(r,i)}),br(this,"once",(r,i)=>{this.events.once(r,i)}),br(this,"off",(r,i)=>{this.events.off(r,i)}),br(this,"removeListener",(r,i)=>{this.events.removeListener(r,i)}),this.logger=Pr(n,this.name)}get context(){return ni(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get size(){return this.records.size}get keys(){return Array.from(this.records.keys())}get values(){return Array.from(this.records.values())}get pending(){const e=[];return this.values.forEach(n=>{if(typeof n.response<"u")return;const r={topic:n.topic,request:Uo(n.request.method,n.request.params,n.id),chainId:n.chainId};return e.push(r)}),e}async setJsonRpcRecords(e){await this.core.storage.setItem(this.storageKey,e)}async getJsonRpcRecords(){return await this.core.storage.getItem(this.storageKey)}getRecord(e){this.isInitialized();const n=this.records.get(e);if(!n){const{message:r}=me("NO_MATCHING_KEY",`${this.name}: ${e}`);throw new Error(r)}return n}async persist(){await this.setJsonRpcRecords(this.values),this.events.emit(ts.sync)}async restore(){try{const e=await this.getJsonRpcRecords();if(typeof e>"u"||!e.length)return;if(this.records.size){const{message:n}=me("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(n),new Error(n)}this.cached=e,this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",records:this.values})}catch(e){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(e)}}registerEventListeners(){this.events.on(ts.created,e=>{const n=ts.created;this.logger.info(`Emitting ${n}`),this.logger.debug({type:"event",event:n,record:e})}),this.events.on(ts.updated,e=>{const n=ts.updated;this.logger.info(`Emitting ${n}`),this.logger.debug({type:"event",event:n,record:e})}),this.events.on(ts.deleted,e=>{const n=ts.deleted;this.logger.info(`Emitting ${n}`),this.logger.debug({type:"event",event:n,record:e})}),this.core.heartbeat.on(bd.pulse,()=>{this.cleanup()})}cleanup(){try{this.isInitialized();let e=!1;this.records.forEach(n=>{ge.toMiliseconds(n.expiry||0)-Date.now()<=0&&(this.logger.info(`Deleting expired history log: ${n.id}`),this.records.delete(n.id),this.events.emit(ts.deleted,n,!1),e=!0)}),e&&this.persist()}catch(e){this.logger.warn(e)}}isInitialized(){if(!this.initialized){const{message:e}=me("NOT_INITIALIZED",this.name);throw new Error(e)}}}var xV=Object.defineProperty,NV=(t,e,n)=>e in t?xV(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Tr=(t,e,n)=>NV(t,typeof e!="symbol"?e+"":e,n);class IV extends wP{constructor(e,n){super(e,n),this.core=e,this.logger=n,Tr(this,"expirations",new Map),Tr(this,"events",new zi.EventEmitter),Tr(this,"name",Oq),Tr(this,"version",Rq),Tr(this,"cached",[]),Tr(this,"initialized",!1),Tr(this,"storagePrefix",zs),Tr(this,"init",async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(r=>this.expirations.set(r.target,r)),this.cached=[],this.registerEventListeners(),this.initialized=!0)}),Tr(this,"has",r=>{try{const i=this.formatTarget(r);return typeof this.getExpiration(i)<"u"}catch{return!1}}),Tr(this,"set",(r,i)=>{this.isInitialized();const s=this.formatTarget(r),c={target:s,expiry:i};this.expirations.set(s,c),this.checkExpiry(s,c),this.events.emit(Ui.created,{target:s,expiration:c})}),Tr(this,"get",r=>{this.isInitialized();const i=this.formatTarget(r);return this.getExpiration(i)}),Tr(this,"del",r=>{if(this.isInitialized(),this.has(r)){const i=this.formatTarget(r),s=this.getExpiration(i);this.expirations.delete(i),this.events.emit(Ui.deleted,{target:i,expiration:s})}}),Tr(this,"on",(r,i)=>{this.events.on(r,i)}),Tr(this,"once",(r,i)=>{this.events.once(r,i)}),Tr(this,"off",(r,i)=>{this.events.off(r,i)}),Tr(this,"removeListener",(r,i)=>{this.events.removeListener(r,i)}),this.logger=Pr(n,this.name)}get context(){return ni(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get length(){return this.expirations.size}get keys(){return Array.from(this.expirations.keys())}get values(){return Array.from(this.expirations.values())}formatTarget(e){if(typeof e=="string")return W$(e);if(typeof e=="number")return Q$(e);const{message:n}=me("UNKNOWN_TYPE",`Target type: ${typeof e}`);throw new Error(n)}async setExpirations(e){await this.core.storage.setItem(this.storageKey,e)}async getExpirations(){return await this.core.storage.getItem(this.storageKey)}async persist(){await this.setExpirations(this.values),this.events.emit(Ui.sync)}async restore(){try{const e=await this.getExpirations();if(typeof e>"u"||!e.length)return;if(this.expirations.size){const{message:n}=me("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(n),new Error(n)}this.cached=e,this.logger.debug(`Successfully Restored expirations for ${this.name}`),this.logger.trace({type:"method",method:"restore",expirations:this.values})}catch(e){this.logger.debug(`Failed to Restore expirations for ${this.name}`),this.logger.error(e)}}getExpiration(e){const n=this.expirations.get(e);if(!n){const{message:r}=me("NO_MATCHING_KEY",`${this.name}: ${e}`);throw this.logger.warn(r),new Error(r)}return n}checkExpiry(e,n){const{expiry:r}=n;ge.toMiliseconds(r)-Date.now()<=0&&this.expire(e,n)}expire(e,n){this.expirations.delete(e),this.events.emit(Ui.expired,{target:e,expiration:n})}checkExpirations(){this.core.relayer.connected&&this.expirations.forEach((e,n)=>this.checkExpiry(n,e))}registerEventListeners(){this.core.heartbeat.on(bd.pulse,()=>this.checkExpirations()),this.events.on(Ui.created,e=>{const n=Ui.created;this.logger.info(`Emitting ${n}`),this.logger.debug({type:"event",event:n,data:e}),this.persist()}),this.events.on(Ui.expired,e=>{const n=Ui.expired;this.logger.info(`Emitting ${n}`),this.logger.debug({type:"event",event:n,data:e}),this.persist()}),this.events.on(Ui.deleted,e=>{const n=Ui.deleted;this.logger.info(`Emitting ${n}`),this.logger.debug({type:"event",event:n,data:e}),this.persist()})}isInitialized(){if(!this.initialized){const{message:e}=me("NOT_INITIALIZED",this.name);throw new Error(e)}}}var OV=Object.defineProperty,RV=(t,e,n)=>e in t?OV(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Gn=(t,e,n)=>RV(t,typeof e!="symbol"?e+"":e,n);class DV extends EP{constructor(e,n,r){super(e,n,r),this.core=e,this.logger=n,this.store=r,Gn(this,"name",Dq),Gn(this,"abortController"),Gn(this,"isDevEnv"),Gn(this,"verifyUrlV3",Mq),Gn(this,"storagePrefix",zs),Gn(this,"version",Jx),Gn(this,"publicKey"),Gn(this,"fetchPromise"),Gn(this,"init",async()=>{var i;this.isDevEnv||(this.publicKey=await this.store.getItem(this.storeKey),this.publicKey&&ge.toMiliseconds((i=this.publicKey)==null?void 0:i.expiresAt){if(!wp()||this.isDevEnv)return;const s=window.location.origin,{id:c,decryptedId:u}=i,f=`${this.verifyUrlV3}/attestation?projectId=${this.core.projectId}&origin=${s}&id=${c}&decryptedId=${u}`;try{const d=Jc.getDocument(),p=this.startAbortTimer(ge.ONE_SECOND*5),g=await new Promise((m,y)=>{const A=()=>{window.removeEventListener("message",x),d.body.removeChild(E),y("attestation aborted")};this.abortController.signal.addEventListener("abort",A);const E=d.createElement("iframe");E.src=f,E.style.display="none",E.addEventListener("error",A,{signal:this.abortController.signal});const x=O=>{if(O.data&&typeof O.data=="string")try{const I=JSON.parse(O.data);if(I.type==="verify_attestation"){if(mw(I.attestation).payload.id!==c)return;clearInterval(p),d.body.removeChild(E),this.abortController.signal.removeEventListener("abort",A),window.removeEventListener("message",x),m(I.attestation===null?"":I.attestation)}}catch(I){this.logger.warn(I)}};d.body.appendChild(E),window.addEventListener("message",x,{signal:this.abortController.signal})});return this.logger.debug("jwt attestation",g),g}catch(d){this.logger.warn(d)}return""}),Gn(this,"resolve",async i=>{if(this.isDevEnv)return"";const{attestationId:s,hash:c,encryptedId:u}=i;if(s===""){this.logger.debug("resolve: attestationId is empty, skipping");return}if(s){if(mw(s).payload.id!==u)return;const d=await this.isValidJwtAttestation(s);if(d){if(!d.isVerified){this.logger.warn("resolve: jwt attestation: origin url not verified");return}return d}}if(!c)return;const f=this.getVerifyUrl(i==null?void 0:i.verifyUrl);return this.fetchAttestation(c,f)}),Gn(this,"fetchAttestation",async(i,s)=>{this.logger.debug(`resolving attestation: ${i} from url: ${s}`);const c=this.startAbortTimer(ge.ONE_SECOND*5),u=await fetch(`${s}/attestation/${i}?v2Supported=true`,{signal:this.abortController.signal});return clearTimeout(c),u.status===200?await u.json():void 0}),Gn(this,"getVerifyUrl",i=>{let s=i||lh;return kq.includes(s)||(this.logger.info(`verify url: ${s}, not included in trusted list, assigning default: ${lh}`),s=lh),s}),Gn(this,"fetchPublicKey",async()=>{try{this.logger.debug(`fetching public key from: ${this.verifyUrlV3}`);const i=this.startAbortTimer(ge.FIVE_SECONDS),s=await fetch(`${this.verifyUrlV3}/public-key`,{signal:this.abortController.signal});return clearTimeout(i),await s.json()}catch(i){this.logger.warn(i)}}),Gn(this,"persistPublicKey",async i=>{this.logger.debug("persisting public key to local storage",i),await this.store.setItem(this.storeKey,i),this.publicKey=i}),Gn(this,"removePublicKey",async()=>{this.logger.debug("removing verify v2 public key from storage"),await this.store.removeItem(this.storeKey),this.publicKey=void 0}),Gn(this,"isValidJwtAttestation",async i=>{const s=await this.getPublicKey();try{if(s)return this.validateAttestation(i,s)}catch(u){this.logger.error(u),this.logger.warn("error validating attestation")}const c=await this.fetchAndPersistPublicKey();try{if(c)return this.validateAttestation(i,c)}catch(u){this.logger.error(u),this.logger.warn("error validating attestation")}}),Gn(this,"getPublicKey",async()=>this.publicKey?this.publicKey:await this.fetchAndPersistPublicKey()),Gn(this,"fetchAndPersistPublicKey",async()=>{if(this.fetchPromise)return await this.fetchPromise,this.publicKey;this.fetchPromise=new Promise(async s=>{const c=await this.fetchPublicKey();c&&(await this.persistPublicKey(c),s(c))});const i=await this.fetchPromise;return this.fetchPromise=void 0,i}),Gn(this,"validateAttestation",(i,s)=>{const c=ez(i,s.publicKey),u={hasExpired:ge.toMiliseconds(c.exp)this.abortController.abort(),ge.toMiliseconds(e))}}var PV=Object.defineProperty,MV=(t,e,n)=>e in t?PV(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,R6=(t,e,n)=>MV(t,typeof e!="symbol"?e+"":e,n);class kV extends AP{constructor(e,n){super(e,n),this.projectId=e,this.logger=n,R6(this,"context",Uq),R6(this,"registerDeviceToken",async r=>{const{clientId:i,token:s,notificationType:c,enableEncrypted:u=!1}=r,f=`${Bq}/${this.projectId}/clients`;await fetch(f,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({client_id:i,type:c,token:s,always_raw:u})})}),this.logger=Pr(n,this.context)}}var UV=Object.defineProperty,D6=Object.getOwnPropertySymbols,BV=Object.prototype.hasOwnProperty,LV=Object.prototype.propertyIsEnumerable,jw=(t,e,n)=>e in t?UV(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Vf=(t,e)=>{for(var n in e||(e={}))BV.call(e,n)&&jw(t,n,e[n]);if(D6)for(var n of D6(e))LV.call(e,n)&&jw(t,n,e[n]);return t},ir=(t,e,n)=>jw(t,typeof e!="symbol"?e+"":e,n);class $V extends _P{constructor(e,n,r=!0){super(e,n,r),this.core=e,this.logger=n,ir(this,"context",$q),ir(this,"storagePrefix",zs),ir(this,"storageVersion",Lq),ir(this,"events",new Map),ir(this,"shouldPersist",!1),ir(this,"init",async()=>{if(!JE())try{const i={eventId:A5(),timestamp:Date.now(),domain:this.getAppDomain(),props:{event:"INIT",type:"",properties:{client_id:await this.core.crypto.getClientId(),user_agent:yx(this.core.relayer.protocol,this.core.relayer.version,Pw)}}};await this.sendEvent([i])}catch(i){this.logger.warn(i)}}),ir(this,"createEvent",i=>{const{event:s="ERROR",type:c="",properties:{topic:u,trace:f}}=i,d=A5(),p=this.core.projectId||"",g=Date.now(),m=Vf({eventId:d,timestamp:g,props:{event:s,type:c,properties:{topic:u,trace:f}},bundleId:p,domain:this.getAppDomain()},this.setMethods(d));return this.telemetryEnabled&&(this.events.set(d,m),this.shouldPersist=!0),m}),ir(this,"getEvent",i=>{const{eventId:s,topic:c}=i;if(s)return this.events.get(s);const u=Array.from(this.events.values()).find(f=>f.props.properties.topic===c);if(u)return Vf(Vf({},u),this.setMethods(u.eventId))}),ir(this,"deleteEvent",i=>{const{eventId:s}=i;this.events.delete(s),this.shouldPersist=!0}),ir(this,"setEventListeners",()=>{this.core.heartbeat.on(bd.pulse,async()=>{this.shouldPersist&&await this.persist(),this.events.forEach(i=>{ge.fromMiliseconds(Date.now())-ge.fromMiliseconds(i.timestamp)>Fq&&(this.events.delete(i.eventId),this.shouldPersist=!0)})})}),ir(this,"setMethods",i=>({addTrace:s=>this.addTrace(i,s),setError:s=>this.setError(i,s)})),ir(this,"addTrace",(i,s)=>{const c=this.events.get(i);c&&(c.props.properties.trace.push(s),this.events.set(i,c),this.shouldPersist=!0)}),ir(this,"setError",(i,s)=>{const c=this.events.get(i);c&&(c.props.type=s,c.timestamp=Date.now(),this.events.set(i,c),this.shouldPersist=!0)}),ir(this,"persist",async()=>{await this.core.storage.setItem(this.storageKey,Array.from(this.events.values())),this.shouldPersist=!1}),ir(this,"restore",async()=>{try{const i=await this.core.storage.getItem(this.storageKey)||[];if(!i.length)return;i.forEach(s=>{this.events.set(s.eventId,Vf(Vf({},s),this.setMethods(s.eventId)))})}catch(i){this.logger.warn(i)}}),ir(this,"submit",async()=>{if(!this.telemetryEnabled||this.events.size===0)return;const i=[];for(const[s,c]of this.events)c.props.type&&i.push(c);if(i.length!==0)try{if((await this.sendEvent(i)).ok)for(const s of i)this.events.delete(s.eventId),this.shouldPersist=!0}catch(s){this.logger.warn(s)}}),ir(this,"sendEvent",async i=>{const s=this.getAppDomain()?"":"&sp=desktop";return await fetch(`${jq}?projectId=${this.core.projectId}&st=events_sdk&sv=js-${Pw}${s}`,{method:"POST",body:JSON.stringify(i)})}),ir(this,"getAppDomain",()=>bx().url),this.logger=Pr(n,this.context),this.telemetryEnabled=r,r?this.restore().then(async()=>{await this.submit(),this.setEventListeners()}):this.persist()}get storageKey(){return this.storagePrefix+this.storageVersion+this.core.customStoragePrefix+"//"+this.context}}var FV=Object.defineProperty,P6=Object.getOwnPropertySymbols,jV=Object.prototype.hasOwnProperty,zV=Object.prototype.propertyIsEnumerable,zw=(t,e,n)=>e in t?FV(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,M6=(t,e)=>{for(var n in e||(e={}))jV.call(e,n)&&zw(t,n,e[n]);if(P6)for(var n of P6(e))zV.call(e,n)&&zw(t,n,e[n]);return t},cn=(t,e,n)=>zw(t,typeof e!="symbol"?e+"":e,n);let qV=class hN extends lP{constructor(e){var n;super(e),cn(this,"protocol",Xx),cn(this,"version",Jx),cn(this,"name",Dw),cn(this,"relayUrl"),cn(this,"projectId"),cn(this,"customStoragePrefix"),cn(this,"events",new zi.EventEmitter),cn(this,"logger"),cn(this,"heartbeat"),cn(this,"relayer"),cn(this,"crypto"),cn(this,"storage"),cn(this,"history"),cn(this,"expirer"),cn(this,"pairing"),cn(this,"verify"),cn(this,"echoClient"),cn(this,"linkModeSupportedApps"),cn(this,"eventClient"),cn(this,"initialized",!1),cn(this,"logChunkController"),cn(this,"on",(c,u)=>this.events.on(c,u)),cn(this,"once",(c,u)=>this.events.once(c,u)),cn(this,"off",(c,u)=>this.events.off(c,u)),cn(this,"removeListener",(c,u)=>this.events.removeListener(c,u)),cn(this,"dispatchEnvelope",({topic:c,message:u,sessionExists:f})=>{if(!c||!u)return;const d={topic:c,message:u,publishedAt:Date.now(),transportType:hn.link_mode};this.relayer.onLinkMessageEvent(d,{sessionExists:f})}),this.projectId=e==null?void 0:e.projectId,this.relayUrl=(e==null?void 0:e.relayUrl)||tN,this.customStoragePrefix=e!=null&&e.customStoragePrefix?`:${e.customStoragePrefix}`:"";const r=yd({level:typeof(e==null?void 0:e.logger)=="string"&&e.logger?e.logger:uq.logger,name:Dw}),{logger:i,chunkLoggerController:s}=jE({opts:r,maxSizeInBytes:e==null?void 0:e.maxLogBlobSizeInBytes,loggerOverride:e==null?void 0:e.logger});this.logChunkController=s,(n=this.logChunkController)!=null&&n.downloadLogsBlobInBrowser&&(window.downloadLogsBlobInBrowser=async()=>{var c,u;(c=this.logChunkController)!=null&&c.downloadLogsBlobInBrowser&&((u=this.logChunkController)==null||u.downloadLogsBlobInBrowser({clientId:await this.crypto.getClientId()}))}),this.logger=Pr(i,this.name),this.heartbeat=new uD,this.crypto=new mG(this,this.logger,e==null?void 0:e.keychain),this.history=new TV(this,this.logger),this.expirer=new IV(this,this.logger),this.storage=e!=null&&e.storage?e.storage:new GD(M6(M6({},lq),e==null?void 0:e.storageOptions)),this.relayer=new qG({core:this,logger:this.logger,relayUrl:this.relayUrl,projectId:this.projectId}),this.pairing=new _V(this,this.logger),this.verify=new DV(this,this.logger,this.storage),this.echoClient=new kV(this.projectId||"",this.logger),this.linkModeSupportedApps=[],this.eventClient=new $V(this,this.logger,e==null?void 0:e.telemetryEnabled)}static async init(e){const n=new hN(e);await n.initialize();const r=await n.crypto.getClientId();return await n.storage.setItem(_q,r),n}get context(){return ni(this.logger)}async start(){this.initialized||await this.initialize()}async getLogsBlob(){var e;return(e=this.logChunkController)==null?void 0:e.logsToBlob({clientId:await this.crypto.getClientId()})}async addLinkModeSupportedApp(e){this.linkModeSupportedApps.includes(e)||(this.linkModeSupportedApps.push(e),await this.storage.setItem(h6,this.linkModeSupportedApps))}async initialize(){this.logger.trace("Initialized");try{await this.crypto.init(),await this.history.init(),await this.expirer.init(),await this.relayer.init(),await this.heartbeat.init(),await this.pairing.init(),this.linkModeSupportedApps=await this.storage.getItem(h6)||[],this.initialized=!0,this.logger.info("Core Initialization Success")}catch(e){throw this.logger.warn(`Core Initialization Failure at epoch ${Date.now()}`,e),this.logger.error(e.message),e}}};const HV=qV,pN="wc",gN=2,mN="client",l2=`${pN}@${gN}:${mN}:`,A1={name:mN,logger:"error"},k6="WALLETCONNECT_DEEPLINK_CHOICE",GV="proposal",U6="Proposal expired",VV="session",fl=ge.SEVEN_DAYS,KV="engine",sr={wc_sessionPropose:{req:{ttl:ge.FIVE_MINUTES,prompt:!0,tag:1100},res:{ttl:ge.FIVE_MINUTES,prompt:!1,tag:1101},reject:{ttl:ge.FIVE_MINUTES,prompt:!1,tag:1120},autoReject:{ttl:ge.FIVE_MINUTES,prompt:!1,tag:1121}},wc_sessionSettle:{req:{ttl:ge.FIVE_MINUTES,prompt:!1,tag:1102},res:{ttl:ge.FIVE_MINUTES,prompt:!1,tag:1103}},wc_sessionUpdate:{req:{ttl:ge.ONE_DAY,prompt:!1,tag:1104},res:{ttl:ge.ONE_DAY,prompt:!1,tag:1105}},wc_sessionExtend:{req:{ttl:ge.ONE_DAY,prompt:!1,tag:1106},res:{ttl:ge.ONE_DAY,prompt:!1,tag:1107}},wc_sessionRequest:{req:{ttl:ge.FIVE_MINUTES,prompt:!0,tag:1108},res:{ttl:ge.FIVE_MINUTES,prompt:!1,tag:1109}},wc_sessionEvent:{req:{ttl:ge.FIVE_MINUTES,prompt:!0,tag:1110},res:{ttl:ge.FIVE_MINUTES,prompt:!1,tag:1111}},wc_sessionDelete:{req:{ttl:ge.ONE_DAY,prompt:!1,tag:1112},res:{ttl:ge.ONE_DAY,prompt:!1,tag:1113}},wc_sessionPing:{req:{ttl:ge.ONE_DAY,prompt:!1,tag:1114},res:{ttl:ge.ONE_DAY,prompt:!1,tag:1115}},wc_sessionAuthenticate:{req:{ttl:ge.ONE_HOUR,prompt:!0,tag:1116},res:{ttl:ge.ONE_HOUR,prompt:!1,tag:1117},reject:{ttl:ge.FIVE_MINUTES,prompt:!1,tag:1118},autoReject:{ttl:ge.FIVE_MINUTES,prompt:!1,tag:1119}}},_1={min:ge.FIVE_MINUTES,max:ge.SEVEN_DAYS},Os={idle:"IDLE",active:"ACTIVE"},B6={eth_sendTransaction:{key:""},eth_sendRawTransaction:{key:""},wallet_sendCalls:{key:""},solana_signTransaction:{key:"signature"},solana_signAllTransactions:{key:"transactions"},solana_signAndSendTransaction:{key:"signature"}},WV="request",QV=["wc_sessionPropose","wc_sessionRequest","wc_authRequest","wc_sessionAuthenticate"],YV="wc",ZV="auth",XV="authKeys",JV="pairingTopics",eK="requests",jm=`${YV}@${1.5}:${ZV}:`,Rg=`${jm}:PUB_KEY`;var tK=Object.defineProperty,nK=Object.defineProperties,rK=Object.getOwnPropertyDescriptors,L6=Object.getOwnPropertySymbols,iK=Object.prototype.hasOwnProperty,sK=Object.prototype.propertyIsEnumerable,qw=(t,e,n)=>e in t?tK(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,nn=(t,e)=>{for(var n in e||(e={}))iK.call(e,n)&&qw(t,n,e[n]);if(L6)for(var n of L6(e))sK.call(e,n)&&qw(t,n,e[n]);return t},Ur=(t,e)=>nK(t,rK(e)),de=(t,e,n)=>qw(t,typeof e!="symbol"?e+"":e,n);class aK extends xP{constructor(e){super(e),de(this,"name",KV),de(this,"events",new $E),de(this,"initialized",!1),de(this,"requestQueue",{state:Os.idle,queue:[]}),de(this,"sessionRequestQueue",{state:Os.idle,queue:[]}),de(this,"requestQueueDelay",ge.ONE_SECOND),de(this,"expectedPairingMethodMap",new Map),de(this,"recentlyDeletedMap",new Map),de(this,"recentlyDeletedLimit",200),de(this,"relayMessageCache",[]),de(this,"pendingSessions",new Map),de(this,"init",async()=>{this.initialized||(await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.registerPairingEvents(),await this.registerLinkModeListeners(),this.client.core.pairing.register({methods:Object.keys(sr)}),this.initialized=!0,setTimeout(async()=>{await this.processPendingMessageEvents(),this.sessionRequestQueue.queue=this.getPendingSessionRequests(),this.processSessionRequestQueue()},ge.toMiliseconds(this.requestQueueDelay)))}),de(this,"connect",async n=>{this.isInitialized(),await this.confirmOnlineStateOrThrow();const r=Ur(nn({},n),{requiredNamespaces:n.requiredNamespaces||{},optionalNamespaces:n.optionalNamespaces||{}});await this.isValidConnect(r);const{pairingTopic:i,requiredNamespaces:s,optionalNamespaces:c,sessionProperties:u,scopedProperties:f,relays:d}=r;let p=i,g,m=!1;try{if(p){const R=this.client.core.pairing.pairings.get(p);this.client.logger.warn("connect() with existing pairing topic is deprecated and will be removed in the next major release."),m=R.active}}catch(R){throw this.client.logger.error(`connect() -> pairing.get(${p}) failed`),R}if(!p||!m){const{topic:R,uri:z}=await this.client.core.pairing.create();p=R,g=z}if(!p){const{message:R}=me("NO_MATCHING_KEY",`connect() pairing topic: ${p}`);throw new Error(R)}const y=await this.client.core.crypto.generateKeyPair(),A=sr.wc_sessionPropose.req.ttl||ge.FIVE_MINUTES,E=Zn(A),x=Ur(nn(nn({requiredNamespaces:s,optionalNamespaces:c,relays:d??[{protocol:eN}],proposer:{publicKey:y,metadata:this.client.metadata},expiryTimestamp:E,pairingTopic:p},u&&{sessionProperties:u}),f&&{scopedProperties:f}),{id:Ps()}),O=Pt("session_connect",x.id),{reject:I,resolve:M,done:$}=Sc(A,U6),D=({id:R})=>{R===x.id&&(this.client.events.off("proposal_expire",D),this.pendingSessions.delete(x.id),this.events.emit(O,{error:{message:U6,code:0}}))};return this.client.events.on("proposal_expire",D),this.events.once(O,({error:R,session:z})=>{this.client.events.off("proposal_expire",D),R?I(R):z&&M(z)}),await this.sendRequest({topic:p,method:"wc_sessionPropose",params:x,throwOnFailedPublish:!0,clientRpcId:x.id}),await this.setProposal(x.id,x),{uri:g,approval:$}}),de(this,"pair",async n=>{this.isInitialized(),await this.confirmOnlineStateOrThrow();try{return await this.client.core.pairing.pair(n)}catch(r){throw this.client.logger.error("pair() failed"),r}}),de(this,"approve",async n=>{var r,i,s;const c=this.client.core.eventClient.createEvent({properties:{topic:(r=n==null?void 0:n.id)==null?void 0:r.toString(),trace:[ns.session_approve_started]}});try{this.isInitialized(),await this.confirmOnlineStateOrThrow()}catch(j){throw c.setError(Ac.no_internet_connection),j}try{await this.isValidProposalId(n==null?void 0:n.id)}catch(j){throw this.client.logger.error(`approve() -> proposal.get(${n==null?void 0:n.id}) failed`),c.setError(Ac.proposal_not_found),j}try{await this.isValidApprove(n)}catch(j){throw this.client.logger.error("approve() -> isValidApprove() failed"),c.setError(Ac.session_approve_namespace_validation_failure),j}const{id:u,relayProtocol:f,namespaces:d,sessionProperties:p,scopedProperties:g,sessionConfig:m}=n,y=this.client.proposal.get(u);this.client.core.eventClient.deleteEvent({eventId:c.eventId});const{pairingTopic:A,proposer:E,requiredNamespaces:x,optionalNamespaces:O}=y;let I=(i=this.client.core.eventClient)==null?void 0:i.getEvent({topic:A});I||(I=(s=this.client.core.eventClient)==null?void 0:s.createEvent({type:ns.session_approve_started,properties:{topic:A,trace:[ns.session_approve_started,ns.session_namespaces_validation_success]}}));const M=await this.client.core.crypto.generateKeyPair(),$=E.publicKey,D=await this.client.core.crypto.generateSharedKey(M,$),R=nn(nn(nn({relay:{protocol:f??"irn"},namespaces:d,controller:{publicKey:M,metadata:this.client.metadata},expiry:Zn(fl)},p&&{sessionProperties:p}),g&&{scopedProperties:g}),m&&{sessionConfig:m}),z=hn.relay;I.addTrace(ns.subscribing_session_topic);try{await this.client.core.relayer.subscribe(D,{transportType:z})}catch(j){throw I.setError(Ac.subscribe_session_topic_failure),j}I.addTrace(ns.subscribe_session_topic_success);const G=Ur(nn({},R),{topic:D,requiredNamespaces:x,optionalNamespaces:O,pairingTopic:A,acknowledged:!1,self:R.controller,peer:{publicKey:E.publicKey,metadata:E.metadata},controller:M,transportType:hn.relay});await this.client.session.set(D,G),I.addTrace(ns.store_session);try{I.addTrace(ns.publishing_session_settle),await this.sendRequest({topic:D,method:"wc_sessionSettle",params:R,throwOnFailedPublish:!0}).catch(j=>{throw I==null||I.setError(Ac.session_settle_publish_failure),j}),I.addTrace(ns.session_settle_publish_success),I.addTrace(ns.publishing_session_approve),await this.sendResult({id:u,topic:A,result:{relay:{protocol:f??"irn"},responderPublicKey:M},throwOnFailedPublish:!0}).catch(j=>{throw I==null||I.setError(Ac.session_approve_publish_failure),j}),I.addTrace(ns.session_approve_publish_success)}catch(j){throw this.client.logger.error(j),this.client.session.delete(D,Qt("USER_DISCONNECTED")),await this.client.core.relayer.unsubscribe(D),j}return this.client.core.eventClient.deleteEvent({eventId:I.eventId}),await this.client.core.pairing.updateMetadata({topic:A,metadata:E.metadata}),await this.client.proposal.delete(u,Qt("USER_DISCONNECTED")),await this.client.core.pairing.activate({topic:A}),await this.setExpiry(D,Zn(fl)),{topic:D,acknowledged:()=>Promise.resolve(this.client.session.get(D))}}),de(this,"reject",async n=>{this.isInitialized(),await this.confirmOnlineStateOrThrow();try{await this.isValidReject(n)}catch(c){throw this.client.logger.error("reject() -> isValidReject() failed"),c}const{id:r,reason:i}=n;let s;try{s=this.client.proposal.get(r).pairingTopic}catch(c){throw this.client.logger.error(`reject() -> proposal.get(${r}) failed`),c}s&&(await this.sendError({id:r,topic:s,error:i,rpcOpts:sr.wc_sessionPropose.reject}),await this.client.proposal.delete(r,Qt("USER_DISCONNECTED")))}),de(this,"update",async n=>{this.isInitialized(),await this.confirmOnlineStateOrThrow();try{await this.isValidUpdate(n)}catch(g){throw this.client.logger.error("update() -> isValidUpdate() failed"),g}const{topic:r,namespaces:i}=n,{done:s,resolve:c,reject:u}=Sc(),f=Ps(),d=Dc().toString(),p=this.client.session.get(r).namespaces;return this.events.once(Pt("session_update",f),({error:g})=>{g?u(g):c()}),await this.client.session.update(r,{namespaces:i}),await this.sendRequest({topic:r,method:"wc_sessionUpdate",params:{namespaces:i},throwOnFailedPublish:!0,clientRpcId:f,relayRpcId:d}).catch(g=>{this.client.logger.error(g),this.client.session.update(r,{namespaces:p}),u(g)}),{acknowledged:s}}),de(this,"extend",async n=>{this.isInitialized(),await this.confirmOnlineStateOrThrow();try{await this.isValidExtend(n)}catch(f){throw this.client.logger.error("extend() -> isValidExtend() failed"),f}const{topic:r}=n,i=Ps(),{done:s,resolve:c,reject:u}=Sc();return this.events.once(Pt("session_extend",i),({error:f})=>{f?u(f):c()}),await this.setExpiry(r,Zn(fl)),this.sendRequest({topic:r,method:"wc_sessionExtend",params:{},clientRpcId:i,throwOnFailedPublish:!0}).catch(f=>{u(f)}),{acknowledged:s}}),de(this,"request",async n=>{this.isInitialized();try{await this.isValidRequest(n)}catch(O){throw this.client.logger.error("request() -> isValidRequest() failed"),O}const{chainId:r,request:i,topic:s,expiry:c=sr.wc_sessionRequest.req.ttl}=n,u=this.client.session.get(s);(u==null?void 0:u.transportType)===hn.relay&&await this.confirmOnlineStateOrThrow();const f=Ps(),d=Dc().toString(),{done:p,resolve:g,reject:m}=Sc(c,"Request expired. Please try again.");this.events.once(Pt("session_request",f),({error:O,result:I})=>{O?m(O):g(I)});const y="wc_sessionRequest",A=this.getAppLinkIfEnabled(u.peer.metadata,u.transportType);if(A)return await this.sendRequest({clientRpcId:f,relayRpcId:d,topic:s,method:y,params:{request:Ur(nn({},i),{expiryTimestamp:Zn(c)}),chainId:r},expiry:c,throwOnFailedPublish:!0,appLink:A}).catch(O=>m(O)),this.client.events.emit("session_request_sent",{topic:s,request:i,chainId:r,id:f}),await p();const E={request:Ur(nn({},i),{expiryTimestamp:Zn(c)}),chainId:r},x=this.shouldSetTVF(y,E);return await Promise.all([new Promise(async O=>{await this.sendRequest(nn({clientRpcId:f,relayRpcId:d,topic:s,method:y,params:E,expiry:c,throwOnFailedPublish:!0},x&&{tvf:this.getTVFParams(f,E)})).catch(I=>m(I)),this.client.events.emit("session_request_sent",{topic:s,request:i,chainId:r,id:f}),O()}),new Promise(async O=>{var I;if(!((I=u.sessionConfig)!=null&&I.disableDeepLink)){const M=await J$(this.client.core.storage,k6);await Y$({id:f,topic:s,wcDeepLink:M})}O()}),p()]).then(O=>O[2])}),de(this,"respond",async n=>{this.isInitialized(),await this.isValidRespond(n);const{topic:r,response:i}=n,{id:s}=i,c=this.client.session.get(r);c.transportType===hn.relay&&await this.confirmOnlineStateOrThrow();const u=this.getAppLinkIfEnabled(c.peer.metadata,c.transportType);Ms(i)?await this.sendResult({id:s,topic:r,result:i.result,throwOnFailedPublish:!0,appLink:u}):Li(i)&&await this.sendError({id:s,topic:r,error:i.error,appLink:u}),this.cleanupAfterResponse(n)}),de(this,"ping",async n=>{this.isInitialized(),await this.confirmOnlineStateOrThrow();try{await this.isValidPing(n)}catch(i){throw this.client.logger.error("ping() -> isValidPing() failed"),i}const{topic:r}=n;if(this.client.session.keys.includes(r)){const i=Ps(),s=Dc().toString(),{done:c,resolve:u,reject:f}=Sc();this.events.once(Pt("session_ping",i),({error:d})=>{d?f(d):u()}),await Promise.all([this.sendRequest({topic:r,method:"wc_sessionPing",params:{},throwOnFailedPublish:!0,clientRpcId:i,relayRpcId:s}),c()])}else this.client.core.pairing.pairings.keys.includes(r)&&(this.client.logger.warn("ping() on pairing topic is deprecated and will be removed in the next major release."),await this.client.core.pairing.ping({topic:r}))}),de(this,"emit",async n=>{this.isInitialized(),await this.confirmOnlineStateOrThrow(),await this.isValidEmit(n);const{topic:r,event:i,chainId:s}=n,c=Dc().toString(),u=Ps();await this.sendRequest({topic:r,method:"wc_sessionEvent",params:{event:i,chainId:s},throwOnFailedPublish:!0,relayRpcId:c,clientRpcId:u})}),de(this,"disconnect",async n=>{this.isInitialized(),await this.confirmOnlineStateOrThrow(),await this.isValidDisconnect(n);const{topic:r}=n;if(this.client.session.keys.includes(r))await this.sendRequest({topic:r,method:"wc_sessionDelete",params:Qt("USER_DISCONNECTED"),throwOnFailedPublish:!0}),await this.deleteSession({topic:r,emitEvent:!1});else if(this.client.core.pairing.pairings.keys.includes(r))await this.client.core.pairing.disconnect({topic:r});else{const{message:i}=me("MISMATCHED_TOPIC",`Session or pairing topic not found: ${r}`);throw new Error(i)}}),de(this,"find",n=>(this.isInitialized(),this.client.session.getAll().filter(r=>dz(r,n)))),de(this,"getPendingSessionRequests",()=>this.client.pendingRequest.getAll()),de(this,"authenticate",async(n,r)=>{var i;this.isInitialized(),this.isValidAuthenticate(n);const s=r&&this.client.core.linkModeSupportedApps.includes(r)&&((i=this.client.metadata.redirect)==null?void 0:i.linkMode),c=s?hn.link_mode:hn.relay;c===hn.relay&&await this.confirmOnlineStateOrThrow();const{chains:u,statement:f="",uri:d,domain:p,nonce:g,type:m,exp:y,nbf:A,methods:E=[],expiry:x}=n,O=[...n.resources||[]],{topic:I,uri:M}=await this.client.core.pairing.create({methods:["wc_sessionAuthenticate"],transportType:c});this.client.logger.info({message:"Generated new pairing",pairing:{topic:I,uri:M}});const $=await this.client.core.crypto.generateKeyPair(),D=Ig($);if(await Promise.all([this.client.auth.authKeys.set(Rg,{responseTopic:D,publicKey:$}),this.client.auth.pairingTopics.set(D,{topic:D,pairingTopic:I})]),await this.client.core.relayer.subscribe(D,{transportType:c}),this.client.logger.info(`sending request to new pairing topic: ${I}`),E.length>0){const{namespace:P}=Ml(u[0]);let w=HF(P,"request",E);Ng(O)&&(w=VF(w,O.pop())),O.push(w)}const R=x&&x>sr.wc_sessionAuthenticate.req.ttl?x:sr.wc_sessionAuthenticate.req.ttl,z={authPayload:{type:m??"caip122",chains:u,statement:f,aud:d,domain:p,version:"1",nonce:g,iat:new Date().toISOString(),exp:y,nbf:A,resources:O},requester:{publicKey:$,metadata:this.client.metadata},expiryTimestamp:Zn(R)},G={eip155:{chains:u,methods:[...new Set(["personal_sign",...E])],events:["chainChanged","accountsChanged"]}},j={requiredNamespaces:{},optionalNamespaces:G,relays:[{protocol:"irn"}],pairingTopic:I,proposer:{publicKey:$,metadata:this.client.metadata},expiryTimestamp:Zn(sr.wc_sessionPropose.req.ttl),id:Ps()},{done:V,resolve:L,reject:v}=Sc(R,"Request expired"),C=Ps(),N=Pt("session_connect",j.id),T=Pt("session_request",C),S=async({error:P,session:w})=>{this.events.off(T,k),P?v(P):w&&L({session:w})},k=async P=>{var w,B,Z;if(await this.deletePendingAuthRequest(C,{message:"fulfilled",code:0}),P.error){const ye=Qt("WC_METHOD_UNSUPPORTED","wc_sessionAuthenticate");return P.error.code===ye.code?void 0:(this.events.off(N,S),v(P.error.message))}await this.deleteProposal(j.id),this.events.off(N,S);const{cacaos:ee,responder:Y}=P.result,se=[],ce=[];for(const ye of ee){await O5({cacao:ye,projectId:this.client.core.projectId})||(this.client.logger.error(ye,"Signature verification failed"),v(Qt("SESSION_SETTLEMENT_FAILED","Signature verification failed")));const{p:Ce}=ye,kt=Ng(Ce.resources),tt=[Sw(Ce.iss)],Ke=Yg(Ce.iss);if(kt){const jn=R5(kt),ut=D5(kt);se.push(...jn),tt.push(...ut)}for(const jn of tt)ce.push(`${jn}:${Ke}`)}const we=await this.client.core.crypto.generateSharedKey($,Y.publicKey);let _e;se.length>0&&(_e={topic:we,acknowledged:!0,self:{publicKey:$,metadata:this.client.metadata},peer:Y,controller:Y.publicKey,expiry:Zn(fl),requiredNamespaces:{},optionalNamespaces:{},relay:{protocol:"irn"},pairingTopic:I,namespaces:Z5([...new Set(se)],[...new Set(ce)]),transportType:c},await this.client.core.relayer.subscribe(we,{transportType:c}),await this.client.session.set(we,_e),I&&await this.client.core.pairing.updateMetadata({topic:I,metadata:Y.metadata}),_e=this.client.session.get(we)),(w=this.client.metadata.redirect)!=null&&w.linkMode&&(B=Y.metadata.redirect)!=null&&B.linkMode&&(Z=Y.metadata.redirect)!=null&&Z.universal&&r&&(this.client.core.addLinkModeSupportedApp(Y.metadata.redirect.universal),this.client.session.update(we,{transportType:hn.link_mode})),L({auths:ee,session:_e})};this.events.once(N,S),this.events.once(T,k);let F;try{if(s){const P=Uo("wc_sessionAuthenticate",z,C);this.client.core.history.set(I,P);const w=await this.client.core.crypto.encode("",P,{type:Cp,encoding:jf});F=og(r,I,w)}else await Promise.all([this.sendRequest({topic:I,method:"wc_sessionAuthenticate",params:z,expiry:n.expiry,throwOnFailedPublish:!0,clientRpcId:C}),this.sendRequest({topic:I,method:"wc_sessionPropose",params:j,expiry:sr.wc_sessionPropose.req.ttl,throwOnFailedPublish:!0,clientRpcId:j.id})])}catch(P){throw this.events.off(N,S),this.events.off(T,k),P}return await this.setProposal(j.id,j),await this.setAuthRequest(C,{request:Ur(nn({},z),{verifyContext:{}}),pairingTopic:I,transportType:c}),{uri:F??M,response:V}}),de(this,"approveSessionAuthenticate",async n=>{const{id:r,auths:i}=n,s=this.client.core.eventClient.createEvent({properties:{topic:r.toString(),trace:[_c.authenticated_session_approve_started]}});try{this.isInitialized()}catch(x){throw s.setError(Hf.no_internet_connection),x}const c=this.getPendingAuthRequest(r);if(!c)throw s.setError(Hf.authenticated_session_pending_request_not_found),new Error(`Could not find pending auth request with id ${r}`);const u=c.transportType||hn.relay;u===hn.relay&&await this.confirmOnlineStateOrThrow();const f=c.requester.publicKey,d=await this.client.core.crypto.generateKeyPair(),p=Ig(f),g={type:Oa,receiverPublicKey:f,senderPublicKey:d},m=[],y=[];for(const x of i){if(!await O5({cacao:x,projectId:this.client.core.projectId})){s.setError(Hf.invalid_cacao);const D=Qt("SESSION_SETTLEMENT_FAILED","Signature verification failed");throw await this.sendError({id:r,topic:p,error:D,encodeOpts:g}),new Error(D.message)}s.addTrace(_c.cacaos_verified);const{p:O}=x,I=Ng(O.resources),M=[Sw(O.iss)],$=Yg(O.iss);if(I){const D=R5(I),R=D5(I);m.push(...D),M.push(...R)}for(const D of M)y.push(`${D}:${$}`)}const A=await this.client.core.crypto.generateSharedKey(d,f);s.addTrace(_c.create_authenticated_session_topic);let E;if((m==null?void 0:m.length)>0){E={topic:A,acknowledged:!0,self:{publicKey:d,metadata:this.client.metadata},peer:{publicKey:f,metadata:c.requester.metadata},controller:f,expiry:Zn(fl),authentication:i,requiredNamespaces:{},optionalNamespaces:{},relay:{protocol:"irn"},pairingTopic:c.pairingTopic,namespaces:Z5([...new Set(m)],[...new Set(y)]),transportType:u},s.addTrace(_c.subscribing_authenticated_session_topic);try{await this.client.core.relayer.subscribe(A,{transportType:u})}catch(x){throw s.setError(Hf.subscribe_authenticated_session_topic_failure),x}s.addTrace(_c.subscribe_authenticated_session_topic_success),await this.client.session.set(A,E),s.addTrace(_c.store_authenticated_session),await this.client.core.pairing.updateMetadata({topic:c.pairingTopic,metadata:c.requester.metadata})}s.addTrace(_c.publishing_authenticated_session_approve);try{await this.sendResult({topic:p,id:r,result:{cacaos:i,responder:{publicKey:d,metadata:this.client.metadata}},encodeOpts:g,throwOnFailedPublish:!0,appLink:this.getAppLinkIfEnabled(c.requester.metadata,u)})}catch(x){throw s.setError(Hf.authenticated_session_approve_publish_failure),x}return await this.client.auth.requests.delete(r,{message:"fulfilled",code:0}),await this.client.core.pairing.activate({topic:c.pairingTopic}),this.client.core.eventClient.deleteEvent({eventId:s.eventId}),{session:E}}),de(this,"rejectSessionAuthenticate",async n=>{this.isInitialized();const{id:r,reason:i}=n,s=this.getPendingAuthRequest(r);if(!s)throw new Error(`Could not find pending auth request with id ${r}`);s.transportType===hn.relay&&await this.confirmOnlineStateOrThrow();const c=s.requester.publicKey,u=await this.client.core.crypto.generateKeyPair(),f=Ig(c),d={type:Oa,receiverPublicKey:c,senderPublicKey:u};await this.sendError({id:r,topic:f,error:i,encodeOpts:d,rpcOpts:sr.wc_sessionAuthenticate.reject,appLink:this.getAppLinkIfEnabled(s.requester.metadata,s.transportType)}),await this.client.auth.requests.delete(r,{message:"rejected",code:0}),await this.client.proposal.delete(r,Qt("USER_DISCONNECTED"))}),de(this,"formatAuthMessage",n=>{this.isInitialized();const{request:r,iss:i}=n;return Ix(r,i)}),de(this,"processRelayMessageCache",()=>{setTimeout(async()=>{if(this.relayMessageCache.length!==0)for(;this.relayMessageCache.length>0;)try{const n=this.relayMessageCache.shift();n&&await this.onRelayMessage(n)}catch(n){this.client.logger.error(n)}},50)}),de(this,"cleanupDuplicatePairings",async n=>{if(n.pairingTopic)try{const r=this.client.core.pairing.pairings.get(n.pairingTopic),i=this.client.core.pairing.pairings.getAll().filter(s=>{var c,u;return((c=s.peerMetadata)==null?void 0:c.url)&&((u=s.peerMetadata)==null?void 0:u.url)===n.peer.metadata.url&&s.topic&&s.topic!==r.topic});if(i.length===0)return;this.client.logger.info(`Cleaning up ${i.length} duplicate pairing(s)`),await Promise.all(i.map(s=>this.client.core.pairing.disconnect({topic:s.topic}))),this.client.logger.info("Duplicate pairings clean up finished")}catch(r){this.client.logger.error(r)}}),de(this,"deleteSession",async n=>{var r;const{topic:i,expirerHasDeleted:s=!1,emitEvent:c=!0,id:u=0}=n,{self:f}=this.client.session.get(i);await this.client.core.relayer.unsubscribe(i),await this.client.session.delete(i,Qt("USER_DISCONNECTED")),this.addToRecentlyDeleted(i,"session"),this.client.core.crypto.keychain.has(f.publicKey)&&await this.client.core.crypto.deleteKeyPair(f.publicKey),this.client.core.crypto.keychain.has(i)&&await this.client.core.crypto.deleteSymKey(i),s||this.client.core.expirer.del(i),this.client.core.storage.removeItem(k6).catch(d=>this.client.logger.warn(d)),this.getPendingSessionRequests().forEach(d=>{d.topic===i&&this.deletePendingSessionRequest(d.id,Qt("USER_DISCONNECTED"))}),i===((r=this.sessionRequestQueue.queue[0])==null?void 0:r.topic)&&(this.sessionRequestQueue.state=Os.idle),c&&this.client.events.emit("session_delete",{id:u,topic:i})}),de(this,"deleteProposal",async(n,r)=>{if(r)try{const i=this.client.proposal.get(n),s=this.client.core.eventClient.getEvent({topic:i.pairingTopic});s==null||s.setError(Ac.proposal_expired)}catch{}await Promise.all([this.client.proposal.delete(n,Qt("USER_DISCONNECTED")),r?Promise.resolve():this.client.core.expirer.del(n)]),this.addToRecentlyDeleted(n,"proposal")}),de(this,"deletePendingSessionRequest",async(n,r,i=!1)=>{await Promise.all([this.client.pendingRequest.delete(n,r),i?Promise.resolve():this.client.core.expirer.del(n)]),this.addToRecentlyDeleted(n,"request"),this.sessionRequestQueue.queue=this.sessionRequestQueue.queue.filter(s=>s.id!==n),i&&(this.sessionRequestQueue.state=Os.idle,this.client.events.emit("session_request_expire",{id:n}))}),de(this,"deletePendingAuthRequest",async(n,r,i=!1)=>{await Promise.all([this.client.auth.requests.delete(n,r),i?Promise.resolve():this.client.core.expirer.del(n)])}),de(this,"setExpiry",async(n,r)=>{this.client.session.keys.includes(n)&&(this.client.core.expirer.set(n,r),await this.client.session.update(n,{expiry:r}))}),de(this,"setProposal",async(n,r)=>{this.client.core.expirer.set(n,Zn(sr.wc_sessionPropose.req.ttl)),await this.client.proposal.set(n,r)}),de(this,"setAuthRequest",async(n,r)=>{const{request:i,pairingTopic:s,transportType:c=hn.relay}=r;this.client.core.expirer.set(n,i.expiryTimestamp),await this.client.auth.requests.set(n,{authPayload:i.authPayload,requester:i.requester,expiryTimestamp:i.expiryTimestamp,id:n,pairingTopic:s,verifyContext:i.verifyContext,transportType:c})}),de(this,"setPendingSessionRequest",async n=>{const{id:r,topic:i,params:s,verifyContext:c}=n,u=s.request.expiryTimestamp||Zn(sr.wc_sessionRequest.req.ttl);this.client.core.expirer.set(r,u),await this.client.pendingRequest.set(r,{id:r,topic:i,params:s,verifyContext:c})}),de(this,"sendRequest",async n=>{const{topic:r,method:i,params:s,expiry:c,relayRpcId:u,clientRpcId:f,throwOnFailedPublish:d,appLink:p,tvf:g}=n,m=Uo(i,s,f);let y;const A=!!p;try{const O=A?jf:ko;y=await this.client.core.crypto.encode(r,m,{encoding:O})}catch(O){throw await this.cleanup(),this.client.logger.error(`sendRequest() -> core.crypto.encode() for topic ${r} failed`),O}let E;if(QV.includes(i)){const O=Fs(JSON.stringify(m)),I=Fs(y);E=await this.client.core.verify.register({id:I,decryptedId:O})}const x=sr[i].req;if(x.attestation=E,c&&(x.ttl=c),u&&(x.id=u),this.client.core.history.set(r,m),A){const O=og(p,r,y);await global.Linking.openURL(O,this.client.name)}else{const O=sr[i].req;c&&(O.ttl=c),u&&(O.id=u),O.tvf=Ur(nn({},g),{correlationId:m.id}),d?(O.internal=Ur(nn({},O.internal),{throwOnFailedPublish:!0}),await this.client.core.relayer.publish(r,y,O)):this.client.core.relayer.publish(r,y,O).catch(I=>this.client.logger.error(I))}return m.id}),de(this,"sendResult",async n=>{const{id:r,topic:i,result:s,throwOnFailedPublish:c,encodeOpts:u,appLink:f}=n,d=Bm(r,s);let p;const g=f&&typeof(global==null?void 0:global.Linking)<"u";try{const A=g?jf:ko;p=await this.client.core.crypto.encode(i,d,Ur(nn({},u||{}),{encoding:A}))}catch(A){throw await this.cleanup(),this.client.logger.error(`sendResult() -> core.crypto.encode() for topic ${i} failed`),A}let m,y;try{m=await this.client.core.history.get(i,r);const A=m.request;try{this.shouldSetTVF(A.method,A.params)&&(y=this.getTVFParams(r,A.params,s))}catch(E){this.client.logger.warn("sendResult() -> getTVFParams() failed",E)}}catch(A){throw this.client.logger.error(`sendResult() -> history.get(${i}, ${r}) failed`),A}if(g){const A=og(f,i,p);await global.Linking.openURL(A,this.client.name)}else{const A=m.request.method,E=sr[A].res;E.tvf=Ur(nn({},y),{correlationId:r}),c?(E.internal=Ur(nn({},E.internal),{throwOnFailedPublish:!0}),await this.client.core.relayer.publish(i,p,E)):this.client.core.relayer.publish(i,p,E).catch(x=>this.client.logger.error(x))}await this.client.core.history.resolve(d)}),de(this,"sendError",async n=>{const{id:r,topic:i,error:s,encodeOpts:c,rpcOpts:u,appLink:f}=n,d=Lm(r,s);let p;const g=f&&typeof(global==null?void 0:global.Linking)<"u";try{const y=g?jf:ko;p=await this.client.core.crypto.encode(i,d,Ur(nn({},c||{}),{encoding:y}))}catch(y){throw await this.cleanup(),this.client.logger.error(`sendError() -> core.crypto.encode() for topic ${i} failed`),y}let m;try{m=await this.client.core.history.get(i,r)}catch(y){throw this.client.logger.error(`sendError() -> history.get(${i}, ${r}) failed`),y}if(g){const y=og(f,i,p);await global.Linking.openURL(y,this.client.name)}else{const y=m.request.method,A=u||sr[y].res;this.client.core.relayer.publish(i,p,A)}await this.client.core.history.resolve(d)}),de(this,"cleanup",async()=>{const n=[],r=[];this.client.session.getAll().forEach(i=>{let s=!1;Eo(i.expiry)&&(s=!0),this.client.core.crypto.keychain.has(i.topic)||(s=!0),s&&n.push(i.topic)}),this.client.proposal.getAll().forEach(i=>{Eo(i.expiryTimestamp)&&r.push(i.id)}),await Promise.all([...n.map(i=>this.deleteSession({topic:i})),...r.map(i=>this.deleteProposal(i))])}),de(this,"onProviderMessageEvent",async n=>{!this.initialized||this.relayMessageCache.length>0?this.relayMessageCache.push(n):await this.onRelayMessage(n)}),de(this,"onRelayEventRequest",async n=>{this.requestQueue.queue.push(n),await this.processRequestsQueue()}),de(this,"processRequestsQueue",async()=>{if(this.requestQueue.state===Os.active){this.client.logger.info("Request queue already active, skipping...");return}for(this.client.logger.info(`Request queue starting with ${this.requestQueue.queue.length} requests`);this.requestQueue.queue.length>0;){this.requestQueue.state=Os.active;const n=this.requestQueue.queue.shift();if(n)try{await this.processRequest(n)}catch(r){this.client.logger.warn(r)}}this.requestQueue.state=Os.idle}),de(this,"processRequest",async n=>{const{topic:r,payload:i,attestation:s,transportType:c,encryptedId:u}=n,f=i.method;if(!this.shouldIgnorePairingRequest({topic:r,requestMethod:f}))switch(f){case"wc_sessionPropose":return await this.onSessionProposeRequest({topic:r,payload:i,attestation:s,encryptedId:u});case"wc_sessionSettle":return await this.onSessionSettleRequest(r,i);case"wc_sessionUpdate":return await this.onSessionUpdateRequest(r,i);case"wc_sessionExtend":return await this.onSessionExtendRequest(r,i);case"wc_sessionPing":return await this.onSessionPingRequest(r,i);case"wc_sessionDelete":return await this.onSessionDeleteRequest(r,i);case"wc_sessionRequest":return await this.onSessionRequest({topic:r,payload:i,attestation:s,encryptedId:u,transportType:c});case"wc_sessionEvent":return await this.onSessionEventRequest(r,i);case"wc_sessionAuthenticate":return await this.onSessionAuthenticateRequest({topic:r,payload:i,attestation:s,encryptedId:u,transportType:c});default:return this.client.logger.info(`Unsupported request method ${f}`)}}),de(this,"onRelayEventResponse",async n=>{const{topic:r,payload:i,transportType:s}=n,c=(await this.client.core.history.get(r,i.id)).request.method;switch(c){case"wc_sessionPropose":return this.onSessionProposeResponse(r,i,s);case"wc_sessionSettle":return this.onSessionSettleResponse(r,i);case"wc_sessionUpdate":return this.onSessionUpdateResponse(r,i);case"wc_sessionExtend":return this.onSessionExtendResponse(r,i);case"wc_sessionPing":return this.onSessionPingResponse(r,i);case"wc_sessionRequest":return this.onSessionRequestResponse(r,i);case"wc_sessionAuthenticate":return this.onSessionAuthenticateResponse(r,i);default:return this.client.logger.info(`Unsupported response method ${c}`)}}),de(this,"onRelayEventUnknownPayload",n=>{const{topic:r}=n,{message:i}=me("MISSING_OR_INVALID",`Decoded payload on topic ${r} is not identifiable as a JSON-RPC request or a response.`);throw new Error(i)}),de(this,"shouldIgnorePairingRequest",n=>{const{topic:r,requestMethod:i}=n,s=this.expectedPairingMethodMap.get(r);return!s||s.includes(i)?!1:!!(s.includes("wc_sessionAuthenticate")&&this.client.events.listenerCount("session_authenticate")>0)}),de(this,"onSessionProposeRequest",async n=>{const{topic:r,payload:i,attestation:s,encryptedId:c}=n,{params:u,id:f}=i;try{const d=this.client.core.eventClient.getEvent({topic:r});this.client.events.listenerCount("session_proposal")===0&&(console.warn("No listener for session_proposal event"),d==null||d.setError(Ca.proposal_listener_not_found)),this.isValidConnect(nn({},i.params));const p=u.expiryTimestamp||Zn(sr.wc_sessionPropose.req.ttl),g=nn({id:f,pairingTopic:r,expiryTimestamp:p},u);await this.setProposal(f,g);const m=await this.getVerifyContext({attestationId:s,hash:Fs(JSON.stringify(i)),encryptedId:c,metadata:g.proposer.metadata});d==null||d.addTrace(Ds.emit_session_proposal),this.client.events.emit("session_proposal",{id:f,params:g,verifyContext:m})}catch(d){await this.sendError({id:f,topic:r,error:d,rpcOpts:sr.wc_sessionPropose.autoReject}),this.client.logger.error(d)}}),de(this,"onSessionProposeResponse",async(n,r,i)=>{const{id:s}=r;if(Ms(r)){const{result:c}=r;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",result:c});const u=this.client.proposal.get(s);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",proposal:u});const f=u.proposer.publicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",selfPublicKey:f});const d=c.responderPublicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",peerPublicKey:d});const p=await this.client.core.crypto.generateSharedKey(f,d);this.pendingSessions.set(s,{sessionTopic:p,pairingTopic:n,proposalId:s,publicKey:f});const g=await this.client.core.relayer.subscribe(p,{transportType:i});this.client.logger.trace({type:"method",method:"onSessionProposeResponse",subscriptionId:g}),await this.client.core.pairing.activate({topic:n})}else if(Li(r)){await this.client.proposal.delete(s,Qt("USER_DISCONNECTED"));const c=Pt("session_connect",s);if(this.events.listenerCount(c)===0)throw new Error(`emitting ${c} without any listeners, 954`);this.events.emit(c,{error:r.error})}}),de(this,"onSessionSettleRequest",async(n,r)=>{const{id:i,params:s}=r;try{this.isValidSessionSettleRequest(s);const{relay:c,controller:u,expiry:f,namespaces:d,sessionProperties:p,scopedProperties:g,sessionConfig:m}=r.params,y=[...this.pendingSessions.values()].find(x=>x.sessionTopic===n);if(!y)return this.client.logger.error(`Pending session not found for topic ${n}`);const A=this.client.proposal.get(y.proposalId),E=Ur(nn(nn(nn({topic:n,relay:c,expiry:f,namespaces:d,acknowledged:!0,pairingTopic:y.pairingTopic,requiredNamespaces:A.requiredNamespaces,optionalNamespaces:A.optionalNamespaces,controller:u.publicKey,self:{publicKey:y.publicKey,metadata:this.client.metadata},peer:{publicKey:u.publicKey,metadata:u.metadata}},p&&{sessionProperties:p}),g&&{scopedProperties:g}),m&&{sessionConfig:m}),{transportType:hn.relay});await this.client.session.set(E.topic,E),await this.setExpiry(E.topic,E.expiry),await this.client.core.pairing.updateMetadata({topic:y.pairingTopic,metadata:E.peer.metadata}),this.client.events.emit("session_connect",{session:E}),this.events.emit(Pt("session_connect",y.proposalId),{session:E}),this.pendingSessions.delete(y.proposalId),this.deleteProposal(y.proposalId,!1),this.cleanupDuplicatePairings(E),await this.sendResult({id:r.id,topic:n,result:!0,throwOnFailedPublish:!0})}catch(c){await this.sendError({id:i,topic:n,error:c}),this.client.logger.error(c)}}),de(this,"onSessionSettleResponse",async(n,r)=>{const{id:i}=r;Ms(r)?(await this.client.session.update(n,{acknowledged:!0}),this.events.emit(Pt("session_approve",i),{})):Li(r)&&(await this.client.session.delete(n,Qt("USER_DISCONNECTED")),this.events.emit(Pt("session_approve",i),{error:r.error}))}),de(this,"onSessionUpdateRequest",async(n,r)=>{const{params:i,id:s}=r;try{const c=`${n}_session_update`,u=zf.get(c);if(u&&this.isRequestOutOfSync(u,s)){this.client.logger.warn(`Discarding out of sync request - ${s}`),this.sendError({id:s,topic:n,error:Qt("INVALID_UPDATE_REQUEST")});return}this.isValidUpdate(nn({topic:n},i));try{zf.set(c,s),await this.client.session.update(n,{namespaces:i.namespaces}),await this.sendResult({id:s,topic:n,result:!0,throwOnFailedPublish:!0})}catch(f){throw zf.delete(c),f}this.client.events.emit("session_update",{id:s,topic:n,params:i})}catch(c){await this.sendError({id:s,topic:n,error:c}),this.client.logger.error(c)}}),de(this,"isRequestOutOfSync",(n,r)=>r.toString().slice(0,-3){const{id:i}=r,s=Pt("session_update",i);if(this.events.listenerCount(s)===0)throw new Error(`emitting ${s} without any listeners`);Ms(r)?this.events.emit(Pt("session_update",i),{}):Li(r)&&this.events.emit(Pt("session_update",i),{error:r.error})}),de(this,"onSessionExtendRequest",async(n,r)=>{const{id:i}=r;try{this.isValidExtend({topic:n}),await this.setExpiry(n,Zn(fl)),await this.sendResult({id:i,topic:n,result:!0,throwOnFailedPublish:!0}),this.client.events.emit("session_extend",{id:i,topic:n})}catch(s){await this.sendError({id:i,topic:n,error:s}),this.client.logger.error(s)}}),de(this,"onSessionExtendResponse",(n,r)=>{const{id:i}=r,s=Pt("session_extend",i);if(this.events.listenerCount(s)===0)throw new Error(`emitting ${s} without any listeners`);Ms(r)?this.events.emit(Pt("session_extend",i),{}):Li(r)&&this.events.emit(Pt("session_extend",i),{error:r.error})}),de(this,"onSessionPingRequest",async(n,r)=>{const{id:i}=r;try{this.isValidPing({topic:n}),await this.sendResult({id:i,topic:n,result:!0,throwOnFailedPublish:!0}),this.client.events.emit("session_ping",{id:i,topic:n})}catch(s){await this.sendError({id:i,topic:n,error:s}),this.client.logger.error(s)}}),de(this,"onSessionPingResponse",(n,r)=>{const{id:i}=r,s=Pt("session_ping",i);setTimeout(()=>{if(this.events.listenerCount(s)===0)throw new Error(`emitting ${s} without any listeners 2176`);Ms(r)?this.events.emit(Pt("session_ping",i),{}):Li(r)&&this.events.emit(Pt("session_ping",i),{error:r.error})},500)}),de(this,"onSessionDeleteRequest",async(n,r)=>{const{id:i}=r;try{this.isValidDisconnect({topic:n,reason:r.params}),Promise.all([new Promise(s=>{this.client.core.relayer.once(or.publish,async()=>{s(await this.deleteSession({topic:n,id:i}))})}),this.sendResult({id:i,topic:n,result:!0,throwOnFailedPublish:!0}),this.cleanupPendingSentRequestsForTopic({topic:n,error:Qt("USER_DISCONNECTED")})]).catch(s=>this.client.logger.error(s))}catch(s){this.client.logger.error(s)}}),de(this,"onSessionRequest",async n=>{var r,i,s;const{topic:c,payload:u,attestation:f,encryptedId:d,transportType:p}=n,{id:g,params:m}=u;try{await this.isValidRequest(nn({topic:c},m));const y=this.client.session.get(c),A=await this.getVerifyContext({attestationId:f,hash:Fs(JSON.stringify(Uo("wc_sessionRequest",m,g))),encryptedId:d,metadata:y.peer.metadata,transportType:p}),E={id:g,topic:c,params:m,verifyContext:A};await this.setPendingSessionRequest(E),p===hn.link_mode&&(r=y.peer.metadata.redirect)!=null&&r.universal&&this.client.core.addLinkModeSupportedApp((i=y.peer.metadata.redirect)==null?void 0:i.universal),(s=this.client.signConfig)!=null&&s.disableRequestQueue?this.emitSessionRequest(E):(this.addSessionRequestToSessionRequestQueue(E),this.processSessionRequestQueue())}catch(y){await this.sendError({id:g,topic:c,error:y}),this.client.logger.error(y)}}),de(this,"onSessionRequestResponse",(n,r)=>{const{id:i}=r,s=Pt("session_request",i);if(this.events.listenerCount(s)===0)throw new Error(`emitting ${s} without any listeners`);Ms(r)?this.events.emit(Pt("session_request",i),{result:r.result}):Li(r)&&this.events.emit(Pt("session_request",i),{error:r.error})}),de(this,"onSessionEventRequest",async(n,r)=>{const{id:i,params:s}=r;try{const c=`${n}_session_event_${s.event.name}`,u=zf.get(c);if(u&&this.isRequestOutOfSync(u,i)){this.client.logger.info(`Discarding out of sync request - ${i}`);return}this.isValidEmit(nn({topic:n},s)),this.client.events.emit("session_event",{id:i,topic:n,params:s}),zf.set(c,i)}catch(c){await this.sendError({id:i,topic:n,error:c}),this.client.logger.error(c)}}),de(this,"onSessionAuthenticateResponse",(n,r)=>{const{id:i}=r;this.client.logger.trace({type:"method",method:"onSessionAuthenticateResponse",topic:n,payload:r}),Ms(r)?this.events.emit(Pt("session_request",i),{result:r.result}):Li(r)&&this.events.emit(Pt("session_request",i),{error:r.error})}),de(this,"onSessionAuthenticateRequest",async n=>{var r;const{topic:i,payload:s,attestation:c,encryptedId:u,transportType:f}=n;try{const{requester:d,authPayload:p,expiryTimestamp:g}=s.params,m=await this.getVerifyContext({attestationId:c,hash:Fs(JSON.stringify(s)),encryptedId:u,metadata:d.metadata,transportType:f}),y={requester:d,pairingTopic:i,id:s.id,authPayload:p,verifyContext:m,expiryTimestamp:g};await this.setAuthRequest(s.id,{request:y,pairingTopic:i,transportType:f}),f===hn.link_mode&&(r=d.metadata.redirect)!=null&&r.universal&&this.client.core.addLinkModeSupportedApp(d.metadata.redirect.universal),this.client.events.emit("session_authenticate",{topic:i,params:s.params,id:s.id,verifyContext:m})}catch(d){this.client.logger.error(d);const p=s.params.requester.publicKey,g=await this.client.core.crypto.generateKeyPair(),m=this.getAppLinkIfEnabled(s.params.requester.metadata,f),y={type:Oa,receiverPublicKey:p,senderPublicKey:g};await this.sendError({id:s.id,topic:i,error:d,encodeOpts:y,rpcOpts:sr.wc_sessionAuthenticate.autoReject,appLink:m})}}),de(this,"addSessionRequestToSessionRequestQueue",n=>{this.sessionRequestQueue.queue.push(n)}),de(this,"cleanupAfterResponse",n=>{this.deletePendingSessionRequest(n.response.id,{message:"fulfilled",code:0}),setTimeout(()=>{this.sessionRequestQueue.state=Os.idle,this.processSessionRequestQueue()},ge.toMiliseconds(this.requestQueueDelay))}),de(this,"cleanupPendingSentRequestsForTopic",({topic:n,error:r})=>{const i=this.client.core.history.pending;i.length>0&&i.filter(s=>s.topic===n&&s.request.method==="wc_sessionRequest").forEach(s=>{const c=s.request.id,u=Pt("session_request",c);if(this.events.listenerCount(u)===0)throw new Error(`emitting ${u} without any listeners`);this.events.emit(Pt("session_request",s.request.id),{error:r})})}),de(this,"processSessionRequestQueue",()=>{if(this.sessionRequestQueue.state===Os.active){this.client.logger.info("session request queue is already active.");return}const n=this.sessionRequestQueue.queue[0];if(!n){this.client.logger.info("session request queue is empty.");return}try{this.sessionRequestQueue.state=Os.active,this.emitSessionRequest(n)}catch(r){this.client.logger.error(r)}}),de(this,"emitSessionRequest",n=>{this.client.events.emit("session_request",n)}),de(this,"onPairingCreated",n=>{if(n.methods&&this.expectedPairingMethodMap.set(n.topic,n.methods),n.active)return;const r=this.client.proposal.getAll().find(i=>i.pairingTopic===n.topic);r&&this.onSessionProposeRequest({topic:n.topic,payload:Uo("wc_sessionPropose",Ur(nn({},r),{requiredNamespaces:r.requiredNamespaces,optionalNamespaces:r.optionalNamespaces,relays:r.relays,proposer:r.proposer,sessionProperties:r.sessionProperties,scopedProperties:r.scopedProperties}),r.id)})}),de(this,"isValidConnect",async n=>{if(!Zr(n)){const{message:d}=me("MISSING_OR_INVALID",`connect() params: ${JSON.stringify(n)}`);throw new Error(d)}const{pairingTopic:r,requiredNamespaces:i,optionalNamespaces:s,sessionProperties:c,scopedProperties:u,relays:f}=n;if(vr(r)||await this.isValidPairingTopic(r),!_z(f)){const{message:d}=me("MISSING_OR_INVALID",`connect() relays: ${f}`);throw new Error(d)}if(!vr(i)&&Ch(i)!==0&&this.validateNamespaces(i,"requiredNamespaces"),!vr(s)&&Ch(s)!==0&&this.validateNamespaces(s,"optionalNamespaces"),vr(c)||this.validateSessionProps(c,"sessionProperties"),!vr(u)){this.validateSessionProps(u,"scopedProperties");const d=Object.keys(i||{}).concat(Object.keys(s||{}));if(!Object.keys(u).every(p=>d.includes(p)))throw new Error(`Scoped properties must be a subset of required/optional namespaces, received: ${JSON.stringify(u)}, required/optional namespaces: ${JSON.stringify(d)}`)}}),de(this,"validateNamespaces",(n,r)=>{const i=Az(n,"connect()",r);if(i)throw new Error(i.message)}),de(this,"isValidApprove",async n=>{if(!Zr(n))throw new Error(me("MISSING_OR_INVALID",`approve() params: ${n}`).message);const{id:r,namespaces:i,relayProtocol:s,sessionProperties:c,scopedProperties:u}=n;this.checkRecentlyDeleted(r),await this.isValidProposalId(r);const f=this.client.proposal.get(r),d=g1(i,"approve()");if(d)throw new Error(d.message);const p=e6(f.requiredNamespaces,i,"approve()");if(p)throw new Error(p.message);if(!Vn(s,!0)){const{message:g}=me("MISSING_OR_INVALID",`approve() relayProtocol: ${s}`);throw new Error(g)}if(vr(c)||this.validateSessionProps(c,"sessionProperties"),!vr(u)){this.validateSessionProps(u,"scopedProperties");const g=new Set(Object.keys(i));if(!Object.keys(u).every(m=>g.has(m)))throw new Error(`Scoped properties must be a subset of approved namespaces, received: ${JSON.stringify(u)}, approved namespaces: ${Array.from(g).join(", ")}`)}}),de(this,"isValidReject",async n=>{if(!Zr(n)){const{message:s}=me("MISSING_OR_INVALID",`reject() params: ${n}`);throw new Error(s)}const{id:r,reason:i}=n;if(this.checkRecentlyDeleted(r),await this.isValidProposalId(r),!Sz(i)){const{message:s}=me("MISSING_OR_INVALID",`reject() reason: ${JSON.stringify(i)}`);throw new Error(s)}}),de(this,"isValidSessionSettleRequest",n=>{if(!Zr(n)){const{message:d}=me("MISSING_OR_INVALID",`onSessionSettleRequest() params: ${n}`);throw new Error(d)}const{relay:r,controller:i,namespaces:s,expiry:c}=n;if(!Vx(r)){const{message:d}=me("MISSING_OR_INVALID","onSessionSettleRequest() relay protocol should be a string");throw new Error(d)}const u=mz(i,"onSessionSettleRequest()");if(u)throw new Error(u.message);const f=g1(s,"onSessionSettleRequest()");if(f)throw new Error(f.message);if(Eo(c)){const{message:d}=me("EXPIRED","onSessionSettleRequest()");throw new Error(d)}}),de(this,"isValidUpdate",async n=>{if(!Zr(n)){const{message:f}=me("MISSING_OR_INVALID",`update() params: ${n}`);throw new Error(f)}const{topic:r,namespaces:i}=n;this.checkRecentlyDeleted(r),await this.isValidSessionTopic(r);const s=this.client.session.get(r),c=g1(i,"update()");if(c)throw new Error(c.message);const u=e6(s.requiredNamespaces,i,"update()");if(u)throw new Error(u.message)}),de(this,"isValidExtend",async n=>{if(!Zr(n)){const{message:i}=me("MISSING_OR_INVALID",`extend() params: ${n}`);throw new Error(i)}const{topic:r}=n;this.checkRecentlyDeleted(r),await this.isValidSessionTopic(r)}),de(this,"isValidRequest",async n=>{if(!Zr(n)){const{message:f}=me("MISSING_OR_INVALID",`request() params: ${n}`);throw new Error(f)}const{topic:r,request:i,chainId:s,expiry:c}=n;this.checkRecentlyDeleted(r),await this.isValidSessionTopic(r);const{namespaces:u}=this.client.session.get(r);if(!J5(u,s)){const{message:f}=me("MISSING_OR_INVALID",`request() chainId: ${s}`);throw new Error(f)}if(!Tz(i)){const{message:f}=me("MISSING_OR_INVALID",`request() ${JSON.stringify(i)}`);throw new Error(f)}if(!Iz(u,s,i.method)){const{message:f}=me("MISSING_OR_INVALID",`request() method: ${i.method}`);throw new Error(f)}if(c&&!Pz(c,_1)){const{message:f}=me("MISSING_OR_INVALID",`request() expiry: ${c}. Expiry must be a number (in seconds) between ${_1.min} and ${_1.max}`);throw new Error(f)}}),de(this,"isValidRespond",async n=>{var r;if(!Zr(n)){const{message:c}=me("MISSING_OR_INVALID",`respond() params: ${n}`);throw new Error(c)}const{topic:i,response:s}=n;try{await this.isValidSessionTopic(i)}catch(c){throw(r=n==null?void 0:n.response)!=null&&r.id&&this.cleanupAfterResponse(n),c}if(!xz(s)){const{message:c}=me("MISSING_OR_INVALID",`respond() response: ${JSON.stringify(s)}`);throw new Error(c)}}),de(this,"isValidPing",async n=>{if(!Zr(n)){const{message:i}=me("MISSING_OR_INVALID",`ping() params: ${n}`);throw new Error(i)}const{topic:r}=n;await this.isValidSessionOrPairingTopic(r)}),de(this,"isValidEmit",async n=>{if(!Zr(n)){const{message:u}=me("MISSING_OR_INVALID",`emit() params: ${n}`);throw new Error(u)}const{topic:r,event:i,chainId:s}=n;await this.isValidSessionTopic(r);const{namespaces:c}=this.client.session.get(r);if(!J5(c,s)){const{message:u}=me("MISSING_OR_INVALID",`emit() chainId: ${s}`);throw new Error(u)}if(!Nz(i)){const{message:u}=me("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(i)}`);throw new Error(u)}if(!Oz(c,s,i.name)){const{message:u}=me("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(i)}`);throw new Error(u)}}),de(this,"isValidDisconnect",async n=>{if(!Zr(n)){const{message:i}=me("MISSING_OR_INVALID",`disconnect() params: ${n}`);throw new Error(i)}const{topic:r}=n;await this.isValidSessionOrPairingTopic(r)}),de(this,"isValidAuthenticate",n=>{const{chains:r,uri:i,domain:s,nonce:c}=n;if(!Array.isArray(r)||r.length===0)throw new Error("chains is required and must be a non-empty array");if(!Vn(i,!1))throw new Error("uri is required parameter");if(!Vn(s,!1))throw new Error("domain is required parameter");if(!Vn(c,!1))throw new Error("nonce is required parameter");if([...new Set(r.map(f=>Ml(f).namespace))].length>1)throw new Error("Multi-namespace requests are not supported. Please request single namespace only.");const{namespace:u}=Ml(r[0]);if(u!=="eip155")throw new Error("Only eip155 namespace is supported for authenticated sessions. Please use .connect() for non-eip155 chains.")}),de(this,"getVerifyContext",async n=>{const{attestationId:r,hash:i,encryptedId:s,metadata:c,transportType:u}=n,f={verified:{verifyUrl:c.verifyUrl||lh,validation:"UNKNOWN",origin:c.url||""}};try{if(u===hn.link_mode){const p=this.getAppLinkIfEnabled(c,u);return f.verified.validation=p&&new URL(p).origin===new URL(c.url).origin?"VALID":"INVALID",f}const d=await this.client.core.verify.resolve({attestationId:r,hash:i,encryptedId:s,verifyUrl:c.verifyUrl});d&&(f.verified.origin=d.origin,f.verified.isScam=d.isScam,f.verified.validation=d.origin===new URL(c.url).origin?"VALID":"INVALID")}catch(d){this.client.logger.warn(d)}return this.client.logger.debug(`Verify context: ${JSON.stringify(f)}`),f}),de(this,"validateSessionProps",(n,r)=>{Object.values(n).forEach((i,s)=>{if(i==null){const{message:c}=me("MISSING_OR_INVALID",`${r} must contain an existing value for each key. Received: ${i} for key ${Object.keys(n)[s]}`);throw new Error(c)}})}),de(this,"getPendingAuthRequest",n=>{const r=this.client.auth.requests.get(n);return typeof r=="object"?r:void 0}),de(this,"addToRecentlyDeleted",(n,r)=>{if(this.recentlyDeletedMap.set(n,r),this.recentlyDeletedMap.size>=this.recentlyDeletedLimit){let i=0;const s=this.recentlyDeletedLimit/2;for(const c of this.recentlyDeletedMap.keys()){if(i++>=s)break;this.recentlyDeletedMap.delete(c)}}}),de(this,"checkRecentlyDeleted",n=>{const r=this.recentlyDeletedMap.get(n);if(r){const{message:i}=me("MISSING_OR_INVALID",`Record was recently deleted - ${r}: ${n}`);throw new Error(i)}}),de(this,"isLinkModeEnabled",(n,r)=>{var i,s,c,u,f,d,p,g,m;return!n||r!==hn.link_mode?!1:((s=(i=this.client.metadata)==null?void 0:i.redirect)==null?void 0:s.linkMode)===!0&&((u=(c=this.client.metadata)==null?void 0:c.redirect)==null?void 0:u.universal)!==void 0&&((d=(f=this.client.metadata)==null?void 0:f.redirect)==null?void 0:d.universal)!==""&&((p=n==null?void 0:n.redirect)==null?void 0:p.universal)!==void 0&&((g=n==null?void 0:n.redirect)==null?void 0:g.universal)!==""&&((m=n==null?void 0:n.redirect)==null?void 0:m.linkMode)===!0&&this.client.core.linkModeSupportedApps.includes(n.redirect.universal)&&typeof(global==null?void 0:global.Linking)<"u"}),de(this,"getAppLinkIfEnabled",(n,r)=>{var i;return this.isLinkModeEnabled(n,r)?(i=n==null?void 0:n.redirect)==null?void 0:i.universal:void 0}),de(this,"handleLinkModeMessage",({url:n})=>{if(!n||!n.includes("wc_ev")||!n.includes("topic"))return;const r=E5(n,"topic")||"",i=decodeURIComponent(E5(n,"wc_ev")||""),s=this.client.session.keys.includes(r);s&&this.client.session.update(r,{transportType:hn.link_mode}),this.client.core.dispatchEnvelope({topic:r,message:i,sessionExists:s})}),de(this,"registerLinkModeListeners",async()=>{var n;if(JE()||Yo()&&(n=this.client.metadata.redirect)!=null&&n.linkMode){const r=global==null?void 0:global.Linking;if(typeof r<"u"){r.addEventListener("url",this.handleLinkModeMessage,this.client.name);const i=await r.getInitialURL();i&&setTimeout(()=>{this.handleLinkModeMessage({url:i})},50)}}}),de(this,"shouldSetTVF",(n,r)=>{if(!r||n!=="wc_sessionRequest")return!1;const{request:i}=r;return Object.keys(B6).includes(i.method)}),de(this,"getTVFParams",(n,r,i)=>{var s,c;try{const u=r.request.method,f=this.extractTxHashesFromResult(u,i);return Ur(nn({correlationId:n,rpcMethods:[u],chainId:r.chainId},this.isValidContractData(r.request.params)&&{contractAddresses:[(c=(s=r.request.params)==null?void 0:s[0])==null?void 0:c.to]}),{txHashes:f})}catch(u){this.client.logger.warn("Error getting TVF params",u)}return{}}),de(this,"isValidContractData",n=>{var r;if(!n)return!1;try{const i=(n==null?void 0:n.data)||((r=n==null?void 0:n[0])==null?void 0:r.data);if(!i.startsWith("0x"))return!1;const s=i.slice(2);return/^[0-9a-fA-F]*$/.test(s)?s.length%2===0:!1}catch{}return!1}),de(this,"extractTxHashesFromResult",(n,r)=>{try{const i=B6[n];if(typeof r=="string")return[r];const s=r[i.key];if(ru(s))return n==="solana_signAllTransactions"?s.map(c=>OF(c)):s;if(typeof s=="string")return[s]}catch(i){this.client.logger.warn("Error extracting tx hashes from result",i)}return[]})}async processPendingMessageEvents(){try{const e=this.client.session.keys,n=this.client.core.relayer.messages.getWithoutAck(e);for(const[r,i]of Object.entries(n))for(const s of i)try{await this.onProviderMessageEvent({topic:r,message:s,publishedAt:Date.now()})}catch{this.client.logger.warn(`Error processing pending message event for topic: ${r}, message: ${s}`)}}catch(e){this.client.logger.warn("processPendingMessageEvents failed",e)}}isInitialized(){if(!this.initialized){const{message:e}=me("NOT_INITIALIZED",this.name);throw new Error(e)}}async confirmOnlineStateOrThrow(){await this.client.core.relayer.confirmOnlineStateOrThrow()}registerRelayerEvents(){this.client.core.relayer.on(or.message,e=>{this.onProviderMessageEvent(e)})}async onRelayMessage(e){const{topic:n,message:r,attestation:i,transportType:s}=e,{publicKey:c}=this.client.auth.authKeys.keys.includes(Rg)?this.client.auth.authKeys.get(Rg):{publicKey:void 0};try{const u=await this.client.core.crypto.decode(n,r,{receiverPublicKey:c,encoding:s===hn.link_mode?jf:ko});u2(u)?(this.client.core.history.set(n,u),await this.onRelayEventRequest({topic:n,payload:u,attestation:i,transportType:s,encryptedId:Fs(r)})):$m(u)?(await this.client.core.history.resolve(u),await this.onRelayEventResponse({topic:n,payload:u,transportType:s}),this.client.core.history.delete(n,u.id)):await this.onRelayEventUnknownPayload({topic:n,payload:u,transportType:s}),await this.client.core.relayer.messages.ack(n,r)}catch(u){this.client.logger.error(u)}}registerExpirerEvents(){this.client.core.expirer.on(Ui.expired,async e=>{const{topic:n,id:r}=wx(e.target);if(r&&this.client.pendingRequest.keys.includes(r))return await this.deletePendingSessionRequest(r,me("EXPIRED"),!0);if(r&&this.client.auth.requests.keys.includes(r))return await this.deletePendingAuthRequest(r,me("EXPIRED"),!0);n?this.client.session.keys.includes(n)&&(await this.deleteSession({topic:n,expirerHasDeleted:!0}),this.client.events.emit("session_expire",{topic:n})):r&&(await this.deleteProposal(r,!0),this.client.events.emit("proposal_expire",{id:r}))})}registerPairingEvents(){this.client.core.pairing.events.on(Ic.create,e=>this.onPairingCreated(e)),this.client.core.pairing.events.on(Ic.delete,e=>{this.addToRecentlyDeleted(e.topic,"pairing")})}isValidPairingTopic(e){if(!Vn(e,!1)){const{message:n}=me("MISSING_OR_INVALID",`pairing topic should be a string: ${e}`);throw new Error(n)}if(!this.client.core.pairing.pairings.keys.includes(e)){const{message:n}=me("NO_MATCHING_KEY",`pairing topic doesn't exist: ${e}`);throw new Error(n)}if(Eo(this.client.core.pairing.pairings.get(e).expiry)){const{message:n}=me("EXPIRED",`pairing topic: ${e}`);throw new Error(n)}}async isValidSessionTopic(e){if(!Vn(e,!1)){const{message:n}=me("MISSING_OR_INVALID",`session topic should be a string: ${e}`);throw new Error(n)}if(this.checkRecentlyDeleted(e),!this.client.session.keys.includes(e)){const{message:n}=me("NO_MATCHING_KEY",`session topic doesn't exist: ${e}`);throw new Error(n)}if(Eo(this.client.session.get(e).expiry)){await this.deleteSession({topic:e});const{message:n}=me("EXPIRED",`session topic: ${e}`);throw new Error(n)}if(!this.client.core.crypto.keychain.has(e)){const{message:n}=me("MISSING_OR_INVALID",`session topic does not exist in keychain: ${e}`);throw await this.deleteSession({topic:e}),new Error(n)}}async isValidSessionOrPairingTopic(e){if(this.checkRecentlyDeleted(e),this.client.session.keys.includes(e))await this.isValidSessionTopic(e);else if(this.client.core.pairing.pairings.keys.includes(e))this.isValidPairingTopic(e);else if(Vn(e,!1)){const{message:n}=me("NO_MATCHING_KEY",`session or pairing topic doesn't exist: ${e}`);throw new Error(n)}else{const{message:n}=me("MISSING_OR_INVALID",`session or pairing topic should be a string: ${e}`);throw new Error(n)}}async isValidProposalId(e){if(!Cz(e)){const{message:n}=me("MISSING_OR_INVALID",`proposal id should be a number: ${e}`);throw new Error(n)}if(!this.client.proposal.keys.includes(e)){const{message:n}=me("NO_MATCHING_KEY",`proposal id doesn't exist: ${e}`);throw new Error(n)}if(Eo(this.client.proposal.get(e).expiryTimestamp)){await this.deleteProposal(e);const{message:n}=me("EXPIRED",`proposal id: ${e}`);throw new Error(n)}}}class oK extends Eu{constructor(e,n){super(e,n,GV,l2),this.core=e,this.logger=n}}let cK=class extends Eu{constructor(e,n){super(e,n,VV,l2),this.core=e,this.logger=n}};class uK extends Eu{constructor(e,n){super(e,n,WV,l2,r=>r.id),this.core=e,this.logger=n}}class lK extends Eu{constructor(e,n){super(e,n,XV,jm,()=>Rg),this.core=e,this.logger=n}}class dK extends Eu{constructor(e,n){super(e,n,JV,jm),this.core=e,this.logger=n}}class fK extends Eu{constructor(e,n){super(e,n,eK,jm,r=>r.id),this.core=e,this.logger=n}}var hK=Object.defineProperty,pK=(t,e,n)=>e in t?hK(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,C1=(t,e,n)=>pK(t,typeof e!="symbol"?e+"":e,n);class gK{constructor(e,n){this.core=e,this.logger=n,C1(this,"authKeys"),C1(this,"pairingTopics"),C1(this,"requests"),this.authKeys=new lK(this.core,this.logger),this.pairingTopics=new dK(this.core,this.logger),this.requests=new fK(this.core,this.logger)}async init(){await this.authKeys.init(),await this.pairingTopics.init(),await this.requests.init()}}var mK=Object.defineProperty,bK=(t,e,n)=>e in t?mK(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ht=(t,e,n)=>bK(t,typeof e!="symbol"?e+"":e,n);let yK=class bN extends TP{constructor(e){super(e),ht(this,"protocol",pN),ht(this,"version",gN),ht(this,"name",A1.name),ht(this,"metadata"),ht(this,"core"),ht(this,"logger"),ht(this,"events",new zi.EventEmitter),ht(this,"engine"),ht(this,"session"),ht(this,"proposal"),ht(this,"pendingRequest"),ht(this,"auth"),ht(this,"signConfig"),ht(this,"on",(r,i)=>this.events.on(r,i)),ht(this,"once",(r,i)=>this.events.once(r,i)),ht(this,"off",(r,i)=>this.events.off(r,i)),ht(this,"removeListener",(r,i)=>this.events.removeListener(r,i)),ht(this,"removeAllListeners",r=>this.events.removeAllListeners(r)),ht(this,"connect",async r=>{try{return await this.engine.connect(r)}catch(i){throw this.logger.error(i.message),i}}),ht(this,"pair",async r=>{try{return await this.engine.pair(r)}catch(i){throw this.logger.error(i.message),i}}),ht(this,"approve",async r=>{try{return await this.engine.approve(r)}catch(i){throw this.logger.error(i.message),i}}),ht(this,"reject",async r=>{try{return await this.engine.reject(r)}catch(i){throw this.logger.error(i.message),i}}),ht(this,"update",async r=>{try{return await this.engine.update(r)}catch(i){throw this.logger.error(i.message),i}}),ht(this,"extend",async r=>{try{return await this.engine.extend(r)}catch(i){throw this.logger.error(i.message),i}}),ht(this,"request",async r=>{try{return await this.engine.request(r)}catch(i){throw this.logger.error(i.message),i}}),ht(this,"respond",async r=>{try{return await this.engine.respond(r)}catch(i){throw this.logger.error(i.message),i}}),ht(this,"ping",async r=>{try{return await this.engine.ping(r)}catch(i){throw this.logger.error(i.message),i}}),ht(this,"emit",async r=>{try{return await this.engine.emit(r)}catch(i){throw this.logger.error(i.message),i}}),ht(this,"disconnect",async r=>{try{return await this.engine.disconnect(r)}catch(i){throw this.logger.error(i.message),i}}),ht(this,"find",r=>{try{return this.engine.find(r)}catch(i){throw this.logger.error(i.message),i}}),ht(this,"getPendingSessionRequests",()=>{try{return this.engine.getPendingSessionRequests()}catch(r){throw this.logger.error(r.message),r}}),ht(this,"authenticate",async(r,i)=>{try{return await this.engine.authenticate(r,i)}catch(s){throw this.logger.error(s.message),s}}),ht(this,"formatAuthMessage",r=>{try{return this.engine.formatAuthMessage(r)}catch(i){throw this.logger.error(i.message),i}}),ht(this,"approveSessionAuthenticate",async r=>{try{return await this.engine.approveSessionAuthenticate(r)}catch(i){throw this.logger.error(i.message),i}}),ht(this,"rejectSessionAuthenticate",async r=>{try{return await this.engine.rejectSessionAuthenticate(r)}catch(i){throw this.logger.error(i.message),i}}),this.name=(e==null?void 0:e.name)||A1.name,this.metadata=(e==null?void 0:e.metadata)||bx(),this.signConfig=e==null?void 0:e.signConfig;const n=typeof(e==null?void 0:e.logger)<"u"&&typeof(e==null?void 0:e.logger)!="string"?e.logger:pp(yd({level:(e==null?void 0:e.logger)||A1.logger}));this.core=(e==null?void 0:e.core)||new HV(e),this.logger=Pr(n,this.name),this.session=new cK(this.core,this.logger),this.proposal=new oK(this.core,this.logger),this.pendingRequest=new uK(this.core,this.logger),this.engine=new aK(this),this.auth=new gK(this.core,this.logger)}static async init(e){const n=new bN(e);return await n.initialize(),n}get context(){return ni(this.logger)}get pairing(){return this.core.pairing.pairings}async initialize(){this.logger.trace("Initialized");try{await this.core.start(),await this.session.init(),await this.proposal.init(),await this.pendingRequest.init(),await this.auth.init(),await this.engine.init(),this.logger.info("SignClient Initialization Success"),setTimeout(()=>{this.engine.processRelayMessageCache()},ge.toMiliseconds(ge.ONE_SECOND))}catch(e){throw this.logger.info("SignClient Initialization Failure"),this.logger.error(e.message),e}}};var ug={exports:{}},$6;function vK(){return $6||($6=1,function(t,e){var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof $s<"u"&&$s,r=function(){function s(){this.fetch=!1,this.DOMException=n.DOMException}return s.prototype=n,new s}();(function(s){(function(c){var u=typeof s<"u"&&s||typeof self<"u"&&self||typeof $s<"u"&&$s||{},f={searchParams:"URLSearchParams"in u,iterable:"Symbol"in u&&"iterator"in Symbol,blob:"FileReader"in u&&"Blob"in u&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in u,arrayBuffer:"ArrayBuffer"in u};function d(T){return T&&DataView.prototype.isPrototypeOf(T)}if(f.arrayBuffer)var p=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],g=ArrayBuffer.isView||function(T){return T&&p.indexOf(Object.prototype.toString.call(T))>-1};function m(T){if(typeof T!="string"&&(T=String(T)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(T)||T==="")throw new TypeError('Invalid character in header field name: "'+T+'"');return T.toLowerCase()}function y(T){return typeof T!="string"&&(T=String(T)),T}function A(T){var S={next:function(){var k=T.shift();return{done:k===void 0,value:k}}};return f.iterable&&(S[Symbol.iterator]=function(){return S}),S}function E(T){this.map={},T instanceof E?T.forEach(function(S,k){this.append(k,S)},this):Array.isArray(T)?T.forEach(function(S){if(S.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+S.length);this.append(S[0],S[1])},this):T&&Object.getOwnPropertyNames(T).forEach(function(S){this.append(S,T[S])},this)}E.prototype.append=function(T,S){T=m(T),S=y(S);var k=this.map[T];this.map[T]=k?k+", "+S:S},E.prototype.delete=function(T){delete this.map[m(T)]},E.prototype.get=function(T){return T=m(T),this.has(T)?this.map[T]:null},E.prototype.has=function(T){return this.map.hasOwnProperty(m(T))},E.prototype.set=function(T,S){this.map[m(T)]=y(S)},E.prototype.forEach=function(T,S){for(var k in this.map)this.map.hasOwnProperty(k)&&T.call(S,this.map[k],k,this)},E.prototype.keys=function(){var T=[];return this.forEach(function(S,k){T.push(k)}),A(T)},E.prototype.values=function(){var T=[];return this.forEach(function(S){T.push(S)}),A(T)},E.prototype.entries=function(){var T=[];return this.forEach(function(S,k){T.push([k,S])}),A(T)},f.iterable&&(E.prototype[Symbol.iterator]=E.prototype.entries);function x(T){if(!T._noBody){if(T.bodyUsed)return Promise.reject(new TypeError("Already read"));T.bodyUsed=!0}}function O(T){return new Promise(function(S,k){T.onload=function(){S(T.result)},T.onerror=function(){k(T.error)}})}function I(T){var S=new FileReader,k=O(S);return S.readAsArrayBuffer(T),k}function M(T){var S=new FileReader,k=O(S),F=/charset=([A-Za-z0-9_-]+)/.exec(T.type),P=F?F[1]:"utf-8";return S.readAsText(T,P),k}function $(T){for(var S=new Uint8Array(T),k=new Array(S.length),F=0;F-1?S:T}function j(T,S){if(!(this instanceof j))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');S=S||{};var k=S.body;if(T instanceof j){if(T.bodyUsed)throw new TypeError("Already read");this.url=T.url,this.credentials=T.credentials,S.headers||(this.headers=new E(T.headers)),this.method=T.method,this.mode=T.mode,this.signal=T.signal,!k&&T._bodyInit!=null&&(k=T._bodyInit,T.bodyUsed=!0)}else this.url=String(T);if(this.credentials=S.credentials||this.credentials||"same-origin",(S.headers||!this.headers)&&(this.headers=new E(S.headers)),this.method=G(S.method||this.method||"GET"),this.mode=S.mode||this.mode||null,this.signal=S.signal||this.signal||function(){if("AbortController"in u){var w=new AbortController;return w.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&k)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(k),(this.method==="GET"||this.method==="HEAD")&&(S.cache==="no-store"||S.cache==="no-cache")){var F=/([?&])_=[^&]*/;if(F.test(this.url))this.url=this.url.replace(F,"$1_="+new Date().getTime());else{var P=/\?/;this.url+=(P.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}j.prototype.clone=function(){return new j(this,{body:this._bodyInit})};function V(T){var S=new FormData;return T.trim().split("&").forEach(function(k){if(k){var F=k.split("="),P=F.shift().replace(/\+/g," "),w=F.join("=").replace(/\+/g," ");S.append(decodeURIComponent(P),decodeURIComponent(w))}}),S}function L(T){var S=new E,k=T.replace(/\r?\n[\t ]+/g," ");return k.split("\r").map(function(F){return F.indexOf(` +`)===0?F.substr(1,F.length):F}).forEach(function(F){var P=F.split(":"),w=P.shift().trim();if(w){var B=P.join(":").trim();try{S.append(w,B)}catch(Z){console.warn("Response "+Z.message)}}}),S}R.call(j.prototype);function v(T,S){if(!(this instanceof v))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(S||(S={}),this.type="default",this.status=S.status===void 0?200:S.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=S.statusText===void 0?"":""+S.statusText,this.headers=new E(S.headers),this.url=S.url||"",this._initBody(T)}R.call(v.prototype),v.prototype.clone=function(){return new v(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new E(this.headers),url:this.url})},v.error=function(){var T=new v(null,{status:200,statusText:""});return T.ok=!1,T.status=0,T.type="error",T};var C=[301,302,303,307,308];v.redirect=function(T,S){if(C.indexOf(S)===-1)throw new RangeError("Invalid status code");return new v(null,{status:S,headers:{location:T}})},c.DOMException=u.DOMException;try{new c.DOMException}catch{c.DOMException=function(S,k){this.message=S,this.name=k;var F=Error(S);this.stack=F.stack},c.DOMException.prototype=Object.create(Error.prototype),c.DOMException.prototype.constructor=c.DOMException}function N(T,S){return new Promise(function(k,F){var P=new j(T,S);if(P.signal&&P.signal.aborted)return F(new c.DOMException("Aborted","AbortError"));var w=new XMLHttpRequest;function B(){w.abort()}w.onload=function(){var Y={statusText:w.statusText,headers:L(w.getAllResponseHeaders()||"")};P.url.indexOf("file://")===0&&(w.status<200||w.status>599)?Y.status=200:Y.status=w.status,Y.url="responseURL"in w?w.responseURL:Y.headers.get("X-Request-URL");var se="response"in w?w.response:w.responseText;setTimeout(function(){k(new v(se,Y))},0)},w.onerror=function(){setTimeout(function(){F(new TypeError("Network request failed"))},0)},w.ontimeout=function(){setTimeout(function(){F(new TypeError("Network request timed out"))},0)},w.onabort=function(){setTimeout(function(){F(new c.DOMException("Aborted","AbortError"))},0)};function Z(Y){try{return Y===""&&u.location.href?u.location.href:Y}catch{return Y}}if(w.open(P.method,Z(P.url),!0),P.credentials==="include"?w.withCredentials=!0:P.credentials==="omit"&&(w.withCredentials=!1),"responseType"in w&&(f.blob?w.responseType="blob":f.arrayBuffer&&(w.responseType="arraybuffer")),S&&typeof S.headers=="object"&&!(S.headers instanceof E||u.Headers&&S.headers instanceof u.Headers)){var ee=[];Object.getOwnPropertyNames(S.headers).forEach(function(Y){ee.push(m(Y)),w.setRequestHeader(Y,y(S.headers[Y]))}),P.headers.forEach(function(Y,se){ee.indexOf(se)===-1&&w.setRequestHeader(se,Y)})}else P.headers.forEach(function(Y,se){w.setRequestHeader(se,Y)});P.signal&&(P.signal.addEventListener("abort",B),w.onreadystatechange=function(){w.readyState===4&&P.signal.removeEventListener("abort",B)}),w.send(typeof P._bodyInit>"u"?null:P._bodyInit)})}return N.polyfill=!0,u.fetch||(u.fetch=N,u.Headers=E,u.Request=j,u.Response=v),c.Headers=E,c.Request=j,c.Response=v,c.fetch=N,Object.defineProperty(c,"__esModule",{value:!0}),c})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=n.fetch?n:r;e=i.fetch,e.default=i.fetch,e.fetch=i.fetch,e.Headers=i.Headers,e.Request=i.Request,e.Response=i.Response,t.exports=e}(ug,ug.exports)),ug.exports}var wK=vK();const F6=pd(wK);var EK=Object.defineProperty,AK=Object.defineProperties,_K=Object.getOwnPropertyDescriptors,j6=Object.getOwnPropertySymbols,CK=Object.prototype.hasOwnProperty,SK=Object.prototype.propertyIsEnumerable,z6=(t,e,n)=>e in t?EK(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,q6=(t,e)=>{for(var n in e||(e={}))CK.call(e,n)&&z6(t,n,e[n]);if(j6)for(var n of j6(e))SK.call(e,n)&&z6(t,n,e[n]);return t},H6=(t,e)=>AK(t,_K(e));const TK={Accept:"application/json","Content-Type":"application/json"},xK="POST",G6={headers:TK,method:xK},V6=10;let ps=class{constructor(e,n=!1){if(this.url=e,this.disableProviderPing=n,this.events=new zi.EventEmitter,this.isAvailable=!1,this.registering=!1,!o6(e))throw new Error(`Provided URL is not compatible with HTTP connection: ${e}`);this.url=e,this.disableProviderPing=n}get connected(){return this.isAvailable}get connecting(){return this.registering}on(e,n){this.events.on(e,n)}once(e,n){this.events.once(e,n)}off(e,n){this.events.off(e,n)}removeListener(e,n){this.events.removeListener(e,n)}async open(e=this.url){await this.register(e)}async close(){if(!this.isAvailable)throw new Error("Connection already closed");this.onClose()}async send(e){this.isAvailable||await this.register();try{const n=ka(e),r=await(await F6(this.url,H6(q6({},G6),{body:n}))).json();this.onPayload({data:r})}catch(n){this.onError(e.id,n)}}async register(e=this.url){if(!o6(e))throw new Error(`Provided URL is not compatible with HTTP connection: ${e}`);if(this.registering){const n=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=n||this.events.listenerCount("open")>=n)&&this.events.setMaxListeners(n+1),new Promise((r,i)=>{this.events.once("register_error",s=>{this.resetMaxListeners(),i(s)}),this.events.once("open",()=>{if(this.resetMaxListeners(),typeof this.isAvailable>"u")return i(new Error("HTTP connection is missing or invalid"));r()})})}this.url=e,this.registering=!0;try{if(!this.disableProviderPing){const n=ka({id:1,jsonrpc:"2.0",method:"test",params:[]});await F6(e,H6(q6({},G6),{body:n}))}this.onOpen()}catch(n){const r=this.parseError(n);throw this.events.emit("register_error",r),this.onClose(),r}}onOpen(){this.isAvailable=!0,this.registering=!1,this.events.emit("open")}onClose(){this.isAvailable=!1,this.registering=!1,this.events.emit("close")}onPayload(e){if(typeof e.data>"u")return;const n=typeof e.data=="string"?Xc(e.data):e.data;this.events.emit("payload",n)}onError(e,n){const r=this.parseError(n),i=r.message||r.toString(),s=Lm(e,i);this.events.emit("payload",s)}parseError(e,n=this.url){return Qx(e,n,"HTTP")}resetMaxListeners(){this.events.getMaxListeners()>V6&&this.events.setMaxListeners(V6)}};const K6="error",NK="wss://relay.walletconnect.org",IK="wc",OK="universal_provider",lg=`${IK}@2:${OK}:`,yN="https://rpc.walletconnect.org/v1/",xl="generic",RK=`${yN}bundler`,Vi={DEFAULT_CHAIN_CHANGED:"default_chain_changed"};function DK(){}function d2(t){return t==null||typeof t!="object"&&typeof t!="function"}function f2(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function PK(t){if(d2(t))return t;if(Array.isArray(t)||f2(t)||t instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&t instanceof SharedArrayBuffer)return t.slice(0);const e=Object.getPrototypeOf(t),n=e.constructor;if(t instanceof Date||t instanceof Map||t instanceof Set)return new n(t);if(t instanceof RegExp){const r=new n(t);return r.lastIndex=t.lastIndex,r}if(t instanceof DataView)return new n(t.buffer.slice(0));if(t instanceof Error){const r=new n(t.message);return r.stack=t.stack,r.name=t.name,r.cause=t.cause,r}if(typeof File<"u"&&t instanceof File)return new n([t],t.name,{type:t.type,lastModified:t.lastModified});if(typeof t=="object"){const r=Object.create(e);return Object.assign(r,t)}return t}function W6(t){return typeof t=="object"&&t!==null}function vN(t){return Object.getOwnPropertySymbols(t).filter(e=>Object.prototype.propertyIsEnumerable.call(t,e))}function wN(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const MK="[object RegExp]",EN="[object String]",AN="[object Number]",_N="[object Boolean]",CN="[object Arguments]",kK="[object Symbol]",UK="[object Date]",BK="[object Map]",LK="[object Set]",$K="[object Array]",FK="[object ArrayBuffer]",jK="[object Object]",zK="[object DataView]",qK="[object Uint8Array]",HK="[object Uint8ClampedArray]",GK="[object Uint16Array]",VK="[object Uint32Array]",KK="[object Int8Array]",WK="[object Int16Array]",QK="[object Int32Array]",YK="[object Float32Array]",ZK="[object Float64Array]";function XK(t,e){return Dl(t,void 0,t,new Map,e)}function Dl(t,e,n,r=new Map,i=void 0){const s=i==null?void 0:i(t,e,n,r);if(s!=null)return s;if(d2(t))return t;if(r.has(t))return r.get(t);if(Array.isArray(t)){const c=new Array(t.length);r.set(t,c);for(let u=0;u{if(typeof t=="object")switch(Object.prototype.toString.call(t)){case AN:case EN:case _N:{const c=new t.constructor(t==null?void 0:t.valueOf());return Oc(c,t),c}case CN:{const c={};return Oc(c,t),c.length=t.length,c[Symbol.iterator]=t[Symbol.iterator],c}default:return}})}function Q6(t){return eW(t)}function Y6(t){return t!==null&&typeof t=="object"&&wN(t)==="[object Arguments]"}function tW(t){return f2(t)}function nW(t){var n;if(typeof t!="object"||t==null)return!1;if(Object.getPrototypeOf(t)===null)return!0;if(Object.prototype.toString.call(t)!=="[object Object]"){const r=t[Symbol.toStringTag];return r==null||!((n=Object.getOwnPropertyDescriptor(t,Symbol.toStringTag))!=null&&n.writable)?!1:t.toString()===`[object ${r}]`}let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function rW(t,...e){const n=e.slice(0,-1),r=e[e.length-1];let i=t;for(let s=0;se in t?sW(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,dg=(t,e)=>{for(var n in e||(e={}))cW.call(e,n)&&X6(t,n,e[n]);if(Z6)for(var n of Z6(e))uW.call(e,n)&&X6(t,n,e[n]);return t},lW=(t,e)=>aW(t,oW(e));function bi(t,e,n){var r;const i=Ml(t);return((r=e.rpcMap)==null?void 0:r[i.reference])||`${yN}?chainId=${i.namespace}:${i.reference}&projectId=${n}`}function Au(t){return t.includes(":")?t.split(":")[1]:t}function SN(t){return t.map(e=>`${e.split(":")[0]}:${e.split(":")[1]}`)}function dW(t,e){const n=Object.keys(e.namespaces).filter(i=>i.includes(t));if(!n.length)return[];const r=[];return n.forEach(i=>{const s=e.namespaces[i].accounts;r.push(...s)}),r}function S1(t={},e={}){const n=J6(t),r=J6(e);return iW(n,r)}function J6(t){var e,n,r,i;const s={};if(!Ch(t))return s;for(const[c,u]of Object.entries(t)){const f=a2(c)?[c]:u.chains,d=u.methods||[],p=u.events||[],g=u.rpcMap||{},m=nh(c);s[m]=lW(dg(dg({},s[m]),u),{chains:xg(f,(e=s[m])==null?void 0:e.chains),methods:xg(d,(n=s[m])==null?void 0:n.methods),events:xg(p,(r=s[m])==null?void 0:r.events),rpcMap:dg(dg({},g),(i=s[m])==null?void 0:i.rpcMap)})}return s}function fW(t){return t.includes(":")?t.split(":")[2]:t}function e4(t){const e={};for(const[n,r]of Object.entries(t)){const i=r.methods||[],s=r.events||[],c=r.accounts||[],u=a2(n)?[n]:r.chains?r.chains:SN(r.accounts);e[n]={chains:u,methods:i,events:s,accounts:c}}return e}function T1(t){return typeof t=="number"?t:t.includes("0x")?parseInt(t,16):(t=t.includes(":")?t.split(":")[1]:t,isNaN(Number(t))?t:Number(t))}const TN={},Tt=t=>TN[t],x1=(t,e)=>{TN[t]=e};var hW=Object.defineProperty,pW=(t,e,n)=>e in t?hW(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,hl=(t,e,n)=>pW(t,typeof e!="symbol"?e+"":e,n);class gW{constructor(e){hl(this,"name","polkadot"),hl(this,"client"),hl(this,"httpProviders"),hl(this,"events"),hl(this,"namespace"),hl(this,"chainId"),this.namespace=e.namespace,this.events=Tt("events"),this.client=Tt("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return e.split(":")[1]}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,n){this.httpProviders[e]||this.setHttpProvider(e,n),this.chainId=e,this.events.emit(Vi.DEFAULT_CHAIN_CHANGED,`${this.name}:${e}`)}getAccounts(){const e=this.namespace.accounts;return e?e.filter(n=>n.split(":")[1]===this.chainId.toString()).map(n=>n.split(":")[2])||[]:[]}createHttpProviders(){const e={};return this.namespace.chains.forEach(n=>{var r;const i=Au(n);e[i]=this.createHttpProvider(i,(r=this.namespace.rpcMap)==null?void 0:r[n])}),e}getHttpProvider(){const e=`${this.name}:${this.chainId}`,n=this.httpProviders[e];if(typeof n>"u")throw new Error(`JSON-RPC provider for ${e} not found`);return n}setHttpProvider(e,n){const r=this.createHttpProvider(e,n);r&&(this.httpProviders[e]=r)}createHttpProvider(e,n){const r=n||bi(e,this.namespace,this.client.core.projectId);if(!r)throw new Error(`No RPC url provided for chainId: ${e}`);return new Gi(new ps(r,Tt("disableProviderPing")))}}var mW=Object.defineProperty,bW=Object.defineProperties,yW=Object.getOwnPropertyDescriptors,t4=Object.getOwnPropertySymbols,vW=Object.prototype.hasOwnProperty,wW=Object.prototype.propertyIsEnumerable,Gw=(t,e,n)=>e in t?mW(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,n4=(t,e)=>{for(var n in e||(e={}))vW.call(e,n)&&Gw(t,n,e[n]);if(t4)for(var n of t4(e))wW.call(e,n)&&Gw(t,n,e[n]);return t},r4=(t,e)=>bW(t,yW(e)),pl=(t,e,n)=>Gw(t,typeof e!="symbol"?e+"":e,n);class EW{constructor(e){pl(this,"name","eip155"),pl(this,"client"),pl(this,"chainId"),pl(this,"namespace"),pl(this,"httpProviders"),pl(this,"events"),this.namespace=e.namespace,this.events=Tt("events"),this.client=Tt("client"),this.httpProviders=this.createHttpProviders(),this.chainId=parseInt(this.getDefaultChain())}async request(e){switch(e.request.method){case"eth_requestAccounts":return this.getAccounts();case"eth_accounts":return this.getAccounts();case"wallet_switchEthereumChain":return await this.handleSwitchChain(e);case"eth_chainId":return parseInt(this.getDefaultChain());case"wallet_getCapabilities":return await this.getCapabilities(e);case"wallet_getCallsStatus":return await this.getCallStatus(e)}return this.namespace.methods.includes(e.request.method)?await this.client.request(e):this.getHttpProvider().request(e.request)}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}setDefaultChain(e,n){this.httpProviders[e]||this.setHttpProvider(parseInt(e),n),this.chainId=parseInt(e),this.events.emit(Vi.DEFAULT_CHAIN_CHANGED,`${this.name}:${e}`)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId.toString();if(this.namespace.defaultChain)return this.namespace.defaultChain;const e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return e.split(":")[1]}createHttpProvider(e,n){const r=n||bi(`${this.name}:${e}`,this.namespace,this.client.core.projectId);if(!r)throw new Error(`No RPC url provided for chainId: ${e}`);return new Gi(new ps(r,Tt("disableProviderPing")))}setHttpProvider(e,n){const r=this.createHttpProvider(e,n);r&&(this.httpProviders[e]=r)}createHttpProviders(){const e={};return this.namespace.chains.forEach(n=>{var r;const i=parseInt(Au(n));e[i]=this.createHttpProvider(i,(r=this.namespace.rpcMap)==null?void 0:r[n])}),e}getAccounts(){const e=this.namespace.accounts;return e?[...new Set(e.filter(n=>n.split(":")[1]===this.chainId.toString()).map(n=>n.split(":")[2]))]:[]}getHttpProvider(){const e=this.chainId,n=this.httpProviders[e];if(typeof n>"u")throw new Error(`JSON-RPC provider for ${e} not found`);return n}async handleSwitchChain(e){var n,r;let i=e.request.params?(n=e.request.params[0])==null?void 0:n.chainId:"0x0";i=i.startsWith("0x")?i:`0x${i}`;const s=parseInt(i,16);if(this.isChainApproved(s))this.setDefaultChain(`${s}`);else if(this.namespace.methods.includes("wallet_switchEthereumChain"))await this.client.request({topic:e.topic,request:{method:e.request.method,params:[{chainId:i}]},chainId:(r=this.namespace.chains)==null?void 0:r[0]}),this.setDefaultChain(`${s}`);else throw new Error(`Failed to switch to chain 'eip155:${s}'. The chain is not approved or the wallet does not support 'wallet_switchEthereumChain' method.`);return null}isChainApproved(e){return this.namespace.chains.includes(`${this.name}:${e}`)}async getCapabilities(e){var n,r,i;const s=(r=(n=e.request)==null?void 0:n.params)==null?void 0:r[0];if(!s)throw new Error("Missing address parameter in `wallet_getCapabilities` request");const c=this.client.session.get(e.topic),u=((i=c==null?void 0:c.sessionProperties)==null?void 0:i.capabilities)||{};if(u!=null&&u[s])return u==null?void 0:u[s];const f=await this.client.request(e);try{await this.client.session.update(e.topic,{sessionProperties:r4(n4({},c.sessionProperties||{}),{capabilities:r4(n4({},u||{}),{[s]:f})})})}catch(d){console.warn("Failed to update session with capabilities",d)}return f}async getCallStatus(e){var n,r;const i=this.client.session.get(e.topic),s=(n=i.sessionProperties)==null?void 0:n.bundler_name;if(s){const u=this.getBundlerUrl(e.chainId,s);try{return await this.getUserOperationReceipt(u,e)}catch(f){console.warn("Failed to fetch call status from bundler",f,u)}}const c=(r=i.sessionProperties)==null?void 0:r.bundler_url;if(c)try{return await this.getUserOperationReceipt(c,e)}catch(u){console.warn("Failed to fetch call status from custom bundler",u,c)}if(this.namespace.methods.includes(e.request.method))return await this.client.request(e);throw new Error("Fetching call status not approved by the wallet.")}async getUserOperationReceipt(e,n){var r;const i=new URL(e),s=await fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Uo("eth_getUserOperationReceipt",[(r=n.request.params)==null?void 0:r[0]]))});if(!s.ok)throw new Error(`Failed to fetch user operation receipt - ${s.status}`);return await s.json()}getBundlerUrl(e,n){return`${RK}?projectId=${this.client.core.projectId}&chainId=${e}&bundler=${n}`}}var AW=Object.defineProperty,_W=(t,e,n)=>e in t?AW(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,gl=(t,e,n)=>_W(t,typeof e!="symbol"?e+"":e,n);class CW{constructor(e){gl(this,"name","solana"),gl(this,"client"),gl(this,"httpProviders"),gl(this,"events"),gl(this,"namespace"),gl(this,"chainId"),this.namespace=e.namespace,this.events=Tt("events"),this.client=Tt("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,n){this.httpProviders[e]||this.setHttpProvider(e,n),this.chainId=e,this.events.emit(Vi.DEFAULT_CHAIN_CHANGED,`${this.name}:${e}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return e.split(":")[1]}getAccounts(){const e=this.namespace.accounts;return e?[...new Set(e.filter(n=>n.split(":")[1]===this.chainId.toString()).map(n=>n.split(":")[2]))]:[]}createHttpProviders(){const e={};return this.namespace.chains.forEach(n=>{var r;const i=Au(n);e[i]=this.createHttpProvider(i,(r=this.namespace.rpcMap)==null?void 0:r[n])}),e}getHttpProvider(){const e=`${this.name}:${this.chainId}`,n=this.httpProviders[e];if(typeof n>"u")throw new Error(`JSON-RPC provider for ${e} not found`);return n}setHttpProvider(e,n){const r=this.createHttpProvider(e,n);r&&(this.httpProviders[e]=r)}createHttpProvider(e,n){const r=n||bi(e,this.namespace,this.client.core.projectId);if(!r)throw new Error(`No RPC url provided for chainId: ${e}`);return new Gi(new ps(r,Tt("disableProviderPing")))}}var SW=Object.defineProperty,TW=(t,e,n)=>e in t?SW(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ml=(t,e,n)=>TW(t,typeof e!="symbol"?e+"":e,n);class xW{constructor(e){ml(this,"name","cosmos"),ml(this,"client"),ml(this,"httpProviders"),ml(this,"events"),ml(this,"namespace"),ml(this,"chainId"),this.namespace=e.namespace,this.events=Tt("events"),this.client=Tt("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return e.split(":")[1]}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,n){this.httpProviders[e]||this.setHttpProvider(e,n),this.chainId=e,this.events.emit(Vi.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){const e=this.namespace.accounts;return e?[...new Set(e.filter(n=>n.split(":")[1]===this.chainId.toString()).map(n=>n.split(":")[2]))]:[]}createHttpProviders(){const e={};return this.namespace.chains.forEach(n=>{var r;const i=Au(n);e[i]=this.createHttpProvider(i,(r=this.namespace.rpcMap)==null?void 0:r[n])}),e}getHttpProvider(){const e=`${this.name}:${this.chainId}`,n=this.httpProviders[e];if(typeof n>"u")throw new Error(`JSON-RPC provider for ${e} not found`);return n}setHttpProvider(e,n){const r=this.createHttpProvider(e,n);r&&(this.httpProviders[e]=r)}createHttpProvider(e,n){const r=n||bi(e,this.namespace,this.client.core.projectId);if(!r)throw new Error(`No RPC url provided for chainId: ${e}`);return new Gi(new ps(r,Tt("disableProviderPing")))}}var NW=Object.defineProperty,IW=(t,e,n)=>e in t?NW(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,bl=(t,e,n)=>IW(t,typeof e!="symbol"?e+"":e,n);class OW{constructor(e){bl(this,"name","algorand"),bl(this,"client"),bl(this,"httpProviders"),bl(this,"events"),bl(this,"namespace"),bl(this,"chainId"),this.namespace=e.namespace,this.events=Tt("events"),this.client=Tt("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,n){if(!this.httpProviders[e]){const r=n||bi(`${this.name}:${e}`,this.namespace,this.client.core.projectId);if(!r)throw new Error(`No RPC url provided for chainId: ${e}`);this.setHttpProvider(e,r)}this.chainId=e,this.events.emit(Vi.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return e.split(":")[1]}getAccounts(){const e=this.namespace.accounts;return e?[...new Set(e.filter(n=>n.split(":")[1]===this.chainId.toString()).map(n=>n.split(":")[2]))]:[]}createHttpProviders(){const e={};return this.namespace.chains.forEach(n=>{var r;e[n]=this.createHttpProvider(n,(r=this.namespace.rpcMap)==null?void 0:r[n])}),e}getHttpProvider(){const e=`${this.name}:${this.chainId}`,n=this.httpProviders[e];if(typeof n>"u")throw new Error(`JSON-RPC provider for ${e} not found`);return n}setHttpProvider(e,n){const r=this.createHttpProvider(e,n);r&&(this.httpProviders[e]=r)}createHttpProvider(e,n){const r=n||bi(e,this.namespace,this.client.core.projectId);return typeof r>"u"?void 0:new Gi(new ps(r,Tt("disableProviderPing")))}}var RW=Object.defineProperty,DW=(t,e,n)=>e in t?RW(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,yl=(t,e,n)=>DW(t,typeof e!="symbol"?e+"":e,n);class PW{constructor(e){yl(this,"name","cip34"),yl(this,"client"),yl(this,"httpProviders"),yl(this,"events"),yl(this,"namespace"),yl(this,"chainId"),this.namespace=e.namespace,this.events=Tt("events"),this.client=Tt("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return e.split(":")[1]}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,n){this.httpProviders[e]||this.setHttpProvider(e,n),this.chainId=e,this.events.emit(Vi.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){const e=this.namespace.accounts;return e?[...new Set(e.filter(n=>n.split(":")[1]===this.chainId.toString()).map(n=>n.split(":")[2]))]:[]}createHttpProviders(){const e={};return this.namespace.chains.forEach(n=>{const r=this.getCardanoRPCUrl(n),i=Au(n);e[i]=this.createHttpProvider(i,r)}),e}getHttpProvider(){const e=`${this.name}:${this.chainId}`,n=this.httpProviders[e];if(typeof n>"u")throw new Error(`JSON-RPC provider for ${e} not found`);return n}getCardanoRPCUrl(e){const n=this.namespace.rpcMap;if(n)return n[e]}setHttpProvider(e,n){const r=this.createHttpProvider(e,n);r&&(this.httpProviders[e]=r)}createHttpProvider(e,n){const r=n||this.getCardanoRPCUrl(e);if(!r)throw new Error(`No RPC url provided for chainId: ${e}`);return new Gi(new ps(r,Tt("disableProviderPing")))}}var MW=Object.defineProperty,kW=(t,e,n)=>e in t?MW(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,vl=(t,e,n)=>kW(t,typeof e!="symbol"?e+"":e,n);class UW{constructor(e){vl(this,"name","elrond"),vl(this,"client"),vl(this,"httpProviders"),vl(this,"events"),vl(this,"namespace"),vl(this,"chainId"),this.namespace=e.namespace,this.events=Tt("events"),this.client=Tt("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,n){this.httpProviders[e]||this.setHttpProvider(e,n),this.chainId=e,this.events.emit(Vi.DEFAULT_CHAIN_CHANGED,`${this.name}:${e}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return e.split(":")[1]}getAccounts(){const e=this.namespace.accounts;return e?[...new Set(e.filter(n=>n.split(":")[1]===this.chainId.toString()).map(n=>n.split(":")[2]))]:[]}createHttpProviders(){const e={};return this.namespace.chains.forEach(n=>{var r;const i=Au(n);e[i]=this.createHttpProvider(i,(r=this.namespace.rpcMap)==null?void 0:r[n])}),e}getHttpProvider(){const e=`${this.name}:${this.chainId}`,n=this.httpProviders[e];if(typeof n>"u")throw new Error(`JSON-RPC provider for ${e} not found`);return n}setHttpProvider(e,n){const r=this.createHttpProvider(e,n);r&&(this.httpProviders[e]=r)}createHttpProvider(e,n){const r=n||bi(e,this.namespace,this.client.core.projectId);if(!r)throw new Error(`No RPC url provided for chainId: ${e}`);return new Gi(new ps(r,Tt("disableProviderPing")))}}var BW=Object.defineProperty,LW=(t,e,n)=>e in t?BW(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,wl=(t,e,n)=>LW(t,typeof e!="symbol"?e+"":e,n);class $W{constructor(e){wl(this,"name","multiversx"),wl(this,"client"),wl(this,"httpProviders"),wl(this,"events"),wl(this,"namespace"),wl(this,"chainId"),this.namespace=e.namespace,this.events=Tt("events"),this.client=Tt("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,n){this.httpProviders[e]||this.setHttpProvider(e,n),this.chainId=e,this.events.emit(Vi.DEFAULT_CHAIN_CHANGED,`${this.name}:${e}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return e.split(":")[1]}getAccounts(){const e=this.namespace.accounts;return e?[...new Set(e.filter(n=>n.split(":")[1]===this.chainId.toString()).map(n=>n.split(":")[2]))]:[]}createHttpProviders(){const e={};return this.namespace.chains.forEach(n=>{var r;const i=Au(n);e[i]=this.createHttpProvider(i,(r=this.namespace.rpcMap)==null?void 0:r[n])}),e}getHttpProvider(){const e=`${this.name}:${this.chainId}`,n=this.httpProviders[e];if(typeof n>"u")throw new Error(`JSON-RPC provider for ${e} not found`);return n}setHttpProvider(e,n){const r=this.createHttpProvider(e,n);r&&(this.httpProviders[e]=r)}createHttpProvider(e,n){const r=n||bi(e,this.namespace,this.client.core.projectId);if(!r)throw new Error(`No RPC url provided for chainId: ${e}`);return new Gi(new ps(r,Tt("disableProviderPing")))}}var FW=Object.defineProperty,jW=(t,e,n)=>e in t?FW(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,El=(t,e,n)=>jW(t,typeof e!="symbol"?e+"":e,n);class zW{constructor(e){El(this,"name","near"),El(this,"client"),El(this,"httpProviders"),El(this,"events"),El(this,"namespace"),El(this,"chainId"),this.namespace=e.namespace,this.events=Tt("events"),this.client=Tt("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return e.split(":")[1]}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,n){if(this.chainId=e,!this.httpProviders[e]){const r=n||bi(`${this.name}:${e}`,this.namespace);if(!r)throw new Error(`No RPC url provided for chainId: ${e}`);this.setHttpProvider(e,r)}this.events.emit(Vi.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){const e=this.namespace.accounts;return e?e.filter(n=>n.split(":")[1]===this.chainId.toString()).map(n=>n.split(":")[2])||[]:[]}createHttpProviders(){const e={};return this.namespace.chains.forEach(n=>{var r;e[n]=this.createHttpProvider(n,(r=this.namespace.rpcMap)==null?void 0:r[n])}),e}getHttpProvider(){const e=`${this.name}:${this.chainId}`,n=this.httpProviders[e];if(typeof n>"u")throw new Error(`JSON-RPC provider for ${e} not found`);return n}setHttpProvider(e,n){const r=this.createHttpProvider(e,n);r&&(this.httpProviders[e]=r)}createHttpProvider(e,n){const r=n||bi(e,this.namespace);return typeof r>"u"?void 0:new Gi(new ps(r,Tt("disableProviderPing")))}}var qW=Object.defineProperty,HW=(t,e,n)=>e in t?qW(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Al=(t,e,n)=>HW(t,typeof e!="symbol"?e+"":e,n);class GW{constructor(e){Al(this,"name","tezos"),Al(this,"client"),Al(this,"httpProviders"),Al(this,"events"),Al(this,"namespace"),Al(this,"chainId"),this.namespace=e.namespace,this.events=Tt("events"),this.client=Tt("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return e.split(":")[1]}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,n){if(this.chainId=e,!this.httpProviders[e]){const r=n||bi(`${this.name}:${e}`,this.namespace);if(!r)throw new Error(`No RPC url provided for chainId: ${e}`);this.setHttpProvider(e,r)}this.events.emit(Vi.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){const e=this.namespace.accounts;return e?e.filter(n=>n.split(":")[1]===this.chainId.toString()).map(n=>n.split(":")[2])||[]:[]}createHttpProviders(){const e={};return this.namespace.chains.forEach(n=>{e[n]=this.createHttpProvider(n)}),e}getHttpProvider(){const e=`${this.name}:${this.chainId}`,n=this.httpProviders[e];if(typeof n>"u")throw new Error(`JSON-RPC provider for ${e} not found`);return n}setHttpProvider(e,n){const r=this.createHttpProvider(e,n);r&&(this.httpProviders[e]=r)}createHttpProvider(e,n){const r=n||bi(e,this.namespace);return typeof r>"u"?void 0:new Gi(new ps(r))}}var VW=Object.defineProperty,KW=(t,e,n)=>e in t?VW(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,_l=(t,e,n)=>KW(t,typeof e!="symbol"?e+"":e,n);class WW{constructor(e){_l(this,"name",xl),_l(this,"client"),_l(this,"httpProviders"),_l(this,"events"),_l(this,"namespace"),_l(this,"chainId"),this.namespace=e.namespace,this.events=Tt("events"),this.client=Tt("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace.chains=[...new Set((this.namespace.chains||[]).concat(e.chains||[]))],this.namespace.accounts=[...new Set((this.namespace.accounts||[]).concat(e.accounts||[]))],this.namespace.methods=[...new Set((this.namespace.methods||[]).concat(e.methods||[]))],this.namespace.events=[...new Set((this.namespace.events||[]).concat(e.events||[]))],this.httpProviders=this.createHttpProviders()}requestAccounts(){return this.getAccounts()}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider(e.chainId).request(e.request)}setDefaultChain(e,n){this.httpProviders[e]||this.setHttpProvider(e,n),this.chainId=e,this.events.emit(Vi.DEFAULT_CHAIN_CHANGED,`${this.name}:${e}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return e.split(":")[1]}getAccounts(){const e=this.namespace.accounts;return e?[...new Set(e.filter(n=>n.split(":")[1]===this.chainId.toString()).map(n=>n.split(":")[2]))]:[]}createHttpProviders(){var e,n;const r={};return(n=(e=this.namespace)==null?void 0:e.accounts)==null||n.forEach(i=>{const s=Ml(i);r[`${s.namespace}:${s.reference}`]=this.createHttpProvider(i)}),r}getHttpProvider(e){const n=this.httpProviders[e];if(typeof n>"u")throw new Error(`JSON-RPC provider for ${e} not found`);return n}setHttpProvider(e,n){const r=this.createHttpProvider(e,n);r&&(this.httpProviders[e]=r)}createHttpProvider(e,n){const r=n||bi(e,this.namespace,this.client.core.projectId);if(!r)throw new Error(`No RPC url provided for chainId: ${e}`);return new Gi(new ps(r,Tt("disableProviderPing")))}}var QW=Object.defineProperty,YW=Object.defineProperties,ZW=Object.getOwnPropertyDescriptors,i4=Object.getOwnPropertySymbols,XW=Object.prototype.hasOwnProperty,JW=Object.prototype.propertyIsEnumerable,Vw=(t,e,n)=>e in t?QW(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,fg=(t,e)=>{for(var n in e||(e={}))XW.call(e,n)&&Vw(t,n,e[n]);if(i4)for(var n of i4(e))JW.call(e,n)&&Vw(t,n,e[n]);return t},N1=(t,e)=>YW(t,ZW(e)),Di=(t,e,n)=>Vw(t,typeof e!="symbol"?e+"":e,n);let eQ=class xN{constructor(e){Di(this,"client"),Di(this,"namespaces"),Di(this,"optionalNamespaces"),Di(this,"sessionProperties"),Di(this,"scopedProperties"),Di(this,"events",new $E),Di(this,"rpcProviders",{}),Di(this,"session"),Di(this,"providerOpts"),Di(this,"logger"),Di(this,"uri"),Di(this,"disableProviderPing",!1),this.providerOpts=e,this.logger=typeof(e==null?void 0:e.logger)<"u"&&typeof(e==null?void 0:e.logger)!="string"?e.logger:pp(yd({level:(e==null?void 0:e.logger)||K6})),this.disableProviderPing=(e==null?void 0:e.disableProviderPing)||!1}static async init(e){const n=new xN(e);return await n.initialize(),n}async request(e,n,r){const[i,s]=this.validateChain(n);if(!this.session)throw new Error("Please call connect() before request()");return await this.getProvider(i).request({request:fg({},e),chainId:`${i}:${s}`,topic:this.session.topic,expiry:r})}sendAsync(e,n,r,i){const s=new Date().getTime();this.request(e,r,i).then(c=>n(null,Bm(s,c))).catch(c=>n(c,void 0))}async enable(){if(!this.client)throw new Error("Sign Client not initialized");return this.session||await this.connect({namespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties,scopedProperties:this.scopedProperties}),await this.requestAccounts()}async disconnect(){var e;if(!this.session)throw new Error("Please call connect() before enable()");await this.client.disconnect({topic:(e=this.session)==null?void 0:e.topic,reason:Qt("USER_DISCONNECTED")}),await this.cleanup()}async connect(e){if(!this.client)throw new Error("Sign Client not initialized");if(this.setNamespaces(e),await this.cleanupPendingPairings(),!e.skipPairing)return await this.pair(e.pairingTopic)}async authenticate(e,n){if(!this.client)throw new Error("Sign Client not initialized");this.setNamespaces(e),await this.cleanupPendingPairings();const{uri:r,response:i}=await this.client.authenticate(e,n);r&&(this.uri=r,this.events.emit("display_uri",r));const s=await i();if(this.session=s.session,this.session){const c=e4(this.session.namespaces);this.namespaces=S1(this.namespaces,c),await this.persist("namespaces",this.namespaces),this.onConnect()}return s}on(e,n){this.events.on(e,n)}once(e,n){this.events.once(e,n)}removeListener(e,n){this.events.removeListener(e,n)}off(e,n){this.events.off(e,n)}get isWalletConnect(){return!0}async pair(e){const{uri:n,approval:r}=await this.client.connect({pairingTopic:e,requiredNamespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties,scopedProperties:this.scopedProperties});n&&(this.uri=n,this.events.emit("display_uri",n));const i=await r();this.session=i;const s=e4(i.namespaces);return this.namespaces=S1(this.namespaces,s),await this.persist("namespaces",this.namespaces),await this.persist("optionalNamespaces",this.optionalNamespaces),this.onConnect(),this.session}setDefaultChain(e,n){try{if(!this.session)return;const[r,i]=this.validateChain(e),s=this.getProvider(r);s.name===xl?s.setDefaultChain(`${r}:${i}`,n):s.setDefaultChain(i,n)}catch(r){if(!/Please call connect/.test(r.message))throw r}}async cleanupPendingPairings(e={}){this.logger.info("Cleaning up inactive pairings...");const n=this.client.pairing.getAll();if(ru(n)){for(const r of n)e.deletePairings?this.client.core.expirer.set(r.topic,0):await this.client.core.relayer.subscriber.unsubscribe(r.topic);this.logger.info(`Inactive pairings cleared: ${n.length}`)}}abortPairingAttempt(){this.logger.warn("abortPairingAttempt is deprecated. This is now a no-op.")}async checkStorage(){this.namespaces=await this.getFromStore("namespaces")||{},this.optionalNamespaces=await this.getFromStore("optionalNamespaces")||{},this.session&&this.createProviders()}async initialize(){this.logger.trace("Initialized"),await this.createClient(),await this.checkStorage(),this.registerEventListeners()}async createClient(){var e,n;if(this.client=this.providerOpts.client||await yK.init({core:this.providerOpts.core,logger:this.providerOpts.logger||K6,relayUrl:this.providerOpts.relayUrl||NK,projectId:this.providerOpts.projectId,metadata:this.providerOpts.metadata,storageOptions:this.providerOpts.storageOptions,storage:this.providerOpts.storage,name:this.providerOpts.name,customStoragePrefix:this.providerOpts.customStoragePrefix,telemetryEnabled:this.providerOpts.telemetryEnabled}),this.providerOpts.session)try{this.session=this.client.session.get(this.providerOpts.session.topic)}catch(r){throw this.logger.error("Failed to get session",r),new Error(`The provided session: ${(n=(e=this.providerOpts)==null?void 0:e.session)==null?void 0:n.topic} doesn't exist in the Sign client`)}else{const r=this.client.session.getAll();this.session=r[0]}this.logger.trace("SignClient Initialized")}createProviders(){if(!this.client)throw new Error("Sign Client not initialized");if(!this.session)throw new Error("Session not initialized. Please call connect() before enable()");const e=[...new Set(Object.keys(this.session.namespaces).map(n=>nh(n)))];x1("client",this.client),x1("events",this.events),x1("disableProviderPing",this.disableProviderPing),e.forEach(n=>{if(!this.session)return;const r=dW(n,this.session),i=SN(r),s=S1(this.namespaces,this.optionalNamespaces),c=N1(fg({},s[n]),{accounts:r,chains:i});switch(n){case"eip155":this.rpcProviders[n]=new EW({namespace:c});break;case"algorand":this.rpcProviders[n]=new OW({namespace:c});break;case"solana":this.rpcProviders[n]=new CW({namespace:c});break;case"cosmos":this.rpcProviders[n]=new xW({namespace:c});break;case"polkadot":this.rpcProviders[n]=new gW({namespace:c});break;case"cip34":this.rpcProviders[n]=new PW({namespace:c});break;case"elrond":this.rpcProviders[n]=new UW({namespace:c});break;case"multiversx":this.rpcProviders[n]=new $W({namespace:c});break;case"near":this.rpcProviders[n]=new zW({namespace:c});break;case"tezos":this.rpcProviders[n]=new GW({namespace:c});break;default:this.rpcProviders[xl]?this.rpcProviders[xl].updateNamespace(c):this.rpcProviders[xl]=new WW({namespace:c})}})}registerEventListeners(){if(typeof this.client>"u")throw new Error("Sign Client is not initialized");this.client.on("session_ping",e=>{var n;const{topic:r}=e;r===((n=this.session)==null?void 0:n.topic)&&this.events.emit("session_ping",e)}),this.client.on("session_event",e=>{var n;const{params:r,topic:i}=e;if(i!==((n=this.session)==null?void 0:n.topic))return;const{event:s}=r;if(s.name==="accountsChanged"){const c=s.data;c&&ru(c)&&this.events.emit("accountsChanged",c.map(fW))}else if(s.name==="chainChanged"){const c=r.chainId,u=r.event.data,f=nh(c),d=T1(c)!==T1(u)?`${f}:${T1(u)}`:c;this.onChainChanged(d)}else this.events.emit(s.name,s.data);this.events.emit("session_event",e)}),this.client.on("session_update",({topic:e,params:n})=>{var r,i;if(e!==((r=this.session)==null?void 0:r.topic))return;const{namespaces:s}=n,c=(i=this.client)==null?void 0:i.session.get(e);this.session=N1(fg({},c),{namespaces:s}),this.onSessionUpdate(),this.events.emit("session_update",{topic:e,params:n})}),this.client.on("session_delete",async e=>{var n;e.topic===((n=this.session)==null?void 0:n.topic)&&(await this.cleanup(),this.events.emit("session_delete",e),this.events.emit("disconnect",N1(fg({},Qt("USER_DISCONNECTED")),{data:e.topic})))}),this.on(Vi.DEFAULT_CHAIN_CHANGED,e=>{this.onChainChanged(e,!0)})}getProvider(e){return this.rpcProviders[e]||this.rpcProviders[xl]}onSessionUpdate(){Object.keys(this.rpcProviders).forEach(e=>{var n;this.getProvider(e).updateNamespace((n=this.session)==null?void 0:n.namespaces[e])})}setNamespaces(e){const{namespaces:n,optionalNamespaces:r,sessionProperties:i,scopedProperties:s}=e;n&&Object.keys(n).length&&(this.namespaces=n),r&&Object.keys(r).length&&(this.optionalNamespaces=r),this.sessionProperties=i,this.scopedProperties=s}validateChain(e){const[n,r]=(e==null?void 0:e.split(":"))||["",""];if(!this.namespaces||!Object.keys(this.namespaces).length)return[n,r];if(n&&!Object.keys(this.namespaces||{}).map(c=>nh(c)).includes(n))throw new Error(`Namespace '${n}' is not configured. Please call connect() first with namespace config.`);if(n&&r)return[n,r];const i=nh(Object.keys(this.namespaces)[0]),s=this.rpcProviders[i].getDefaultChain();return[i,s]}async requestAccounts(){const[e]=this.validateChain();return await this.getProvider(e).requestAccounts()}async onChainChanged(e,n=!1){if(!this.namespaces)return;const[r,i]=this.validateChain(e);i&&(n||this.getProvider(r).setDefaultChain(i),this.namespaces[r]?this.namespaces[r].defaultChain=i:this.namespaces[`${r}:${i}`]?this.namespaces[`${r}:${i}`].defaultChain=i:this.namespaces[`${r}:${i}`]={defaultChain:i},this.events.emit("chainChanged",i),await this.persist("namespaces",this.namespaces))}onConnect(){this.createProviders(),this.events.emit("connect",{session:this.session})}async cleanup(){this.namespaces=void 0,this.optionalNamespaces=void 0,this.sessionProperties=void 0,await this.deleteFromStore("namespaces"),await this.deleteFromStore("optionalNamespaces"),await this.deleteFromStore("sessionProperties"),this.session=void 0,await this.cleanupPendingPairings({deletePairings:!0}),await this.cleanupStorage()}async persist(e,n){var r;const i=((r=this.session)==null?void 0:r.topic)||"";await this.client.core.storage.setItem(`${lg}/${e}${i}`,n)}async getFromStore(e){var n;const r=((n=this.session)==null?void 0:n.topic)||"";return await this.client.core.storage.getItem(`${lg}/${e}${r}`)}async deleteFromStore(e){var n;const r=((n=this.session)==null?void 0:n.topic)||"";await this.client.core.storage.removeItem(`${lg}/${e}${r}`)}async cleanupStorage(){var e;try{if(((e=this.client)==null?void 0:e.session.length)>0)return;const n=await this.client.core.storage.getKeys();for(const r of n)r.startsWith(lg)&&await this.client.core.storage.removeItem(r)}catch(n){this.logger.warn("Failed to cleanup storage",n)}}};var id={};const tQ="https://secure.walletconnect.org/sdk",nQ=(typeof process<"u"&&typeof id<"u"?id.NEXT_PUBLIC_SECURE_SITE_SDK_URL:void 0)||tQ,rQ=(typeof process<"u"&&typeof id<"u"?id.NEXT_PUBLIC_DEFAULT_LOG_LEVEL:void 0)||"error",iQ=(typeof process<"u"&&typeof id<"u"?id.NEXT_PUBLIC_SECURE_SITE_SDK_VERSION:void 0)||"4",Re={APP_EVENT_KEY:"@w3m-app/",FRAME_EVENT_KEY:"@w3m-frame/",RPC_METHOD_KEY:"RPC_",STORAGE_KEY:"@appkit-wallet/",SESSION_TOKEN_KEY:"SESSION_TOKEN_KEY",EMAIL_LOGIN_USED_KEY:"EMAIL_LOGIN_USED_KEY",LAST_USED_CHAIN_KEY:"LAST_USED_CHAIN_KEY",LAST_EMAIL_LOGIN_TIME:"LAST_EMAIL_LOGIN_TIME",EMAIL:"EMAIL",PREFERRED_ACCOUNT_TYPE:"PREFERRED_ACCOUNT_TYPE",SMART_ACCOUNT_ENABLED:"SMART_ACCOUNT_ENABLED",SMART_ACCOUNT_ENABLED_NETWORKS:"SMART_ACCOUNT_ENABLED_NETWORKS",SOCIAL_USERNAME:"SOCIAL_USERNAME",APP_SWITCH_NETWORK:"@w3m-app/SWITCH_NETWORK",APP_CONNECT_EMAIL:"@w3m-app/CONNECT_EMAIL",APP_CONNECT_DEVICE:"@w3m-app/CONNECT_DEVICE",APP_CONNECT_OTP:"@w3m-app/CONNECT_OTP",APP_CONNECT_SOCIAL:"@w3m-app/CONNECT_SOCIAL",APP_GET_SOCIAL_REDIRECT_URI:"@w3m-app/GET_SOCIAL_REDIRECT_URI",APP_GET_USER:"@w3m-app/GET_USER",APP_SIGN_OUT:"@w3m-app/SIGN_OUT",APP_IS_CONNECTED:"@w3m-app/IS_CONNECTED",APP_GET_CHAIN_ID:"@w3m-app/GET_CHAIN_ID",APP_RPC_REQUEST:"@w3m-app/RPC_REQUEST",APP_UPDATE_EMAIL:"@w3m-app/UPDATE_EMAIL",APP_UPDATE_EMAIL_PRIMARY_OTP:"@w3m-app/UPDATE_EMAIL_PRIMARY_OTP",APP_UPDATE_EMAIL_SECONDARY_OTP:"@w3m-app/UPDATE_EMAIL_SECONDARY_OTP",APP_AWAIT_UPDATE_EMAIL:"@w3m-app/AWAIT_UPDATE_EMAIL",APP_SYNC_THEME:"@w3m-app/SYNC_THEME",APP_SYNC_DAPP_DATA:"@w3m-app/SYNC_DAPP_DATA",APP_GET_SMART_ACCOUNT_ENABLED_NETWORKS:"@w3m-app/GET_SMART_ACCOUNT_ENABLED_NETWORKS",APP_INIT_SMART_ACCOUNT:"@w3m-app/INIT_SMART_ACCOUNT",APP_SET_PREFERRED_ACCOUNT:"@w3m-app/SET_PREFERRED_ACCOUNT",APP_CONNECT_FARCASTER:"@w3m-app/CONNECT_FARCASTER",APP_GET_FARCASTER_URI:"@w3m-app/GET_FARCASTER_URI",APP_RELOAD:"@w3m-app/RELOAD",FRAME_SWITCH_NETWORK_ERROR:"@w3m-frame/SWITCH_NETWORK_ERROR",FRAME_SWITCH_NETWORK_SUCCESS:"@w3m-frame/SWITCH_NETWORK_SUCCESS",FRAME_CONNECT_EMAIL_ERROR:"@w3m-frame/CONNECT_EMAIL_ERROR",FRAME_CONNECT_EMAIL_SUCCESS:"@w3m-frame/CONNECT_EMAIL_SUCCESS",FRAME_CONNECT_DEVICE_ERROR:"@w3m-frame/CONNECT_DEVICE_ERROR",FRAME_CONNECT_DEVICE_SUCCESS:"@w3m-frame/CONNECT_DEVICE_SUCCESS",FRAME_CONNECT_OTP_SUCCESS:"@w3m-frame/CONNECT_OTP_SUCCESS",FRAME_CONNECT_OTP_ERROR:"@w3m-frame/CONNECT_OTP_ERROR",FRAME_CONNECT_SOCIAL_SUCCESS:"@w3m-frame/CONNECT_SOCIAL_SUCCESS",FRAME_CONNECT_SOCIAL_ERROR:"@w3m-frame/CONNECT_SOCIAL_ERROR",FRAME_CONNECT_FARCASTER_SUCCESS:"@w3m-frame/CONNECT_FARCASTER_SUCCESS",FRAME_CONNECT_FARCASTER_ERROR:"@w3m-frame/CONNECT_FARCASTER_ERROR",FRAME_GET_FARCASTER_URI_SUCCESS:"@w3m-frame/GET_FARCASTER_URI_SUCCESS",FRAME_GET_FARCASTER_URI_ERROR:"@w3m-frame/GET_FARCASTER_URI_ERROR",FRAME_GET_SOCIAL_REDIRECT_URI_SUCCESS:"@w3m-frame/GET_SOCIAL_REDIRECT_URI_SUCCESS",FRAME_GET_SOCIAL_REDIRECT_URI_ERROR:"@w3m-frame/GET_SOCIAL_REDIRECT_URI_ERROR",FRAME_GET_USER_SUCCESS:"@w3m-frame/GET_USER_SUCCESS",FRAME_GET_USER_ERROR:"@w3m-frame/GET_USER_ERROR",FRAME_SIGN_OUT_SUCCESS:"@w3m-frame/SIGN_OUT_SUCCESS",FRAME_SIGN_OUT_ERROR:"@w3m-frame/SIGN_OUT_ERROR",FRAME_IS_CONNECTED_SUCCESS:"@w3m-frame/IS_CONNECTED_SUCCESS",FRAME_IS_CONNECTED_ERROR:"@w3m-frame/IS_CONNECTED_ERROR",FRAME_GET_CHAIN_ID_SUCCESS:"@w3m-frame/GET_CHAIN_ID_SUCCESS",FRAME_GET_CHAIN_ID_ERROR:"@w3m-frame/GET_CHAIN_ID_ERROR",FRAME_RPC_REQUEST_SUCCESS:"@w3m-frame/RPC_REQUEST_SUCCESS",FRAME_RPC_REQUEST_ERROR:"@w3m-frame/RPC_REQUEST_ERROR",FRAME_SESSION_UPDATE:"@w3m-frame/SESSION_UPDATE",FRAME_UPDATE_EMAIL_SUCCESS:"@w3m-frame/UPDATE_EMAIL_SUCCESS",FRAME_UPDATE_EMAIL_ERROR:"@w3m-frame/UPDATE_EMAIL_ERROR",FRAME_UPDATE_EMAIL_PRIMARY_OTP_SUCCESS:"@w3m-frame/UPDATE_EMAIL_PRIMARY_OTP_SUCCESS",FRAME_UPDATE_EMAIL_PRIMARY_OTP_ERROR:"@w3m-frame/UPDATE_EMAIL_PRIMARY_OTP_ERROR",FRAME_UPDATE_EMAIL_SECONDARY_OTP_SUCCESS:"@w3m-frame/UPDATE_EMAIL_SECONDARY_OTP_SUCCESS",FRAME_UPDATE_EMAIL_SECONDARY_OTP_ERROR:"@w3m-frame/UPDATE_EMAIL_SECONDARY_OTP_ERROR",FRAME_SYNC_THEME_SUCCESS:"@w3m-frame/SYNC_THEME_SUCCESS",FRAME_SYNC_THEME_ERROR:"@w3m-frame/SYNC_THEME_ERROR",FRAME_SYNC_DAPP_DATA_SUCCESS:"@w3m-frame/SYNC_DAPP_DATA_SUCCESS",FRAME_SYNC_DAPP_DATA_ERROR:"@w3m-frame/SYNC_DAPP_DATA_ERROR",FRAME_GET_SMART_ACCOUNT_ENABLED_NETWORKS_SUCCESS:"@w3m-frame/GET_SMART_ACCOUNT_ENABLED_NETWORKS_SUCCESS",FRAME_GET_SMART_ACCOUNT_ENABLED_NETWORKS_ERROR:"@w3m-frame/GET_SMART_ACCOUNT_ENABLED_NETWORKS_ERROR",FRAME_INIT_SMART_ACCOUNT_SUCCESS:"@w3m-frame/INIT_SMART_ACCOUNT_SUCCESS",FRAME_INIT_SMART_ACCOUNT_ERROR:"@w3m-frame/INIT_SMART_ACCOUNT_ERROR",FRAME_SET_PREFERRED_ACCOUNT_SUCCESS:"@w3m-frame/SET_PREFERRED_ACCOUNT_SUCCESS",FRAME_SET_PREFERRED_ACCOUNT_ERROR:"@w3m-frame/SET_PREFERRED_ACCOUNT_ERROR",FRAME_READY:"@w3m-frame/READY",FRAME_RELOAD_SUCCESS:"@w3m-frame/RELOAD_SUCCESS",FRAME_RELOAD_ERROR:"@w3m-frame/RELOAD_ERROR",RPC_RESPONSE_TYPE_ERROR:"RPC_RESPONSE_ERROR",RPC_RESPONSE_TYPE_TX:"RPC_RESPONSE_TRANSACTION_HASH",RPC_RESPONSE_TYPE_OBJECT:"RPC_RESPONSE_OBJECT"},yn={SAFE_RPC_METHODS:["eth_accounts","eth_blockNumber","eth_call","eth_chainId","eth_estimateGas","eth_feeHistory","eth_gasPrice","eth_getAccount","eth_getBalance","eth_getBlockByHash","eth_getBlockByNumber","eth_getBlockReceipts","eth_getBlockTransactionCountByHash","eth_getBlockTransactionCountByNumber","eth_getCode","eth_getFilterChanges","eth_getFilterLogs","eth_getLogs","eth_getProof","eth_getStorageAt","eth_getTransactionByBlockHashAndIndex","eth_getTransactionByBlockNumberAndIndex","eth_getTransactionByHash","eth_getTransactionCount","eth_getTransactionReceipt","eth_getUncleCountByBlockHash","eth_getUncleCountByBlockNumber","eth_maxPriorityFeePerGas","eth_newBlockFilter","eth_newFilter","eth_newPendingTransactionFilter","eth_sendRawTransaction","eth_syncing","eth_uninstallFilter","wallet_getCapabilities","wallet_getCallsStatus","eth_getUserOperationReceipt","eth_estimateUserOperationGas","eth_getUserOperationByHash","eth_supportedEntryPoints","wallet_getAssets"],NOT_SAFE_RPC_METHODS:["personal_sign","eth_signTypedData_v4","eth_sendTransaction","solana_signMessage","solana_signTransaction","solana_signAllTransactions","solana_signAndSendTransaction","wallet_sendCalls","wallet_grantPermissions","wallet_revokePermissions","eth_sendUserOperation"],GET_CHAIN_ID:"eth_chainId",RPC_METHOD_NOT_ALLOWED_MESSAGE:"Requested RPC call is not allowed",RPC_METHOD_NOT_ALLOWED_UI_MESSAGE:"Action not allowed",ACCOUNT_TYPES:{EOA:"eoa",SMART_ACCOUNT:"smartAccount"}},sQ={handleSolanaDeeplinkRedirect(t){if(Q.state.activeChain===he.CHAIN.SOLANA){const e=window.location.href,n=encodeURIComponent(e);if(t==="Phantom"&&!("phantom"in window)){const r=e.startsWith("https")?"https":"http",i=e.split("/")[2],s=encodeURIComponent(`${r}://${i}`);window.location.href=`https://phantom.app/ul/browse/${n}?ref=${s}`}t==="Coinbase Wallet"&&!("coinbaseSolana"in window)&&(window.location.href=`https://go.cb-w.com/dapp?cb_url=${n}`)}}},aQ={getFeatureValue(t,e){const n=e==null?void 0:e[t];return n===void 0?Fn.DEFAULT_FEATURES[t]:n},filterSocialsByPlatform(t){if(!t||!t.length)return t;if($e.isTelegram()){if($e.isIos())return t.filter(e=>e!=="google");if($e.isMac())return t.filter(e=>e!=="x");if($e.isAndroid())return t.filter(e=>!["facebook","x"].includes(e))}return t}},ze=gn({features:Fn.DEFAULT_FEATURES,projectId:"",sdkType:"appkit",sdkVersion:"html-wagmi-undefined",defaultAccountTypes:Fn.DEFAULT_ACCOUNT_TYPES}),be={state:ze,subscribeKey(t,e){return zr(ze,t,e)},setOptions(t){Object.assign(ze,t)},setFeatures(t){if(!t)return;ze.features||(ze.features=Fn.DEFAULT_FEATURES);const e={...ze.features,...t};ze.features=e,ze.features.socials&&(ze.features.socials=aQ.filterSocialsByPlatform(ze.features.socials))},setProjectId(t){ze.projectId=t},setAllWallets(t){ze.allWallets=t},setIncludeWalletIds(t){ze.includeWalletIds=t},setExcludeWalletIds(t){ze.excludeWalletIds=t},setFeaturedWalletIds(t){ze.featuredWalletIds=t},setTokens(t){ze.tokens=t},setTermsConditionsUrl(t){ze.termsConditionsUrl=t},setPrivacyPolicyUrl(t){ze.privacyPolicyUrl=t},setCustomWallets(t){ze.customWallets=t},setIsSiweEnabled(t){ze.isSiweEnabled=t},setIsUniversalProvider(t){ze.isUniversalProvider=t},setSdkVersion(t){ze.sdkVersion=t},setMetadata(t){ze.metadata=t},setDisableAppend(t){ze.disableAppend=t},setEIP6963Enabled(t){ze.enableEIP6963=t},setDebug(t){ze.debug=t},setEnableWalletConnect(t){ze.enableWalletConnect=t},setEnableWalletGuide(t){ze.enableWalletGuide=t},setEnableAuthLogger(t){ze.enableAuthLogger=t},setEnableWallets(t){ze.enableWallets=t},setHasMultipleAddresses(t){ze.hasMultipleAddresses=t},setSIWX(t){ze.siwx=t},setConnectMethodsOrder(t){ze.features={...ze.features,connectMethodsOrder:t}},setWalletFeaturesOrder(t){ze.features={...ze.features,walletFeaturesOrder:t}},setSocialsOrder(t){ze.features={...ze.features,socials:t}},setCollapseWallets(t){ze.features={...ze.features,collapseWallets:t}},setEnableEmbedded(t){ze.enableEmbedded=t},setAllowUnsupportedChain(t){ze.allowUnsupportedChain=t},setManualWCControl(t){ze.manualWCControl=t},setDefaultAccountTypes(t={}){Object.entries(t).forEach(([e,n])=>{n&&(ze.defaultAccountTypes[e]=n)})},getSnapshot(){return Yc(ze)}},Dt=gn({view:"Connect",history:["Connect"],transactionStack:[]}),ct={state:Dt,subscribeKey(t,e){return zr(Dt,t,e)},pushTransactionStack(t){Dt.transactionStack.push(t)},popTransactionStack(t){var n,r;const e=Dt.transactionStack.pop();if(e)if(t)this.goBack(),(n=e==null?void 0:e.onCancel)==null||n.call(e);else{if(e.goBack)this.goBack();else if(e.replace){const s=Dt.history.indexOf("ConnectingSiwe");s>0?this.goBackToIndex(s-1):(Kn.close(),Dt.history=[])}else e.view&&this.reset(e.view);(r=e==null?void 0:e.onSuccess)==null||r.call(e)}},push(t,e){t!==Dt.view&&(Dt.view=t,Dt.history.push(t),Dt.data=e)},reset(t,e){Dt.view=t,Dt.history=[t],Dt.data=e},replace(t,e){Dt.history.at(-1)===t||(Dt.view=t,Dt.history[Dt.history.length-1]=t,Dt.data=e)},goBack(){var e;const t=!Q.state.activeCaipAddress&&this.state.view==="ConnectingFarcaster";if(Dt.history.length>1&&!Dt.history.includes("UnsupportedChain")){Dt.history.pop();const[n]=Dt.history.slice(-1);n&&(Dt.view=n)}else Kn.close();(e=Dt.data)!=null&&e.wallet&&(Dt.data.wallet=void 0),setTimeout(()=>{var n,r,i;if(t){Oe.setFarcasterUrl(void 0,Q.state.activeChain);const s=Ge.getAuthConnector();(n=s==null?void 0:s.provider)==null||n.reload();const c=Yc(be.state);(i=(r=s==null?void 0:s.provider)==null?void 0:r.syncDappData)==null||i.call(r,{metadata:c.metadata,sdkVersion:c.sdkVersion,projectId:c.projectId,sdkType:c.sdkType})}},100)},goBackToIndex(t){if(Dt.history.length>1){Dt.history=Dt.history.slice(0,t+1);const[e]=Dt.history.slice(-1);e&&(Dt.view=e)}}},Ea=gn({themeMode:"dark",themeVariables:{},w3mThemeVariables:void 0}),Ir={state:Ea,subscribe(t){return Rr(Ea,()=>t(Ea))},setThemeMode(t){Ea.themeMode=t;try{const e=Ge.getAuthConnector();if(e){const n=Ir.getSnapshot().themeVariables;e.provider.syncTheme({themeMode:t,themeVariables:n,w3mThemeVariables:Ia(n,t)})}}catch{console.info("Unable to sync theme to auth connector")}},setThemeVariables(t){Ea.themeVariables={...Ea.themeVariables,...t};try{const e=Ge.getAuthConnector();if(e){const n=Ir.getSnapshot().themeVariables;e.provider.syncTheme({themeVariables:n,w3mThemeVariables:Ia(Ea.themeVariables,Ea.themeMode)})}}catch{console.info("Unable to sync theme to auth connector")}},getSnapshot(){return Yc(Ea)}},NN={eip155:void 0,solana:void 0,polkadot:void 0,bip122:void 0},Nt=gn({allConnectors:[],connectors:[],activeConnector:void 0,filterByNamespace:void 0,activeConnectorIds:{...NN}}),Ge={state:Nt,subscribe(t){return Rr(Nt,()=>{t(Nt)})},subscribeKey(t,e){return zr(Nt,t,e)},initialize(t){t.forEach(e=>{const n=Ne.getConnectedConnectorId(e);n&&this.setConnectorId(n,e)})},setActiveConnector(t){t&&(Nt.activeConnector=Zc(t))},setConnectors(t){t.filter(n=>!Nt.allConnectors.some(r=>r.id===n.id&&this.getConnectorName(r.name)===this.getConnectorName(n.name)&&r.chain===n.chain)).forEach(n=>{n.type!=="MULTI_CHAIN"&&Nt.allConnectors.push(Zc(n))}),Nt.connectors=this.mergeMultiChainConnectors(Nt.allConnectors)},removeAdapter(t){Nt.allConnectors=Nt.allConnectors.filter(e=>e.chain!==t),Nt.connectors=this.mergeMultiChainConnectors(Nt.allConnectors)},mergeMultiChainConnectors(t){const e=this.generateConnectorMapByName(t),n=[];return e.forEach(r=>{const i=r[0],s=(i==null?void 0:i.id)===he.CONNECTOR_ID.AUTH;r.length>1&&i?n.push({name:i.name,imageUrl:i.imageUrl,imageId:i.imageId,connectors:[...r],type:s?"AUTH":"MULTI_CHAIN",chain:"eip155",id:(i==null?void 0:i.id)||""}):i&&n.push(i)}),n},generateConnectorMapByName(t){const e=new Map;return t.forEach(n=>{const{name:r}=n,i=this.getConnectorName(r);if(!i)return;const s=e.get(i)||[];s.find(u=>u.chain===n.chain)||s.push(n),e.set(i,s)}),e},getConnectorName(t){return t&&({"Trust Wallet":"Trust"}[t]||t)},getUniqueConnectorsByName(t){const e=[];return t.forEach(n=>{e.find(r=>r.chain===n.chain)||e.push(n)}),e},addConnector(t){var e,n,r;if(t.id===he.CONNECTOR_ID.AUTH){const i=t,s=Yc(be.state),c=Ir.getSnapshot().themeMode,u=Ir.getSnapshot().themeVariables;(n=(e=i==null?void 0:i.provider)==null?void 0:e.syncDappData)==null||n.call(e,{metadata:s.metadata,sdkVersion:s.sdkVersion,projectId:s.projectId,sdkType:s.sdkType}),(r=i==null?void 0:i.provider)==null||r.syncTheme({themeMode:c,themeVariables:u,w3mThemeVariables:Ia(u,c)}),this.setConnectors([t])}else this.setConnectors([t])},getAuthConnector(t){var r;const e=t||Q.state.activeChain,n=Nt.connectors.find(i=>i.id===he.CONNECTOR_ID.AUTH);if(n)return(r=n==null?void 0:n.connectors)!=null&&r.length?n.connectors.find(s=>s.chain===e):n},getAnnouncedConnectorRdns(){return Nt.connectors.filter(t=>t.type==="ANNOUNCED").map(t=>{var e;return(e=t.info)==null?void 0:e.rdns})},getConnectorById(t){return Nt.allConnectors.find(e=>e.id===t)},getConnector(t,e){return Nt.allConnectors.find(n=>{var r;return n.explorerId===t||((r=n.info)==null?void 0:r.rdns)===e})},syncIfAuthConnector(t){var s,c;if(t.id!=="ID_AUTH")return;const e=t,n=Yc(be.state),r=Ir.getSnapshot().themeMode,i=Ir.getSnapshot().themeVariables;(c=(s=e==null?void 0:e.provider)==null?void 0:s.syncDappData)==null||c.call(s,{metadata:n.metadata,sdkVersion:n.sdkVersion,sdkType:n.sdkType,projectId:n.projectId}),e.provider.syncTheme({themeMode:r,themeVariables:i,w3mThemeVariables:Ia(i,r)})},getConnectorsByNamespace(t){const e=Nt.allConnectors.filter(n=>n.chain===t);return this.mergeMultiChainConnectors(e)},selectWalletConnector(t){const e=Ge.getConnector(t.id,t.rdns);Q.state.activeChain===he.CHAIN.SOLANA&&sQ.handleSolanaDeeplinkRedirect((e==null?void 0:e.name)||t.name||""),e?ct.push("ConnectingExternal",{connector:e}):ct.push("ConnectingWalletConnect",{wallet:t})},getConnectors(t){return t?this.getConnectorsByNamespace(t):this.mergeMultiChainConnectors(Nt.allConnectors)},setFilterByNamespace(t){Nt.filterByNamespace=t,Nt.connectors=this.getConnectors(t)},clearNamespaceFilter(){Nt.filterByNamespace=void 0,Nt.connectors=this.getConnectors()},setConnectorId(t,e){t&&(Nt.activeConnectorIds={...Nt.activeConnectorIds,[e]:t},Ne.setConnectedConnectorId(e,t))},removeConnectorId(t){Nt.activeConnectorIds={...Nt.activeConnectorIds,[t]:void 0},Ne.deleteConnectedConnectorId(t)},getConnectorId(t){if(t)return Nt.activeConnectorIds[t]},isConnected(t){return t?!!Nt.activeConnectorIds[t]:Object.values(Nt.activeConnectorIds).some(e=>!!e)},resetConnectorIds(){Nt.activeConnectorIds={...NN}}},yo=gn({message:"",variant:"info",open:!1}),Vc={state:yo,subscribeKey(t,e){return zr(yo,t,e)},open(t,e){const{debug:n}=be.state,{shortMessage:r,longMessage:i}=t;n&&(yo.message=r,yo.variant=e,yo.open=!0),i&&console.error(typeof i=="function"?i():i)},close(){yo.open=!1,yo.message="",yo.variant="info"}},oQ=$e.getAnalyticsUrl(),cQ=new xm({baseUrl:oQ,clientId:null}),uQ=["MODAL_CREATED"],Aa=gn({timestamp:Date.now(),reportedErrors:{},data:{type:"track",event:"MODAL_CREATED"}}),Ft={state:Aa,subscribe(t){return Rr(Aa,()=>t(Aa))},getSdkProperties(){const{projectId:t,sdkType:e,sdkVersion:n}=be.state;return{projectId:t,st:e,sv:n||"html-wagmi-4.2.2"}},async _sendAnalyticsEvent(t){try{const e=Oe.state.address;if(uQ.includes(t.data.event)||typeof window>"u")return;await cQ.post({path:"/e",params:Ft.getSdkProperties(),body:{eventId:$e.getUUID(),url:window.location.href,domain:window.location.hostname,timestamp:t.timestamp,props:{...t.data,address:e}}}),Aa.reportedErrors.FORBIDDEN=!1}catch(e){e instanceof Error&&e.cause instanceof Response&&e.cause.status===he.HTTP_STATUS_CODES.FORBIDDEN&&!Aa.reportedErrors.FORBIDDEN&&(Vc.open({shortMessage:"Invalid App Configuration",longMessage:`Origin ${eh()?window.origin:"uknown"} not found on Allowlist - update configuration on cloud.reown.com`},"error"),Aa.reportedErrors.FORBIDDEN=!0)}},sendEvent(t){var e;Aa.timestamp=Date.now(),Aa.data=t,(e=be.state.features)!=null&&e.analytics&&Ft._sendAnalyticsEvent(Aa)}},Tc=Object.freeze({message:"",variant:"success",svg:void 0,open:!1,autoClose:!0}),Yn=gn({...Tc}),$t={state:Yn,subscribeKey(t,e){return zr(Yn,t,e)},showLoading(t,e={}){this._showMessage({message:t,variant:"loading",...e})},showSuccess(t){this._showMessage({message:t,variant:"success"})},showSvg(t,e){this._showMessage({message:t,svg:e})},showError(t){const e=$e.parseError(t);this._showMessage({message:e,variant:"error"})},hide(){Yn.message=Tc.message,Yn.variant=Tc.variant,Yn.svg=Tc.svg,Yn.open=Tc.open,Yn.autoClose=Tc.autoClose},_showMessage({message:t,svg:e,variant:n="success",autoClose:r=Tc.autoClose}){Yn.open?(Yn.open=!1,setTimeout(()=>{Yn.message=t,Yn.variant=n,Yn.svg=e,Yn.open=!0,Yn.autoClose=r},150)):(Yn.message=t,Yn.variant=n,Yn.svg=e,Yn.open=!0,Yn.autoClose=r)}},fh={getSIWX(){return be.state.siwx},async initializeIfEnabled(){var s;const t=be.state.siwx,e=Q.getActiveCaipAddress();if(!(t&&e))return;const[n,r,i]=e.split(":");if(Q.checkIfSupportedNetwork(n))try{if((await t.getSessions(`${n}:${r}`,i)).length)return;await Kn.open({view:"SIWXSignMessage"})}catch(c){console.error("SIWXUtil:initializeIfEnabled",c),Ft.sendEvent({type:"track",event:"SIWX_AUTH_ERROR",properties:this.getSIWXEventProperties()}),await((s=ot._getClient())==null?void 0:s.disconnect().catch(console.error)),ct.reset("Connect"),$t.showError("A problem occurred while trying initialize authentication")}},async requestSignMessage(){const t=be.state.siwx,e=$e.getPlainAddress(Q.getActiveCaipAddress()),n=Q.getActiveCaipNetwork(),r=ot._getClient();if(!t)throw new Error("SIWX is not enabled");if(!e)throw new Error("No ActiveCaipAddress found");if(!n)throw new Error("No ActiveCaipNetwork or client found");if(!r)throw new Error("No ConnectionController client found");try{const i=await t.createMessage({chainId:n.caipNetworkId,accountAddress:e}),s=i.toString();Ge.getConnectorId(n.chainNamespace)===he.CONNECTOR_ID.AUTH&&ct.pushTransactionStack({view:null,goBack:!1,replace:!0});const u=await r.signMessage(s);await t.addSession({data:i,message:s,signature:u}),Kn.close(),Ft.sendEvent({type:"track",event:"SIWX_AUTH_SUCCESS",properties:this.getSIWXEventProperties()})}catch(i){const s=this.getSIWXEventProperties();(!Kn.state.open||ct.state.view==="ApproveTransaction")&&await Kn.open({view:"SIWXSignMessage"}),s.isSmartAccount?$t.showError("This application might not support Smart Accounts"):$t.showError("Signature declined"),Ft.sendEvent({type:"track",event:"SIWX_AUTH_ERROR",properties:s}),console.error("SWIXUtil:requestSignMessage",i)}},async cancelSignMessage(){var t;try{const e=this.getSIWX();((t=e==null?void 0:e.getRequired)==null?void 0:t.call(e))?await ot.disconnect():Kn.close(),ct.reset("Connect"),Ft.sendEvent({event:"CLICK_CANCEL_SIWX",type:"track",properties:this.getSIWXEventProperties()})}catch(e){console.error("SIWXUtil:cancelSignMessage",e)}},async getSessions(){const t=be.state.siwx,e=$e.getPlainAddress(Q.getActiveCaipAddress()),n=Q.getActiveCaipNetwork();return t&&e&&n?t.getSessions(n.caipNetworkId,e):[]},async isSIWXCloseDisabled(){var e;const t=this.getSIWX();if(t){const n=ct.state.view==="ApproveTransaction",r=ct.state.view==="SIWXSignMessage";if(n||r)return((e=t.getRequired)==null?void 0:e.call(t))&&(await this.getSessions()).length===0}return!1},async universalProviderAuthenticate({universalProvider:t,chains:e,methods:n}){var u,f,d;const r=fh.getSIWX(),i=new Set(e.map(p=>p.split(":")[0]));if(!r||i.size!==1||!i.has("eip155"))return!1;const s=await r.createMessage({chainId:((u=Q.getActiveCaipNetwork())==null?void 0:u.caipNetworkId)||"",accountAddress:""}),c=await t.authenticate({nonce:s.nonce,domain:s.domain,uri:s.uri,exp:s.expirationTime,iat:s.issuedAt,nbf:s.notBefore,requestId:s.requestId,version:s.version,resources:s.resources,statement:s.statement,chainId:s.chainId,methods:n,chains:[s.chainId,...e.filter(p=>p!==s.chainId)]});if($t.showLoading("Authenticating...",{autoClose:!1}),Oe.setConnectedWalletInfo({...c.session.peer.metadata,name:c.session.peer.metadata.name,icon:(f=c.session.peer.metadata.icons)==null?void 0:f[0],type:"WALLET_CONNECT"},Array.from(i)[0]),(d=c==null?void 0:c.auths)!=null&&d.length){const p=c.auths.map(g=>{const m=t.client.formatAuthMessage({request:g.p,iss:g.p.iss});return{data:{...g.p,accountAddress:g.p.iss.split(":").slice(-1).join(""),chainId:g.p.iss.split(":").slice(2,4).join(":"),uri:g.p.aud,version:g.p.version||s.version,expirationTime:g.p.exp,issuedAt:g.p.iat,notBefore:g.p.nbf},message:m,signature:g.s.s,cacao:g}});try{await r.setSessions(p),Ft.sendEvent({type:"track",event:"SIWX_AUTH_SUCCESS",properties:fh.getSIWXEventProperties()})}catch(g){throw console.error("SIWX:universalProviderAuth - failed to set sessions",g),Ft.sendEvent({type:"track",event:"SIWX_AUTH_ERROR",properties:fh.getSIWXEventProperties()}),await t.disconnect().catch(console.error),g}finally{$t.hide()}}return!0},getSIWXEventProperties(){var t;return{network:((t=Q.state.activeCaipNetwork)==null?void 0:t.caipNetworkId)||"",isSmartAccount:Oe.state.preferredAccountType===yn.ACCOUNT_TYPES.SMART_ACCOUNT}},async clearSessions(){const t=this.getSIWX();t&&await t.setSessions([])}},un=gn({transactions:[],coinbaseTransactions:{},transactionsByYear:{},lastNetworkInView:void 0,loading:!1,empty:!1,next:void 0}),lQ={state:un,subscribe(t){return Rr(un,()=>t(un))},setLastNetworkInView(t){un.lastNetworkInView=t},async fetchTransactions(t,e){var n;if(!t)throw new Error("Transactions can't be fetched without an accountAddress");un.loading=!0;try{const r=await Me.fetchTransactions({account:t,cursor:un.next,onramp:e,cache:e==="coinbase"?"no-cache":void 0,chainId:(n=Q.state.activeCaipNetwork)==null?void 0:n.caipNetworkId}),i=this.filterSpamTransactions(r.data),s=this.filterByConnectedChain(i),c=[...un.transactions,...s];un.loading=!1,e==="coinbase"?un.coinbaseTransactions=this.groupTransactionsByYearAndMonth(un.coinbaseTransactions,r.data):(un.transactions=c,un.transactionsByYear=this.groupTransactionsByYearAndMonth(un.transactionsByYear,s)),un.empty=c.length===0,un.next=r.next?r.next:void 0}catch{Ft.sendEvent({type:"track",event:"ERROR_FETCH_TRANSACTIONS",properties:{address:t,projectId:be.state.projectId,cursor:un.next,isSmartAccount:Oe.state.preferredAccountType===yn.ACCOUNT_TYPES.SMART_ACCOUNT}}),$t.showError("Failed to fetch transactions"),un.loading=!1,un.empty=!0,un.next=void 0}},groupTransactionsByYearAndMonth(t={},e=[]){const n=t;return e.forEach(r=>{const i=new Date(r.metadata.minedAt).getFullYear(),s=new Date(r.metadata.minedAt).getMonth(),c=n[i]??{},f=(c[s]??[]).filter(d=>d.id!==r.id);n[i]={...c,[s]:[...f,r].sort((d,p)=>new Date(p.metadata.minedAt).getTime()-new Date(d.metadata.minedAt).getTime())}}),n},filterSpamTransactions(t){return t.filter(e=>!e.transfers.every(r=>{var i;return((i=r.nft_info)==null?void 0:i.flags.is_spam)===!0}))},filterByConnectedChain(t){var r;const e=(r=Q.state.activeCaipNetwork)==null?void 0:r.caipNetworkId;return t.filter(i=>i.metadata.chain===e)},clearCursor(){un.next=void 0},resetTransactions(){un.transactions=[],un.transactionsByYear={},un.lastNetworkInView=void 0,un.loading=!1,un.empty=!1,un.next=void 0}},ln=gn({wcError:!1,buffering:!1,status:"disconnected"});let Cl;const ot={state:ln,subscribeKey(t,e){return zr(ln,t,e)},_getClient(){return ln._client},setClient(t){ln._client=Zc(t)},async connectWalletConnect(){var t,e,n,r;if($e.isTelegram()||$e.isSafari()&&$e.isIos()){if(Cl){await Cl,Cl=void 0;return}if(!$e.isPairingExpired(ln==null?void 0:ln.wcPairingExpiry)){const i=ln.wcUri;ln.wcUri=i;return}Cl=(e=(t=this._getClient())==null?void 0:t.connectWalletConnect)==null?void 0:e.call(t).catch(()=>{}),this.state.status="connecting",await Cl,Cl=void 0,ln.wcPairingExpiry=void 0,this.state.status="connected"}else await((r=(n=this._getClient())==null?void 0:n.connectWalletConnect)==null?void 0:r.call(n))},async connectExternal(t,e,n=!0){var r,i;await((i=(r=this._getClient())==null?void 0:r.connectExternal)==null?void 0:i.call(r,t)),n&&Q.setActiveNamespace(e)},async reconnectExternal(t){var n,r;await((r=(n=this._getClient())==null?void 0:n.reconnectExternal)==null?void 0:r.call(n,t));const e=t.chain||Q.state.activeChain;e&&Ge.setConnectorId(t.id,e)},async setPreferredAccountType(t){var n;Kn.setLoading(!0,Q.state.activeChain);const e=Ge.getAuthConnector();e&&(await(e==null?void 0:e.provider.setPreferredAccount(t)),await this.reconnectExternal(e),Kn.setLoading(!1,Q.state.activeChain),Ft.sendEvent({type:"track",event:"SET_PREFERRED_ACCOUNT_TYPE",properties:{accountType:t,network:((n=Q.state.activeCaipNetwork)==null?void 0:n.caipNetworkId)||""}}))},async signMessage(t){var e;return(e=this._getClient())==null?void 0:e.signMessage(t)},parseUnits(t,e){var n;return(n=this._getClient())==null?void 0:n.parseUnits(t,e)},formatUnits(t,e){var n;return(n=this._getClient())==null?void 0:n.formatUnits(t,e)},async sendTransaction(t){var e;return(e=this._getClient())==null?void 0:e.sendTransaction(t)},async getCapabilities(t){var e;return(e=this._getClient())==null?void 0:e.getCapabilities(t)},async grantPermissions(t){var e;return(e=this._getClient())==null?void 0:e.grantPermissions(t)},async walletGetAssets(t){var e;return((e=this._getClient())==null?void 0:e.walletGetAssets(t))??{}},async estimateGas(t){var e;return(e=this._getClient())==null?void 0:e.estimateGas(t)},async writeContract(t){var e;return(e=this._getClient())==null?void 0:e.writeContract(t)},async getEnsAddress(t){var e;return(e=this._getClient())==null?void 0:e.getEnsAddress(t)},async getEnsAvatar(t){var e;return(e=this._getClient())==null?void 0:e.getEnsAvatar(t)},checkInstalled(t){var e,n;return((n=(e=this._getClient())==null?void 0:e.checkInstalled)==null?void 0:n.call(e,t))||!1},resetWcConnection(){ln.wcUri=void 0,ln.wcPairingExpiry=void 0,ln.wcLinking=void 0,ln.recentWallet=void 0,ln.status="disconnected",lQ.resetTransactions(),Ne.deleteWalletConnectDeepLink()},resetUri(){ln.wcUri=void 0,ln.wcPairingExpiry=void 0},finalizeWcConnection(){var n,r;const{wcLinking:t,recentWallet:e}=ot.state;t&&Ne.setWalletConnectDeepLink(t),e&&Ne.setAppKitRecent(e),Ft.sendEvent({type:"track",event:"CONNECT_SUCCESS",properties:{method:t?"mobile":"qrcode",name:((r=(n=ct.state.data)==null?void 0:n.wallet)==null?void 0:r.name)||"Unknown"}})},setWcBasic(t){ln.wcBasic=t},setUri(t){ln.wcUri=t,ln.wcPairingExpiry=$e.getPairingExpiry()},setWcLinking(t){ln.wcLinking=t},setWcError(t){ln.wcError=t,ln.buffering=!1},setRecentWallet(t){ln.recentWallet=t},setBuffering(t){ln.buffering=t},setStatus(t){ln.status=t},async disconnect(){try{Kn.setLoading(!0),await fh.clearSessions(),await Q.disconnect(),Kn.setLoading(!1)}catch{throw new Error("Failed to disconnect")}}},Kf=gn({loading:!1,open:!1,selectedNetworkId:void 0,activeChain:void 0,initialized:!1}),Ra={state:Kf,subscribe(t){return Rr(Kf,()=>t(Kf))},set(t){Object.assign(Kf,{...Kf,...t})}};function Yt(t,e,n){const r=t[e.name];if(typeof r=="function")return r;const i=t[n];return typeof i=="function"?i:s=>e(t,s)}function Go(t,{includeName:e=!1}={}){if(t.type!=="function"&&t.type!=="event"&&t.type!=="error")throw new AQ(t.type);return`${t.name}(${zm(t.inputs,{includeName:e})})`}function zm(t,{includeName:e=!1}={}){return t?t.map(n=>dQ(n,{includeName:e})).join(e?", ":","):""}function dQ(t,{includeName:e}){return t.type.startsWith("tuple")?`(${zm(t.components,{includeName:e})})${t.type.slice(5)}`:t.type+(e&&t.name?` ${t.name}`:"")}function Ua(t,{strict:e=!0}={}){return!t||typeof t!="string"?!1:e?/^0x[0-9a-fA-F]*$/.test(t):t.startsWith("0x")}function lr(t){return Ua(t,{strict:!1})?Math.ceil((t.length-2)/2):t.length}const IN="2.24.1";let Wf={getDocsUrl:({docsBaseUrl:t,docsPath:e="",docsSlug:n})=>e?`${t??"https://viem.sh"}${e}${n?`#${n}`:""}`:void 0,version:`viem@${IN}`},fe=class Kw extends Error{constructor(e,n={}){var u;const r=(()=>{var f;return n.cause instanceof Kw?n.cause.details:(f=n.cause)!=null&&f.message?n.cause.message:n.details})(),i=n.cause instanceof Kw&&n.cause.docsPath||n.docsPath,s=(u=Wf.getDocsUrl)==null?void 0:u.call(Wf,{...n,docsPath:i}),c=[e||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...s?[`Docs: ${s}`]:[],...r?[`Details: ${r}`]:[],...Wf.version?[`Version: ${Wf.version}`]:[]].join(` +`);super(c,n.cause?{cause:n.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.details=r,this.docsPath=i,this.metaMessages=n.metaMessages,this.name=n.name??this.name,this.shortMessage=e,this.version=IN}walk(e){return ON(this,e)}};function ON(t,e){return e!=null&&e(t)?t:t&&typeof t=="object"&&"cause"in t&&t.cause!==void 0?ON(t.cause,e):e?null:t}class fQ extends fe{constructor({docsPath:e}){super(["A constructor was not found on the ABI.","Make sure you are using the correct ABI and that the constructor exists on it."].join(` +`),{docsPath:e,name:"AbiConstructorNotFoundError"})}}class s4 extends fe{constructor({docsPath:e}){super(["Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.","Make sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists."].join(` +`),{docsPath:e,name:"AbiConstructorParamsNotFoundError"})}}class RN extends fe{constructor({data:e,params:n,size:r}){super([`Data size of ${r} bytes is too small for given parameters.`].join(` +`),{metaMessages:[`Params: (${zm(n,{includeName:!0})})`,`Data: ${e} (${r} bytes)`],name:"AbiDecodingDataSizeTooSmallError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e,this.params=n,this.size=r}}class qm extends fe{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.',{name:"AbiDecodingZeroDataError"})}}class hQ extends fe{constructor({expectedLength:e,givenLength:n,type:r}){super([`ABI encoding array length mismatch for type ${r}.`,`Expected length: ${e}`,`Given length: ${n}`].join(` +`),{name:"AbiEncodingArrayLengthMismatchError"})}}class pQ extends fe{constructor({expectedSize:e,value:n}){super(`Size of bytes "${n}" (bytes${lr(n)}) does not match expected size (bytes${e}).`,{name:"AbiEncodingBytesSizeMismatchError"})}}class gQ extends fe{constructor({expectedLength:e,givenLength:n}){super(["ABI encoding params/values length mismatch.",`Expected length (params): ${e}`,`Given length (values): ${n}`].join(` +`),{name:"AbiEncodingLengthMismatchError"})}}class DN extends fe{constructor(e,{docsPath:n}){super([`Encoded error signature "${e}" not found on ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${e}.`].join(` +`),{docsPath:n,name:"AbiErrorSignatureNotFoundError"}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=e}}class mQ extends fe{constructor({docsPath:e}){super("Cannot extract event signature from empty topics.",{docsPath:e,name:"AbiEventSignatureEmptyTopicsError"})}}class PN extends fe{constructor(e,{docsPath:n}){super([`Encoded event signature "${e}" not found on ABI.`,"Make sure you are using the correct ABI and that the event exists on it.",`You can look up the signature here: https://openchain.xyz/signatures?query=${e}.`].join(` +`),{docsPath:n,name:"AbiEventSignatureNotFoundError"})}}class Jg extends fe{constructor(e,{docsPath:n}={}){super([`Function ${e?`"${e}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it."].join(` +`),{docsPath:n,name:"AbiFunctionNotFoundError"})}}class bQ extends fe{constructor(e,{docsPath:n}){super([`Function "${e}" does not contain any \`outputs\` on ABI.`,"Cannot decode function result without knowing what the parameter types are.","Make sure you are using the correct ABI and that the function exists on it."].join(` +`),{docsPath:n,name:"AbiFunctionOutputsNotFoundError"})}}class yQ extends fe{constructor(e,n){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${e.type}\` in \`${Go(e.abiItem)}\`, and`,`\`${n.type}\` in \`${Go(n.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."],name:"AbiItemAmbiguityError"})}}class Ww extends fe{constructor({abiItem:e,data:n,params:r,size:i}){super([`Data size of ${i} bytes is too small for non-indexed event parameters.`].join(` +`),{metaMessages:[`Params: (${zm(r,{includeName:!0})})`,`Data: ${n} (${i} bytes)`],name:"DecodeLogDataMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e,this.data=n,this.params=r,this.size=i}}class MN extends fe{constructor({abiItem:e,param:n}){super([`Expected a topic for indexed event parameter${n.name?` "${n.name}"`:""} on event "${Go(e,{includeName:!0})}".`].join(` +`),{name:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e}}class vQ extends fe{constructor(e,{docsPath:n}){super([`Type "${e}" is not a valid encoding type.`,"Please provide a valid ABI type."].join(` +`),{docsPath:n,name:"InvalidAbiEncodingType"})}}class wQ extends fe{constructor(e,{docsPath:n}){super([`Type "${e}" is not a valid decoding type.`,"Please provide a valid ABI type."].join(` +`),{docsPath:n,name:"InvalidAbiDecodingType"})}}class EQ extends fe{constructor(e){super([`Value "${e}" is not a valid array.`].join(` +`),{name:"InvalidArrayError"})}}class AQ extends fe{constructor(e){super([`"${e}" is not a valid definition type.`,'Valid types: "function", "event", "error"'].join(` +`),{name:"InvalidDefinitionTypeError"})}}class kN extends fe{constructor({offset:e,position:n,size:r}){super(`Slice ${n==="start"?"starting":"ending"} at offset "${e}" is out-of-bounds (size: ${r}).`,{name:"SliceOffsetOutOfBoundsError"})}}class UN extends fe{constructor({size:e,targetSize:n,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (${e}) exceeds padding size (${n}).`,{name:"SizeExceedsPaddingSizeError"})}}class a4 extends fe{constructor({size:e,targetSize:n,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} is expected to be ${n} ${r} long, but is ${e} ${r} long.`,{name:"InvalidBytesLengthError"})}}function Cd(t,{dir:e,size:n=32}={}){return typeof t=="string"?Fo(t,{dir:e,size:n}):_Q(t,{dir:e,size:n})}function Fo(t,{dir:e,size:n=32}={}){if(n===null)return t;const r=t.replace("0x","");if(r.length>n*2)throw new UN({size:Math.ceil(r.length/2),targetSize:n,type:"hex"});return`0x${r[e==="right"?"padEnd":"padStart"](n*2,"0")}`}function _Q(t,{dir:e,size:n=32}={}){if(n===null)return t;if(t.length>n)throw new UN({size:t.length,targetSize:n,type:"bytes"});const r=new Uint8Array(n);for(let i=0;ie)throw new SQ({givenSize:lr(t),maxSize:e})}function sd(t,e={}){const{signed:n}=e;e.size&&gs(t,{size:e.size});const r=BigInt(t);if(!n)return r;const i=(t.length-2)/2,s=(1n<e.toString(16).padStart(2,"0"));function Ba(t,e={}){return typeof t=="number"||typeof t=="bigint"?it(t,e):typeof t=="string"?Hm(t,e):typeof t=="boolean"?$N(t,e):wr(t,e)}function $N(t,e={}){const n=`0x${Number(t)}`;return typeof e.size=="number"?(gs(n,{size:e.size}),Cd(n,{size:e.size})):n}function wr(t,e={}){let n="";for(let i=0;is||i=_a.zero&&t<=_a.nine)return t-_a.zero;if(t>=_a.A&&t<=_a.F)return t-(_a.A-10);if(t>=_a.a&&t<=_a.f)return t-(_a.a-10)}function qs(t,e={}){let n=t;e.size&&(gs(n,{size:e.size}),n=Cd(n,{dir:"right",size:e.size}));let r=n.slice(2);r.length%2&&(r=`0${r}`);const i=r.length/2,s=new Uint8Array(i);for(let c=0,u=0;cVo(Tp(t));function DQ(t){return RQ(t)}function PQ(t){let e=!0,n="",r=0,i="",s=!1;for(let c=0;c{const e=typeof t=="string"?t:kU(t);return PQ(e)};function FN(t){return DQ(MQ(t))}const h2=FN;class su extends fe{constructor({address:e}){super(`Address "${e}" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."],name:"InvalidAddressError"})}}class Gm extends Map{constructor(e){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}get(e){const n=super.get(e);return super.has(e)&&n!==void 0&&(this.delete(e),super.set(e,n)),n}set(e,n){if(super.set(e,n),this.maxSize&&this.size>this.maxSize){const r=this.keys().next().value;r&&this.delete(r)}return this}}const I1=new Gm(8192);function Vm(t,e){if(I1.has(`${t}.${e}`))return I1.get(`${t}.${e}`);const n=e?`${e}${t.toLowerCase()}`:t.substring(2).toLowerCase(),r=Vo(Kc(n),"bytes"),i=(e?n.substring(`${e}0x`.length):n).split("");for(let c=0;c<40;c+=2)r[c>>1]>>4>=8&&i[c]&&(i[c]=i[c].toUpperCase()),(r[c>>1]&15)>=8&&i[c+1]&&(i[c+1]=i[c+1].toUpperCase());const s=`0x${i.join("")}`;return I1.set(`${t}.${e}`,s),s}function Bo(t,e){if(!Hs(t,{strict:!1}))throw new su({address:t});return Vm(t,e)}const kQ=/^0x[a-fA-F0-9]{40}$/,O1=new Gm(8192);function Hs(t,e){const{strict:n=!0}=e??{},r=`${t}.${n}`;if(O1.has(r))return O1.get(r);const i=kQ.test(t)?t.toLowerCase()===t?!0:n?Vm(t)===t:!0:!1;return O1.set(r,i),i}function au(t){return typeof t[0]=="string"?Km(t):UQ(t)}function UQ(t){let e=0;for(const i of t)e+=i.length;const n=new Uint8Array(e);let r=0;for(const i of t)n.set(i,r),r+=i.length;return n}function Km(t){return`0x${t.reduce((e,n)=>e+n.replace("0x",""),"")}`}function em(t,e,n,{strict:r}={}){return Ua(t,{strict:!1})?BQ(t,e,n,{strict:r}):qN(t,e,n,{strict:r})}function jN(t,e){if(typeof e=="number"&&e>0&&e>lr(t)-1)throw new kN({offset:e,position:"start",size:lr(t)})}function zN(t,e,n){if(typeof e=="number"&&typeof n=="number"&&lr(t)!==n-e)throw new kN({offset:n,position:"end",size:lr(t)})}function qN(t,e,n,{strict:r}={}){jN(t,e);const i=t.slice(e,n);return r&&zN(i,e,n),i}function BQ(t,e,n,{strict:r}={}){jN(t,e);const i=`0x${t.replace("0x","").slice((e??0)*2,(n??t.length)*2)}`;return r&&zN(i,e,n),i}const LQ=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;function HN(t,e){if(t.length!==e.length)throw new gQ({expectedLength:t.length,givenLength:e.length});const n=$Q({params:t,values:e}),r=g2(n);return r.length===0?"0x":r}function $Q({params:t,values:e}){const n=[];for(let r=0;r0?au([u,c]):u}}if(i)return{dynamic:!0,encoded:c}}return{dynamic:!1,encoded:au(s.map(({encoded:c})=>c))}}function zQ(t,{param:e}){const[,n]=e.type.split("bytes"),r=lr(t);if(!n){let i=t;return r%32!==0&&(i=Fo(i,{dir:"right",size:Math.ceil((t.length-2)/2/32)*32})),{dynamic:!0,encoded:au([Fo(it(r,{size:32})),i])}}if(r!==Number.parseInt(n))throw new pQ({expectedSize:Number.parseInt(n),value:t});return{dynamic:!1,encoded:Fo(t,{dir:"right"})}}function qQ(t){if(typeof t!="boolean")throw new fe(`Invalid boolean value: "${t}" (type: ${typeof t}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:Fo($N(t))}}function HQ(t,{signed:e,size:n=256}){if(typeof n=="number"){const r=2n**(BigInt(n)-(e?1n:0n))-1n,i=e?-r-1n:0n;if(t>r||ti))}}function m2(t){const e=t.match(/^(.*)\[(\d+)?\]$/);return e?[e[2]?Number(e[2]):null,e[1]]:void 0}const b2=t=>em(FN(t),0,4);function y2(t){const{abi:e,args:n=[],name:r}=t,i=Ua(r,{strict:!1}),s=e.filter(u=>i?u.type==="function"?b2(u)===r:u.type==="event"?h2(u)===r:!1:"name"in u&&u.name===r);if(s.length===0)return;if(s.length===1)return s[0];let c;for(const u of s){if(!("inputs"in u))continue;if(!n||n.length===0){if(!u.inputs||u.inputs.length===0)return u;continue}if(!u.inputs||u.inputs.length===0||u.inputs.length!==n.length)continue;if(n.every((d,p)=>{const g="inputs"in u&&u.inputs[p];return g?Qw(d,g):!1})){if(c&&"inputs"in c&&c.inputs){const d=GN(u.inputs,c.inputs,n);if(d)throw new yQ({abiItem:u,type:d[0]},{abiItem:c,type:d[1]})}c=u}}return c||s[0]}function Qw(t,e){const n=typeof t,r=e.type;switch(r){case"address":return Hs(t,{strict:!1});case"bool":return n==="boolean";case"function":return n==="string";case"string":return n==="string";default:return r==="tuple"&&"components"in e?Object.values(e.components).every((i,s)=>Qw(Object.values(t)[s],i)):/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(r)?n==="number"||n==="bigint":/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(r)?n==="string"||t instanceof Uint8Array:/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(r)?Array.isArray(t)&&t.every(i=>Qw(i,{...e,type:r.replace(/(\[[0-9]{0,}\])$/,"")})):!1}}function GN(t,e,n){for(const r in t){const i=t[r],s=e[r];if(i.type==="tuple"&&s.type==="tuple"&&"components"in i&&"components"in s)return GN(i.components,s.components,n[r]);const c=[i.type,s.type];if(c.includes("address")&&c.includes("bytes20")?!0:c.includes("address")&&c.includes("string")?Hs(n[r],{strict:!1}):c.includes("address")&&c.includes("bytes")?Hs(n[r],{strict:!1}):!1)return c}}function KQ(t,{method:e}){var r,i;const n={};return t.transport.type==="fallback"&&((i=(r=t.transport).onResponse)==null||i.call(r,({method:s,response:c,status:u,transport:f})=>{u==="success"&&e===s&&(n[c]=f.request)})),s=>n[s]||t.request}function Qs(t){return typeof t=="string"?{address:t,type:"json-rpc"}:t}const c4="/docs/contract/encodeFunctionData";function WQ(t){const{abi:e,args:n,functionName:r}=t;let i=e[0];if(r){const s=y2({abi:e,args:n,name:r});if(!s)throw new Jg(r,{docsPath:c4});i=s}if(i.type!=="function")throw new Jg(void 0,{docsPath:c4});return{abi:[i],functionName:b2(Go(i))}}function Td(t){const{args:e}=t,{abi:n,functionName:r}=(()=>{var u;return t.abi.length===1&&((u=t.functionName)!=null&&u.startsWith("0x"))?t:WQ(t)})(),i=n[0],s=r,c="inputs"in i&&i.inputs?HN(i.inputs,e??[]):void 0;return Km([s,c??"0x"])}const VN={1:"An `assert` condition failed.",17:"Arithmetic operation resulted in underflow or overflow.",18:"Division or modulo by zero (e.g. `5 / 0` or `23 % 0`).",33:"Attempted to convert to an invalid type.",34:"Attempted to access a storage byte array that is incorrectly encoded.",49:"Performed `.pop()` on an empty array",50:"Array index is out of bounds.",65:"Allocated too much memory or created an array which is too large.",81:"Attempted to call a zero-initialized variable of internal function type."},QQ={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},YQ={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"};class u4 extends fe{constructor({offset:e}){super(`Offset \`${e}\` cannot be negative.`,{name:"NegativeOffsetError"})}}class KN extends fe{constructor({length:e,position:n}){super(`Position \`${n}\` is out of bounds (\`0 < position < ${e}\`).`,{name:"PositionOutOfBoundsError"})}}class ZQ extends fe{constructor({count:e,limit:n}){super(`Recursive read limit of \`${n}\` exceeded (recursive read count: \`${e}\`).`,{name:"RecursiveReadLimitExceededError"})}}const XQ={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new ZQ({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(t){if(t<0||t>this.bytes.length-1)throw new KN({length:this.bytes.length,position:t})},decrementPosition(t){if(t<0)throw new u4({offset:t});const e=this.position-t;this.assertPosition(e),this.position=e},getReadCount(t){return this.positionReadCount.get(t||this.position)||0},incrementPosition(t){if(t<0)throw new u4({offset:t});const e=this.position+t;this.assertPosition(e),this.position=e},inspectByte(t){const e=t??this.position;return this.assertPosition(e),this.bytes[e]},inspectBytes(t,e){const n=e??this.position;return this.assertPosition(n+t-1),this.bytes.subarray(n,n+t)},inspectUint8(t){const e=t??this.position;return this.assertPosition(e),this.bytes[e]},inspectUint16(t){const e=t??this.position;return this.assertPosition(e+1),this.dataView.getUint16(e)},inspectUint24(t){const e=t??this.position;return this.assertPosition(e+2),(this.dataView.getUint16(e)<<8)+this.dataView.getUint8(e+2)},inspectUint32(t){const e=t??this.position;return this.assertPosition(e+3),this.dataView.getUint32(e)},pushByte(t){this.assertPosition(this.position),this.bytes[this.position]=t,this.position++},pushBytes(t){this.assertPosition(this.position+t.length-1),this.bytes.set(t,this.position),this.position+=t.length},pushUint8(t){this.assertPosition(this.position),this.bytes[this.position]=t,this.position++},pushUint16(t){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,t),this.position+=2},pushUint24(t){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,t>>8),this.dataView.setUint8(this.position+2,t&255),this.position+=3},pushUint32(t){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,t),this.position+=4},readByte(){this.assertReadLimit(),this._touch();const t=this.inspectByte();return this.position++,t},readBytes(t,e){this.assertReadLimit(),this._touch();const n=this.inspectBytes(t);return this.position+=e??t,n},readUint8(){this.assertReadLimit(),this._touch();const t=this.inspectUint8();return this.position+=1,t},readUint16(){this.assertReadLimit(),this._touch();const t=this.inspectUint16();return this.position+=2,t},readUint24(){this.assertReadLimit(),this._touch();const t=this.inspectUint24();return this.position+=3,t},readUint32(){this.assertReadLimit(),this._touch();const t=this.inspectUint32();return this.position+=4,t},get remaining(){return this.bytes.length-this.position},setPosition(t){const e=this.position;return this.assertPosition(t),this.position=t,()=>this.position=e},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;const t=this.getReadCount();this.positionReadCount.set(this.position,t+1),t>0&&this.recursiveReadCount++}};function v2(t,{recursiveReadLimit:e=8192}={}){const n=Object.create(XQ);return n.bytes=t,n.dataView=new DataView(t.buffer,t.byteOffset,t.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=e,n}function JQ(t,e={}){typeof e.size<"u"&&gs(t,{size:e.size});const n=wr(t,e);return sd(n,e)}function eY(t,e={}){let n=t;if(typeof e.size<"u"&&(gs(n,{size:e.size}),n=Sd(n)),n.length>1||n[0]>1)throw new CQ(n);return!!n[0]}function Da(t,e={}){typeof e.size<"u"&&gs(t,{size:e.size});const n=wr(t,e);return iu(n,e)}function tY(t,e={}){let n=t;return typeof e.size<"u"&&(gs(n,{size:e.size}),n=Sd(n,{dir:"right"})),new TextDecoder().decode(n)}function Wm(t,e){const n=typeof e=="string"?qs(e):e,r=v2(n);if(lr(n)===0&&t.length>0)throw new qm;if(lr(e)&&lr(e)<32)throw new RN({data:typeof e=="string"?e:wr(e),params:t,size:lr(e)});let i=0;const s=[];for(let c=0;c48?JQ(i,{signed:n}):Da(i,{signed:n}),32]}function oY(t,e,{staticPosition:n}){const r=e.components.length===0||e.components.some(({name:c})=>!c),i=r?[]:{};let s=0;if(Sh(e)){const c=Da(t.readBytes(Yw)),u=n+c;for(let f=0;fc.type==="error"&&r===b2(Go(c)));if(!s)throw new DN(r,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:s,args:"inputs"in s&&s.inputs&&s.inputs.length>0?Wm(s.inputs,em(n,4)):void 0,errorName:s.name}}const ji=(t,e,n)=>JSON.stringify(t,(r,i)=>typeof i=="bigint"?i.toString():i,n);function WN({abiItem:t,args:e,includeFunctionName:n=!0,includeName:r=!1}){if("name"in t&&"inputs"in t&&t.inputs)return`${n?t.name:""}(${t.inputs.map((i,s)=>`${r&&i.name?`${i.name}: `:""}${typeof e[s]=="object"?ji(e[s]):e[s]}`).join(", ")})`}const lY={gwei:9,wei:18},QN={ether:-9,wei:9},dY={ether:-18,gwei:-9};function xd(t,e){let n=t.toString();const r=n.startsWith("-");r&&(n=n.slice(1)),n=n.padStart(e,"0");let[i,s]=[n.slice(0,n.length-e),n.slice(n.length-e)];return s=s.replace(/(0+)$/,""),`${r?"-":""}${i||"0"}${s?`.${s}`:""}`}function w2(t,e="wei"){return xd(t,lY[e])}function ti(t,e="wei"){return xd(t,QN[e])}class fY extends fe{constructor({address:e}){super(`State for account "${e}" is set multiple times.`,{name:"AccountStateConflictError"})}}class hY extends fe{constructor(){super("state and stateDiff are set on the same account.",{name:"StateAssignmentConflictError"})}}function d4(t){return t.reduce((e,{slot:n,value:r})=>`${e} ${n}: ${r} +`,"")}function pY(t){return t.reduce((e,{address:n,...r})=>{let i=`${e} ${n}: +`;return r.nonce&&(i+=` nonce: ${r.nonce} +`),r.balance&&(i+=` balance: ${r.balance} +`),r.code&&(i+=` code: ${r.code} +`),r.state&&(i+=` state: +`,i+=d4(r.state)),r.stateDiff&&(i+=` stateDiff: +`,i+=d4(r.stateDiff)),i},` State Override: +`).slice(0,-1)}function xp(t){const e=Object.entries(t).map(([r,i])=>i===void 0||i===!1?null:[r,i]).filter(Boolean),n=e.reduce((r,[i])=>Math.max(r,i.length),0);return e.map(([r,i])=>` ${`${r}:`.padEnd(n+1)} ${i}`).join(` +`)}class gY extends fe{constructor(){super(["Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.","Use `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others."].join(` +`),{name:"FeeConflictError"})}}class mY extends fe{constructor({transaction:e}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",xp(e),"}","","To infer the type, either provide:","- a `type` to the Transaction, or","- an EIP-1559 Transaction with `maxFeePerGas`, or","- an EIP-2930 Transaction with `gasPrice` & `accessList`, or","- an EIP-4844 Transaction with `blobs`, `blobVersionedHashes`, `sidecars`, or","- an EIP-7702 Transaction with `authorizationList`, or","- a Legacy Transaction with `gasPrice`"],name:"InvalidSerializableTransactionError"})}}class bY extends fe{constructor(e,{account:n,docsPath:r,chain:i,data:s,gas:c,gasPrice:u,maxFeePerGas:f,maxPriorityFeePerGas:d,nonce:p,to:g,value:m}){var A;const y=xp({chain:i&&`${i==null?void 0:i.name} (id: ${i==null?void 0:i.id})`,from:n==null?void 0:n.address,to:g,value:typeof m<"u"&&`${w2(m)} ${((A=i==null?void 0:i.nativeCurrency)==null?void 0:A.symbol)||"ETH"}`,data:s,gas:c,gasPrice:typeof u<"u"&&`${ti(u)} gwei`,maxFeePerGas:typeof f<"u"&&`${ti(f)} gwei`,maxPriorityFeePerGas:typeof d<"u"&&`${ti(d)} gwei`,nonce:p});super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Request Arguments:",y].filter(Boolean),name:"TransactionExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}class YN extends fe{constructor({blockHash:e,blockNumber:n,blockTag:r,hash:i,index:s}){let c="Transaction";r&&s!==void 0&&(c=`Transaction at block time "${r}" at index "${s}"`),e&&s!==void 0&&(c=`Transaction at block hash "${e}" at index "${s}"`),n&&s!==void 0&&(c=`Transaction at block number "${n}" at index "${s}"`),i&&(c=`Transaction with hash "${i}"`),super(`${c} could not be found.`,{name:"TransactionNotFoundError"})}}class ZN extends fe{constructor({hash:e}){super(`Transaction receipt with hash "${e}" could not be found. The Transaction may not be processed on a block yet.`,{name:"TransactionReceiptNotFoundError"})}}class yY extends fe{constructor({hash:e}){super(`Timed out while waiting for transaction with hash "${e}" to be confirmed.`,{name:"WaitForTransactionReceiptTimeoutError"})}}const vY=t=>t,E2=t=>t;class wY extends fe{constructor(e,{account:n,docsPath:r,chain:i,data:s,gas:c,gasPrice:u,maxFeePerGas:f,maxPriorityFeePerGas:d,nonce:p,to:g,value:m,stateOverride:y}){var x;const A=n?Qs(n):void 0;let E=xp({from:A==null?void 0:A.address,to:g,value:typeof m<"u"&&`${w2(m)} ${((x=i==null?void 0:i.nativeCurrency)==null?void 0:x.symbol)||"ETH"}`,data:s,gas:c,gasPrice:typeof u<"u"&&`${ti(u)} gwei`,maxFeePerGas:typeof f<"u"&&`${ti(f)} gwei`,maxPriorityFeePerGas:typeof d<"u"&&`${ti(d)} gwei`,nonce:p});y&&(E+=` +${pY(y)}`),super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Raw Call Arguments:",E].filter(Boolean),name:"CallExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}class XN extends fe{constructor(e,{abi:n,args:r,contractAddress:i,docsPath:s,functionName:c,sender:u}){const f=y2({abi:n,args:r,name:c}),d=f?WN({abiItem:f,args:r,includeFunctionName:!1,includeName:!1}):void 0,p=f?Go(f,{includeName:!0}):void 0,g=xp({address:i&&vY(i),function:p,args:d&&d!=="()"&&`${[...Array((c==null?void 0:c.length)??0).keys()].map(()=>" ").join("")}${d}`,sender:u});super(e.shortMessage||`An unknown error occurred while executing the contract function "${c}".`,{cause:e,docsPath:s,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],g&&"Contract Call:",g].filter(Boolean),name:"ContractFunctionExecutionError"}),Object.defineProperty(this,"abi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"args",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contractAddress",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"formattedArgs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"functionName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sender",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abi=n,this.args=r,this.cause=e,this.contractAddress=i,this.functionName=c,this.sender=u}}class Zw extends fe{constructor({abi:e,data:n,functionName:r,message:i}){let s,c,u,f;if(n&&n!=="0x")try{c=uY({abi:e,data:n});const{abiItem:p,errorName:g,args:m}=c;if(g==="Error")f=m[0];else if(g==="Panic"){const[y]=m;f=VN[y]}else{const y=p?Go(p,{includeName:!0}):void 0,A=p&&m?WN({abiItem:p,args:m,includeFunctionName:!1,includeName:!1}):void 0;u=[y?`Error: ${y}`:"",A&&A!=="()"?` ${[...Array((g==null?void 0:g.length)??0).keys()].map(()=>" ").join("")}${A}`:""]}}catch(p){s=p}else i&&(f=i);let d;s instanceof DN&&(d=s.signature,u=[`Unable to decode signature "${d}" as it was not found on the provided ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${d}.`]),super(f&&f!=="execution reverted"||d?[`The contract function "${r}" reverted with the following ${d?"signature":"reason"}:`,f||d].join(` +`):`The contract function "${r}" reverted.`,{cause:s,metaMessages:u,name:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"raw",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"reason",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=c,this.raw=n,this.reason=f,this.signature=d}}class EY extends fe{constructor({functionName:e}){super(`The contract function "${e}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",` - The contract does not have the function "${e}",`," - The parameters passed to the contract function may be invalid, or"," - The address is not a contract."],name:"ContractFunctionZeroDataError"})}}class AY extends fe{constructor({factory:e}){super(`Deployment for counterfactual contract call failed${e?` for factory "${e}".`:""}`,{metaMessages:["Please ensure:","- The `factory` is a valid contract deployment factory (ie. Create2 Factory, ERC-4337 Factory, etc).","- The `factoryData` is a valid encoded function call for contract deployment function on the factory."],name:"CounterfactualDeploymentFailedError"})}}class A2 extends fe{constructor({data:e,message:n}){super(n||"",{name:"RawContractError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e}}class hh extends fe{constructor({body:e,cause:n,details:r,headers:i,status:s,url:c}){super("HTTP request failed.",{cause:n,details:r,metaMessages:[s&&`Status: ${s}`,`URL: ${E2(c)}`,e&&`Request body: ${ji(e)}`].filter(Boolean),name:"HttpRequestError"}),Object.defineProperty(this,"body",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=e,this.headers=i,this.status=s,this.url=c}}class _2 extends fe{constructor({body:e,error:n,url:r}){super("RPC Request failed.",{cause:n,details:n.message,metaMessages:[`URL: ${E2(r)}`,`Request body: ${ji(e)}`],name:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=n.code,this.data=n.data}}class f4 extends fe{constructor({body:e,url:n}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${E2(n)}`,`Request body: ${ji(e)}`],name:"TimeoutError"})}}const _Y=-1;class ri extends fe{constructor(e,{code:n,docsPath:r,metaMessages:i,name:s,shortMessage:c}){super(c,{cause:e,docsPath:r,metaMessages:i||(e==null?void 0:e.metaMessages),name:s||"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=s||e.name,this.code=e instanceof _2?e.code:n??_Y}}class Nd extends ri{constructor(e,n){super(e,n),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=n.data}}class Th extends ri{constructor(e){super(e,{code:Th.code,name:"ParseRpcError",shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."})}}Object.defineProperty(Th,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class xh extends ri{constructor(e){super(e,{code:xh.code,name:"InvalidRequestRpcError",shortMessage:"JSON is not a valid request object."})}}Object.defineProperty(xh,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class Nh extends ri{constructor(e,{method:n}={}){super(e,{code:Nh.code,name:"MethodNotFoundRpcError",shortMessage:`The method${n?` "${n}"`:""} does not exist / is not available.`})}}Object.defineProperty(Nh,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class Ih extends ri{constructor(e){super(e,{code:Ih.code,name:"InvalidParamsRpcError",shortMessage:["Invalid parameters were provided to the RPC method.","Double check you have provided the correct parameters."].join(` +`)})}}Object.defineProperty(Ih,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class ou extends ri{constructor(e){super(e,{code:ou.code,name:"InternalRpcError",shortMessage:"An internal error was received."})}}Object.defineProperty(ou,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class Oh extends ri{constructor(e){super(e,{code:Oh.code,name:"InvalidInputRpcError",shortMessage:["Missing or invalid parameters.","Double check you have provided the correct parameters."].join(` +`)})}}Object.defineProperty(Oh,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class Rh extends ri{constructor(e){super(e,{code:Rh.code,name:"ResourceNotFoundRpcError",shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(Rh,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class jo extends ri{constructor(e){super(e,{code:jo.code,name:"ResourceUnavailableRpcError",shortMessage:"Requested resource not available."})}}Object.defineProperty(jo,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class ad extends ri{constructor(e){super(e,{code:ad.code,name:"TransactionRejectedRpcError",shortMessage:"Transaction creation failed."})}}Object.defineProperty(ad,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class Pc extends ri{constructor(e,{method:n}={}){super(e,{code:Pc.code,name:"MethodNotSupportedRpcError",shortMessage:`Method${n?` "${n}"`:""} is not supported.`})}}Object.defineProperty(Pc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class od extends ri{constructor(e){super(e,{code:od.code,name:"LimitExceededRpcError",shortMessage:"Request exceeds defined limit."})}}Object.defineProperty(od,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class Dh extends ri{constructor(e){super(e,{code:Dh.code,name:"JsonRpcVersionUnsupportedError",shortMessage:"Version of JSON-RPC protocol is not supported."})}}Object.defineProperty(Dh,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class Xn extends Nd{constructor(e){super(e,{code:Xn.code,name:"UserRejectedRequestError",shortMessage:"User rejected the request."})}}Object.defineProperty(Xn,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class Ph extends Nd{constructor(e){super(e,{code:Ph.code,name:"UnauthorizedProviderError",shortMessage:"The requested method and/or account has not been authorized by the user."})}}Object.defineProperty(Ph,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class Mh extends Nd{constructor(e,{method:n}={}){super(e,{code:Mh.code,name:"UnsupportedProviderMethodError",shortMessage:`The Provider does not support the requested method${n?` " ${n}"`:""}.`})}}Object.defineProperty(Mh,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class kh extends Nd{constructor(e){super(e,{code:kh.code,name:"ProviderDisconnectedError",shortMessage:"The Provider is disconnected from all chains."})}}Object.defineProperty(kh,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class Uh extends Nd{constructor(e){super(e,{code:Uh.code,name:"ChainDisconnectedError",shortMessage:"The Provider is not connected to the requested chain."})}}Object.defineProperty(Uh,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class Gs extends Nd{constructor(e){super(e,{code:Gs.code,name:"SwitchChainError",shortMessage:"An error occurred when attempting to switch chain."})}}Object.defineProperty(Gs,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class CY extends ri{constructor(e){super(e,{name:"UnknownRpcError",shortMessage:"An unknown RPC error occurred."})}}const SY=3;function tm(t,{abi:e,address:n,args:r,docsPath:i,functionName:s,sender:c}){const u=t instanceof A2?t:t instanceof fe?t.walk(A=>"data"in A)||t.walk():{},{code:f,data:d,details:p,message:g,shortMessage:m}=u,y=t instanceof qm?new EY({functionName:s}):[SY,ou.code].includes(f)&&(d||p||g||m)?new Zw({abi:e,data:typeof d=="object"?d.data:d,functionName:s,message:u instanceof _2?p:m??g}):t;return new XN(y,{abi:e,args:r,contractAddress:n,docsPath:i,functionName:s,sender:c})}function TY(t){const e=Vo(`0x${t.substring(4)}`).substring(26);return Vm(`0x${e}`)}async function xY({hash:t,signature:e}){const n=Ua(t)?t:Ba(t),{secp256k1:r}=await ei(async()=>{const{secp256k1:c}=await import("./secp256k1-C-C-k1yE.js");return{secp256k1:c}},[]);return`0x${(()=>{if(typeof e=="object"&&"r"in e&&"s"in e){const{r:d,s:p,v:g,yParity:m}=e,y=Number(m??g),A=h4(y);return new r.Signature(sd(d),sd(p)).addRecoveryBit(A)}const c=Ua(e)?e:Ba(e),u=iu(`0x${c.slice(130)}`),f=h4(u);return r.Signature.fromCompact(c.substring(2,130)).addRecoveryBit(f)})().recoverPublicKey(n.substring(2)).toHex(!1)}`}function h4(t){if(t===0||t===1)return t;if(t===27)return 0;if(t===28)return 1;throw new Error("Invalid yParityOrV value")}async function NY({hash:t,signature:e}){return TY(await xY({hash:t,signature:e}))}function IY(t,e="hex"){const n=JN(t),r=v2(new Uint8Array(n.length));return n.encode(r),e==="hex"?wr(r.bytes):r.bytes}function JN(t){return Array.isArray(t)?OY(t.map(e=>JN(e))):RY(t)}function OY(t){const e=t.reduce((i,s)=>i+s.length,0),n=e9(e);return{length:e<=55?1+e:1+n+e,encode(i){e<=55?i.pushByte(192+e):(i.pushByte(247+n),n===1?i.pushUint8(e):n===2?i.pushUint16(e):n===3?i.pushUint24(e):i.pushUint32(e));for(const{encode:s}of t)s(i)}}}function RY(t){const e=typeof t=="string"?qs(t):t,n=e9(e.length);return{length:e.length===1&&e[0]<128?1:e.length<=55?1+e.length:1+n+e.length,encode(i){e.length===1&&e[0]<128?i.pushBytes(e):e.length<=55?(i.pushByte(128+e.length),i.pushBytes(e)):(i.pushByte(183+n),n===1?i.pushUint8(e.length):n===2?i.pushUint16(e.length):n===3?i.pushUint24(e.length):i.pushUint32(e.length),i.pushBytes(e))}}}function e9(t){if(t<2**8)return 1;if(t<2**16)return 2;if(t<2**24)return 3;if(t<2**32)return 4;throw new fe("Length is too large.")}function DY(t){const{chainId:e,nonce:n,to:r}=t,i=t.contractAddress??t.address,s=Vo(Km(["0x05",IY([e?it(e):"0x",i,n?it(n):"0x"])]));return r==="bytes"?qs(s):s}async function t9(t){const{authorization:e,signature:n}=t;return NY({hash:DY(e),signature:n??e})}class PY extends fe{constructor(e,{account:n,docsPath:r,chain:i,data:s,gas:c,gasPrice:u,maxFeePerGas:f,maxPriorityFeePerGas:d,nonce:p,to:g,value:m}){var A;const y=xp({from:n==null?void 0:n.address,to:g,value:typeof m<"u"&&`${w2(m)} ${((A=i==null?void 0:i.nativeCurrency)==null?void 0:A.symbol)||"ETH"}`,data:s,gas:c,gasPrice:typeof u<"u"&&`${ti(u)} gwei`,maxFeePerGas:typeof f<"u"&&`${ti(f)} gwei`,maxPriorityFeePerGas:typeof d<"u"&&`${ti(d)} gwei`,nonce:p});super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Estimate Gas Arguments:",y].filter(Boolean),name:"EstimateGasExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}class Mc extends fe{constructor({cause:e,message:n}={}){var i;const r=(i=n==null?void 0:n.replace("execution reverted: ",""))==null?void 0:i.replace("execution reverted","");super(`Execution reverted ${r?`with reason: ${r}`:"for an unknown reason"}.`,{cause:e,name:"ExecutionRevertedError"})}}Object.defineProperty(Mc,"code",{enumerable:!0,configurable:!0,writable:!0,value:3});Object.defineProperty(Mc,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class nm extends fe{constructor({cause:e,maxFeePerGas:n}={}){super(`The fee cap (\`maxFeePerGas\`${n?` = ${ti(n)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:e,name:"FeeCapTooHighError"})}}Object.defineProperty(nm,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});class Xw extends fe{constructor({cause:e,maxFeePerGas:n}={}){super(`The fee cap (\`maxFeePerGas\`${n?` = ${ti(n)}`:""} gwei) cannot be lower than the block base fee.`,{cause:e,name:"FeeCapTooLowError"})}}Object.defineProperty(Xw,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});class Jw extends fe{constructor({cause:e,nonce:n}={}){super(`Nonce provided for the transaction ${n?`(${n}) `:""}is higher than the next one expected.`,{cause:e,name:"NonceTooHighError"})}}Object.defineProperty(Jw,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class eE extends fe{constructor({cause:e,nonce:n}={}){super([`Nonce provided for the transaction ${n?`(${n}) `:""}is lower than the current nonce of the account.`,"Try increasing the nonce or find the latest nonce with `getTransactionCount`."].join(` +`),{cause:e,name:"NonceTooLowError"})}}Object.defineProperty(eE,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class tE extends fe{constructor({cause:e,nonce:n}={}){super(`Nonce provided for the transaction ${n?`(${n}) `:""}exceeds the maximum allowed nonce.`,{cause:e,name:"NonceMaxValueError"})}}Object.defineProperty(tE,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class nE extends fe{constructor({cause:e}={}){super(["The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."].join(` +`),{cause:e,metaMessages:["This error could arise when the account does not have enough funds to:"," - pay for the total gas fee,"," - pay for the value to send."," ","The cost of the transaction is calculated as `gas * gas fee + value`, where:"," - `gas` is the amount of gas needed for transaction to execute,"," - `gas fee` is the gas fee,"," - `value` is the amount of ether to send to the recipient."],name:"InsufficientFundsError"})}}Object.defineProperty(nE,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class rE extends fe{constructor({cause:e,gas:n}={}){super(`The amount of gas ${n?`(${n}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:e,name:"IntrinsicGasTooHighError"})}}Object.defineProperty(rE,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class iE extends fe{constructor({cause:e,gas:n}={}){super(`The amount of gas ${n?`(${n}) `:""}provided for the transaction is too low.`,{cause:e,name:"IntrinsicGasTooLowError"})}}Object.defineProperty(iE,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class sE extends fe{constructor({cause:e}){super("The transaction type is not supported for this chain.",{cause:e,name:"TransactionTypeNotSupportedError"})}}Object.defineProperty(sE,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class rm extends fe{constructor({cause:e,maxPriorityFeePerGas:n,maxFeePerGas:r}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${n?` = ${ti(n)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${r?` = ${ti(r)} gwei`:""}).`].join(` +`),{cause:e,name:"TipAboveFeeCapError"})}}Object.defineProperty(rm,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});class Qm extends fe{constructor({cause:e}){super(`An error occurred while executing: ${e==null?void 0:e.shortMessage}`,{cause:e,name:"UnknownNodeError"})}}function C2(t,e){const n=(t.details||"").toLowerCase(),r=t instanceof fe?t.walk(i=>(i==null?void 0:i.code)===Mc.code):t;return r instanceof fe?new Mc({cause:t,message:r.details}):Mc.nodeMessage.test(n)?new Mc({cause:t,message:t.details}):nm.nodeMessage.test(n)?new nm({cause:t,maxFeePerGas:e==null?void 0:e.maxFeePerGas}):Xw.nodeMessage.test(n)?new Xw({cause:t,maxFeePerGas:e==null?void 0:e.maxFeePerGas}):Jw.nodeMessage.test(n)?new Jw({cause:t,nonce:e==null?void 0:e.nonce}):eE.nodeMessage.test(n)?new eE({cause:t,nonce:e==null?void 0:e.nonce}):tE.nodeMessage.test(n)?new tE({cause:t,nonce:e==null?void 0:e.nonce}):nE.nodeMessage.test(n)?new nE({cause:t}):rE.nodeMessage.test(n)?new rE({cause:t,gas:e==null?void 0:e.gas}):iE.nodeMessage.test(n)?new iE({cause:t,gas:e==null?void 0:e.gas}):sE.nodeMessage.test(n)?new sE({cause:t}):rm.nodeMessage.test(n)?new rm({cause:t,maxFeePerGas:e==null?void 0:e.maxFeePerGas,maxPriorityFeePerGas:e==null?void 0:e.maxPriorityFeePerGas}):new Qm({cause:t})}function MY(t,{docsPath:e,...n}){const r=(()=>{const i=C2(t,n);return i instanceof Qm?t:i})();return new PY(r,{docsPath:e,...n})}function S2(t,{format:e}){if(!e)return{};const n={};function r(s){const c=Object.keys(s);for(const u of c)u in t&&(n[u]=t[u]),s[u]&&typeof s[u]=="object"&&!Array.isArray(s[u])&&r(s[u])}const i=e(t||{});return r(i),n}const kY={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function T2(t){const e={};return typeof t.authorizationList<"u"&&(e.authorizationList=UY(t.authorizationList)),typeof t.accessList<"u"&&(e.accessList=t.accessList),typeof t.blobVersionedHashes<"u"&&(e.blobVersionedHashes=t.blobVersionedHashes),typeof t.blobs<"u"&&(typeof t.blobs[0]!="string"?e.blobs=t.blobs.map(n=>wr(n)):e.blobs=t.blobs),typeof t.data<"u"&&(e.data=t.data),typeof t.from<"u"&&(e.from=t.from),typeof t.gas<"u"&&(e.gas=it(t.gas)),typeof t.gasPrice<"u"&&(e.gasPrice=it(t.gasPrice)),typeof t.maxFeePerBlobGas<"u"&&(e.maxFeePerBlobGas=it(t.maxFeePerBlobGas)),typeof t.maxFeePerGas<"u"&&(e.maxFeePerGas=it(t.maxFeePerGas)),typeof t.maxPriorityFeePerGas<"u"&&(e.maxPriorityFeePerGas=it(t.maxPriorityFeePerGas)),typeof t.nonce<"u"&&(e.nonce=it(t.nonce)),typeof t.to<"u"&&(e.to=t.to),typeof t.type<"u"&&(e.type=kY[t.type]),typeof t.value<"u"&&(e.value=it(t.value)),e}function UY(t){return t.map(e=>({address:e.address,r:e.r?it(BigInt(e.r)):e.r,s:e.s?it(BigInt(e.s)):e.s,chainId:it(e.chainId),nonce:it(e.nonce),...typeof e.yParity<"u"?{yParity:it(e.yParity)}:{},...typeof e.v<"u"&&typeof e.yParity>"u"?{v:it(e.v)}:{}}))}function p4(t){if(!(!t||t.length===0))return t.reduce((e,{slot:n,value:r})=>{if(n.length!==66)throw new a4({size:n.length,targetSize:66,type:"hex"});if(r.length!==66)throw new a4({size:r.length,targetSize:66,type:"hex"});return e[n]=r,e},{})}function BY(t){const{balance:e,nonce:n,state:r,stateDiff:i,code:s}=t,c={};if(s!==void 0&&(c.code=s),e!==void 0&&(c.balance=it(e)),n!==void 0&&(c.nonce=it(n)),r!==void 0&&(c.state=p4(r)),i!==void 0){if(c.state)throw new hY;c.stateDiff=p4(i)}return c}function n9(t){if(!t)return;const e={};for(const{address:n,...r}of t){if(!Hs(n,{strict:!1}))throw new su({address:n});if(e[n])throw new fY({address:n});e[n]=BY(r)}return e}const LY=2n**256n-1n;function Ym(t){const{account:e,gasPrice:n,maxFeePerGas:r,maxPriorityFeePerGas:i,to:s}=t,c=e?Qs(e):void 0;if(c&&!Hs(c.address))throw new su({address:c.address});if(s&&!Hs(s))throw new su({address:s});if(typeof n<"u"&&(typeof r<"u"||typeof i<"u"))throw new gY;if(r&&r>LY)throw new nm({maxFeePerGas:r});if(i&&r&&i>r)throw new rm({maxFeePerGas:r,maxPriorityFeePerGas:i})}class $Y extends fe{constructor(){super("`baseFeeMultiplier` must be greater than 1.",{name:"BaseFeeScalarError"})}}class x2 extends fe{constructor(){super("Chain does not support EIP-1559 fees.",{name:"Eip1559FeesNotSupportedError"})}}class FY extends fe{constructor({maxPriorityFeePerGas:e}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${ti(e)} gwei).`,{name:"MaxFeePerGasTooLowError"})}}class r9 extends fe{constructor({blockHash:e,blockNumber:n}){let r="Block";e&&(r=`Block at hash "${e}"`),n&&(r=`Block at number "${n}"`),super(`${r} could not be found.`,{name:"BlockNotFoundError"})}}const i9={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function s9(t){const e={...t,blockHash:t.blockHash?t.blockHash:null,blockNumber:t.blockNumber?BigInt(t.blockNumber):null,chainId:t.chainId?iu(t.chainId):void 0,gas:t.gas?BigInt(t.gas):void 0,gasPrice:t.gasPrice?BigInt(t.gasPrice):void 0,maxFeePerBlobGas:t.maxFeePerBlobGas?BigInt(t.maxFeePerBlobGas):void 0,maxFeePerGas:t.maxFeePerGas?BigInt(t.maxFeePerGas):void 0,maxPriorityFeePerGas:t.maxPriorityFeePerGas?BigInt(t.maxPriorityFeePerGas):void 0,nonce:t.nonce?iu(t.nonce):void 0,to:t.to?t.to:null,transactionIndex:t.transactionIndex?Number(t.transactionIndex):null,type:t.type?i9[t.type]:void 0,typeHex:t.type?t.type:void 0,value:t.value?BigInt(t.value):void 0,v:t.v?BigInt(t.v):void 0};return t.authorizationList&&(e.authorizationList=jY(t.authorizationList)),e.yParity=(()=>{if(t.yParity)return Number(t.yParity);if(typeof e.v=="bigint"){if(e.v===0n||e.v===27n)return 0;if(e.v===1n||e.v===28n)return 1;if(e.v>=35n)return e.v%2n===0n?1:0}})(),e.type==="legacy"&&(delete e.accessList,delete e.maxFeePerBlobGas,delete e.maxFeePerGas,delete e.maxPriorityFeePerGas,delete e.yParity),e.type==="eip2930"&&(delete e.maxFeePerBlobGas,delete e.maxFeePerGas,delete e.maxPriorityFeePerGas),e.type==="eip1559"&&delete e.maxFeePerBlobGas,e}function jY(t){return t.map(e=>({address:e.address,chainId:Number(e.chainId),nonce:Number(e.nonce),r:e.r,s:e.s,yParity:Number(e.yParity)}))}function zY(t){const e=(t.transactions??[]).map(n=>typeof n=="string"?n:s9(n));return{...t,baseFeePerGas:t.baseFeePerGas?BigInt(t.baseFeePerGas):null,blobGasUsed:t.blobGasUsed?BigInt(t.blobGasUsed):void 0,difficulty:t.difficulty?BigInt(t.difficulty):void 0,excessBlobGas:t.excessBlobGas?BigInt(t.excessBlobGas):void 0,gasLimit:t.gasLimit?BigInt(t.gasLimit):void 0,gasUsed:t.gasUsed?BigInt(t.gasUsed):void 0,hash:t.hash?t.hash:null,logsBloom:t.logsBloom?t.logsBloom:null,nonce:t.nonce?t.nonce:null,number:t.number?BigInt(t.number):null,size:t.size?BigInt(t.size):void 0,timestamp:t.timestamp?BigInt(t.timestamp):void 0,transactions:e,totalDifficulty:t.totalDifficulty?BigInt(t.totalDifficulty):null}}async function Bh(t,{blockHash:e,blockNumber:n,blockTag:r,includeTransactions:i}={}){var p,g,m;const s=r??"latest",c=i??!1,u=n!==void 0?it(n):void 0;let f=null;if(e?f=await t.request({method:"eth_getBlockByHash",params:[e,c]},{dedupe:!0}):f=await t.request({method:"eth_getBlockByNumber",params:[u||s,c]},{dedupe:!!u}),!f)throw new r9({blockHash:e,blockNumber:n});return(((m=(g=(p=t.chain)==null?void 0:p.formatters)==null?void 0:g.block)==null?void 0:m.format)||zY)(f)}async function a9(t){const e=await t.request({method:"eth_gasPrice"});return BigInt(e)}async function qY(t,e){var s,c;const{block:n,chain:r=t.chain,request:i}=e||{};try{const u=((s=r==null?void 0:r.fees)==null?void 0:s.maxPriorityFeePerGas)??((c=r==null?void 0:r.fees)==null?void 0:c.defaultPriorityFee);if(typeof u=="function"){const d=n||await Yt(t,Bh,"getBlock")({}),p=await u({block:d,client:t,request:i});if(p===null)throw new Error;return p}if(typeof u<"u")return u;const f=await t.request({method:"eth_maxPriorityFeePerGas"});return sd(f)}catch{const[u,f]=await Promise.all([n?Promise.resolve(n):Yt(t,Bh,"getBlock")({}),Yt(t,a9,"getGasPrice")({})]);if(typeof u.baseFeePerGas!="bigint")throw new x2;const d=f-u.baseFeePerGas;return d<0n?0n:d}}async function g4(t,e){var m,y;const{block:n,chain:r=t.chain,request:i,type:s="eip1559"}=e||{},c=await(async()=>{var A,E;return typeof((A=r==null?void 0:r.fees)==null?void 0:A.baseFeeMultiplier)=="function"?r.fees.baseFeeMultiplier({block:n,client:t,request:i}):((E=r==null?void 0:r.fees)==null?void 0:E.baseFeeMultiplier)??1.2})();if(c<1)throw new $Y;const f=10**(((m=c.toString().split(".")[1])==null?void 0:m.length)??0),d=A=>A*BigInt(Math.ceil(c*f))/BigInt(f),p=n||await Yt(t,Bh,"getBlock")({});if(typeof((y=r==null?void 0:r.fees)==null?void 0:y.estimateFeesPerGas)=="function"){const A=await r.fees.estimateFeesPerGas({block:n,client:t,multiply:d,request:i,type:s});if(A!==null)return A}if(s==="eip1559"){if(typeof p.baseFeePerGas!="bigint")throw new x2;const A=typeof(i==null?void 0:i.maxPriorityFeePerGas)=="bigint"?i.maxPriorityFeePerGas:await qY(t,{block:p,chain:r,request:i}),E=d(p.baseFeePerGas);return{maxFeePerGas:(i==null?void 0:i.maxFeePerGas)??E+A,maxPriorityFeePerGas:A}}return{gasPrice:(i==null?void 0:i.gasPrice)??d(await Yt(t,a9,"getGasPrice")({}))}}async function HY(t,{address:e,blockTag:n="latest",blockNumber:r}){const i=await t.request({method:"eth_getTransactionCount",params:[e,r?it(r):n]},{dedupe:!!r});return iu(i)}function o9(t){const{kzg:e}=t,n=t.to??(typeof t.blobs[0]=="string"?"hex":"bytes"),r=typeof t.blobs[0]=="string"?t.blobs.map(s=>qs(s)):t.blobs,i=[];for(const s of r)i.push(Uint8Array.from(e.blobToKzgCommitment(s)));return n==="bytes"?i:i.map(s=>wr(s))}function c9(t){const{kzg:e}=t,n=t.to??(typeof t.blobs[0]=="string"?"hex":"bytes"),r=typeof t.blobs[0]=="string"?t.blobs.map(c=>qs(c)):t.blobs,i=typeof t.commitments[0]=="string"?t.commitments.map(c=>qs(c)):t.commitments,s=[];for(let c=0;cwr(c))}function GY(t,e){return pL(Ua(t,{strict:!1})?Tp(t):t)}function VY(t){const{commitment:e,version:n=1}=t,r=t.to??(typeof e=="string"?"hex":"bytes"),i=GY(e);return i.set([n],0),r==="bytes"?i:wr(i)}function KY(t){const{commitments:e,version:n}=t,r=t.to,i=[];for(const s of e)i.push(VY({commitment:s,to:r,version:n}));return i}const m4=6,u9=32,N2=4096,l9=u9*N2,b4=l9*m4-1-1*N2*m4;class WY extends fe{constructor({maxSize:e,size:n}){super("Blob size is too large.",{metaMessages:[`Max: ${e} bytes`,`Given: ${n} bytes`],name:"BlobSizeTooLargeError"})}}class QY extends fe{constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}}function YY(t){const e=typeof t.data=="string"?qs(t.data):t.data,n=lr(e);if(!n)throw new QY;if(n>b4)throw new WY({maxSize:b4,size:n});const r=[];let i=!0,s=0;for(;i;){const c=v2(new Uint8Array(l9));let u=0;for(;uwr(c.bytes))}function ZY(t){const{data:e,kzg:n,to:r}=t,i=t.blobs??YY({data:e}),s=t.commitments??o9({blobs:i,kzg:n,to:r}),c=t.proofs??c9({blobs:i,commitments:s,kzg:n,to:r}),u=[];for(let f=0;f"u"&&g)if(f){const O=await x();m.nonce=await f.consume({address:g.address,chainId:O,client:t})}else m.nonce=await Yt(t,HY,"getTransactionCount")({address:g.address,blockTag:"pending"});if((d.includes("blobVersionedHashes")||d.includes("sidecars"))&&r&&c){const O=o9({blobs:r,kzg:c});if(d.includes("blobVersionedHashes")){const I=KY({commitments:O,to:"hex"});m.blobVersionedHashes=I}if(d.includes("sidecars")){const I=c9({blobs:r,commitments:O,kzg:c}),M=ZY({blobs:r,commitments:O,proofs:I,to:"hex"});m.sidecars=M}}if(d.includes("chainId")&&(m.chainId=await x()),(d.includes("fees")||d.includes("type"))&&typeof p>"u")try{m.type=XY(m)}catch{let O=y4.get(t.uid);if(typeof O>"u"){const I=await A();O=typeof(I==null?void 0:I.baseFeePerGas)=="bigint",y4.set(t.uid,O)}m.type=O?"eip1559":"legacy"}if(d.includes("fees"))if(m.type!=="legacy"&&m.type!=="eip2930"){if(typeof m.maxFeePerGas>"u"||typeof m.maxPriorityFeePerGas>"u"){const O=await A(),{maxFeePerGas:I,maxPriorityFeePerGas:M}=await g4(t,{block:O,chain:i,request:m});if(typeof e.maxPriorityFeePerGas>"u"&&e.maxFeePerGas&&e.maxFeePerGas"u"){const O=await A(),{gasPrice:I}=await g4(t,{block:O,chain:i,request:m,type:"legacy"});m.gasPrice=I}}return d.includes("gas")&&typeof s>"u"&&(m.gas=await Yt(t,p9,"estimateGas")({...m,account:g&&{address:g.address,type:"json-rpc"}})),Ym(m),delete m.parameters,m}async function h9(t,{address:e,blockNumber:n,blockTag:r="latest"}){const i=n?it(n):void 0,s=await t.request({method:"eth_getBalance",params:[e,i||r]});return BigInt(s)}async function p9(t,e){var i,s,c;const{account:n=t.account}=e,r=n?Qs(n):void 0;try{let N=function(S){const{block:k,request:F,rpcStateOverride:P}=S;return t.request({method:"eth_estimateGas",params:P?[F,k??"latest",P]:k?[F,k]:[F]})};const{accessList:u,authorizationList:f,blobs:d,blobVersionedHashes:p,blockNumber:g,blockTag:m,data:y,gas:A,gasPrice:E,maxFeePerBlobGas:x,maxFeePerGas:O,maxPriorityFeePerGas:I,nonce:M,value:$,stateOverride:D,...R}=await I2(t,{...e,parameters:(r==null?void 0:r.type)==="local"?void 0:["blobVersionedHashes"]}),G=(g?it(g):void 0)||m,j=n9(D),V=await(async()=>{if(R.to)return R.to;if(f&&f.length>0)return await t9({authorization:f[0]}).catch(()=>{throw new fe("`to` is required. Could not infer from `authorizationList`")})})();Ym(e);const L=(c=(s=(i=t.chain)==null?void 0:i.formatters)==null?void 0:s.transactionRequest)==null?void 0:c.format,C=(L||T2)({...S2(R,{format:L}),from:r==null?void 0:r.address,accessList:u,authorizationList:f,blobs:d,blobVersionedHashes:p,data:y,gas:A,gasPrice:E,maxFeePerBlobGas:x,maxFeePerGas:O,maxPriorityFeePerGas:I,nonce:M,to:V,value:$});let T=BigInt(await N({block:G,request:C,rpcStateOverride:j}));if(f){const S=await h9(t,{address:C.from}),k=await Promise.all(f.map(async F=>{const{address:P}=F,w=await N({block:G,request:{authorizationList:void 0,data:y,from:r==null?void 0:r.address,to:P,value:it(S)},rpcStateOverride:j}).catch(()=>100000n);return 2n*BigInt(w)}));T+=k.reduce((F,P)=>F+P,0n)}return T}catch(u){throw MY(u,{...e,account:r,chain:t.chain})}}function JY(t,e){if(!Hs(t,{strict:!1}))throw new su({address:t});if(!Hs(e,{strict:!1}))throw new su({address:e});return t.toLowerCase()===e.toLowerCase()}const v4="/docs/contract/decodeEventLog";function eZ(t){const{abi:e,data:n,strict:r,topics:i}=t,s=r??!0,[c,...u]=i;if(!c)throw new mQ({docsPath:v4});const f=e.length===1?e[0]:e.find(E=>E.type==="event"&&c===h2(Go(E)));if(!(f&&"name"in f)||f.type!=="event")throw new PN(c,{docsPath:v4});const{name:d,inputs:p}=f,g=p==null?void 0:p.some(E=>!("name"in E&&E.name));let m=g?[]:{};const y=p.filter(E=>"indexed"in E&&E.indexed);for(let E=0;E!("indexed"in E&&E.indexed));if(A.length>0){if(n&&n!=="0x")try{const E=Wm(A,n);if(E)if(g)m=[...m,...E];else for(let x=0;x0?m:void 0}}function tZ({param:t,value:e}){return t.type==="string"||t.type==="bytes"||t.type==="tuple"||t.type.match(/^(.*)\[(\d+)?\]$/)?e:(Wm([t],e)||[])[0]}function nZ(t){const{abi:e,args:n,logs:r,strict:i=!0}=t,s=(()=>{if(t.eventName)return Array.isArray(t.eventName)?t.eventName:[t.eventName]})();return r.map(c=>{var u;try{const f=e.find(p=>p.type==="event"&&c.topics[0]===h2(p));if(!f)return null;const d=eZ({...c,abi:[f],strict:i});return s&&!s.includes(d.eventName)||!rZ({args:d.args,inputs:f.inputs,matchArgs:n})?null:{...d,...c}}catch(f){let d,p;if(f instanceof PN)return null;if(f instanceof Ww||f instanceof MN){if(i)return null;d=f.abiItem.name,p=(u=f.abiItem.inputs)==null?void 0:u.some(g=>!("name"in g&&g.name))}return{...c,args:p?[]:{},eventName:d}}}).filter(Boolean)}function rZ(t){const{args:e,inputs:n,matchArgs:r}=t;if(!r)return!0;if(!e)return!1;function i(s,c,u){try{return s.type==="address"?JY(c,u):s.type==="string"||s.type==="bytes"?Vo(Tp(c))===u:c===u}catch{return!1}}return Array.isArray(e)&&Array.isArray(r)?r.every((s,c)=>{if(s==null)return!0;const u=n[c];return u?(Array.isArray(s)?s:[s]).some(d=>i(u,d,e[c])):!1}):typeof e=="object"&&!Array.isArray(e)&&typeof r=="object"&&!Array.isArray(r)?Object.entries(r).every(([s,c])=>{if(c==null)return!0;const u=n.find(d=>d.name===s);return u?(Array.isArray(c)?c:[c]).some(d=>i(u,d,e[s])):!1}):!1}function g9(t,{args:e,eventName:n}={}){return{...t,blockHash:t.blockHash?t.blockHash:null,blockNumber:t.blockNumber?BigInt(t.blockNumber):null,logIndex:t.logIndex?Number(t.logIndex):null,transactionHash:t.transactionHash?t.transactionHash:null,transactionIndex:t.transactionIndex?Number(t.transactionIndex):null,...n?{args:e,eventName:n}:{}}}const R1="/docs/contract/decodeFunctionResult";function Np(t){const{abi:e,args:n,functionName:r,data:i}=t;let s=e[0];if(r){const u=y2({abi:e,args:n,name:r});if(!u)throw new Jg(r,{docsPath:R1});s=u}if(s.type!=="function")throw new Jg(void 0,{docsPath:R1});if(!s.outputs)throw new bQ(s.name,{docsPath:R1});const c=Wm(s.outputs,i);if(c&&c.length>1)return c;if(c&&c.length===1)return c[0]}const aE=[{inputs:[{components:[{name:"target",type:"address"},{name:"allowFailure",type:"bool"},{name:"callData",type:"bytes"}],name:"calls",type:"tuple[]"}],name:"aggregate3",outputs:[{components:[{name:"success",type:"bool"},{name:"returnData",type:"bytes"}],name:"returnData",type:"tuple[]"}],stateMutability:"view",type:"function"}],m9=[{inputs:[],name:"ResolverNotFound",type:"error"},{inputs:[],name:"ResolverWildcardNotSupported",type:"error"},{inputs:[],name:"ResolverNotContract",type:"error"},{inputs:[{name:"returnData",type:"bytes"}],name:"ResolverError",type:"error"},{inputs:[{components:[{name:"status",type:"uint16"},{name:"message",type:"string"}],name:"errors",type:"tuple[]"}],name:"HttpError",type:"error"}],b9=[...m9,{name:"resolve",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]},{name:"resolve",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"},{name:"gateways",type:"string[]"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}],iZ=[...m9,{name:"reverse",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolvedAddress"},{type:"address",name:"reverseResolver"},{type:"address",name:"resolver"}]},{name:"reverse",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"},{type:"string[]",name:"gateways"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolvedAddress"},{type:"address",name:"reverseResolver"},{type:"address",name:"resolver"}]}],w4=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],E4=[{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"}],outputs:[{name:"",type:"address"}]},{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"coinType",type:"uint256"}],outputs:[{name:"",type:"bytes"}]}],sZ="0x82ad56cb",aZ="0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe",oZ="0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe";class oE extends fe{constructor({blockNumber:e,chain:n,contract:r}){super(`Chain "${n.name}" does not support contract "${r.name}".`,{metaMessages:["This could be due to any of the following:",...e&&r.blockCreated&&r.blockCreated>e?[`- The contract "${r.name}" was not deployed until block ${r.blockCreated} (current block ${e}).`]:[`- The chain does not have the contract "${r.name}" configured.`]],name:"ChainDoesNotSupportContract"})}}class cZ extends fe{constructor({chain:e,currentChainId:n}){super(`The current chain of the wallet (id: ${n}) does not match the target chain for the transaction (id: ${e.id} – ${e.name}).`,{metaMessages:[`Current Chain ID: ${n}`,`Expected Chain ID: ${e.id} – ${e.name}`],name:"ChainMismatchError"})}}class uZ extends fe{constructor(){super(["No chain was provided to the request.","Please provide a chain with the `chain` argument on the Action, or by supplying a `chain` to WalletClient."].join(` +`),{name:"ChainNotFoundError"})}}class y9 extends fe{constructor(){super("No chain was provided to the Client.",{name:"ClientChainNotConfiguredError"})}}const D1="/docs/contract/encodeDeployData";function v9(t){const{abi:e,args:n,bytecode:r}=t;if(!n||n.length===0)return r;const i=e.find(c=>"type"in c&&c.type==="constructor");if(!i)throw new fQ({docsPath:D1});if(!("inputs"in i))throw new s4({docsPath:D1});if(!i.inputs||i.inputs.length===0)throw new s4({docsPath:D1});const s=HN(i.inputs,n);return Km([r,s])}function Ip({blockNumber:t,chain:e,contract:n}){var i;const r=(i=e==null?void 0:e.contracts)==null?void 0:i[n];if(!r)throw new oE({chain:e,contract:{name:n}});if(t&&r.blockCreated&&r.blockCreated>t)throw new oE({blockNumber:t,chain:e,contract:{name:n,blockCreated:r.blockCreated}});return r.address}function lZ(t,{docsPath:e,...n}){const r=(()=>{const i=C2(t,n);return i instanceof Qm?t:i})();return new wY(r,{docsPath:e,...n})}function w9(){let t=()=>{},e=()=>{};return{promise:new Promise((r,i)=>{t=r,e=i}),resolve:t,reject:e}}const P1=new Map;function E9({fn:t,id:e,shouldSplitBatch:n,wait:r=0,sort:i}){const s=async()=>{const p=f();c();const g=p.map(({args:m})=>m);g.length!==0&&t(g).then(m=>{i&&Array.isArray(m)&&m.sort(i);for(let y=0;y{for(let y=0;yP1.delete(e),u=()=>f().map(({args:p})=>p),f=()=>P1.get(e)||[],d=p=>P1.set(e,[...f(),p]);return{flush:c,async schedule(p){const{promise:g,resolve:m,reject:y}=w9();return(n==null?void 0:n([...u(),p]))&&s(),f().length>0?(d({args:p,resolve:m,reject:y}),g):(d({args:p,resolve:m,reject:y}),setTimeout(s,r),g)}}}async function A9(t,e){var L,v,C,N;const{account:n=t.account,batch:r=!!((L=t.batch)!=null&&L.multicall),blockNumber:i,blockTag:s="latest",accessList:c,blobs:u,code:f,data:d,factory:p,factoryData:g,gas:m,gasPrice:y,maxFeePerBlobGas:A,maxFeePerGas:E,maxPriorityFeePerGas:x,nonce:O,to:I,value:M,stateOverride:$,...D}=e,R=n?Qs(n):void 0;if(f&&(p||g))throw new fe("Cannot provide both `code` & `factory`/`factoryData` as parameters.");if(f&&I)throw new fe("Cannot provide both `code` & `to` as parameters.");const z=f&&d,G=p&&g&&I&&d,j=z||G,V=z?hZ({code:f,data:d}):G?pZ({data:d,factory:p,factoryData:g,to:I}):d;try{Ym(e);const S=(i?it(i):void 0)||s,k=n9($),F=(N=(C=(v=t.chain)==null?void 0:v.formatters)==null?void 0:C.transactionRequest)==null?void 0:N.format,w=(F||T2)({...S2(D,{format:F}),from:R==null?void 0:R.address,accessList:c,blobs:u,data:V,gas:m,gasPrice:y,maxFeePerBlobGas:A,maxFeePerGas:E,maxPriorityFeePerGas:x,nonce:O,to:j?void 0:I,value:M});if(r&&dZ({request:w})&&!k)try{return await fZ(t,{...w,blockNumber:i,blockTag:s})}catch(Z){if(!(Z instanceof y9)&&!(Z instanceof oE))throw Z}const B=await t.request({method:"eth_call",params:k?[w,S,k]:[w,S]});return B==="0x"?{data:void 0}:{data:B}}catch(T){const S=gZ(T),{offchainLookup:k,offchainLookupSignature:F}=await ei(async()=>{const{offchainLookup:P,offchainLookupSignature:w}=await import("./ccip-3DDqDkWC.js");return{offchainLookup:P,offchainLookupSignature:w}},[]);if(t.ccipRead!==!1&&(S==null?void 0:S.slice(0,10))===F&&I)return{data:await k(t,{data:S,to:I})};throw j&&(S==null?void 0:S.slice(0,10))==="0x101bb98d"?new AY({factory:p}):lZ(T,{...e,account:R,chain:t.chain})}}function dZ({request:t}){const{data:e,to:n,...r}=t;return!(!e||e.startsWith(sZ)||!n||Object.values(r).filter(i=>typeof i<"u").length>0)}async function fZ(t,e){var E;const{batchSize:n=1024,wait:r=0}=typeof((E=t.batch)==null?void 0:E.multicall)=="object"?t.batch.multicall:{},{blockNumber:i,blockTag:s="latest",data:c,multicallAddress:u,to:f}=e;let d=u;if(!d){if(!t.chain)throw new y9;d=Ip({blockNumber:i,chain:t.chain,contract:"multicall3"})}const g=(i?it(i):void 0)||s,{schedule:m}=E9({id:`${t.uid}.${g}`,wait:r,shouldSplitBatch(x){return x.reduce((I,{data:M})=>I+(M.length-2),0)>n*2},fn:async x=>{const O=x.map($=>({allowFailure:!0,callData:$.data,target:$.to})),I=Td({abi:aE,args:[O],functionName:"aggregate3"}),M=await t.request({method:"eth_call",params:[{data:I,to:d},g]});return Np({abi:aE,args:[O],functionName:"aggregate3",data:M||"0x"})}}),[{returnData:y,success:A}]=await m({data:c,to:f});if(!A)throw new A2({data:y});return y==="0x"?{data:void 0}:{data:y}}function hZ(t){const{code:e,data:n}=t;return v9({abi:jT(["constructor(bytes, bytes)"]),bytecode:aZ,args:[e,n]})}function pZ(t){const{data:e,factory:n,factoryData:r,to:i}=t;return v9({abi:jT(["constructor(address, bytes, address, bytes)"]),bytecode:oZ,args:[i,e,n,r]})}function gZ(t){var n;if(!(t instanceof fe))return;const e=t.walk();return typeof(e==null?void 0:e.data)=="object"?(n=e.data)==null?void 0:n.data:e.data}async function cu(t,e){const{abi:n,address:r,args:i,functionName:s,...c}=e,u=Td({abi:n,args:i,functionName:s});try{const{data:f}=await Yt(t,A9,"call")({...c,data:u,to:r});return Np({abi:n,args:i,functionName:s,data:f||"0x"})}catch(f){throw tm(f,{abi:n,address:r,args:i,docsPath:"/docs/contract/readContract",functionName:s})}}const M1=new Map,A4=new Map;let mZ=0;function im(t,e,n){const r=++mZ,i=()=>M1.get(t)||[],s=()=>{const p=i();M1.set(t,p.filter(g=>g.id!==r))},c=()=>{const p=i();if(!p.some(m=>m.id===r))return;const g=A4.get(t);p.length===1&&g&&g(),s()},u=i();if(M1.set(t,[...u,{id:r,fns:e}]),u&&u.length>0)return c;const f={};for(const p in e)f[p]=(...g)=>{var y,A;const m=i();if(m.length!==0)for(const E of m)(A=(y=E.fns)[p])==null||A.call(y,...g)};const d=n(f);return typeof d=="function"&&A4.set(t,d),c}async function sm(t){return new Promise(e=>setTimeout(e,t))}function _9(t,{emitOnBegin:e,initialWaitTime:n,interval:r}){let i=!0;const s=()=>i=!1;return(async()=>{let u;e&&(u=await t({unpoll:s}));const f=await(n==null?void 0:n(u))??r;await sm(f);const d=async()=>{i&&(await t({unpoll:s}),await sm(r),d())};d()})(),s}const bZ=new Map,yZ=new Map;function vZ(t){const e=(i,s)=>({clear:()=>s.delete(i),get:()=>s.get(i),set:c=>s.set(i,c)}),n=e(t,bZ),r=e(t,yZ);return{clear:()=>{n.clear(),r.clear()},promise:n,response:r}}async function wZ(t,{cacheKey:e,cacheTime:n=Number.POSITIVE_INFINITY}){const r=vZ(e),i=r.response.get();if(i&&n>0&&new Date().getTime()-i.created.getTime()`blockNumber.${t}`;async function AZ(t,{cacheTime:e=t.cacheTime}={}){const n=await wZ(()=>t.request({method:"eth_blockNumber"}),{cacheKey:EZ(t.uid),cacheTime:e});return BigInt(n)}async function _Z(t,{filter:e}){const n="strict"in e&&e.strict,r=await e.request({method:"eth_getFilterChanges",params:[e.id]});if(typeof r[0]=="string")return r;const i=r.map(s=>g9(s));return!("abi"in e)||!e.abi?i:nZ({abi:e.abi,logs:i,strict:n})}async function CZ(t,{filter:e}){return e.request({method:"eth_uninstallFilter",params:[e.id]})}class O2 extends fe{constructor({docsPath:e}={}){super(["Could not find an Account to execute with this Action.","Please provide an Account with the `account` argument on the Action, or by supplying an `account` to the Client."].join(` +`),{docsPath:e,docsSlug:"account",name:"AccountNotFoundError"})}}class k1 extends fe{constructor({docsPath:e,metaMessages:n,type:r}){super(`Account type "${r}" is not supported.`,{docsPath:e,metaMessages:n,name:"AccountTypeNotSupportedError"})}}function SZ({chain:t,currentChainId:e}){if(!t)throw new uZ;if(e!==t.id)throw new cZ({chain:t,currentChainId:e})}function TZ(t,{docsPath:e,...n}){const r=(()=>{const i=C2(t,n);return i instanceof Qm?t:i})();return new bY(r,{docsPath:e,...n})}async function xZ(t,{serializedTransaction:e}){return t.request({method:"eth_sendRawTransaction",params:[e]},{retryCount:0})}const U1=new Gm(128);async function C9(t,e){var O,I,M,$;const{account:n=t.account,chain:r=t.chain,accessList:i,authorizationList:s,blobs:c,data:u,gas:f,gasPrice:d,maxFeePerBlobGas:p,maxFeePerGas:g,maxPriorityFeePerGas:m,nonce:y,value:A,...E}=e;if(typeof n>"u")throw new O2({docsPath:"/docs/actions/wallet/sendTransaction"});const x=n?Qs(n):null;try{Ym(e);const D=await(async()=>{if(e.to)return e.to;if(e.to!==null&&s&&s.length>0)return await t9({authorization:s[0]}).catch(()=>{throw new fe("`to` is required. Could not infer from `authorizationList`.")})})();if((x==null?void 0:x.type)==="json-rpc"||x===null){let R;r!==null&&(R=await Yt(t,d9,"getChainId")({}),SZ({currentChainId:R,chain:r}));const z=(M=(I=(O=t.chain)==null?void 0:O.formatters)==null?void 0:I.transactionRequest)==null?void 0:M.format,j=(z||T2)({...S2(E,{format:z}),accessList:i,authorizationList:s,blobs:c,chainId:R,data:u,from:x==null?void 0:x.address,gas:f,gasPrice:d,maxFeePerBlobGas:p,maxFeePerGas:g,maxPriorityFeePerGas:m,nonce:y,to:D,value:A}),V=U1.get(t.uid),L=V?"wallet_sendTransaction":"eth_sendTransaction";try{return await t.request({method:L,params:[j]},{retryCount:0})}catch(v){if(V===!1)throw v;const C=v;if(C.name==="InvalidInputRpcError"||C.name==="InvalidParamsRpcError"||C.name==="MethodNotFoundRpcError"||C.name==="MethodNotSupportedRpcError")return await t.request({method:"wallet_sendTransaction",params:[j]},{retryCount:0}).then(N=>(U1.set(t.uid,!0),N)).catch(N=>{const T=N;throw T.name==="MethodNotFoundRpcError"||T.name==="MethodNotSupportedRpcError"?(U1.set(t.uid,!1),C):T});throw C}}if((x==null?void 0:x.type)==="local"){const R=await Yt(t,I2,"prepareTransactionRequest")({account:x,accessList:i,authorizationList:s,blobs:c,chain:r,data:u,gas:f,gasPrice:d,maxFeePerBlobGas:p,maxFeePerGas:g,maxPriorityFeePerGas:m,nonce:y,nonceManager:x.nonceManager,parameters:[...f9,"sidecars"],value:A,...E,to:D}),z=($=r==null?void 0:r.serializers)==null?void 0:$.transaction,G=await x.signTransaction(R,{serializer:z});return await Yt(t,xZ,"sendRawTransaction")({serializedTransaction:G})}throw(x==null?void 0:x.type)==="smart"?new k1({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"}):new k1({docsPath:"/docs/actions/wallet/sendTransaction",type:x==null?void 0:x.type})}catch(D){throw D instanceof k1?D:TZ(D,{...e,account:x,chain:e.chain||void 0})}}async function NZ(t,e){const{abi:n,account:r=t.account,address:i,args:s,dataSuffix:c,functionName:u,...f}=e;if(typeof r>"u")throw new O2({docsPath:"/docs/contract/writeContract"});const d=r?Qs(r):null,p=Td({abi:n,args:s,functionName:u});try{return await Yt(t,C9,"sendTransaction")({data:`${p}${c?c.replace("0x",""):""}`,to:i,account:d,...f})}catch(g){throw tm(g,{abi:n,address:i,args:s,docsPath:"/docs/contract/writeContract",functionName:u,sender:d==null?void 0:d.address})}}const cE=256;let hg=cE,pg;function S9(t=11){if(!pg||hg+t>cE*2){pg="",hg=0;for(let e=0;e{const I=O(x);for(const $ in A)delete I[$];const M={...x,...I};return Object.assign(M,{extend:E(M)})}}return Object.assign(A,{extend:E(A)})}const gg=new Gm(8192);function IZ(t,{enabled:e=!0,id:n}){if(!e||!n)return t();if(gg.get(n))return gg.get(n);const r=t().finally(()=>gg.delete(n));return gg.set(n,r),r}function am(t,{delay:e=100,retryCount:n=2,shouldRetry:r=()=>!0}={}){return new Promise((i,s)=>{const c=async({count:u=0}={})=>{const f=async({error:d})=>{const p=typeof e=="function"?e({count:u,error:d}):e;p&&await sm(p),c({count:u+1})};try{const d=await t();i(d)}catch(d){if(u{var g;const{dedupe:i=!1,methods:s,retryDelay:c=150,retryCount:u=3,uid:f}={...e,...r},{method:d}=n;if((g=s==null?void 0:s.exclude)!=null&&g.includes(d))throw new Pc(new Error("method not supported"),{method:d});if(s!=null&&s.include&&!s.include.includes(d))throw new Pc(new Error("method not supported"),{method:d});const p=i?Hm(`${f}.${ji(n)}`):void 0;return IZ(()=>am(async()=>{try{return await t(n)}catch(m){const y=m;switch(y.code){case Th.code:throw new Th(y);case xh.code:throw new xh(y);case Nh.code:throw new Nh(y,{method:n.method});case Ih.code:throw new Ih(y);case ou.code:throw new ou(y);case Oh.code:throw new Oh(y);case Rh.code:throw new Rh(y);case jo.code:throw new jo(y);case ad.code:throw new ad(y);case Pc.code:throw new Pc(y,{method:n.method});case od.code:throw new od(y);case Dh.code:throw new Dh(y);case Xn.code:throw new Xn(y);case Ph.code:throw new Ph(y);case Mh.code:throw new Mh(y);case kh.code:throw new kh(y);case Uh.code:throw new Uh(y);case Gs.code:throw new Gs(y);case 5e3:throw new Xn(y);default:throw m instanceof fe?m:new CY(y)}}},{delay:({count:m,error:y})=>{var A;if(y&&y instanceof hh){const E=(A=y==null?void 0:y.headers)==null?void 0:A.get("Retry-After");if(E!=null&&E.match(/\d/))return Number.parseInt(E)*1e3}return~~(1<RZ(m)}),{enabled:i,id:p})}}function RZ(t){return"code"in t&&typeof t.code=="number"?t.code===-1||t.code===od.code||t.code===ou.code:t instanceof hh&&t.status?t.status===403||t.status===408||t.status===413||t.status===429||t.status===500||t.status===502||t.status===503||t.status===504:!0}function R2({key:t,methods:e,name:n,request:r,retryCount:i=3,retryDelay:s=150,timeout:c,type:u},f){const d=S9();return{config:{key:t,methods:e,name:n,request:r,retryCount:i,retryDelay:s,timeout:c,type:u},request:OZ(r,{methods:e,retryCount:i,retryDelay:s,uid:d}),value:f}}function DZ(t,e={}){const{key:n="custom",methods:r,name:i="Custom Provider",retryDelay:s}=e;return({retryCount:c})=>R2({key:n,methods:r,name:i,request:t.request.bind(t),retryCount:e.retryCount??c,retryDelay:s,type:"custom"})}function PZ(t,e={}){const{key:n="fallback",name:r="Fallback",rank:i=!1,shouldThrow:s=MZ,retryCount:c,retryDelay:u}=e;return({chain:f,pollingInterval:d=4e3,timeout:p,...g})=>{let m=t,y=()=>{};const A=R2({key:n,name:r,async request({method:E,params:x}){let O;const I=async(M=0)=>{const $=m[M]({...g,chain:f,retryCount:0,timeout:p});try{const D=await $.request({method:E,params:x});return y({method:E,params:x,response:D,transport:$,status:"success"}),D}catch(D){if(y({error:D,method:E,params:x,transport:$,status:"error"}),s(D)||M===m.length-1||(O??(O=m.slice(M+1).some(R=>{const{include:z,exclude:G}=R({chain:f}).config.methods||{};return z?z.includes(E):G?!G.includes(E):!0})),!O))throw D;return I(M+1)}};return I()},retryCount:c,retryDelay:u,type:"fallback"},{onResponse:E=>y=E,transports:m.map(E=>E({chain:f,retryCount:0}))});if(i){const E=typeof i=="object"?i:{};kZ({chain:f,interval:E.interval??d,onTransports:x=>m=x,ping:E.ping,sampleCount:E.sampleCount,timeout:E.timeout,transports:m,weights:E.weights})}return A}}function MZ(t){return!!("code"in t&&typeof t.code=="number"&&(t.code===ad.code||t.code===Xn.code||Mc.nodeMessage.test(t.message)||t.code===5e3))}function kZ({chain:t,interval:e=4e3,onTransports:n,ping:r,sampleCount:i=10,timeout:s=1e3,transports:c,weights:u={}}){const{stability:f=.7,latency:d=.3}=u,p=[],g=async()=>{const m=await Promise.all(c.map(async E=>{const x=E({chain:t,retryCount:0,timeout:s}),O=Date.now();let I,M;try{await(r?r({transport:x}):x.request({method:"net_listening"})),M=1}catch{M=0}finally{I=Date.now()}return{latency:I-O,success:M}}));p.push(m),p.length>i&&p.shift();const y=Math.max(...p.map(E=>Math.max(...E.map(({latency:x})=>x)))),A=c.map((E,x)=>{const O=p.map(R=>R[x].latency),M=1-O.reduce((R,z)=>R+z,0)/O.length/y,$=p.map(R=>R[x].success),D=$.reduce((R,z)=>R+z,0)/$.length;return D===0?[0,x]:[d*M+f*D,x]}).sort((E,x)=>x[0]-E[0]);n(A.map(([,E])=>c[E])),await sm(e),g()};g()}class UZ extends fe{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro",name:"UrlRequiredError"})}}function x9(t,{errorInstance:e=new Error("timed out"),timeout:n,signal:r}){return new Promise((i,s)=>{(async()=>{let c;try{const u=new AbortController;n>0&&(c=setTimeout(()=>{r?u.abort():s(e)},n)),i(await t({signal:(u==null?void 0:u.signal)||null}))}catch(u){(u==null?void 0:u.name)==="AbortError"&&s(e),s(u)}finally{clearTimeout(c)}})()})}function BZ(){return{current:0,take(){return this.current++},reset(){this.current=0}}}const _4=BZ();function LZ(t,e={}){return{async request(n){var g;const{body:r,onRequest:i=e.onRequest,onResponse:s=e.onResponse,timeout:c=e.timeout??1e4}=n,u={...e.fetchOptions??{},...n.fetchOptions??{}},{headers:f,method:d,signal:p}=u;try{const m=await x9(async({signal:A})=>{const E={...u,body:Array.isArray(r)?ji(r.map(M=>({jsonrpc:"2.0",id:M.id??_4.take(),...M}))):ji({jsonrpc:"2.0",id:r.id??_4.take(),...r}),headers:{"Content-Type":"application/json",...f},method:d||"POST",signal:p||(c>0?A:null)},x=new Request(t,E),O=await(i==null?void 0:i(x,E))??{...E,url:t};return await fetch(O.url??t,O)},{errorInstance:new f4({body:r,url:t}),timeout:c,signal:!0});s&&await s(m);let y;if((g=m.headers.get("Content-Type"))!=null&&g.startsWith("application/json"))y=await m.json();else{y=await m.text();try{y=JSON.parse(y||"{}")}catch(A){if(m.ok)throw A;y={error:y}}}if(!m.ok)throw new hh({body:r,details:ji(y.error)||m.statusText,headers:m.headers,status:m.status,url:t});return y}catch(m){throw m instanceof hh||m instanceof f4?m:new hh({body:r,cause:m,url:t})}}}}function B1(t,e={}){const{batch:n,fetchOptions:r,key:i="http",methods:s,name:c="HTTP JSON-RPC",onFetchRequest:u,onFetchResponse:f,retryDelay:d,raw:p}=e;return({chain:g,retryCount:m,timeout:y})=>{const{batchSize:A=1e3,wait:E=0}=typeof n=="object"?n:{},x=e.retryCount??m,O=y??e.timeout??1e4,I=t||(g==null?void 0:g.rpcUrls.default.http[0]);if(!I)throw new UZ;const M=LZ(I,{fetchOptions:r,onRequest:u,onResponse:f,timeout:O});return R2({key:i,methods:s,name:c,async request({method:$,params:D}){const R={method:$,params:D},{schedule:z}=E9({id:I,wait:E,shouldSplitBatch(L){return L.length>A},fn:L=>M.request({body:L}),sort:(L,v)=>L.id-v.id}),G=async L=>n?z(L):[await M.request({body:L})],[{error:j,result:V}]=await G(R);if(p)return{error:j,result:V};if(j)throw new _2({body:R,error:j,url:I});return V},retryCount:x,retryDelay:d,timeout:O,type:"http"},{fetchOptions:r,url:I})}}function D2(t,e){var r,i,s,c,u,f;if(!(t instanceof fe))return!1;const n=t.walk(d=>d instanceof Zw);return n instanceof Zw?!!(((r=n.data)==null?void 0:r.errorName)==="ResolverNotFound"||((i=n.data)==null?void 0:i.errorName)==="ResolverWildcardNotSupported"||((s=n.data)==null?void 0:s.errorName)==="ResolverNotContract"||((c=n.data)==null?void 0:c.errorName)==="ResolverError"||((u=n.data)==null?void 0:u.errorName)==="HttpError"||(f=n.reason)!=null&&f.includes("Wildcard on non-extended resolvers is not supported")||e==="reverse"&&n.reason===VN[50]):!1}function N9(t){if(t.length!==66||t.indexOf("[")!==0||t.indexOf("]")!==65)return null;const e=`0x${t.slice(1,65)}`;return Ua(e)?e:null}function Dg(t){let e=new Uint8Array(32).fill(0);if(!t)return wr(e);const n=t.split(".");for(let r=n.length-1;r>=0;r-=1){const i=N9(n[r]),s=i?Tp(i):Vo(Kc(n[r]),"bytes");e=Vo(au([e,s]),"bytes")}return wr(e)}function $Z(t){return`[${t.slice(2)}]`}function FZ(t){const e=new Uint8Array(32).fill(0);return t?N9(t)||Vo(Kc(t)):wr(e)}function P2(t){const e=t.replace(/^\.|\.$/gm,"");if(e.length===0)return new Uint8Array(1);const n=new Uint8Array(Kc(e).byteLength+2);let r=0;const i=e.split(".");for(let s=0;s255&&(c=Kc($Z(FZ(i[s])))),n[r]=c.length,n.set(c,r+1),r+=c.length+1}return n.byteLength!==r+1?n.slice(0,r+1):n}async function jZ(t,{blockNumber:e,blockTag:n,coinType:r,name:i,gatewayUrls:s,strict:c,universalResolverAddress:u}){let f=u;if(!f){if(!t.chain)throw new Error("client chain not configured. universalResolverAddress is required.");f=Ip({blockNumber:e,chain:t.chain,contract:"ensUniversalResolver"})}try{const d=Td({abi:E4,functionName:"addr",...r!=null?{args:[Dg(i),BigInt(r)]}:{args:[Dg(i)]}}),p={address:f,abi:b9,functionName:"resolve",args:[Ba(P2(i)),d],blockNumber:e,blockTag:n},g=Yt(t,cu,"readContract"),m=s?await g({...p,args:[...p.args,s]}):await g(p);if(m[0]==="0x")return null;const y=Np({abi:E4,args:r!=null?[Dg(i),BigInt(r)]:void 0,functionName:"addr",data:m[0]});return y==="0x"||Sd(y)==="0x00"?null:y}catch(d){if(c)throw d;if(D2(d,"resolve"))return null;throw d}}class zZ extends fe{constructor({data:e}){super("Unable to extract image from metadata. The metadata may be malformed or invalid.",{metaMessages:["- Metadata must be a JSON object with at least an `image`, `image_url` or `image_data` property.","",`Provided data: ${JSON.stringify(e)}`],name:"EnsAvatarInvalidMetadataError"})}}class Qf extends fe{constructor({reason:e}){super(`ENS NFT avatar URI is invalid. ${e}`,{name:"EnsAvatarInvalidNftUriError"})}}class M2 extends fe{constructor({uri:e}){super(`Unable to resolve ENS avatar URI "${e}". The URI may be malformed, invalid, or does not respond with a valid image.`,{name:"EnsAvatarUriResolutionError"})}}class qZ extends fe{constructor({namespace:e}){super(`ENS NFT avatar namespace "${e}" is not supported. Must be "erc721" or "erc1155".`,{name:"EnsAvatarUnsupportedNamespaceError"})}}const HZ=/(?https?:\/\/[^\/]*|ipfs:\/|ipns:\/|ar:\/)?(?\/)?(?ipfs\/|ipns\/)?(?[\w\-.]+)(?\/.*)?/,GZ=/^(Qm[1-9A-HJ-NP-Za-km-z]{44,}|b[A-Za-z2-7]{58,}|B[A-Z2-7]{58,}|z[1-9A-HJ-NP-Za-km-z]{48,}|F[0-9A-F]{50,})(\/(?[\w\-.]+))?(?\/.*)?$/,VZ=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,KZ=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;async function WZ(t){try{const e=await fetch(t,{method:"HEAD"});if(e.status===200){const n=e.headers.get("content-type");return n==null?void 0:n.startsWith("image/")}return!1}catch(e){return typeof e=="object"&&typeof e.response<"u"||!globalThis.hasOwnProperty("Image")?!1:new Promise(n=>{const r=new Image;r.onload=()=>{n(!0)},r.onerror=()=>{n(!1)},r.src=t})}}function C4(t,e){return t?t.endsWith("/")?t.slice(0,-1):t:e}function I9({uri:t,gatewayUrls:e}){const n=VZ.test(t);if(n)return{uri:t,isOnChain:!0,isEncoded:n};const r=C4(e==null?void 0:e.ipfs,"https://ipfs.io"),i=C4(e==null?void 0:e.arweave,"https://arweave.net"),s=t.match(HZ),{protocol:c,subpath:u,target:f,subtarget:d=""}=(s==null?void 0:s.groups)||{},p=c==="ipns:/"||u==="ipns/",g=c==="ipfs:/"||u==="ipfs/"||GZ.test(t);if(t.startsWith("http")&&!p&&!g){let y=t;return e!=null&&e.arweave&&(y=t.replace(/https:\/\/arweave.net/g,e==null?void 0:e.arweave)),{uri:y,isOnChain:!1,isEncoded:!1}}if((p||g)&&f)return{uri:`${r}/${p?"ipns":"ipfs"}/${f}${d}`,isOnChain:!1,isEncoded:!1};if(c==="ar:/"&&f)return{uri:`${i}/${f}${d||""}`,isOnChain:!1,isEncoded:!1};let m=t.replace(KZ,"");if(m.startsWith("i.json());return await k2({gatewayUrls:t,uri:O9(n)})}catch{throw new M2({uri:e})}}async function k2({gatewayUrls:t,uri:e}){const{uri:n,isOnChain:r}=I9({uri:e,gatewayUrls:t});if(r||await WZ(n))return n;throw new M2({uri:e})}function YZ(t){let e=t;e.startsWith("did:nft:")&&(e=e.replace("did:nft:","").replace(/_/g,"/"));const[n,r,i]=e.split("/"),[s,c]=n.split(":"),[u,f]=r.split(":");if(!s||s.toLowerCase()!=="eip155")throw new Qf({reason:"Only EIP-155 supported"});if(!c)throw new Qf({reason:"Chain ID not found"});if(!f)throw new Qf({reason:"Contract address not found"});if(!i)throw new Qf({reason:"Token ID not found"});if(!u)throw new Qf({reason:"ERC namespace not found"});return{chainID:Number.parseInt(c),namespace:u.toLowerCase(),contractAddress:f,tokenID:i}}async function ZZ(t,{nft:e}){if(e.namespace==="erc721")return cu(t,{address:e.contractAddress,abi:[{name:"tokenURI",type:"function",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"tokenURI",args:[BigInt(e.tokenID)]});if(e.namespace==="erc1155")return cu(t,{address:e.contractAddress,abi:[{name:"uri",type:"function",stateMutability:"view",inputs:[{name:"_id",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"uri",args:[BigInt(e.tokenID)]});throw new qZ({namespace:e.namespace})}async function XZ(t,{gatewayUrls:e,record:n}){return/eip155:/i.test(n)?JZ(t,{gatewayUrls:e,record:n}):k2({uri:n,gatewayUrls:e})}async function JZ(t,{gatewayUrls:e,record:n}){const r=YZ(n),i=await ZZ(t,{nft:r}),{uri:s,isOnChain:c,isEncoded:u}=I9({uri:i,gatewayUrls:e});if(c&&(s.includes("data:application/json;base64,")||s.startsWith("{"))){const d=u?atob(s.replace("data:application/json;base64,","")):s,p=JSON.parse(d);return k2({uri:O9(p),gatewayUrls:e})}let f=r.tokenID;return r.namespace==="erc1155"&&(f=f.replace("0x","").padStart(64,"0")),QZ({gatewayUrls:e,uri:s.replace(/(?:0x)?{id}/,f)})}async function eX(t,{blockNumber:e,blockTag:n,name:r,key:i,gatewayUrls:s,strict:c,universalResolverAddress:u}){let f=u;if(!f){if(!t.chain)throw new Error("client chain not configured. universalResolverAddress is required.");f=Ip({blockNumber:e,chain:t.chain,contract:"ensUniversalResolver"})}try{const d={address:f,abi:b9,functionName:"resolve",args:[Ba(P2(r)),Td({abi:w4,functionName:"text",args:[Dg(r),i]})],blockNumber:e,blockTag:n},p=Yt(t,cu,"readContract"),g=s?await p({...d,args:[...d.args,s]}):await p(d);if(g[0]==="0x")return null;const m=Np({abi:w4,functionName:"text",data:g[0]});return m===""?null:m}catch(d){if(c)throw d;if(D2(d,"resolve"))return null;throw d}}async function tX(t,{blockNumber:e,blockTag:n,assetGatewayUrls:r,name:i,gatewayUrls:s,strict:c,universalResolverAddress:u}){const f=await Yt(t,eX,"getEnsText")({blockNumber:e,blockTag:n,key:"avatar",name:i,universalResolverAddress:u,gatewayUrls:s,strict:c});if(!f)return null;try{return await XZ(t,{record:f,gatewayUrls:r})}catch{return null}}async function nX(t,{address:e,blockNumber:n,blockTag:r,gatewayUrls:i,strict:s,universalResolverAddress:c}){let u=c;if(!u){if(!t.chain)throw new Error("client chain not configured. universalResolverAddress is required.");u=Ip({blockNumber:n,chain:t.chain,contract:"ensUniversalResolver"})}const f=`${e.toLowerCase().substring(2)}.addr.reverse`;try{const d={address:u,abi:iZ,functionName:"reverse",args:[Ba(P2(f))],blockNumber:n,blockTag:r},p=Yt(t,cu,"readContract"),[g,m]=i?await p({...d,args:[...d.args,i]}):await p(d);return e.toLowerCase()!==m.toLowerCase()?null:g}catch(d){if(s)throw d;if(D2(d,"reverse"))return null;throw d}}async function rX(t){const e=KQ(t,{method:"eth_newPendingTransactionFilter"}),n=await t.request({method:"eth_newPendingTransactionFilter"});return{id:n,request:e(n),type:"transaction"}}function U2(t){return{formatters:void 0,fees:void 0,serializers:void 0,...t}}const iX={"0x0":"reverted","0x1":"success"};function sX(t){const e={...t,blockNumber:t.blockNumber?BigInt(t.blockNumber):null,contractAddress:t.contractAddress?t.contractAddress:null,cumulativeGasUsed:t.cumulativeGasUsed?BigInt(t.cumulativeGasUsed):null,effectiveGasPrice:t.effectiveGasPrice?BigInt(t.effectiveGasPrice):null,gasUsed:t.gasUsed?BigInt(t.gasUsed):null,logs:t.logs?t.logs.map(n=>g9(n)):null,to:t.to?t.to:null,transactionIndex:t.transactionIndex?iu(t.transactionIndex):null,status:t.status?iX[t.status]:null,type:t.type?i9[t.type]||t.type:null};return t.blobGasPrice&&(e.blobGasPrice=BigInt(t.blobGasPrice)),t.blobGasUsed&&(e.blobGasUsed=BigInt(t.blobGasUsed)),e}class aX extends fe{constructor({value:e}){super(`Number \`${e}\` is not a valid decimal number.`,{name:"InvalidDecimalNumberError"})}}function R9(t,e){if(!/^(-?)([0-9]*)\.?([0-9]*)$/.test(t))throw new aX({value:t});let[n,r="0"]=t.split(".");const i=n.startsWith("-");if(i&&(n=n.slice(1)),r=r.replace(/(0+)$/,""),e===0)Math.round(+`.${r}`)===1&&(n=`${BigInt(n)+1n}`),r="";else if(r.length>e){const[s,c,u]=[r.slice(0,e-1),r.slice(e-1,e),r.slice(e)],f=Math.round(+`${c}.${u}`);f>9?r=`${BigInt(s)+BigInt(1)}0`.padStart(s.length+1,"0"):r=`${s}${f}`,r.length>e&&(r=r.slice(1),n=`${BigInt(n)+1n}`),r=r.slice(0,e)}else r=r.padEnd(e,"0");return BigInt(`${i?"-":""}${n}${r}`)}function oX(t,e="wei"){return R9(t,QN[e])}async function D9(t,{blockHash:e,blockNumber:n,blockTag:r,hash:i,index:s}){var p,g,m;const c=r||"latest",u=n!==void 0?it(n):void 0;let f=null;if(i?f=await t.request({method:"eth_getTransactionByHash",params:[i]},{dedupe:!0}):e?f=await t.request({method:"eth_getTransactionByBlockHashAndIndex",params:[e,it(s)]},{dedupe:!0}):f=await t.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[u||c,it(s)]},{dedupe:!!u}),!f)throw new YN({blockHash:e,blockNumber:n,blockTag:c,hash:i,index:s});return(((m=(g=(p=t.chain)==null?void 0:p.formatters)==null?void 0:g.transaction)==null?void 0:m.format)||s9)(f)}async function S4(t,{hash:e}){var i,s,c;const n=await t.request({method:"eth_getTransactionReceipt",params:[e]},{dedupe:!0});if(!n)throw new ZN({hash:e});return(((c=(s=(i=t.chain)==null?void 0:i.formatters)==null?void 0:s.transactionReceipt)==null?void 0:c.format)||sX)(n)}async function cX(t,e){var x;const{allowFailure:n=!0,batchSize:r,blockNumber:i,blockTag:s,multicallAddress:c,stateOverride:u}=e,f=e.contracts,d=r??(typeof((x=t.batch)==null?void 0:x.multicall)=="object"&&t.batch.multicall.batchSize||1024);let p=c;if(!p){if(!t.chain)throw new Error("client chain not configured. multicallAddress is required.");p=Ip({blockNumber:i,chain:t.chain,contract:"multicall3"})}const g=[[]];let m=0,y=0;for(let O=0;O0&&y>d&&g[m].length>0&&(m++,y=(R.length-2)/2,g[m]=[]),g[m]=[...g[m],{allowFailure:!0,callData:R,target:M}]}catch(R){const z=tm(R,{abi:I,address:M,args:$,docsPath:"/docs/contract/multicall",functionName:D});if(!n)throw z;g[m]=[...g[m],{allowFailure:!0,callData:"0x",target:M}]}}const A=await Promise.allSettled(g.map(O=>Yt(t,cu,"readContract")({abi:aE,address:p,args:[O],blockNumber:i,blockTag:s,functionName:"aggregate3",stateOverride:u}))),E=[];for(let O=0;O{const g=ji(["watchBlockNumber",t.uid,e,n,c]);return im(g,{onBlockNumber:r,onError:i},m=>_9(async()=>{var y;try{const A=await Yt(t,AZ,"getBlockNumber")({cacheTime:0});if(f){if(A===f)return;if(A-f>1&&n)for(let E=f+1n;Ef)&&(m.onBlockNumber(A,f),f=A)}catch(A){(y=m.onError)==null||y.call(m,A)}},{emitOnBegin:e,interval:c}))})():(()=>{const g=ji(["watchBlockNumber",t.uid,e,n]);return im(g,{onBlockNumber:r,onError:i},m=>{let y=!0,A=()=>y=!1;return(async()=>{try{const E=(()=>{if(t.transport.type==="fallback"){const O=t.transport.transports.find(I=>I.config.type==="webSocket");return O?O.value:t.transport}return t.transport})(),{unsubscribe:x}=await E.subscribe({params:["newHeads"],onData(O){var M;if(!y)return;const I=sd((M=O.result)==null?void 0:M.number);m.onBlockNumber(I,f),f=I},onError(O){var I;(I=m.onError)==null||I.call(m,O)}});A=x,y||A()}catch(E){i==null||i(E)}})(),()=>A()})})()}async function lX(t,{confirmations:e=1,hash:n,onReplaced:r,pollingInterval:i=t.pollingInterval,retryCount:s=6,retryDelay:c=({count:f})=>~~(1<E(new yY({hash:n})),u):void 0,O=im(f,{onReplaced:r,resolve:A,reject:E},I=>{const M=Yt(t,uX,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:i,async onBlockNumber($){const D=z=>{clearTimeout(x),M(),z(),O()};let R=$;if(!m)try{if(g){if(e>1&&(!g.blockNumber||R-g.blockNumber+1nI.resolve(g));return}if(d||(m=!0,await am(async()=>{d=await Yt(t,D9,"getTransaction")({hash:n}),d.blockNumber&&(R=d.blockNumber)},{delay:c,retryCount:s}),m=!1),g=await Yt(t,S4,"getTransactionReceipt")({hash:n}),e>1&&(!g.blockNumber||R-g.blockNumber+1nI.resolve(g))}catch(z){if(z instanceof YN||z instanceof ZN){if(!d){m=!1;return}try{p=d,m=!0;const G=await am(()=>Yt(t,Bh,"getBlock")({blockNumber:R,includeTransactions:!0}),{delay:c,retryCount:s,shouldRetry:({error:L})=>L instanceof r9});m=!1;const j=G.transactions.find(({from:L,nonce:v})=>L===p.from&&v===p.nonce);if(!j||(g=await Yt(t,S4,"getTransactionReceipt")({hash:j.hash}),e>1&&(!g.blockNumber||R-g.blockNumber+1n{var L;(L=I.onReplaced)==null||L.call(I,{reason:V,replacedTransaction:p,transaction:j,transactionReceipt:g}),I.resolve(g)})}catch(G){D(()=>I.reject(G))}}else D(()=>I.reject(z))}}})});return y}function dX(t,{batch:e=!0,onError:n,onTransactions:r,poll:i,pollingInterval:s=t.pollingInterval}){return(typeof i<"u"?i:t.transport.type!=="webSocket")?(()=>{const d=ji(["watchPendingTransactions",t.uid,e,s]);return im(d,{onTransactions:r,onError:n},p=>{let g;const m=_9(async()=>{var y;try{if(!g)try{g=await Yt(t,rX,"createPendingTransactionFilter")({});return}catch(E){throw m(),E}const A=await Yt(t,_Z,"getFilterChanges")({filter:g});if(A.length===0)return;if(e)p.onTransactions(A);else for(const E of A)p.onTransactions([E])}catch(A){(y=p.onError)==null||y.call(p,A)}},{emitOnBegin:!0,interval:s});return async()=>{g&&await Yt(t,CZ,"uninstallFilter")({filter:g}),m()}})})():(()=>{let d=!0,p=()=>d=!1;return(async()=>{try{const{unsubscribe:g}=await t.transport.subscribe({params:["newPendingTransactions"],onData(m){if(!d)return;const y=m.result;r([y])},onError(m){n==null||n(m)}});p=g,d||p()}catch(g){n==null||n(g)}})(),()=>p()})()}async function fX(t,{account:e=t.account,message:n}){if(!e)throw new O2({docsPath:"/docs/actions/wallet/signMessage"});const r=Qs(e);if(r.signMessage)return r.signMessage({message:n});const i=typeof n=="string"?Hm(n):n.raw instanceof Uint8Array?Ba(n.raw):n.raw;return t.request({method:"personal_sign",params:[i,r.address]},{retryCount:0})}const L1={createBalance(t,e){const n={name:t.metadata.name||"",symbol:t.metadata.symbol||"",decimals:t.metadata.decimals||0,value:t.metadata.value||0,price:t.metadata.price||0,iconUrl:t.metadata.iconUrl||""};return{name:n.name,symbol:n.symbol,chainId:e,address:t.address==="native"?void 0:this.convertAddressToCAIP10Address(t.address,e),value:n.value,price:n.price,quantity:{decimals:n.decimals.toString(),numeric:this.convertHexToBalance({hex:t.balance,decimals:n.decimals})},iconUrl:n.iconUrl}},convertHexToBalance({hex:t,decimals:e}){return xd(BigInt(t),e)},convertAddressToCAIP10Address(t,e){return`${e}:${t}`},createCAIP2ChainId(t,e){return`${e}:${parseInt(t,16)}`},getChainIdHexFromCAIP2ChainId(t){const e=t.split(":");if(e.length<2||!e[1])return"0x0";const n=e[1],r=parseInt(n,10);return isNaN(r)?"0x0":`0x${r.toString(16)}`},isWalletGetAssetsResponse(t){return typeof t!="object"||t===null?!1:Object.values(t).every(e=>Array.isArray(e)&&e.every(n=>this.isValidAsset(n)))},isValidAsset(t){return typeof t=="object"&&t!==null&&typeof t.address=="string"&&typeof t.balance=="string"&&(t.type==="ERC20"||t.type==="NATIVE")&&typeof t.metadata=="object"&&t.metadata!==null&&typeof t.metadata.name=="string"&&typeof t.metadata.symbol=="string"&&typeof t.metadata.decimals=="number"&&typeof t.metadata.price=="number"&&typeof t.metadata.iconUrl=="string"}},T4={async getMyTokensWithBalance(t){const e=Oe.state.address,n=Q.state.activeCaipNetwork;if(!e||!n)return[];if(n.chainNamespace==="eip155"){const i=await this.getEIP155Balances(e,n);if(i)return this.filterLowQualityTokens(i)}const r=await Me.getBalance(e,n.caipNetworkId,t);return this.filterLowQualityTokens(r.balances)},async getEIP155Balances(t,e){var n,r;try{const i=L1.getChainIdHexFromCAIP2ChainId(e.caipNetworkId),s=await ot.getCapabilities(t);if(!((r=(n=s==null?void 0:s[i])==null?void 0:n.assetDiscovery)!=null&&r.supported))return null;const c=await ot.walletGetAssets({account:t,chainFilter:[i]});return L1.isWalletGetAssetsResponse(c)?(c[i]||[]).map(f=>L1.createBalance(f,e.caipNetworkId)):null}catch{return null}},filterLowQualityTokens(t){return t.filter(e=>e.quantity.decimals!=="0")},mapBalancesToSwapTokens(t){return(t==null?void 0:t.map(e=>({...e,address:e!=null&&e.address?e.address:Q.getActiveNetworkTokenAddress(),decimals:parseInt(e.quantity.decimals,10),logoUri:e.iconUrl,eip2612:!1})))||[]}},vt=gn({tokenBalances:[],loading:!1}),x4={state:vt,subscribe(t){return Rr(vt,()=>t(vt))},subscribeKey(t,e){return zr(vt,t,e)},setToken(t){t&&(vt.token=Zc(t))},setTokenAmount(t){vt.sendTokenAmount=t},setReceiverAddress(t){vt.receiverAddress=t},setReceiverProfileImageUrl(t){vt.receiverProfileImageUrl=t},setReceiverProfileName(t){vt.receiverProfileName=t},setGasPrice(t){vt.gasPrice=t},setGasPriceInUsd(t){vt.gasPriceInUSD=t},setNetworkBalanceInUsd(t){vt.networkBalanceInUSD=t},setLoading(t){vt.loading=t},sendToken(){var t;switch((t=Q.state.activeCaipNetwork)==null?void 0:t.chainNamespace){case"eip155":this.sendEvmToken();return;case"solana":this.sendSolanaToken();return;default:throw new Error("Unsupported chain")}},sendEvmToken(){var t,e,n,r,i;(t=this.state.token)!=null&&t.address&&this.state.sendTokenAmount&&this.state.receiverAddress?(Ft.sendEvent({type:"track",event:"SEND_INITIATED",properties:{isSmartAccount:Oe.state.preferredAccountType===yn.ACCOUNT_TYPES.SMART_ACCOUNT,token:this.state.token.address,amount:this.state.sendTokenAmount,network:((e=Q.state.activeCaipNetwork)==null?void 0:e.caipNetworkId)||""}}),this.sendERC20Token({receiverAddress:this.state.receiverAddress,tokenAddress:this.state.token.address,sendTokenAmount:this.state.sendTokenAmount,decimals:this.state.token.quantity.decimals})):this.state.receiverAddress&&this.state.sendTokenAmount&&this.state.gasPrice&&((n=this.state.token)!=null&&n.quantity.decimals)&&(Ft.sendEvent({type:"track",event:"SEND_INITIATED",properties:{isSmartAccount:Oe.state.preferredAccountType===yn.ACCOUNT_TYPES.SMART_ACCOUNT,token:(r=this.state.token)==null?void 0:r.symbol,amount:this.state.sendTokenAmount,network:((i=Q.state.activeCaipNetwork)==null?void 0:i.caipNetworkId)||""}}),this.sendNativeToken({receiverAddress:this.state.receiverAddress,sendTokenAmount:this.state.sendTokenAmount,gasPrice:this.state.gasPrice,decimals:this.state.token.quantity.decimals}))},async fetchTokenBalance(t){var s,c;vt.loading=!0;const e=(s=Q.state.activeCaipNetwork)==null?void 0:s.caipNetworkId,n=(c=Q.state.activeCaipNetwork)==null?void 0:c.chainNamespace,r=Q.state.activeCaipAddress,i=r?$e.getPlainAddress(r):void 0;if(vt.lastRetry&&!$e.isAllowedRetry(vt.lastRetry,30*Fn.ONE_SEC_MS))return vt.loading=!1,[];try{if(i&&e&&n){const u=await T4.getMyTokensWithBalance();return vt.tokenBalances=u,vt.lastRetry=void 0,u}}catch(u){vt.lastRetry=Date.now(),t==null||t(u),$t.showError("Token Balance Unavailable")}finally{vt.loading=!1}return[]},fetchNetworkBalance(){if(vt.tokenBalances.length===0)return;const t=T4.mapBalancesToSwapTokens(vt.tokenBalances);if(!t)return;const e=t.find(n=>n.address===Q.getActiveNetworkTokenAddress());e&&(vt.networkBalanceInUSD=e?Lt.multiply(e.quantity.numeric,e.price).toString():"0")},isInsufficientNetworkTokenForGas(t,e){const n=e||"0";return Lt.bigNumber(t).eq(0)?!0:Lt.bigNumber(Lt.bigNumber(n)).gt(t)},hasInsufficientGasFunds(){let t=!0;return Oe.state.preferredAccountType===yn.ACCOUNT_TYPES.SMART_ACCOUNT?t=!1:vt.networkBalanceInUSD&&(t=this.isInsufficientNetworkTokenForGas(vt.networkBalanceInUSD,vt.gasPriceInUSD)),t},async sendNativeToken(t){var s,c,u,f;ct.pushTransactionStack({view:"Account",goBack:!1});const e=t.receiverAddress,n=Oe.state.address,r=ot.parseUnits(t.sendTokenAmount.toString(),Number(t.decimals)),i="0x";try{await ot.sendTransaction({chainNamespace:"eip155",to:e,address:n,data:i,value:r??BigInt(0),gasPrice:t.gasPrice}),$t.showSuccess("Transaction started"),Ft.sendEvent({type:"track",event:"SEND_SUCCESS",properties:{isSmartAccount:Oe.state.preferredAccountType===yn.ACCOUNT_TYPES.SMART_ACCOUNT,token:((s=this.state.token)==null?void 0:s.symbol)||"",amount:t.sendTokenAmount,network:((c=Q.state.activeCaipNetwork)==null?void 0:c.caipNetworkId)||""}}),this.resetSend()}catch(d){console.error("SendController:sendERC20Token - failed to send native token",d);const p=d instanceof Error?d.message:"Unknown error";Ft.sendEvent({type:"track",event:"SEND_ERROR",properties:{message:p,isSmartAccount:Oe.state.preferredAccountType===yn.ACCOUNT_TYPES.SMART_ACCOUNT,token:((u=this.state.token)==null?void 0:u.symbol)||"",amount:t.sendTokenAmount,network:((f=Q.state.activeCaipNetwork)==null?void 0:f.caipNetworkId)||""}}),$t.showError("Something went wrong")}},async sendERC20Token(t){var n,r;ct.pushTransactionStack({view:"Account",goBack:!1});const e=ot.parseUnits(t.sendTokenAmount.toString(),Number(t.decimals));try{if(Oe.state.address&&t.sendTokenAmount&&t.receiverAddress&&t.tokenAddress){const i=$e.getPlainAddress(t.tokenAddress);await ot.writeContract({fromAddress:Oe.state.address,tokenAddress:i,args:[t.receiverAddress,e??BigInt(0)],method:"transfer",abi:I7.getERC20Abi(i),chainNamespace:"eip155"}),$t.showSuccess("Transaction started"),this.resetSend()}}catch(i){console.error("SendController:sendERC20Token - failed to send erc20 token",i);const s=i instanceof Error?i.message:"Unknown error";Ft.sendEvent({type:"track",event:"SEND_ERROR",properties:{message:s,isSmartAccount:Oe.state.preferredAccountType===yn.ACCOUNT_TYPES.SMART_ACCOUNT,token:((n=this.state.token)==null?void 0:n.symbol)||"",amount:t.sendTokenAmount,network:((r=Q.state.activeCaipNetwork)==null?void 0:r.caipNetworkId)||""}}),$t.showError("Something went wrong")}},sendSolanaToken(){if(!this.state.sendTokenAmount||!this.state.receiverAddress){$t.showError("Please enter a valid amount and receiver address");return}ct.pushTransactionStack({view:"Account",goBack:!1}),ot.sendTransaction({chainNamespace:"solana",to:this.state.receiverAddress,value:this.state.sendTokenAmount}).then(()=>{this.resetSend(),Oe.fetchTokenBalance()}).catch(t=>{$t.showError("Failed to send transaction. Please try again."),console.error("SendController:sendToken - failed to send solana transaction",t)})},resetSend(){vt.token=void 0,vt.sendTokenAmount=void 0,vt.receiverAddress=void 0,vt.receiverProfileImageUrl=void 0,vt.receiverProfileName=void 0,vt.loading=!1,vt.tokenBalances=[]}},$1={currentTab:0,tokenBalance:[],smartAccountDeployed:!1,addressLabels:new Map,allAccounts:[],user:void 0},mg={caipNetwork:void 0,supportsAllNetworks:!0,smartAccountEnabledNetworks:[]},ve=gn({chains:m7(),activeCaipAddress:void 0,activeChain:void 0,activeCaipNetwork:void 0,noAdapters:!1,universalAdapter:{networkControllerClient:void 0,connectionControllerClient:void 0},isSwitchingNamespace:!1}),Q={state:ve,subscribe(t){return Rr(ve,()=>{t(ve)})},subscribeKey(t,e){return zr(ve,t,e)},subscribeChainProp(t,e,n){let r;return Rr(ve.chains,()=>{var s;const i=n||ve.activeChain;if(i){const c=(s=ve.chains.get(i))==null?void 0:s[t];r!==c&&(r=c,e(c))}})},initialize(t,e,n){const{chainId:r,namespace:i}=Ne.getActiveNetworkProps(),s=e==null?void 0:e.find(d=>d.id.toString()===(r==null?void 0:r.toString())),u=t.find(d=>(d==null?void 0:d.namespace)===i)||(t==null?void 0:t[0]),f=new Set([...(e==null?void 0:e.map(d=>d.chainNamespace))??[]]);((t==null?void 0:t.length)===0||!u)&&(ve.noAdapters=!0),ve.noAdapters||(ve.activeChain=u==null?void 0:u.namespace,ve.activeCaipNetwork=s,this.setChainNetworkData(u==null?void 0:u.namespace,{caipNetwork:s}),ve.activeChain&&Ra.set({activeChain:u==null?void 0:u.namespace})),f.forEach(d=>{const p=e==null?void 0:e.filter(g=>g.chainNamespace===d);Q.state.chains.set(d,{namespace:d,networkState:gn({...mg,caipNetwork:p==null?void 0:p[0]}),accountState:gn($1),caipNetworks:p??[],...n}),this.setRequestedCaipNetworks(p??[],d)})},removeAdapter(t){var e,n;if(ve.activeChain===t){const r=Array.from(ve.chains.entries()).find(([i])=>i!==t);if(r){const i=(n=(e=r[1])==null?void 0:e.caipNetworks)==null?void 0:n[0];i&&this.setActiveCaipNetwork(i)}}ve.chains.delete(t)},addAdapter(t,{networkControllerClient:e,connectionControllerClient:n},r){ve.chains.set(t.namespace,{namespace:t.namespace,networkState:{...mg,caipNetwork:r[0]},accountState:$1,caipNetworks:r,connectionControllerClient:n,networkControllerClient:e}),this.setRequestedCaipNetworks((r==null?void 0:r.filter(i=>i.chainNamespace===t.namespace))??[],t.namespace)},addNetwork(t){var n;const e=ve.chains.get(t.chainNamespace);if(e){const r=[...e.caipNetworks||[]];(n=e.caipNetworks)!=null&&n.find(i=>i.id===t.id)||r.push(t),ve.chains.set(t.chainNamespace,{...e,caipNetworks:r}),this.setRequestedCaipNetworks(r,t.chainNamespace)}},removeNetwork(t,e){var r,i,s;const n=ve.chains.get(t);if(n){const c=((r=ve.activeCaipNetwork)==null?void 0:r.id)===e,u=[...((i=n.caipNetworks)==null?void 0:i.filter(f=>f.id!==e))||[]];c&&((s=n==null?void 0:n.caipNetworks)!=null&&s[0])&&this.setActiveCaipNetwork(n.caipNetworks[0]),ve.chains.set(t,{...n,caipNetworks:u}),this.setRequestedCaipNetworks(u||[],t)}},setAdapterNetworkState(t,e){const n=ve.chains.get(t);n&&(n.networkState={...n.networkState||mg,...e},ve.chains.set(t,n))},setChainAccountData(t,e,n=!0){if(!t)throw new Error("Chain is required to update chain account data");const r=ve.chains.get(t);if(r){const i={...r.accountState||$1,...e};ve.chains.set(t,{...r,accountState:i}),(ve.chains.size===1||ve.activeChain===t)&&(e.caipAddress&&(ve.activeCaipAddress=e.caipAddress),Oe.replaceState(i))}},setChainNetworkData(t,e){if(!t)return;const n=ve.chains.get(t);if(n){const r={...n.networkState||mg,...e};ve.chains.set(t,{...n,networkState:r})}},setAccountProp(t,e,n,r=!0){this.setChainAccountData(n,{[t]:e},r),t==="status"&&e==="disconnected"&&n&&Ge.removeConnectorId(n)},setActiveNamespace(t){var r,i;ve.activeChain=t;const e=t?ve.chains.get(t):void 0,n=(r=e==null?void 0:e.networkState)==null?void 0:r.caipNetwork;n!=null&&n.id&&t&&(ve.activeCaipAddress=(i=e==null?void 0:e.accountState)==null?void 0:i.caipAddress,ve.activeCaipNetwork=n,this.setChainNetworkData(t,{caipNetwork:n}),Ne.setActiveCaipNetworkId(n==null?void 0:n.caipNetworkId),Ra.set({activeChain:t,selectedNetworkId:n==null?void 0:n.caipNetworkId}))},setActiveCaipNetwork(t){var r,i,s;if(!t)return;ve.activeChain!==t.chainNamespace&&(this.setIsSwitchingNamespace(!0),Ge.setFilterByNamespace(t.chainNamespace));const e=ve.chains.get(t.chainNamespace);ve.activeChain=t.chainNamespace,ve.activeCaipNetwork=t,this.setChainNetworkData(t.chainNamespace,{caipNetwork:t}),(r=e==null?void 0:e.accountState)!=null&&r.address?ve.activeCaipAddress=`${t.chainNamespace}:${t.id}:${(i=e==null?void 0:e.accountState)==null?void 0:i.address}`:ve.activeCaipAddress=void 0,this.setAccountProp("caipAddress",ve.activeCaipAddress,t.chainNamespace),e&&Oe.replaceState(e.accountState),x4.resetSend(),Ra.set({activeChain:ve.activeChain,selectedNetworkId:(s=ve.activeCaipNetwork)==null?void 0:s.caipNetworkId}),Ne.setActiveCaipNetworkId(t.caipNetworkId),!this.checkIfSupportedNetwork(t.chainNamespace)&&!be.state.allowUnsupportedChain&&!ot.state.wcBasic&&this.showUnsupportedChainUI()},addCaipNetwork(t){var n;if(!t)return;const e=ve.chains.get(t.chainNamespace);e&&((n=e==null?void 0:e.caipNetworks)==null||n.push(t))},async switchActiveNamespace(t){var i;if(!t)return;const e=t!==Q.state.activeChain,n=(i=Q.getNetworkData(t))==null?void 0:i.caipNetwork,r=Q.getCaipNetworkByNamespace(t,n==null?void 0:n.id);e&&r&&await Q.switchActiveNetwork(r)},async switchActiveNetwork(t){var i;const e=Q.state.chains.get(Q.state.activeChain);!((i=e==null?void 0:e.caipNetworks)!=null&&i.some(s=>{var c;return s.id===((c=ve.activeCaipNetwork)==null?void 0:c.id)}))&&ct.goBack();const r=this.getNetworkControllerClient(t.chainNamespace);r&&(await r.switchCaipNetwork(t),Ft.sendEvent({type:"track",event:"SWITCH_NETWORK",properties:{network:t.caipNetworkId}}))},getNetworkControllerClient(t){const e=t||ve.activeChain,n=ve.chains.get(e);if(!n)throw new Error("Chain adapter not found");if(!n.networkControllerClient)throw new Error("NetworkController client not set");return n.networkControllerClient},getConnectionControllerClient(t){const e=t||ve.activeChain;if(!e)throw new Error("Chain is required to get connection controller client");const n=ve.chains.get(e);if(!(n!=null&&n.connectionControllerClient))throw new Error("ConnectionController client not set");return n.connectionControllerClient},getAccountProp(t,e){var i;let n=ve.activeChain;if(e&&(n=e),!n)return;const r=(i=ve.chains.get(n))==null?void 0:i.accountState;if(r)return r[t]},getNetworkProp(t,e){var r;const n=(r=ve.chains.get(e))==null?void 0:r.networkState;if(n)return n[t]},getRequestedCaipNetworks(t){const e=ve.chains.get(t),{approvedCaipNetworkIds:n=[],requestedCaipNetworks:r=[]}=(e==null?void 0:e.networkState)||{};return $e.sortRequestedNetworks(n,r)},getAllRequestedCaipNetworks(){const t=[];return ve.chains.forEach(e=>{const n=this.getRequestedCaipNetworks(e.namespace);t.push(...n)}),t},setRequestedCaipNetworks(t,e){this.setAdapterNetworkState(e,{requestedCaipNetworks:t})},getAllApprovedCaipNetworkIds(){const t=[];return ve.chains.forEach(e=>{const n=this.getApprovedCaipNetworkIds(e.namespace);t.push(...n)}),t},getActiveCaipNetwork(){return ve.activeCaipNetwork},getActiveCaipAddress(){return ve.activeCaipAddress},getApprovedCaipNetworkIds(t){var r;const e=ve.chains.get(t);return((r=e==null?void 0:e.networkState)==null?void 0:r.approvedCaipNetworkIds)||[]},async setApprovedCaipNetworksData(t){const e=this.getNetworkControllerClient(),n=await(e==null?void 0:e.getApprovedCaipNetworksData());this.setAdapterNetworkState(t,{approvedCaipNetworkIds:n==null?void 0:n.approvedCaipNetworkIds,supportsAllNetworks:n==null?void 0:n.supportsAllNetworks})},checkIfSupportedNetwork(t,e){const n=e||ve.activeCaipNetwork,r=this.getRequestedCaipNetworks(t);return r.length?r==null?void 0:r.some(i=>i.id===(n==null?void 0:n.id)):!0},checkIfSupportedChainId(t){if(!ve.activeChain)return!0;const e=this.getRequestedCaipNetworks(ve.activeChain);return e==null?void 0:e.some(n=>n.id===t)},setSmartAccountEnabledNetworks(t,e){this.setAdapterNetworkState(e,{smartAccountEnabledNetworks:t})},checkIfSmartAccountEnabled(){var r;const t=yh.caipNetworkIdToNumber((r=ve.activeCaipNetwork)==null?void 0:r.caipNetworkId),e=ve.activeChain;if(!e||!t)return!1;const n=this.getNetworkProp("smartAccountEnabledNetworks",e);return!!(n!=null&&n.includes(Number(t)))},getActiveNetworkTokenAddress(){var r,i;const t=((r=ve.activeCaipNetwork)==null?void 0:r.chainNamespace)||"eip155",e=((i=ve.activeCaipNetwork)==null?void 0:i.id)||1,n=Fn.NATIVE_TOKEN_ADDRESS[t];return`${t}:${e}:${n}`},showUnsupportedChainUI(){Kn.open({view:"UnsupportedChain"})},checkIfNamesSupported(){const t=ve.activeCaipNetwork;return!!(t!=null&&t.chainNamespace&&Fn.NAMES_SUPPORTED_CHAIN_NAMESPACES.includes(t.chainNamespace))},resetNetwork(t){this.setAdapterNetworkState(t,{approvedCaipNetworkIds:void 0,supportsAllNetworks:!0,smartAccountEnabledNetworks:[]})},resetAccount(t){const e=t;if(!e)throw new Error("Chain is required to set account prop");ve.activeCaipAddress=void 0,this.setChainAccountData(e,{smartAccountDeployed:!1,currentTab:0,caipAddress:void 0,address:void 0,balance:void 0,balanceSymbol:void 0,profileName:void 0,profileImage:void 0,addressExplorerUrl:void 0,tokenBalance:[],connectedWalletInfo:void 0,preferredAccountType:void 0,socialProvider:void 0,socialWindow:void 0,farcasterUrl:void 0,allAccounts:[],user:void 0,status:"disconnected"}),Ge.removeConnectorId(e)},async disconnect(){try{x4.resetSend();const t=await Promise.allSettled(Array.from(ve.chains.entries()).map(async([n,r])=>{var i;try{(i=r.connectionControllerClient)!=null&&i.disconnect&&await r.connectionControllerClient.disconnect(),this.resetAccount(n),this.resetNetwork(n)}catch(s){throw new Error(`Failed to disconnect chain ${n}: ${s.message}`)}}));ot.resetWcConnection();const e=t.filter(n=>n.status==="rejected");if(e.length>0)throw new Error(e.map(n=>n.reason.message).join(", "));Ne.deleteConnectedSocialProvider(),ot.resetWcConnection(),Ge.resetConnectorIds(),Ft.sendEvent({type:"track",event:"DISCONNECT_SUCCESS"})}catch(t){console.error(t.message||"Failed to disconnect chains"),Ft.sendEvent({type:"track",event:"DISCONNECT_ERROR",properties:{message:t.message||"Failed to disconnect chains"}})}},setIsSwitchingNamespace(t){ve.isSwitchingNamespace=t},getFirstCaipNetworkSupportsAuthConnector(){var n,r;const t=[];let e;if(ve.chains.forEach(i=>{he.AUTH_CONNECTOR_SUPPORTED_CHAINS.find(s=>s===i.namespace)&&i.namespace&&t.push(i.namespace)}),t.length>0){const i=t[0];return e=i?(r=(n=ve.chains.get(i))==null?void 0:n.caipNetworks)==null?void 0:r[0]:void 0,e}},getAccountData(t){var e;return t?(e=Q.state.chains.get(t))==null?void 0:e.accountState:Oe.state},getNetworkData(t){var n;const e=t||ve.activeChain;if(e)return(n=Q.state.chains.get(e))==null?void 0:n.networkState},getCaipNetworkByNamespace(t,e){var i,s,c;if(!t)return;const n=Q.state.chains.get(t),r=(i=n==null?void 0:n.caipNetworks)==null?void 0:i.find(u=>u.id===e);return r||((s=n==null?void 0:n.networkState)==null?void 0:s.caipNetwork)||((c=n==null?void 0:n.caipNetworks)==null?void 0:c[0])},getRequestedCaipNetworkIds(){const t=Ge.state.filterByNamespace;return(t?[ve.chains.get(t)]:Array.from(ve.chains.values())).flatMap(n=>(n==null?void 0:n.caipNetworks)||[]).map(n=>n.caipNetworkId)}},hX={purchaseCurrencies:[{id:"2b92315d-eab7-5bef-84fa-089a131333f5",name:"USD Coin",symbol:"USDC",networks:[{name:"ethereum-mainnet",display_name:"Ethereum",chain_id:"1",contract_address:"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"},{name:"polygon-mainnet",display_name:"Polygon",chain_id:"137",contract_address:"0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174"}]},{id:"2b92315d-eab7-5bef-84fa-089a131333f5",name:"Ether",symbol:"ETH",networks:[{name:"ethereum-mainnet",display_name:"Ethereum",chain_id:"1",contract_address:"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"},{name:"polygon-mainnet",display_name:"Polygon",chain_id:"137",contract_address:"0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174"}]}],paymentCurrencies:[{id:"USD",payment_method_limits:[{id:"card",min:"10.00",max:"7500.00"},{id:"ach_bank_account",min:"10.00",max:"25000.00"}]},{id:"EUR",payment_method_limits:[{id:"card",min:"10.00",max:"7500.00"},{id:"ach_bank_account",min:"10.00",max:"25000.00"}]}]},P9=$e.getBlockchainApiUrl(),fi=gn({clientId:null,api:new xm({baseUrl:P9,clientId:null}),supportedChains:{http:[],ws:[]}}),Me={state:fi,async get(t){const{st:e,sv:n}=Me.getSdkProperties(),r=be.state.projectId,i={...t.params||{},st:e,sv:n,projectId:r};return fi.api.get({...t,params:i})},getSdkProperties(){const{sdkType:t,sdkVersion:e}=be.state;return{st:t||"unknown",sv:e||"unknown"}},async isNetworkSupported(t){if(!t)return!1;try{fi.supportedChains.http.length||await Me.getSupportedNetworks()}catch{return!1}return fi.supportedChains.http.includes(t)},async getSupportedNetworks(){const t=await Me.get({path:"v1/supported-chains"});return fi.supportedChains=t,t},async fetchIdentity({address:t,caipNetworkId:e}){if(!await Me.isNetworkSupported(e))return{avatar:"",name:""};const r=Ne.getIdentityFromCacheForAddress(t);if(r)return r;const i=await Me.get({path:`/v1/identity/${t}`,params:{sender:Q.state.activeCaipAddress?$e.getPlainAddress(Q.state.activeCaipAddress):void 0}});return Ne.updateIdentityCache({address:t,identity:i,timestamp:Date.now()}),i},async fetchTransactions({account:t,cursor:e,onramp:n,signal:r,cache:i,chainId:s}){var u;return await Me.isNetworkSupported((u=Q.state.activeCaipNetwork)==null?void 0:u.caipNetworkId)?Me.get({path:`/v1/account/${t}/history`,params:{cursor:e,onramp:n,chainId:s},signal:r,cache:i}):{data:[],next:void 0}},async fetchSwapQuote({amount:t,userAddress:e,from:n,to:r,gasPrice:i}){var c;return await Me.isNetworkSupported((c=Q.state.activeCaipNetwork)==null?void 0:c.caipNetworkId)?Me.get({path:"/v1/convert/quotes",headers:{"Content-Type":"application/json"},params:{amount:t,userAddress:e,from:n,to:r,gasPrice:i}}):{quotes:[]}},async fetchSwapTokens({chainId:t}){var n;return await Me.isNetworkSupported((n=Q.state.activeCaipNetwork)==null?void 0:n.caipNetworkId)?Me.get({path:"/v1/convert/tokens",params:{chainId:t}}):{tokens:[]}},async fetchTokenPrice({addresses:t}){var n;return await Me.isNetworkSupported((n=Q.state.activeCaipNetwork)==null?void 0:n.caipNetworkId)?fi.api.post({path:"/v1/fungible/price",body:{currency:"usd",addresses:t,projectId:be.state.projectId},headers:{"Content-Type":"application/json"}}):{fungibles:[]}},async fetchSwapAllowance({tokenAddress:t,userAddress:e}){var r;return await Me.isNetworkSupported((r=Q.state.activeCaipNetwork)==null?void 0:r.caipNetworkId)?Me.get({path:"/v1/convert/allowance",params:{tokenAddress:t,userAddress:e},headers:{"Content-Type":"application/json"}}):{allowance:"0"}},async fetchGasPrice({chainId:t}){var i;const{st:e,sv:n}=Me.getSdkProperties();if(!await Me.isNetworkSupported((i=Q.state.activeCaipNetwork)==null?void 0:i.caipNetworkId))throw new Error("Network not supported for Gas Price");return Me.get({path:"/v1/convert/gas-price",headers:{"Content-Type":"application/json"},params:{chainId:t,st:e,sv:n}})},async generateSwapCalldata({amount:t,from:e,to:n,userAddress:r}){var s;if(!await Me.isNetworkSupported((s=Q.state.activeCaipNetwork)==null?void 0:s.caipNetworkId))throw new Error("Network not supported for Swaps");return fi.api.post({path:"/v1/convert/build-transaction",headers:{"Content-Type":"application/json"},body:{amount:t,eip155:{slippage:Fn.CONVERT_SLIPPAGE_TOLERANCE},projectId:be.state.projectId,from:e,to:n,userAddress:r}})},async generateApproveCalldata({from:t,to:e,userAddress:n}){var c;const{st:r,sv:i}=Me.getSdkProperties();if(!await Me.isNetworkSupported((c=Q.state.activeCaipNetwork)==null?void 0:c.caipNetworkId))throw new Error("Network not supported for Swaps");return Me.get({path:"/v1/convert/build-approve",headers:{"Content-Type":"application/json"},params:{userAddress:n,from:t,to:e,st:r,sv:i}})},async getBalance(t,e,n){var d;const{st:r,sv:i}=Me.getSdkProperties();if(!await Me.isNetworkSupported((d=Q.state.activeCaipNetwork)==null?void 0:d.caipNetworkId))return $t.showError("Token Balance Unavailable"),{balances:[]};const c=`${e}:${t}`,u=Ne.getBalanceCacheForCaipAddress(c);if(u)return u;const f=await Me.get({path:`/v1/account/${t}/balance`,params:{currency:"usd",chainId:e,forceUpdate:n,st:r,sv:i}});return Ne.updateBalanceCache({caipAddress:c,balance:f,timestamp:Date.now()}),f},async lookupEnsName(t){var n;return await Me.isNetworkSupported((n=Q.state.activeCaipNetwork)==null?void 0:n.caipNetworkId)?Me.get({path:`/v1/profile/account/${t}`,params:{apiVersion:"2"}}):{addresses:{},attributes:[]}},async reverseLookupEnsName({address:t}){var n;return await Me.isNetworkSupported((n=Q.state.activeCaipNetwork)==null?void 0:n.caipNetworkId)?Me.get({path:`/v1/profile/reverse/${t}`,params:{sender:Oe.state.address,apiVersion:"2"}}):[]},async getEnsNameSuggestions(t){var n;return await Me.isNetworkSupported((n=Q.state.activeCaipNetwork)==null?void 0:n.caipNetworkId)?Me.get({path:`/v1/profile/suggestions/${t}`,params:{zone:"reown.id"}}):{suggestions:[]}},async registerEnsName({coinType:t,address:e,message:n,signature:r}){var s;return await Me.isNetworkSupported((s=Q.state.activeCaipNetwork)==null?void 0:s.caipNetworkId)?fi.api.post({path:"/v1/profile/account",body:{coin_type:t,address:e,message:n,signature:r},headers:{"Content-Type":"application/json"}}):{success:!1}},async generateOnRampURL({destinationWallets:t,partnerUserId:e,defaultNetwork:n,purchaseAmount:r,paymentAmount:i}){var u;return await Me.isNetworkSupported((u=Q.state.activeCaipNetwork)==null?void 0:u.caipNetworkId)?(await fi.api.post({path:"/v1/generators/onrampurl",params:{projectId:be.state.projectId},body:{destinationWallets:t,defaultNetwork:n,partnerUserId:e,defaultExperience:"buy",presetCryptoAmount:r,presetFiatAmount:i}})).url:""},async getOnrampOptions(){var e;if(!await Me.isNetworkSupported((e=Q.state.activeCaipNetwork)==null?void 0:e.caipNetworkId))return{paymentCurrencies:[],purchaseCurrencies:[]};try{return await Me.get({path:"/v1/onramp/options"})}catch{return hX}},async getOnrampQuote({purchaseCurrency:t,paymentCurrency:e,amount:n,network:r}){var i;try{return await Me.isNetworkSupported((i=Q.state.activeCaipNetwork)==null?void 0:i.caipNetworkId)?await fi.api.post({path:"/v1/onramp/quote",params:{projectId:be.state.projectId},body:{purchaseCurrency:t,paymentCurrency:e,amount:n,network:r}}):null}catch{return{coinbaseFee:{amount:n,currency:e.id},networkFee:{amount:n,currency:e.id},paymentSubtotal:{amount:n,currency:e.id},paymentTotal:{amount:n,currency:e.id},purchaseAmount:{amount:n,currency:e.id},quoteId:"mocked-quote-id"}}},async getSmartSessions(t){var n;return await Me.isNetworkSupported((n=Q.state.activeCaipNetwork)==null?void 0:n.caipNetworkId)?Me.get({path:`/v1/sessions/${t}`}):[]},async revokeSmartSession(t,e,n){var i;return await Me.isNetworkSupported((i=Q.state.activeCaipNetwork)==null?void 0:i.caipNetworkId)?fi.api.post({path:`/v1/sessions/${t}/revoke`,params:{projectId:be.state.projectId},body:{pci:e,signature:n}}):{success:!1}},setClientId(t){fi.clientId=t,fi.api=new xm({baseUrl:P9,clientId:t})}},ih={async getTokenList(){var r;const t=Q.state.activeCaipNetwork,e=await Me.fetchSwapTokens({chainId:t==null?void 0:t.caipNetworkId});return((r=e==null?void 0:e.tokens)==null?void 0:r.map(i=>({...i,eip2612:!1,quantity:{decimals:"0",numeric:"0"},price:0,value:0})))||[]},async fetchGasPrice(){var e;const t=Q.state.activeCaipNetwork;if(!t)return null;try{switch(t.chainNamespace){case"solana":const n=(e=await(ot==null?void 0:ot.estimateGas({chainNamespace:"solana"})))==null?void 0:e.toString();return{standard:n,fast:n,instant:n};case"eip155":default:return await Me.fetchGasPrice({chainId:t.caipNetworkId})}}catch{return null}},async fetchSwapAllowance({tokenAddress:t,userAddress:e,sourceTokenAmount:n,sourceTokenDecimals:r}){const i=await Me.fetchSwapAllowance({tokenAddress:t,userAddress:e});if(i!=null&&i.allowance&&n&&r){const s=ot.parseUnits(n,r)||0;return BigInt(i.allowance)>=s}return!1},async getMyTokensWithBalance(t){const e=Oe.state.address,n=Q.state.activeCaipNetwork;if(!e||!n)return[];const i=(await Me.getBalance(e,n.caipNetworkId,t)).balances.filter(s=>s.quantity.decimals!=="0");return Oe.setTokenBalance(i,Q.state.activeChain),this.mapBalancesToSwapTokens(i)},mapBalancesToSwapTokens(t){return(t==null?void 0:t.map(e=>({...e,address:e!=null&&e.address?e.address:Q.getActiveNetworkTokenAddress(),decimals:parseInt(e.quantity.decimals,10),logoUri:e.iconUrl,eip2612:!1})))||[]}},Sa={getGasPriceInEther(t,e){const n=e*t;return Number(n)/1e18},getGasPriceInUSD(t,e,n){const r=Sa.getGasPriceInEther(e,n);return Lt.bigNumber(t).times(r).toNumber()},getPriceImpact({sourceTokenAmount:t,sourceTokenPriceInUSD:e,toTokenPriceInUSD:n,toTokenAmount:r}){const i=Lt.bigNumber(t).times(e),s=Lt.bigNumber(r).times(n);return i.minus(s).div(i).times(100).toNumber()},getMaxSlippage(t,e){const n=Lt.bigNumber(t).div(100);return Lt.multiply(e,n).toNumber()},getProviderFee(t,e=.0085){return Lt.bigNumber(t).times(e).toString()},isInsufficientNetworkTokenForGas(t,e){const n=e||"0";return Lt.bigNumber(t).eq(0)?!0:Lt.bigNumber(Lt.bigNumber(n)).gt(t)},isInsufficientSourceTokenForSwap(t,e,n){var s,c;const r=(c=(s=n==null?void 0:n.find(u=>u.address===e))==null?void 0:s.quantity)==null?void 0:c.numeric;return Lt.bigNumber(r||"0").lt(t)},getToTokenAmount({sourceToken:t,toToken:e,sourceTokenPrice:n,toTokenPrice:r,sourceTokenAmount:i}){if(i==="0"||!t||!e)return"0";const s=t.decimals,c=n,u=e.decimals,f=r;if(f<=0)return"0";const d=Lt.bigNumber(i).times(.0085),g=Lt.bigNumber(i).minus(d).times(Lt.bigNumber(10).pow(s)),m=Lt.bigNumber(c).div(f),y=s-u;return g.times(m).div(Lt.bigNumber(10).pow(y)).div(Lt.bigNumber(10).pow(u)).toFixed(u).toString()}},N4=15e4,pX=6,Qr={initializing:!1,initialized:!1,loadingPrices:!1,loadingQuote:!1,loadingApprovalTransaction:!1,loadingBuildTransaction:!1,loadingTransaction:!1,fetchError:!1,approvalTransaction:void 0,swapTransaction:void 0,transactionError:void 0,sourceToken:void 0,sourceTokenAmount:"",sourceTokenPriceInUSD:0,toToken:void 0,toTokenAmount:"",toTokenPriceInUSD:0,networkPrice:"0",networkBalanceInUSD:"0",networkTokenSymbol:"",inputError:void 0,slippage:Fn.CONVERT_SLIPPAGE_TOLERANCE,tokens:void 0,popularTokens:void 0,suggestedTokens:void 0,foundTokens:void 0,myTokensWithBalance:void 0,tokensPriceMap:{},gasFee:"0",gasPriceInUSD:0,priceImpact:void 0,maxSlippage:void 0,providerFee:void 0},re=gn(Qr),Pg={state:re,subscribe(t){return Rr(re,()=>t(re))},subscribeKey(t,e){return zr(re,t,e)},getParams(){var f,d,p,g,m,y,A,E;const t=Q.state.activeCaipAddress,e=Q.state.activeChain,n=$e.getPlainAddress(t),r=Q.getActiveNetworkTokenAddress(),i=Ge.getConnectorId(e);if(!n)throw new Error("No address found to swap the tokens from.");const s=!((f=re.toToken)!=null&&f.address)||!((d=re.toToken)!=null&&d.decimals),c=!((p=re.sourceToken)!=null&&p.address)||!((g=re.sourceToken)!=null&&g.decimals)||!Lt.bigNumber(re.sourceTokenAmount).gt(0),u=!re.sourceTokenAmount;return{networkAddress:r,fromAddress:n,fromCaipAddress:t,sourceTokenAddress:(m=re.sourceToken)==null?void 0:m.address,toTokenAddress:(y=re.toToken)==null?void 0:y.address,toTokenAmount:re.toTokenAmount,toTokenDecimals:(A=re.toToken)==null?void 0:A.decimals,sourceTokenAmount:re.sourceTokenAmount,sourceTokenDecimals:(E=re.sourceToken)==null?void 0:E.decimals,invalidToToken:s,invalidSourceToken:c,invalidSourceTokenAmount:u,availableToSwap:t&&!s&&!c&&!u,isAuthConnector:i===he.CONNECTOR_ID.AUTH}},setSourceToken(t){if(!t){re.sourceToken=t,re.sourceTokenAmount="",re.sourceTokenPriceInUSD=0;return}re.sourceToken=t,this.setTokenPrice(t.address,"sourceToken")},setSourceTokenAmount(t){re.sourceTokenAmount=t},setToToken(t){if(!t){re.toToken=t,re.toTokenAmount="",re.toTokenPriceInUSD=0;return}re.toToken=t,this.setTokenPrice(t.address,"toToken")},setToTokenAmount(t){re.toTokenAmount=t?Lt.formatNumberToLocalString(t,pX):""},async setTokenPrice(t,e){let n=re.tokensPriceMap[t]||0;n||(re.loadingPrices=!0,n=await this.getAddressPrice(t)),e==="sourceToken"?re.sourceTokenPriceInUSD=n:e==="toToken"&&(re.toTokenPriceInUSD=n),re.loadingPrices&&(re.loadingPrices=!1),this.getParams().availableToSwap&&this.swapTokens()},switchTokens(){if(re.initializing||!re.initialized)return;const t=re.toToken?{...re.toToken}:void 0,e=re.sourceToken?{...re.sourceToken}:void 0,n=t&&re.toTokenAmount===""?"1":re.toTokenAmount;this.setSourceToken(t),this.setToToken(e),this.setSourceTokenAmount(n),this.setToTokenAmount(""),this.swapTokens()},resetState(){re.myTokensWithBalance=Qr.myTokensWithBalance,re.tokensPriceMap=Qr.tokensPriceMap,re.initialized=Qr.initialized,re.sourceToken=Qr.sourceToken,re.sourceTokenAmount=Qr.sourceTokenAmount,re.sourceTokenPriceInUSD=Qr.sourceTokenPriceInUSD,re.toToken=Qr.toToken,re.toTokenAmount=Qr.toTokenAmount,re.toTokenPriceInUSD=Qr.toTokenPriceInUSD,re.networkPrice=Qr.networkPrice,re.networkTokenSymbol=Qr.networkTokenSymbol,re.networkBalanceInUSD=Qr.networkBalanceInUSD,re.inputError=Qr.inputError},resetValues(){var n;const{networkAddress:t}=this.getParams(),e=(n=re.tokens)==null?void 0:n.find(r=>r.address===t);this.setSourceToken(e),this.setToToken(void 0)},getApprovalLoadingState(){return re.loadingApprovalTransaction},clearError(){re.transactionError=void 0},async initializeState(){if(!re.initializing){if(re.initializing=!0,!re.initialized)try{await this.fetchTokens(),re.initialized=!0}catch{re.initialized=!1,$t.showError("Failed to initialize swap"),ct.goBack()}re.initializing=!1}},async fetchTokens(){var n;const{networkAddress:t}=this.getParams();await this.getTokenList(),await this.getNetworkTokenPrice(),await this.getMyTokensWithBalance();const e=(n=re.tokens)==null?void 0:n.find(r=>r.address===t);e&&(re.networkTokenSymbol=e.symbol,this.setSourceToken(e),this.setSourceTokenAmount("1"))},async getTokenList(){const t=await ih.getTokenList();re.tokens=t,re.popularTokens=t.sort((e,n)=>e.symboln.symbol?1:0),re.suggestedTokens=t.filter(e=>!!Fn.SWAP_SUGGESTED_TOKENS.includes(e.symbol),{})},async getAddressPrice(t){var f,d;const e=re.tokensPriceMap[t];if(e)return e;const n=await Me.fetchTokenPrice({addresses:[t]}),r=(n==null?void 0:n.fungibles)||[],i=[...re.tokens||[],...re.myTokensWithBalance||[]],s=(f=i==null?void 0:i.find(p=>p.address===t))==null?void 0:f.symbol,c=((d=r.find(p=>p.symbol.toLowerCase()===(s==null?void 0:s.toLowerCase())))==null?void 0:d.price)||0,u=parseFloat(c.toString());return re.tokensPriceMap[t]=u,u},async getNetworkTokenPrice(){var i;const{networkAddress:t}=this.getParams(),n=(i=(await Me.fetchTokenPrice({addresses:[t]}).catch(()=>($t.showError("Failed to fetch network token price"),{fungibles:[]}))).fungibles)==null?void 0:i[0],r=(n==null?void 0:n.price.toString())||"0";re.tokensPriceMap[t]=parseFloat(r),re.networkTokenSymbol=(n==null?void 0:n.symbol)||"",re.networkPrice=r},async getMyTokensWithBalance(t){const e=await ih.getMyTokensWithBalance(t);e&&(await this.getInitialGasPrice(),this.setBalances(e))},setBalances(t){const{networkAddress:e}=this.getParams(),n=Q.state.activeCaipNetwork;if(!n)return;const r=t.find(i=>i.address===e);t.forEach(i=>{re.tokensPriceMap[i.address]=i.price||0}),re.myTokensWithBalance=t.filter(i=>i.address.startsWith(n.caipNetworkId)),re.networkBalanceInUSD=r?Lt.multiply(r.quantity.numeric,r.price).toString():"0"},async getInitialGasPrice(){var e,n;const t=await ih.fetchGasPrice();if(!t)return{gasPrice:null,gasPriceInUSD:null};switch((n=(e=Q.state)==null?void 0:e.activeCaipNetwork)==null?void 0:n.chainNamespace){case"solana":return re.gasFee=t.standard??"0",re.gasPriceInUSD=Lt.multiply(t.standard,re.networkPrice).div(1e9).toNumber(),{gasPrice:BigInt(re.gasFee),gasPriceInUSD:Number(re.gasPriceInUSD)};case"eip155":default:const r=t.standard??"0",i=BigInt(r),s=BigInt(N4),c=Sa.getGasPriceInUSD(re.networkPrice,s,i);return re.gasFee=r,re.gasPriceInUSD=c,{gasPrice:i,gasPriceInUSD:c}}},async swapTokens(){var s,c;const t=Oe.state.address,e=re.sourceToken,n=re.toToken,r=Lt.bigNumber(re.sourceTokenAmount).gt(0);if(r||this.setToTokenAmount(""),!n||!e||re.loadingPrices||!r)return;re.loadingQuote=!0;const i=Lt.bigNumber(re.sourceTokenAmount).times(10**e.decimals).round(0);try{const u=await Me.fetchSwapQuote({userAddress:t,from:e.address,to:n.address,gasPrice:re.gasFee,amount:i.toString()});re.loadingQuote=!1;const f=(c=(s=u==null?void 0:u.quotes)==null?void 0:s[0])==null?void 0:c.toAmount;if(!f){Vc.open({shortMessage:"Incorrect amount",longMessage:"Please enter a valid amount"},"error");return}const d=Lt.bigNumber(f).div(10**n.decimals).toString();this.setToTokenAmount(d),this.hasInsufficientToken(re.sourceTokenAmount,e.address)?re.inputError="Insufficient balance":(re.inputError=void 0,this.setTransactionDetails())}catch{re.loadingQuote=!1,re.inputError="Insufficient balance"}},async getTransaction(){const{fromCaipAddress:t,availableToSwap:e}=this.getParams(),n=re.sourceToken,r=re.toToken;if(!(!t||!e||!n||!r||re.loadingQuote))try{re.loadingBuildTransaction=!0;const i=await ih.fetchSwapAllowance({userAddress:t,tokenAddress:n.address,sourceTokenAmount:re.sourceTokenAmount,sourceTokenDecimals:n.decimals});let s;return i?s=await this.createSwapTransaction():s=await this.createAllowanceTransaction(),re.loadingBuildTransaction=!1,re.fetchError=!1,s}catch{ct.goBack(),$t.showError("Failed to check allowance"),re.loadingBuildTransaction=!1,re.approvalTransaction=void 0,re.swapTransaction=void 0,re.fetchError=!0;return}},async createAllowanceTransaction(){const{fromCaipAddress:t,fromAddress:e,sourceTokenAddress:n,toTokenAddress:r}=this.getParams();if(!(!t||!r)){if(!n)throw new Error("createAllowanceTransaction - No source token address found.");try{const i=await Me.generateApproveCalldata({from:n,to:r,userAddress:t}),s=await ot.estimateGas({address:e,to:$e.getPlainAddress(i.tx.to),data:i.tx.data}),c={data:i.tx.data,to:$e.getPlainAddress(i.tx.from),gas:s,gasPrice:BigInt(i.tx.eip155.gasPrice),value:BigInt(i.tx.value),toAmount:re.toTokenAmount};return re.swapTransaction=void 0,re.approvalTransaction={data:c.data,to:c.to,gas:c.gas??BigInt(0),gasPrice:c.gasPrice,value:c.value,toAmount:c.toAmount},{data:c.data,to:c.to,gas:c.gas??BigInt(0),gasPrice:c.gasPrice,value:c.value,toAmount:c.toAmount}}catch{ct.goBack(),$t.showError("Failed to create approval transaction"),re.approvalTransaction=void 0,re.swapTransaction=void 0,re.fetchError=!0;return}}},async createSwapTransaction(){var c;const{networkAddress:t,fromCaipAddress:e,sourceTokenAmount:n}=this.getParams(),r=re.sourceToken,i=re.toToken;if(!e||!n||!r||!i)return;const s=(c=ot.parseUnits(n,r.decimals))==null?void 0:c.toString();try{const u=await Me.generateSwapCalldata({userAddress:e,from:r.address,to:i.address,amount:s}),f=r.address===t,d=BigInt(u.tx.eip155.gas),p=BigInt(u.tx.eip155.gasPrice),g={data:u.tx.data,to:$e.getPlainAddress(u.tx.to),gas:d,gasPrice:p,value:BigInt(f?s??"0":"0"),toAmount:re.toTokenAmount};return re.gasPriceInUSD=Sa.getGasPriceInUSD(re.networkPrice,d,p),re.approvalTransaction=void 0,re.swapTransaction=g,g}catch{ct.goBack(),$t.showError("Failed to create transaction"),re.approvalTransaction=void 0,re.swapTransaction=void 0,re.fetchError=!0;return}},async sendTransactionForApproval(t){var i,s,c;const{fromAddress:e,isAuthConnector:n}=this.getParams();re.loadingApprovalTransaction=!0;const r="Approve limit increase in your wallet";n?ct.pushTransactionStack({view:null,goBack:!0,onSuccess(){$t.showLoading(r)}}):$t.showLoading(r);try{await ot.sendTransaction({address:e,to:t.to,data:t.data,gas:t.gas,gasPrice:BigInt(t.gasPrice),value:t.value,chainNamespace:"eip155"}),await this.swapTokens(),await this.getTransaction(),re.approvalTransaction=void 0,re.loadingApprovalTransaction=!1}catch(u){const f=u;re.transactionError=f==null?void 0:f.shortMessage,re.loadingApprovalTransaction=!1,$t.showError((f==null?void 0:f.shortMessage)||"Transaction error"),Ft.sendEvent({type:"track",event:"SWAP_APPROVAL_ERROR",properties:{message:(f==null?void 0:f.shortMessage)||(f==null?void 0:f.message)||"Unknown",network:((i=Q.state.activeCaipNetwork)==null?void 0:i.caipNetworkId)||"",swapFromToken:((s=this.state.sourceToken)==null?void 0:s.symbol)||"",swapToToken:((c=this.state.toToken)==null?void 0:c.symbol)||"",swapFromAmount:this.state.sourceTokenAmount||"",swapToAmount:this.state.toTokenAmount||"",isSmartAccount:Oe.state.preferredAccountType===yn.ACCOUNT_TYPES.SMART_ACCOUNT}})}},async sendTransactionForSwap(t){var c,u,f,d,p,g,m,y,A,E,x,O;if(!t)return;const{fromAddress:e,toTokenAmount:n,isAuthConnector:r}=this.getParams();re.loadingTransaction=!0;const i=`Swapping ${(c=re.sourceToken)==null?void 0:c.symbol} to ${Lt.formatNumberToLocalString(n,3)} ${(u=re.toToken)==null?void 0:u.symbol}`,s=`Swapped ${(f=re.sourceToken)==null?void 0:f.symbol} to ${Lt.formatNumberToLocalString(n,3)} ${(d=re.toToken)==null?void 0:d.symbol}`;r?ct.pushTransactionStack({view:"Account",goBack:!1,onSuccess(){$t.showLoading(i),Pg.resetState()}}):$t.showLoading("Confirm transaction in your wallet");try{const I=[(p=re.sourceToken)==null?void 0:p.address,(g=re.toToken)==null?void 0:g.address].join(","),M=await ot.sendTransaction({address:e,to:t.to,data:t.data,gas:t.gas,gasPrice:BigInt(t.gasPrice),value:t.value,chainNamespace:"eip155"});return re.loadingTransaction=!1,$t.showSuccess(s),Ft.sendEvent({type:"track",event:"SWAP_SUCCESS",properties:{network:((m=Q.state.activeCaipNetwork)==null?void 0:m.caipNetworkId)||"",swapFromToken:((y=this.state.sourceToken)==null?void 0:y.symbol)||"",swapToToken:((A=this.state.toToken)==null?void 0:A.symbol)||"",swapFromAmount:this.state.sourceTokenAmount||"",swapToAmount:this.state.toTokenAmount||"",isSmartAccount:Oe.state.preferredAccountType===yn.ACCOUNT_TYPES.SMART_ACCOUNT}}),Pg.resetState(),r||ct.replace("Account"),Pg.getMyTokensWithBalance(I),M}catch(I){const M=I;re.transactionError=M==null?void 0:M.shortMessage,re.loadingTransaction=!1,$t.showError((M==null?void 0:M.shortMessage)||"Transaction error"),Ft.sendEvent({type:"track",event:"SWAP_ERROR",properties:{message:(M==null?void 0:M.shortMessage)||(M==null?void 0:M.message)||"Unknown",network:((E=Q.state.activeCaipNetwork)==null?void 0:E.caipNetworkId)||"",swapFromToken:((x=this.state.sourceToken)==null?void 0:x.symbol)||"",swapToToken:((O=this.state.toToken)==null?void 0:O.symbol)||"",swapFromAmount:this.state.sourceTokenAmount||"",swapToAmount:this.state.toTokenAmount||"",isSmartAccount:Oe.state.preferredAccountType===yn.ACCOUNT_TYPES.SMART_ACCOUNT}});return}},hasInsufficientToken(t,e){const n=Sa.isInsufficientSourceTokenForSwap(t,e,re.myTokensWithBalance);let r=!0;return Oe.state.preferredAccountType===yn.ACCOUNT_TYPES.SMART_ACCOUNT?r=!1:r=Sa.isInsufficientNetworkTokenForGas(re.networkBalanceInUSD,re.gasPriceInUSD),r||n},setTransactionDetails(){const{toTokenAddress:t,toTokenDecimals:e}=this.getParams();!t||!e||(re.gasPriceInUSD=Sa.getGasPriceInUSD(re.networkPrice,BigInt(re.gasFee),BigInt(N4)),re.priceImpact=Sa.getPriceImpact({sourceTokenAmount:re.sourceTokenAmount,sourceTokenPriceInUSD:re.sourceTokenPriceInUSD,toTokenPriceInUSD:re.toTokenPriceInUSD,toTokenAmount:re.toTokenAmount}),re.maxSlippage=Sa.getMaxSlippage(re.slippage,re.toTokenAmount),re.providerFee=Sa.getProviderFee(re.sourceTokenAmount))}},Rs=gn({currentTab:0,tokenBalance:[],smartAccountDeployed:!1,addressLabels:new Map,allAccounts:[]}),Oe={state:Rs,replaceState(t){t&&Object.assign(Rs,Zc(t))},subscribe(t){return Q.subscribeChainProp("accountState",e=>{if(e)return t(e)})},subscribeKey(t,e,n){let r;return Q.subscribeChainProp("accountState",i=>{if(i){const s=i[t];r!==s&&(r=s,e(s))}},n)},setStatus(t,e){Q.setAccountProp("status",t,e)},getCaipAddress(t){return Q.getAccountProp("caipAddress",t)},setCaipAddress(t,e){const n=t?$e.getPlainAddress(t):void 0;e===Q.state.activeChain&&(Q.state.activeCaipAddress=t),Q.setAccountProp("caipAddress",t,e),Q.setAccountProp("address",n,e)},setBalance(t,e,n){Q.setAccountProp("balance",t,n),Q.setAccountProp("balanceSymbol",e,n)},setProfileName(t,e){Q.setAccountProp("profileName",t,e)},setProfileImage(t,e){Q.setAccountProp("profileImage",t,e)},setUser(t,e){Q.setAccountProp("user",t,e)},setAddressExplorerUrl(t,e){Q.setAccountProp("addressExplorerUrl",t,e)},setSmartAccountDeployed(t,e){Q.setAccountProp("smartAccountDeployed",t,e)},setCurrentTab(t){Q.setAccountProp("currentTab",t,Q.state.activeChain)},setTokenBalance(t,e){t&&Q.setAccountProp("tokenBalance",t,e)},setShouldUpdateToAddress(t,e){Q.setAccountProp("shouldUpdateToAddress",t,e)},setAllAccounts(t,e){Q.setAccountProp("allAccounts",t,e)},addAddressLabel(t,e,n){const r=Q.getAccountProp("addressLabels",n)||new Map;r.set(t,e),Q.setAccountProp("addressLabels",r,n)},removeAddressLabel(t,e){const n=Q.getAccountProp("addressLabels",e)||new Map;n.delete(t),Q.setAccountProp("addressLabels",n,e)},setConnectedWalletInfo(t,e){Q.setAccountProp("connectedWalletInfo",t,e,!1)},setPreferredAccountType(t,e){Q.setAccountProp("preferredAccountType",t,e)},setSocialProvider(t,e){t&&Q.setAccountProp("socialProvider",t,e)},setSocialWindow(t,e){Q.setAccountProp("socialWindow",t?Zc(t):void 0,e)},setFarcasterUrl(t,e){Q.setAccountProp("farcasterUrl",t,e)},async fetchTokenBalance(t){var s,c;Rs.balanceLoading=!0;const e=(s=Q.state.activeCaipNetwork)==null?void 0:s.caipNetworkId,n=(c=Q.state.activeCaipNetwork)==null?void 0:c.chainNamespace,r=Q.state.activeCaipAddress,i=r?$e.getPlainAddress(r):void 0;if(Rs.lastRetry&&!$e.isAllowedRetry(Rs.lastRetry,30*Fn.ONE_SEC_MS))return Rs.balanceLoading=!1,[];try{if(i&&e&&n){const u=await Me.getBalance(i,e),f=u.balances.filter(d=>d.quantity.decimals!=="0");return this.setTokenBalance(f,n),Pg.setBalances(ih.mapBalancesToSwapTokens(u.balances)),Rs.lastRetry=void 0,Rs.balanceLoading=!1,f}}catch(u){Rs.lastRetry=Date.now(),t==null||t(u),$t.showError("Token Balance Unavailable")}finally{Rs.balanceLoading=!1}return[]},resetAccount(t){Q.resetAccount(t)}},gX=$e.getApiUrl(),xr=new xm({baseUrl:gX,clientId:null}),mX="40",I4="4",bX=20,Ln=gn({page:1,count:0,featured:[],recommended:[],wallets:[],search:[],isAnalyticsEnabled:!1,excludedRDNS:[],isFetchingRecommendedWallets:!1}),gt={state:Ln,subscribeKey(t,e){return zr(Ln,t,e)},_getSdkProperties(){const{projectId:t,sdkType:e,sdkVersion:n}=be.state;return{projectId:t,st:e||"appkit",sv:n||"html-wagmi-4.2.2"}},_filterOutExtensions(t){return be.state.isUniversalProvider?t.filter(e=>!!(e.mobile_link||e.desktop_link||e.webapp_link)):t},async _fetchWalletImage(t){const e=`${xr.baseUrl}/getWalletImage/${t}`,n=await xr.getBlob({path:e,params:gt._getSdkProperties()});os.setWalletImage(t,URL.createObjectURL(n))},async _fetchNetworkImage(t){const e=`${xr.baseUrl}/public/getAssetImage/${t}`,n=await xr.getBlob({path:e,params:gt._getSdkProperties()});os.setNetworkImage(t,URL.createObjectURL(n))},async _fetchConnectorImage(t){const e=`${xr.baseUrl}/public/getAssetImage/${t}`,n=await xr.getBlob({path:e,params:gt._getSdkProperties()});os.setConnectorImage(t,URL.createObjectURL(n))},async _fetchCurrencyImage(t){const e=`${xr.baseUrl}/public/getCurrencyImage/${t}`,n=await xr.getBlob({path:e,params:gt._getSdkProperties()});os.setCurrencyImage(t,URL.createObjectURL(n))},async _fetchTokenImage(t){const e=`${xr.baseUrl}/public/getTokenImage/${t}`,n=await xr.getBlob({path:e,params:gt._getSdkProperties()});os.setTokenImage(t,URL.createObjectURL(n))},async fetchNetworkImages(){const t=Q.getAllRequestedCaipNetworks(),e=t==null?void 0:t.map(({assets:n})=>n==null?void 0:n.imageId).filter(Boolean).filter(n=>!K8.getNetworkImageById(n));e&&await Promise.allSettled(e.map(n=>gt._fetchNetworkImage(n)))},async fetchConnectorImages(){const{connectors:t}=Ge.state,e=t.map(({imageId:n})=>n).filter(Boolean);await Promise.allSettled(e.map(n=>gt._fetchConnectorImage(n)))},async fetchCurrencyImages(t=[]){await Promise.allSettled(t.map(e=>gt._fetchCurrencyImage(e)))},async fetchTokenImages(t=[]){await Promise.allSettled(t.map(e=>gt._fetchTokenImage(e)))},async fetchFeaturedWallets(){const{featuredWalletIds:t}=be.state;if(t!=null&&t.length){const{data:e}=await xr.get({path:"/getWallets",params:{...gt._getSdkProperties(),page:"1",entries:t!=null&&t.length?String(t.length):I4,include:t==null?void 0:t.join(",")}});e.sort((r,i)=>t.indexOf(r.id)-t.indexOf(i.id));const n=e.map(r=>r.image_id).filter(Boolean);await Promise.allSettled(n.map(r=>gt._fetchWalletImage(r))),Ln.featured=e}},async fetchRecommendedWallets(){try{Ln.isFetchingRecommendedWallets=!0;const{includeWalletIds:t,excludeWalletIds:e,featuredWalletIds:n}=be.state,r=[...e??[],...n??[]].filter(Boolean),i=Q.getRequestedCaipNetworkIds().join(","),{data:s,count:c}=await xr.get({path:"/getWallets",params:{...gt._getSdkProperties(),page:"1",chains:i,entries:I4,include:t==null?void 0:t.join(","),exclude:r==null?void 0:r.join(",")}}),u=Ne.getRecentWallets(),f=s.map(p=>p.image_id).filter(Boolean),d=u.map(p=>p.image_id).filter(Boolean);await Promise.allSettled([...f,...d].map(p=>gt._fetchWalletImage(p))),Ln.recommended=s,Ln.count=c??0}catch{}finally{Ln.isFetchingRecommendedWallets=!1}},async fetchWallets({page:t}){const{includeWalletIds:e,excludeWalletIds:n,featuredWalletIds:r}=be.state,i=Q.getRequestedCaipNetworkIds().join(","),s=[...Ln.recommended.map(({id:d})=>d),...n??[],...r??[]].filter(Boolean),{data:c,count:u}=await xr.get({path:"/getWallets",params:{...gt._getSdkProperties(),page:String(t),entries:mX,chains:i,include:e==null?void 0:e.join(","),exclude:s.join(",")}}),f=c.slice(0,bX).map(d=>d.image_id).filter(Boolean);await Promise.allSettled(f.map(d=>gt._fetchWalletImage(d))),Ln.wallets=$e.uniqueBy([...Ln.wallets,...gt._filterOutExtensions(c)],"id"),Ln.count=u>Ln.count?u:Ln.count,Ln.page=t},async initializeExcludedWalletRdns({ids:t}){const e=Q.getRequestedCaipNetworkIds().join(","),{data:n}=await xr.get({path:"/getWallets",params:{...gt._getSdkProperties(),page:"1",entries:String(t.length),chains:e,include:t==null?void 0:t.join(",")}});n&&n.forEach(r=>{r!=null&&r.rdns&&Ln.excludedRDNS.push(r.rdns)})},async searchWallet({search:t,badge:e}){const{includeWalletIds:n,excludeWalletIds:r}=be.state;Ln.search=[];const i=Q.getRequestedCaipNetworkIds().join(","),{data:s}=await xr.get({path:"/getWallets",params:{...gt._getSdkProperties(),page:"1",entries:"100",search:t==null?void 0:t.trim(),badge_type:e,chains:i,include:n==null?void 0:n.join(","),exclude:r==null?void 0:r.join(",")}});Ft.sendEvent({type:"track",event:"SEARCH_WALLET",properties:{badge:e??"",search:t??""}});const c=s.map(u=>u.image_id).filter(Boolean);await Promise.allSettled([...c.map(u=>gt._fetchWalletImage(u)),$e.wait(300)]),Ln.search=gt._filterOutExtensions(s)},prefetch({fetchConnectorImages:t=!0,fetchFeaturedWallets:e=!0,fetchRecommendedWallets:n=!0,fetchNetworkImages:r=!0}={}){if(Oe.state.status==="connected")return Promise.resolve();if(Ln.prefetchPromise)return Ln.prefetchPromise;const i=[t&>.fetchConnectorImages(),e&>.fetchFeaturedWallets(),n&>.fetchRecommendedWallets(),r&>.fetchNetworkImages()].filter(Boolean);return Ln.prefetchPromise=Promise.allSettled(i),Ln.prefetchPromise},prefetchAnalyticsConfig(){var t;(t=be.state.features)!=null&&t.analytics&>.fetchAnalyticsConfig()},async fetchAnalyticsConfig(){try{const{isAnalyticsEnabled:t}=await xr.get({path:"/getAnalyticsConfig",params:gt._getSdkProperties()});be.setFeatures({analytics:t})}catch{be.setFeatures({analytics:!1})}}},Wr=gn({loading:!1,loadingNamespaceMap:new Map,open:!1,shake:!1,namespace:void 0}),Kn={state:Wr,subscribe(t){return Rr(Wr,()=>t(Wr))},subscribeKey(t,e){return zr(Wr,t,e)},async open(t){var r;ot.state.wcBasic?gt.prefetch({fetchNetworkImages:!1,fetchConnectorImages:!1}):await gt.prefetch(),t!=null&&t.namespace?(Ge.setFilterByNamespace(t.namespace),await Q.switchActiveNamespace(t.namespace),Kn.setLoading(!0,t.namespace)):Kn.setLoading(!0);const e=(r=Q.getAccountData(t==null?void 0:t.namespace))==null?void 0:r.caipAddress;Q.state.noAdapters&&!e?$e.isMobile()?ct.reset("AllWallets"):ct.reset("ConnectingWalletConnectBasic"):t!=null&&t.view?ct.reset(t.view):e?ct.reset("Account"):ct.reset("Connect"),Wr.open=!0,Ra.set({open:!0}),Ft.sendEvent({type:"track",event:"MODAL_OPEN",properties:{connected:!!e}})},close(){const t=be.state.enableEmbedded,e=!!Q.state.activeCaipAddress;Wr.open&&Ft.sendEvent({type:"track",event:"MODAL_CLOSE",properties:{connected:e}}),Wr.open=!1,Kn.clearLoading(),t?e?ct.replace("Account"):ct.push("Connect"):Ra.set({open:!1}),Ge.clearNamespaceFilter(),ot.resetUri()},setLoading(t,e){e&&Wr.loadingNamespaceMap.set(e,t),Wr.loading=t,Ra.set({loading:t})},clearLoading(){Wr.loadingNamespaceMap.clear(),Wr.loading=!1},shake(){Wr.shake||(Wr.shake=!0,setTimeout(()=>{Wr.shake=!1},500))}},O4=2147483648,yX={convertEVMChainIdToCoinType(t){if(t>=O4)throw new Error("Invalid chainId");return(O4|t)>>>0}},Pi=gn({suggestions:[],loading:!1}),M9={state:Pi,subscribe(t){return Rr(Pi,()=>t(Pi))},subscribeKey(t,e){return zr(Pi,t,e)},async resolveName(t){var e,n;try{return await Me.lookupEnsName(t)}catch(r){const i=r;throw new Error(((n=(e=i==null?void 0:i.reasons)==null?void 0:e[0])==null?void 0:n.description)||"Error resolving name")}},async isNameRegistered(t){try{return await Me.lookupEnsName(t),!0}catch{return!1}},async getSuggestions(t){try{Pi.loading=!0,Pi.suggestions=[];const e=await Me.getEnsNameSuggestions(t);return Pi.suggestions=e.suggestions.map(n=>({...n,name:n.name}))||[],Pi.suggestions}catch(e){const n=this.parseEnsApiError(e,"Error fetching name suggestions");throw new Error(n)}finally{Pi.loading=!1}},async getNamesForAddress(t){try{if(!Q.state.activeCaipNetwork)return[];const n=Ne.getEnsFromCacheForAddress(t);if(n)return n;const r=await Me.reverseLookupEnsName({address:t});return Ne.updateEnsCache({address:t,ens:r,timestamp:Date.now()}),r}catch(e){const n=this.parseEnsApiError(e,"Error fetching names for address");throw new Error(n)}},async registerName(t){const e=Q.state.activeCaipNetwork;if(!e)throw new Error("Network not found");const n=Oe.state.address,r=Ge.getAuthConnector();if(!n||!r)throw new Error("Address or auth connector not found");Pi.loading=!0;try{const i=JSON.stringify({name:t,attributes:{},timestamp:Math.floor(Date.now()/1e3)});ct.pushTransactionStack({view:"RegisterAccountNameSuccess",goBack:!1,replace:!0,onCancel(){Pi.loading=!1}});const s=await ot.signMessage(i),c=e.id;if(!c)throw new Error("Network not found");const u=yX.convertEVMChainIdToCoinType(Number(c));await Me.registerEnsName({coinType:u,address:n,signature:s,message:i}),Oe.setProfileName(t,e.chainNamespace),ct.replace("RegisterAccountNameSuccess")}catch(i){const s=this.parseEnsApiError(i,`Error registering name ${t}`);throw ct.replace("RegisterAccountName"),new Error(s)}finally{Pi.loading=!1}},validateName(t){return/^[a-zA-Z0-9-]{4,}$/u.test(t)},parseEnsApiError(t,e){var r,i;const n=t;return((i=(r=n==null?void 0:n.reasons)==null?void 0:r[0])==null?void 0:i.description)||e}};var F1={exports:{}},j1={};/** + * @license React + * use-sync-external-store-shim.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var R4;function vX(){if(R4)return j1;R4=1;var t=gd();function e(g,m){return g===m&&(g!==0||1/g===1/m)||g!==g&&m!==m}var n=typeof Object.is=="function"?Object.is:e,r=t.useState,i=t.useEffect,s=t.useLayoutEffect,c=t.useDebugValue;function u(g,m){var y=m(),A=r({inst:{value:y,getSnapshot:m}}),E=A[0].inst,x=A[1];return s(function(){E.value=y,E.getSnapshot=m,f(E)&&x({inst:E})},[g,y,m]),i(function(){return f(E)&&x({inst:E}),g(function(){f(E)&&x({inst:E})})},[g]),c(y),y}function f(g){var m=g.getSnapshot;g=g.value;try{var y=m();return!n(g,y)}catch{return!0}}function d(g,m){return m()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:u;return j1.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:p,j1}var D4;function wX(){return D4||(D4=1,F1.exports=vX()),F1.exports}var EX=wX();const AX=pd(EX),_X={},{use:P4}=t7,{useSyncExternalStore:CX}=AX,SX=(t,e)=>{const n=Le.useRef();Le.useEffect(()=>{n.current=h7(t,e)}),Le.useDebugValue(n.current)},TX=new WeakMap;function k9(t,e){const r=Le.useRef(),i=Le.useRef();let s=!0;const c=CX(Le.useCallback(d=>{const p=Rr(t,d);return d(),p},[t,void 0]),()=>{const d=Yc(t,P4);try{if(!s&&r.current&&i.current&&!H8(r.current,d,i.current,new WeakMap))return r.current}catch{}return d},()=>Yc(t,P4));s=!1;const u=new WeakMap;Le.useEffect(()=>{r.current=c,i.current=u}),(_X?"production":void 0)!=="production"&&SX(c,u);const f=Le.useMemo(()=>new WeakMap,[]);return q8(c,u,f,TX)}function xX(){const{activeCaipNetwork:t}=k9(Q.state);return{caipNetwork:t,chainId:t==null?void 0:t.id,caipNetworkId:t==null?void 0:t.caipNetworkId}}function B2(t){var s;const e=k9(Q.state),n=e.activeChain;if(!n)return{allAccounts:[],address:void 0,caipAddress:void 0,status:void 0,isConnected:!1,embeddedWalletInfo:void 0};const r=(s=e.chains.get(n))==null?void 0:s.accountState,i=Ge.getAuthConnector(n);return{allAccounts:(r==null?void 0:r.allAccounts)||[],caipAddress:r==null?void 0:r.caipAddress,address:$e.getPlainAddress(r==null?void 0:r.caipAddress),isConnected:!!(r!=null&&r.caipAddress),status:r==null?void 0:r.status,embeddedWalletInfo:i?{user:r==null?void 0:r.user,authProvider:(r==null?void 0:r.socialProvider)||"email",accountType:r==null?void 0:r.preferredAccountType,isSmartAccountDeployed:!!(r!=null&&r.smartAccountDeployed)}:void 0}}function NX(){async function t(){await ot.disconnect()}return{disconnect:t}}const pn={METMASK_CONNECTOR_NAME:"MetaMask",TRUST_CONNECTOR_NAME:"Trust Wallet",SOLFLARE_CONNECTOR_NAME:"Solflare",PHANTOM_CONNECTOR_NAME:"Phantom",COIN98_CONNECTOR_NAME:"Coin98",MAGIC_EDEN_CONNECTOR_NAME:"Magic Eden",BACKPACK_CONNECTOR_NAME:"Backpack",BITGET_CONNECTOR_NAME:"Bitget Wallet",FRONTIER_CONNECTOR_NAME:"Frontier",XVERSE_CONNECTOR_NAME:"Xverse Wallet",LEATHER_CONNECTOR_NAME:"Leather",EIP155:"eip155",ADD_CHAIN_METHOD:"wallet_addEthereumChain",EIP6963_ANNOUNCE_EVENT:"eip6963:announceProvider",EIP6963_REQUEST_EVENT:"eip6963:requestProvider",CONNECTOR_RDNS_MAP:{coinbaseWallet:"com.coinbase.wallet",coinbaseWalletSDK:"com.coinbase.wallet"},CONNECTOR_TYPE_EXTERNAL:"EXTERNAL",CONNECTOR_TYPE_WALLET_CONNECT:"WALLET_CONNECT",CONNECTOR_TYPE_INJECTED:"INJECTED",CONNECTOR_TYPE_ANNOUNCED:"ANNOUNCED",CONNECTOR_TYPE_AUTH:"AUTH",CONNECTOR_TYPE_MULTI_CHAIN:"MULTI_CHAIN",CONNECTOR_TYPE_W3M_AUTH:"ID_AUTH"},Lo={ConnectorExplorerIds:{[he.CONNECTOR_ID.COINBASE]:"fd20dc426fb37566d803205b19bbc1d4096b248ac04548e3cfb6b3a38bd033aa",[he.CONNECTOR_ID.COINBASE_SDK]:"fd20dc426fb37566d803205b19bbc1d4096b248ac04548e3cfb6b3a38bd033aa",[he.CONNECTOR_ID.SAFE]:"225affb176778569276e484e1b92637ad061b01e13a048b35a9d280c3b58970f",[he.CONNECTOR_ID.LEDGER]:"19177a98252e07ddfc9af2083ba8e07ef627cb6103467ffebb3f8f4205fd7927",[he.CONNECTOR_ID.OKX]:"971e689d0a5be527bac79629b4ee9b925e82208e5168b733496a09c0faed0709",[pn.METMASK_CONNECTOR_NAME]:"c57ca95b47569778a828d19178114f4db188b89b763c899ba0be274e97267d96",[pn.TRUST_CONNECTOR_NAME]:"4622a2b2d6af1c9844944291e5e7351a6aa24cd7b23099efac1b2fd875da31a0",[pn.SOLFLARE_CONNECTOR_NAME]:"1ca0bdd4747578705b1939af023d120677c64fe6ca76add81fda36e350605e79",[pn.PHANTOM_CONNECTOR_NAME]:"a797aa35c0fadbfc1a53e7f675162ed5226968b44a19ee3d24385c64d1d3c393",[pn.COIN98_CONNECTOR_NAME]:"2a3c89040ac3b723a1972a33a125b1db11e258a6975d3a61252cd64e6ea5ea01",[pn.MAGIC_EDEN_CONNECTOR_NAME]:"8b830a2b724a9c3fbab63af6f55ed29c9dfa8a55e732dc88c80a196a2ba136c6",[pn.BACKPACK_CONNECTOR_NAME]:"2bd8c14e035c2d48f184aaa168559e86b0e3433228d3c4075900a221785019b0",[pn.BITGET_CONNECTOR_NAME]:"38f5d18bd8522c244bdd70cb4a68e0e718865155811c043f052fb9f1c51de662",[pn.FRONTIER_CONNECTOR_NAME]:"85db431492aa2e8672e93f4ea7acf10c88b97b867b0d373107af63dc4880f041",[pn.XVERSE_CONNECTOR_NAME]:"2a87d74ae02e10bdd1f51f7ce6c4e1cc53cd5f2c0b6b5ad0d7b3007d2b13de7b",[pn.LEATHER_CONNECTOR_NAME]:"483afe1df1df63daf313109971ff3ef8356ddf1cc4e45877d205eee0b7893a13"},NetworkImageIds:{1:"ba0ba0cd-17c6-4806-ad93-f9d174f17900",42161:"3bff954d-5cb0-47a0-9a23-d20192e74600",43114:"30c46e53-e989-45fb-4549-be3bd4eb3b00",56:"93564157-2e8e-4ce7-81df-b264dbee9b00",250:"06b26297-fe0c-4733-5d6b-ffa5498aac00",10:"ab9c186a-c52f-464b-2906-ca59d760a400",137:"41d04d42-da3b-4453-8506-668cc0727900",5e3:"e86fae9b-b770-4eea-e520-150e12c81100",295:"6a97d510-cac8-4e58-c7ce-e8681b044c00",11155111:"e909ea0a-f92a-4512-c8fc-748044ea6800",84532:"a18a7ecd-e307-4360-4746-283182228e00",1301:"4eeea7ef-0014-4649-5d1d-07271a80f600",130:"2257980a-3463-48c6-cbac-a42d2a956e00",10143:"0a728e83-bacb-46db-7844-948f05434900",100:"02b53f6a-e3d4-479e-1cb4-21178987d100",9001:"f926ff41-260d-4028-635e-91913fc28e00",324:"b310f07f-4ef7-49f3-7073-2a0a39685800",314:"5a73b3dd-af74-424e-cae0-0de859ee9400",4689:"34e68754-e536-40da-c153-6ef2e7188a00",1088:"3897a66d-40b9-4833-162f-a2c90531c900",1284:"161038da-44ae-4ec7-1208-0ea569454b00",1285:"f1d73bb6-5450-4e18-38f7-fb6484264a00",7777777:"845c60df-d429-4991-e687-91ae45791600",42220:"ab781bbc-ccc6-418d-d32d-789b15da1f00",8453:"7289c336-3981-4081-c5f4-efc26ac64a00",1313161554:"3ff73439-a619-4894-9262-4470c773a100",2020:"b8101fc0-9c19-4b6f-ec65-f6dfff106e00",2021:"b8101fc0-9c19-4b6f-ec65-f6dfff106e00",80094:"e329c2c9-59b0-4a02-83e4-212ff3779900","5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp":"a1b58899-f671-4276-6a5e-56ca5bd59700","4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z":"a1b58899-f671-4276-6a5e-56ca5bd59700",EtWTRABZaYq6iMfeYKouRu166VU2xqa1:"a1b58899-f671-4276-6a5e-56ca5bd59700","000000000019d6689c085ae165831e93":"21c895fa-e105-4829-9434-378bb54fa600","000000000933ea01ad0ee984209779ba":"220bcb01-ba47-41d3-fe5b-e29bbc4a4b00"},ConnectorImageIds:{[he.CONNECTOR_ID.COINBASE]:"0c2840c3-5b04-4c44-9661-fbd4b49e1800",[he.CONNECTOR_ID.COINBASE_SDK]:"0c2840c3-5b04-4c44-9661-fbd4b49e1800",[he.CONNECTOR_ID.SAFE]:"461db637-8616-43ce-035a-d89b8a1d5800",[he.CONNECTOR_ID.LEDGER]:"54a1aa77-d202-4f8d-0fb2-5d2bb6db0300",[he.CONNECTOR_ID.WALLET_CONNECT]:"ef1a1fcf-7fe8-4d69-bd6d-fda1345b4400",[he.CONNECTOR_ID.INJECTED]:"07ba87ed-43aa-4adf-4540-9e6a2b9cae00"},ConnectorNamesMap:{[he.CONNECTOR_ID.INJECTED]:"Browser Wallet",[he.CONNECTOR_ID.WALLET_CONNECT]:"WalletConnect",[he.CONNECTOR_ID.COINBASE]:"Coinbase",[he.CONNECTOR_ID.COINBASE_SDK]:"Coinbase",[he.CONNECTOR_ID.LEDGER]:"Ledger",[he.CONNECTOR_ID.SAFE]:"Safe"},ConnectorTypesMap:{[he.CONNECTOR_ID.INJECTED]:"INJECTED",[he.CONNECTOR_ID.WALLET_CONNECT]:"WALLET_CONNECT",[he.CONNECTOR_ID.EIP6963]:"ANNOUNCED",[he.CONNECTOR_ID.AUTH]:"AUTH"}},U9={getCaipTokens(t){if(!t)return;const e={};return Object.entries(t).forEach(([n,r])=>{e[`${pn.EIP155}:${n}`]=r}),e},isLowerCaseMatch(t,e){return(t==null?void 0:t.toLowerCase())===(e==null?void 0:e.toLowerCase())}},Pl={UniversalProviderErrors:{UNAUTHORIZED_DOMAIN_NOT_ALLOWED:{message:"Unauthorized: origin not allowed",alertErrorKey:"INVALID_APP_CONFIGURATION"},JWT_VALIDATION_ERROR:{message:"JWT validation error: JWT Token is not yet valid",alertErrorKey:"JWT_TOKEN_NOT_VALID"},INVALID_KEY:{message:"Unauthorized: invalid key",alertErrorKey:"INVALID_PROJECT_ID"}},ALERT_ERRORS:{SWITCH_NETWORK_NOT_FOUND:{shortMessage:"Network Not Found",longMessage:"Network not found - please make sure it is included in 'networks' array in createAppKit function"},INVALID_APP_CONFIGURATION:{shortMessage:"Invalid App Configuration",longMessage:()=>`Origin ${IX()?window.origin:"unknown"} not found on Allowlist - update configuration on cloud.reown.com`},SOCIALS_TIMEOUT:{shortMessage:"Invalid App Configuration",longMessage:()=>"There was an issue loading the embedded wallet. Please verify that your domain is allowed at cloud.reown.com"},JWT_TOKEN_NOT_VALID:{shortMessage:"Session Expired",longMessage:"Invalid session found on UniversalProvider - please check your time settings and connect again"},INVALID_PROJECT_ID:{shortMessage:"Invalid App Configuration",longMessage:"Invalid Project ID - update configuration"},PROJECT_ID_NOT_CONFIGURED:{shortMessage:"Project ID Not Configured",longMessage:"Project ID Not Configured - update configuration on cloud.reown.com"}}};function IX(){return typeof window<"u"}const OX={createLogger(t,e="error"){const n=yd({level:e}),{logger:r}=jE({opts:n});return r.error=(...i)=>{for(const s of i)if(s instanceof Error){t(s,...i);return}t(void 0,...i)},r}},RX="rpc.walletconnect.org";function DX(t,e){const n=new URL("https://rpc.walletconnect.org/v1/");return n.searchParams.set("chainId",t),n.searchParams.set("projectId",e),n.toString()}const M4=["near:mainnet","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","eip155:1101","eip155:56","eip155:42161","eip155:7777777","eip155:59144","eip155:324","solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1","eip155:5000","solana:4sgjmw1sunhzsxgspuhpqldx6wiyjntz","eip155:80084","eip155:5003","eip155:100","eip155:8453","eip155:42220","eip155:1313161555","eip155:17000","eip155:1","eip155:300","eip155:1313161554","eip155:1329","eip155:84532","eip155:421614","eip155:11155111","eip155:8217","eip155:43114","solana:4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z","eip155:999999999","eip155:11155420","eip155:80002","eip155:97","eip155:43113","eip155:137","eip155:10","eip155:1301","bip122:000000000019d6689c085ae165831e93","bip122:000000000933ea01ad0ee984209779ba"],Wc={extendRpcUrlWithProjectId(t,e){let n=!1;try{n=new URL(t).host===RX}catch{n=!1}if(n){const r=new URL(t);return r.searchParams.has("projectId")||r.searchParams.set("projectId",e),r.toString()}return t},isCaipNetwork(t){return"chainNamespace"in t&&"caipNetworkId"in t},getChainNamespace(t){return this.isCaipNetwork(t)?t.chainNamespace:he.CHAIN.EVM},getCaipNetworkId(t){return this.isCaipNetwork(t)?t.caipNetworkId:`${he.CHAIN.EVM}:${t.id}`},getDefaultRpcUrl(t,e,n){var i,s,c;const r=(c=(s=(i=t.rpcUrls)==null?void 0:i.default)==null?void 0:s.http)==null?void 0:c[0];return M4.includes(e)?DX(e,n):r||""},extendCaipNetwork(t,{customNetworkImageUrls:e,projectId:n,customRpc:r}){var f,d,p,g;const i=this.getCaipNetworkId(t),s=this.getChainNamespace(t),c=(p=(d=(f=t==null?void 0:t.rpcUrls)==null?void 0:f.chainDefault)==null?void 0:d.http)==null?void 0:p[0];let u="";return r?u=((g=t.rpcUrls.default.http)==null?void 0:g[0])||"":u=this.getDefaultRpcUrl(t,i,n),{...t,chainNamespace:s,caipNetworkId:i,assets:{imageId:Lo.NetworkImageIds[t.id],imageUrl:e==null?void 0:e[t.id]},rpcUrls:{...t.rpcUrls,default:{http:[u]},chainDefault:{http:[c||t.rpcUrls.default.http[0]||""]}}}},extendCaipNetworks(t,{customNetworkImageUrls:e,projectId:n,customRpcChainIds:r}){return t.map(i=>Wc.extendCaipNetwork(i,{customNetworkImageUrls:e,projectId:n,customRpc:r==null?void 0:r.includes(i.id)}))},getViemTransport(t){var n;const e=(n=t.rpcUrls.default.http)==null?void 0:n[0];return M4.includes(t.caipNetworkId)?PZ([B1(e,{fetchOptions:{headers:{"Content-Type":"text/plain"}}}),B1(e)]):B1(e)}},k4={transactionHash:/^0x(?:[A-Fa-f0-9]{64})$/u,signedMessage:/^0x(?:[a-fA-F0-9]{62,})$/u},yr={set(t,e){gi.isClient&&localStorage.setItem(`${Re.STORAGE_KEY}${t}`,e)},get(t){return gi.isClient?localStorage.getItem(`${Re.STORAGE_KEY}${t}`):null},delete(t,e){gi.isClient&&(e?localStorage.removeItem(t):localStorage.removeItem(`${Re.STORAGE_KEY}${t}`))}},bg=30*1e3,gi={checkIfAllowedToTriggerEmail(){const t=yr.get(Re.LAST_EMAIL_LOGIN_TIME);if(t){const e=Date.now()-Number(t);if(ei;function e(i){}t.assertIs=e;function n(i){throw new Error}t.assertNever=n,t.arrayToEnum=i=>{const s={};for(const c of i)s[c]=c;return s},t.getValidEnumValues=i=>{const s=t.objectKeys(i).filter(u=>typeof i[i[u]]!="number"),c={};for(const u of s)c[u]=i[u];return t.objectValues(c)},t.objectValues=i=>t.objectKeys(i).map(function(s){return i[s]}),t.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const s=[];for(const c in i)Object.prototype.hasOwnProperty.call(i,c)&&s.push(c);return s},t.find=(i,s)=>{for(const c of i)if(s(c))return c},t.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&isFinite(i)&&Math.floor(i)===i;function r(i,s=" | "){return i.map(c=>typeof c=="string"?`'${c}'`:c).join(s)}t.joinValues=r,t.jsonStringifyReplacer=(i,s)=>typeof s=="bigint"?s.toString():s})(St||(St={}));var uE;(function(t){t.mergeShapes=(e,n)=>({...e,...n})})(uE||(uE={}));const Ae=St.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),_o=t=>{switch(typeof t){case"undefined":return Ae.undefined;case"string":return Ae.string;case"number":return isNaN(t)?Ae.nan:Ae.number;case"boolean":return Ae.boolean;case"function":return Ae.function;case"bigint":return Ae.bigint;case"symbol":return Ae.symbol;case"object":return Array.isArray(t)?Ae.array:t===null?Ae.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?Ae.promise:typeof Map<"u"&&t instanceof Map?Ae.map:typeof Set<"u"&&t instanceof Set?Ae.set:typeof Date<"u"&&t instanceof Date?Ae.date:Ae.object;default:return Ae.unknown}},pe=St.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),PX=t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:");class ds extends Error{constructor(e){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){const n=e||function(s){return s.message},r={_errors:[]},i=s=>{for(const c of s.issues)if(c.code==="invalid_union")c.unionErrors.map(i);else if(c.code==="invalid_return_type")i(c.returnTypeError);else if(c.code==="invalid_arguments")i(c.argumentsError);else if(c.path.length===0)r._errors.push(n(c));else{let u=r,f=0;for(;fn.message){const n={},r=[];for(const i of this.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(e(i))):r.push(e(i));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}ds.create=t=>new ds(t);const Lh=(t,e)=>{let n;switch(t.code){case pe.invalid_type:t.received===Ae.undefined?n="Required":n=`Expected ${t.expected}, received ${t.received}`;break;case pe.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(t.expected,St.jsonStringifyReplacer)}`;break;case pe.unrecognized_keys:n=`Unrecognized key(s) in object: ${St.joinValues(t.keys,", ")}`;break;case pe.invalid_union:n="Invalid input";break;case pe.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${St.joinValues(t.options)}`;break;case pe.invalid_enum_value:n=`Invalid enum value. Expected ${St.joinValues(t.options)}, received '${t.received}'`;break;case pe.invalid_arguments:n="Invalid function arguments";break;case pe.invalid_return_type:n="Invalid function return type";break;case pe.invalid_date:n="Invalid date";break;case pe.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(n=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?n=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?n=`Invalid input: must end with "${t.validation.endsWith}"`:St.assertNever(t.validation):t.validation!=="regex"?n=`Invalid ${t.validation}`:n="Invalid";break;case pe.too_small:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:n="Invalid input";break;case pe.too_big:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?n=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:n="Invalid input";break;case pe.custom:n="Invalid input";break;case pe.invalid_intersection_types:n="Intersection results could not be merged";break;case pe.not_multiple_of:n=`Number must be a multiple of ${t.multipleOf}`;break;case pe.not_finite:n="Number must be finite";break;default:n=e.defaultError,St.assertNever(t)}return{message:n}};let B9=Lh;function MX(t){B9=t}function om(){return B9}const cm=t=>{const{data:e,path:n,errorMaps:r,issueData:i}=t,s=[...n,...i.path||[]],c={...i,path:s};let u="";const f=r.filter(d=>!!d).slice().reverse();for(const d of f)u=d(c,{data:e,defaultError:u}).message;return{...i,path:s,message:i.message||u}},kX=[];function xe(t,e){const n=cm({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,om(),Lh].filter(r=>!!r)});t.common.issues.push(n)}class Dr{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,n){const r=[];for(const i of n){if(i.status==="aborted")return He;i.status==="dirty"&&e.dirty(),r.push(i.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,n){const r=[];for(const i of n)r.push({key:await i.key,value:await i.value});return Dr.mergeObjectSync(e,r)}static mergeObjectSync(e,n){const r={};for(const i of n){const{key:s,value:c}=i;if(s.status==="aborted"||c.status==="aborted")return He;s.status==="dirty"&&e.dirty(),c.status==="dirty"&&e.dirty(),s.value!=="__proto__"&&(typeof c.value<"u"||i.alwaysSet)&&(r[s.value]=c.value)}return{status:e.value,value:r}}}const He=Object.freeze({status:"aborted"}),L9=t=>({status:"dirty",value:t}),jr=t=>({status:"valid",value:t}),lE=t=>t.status==="aborted",dE=t=>t.status==="dirty",$h=t=>t.status==="valid",um=t=>typeof Promise<"u"&&t instanceof Promise;var Be;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(Be||(Be={}));class Vs{constructor(e,n,r,i){this._cachedPath=[],this.parent=e,this.data=n,this._path=r,this._key=i}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const U4=(t,e)=>{if($h(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new ds(t.common.issues);return this._error=n,this._error}}};function Ve(t){if(!t)return{};const{errorMap:e,invalid_type_error:n,required_error:r,description:i}=t;if(e&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:i}:{errorMap:(c,u)=>c.code!=="invalid_type"?{message:u.defaultError}:typeof u.data>"u"?{message:r??u.defaultError}:{message:n??u.defaultError},description:i}}class Xe{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return _o(e.data)}_getOrReturnCtx(e,n){return n||{common:e.parent.common,data:e.data,parsedType:_o(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Dr,ctx:{common:e.parent.common,data:e.data,parsedType:_o(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const n=this._parse(e);if(um(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(e){const n=this._parse(e);return Promise.resolve(n)}parse(e,n){const r=this.safeParse(e,n);if(r.success)return r.data;throw r.error}safeParse(e,n){var r;const i={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:_o(e)},s=this._parseSync({data:e,path:i.path,parent:i});return U4(i,s)}async parseAsync(e,n){const r=await this.safeParseAsync(e,n);if(r.success)return r.data;throw r.error}async safeParseAsync(e,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:_o(e)},i=this._parse({data:e,path:r.path,parent:r}),s=await(um(i)?i:Promise.resolve(i));return U4(r,s)}refine(e,n){const r=i=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(i):n;return this._refinement((i,s)=>{const c=e(i),u=()=>s.addIssue({code:pe.custom,...r(i)});return typeof Promise<"u"&&c instanceof Promise?c.then(f=>f?!0:(u(),!1)):c?!0:(u(),!1)})}refinement(e,n){return this._refinement((r,i)=>e(r)?!0:(i.addIssue(typeof n=="function"?n(r,i):n),!1))}_refinement(e){return new hs({schema:this,typeName:je.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return Pa.create(this,this._def)}nullable(){return du.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return fs.create(this,this._def)}promise(){return ud.create(this,this._def)}or(e){return qh.create([this,e],this._def)}and(e){return Hh.create(this,e,this._def)}transform(e){return new hs({...Ve(this._def),schema:this,typeName:je.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const n=typeof e=="function"?e:()=>e;return new Qh({...Ve(this._def),innerType:this,defaultValue:n,typeName:je.ZodDefault})}brand(){return new F9({typeName:je.ZodBranded,type:this,...Ve(this._def)})}catch(e){const n=typeof e=="function"?e:()=>e;return new hm({...Ve(this._def),innerType:this,catchValue:n,typeName:je.ZodCatch})}describe(e){const n=this.constructor;return new n({...this._def,description:e})}pipe(e){return Op.create(this,e)}readonly(){return gm.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const UX=/^c[^\s-]{8,}$/i,BX=/^[a-z][a-z0-9]*$/,LX=/^[0-9A-HJKMNP-TV-Z]{26}$/,$X=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,FX=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,jX="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let z1;const zX=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,qX=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,HX=t=>t.precision?t.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${t.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${t.precision}}Z$`):t.precision===0?t.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):t.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function GX(t,e){return!!((e==="v4"||!e)&&zX.test(t)||(e==="v6"||!e)&&qX.test(t))}class ls extends Xe{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==Ae.string){const s=this._getOrReturnCtx(e);return xe(s,{code:pe.invalid_type,expected:Ae.string,received:s.parsedType}),He}const r=new Dr;let i;for(const s of this._def.checks)if(s.kind==="min")e.data.lengths.value&&(i=this._getOrReturnCtx(e,i),xe(i,{code:pe.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),r.dirty());else if(s.kind==="length"){const c=e.data.length>s.value,u=e.data.lengthe.test(i),{validation:n,code:pe.invalid_string,...Be.errToObj(r)})}_addCheck(e){return new ls({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...Be.errToObj(e)})}url(e){return this._addCheck({kind:"url",...Be.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...Be.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...Be.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...Be.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...Be.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...Be.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...Be.errToObj(e)})}datetime(e){var n;return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,offset:(n=e==null?void 0:e.offset)!==null&&n!==void 0?n:!1,...Be.errToObj(e==null?void 0:e.message)})}regex(e,n){return this._addCheck({kind:"regex",regex:e,...Be.errToObj(n)})}includes(e,n){return this._addCheck({kind:"includes",value:e,position:n==null?void 0:n.position,...Be.errToObj(n==null?void 0:n.message)})}startsWith(e,n){return this._addCheck({kind:"startsWith",value:e,...Be.errToObj(n)})}endsWith(e,n){return this._addCheck({kind:"endsWith",value:e,...Be.errToObj(n)})}min(e,n){return this._addCheck({kind:"min",value:e,...Be.errToObj(n)})}max(e,n){return this._addCheck({kind:"max",value:e,...Be.errToObj(n)})}length(e,n){return this._addCheck({kind:"length",value:e,...Be.errToObj(n)})}nonempty(e){return this.min(1,Be.errToObj(e))}trim(){return new ls({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new ls({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new ls({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get minLength(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxLength(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value{var e;return new ls({checks:[],typeName:je.ZodString,coerce:(e=t==null?void 0:t.coerce)!==null&&e!==void 0?e:!1,...Ve(t)})};function VX(t,e){const n=(t.toString().split(".")[1]||"").length,r=(e.toString().split(".")[1]||"").length,i=n>r?n:r,s=parseInt(t.toFixed(i).replace(".","")),c=parseInt(e.toFixed(i).replace(".",""));return s%c/Math.pow(10,i)}class Ko extends Xe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==Ae.number){const s=this._getOrReturnCtx(e);return xe(s,{code:pe.invalid_type,expected:Ae.number,received:s.parsedType}),He}let r;const i=new Dr;for(const s of this._def.checks)s.kind==="int"?St.isInteger(e.data)||(r=this._getOrReturnCtx(e,r),xe(r,{code:pe.invalid_type,expected:"integer",received:"float",message:s.message}),i.dirty()):s.kind==="min"?(s.inclusive?e.datas.value:e.data>=s.value)&&(r=this._getOrReturnCtx(e,r),xe(r,{code:pe.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="multipleOf"?VX(e.data,s.value)!==0&&(r=this._getOrReturnCtx(e,r),xe(r,{code:pe.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):s.kind==="finite"?Number.isFinite(e.data)||(r=this._getOrReturnCtx(e,r),xe(r,{code:pe.not_finite,message:s.message}),i.dirty()):St.assertNever(s);return{status:i.value,value:e.data}}gte(e,n){return this.setLimit("min",e,!0,Be.toString(n))}gt(e,n){return this.setLimit("min",e,!1,Be.toString(n))}lte(e,n){return this.setLimit("max",e,!0,Be.toString(n))}lt(e,n){return this.setLimit("max",e,!1,Be.toString(n))}setLimit(e,n,r,i){return new Ko({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:r,message:Be.toString(i)}]})}_addCheck(e){return new Ko({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:Be.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Be.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Be.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Be.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Be.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:Be.toString(n)})}finite(e){return this._addCheck({kind:"finite",message:Be.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Be.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Be.toString(e)})}get minValue(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.valuee.kind==="int"||e.kind==="multipleOf"&&St.isInteger(e.value))}get isFinite(){let e=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(e===null||r.valuenew Ko({checks:[],typeName:je.ZodNumber,coerce:(t==null?void 0:t.coerce)||!1,...Ve(t)});class Wo extends Xe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==Ae.bigint){const s=this._getOrReturnCtx(e);return xe(s,{code:pe.invalid_type,expected:Ae.bigint,received:s.parsedType}),He}let r;const i=new Dr;for(const s of this._def.checks)s.kind==="min"?(s.inclusive?e.datas.value:e.data>=s.value)&&(r=this._getOrReturnCtx(e,r),xe(r,{code:pe.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="multipleOf"?e.data%s.value!==BigInt(0)&&(r=this._getOrReturnCtx(e,r),xe(r,{code:pe.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):St.assertNever(s);return{status:i.value,value:e.data}}gte(e,n){return this.setLimit("min",e,!0,Be.toString(n))}gt(e,n){return this.setLimit("min",e,!1,Be.toString(n))}lte(e,n){return this.setLimit("max",e,!0,Be.toString(n))}lt(e,n){return this.setLimit("max",e,!1,Be.toString(n))}setLimit(e,n,r,i){return new Wo({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:r,message:Be.toString(i)}]})}_addCheck(e){return new Wo({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Be.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Be.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Be.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Be.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:Be.toString(n)})}get minValue(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value{var e;return new Wo({checks:[],typeName:je.ZodBigInt,coerce:(e=t==null?void 0:t.coerce)!==null&&e!==void 0?e:!1,...Ve(t)})};class Fh extends Xe{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==Ae.boolean){const r=this._getOrReturnCtx(e);return xe(r,{code:pe.invalid_type,expected:Ae.boolean,received:r.parsedType}),He}return jr(e.data)}}Fh.create=t=>new Fh({typeName:je.ZodBoolean,coerce:(t==null?void 0:t.coerce)||!1,...Ve(t)});class uu extends Xe{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==Ae.date){const s=this._getOrReturnCtx(e);return xe(s,{code:pe.invalid_type,expected:Ae.date,received:s.parsedType}),He}if(isNaN(e.data.getTime())){const s=this._getOrReturnCtx(e);return xe(s,{code:pe.invalid_date}),He}const r=new Dr;let i;for(const s of this._def.checks)s.kind==="min"?e.data.getTime()s.value&&(i=this._getOrReturnCtx(e,i),xe(i,{code:pe.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),r.dirty()):St.assertNever(s);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new uu({...this._def,checks:[...this._def.checks,e]})}min(e,n){return this._addCheck({kind:"min",value:e.getTime(),message:Be.toString(n)})}max(e,n){return this._addCheck({kind:"max",value:e.getTime(),message:Be.toString(n)})}get minDate(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.valuenew uu({checks:[],coerce:(t==null?void 0:t.coerce)||!1,typeName:je.ZodDate,...Ve(t)});class lm extends Xe{_parse(e){if(this._getType(e)!==Ae.symbol){const r=this._getOrReturnCtx(e);return xe(r,{code:pe.invalid_type,expected:Ae.symbol,received:r.parsedType}),He}return jr(e.data)}}lm.create=t=>new lm({typeName:je.ZodSymbol,...Ve(t)});class jh extends Xe{_parse(e){if(this._getType(e)!==Ae.undefined){const r=this._getOrReturnCtx(e);return xe(r,{code:pe.invalid_type,expected:Ae.undefined,received:r.parsedType}),He}return jr(e.data)}}jh.create=t=>new jh({typeName:je.ZodUndefined,...Ve(t)});class zh extends Xe{_parse(e){if(this._getType(e)!==Ae.null){const r=this._getOrReturnCtx(e);return xe(r,{code:pe.invalid_type,expected:Ae.null,received:r.parsedType}),He}return jr(e.data)}}zh.create=t=>new zh({typeName:je.ZodNull,...Ve(t)});class cd extends Xe{constructor(){super(...arguments),this._any=!0}_parse(e){return jr(e.data)}}cd.create=t=>new cd({typeName:je.ZodAny,...Ve(t)});class Qc extends Xe{constructor(){super(...arguments),this._unknown=!0}_parse(e){return jr(e.data)}}Qc.create=t=>new Qc({typeName:je.ZodUnknown,...Ve(t)});class La extends Xe{_parse(e){const n=this._getOrReturnCtx(e);return xe(n,{code:pe.invalid_type,expected:Ae.never,received:n.parsedType}),He}}La.create=t=>new La({typeName:je.ZodNever,...Ve(t)});class dm extends Xe{_parse(e){if(this._getType(e)!==Ae.undefined){const r=this._getOrReturnCtx(e);return xe(r,{code:pe.invalid_type,expected:Ae.void,received:r.parsedType}),He}return jr(e.data)}}dm.create=t=>new dm({typeName:je.ZodVoid,...Ve(t)});class fs extends Xe{_parse(e){const{ctx:n,status:r}=this._processInputParams(e),i=this._def;if(n.parsedType!==Ae.array)return xe(n,{code:pe.invalid_type,expected:Ae.array,received:n.parsedType}),He;if(i.exactLength!==null){const c=n.data.length>i.exactLength.value,u=n.data.lengthi.maxLength.value&&(xe(n,{code:pe.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((c,u)=>i.type._parseAsync(new Vs(n,c,n.path,u)))).then(c=>Dr.mergeArray(r,c));const s=[...n.data].map((c,u)=>i.type._parseSync(new Vs(n,c,n.path,u)));return Dr.mergeArray(r,s)}get element(){return this._def.type}min(e,n){return new fs({...this._def,minLength:{value:e,message:Be.toString(n)}})}max(e,n){return new fs({...this._def,maxLength:{value:e,message:Be.toString(n)}})}length(e,n){return new fs({...this._def,exactLength:{value:e,message:Be.toString(n)}})}nonempty(e){return this.min(1,e)}}fs.create=(t,e)=>new fs({type:t,minLength:null,maxLength:null,exactLength:null,typeName:je.ZodArray,...Ve(e)});function Nl(t){if(t instanceof Sn){const e={};for(const n in t.shape){const r=t.shape[n];e[n]=Pa.create(Nl(r))}return new Sn({...t._def,shape:()=>e})}else return t instanceof fs?new fs({...t._def,type:Nl(t.element)}):t instanceof Pa?Pa.create(Nl(t.unwrap())):t instanceof du?du.create(Nl(t.unwrap())):t instanceof Ks?Ks.create(t.items.map(e=>Nl(e))):t}class Sn extends Xe{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),n=St.objectKeys(e);return this._cached={shape:e,keys:n}}_parse(e){if(this._getType(e)!==Ae.object){const d=this._getOrReturnCtx(e);return xe(d,{code:pe.invalid_type,expected:Ae.object,received:d.parsedType}),He}const{status:r,ctx:i}=this._processInputParams(e),{shape:s,keys:c}=this._getCached(),u=[];if(!(this._def.catchall instanceof La&&this._def.unknownKeys==="strip"))for(const d in i.data)c.includes(d)||u.push(d);const f=[];for(const d of c){const p=s[d],g=i.data[d];f.push({key:{status:"valid",value:d},value:p._parse(new Vs(i,g,i.path,d)),alwaysSet:d in i.data})}if(this._def.catchall instanceof La){const d=this._def.unknownKeys;if(d==="passthrough")for(const p of u)f.push({key:{status:"valid",value:p},value:{status:"valid",value:i.data[p]}});else if(d==="strict")u.length>0&&(xe(i,{code:pe.unrecognized_keys,keys:u}),r.dirty());else if(d!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const d=this._def.catchall;for(const p of u){const g=i.data[p];f.push({key:{status:"valid",value:p},value:d._parse(new Vs(i,g,i.path,p)),alwaysSet:p in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const d=[];for(const p of f){const g=await p.key;d.push({key:g,value:await p.value,alwaysSet:p.alwaysSet})}return d}).then(d=>Dr.mergeObjectSync(r,d)):Dr.mergeObjectSync(r,f)}get shape(){return this._def.shape()}strict(e){return Be.errToObj,new Sn({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(n,r)=>{var i,s,c,u;const f=(c=(s=(i=this._def).errorMap)===null||s===void 0?void 0:s.call(i,n,r).message)!==null&&c!==void 0?c:r.defaultError;return n.code==="unrecognized_keys"?{message:(u=Be.errToObj(e).message)!==null&&u!==void 0?u:f}:{message:f}}}:{}})}strip(){return new Sn({...this._def,unknownKeys:"strip"})}passthrough(){return new Sn({...this._def,unknownKeys:"passthrough"})}extend(e){return new Sn({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new Sn({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:je.ZodObject})}setKey(e,n){return this.augment({[e]:n})}catchall(e){return new Sn({...this._def,catchall:e})}pick(e){const n={};return St.objectKeys(e).forEach(r=>{e[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new Sn({...this._def,shape:()=>n})}omit(e){const n={};return St.objectKeys(this.shape).forEach(r=>{e[r]||(n[r]=this.shape[r])}),new Sn({...this._def,shape:()=>n})}deepPartial(){return Nl(this)}partial(e){const n={};return St.objectKeys(this.shape).forEach(r=>{const i=this.shape[r];e&&!e[r]?n[r]=i:n[r]=i.optional()}),new Sn({...this._def,shape:()=>n})}required(e){const n={};return St.objectKeys(this.shape).forEach(r=>{if(e&&!e[r])n[r]=this.shape[r];else{let s=this.shape[r];for(;s instanceof Pa;)s=s._def.innerType;n[r]=s}}),new Sn({...this._def,shape:()=>n})}keyof(){return $9(St.objectKeys(this.shape))}}Sn.create=(t,e)=>new Sn({shape:()=>t,unknownKeys:"strip",catchall:La.create(),typeName:je.ZodObject,...Ve(e)});Sn.strictCreate=(t,e)=>new Sn({shape:()=>t,unknownKeys:"strict",catchall:La.create(),typeName:je.ZodObject,...Ve(e)});Sn.lazycreate=(t,e)=>new Sn({shape:t,unknownKeys:"strip",catchall:La.create(),typeName:je.ZodObject,...Ve(e)});class qh extends Xe{_parse(e){const{ctx:n}=this._processInputParams(e),r=this._def.options;function i(s){for(const u of s)if(u.result.status==="valid")return u.result;for(const u of s)if(u.result.status==="dirty")return n.common.issues.push(...u.ctx.common.issues),u.result;const c=s.map(u=>new ds(u.ctx.common.issues));return xe(n,{code:pe.invalid_union,unionErrors:c}),He}if(n.common.async)return Promise.all(r.map(async s=>{const c={...n,common:{...n.common,issues:[]},parent:null};return{result:await s._parseAsync({data:n.data,path:n.path,parent:c}),ctx:c}})).then(i);{let s;const c=[];for(const f of r){const d={...n,common:{...n.common,issues:[]},parent:null},p=f._parseSync({data:n.data,path:n.path,parent:d});if(p.status==="valid")return p;p.status==="dirty"&&!s&&(s={result:p,ctx:d}),d.common.issues.length&&c.push(d.common.issues)}if(s)return n.common.issues.push(...s.ctx.common.issues),s.result;const u=c.map(f=>new ds(f));return xe(n,{code:pe.invalid_union,unionErrors:u}),He}}get options(){return this._def.options}}qh.create=(t,e)=>new qh({options:t,typeName:je.ZodUnion,...Ve(e)});const Mg=t=>t instanceof Vh?Mg(t.schema):t instanceof hs?Mg(t.innerType()):t instanceof Kh?[t.value]:t instanceof Qo?t.options:t instanceof Wh?Object.keys(t.enum):t instanceof Qh?Mg(t._def.innerType):t instanceof jh?[void 0]:t instanceof zh?[null]:null;class Zm extends Xe{_parse(e){const{ctx:n}=this._processInputParams(e);if(n.parsedType!==Ae.object)return xe(n,{code:pe.invalid_type,expected:Ae.object,received:n.parsedType}),He;const r=this.discriminator,i=n.data[r],s=this.optionsMap.get(i);return s?n.common.async?s._parseAsync({data:n.data,path:n.path,parent:n}):s._parseSync({data:n.data,path:n.path,parent:n}):(xe(n,{code:pe.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),He)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,n,r){const i=new Map;for(const s of n){const c=Mg(s.shape[e]);if(!c)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const u of c){if(i.has(u))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(u)}`);i.set(u,s)}}return new Zm({typeName:je.ZodDiscriminatedUnion,discriminator:e,options:n,optionsMap:i,...Ve(r)})}}function fE(t,e){const n=_o(t),r=_o(e);if(t===e)return{valid:!0,data:t};if(n===Ae.object&&r===Ae.object){const i=St.objectKeys(e),s=St.objectKeys(t).filter(u=>i.indexOf(u)!==-1),c={...t,...e};for(const u of s){const f=fE(t[u],e[u]);if(!f.valid)return{valid:!1};c[u]=f.data}return{valid:!0,data:c}}else if(n===Ae.array&&r===Ae.array){if(t.length!==e.length)return{valid:!1};const i=[];for(let s=0;s{if(lE(s)||lE(c))return He;const u=fE(s.value,c.value);return u.valid?((dE(s)||dE(c))&&n.dirty(),{status:n.value,value:u.data}):(xe(r,{code:pe.invalid_intersection_types}),He)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([s,c])=>i(s,c)):i(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}Hh.create=(t,e,n)=>new Hh({left:t,right:e,typeName:je.ZodIntersection,...Ve(n)});class Ks extends Xe{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==Ae.array)return xe(r,{code:pe.invalid_type,expected:Ae.array,received:r.parsedType}),He;if(r.data.lengththis._def.items.length&&(xe(r,{code:pe.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const s=[...r.data].map((c,u)=>{const f=this._def.items[u]||this._def.rest;return f?f._parse(new Vs(r,c,r.path,u)):null}).filter(c=>!!c);return r.common.async?Promise.all(s).then(c=>Dr.mergeArray(n,c)):Dr.mergeArray(n,s)}get items(){return this._def.items}rest(e){return new Ks({...this._def,rest:e})}}Ks.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Ks({items:t,typeName:je.ZodTuple,rest:null,...Ve(e)})};class Gh extends Xe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==Ae.object)return xe(r,{code:pe.invalid_type,expected:Ae.object,received:r.parsedType}),He;const i=[],s=this._def.keyType,c=this._def.valueType;for(const u in r.data)i.push({key:s._parse(new Vs(r,u,r.path,u)),value:c._parse(new Vs(r,r.data[u],r.path,u))});return r.common.async?Dr.mergeObjectAsync(n,i):Dr.mergeObjectSync(n,i)}get element(){return this._def.valueType}static create(e,n,r){return n instanceof Xe?new Gh({keyType:e,valueType:n,typeName:je.ZodRecord,...Ve(r)}):new Gh({keyType:ls.create(),valueType:e,typeName:je.ZodRecord,...Ve(n)})}}class fm extends Xe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==Ae.map)return xe(r,{code:pe.invalid_type,expected:Ae.map,received:r.parsedType}),He;const i=this._def.keyType,s=this._def.valueType,c=[...r.data.entries()].map(([u,f],d)=>({key:i._parse(new Vs(r,u,r.path,[d,"key"])),value:s._parse(new Vs(r,f,r.path,[d,"value"]))}));if(r.common.async){const u=new Map;return Promise.resolve().then(async()=>{for(const f of c){const d=await f.key,p=await f.value;if(d.status==="aborted"||p.status==="aborted")return He;(d.status==="dirty"||p.status==="dirty")&&n.dirty(),u.set(d.value,p.value)}return{status:n.value,value:u}})}else{const u=new Map;for(const f of c){const d=f.key,p=f.value;if(d.status==="aborted"||p.status==="aborted")return He;(d.status==="dirty"||p.status==="dirty")&&n.dirty(),u.set(d.value,p.value)}return{status:n.value,value:u}}}}fm.create=(t,e,n)=>new fm({valueType:e,keyType:t,typeName:je.ZodMap,...Ve(n)});class lu extends Xe{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==Ae.set)return xe(r,{code:pe.invalid_type,expected:Ae.set,received:r.parsedType}),He;const i=this._def;i.minSize!==null&&r.data.sizei.maxSize.value&&(xe(r,{code:pe.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),n.dirty());const s=this._def.valueType;function c(f){const d=new Set;for(const p of f){if(p.status==="aborted")return He;p.status==="dirty"&&n.dirty(),d.add(p.value)}return{status:n.value,value:d}}const u=[...r.data.values()].map((f,d)=>s._parse(new Vs(r,f,r.path,d)));return r.common.async?Promise.all(u).then(f=>c(f)):c(u)}min(e,n){return new lu({...this._def,minSize:{value:e,message:Be.toString(n)}})}max(e,n){return new lu({...this._def,maxSize:{value:e,message:Be.toString(n)}})}size(e,n){return this.min(e,n).max(e,n)}nonempty(e){return this.min(1,e)}}lu.create=(t,e)=>new lu({valueType:t,minSize:null,maxSize:null,typeName:je.ZodSet,...Ve(e)});class Ul extends Xe{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:n}=this._processInputParams(e);if(n.parsedType!==Ae.function)return xe(n,{code:pe.invalid_type,expected:Ae.function,received:n.parsedType}),He;function r(u,f){return cm({data:u,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,om(),Lh].filter(d=>!!d),issueData:{code:pe.invalid_arguments,argumentsError:f}})}function i(u,f){return cm({data:u,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,om(),Lh].filter(d=>!!d),issueData:{code:pe.invalid_return_type,returnTypeError:f}})}const s={errorMap:n.common.contextualErrorMap},c=n.data;if(this._def.returns instanceof ud){const u=this;return jr(async function(...f){const d=new ds([]),p=await u._def.args.parseAsync(f,s).catch(y=>{throw d.addIssue(r(f,y)),d}),g=await Reflect.apply(c,this,p);return await u._def.returns._def.type.parseAsync(g,s).catch(y=>{throw d.addIssue(i(g,y)),d})})}else{const u=this;return jr(function(...f){const d=u._def.args.safeParse(f,s);if(!d.success)throw new ds([r(f,d.error)]);const p=Reflect.apply(c,this,d.data),g=u._def.returns.safeParse(p,s);if(!g.success)throw new ds([i(p,g.error)]);return g.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new Ul({...this._def,args:Ks.create(e).rest(Qc.create())})}returns(e){return new Ul({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,n,r){return new Ul({args:e||Ks.create([]).rest(Qc.create()),returns:n||Qc.create(),typeName:je.ZodFunction,...Ve(r)})}}class Vh extends Xe{get schema(){return this._def.getter()}_parse(e){const{ctx:n}=this._processInputParams(e);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}Vh.create=(t,e)=>new Vh({getter:t,typeName:je.ZodLazy,...Ve(e)});class Kh extends Xe{_parse(e){if(e.data!==this._def.value){const n=this._getOrReturnCtx(e);return xe(n,{received:n.data,code:pe.invalid_literal,expected:this._def.value}),He}return{status:"valid",value:e.data}}get value(){return this._def.value}}Kh.create=(t,e)=>new Kh({value:t,typeName:je.ZodLiteral,...Ve(e)});function $9(t,e){return new Qo({values:t,typeName:je.ZodEnum,...Ve(e)})}class Qo extends Xe{_parse(e){if(typeof e.data!="string"){const n=this._getOrReturnCtx(e),r=this._def.values;return xe(n,{expected:St.joinValues(r),received:n.parsedType,code:pe.invalid_type}),He}if(this._def.values.indexOf(e.data)===-1){const n=this._getOrReturnCtx(e),r=this._def.values;return xe(n,{received:n.data,code:pe.invalid_enum_value,options:r}),He}return jr(e.data)}get options(){return this._def.values}get enum(){const e={};for(const n of this._def.values)e[n]=n;return e}get Values(){const e={};for(const n of this._def.values)e[n]=n;return e}get Enum(){const e={};for(const n of this._def.values)e[n]=n;return e}extract(e){return Qo.create(e)}exclude(e){return Qo.create(this.options.filter(n=>!e.includes(n)))}}Qo.create=$9;class Wh extends Xe{_parse(e){const n=St.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==Ae.string&&r.parsedType!==Ae.number){const i=St.objectValues(n);return xe(r,{expected:St.joinValues(i),received:r.parsedType,code:pe.invalid_type}),He}if(n.indexOf(e.data)===-1){const i=St.objectValues(n);return xe(r,{received:r.data,code:pe.invalid_enum_value,options:i}),He}return jr(e.data)}get enum(){return this._def.values}}Wh.create=(t,e)=>new Wh({values:t,typeName:je.ZodNativeEnum,...Ve(e)});class ud extends Xe{unwrap(){return this._def.type}_parse(e){const{ctx:n}=this._processInputParams(e);if(n.parsedType!==Ae.promise&&n.common.async===!1)return xe(n,{code:pe.invalid_type,expected:Ae.promise,received:n.parsedType}),He;const r=n.parsedType===Ae.promise?n.data:Promise.resolve(n.data);return jr(r.then(i=>this._def.type.parseAsync(i,{path:n.path,errorMap:n.common.contextualErrorMap})))}}ud.create=(t,e)=>new ud({type:t,typeName:je.ZodPromise,...Ve(e)});class hs extends Xe{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===je.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:n,ctx:r}=this._processInputParams(e),i=this._def.effect||null,s={addIssue:c=>{xe(r,c),c.fatal?n.abort():n.dirty()},get path(){return r.path}};if(s.addIssue=s.addIssue.bind(s),i.type==="preprocess"){const c=i.transform(r.data,s);return r.common.issues.length?{status:"dirty",value:r.data}:r.common.async?Promise.resolve(c).then(u=>this._def.schema._parseAsync({data:u,path:r.path,parent:r})):this._def.schema._parseSync({data:c,path:r.path,parent:r})}if(i.type==="refinement"){const c=u=>{const f=i.refinement(u,s);if(r.common.async)return Promise.resolve(f);if(f instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return u};if(r.common.async===!1){const u=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return u.status==="aborted"?He:(u.status==="dirty"&&n.dirty(),c(u.value),{status:n.value,value:u.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(u=>u.status==="aborted"?He:(u.status==="dirty"&&n.dirty(),c(u.value).then(()=>({status:n.value,value:u.value}))))}if(i.type==="transform")if(r.common.async===!1){const c=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!$h(c))return c;const u=i.transform(c.value,s);if(u instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:u}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(c=>$h(c)?Promise.resolve(i.transform(c.value,s)).then(u=>({status:n.value,value:u})):c);St.assertNever(i)}}hs.create=(t,e,n)=>new hs({schema:t,typeName:je.ZodEffects,effect:e,...Ve(n)});hs.createWithPreprocess=(t,e,n)=>new hs({schema:e,effect:{type:"preprocess",transform:t},typeName:je.ZodEffects,...Ve(n)});class Pa extends Xe{_parse(e){return this._getType(e)===Ae.undefined?jr(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Pa.create=(t,e)=>new Pa({innerType:t,typeName:je.ZodOptional,...Ve(e)});class du extends Xe{_parse(e){return this._getType(e)===Ae.null?jr(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}du.create=(t,e)=>new du({innerType:t,typeName:je.ZodNullable,...Ve(e)});class Qh extends Xe{_parse(e){const{ctx:n}=this._processInputParams(e);let r=n.data;return n.parsedType===Ae.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Qh.create=(t,e)=>new Qh({innerType:t,typeName:je.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...Ve(e)});class hm extends Xe{_parse(e){const{ctx:n}=this._processInputParams(e),r={...n,common:{...n.common,issues:[]}},i=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return um(i)?i.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new ds(r.common.issues)},input:r.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new ds(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}hm.create=(t,e)=>new hm({innerType:t,typeName:je.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...Ve(e)});class pm extends Xe{_parse(e){if(this._getType(e)!==Ae.nan){const r=this._getOrReturnCtx(e);return xe(r,{code:pe.invalid_type,expected:Ae.nan,received:r.parsedType}),He}return{status:"valid",value:e.data}}}pm.create=t=>new pm({typeName:je.ZodNaN,...Ve(t)});const KX=Symbol("zod_brand");class F9 extends Xe{_parse(e){const{ctx:n}=this._processInputParams(e),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class Op extends Xe{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{const s=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?He:s.status==="dirty"?(n.dirty(),L9(s.value)):this._def.out._parseAsync({data:s.value,path:r.path,parent:r})})();{const i=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?He:i.status==="dirty"?(n.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:r.path,parent:r})}}static create(e,n){return new Op({in:e,out:n,typeName:je.ZodPipeline})}}class gm extends Xe{_parse(e){const n=this._def.innerType._parse(e);return $h(n)&&(n.value=Object.freeze(n.value)),n}}gm.create=(t,e)=>new gm({innerType:t,typeName:je.ZodReadonly,...Ve(e)});const j9=(t,e={},n)=>t?cd.create().superRefine((r,i)=>{var s,c;if(!t(r)){const u=typeof e=="function"?e(r):typeof e=="string"?{message:e}:e,f=(c=(s=u.fatal)!==null&&s!==void 0?s:n)!==null&&c!==void 0?c:!0,d=typeof u=="string"?{message:u}:u;i.addIssue({code:"custom",...d,fatal:f})}}):cd.create(),WX={object:Sn.lazycreate};var je;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(je||(je={}));const QX=(t,e={message:`Input not instance of ${t.name}`})=>j9(n=>n instanceof t,e),z9=ls.create,q9=Ko.create,YX=pm.create,ZX=Wo.create,H9=Fh.create,XX=uu.create,JX=lm.create,eJ=jh.create,tJ=zh.create,nJ=cd.create,rJ=Qc.create,iJ=La.create,sJ=dm.create,aJ=fs.create,oJ=Sn.create,cJ=Sn.strictCreate,uJ=qh.create,lJ=Zm.create,dJ=Hh.create,fJ=Ks.create,hJ=Gh.create,pJ=fm.create,gJ=lu.create,mJ=Ul.create,bJ=Vh.create,yJ=Kh.create,vJ=Qo.create,wJ=Wh.create,EJ=ud.create,B4=hs.create,AJ=Pa.create,_J=du.create,CJ=hs.createWithPreprocess,SJ=Op.create,TJ=()=>z9().optional(),xJ=()=>q9().optional(),NJ=()=>H9().optional(),IJ={string:t=>ls.create({...t,coerce:!0}),number:t=>Ko.create({...t,coerce:!0}),boolean:t=>Fh.create({...t,coerce:!0}),bigint:t=>Wo.create({...t,coerce:!0}),date:t=>uu.create({...t,coerce:!0})},OJ=He;var H=Object.freeze({__proto__:null,defaultErrorMap:Lh,setErrorMap:MX,getErrorMap:om,makeIssue:cm,EMPTY_PATH:kX,addIssueToContext:xe,ParseStatus:Dr,INVALID:He,DIRTY:L9,OK:jr,isAborted:lE,isDirty:dE,isValid:$h,isAsync:um,get util(){return St},get objectUtil(){return uE},ZodParsedType:Ae,getParsedType:_o,ZodType:Xe,ZodString:ls,ZodNumber:Ko,ZodBigInt:Wo,ZodBoolean:Fh,ZodDate:uu,ZodSymbol:lm,ZodUndefined:jh,ZodNull:zh,ZodAny:cd,ZodUnknown:Qc,ZodNever:La,ZodVoid:dm,ZodArray:fs,ZodObject:Sn,ZodUnion:qh,ZodDiscriminatedUnion:Zm,ZodIntersection:Hh,ZodTuple:Ks,ZodRecord:Gh,ZodMap:fm,ZodSet:lu,ZodFunction:Ul,ZodLazy:Vh,ZodLiteral:Kh,ZodEnum:Qo,ZodNativeEnum:Wh,ZodPromise:ud,ZodEffects:hs,ZodTransformer:hs,ZodOptional:Pa,ZodNullable:du,ZodDefault:Qh,ZodCatch:hm,ZodNaN:pm,BRAND:KX,ZodBranded:F9,ZodPipeline:Op,ZodReadonly:gm,custom:j9,Schema:Xe,ZodSchema:Xe,late:WX,get ZodFirstPartyTypeKind(){return je},coerce:IJ,any:nJ,array:aJ,bigint:ZX,boolean:H9,date:XX,discriminatedUnion:lJ,effect:B4,enum:vJ,function:mJ,instanceof:QX,intersection:dJ,lazy:bJ,literal:yJ,map:pJ,nan:YX,nativeEnum:wJ,never:iJ,null:tJ,nullable:_J,number:q9,object:oJ,oboolean:NJ,onumber:xJ,optional:AJ,ostring:TJ,pipeline:SJ,preprocess:CJ,promise:EJ,record:hJ,set:gJ,strictObject:cJ,string:z9,symbol:JX,transformer:B4,tuple:fJ,undefined:eJ,union:uJ,unknown:rJ,void:sJ,NEVER:OJ,ZodIssueCode:pe,quotelessJson:PX,ZodError:ds});const kn=H.object({message:H.string()});function Se(t){return H.literal(Re[t])}H.object({accessList:H.array(H.string()),blockHash:H.string().nullable(),blockNumber:H.string().nullable(),chainId:H.string().or(H.number()),from:H.string(),gas:H.string(),hash:H.string(),input:H.string().nullable(),maxFeePerGas:H.string(),maxPriorityFeePerGas:H.string(),nonce:H.string(),r:H.string(),s:H.string(),to:H.string(),transactionIndex:H.string().nullable(),type:H.string(),v:H.string(),value:H.string()});const RJ=H.object({chainId:H.string().or(H.number())}),DJ=H.object({email:H.string().email()}),PJ=H.object({otp:H.string()}),MJ=H.object({uri:H.string()}),kJ=H.object({chainId:H.optional(H.string().or(H.number())),preferredAccountType:H.optional(H.string())}),UJ=H.object({provider:H.enum(["google","github","apple","facebook","x","discord"])}),BJ=H.object({email:H.string().email()}),LJ=H.object({otp:H.string()}),$J=H.object({otp:H.string()}),FJ=H.object({themeMode:H.optional(H.enum(["light","dark"])),themeVariables:H.optional(H.record(H.string(),H.string().or(H.number()))),w3mThemeVariables:H.optional(H.record(H.string(),H.string()))}),jJ=H.object({metadata:H.object({name:H.string(),description:H.string(),url:H.string(),icons:H.array(H.string())}).optional(),sdkVersion:H.string().optional(),sdkType:H.string().optional(),projectId:H.string()}),zJ=H.object({type:H.string()}),qJ=H.object({action:H.enum(["VERIFY_DEVICE","VERIFY_OTP","CONNECT"])}),HJ=H.object({url:H.string()}),GJ=H.object({userName:H.string()}),VJ=H.object({email:H.string().optional().nullable(),address:H.string(),chainId:H.string().or(H.number()),accounts:H.array(H.object({address:H.string(),type:H.enum([yn.ACCOUNT_TYPES.EOA,yn.ACCOUNT_TYPES.SMART_ACCOUNT])})).optional(),userName:H.string().optional().nullable()}),KJ=H.object({action:H.enum(["VERIFY_PRIMARY_OTP","VERIFY_SECONDARY_OTP"])}),WJ=H.object({email:H.string().email().optional().nullable(),address:H.string(),chainId:H.string().or(H.number()),smartAccountDeployed:H.optional(H.boolean()),accounts:H.array(H.object({address:H.string(),type:H.enum([yn.ACCOUNT_TYPES.EOA,yn.ACCOUNT_TYPES.SMART_ACCOUNT])})).optional(),preferredAccountType:H.optional(H.string())}),QJ=H.object({uri:H.string()}),YJ=H.object({isConnected:H.boolean()}),ZJ=H.object({chainId:H.string().or(H.number())}),XJ=H.object({chainId:H.string().or(H.number())}),JJ=H.object({newEmail:H.string().email()}),eee=H.object({smartAccountEnabledNetworks:H.array(H.number())});H.object({address:H.string(),isDeployed:H.boolean()});const tee=H.object({version:H.string().optional()}),nee=H.object({type:H.string(),address:H.string()}),ree=H.any(),iee=H.object({method:H.literal("eth_accounts")}),see=H.object({method:H.literal("eth_blockNumber")}),aee=H.object({method:H.literal("eth_call"),params:H.array(H.any())}),oee=H.object({method:H.literal("eth_chainId")}),cee=H.object({method:H.literal("eth_estimateGas"),params:H.array(H.any())}),uee=H.object({method:H.literal("eth_feeHistory"),params:H.array(H.any())}),lee=H.object({method:H.literal("eth_gasPrice")}),dee=H.object({method:H.literal("eth_getAccount"),params:H.array(H.any())}),fee=H.object({method:H.literal("eth_getBalance"),params:H.array(H.any())}),hee=H.object({method:H.literal("eth_getBlockByHash"),params:H.array(H.any())}),pee=H.object({method:H.literal("eth_getBlockByNumber"),params:H.array(H.any())}),gee=H.object({method:H.literal("eth_getBlockReceipts"),params:H.array(H.any())}),mee=H.object({method:H.literal("eth_getBlockTransactionCountByHash"),params:H.array(H.any())}),bee=H.object({method:H.literal("eth_getBlockTransactionCountByNumber"),params:H.array(H.any())}),yee=H.object({method:H.literal("eth_getCode"),params:H.array(H.any())}),vee=H.object({method:H.literal("eth_getFilterChanges"),params:H.array(H.any())}),wee=H.object({method:H.literal("eth_getFilterLogs"),params:H.array(H.any())}),Eee=H.object({method:H.literal("eth_getLogs"),params:H.array(H.any())}),Aee=H.object({method:H.literal("eth_getProof"),params:H.array(H.any())}),_ee=H.object({method:H.literal("eth_getStorageAt"),params:H.array(H.any())}),Cee=H.object({method:H.literal("eth_getTransactionByBlockHashAndIndex"),params:H.array(H.any())}),See=H.object({method:H.literal("eth_getTransactionByBlockNumberAndIndex"),params:H.array(H.any())}),Tee=H.object({method:H.literal("eth_getTransactionByHash"),params:H.array(H.any())}),xee=H.object({method:H.literal("eth_getTransactionCount"),params:H.array(H.any())}),Nee=H.object({method:H.literal("eth_getTransactionReceipt"),params:H.array(H.any())}),Iee=H.object({method:H.literal("eth_getUncleCountByBlockHash"),params:H.array(H.any())}),Oee=H.object({method:H.literal("eth_getUncleCountByBlockNumber"),params:H.array(H.any())}),Ree=H.object({method:H.literal("eth_maxPriorityFeePerGas")}),Dee=H.object({method:H.literal("eth_newBlockFilter")}),Pee=H.object({method:H.literal("eth_newFilter"),params:H.array(H.any())}),Mee=H.object({method:H.literal("eth_newPendingTransactionFilter")}),kee=H.object({method:H.literal("eth_sendRawTransaction"),params:H.array(H.any())}),Uee=H.object({method:H.literal("eth_syncing"),params:H.array(H.any())}),Bee=H.object({method:H.literal("eth_uninstallFilter"),params:H.array(H.any())}),L4=H.object({method:H.literal("personal_sign"),params:H.array(H.any())}),Lee=H.object({method:H.literal("eth_signTypedData_v4"),params:H.array(H.any())}),$ee=H.object({method:H.literal("eth_sendTransaction"),params:H.array(H.any())}),Fee=H.object({method:H.literal("solana_signMessage"),params:H.object({message:H.string(),pubkey:H.string()})}),jee=H.object({method:H.literal("solana_signTransaction"),params:H.object({transaction:H.string()})}),zee=H.object({method:H.literal("solana_signAllTransactions"),params:H.object({transactions:H.array(H.string())})}),qee=H.object({method:H.literal("solana_signAndSendTransaction"),params:H.object({transaction:H.string(),options:H.object({skipPreflight:H.boolean().optional(),preflightCommitment:H.enum(["processed","confirmed","finalized","recent","single","singleGossip","root","max"]).optional(),maxRetries:H.number().optional(),minContextSlot:H.number().optional()}).optional()})}),Hee=H.object({method:H.literal("wallet_sendCalls"),params:H.array(H.object({chainId:H.string().or(H.number()).optional(),from:H.string().optional(),version:H.string().optional(),capabilities:H.any().optional(),calls:H.array(H.object({to:H.string().startsWith("0x"),data:H.string().startsWith("0x").optional(),value:H.string().optional()}))}))}),Gee=H.object({method:H.literal("wallet_getCallsStatus"),params:H.array(H.string())}),Vee=H.object({method:H.literal("wallet_getCapabilities")}),Kee=H.object({method:H.literal("wallet_grantPermissions"),params:H.array(H.any())}),Wee=H.object({method:H.literal("wallet_revokePermissions"),params:H.any()}),Qee=H.object({method:H.literal("wallet_getAssets"),params:H.any()}),$4=H.object({token:H.string()}),Te=H.object({id:H.string().optional()}),Yf={appEvent:Te.extend({type:Se("APP_SWITCH_NETWORK"),payload:RJ}).or(Te.extend({type:Se("APP_CONNECT_EMAIL"),payload:DJ})).or(Te.extend({type:Se("APP_CONNECT_DEVICE")})).or(Te.extend({type:Se("APP_CONNECT_OTP"),payload:PJ})).or(Te.extend({type:Se("APP_CONNECT_SOCIAL"),payload:MJ})).or(Te.extend({type:Se("APP_GET_FARCASTER_URI")})).or(Te.extend({type:Se("APP_CONNECT_FARCASTER")})).or(Te.extend({type:Se("APP_GET_USER"),payload:H.optional(kJ)})).or(Te.extend({type:Se("APP_GET_SOCIAL_REDIRECT_URI"),payload:UJ})).or(Te.extend({type:Se("APP_SIGN_OUT")})).or(Te.extend({type:Se("APP_IS_CONNECTED"),payload:H.optional($4)})).or(Te.extend({type:Se("APP_GET_CHAIN_ID")})).or(Te.extend({type:Se("APP_GET_SMART_ACCOUNT_ENABLED_NETWORKS")})).or(Te.extend({type:Se("APP_INIT_SMART_ACCOUNT")})).or(Te.extend({type:Se("APP_SET_PREFERRED_ACCOUNT"),payload:zJ})).or(Te.extend({type:Se("APP_RPC_REQUEST"),payload:L4.or(Qee).or(iee).or(see).or(aee).or(oee).or(cee).or(uee).or(lee).or(dee).or(fee).or(hee).or(pee).or(gee).or(mee).or(bee).or(yee).or(vee).or(wee).or(Eee).or(Aee).or(_ee).or(Cee).or(See).or(Tee).or(xee).or(Nee).or(Iee).or(Oee).or(Ree).or(Dee).or(Pee).or(Mee).or(kee).or(Uee).or(Bee).or(L4).or(Lee).or($ee).or(Fee).or(jee).or(zee).or(qee).or(Gee).or(Hee).or(Vee).or(Kee).or(Wee)})).or(Te.extend({type:Se("APP_UPDATE_EMAIL"),payload:BJ})).or(Te.extend({type:Se("APP_UPDATE_EMAIL_PRIMARY_OTP"),payload:LJ})).or(Te.extend({type:Se("APP_UPDATE_EMAIL_SECONDARY_OTP"),payload:$J})).or(Te.extend({type:Se("APP_SYNC_THEME"),payload:FJ})).or(Te.extend({type:Se("APP_SYNC_DAPP_DATA"),payload:jJ})).or(Te.extend({type:Se("APP_RELOAD")})),frameEvent:Te.extend({type:Se("FRAME_SWITCH_NETWORK_ERROR"),payload:kn}).or(Te.extend({type:Se("FRAME_SWITCH_NETWORK_SUCCESS"),payload:XJ})).or(Te.extend({type:Se("FRAME_CONNECT_EMAIL_SUCCESS"),payload:qJ})).or(Te.extend({type:Se("FRAME_CONNECT_EMAIL_ERROR"),payload:kn})).or(Te.extend({type:Se("FRAME_GET_FARCASTER_URI_SUCCESS"),payload:HJ})).or(Te.extend({type:Se("FRAME_GET_FARCASTER_URI_ERROR"),payload:kn})).or(Te.extend({type:Se("FRAME_CONNECT_FARCASTER_SUCCESS"),payload:GJ})).or(Te.extend({type:Se("FRAME_CONNECT_FARCASTER_ERROR"),payload:kn})).or(Te.extend({type:Se("FRAME_CONNECT_OTP_ERROR"),payload:kn})).or(Te.extend({type:Se("FRAME_CONNECT_OTP_SUCCESS")})).or(Te.extend({type:Se("FRAME_CONNECT_DEVICE_ERROR"),payload:kn})).or(Te.extend({type:Se("FRAME_CONNECT_DEVICE_SUCCESS")})).or(Te.extend({type:Se("FRAME_CONNECT_SOCIAL_SUCCESS"),payload:VJ})).or(Te.extend({type:Se("FRAME_CONNECT_SOCIAL_ERROR"),payload:kn})).or(Te.extend({type:Se("FRAME_GET_USER_ERROR"),payload:kn})).or(Te.extend({type:Se("FRAME_GET_USER_SUCCESS"),payload:WJ})).or(Te.extend({type:Se("FRAME_GET_SOCIAL_REDIRECT_URI_ERROR"),payload:kn})).or(Te.extend({type:Se("FRAME_GET_SOCIAL_REDIRECT_URI_SUCCESS"),payload:QJ})).or(Te.extend({type:Se("FRAME_SIGN_OUT_ERROR"),payload:kn})).or(Te.extend({type:Se("FRAME_SIGN_OUT_SUCCESS")})).or(Te.extend({type:Se("FRAME_IS_CONNECTED_ERROR"),payload:kn})).or(Te.extend({type:Se("FRAME_IS_CONNECTED_SUCCESS"),payload:YJ})).or(Te.extend({type:Se("FRAME_GET_CHAIN_ID_ERROR"),payload:kn})).or(Te.extend({type:Se("FRAME_GET_CHAIN_ID_SUCCESS"),payload:ZJ})).or(Te.extend({type:Se("FRAME_RPC_REQUEST_ERROR"),payload:kn})).or(Te.extend({type:Se("FRAME_RPC_REQUEST_SUCCESS"),payload:ree})).or(Te.extend({type:Se("FRAME_SESSION_UPDATE"),payload:$4})).or(Te.extend({type:Se("FRAME_UPDATE_EMAIL_ERROR"),payload:kn})).or(Te.extend({type:Se("FRAME_UPDATE_EMAIL_SUCCESS"),payload:KJ})).or(Te.extend({type:Se("FRAME_UPDATE_EMAIL_PRIMARY_OTP_ERROR"),payload:kn})).or(Te.extend({type:Se("FRAME_UPDATE_EMAIL_PRIMARY_OTP_SUCCESS")})).or(Te.extend({type:Se("FRAME_UPDATE_EMAIL_SECONDARY_OTP_ERROR"),payload:kn})).or(Te.extend({type:Se("FRAME_UPDATE_EMAIL_SECONDARY_OTP_SUCCESS"),payload:JJ})).or(Te.extend({type:Se("FRAME_SYNC_THEME_ERROR"),payload:kn})).or(Te.extend({type:Se("FRAME_SYNC_THEME_SUCCESS")})).or(Te.extend({type:Se("FRAME_SYNC_DAPP_DATA_ERROR"),payload:kn})).or(Te.extend({type:Se("FRAME_SYNC_DAPP_DATA_SUCCESS")})).or(Te.extend({type:Se("FRAME_GET_SMART_ACCOUNT_ENABLED_NETWORKS_SUCCESS"),payload:eee})).or(Te.extend({type:Se("FRAME_GET_SMART_ACCOUNT_ENABLED_NETWORKS_ERROR"),payload:kn})).or(Te.extend({type:Se("FRAME_INIT_SMART_ACCOUNT_ERROR"),payload:kn})).or(Te.extend({type:Se("FRAME_SET_PREFERRED_ACCOUNT_SUCCESS"),payload:nee})).or(Te.extend({type:Se("FRAME_SET_PREFERRED_ACCOUNT_ERROR"),payload:kn})).or(Te.extend({type:Se("FRAME_READY"),payload:tee})).or(Te.extend({type:Se("FRAME_RELOAD_ERROR"),payload:kn})).or(Te.extend({type:Se("FRAME_RELOAD_SUCCESS")}))};function q1(t,e={}){var n;return typeof(e==null?void 0:e.type)=="string"&&((n=e==null?void 0:e.type)==null?void 0:n.includes(t))}class Yee{constructor({projectId:e,isAppClient:n=!1,chainId:r="eip155:1",enableLogger:i=!0}){if(this.iframe=null,this.rpcUrl=he.BLOCKCHAIN_API_RPC_URL,this.initFrame=()=>{const s=document.getElementById("w3m-iframe");this.iframe&&!s&&document.body.appendChild(this.iframe)},this.events={registerFrameEventHandler:(s,c,u)=>{function f({data:d}){if(!q1(Re.FRAME_EVENT_KEY,d))return;const p=Yf.frameEvent.parse(d);p.id===s&&(c(p),window.removeEventListener("message",f))}gi.isClient&&(window.addEventListener("message",f),u.addEventListener("abort",()=>{window.removeEventListener("message",f)}))},onFrameEvent:s=>{gi.isClient&&window.addEventListener("message",({data:c})=>{if(!q1(Re.FRAME_EVENT_KEY,c))return;const u=Yf.frameEvent.parse(c);s(u)})},onAppEvent:s=>{gi.isClient&&window.addEventListener("message",({data:c})=>{if(!q1(Re.APP_EVENT_KEY,c))return;const u=Yf.appEvent.parse(c);s(u)})},postAppEvent:s=>{var c;if(gi.isClient){if(!((c=this.iframe)!=null&&c.contentWindow))throw new Error("W3mFrame: iframe is not set");Yf.appEvent.parse(s),this.iframe.contentWindow.postMessage(s,"*")}},postFrameEvent:s=>{if(gi.isClient){if(!parent)throw new Error("W3mFrame: parent is not set");Yf.frameEvent.parse(s),parent.postMessage(s,"*")}}},this.projectId=e,this.frameLoadPromise=new Promise((s,c)=>{this.frameLoadPromiseResolver={resolve:s,reject:c}}),n&&(this.frameLoadPromise=new Promise((s,c)=>{this.frameLoadPromiseResolver={resolve:s,reject:c}}),gi.isClient)){const s=document.createElement("iframe");s.id="w3m-iframe",s.src=`${nQ}?projectId=${e}&chainId=${r}&version=${iQ}&enableLogger=${i}`,s.name="w3m-secure-iframe",s.style.position="fixed",s.style.zIndex="999999",s.style.display="none",s.style.animationDelay="0s, 50ms",s.style.borderBottomLeftRadius="clamp(0px, var(--wui-border-radius-l), 44px)",s.style.borderBottomRightRadius="clamp(0px, var(--wui-border-radius-l), 44px)",this.iframe=s,this.iframe.onerror=()=>{var c;(c=this.frameLoadPromiseResolver)==null||c.reject("Unable to load email login dependency")},this.events.onFrameEvent(c=>{var u;c.type==="@w3m-frame/READY"&&((u=this.frameLoadPromiseResolver)==null||u.resolve(void 0))})}}get networks(){const e=["eip155:1","eip155:5","eip155:11155111","eip155:10","eip155:420","eip155:42161","eip155:421613","eip155:137","eip155:80001","eip155:42220","eip155:1313161554","eip155:1313161555","eip155:56","eip155:97","eip155:43114","eip155:43113","eip155:324","eip155:280","eip155:100","eip155:8453","eip155:84531","eip155:84532","eip155:7777777","eip155:999","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","solana:4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z","solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1"].map(n=>({[n]:{rpcUrl:`${this.rpcUrl}/v1/?chainId=${n}&projectId=${this.projectId}`,chainId:n}}));return Object.assign({},...e)}}class Zee{constructor(e){var s;const n=yd({level:rQ}),{logger:r,chunkLoggerController:i}=jE({opts:n});this.logger=Pr(r,this.constructor.name),this.chunkLoggerController=i,typeof window<"u"&&((s=this.chunkLoggerController)!=null&&s.downloadLogsBlobInBrowser)&&(window.downloadAppKitLogsBlob||(window.downloadAppKitLogsBlob={}),window.downloadAppKitLogsBlob.sdk=()=>{var c;(c=this.chunkLoggerController)!=null&&c.downloadLogsBlobInBrowser&&this.chunkLoggerController.downloadLogsBlobInBrowser({projectId:e})})}}class Xee{constructor({projectId:e,chainId:n,enableLogger:r=!0,onTimeout:i}){this.openRpcRequests=[],r&&(this.w3mLogger=new Zee(e)),this.w3mFrame=new Yee({projectId:e,isAppClient:!0,chainId:n,enableLogger:r}),this.onTimeout=i,this.getLoginEmailUsed()&&this.w3mFrame.initFrame(),this.initPromise=new Promise(s=>{this.w3mFrame.events.onFrameEvent(c=>{c.type===Re.FRAME_READY&&(this.initPromise=void 0,s())})})}async init(){this.w3mFrame.initFrame(),this.initPromise&&await this.initPromise}getLoginEmailUsed(){return!!yr.get(Re.EMAIL_LOGIN_USED_KEY)}getEmail(){return yr.get(Re.EMAIL)}getUsername(){return yr.get(Re.SOCIAL_USERNAME)}async reload(){var e;try{this.w3mFrame.initFrame(),await this.appEvent({type:Re.APP_RELOAD})}catch(n){throw(e=this.w3mLogger)==null||e.logger.error({error:n},"Error reloading iframe"),n}}async connectEmail(e){var n;try{gi.checkIfAllowedToTriggerEmail(),this.w3mFrame.initFrame();const r=await this.appEvent({type:Re.APP_CONNECT_EMAIL,payload:e});return this.setNewLastEmailLoginTime(),r}catch(r){throw(n=this.w3mLogger)==null||n.logger.error({error:r},"Error connecting email"),r}}async connectDevice(){var e;try{return this.appEvent({type:Re.APP_CONNECT_DEVICE})}catch(n){throw(e=this.w3mLogger)==null||e.logger.error({error:n},"Error connecting device"),n}}async connectOtp(e){var n;try{return this.appEvent({type:Re.APP_CONNECT_OTP,payload:e})}catch(r){throw(n=this.w3mLogger)==null||n.logger.error({error:r},"Error connecting otp"),r}}async isConnected(){var e;try{if(!this.getLoginEmailUsed())return{isConnected:!1};const n=await this.appEvent({type:Re.APP_IS_CONNECTED});return n.isConnected||this.deleteAuthLoginCache(),n}catch(n){throw this.deleteAuthLoginCache(),(e=this.w3mLogger)==null||e.logger.error({error:n},"Error checking connection"),n}}async getChainId(){var e;try{const n=await this.appEvent({type:Re.APP_GET_CHAIN_ID});return this.setLastUsedChainId(n.chainId),n}catch(n){throw(e=this.w3mLogger)==null||e.logger.error({error:n},"Error getting chain id"),n}}async getSocialRedirectUri(e){var n;try{return this.w3mFrame.initFrame(),this.appEvent({type:Re.APP_GET_SOCIAL_REDIRECT_URI,payload:e})}catch(r){throw(n=this.w3mLogger)==null||n.logger.error({error:r},"Error getting social redirect uri"),r}}async updateEmail(e){var n;try{const r=await this.appEvent({type:Re.APP_UPDATE_EMAIL,payload:e});return this.setNewLastEmailLoginTime(),r}catch(r){throw(n=this.w3mLogger)==null||n.logger.error({error:r},"Error updating email"),r}}async updateEmailPrimaryOtp(e){var n;try{return this.appEvent({type:Re.APP_UPDATE_EMAIL_PRIMARY_OTP,payload:e})}catch(r){throw(n=this.w3mLogger)==null||n.logger.error({error:r},"Error updating email primary otp"),r}}async updateEmailSecondaryOtp(e){var n;try{const r=await this.appEvent({type:Re.APP_UPDATE_EMAIL_SECONDARY_OTP,payload:e});return this.setLoginSuccess(r.newEmail),r}catch(r){throw(n=this.w3mLogger)==null||n.logger.error({error:r},"Error updating email secondary otp"),r}}async syncTheme(e){var n;try{return this.appEvent({type:Re.APP_SYNC_THEME,payload:e})}catch(r){throw(n=this.w3mLogger)==null||n.logger.error({error:r},"Error syncing theme"),r}}async syncDappData(e){var n;try{return this.appEvent({type:Re.APP_SYNC_DAPP_DATA,payload:e})}catch(r){throw(n=this.w3mLogger)==null||n.logger.error({error:r},"Error syncing dapp data"),r}}async getSmartAccountEnabledNetworks(){var e;try{const n=await this.appEvent({type:Re.APP_GET_SMART_ACCOUNT_ENABLED_NETWORKS});return this.persistSmartAccountEnabledNetworks(n.smartAccountEnabledNetworks),n}catch(n){throw this.persistSmartAccountEnabledNetworks([]),(e=this.w3mLogger)==null||e.logger.error({error:n},"Error getting smart account enabled networks"),n}}async setPreferredAccount(e){var n;try{return this.appEvent({type:Re.APP_SET_PREFERRED_ACCOUNT,payload:{type:e}})}catch(r){throw(n=this.w3mLogger)==null||n.logger.error({error:r},"Error setting preferred account"),r}}async connect(e){var n;try{const r=(e==null?void 0:e.chainId)||this.getLastUsedChainId()||1,i=await this.appEvent({type:Re.APP_GET_USER,payload:{...e,chainId:r}});return this.setLoginSuccess(i.email),this.setLastUsedChainId(i.chainId),this.user=i,i}catch(r){throw(n=this.w3mLogger)==null||n.logger.error({error:r},"Error connecting"),r}}async getUser(e){var n;try{const r=(e==null?void 0:e.chainId)||this.getLastUsedChainId()||1,i=await this.appEvent({type:Re.APP_GET_USER,payload:{...e,chainId:r}});return this.user=i,i}catch(r){throw(n=this.w3mLogger)==null||n.logger.error({error:r},"Error connecting"),r}}async connectSocial(e){var n;try{this.w3mFrame.initFrame();const r=await this.appEvent({type:Re.APP_CONNECT_SOCIAL,payload:{uri:e}});return r.userName&&this.setSocialLoginSuccess(r.userName),r}catch(r){throw(n=this.w3mLogger)==null||n.logger.error({error:r},"Error connecting social"),r}}async getFarcasterUri(){var e;try{return this.w3mFrame.initFrame(),await this.appEvent({type:Re.APP_GET_FARCASTER_URI})}catch(n){throw(e=this.w3mLogger)==null||e.logger.error({error:n},"Error getting farcaster uri"),n}}async connectFarcaster(){var e;try{const n=await this.appEvent({type:Re.APP_CONNECT_FARCASTER});return n.userName&&this.setSocialLoginSuccess(n.userName),n}catch(n){throw(e=this.w3mLogger)==null||e.logger.error({error:n},"Error connecting farcaster"),n}}async switchNetwork(e){var n;try{const r=await this.appEvent({type:Re.APP_SWITCH_NETWORK,payload:{chainId:e}});return this.setLastUsedChainId(r.chainId),r}catch(r){throw(n=this.w3mLogger)==null||n.logger.error({error:r},"Error switching network"),r}}async disconnect(){var e;try{const n=await this.appEvent({type:Re.APP_SIGN_OUT});return this.deleteAuthLoginCache(),n}catch(n){throw(e=this.w3mLogger)==null||e.logger.error({error:n},"Error disconnecting"),n}}async request(e){var n,r,i,s;try{if(yn.GET_CHAIN_ID===e.method)return this.getLastUsedChainId();(n=this.rpcRequestHandler)==null||n.call(this,e);const c=await this.appEvent({type:Re.APP_RPC_REQUEST,payload:e});return(r=this.rpcSuccessHandler)==null||r.call(this,c,e),c}catch(c){throw(i=this.rpcErrorHandler)==null||i.call(this,c,e),(s=this.w3mLogger)==null||s.logger.error({error:c},"Error requesting"),c}}onRpcRequest(e){this.rpcRequestHandler=e}onRpcSuccess(e){this.rpcSuccessHandler=e}onRpcError(e){this.rpcErrorHandler=e}onIsConnected(e){this.w3mFrame.events.onFrameEvent(n=>{n.type===Re.FRAME_IS_CONNECTED_SUCCESS&&n.payload.isConnected&&e()})}onNotConnected(e){this.w3mFrame.events.onFrameEvent(n=>{n.type===Re.FRAME_IS_CONNECTED_ERROR&&e(),n.type===Re.FRAME_IS_CONNECTED_SUCCESS&&!n.payload.isConnected&&e()})}onConnect(e){this.w3mFrame.events.onFrameEvent(n=>{n.type===Re.FRAME_GET_USER_SUCCESS&&e(n.payload)})}onSocialConnected(e){this.w3mFrame.events.onFrameEvent(n=>{n.type===Re.FRAME_CONNECT_SOCIAL_SUCCESS&&e(n.payload)})}async getCapabilities(){try{return await this.request({method:"wallet_getCapabilities"})||{}}catch{return{}}}onSetPreferredAccount(e){this.w3mFrame.events.onFrameEvent(n=>{n.type===Re.FRAME_SET_PREFERRED_ACCOUNT_SUCCESS?e(n.payload):n.type===Re.FRAME_SET_PREFERRED_ACCOUNT_ERROR&&e({type:yn.ACCOUNT_TYPES.EOA})})}onGetSmartAccountEnabledNetworks(e){this.w3mFrame.events.onFrameEvent(n=>{n.type===Re.FRAME_GET_SMART_ACCOUNT_ENABLED_NETWORKS_SUCCESS?e(n.payload.smartAccountEnabledNetworks):n.type===Re.FRAME_GET_SMART_ACCOUNT_ENABLED_NETWORKS_ERROR&&e([])})}getAvailableChainIds(){return Object.keys(this.w3mFrame.networks)}rejectRpcRequests(){var e;try{this.openRpcRequests.forEach(({abortController:n,method:r})=>{yn.SAFE_RPC_METHODS.includes(r)||n.abort()}),this.openRpcRequests=[]}catch(n){(e=this.w3mLogger)==null||e.logger.error({error:n},"Error aborting RPC request")}}async appEvent(e){await this.w3mFrame.frameLoadPromise;let n;function r(u){return u.replace("@w3m-app/","")}const i=new AbortController,s=r(e.type);return[Re.APP_CONNECT_EMAIL,Re.APP_CONNECT_DEVICE,Re.APP_CONNECT_OTP,Re.APP_CONNECT_SOCIAL,Re.APP_GET_SOCIAL_REDIRECT_URI].map(r).includes(s)&&(n=setTimeout(()=>{var u;(u=this.onTimeout)==null||u.call(this),i.abort()},3e4)),new Promise((u,f)=>{var g,m,y;const d=Math.random().toString(36).substring(7);if((y=(g=this.w3mLogger)==null?void 0:(m=g.logger).info)==null||y.call(m,{event:e,id:d},"Sending app event"),this.w3mFrame.events.postAppEvent({...e,id:d}),s==="RPC_REQUEST"){const A=e;this.openRpcRequests=[...this.openRpcRequests,{...A.payload,abortController:i}]}i.signal.addEventListener("abort",()=>{s==="RPC_REQUEST"?f(new Error("Request was aborted")):s!=="GET_FARCASTER_URI"&&f(new Error("Something went wrong"))});function p(A,E){var x,O,I;A.id===d&&((O=E==null?void 0:(x=E.logger).info)==null||O.call(x,{framEvent:A,id:d},"Received frame response"),A.type===`@w3m-frame/${s}_SUCCESS`?(n&&clearTimeout(n),"payload"in A&&u(A.payload),u(void 0)):A.type===`@w3m-frame/${s}_ERROR`&&(n&&clearTimeout(n),"payload"in A&&f(new Error(((I=A.payload)==null?void 0:I.message)||"An error occurred")),f(new Error("An error occurred"))))}this.w3mFrame.events.registerFrameEventHandler(d,A=>p(A,this.w3mLogger),i.signal)})}setNewLastEmailLoginTime(){yr.set(Re.LAST_EMAIL_LOGIN_TIME,Date.now().toString())}setSocialLoginSuccess(e){yr.set(Re.SOCIAL_USERNAME,e)}setLoginSuccess(e){e&&yr.set(Re.EMAIL,e),yr.set(Re.EMAIL_LOGIN_USED_KEY,"true"),yr.delete(Re.LAST_EMAIL_LOGIN_TIME)}deleteAuthLoginCache(){yr.delete(Re.EMAIL_LOGIN_USED_KEY),yr.delete(Re.EMAIL),yr.delete(Re.LAST_USED_CHAIN_KEY),yr.delete(Re.SOCIAL_USERNAME)}setLastUsedChainId(e){e&&yr.set(Re.LAST_USED_CHAIN_KEY,String(e))}getLastUsedChainId(){const e=yr.get(Re.LAST_USED_CHAIN_KEY)??void 0,n=Number(e);return isNaN(n)?e:n}persistSmartAccountEnabledNetworks(e){yr.set(Re.SMART_ACCOUNT_ENABLED_NETWORKS,e.join(","))}}class Bl{constructor(){}static getInstance({projectId:e,chainId:n,enableLogger:r,onTimeout:i}){return Bl.instance||(Bl.instance=new Xee({projectId:e,chainId:n,enableLogger:r,onTimeout:i})),Bl.instance}}const mm={eip155:void 0,solana:void 0,polkadot:void 0,bip122:void 0},Mi=gn({providers:{...mm},providerIds:{...mm}}),Wt={state:Mi,subscribeKey(t,e){return zr(Mi,t,e)},subscribeProviders(t){return Rr(Mi.providers,()=>t(Mi.providers))},setProvider(t,e){e&&(Mi.providers[t]=Zc(e))},getProvider(t){return Mi.providers[t]},setProviderId(t,e){e&&(Mi.providerIds[t]=e)},getProviderId(t){if(t)return Mi.providerIds[t]},reset(){Mi.providers={...mm},Mi.providerIds={...mm}},resetChain(t){Mi.providers[t]=void 0,Mi.providerIds[t]=void 0}};var F4={};const Jee={ACCOUNT_TABS:[{label:"Tokens"},{label:"NFTs"},{label:"Activity"}],SECURE_SITE_ORIGIN:(typeof process<"u"&&typeof F4<"u"?F4.NEXT_PUBLIC_SECURE_SITE_ORIGIN:void 0)||"https://secure.walletconnect.org",VIEW_DIRECTION:{Next:"next",Prev:"prev"},DEFAULT_CONNECT_METHOD_ORDER:["email","social","wallet"],ANIMATION_DURATIONS:{HeaderText:120,ModalHeight:150,ViewTransition:150}},hE={filterOutDuplicatesByRDNS(t){const e=be.state.enableEIP6963?Ge.state.connectors:[],n=Ne.getRecentWallets(),r=e.map(u=>{var f;return(f=u.info)==null?void 0:f.rdns}).filter(Boolean),i=n.map(u=>u.rdns).filter(Boolean),s=r.concat(i);if(s.includes("io.metamask.mobile")&&$e.isMobile()){const u=s.indexOf("io.metamask.mobile");s[u]="io.metamask"}return t.filter(u=>!s.includes(String(u==null?void 0:u.rdns)))},filterOutDuplicatesByIds(t){const e=Ge.state.connectors.filter(u=>u.type==="ANNOUNCED"||u.type==="INJECTED"),n=Ne.getRecentWallets(),r=e.map(u=>u.explorerId),i=n.map(u=>u.id),s=r.concat(i);return t.filter(u=>!s.includes(u==null?void 0:u.id))},filterOutDuplicateWallets(t){const e=this.filterOutDuplicatesByRDNS(t);return this.filterOutDuplicatesByIds(e)},markWalletsAsInstalled(t){const{connectors:e}=Ge.state,n=e.filter(s=>s.type==="ANNOUNCED").reduce((s,c)=>{var u;return(u=c.info)!=null&&u.rdns&&(s[c.info.rdns]=!0),s},{});return t.map(s=>({...s,installed:!!s.rdns&&!!n[s.rdns??""]})).sort((s,c)=>Number(c.installed)-Number(s.installed))},getConnectOrderMethod(t,e){var f;const n=(t==null?void 0:t.connectMethodsOrder)||((f=be.state.features)==null?void 0:f.connectMethodsOrder),r=e||Ge.state.connectors;if(n)return n;const{injected:i,announced:s}=H1.getConnectorsByType(r),c=i.filter(H1.showConnector),u=s.filter(H1.showConnector);return c.length||u.length?["wallet","email","social"]:Jee.DEFAULT_CONNECT_METHOD_ORDER}},H1={getConnectorsByType(t){const{featured:e,recommended:n}=gt.state,{customWallets:r}=be.state,i=Ne.getRecentWallets(),s=hE.filterOutDuplicateWallets(n),c=hE.filterOutDuplicateWallets(e),u=t.filter(g=>g.type==="MULTI_CHAIN"),f=t.filter(g=>g.type==="ANNOUNCED"),d=t.filter(g=>g.type==="INJECTED"),p=t.filter(g=>g.type==="EXTERNAL");return{custom:r,recent:i,external:p,multiChain:u,announced:f,injected:d,recommended:s,featured:c}},showConnector(t){var e,n;if(t.type==="INJECTED"){if(!$e.isMobile()&&t.name==="Browser Wallet")return!1;const r=(e=t.info)==null?void 0:e.rdns;if(!r&&!ot.checkInstalled()||r&>.state.excludedRDNS&>.state.excludedRDNS.includes(r))return!1}if(t.type==="ANNOUNCED"){const r=(n=t.info)==null?void 0:n.rdns;if(r&>.state.excludedRDNS.includes(r))return!1}return!0},getIsConnectedWithWC(){return Array.from(Q.state.chains.values()).some(n=>Ge.getConnectorId(n.namespace)===he.CONNECTOR_ID.WALLET_CONNECT)}};/** + * @license + * Copyright 2019 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const kg=globalThis,L2=kg.ShadowRoot&&(kg.ShadyCSS===void 0||kg.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,$2=Symbol(),j4=new WeakMap;let G9=class{constructor(e,n,r){if(this._$cssResult$=!0,r!==$2)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=n}get styleSheet(){let e=this.o;const n=this.t;if(L2&&e===void 0){const r=n!==void 0&&n.length===1;r&&(e=j4.get(n)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&j4.set(n,e))}return e}toString(){return this.cssText}};const ki=t=>new G9(typeof t=="string"?t:t+"",void 0,$2),Ll=(t,...e)=>{const n=t.length===1?t[0]:e.reduce((r,i,s)=>r+(c=>{if(c._$cssResult$===!0)return c.cssText;if(typeof c=="number")return c;throw Error("Value passed to 'css' function must be a 'css' function result: "+c+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[s+1],t[0]);return new G9(n,t,$2)},ete=(t,e)=>{if(L2)t.adoptedStyleSheets=e.map(n=>n instanceof CSSStyleSheet?n:n.styleSheet);else for(const n of e){const r=document.createElement("style"),i=kg.litNonce;i!==void 0&&r.setAttribute("nonce",i),r.textContent=n.cssText,t.appendChild(r)}},z4=L2?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let n="";for(const r of e.cssRules)n+=r.cssText;return ki(n)})(t):t;/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const{is:tte,defineProperty:nte,getOwnPropertyDescriptor:rte,getOwnPropertyNames:ite,getOwnPropertySymbols:ste,getPrototypeOf:ate}=Object,zo=globalThis,q4=zo.trustedTypes,ote=q4?q4.emptyScript:"",G1=zo.reactiveElementPolyfillSupport,ph=(t,e)=>t,pE={toAttribute(t,e){switch(e){case Boolean:t=t?ote:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let n=t;switch(e){case Boolean:n=t!==null;break;case Number:n=t===null?null:Number(t);break;case Object:case Array:try{n=JSON.parse(t)}catch{n=null}}return n}},V9=(t,e)=>!tte(t,e),H4={attribute:!0,type:String,converter:pE,reflect:!1,hasChanged:V9};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),zo.litPropertyMetadata??(zo.litPropertyMetadata=new WeakMap);let Il=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??(this.l=[])).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,n=H4){if(n.state&&(n.attribute=!1),this._$Ei(),this.elementProperties.set(e,n),!n.noAccessor){const r=Symbol(),i=this.getPropertyDescriptor(e,r,n);i!==void 0&&nte(this.prototype,e,i)}}static getPropertyDescriptor(e,n,r){const{get:i,set:s}=rte(this.prototype,e)??{get(){return this[n]},set(c){this[n]=c}};return{get(){return i==null?void 0:i.call(this)},set(c){const u=i==null?void 0:i.call(this);s.call(this,c),this.requestUpdate(e,u,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??H4}static _$Ei(){if(this.hasOwnProperty(ph("elementProperties")))return;const e=ate(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(ph("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ph("properties"))){const n=this.properties,r=[...ite(n),...ste(n)];for(const i of r)this.createProperty(i,n[i])}const e=this[Symbol.metadata];if(e!==null){const n=litPropertyMetadata.get(e);if(n!==void 0)for(const[r,i]of n)this.elementProperties.set(r,i)}this._$Eh=new Map;for(const[n,r]of this.elementProperties){const i=this._$Eu(n,r);i!==void 0&&this._$Eh.set(i,n)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const n=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const i of r)n.unshift(z4(i))}else e!==void 0&&n.push(z4(e));return n}static _$Eu(e,n){const r=n.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(n=>this.enableUpdating=n),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(n=>n(this))}addController(e){var n;(this._$EO??(this._$EO=new Set)).add(e),this.renderRoot!==void 0&&this.isConnected&&((n=e.hostConnected)==null||n.call(e))}removeController(e){var n;(n=this._$EO)==null||n.delete(e)}_$E_(){const e=new Map,n=this.constructor.elementProperties;for(const r of n.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return ete(e,this.constructor.elementStyles),e}connectedCallback(){var e;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(n=>{var r;return(r=n.hostConnected)==null?void 0:r.call(n)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(n=>{var r;return(r=n.hostDisconnected)==null?void 0:r.call(n)})}attributeChangedCallback(e,n,r){this._$AK(e,r)}_$EC(e,n){var s;const r=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,r);if(i!==void 0&&r.reflect===!0){const c=(((s=r.converter)==null?void 0:s.toAttribute)!==void 0?r.converter:pE).toAttribute(n,r.type);this._$Em=e,c==null?this.removeAttribute(i):this.setAttribute(i,c),this._$Em=null}}_$AK(e,n){var s;const r=this.constructor,i=r._$Eh.get(e);if(i!==void 0&&this._$Em!==i){const c=r.getPropertyOptions(i),u=typeof c.converter=="function"?{fromAttribute:c.converter}:((s=c.converter)==null?void 0:s.fromAttribute)!==void 0?c.converter:pE;this._$Em=i,this[i]=u.fromAttribute(n,c.type),this._$Em=null}}requestUpdate(e,n,r){if(e!==void 0){if(r??(r=this.constructor.getPropertyOptions(e)),!(r.hasChanged??V9)(this[e],n))return;this.P(e,n,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(e,n,r){this._$AL.has(e)||this._$AL.set(e,n),r.reflect===!0&&this._$Em!==e&&(this._$Ej??(this._$Ej=new Set)).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(n){Promise.reject(n)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[s,c]of this._$Ep)this[s]=c;this._$Ep=void 0}const i=this.constructor.elementProperties;if(i.size>0)for(const[s,c]of i)c.wrapped!==!0||this._$AL.has(s)||this[s]===void 0||this.P(s,this[s],c)}let e=!1;const n=this._$AL;try{e=this.shouldUpdate(n),e?(this.willUpdate(n),(r=this._$EO)==null||r.forEach(i=>{var s;return(s=i.hostUpdate)==null?void 0:s.call(i)}),this.update(n)):this._$EU()}catch(i){throw e=!1,this._$EU(),i}e&&this._$AE(n)}willUpdate(e){}_$AE(e){var n;(n=this._$EO)==null||n.forEach(r=>{var i;return(i=r.hostUpdated)==null?void 0:i.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&(this._$Ej=this._$Ej.forEach(n=>this._$EC(n,this[n]))),this._$EU()}updated(e){}firstUpdated(e){}};Il.elementStyles=[],Il.shadowRootOptions={mode:"open"},Il[ph("elementProperties")]=new Map,Il[ph("finalized")]=new Map,G1==null||G1({ReactiveElement:Il}),(zo.reactiveElementVersions??(zo.reactiveElementVersions=[])).push("2.0.4");/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const gh=globalThis,bm=gh.trustedTypes,G4=bm?bm.createPolicy("lit-html",{createHTML:t=>t}):void 0,K9="$lit$",Co=`lit$${Math.random().toFixed(9).slice(2)}$`,W9="?"+Co,cte=`<${W9}>`,fu=document,Yh=()=>fu.createComment(""),Zh=t=>t===null||typeof t!="object"&&typeof t!="function",F2=Array.isArray,ute=t=>F2(t)||typeof(t==null?void 0:t[Symbol.iterator])=="function",V1=`[ +\f\r]`,Zf=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,V4=/-->/g,K4=/>/g,Cc=RegExp(`>|${V1}(?:([^\\s"'>=/]+)(${V1}*=${V1}*(?:[^ +\f\r"'\`<>=]|("|')|))|$)`,"g"),W4=/'/g,Q4=/"/g,Q9=/^(?:script|style|textarea|title)$/i,Y9=t=>(e,...n)=>({_$litType$:t,strings:e,values:n}),Ise=Y9(1),Ose=Y9(2),ld=Symbol.for("lit-noChange"),cr=Symbol.for("lit-nothing"),Y4=new WeakMap,kc=fu.createTreeWalker(fu,129);function Z9(t,e){if(!F2(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return G4!==void 0?G4.createHTML(e):e}const lte=(t,e)=>{const n=t.length-1,r=[];let i,s=e===2?"":e===3?"":"",c=Zf;for(let u=0;u"?(c=i??Zf,g=-1):p[1]===void 0?g=-2:(g=c.lastIndex-p[2].length,d=p[1],c=p[3]===void 0?Cc:p[3]==='"'?Q4:W4):c===Q4||c===W4?c=Cc:c===V4||c===K4?c=Zf:(c=Cc,i=void 0);const y=c===Cc&&t[u+1].startsWith("/>")?" ":"";s+=c===Zf?f+cte:g>=0?(r.push(d),f.slice(0,g)+K9+f.slice(g)+Co+y):f+Co+(g===-2?u:y)}return[Z9(t,s+(t[n]||"")+(e===2?"":e===3?"":"")),r]};class Xh{constructor({strings:e,_$litType$:n},r){let i;this.parts=[];let s=0,c=0;const u=e.length-1,f=this.parts,[d,p]=lte(e,n);if(this.el=Xh.createElement(d,r),kc.currentNode=this.el.content,n===2||n===3){const g=this.el.content.firstChild;g.replaceWith(...g.childNodes)}for(;(i=kc.nextNode())!==null&&f.length0){i.textContent=bm?bm.emptyScript:"";for(let y=0;y2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=cr}_$AI(e,n=this,r,i){const s=this.strings;let c=!1;if(s===void 0)e=dd(this,e,n,0),c=!Zh(e)||e!==this._$AH&&e!==ld,c&&(this._$AH=e);else{const u=e;let f,d;for(e=s[0],f=0;f{const r=(n==null?void 0:n.renderBefore)??e;let i=r._$litPart$;if(i===void 0){const s=(n==null?void 0:n.renderBefore)??null;r._$litPart$=i=new Rp(e.insertBefore(Yh(),s),s,void 0,n??{})}return i._$AI(t),i};/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */class Ug extends Il{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var n;const e=super.createRenderRoot();return(n=this.renderOptions).renderBefore??(n.renderBefore=e.firstChild),e}update(e){const n=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=mte(n,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return ld}}var O8;Ug._$litElement$=!0,Ug.finalized=!0,(O8=globalThis.litElementHydrateSupport)==null||O8.call(globalThis,{LitElement:Ug});const W1=globalThis.litElementPolyfillSupport;W1==null||W1({LitElement:Ug});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.1");let mh,qo,Ho;function Rse(t,e){mh=document.createElement("style"),qo=document.createElement("style"),Ho=document.createElement("style"),mh.textContent=$l(t).core.cssText,qo.textContent=$l(t).dark.cssText,Ho.textContent=$l(t).light.cssText,document.head.appendChild(mh),document.head.appendChild(qo),document.head.appendChild(Ho),X9(e)}function X9(t){qo&&Ho&&(t==="light"?(qo.removeAttribute("media"),Ho.media="enabled"):(Ho.removeAttribute("media"),qo.media="enabled"))}function bte(t){mh&&qo&&Ho&&(mh.textContent=$l(t).core.cssText,qo.textContent=$l(t).dark.cssText,Ho.textContent=$l(t).light.cssText)}function $l(t){return{core:Ll` + @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap'); + @keyframes w3m-shake { + 0% { + transform: scale(1) rotate(0deg); + } + 20% { + transform: scale(1) rotate(-1deg); + } + 40% { + transform: scale(1) rotate(1.5deg); + } + 60% { + transform: scale(1) rotate(-1.5deg); + } + 80% { + transform: scale(1) rotate(1deg); + } + 100% { + transform: scale(1) rotate(0deg); + } + } + @keyframes w3m-iframe-fade-out { + 0% { + opacity: 1; + } + 100% { + opacity: 0; + } + } + @keyframes w3m-iframe-zoom-in { + 0% { + transform: translateY(50px); + opacity: 0; + } + 100% { + transform: translateY(0px); + opacity: 1; + } + } + @keyframes w3m-iframe-zoom-in-mobile { + 0% { + transform: scale(0.95); + opacity: 0; + } + 100% { + transform: scale(1); + opacity: 1; + } + } + :root { + --w3m-modal-width: 360px; + --w3m-color-mix-strength: ${ki(t!=null&&t["--w3m-color-mix-strength"]?`${t["--w3m-color-mix-strength"]}%`:"0%")}; + --w3m-font-family: ${ki((t==null?void 0:t["--w3m-font-family"])||"Inter, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;")}; + --w3m-font-size-master: ${ki((t==null?void 0:t["--w3m-font-size-master"])||"10px")}; + --w3m-border-radius-master: ${ki((t==null?void 0:t["--w3m-border-radius-master"])||"4px")}; + --w3m-z-index: ${ki((t==null?void 0:t["--w3m-z-index"])||999)}; + + --wui-font-family: var(--w3m-font-family); + + --wui-font-size-mini: calc(var(--w3m-font-size-master) * 0.8); + --wui-font-size-micro: var(--w3m-font-size-master); + --wui-font-size-tiny: calc(var(--w3m-font-size-master) * 1.2); + --wui-font-size-small: calc(var(--w3m-font-size-master) * 1.4); + --wui-font-size-paragraph: calc(var(--w3m-font-size-master) * 1.6); + --wui-font-size-medium: calc(var(--w3m-font-size-master) * 1.8); + --wui-font-size-large: calc(var(--w3m-font-size-master) * 2); + --wui-font-size-title-6: calc(var(--w3m-font-size-master) * 2.2); + --wui-font-size-medium-title: calc(var(--w3m-font-size-master) * 2.4); + --wui-font-size-2xl: calc(var(--w3m-font-size-master) * 4); + + --wui-border-radius-5xs: var(--w3m-border-radius-master); + --wui-border-radius-4xs: calc(var(--w3m-border-radius-master) * 1.5); + --wui-border-radius-3xs: calc(var(--w3m-border-radius-master) * 2); + --wui-border-radius-xxs: calc(var(--w3m-border-radius-master) * 3); + --wui-border-radius-xs: calc(var(--w3m-border-radius-master) * 4); + --wui-border-radius-s: calc(var(--w3m-border-radius-master) * 5); + --wui-border-radius-m: calc(var(--w3m-border-radius-master) * 7); + --wui-border-radius-l: calc(var(--w3m-border-radius-master) * 9); + --wui-border-radius-3xl: calc(var(--w3m-border-radius-master) * 20); + + --wui-font-weight-light: 400; + --wui-font-weight-regular: 500; + --wui-font-weight-medium: 600; + --wui-font-weight-bold: 700; + + --wui-letter-spacing-2xl: -1.6px; + --wui-letter-spacing-medium-title: -0.96px; + --wui-letter-spacing-title-6: -0.88px; + --wui-letter-spacing-large: -0.8px; + --wui-letter-spacing-medium: -0.72px; + --wui-letter-spacing-paragraph: -0.64px; + --wui-letter-spacing-small: -0.56px; + --wui-letter-spacing-tiny: -0.48px; + --wui-letter-spacing-micro: -0.2px; + --wui-letter-spacing-mini: -0.16px; + + --wui-spacing-0: 0px; + --wui-spacing-4xs: 2px; + --wui-spacing-3xs: 4px; + --wui-spacing-xxs: 6px; + --wui-spacing-2xs: 7px; + --wui-spacing-xs: 8px; + --wui-spacing-1xs: 10px; + --wui-spacing-s: 12px; + --wui-spacing-m: 14px; + --wui-spacing-l: 16px; + --wui-spacing-2l: 18px; + --wui-spacing-xl: 20px; + --wui-spacing-xxl: 24px; + --wui-spacing-2xl: 32px; + --wui-spacing-3xl: 40px; + --wui-spacing-4xl: 90px; + --wui-spacing-5xl: 95px; + + --wui-icon-box-size-xxs: 14px; + --wui-icon-box-size-xs: 20px; + --wui-icon-box-size-sm: 24px; + --wui-icon-box-size-md: 32px; + --wui-icon-box-size-mdl: 36px; + --wui-icon-box-size-lg: 40px; + --wui-icon-box-size-2lg: 48px; + --wui-icon-box-size-xl: 64px; + + --wui-icon-size-inherit: inherit; + --wui-icon-size-xxs: 10px; + --wui-icon-size-xs: 12px; + --wui-icon-size-sm: 14px; + --wui-icon-size-md: 16px; + --wui-icon-size-mdl: 18px; + --wui-icon-size-lg: 20px; + --wui-icon-size-xl: 24px; + --wui-icon-size-xxl: 28px; + + --wui-wallet-image-size-inherit: inherit; + --wui-wallet-image-size-sm: 40px; + --wui-wallet-image-size-md: 56px; + --wui-wallet-image-size-lg: 80px; + + --wui-visual-size-size-inherit: inherit; + --wui-visual-size-sm: 40px; + --wui-visual-size-md: 55px; + --wui-visual-size-lg: 80px; + + --wui-box-size-md: 100px; + --wui-box-size-lg: 120px; + + --wui-ease-out-power-2: cubic-bezier(0, 0, 0.22, 1); + --wui-ease-out-power-1: cubic-bezier(0, 0, 0.55, 1); + + --wui-ease-in-power-3: cubic-bezier(0.66, 0, 1, 1); + --wui-ease-in-power-2: cubic-bezier(0.45, 0, 1, 1); + --wui-ease-in-power-1: cubic-bezier(0.3, 0, 1, 1); + + --wui-ease-inout-power-1: cubic-bezier(0.45, 0, 0.55, 1); + + --wui-duration-lg: 200ms; + --wui-duration-md: 125ms; + --wui-duration-sm: 75ms; + + --wui-path-network-sm: path( + 'M15.4 2.1a5.21 5.21 0 0 1 5.2 0l11.61 6.7a5.21 5.21 0 0 1 2.61 4.52v13.4c0 1.87-1 3.59-2.6 4.52l-11.61 6.7c-1.62.93-3.6.93-5.22 0l-11.6-6.7a5.21 5.21 0 0 1-2.61-4.51v-13.4c0-1.87 1-3.6 2.6-4.52L15.4 2.1Z' + ); + + --wui-path-network-md: path( + 'M43.4605 10.7248L28.0485 1.61089C25.5438 0.129705 22.4562 0.129705 19.9515 1.61088L4.53951 10.7248C2.03626 12.2051 0.5 14.9365 0.5 17.886V36.1139C0.5 39.0635 2.03626 41.7949 4.53951 43.2752L19.9515 52.3891C22.4562 53.8703 25.5438 53.8703 28.0485 52.3891L43.4605 43.2752C45.9637 41.7949 47.5 39.0635 47.5 36.114V17.8861C47.5 14.9365 45.9637 12.2051 43.4605 10.7248Z' + ); + + --wui-path-network-lg: path( + 'M78.3244 18.926L50.1808 2.45078C45.7376 -0.150261 40.2624 -0.150262 35.8192 2.45078L7.6756 18.926C3.23322 21.5266 0.5 26.3301 0.5 31.5248V64.4752C0.5 69.6699 3.23322 74.4734 7.6756 77.074L35.8192 93.5492C40.2624 96.1503 45.7376 96.1503 50.1808 93.5492L78.3244 77.074C82.7668 74.4734 85.5 69.6699 85.5 64.4752V31.5248C85.5 26.3301 82.7668 21.5266 78.3244 18.926Z' + ); + + --wui-width-network-sm: 36px; + --wui-width-network-md: 48px; + --wui-width-network-lg: 86px; + + --wui-height-network-sm: 40px; + --wui-height-network-md: 54px; + --wui-height-network-lg: 96px; + + --wui-icon-size-network-xs: 12px; + --wui-icon-size-network-sm: 16px; + --wui-icon-size-network-md: 24px; + --wui-icon-size-network-lg: 42px; + + --wui-color-inherit: inherit; + + --wui-color-inverse-100: #fff; + --wui-color-inverse-000: #000; + + --wui-cover: rgba(20, 20, 20, 0.8); + + --wui-color-modal-bg: var(--wui-color-modal-bg-base); + + --wui-color-accent-100: var(--wui-color-accent-base-100); + --wui-color-accent-090: var(--wui-color-accent-base-090); + --wui-color-accent-080: var(--wui-color-accent-base-080); + + --wui-color-success-100: var(--wui-color-success-base-100); + --wui-color-success-125: var(--wui-color-success-base-125); + + --wui-color-warning-100: var(--wui-color-warning-base-100); + + --wui-color-error-100: var(--wui-color-error-base-100); + --wui-color-error-125: var(--wui-color-error-base-125); + + --wui-color-blue-100: var(--wui-color-blue-base-100); + --wui-color-blue-90: var(--wui-color-blue-base-90); + + --wui-icon-box-bg-error-100: var(--wui-icon-box-bg-error-base-100); + --wui-icon-box-bg-blue-100: var(--wui-icon-box-bg-blue-base-100); + --wui-icon-box-bg-success-100: var(--wui-icon-box-bg-success-base-100); + --wui-icon-box-bg-inverse-100: var(--wui-icon-box-bg-inverse-base-100); + + --wui-all-wallets-bg-100: var(--wui-all-wallets-bg-100); + + --wui-avatar-border: var(--wui-avatar-border-base); + + --wui-thumbnail-border: var(--wui-thumbnail-border-base); + + --wui-wallet-button-bg: var(--wui-wallet-button-bg-base); + + --wui-box-shadow-blue: var(--wui-color-accent-glass-020); + } + + @supports (background: color-mix(in srgb, white 50%, black)) { + :root { + --wui-color-modal-bg: color-mix( + in srgb, + var(--w3m-color-mix) var(--w3m-color-mix-strength), + var(--wui-color-modal-bg-base) + ); + + --wui-box-shadow-blue: color-mix(in srgb, var(--wui-color-accent-100) 20%, transparent); + + --wui-color-accent-100: color-mix( + in srgb, + var(--wui-color-accent-base-100) 100%, + transparent + ); + --wui-color-accent-090: color-mix( + in srgb, + var(--wui-color-accent-base-100) 90%, + transparent + ); + --wui-color-accent-080: color-mix( + in srgb, + var(--wui-color-accent-base-100) 80%, + transparent + ); + --wui-color-accent-glass-090: color-mix( + in srgb, + var(--wui-color-accent-base-100) 90%, + transparent + ); + --wui-color-accent-glass-080: color-mix( + in srgb, + var(--wui-color-accent-base-100) 80%, + transparent + ); + --wui-color-accent-glass-020: color-mix( + in srgb, + var(--wui-color-accent-base-100) 20%, + transparent + ); + --wui-color-accent-glass-015: color-mix( + in srgb, + var(--wui-color-accent-base-100) 15%, + transparent + ); + --wui-color-accent-glass-010: color-mix( + in srgb, + var(--wui-color-accent-base-100) 10%, + transparent + ); + --wui-color-accent-glass-005: color-mix( + in srgb, + var(--wui-color-accent-base-100) 5%, + transparent + ); + --wui-color-accent-002: color-mix( + in srgb, + var(--wui-color-accent-base-100) 2%, + transparent + ); + + --wui-color-fg-100: color-mix( + in srgb, + var(--w3m-color-mix) var(--w3m-color-mix-strength), + var(--wui-color-fg-100) + ); + --wui-color-fg-125: color-mix( + in srgb, + var(--w3m-color-mix) var(--w3m-color-mix-strength), + var(--wui-color-fg-125) + ); + --wui-color-fg-150: color-mix( + in srgb, + var(--w3m-color-mix) var(--w3m-color-mix-strength), + var(--wui-color-fg-150) + ); + --wui-color-fg-175: color-mix( + in srgb, + var(--w3m-color-mix) var(--w3m-color-mix-strength), + var(--wui-color-fg-175) + ); + --wui-color-fg-200: color-mix( + in srgb, + var(--w3m-color-mix) var(--w3m-color-mix-strength), + var(--wui-color-fg-200) + ); + --wui-color-fg-225: color-mix( + in srgb, + var(--w3m-color-mix) var(--w3m-color-mix-strength), + var(--wui-color-fg-225) + ); + --wui-color-fg-250: color-mix( + in srgb, + var(--w3m-color-mix) var(--w3m-color-mix-strength), + var(--wui-color-fg-250) + ); + --wui-color-fg-275: color-mix( + in srgb, + var(--w3m-color-mix) var(--w3m-color-mix-strength), + var(--wui-color-fg-275) + ); + --wui-color-fg-300: color-mix( + in srgb, + var(--w3m-color-mix) var(--w3m-color-mix-strength), + var(--wui-color-fg-300) + ); + --wui-color-fg-325: color-mix( + in srgb, + var(--w3m-color-mix) var(--w3m-color-mix-strength), + var(--wui-color-fg-325) + ); + --wui-color-fg-350: color-mix( + in srgb, + var(--w3m-color-mix) var(--w3m-color-mix-strength), + var(--wui-color-fg-350) + ); + + --wui-color-bg-100: color-mix( + in srgb, + var(--w3m-color-mix) var(--w3m-color-mix-strength), + var(--wui-color-bg-100) + ); + --wui-color-bg-125: color-mix( + in srgb, + var(--w3m-color-mix) var(--w3m-color-mix-strength), + var(--wui-color-bg-125) + ); + --wui-color-bg-150: color-mix( + in srgb, + var(--w3m-color-mix) var(--w3m-color-mix-strength), + var(--wui-color-bg-150) + ); + --wui-color-bg-175: color-mix( + in srgb, + var(--w3m-color-mix) var(--w3m-color-mix-strength), + var(--wui-color-bg-175) + ); + --wui-color-bg-200: color-mix( + in srgb, + var(--w3m-color-mix) var(--w3m-color-mix-strength), + var(--wui-color-bg-200) + ); + --wui-color-bg-225: color-mix( + in srgb, + var(--w3m-color-mix) var(--w3m-color-mix-strength), + var(--wui-color-bg-225) + ); + --wui-color-bg-250: color-mix( + in srgb, + var(--w3m-color-mix) var(--w3m-color-mix-strength), + var(--wui-color-bg-250) + ); + --wui-color-bg-275: color-mix( + in srgb, + var(--w3m-color-mix) var(--w3m-color-mix-strength), + var(--wui-color-bg-275) + ); + --wui-color-bg-300: color-mix( + in srgb, + var(--w3m-color-mix) var(--w3m-color-mix-strength), + var(--wui-color-bg-300) + ); + --wui-color-bg-325: color-mix( + in srgb, + var(--w3m-color-mix) var(--w3m-color-mix-strength), + var(--wui-color-bg-325) + ); + --wui-color-bg-350: color-mix( + in srgb, + var(--w3m-color-mix) var(--w3m-color-mix-strength), + var(--wui-color-bg-350) + ); + + --wui-color-success-100: color-mix( + in srgb, + var(--w3m-color-mix) var(--w3m-color-mix-strength), + var(--wui-color-success-base-100) + ); + --wui-color-success-125: color-mix( + in srgb, + var(--w3m-color-mix) var(--w3m-color-mix-strength), + var(--wui-color-success-base-125) + ); + + --wui-color-warning-100: color-mix( + in srgb, + var(--w3m-color-mix) var(--w3m-color-mix-strength), + var(--wui-color-warning-base-100) + ); + + --wui-color-error-100: color-mix( + in srgb, + var(--w3m-color-mix) var(--w3m-color-mix-strength), + var(--wui-color-error-base-100) + ); + --wui-color-blue-100: color-mix( + in srgb, + var(--w3m-color-mix) var(--w3m-color-mix-strength), + var(--wui-color-blue-base-100) + ); + --wui-color-blue-90: color-mix( + in srgb, + var(--w3m-color-mix) var(--w3m-color-mix-strength), + var(--wui-color-blue-base-90) + ); + --wui-color-error-125: color-mix( + in srgb, + var(--w3m-color-mix) var(--w3m-color-mix-strength), + var(--wui-color-error-base-125) + ); + + --wui-icon-box-bg-error-100: color-mix( + in srgb, + var(--w3m-color-mix) var(--w3m-color-mix-strength), + var(--wui-icon-box-bg-error-base-100) + ); + --wui-icon-box-bg-accent-100: color-mix( + in srgb, + var(--w3m-color-mix) var(--w3m-color-mix-strength), + var(--wui-icon-box-bg-blue-base-100) + ); + --wui-icon-box-bg-success-100: color-mix( + in srgb, + var(--w3m-color-mix) var(--w3m-color-mix-strength), + var(--wui-icon-box-bg-success-base-100) + ); + --wui-icon-box-bg-inverse-100: color-mix( + in srgb, + var(--w3m-color-mix) var(--w3m-color-mix-strength), + var(--wui-icon-box-bg-inverse-base-100) + ); + + --wui-all-wallets-bg-100: color-mix( + in srgb, + var(--w3m-color-mix) var(--w3m-color-mix-strength), + var(--wui-all-wallets-bg-100) + ); + + --wui-avatar-border: color-mix( + in srgb, + var(--w3m-color-mix) var(--w3m-color-mix-strength), + var(--wui-avatar-border-base) + ); + + --wui-thumbnail-border: color-mix( + in srgb, + var(--w3m-color-mix) var(--w3m-color-mix-strength), + var(--wui-thumbnail-border-base) + ); + + --wui-wallet-button-bg: color-mix( + in srgb, + var(--w3m-color-mix) var(--w3m-color-mix-strength), + var(--wui-wallet-button-bg-base) + ); + } + } + `,light:Ll` + :root { + --w3m-color-mix: ${ki((t==null?void 0:t["--w3m-color-mix"])||"#fff")}; + --w3m-accent: ${ki(Ia(t,"dark")["--w3m-accent"])}; + --w3m-default: #fff; + + --wui-color-modal-bg-base: ${ki(Ia(t,"dark")["--w3m-background"])}; + --wui-color-accent-base-100: var(--w3m-accent); + + --wui-color-blueberry-100: hsla(230, 100%, 67%, 1); + --wui-color-blueberry-090: hsla(231, 76%, 61%, 1); + --wui-color-blueberry-080: hsla(230, 59%, 55%, 1); + --wui-color-blueberry-050: hsla(231, 100%, 70%, 0.1); + + --wui-color-fg-100: #e4e7e7; + --wui-color-fg-125: #d0d5d5; + --wui-color-fg-150: #a8b1b1; + --wui-color-fg-175: #a8b0b0; + --wui-color-fg-200: #949e9e; + --wui-color-fg-225: #868f8f; + --wui-color-fg-250: #788080; + --wui-color-fg-275: #788181; + --wui-color-fg-300: #6e7777; + --wui-color-fg-325: #9a9a9a; + --wui-color-fg-350: #363636; + + --wui-color-bg-100: #141414; + --wui-color-bg-125: #191a1a; + --wui-color-bg-150: #1e1f1f; + --wui-color-bg-175: #222525; + --wui-color-bg-200: #272a2a; + --wui-color-bg-225: #2c3030; + --wui-color-bg-250: #313535; + --wui-color-bg-275: #363b3b; + --wui-color-bg-300: #3b4040; + --wui-color-bg-325: #252525; + --wui-color-bg-350: #ffffff; + + --wui-color-success-base-100: #26d962; + --wui-color-success-base-125: #30a46b; + + --wui-color-warning-base-100: #f3a13f; + + --wui-color-error-base-100: #f25a67; + --wui-color-error-base-125: #df4a34; + + --wui-color-blue-base-100: rgba(102, 125, 255, 1); + --wui-color-blue-base-90: rgba(102, 125, 255, 0.9); + + --wui-color-success-glass-001: rgba(38, 217, 98, 0.01); + --wui-color-success-glass-002: rgba(38, 217, 98, 0.02); + --wui-color-success-glass-005: rgba(38, 217, 98, 0.05); + --wui-color-success-glass-010: rgba(38, 217, 98, 0.1); + --wui-color-success-glass-015: rgba(38, 217, 98, 0.15); + --wui-color-success-glass-020: rgba(38, 217, 98, 0.2); + --wui-color-success-glass-025: rgba(38, 217, 98, 0.25); + --wui-color-success-glass-030: rgba(38, 217, 98, 0.3); + --wui-color-success-glass-060: rgba(38, 217, 98, 0.6); + --wui-color-success-glass-080: rgba(38, 217, 98, 0.8); + + --wui-color-success-glass-reown-020: rgba(48, 164, 107, 0.2); + + --wui-color-warning-glass-reown-020: rgba(243, 161, 63, 0.2); + + --wui-color-error-glass-001: rgba(242, 90, 103, 0.01); + --wui-color-error-glass-002: rgba(242, 90, 103, 0.02); + --wui-color-error-glass-005: rgba(242, 90, 103, 0.05); + --wui-color-error-glass-010: rgba(242, 90, 103, 0.1); + --wui-color-error-glass-015: rgba(242, 90, 103, 0.15); + --wui-color-error-glass-020: rgba(242, 90, 103, 0.2); + --wui-color-error-glass-025: rgba(242, 90, 103, 0.25); + --wui-color-error-glass-030: rgba(242, 90, 103, 0.3); + --wui-color-error-glass-060: rgba(242, 90, 103, 0.6); + --wui-color-error-glass-080: rgba(242, 90, 103, 0.8); + + --wui-color-error-glass-reown-020: rgba(223, 74, 52, 0.2); + + --wui-color-gray-glass-001: rgba(255, 255, 255, 0.01); + --wui-color-gray-glass-002: rgba(255, 255, 255, 0.02); + --wui-color-gray-glass-005: rgba(255, 255, 255, 0.05); + --wui-color-gray-glass-010: rgba(255, 255, 255, 0.1); + --wui-color-gray-glass-015: rgba(255, 255, 255, 0.15); + --wui-color-gray-glass-020: rgba(255, 255, 255, 0.2); + --wui-color-gray-glass-025: rgba(255, 255, 255, 0.25); + --wui-color-gray-glass-030: rgba(255, 255, 255, 0.3); + --wui-color-gray-glass-060: rgba(255, 255, 255, 0.6); + --wui-color-gray-glass-080: rgba(255, 255, 255, 0.8); + --wui-color-gray-glass-090: rgba(255, 255, 255, 0.9); + + --wui-color-dark-glass-100: rgba(42, 42, 42, 1); + + --wui-icon-box-bg-error-base-100: #3c2426; + --wui-icon-box-bg-blue-base-100: #20303f; + --wui-icon-box-bg-success-base-100: #1f3a28; + --wui-icon-box-bg-inverse-base-100: #243240; + + --wui-all-wallets-bg-100: #222b35; + + --wui-avatar-border-base: #252525; + + --wui-thumbnail-border-base: #252525; + + --wui-wallet-button-bg-base: var(--wui-color-bg-125); + + --w3m-card-embedded-shadow-color: rgb(17 17 18 / 25%); + } + `,dark:Ll` + :root { + --w3m-color-mix: ${ki((t==null?void 0:t["--w3m-color-mix"])||"#000")}; + --w3m-accent: ${ki(Ia(t,"light")["--w3m-accent"])}; + --w3m-default: #000; + + --wui-color-modal-bg-base: ${ki(Ia(t,"light")["--w3m-background"])}; + --wui-color-accent-base-100: var(--w3m-accent); + + --wui-color-blueberry-100: hsla(231, 100%, 70%, 1); + --wui-color-blueberry-090: hsla(231, 97%, 72%, 1); + --wui-color-blueberry-080: hsla(231, 92%, 74%, 1); + + --wui-color-fg-100: #141414; + --wui-color-fg-125: #2d3131; + --wui-color-fg-150: #474d4d; + --wui-color-fg-175: #636d6d; + --wui-color-fg-200: #798686; + --wui-color-fg-225: #828f8f; + --wui-color-fg-250: #8b9797; + --wui-color-fg-275: #95a0a0; + --wui-color-fg-300: #9ea9a9; + --wui-color-fg-325: #9a9a9a; + --wui-color-fg-350: #d0d0d0; + + --wui-color-bg-100: #ffffff; + --wui-color-bg-125: #f5fafa; + --wui-color-bg-150: #f3f8f8; + --wui-color-bg-175: #eef4f4; + --wui-color-bg-200: #eaf1f1; + --wui-color-bg-225: #e5eded; + --wui-color-bg-250: #e1e9e9; + --wui-color-bg-275: #dce7e7; + --wui-color-bg-300: #d8e3e3; + --wui-color-bg-325: #f3f3f3; + --wui-color-bg-350: #202020; + + --wui-color-success-base-100: #26b562; + --wui-color-success-base-125: #30a46b; + + --wui-color-warning-base-100: #f3a13f; + + --wui-color-error-base-100: #f05142; + --wui-color-error-base-125: #df4a34; + + --wui-color-blue-base-100: rgba(102, 125, 255, 1); + --wui-color-blue-base-90: rgba(102, 125, 255, 0.9); + + --wui-color-success-glass-001: rgba(38, 181, 98, 0.01); + --wui-color-success-glass-002: rgba(38, 181, 98, 0.02); + --wui-color-success-glass-005: rgba(38, 181, 98, 0.05); + --wui-color-success-glass-010: rgba(38, 181, 98, 0.1); + --wui-color-success-glass-015: rgba(38, 181, 98, 0.15); + --wui-color-success-glass-020: rgba(38, 181, 98, 0.2); + --wui-color-success-glass-025: rgba(38, 181, 98, 0.25); + --wui-color-success-glass-030: rgba(38, 181, 98, 0.3); + --wui-color-success-glass-060: rgba(38, 181, 98, 0.6); + --wui-color-success-glass-080: rgba(38, 181, 98, 0.8); + + --wui-color-success-glass-reown-020: rgba(48, 164, 107, 0.2); + + --wui-color-warning-glass-reown-020: rgba(243, 161, 63, 0.2); + + --wui-color-error-glass-001: rgba(240, 81, 66, 0.01); + --wui-color-error-glass-002: rgba(240, 81, 66, 0.02); + --wui-color-error-glass-005: rgba(240, 81, 66, 0.05); + --wui-color-error-glass-010: rgba(240, 81, 66, 0.1); + --wui-color-error-glass-015: rgba(240, 81, 66, 0.15); + --wui-color-error-glass-020: rgba(240, 81, 66, 0.2); + --wui-color-error-glass-025: rgba(240, 81, 66, 0.25); + --wui-color-error-glass-030: rgba(240, 81, 66, 0.3); + --wui-color-error-glass-060: rgba(240, 81, 66, 0.6); + --wui-color-error-glass-080: rgba(240, 81, 66, 0.8); + + --wui-color-error-glass-reown-020: rgba(223, 74, 52, 0.2); + + --wui-icon-box-bg-error-base-100: #f4dfdd; + --wui-icon-box-bg-blue-base-100: #d9ecfb; + --wui-icon-box-bg-success-base-100: #daf0e4; + --wui-icon-box-bg-inverse-base-100: #dcecfc; + + --wui-all-wallets-bg-100: #e8f1fa; + + --wui-avatar-border-base: #f3f4f4; + + --wui-thumbnail-border-base: #eaefef; + + --wui-wallet-button-bg-base: var(--wui-color-bg-125); + + --wui-color-gray-glass-001: rgba(0, 0, 0, 0.01); + --wui-color-gray-glass-002: rgba(0, 0, 0, 0.02); + --wui-color-gray-glass-005: rgba(0, 0, 0, 0.05); + --wui-color-gray-glass-010: rgba(0, 0, 0, 0.1); + --wui-color-gray-glass-015: rgba(0, 0, 0, 0.15); + --wui-color-gray-glass-020: rgba(0, 0, 0, 0.2); + --wui-color-gray-glass-025: rgba(0, 0, 0, 0.25); + --wui-color-gray-glass-030: rgba(0, 0, 0, 0.3); + --wui-color-gray-glass-060: rgba(0, 0, 0, 0.6); + --wui-color-gray-glass-080: rgba(0, 0, 0, 0.8); + --wui-color-gray-glass-090: rgba(0, 0, 0, 0.9); + + --wui-color-dark-glass-100: rgba(233, 233, 233, 1); + + --w3m-card-embedded-shadow-color: rgb(224 225 233 / 25%); + } + `}}const Dse=Ll` + *, + *::after, + *::before, + :host { + margin: 0; + padding: 0; + box-sizing: border-box; + font-style: normal; + text-rendering: optimizeSpeed; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + -webkit-tap-highlight-color: transparent; + font-family: var(--wui-font-family); + backface-visibility: hidden; + } +`,Pse=Ll` + button, + a { + cursor: pointer; + display: flex; + justify-content: center; + align-items: center; + position: relative; + transition: + color var(--wui-duration-lg) var(--wui-ease-out-power-1), + background-color var(--wui-duration-lg) var(--wui-ease-out-power-1), + border var(--wui-duration-lg) var(--wui-ease-out-power-1), + border-radius var(--wui-duration-lg) var(--wui-ease-out-power-1), + box-shadow var(--wui-duration-lg) var(--wui-ease-out-power-1); + will-change: background-color, color, border, box-shadow, border-radius; + outline: none; + border: none; + column-gap: var(--wui-spacing-3xs); + background-color: transparent; + text-decoration: none; + } + + wui-flex { + transition: border-radius var(--wui-duration-lg) var(--wui-ease-out-power-1); + will-change: border-radius; + } + + button:disabled > wui-wallet-image, + button:disabled > wui-all-wallets-image, + button:disabled > wui-network-image, + button:disabled > wui-image, + button:disabled > wui-transaction-visual, + button:disabled > wui-logo { + filter: grayscale(1); + } + + @media (hover: hover) and (pointer: fine) { + button:hover:enabled { + background-color: var(--wui-color-gray-glass-005); + } + + button:active:enabled { + background-color: var(--wui-color-gray-glass-010); + } + } + + button:disabled > wui-icon-box { + opacity: 0.5; + } + + input { + border: none; + outline: none; + appearance: none; + } +`,Mse=Ll` + .wui-color-inherit { + color: var(--wui-color-inherit); + } + + .wui-color-accent-100 { + color: var(--wui-color-accent-100); + } + + .wui-color-error-100 { + color: var(--wui-color-error-100); + } + + .wui-color-blue-100 { + color: var(--wui-color-blue-100); + } + + .wui-color-blue-90 { + color: var(--wui-color-blue-90); + } + + .wui-color-error-125 { + color: var(--wui-color-error-125); + } + + .wui-color-success-100 { + color: var(--wui-color-success-100); + } + + .wui-color-success-125 { + color: var(--wui-color-success-125); + } + + .wui-color-inverse-100 { + color: var(--wui-color-inverse-100); + } + + .wui-color-inverse-000 { + color: var(--wui-color-inverse-000); + } + + .wui-color-fg-100 { + color: var(--wui-color-fg-100); + } + + .wui-color-fg-200 { + color: var(--wui-color-fg-200); + } + + .wui-color-fg-300 { + color: var(--wui-color-fg-300); + } + + .wui-color-fg-325 { + color: var(--wui-color-fg-325); + } + + .wui-color-fg-350 { + color: var(--wui-color-fg-350); + } + + .wui-bg-color-inherit { + background-color: var(--wui-color-inherit); + } + + .wui-bg-color-blue-100 { + background-color: var(--wui-color-accent-100); + } + + .wui-bg-color-error-100 { + background-color: var(--wui-color-error-100); + } + + .wui-bg-color-error-125 { + background-color: var(--wui-color-error-125); + } + + .wui-bg-color-success-100 { + background-color: var(--wui-color-success-100); + } + + .wui-bg-color-success-125 { + background-color: var(--wui-color-success-100); + } + + .wui-bg-color-inverse-100 { + background-color: var(--wui-color-inverse-100); + } + + .wui-bg-color-inverse-000 { + background-color: var(--wui-color-inverse-000); + } + + .wui-bg-color-fg-100 { + background-color: var(--wui-color-fg-100); + } + + .wui-bg-color-fg-200 { + background-color: var(--wui-color-fg-200); + } + + .wui-bg-color-fg-300 { + background-color: var(--wui-color-fg-300); + } + + .wui-color-fg-325 { + background-color: var(--wui-color-fg-325); + } + + .wui-color-fg-350 { + background-color: var(--wui-color-fg-350); + } +`,yg={ERROR_CODE_UNRECOGNIZED_CHAIN_ID:4902,ERROR_CODE_DEFAULT:5e3,ERROR_INVALID_CHAIN_ID:32603},yte=U2({id:42161,name:"Arbitrum One",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://arb1.arbitrum.io/rpc"]}},blockExplorers:{default:{name:"Arbiscan",url:"https://arbiscan.io",apiUrl:"https://api.arbiscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7654707}}}),vte=U2({id:1,name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://eth.merkle.io"]}},blockExplorers:{default:{name:"Etherscan",url:"https://etherscan.io",apiUrl:"https://api.etherscan.io/api"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xce01f8eee7E479C928F8919abD53E553a36CeF67",blockCreated:19258213},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}}),wte=U2({id:11155111,name:"Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.drpc.org"]}},blockExplorers:{default:{name:"Etherscan",url:"https://sepolia.etherscan.io",apiUrl:"https://api-sepolia.etherscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:751532},ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xc8Af999e38273D658BE1b921b88A9Ddf005769cC",blockCreated:5317080}},testnet:!0});function Dp(t){return{formatters:void 0,fees:void 0,serializers:void 0,...t}}const Z4=Dp({id:"5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",name:"Solana",network:"solana-mainnet",nativeCurrency:{name:"Solana",symbol:"SOL",decimals:9},rpcUrls:{default:{http:["https://rpc.walletconnect.org/v1"]}},blockExplorers:{default:{name:"Solscan",url:"https://solscan.io"}},testnet:!1,chainNamespace:"solana",caipNetworkId:"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",deprecatedCaipNetworkId:"solana:4sGjMW1sUnHzSxGspuhpqLDx6wiyjNtZ"}),X4=Dp({id:"EtWTRABZaYq6iMfeYKouRu166VU2xqa1",name:"Solana Devnet",network:"solana-devnet",nativeCurrency:{name:"Solana",symbol:"SOL",decimals:9},rpcUrls:{default:{http:["https://rpc.walletconnect.org/v1"]}},blockExplorers:{default:{name:"Solscan",url:"https://solscan.io"}},testnet:!0,chainNamespace:"solana",caipNetworkId:"solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1",deprecatedCaipNetworkId:"solana:8E9rvCKLFQia2Y35HXjjpWzj8weVo44K"});Dp({id:"4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z",name:"Solana Testnet",network:"solana-testnet",nativeCurrency:{name:"Solana",symbol:"SOL",decimals:9},rpcUrls:{default:{http:["https://rpc.walletconnect.org/v1"]}},blockExplorers:{default:{name:"Solscan",url:"https://solscan.io"}},testnet:!0,chainNamespace:"solana",caipNetworkId:"solana:4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z"});Dp({id:"000000000019d6689c085ae165831e93",caipNetworkId:"bip122:000000000019d6689c085ae165831e93",chainNamespace:"bip122",name:"Bitcoin",nativeCurrency:{name:"Bitcoin",symbol:"BTC",decimals:8},rpcUrls:{default:{http:["https://rpc.walletconnect.org/v1"]}}});Dp({id:"000000000933ea01ad0ee984209779ba",caipNetworkId:"bip122:000000000933ea01ad0ee984209779ba",chainNamespace:"bip122",name:"Bitcoin Testnet",nativeCurrency:{name:"Bitcoin",symbol:"BTC",decimals:8},rpcUrls:{default:{http:["https://rpc.walletconnect.org/v1"]}},testnet:!0});const Jm={getMethodsByChainNamespace(t){switch(t){case"solana":return["solana_signMessage","solana_signTransaction","solana_requestAccounts","solana_getAccounts","solana_signAllTransactions","solana_signAndSendTransaction"];case"eip155":return["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"];case"bip122":return["sendTransfer","signMessage","signPsbt","getAccountAddresses"];default:return[]}},createNamespaces(t){return t.reduce((e,n)=>{const{id:r,chainNamespace:i,rpcUrls:s}=n,c=s.default.http[0],u=this.getMethodsByChainNamespace(i);e[i]||(e[i]={methods:u,events:["accountsChanged","chainChanged"],chains:[],rpcMap:{}});const f=`${i}:${r}`,d=e[i];switch(d.chains.push(f),f){case Z4.caipNetworkId:d.chains.push(Z4.deprecatedCaipNetworkId);break;case X4.caipNetworkId:d.chains.push(X4.deprecatedCaipNetworkId);break}return d!=null&&d.rpcMap&&c&&(d.rpcMap[r]=c),e},{})},resolveReownName:async t=>{var r;const e=await M9.resolveName(t);return((r=(Object.values(e==null?void 0:e.addresses)||[])[0])==null?void 0:r.address)||!1},getChainsFromNamespaces(t={}){return Object.values(t).flatMap(e=>{const n=e.chains||[],r=e.accounts.map(i=>{const[s,c]=i.split(":");return`${s}:${c}`});return Array.from(new Set([...n,...r]))})},isSessionEventData(t){return typeof t=="object"&&t!==null&&"id"in t&&"topic"in t&&"params"in t&&typeof t.params=="object"&&t.params!==null&&"chainId"in t.params&&"event"in t.params&&typeof t.params.event=="object"&&t.params.event!==null}};class j2{constructor({provider:e,caipNetworks:n,namespace:r}){this.id=he.CONNECTOR_ID.WALLET_CONNECT,this.name=Lo.ConnectorNamesMap[he.CONNECTOR_ID.WALLET_CONNECT],this.type="WALLET_CONNECT",this.imageId=Lo.ConnectorImageIds[he.CONNECTOR_ID.WALLET_CONNECT],this.caipNetworks=n,this.provider=e,this.chain=r}get chains(){return this.caipNetworks}async connectWalletConnect(){return await this.authenticate()||await this.provider.connect({optionalNamespaces:Jm.createNamespaces(this.caipNetworks)}),{clientId:await this.provider.client.core.crypto.getClientId(),session:this.provider.session}}async disconnect(){await this.provider.disconnect()}async authenticate(){const e=this.chains.map(n=>n.caipNetworkId);return fh.universalProviderAuthenticate({universalProvider:this.provider,chains:e,methods:Ete})}}const Ete=["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_sendCalls","wallet_getCapabilities","wallet_grantPermissions","wallet_revokePermissions","wallet_getAssets"];class J9{constructor(e){this.availableConnectors=[],this.eventListeners=new Map,e&&this.construct(e)}construct(e){this.caipNetworks=e.networks,this.projectId=e.projectId,this.namespace=e.namespace}get connectors(){return this.availableConnectors}get networks(){return this.caipNetworks||[]}setAuthProvider(e){this.addConnector({id:he.CONNECTOR_ID.AUTH,type:"AUTH",name:he.CONNECTOR_NAMES.AUTH,provider:e,imageId:Lo.ConnectorImageIds[he.CONNECTOR_ID.AUTH],chain:this.namespace,chains:[]})}addConnector(...e){const n=new Set;this.availableConnectors=[...e,...this.availableConnectors].filter(r=>n.has(r.id)?!1:(n.add(r.id),!0)),this.emit("connectors",this.availableConnectors)}setStatus(e,n){Oe.setStatus(e,n)}on(e,n){var r;this.eventListeners.has(e)||this.eventListeners.set(e,new Set),(r=this.eventListeners.get(e))==null||r.add(n)}off(e,n){const r=this.eventListeners.get(e);r&&r.delete(n)}removeAllEventListeners(){this.eventListeners.forEach(e=>{e.clear()})}emit(e,n){const r=this.eventListeners.get(e);r&&r.forEach(i=>i(n))}async connectWalletConnect(e){return{clientId:(await this.getWalletConnectConnector().connectWalletConnect()).clientId}}async switchNetwork(e){const{caipNetwork:n,providerType:r}=e;if(!e.provider)return;const i="provider"in e.provider?e.provider.provider:e.provider;if(r==="WALLET_CONNECT"){i.setDefaultChain(n.caipNetworkId);return}if(i&&r==="AUTH"){const s=i;await s.switchNetwork(n.caipNetworkId);const c=await s.getUser({chainId:n.caipNetworkId,preferredAccountType:be.state.defaultAccountTypes[n.chainNamespace]});this.emit("switchNetwork",c)}}getWalletConnectConnector(){const e=this.connectors.find(n=>n instanceof j2);if(!e)throw new Error("WalletConnectConnector not found");return e}}class Ate extends J9{setUniversalProvider(e){this.addConnector(new j2({provider:e,caipNetworks:this.caipNetworks||[],namespace:this.namespace}))}async connect(e){return Promise.resolve({id:"WALLET_CONNECT",type:"WALLET_CONNECT",chainId:Number(e.chainId),provider:this.provider,address:""})}async disconnect(){try{await this.getWalletConnectConnector().disconnect()}catch(e){console.warn("UniversalAdapter:disconnect - error",e)}}async getAccounts({namespace:e}){var i,s,c,u;const n=this.provider,r=((u=(c=(s=(i=n==null?void 0:n.session)==null?void 0:i.namespaces)==null?void 0:s[e])==null?void 0:c.accounts)==null?void 0:u.map(f=>{const[,,d]=f.split(":");return d}).filter((f,d,p)=>p.indexOf(f)===d))||[];return Promise.resolve({accounts:r.map(f=>$e.createAccount(e,f,e==="bip122"?"payment":"eoa"))})}async syncConnectors(){return Promise.resolve()}async getBalance(e){var s,c,u,f,d;if(!(e.caipNetwork&&Fn.BALANCE_SUPPORTED_CHAINS.includes((s=e.caipNetwork)==null?void 0:s.chainNamespace))||(c=e.caipNetwork)!=null&&c.testnet)return{balance:"0.00",symbol:((u=e.caipNetwork)==null?void 0:u.nativeCurrency.symbol)||""};if(Oe.state.balanceLoading&&e.chainId===((f=Q.state.activeCaipNetwork)==null?void 0:f.id))return{balance:Oe.state.balance||"0.00",symbol:Oe.state.balanceSymbol||""};const i=(await Oe.fetchTokenBalance()).find(p=>{var g,m;return p.chainId===`${(g=e.caipNetwork)==null?void 0:g.chainNamespace}:${e.chainId}`&&p.symbol===((m=e.caipNetwork)==null?void 0:m.nativeCurrency.symbol)});return{balance:(i==null?void 0:i.quantity.numeric)||"0.00",symbol:(i==null?void 0:i.symbol)||((d=e.caipNetwork)==null?void 0:d.nativeCurrency.symbol)||""}}async signMessage(e){var c,u,f;const{provider:n,message:r,address:i}=e;if(!n)throw new Error("UniversalAdapter:signMessage - provider is undefined");let s="";return((c=Q.state.activeCaipNetwork)==null?void 0:c.chainNamespace)===he.CHAIN.SOLANA?s=(await n.request({method:"solana_signMessage",params:{message:rx.encode(new TextEncoder().encode(r)),pubkey:i}},(u=Q.state.activeCaipNetwork)==null?void 0:u.caipNetworkId)).signature:s=await n.request({method:"personal_sign",params:[r,i]},(f=Q.state.activeCaipNetwork)==null?void 0:f.caipNetworkId),{signature:s}}async estimateGas(){return Promise.resolve({gas:BigInt(0)})}async getProfile(){return Promise.resolve({profileImage:"",profileName:""})}async sendTransaction(){return Promise.resolve({hash:""})}walletGetAssets(e){return Promise.resolve({})}async writeContract(){return Promise.resolve({hash:""})}async getEnsAddress(){return Promise.resolve({address:!1})}parseUnits(){return 0n}formatUnits(){return"0"}async getCapabilities(){return Promise.resolve({})}async grantPermissions(){return Promise.resolve({})}async revokePermissions(){return Promise.resolve("0x")}async syncConnection(){return Promise.resolve({id:"WALLET_CONNECT",type:"WALLET_CONNECT",chainId:1,provider:this.provider,address:""})}async switchNetwork(e){var i,s,c,u,f,d;const{caipNetwork:n}=e,r=this.getWalletConnectConnector();if(n.chainNamespace===he.CHAIN.EVM)try{await((i=r.provider)==null?void 0:i.request({method:"wallet_switchEthereumChain",params:[{chainId:Ba(n.id)}]}))}catch(p){if(p.code===yg.ERROR_CODE_UNRECOGNIZED_CHAIN_ID||p.code===yg.ERROR_INVALID_CHAIN_ID||p.code===yg.ERROR_CODE_DEFAULT||((c=(s=p==null?void 0:p.data)==null?void 0:s.originalError)==null?void 0:c.code)===yg.ERROR_CODE_UNRECOGNIZED_CHAIN_ID)try{await((d=r.provider)==null?void 0:d.request({method:"wallet_addEthereumChain",params:[{chainId:Ba(n.id),rpcUrls:[(u=n==null?void 0:n.rpcUrls.chainDefault)==null?void 0:u.http],chainName:n.name,nativeCurrency:n.nativeCurrency,blockExplorerUrls:[(f=n.blockExplorers)==null?void 0:f.default.url]}]}))}catch{throw new Error("Chain is not supported")}}r.provider.setDefaultChain(n.caipNetworkId)}getWalletConnectProvider(){const e=this.connectors.find(r=>r.type==="WALLET_CONNECT");return e==null?void 0:e.provider}}class _te{constructor(e){var n;this.chainNamespaces=[],this.reportedAlertErrors={},this.getCaipNetwork=r=>{var i,s;if(r){const c=(i=Q.getNetworkData(r))==null?void 0:i.caipNetwork;return c||((s=Q.getRequestedCaipNetworks(r).filter(u=>u.chainNamespace===r))==null?void 0:s[0])}return Q.state.activeCaipNetwork||this.defaultCaipNetwork},this.getCaipNetworkId=()=>{const r=this.getCaipNetwork();if(r)return r.id},this.getCaipNetworks=r=>Q.getRequestedCaipNetworks(r),this.getActiveChainNamespace=()=>Q.state.activeChain,this.setRequestedCaipNetworks=(r,i)=>{Q.setRequestedCaipNetworks(r,i)},this.getApprovedCaipNetworkIds=()=>Q.getAllApprovedCaipNetworkIds(),this.getCaipAddress=r=>Q.state.activeChain===r||!r?Q.state.activeCaipAddress:Q.getAccountProp("caipAddress",r),this.setClientId=r=>{Me.setClientId(r)},this.getProvider=r=>Wt.getProvider(r),this.getProviderType=r=>Wt.getProviderId(r),this.getPreferredAccountType=()=>Oe.state.preferredAccountType,this.setCaipAddress=(r,i)=>{Oe.setCaipAddress(r,i)},this.setBalance=(r,i,s)=>{Oe.setBalance(r,i,s)},this.setProfileName=(r,i)=>{Oe.setProfileName(r,i)},this.setProfileImage=(r,i)=>{Oe.setProfileImage(r,i)},this.setUser=(r,i)=>{Oe.setUser(r,i),be.state.enableEmbedded&&Kn.close()},this.resetAccount=r=>{Oe.resetAccount(r)},this.setCaipNetwork=r=>{Q.setActiveCaipNetwork(r)},this.setCaipNetworkOfNamespace=(r,i)=>{Q.setChainNetworkData(i,{caipNetwork:r})},this.setAllAccounts=(r,i)=>{Oe.setAllAccounts(r,i),be.setHasMultipleAddresses((r==null?void 0:r.length)>1)},this.setStatus=(r,i)=>{Oe.setStatus(r,i),Ge.isConnected()?Ne.setConnectionStatus("connected"):Ne.setConnectionStatus("disconnected")},this.getAddressByChainNamespace=r=>Q.getAccountProp("address",r),this.setConnectors=r=>{const i=[...Ge.getConnectors(),...r];Ge.setConnectors(i)},this.fetchIdentity=r=>Me.fetchIdentity(r),this.getReownName=r=>M9.getNamesForAddress(r),this.getConnectors=()=>Ge.getConnectors(),this.getConnectorImage=r=>K8.getConnectorImage(r),this.setConnectedWalletInfo=(r,i)=>{const s=Wt.getProviderId(i),c=r?{...r,type:s}:void 0;Oe.setConnectedWalletInfo(c,i)},this.getIsConnectedState=()=>!!Q.state.activeCaipAddress,this.addAddressLabel=(r,i,s)=>{Oe.addAddressLabel(r,i,s)},this.removeAddressLabel=(r,i)=>{Oe.removeAddressLabel(r,i)},this.getAddress=r=>Q.state.activeChain===r||!r?Oe.state.address:Q.getAccountProp("address",r),this.setApprovedCaipNetworksData=r=>Q.setApprovedCaipNetworksData(r),this.resetNetwork=r=>{Q.resetNetwork(r)},this.addConnector=r=>{Ge.addConnector(r)},this.resetWcConnection=()=>{ot.resetWcConnection()},this.setAddressExplorerUrl=(r,i)=>{Oe.setAddressExplorerUrl(r,i)},this.setSmartAccountDeployed=(r,i)=>{Oe.setSmartAccountDeployed(r,i)},this.setSmartAccountEnabledNetworks=(r,i)=>{Q.setSmartAccountEnabledNetworks(r,i)},this.setPreferredAccountType=(r,i)=>{Oe.setPreferredAccountType(r,i)},this.setEIP6963Enabled=r=>{be.setEIP6963Enabled(r)},this.handleUnsafeRPCRequest=()=>{if(this.isOpen()){if(this.isTransactionStackEmpty())return;this.redirect("ApproveTransaction")}else this.open({view:"ApproveTransaction"})},this.options=e,this.version=e.sdkVersion,this.caipNetworks=this.extendCaipNetworks(e),this.chainNamespaces=[...new Set((n=this.caipNetworks)==null?void 0:n.map(r=>r.chainNamespace))],this.defaultCaipNetwork=this.extendDefaultCaipNetwork(e),this.chainAdapters=this.createAdapters(e.adapters),this.initialize(e),this.sendInitializeEvent(e)}async initialize(e){this.initControllers(e),await this.initChainAdapters(),await this.injectModalUi(),await this.syncExistingConnection(),Ra.set({initialized:!0})}sendInitializeEvent(e){var r;const{...n}=e;delete n.adapters,Ft.sendEvent({type:"track",event:"INITIALIZE",properties:{...n,networks:e.networks.map(i=>i.id),siweConfig:{options:((r=e.siweConfig)==null?void 0:r.options)||{}}}})}initControllers(e){this.initializeOptionsController(e),this.initializeChainController(e),this.initializeThemeController(e),this.initializeConnectionController(e),this.initializeConnectorController()}initializeThemeController(e){e.themeMode&&Ir.setThemeMode(e.themeMode),e.themeVariables&&Ir.setThemeVariables(e.themeVariables)}initializeChainController(e){if(!this.connectionControllerClient||!this.networkControllerClient)throw new Error("ConnectionControllerClient and NetworkControllerClient must be set");Q.initialize(e.adapters??[],this.caipNetworks,{connectionControllerClient:this.connectionControllerClient,networkControllerClient:this.networkControllerClient});const n=this.getDefaultNetwork();n&&Q.setActiveCaipNetwork(n)}initializeConnectionController(e){ot.setWcBasic(e.basic??!1)}initializeConnectorController(){Ge.initialize(this.chainNamespaces)}initializeOptionsController(e){var i;be.setDebug(e.debug!==!1),be.setEnableWalletConnect(e.enableWalletConnect!==!1),be.setEnableWalletGuide(e.enableWalletGuide!==!1),be.setEnableWallets(e.enableWallets!==!1),be.setEIP6963Enabled(e.enableEIP6963!==!1),be.setEnableAuthLogger(e.enableAuthLogger!==!1),be.setSdkVersion(e.sdkVersion),be.setProjectId(e.projectId),be.setEnableEmbedded(e.enableEmbedded),be.setAllWallets(e.allWallets),be.setIncludeWalletIds(e.includeWalletIds),be.setExcludeWalletIds(e.excludeWalletIds),be.setFeaturedWalletIds(e.featuredWalletIds),be.setTokens(e.tokens),be.setTermsConditionsUrl(e.termsConditionsUrl),be.setPrivacyPolicyUrl(e.privacyPolicyUrl),be.setCustomWallets(e.customWallets),be.setFeatures(e.features),be.setAllowUnsupportedChain(e.allowUnsupportedChain),be.setDefaultAccountTypes(e.defaultAccountTypes);const n=this.getDefaultMetaData();if(!e.metadata&&n&&(e.metadata=n),be.setMetadata(e.metadata),be.setDisableAppend(e.disableAppend),be.setEnableEmbedded(e.enableEmbedded),be.setSIWX(e.siwx),!e.projectId){Vc.open(Pl.ALERT_ERRORS.PROJECT_ID_NOT_CONFIGURED,"error");return}if(((i=e.adapters)==null?void 0:i.find(s=>s.namespace===he.CHAIN.EVM))&&e.siweConfig){if(e.siwx)throw new Error("Cannot set both `siweConfig` and `siwx` options");be.setSIWX(e.siweConfig.mapToSIWX())}}getDefaultMetaData(){var e,n,r,i;return typeof window<"u"&&typeof document<"u"?{name:((n=(e=document.getElementsByTagName("title"))==null?void 0:e[0])==null?void 0:n.textContent)||"",description:((r=document.querySelector('meta[property="og:description"]'))==null?void 0:r.content)||"",url:window.location.origin,icons:[((i=document.querySelector('link[rel~="icon"]'))==null?void 0:i.href)||""]}:null}getUnsupportedNetwork(e){return{id:e.split(":")[1],caipNetworkId:e,name:he.UNSUPPORTED_NETWORK_NAME,chainNamespace:e.split(":")[0],nativeCurrency:{name:"",decimals:0,symbol:""},rpcUrls:{default:{http:[]}}}}setUnsupportedNetwork(e){const n=this.getActiveChainNamespace();if(n){const r=this.getUnsupportedNetwork(`${n}:${e}`);Q.setActiveCaipNetwork(r)}}getDefaultNetwork(){var n,r;const e=Ne.getActiveCaipNetworkId();if(e){const i=(n=this.caipNetworks)==null?void 0:n.find(s=>s.caipNetworkId===e);return i||(this.defaultCaipNetwork?this.defaultCaipNetwork:this.getUnsupportedNetwork(e))}return this.defaultCaipNetwork?this.defaultCaipNetwork:(r=this.caipNetworks)==null?void 0:r[0]}extendCaipNetwork(e,n){return Wc.extendCaipNetwork(e,{customNetworkImageUrls:n.chainImages,projectId:n.projectId})}extendCaipNetworks(e){return Wc.extendCaipNetworks(e.networks,{customNetworkImageUrls:e.chainImages,projectId:e.projectId})}extendDefaultCaipNetwork(e){const n=e.networks.find(i=>{var s;return i.id===((s=e.defaultNetwork)==null?void 0:s.id)});return n?Wc.extendCaipNetwork(n,{customNetworkImageUrls:e.chainImages,projectId:e.projectId}):void 0}createClients(){this.connectionControllerClient={connectWalletConnect:async()=>{var s;const e=Q.state.activeChain,n=this.getAdapter(e),r=(s=this.getCaipNetwork(e))==null?void 0:s.id;if(!n)throw new Error("Adapter not found");const i=await n.connectWalletConnect(r);this.close(),this.setClientId((i==null?void 0:i.clientId)||null),Ne.setConnectedNamespaces([...Q.state.chains.keys()]),this.chainNamespaces.forEach(c=>{Ge.setConnectorId(pn.CONNECTOR_TYPE_WALLET_CONNECT,c)}),await this.syncWalletConnectAccount()},connectExternal:async({id:e,info:n,type:r,provider:i,chain:s,caipNetwork:c})=>{var y,A,E,x,O,I,M;const u=Q.state.activeChain,f=s||u,d=this.getAdapter(f);if(s&&s!==u&&!c){const $=(y=this.caipNetworks)==null?void 0:y.find(D=>D.chainNamespace===s);$&&this.setCaipNetwork($)}if(!d)throw new Error("Adapter not found");const p=this.getCaipNetwork(f),g=await d.connect({id:e,info:n,type:r,provider:i,chainId:(c==null?void 0:c.id)||(p==null?void 0:p.id),rpcUrl:((x=(E=(A=c==null?void 0:c.rpcUrls)==null?void 0:A.default)==null?void 0:E.http)==null?void 0:x[0])||((M=(I=(O=p==null?void 0:p.rpcUrls)==null?void 0:O.default)==null?void 0:I.http)==null?void 0:M[0])});if(!g)return;Ne.addConnectedNamespace(f),this.syncProvider({...g,chainNamespace:f}),await this.syncAccount({...g,chainNamespace:f});const{accounts:m}=await d.getAccounts({namespace:f,id:e});this.setAllAccounts(m,f)},reconnectExternal:async({id:e,info:n,type:r,provider:i})=>{var u;const s=Q.state.activeChain,c=this.getAdapter(s);c!=null&&c.reconnect&&(await(c==null?void 0:c.reconnect({id:e,info:n,type:r,provider:i,chainId:(u=this.getCaipNetwork())==null?void 0:u.id})),Ne.addConnectedNamespace(s))},disconnect:async()=>{const e=Q.state.activeChain,n=this.getAdapter(e),r=Wt.getProvider(e),i=Wt.getProviderId(e);await(n==null?void 0:n.disconnect({provider:r,providerType:i})),Ne.removeConnectedNamespace(e),Wt.resetChain(e),this.setUser(void 0,e),this.setStatus("disconnected",e)},checkInstalled:e=>e?e.some(n=>{var r;return!!((r=window.ethereum)!=null&&r[String(n)])}):!!window.ethereum,signMessage:async e=>{const n=this.getAdapter(Q.state.activeChain),r=await(n==null?void 0:n.signMessage({message:e,address:Oe.state.address,provider:Wt.getProvider(Q.state.activeChain)}));return(r==null?void 0:r.signature)||""},sendTransaction:async e=>{if(e.chainNamespace===he.CHAIN.EVM){const n=this.getAdapter(Q.state.activeChain),r=Wt.getProvider(Q.state.activeChain),i=await(n==null?void 0:n.sendTransaction({...e,provider:r}));return(i==null?void 0:i.hash)||""}return""},estimateGas:async e=>{if(e.chainNamespace===he.CHAIN.EVM){const n=this.getAdapter(Q.state.activeChain),r=Wt.getProvider(Q.state.activeChain),i=this.getCaipNetwork();if(!i)throw new Error("CaipNetwork is undefined");const s=await(n==null?void 0:n.estimateGas({...e,provider:r,caipNetwork:i}));return(s==null?void 0:s.gas)||0n}return 0n},getEnsAvatar:async()=>{var r;const e=this.getAdapter(Q.state.activeChain),n=await(e==null?void 0:e.getProfile({address:Oe.state.address,chainId:Number((r=this.getCaipNetwork())==null?void 0:r.id)}));return(n==null?void 0:n.profileImage)||!1},getEnsAddress:async e=>{const n=this.getAdapter(Q.state.activeChain),r=this.getCaipNetwork();if(!r)return!1;const i=await(n==null?void 0:n.getEnsAddress({name:e,caipNetwork:r}));return(i==null?void 0:i.address)||!1},writeContract:async e=>{const n=this.getAdapter(Q.state.activeChain),r=this.getCaipNetwork(),i=this.getCaipAddress(),s=Wt.getProvider(Q.state.activeChain);if(!r||!i)throw new Error("CaipNetwork or CaipAddress is undefined");const c=await(n==null?void 0:n.writeContract({...e,caipNetwork:r,provider:s,caipAddress:i}));return c==null?void 0:c.hash},parseUnits:(e,n)=>{const r=this.getAdapter(Q.state.activeChain);return(r==null?void 0:r.parseUnits({value:e,decimals:n}))??0n},formatUnits:(e,n)=>{const r=this.getAdapter(Q.state.activeChain);return(r==null?void 0:r.formatUnits({value:e,decimals:n}))??"0"},getCapabilities:async e=>{const n=this.getAdapter(Q.state.activeChain);return await(n==null?void 0:n.getCapabilities(e))},grantPermissions:async e=>{const n=this.getAdapter(Q.state.activeChain);return await(n==null?void 0:n.grantPermissions(e))},revokePermissions:async e=>{const n=this.getAdapter(Q.state.activeChain);return n!=null&&n.revokePermissions?await n.revokePermissions(e):"0x"},walletGetAssets:async e=>{const n=this.getAdapter(Q.state.activeChain);return await(n==null?void 0:n.walletGetAssets(e))??{}}},this.networkControllerClient={switchCaipNetwork:async e=>await this.switchCaipNetwork(e),getApprovedCaipNetworksData:async()=>this.getApprovedCaipNetworksData()},ot.setClient(this.connectionControllerClient)}getApprovedCaipNetworksData(){var n,r,i,s,c;if(Wt.getProviderId(Q.state.activeChain)===pn.CONNECTOR_TYPE_WALLET_CONNECT){const u=(r=(n=this.universalProvider)==null?void 0:n.session)==null?void 0:r.namespaces;return{supportsAllNetworks:((c=(s=(i=this.universalProvider)==null?void 0:i.session)==null?void 0:s.peer)==null?void 0:c.metadata.name)==="MetaMask Wallet",approvedCaipNetworkIds:this.getChainsFromNamespaces(u)}}return{supportsAllNetworks:!0,approvedCaipNetworkIds:[]}}async switchCaipNetwork(e){if(!e)return;const n=e.chainNamespace;if(this.getAddressByChainNamespace(e.chainNamespace)){const i=Wt.getProvider(n),s=Wt.getProviderId(n);if(e.chainNamespace===Q.state.activeChain){const c=this.getAdapter(n);await(c==null?void 0:c.switchNetwork({caipNetwork:e,provider:i,providerType:s}))}else if(this.setCaipNetwork(e),s===pn.CONNECTOR_TYPE_WALLET_CONNECT)this.syncWalletConnectAccount();else{const c=this.getAddressByChainNamespace(n);c&&this.syncAccount({address:c,chainId:e.id,chainNamespace:n})}}else this.setCaipNetwork(e)}getChainsFromNamespaces(e={}){return Object.values(e).flatMap(n=>{const r=n.chains||[],i=n.accounts.map(s=>{const{chainId:c,chainNamespace:u}=lo.parseCaipAddress(s);return`${u}:${c}`});return Array.from(new Set([...r,...i]))})}createAdapters(e){return this.createClients(),this.chainNamespaces.reduce((n,r)=>{var s;const i=e==null?void 0:e.find(c=>c.namespace===r);return i?(n[r]=i,n[r].namespace=r,n[r].construct({namespace:r,projectId:(s=this.options)==null?void 0:s.projectId,networks:this.caipNetworks})):n[r]=new Ate({namespace:r,networks:this.caipNetworks}),n},{})}async initChainAdapter(e){var n;this.onConnectors(e),this.listenAdapter(e),(n=this.chainAdapters)==null||n[e].syncConnectors(this.options,this),await this.createUniversalProviderForAdapter(e)}async initChainAdapters(){await Promise.all(this.chainNamespaces.map(async e=>{await this.initChainAdapter(e)}))}onConnectors(e){const n=this.getAdapter(e);n==null||n.on("connectors",this.setConnectors.bind(this))}listenAdapter(e){const n=this.getAdapter(e);if(!n)return;const r=Ne.getConnectionStatus();r==="connected"?this.setStatus("connecting",e):r==="disconnected"?(Ne.clearAddressCache(),this.setStatus(r,e)):this.setStatus(r,e),n.on("switchNetwork",({address:i,chainId:s})=>{var d;const c=(d=this.caipNetworks)==null?void 0:d.find(p=>p.id===s||p.caipNetworkId===s),u=Q.state.activeChain===e,f=Q.getAccountProp("address",e);if(c){const p=u&&i?i:f;p&&this.syncAccount({address:p,chainId:s,chainNamespace:e})}else this.setUnsupportedNetwork(s)}),n.on("disconnect",this.disconnect.bind(this)),n.on("pendingTransactions",()=>{const i=Oe.state.address,s=Q.state.activeCaipNetwork;!i||!(s!=null&&s.id)||this.updateNativeBalance(i,s.id,s.chainNamespace)}),n.on("accountChanged",({address:i,chainId:s})=>{var u,f;const c=Q.state.activeChain===e;c&&s?this.syncAccount({address:i,chainId:s,chainNamespace:e}):c&&((u=Q.state.activeCaipNetwork)!=null&&u.id)?this.syncAccount({address:i,chainId:(f=Q.state.activeCaipNetwork)==null?void 0:f.id,chainNamespace:e}):this.syncAccountInfo(i,s,e)})}async createUniversalProviderForAdapter(e){var n,r,i;await this.getUniversalProvider(),this.universalProvider&&((i=(r=(n=this.chainAdapters)==null?void 0:n[e])==null?void 0:r.setUniversalProvider)==null||i.call(r,this.universalProvider))}async syncExistingConnection(){await Promise.allSettled(this.chainNamespaces.map(e=>this.syncNamespaceConnection(e)))}async syncNamespaceConnection(e){try{const n=Ge.getConnectorId(e);switch(this.setStatus("connecting",e),n){case he.CONNECTOR_ID.WALLET_CONNECT:await this.syncWalletConnectAccount();break;case he.CONNECTOR_ID.AUTH:break;default:await this.syncAdapterConnection(e)}}catch(n){console.warn("AppKit couldn't sync existing connection",n),this.setStatus("disconnected",e)}}async syncAdapterConnection(e){var c,u,f;const n=this.getAdapter(e),r=Ge.getConnectorId(e),i=this.getCaipNetwork(),s=Ge.getConnectors(e).find(d=>d.id===r);try{if(!n||!s)throw new Error(`Adapter or connector not found for namespace ${e}`);if(!(i!=null&&i.id))throw new Error("CaipNetwork not found");const d=await(n==null?void 0:n.syncConnection({namespace:e,id:s.id,chainId:i.id,rpcUrl:(f=(u=(c=i==null?void 0:i.rpcUrls)==null?void 0:c.default)==null?void 0:u.http)==null?void 0:f[0]}));if(d){const p=await(n==null?void 0:n.getAccounts({namespace:e,id:s.id}));p&&p.accounts.length>0?this.setAllAccounts(p.accounts,e):this.setAllAccounts([$e.createAccount(e,d.address,"eoa")],e),this.syncProvider({...d,chainNamespace:e}),await this.syncAccount({...d,chainNamespace:e}),this.setStatus("connected",e)}else this.setStatus("disconnected",e)}catch{this.setStatus("disconnected",e)}}async syncWalletConnectAccount(){const e=this.chainNamespaces.map(async n=>{var u,f,d,p,g;const r=this.getAdapter(n),i=((p=(d=(f=(u=this.universalProvider)==null?void 0:u.session)==null?void 0:f.namespaces)==null?void 0:d[n])==null?void 0:p.accounts)||[],s=(g=Q.state.activeCaipNetwork)==null?void 0:g.id,c=i.find(m=>{const{chainId:y}=lo.parseCaipAddress(m);return y===(s==null?void 0:s.toString())})||i[0];if(c){const m=lo.validateCaipAddress(c),{chainId:y,address:A}=lo.parseCaipAddress(m);if(Wt.setProviderId(n,pn.CONNECTOR_TYPE_WALLET_CONNECT),this.caipNetworks&&Q.state.activeCaipNetwork&&(r==null?void 0:r.namespace)!==he.CHAIN.EVM){const E=r==null?void 0:r.getWalletConnectProvider({caipNetworks:this.caipNetworks,provider:this.universalProvider,activeCaipNetwork:Q.state.activeCaipNetwork});Wt.setProvider(n,E)}else Wt.setProvider(n,this.universalProvider);Ge.setConnectorId(he.CONNECTOR_ID.WALLET_CONNECT,n),Ne.addConnectedNamespace(n),this.syncWalletConnectAccounts(n),await this.syncAccount({address:A,chainId:y,chainNamespace:n})}else this.setStatus("disconnected",n);await Q.setApprovedCaipNetworksData(n)});await Promise.all(e)}syncWalletConnectAccounts(e){var r,i,s,c,u;const n=(u=(c=(s=(i=(r=this.universalProvider)==null?void 0:r.session)==null?void 0:i.namespaces)==null?void 0:s[e])==null?void 0:c.accounts)==null?void 0:u.map(f=>{const{address:d}=lo.parseCaipAddress(f);return d}).filter((f,d,p)=>p.indexOf(f)===d);n&&this.setAllAccounts(n.map(f=>$e.createAccount(e,f,e==="bip122"?"payment":"eoa")),e)}syncProvider({type:e,provider:n,id:r,chainNamespace:i}){Wt.setProviderId(i,e),Wt.setProvider(i,n),Ge.setConnectorId(r,i)}async syncAccount(e){var g,m,y,A,E,x;const n=e.chainNamespace===Q.state.activeChain,r=Q.getCaipNetworkByNamespace(e.chainNamespace,e.chainId),{address:i,chainId:s,chainNamespace:c}=e,{chainId:u}=Ne.getActiveNetworkProps(),f=s||u,d=((g=Q.state.activeCaipNetwork)==null?void 0:g.name)===he.UNSUPPORTED_NETWORK_NAME,p=Q.getNetworkProp("supportsAllNetworks",c);if(this.setStatus("connected",c),!(d&&!p)&&f){let O=(m=this.caipNetworks)==null?void 0:m.find($=>$.id.toString()===f.toString()),I=(y=this.caipNetworks)==null?void 0:y.find($=>$.chainNamespace===c);if(!p&&!O&&!I){const $=this.getApprovedCaipNetworkIds()||[],D=$.find(z=>{var G;return((G=lo.parseCaipNetworkId(z))==null?void 0:G.chainId)===f.toString()}),R=$.find(z=>{var G;return((G=lo.parseCaipNetworkId(z))==null?void 0:G.chainNamespace)===c});O=(A=this.caipNetworks)==null?void 0:A.find(z=>z.caipNetworkId===D),I=(E=this.caipNetworks)==null?void 0:E.find(z=>z.caipNetworkId===R||"deprecatedCaipNetworkId"in z&&z.deprecatedCaipNetworkId===R)}const M=O||I;(M==null?void 0:M.chainNamespace)===Q.state.activeChain?!be.state.allowUnsupportedChain&&((x=Q.state.activeCaipNetwork)==null?void 0:x.name)===he.UNSUPPORTED_NETWORK_NAME?Q.showUnsupportedChainUI():this.setCaipNetwork(M):n||r&&this.setCaipNetworkOfNamespace(r,c),this.syncConnectedWalletInfo(c),U9.isLowerCaseMatch(i,Oe.state.address)||this.syncAccountInfo(i,M==null?void 0:M.id,c),n?await this.syncBalance({address:i,chainId:M==null?void 0:M.id,chainNamespace:c}):await this.syncBalance({address:i,chainId:r==null?void 0:r.id,chainNamespace:c})}}async syncAccountInfo(e,n,r){const i=this.getCaipAddress(r),s=n||(i==null?void 0:i.split(":")[1]);if(!s)return;const c=`${r}:${s}:${e}`;this.setCaipAddress(c,r),await this.syncIdentity({address:e,chainId:s,chainNamespace:r})}async syncReownName(e,n){try{const r=await this.getReownName(e);if(r[0]){const i=r[0];this.setProfileName(i.name,n)}else this.setProfileName(null,n)}catch{this.setProfileName(null,n)}}syncConnectedWalletInfo(e){var i;const n=Ge.getConnectorId(e),r=Wt.getProviderId(e);if(r===pn.CONNECTOR_TYPE_ANNOUNCED||r===pn.CONNECTOR_TYPE_INJECTED){if(n){const s=this.getConnectors().find(c=>c.id===n);if(s){const{info:c,name:u,imageUrl:f}=s,d=f||this.getConnectorImage(s);this.setConnectedWalletInfo({name:u,icon:d,...c},e)}}}else if(r===pn.CONNECTOR_TYPE_WALLET_CONNECT){const s=Wt.getProvider(e);s!=null&&s.session&&this.setConnectedWalletInfo({...s.session.peer.metadata,name:s.session.peer.metadata.name,icon:(i=s.session.peer.metadata.icons)==null?void 0:i[0]},e)}else if(n)if(n===he.CONNECTOR_ID.COINBASE){const s=this.getConnectors().find(c=>c.id===he.CONNECTOR_ID.COINBASE);this.setConnectedWalletInfo({name:"Coinbase Wallet",icon:this.getConnectorImage(s)},e)}else this.setConnectedWalletInfo({name:n},e)}async syncBalance(e){!yh.getNetworksByNamespace(this.caipNetworks,e.chainNamespace).find(r=>{var i;return r.id.toString()===((i=e.chainId)==null?void 0:i.toString())})||!e.chainId||await this.updateNativeBalance(e.address,e.chainId,e.chainNamespace)}async updateNativeBalance(e,n,r){const i=this.getAdapter(r);if(i){const s=await i.getBalance({address:e,chainId:n,caipNetwork:this.getCaipNetwork(r),tokens:this.options.tokens});this.setBalance(s.balance,s.symbol,r)}}async initializeUniversalAdapter(){var r,i,s,c,u,f,d,p,g,m;const e=OX.createLogger((y,...A)=>{y&&this.handleAlertError(y),console.error(...A)}),n={projectId:(r=this.options)==null?void 0:r.projectId,metadata:{name:(i=this.options)!=null&&i.metadata?(s=this.options)==null?void 0:s.metadata.name:"",description:(c=this.options)!=null&&c.metadata?(u=this.options)==null?void 0:u.metadata.description:"",url:(f=this.options)!=null&&f.metadata?(d=this.options)==null?void 0:d.metadata.url:"",icons:(p=this.options)!=null&&p.metadata?(g=this.options)==null?void 0:g.metadata.icons:[""]},logger:e};be.setManualWCControl(!!((m=this.options)!=null&&m.manualWCControl)),this.universalProvider=this.options.universalProvider??await eQ.init(n),this.listenWalletConnect()}listenWalletConnect(){this.universalProvider&&(this.universalProvider.on("display_uri",e=>{ot.setUri(e)}),this.universalProvider.on("connect",ot.finalizeWcConnection),this.universalProvider.on("disconnect",()=>{this.chainNamespaces.forEach(e=>{this.resetAccount(e)}),ot.resetWcConnection()}),this.universalProvider.on("chainChanged",e=>{var i;const n=(i=this.caipNetworks)==null?void 0:i.find(s=>s.id==e),r=this.getCaipNetwork();if(!n){this.setUnsupportedNetwork(e);return}(r==null?void 0:r.id)!==(n==null?void 0:n.id)&&this.setCaipNetwork(n)}),this.universalProvider.on("session_event",e=>{if(Jm.isSessionEventData(e)){const{name:n,data:r}=e.params.event;n==="accountsChanged"&&Array.isArray(r)&&$e.isCaipAddress(r[0])&&this.syncAccount(lo.parseCaipAddress(r[0]))}}))}createUniversalProvider(){var e;return!this.universalProviderInitPromise&&$e.isClient()&&((e=this.options)!=null&&e.projectId)&&(this.universalProviderInitPromise=this.initializeUniversalAdapter()),this.universalProviderInitPromise}async getUniversalProvider(){if(!this.universalProvider)try{await this.createUniversalProvider()}catch{throw new Error("AppKit:getUniversalProvider - Cannot create provider")}return this.universalProvider}handleAlertError(e){const n=Object.entries(Pl.UniversalProviderErrors).find(([,{message:u}])=>e.message.includes(u)),[r,i]=n??[],{message:s,alertErrorKey:c}=i??{};if(r&&s&&!this.reportedAlertErrors[r]){const u=Pl.ALERT_ERRORS[c];u&&(Vc.open(u,"error"),this.reportedAlertErrors[r]=!0)}}getAdapter(e){var n;if(e)return(n=this.chainAdapters)==null?void 0:n[e]}createAdapter(e){var i;if(!e)return;const n=e.namespace;if(!n)return;this.createClients();const r=e;r.namespace=n,r.construct({namespace:n,projectId:(i=this.options)==null?void 0:i.projectId,networks:this.caipNetworks}),this.chainNamespaces.includes(n)||this.chainNamespaces.push(n),this.chainAdapters&&(this.chainAdapters[n]=r)}async open(e){await this.injectModalUi(),e!=null&&e.uri&&ot.setUri(e.uri),await Kn.open(e)}async close(){await this.injectModalUi(),Kn.close()}setLoading(e,n){Kn.setLoading(e,n)}async disconnect(){await ot.disconnect()}getError(){return""}getChainId(){var e;return(e=Q.state.activeCaipNetwork)==null?void 0:e.id}async switchNetwork(e){var r;const n=(r=this.caipNetworks)==null?void 0:r.find(i=>i.id===e.id);if(!n){Vc.open(Pl.ALERT_ERRORS.SWITCH_NETWORK_NOT_FOUND,"error");return}await Q.switchActiveNetwork(n)}getWalletProvider(){return Q.state.activeChain?Wt.state.providers[Q.state.activeChain]:null}getWalletProviderType(){return Wt.getProviderId(Q.state.activeChain)}subscribeProviders(e){return Wt.subscribeProviders(e)}getThemeMode(){return Ir.state.themeMode}getThemeVariables(){return Ir.state.themeVariables}setThemeMode(e){Ir.setThemeMode(e),X9(Ir.state.themeMode)}setTermsConditionsUrl(e){be.setTermsConditionsUrl(e)}setPrivacyPolicyUrl(e){be.setPrivacyPolicyUrl(e)}setThemeVariables(e){Ir.setThemeVariables(e),bte(Ir.state.themeVariables)}subscribeTheme(e){return Ir.subscribe(e)}getWalletInfo(){return Oe.state.connectedWalletInfo}getAccount(e){const n=Ge.getAuthConnector(e),r=Q.getAccountData(e);if(r)return{allAccounts:r.allAccounts,caipAddress:r.caipAddress,address:$e.getPlainAddress(r.caipAddress),isConnected:!!r.caipAddress,status:r.status,embeddedWalletInfo:n?{user:r.user,authProvider:r.socialProvider||"email",accountType:r.preferredAccountType,isSmartAccountDeployed:!!r.smartAccountDeployed}:void 0}}subscribeAccount(e,n){const r=()=>{const i=this.getAccount(n);i&&e(i)};n?Q.subscribeChainProp("accountState",r,n):Q.subscribe(r),Ge.subscribe(r)}subscribeNetwork(e){return Q.subscribe(({activeCaipNetwork:n})=>{e({caipNetwork:n,chainId:n==null?void 0:n.id,caipNetworkId:n==null?void 0:n.caipNetworkId})})}subscribeWalletInfo(e){return Oe.subscribeKey("connectedWalletInfo",e)}subscribeShouldUpdateToAddress(e){Oe.subscribeKey("shouldUpdateToAddress",e)}subscribeCaipNetworkChange(e){Q.subscribeKey("activeCaipNetwork",e)}getState(){return Ra.state}subscribeState(e){return Ra.subscribe(e)}showErrorMessage(e){$t.showError(e)}showSuccessMessage(e){$t.showSuccess(e)}getEvent(){return{...Ft.state}}subscribeEvents(e){return Ft.subscribe(e)}replace(e){ct.replace(e)}redirect(e){ct.push(e)}popTransactionStack(e){ct.popTransactionStack(e)}isOpen(){return Kn.state.open}isTransactionStackEmpty(){return ct.state.transactionStack.length===0}isTransactionShouldReplaceView(){var e;return(e=ct.state.transactionStack[ct.state.transactionStack.length-1])==null?void 0:e.replace}static getInstance(){return this.instance}updateFeatures(e){be.setFeatures(e)}updateOptions(e){const r={...be.state||{},...e};be.setOptions(r)}setConnectMethodsOrder(e){be.setConnectMethodsOrder(e)}setWalletFeaturesOrder(e){be.setWalletFeaturesOrder(e)}setCollapseWallets(e){be.setCollapseWallets(e)}setSocialsOrder(e){be.setSocialsOrder(e)}getConnectMethodsOrder(){return hE.getConnectOrderMethod(be.state.features,Ge.getConnectors())}removeAdapter(e){var s;const n=this.getIsConnectedState(),r=this.getAdapter(e);if(!r||!this.chainAdapters||n)return;const i=(s=this.caipNetworks)==null?void 0:s.filter(c=>c.chainNamespace!==e);Q.removeAdapter(e),Ge.removeAdapter(e),this.chainNamespaces=this.chainNamespaces.filter(c=>c!==e),this.caipNetworks=i,r.removeAllEventListeners(),Reflect.deleteProperty(this.chainAdapters,e)}addAdapter(e,n){const r=e.namespace;if(!this.connectionControllerClient||!this.networkControllerClient||!this.chainAdapters||!r)return;const i=this.extendCaipNetworks({...this.options,networks:n});this.caipNetworks=[...this.caipNetworks||[],...i],this.createAdapter(e),this.initChainAdapter(r),Q.addAdapter(e,{connectionControllerClient:this.connectionControllerClient,networkControllerClient:this.networkControllerClient},i)}addNetwork(e,n){var i;if(this.chainAdapters&&!this.chainAdapters[e])throw new Error(`Adapter for namespace ${e} doesn't exist`);const r=this.extendCaipNetwork(n,this.options);Q.addNetwork(r),this.caipNetworks&&!((i=this.caipNetworks)!=null&&i.find(s=>s.id===r.id))&&this.caipNetworks.push(r)}removeNetwork(e,n){var s;if(this.chainAdapters&&!this.chainAdapters[e])throw new Error(`Adapter for namespace ${e} doesn't exist`);if(!((s=this.caipNetworks)==null?void 0:s.find(c=>c.id===n)))throw new Error(`Network with ID ${n} not found`);if(!this.caipNetworks)return;const i=this.caipNetworks.filter(c=>c.chainNamespace===e&&c.id!==n);if(!(i!=null&&i.length))throw new Error("Cannot remove last network for a namespace");Q.removeNetwork(e,n),this.caipNetworks=[...i]}}let J4=!1;class Cte extends _te{setupAuthConnectorListeners(e){e.onRpcRequest(n=>{gi.checkIfRequestExists(n)?gi.checkIfRequestIsSafe(n)||this.handleUnsafeRPCRequest():(this.open(),console.error(yn.RPC_METHOD_NOT_ALLOWED_MESSAGE,{method:n.method}),setTimeout(()=>{this.showErrorMessage(yn.RPC_METHOD_NOT_ALLOWED_UI_MESSAGE)},300),e.rejectRpcRequests())}),e.onRpcError(()=>{this.isOpen()&&(this.isTransactionStackEmpty()?this.close():this.popTransactionStack(!0))}),e.onRpcSuccess((n,r)=>{const i=gi.checkIfRequestIsSafe(r),s=Oe.state.address,c=Q.state.activeCaipNetwork;i||(this.isTransactionStackEmpty()?(this.close(),s&&(c!=null&&c.id)&&this.updateNativeBalance(s,c.id,c.chainNamespace)):(this.popTransactionStack(),s&&(c!=null&&c.id)&&this.updateNativeBalance(s,c.id,c.chainNamespace)))}),e.onNotConnected(()=>{const n=Q.state.activeChain;Ge.getConnectorId(n)===he.CONNECTOR_ID.AUTH&&(this.setCaipAddress(void 0,n),this.setLoading(!1,n))}),e.onConnect(async n=>{var u;const r=Q.state.activeChain,i=r===he.CHAIN.EVM?`eip155:${n.chainId}:${n.address}`:`${n.chainId}:${n.address}`;this.setSmartAccountDeployed(!!n.smartAccountDeployed,r),U9.isLowerCaseMatch(n.address,Oe.state.address)||this.syncIdentity({address:n.address,chainId:n.chainId,chainNamespace:r}),this.setCaipAddress(i,r),this.setUser({...Oe.state.user||{},email:n.email},r);const s=n.preferredAccountType||be.state.defaultAccountTypes[r];this.setPreferredAccountType(s,r);const c=(u=n.accounts)==null?void 0:u.map(f=>$e.createAccount(r,f.address,f.type||be.state.defaultAccountTypes[r]));this.setAllAccounts(c||[$e.createAccount(r,n.address,s)],r),await e.getSmartAccountEnabledNetworks(),this.setLoading(!1,r)}),e.onSocialConnected(({userName:n})=>{this.setUser({...Oe.state.user||{},username:n},Q.state.activeChain)}),e.onGetSmartAccountEnabledNetworks(n=>{this.setSmartAccountEnabledNetworks(n,Q.state.activeChain)}),e.onSetPreferredAccount(({address:n,type:r})=>{n&&this.setPreferredAccountType(r,Q.state.activeChain)})}async syncAuthConnector(e,n){var p,g,m,y;const r=he.AUTH_CONNECTOR_SUPPORTED_CHAINS.includes(n);if(!r)return;this.setLoading(!0,n);const i=e.getLoginEmailUsed();this.setLoading(i,n),i&&this.setStatus("connecting",n);const s=e.getEmail(),c=e.getUsername();this.setUser({...((p=Oe.state)==null?void 0:p.user)||{},username:c,email:s},Q.state.activeChain),this.setupAuthConnectorListeners(e);const{isConnected:u}=await e.isConnected(),f=Ir.getSnapshot(),d=be.getSnapshot();e.syncDappData({metadata:d.metadata,sdkVersion:d.sdkVersion,projectId:d.projectId,sdkType:d.sdkType}),e.syncTheme({themeMode:f.themeMode,themeVariables:f.themeVariables,w3mThemeVariables:Ia(f.themeVariables,f.themeMode)}),n&&r&&(u&&((g=this.connectionControllerClient)!=null&&g.connectExternal)?(await((y=this.connectionControllerClient)==null?void 0:y.connectExternal({id:he.CONNECTOR_ID.AUTH,info:{name:he.CONNECTOR_ID.AUTH},type:pn.CONNECTOR_TYPE_AUTH,provider:e,chainId:(m=Q.state.activeCaipNetwork)==null?void 0:m.id,chain:n})),this.setStatus("connected",n)):Ge.getConnectorId(n)===he.CONNECTOR_ID.AUTH&&(this.setStatus("disconnected",n),Ne.removeConnectedNamespace(n))),this.setLoading(!1,n)}async checkExistingTelegramSocialConnection(e){var n;try{if(!$e.isTelegram())return;const r=Ne.getTelegramSocialProvider();if(!r||typeof window>"u"||typeof document>"u")return;const s=new URL(window.location.href).searchParams.get("result_uri");if(!s)return;Oe.setSocialProvider(r,e),await((n=this.authProvider)==null?void 0:n.init());const c=Ge.getAuthConnector();r&&c&&(this.setLoading(!0,e),await c.provider.connectSocial(s),await ot.connectExternal(c,c.chain),Ne.setConnectedSocialProvider(r),Ne.removeTelegramSocialProvider(),Ft.sendEvent({type:"track",event:"SOCIAL_LOGIN_SUCCESS",properties:{provider:r}}))}catch(r){this.setLoading(!1,e),console.error("checkExistingSTelegramocialConnection error",r)}try{const r=new URL(window.location.href);r.searchParams.delete("result_uri"),window.history.replaceState({},document.title,r.toString())}catch(r){console.error("tma social login failed",r)}}createAuthProvider(e){var c,u,f,d,p,g,m,y,A,E,x;if(!he.AUTH_CONNECTOR_SUPPORTED_CHAINS.includes(e))return;const r=((u=(c=this.options)==null?void 0:c.features)==null?void 0:u.email)===void 0?Fn.DEFAULT_FEATURES.email:(d=(f=this.options)==null?void 0:f.features)==null?void 0:d.email,i=(g=(p=this.options)==null?void 0:p.features)!=null&&g.socials?((A=(y=(m=this.options)==null?void 0:m.features)==null?void 0:y.socials)==null?void 0:A.length)>0:Fn.DEFAULT_FEATURES.socials,s=r||i;!this.authProvider&&((E=this.options)!=null&&E.projectId)&&s&&(this.authProvider=Bl.getInstance({projectId:this.options.projectId,enableLogger:this.options.enableAuthLogger,chainId:(x=this.getCaipNetwork(e))==null?void 0:x.caipNetworkId,onTimeout:()=>{Vc.open(Pl.ALERT_ERRORS.SOCIALS_TIMEOUT,"error")}}),this.subscribeState(O=>{var I;O.open||(I=this.authProvider)==null||I.rejectRpcRequests()}),this.syncAuthConnector(this.authProvider,e),this.checkExistingTelegramSocialConnection(e))}createAuthProviderForAdapter(e){var n,r,i;this.createAuthProvider(e),this.authProvider&&((i=(r=(n=this.chainAdapters)==null?void 0:n[e])==null?void 0:r.setAuthProvider)==null||i.call(r,this.authProvider))}initControllers(e){super.initControllers(e),this.options.excludeWalletIds&>.initializeExcludedWalletRdns({ids:this.options.excludeWalletIds})}async switchCaipNetwork(e){var s,c;if(!e)return;const n=Q.state.activeChain,r=e.chainNamespace,i=this.getAddressByChainNamespace(e.chainNamespace);if(e.chainNamespace===Q.state.activeChain&&i){const u=this.getAdapter(r),f=Wt.getProvider(r),d=Wt.getProviderId(r);await(u==null?void 0:u.switchNetwork({caipNetwork:e,provider:f,providerType:d})),this.setCaipNetwork(e)}else{const f=Wt.getProviderId(n)===pn.CONNECTOR_TYPE_AUTH,d=Wt.getProviderId(r),p=d===pn.CONNECTOR_TYPE_AUTH,g=he.AUTH_CONNECTOR_SUPPORTED_CHAINS.includes(r);if((f||p)&&g)try{Q.state.activeChain=e.chainNamespace,await((c=(s=this.connectionControllerClient)==null?void 0:s.connectExternal)==null?void 0:c.call(s,{id:he.CONNECTOR_ID.AUTH,provider:this.authProvider,chain:r,chainId:e.id,type:pn.CONNECTOR_TYPE_AUTH,caipNetwork:e})),this.setCaipNetwork(e)}catch{const y=this.getAdapter(r);await(y==null?void 0:y.switchNetwork({caipNetwork:e,provider:this.authProvider,providerType:d}))}else d===pn.CONNECTOR_TYPE_WALLET_CONNECT?(this.setCaipNetwork(e),this.syncWalletConnectAccount()):(this.setCaipNetwork(e),i&&this.syncAccount({address:i,chainId:e.id,chainNamespace:r}))}}async initChainAdapter(e){await super.initChainAdapter(e),this.createAuthProviderForAdapter(e)}async syncIdentity({address:e,chainId:n,chainNamespace:r}){var c;const i=`${r}:${n}`,s=(c=this.caipNetworks)==null?void 0:c.find(u=>u.caipNetworkId===i);if(r!==he.CHAIN.EVM||s!=null&&s.testnet){this.setProfileName(null,r),this.setProfileImage(null,r);return}try{const{name:u,avatar:f}=await this.fetchIdentity({address:e,caipNetworkId:i});if(this.setProfileName(u,r),this.setProfileImage(f,r),!u){const d=this.getAdapter(r),p=await(d==null?void 0:d.getProfile({address:e,chainId:Number(n)}));p!=null&&p.profileName?(this.setProfileName(p.profileName,r),p.profileImage&&this.setProfileImage(p.profileImage,r)):(await this.syncReownName(e,r),this.setProfileImage(null,r))}}catch{await this.syncReownName(e,r),n!==1&&this.setProfileImage(null,r)}}syncConnectedWalletInfo(e){const n=Wt.getProviderId(e);if(n===pn.CONNECTOR_TYPE_AUTH){const r=this.authProvider;if(r){const i=Ne.getConnectedSocialProvider()??"email",s=r.getEmail()??r.getUsername();this.setConnectedWalletInfo({name:n,identifier:s,social:i},e)}}else super.syncConnectedWalletInfo(e)}async injectModalUi(){if(!J4&&$e.isClient()){const e={...Fn.DEFAULT_FEATURES,...this.options.features},n=[];if(e&&((e.email||e.socials&&e.socials.length)&&n.push(ei(()=>import("./embedded-wallet-CalfqdNI.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]))),e.email&&n.push(ei(()=>import("./email-5kUJw0ce.js"),__vite__mapDeps([10,1,9,5,8,4,11,6]))),e.socials&&n.push(ei(()=>import("./socials-Uau0-5BN.js"),__vite__mapDeps([12,1,13,4,5,14,8,9,15,3,16]))),e.swaps&&n.push(ei(()=>import("./swaps-BYyffamV.js"),__vite__mapDeps([17,1,4,5,18,19,16,20,3,8,6]))),e.send&&n.push(ei(()=>import("./send-CrjHOw2Z.js"),__vite__mapDeps([21,1,4,5,8,9,20,3,6,22]))),e.receive&&n.push(ei(()=>import("./receive-BTHURE40.js"),__vite__mapDeps([23,1,24,3,15]))),e.onramp&&n.push(ei(()=>import("./onramp-BzOH_Bbb.js"),__vite__mapDeps([25,1,26,16,8,3,5,27,13,4,9,6]))),e.history&&n.push(ei(()=>import("./transactions-C-U2YbwL.js"),__vite__mapDeps([28,1,29,26,16,8,9,3])))),await Promise.all([...n,ei(()=>import("./index-DHeF6YgC.js"),__vite__mapDeps([30,1,3,5,22,8,31,19,7,27,4,29,26,16,9,18,6,11,13,14,2,24,15])),ei(()=>import("./w3m-modal-2k5y_YMI.js"),__vite__mapDeps([32,1,7,3,8,5,19,31]))]),!document.querySelector("w3m-modal")){const i=document.createElement("w3m-modal");!be.state.disableAppend&&!be.state.enableEmbedded&&document.body.insertAdjacentElement("beforeend",i)}J4=!0}}}let wt;function Ste(t){t&&(wt=t)}function Tte(){if(!wt)throw new Error('Please call "createAppKit" before using "useAppKitTheme" hook');function t(c){c&&(wt==null||wt.setThemeMode(c))}function e(c){c&&(wt==null||wt.setThemeVariables(c))}const[n,r]=Le.useState(wt.getThemeMode()),[i,s]=Le.useState(wt.getThemeVariables());return Le.useEffect(()=>{const c=wt==null?void 0:wt.subscribeTheme(u=>{r(u.themeMode),s(u.themeVariables)});return()=>{c==null||c()}},[]),{themeMode:n,themeVariables:i,setThemeMode:t,setThemeVariables:e}}function xte(){if(!wt)throw new Error('Please call "createAppKit" before using "useAppKit" hook');async function t(n){await(wt==null?void 0:wt.open(n))}async function e(){await(wt==null?void 0:wt.close())}return{open:t,close:e}}function Nte(){if(!wt)throw new Error('Please call "createAppKit" before using "useWalletInfo" hook');return{walletInfo:Le.useSyncExternalStore(wt.subscribeWalletInfo,wt.getWalletInfo,wt.getWalletInfo)}}function Ite(){if(!wt)throw new Error('Please call "createAppKit" before using "useAppKitState" hook');const[t,e]=Le.useState(wt.getState());return Le.useEffect(()=>{const n=wt==null?void 0:wt.subscribeState(r=>{e({...r})});return()=>{n==null||n()}},[]),t}function Ote(){if(!wt)throw new Error('Please call "createAppKit" before using "useAppKitEvents" hook');const[t,e]=Le.useState(wt.getEvent());return Le.useEffect(()=>{const n=wt==null?void 0:wt.subscribeEvents(r=>{e({...r})});return()=>{n==null||n()}},[]),t}const Rte="1.7.0";let Uc;function Dte(t){return Uc||(Uc=new Cte({...t,sdkVersion:$e.generateSdkVersion(t.adapters??[],"react",Rte)}),Ste(Uc)),Uc}function eI(){const{caipNetwork:t,caipNetworkId:e,chainId:n}=xX();function r(i){Uc==null||Uc.switchNetwork(i)}return{caipNetwork:t,caipNetworkId:e,chainId:n,switchNetwork:r}}function Fr(t,e,n){const r=t[e.name];if(typeof r=="function")return r;const i=t[n];return typeof i=="function"?i:s=>e(t,s)}const Bg="2.16.7",Pte=()=>`@wagmi/core@${Bg}`;var tI=function(t,e,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(t):r?r.value:e.get(t)},ym,nI;let ja=class gE extends Error{get docsBaseUrl(){return"https://wagmi.sh/core"}get version(){return Pte()}constructor(e,n={}){var s;super(),ym.add(this),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiCoreError"});const r=n.cause instanceof gE?n.cause.details:(s=n.cause)!=null&&s.message?n.cause.message:n.details,i=n.cause instanceof gE&&n.cause.docsPath||n.docsPath;this.message=[e||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...i?[`Docs: ${this.docsBaseUrl}${i}.html${n.docsSlug?`#${n.docsSlug}`:""}`]:[],...r?[`Details: ${r}`]:[],`Version: ${this.version}`].join(` +`),n.cause&&(this.cause=n.cause),this.details=r,this.docsPath=i,this.metaMessages=n.metaMessages,this.shortMessage=e}walk(e){return tI(this,ym,"m",nI).call(this,this,e)}};ym=new WeakSet,nI=function t(e,n){return n!=null&&n(e)?e:e.cause?tI(this,ym,"m",t).call(this,e.cause,n):e};class Jh extends ja{constructor(){super("Chain not configured."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainNotConfiguredError"})}}class Mte extends ja{constructor(){super("Connector already connected."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorAlreadyConnectedError"})}}class kte extends ja{constructor(){super("Connector not connected."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorNotConnectedError"})}}class Ute extends ja{constructor({address:e,connector:n}){super(`Account "${e}" not found for connector "${n.name}".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorAccountNotFoundError"})}}class Bte extends ja{constructor({connectionChainId:e,connectorChainId:n}){super(`The current chain of the connector (id: ${n}) does not match the connection's chain (id: ${e}).`,{metaMessages:[`Current Chain ID: ${n}`,`Expected Chain ID: ${e}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorChainMismatchError"})}}class Lte extends ja{constructor({connector:e}){super(`Connector "${e.name}" unavailable while reconnecting.`,{details:["During the reconnection step, the only connector methods guaranteed to be available are: `id`, `name`, `type`, `uid`.","All other methods are not guaranteed to be available until reconnection completes and connectors are fully restored.","This error commonly occurs for connectors that asynchronously inject after reconnection has already started."].join(" ")}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorUnavailableReconnectingError"})}}async function e8(t,e){var r;let n;if(typeof e.connector=="function"?n=t._internal.connectors.setup(e.connector):n=e.connector,n.uid===t.state.current)throw new Mte;try{t.setState(f=>({...f,status:"connecting"})),n.emitter.emit("message",{type:"connecting"});const{connector:i,...s}=e,c=await n.connect(s),u=c.accounts;return n.emitter.off("connect",t._internal.events.connect),n.emitter.on("change",t._internal.events.change),n.emitter.on("disconnect",t._internal.events.disconnect),await((r=t.storage)==null?void 0:r.setItem("recentConnectorId",n.id)),t.setState(f=>({...f,connections:new Map(f.connections).set(n.uid,{accounts:u,chainId:c.chainId,connector:n}),current:n.uid,status:"connected"})),{accounts:u,chainId:c.chainId}}catch(i){throw t.setState(s=>({...s,status:s.current?"connected":"disconnected"})),i}}async function Pp(t,e={}){let n;if(e.connector){const{connector:d}=e;if(t.state.status==="reconnecting"&&!d.getAccounts&&!d.getChainId)throw new Lte({connector:d});const[p,g]=await Promise.all([d.getAccounts().catch(m=>{if(e.account===null)return[];throw m}),d.getChainId()]);n={accounts:p,chainId:g,connector:d}}else n=t.state.connections.get(t.state.current);if(!n)throw new kte;const r=e.chainId??n.chainId,i=await n.connector.getChainId();if(i!==n.chainId)throw new Bte({connectionChainId:n.chainId,connectorChainId:i});const s=n.connector;if(s.getClient)return s.getClient({chainId:r});const c=Qs(e.account??n.accounts[0]);if(c&&(c.address=Bo(c.address)),e.account&&!n.accounts.some(d=>d.toLowerCase()===c.address.toLowerCase()))throw new Ute({address:c.address,connector:s});const u=t.chains.find(d=>d.id===r),f=await n.connector.getProvider({chainId:r});return T9({account:c,chain:u,name:"Connector Client",transport:d=>DZ(f)({...d,retryCount:0})})}async function $te(t,e={}){var i,s;let n;if(e.connector)n=e.connector;else{const{connections:c,current:u}=t.state,f=c.get(u);n=f==null?void 0:f.connector}const r=t.state.connections;n&&(await n.disconnect(),n.emitter.off("change",t._internal.events.change),n.emitter.off("disconnect",t._internal.events.disconnect),n.emitter.on("connect",t._internal.events.connect),r.delete(n.uid)),t.setState(c=>{if(r.size===0)return{...c,connections:new Map,current:null,status:"disconnected"};const u=r.values().next().value;return{...c,connections:new Map(r),current:u.connector.uid}});{const c=t.state.current;if(!c)return;const u=(i=t.state.connections.get(c))==null?void 0:i.connector;if(!u)return;await((s=t.storage)==null?void 0:s.setItem("recentConnectorId",u.id))}}async function rI(t,e){const{chainId:n,connector:r,...i}=e;let s;e.account?s=e.account:s=(await Pp(t,{account:e.account,chainId:n,connector:r})).account;const c=t.getClient({chainId:n});return Fr(c,p9,"estimateGas")({...i,account:s})}function iI(t){return typeof t=="number"?t:t==="wei"?0:Math.abs(dY[t])}function ep(t){const e=t.state.current,n=t.state.connections.get(e),r=n==null?void 0:n.accounts,i=r==null?void 0:r[0],s=t.chains.find(u=>u.id===(n==null?void 0:n.chainId)),c=t.state.status;switch(c){case"connected":return{address:i,addresses:r,chain:s,chainId:n==null?void 0:n.chainId,connector:n==null?void 0:n.connector,isConnected:!0,isConnecting:!1,isDisconnected:!1,isReconnecting:!1,status:c};case"reconnecting":return{address:i,addresses:r,chain:s,chainId:n==null?void 0:n.chainId,connector:n==null?void 0:n.connector,isConnected:!!i,isConnecting:!1,isDisconnected:!1,isReconnecting:!0,status:c};case"connecting":return{address:i,addresses:r,chain:s,chainId:n==null?void 0:n.chainId,connector:n==null?void 0:n.connector,isConnected:!1,isConnecting:!0,isDisconnected:!1,isReconnecting:!1,status:c};case"disconnected":return{address:void 0,addresses:void 0,chain:void 0,chainId:void 0,connector:void 0,isConnected:!1,isConnecting:!1,isDisconnected:!0,isReconnecting:!1,status:c}}}async function Fte(t,e){const{allowFailure:n=!0,chainId:r,contracts:i,...s}=e,c=t.getClient({chainId:r});return Fr(c,cX,"multicall")({allowFailure:n,contracts:i,...s})}function sI(t,e){const{chainId:n,...r}=e,i=t.getClient({chainId:n});return Fr(i,cu,"readContract")(r)}async function jte(t,e){var u;const{allowFailure:n=!0,blockNumber:r,blockTag:i,...s}=e,c=e.contracts;try{const f={};for(const[m,y]of c.entries()){const A=y.chainId??t.state.chainId;f[A]||(f[A]=[]),(u=f[A])==null||u.push({contract:y,index:m})}const d=()=>Object.entries(f).map(([m,y])=>Fte(t,{...s,allowFailure:n,blockNumber:r,blockTag:i,chainId:Number.parseInt(m),contracts:y.map(({contract:A})=>A)})),p=(await Promise.all(d())).flat(),g=Object.values(f).flatMap(m=>m.map(({index:y})=>y));return p.reduce((m,y,A)=>(m&&(m[g[A]]=y),m),[])}catch(f){if(f instanceof XN)throw f;const d=()=>c.map(p=>sI(t,{...p,blockNumber:r,blockTag:i}));return n?(await Promise.allSettled(d())).map(p=>p.status==="fulfilled"?{result:p.value,status:"success"}:{error:p.reason,result:void 0,status:"failure"}):await Promise.all(d())}}async function aI(t,e){const{address:n,blockNumber:r,blockTag:i,chainId:s,token:c,unit:u="ether"}=e;if(c)try{return await t8(t,{balanceAddress:n,chainId:s,symbolType:"string",tokenAddress:c})}catch(m){if(m.name==="ContractFunctionExecutionError"){const y=await t8(t,{balanceAddress:n,chainId:s,symbolType:"bytes32",tokenAddress:c}),A=LN(Sd(y.symbol,{dir:"right"}));return{...y,symbol:A}}throw m}const f=t.getClient({chainId:s}),p=await Fr(f,h9,"getBalance")(r?{address:n,blockNumber:r}:{address:n,blockTag:i}),g=t.chains.find(m=>m.id===s)??f.chain;return{decimals:g.nativeCurrency.decimals,formatted:xd(p,iI(u)),symbol:g.nativeCurrency.symbol,value:p}}async function t8(t,e){const{balanceAddress:n,chainId:r,symbolType:i,tokenAddress:s,unit:c}=e,u={abi:[{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{type:"uint8"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{type:i}]}],address:s},[f,d,p]=await jte(t,{allowFailure:!1,contracts:[{...u,functionName:"balanceOf",args:[n],chainId:r},{...u,functionName:"decimals",chainId:r},{...u,functionName:"symbol",chainId:r}]}),g=xd(f??"0",iI(c??d));return{decimals:d,formatted:g,symbol:p,value:f}}function n8(t){return t.state.chainId}function tp(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let n,r;if(Array.isArray(t)&&Array.isArray(e)){if(n=t.length,n!==e.length)return!1;for(r=n;r--!==0;)if(!tp(t[r],e[r]))return!1;return!0}if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===e.toString();const i=Object.keys(t);if(n=i.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(e,i[r]))return!1;for(r=n;r--!==0;){const s=i[r];if(s&&!tp(t[s],e[s]))return!1}return!0}return t!==t&&e!==e}let vg=[];function Sl(t){const e=[...t.state.connections.values()];return t.state.status==="reconnecting"||tp(vg,e)?vg:(vg=e,e)}function zte(t,e){const{chainId:n,...r}=e,i=t.getClient({chainId:n});return Fr(i,jZ,"getEnsAddress")(r)}function qte(t,e){const{chainId:n,...r}=e,i=t.getClient({chainId:n});return Fr(i,tX,"getEnsAvatar")(r)}function Hte(t,e){const{chainId:n,...r}=e,i=t.getClient({chainId:n});return Fr(i,nX,"getEnsName")(r)}async function Gte(t,e){const{account:n,chainId:r,...i}=e,s=n??ep(t).address,c=t.getClient({chainId:r});return Fr(c,I2,"prepareTransactionRequest")({...i,...s?{account:s}:{}})}let Q1=!1;async function oI(t,e={}){var d,p;if(Q1)return[];Q1=!0,t.setState(g=>({...g,status:g.current?"reconnecting":"connecting"}));const n=[];if((d=e.connectors)!=null&&d.length)for(const g of e.connectors){let m;typeof g=="function"?m=t._internal.connectors.setup(g):m=g,n.push(m)}else n.push(...t.connectors);let r;try{r=await((p=t.storage)==null?void 0:p.getItem("recentConnectorId"))}catch{}const i={};for(const[,g]of t.state.connections)i[g.connector.id]=1;r&&(i[r]=0);const s=Object.keys(i).length>0?[...n].sort((g,m)=>(i[g.id]??10)-(i[m.id]??10)):n;let c=!1;const u=[],f=[];for(const g of s){const m=await g.getProvider().catch(()=>{});if(!m||f.some(E=>E===m)||!await g.isAuthorized())continue;const A=await g.connect({isReconnecting:!0}).catch(()=>null);A&&(g.emitter.off("connect",t._internal.events.connect),g.emitter.on("change",t._internal.events.change),g.emitter.on("disconnect",t._internal.events.disconnect),t.setState(E=>{const x=new Map(c?E.connections:new Map).set(g.uid,{accounts:A.accounts,chainId:A.chainId,connector:g});return{...E,current:c?E.current:g.uid,connections:x}}),u.push({accounts:A.accounts,chainId:A.chainId,connector:g}),f.push(m),c=!0)}return(t.state.status==="reconnecting"||t.state.status==="connecting")&&(c?t.setState(g=>({...g,status:"connected"})):t.setState(g=>({...g,connections:new Map,current:null,status:"disconnected"}))),Q1=!1,u}async function cI(t,e){const{account:n,chainId:r,connector:i,...s}=e;let c;return typeof n=="object"&&(n==null?void 0:n.type)==="local"?c=t.getClient({chainId:r}):c=await Pp(t,{account:n??void 0,chainId:r,connector:i}),await Fr(c,C9,"sendTransaction")({...s,...n?{account:n}:{},chain:r?{id:r}:null,gas:s.gas??void 0})}async function uI(t,e){const{account:n,connector:r,...i}=e;let s;return typeof n=="object"&&n.type==="local"?s=t.getClient():s=await Pp(t,{account:n,connector:r}),Fr(s,fX,"signMessage")({...i,...n?{account:n}:{}})}class Ao extends ja{constructor(){super("Provider not found."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderNotFoundError"})}}class Vte extends ja{constructor({connector:e}){super(`"${e.name}" does not support programmatic chain switching.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SwitchChainNotSupportedError"})}}async function Kte(t,e){var c;const{addEthereumChainParameter:n,chainId:r}=e,i=t.state.connections.get(((c=e.connector)==null?void 0:c.uid)??t.state.current);if(i){const u=i.connector;if(!u.switchChain)throw new Vte({connector:u});return await u.switchChain({addEthereumChainParameter:n,chainId:r})}const s=t.chains.find(u=>u.id===r);if(!s)throw new Jh;return t.setState(u=>({...u,chainId:r})),s}function lI(t,e){const{onChange:n}=e;return t.subscribe(()=>ep(t),n,{equalityFn(r,i){const{connector:s,...c}=r,{connector:u,...f}=i;return tp(c,f)&&(s==null?void 0:s.id)===(u==null?void 0:u.id)&&(s==null?void 0:s.uid)===(u==null?void 0:u.uid)}})}function Wte(t,e){const{onChange:n}=e;return t.subscribe(r=>r.chainId,n)}function Qte(t,e){const{onChange:n}=e;return t._internal.connectors.subscribe((r,i)=>{n(Object.values(r),i)})}function Yte(t,e){const{syncConnectedChain:n=t._internal.syncConnectedChain,...r}=e;let i;const s=f=>{i&&i();const d=t.getClient({chainId:f});return i=Fr(d,dX,"watchPendingTransactions")(r),i},c=s(e.chainId);let u;return n&&!e.chainId&&(u=t.subscribe(({chainId:f})=>f,async f=>s(f))),()=>{c==null||c(),u==null||u()}}async function dI(t,e){const{chainId:n,timeout:r=0,...i}=e,s=t.getClient({chainId:n}),u=await Fr(s,lX,"waitForTransactionReceipt")({...i,timeout:r});if(u.status==="reverted"){const d=await Fr(s,D9,"getTransaction")({hash:u.transactionHash}),g=await Fr(s,A9,"call")({...d,data:d.input,gasPrice:d.type!=="eip1559"?d.gasPrice:void 0,maxFeePerGas:d.type==="eip1559"?d.maxFeePerGas:void 0,maxPriorityFeePerGas:d.type==="eip1559"?d.maxPriorityFeePerGas:void 0}),m=g!=null&&g.data?LN(`0x${g.data.substring(138)}`):"unknown reason";throw new Error(m)}return{...u,chainId:s.chain.id}}async function fI(t,e){const{account:n,chainId:r,connector:i,...s}=e;let c;return typeof n=="object"&&(n==null?void 0:n.type)==="local"?c=t.getClient({chainId:r}):c=await Pp(t,{account:n??void 0,chainId:r,connector:i}),await Fr(c,NZ,"writeContract")({...s,...n?{account:n}:{},chain:r?{id:r}:null})}function kse(t){return t}eb.type="injected";function eb(t={}){const{shimDisconnect:e=!0,unstable_shimAsyncInject:n}=t;function r(){const f=t.target;if(typeof f=="function"){const d=f();if(d)return d}return typeof f=="object"?f:typeof f=="string"?{...Zte[f]??{id:f,name:`${f[0].toUpperCase()}${f.slice(1)}`,provider:`is${f[0].toUpperCase()}${f.slice(1)}`}}:{id:"injected",name:"Injected",provider(d){return d==null?void 0:d.ethereum}}}let i,s,c,u;return f=>({get icon(){return r().icon},get id(){return r().id},get name(){return r().name},get supportsSimulation(){return!0},type:eb.type,async setup(){const d=await this.getProvider();d!=null&&d.on&&t.target&&(c||(c=this.onConnect.bind(this),d.on("connect",c)),i||(i=this.onAccountsChanged.bind(this),d.on("accountsChanged",i)))},async connect({chainId:d,isReconnecting:p}={}){var y,A,E,x,O,I;const g=await this.getProvider();if(!g)throw new Ao;let m=[];if(p)m=await this.getAccounts().catch(()=>[]);else if(e)try{m=(x=(E=(A=(y=(await g.request({method:"wallet_requestPermissions",params:[{eth_accounts:{}}]}))[0])==null?void 0:y.caveats)==null?void 0:A[0])==null?void 0:E.value)==null?void 0:x.map($=>Bo($)),m.length>0&&(m=await this.getAccounts())}catch(M){const $=M;if($.code===Xn.code)throw new Xn($);if($.code===jo.code)throw $}try{!(m!=null&&m.length)&&!p&&(m=(await g.request({method:"eth_requestAccounts"})).map(D=>Bo(D))),c&&(g.removeListener("connect",c),c=void 0),i||(i=this.onAccountsChanged.bind(this),g.on("accountsChanged",i)),s||(s=this.onChainChanged.bind(this),g.on("chainChanged",s)),u||(u=this.onDisconnect.bind(this),g.on("disconnect",u));let M=await this.getChainId();if(d&&M!==d){const $=await this.switchChain({chainId:d}).catch(D=>{if(D.code===Xn.code)throw D;return{id:M}});M=($==null?void 0:$.id)??M}return e&&await((O=f.storage)==null?void 0:O.removeItem(`${this.id}.disconnected`)),t.target||await((I=f.storage)==null?void 0:I.setItem("injected.connected",!0)),{accounts:m,chainId:M}}catch(M){const $=M;throw $.code===Xn.code?new Xn($):$.code===jo.code?new jo($):$}},async disconnect(){var p,g;const d=await this.getProvider();if(!d)throw new Ao;s&&(d.removeListener("chainChanged",s),s=void 0),u&&(d.removeListener("disconnect",u),u=void 0),c||(c=this.onConnect.bind(this),d.on("connect",c));try{await x9(()=>d.request({method:"wallet_revokePermissions",params:[{eth_accounts:{}}]}),{timeout:100})}catch{}e&&await((p=f.storage)==null?void 0:p.setItem(`${this.id}.disconnected`,!0)),t.target||await((g=f.storage)==null?void 0:g.removeItem("injected.connected"))},async getAccounts(){const d=await this.getProvider();if(!d)throw new Ao;return(await d.request({method:"eth_accounts"})).map(g=>Bo(g))},async getChainId(){const d=await this.getProvider();if(!d)throw new Ao;const p=await d.request({method:"eth_chainId"});return Number(p)},async getProvider(){if(typeof window>"u")return;let d;const p=r();return typeof p.provider=="function"?d=p.provider(window):typeof p.provider=="string"?d=Lg(window,p.provider):d=p.provider,d&&!d.removeListener&&("off"in d&&typeof d.off=="function"?d.removeListener=d.off:d.removeListener=()=>{}),d},async isAuthorized(){var d,p;try{if(e&&await((d=f.storage)==null?void 0:d.getItem(`${this.id}.disconnected`))||!t.target&&!await((p=f.storage)==null?void 0:p.getItem("injected.connected")))return!1;if(!await this.getProvider()){if(n!==void 0&&n!==!1){const A=async()=>(typeof window<"u"&&window.removeEventListener("ethereum#initialized",A),!!await this.getProvider()),E=typeof n=="number"?n:1e3;if(await Promise.race([...typeof window<"u"?[new Promise(O=>window.addEventListener("ethereum#initialized",()=>O(A()),{once:!0}))]:[],new Promise(O=>setTimeout(()=>O(A()),E))]))return!0}throw new Ao}return!!(await am(()=>this.getAccounts())).length}catch{return!1}},async switchChain({addEthereumChainParameter:d,chainId:p}){var A,E,x,O;const g=await this.getProvider();if(!g)throw new Ao;const m=f.chains.find(I=>I.id===p);if(!m)throw new Gs(new Jh);const y=new Promise(I=>{const M=$=>{"chainId"in $&&$.chainId===p&&(f.emitter.off("change",M),I())};f.emitter.on("change",M)});try{return await Promise.all([g.request({method:"wallet_switchEthereumChain",params:[{chainId:it(p)}]}).then(async()=>{await this.getChainId()===p&&f.emitter.emit("change",{chainId:p})}),y]),m}catch(I){const M=I;if(M.code===4902||((E=(A=M==null?void 0:M.data)==null?void 0:A.originalError)==null?void 0:E.code)===4902)try{const{default:$,...D}=m.blockExplorers??{};let R;d!=null&&d.blockExplorerUrls?R=d.blockExplorerUrls:$&&(R=[$.url,...Object.values(D).map(j=>j.url)]);let z;(x=d==null?void 0:d.rpcUrls)!=null&&x.length?z=d.rpcUrls:z=[((O=m.rpcUrls.default)==null?void 0:O.http[0])??""];const G={blockExplorerUrls:R,chainId:it(p),chainName:(d==null?void 0:d.chainName)??m.name,iconUrls:d==null?void 0:d.iconUrls,nativeCurrency:(d==null?void 0:d.nativeCurrency)??m.nativeCurrency,rpcUrls:z};return await Promise.all([g.request({method:"wallet_addEthereumChain",params:[G]}).then(async()=>{if(await this.getChainId()===p)f.emitter.emit("change",{chainId:p});else throw new Xn(new Error("User rejected switch after adding network."))}),y]),m}catch($){throw new Xn($)}throw M.code===Xn.code?new Xn(M):new Gs(M)}},async onAccountsChanged(d){var p;if(d.length===0)this.onDisconnect();else if(f.emitter.listenerCount("connect")){const g=(await this.getChainId()).toString();this.onConnect({chainId:g}),e&&await((p=f.storage)==null?void 0:p.removeItem(`${this.id}.disconnected`))}else f.emitter.emit("change",{accounts:d.map(g=>Bo(g))})},onChainChanged(d){const p=Number(d);f.emitter.emit("change",{chainId:p})},async onConnect(d){const p=await this.getAccounts();if(p.length===0)return;const g=Number(d.chainId);f.emitter.emit("connect",{accounts:p,chainId:g});const m=await this.getProvider();m&&(c&&(m.removeListener("connect",c),c=void 0),i||(i=this.onAccountsChanged.bind(this),m.on("accountsChanged",i)),s||(s=this.onChainChanged.bind(this),m.on("chainChanged",s)),u||(u=this.onDisconnect.bind(this),m.on("disconnect",u)))},async onDisconnect(d){const p=await this.getProvider();d&&d.code===1013&&p&&(await this.getAccounts()).length||(f.emitter.emit("disconnect"),p&&(s&&(p.removeListener("chainChanged",s),s=void 0),u&&(p.removeListener("disconnect",u),u=void 0),c||(c=this.onConnect.bind(this),p.on("connect",c))))}})}const Zte={coinbaseWallet:{id:"coinbaseWallet",name:"Coinbase Wallet",provider(t){return t!=null&&t.coinbaseWalletExtension?t.coinbaseWalletExtension:Lg(t,"isCoinbaseWallet")}},metaMask:{id:"metaMask",name:"MetaMask",provider(t){return Lg(t,e=>{if(!e.isMetaMask||e.isBraveWallet&&!e._events&&!e._state)return!1;const n=["isApexWallet","isAvalanche","isBitKeep","isBlockWallet","isKuCoinWallet","isMathWallet","isOkxWallet","isOKExWallet","isOneInchIOSWallet","isOneInchAndroidWallet","isOpera","isPhantom","isPortal","isRabby","isTokenPocket","isTokenary","isUniswapWallet","isZerion"];for(const r of n)if(e[r])return!1;return!0})}},phantom:{id:"phantom",name:"Phantom",provider(t){var e,n;return(e=t==null?void 0:t.phantom)!=null&&e.ethereum?(n=t.phantom)==null?void 0:n.ethereum:Lg(t,"isPhantom")}}};function Lg(t,e){function n(i){return typeof e=="function"?e(i):typeof e=="string"?i[e]:!0}const r=t.ethereum;if(r!=null&&r.providers)return r.providers.find(i=>n(i));if(r&&n(r))return r}function Xte(t){if(typeof window>"u")return;const e=n=>t(n.detail);return window.addEventListener("eip6963:announceProvider",e),window.dispatchEvent(new CustomEvent("eip6963:requestProvider")),()=>window.removeEventListener("eip6963:announceProvider",e)}function Jte(){const t=new Set;let e=[];const n=()=>Xte(i=>{e.some(({info:s})=>s.uuid===i.info.uuid)||(e=[...e,i],t.forEach(s=>s(e,{added:[i]})))});let r=n();return{_listeners(){return t},clear(){t.forEach(i=>i([],{removed:[...e]})),e=[]},destroy(){this.clear(),t.clear(),r==null||r()},findProvider({rdns:i}){return e.find(s=>s.info.rdns===i)},getProviders(){return e},reset(){this.clear(),r==null||r(),r=n()},subscribe(i,{emitImmediately:s}={}){return t.add(i),s&&i(e,{added:e}),()=>t.delete(i)}}}const ene=t=>(e,n,r)=>{const i=r.subscribe;return r.subscribe=(c,u,f)=>{let d=c;if(u){const p=(f==null?void 0:f.equalityFn)||Object.is;let g=c(r.getState());d=m=>{const y=c(m);if(!p(g,y)){const A=g;u(g=y,A)}},f!=null&&f.fireImmediately&&u(g,g)}return i(d)},t(e,n,r)},tne=ene;function nne(t,e){let n;try{n=t()}catch{return}return{getItem:i=>{var s;const c=f=>f===null?null:JSON.parse(f,void 0),u=(s=n.getItem(i))!=null?s:null;return u instanceof Promise?u.then(c):c(u)},setItem:(i,s)=>n.setItem(i,JSON.stringify(s,void 0)),removeItem:i=>n.removeItem(i)}}const mE=t=>e=>{try{const n=t(e);return n instanceof Promise?n:{then(r){return mE(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return mE(r)(n)}}}},rne=(t,e)=>(n,r,i)=>{let s={storage:nne(()=>localStorage),partialize:E=>E,version:0,merge:(E,x)=>({...x,...E}),...e},c=!1;const u=new Set,f=new Set;let d=s.storage;if(!d)return t((...E)=>{console.warn(`[zustand persist middleware] Unable to update item '${s.name}', the given storage is currently unavailable.`),n(...E)},r,i);const p=()=>{const E=s.partialize({...r()});return d.setItem(s.name,{state:E,version:s.version})},g=i.setState;i.setState=(E,x)=>{g(E,x),p()};const m=t((...E)=>{n(...E),p()},r,i);i.getInitialState=()=>m;let y;const A=()=>{var E,x;if(!d)return;c=!1,u.forEach(I=>{var M;return I((M=r())!=null?M:m)});const O=((x=s.onRehydrateStorage)==null?void 0:x.call(s,(E=r())!=null?E:m))||void 0;return mE(d.getItem.bind(d))(s.name).then(I=>{if(I)if(typeof I.version=="number"&&I.version!==s.version){if(s.migrate)return[!0,s.migrate(I.state,I.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,I.state];return[!1,void 0]}).then(I=>{var M;const[$,D]=I;if(y=s.merge(D,(M=r())!=null?M:m),n(y,!0),$)return p()}).then(()=>{O==null||O(y,void 0),y=r(),c=!0,f.forEach(I=>I(y))}).catch(I=>{O==null||O(void 0,I)})};return i.persist={setOptions:E=>{s={...s,...E},E.storage&&(d=E.storage)},clearStorage:()=>{d==null||d.removeItem(s.name)},getOptions:()=>s,rehydrate:()=>A(),hasHydrated:()=>c,onHydrate:E=>(u.add(E),()=>{u.delete(E)}),onFinishHydration:E=>(f.add(E),()=>{f.delete(E)})},s.skipHydration||A(),y||m},ine=rne,r8=t=>{let e;const n=new Set,r=(d,p)=>{const g=typeof d=="function"?d(e):d;if(!Object.is(g,e)){const m=e;e=p??(typeof g!="object"||g===null)?g:Object.assign({},e,g),n.forEach(y=>y(e,m))}},i=()=>e,u={setState:r,getState:i,getInitialState:()=>f,subscribe:d=>(n.add(d),()=>n.delete(d))},f=e=t(r,i,u);return u},Y1=t=>t?r8(t):r8;var Z1={exports:{}},i8;function sne(){return i8||(i8=1,function(t){var e=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(f,d,p){this.fn=f,this.context=d,this.once=p||!1}function s(f,d,p,g,m){if(typeof p!="function")throw new TypeError("The listener must be a function");var y=new i(p,g||f,m),A=n?n+d:d;return f._events[A]?f._events[A].fn?f._events[A]=[f._events[A],y]:f._events[A].push(y):(f._events[A]=y,f._eventsCount++),f}function c(f,d){--f._eventsCount===0?f._events=new r:delete f._events[d]}function u(){this._events=new r,this._eventsCount=0}u.prototype.eventNames=function(){var d=[],p,g;if(this._eventsCount===0)return d;for(g in p=this._events)e.call(p,g)&&d.push(n?g.slice(1):g);return Object.getOwnPropertySymbols?d.concat(Object.getOwnPropertySymbols(p)):d},u.prototype.listeners=function(d){var p=n?n+d:d,g=this._events[p];if(!g)return[];if(g.fn)return[g.fn];for(var m=0,y=g.length,A=new Array(y);m{let i=r;return(i==null?void 0:i.__type)==="bigint"&&(i=BigInt(i.value)),(i==null?void 0:i.__type)==="Map"&&(i=new Map(i.value)),(e==null?void 0:e(n,i))??i})}function s8(t,e){return t.slice(0,e).join(".")||"."}function a8(t,e){const{length:n}=t;for(let r=0;r{let c=s;return typeof c=="bigint"&&(c={__type:"bigint",value:s.toString()}),c instanceof Map&&(c={__type:"Map",value:Array.from(s.entries())}),(e==null?void 0:e(i,c))??c},r),n??void 0)}function hne(t){const{deserialize:e=lne,key:n="wagmi",serialize:r=fne,storage:i=hI}=t;function s(c){return c instanceof Promise?c.then(u=>u).catch(()=>null):c}return{...i,key:n,async getItem(c,u){const f=i.getItem(`${n}.${c}`),d=await s(f);return d?e(d)??null:u??null},async setItem(c,u){const f=`${n}.${c}`;u===null?await s(i.removeItem(f)):await s(i.setItem(f,r(u)))},async removeItem(c){await s(i.removeItem(`${n}.${c}`))}}}const hI={getItem:()=>null,setItem:()=>{},removeItem:()=>{}};function pne(){const t=typeof window<"u"&&window.localStorage?window.localStorage:hI;return{getItem(e){return t.getItem(e)},removeItem(e){t.removeItem(e)},setItem(e,n){try{t.setItem(e,n)}catch{}}}}const bE=256;let wg=bE,Eg;function gne(t=11){if(!Eg||wg+t>bE*2){Eg="",wg=0;for(let e=0;es.chains),f=Y1(()=>{const D=[],R=new Set;for(const z of s.connectors??[]){const G=d(z);if(D.push(G),!i&&G.rdns){const j=typeof G.rdns=="string"?[G.rdns]:G.rdns;for(const V of j)R.add(V)}}if(!i&&c){const z=c.getProviders();for(const G of z)R.has(G.info.rdns)||D.push(d(p(G)))}return D});function d(D){var G;const R=une(gne()),z={...D({emitter:R,chains:u.getState(),storage:n,transports:s.transports}),emitter:R,uid:R.uid};return R.on("connect",M),(G=z.setup)==null||G.call(z),z}function p(D){const{info:R}=D,z=D.provider;return eb({target:{...R,id:R.rdns,provider:z}})}const g=new Map;function m(D={}){const R=D.chainId??x.getState().chainId,z=u.getState().find(j=>j.id===R);if(D.chainId&&!z)throw new Jh;{const j=g.get(x.getState().chainId);if(j&&!z)return j;if(!z)throw new Jh}{const j=g.get(R);if(j)return j}let G;if(s.client)G=s.client({chain:z});else{const j=z.id,V=u.getState().map(C=>C.id),L={},v=Object.entries(s);for(const[C,N]of v)if(!(C==="chains"||C==="client"||C==="connectors"||C==="transports"))if(typeof N=="object")if(j in N)L[C]=N[j];else{if(V.some(S=>S in N))continue;L[C]=N}else L[C]=N;G=T9({...L,chain:z,batch:L.batch??{multicall:!0},transport:C=>s.transports[j]({...C,connectors:f})})}return g.set(R,G),G}function y(){return{chainId:u.getState()[0].id,connections:new Map,current:null,status:"disconnected"}}let A;const E="0.0.0-canary-";Bg.startsWith(E)?A=Number.parseInt(Bg.replace(E,"")):A=Number.parseInt(Bg.split(".")[0]??"0");const x=Y1(tne(n?ine(y,{migrate(D,R){if(R===A)return D;const z=y(),G=O(D,z.chainId);return{...z,chainId:G}},name:"store",partialize(D){return{connections:{__type:"Map",value:Array.from(D.connections.entries()).map(([R,z])=>{const{id:G,name:j,type:V,uid:L}=z.connector;return[R,{...z,connector:{id:G,name:j,type:V,uid:L}}]})},chainId:D.chainId,current:D.current}},merge(D,R){typeof D=="object"&&D&&"status"in D&&delete D.status;const z=O(D,R.chainId);return{...R,...D,chainId:z}},skipHydration:i,storage:n,version:A}):y));x.setState(y());function O(D,R){return D&&typeof D=="object"&&"chainId"in D&&typeof D.chainId=="number"&&u.getState().some(z=>z.id===D.chainId)?D.chainId:R}r&&x.subscribe(({connections:D,current:R})=>{var z;return R?(z=D.get(R))==null?void 0:z.chainId:void 0},D=>{if(u.getState().some(z=>z.id===D))return x.setState(z=>({...z,chainId:D??z.chainId}))}),c==null||c.subscribe(D=>{const R=new Set,z=new Set;for(const j of f.getState())if(R.add(j.id),j.rdns){const V=typeof j.rdns=="string"?[j.rdns]:j.rdns;for(const L of V)z.add(L)}const G=[];for(const j of D){if(z.has(j.info.rdns))continue;const V=d(p(j));R.has(V.id)||G.push(V)}n&&!x.persist.hasHydrated()||f.setState(j=>[...j,...G],!0)});function I(D){x.setState(R=>{const z=R.connections.get(D.uid);return z?{...R,connections:new Map(R.connections).set(D.uid,{accounts:D.accounts??z.accounts,chainId:D.chainId??z.chainId,connector:z.connector})}:R})}function M(D){x.getState().status==="connecting"||x.getState().status==="reconnecting"||x.setState(R=>{const z=f.getState().find(G=>G.uid===D.uid);return z?(z.emitter.listenerCount("connect")&&z.emitter.off("connect",I),z.emitter.listenerCount("change")||z.emitter.on("change",I),z.emitter.listenerCount("disconnect")||z.emitter.on("disconnect",$),{...R,connections:new Map(R.connections).set(D.uid,{accounts:D.accounts,chainId:D.chainId,connector:z}),current:D.uid,status:"connected"}):R})}function $(D){x.setState(R=>{const z=R.connections.get(D.uid);if(z){const j=z.connector;j.emitter.listenerCount("change")&&z.connector.emitter.off("change",I),j.emitter.listenerCount("disconnect")&&z.connector.emitter.off("disconnect",$),j.emitter.listenerCount("connect")||z.connector.emitter.on("connect",M)}if(R.connections.delete(D.uid),R.connections.size===0)return{...R,connections:new Map,current:null,status:"disconnected"};const G=R.connections.values().next().value;return{...R,connections:new Map(R.connections),current:G.connector.uid}})}return{get chains(){return u.getState()},get connectors(){return f.getState()},storage:n,getClient:m,get state(){return x.getState()},setState(D){let R;typeof D=="function"?R=D(x.getState()):R=D;const z=y();typeof R!="object"&&(R=z),Object.keys(z).some(j=>!(j in R))&&(R=z),x.setState(R,!0)},subscribe(D,R,z){return x.subscribe(D,R,z?{...z,fireImmediately:z.emitImmediately}:void 0)},_internal:{mipd:c,store:x,ssr:!!i,syncConnectedChain:r,transports:s.transports,chains:{setState(D){const R=typeof D=="function"?D(u.getState()):D;if(R.length!==0)return u.setState(R,!0)},subscribe(D){return u.subscribe(D)}},connectors:{providerDetailToConnector:p,setup:d,setState(D){return f.setState(typeof D=="function"?D(f.getState()):D,!0)},subscribe(D){return f.subscribe(D)}},events:{change:I,connect:M,disconnect:$}}}}function bne(t,e){const{initialState:n,reconnectOnMount:r}=e;return n&&!t._internal.store.persist.hasHydrated()&&t.setState({...n,chainId:t.chains.some(i=>i.id===n.chainId)?n.chainId:t.chains[0].id,connections:r?n.connections:new Map,status:r?"reconnecting":"disconnected"}),{async onMount(){t._internal.ssr&&(await t._internal.store.persist.rehydrate(),t._internal.mipd&&t._internal.connectors.setState(i=>{var f;const s=new Set;for(const d of i??[])if(d.rdns){const p=Array.isArray(d.rdns)?d.rdns:[d.rdns];for(const g of p)s.add(g)}const c=[],u=((f=t._internal.mipd)==null?void 0:f.getProviders())??[];for(const d of u){if(s.has(d.info.rdns))continue;const p=t._internal.connectors.providerDetailToConnector(d),g=t._internal.connectors.setup(p);c.push(g)}return[...i,...c]})),r?oI(t):t.storage&&t.setState(i=>({...i,connections:new Map}))}}}function yne(t){const{children:e,config:n,initialState:r,reconnectOnMount:i=!0}=t,{onMount:s}=bne(n,{initialState:r,reconnectOnMount:i});n._internal.ssr||s();const c=Le.useRef(!0);return Le.useEffect(()=>{if(c.current&&n._internal.ssr)return s(),()=>{c.current=!1}},[]),e}const pI=Le.createContext(void 0);function vne(t){const{children:e,config:n}=t,r={value:n};return Le.createElement(yne,t,Le.createElement(pI.Provider,r,e))}const wne="2.14.15",Ene=()=>`wagmi@${wne}`;class Ane extends ja{constructor(){super(...arguments),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiError"})}get docsBaseUrl(){return"https://wagmi.sh/react"}get version(){return Ene()}}class _ne extends Ane{constructor(){super("`useConfig` must be used within `WagmiProvider`.",{docsPath:"/api/WagmiProvider"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiProviderNotFoundError"})}}function Ys(t={}){const e=t.config??Le.useContext(pI);if(!e)throw new _ne;return e}var X1={exports:{}},J1={},ew={exports:{}},tw={};/** + * @license React + * use-sync-external-store-shim.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var o8;function Cne(){if(o8)return tw;o8=1;var t=gd();function e(g,m){return g===m&&(g!==0||1/g===1/m)||g!==g&&m!==m}var n=typeof Object.is=="function"?Object.is:e,r=t.useState,i=t.useEffect,s=t.useLayoutEffect,c=t.useDebugValue;function u(g,m){var y=m(),A=r({inst:{value:y,getSnapshot:m}}),E=A[0].inst,x=A[1];return s(function(){E.value=y,E.getSnapshot=m,f(E)&&x({inst:E})},[g,y,m]),i(function(){return f(E)&&x({inst:E}),g(function(){f(E)&&x({inst:E})})},[g]),c(y),y}function f(g){var m=g.getSnapshot;g=g.value;try{var y=m();return!n(g,y)}catch{return!0}}function d(g,m){return m()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:u;return tw.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:p,tw}var c8;function Sne(){return c8||(c8=1,ew.exports=Cne()),ew.exports}/** + * @license React + * use-sync-external-store-shim/with-selector.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var u8;function Tne(){if(u8)return J1;u8=1;var t=gd(),e=Sne();function n(d,p){return d===p&&(d!==0||1/d===1/p)||d!==d&&p!==p}var r=typeof Object.is=="function"?Object.is:n,i=e.useSyncExternalStore,s=t.useRef,c=t.useEffect,u=t.useMemo,f=t.useDebugValue;return J1.useSyncExternalStoreWithSelector=function(d,p,g,m,y){var A=s(null);if(A.current===null){var E={hasValue:!1,value:null};A.current=E}else E=A.current;A=u(function(){function O(R){if(!I){if(I=!0,M=R,R=m(R),y!==void 0&&E.hasValue){var z=E.value;if(y(z,R))return $=z}return $=R}if(z=$,r(M,R))return z;var G=m(R);return y!==void 0&&y(z,G)?(M=R,z):(M=R,$=G)}var I=!1,M,$,D=g===void 0?null:g;return[function(){return O(p())},D===null?void 0:function(){return O(D())}]},[p,g,m,y]);var x=i(d,A[0],A[1]);return c(function(){E.hasValue=!0,E.value=x},[x]),f(x),x},J1}var l8;function xne(){return l8||(l8=1,X1.exports=Tne()),X1.exports}var Nne=xne();const nw=t=>typeof t=="object"&&!Array.isArray(t);function Ine(t,e,n=e,r=tp){const i=Le.useRef([]),s=Nne.useSyncExternalStoreWithSelector(t,e,n,c=>c,(c,u)=>{if(nw(c)&&nw(u)&&i.current.length){for(const f of i.current)if(!r(c[f],u[f]))return!1;return!0}return r(c,u)});return Le.useMemo(()=>{if(nw(s)){const c={...s};let u={};for(const[f,d]of Object.entries(c))u={...u,[f]:{configurable:!1,enumerable:!0,get:()=>(i.current.includes(f)||i.current.push(f),d)}};return Object.defineProperties(c,u),c}return s},[s])}function One(t={}){const e=Ys(t);return Ine(n=>lI(e,{onChange:n}),()=>ep(e))}var Id=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},hu=typeof window>"u"||"Deno"in globalThis;function $i(){}function Rne(t,e){return typeof t=="function"?t(e):t}function yE(t){return typeof t=="number"&&t>=0&&t!==1/0}function gI(t,e){return Math.max(t+(e||0)-Date.now(),0)}function Fl(t,e){return typeof t=="function"?t(e):t}function cs(t,e){return typeof t=="function"?t(e):t}function d8(t,e){const{type:n="all",exact:r,fetchStatus:i,predicate:s,queryKey:c,stale:u}=t;if(c){if(r){if(e.queryHash!==z2(c,e.options))return!1}else if(!np(e.queryKey,c))return!1}if(n!=="all"){const f=e.isActive();if(n==="active"&&!f||n==="inactive"&&f)return!1}return!(typeof u=="boolean"&&e.isStale()!==u||i&&i!==e.state.fetchStatus||s&&!s(e))}function f8(t,e){const{exact:n,status:r,predicate:i,mutationKey:s}=t;if(s){if(!e.options.mutationKey)return!1;if(n){if(pu(e.options.mutationKey)!==pu(s))return!1}else if(!np(e.options.mutationKey,s))return!1}return!(r&&e.state.status!==r||i&&!i(e))}function z2(t,e){return((e==null?void 0:e.queryKeyHashFn)||pu)(t)}function pu(t){return JSON.stringify(t,(e,n)=>vE(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function np(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?!Object.keys(e).some(n=>!np(t[n],e[n])):!1}function q2(t,e){if(t===e)return t;const n=h8(t)&&h8(e);if(n||vE(t)&&vE(e)){const r=n?t:Object.keys(t),i=r.length,s=n?e:Object.keys(e),c=s.length,u=n?[]:{};let f=0;for(let d=0;d{setTimeout(e,t)})}function wE(t,e,n){return typeof n.structuralSharing=="function"?n.structuralSharing(t,e):n.structuralSharing!==!1?q2(t,e):e}function Pne(t,e,n=0){const r=[...t,e];return n&&r.length>n?r.slice(1):r}function Mne(t,e,n=0){const r=[e,...t];return n&&r.length>n?r.slice(0,-1):r}var H2=Symbol();function mI(t,e){return!t.queryFn&&(e!=null&&e.initialPromise)?()=>e.initialPromise:!t.queryFn||t.queryFn===H2?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}var Lc,So,zl,R8,kne=(R8=class extends Id{constructor(){super();Ue(this,Lc);Ue(this,So);Ue(this,zl);Ee(this,zl,e=>{if(!hu&&window.addEventListener){const n=()=>e();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){W(this,So)||this.setEventListener(W(this,zl))}onUnsubscribe(){var e;this.hasListeners()||((e=W(this,So))==null||e.call(this),Ee(this,So,void 0))}setEventListener(e){var n;Ee(this,zl,e),(n=W(this,So))==null||n.call(this),Ee(this,So,e(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(e){W(this,Lc)!==e&&(Ee(this,Lc,e),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(n=>{n(e)})}isFocused(){var e;return typeof W(this,Lc)=="boolean"?W(this,Lc):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},Lc=new WeakMap,So=new WeakMap,zl=new WeakMap,R8),G2=new kne,ql,To,Hl,D8,Une=(D8=class extends Id{constructor(){super();Ue(this,ql,!0);Ue(this,To);Ue(this,Hl);Ee(this,Hl,e=>{if(!hu&&window.addEventListener){const n=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){W(this,To)||this.setEventListener(W(this,Hl))}onUnsubscribe(){var e;this.hasListeners()||((e=W(this,To))==null||e.call(this),Ee(this,To,void 0))}setEventListener(e){var n;Ee(this,Hl,e),(n=W(this,To))==null||n.call(this),Ee(this,To,e(this.setOnline.bind(this)))}setOnline(e){W(this,ql)!==e&&(Ee(this,ql,e),this.listeners.forEach(r=>{r(e)}))}isOnline(){return W(this,ql)}},ql=new WeakMap,To=new WeakMap,Hl=new WeakMap,D8),wm=new Une;function EE(){let t,e;const n=new Promise((i,s)=>{t=i,e=s});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),t(i)},n.reject=i=>{r({status:"rejected",reason:i}),e(i)},n}function Bne(t){return Math.min(1e3*2**t,3e4)}function bI(t){return(t??"online")==="online"?wm.isOnline():!0}var yI=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function rw(t){return t instanceof yI}function vI(t){let e=!1,n=0,r=!1,i;const s=EE(),c=E=>{var x;r||(m(new yI(E)),(x=t.abort)==null||x.call(t))},u=()=>{e=!0},f=()=>{e=!1},d=()=>G2.isFocused()&&(t.networkMode==="always"||wm.isOnline())&&t.canRun(),p=()=>bI(t.networkMode)&&t.canRun(),g=E=>{var x;r||(r=!0,(x=t.onSuccess)==null||x.call(t,E),i==null||i(),s.resolve(E))},m=E=>{var x;r||(r=!0,(x=t.onError)==null||x.call(t,E),i==null||i(),s.reject(E))},y=()=>new Promise(E=>{var x;i=O=>{(r||d())&&E(O)},(x=t.onPause)==null||x.call(t)}).then(()=>{var E;i=void 0,r||(E=t.onContinue)==null||E.call(t)}),A=()=>{if(r)return;let E;const x=n===0?t.initialPromise:void 0;try{E=x??t.fn()}catch(O){E=Promise.reject(O)}Promise.resolve(E).then(g).catch(O=>{var R;if(r)return;const I=t.retry??(hu?0:3),M=t.retryDelay??Bne,$=typeof M=="function"?M(n,O):M,D=I===!0||typeof I=="number"&&nd()?void 0:y()).then(()=>{e?m(O):A()})})};return{promise:s,cancel:c,continue:()=>(i==null||i(),s),cancelRetry:u,continueRetry:f,canStart:p,start:()=>(p()?A():y().then(A),s)}}function Lne(){let t=[],e=0,n=u=>{u()},r=u=>{u()},i=u=>setTimeout(u,0);const s=u=>{e?t.push(u):i(()=>{n(u)})},c=()=>{const u=t;t=[],u.length&&i(()=>{r(()=>{u.forEach(f=>{n(f)})})})};return{batch:u=>{let f;e++;try{f=u()}finally{e--,e||c()}return f},batchCalls:u=>(...f)=>{s(()=>{u(...f)})},schedule:s,setNotifyFunction:u=>{n=u},setBatchNotifyFunction:u=>{r=u},setScheduler:u=>{i=u}}}var er=Lne(),$c,P8,wI=(P8=class{constructor(){Ue(this,$c)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),yE(this.gcTime)&&Ee(this,$c,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(hu?1/0:5*60*1e3))}clearGcTimeout(){W(this,$c)&&(clearTimeout(W(this,$c)),Ee(this,$c,void 0))}},$c=new WeakMap,P8),Gl,Vl,Bi,Fc,Nr,op,jc,ss,Ta,M8,$ne=(M8=class extends wI{constructor(e){super();Ue(this,ss);Ue(this,Gl);Ue(this,Vl);Ue(this,Bi);Ue(this,Fc);Ue(this,Nr);Ue(this,op);Ue(this,jc);Ee(this,jc,!1),Ee(this,op,e.defaultOptions),this.setOptions(e.options),this.observers=[],Ee(this,Fc,e.client),Ee(this,Bi,W(this,Fc).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,Ee(this,Gl,Fne(this.options)),this.state=e.state??W(this,Gl),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return(e=W(this,Nr))==null?void 0:e.promise}setOptions(e){this.options={...W(this,op),...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&W(this,Bi).remove(this)}setData(e,n){const r=wE(this.state.data,e,this.options);return Ye(this,ss,Ta).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(e,n){Ye(this,ss,Ta).call(this,{type:"setState",state:e,setStateOptions:n})}cancel(e){var r,i;const n=(r=W(this,Nr))==null?void 0:r.promise;return(i=W(this,Nr))==null||i.cancel(e),n?n.then($i).catch($i):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(W(this,Gl))}isActive(){return this.observers.some(e=>cs(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===H2||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(e=0){return this.state.isInvalidated||this.state.data===void 0||!gI(this.state.dataUpdatedAt,e)}onFocus(){var n;const e=this.observers.find(r=>r.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(n=W(this,Nr))==null||n.continue()}onOnline(){var n;const e=this.observers.find(r=>r.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(n=W(this,Nr))==null||n.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),W(this,Bi).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(n=>n!==e),this.observers.length||(W(this,Nr)&&(W(this,jc)?W(this,Nr).cancel({revert:!0}):W(this,Nr).cancelRetry()),this.scheduleGc()),W(this,Bi).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ye(this,ss,Ta).call(this,{type:"invalidate"})}fetch(e,n){var f,d,p;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(W(this,Nr))return W(this,Nr).continueRetry(),W(this,Nr).promise}if(e&&this.setOptions(e),!this.options.queryFn){const g=this.observers.find(m=>m.options.queryFn);g&&this.setOptions(g.options)}const r=new AbortController,i=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>(Ee(this,jc,!0),r.signal)})},s=()=>{const g=mI(this.options,n),m={client:W(this,Fc),queryKey:this.queryKey,meta:this.meta};return i(m),Ee(this,jc,!1),this.options.persister?this.options.persister(g,m,this):g(m)},c={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:W(this,Fc),state:this.state,fetchFn:s};i(c),(f=this.options.behavior)==null||f.onFetch(c,this),Ee(this,Vl,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=c.fetchOptions)==null?void 0:d.meta))&&Ye(this,ss,Ta).call(this,{type:"fetch",meta:(p=c.fetchOptions)==null?void 0:p.meta});const u=g=>{var m,y,A,E;rw(g)&&g.silent||Ye(this,ss,Ta).call(this,{type:"error",error:g}),rw(g)||((y=(m=W(this,Bi).config).onError)==null||y.call(m,g,this),(E=(A=W(this,Bi).config).onSettled)==null||E.call(A,this.state.data,g,this)),this.scheduleGc()};return Ee(this,Nr,vI({initialPromise:n==null?void 0:n.initialPromise,fn:c.fetchFn,abort:r.abort.bind(r),onSuccess:g=>{var m,y,A,E;if(g===void 0){u(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(g)}catch(x){u(x);return}(y=(m=W(this,Bi).config).onSuccess)==null||y.call(m,g,this),(E=(A=W(this,Bi).config).onSettled)==null||E.call(A,g,this.state.error,this),this.scheduleGc()},onError:u,onFail:(g,m)=>{Ye(this,ss,Ta).call(this,{type:"failed",failureCount:g,error:m})},onPause:()=>{Ye(this,ss,Ta).call(this,{type:"pause"})},onContinue:()=>{Ye(this,ss,Ta).call(this,{type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0})),W(this,Nr).start()}},Gl=new WeakMap,Vl=new WeakMap,Bi=new WeakMap,Fc=new WeakMap,Nr=new WeakMap,op=new WeakMap,jc=new WeakMap,ss=new WeakSet,Ta=function(e){const n=r=>{switch(e.type){case"failed":return{...r,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...EI(r.data,this.options),fetchMeta:e.meta??null};case"success":return{...r,data:e.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=e.error;return rw(i)&&i.revert&&W(this,Vl)?{...W(this,Vl),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...e.state}}};this.state=n(this.state),er.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),W(this,Bi).notify({query:this,type:"updated",action:e})})},M8);function EI(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:bI(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function Fne(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,n=e!==void 0,r=n?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var ks,k8,jne=(k8=class extends Id{constructor(e={}){super();Ue(this,ks);this.config=e,Ee(this,ks,new Map)}build(e,n,r){const i=n.queryKey,s=n.queryHash??z2(i,n);let c=this.get(s);return c||(c=new $ne({client:e,queryKey:i,queryHash:s,options:e.defaultQueryOptions(n),state:r,defaultOptions:e.getQueryDefaults(i)}),this.add(c)),c}add(e){W(this,ks).has(e.queryHash)||(W(this,ks).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const n=W(this,ks).get(e.queryHash);n&&(e.destroy(),n===e&&W(this,ks).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){er.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return W(this,ks).get(e)}getAll(){return[...W(this,ks).values()]}find(e){const n={exact:!0,...e};return this.getAll().find(r=>d8(n,r))}findAll(e={}){const n=this.getAll();return Object.keys(e).length>0?n.filter(r=>d8(e,r)):n}notify(e){er.batch(()=>{this.listeners.forEach(n=>{n(e)})})}onFocus(){er.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){er.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},ks=new WeakMap,k8),Us,Br,zc,Bs,vo,U8,zne=(U8=class extends wI{constructor(e){super();Ue(this,Bs);Ue(this,Us);Ue(this,Br);Ue(this,zc);this.mutationId=e.mutationId,Ee(this,Br,e.mutationCache),Ee(this,Us,[]),this.state=e.state||AI(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){W(this,Us).includes(e)||(W(this,Us).push(e),this.clearGcTimeout(),W(this,Br).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){Ee(this,Us,W(this,Us).filter(n=>n!==e)),this.scheduleGc(),W(this,Br).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){W(this,Us).length||(this.state.status==="pending"?this.scheduleGc():W(this,Br).remove(this))}continue(){var e;return((e=W(this,zc))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var i,s,c,u,f,d,p,g,m,y,A,E,x,O,I,M,$,D,R,z;Ee(this,zc,vI({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(G,j)=>{Ye(this,Bs,vo).call(this,{type:"failed",failureCount:G,error:j})},onPause:()=>{Ye(this,Bs,vo).call(this,{type:"pause"})},onContinue:()=>{Ye(this,Bs,vo).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>W(this,Br).canRun(this)}));const n=this.state.status==="pending",r=!W(this,zc).canStart();try{if(!n){Ye(this,Bs,vo).call(this,{type:"pending",variables:e,isPaused:r}),await((s=(i=W(this,Br).config).onMutate)==null?void 0:s.call(i,e,this));const j=await((u=(c=this.options).onMutate)==null?void 0:u.call(c,e));j!==this.state.context&&Ye(this,Bs,vo).call(this,{type:"pending",context:j,variables:e,isPaused:r})}const G=await W(this,zc).start();return await((d=(f=W(this,Br).config).onSuccess)==null?void 0:d.call(f,G,e,this.state.context,this)),await((g=(p=this.options).onSuccess)==null?void 0:g.call(p,G,e,this.state.context)),await((y=(m=W(this,Br).config).onSettled)==null?void 0:y.call(m,G,null,this.state.variables,this.state.context,this)),await((E=(A=this.options).onSettled)==null?void 0:E.call(A,G,null,e,this.state.context)),Ye(this,Bs,vo).call(this,{type:"success",data:G}),G}catch(G){try{throw await((O=(x=W(this,Br).config).onError)==null?void 0:O.call(x,G,e,this.state.context,this)),await((M=(I=this.options).onError)==null?void 0:M.call(I,G,e,this.state.context)),await((D=($=W(this,Br).config).onSettled)==null?void 0:D.call($,void 0,G,this.state.variables,this.state.context,this)),await((z=(R=this.options).onSettled)==null?void 0:z.call(R,void 0,G,e,this.state.context)),G}finally{Ye(this,Bs,vo).call(this,{type:"error",error:G})}}finally{W(this,Br).runNext(this)}}},Us=new WeakMap,Br=new WeakMap,zc=new WeakMap,Bs=new WeakSet,vo=function(e){const n=r=>{switch(e.type){case"failed":return{...r,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...r,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:e.error,failureCount:r.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=n(this.state),er.batch(()=>{W(this,Us).forEach(r=>{r.onMutationUpdate(e)}),W(this,Br).notify({mutation:this,type:"updated",action:e})})},U8);function AI(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var xa,as,cp,B8,qne=(B8=class extends Id{constructor(e={}){super();Ue(this,xa);Ue(this,as);Ue(this,cp);this.config=e,Ee(this,xa,new Set),Ee(this,as,new Map),Ee(this,cp,0)}build(e,n,r){const i=new zne({mutationCache:this,mutationId:++W0(this,cp)._,options:e.defaultMutationOptions(n),state:r});return this.add(i),i}add(e){W(this,xa).add(e);const n=Ag(e);if(typeof n=="string"){const r=W(this,as).get(n);r?r.push(e):W(this,as).set(n,[e])}this.notify({type:"added",mutation:e})}remove(e){if(W(this,xa).delete(e)){const n=Ag(e);if(typeof n=="string"){const r=W(this,as).get(n);if(r)if(r.length>1){const i=r.indexOf(e);i!==-1&&r.splice(i,1)}else r[0]===e&&W(this,as).delete(n)}}this.notify({type:"removed",mutation:e})}canRun(e){const n=Ag(e);if(typeof n=="string"){const r=W(this,as).get(n),i=r==null?void 0:r.find(s=>s.state.status==="pending");return!i||i===e}else return!0}runNext(e){var r;const n=Ag(e);if(typeof n=="string"){const i=(r=W(this,as).get(n))==null?void 0:r.find(s=>s!==e&&s.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){er.batch(()=>{W(this,xa).forEach(e=>{this.notify({type:"removed",mutation:e})}),W(this,xa).clear(),W(this,as).clear()})}getAll(){return Array.from(W(this,xa))}find(e){const n={exact:!0,...e};return this.getAll().find(r=>f8(n,r))}findAll(e={}){return this.getAll().filter(n=>f8(e,n))}notify(e){er.batch(()=>{this.listeners.forEach(n=>{n(e)})})}resumePausedMutations(){const e=this.getAll().filter(n=>n.state.isPaused);return er.batch(()=>Promise.all(e.map(n=>n.continue().catch($i))))}},xa=new WeakMap,as=new WeakMap,cp=new WeakMap,B8);function Ag(t){var e;return(e=t.options.scope)==null?void 0:e.id}function g8(t){return{onFetch:(e,n)=>{var p,g,m,y,A;const r=e.options,i=(m=(g=(p=e.fetchOptions)==null?void 0:p.meta)==null?void 0:g.fetchMore)==null?void 0:m.direction,s=((y=e.state.data)==null?void 0:y.pages)||[],c=((A=e.state.data)==null?void 0:A.pageParams)||[];let u={pages:[],pageParams:[]},f=0;const d=async()=>{let E=!1;const x=M=>{Object.defineProperty(M,"signal",{enumerable:!0,get:()=>(e.signal.aborted?E=!0:e.signal.addEventListener("abort",()=>{E=!0}),e.signal)})},O=mI(e.options,e.fetchOptions),I=async(M,$,D)=>{if(E)return Promise.reject();if($==null&&M.pages.length)return Promise.resolve(M);const R={client:e.client,queryKey:e.queryKey,pageParam:$,direction:D?"backward":"forward",meta:e.options.meta};x(R);const z=await O(R),{maxPages:G}=e.options,j=D?Mne:Pne;return{pages:j(M.pages,z,G),pageParams:j(M.pageParams,$,G)}};if(i&&s.length){const M=i==="backward",$=M?Hne:m8,D={pages:s,pageParams:c},R=$(r,D);u=await I(D,R,M)}else{const M=t??s.length;do{const $=f===0?c[0]??r.initialPageParam:m8(r,u);if(f>0&&$==null)break;u=await I(u,$),f++}while(f{var E,x;return(x=(E=e.options).persister)==null?void 0:x.call(E,d,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},n)}:e.fetchFn=d}}}function m8(t,{pages:e,pageParams:n}){const r=e.length-1;return e.length>0?t.getNextPageParam(e[r],e,n[r],n):void 0}function Hne(t,{pages:e,pageParams:n}){var r;return e.length>0?(r=t.getPreviousPageParam)==null?void 0:r.call(t,e[0],e,n[0],n):void 0}var Un,xo,No,Kl,Wl,Io,Ql,Yl,L8,Gne=(L8=class{constructor(t={}){Ue(this,Un);Ue(this,xo);Ue(this,No);Ue(this,Kl);Ue(this,Wl);Ue(this,Io);Ue(this,Ql);Ue(this,Yl);Ee(this,Un,t.queryCache||new jne),Ee(this,xo,t.mutationCache||new qne),Ee(this,No,t.defaultOptions||{}),Ee(this,Kl,new Map),Ee(this,Wl,new Map),Ee(this,Io,0)}mount(){W0(this,Io)._++,W(this,Io)===1&&(Ee(this,Ql,G2.subscribe(async t=>{t&&(await this.resumePausedMutations(),W(this,Un).onFocus())})),Ee(this,Yl,wm.subscribe(async t=>{t&&(await this.resumePausedMutations(),W(this,Un).onOnline())})))}unmount(){var t,e;W0(this,Io)._--,W(this,Io)===0&&((t=W(this,Ql))==null||t.call(this),Ee(this,Ql,void 0),(e=W(this,Yl))==null||e.call(this),Ee(this,Yl,void 0))}isFetching(t){return W(this,Un).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return W(this,xo).findAll({...t,status:"pending"}).length}getQueryData(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=W(this,Un).get(e.queryHash))==null?void 0:n.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),n=W(this,Un).build(this,e),r=n.state.data;return r===void 0?this.fetchQuery(t):(t.revalidateIfStale&&n.isStaleByTime(Fl(e.staleTime,n))&&this.prefetchQuery(e),Promise.resolve(r))}getQueriesData(t){return W(this,Un).findAll(t).map(({queryKey:e,state:n})=>{const r=n.data;return[e,r]})}setQueryData(t,e,n){const r=this.defaultQueryOptions({queryKey:t}),i=W(this,Un).get(r.queryHash),s=i==null?void 0:i.state.data,c=Rne(e,s);if(c!==void 0)return W(this,Un).build(this,r).setData(c,{...n,manual:!0})}setQueriesData(t,e,n){return er.batch(()=>W(this,Un).findAll(t).map(({queryKey:r})=>[r,this.setQueryData(r,e,n)]))}getQueryState(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=W(this,Un).get(e.queryHash))==null?void 0:n.state}removeQueries(t){const e=W(this,Un);er.batch(()=>{e.findAll(t).forEach(n=>{e.remove(n)})})}resetQueries(t,e){const n=W(this,Un);return er.batch(()=>(n.findAll(t).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const n={revert:!0,...e},r=er.batch(()=>W(this,Un).findAll(t).map(i=>i.cancel(n)));return Promise.all(r).then($i).catch($i)}invalidateQueries(t,e={}){return er.batch(()=>(W(this,Un).findAll(t).forEach(n=>{n.invalidate()}),(t==null?void 0:t.refetchType)==="none"?Promise.resolve():this.refetchQueries({...t,type:(t==null?void 0:t.refetchType)??(t==null?void 0:t.type)??"active"},e)))}refetchQueries(t,e={}){const n={...e,cancelRefetch:e.cancelRefetch??!0},r=er.batch(()=>W(this,Un).findAll(t).filter(i=>!i.isDisabled()).map(i=>{let s=i.fetch(void 0,n);return n.throwOnError||(s=s.catch($i)),i.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then($i)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const n=W(this,Un).build(this,e);return n.isStaleByTime(Fl(e.staleTime,n))?n.fetch(e):Promise.resolve(n.state.data)}prefetchQuery(t){return this.fetchQuery(t).then($i).catch($i)}fetchInfiniteQuery(t){return t.behavior=g8(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then($i).catch($i)}ensureInfiniteQueryData(t){return t.behavior=g8(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return wm.isOnline()?W(this,xo).resumePausedMutations():Promise.resolve()}getQueryCache(){return W(this,Un)}getMutationCache(){return W(this,xo)}getDefaultOptions(){return W(this,No)}setDefaultOptions(t){Ee(this,No,t)}setQueryDefaults(t,e){W(this,Kl).set(pu(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...W(this,Kl).values()],n={};return e.forEach(r=>{np(t,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(t,e){W(this,Wl).set(pu(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...W(this,Wl).values()],n={};return e.forEach(r=>{np(t,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(t){if(t._defaulted)return t;const e={...W(this,No).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=z2(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===H2&&(e.enabled=!1),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...W(this,No).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){W(this,Un).clear(),W(this,xo).clear()}},Un=new WeakMap,xo=new WeakMap,No=new WeakMap,Kl=new WeakMap,Wl=new WeakMap,Io=new WeakMap,Ql=new WeakMap,Yl=new WeakMap,L8),Xr,pt,up,Lr,qc,Zl,Oo,Ls,lp,Xl,Jl,Hc,Gc,Ro,ed,Mt,sh,AE,_E,CE,SE,TE,xE,NE,_I,$8,Vne=($8=class extends Id{constructor(e,n){super();Ue(this,Mt);Ue(this,Xr);Ue(this,pt);Ue(this,up);Ue(this,Lr);Ue(this,qc);Ue(this,Zl);Ue(this,Oo);Ue(this,Ls);Ue(this,lp);Ue(this,Xl);Ue(this,Jl);Ue(this,Hc);Ue(this,Gc);Ue(this,Ro);Ue(this,ed,new Set);this.options=n,Ee(this,Xr,e),Ee(this,Ls,null),Ee(this,Oo,EE()),this.options.experimental_prefetchInRender||W(this,Oo).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(W(this,pt).addObserver(this),b8(W(this,pt),this.options)?Ye(this,Mt,sh).call(this):this.updateResult(),Ye(this,Mt,SE).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return IE(W(this,pt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return IE(W(this,pt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Ye(this,Mt,TE).call(this),Ye(this,Mt,xE).call(this),W(this,pt).removeObserver(this)}setOptions(e){const n=this.options,r=W(this,pt);if(this.options=W(this,Xr).defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof cs(this.options.enabled,W(this,pt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Ye(this,Mt,NE).call(this),W(this,pt).setOptions(this.options),n._defaulted&&!vm(this.options,n)&&W(this,Xr).getQueryCache().notify({type:"observerOptionsUpdated",query:W(this,pt),observer:this});const i=this.hasListeners();i&&y8(W(this,pt),r,this.options,n)&&Ye(this,Mt,sh).call(this),this.updateResult(),i&&(W(this,pt)!==r||cs(this.options.enabled,W(this,pt))!==cs(n.enabled,W(this,pt))||Fl(this.options.staleTime,W(this,pt))!==Fl(n.staleTime,W(this,pt)))&&Ye(this,Mt,AE).call(this);const s=Ye(this,Mt,_E).call(this);i&&(W(this,pt)!==r||cs(this.options.enabled,W(this,pt))!==cs(n.enabled,W(this,pt))||s!==W(this,Ro))&&Ye(this,Mt,CE).call(this,s)}getOptimisticResult(e){const n=W(this,Xr).getQueryCache().build(W(this,Xr),e),r=this.createResult(n,e);return Wne(this,r)&&(Ee(this,Lr,r),Ee(this,Zl,this.options),Ee(this,qc,W(this,pt).state)),r}getCurrentResult(){return W(this,Lr)}trackResult(e,n){const r={};return Object.keys(e).forEach(i=>{Object.defineProperty(r,i,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(i),n==null||n(i),e[i])})}),r}trackProp(e){W(this,ed).add(e)}getCurrentQuery(){return W(this,pt)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const n=W(this,Xr).defaultQueryOptions(e),r=W(this,Xr).getQueryCache().build(W(this,Xr),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(e){return Ye(this,Mt,sh).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),W(this,Lr)))}createResult(e,n){var G;const r=W(this,pt),i=this.options,s=W(this,Lr),c=W(this,qc),u=W(this,Zl),d=e!==r?e.state:W(this,up),{state:p}=e;let g={...p},m=!1,y;if(n._optimisticResults){const j=this.hasListeners(),V=!j&&b8(e,n),L=j&&y8(e,r,n,i);(V||L)&&(g={...g,...EI(p.data,e.options)}),n._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:A,errorUpdatedAt:E,status:x}=g;if(n.select&&g.data!==void 0)if(s&&g.data===(c==null?void 0:c.data)&&n.select===W(this,lp))y=W(this,Xl);else try{Ee(this,lp,n.select),y=n.select(g.data),y=wE(s==null?void 0:s.data,y,n),Ee(this,Xl,y),Ee(this,Ls,null)}catch(j){Ee(this,Ls,j)}else y=g.data;if(n.placeholderData!==void 0&&y===void 0&&x==="pending"){let j;if(s!=null&&s.isPlaceholderData&&n.placeholderData===(u==null?void 0:u.placeholderData))j=s.data;else if(j=typeof n.placeholderData=="function"?n.placeholderData((G=W(this,Jl))==null?void 0:G.state.data,W(this,Jl)):n.placeholderData,n.select&&j!==void 0)try{j=n.select(j),Ee(this,Ls,null)}catch(V){Ee(this,Ls,V)}j!==void 0&&(x="success",y=wE(s==null?void 0:s.data,j,n),m=!0)}W(this,Ls)&&(A=W(this,Ls),y=W(this,Xl),E=Date.now(),x="error");const O=g.fetchStatus==="fetching",I=x==="pending",M=x==="error",$=I&&O,D=y!==void 0,z={status:x,fetchStatus:g.fetchStatus,isPending:I,isSuccess:x==="success",isError:M,isInitialLoading:$,isLoading:$,data:y,dataUpdatedAt:g.dataUpdatedAt,error:A,errorUpdatedAt:E,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>d.dataUpdateCount||g.errorUpdateCount>d.errorUpdateCount,isFetching:O,isRefetching:O&&!I,isLoadingError:M&&!D,isPaused:g.fetchStatus==="paused",isPlaceholderData:m,isRefetchError:M&&D,isStale:V2(e,n),refetch:this.refetch,promise:W(this,Oo)};if(this.options.experimental_prefetchInRender){const j=v=>{z.status==="error"?v.reject(z.error):z.data!==void 0&&v.resolve(z.data)},V=()=>{const v=Ee(this,Oo,z.promise=EE());j(v)},L=W(this,Oo);switch(L.status){case"pending":e.queryHash===r.queryHash&&j(L);break;case"fulfilled":(z.status==="error"||z.data!==L.value)&&V();break;case"rejected":(z.status!=="error"||z.error!==L.reason)&&V();break}}return z}updateResult(){const e=W(this,Lr),n=this.createResult(W(this,pt),this.options);if(Ee(this,qc,W(this,pt).state),Ee(this,Zl,this.options),W(this,qc).data!==void 0&&Ee(this,Jl,W(this,pt)),vm(n,e))return;Ee(this,Lr,n);const r=()=>{if(!e)return!0;const{notifyOnChangeProps:i}=this.options,s=typeof i=="function"?i():i;if(s==="all"||!s&&!W(this,ed).size)return!0;const c=new Set(s??W(this,ed));return this.options.throwOnError&&c.add("error"),Object.keys(W(this,Lr)).some(u=>{const f=u;return W(this,Lr)[f]!==e[f]&&c.has(f)})};Ye(this,Mt,_I).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Ye(this,Mt,SE).call(this)}},Xr=new WeakMap,pt=new WeakMap,up=new WeakMap,Lr=new WeakMap,qc=new WeakMap,Zl=new WeakMap,Oo=new WeakMap,Ls=new WeakMap,lp=new WeakMap,Xl=new WeakMap,Jl=new WeakMap,Hc=new WeakMap,Gc=new WeakMap,Ro=new WeakMap,ed=new WeakMap,Mt=new WeakSet,sh=function(e){Ye(this,Mt,NE).call(this);let n=W(this,pt).fetch(this.options,e);return e!=null&&e.throwOnError||(n=n.catch($i)),n},AE=function(){Ye(this,Mt,TE).call(this);const e=Fl(this.options.staleTime,W(this,pt));if(hu||W(this,Lr).isStale||!yE(e))return;const r=gI(W(this,Lr).dataUpdatedAt,e)+1;Ee(this,Hc,setTimeout(()=>{W(this,Lr).isStale||this.updateResult()},r))},_E=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(W(this,pt)):this.options.refetchInterval)??!1},CE=function(e){Ye(this,Mt,xE).call(this),Ee(this,Ro,e),!(hu||cs(this.options.enabled,W(this,pt))===!1||!yE(W(this,Ro))||W(this,Ro)===0)&&Ee(this,Gc,setInterval(()=>{(this.options.refetchIntervalInBackground||G2.isFocused())&&Ye(this,Mt,sh).call(this)},W(this,Ro)))},SE=function(){Ye(this,Mt,AE).call(this),Ye(this,Mt,CE).call(this,Ye(this,Mt,_E).call(this))},TE=function(){W(this,Hc)&&(clearTimeout(W(this,Hc)),Ee(this,Hc,void 0))},xE=function(){W(this,Gc)&&(clearInterval(W(this,Gc)),Ee(this,Gc,void 0))},NE=function(){const e=W(this,Xr).getQueryCache().build(W(this,Xr),this.options);if(e===W(this,pt))return;const n=W(this,pt);Ee(this,pt,e),Ee(this,up,e.state),this.hasListeners()&&(n==null||n.removeObserver(this),e.addObserver(this))},_I=function(e){er.batch(()=>{e.listeners&&this.listeners.forEach(n=>{n(W(this,Lr))}),W(this,Xr).getQueryCache().notify({query:W(this,pt),type:"observerResultsUpdated"})})},$8);function Kne(t,e){return cs(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&e.retryOnMount===!1)}function b8(t,e){return Kne(t,e)||t.state.data!==void 0&&IE(t,e,e.refetchOnMount)}function IE(t,e,n){if(cs(e.enabled,t)!==!1){const r=typeof n=="function"?n(t):n;return r==="always"||r!==!1&&V2(t,e)}return!1}function y8(t,e,n,r){return(t!==e||cs(r.enabled,t)===!1)&&(!n.suspense||t.state.status!=="error")&&V2(t,n)}function V2(t,e){return cs(e.enabled,t)!==!1&&t.isStaleByTime(Fl(e.staleTime,t))}function Wne(t,e){return!vm(t.getCurrentResult(),e)}var Do,Po,Jr,Na,Ma,$g,OE,F8,Qne=(F8=class extends Id{constructor(n,r){super();Ue(this,Ma);Ue(this,Do);Ue(this,Po);Ue(this,Jr);Ue(this,Na);Ee(this,Do,n),this.setOptions(r),this.bindMethods(),Ye(this,Ma,$g).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var i;const r=this.options;this.options=W(this,Do).defaultMutationOptions(n),vm(this.options,r)||W(this,Do).getMutationCache().notify({type:"observerOptionsUpdated",mutation:W(this,Jr),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&pu(r.mutationKey)!==pu(this.options.mutationKey)?this.reset():((i=W(this,Jr))==null?void 0:i.state.status)==="pending"&&W(this,Jr).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=W(this,Jr))==null||n.removeObserver(this)}onMutationUpdate(n){Ye(this,Ma,$g).call(this),Ye(this,Ma,OE).call(this,n)}getCurrentResult(){return W(this,Po)}reset(){var n;(n=W(this,Jr))==null||n.removeObserver(this),Ee(this,Jr,void 0),Ye(this,Ma,$g).call(this),Ye(this,Ma,OE).call(this)}mutate(n,r){var i;return Ee(this,Na,r),(i=W(this,Jr))==null||i.removeObserver(this),Ee(this,Jr,W(this,Do).getMutationCache().build(W(this,Do),this.options)),W(this,Jr).addObserver(this),W(this,Jr).execute(n)}},Do=new WeakMap,Po=new WeakMap,Jr=new WeakMap,Na=new WeakMap,Ma=new WeakSet,$g=function(){var r;const n=((r=W(this,Jr))==null?void 0:r.state)??AI();Ee(this,Po,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},OE=function(n){er.batch(()=>{var r,i,s,c,u,f,d,p;if(W(this,Na)&&this.hasListeners()){const g=W(this,Po).variables,m=W(this,Po).context;(n==null?void 0:n.type)==="success"?((i=(r=W(this,Na)).onSuccess)==null||i.call(r,n.data,g,m),(c=(s=W(this,Na)).onSettled)==null||c.call(s,n.data,null,g,m)):(n==null?void 0:n.type)==="error"&&((f=(u=W(this,Na)).onError)==null||f.call(u,n.error,g,m),(p=(d=W(this,Na)).onSettled)==null||p.call(d,void 0,n.error,g,m))}this.listeners.forEach(g=>{g(W(this,Po))})})},F8);function Yne(t,e){return q2(t,e)}function Zne(t){return JSON.stringify(t,(e,n)=>Xne(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):typeof n=="bigint"?n.toString():n)}function Xne(t){if(!v8(t))return!1;const e=t.constructor;if(typeof e>"u")return!0;const n=e.prototype;return!(!v8(n)||!n.hasOwnProperty("isPrototypeOf"))}function v8(t){return Object.prototype.toString.call(t)==="[object Object]"}function Mp(t){const{_defaulted:e,behavior:n,gcTime:r,initialData:i,initialDataUpdatedAt:s,maxPages:c,meta:u,networkMode:f,queryFn:d,queryHash:p,queryKey:g,queryKeyHashFn:m,retry:y,retryDelay:A,structuralSharing:E,getPreviousPageParam:x,getNextPageParam:O,initialPageParam:I,_optimisticResults:M,enabled:$,notifyOnChangeProps:D,placeholderData:R,refetchInterval:z,refetchIntervalInBackground:G,refetchOnMount:j,refetchOnReconnect:V,refetchOnWindowFocus:L,retryOnMount:v,select:C,staleTime:N,suspense:T,throwOnError:S,config:k,connector:F,query:P,...w}=t;return w}function Jne(t,e={}){return{async queryFn({queryKey:n}){const{connector:r}=e,{account:i,scopeKey:s,...c}=n[1];if(!i&&!r)throw new Error("account or connector is required");return rI(t,{account:i,connector:r,...c})},queryKey:ere(e)}}function ere(t={}){const{connector:e,...n}=t;return["estimateGas",Mp(n)]}function tre(t,e={}){return{async queryFn({queryKey:n}){const{address:r,scopeKey:i,...s}=n[1];if(!r)throw new Error("address is required");return await aI(t,{...s,address:r})??null},queryKey:nre(e)}}function nre(t={}){return["balance",Mp(t)]}function rre(t,e={}){return{gcTime:0,async queryFn({queryKey:n}){const{connector:r}=e,{connectorUid:i,scopeKey:s,...c}=n[1];return Pp(t,{...c,connector:r})},queryKey:ire(e)}}function ire(t={}){const{connector:e,...n}=t;return["connectorClient",{...Mp(n),connectorUid:e==null?void 0:e.uid}]}function sre(t,e={}){return{async queryFn({queryKey:n}){const r=e.abi;if(!r)throw new Error("abi is required");const{functionName:i,scopeKey:s,...c}=n[1],u=(()=>{const f=n[1];if(f.address)return{address:f.address};if(f.code)return{code:f.code};throw new Error("address or code is required")})();if(!i)throw new Error("functionName is required");return sI(t,{abi:r,functionName:i,args:c.args,...u,...c})},queryKey:are(e)}}function are(t={}){const{abi:e,...n}=t;return["readContract",Mp(n)]}function ore(t){return{mutationFn(e){return cI(t,e)},mutationKey:["sendTransaction"]}}function cre(t){return{mutationFn(e){return uI(t,e)},mutationKey:["signMessage"]}}function ure(t,e={}){return{async queryFn({queryKey:n}){const{hash:r,...i}=n[1];if(!r)throw new Error("hash is required");return dI(t,{...i,onReplaced:e.onReplaced,hash:r})},queryKey:lre(e)}}function lre(t={}){const{onReplaced:e,...n}=t;return["waitForTransactionReceipt",Mp(n)]}function dre(t){return{mutationFn(e){return fI(t,e)},mutationKey:["writeContract"]}}var CI=Le.createContext(void 0),K2=t=>{const e=Le.useContext(CI);if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},fre=({client:t,children:e})=>(Le.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),De.jsx(CI.Provider,{value:t,children:e})),SI=Le.createContext(!1),hre=()=>Le.useContext(SI);SI.Provider;function pre(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var gre=Le.createContext(pre()),mre=()=>Le.useContext(gre);function TI(t,e){return typeof t=="function"?t(...e):!!t}function RE(){}var bre=(t,e)=>{(t.suspense||t.throwOnError||t.experimental_prefetchInRender)&&(e.isReset()||(t.retryOnMount=!1))},yre=t=>{Le.useEffect(()=>{t.clearReset()},[t])},vre=({result:t,errorResetBoundary:e,throwOnError:n,query:r,suspense:i})=>t.isError&&!e.isReset()&&!t.isFetching&&r&&(i&&t.data===void 0||TI(n,[t.error,r])),wre=t=>{const e=t.staleTime;t.suspense&&(t.staleTime=typeof e=="function"?(...n)=>Math.max(e(...n),1e3):Math.max(e??1e3,1e3),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3)))},Ere=(t,e)=>t.isLoading&&t.isFetching&&!e,Are=(t,e)=>(t==null?void 0:t.suspense)&&e.isPending,w8=(t,e,n)=>e.fetchOptimistic(t).catch(()=>{n.clearReset()});function _re(t,e,n){var g,m,y,A,E;const r=K2(),i=hre(),s=mre(),c=r.defaultQueryOptions(t);(m=(g=r.getDefaultOptions().queries)==null?void 0:g._experimental_beforeQuery)==null||m.call(g,c),c._optimisticResults=i?"isRestoring":"optimistic",wre(c),bre(c,s),yre(s);const u=!r.getQueryCache().get(c.queryHash),[f]=Le.useState(()=>new e(r,c)),d=f.getOptimisticResult(c),p=!i&&t.subscribed!==!1;if(Le.useSyncExternalStore(Le.useCallback(x=>{const O=p?f.subscribe(er.batchCalls(x)):RE;return f.updateResult(),O},[f,p]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),Le.useEffect(()=>{f.setOptions(c)},[c,f]),Are(c,d))throw w8(c,f,s);if(vre({result:d,errorResetBoundary:s,throwOnError:c.throwOnError,query:r.getQueryCache().get(c.queryHash),suspense:c.suspense}))throw d.error;if((A=(y=r.getDefaultOptions().queries)==null?void 0:y._experimental_afterQuery)==null||A.call(y,c,d),c.experimental_prefetchInRender&&!hu&&Ere(d,i)){const x=u?w8(c,f,s):(E=r.getQueryCache().get(c.queryHash))==null?void 0:E.promise;x==null||x.catch(RE).finally(()=>{f.updateResult()})}return c.notifyOnChangeProps?d:f.trackResult(d)}function Cre(t,e){return _re(t,Vne)}function W2(t,e){const n=K2(),[r]=Le.useState(()=>new Qne(n,t));Le.useEffect(()=>{r.setOptions(t)},[r,t]);const i=Le.useSyncExternalStore(Le.useCallback(c=>r.subscribe(er.batchCalls(c)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),s=Le.useCallback((c,u)=>{r.mutate(c,u).catch(RE)},[r]);if(i.error&&TI(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:s,mutateAsync:i.mutate}}function kp(t){const e=Cre({...t,queryKeyHashFn:Zne});return e.queryKey=t.queryKey,e}function Up(t={}){const e=Ys(t);return Le.useSyncExternalStore(n=>Wte(e,{onChange:n}),()=>n8(e),()=>n8(e))}function Sre(t={}){const{address:e,query:n={}}=t,r=Ys(t),i=Up({config:r}),s=tre(r,{...t,chainId:t.chainId??i}),c=!!(e&&(n.enabled??!0));return kp({...n,...s,enabled:c})}function Tre(t={}){const{query:e={},...n}=t,r=Ys(n),i=K2(),{address:s,connector:c,status:u}=One({config:r}),f=Up({config:r}),d=t.connector??c,{queryKey:p,...g}=rre(r,{...t,chainId:t.chainId??f,connector:d}),m=!!((u==="connected"||u==="reconnecting"&&(d!=null&&d.getProvider))&&(e.enabled??!0)),y=Le.useRef(s);return Le.useEffect(()=>{const A=y.current;!s&&A?(i.removeQueries({queryKey:p}),y.current=void 0):s!==A&&(i.invalidateQueries({queryKey:p}),y.current=s)},[s,i]),kp({...e,...g,queryKey:p,enabled:m,staleTime:Number.POSITIVE_INFINITY})}function xre(t={}){const{connector:e,query:n={}}=t,r=Ys(t),{data:i}=Tre({config:r,connector:e,query:{enabled:t.account===void 0}}),s=t.account??(i==null?void 0:i.account),c=Up({config:r}),u=Jne(r,{...t,account:s,chainId:t.chainId??c,connector:e}),f=!!((s||e)&&(n.enabled??!0));return kp({...n,...u,enabled:f})}function Nre(t={}){const{abi:e,address:n,functionName:r,query:i={}}=t,s=t.code,c=Ys(t),u=Up({config:c}),f=sre(c,{...t,chainId:t.chainId??u}),d=!!((n||s)&&e&&r&&(i.enabled??!0));return kp({...i,...f,enabled:d,structuralSharing:i.structuralSharing??Yne})}function Ire(t={}){const{mutation:e}=t,n=Ys(t),r=ore(n),{mutate:i,mutateAsync:s,...c}=W2({...e,...r});return{...c,sendTransaction:i,sendTransactionAsync:s}}function Ore(t={}){const{mutation:e}=t,n=Ys(t),r=cre(n),{mutate:i,mutateAsync:s,...c}=W2({...e,...r});return{...c,signMessage:i,signMessageAsync:s}}function Rre(t={}){const{hash:e,query:n={}}=t,r=Ys(t),i=Up({config:r}),s=ure(r,{...t,chainId:t.chainId??i}),c=!!(e&&(n.enabled??!0));return kp({...n,...s,enabled:c})}function Dre(t={}){const{mutation:e}=t,n=Ys(t),r=dre(n),{mutate:i,mutateAsync:s,...c}=W2({...e,...r});return{...c,writeContract:i,writeContractAsync:s}}var Pre="AEkU4AngDVgB0QKRAQYBOwDqATEAnwDbAIUApABsAOAAbwCRAEYAiQBPAHYAPgA+ACsANwAlAGMAHwAvACsAJQAWAC8AGwAiACIALwAUACsAEQAiAAsAGwARABcAGAA6ACkALAAsADUAFgAsABEAHQAhAA8AGwAdABUAFgAZAA0ADQAXABAAGQAUABIEqgYJAR4UFjfDBdMAsQCuPwFnAKUBA10jAK5/Ly8vLwE/pwUJ6/0HPwbkMQVXBVgAPSs5APa2EQbIwQuUCkEDyJ4zAsUKLwKOoQKG2D+Ob4kCxcsCg/IBH98JAPKtAUECLY0KP48A4wDiChUAF9S5yAwLPZ0EG3cA/QI5GL0P6wkGKekFBIFnDRsHLQCrAGmR76WcfwBbBpMjBukAGwA7DJMAWxVbqfu75wzbIM8IuykDsRQ7APcta6MAoX0YABcEJdcWAR0AuRnNBPoJIEw3CZcJiB4bVllM44NCABMADAAVAA5rVAAhAA4AR+4V2D3zOVjKleYuChAdX01YPewAEwAMABUADmsgXECXAMPrABsAOQzFABsVW6n7Adq4HB0FWwXiAtCfAsSwCkwcpGUUcxptTPUAuw1nAuEACy00iRfJkQKBewETGwC9DWcC4QALLQFIUCWRTAoDLfsFMgnXaRetAddDAEkrEncCMRYhAusnuTdrADnhAfUlAMcOy7UBG2OBALEFAAUAitNJBRvDHwcXAKgn0QGhKy0DmwBnAQoZPu03dAQYFwCqAccCIQDTKxJzOvNQsAWQOncnNUgF+icFWQVYr7gFaTtdQhI6WEGXe5NmX6H4CxMDxQcl8XcjBKNLAlNTAnUbqycBj6OlNVsDRRcEg2EJANEGqz8vIwcpAjldAGsBYR9xAIMdGQCVAUm3ACdpFwGvxQM3LSFDUwFvWQZlAmUA8UkXAykBBQBJQQCrAF0AcwArtQYH8+8ZjX8ACSEAKQCzG0cB0QHbBwsxl3iB6AAKABEANAA9ADgzd3nTwBBfEFwBTQlMbDoVCwKsD6YL5REVDNEqy9PYADSpB+sDUwfrA1MDUwfrB+sDUwfrA1MDUwNTA1McCvAa08AQXw9IBG0FjgWLBNYIgyZJEYEHKAjSVA10HhxHA0UA/CMlSRw7kzMLJUJMDE0DB/w2QmynfTgDRzGrVPWQogPLMk85bAEecRKgACoPcxw1tU5+ekdxoApLT661f0liTmcCvjqoP/gKIQmTb7t3TgY9EBcnoRDzDC8BsQE3DelL1ATtBjcExR95GRUPyZWYCKEt2QzpJt8unYBWI/EqfwXpS/A82QtJUWQPVQthCd86X4FKAx0BCSKHCtkNNQhpEO8KxWcN4RFBBzUD0UmWAKEG/QsNHTEVsSYMYqgLBTlzBvca8guLJqsTJXr4Bc8aHQZJASUa+wDLLuOFrFotXBhPWwX/CyEjwxSkUBwNIUCzeEQaFwcRJaUCjUNsSoNRMh6PIfI8OQ1iLg9ReAfxPAEZSwt9PJpGp0UKEc4+iT1EIkVMKAQxeywrJ4cJyw+BDLV8bgFVCR0JrQxtEy0REzfBCDUHFSmXICcRCB1GkWCWBPObA+8TzQMHBTsJPQcPA7EcKRMqFSUFCYEg0wLvNtEurwKLVnwBEwXHDyEf2xBMR9wO5QiXAmEDfyXnACkVHQATIpcIP18AW4/UUwEuxwjDamgjcANjFONdEW8HjQ5TB6McLxW7HN1wxF4HhgQon6sJVwFxCZUBWwTfCAU1V4ycID1nT4tUGJcgXUE7XfgCLQxhFZtEuYd0AocPZxIXATEBbwc1DP0CcxHpEWcQkQjnhgA1sTP0OiEESyF/IA0KIwNLbMoLIyb1DPRlAZ8SXgMINDl36menYLIgF/kHFTLBQVwh7QuOT8kMmBq9GD5UKhngB7sD7xrvJ+ZBUwX7A58POkkz6gS5C2UIhwk7AEUOnxMH0xhmCm2MzAEthwGzlQNTjX8Ca4sGMwcHAGMHgwV14QAZAqMInwABAMsDUwA1AqkHmQAVAIE9ATkDIysBHeECiwOPCC3HAZErAe8lBBe/DBEA8zNuRgLDrQKAZmaeBdlUAooCRTEBSSEEAUpDTQOrbd0A1wBHBg/bQwERp0bHFt8/AdtrJwDDAPcAATEHAT0ByQHvaQCzAVsLLQmer7EBSeUlAH8AEWcB0wKFANkAMQB77QFPAEkFVfUFzwJLRQENLRQnU10BtwMbAS8BCQB1BseJocUDGwRpB88CEBcV3QLvKgexAyLbE8lCwQK92lEAMhIKNAq1CrQfX/NcLwItbj1MAAofpD7DP0oFTTtPO1Q7TztUO087VDtPO1Q7TztUA5O73rveCmhfQWHnDKIN0ETEOkUT12BNYC4TxC2zFL0VyiVSGTkauCcBJeBVBQ8ALc9mLAgoNHEXuAA7KWSDPWOCHiwKRxzjU41U9C0XAK1LnjOrDagbEUQ8BUN16WImFgoKHgJkfQJiPldJq1c3HAKh8wJolAJmBQKfgDgXBwJmNwJmIgRqBHsDfw8Dfo45AjlzEzl+Oh8fAmwZAjIyOAYCbcMCbarrhi9jQScBYwDaAN0ARgEHlAyJAPoHvgAJsQJ3KwJ2njsCeUc/Ani2GVjXRapG0wJ8OwJ6xAJ9BQJ87AVVBRxH/Eh5XyAAJxFJVEpXERNKyALQ/QLQyEsjA4hLA4fiRMGRLgLynVz/AwOqS8pMKSHLTUhNqwKLOwKK1L0XAxk/YwGzAo4zAo5YPJN9Ao7VAo5YdFGwUzEGUtBUgQKT9wKTCADlABhVGlWrVcwCLBcpkYIy3XhiRTc1ApebAu+uWB2kAFUhApaLApZ4mAClWahaBX1JADcClrEClkpcQFzNApnHAplgXMZdAxUCnJc5vjqZApwSAp+XAp60hgAZCy0mCwKd7QKejgCxOWEwYesCns8CoGoBpQKemxsCnkqhY8RkIyEnAierAiZ6AqD3AqBIAqLZAqHAAqYrAqXKAqf7AHkCp+5oeGit/0VqGGrNAqzfAqyqAq1jAqz+AlcZAlXYArHd0wMfSmyTArK5CQKy5BNs3G1fbURbAyXJArZYNztujAMpQQK4WgK5QxECuSZzcDJw3QK9FQK71nCSAzINAr6Ecf4DM20CvhZzHnNLAsPHAsMAc350RzFBdNwDPKMDPJYDPbsCxXgCxkMCxgyFAshlTQLIQALJSwLJKgJkmQLdznh1XXiqeSFLzAMYn2b+AmHwGe+VIHsHXo5etw0Cz2cCz2grR0/O7w+bAMKpAs9vASXmA04OfkcBAtwjAtuGAtJLA1JYA1NbAP0DVYiAhTvHEulcQYIYgs+CyoOJAtrDAtnahAyERac4A4ahACsDZAqGbVX1AFEC32EC3rRvcwLiK+0QAfMsIwH0lwHyzoMC6+8C6Wx1Aur1AurgAPVDAbUC7oUC65iWppb/Au47A4XcmHVw3HGdAvL/AGUDjhKZjwL3DwORagOSgwL3lAL51QL4YpoYmqe3M5saA51/Av72ARcANZ8Yn68DBYkDpmYDptUAzcEDBmahhKIBBQMMRQELARsHaQZdtWMBALcEZ7sNhx6vCQATcTUAHwMvEkkDhXsBXyMdAIzrAB0A5p8Dm40IswYbn8EApwURu+kdPT4WeAVoNz5AK0IhQrRfcRFfvACWxQUyAJBMGZu5OyZgMhG6zw4vGMYYicn2BVcFWAVXBVgFYwVYBVcFWAVXBVgFVwVYBVcFWEYVCNeFZwICAgpkXukrBMkDsQYvu7sAuwSnuwDnQCkWsgVGPmk+cEI/QrZfdTdf6ABYETOrAIz+zGvL/KbnRno9JiMEKxYnNjV+bd9qwfEZwixpAWvXbjAXBV8FasnBybgIz0lbAAAACnxefYu+ADM/gQADFtEG5a0jBQCMwwsDAQ0A5WUdPSQfSkKxQrxBOCNfJ2A2JzgjCcE9CkQ/Qz54PoE+cD5xAolCvElCO1/LTk9qTQosa1QvagtuH1/gMzobCWebCmIjKzwdJkKrQrwrzAHL/F/JDh8uCQgJIn6d32o6LUoXyavJrAllwcvMCmBBXw/lEKMRAJONHUVCJRupbTnOOAozP0M+cEI/HAcKHUxHbFssLVrhvBIKfe0dK0I/HF0ISgkOM1RDQjcEO0OcLAqBGy1CPxv1CFMiIxgwMQAFj2HwXgpxZMlgC2AtI25DYBk5AhseYLMGAmsQZU5gTREBZOdgFWCVYH1gs2BLYJFoFhcGtQ7cVam8WgtDFqsBuyvNwQIfFQAcAx4BeQJsLzCVUoABigq4RxoA5CN0jgrKDaZN6gGbAoecTwVAXwD39wkANBZXDAulDCQfuq9HAE8MNAAVE58rggh6AtILS2URGwDYTgZ1BAoeWgAxALa4AZonCxZvqyQ4nxkBWwGGCfwD2e0PBqoGSga5AB3LValaCbthE4kLLT8OuwG7ASICR1ooKCggHh8hLBImBiEMjQBUAm5XkEmVAW4fD3FHAdN1D85RIBmpsE3qBxEFTF8A9/cKAHoGJGwKKwulODAtx69WDQsAX7wLAGNAlQh6AOpN7yIbvwAxALa4AZonLTsOzgKQGHtQu1jIdHKO16WbDvWZFT0b7AEpEFwSBg8bAccJOhCTBRArDDYLABEAs84BAgCkAOEAmIIABWtXLwAUAFsbxi5sdioNwRACOyQz0+EcHgsbfQJ7Ls6hHATBCqrxbAA3OS0Opge7CQAQOi7OERkAfavaHA+7GkcczaF3HgE9Kl8cAuugCAHCAULz5B9lAb4Jtwz6CDwKPgAFwAs9AksNuwi8DTwKvC7OoSoJPA67BZgBG2sKD4sa4QHDARELuxY7AKALOxC7BBige9wAO2sMPAACpgm8BRvQ9QUBvgH6bsoGewAHuwG7D00RErwBAQDqAQAAdBVbBhbLFPxvF7sYOwAuuwLrDlaouwAeuwJVICp/AAG7AALjAAg7FTwVuwAbuwG9KOClWw6/xAD0AGj7L7ZtvgNIo7vIqDsDAbuVJ0sAAlsACrsEAOfdGbsIGnsIoQUK/3AA37unuxjbGruji3lyBvupm4MAErsGGwsBvAAAhgBtuwYAC7unOwEaO7oIoZzKAbsL7QfAqTsA4XsBvwAA5QAVuwAG+wAJuwBpiwAauwAOuwIYu45pFfsAAVsADmsALkseAAa7ABe7CCEADUoBwgC3ryYBwAAAtAAOmwG+J+QAsloAHBsBv/7hCqEABcYLFRXbAAebAEK7AQIAabsAC3sAHbsACLsJoQAFygBunxnVAJEIIQAFygABOwAH2wAdmwghAAaaAAl7ABsrAG0bAOa7gAAIWwAUuwkhAAbKAOOLAAk7C6EOxPtfAAc7AG6cQEgARwADOwAJrQM3AAcbABl7Abv/Aab7AAobAAo7AAn7p+sGuwAJGwADCwAQOwAAFDsAEWsAD4sADesADbsAGQsGFhsAFTsAbpsWswG7ALoAEzsDAGkrCgDhSwACOwAEUgAXewUbAAbQABi7AAv7AF+7AGv7AOSLAbsAF3YBvAABcguhAAVKHgF7KFIAOUUA/gcNDHIAKCpwAaQFCF4BvF4jDAkHb0tsXyqJHzwUYi02A6EKtAHYABYC0QNuAXZyR1IUIQNPAhU+ASwGA3NGvHtSekAAKQAxAfsAUwrbAHuQLAErAHblDREyRgFKAFcFAAFQAQeKzAB4OwQgpQBaANYVAJVoNx+LAM1rsQDP1BYIwnVzGxhWHQnRAYiQqyJTU01IEjzCifkAfxw3QCkr4BGXTwByASksMClCGQ8DMFUE98XuAEtl3ABqAnECPxF6Osd4LjXVBgUAEBsdCggMKgQfHSlOU04IuboAChLNACYAARoAhgCJAI41AO4AtADgAJ08ALsAqwCmAKEA8gCfANMAnADrAQwBBwDAAHkAWgDLAM0BBwDXAOsAiACiATUA4wDYANUDAQcqM9TU1NS2wNzN0M5DMhcBTQFXL0cBVQFkAWMBVgFHS0NFaA0BThUHCAMyNgwHACINJCYpLDg6Oj09PT4/DkAeUVFRUVNTUlMpVFVXVlYcXWFhYGJhI2ZocG9ycnJycnJ0dHR0dHR0dHR0dHZ2d3Z1WwBA7ABFAJYAdAAuAGLyAIoAUwBTADMCc+kAh//y8gBgAI/sAJsASwBeAGD5+aoAgQCBAGUAUgCtAB4AsgB/AjwCPwD4AOMA+gD6AOQA+wDlAOUA5ADiACkCdwFNATwBOgFQAToBOgE6ATUBNAE0ATQBGAFUDwArCAAATRcKFgMVFg4AigCSAKIASwBkGAItAHAAaQCRAxIDJCoDHkE+RykAiwJLAMMCUwKgALoCkgKSApICkgKSApIChwKSApICkgKSApICkgKRApEClAKcApMCkgKSApACkAKQApACjgKRAnEB0AKTApsCkgKSApEWeQsA+gUDpwJdAjYXAVAQNQLeEQorEwFKNxNNkQF3pDwBZVkA/wM9RwEAAJMpHhiPagApYABpAC4AiQOUzIvwroRaBborDsIRAZ3VdCoLBCMxbAEzWmwBsgDdfoB/foB+gYKCfoOGhH6FiIaAh4KIgol+in6LfoyKjX6Ofo+CkH6RfpJ+k36Ug5WIloKXftoC2WzhAtdsAIJsJGygAINsbARCBD8EQQREBEIESARFBEAERgRIBEcEQwRFBEgAlmZsAKMDh2wAtGYBBWwAyVFsbADPbAIMbAD2WmwA9gEZAPYA9AD0APUA9AN8XmzUhCNlvwD2APQA9AD1APQcbGwAiVpsAPYAiQEZAPYAiQLsAPYAiQN8XmzUhCNlvxxsAPdabAEZAPYA9gD0APQA9QD0APcA9AD0APUA9AN8XmzUhCNlvxxsbACJWmwBGQD2AIkA9gCJAuwA9gCJA3xebNSEI2W/HGwCQwE2bAJKATlsAkvBbGwCV2xsA54C7AOeA54DnwOfA58DnwN8XmzUhCNlvxxsbACJWmwBGQOeAIkDngCJAuwDngCJA3xebNSEI2W/HGwEN2wAiQQ4AIkGjTFtIC9s1m4DJmwA/QDGWgJsbABVWv4UMgJsbACJAmwAVAEAuV5sAmxebGwAiV5sAmxebD3YAEls1gJsbEZFNiJ9FGVAe8xvEZKvxVfKZszAVTBzYBH2d1iyUXEHH7twNw7eZF5JJRHI5EgaRr5D20/3dfONrFLSq5qSrrgd2CEUq722WBQ/LzpA+bx1oREI5xy4BDSZNun0ZWORUJqInZSyMaioyvfSI0l5uFDzbWaQ28/zdB0hwR4OQZ0/jn9ALSLNikjFYGfqR389qtFlhD3a6KdIh97rhZYpywuLc7o8ql5/X8KCbPU3L/QlmCowhRXhsGDvg6wUNprA9bM/49uxlAj7ZVy3ouEY/BgFXBNyK0TLrSjZWeJm/T4nz6QGLT3cJNtWRZVZTvIdtaxMMJRHgig9+S11LjBh7Inr06ykoch1U097Rw0hvgmOrydQyaWcEQDg0RavuMuT0zYabUZl1e33HNSK1oNUCS03eh+9C2EvF3fq9h+XBaAMFuoWeZf+mfZgL4HzyiKDIUtfNU4oFu0aE9qt3VA3U4D3fOSrAcYVnjG3cSkp1vhXZnp3JQm4JknKdBitO2NVnGCYQwU3YMWHWB87NEd+4AHuOKI8BSIH92reW0pfs+kWCTJxDCbRjFv8Cfc4/DSBYJScJYTeAEgg9wTEvcwd/QuHRHqGzAQ4fXf5FUI1lPrO+fvEcPl4JInM1z9AtBT2bL4QYEREe7KiSnnxTwtmAFjn8lqT3mND8qTktX2F16Ae9cakqJ6/pEQsHURqyqWlRMCzKXRKfCHT7sYHWx9/T/ugYTFY6iVN3Btm58ATJR5alYZybKMWojwOw3HbFn23NFyeLl7+Er82RchyYuBoGQ3j7SAWNxiYvp5U+Fq/DEzB9cG5DlJWsqkosRze92OVlCtQEYo1S1lF72Z8xWc4ld/+fFcfTEDTFb9d8tJGQ75dpJEvcWyGmGBiTbiWDdGOcw93Dmxq5ISUrmasygONfHLvhgo83HQZenbdBtSzBkvYrCEQ/xEDMhMZsN6gqplx5jGG9mSQLhM81UEdEeJ59sdNJDAFy/gPyJoKlwPZgB/MkC/kICLiCB8va+nCdO2ry4aDfkmPFpF/H/SGQ3LJ6aAv9dtJ8DniHtLOckZix0BVb0iR5V3LAp521LBSIi6AtV7r2ZB/hQEvAw54EFNOQcFnl1xGUIc67tqK1INNwD2n/RbwgzO9h45LM6VMuN8V1ZNIQ6t+Xy3lTqyVCD5kqLy/t3/b8MLbgDg8JIWDkSZ+LrGhhr+gYpH+pr1TnCUnZPjpUdw6bSL6MWVXoDDciQDWECwU2e6VEpfrcOBbrSOijqGkEIoJPbpmeJLkcwbvA0yWIixQVjo0HnYh7fji+Dfdq1mtV1lG2Zz9R7eFMHS+FK7nybutu2fwzDpFldO2pZBshsHJWaltn3PWOoGJpCT2jE8EHOuC6FkejNWcfsWCqNqMLP9xTwcWArj2EiiI7D+EaDi7/2cqHL1gPiF6C/J7aUo7RQqogPZ11WqbyP97nsoMxPOC78wZMF7B1Y0g7JNXJV/nN1m4xx8hbqWz07KSaqr5hE4icB326DMR/vUKX9LoNjle/ZWtbUhrTAcsdgrLlG5Ne8aiR0bS/2ZhpNOVVxavWIZsEM/rd68EB4vjbbD13NkMK1qvMk74vGbSkL7ULO0sZ9R6APSCo6KH+Xn98wEdw1bCPAnDTaBsD6sidAGN58uiH4a3ovG1KyZAu2XtyGgF/vgWKGxw9R1lfAVcfuYE71DHuxtTzfGZnHaDpDGWmfEq0N4GawE7yIkaoz8jcmVmzJe1ydM8q0p08YIxFcY1YcqQc1djWBEoNETDFcgk5waRftEJasPREkrV++N/TOKkERF1fCLrXS8DFGYGRBeECMQRNEs0ES3FzUtXCcNxpYEM3Uei6XodZruXUIRnn+UXf2b/r7n1vQutoi6WoIbW7svDNWBbUWcDUc7F9SJK3bvSy9KIqhgyJHoW2Kpvv0J4ob14HFXGWWVsYXJzjwxS+SADShTgCRjhoDgjAYRGxwJ1Vonw+cpnCKhz8NQPrb0SFxHIRbmG95Q2hlC4mDxvPBRbkFa60cvWakd7f0kVBxxktzZ9agPJEWyA63RSHYVqt8cPrs2uFJ3rS3k9ETGKn5+A6F9IOrdZHfT1biEyUJKEvwzuscwshGCBJvd16TrefW03xVnJf4xvs72PdxrMidjJO8EiWyN/VWyB3fv9kc34YIuZTFtXGo9DuG3H1Uka5FgBMwDPEvRcSabi3WakNQkXFecJlFk6buLVk5YHpuKWTw6oF632FPPSVIVl5hgUAeHhj0t/sw/PEEvThLQDDFE34eCg/rLOyXT3r+L98oRKrlTO0MdALYQ3rRQqC7d822dJPGxF1K4J2TtfPSMFaCAg0n0NGk9yiaKKOJD1v2aBX9HUOIawjjfvwCmjHZJTR62R9c9x33JnBjWrN4QYEOmehy0oZMP9XM9Zyi6TYoe07PaLceRXcCWZiY/imRUWW6+mci7+wMxSdwMdbXckXtvhJH8sc4iQcTwm7yp+3f7CaesTTQB2qkgeXh+wFiSMXfMlH7Yil0OoZ2QTtRLTip2O0cLZ4SstqWHZ6H+8A2kZXhpm0kPbL9dUanTOvziqIUh6Ambwa3WrCb2eWbuCN3L1hgWUmjRC3JoL3dBhR3imSQI8xuCMfsszlji7cSShNSYdqCXPxEVwbqO9i5B6hf93YI7aeyI8jxgcVXK0I/klbvhSXjkjOIwZgPdVwmsFW7HGPLUAvDRuKm+itybRg7c8+Yqqjg824Qf+/NxsBSUNAK9KCoJpauFqK0XQULrWYj4FnxeKDuvr54iokpi+D57e6Y1zxRJJdsHnDR3JyraCUufHBRTKODWBVzthjm4k3/Hv+Q990XDVR+KW+TcJX045LW86EKhz/97aqj89A8ZvTk1//tczosU90loIPVaHuWegJU3wP//7XHcO7c0yQM2jM/IhQKrf8hiObHWiWDZManF8Uf/HzbmDfC2wT//aiZ4hGTv/xzgKwdb1sD6cGEkceow0s3b89/zg+3plyRm0HlZi886j5wUwFhdHiDTaBidZRo5cx/tMeLyguOATbzq17ydhzbrpxunuHx6lbFGiO97gsd4dk//7iCIo+Ew+hG2so5kvv+ITG4c1fzHPtu1Xn5QfUnqY3/uByVmB7gmnE/E+5zdm+6nDmoews5fr+NzThdSHzK4bBQOL9c4O8OI0xLSqjJ4lbniLJg1aFpQRLwaSMZmpkC9e/j6FOVrTQ6a/a4alGgfrl2ZL1sbHUQ3DOI7ntq9diHFfm3t1mul3rdJEJCHnlW/hlQntipMrpeMs7fUr6wK370D7VbXH0DUHzdYfRg/6Z11Ult1sffJS+heHbco15Sxy3+rDnPesqH1lajk0yu02hPUvEUqvcUXWXL7Ad0wNGMx5gOle4XJxq/r/YY0xdco2wRSEGwcT7YADlBrHc9ZbvzOL0QwyWCWWChB9Obg800v7tyBWaNvdwz+fL7Ph9i2irEeJkRgOzeEDw+JiD/V93vH9FgMEoFIJMoIuogmicZohf94SBuPn6hXaV9jP4VVVA/bu+Wg8S88GLtmEPSNRLdtlXx2XL/nuM8nKkhnlnjaropiKKLIH94pLIASci0pDBfj9Hi5BfaTSXQg5+PMjQX91Ktk4MOqK1K99l4BRPv5+vNovGZ3IxQv8ICvjV4/diThpoaM8uvd3D9d/DE477w3yAbW3IDm2i73pZ9aEj38JqS6h/s8/xgmUIVcuq2JTgefAyuoafzQxAuRASeg3NtG3ach/JEkyuX+JDt2PnDZTShUhyHHG3ttBg/6lhAchGjLJBtopj4e01MlCp2yqQRTr4sBBXru+lKaoanwYX8y2aWCJiR3KnhCOkYVFSvsO0oDRujUFOEptiNDTYrJoUbvOyvl4AhC9h3wORiTXK1MrpMfnvdnndnR/HRVSusMBgIxwrLdn3vq1VcncPiD0SquTx/kNmxeFyCT4uXVUd9AL+rSGmuq7OOCzDKeVPjiNWVaoP5KOFqYq5Xcuf/xW9S+u9eIq9GAtZWtQlgkRecjRtvG1NR4WXXpn+pwsTBTIy079Ikg8rSef1aVapIFcXCd6C2wHVjLXR+N0tw4Taw6x6H90BFRgNrtlq2up6hHKuV3inM5RJaQWZHd84e6RsKkk9po3dk9by54tpPw7cBkFas/G+GbHwuG+AwP55BZyXILTHCIVrPpXHEaUPYfL6nphJP1Rc10xG4UaCeY4IHCwuur8xmSQDgY4aVwhzWhjbtSHG8JO6P2i2nC9/0Bfx0zk6dYQq3aw7k5vIObD7SEKrxhz0fQ0+YTOfHW23CBNeZci1qNsUDhoeqmfyP6PvjoEjHk8QbrFyQVZPHVWijnb8YCM65iYNoEbvnchStZ/9cKg5Vd45j8KnB6UjzXl/bkyZx7VoD47ocUUi117WwgySSb4rXgLJ52Mv5XJbp3I+uBP81BUvOjy4Cacgi+GWWlC/8dwgqwiojjUBDnEOxyRyowwLQfytFra1OZS4XvRYr4uoamAfG3I/p2bA7G90yqKThH8Ke00Tqd+3l3dmJpaCZelBMYjGqNLVa3SM4+LQeL56gY6Bymy2LQPVOxjWfj5tq4o74swcxhyGJPynkS5xAjOXZP1/FAYcBT3u6qLoIkEfErwo4gozmyI1YCvM0oyI3ghjGPQSsof2sKUhq91WsKy9cYWN+4A2v4pG/Mxpdc6w6kI/HX7Xb0TuihmsiOy2wQIsrZbUmr3OBSUo6oDJNgQp+YqYkgTgYcWZDgawJw3DFfdzT//PhVUidgB2qa8uw/j9ToHBAS33iT8YLhhAfyXG0bQUFp7QmH7oQ3i6Flf4OTZLvJdh8pfuflmWu2ohm5pTiSg1pl3vq9uluTJwqXfh1hqy8e2iHoD+Y35gCIViTo6VOtK5dD8HYClucJucXASzwe2kPj4S4eYQtmkYHagXhAzp/F541xE8YFYqSPszDuz3soWzHy0p3E2jwZNQaIcGU9FNQwQxeDw0ZlK9dxXrj9IUHGUPTOyib8CqXmbZ7Ex54bn1rLx3qqAavu/gh6XjV0GmN1p+yyMK9HN5uYEvxgbAk43tsheREhyI+Q5WLIneKTGPmYiM/lxOp8fvqHy8YgXK0TlMiX0tliLI2JtfmWZP8eVV732sdYm+pcWzDzEmKLJZyeelyaZKkjPnnUO9keDwtgiLnmd5+t+Sr5y8brRnlvxcWEWfCqIALQYHvaXx6jTg4dAlye469uGwwOZVZCILLfGjaMg4LUCNMTtMSp1aC2y/3wR2t1v3w/iNBRQ+bNbtDqL2NAr7K4rUcyqbSpNrXZgAWXvjxBBtfYLK1uRYt3q2pfXJOAL0HtWcEwJLddOSJKV1SwvcvEuzg/4MPnA8MIUJOLqm3qI6wFyN99Ck6zYaV/zGSAzF/PGsaNa4vPLe5QnyuqVUnVQ6xELA6gbe53aGgeke+R/ycb2LJVyc7BhuzI90zA+c6wUDTb7NH//gdDSl2u/aW7lRJm8m1fLtPxcNuEM5JbkOCZKPM88HUsLRoC1pmKKlvWyeAXuxILbu0snpSxf8N+RgtLUSe5n2gdjOjoSTaN7mMZ7bF+cWk/MS8mFD4pcyl5UN7CbpFZH2a+Pm1VAnUTVfbw8qrmz1G9m5aKmRzY1SMhhPrlCn2t4uNUXNA3IFe6NOjSC1DEaAFZAfDlEkQCsbNhsZPj6NQPDSB3tLiTo0ZYoEbIeEIaKtU3Wk60rEszawTFuyHVd365LA/c/uarABN5M5rGq/dqTG3Ilye/5EKiYisisuzqNaZjmWv0z9TORc0CKbaTea214oNM9u2sXUZub/eqM3Pi/PjRSyQiOSwPWif2asTgu6hS6fb5UGosCWxdedMqdViIUUSSdIJx+qQ4KShfTT39VAWZbi+mB+iKICNwpt6cflY57Rcbs6d1kA26Iru73cuxYVlSvuJdcR5VfDYZRk8X0AXePROyw3Le6LaUdmTLzYsoNhhgQpd67xVNiHgk3pakmndeIAtTC4DCXy9oS6eU4CWxDdVmY53pKNbdAKmQsP37lrJZC6iDXMELGKcHjNuuZgcDyY8W/yv6ha3DX7OWm/35fpvhw55oitf4V+GULlcPWYyGGuVBdro19c8u0RDddDun40W7G5cSIzHLh/qZxb59R+EPY+wZ2XerkUim92hhXpKyW6WtAh6zQS97DrPyjCvKi3pCw96LeKynOpyjtsMQc2RmI/20zFOZcSa2AK++PoRcT6zeJyxlBZ7kk5mhqXGkLlM2hFKc+/T544xXP0Ua38Q6xdPTLTeG1PHnLMaOvksUQMrEFTB/lizCirmFQL8zYVU+OTeYQEFaITsBSMMYexS9HkajO2gGIf2micvntCZJsZQEwIH3/4JGJQGflBuH5rNXmnRRYXDQs3ZoEQoMtYDr1kFKUS/siiQSUxcTH9XYeBZiKDDFQoExREO9dddKQLO3BwMHvymCSTFyY+vxn3D27NDx6OlU092D5EDUwilttqVHpjJQDUceJYCLsK2swfXeNUVrBJT/w/sk+7si8rPtiMFis+oxvGdGQxirMBID700T39mULuNHzOyN+xBfcFACZcyngF1aSpv0JPkNUrAZTqfplv509cGXFUiEEm5dZb+OsP/blizqdK45/dSsIrufYTrCPY2lgJD6k6QljTfXVlHfYKSq+MsagyUcaMintyr95bD8kdTAeYNLNsMmo/Wdd8a2nStBP49ARIjqqpUHWY4q4mvO5Cq/CgCP+4/B+5zutGwX5pssgVLr1+fIM7WWLfiUQDk4c6ZdHZOWv5hG3g2dgQ5NXnpIY+BWwJpaouf25bXnjDzbHnQNofH/c6m+dEAS9Gs2h7pFRPKOBDnqswZ8KZjhId1ytHUTs533KwBoSiImoxKQUgZ7z6pA9QB3sZ8Cq0vwutJTTkfbX8AzCpm2cFXx/P22niUMHauU8IGc+78R6TsutoonoqFuoNA3l80t387YHMoL5KGAT1JO4zmx+vJ0LbLHlicHraSVYvJjnO9p++qnWgKw9OwFVVUagvZuf9qfiuum+hIicxP1q4zDnzkHsCNriLxBpxY9N+UOmqzdY1MunLMDgkMyi3uvnN3UBXJeZ8YLs5xr8QrOhimYoKuGBebZHAiBIkViv3DG8k2oNpp5OIgX6ulqaRN8V62QUPjn5tl1kPXhT9bcd8qIm8gi4or/FGbvQ6pgGSHmnayrugmf5E0upGxPRf/3xOtitGMaHLKJVm5zhglmVfI91o0yxhJZVS/5wQ8zfxK8Ylw0WmHXoGfRkoBRx9Hsnl/6sgTjAVwpmNuSeZtBwlX4qB8Bh8lxjqBDIuFGJ4I1wxN0XRlAAslzqMKwQfyA7OkuivCXfv+i+3XmhcBFM2n4jdT+NyUmBnQJPV3F2sZfKvJhUlXzSosFR4VevVVcOkFnnjdiRWc0TeSYxj41sJGYMbZTeLI3GvyZ8/gAAudQ1+4oFX+enX5V49MczGCYVBuoC4kHjp7ZVxj+clBwPr9k+v05SsezQK3enxLs1Nt/N7c7AImVUysjGou4iOohHo83Zs9/MI/OWB+OyXzOBD93NbApGHXrv8CVRHp2bwH+xB55cfNrdqFD35HSMx4iVmtzYAmSCIV8kXsHoq3DIb93riTWbubnjxbBW5zConVtbxLRStXHkIyAByaozME952Gc9aAdAbBpZSVCH88Uwb/4bPTVOVl+WoMYD7JIvK8VcMrJ8zHV4bbG0Dg7Kx17A4ej/ZcZ2Z5pVuVLUH1E/AccUTKm81SE+LQ6STTUDscUk0x2OWIbEORhg69tdoTGNkA1RfkGIRZHr5mCXOpLC55WWzCZoGPFUVtZRHwh0nq039CDdjEPo+JyaxSQAvDgR6Iqvxy0frrtEG1A385N81l05SSzN+IDm9bypF9m92EUqblnauZ5sjc37wRykOdl7w4o8WMgQsjii3EE/aJYDfHs1cH6DNBEujjcCc8qAefYFyIAURDcDnzun5UmkbBQsU4eu/W8I9nBE0qJKTdg2hwjq0+XV7a3TJ7R+alvJZCRia9lJ+grNB9dbrOmWEvUotMjvDhq4wV/kq4fvIBkzUGpDeYH74rne8uU3dgoNZdR9pUL6q9YDNRfOiF6Dyk+SYXQIghTjm9qR4tBHh0gnmF/9q3Qv22EzaLhSvDlDOxMrrCNRmLCl1jApzLrBCPn2mjn5zqK7OYK7VxOfQ5GfBfoPdyQwqFEgCVHkJ9oTnagRM3R0+rsuN5jQv9icCav/p1WqiEXSzCdLd/WEA6z6dDP7tPqPbeDYKAkVcz1lLGbFOC9b7cBd3MV0Ve8dZ89oR7OnxGS7uVpSry8banVZwpJg+nkH1jRBYa2BvBMY2xITH9ERXCjHzdZxs+ipdXP2DY7X+eWiBhtT2L0RRGTLPeazn5tpl4tu8iE2rWig731iuJDRbCHHy+g/Mb9+miAyVqfIpXT/iZeOxOxODO0hEpLM78I1+G2Z45yi3lS1K3m4WMQ559Lp4UML5vZUjYGJuxl+OPpUH5klpyBujkjprhei0TmUik10gjvNUp8mDkWlNKikmYspaVTqewbnOzJrmz8FLIpsT67EJLHIIfeDcWEfiP+DJrZ1jfxpoAb2abeMqLx+9RuZGzQoYtYVGgAWwEM9Kek2vPIeBNAKD6ao7nw6sgvfeLZPoXkbYO/tStHJdKzk+WFSFEU2NcALJAEP6S8pcnqqBBt57dwTrzQNCIdk2SocK4dLRbD/pu/VryKnm65ZYXiJCfHJk3mx9MRSl+nSK6OqEBSoGjz0/LADddwF/HqcfK3K3O+6YUGQcmj8pZL4PhZ6KrGkb8B38FmDvvLd3XQXbvS/FQmrXFTvJNkaN/FGo83KuS43BK1UfVnIqigGkCoP5fBda2MwAGTGNKX9K9t4Bx83pMFc5KSORmWKv+8VoVggWxoaBz3/9IBh6RwLd1tebwy89xvE5z6EEpXpDfrXWfRsMs6+ekUHH6idVosno55+xQ8Zqzelh0bxtJTgCcH3Z3/Cxlx9eNIS4JIFKOAVrDqbrXRszmY55a5+niJGHtkO3b6mnIDxLa1WXc7BAe33mt2KyM4Fbc3R6/WVTQN8QhlqAtave2WsQTqzWeSlKuGUVIJRqtObpv294rS0kDN1RKzdstZTXJebR2HlzsQ4P3NbMHUqFZMZw+/IKXnh4t+lY8qocp/B1oMszR03EFs3bPeND8QkItMvllObeCz3SZAjqZrobmLcrpFyQV7mwBjg3C3C8/bc5goQhv8j/IXMLGnt4mF7tybRDG5G0polxoUScQkPvmnga2/K+aapKeqSL0BTmo1Cm5g+booNOtdyKva2KoefRURaBk7113QKo3y+WTuFKtgETIK8HRluYS9DvlcciCDvnG8UaJRfZE2siZsiTHvRmN80xkUIInHeRZl5Re/+ATL6VhKFi8CZ/n/jbFV6T5pZ+Uoppvsi3qjacVFOJgWWfdlwVHKPW/TJO3na9hRM9bS2yo2rEsC6IBzRReVO6IesJU7PItzOamr+ROFfwGZmZ7ue8HNxAgLJKb7P3p8dMqk6Be5PJaT/5Rdc1deYVihWH9cjVKc9uz5EnfHqxLUkOO8iJUENBNVf5LyNy8zjLu/78k5WNTywiPfYeX3CPk7yc6CI3lum/CEZwfUaNpcI3KsPqfn2lmz3kd/acQjKA1ebkJaiuLD+epQ/Fc1llHXXMzofWzz/Kd29SNmOhcjMWw1jq1g3YfrXZ9rzXDYW4ZttfgfMi6oCUtBs0PkMVuxmq5lxEoCaSXPSqCJJ7MlKdRDidVt0AFlxk5cTdX++sBF2+E35mjwfm8ERVxH0FvuAQtsfA4V2G0TKTUxeyRGVjd/u6F1SvuAiU2/WaQjcNCU4Ep7VunXCYSbZj3U3wzu/LWM5MPlYuyQ3FOOCD/zt7K295hY2JhwF+ODDIZ676vGQFKveEQYkWj7lkK7rVmD7MhU0Y/tF8EcTTpo4/yqOufbd/zWIpMajnbDuWK2vn6OPPtz2rc9MIBNlPd8tt+yf+7SC4wqEPbozKMCwY5Bygx4JmoIEDsixWRDcdHd6S3/dZMHXOJAAv7+NIstl00crgSqHZKAEe4g3G4dzIV51EeZB01r7p8GNlfUnG/GjZgNGsqXZdYMBVtAtFNv3hJWPve4GvqZ2XxuiNkHTz5kxWgr0PjQdJlVywJ9Zf2ZvqeeTbolKtvK54re2Lq5BoyzfsRtvDfyao3kmyFzDQ88nM+qx83w74RDlkngtYiArI05Epre3GgBeSlMig0pE6RGQaFznKkGeb0SozLCyiOtxh7hgwZlbKbClzUUfC8ntMiHUOZE375RhTy9c4DA+oMLkUDkztSybZbdmP1xpaIbjUpPAHBq3cIq+CBFzbMlMMCCkUQ6d9LGV6GYCsYiEWZIy3nBnuxOYXeU4YTGDSin9e4/pCjPtQSHlg5LMEvIlF0ElthqrF129iK2RPBEWd3XWOl3SWV5uz5VUyZYp5kEFmz7QfP/B1W1BBzQ2iTGbSVT79lUHzcGXz3PJceSgz4uknETUwo0xffpr2KUvZF0i/r2sL3IFIClYx8CbIZE6Qt7MDJbOPB3xMScwaOcWG66IJfCnDkb0D2Mb+PHzX+oiCbxeTIogtyN+s2NJirNACk/OACSOTtV6vscwbzW4M168xqaI+RzR47S1nlV/rOoZnid87n/Ima2XYa3un3BuGAisNjb8eLMT9OnMtazQROFCuO1HiZXaOc0oUDbNC4eKLToOx8DzVhMgGA8XIAQ2x3b6I0uEyLssQjJX3QphcUMx4KsMgJ+72km4N2aqkBF2coKmUEt1eqIMGn+5txMT4kYVGd3ALO+y9Z4PP3d3l48JQK8s9ZZ/Qx/+NBKgBEJFlQ32psoJiihGO7FSYM5L81q72kaAYcilEFMG+ZK1BcMqELkflyCV7v8JEXLO4Rf/oZYNZHZVjJhfL6fnpP9Tio3Euue5uS7FMkfGOeRCTrBZ06Caev7tgufeTrX34Ur/Vvc+b8ksiIShNJtuF9WmYxOZ4xg8y6zTdy3KAB2y5kYkcRnXsptWwAFyKZ2I/QGySNeoQLkINUMloC+5L3WuMMx297Q1xUYLKqZ9XHavaobo6QQv4auMm+i84IhxRpPt9nUmcav9NcjCcP+TcMmxsQZ/F3mgeoA0fQgwvTsyXuuTaM3Sqtv2jaaajmaFQpK9W6uIbeqwvSDo34ZrY6elDUHwSCjHRRmlwmyy+eOra64Ssq0XSXYljMHtKY+FShcMkHsEUY/4Bw63dJ6KpwDaxmthlDdbdE+TvYF3v33cGSKqO+1H1pKYhJMvZD5ckQcHyNF8zrtiR5b0ko6NPGoRexUZTYP6VbUdn3zzxGBOi8Z0OqHjGqYxRXwN3mYi0GYEEZYq+Q3QvdKcEHILLLj8S+VFepSfErtmfZCdvxbfIifFSpEzKi+7VJsLMT+zEFeyp1OdwRC1VZrfTLIyR7xTPUcZFYPD9qI7D70uTb4hdpqPXsJIRNYbZtNwch1OI3trh3u2ScoQyM9POnInsUa+OovcwkUP1UfIzPb95n4BaF2ev57NHAej0+BVMF9/Cj9663HN2/JN3SQgslL914bKfiTTDFAz9PlQEL/dSv1H8xl3mtWxh1McFO9EJXlRDaKQDsyKO4vOJW90NFE6yw2tjbc2GeF95sbs0I9enAa6QwQVf/kJQhAD2BzUDKggOyjy1TEhED6sfk+418lQy3c/uj8aw8UEzZ6hIMCd8RohAkumMtIj9m73l2yPWoGHVTPaywkC7Yj9tBM1NxMgcrDwRtk4RO2WHT7Ql5kQCKdJj6kNuOTeyEBYBjLMhGz+O5/YGa84HEiTYEpZ6fFzy26GG2hWtTyteuYrhSyG56BjsT/wQeLRytpTY3D7sIMqZnJ9z1FDrfyjFlGl2TNw9BQysbaxOuwYYZs/7I6BANgkqCknWZC7/BBXvaeKwAmC959I+G39BUE9bExkNlbRoFRyEtNzv+NJ91FuisG3JCS6uYBeRnfv8AkAfKTeg9EYamqnsGfAV7d0f9DghHEQ5IsPGDIUhgoSj7obM4Bu5uhQ3/CYEDTHc92AsFvDK4XGrwUeGBWBHPlS+f4x+CxmmHz2sAGmSFNt65kwZC64mnaoWlu2310laYn8r62AqsR5dfjyK18MEdurdagldzfJtjFXlZs7St4QhdPiye6TPh2/ZAQLU/Fip5s7TDEM16KtRWrK9hmxnQ7bmfa/+7pa10Z8WDPK3NuJ+NN/RAbQ5vHx2uX0Lm7/w7cAEH/hvZA+mt7J7zGw7YtQYwnNN6dpgwkGjjrS3yQoeoYt1EnczmtmJfQZWzUlP3Hlg9Wzlr9IH23q3thGth+QNEANFettxKfskkGOlLk8AqoKJwDqOxAa6UzAx07plSSyNBJSGco9zjnC5gGbDoKvsMDuBR6bGRlGzJ+hFsGa/Izt78aI+WZ6dJlZKp4pGISuv9rV0sAS0MWEwCmfauO7oQZMiakHU35LBxiyJoOMddhUWgcZuC8r4Ksvn75TTcQXLJ7kWtYhGuGqPd9dZuFjBWQHNwosXY5snbHFQq72CvHXhIg+shQxycuLOuWYErwCLZeF24b7F78pO7xw4X6lIAR02hUOf5087Rl0nOaeb6CK4i/KA/EZv76ftOWZtjwxslNr0E/u8rWUmnf3amfg6UZmBAluuoj3Dd7UV+9IAJ6iYcDfSJlgmIImohjfIUMJ27z+opj50Ak9af2LCNrWrBJvMovA1OeNO+MF/MwZvnaCxTgG7Cw4QfSPF6AYCGFt21M8PySZFeV3t2Rqqs5JMzMYzGRgq4o+UaKRgBf9GHi/9X9HXA3wxkCsd/UhnHSh2zUVDiraio/6nP4y3XJqs8ABfALAtCYU7DHPMPRjgcM6Ad/HiSXDAbOdSMkvGZPAkHs8wuQTy6X2Ov/JFvcPuKfV3/r9Q28";const E8=new Map([[8217,"apostrophe"],[8260,"fraction slash"],[12539,"middle dot"]]),A8=4;function Mre(t){let e=0;function n(){return t[e++]<<8|t[e++]}let r=n(),i=1,s=[0,1];for(let D=1;D>--f&1}const g=31,m=2**g,y=m>>>1,A=y>>1,E=m-1;let x=0;for(let D=0;D1;){let V=R+z>>>1;D>>1|p(),G=G<<1^y,j=(j^y)<<1|y|1;I=G,M=1+j-G}let $=r-4;return O.map(D=>{switch(D-$){case 3:return $+65792+(t[u++]<<16|t[u++]<<8|t[u++]);case 2:return $+256+(t[u++]<<8|t[u++]);case 1:return $+t[u++];default:return D-1}})}function kre(t){let e=0;return()=>t[e++]}function xI(t){return kre(Mre(Ure(t)))}function Ure(t){let e=[];[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"].forEach((i,s)=>e[i.charCodeAt(0)]=s);let n=t.length,r=new Uint8Array(6*n>>3);for(let i=0,s=0,c=0,u=0;i=8&&(r[s++]=u>>(c-=8));return r}function Bre(t){return t&1?~t>>1:t>>1}function Lre(t,e){let n=Array(t);for(let r=0,i=0;r{let e=rp(t);if(e.length)return e})}function II(t){let e=[];for(;;){let n=t();if(n==0)break;e.push($re(n,t))}for(;;){let n=t()-1;if(n<0)break;e.push(Fre(n,t))}return e.flat()}function ip(t){let e=[];for(;;){let n=t(e.length);if(!n)break;e.push(n)}return e}function OI(t,e,n){let r=Array(t).fill().map(()=>[]);for(let i=0;ir[c].push(s));return r}function $re(t,e){let n=1+e(),r=e(),i=ip(e);return OI(i.length,1+t,e).flatMap((c,u)=>{let[f,...d]=c;return Array(i[u]).fill().map((p,g)=>{let m=g*r;return[f+g*n,d.map(y=>y+m)]})})}function Fre(t,e){let n=1+e();return OI(n,1+t,e).map(i=>[i[0],i.slice(1)])}function jre(t){let e=[],n=rp(t);return i(r([]),[]),e;function r(s){let c=t(),u=ip(()=>{let f=rp(t).map(d=>n[d]);if(f.length)return r(f)});return{S:c,B:u,Q:s}}function i({S:s,B:c},u,f){if(!(s&4&&f===u[u.length-1])){s&2&&(f=u[u.length-1]),s&1&&e.push(u);for(let d of c)for(let p of d.Q)i(d,[...u,p],f)}}}function zre(t){return t.toString(16).toUpperCase().padStart(2,"0")}function RI(t){return`{${zre(t)}}`}function qre(t){let e=[];for(let n=0,r=t.length;n>24&255}function MI(t){return t&16777215}let DE,_8,PE,Fg;function Zre(){let t=xI(Gre);DE=new Map(NI(t).flatMap((e,n)=>e.map(r=>[r,n+1<<24]))),_8=new Set(rp(t)),PE=new Map,Fg=new Map;for(let[e,n]of II(t)){if(!_8.has(e)&&n.length==2){let[r,i]=n,s=Fg.get(r);s||(s=new Map,Fg.set(r,s)),s.set(i,e)}PE.set(e,n.reverse())}}function kI(t){return t>=sp&&t=Em&&t=Am&&e_m&&e0&&i(_m+d)}else{let c=PE.get(s);c?n.push(...c):i(s)}if(!n.length)break;s=n.pop()}if(r&&e.length>1){let s=ah(e[0]);for(let c=1;c0&&i>=c)c==0?(e.push(r,...n),n.length=0,r=u):n.push(u),i=c;else{let f=Xre(r,u);f>=0?r=f:i==0&&c==0?(e.push(r),r=u):(n.push(u),i=c)}}return r>=0&&e.push(r,...n),e}function BI(t){return UI(t).map(MI)}function eie(t){return Jre(UI(t))}const C8=45,LI=".",$I=65039,FI=1,Sm=t=>Array.from(t);function ap(t,e){return t.P.has(e)||t.Q.has(e)}class tie extends Array{get is_emoji(){return!0}}let ME,jI,Bc,kE,zI,jl,iw,Ol,xc,S8,UE;function Q2(){if(ME)return;let t=xI(Pre);const e=()=>rp(t),n=()=>new Set(e()),r=(p,g)=>g.forEach(m=>p.add(m));ME=new Map(II(t)),jI=n(),Bc=e(),kE=new Set(e().map(p=>Bc[p])),Bc=new Set(Bc),zI=n(),n();let i=NI(t),s=t();const c=()=>{let p=new Set;return e().forEach(g=>r(p,i[g])),r(p,e()),p};jl=ip(p=>{let g=ip(t).map(m=>m+96);if(g.length){let m=p>=s;g[0]-=32,g=fd(g),m&&(g=`Restricted[${g}]`);let y=c(),A=c(),E=!t();return{N:g,P:y,Q:A,M:E,R:m}}}),iw=n(),Ol=new Map;let u=e().concat(Sm(iw)).sort((p,g)=>p-g);u.forEach((p,g)=>{let m=t(),y=u[g]=m?u[g-m]:{V:[],M:new Map};y.V.push(p),iw.has(p)||Ol.set(p,y)});for(let{V:p,M:g}of new Set(Ol.values())){let m=[];for(let A of p){let E=jl.filter(O=>ap(O,A)),x=m.find(({G:O})=>E.some(I=>O.has(I)));x||(x={G:new Set,V:[]},m.push(x)),x.V.push(A),r(x.G,E)}let y=m.flatMap(A=>Sm(A.G));for(let{G:A,V:E}of m){let x=new Set(y.filter(O=>!A.has(O)));for(let O of E)g.set(O,x)}}xc=new Set;let f=new Set;const d=p=>xc.has(p)?f.add(p):xc.add(p);for(let p of jl){for(let g of p.P)d(g);for(let g of p.Q)d(g)}for(let p of xc)!Ol.has(p)&&!f.has(p)&&Ol.set(p,FI);r(xc,BI(xc)),S8=jre(t).map(p=>tie.from(p)).sort(Hre),UE=new Map;for(let p of S8){let g=[UE];for(let m of p){let y=g.map(A=>{let E=A.get(m);return E||(E=new Map,A.set(m,E)),E});m===$I?g.push(...y):g=y}for(let m of g)m.V=p}}function Y2(t){return(qI(t)?"":`${Z2(tb([t]))} `)+RI(t)}function Z2(t){return`"${t}"‎`}function nie(t){if(t.length>=4&&t[2]==C8&&t[3]==C8)throw new Error(`invalid label extension: "${fd(t.slice(0,4))}"`)}function rie(t){for(let n=t.lastIndexOf(95);n>0;)if(t[--n]!==95)throw new Error("underscore allowed only at start")}function iie(t){let e=t[0],n=E8.get(e);if(n)throw bh(`leading ${n}`);let r=t.length,i=-1;for(let s=1;se&&(e>>=1,t=[...t.slice(0,e),8230,...t.slice(-e)]);let i=0,s=t.length;for(let c=0;c{let s=qre(i),c={input:s,offset:r};r+=s.length+1;try{let u=c.tokens=fie(s,e,n),f=u.length,d;if(!f)throw new Error("empty label");let p=c.output=u.flat();if(rie(p),!(c.emoji=f>1||u[0].is_emoji)&&p.every(m=>m<128))nie(p),d="ASCII";else{let m=u.flatMap(y=>y.is_emoji?[]:y);if(!m.length)d="Emoji";else{if(Bc.has(p[0]))throw bh("leading combining mark");for(let E=1;Ec.has(u)):Sm(c),!n.length)return}else r.push(i)}if(n){for(let i of n)if(r.every(s=>ap(i,s)))throw new Error(`whole-script confusable: ${t.N}/${i.N}`)}}function uie(t){let e=jl;for(let n of t){let r=e.filter(i=>ap(i,n));if(!r.length)throw jl.some(i=>ap(i,n))?GI(e[0],n):HI(n);if(e=r,r.length==1)break}return e}function lie(t){return t.map(({input:e,error:n,output:r})=>{if(n){let i=n.message;throw new Error(t.length==1?i:`Invalid label ${Z2(tb(e,63))}: ${i}`)}return fd(r)}).join(LI)}function HI(t){return new Error(`disallowed character: ${Y2(t)}`)}function GI(t,e){let n=Y2(e),r=jl.find(i=>i.P.has(e));return r&&(n=`${r.N} ${n}`),new Error(`illegal mixture: ${t.N} + ${n}`)}function bh(t){return new Error(`illegal placement: ${t}`)}function die(t,e){for(let n of e)if(!ap(t,n))throw GI(t,n);if(t.M){let n=BI(e);for(let r=1,i=n.length;rA8)throw new Error(`excessive non-spacing marks: ${Z2(tb(n.slice(r-1,s)))} (${s-r}/${A8})`);r=s}}}function fie(t,e,n){let r=[],i=[];for(t=t.slice().reverse();t.length;){let s=pie(t);if(s)i.length&&(r.push(e(i)),i=[]),r.push(n(s));else{let c=t.pop();if(xc.has(c))i.push(c);else{let u=ME.get(c);if(u)i.push(...u);else if(!jI.has(c))throw HI(c)}}}return i.length&&r.push(e(i)),r}function hie(t){return t.filter(e=>e!=$I)}function pie(t,e){let n=UE,r,i=t.length;for(;i&&(n=n.get(t[--i]),!!n);){let{V:s}=n;s&&(r=s,t.length=i)}return r}function gie(t){return aie(t)}function mie(t){return gie(t)}function bie(t){let e=[];function n(r){return yh.parseEvmChainId(r)||1}return r=>({id:he.CONNECTOR_ID.AUTH,name:he.CONNECTOR_NAMES.AUTH,type:"AUTH",chain:he.CHAIN.EVM,async connect(i={}){var g;const s=await this.getProvider();let c=i.chainId;if(i.isReconnecting){const m=yh.parseEvmChainId(s.getLastUsedChainId()||""),y=(g=t.chains)==null?void 0:g[0].id;if(c=m||y,!c)throw new Error("ChainId not found in provider")}const{address:u,chainId:f,accounts:d}=await s.connect({chainId:c,preferredAccountType:be.state.defaultAccountTypes.eip155});e=(d==null?void 0:d.map(m=>m.address))||[u],await s.getSmartAccountEnabledNetworks();const p=n(f);return{accounts:e,account:u,chainId:p,chain:{id:p,unsuported:!1}}},async disconnect(){await(await this.getProvider()).disconnect()},getAccounts(){return e!=null&&e.length?(r.emitter.emit("change",{accounts:e}),Promise.resolve(e)):Promise.resolve([])},async getProvider(){return this.provider||(this.provider=Bl.getInstance({projectId:t.options.projectId,enableLogger:t.options.enableAuthLogger,onTimeout:()=>{Vc.open(Pl.ALERT_ERRORS.SOCIALS_TIMEOUT,"error")}})),Promise.resolve(this.provider)},async getChainId(){const i=await this.getProvider(),{chainId:s}=await i.getChainId();return n(s)},async isAuthorized(){const i=await this.getProvider();return Promise.resolve(i.getLoginEmailUsed())},async switchChain({chainId:i}){var s;try{const c=r.chains.find(d=>d.id===i);if(!c)throw new Gs(new Error("chain not found on connector."));const f=await(await this.getProvider()).connect({chainId:i,preferredAccountType:be.state.defaultAccountTypes.eip155});return e=((s=f==null?void 0:f.accounts)==null?void 0:s.map(d=>d.address))||[f.address],r.emitter.emit("change",{chainId:Number(i),accounts:e}),c}catch(c){throw c instanceof Error?new Gs(c):c}},onAccountsChanged(i){i.length===0?this.onDisconnect():r.emitter.emit("change",{accounts:i.map(Bo)})},onChainChanged(i){const s=Number(i);r.emitter.emit("change",{chainId:s})},async onDisconnect(i){await(await this.getProvider()).disconnect()}})}X2.type="walletConnect";function X2(t,e,n){const r=t.isNewChainsStale??!0;let i,s,c,u,f,d,p;return g=>({id:"walletConnect",name:"WalletConnect",type:X2.type,async setup(){const m=await this.getProvider().catch(()=>null);m&&(u||(u=this.onConnect.bind(this),m.on("connect",u)),d||(d=this.onSessionDelete.bind(this),m.on("session_delete",d)))},async connect({...m}={}){try{const y=await this.getProvider();if(!y)throw new Ao;f||(f=this.onDisplayUri,y.on("display_uri",f));const A=await this.isChainsStale();if(y.session&&A&&await y.disconnect(),!y.session||A){const O=Jm.createNamespaces(n);await y.connect({optionalNamespaces:O,..."pairingTopic"in m?{pairingTopic:m.pairingTopic}:{}}),this.setRequestedChainsIds(n.map(I=>Number(I.id)))}const E=(await y.enable()).map(O=>Bo(O)),x=await this.getChainId();return f&&(y.removeListener("display_uri",f),f=void 0),u&&(y.removeListener("connect",u),u=void 0),s||(s=this.onAccountsChanged.bind(this),y.on("accountsChanged",s)),c||(c=this.onChainChanged.bind(this),y.on("chainChanged",c)),p||(p=this.onDisconnect.bind(this),y.on("disconnect",p)),d||(d=this.onSessionDelete.bind(this),y.on("session_delete",d)),y.setDefaultChain(`eip155:${x}`),{accounts:E,chainId:x}}catch(y){throw/(user rejected|connection request reset)/i.test(y==null?void 0:y.message)?new Xn(y):y}},async disconnect(){const m=await this.getProvider();try{await(m==null?void 0:m.disconnect())}catch(y){if(!/No matching key/i.test(y.message))throw y}finally{c&&(m==null||m.removeListener("chainChanged",c),c=void 0),p&&(m==null||m.removeListener("disconnect",p),p=void 0),u||(u=this.onConnect.bind(this),m==null||m.on("connect",u)),s&&(m==null||m.removeListener("accountsChanged",s),s=void 0),d&&(m==null||m.removeListener("session_delete",d),d=void 0),this.setRequestedChainsIds([])}},async getAccounts(){var E,x,O;const m=await this.getProvider();if(!((E=m==null?void 0:m.session)!=null&&E.namespaces))return[];const y=(O=(x=m==null?void 0:m.session)==null?void 0:x.namespaces[he.CHAIN.EVM])==null?void 0:O.accounts;return(y==null?void 0:y.map(I=>I.split(":")[2]))??[]},async getProvider({chainId:m}={}){var E,x;i||(i=await e.getUniversalProvider(),i==null||i.events.setMaxListeners(Number.POSITIVE_INFINITY));const y=Ne.getActiveNamespace(),A=(E=e.getCaipNetwork())==null?void 0:E.id;if(m&&A!==m&&y){const O=Ne.getStoredActiveCaipNetworkId(),I=e==null?void 0:e.getCaipNetworks(y),M=I==null?void 0:I.find($=>$.id===O);M&&M.chainNamespace===he.CHAIN.EVM&&await((x=this.switchChain)==null?void 0:x.call(this,{chainId:Number(M.id)}))}return i},async getChainId(){var x,O,I,M;const m=(x=e.getCaipNetwork(he.CHAIN.EVM))==null?void 0:x.id;if(m)return m;const A=(M=(I=(O=(await this.getProvider()).session)==null?void 0:O.namespaces[he.CHAIN.EVM])==null?void 0:I.chains)==null?void 0:M[0],E=n.find($=>$.id===A);return E==null?void 0:E.id},async isAuthorized(){try{const[m,y]=await Promise.all([this.getAccounts(),this.getProvider()]);return m.length?await this.isChainsStale()&&y.session?(await y.disconnect().catch(()=>{}),!1):!0:!1}catch{return!1}},async switchChain({addEthereumChainParameter:m,chainId:y}){var x,O,I,M;const A=await this.getProvider();if(!A)throw new Ao;const E=n.find($=>$.id===y);if(!E)throw new Gs(new Jh);try{await A.request({method:"wallet_switchEthereumChain",params:[{chainId:it(y)}]}),E!=null&&E.caipNetworkId&&A.setDefaultChain(E==null?void 0:E.caipNetworkId),g.emitter.emit("change",{chainId:Number(y)});const $=await this.getRequestedChainsIds();return this.setRequestedChainsIds([...$,y]),{...E,id:E.id}}catch($){const D=$;if(/(?:user rejected)/iu.test(D.message))throw new Xn(D);try{let R;m!=null&&m.blockExplorerUrls?R=m.blockExplorerUrls:R=(x=E.blockExplorers)!=null&&x.default.url?[(O=E.blockExplorers)==null?void 0:O.default.url]:[];const z=((M=(I=E.rpcUrls)==null?void 0:I.chainDefault)==null?void 0:M.http)||[],G={blockExplorerUrls:R,chainId:it(y),chainName:E.name,iconUrls:m==null?void 0:m.iconUrls,nativeCurrency:E.nativeCurrency,rpcUrls:z};await A.request({method:"wallet_addEthereumChain",params:[G]});const j=await this.getRequestedChainsIds();return this.setRequestedChainsIds([...j,y]),{...E,id:E.id}}catch(R){throw new Xn(R)}}},onAccountsChanged(m){m.length===0?this.onDisconnect():g.emitter.emit("change",{accounts:m.map(y=>Bo(y))})},onChainChanged(m){const y=Number(m);g.emitter.emit("change",{chainId:y})},onConnect(m){this.setRequestedChainsIds(n.map(y=>Number(y.id)))},async onDisconnect(m){this.setRequestedChainsIds([]),g.emitter.emit("disconnect");const y=await this.getProvider();s&&(y.removeListener("accountsChanged",s),s=void 0),c&&(y.removeListener("chainChanged",c),c=void 0),p&&(y.removeListener("disconnect",p),p=void 0),d&&(y.removeListener("session_delete",d),d=void 0),u||(u=this.onConnect.bind(this),y.on("connect",u))},onDisplayUri(m){g.emitter.emit("message",{type:"display_uri",data:m})},onSessionDelete(){this.onDisconnect()},getNamespaceChainsIds(){var A,E,x;if(!((A=i==null?void 0:i.session)!=null&&A.namespaces))return[];const m=(x=(E=i==null?void 0:i.session)==null?void 0:E.namespaces[he.CHAIN.EVM])==null?void 0:x.accounts;return(m==null?void 0:m.map(O=>Number.parseInt(O.split(":")[1]??"")))??[]},async getRequestedChainsIds(){var y;const m=await((y=g.storage)==null?void 0:y.getItem(this.requestedChainsStorageKey))??[];return[...new Set(m)]},async isChainsStale(){if(!r)return!1;const m=g.chains.map(E=>E.id),y=this.getNamespaceChainsIds();if(y.length&&!y.some(E=>m.includes(E)))return!1;const A=await this.getRequestedChainsIds();return!m.every(E=>A.includes(Number(E)))},async setRequestedChainsIds(m){var y;await((y=g.storage)==null?void 0:y.setItem(this.requestedChainsStorageKey,m))},get requestedChainsStorageKey(){return`${this.id}.requestedChains`}})}const Xf=gn({pendingTransactions:0}),T8={state:Xf,subscribeKey(t,e){return zr(Xf,t,e)},increase(t){Xf[t]+=1},decrease(t){Xf[t]-=1},reset(t){Xf[t]=0}};function yie(t){try{return JSON.parse(t)}catch{throw new Error("Error parsing wallet capabilities")}}const vie={enable:!1,pollingInterval:3e4};class wie extends J9{constructor(e){super({projectId:e.projectId,networks:Wc.extendCaipNetworks(e.networks,{projectId:e.projectId,customNetworkImageUrls:{},customRpcChainIds:e.transports?Object.keys(e.transports).map(Number):[]})}),this.adapterType="wagmi",this.balancePromises={},this.pendingTransactionsFilter={...vie,...e.pendingTransactionsFilter??{}},this.namespace=he.CHAIN.EVM,this.createConfig({...e,networks:Wc.extendCaipNetworks(e.networks,{projectId:e.projectId,customNetworkImageUrls:{},customRpcChainIds:e.transports?Object.keys(e.transports).map(Number):[]}),projectId:e.projectId}),this.setupWatchers()}async getAccounts(e){var s;const n=this.getWagmiConnector(e.id);if(!n)return{accounts:[]};if(n.id===he.CONNECTOR_ID.AUTH){const c=n.provider,{address:u,accounts:f}=await c.connect();return Promise.resolve({accounts:(f||[{address:u,type:"eoa"}]).map(d=>$e.createAccount("eip155",d.address,d.type))})}const{addresses:r,address:i}=ep(this.wagmiConfig);return Promise.resolve({accounts:(s=r||[i])==null?void 0:s.map(c=>$e.createAccount("eip155",c||"","eoa"))})}getWagmiConnector(e){return this.wagmiConfig.connectors.find(n=>n.id===e)}createConfig(e){this.caipNetworks=e.networks,this.wagmiChains=this.caipNetworks.filter(s=>s.chainNamespace===he.CHAIN.EVM);const n=this.wagmiChains.map(s=>[s.id,Wc.getViemTransport(s)]);Object.entries(e.transports??{}).forEach(([s,c])=>{const u=n.findIndex(([f])=>f===Number(s));u===-1?n.push([Number(s),c]):n[u]=[Number(s),c]});const r=Object.fromEntries(n),i=[...e.connectors??[]];this.wagmiConfig=mne({...e,chains:this.wagmiChains,transports:r,connectors:i})}setupWatchPendingTransactions(){if(!this.pendingTransactionsFilter.enable||this.unwatchPendingTransactions)return;this.unwatchPendingTransactions=Yte(this.wagmiConfig,{pollingInterval:this.pendingTransactionsFilter.pollingInterval,onError:()=>{},onTransactions:()=>{this.emit("pendingTransactions"),T8.increase("pendingTransactions")}});const e=T8.subscribeKey("pendingTransactions",n=>{var r;n>=he.LIMITS.PENDING_TRANSACTIONS&&((r=this.unwatchPendingTransactions)==null||r.call(this),e())})}setupWatchers(){lI(this.wagmiConfig,{onChange:(e,n)=>{e.status==="disconnected"&&n.address&&this.emit("disconnect"),e.status==="connected"&&((e.address!==(n==null?void 0:n.address)||n.status!=="connected")&&(this.setupWatchPendingTransactions(),this.emit("accountChanged",{address:e.address})),e.chainId!==(n==null?void 0:n.chainId)&&this.emit("switchNetwork",{address:e.address,chainId:e.chainId}))}})}async addThirdPartyConnectors(e){var r,i;const n=[];if(e.enableCoinbase!==!1)try{const{coinbaseWallet:s}=await ei(async()=>{const{coinbaseWallet:c}=await import("./index-Ch5gbc8c.js");return{coinbaseWallet:c}},[]);s&&n.push(s({version:"4",appName:((r=e.metadata)==null?void 0:r.name)??"Unknown",appLogoUrl:((i=e.metadata)==null?void 0:i.icons[0])??"Unknown",preference:e.coinbasePreference??"all"}))}catch(s){console.error("Failed to import Coinbase Wallet SDK:",s)}n.forEach(s=>{const c=this.wagmiConfig._internal.connectors.setup(s);this.wagmiConfig._internal.connectors.setState(u=>[...u,c])})}addWagmiConnectors(e,n){var c,u,f,d,p;const r=[];e.enableWalletConnect!==!1&&r.push(X2(e,n,this.caipNetworks)),e.enableInjected!==!1&&r.push(eb({shimDisconnect:!0}));const i=((c=e.features)==null?void 0:c.email)===void 0?Fn.DEFAULT_FEATURES.email:(u=e.features)==null?void 0:u.email,s=(f=e.features)!=null&&f.socials?((p=(d=e.features)==null?void 0:d.socials)==null?void 0:p.length)>0:Fn.DEFAULT_FEATURES.socials;(i||s)&&r.push(bie({chains:this.wagmiChains,options:{projectId:e.projectId,enableAuthLogger:e.enableAuthLogger}})),r.forEach(g=>{const m=this.wagmiConfig._internal.connectors.setup(g);this.wagmiConfig._internal.connectors.setState(y=>[...y,m])})}async signMessage(e){try{return{signature:await uI(this.wagmiConfig,{message:e.message,account:e.address})}}catch{throw new Error("WagmiAdapter:signMessage - Sign message failed")}}async sendTransaction(e){const{chainId:n}=ep(this.wagmiConfig),r={account:e.address,to:e.to,value:e.value,gas:e.gas,gasPrice:e.gasPrice,data:e.data,chainId:n,type:"legacy"};await Gte(this.wagmiConfig,r);const i=await cI(this.wagmiConfig,r);return await dI(this.wagmiConfig,{hash:i,timeout:25e3}),{hash:i}}async writeContract(e){var c;const{caipNetwork:n,...r}=e,i=Number(yh.caipNetworkIdToNumber(n.caipNetworkId));return{hash:await fI(this.wagmiConfig,{chain:(c=this.wagmiChains)==null?void 0:c[i],chainId:i,address:r.tokenAddress,account:r.fromAddress,abi:r.abi,functionName:r.method,args:r.args,__mode:"prepared"})}}async getEnsAddress(e){const{name:n,caipNetwork:r}=e;try{if(!this.wagmiConfig)throw new Error("networkControllerClient:getApprovedCaipNetworksData - wagmiConfig is undefined");let i=!1,s=!1;return O7(n)&&(s=await Jm.resolveReownName(n)||!1),r.id===1&&(i=await zte(this.wagmiConfig,{name:mie(n),chainId:r.id})),{address:i||s||!1}}catch{return{address:!1}}}async estimateGas(e){try{return{gas:await rI(this.wagmiConfig,{account:e.address,to:e.to,data:e.data,type:"legacy"})}}catch{throw new Error("WagmiAdapter:estimateGas - error estimating gas")}}parseUnits(e){return R9(e.value,e.decimals)}formatUnits(e){return xd(e.value,e.decimals)}async addWagmiConnector(e,n){var i;if(e.id===he.CONNECTOR_ID.AUTH||e.id===he.CONNECTOR_ID.WALLET_CONNECT)return;const r=await e.getProvider().catch(()=>{});this.addConnector({id:e.id,explorerId:Lo.ConnectorExplorerIds[e.id],imageUrl:((i=n==null?void 0:n.connectorImages)==null?void 0:i[e.id])??e.icon,name:Lo.ConnectorNamesMap[e.id]??e.name,imageId:Lo.ConnectorImageIds[e.id],type:Lo.ConnectorTypesMap[e.type]??"EXTERNAL",info:e.id===he.CONNECTOR_ID.INJECTED?void 0:{rdns:e.id},provider:r,chain:this.namespace,chains:[]})}async syncConnectors(e,n){Qte(this.wagmiConfig,{onChange:r=>r.forEach(i=>this.addWagmiConnector(i,e))}),await Promise.all(this.wagmiConfig.connectors.map(r=>this.addWagmiConnector(r,e))),this.addWagmiConnectors(e,n),await this.addThirdPartyConnectors(e)}async syncConnection(e){const{id:n}=e,i=Sl(this.wagmiConfig).find(u=>u.connector.id===n),s=this.getWagmiConnector(n),c=await(s==null?void 0:s.getProvider());return{chainId:Number(i==null?void 0:i.chainId),address:i==null?void 0:i.accounts[0],provider:c,type:i==null?void 0:i.connector.type,id:i==null?void 0:i.connector.id}}async connectWalletConnect(e){const n=this.getWalletConnectConnector();await n.authenticate();const r=this.getWagmiConnector("walletConnect");if(!r)throw new Error("UniversalAdapter:connectWalletConnect - connector not found");return await e8(this.wagmiConfig,{connector:r,chainId:e?Number(e):void 0}),{clientId:await n.provider.client.core.crypto.getClientId()}}async connect(e){var d;const{id:n,provider:r,type:i,info:s,chainId:c}=e,u=this.getWagmiConnector(n);if(!u)throw new Error("connectionControllerClient:connectExternal - connector is undefined");r&&s&&u.id===he.CONNECTOR_ID.EIP6963&&((d=u.setEip6963Wallet)==null||d.call(u,{provider:r,info:s}));const f=await e8(this.wagmiConfig,{connector:u,chainId:c?Number(c):void 0});return{address:f.accounts[0],chainId:f.chainId,provider:r,type:i,id:n}}async reconnect(e){const{id:n}=e,r=this.getWagmiConnector(n);if(!r)throw new Error("connectionControllerClient:connectExternal - connector is undefined");await oI(this.wagmiConfig,{connectors:[r]})}async getBalance(e){var i;const n=e.address,r=(i=this.caipNetworks)==null?void 0:i.find(s=>s.id===e.chainId);if(!n)return Promise.resolve({balance:"0.00",symbol:"ETH"});if(r&&this.wagmiConfig){const s=`${r.caipNetworkId}:${e.address}`,c=this.balancePromises[s];if(c)return c;const u=Ne.getNativeBalanceCacheForCaipAddress(s);return u?{balance:u.balance,symbol:u.symbol}:(this.balancePromises[s]=new Promise(async f=>{var g,m;const d=Number(e.chainId),p=await aI(this.wagmiConfig,{address:e.address,chainId:d,token:(m=(g=e.tokens)==null?void 0:g[r.caipNetworkId])==null?void 0:m.address});Ne.updateNativeBalanceCache({caipAddress:s,balance:p.formatted,symbol:p.symbol,timestamp:Date.now()}),f({balance:p.formatted,symbol:p.symbol})}).finally(()=>{delete this.balancePromises[s]}),this.balancePromises[s]||{balance:"0.00",symbol:"ETH"})}return{balance:"",symbol:""}}async getProfile(e){const n=e.chainId,r=await Hte(this.wagmiConfig,{address:e.address,chainId:n});if(r){const i=await qte(this.wagmiConfig,{name:r,chainId:n});return{profileName:r,profileImage:i??void 0}}return{profileName:void 0,profileImage:void 0}}getWalletConnectProvider(){var e;return(e=this.getWagmiConnector("walletConnect"))==null?void 0:e.provider}async disconnect(){const e=Sl(this.wagmiConfig);await Promise.all(e.map(async n=>{const r=this.getWagmiConnector(n.connector.id);r&&await $te(this.wagmiConfig,{connector:r})}))}async switchNetwork(e){await Kte(this.wagmiConfig,{chainId:e.caipNetwork.id}),await super.switchNetwork(e)}async getCapabilities(e){var u,f;if(!this.wagmiConfig)throw new Error("connectionControllerClient:getCapabilities - wagmiConfig is undefined");const r=Sl(this.wagmiConfig)[0],i=r?this.getWagmiConnector(r.connector.id):null;if(!i)throw new Error("connectionControllerClient:getCapabilities - connector is undefined");const s=await i.getProvider();if(!s)throw new Error("connectionControllerClient:getCapabilities - provider is undefined");const c=(f=(u=s.session)==null?void 0:u.sessionProperties)==null?void 0:f.capabilities;if(c){const p=yie(c)[e];if(p)return p}return await s.request({method:"wallet_getCapabilities",params:[e]})}async grantPermissions(e){if(!this.wagmiConfig)throw new Error("connectionControllerClient:grantPermissions - wagmiConfig is undefined");const r=Sl(this.wagmiConfig)[0],i=r?this.getWagmiConnector(r.connector.id):null;if(!i)throw new Error("connectionControllerClient:grantPermissions - connector is undefined");const s=await i.getProvider();if(!s)throw new Error("connectionControllerClient:grantPermissions - provider is undefined");return s.request({method:"wallet_grantPermissions",params:e})}async revokePermissions(e){if(!this.wagmiConfig)throw new Error("connectionControllerClient:revokePermissions - wagmiConfig is undefined");const r=Sl(this.wagmiConfig)[0],i=r?this.getWagmiConnector(r.connector.id):null;if(!i)throw new Error("connectionControllerClient:revokePermissions - connector is undefined");const s=await i.getProvider();if(!s)throw new Error("connectionControllerClient:revokePermissions - provider is undefined");return s.request({method:"wallet_revokePermissions",params:e})}async walletGetAssets(e){if(!this.wagmiConfig)throw new Error("connectionControllerClient:walletGetAssets - wagmiConfig is undefined");const r=Sl(this.wagmiConfig)[0],i=r?this.getWagmiConnector(r.connector.id):null;if(!i)throw new Error("connectionControllerClient:walletGetAssets - connector is undefined");const s=await i.getProvider();if(!s)throw new Error("connectionControllerClient:walletGetAssets - provider is undefined");return s.request({method:"wallet_getAssets",params:[e]})}setUniversalProvider(e){this.addConnector(new j2({provider:e,caipNetworks:this.caipNetworks||[],namespace:"eip155"}))}}const VI="b56e18d47c72ab683b10814fe9495694",Eie={name:"AppKit",description:"AppKit Example",url:"https://reown.com",icons:["https://avatars.githubusercontent.com/u/179229932"]},J2=[vte,yte,wte],eA=new wie({projectId:VI,networks:J2});eA.wagmiConfig;const x8={to:"0xd8da6bf26964af9d7eed9e03e53415d37aa96045",value:oX("0.0001")},Aie=({sendHash:t,sendSignMsg:e,sendBalance:n})=>{const{disconnect:r}=NX(),{open:i}=xte(),{switchNetwork:s}=eI(),{address:c,isConnected:u}=B2(),{data:f}=xre({...x8}),{data:d,sendTransaction:p}=Ire(),{signMessageAsync:g}=Ore(),{refetch:m}=Sre({address:c});Le.useEffect(()=>{d&&t(d)},[d]);const y=()=>{try{p({...x8,gas:f})}catch(O){console.log("Error sending transaction:",O)}},A=async()=>{const I=await g({message:"Hello Reown AppKit!",account:c});e(I)},E=async()=>{var I,M;const O=await m();n(((I=O==null?void 0:O.data)==null?void 0:I.value.toString())+" "+((M=O==null?void 0:O.data)==null?void 0:M.symbol.toString()))},x=async()=>{try{await r()}catch(O){console.error("Failed to disconnect:",O)}};return u&&De.jsxs("div",{children:[De.jsx("button",{onClick:()=>i(),children:"Open"}),De.jsx("button",{onClick:x,children:"Disconnect"}),De.jsx("button",{onClick:()=>s(J2[1]),children:"Switch"}),De.jsx("button",{onClick:A,children:"Sign msg"}),De.jsx("button",{onClick:y,children:"Send tx"}),De.jsx("button",{onClick:E,children:"Get Balance"})]})},N8=[{inputs:[],name:"retrieve",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"num",type:"uint256"}],name:"store",outputs:[],stateMutability:"nonpayable",type:"function"}],I8="0xEe6D291CC60d7CeD6627fA4cd8506912245c8cA4",_ie=()=>{const{isConnected:t}=B2(),{chainId:e}=eI(),{writeContract:n,isSuccess:r}=Dre(),i=Nre({address:I8,abi:N8,functionName:"retrieve",query:{enabled:!1}});Le.useEffect(()=>{r&&console.log("contract write success")},[r]);const s=async()=>{console.log("Read Sepolia Smart Contract");const{data:u}=await i.refetch();console.log("data: ",u)},c=()=>{console.log("Write Sepolia Smart Contract"),n({address:I8,abi:N8,functionName:"store",args:[123n]})};return t&&e===11155111&&De.jsxs("div",{children:[De.jsx("button",{onClick:s,children:"Read Sepolia Smart Contract"}),De.jsx("button",{onClick:c,children:"Write Sepolia Smart Contract"})]})},Cie=({hash:t,signedMsg:e,balance:n})=>{var y,A,E,x,O;const r=Tte(),i=Ite(),{address:s,caipAddress:c,isConnected:u,status:f,embeddedWalletInfo:d}=B2(),p=Ote(),{walletInfo:g}=Nte(),{data:m}=Rre({hash:t,confirmations:2,timeout:3e5,pollingInterval:1e3});return Le.useEffect(()=>{console.log("Events: ",p)},[p]),Le.useEffect(()=>{console.log("Embedded Wallet Info: ",d)},[d]),De.jsxs(De.Fragment,{children:[n&&De.jsx("section",{children:De.jsxs("h2",{children:["Balance: ",n]})}),t&&De.jsxs("section",{children:[De.jsx("h2",{children:"Sign Tx"}),De.jsxs("pre",{children:["Hash: ",t,De.jsx("br",{}),"Status: ",m==null?void 0:m.status.toString(),De.jsx("br",{})]})]}),e&&De.jsxs("section",{children:[De.jsx("h2",{children:"Sign msg"}),De.jsxs("pre",{children:["signedMsg: ",e,De.jsx("br",{})]})]}),De.jsxs("section",{children:[De.jsx("h2",{children:"useAppKit"}),De.jsxs("pre",{children:["Address: ",s,De.jsx("br",{}),"caip Address: ",c,De.jsx("br",{}),"Connected: ",u.toString(),De.jsx("br",{}),"Status: ",f,De.jsx("br",{}),"Account Type: ",d==null?void 0:d.accountType,De.jsx("br",{}),((y=d==null?void 0:d.user)==null?void 0:y.email)&&`Email: ${(A=d==null?void 0:d.user)==null?void 0:A.email} +`,((E=d==null?void 0:d.user)==null?void 0:E.username)&&`Username: ${(x=d==null?void 0:d.user)==null?void 0:x.username} +`,(d==null?void 0:d.authProvider)&&`Provider: ${d==null?void 0:d.authProvider} +`]})]}),De.jsxs("section",{children:[De.jsx("h2",{children:"Theme"}),De.jsxs("pre",{children:["Theme: ",r.themeMode,De.jsx("br",{})]})]}),De.jsxs("section",{children:[De.jsx("h2",{children:"State"}),De.jsxs("pre",{children:["activeChain: ",i.activeChain,De.jsx("br",{}),"loading: ",i.loading.toString(),De.jsx("br",{}),"open: ",i.open.toString(),De.jsx("br",{}),"selectedNetworkId: ",(O=i.selectedNetworkId)==null?void 0:O.toString(),De.jsx("br",{})]})]}),De.jsxs("section",{children:[De.jsx("h2",{children:"WalletInfo"}),De.jsxs("pre",{children:["Name: ",JSON.stringify(g),De.jsx("br",{})]})]})]})},Sie=new Gne,Tie={projectId:VI,networks:J2,metadata:Eie,themeMode:"light",themeVariables:{"--w3m-accent":"#000000"}};Dte({adapters:[eA],...Tie,features:{analytics:!0}});function xie(){const[t,e]=Le.useState(void 0),[n,r]=Le.useState(""),[i,s]=Le.useState(""),c=d=>{e(d)},u=d=>{r(d)},f=d=>{s(d)};return De.jsxs("div",{className:"pages",children:[De.jsx("img",{src:"/reown.svg",alt:"Reown",style:{width:"150px",height:"150px"}}),De.jsx("h1",{children:"AppKit Wagmi React dApp Example"}),De.jsx(vne,{config:eA.wagmiConfig,children:De.jsxs(fre,{client:Sie,children:[De.jsx("appkit-button",{}),De.jsx(Aie,{sendHash:c,sendSignMsg:u,sendBalance:f}),De.jsx(_ie,{}),De.jsx("div",{className:"advice",children:De.jsxs("p",{children:["This projectId only works on localhost. ",De.jsx("br",{}),"Go to ",De.jsx("a",{href:"https://cloud.reown.com",target:"_blank",className:"link-button",rel:"Reown Cloud",children:"Reown Cloud"})," to get your own."]})}),De.jsx(Cie,{hash:t,signedMsg:n,balance:i})]})})]})}c7.createRoot(document.getElementById("root")).render(De.jsx(Le.StrictMode,{children:De.jsx(xie,{})}));export{Gs as $,Oe as A,Me as B,Ge as C,Mse as D,M9 as E,Ose as F,hE as G,H1 as H,pn as I,fh as J,pd as K,cr as L,Kn as M,Lt as N,be as O,Vc as P,Rse as Q,ct as R,$t as S,Ir as T,V9 as U,pE as V,yn as W,ld as X,kse as Y,Bo as Z,ei as _,Fn as a,Jh as a0,it as a1,Xn as a2,eb as a3,fe as a4,E2 as a5,ji as a6,uY as a7,JY as a8,A9 as a9,au as aa,HN as ab,hh as ac,Ua as ad,YT as ae,dse as af,QE as ag,Wg as ah,bp as ai,pse as aj,hse as ak,pL as al,fse as am,one as an,ux as ao,Mm as ap,j8 as aq,D7 as ar,$s as as,sne as at,Dse as b,he as c,$e as d,Ft as e,Pse as f,Ia as g,gi as h,Ll as i,Q as j,ot as k,Jee as l,Ne as m,Pg as n,x4 as o,K8 as p,gn as q,Ug as r,Iie as s,gt as t,Oie as u,zr as v,Rr as w,Ise as x,lQ as y,os as z}; diff --git a/web3game/.vercel/output/static/assets/index-DaWU74xu.js b/web3game/.vercel/output/static/assets/index-DaWU74xu.js new file mode 100644 index 0000000000..848ab1dd7b --- /dev/null +++ b/web3game/.vercel/output/static/assets/index-DaWU74xu.js @@ -0,0 +1,3 @@ +import{K as vt,am as Et,al as It,an as St}from"./index-DVkBgnkX.js";import{E as we,_ as R,c as ee,d as Le,y as _t}from"./hooks.module-CUJGEegb.js";class q{constructor(e,n){this.scope=e,this.module=n}storeObject(e,n){this.setItem(e,JSON.stringify(n))}loadObject(e){const n=this.getItem(e);return n?JSON.parse(n):void 0}setItem(e,n){localStorage.setItem(this.scopedKey(e),n)}getItem(e){return localStorage.getItem(this.scopedKey(e))}removeItem(e){localStorage.removeItem(this.scopedKey(e))}clear(){const e=this.scopedKey(""),n=[];for(let s=0;slocalStorage.removeItem(s))}scopedKey(e){return`-${this.scope}${this.module?`:${this.module}`:""}:${e}`}static clearAll(){new q("CBWSDK").clear(),new q("walletlink").clear()}}const D={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901,unsupportedChain:4902}},be={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."},4902:{standard:"EIP-3085",message:"Unrecognized chain ID."}},Xe="Unspecified error message.",Ct="Unspecified server error.";function ve(t,e=Xe){if(t&&Number.isInteger(t)){const n=t.toString();if(me(be,n))return be[n].message;if(et(t))return Ct}return e}function At(t){if(!Number.isInteger(t))return!1;const e=t.toString();return!!(be[e]||et(t))}function Lt(t,{shouldIncludeStack:e=!1}={}){const n={};if(t&&typeof t=="object"&&!Array.isArray(t)&&me(t,"code")&&At(t.code)){const s=t;n.code=s.code,s.message&&typeof s.message=="string"?(n.message=s.message,me(s,"data")&&(n.data=s.data)):(n.message=ve(n.code),n.data={originalError:xe(t)})}else n.code=D.rpc.internal,n.message=Me(t,"message")?t.message:Xe,n.data={originalError:xe(t)};return e&&(n.stack=Me(t,"stack")?t.stack:void 0),n}function et(t){return t>=-32099&&t<=-32e3}function xe(t){return t&&typeof t=="object"&&!Array.isArray(t)?Object.assign({},t):t}function me(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Me(t,e){return typeof t=="object"&&t!==null&&e in t&&typeof t[e]=="string"}const A={rpc:{parse:t=>B(D.rpc.parse,t),invalidRequest:t=>B(D.rpc.invalidRequest,t),invalidParams:t=>B(D.rpc.invalidParams,t),methodNotFound:t=>B(D.rpc.methodNotFound,t),internal:t=>B(D.rpc.internal,t),server:t=>{if(!t||typeof t!="object"||Array.isArray(t))throw new Error("Ethereum RPC Server errors must provide single object argument.");const{code:e}=t;if(!Number.isInteger(e)||e>-32005||e<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return B(e,t)},invalidInput:t=>B(D.rpc.invalidInput,t),resourceNotFound:t=>B(D.rpc.resourceNotFound,t),resourceUnavailable:t=>B(D.rpc.resourceUnavailable,t),transactionRejected:t=>B(D.rpc.transactionRejected,t),methodNotSupported:t=>B(D.rpc.methodNotSupported,t),limitExceeded:t=>B(D.rpc.limitExceeded,t)},provider:{userRejectedRequest:t=>J(D.provider.userRejectedRequest,t),unauthorized:t=>J(D.provider.unauthorized,t),unsupportedMethod:t=>J(D.provider.unsupportedMethod,t),disconnected:t=>J(D.provider.disconnected,t),chainDisconnected:t=>J(D.provider.chainDisconnected,t),unsupportedChain:t=>J(D.provider.unsupportedChain,t),custom:t=>{if(!t||typeof t!="object"||Array.isArray(t))throw new Error("Ethereum Provider custom errors must provide single object argument.");const{code:e,message:n,data:s}=t;if(!n||typeof n!="string")throw new Error('"message" must be a nonempty string');return new st(e,n,s)}}};function B(t,e){const[n,s]=tt(e);return new nt(t,n||ve(t),s)}function J(t,e){const[n,s]=tt(e);return new st(t,n||ve(t),s)}function tt(t){if(t){if(typeof t=="string")return[t];if(typeof t=="object"&&!Array.isArray(t)){const{message:e,data:n}=t;if(e&&typeof e!="string")throw new Error("Must specify string message.");return[e||void 0,n]}}return[]}class nt extends Error{constructor(e,n,s){if(!Number.isInteger(e))throw new Error('"code" must be an integer.');if(!n||typeof n!="string")throw new Error('"message" must be a nonempty string.');super(n),this.code=e,s!==void 0&&(this.data=s)}}class st extends nt{constructor(e,n,s){if(!xt(e))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(e,n,s)}}function xt(t){return Number.isInteger(t)&&t>=1e3&&t<=4999}function Ee(){return t=>t}const se=Ee(),Mt=Ee(),Rt=Ee();function K(t){return Math.floor(t)}const it=/^[0-9]*$/,rt=/^[a-f0-9]*$/;function V(t){return Ie(crypto.getRandomValues(new Uint8Array(t)))}function Ie(t){return[...t].map(e=>e.toString(16).padStart(2,"0")).join("")}function ae(t){return new Uint8Array(t.match(/.{1,2}/g).map(e=>Number.parseInt(e,16)))}function te(t,e=!1){const n=t.toString("hex");return se(e?`0x${n}`:n)}function ce(t){return te(ye(t),!0)}function W(t){return Rt(t.toString(10))}function Y(t){return se(`0x${BigInt(t).toString(16)}`)}function at(t){return t.startsWith("0x")||t.startsWith("0X")}function Se(t){return at(t)?t.slice(2):t}function ot(t){return at(t)?`0x${t.slice(2)}`:`0x${t}`}function oe(t){if(typeof t!="string")return!1;const e=Se(t).toLowerCase();return rt.test(e)}function Pt(t,e=!1){if(typeof t=="string"){const n=Se(t).toLowerCase();if(rt.test(n))return se(e?`0x${n}`:n)}throw A.rpc.invalidParams(`"${String(t)}" is not a hexadecimal string`)}function _e(t,e=!1){let n=Pt(t,!1);return n.length%2===1&&(n=se(`0${n}`)),e?se(`0x${n}`):n}function F(t){if(typeof t=="string"){const e=Se(t).toLowerCase();if(oe(e)&&e.length===40)return Mt(ot(e))}throw A.rpc.invalidParams(`Invalid Ethereum address: ${String(t)}`)}function ye(t){if(Buffer.isBuffer(t))return t;if(typeof t=="string"){if(oe(t)){const e=_e(t,!1);return Buffer.from(e,"hex")}return Buffer.from(t,"utf8")}throw A.rpc.invalidParams(`Not binary data: ${String(t)}`)}function ne(t){if(typeof t=="number"&&Number.isInteger(t))return K(t);if(typeof t=="string"){if(it.test(t))return K(Number(t));if(oe(t))return K(Number(BigInt(_e(t,!0))))}throw A.rpc.invalidParams(`Not an integer: ${String(t)}`)}function Z(t){if(t!==null&&(typeof t=="bigint"||Ot(t)))return BigInt(t.toString(10));if(typeof t=="number")return BigInt(ne(t));if(typeof t=="string"){if(it.test(t))return BigInt(t);if(oe(t))return BigInt(_e(t,!0))}throw A.rpc.invalidParams(`Not an integer: ${String(t)}`)}function Tt(t){if(typeof t=="string")return JSON.parse(t);if(typeof t=="object")return t;throw A.rpc.invalidParams(`Not a JSON string or an object: ${String(t)}`)}function Ot(t){if(t==null||typeof t.constructor!="function")return!1;const{constructor:e}=t;return typeof e.config=="function"&&typeof e.EUCLID=="number"}async function Nt(){return crypto.subtle.generateKey({name:"ECDH",namedCurve:"P-256"},!0,["deriveKey"])}async function Dt(t,e){return crypto.subtle.deriveKey({name:"ECDH",public:e},t,{name:"AES-GCM",length:256},!1,["encrypt","decrypt"])}async function jt(t,e){const n=crypto.getRandomValues(new Uint8Array(12)),s=await crypto.subtle.encrypt({name:"AES-GCM",iv:n},t,new TextEncoder().encode(e));return{iv:n,cipherText:s}}async function Ut(t,{iv:e,cipherText:n}){const s=await crypto.subtle.decrypt({name:"AES-GCM",iv:e},t,n);return new TextDecoder().decode(s)}function ct(t){switch(t){case"public":return"spki";case"private":return"pkcs8"}}async function dt(t,e){const n=ct(t),s=await crypto.subtle.exportKey(n,e);return Ie(new Uint8Array(s))}async function lt(t,e){const n=ct(t),s=ae(e).buffer;return await crypto.subtle.importKey(n,new Uint8Array(s),{name:"ECDH",namedCurve:"P-256"},!0,t==="private"?["deriveKey"]:[])}async function Bt(t,e){const n=JSON.stringify(t,(s,r)=>{if(!(r instanceof Error))return r;const i=r;return Object.assign(Object.assign({},i.code?{code:i.code}:{}),{message:i.message})});return jt(e,n)}async function Wt(t,e){return JSON.parse(await Ut(e,t))}const de={storageKey:"ownPrivateKey",keyType:"private"},le={storageKey:"ownPublicKey",keyType:"public"},ue={storageKey:"peerPublicKey",keyType:"public"};class qt{constructor(){this.storage=new q("CBWSDK","SCWKeyManager"),this.ownPrivateKey=null,this.ownPublicKey=null,this.peerPublicKey=null,this.sharedSecret=null}async getOwnPublicKey(){return await this.loadKeysIfNeeded(),this.ownPublicKey}async getSharedSecret(){return await this.loadKeysIfNeeded(),this.sharedSecret}async setPeerPublicKey(e){this.sharedSecret=null,this.peerPublicKey=e,await this.storeKey(ue,e),await this.loadKeysIfNeeded()}async clear(){this.ownPrivateKey=null,this.ownPublicKey=null,this.peerPublicKey=null,this.sharedSecret=null,this.storage.removeItem(le.storageKey),this.storage.removeItem(de.storageKey),this.storage.removeItem(ue.storageKey)}async generateKeyPair(){const e=await Nt();this.ownPrivateKey=e.privateKey,this.ownPublicKey=e.publicKey,await this.storeKey(de,e.privateKey),await this.storeKey(le,e.publicKey)}async loadKeysIfNeeded(){if(this.ownPrivateKey===null&&(this.ownPrivateKey=await this.loadKey(de)),this.ownPublicKey===null&&(this.ownPublicKey=await this.loadKey(le)),(this.ownPrivateKey===null||this.ownPublicKey===null)&&await this.generateKeyPair(),this.peerPublicKey===null&&(this.peerPublicKey=await this.loadKey(ue)),this.sharedSecret===null){if(this.ownPrivateKey===null||this.peerPublicKey===null)return;this.sharedSecret=await Dt(this.ownPrivateKey,this.peerPublicKey)}}async loadKey(e){const n=this.storage.getItem(e.storageKey);return n?lt(e.keyType,n):null}async storeKey(e,n){const s=await dt(e.keyType,n);this.storage.setItem(e.storageKey,s)}}const ie="4.3.0",ut="@coinbase/wallet-sdk";async function Ce(t,e){const n=Object.assign(Object.assign({},t),{jsonrpc:"2.0",id:crypto.randomUUID()}),s=await window.fetch(e,{method:"POST",body:JSON.stringify(n),mode:"cors",headers:{"Content-Type":"application/json","X-Cbw-Sdk-Version":ie,"X-Cbw-Sdk-Platform":ut}}),{result:r,error:i}=await s.json();if(i)throw i;return r}function Kt(){return globalThis.coinbaseWalletExtension}function Ht(){var t,e;try{const n=globalThis;return(t=n.ethereum)!==null&&t!==void 0?t:(e=n.top)===null||e===void 0?void 0:e.ethereum}catch{return}}function zt({metadata:t,preference:e}){var n,s;const{appName:r,appLogoUrl:i,appChainIds:a}=t;if(e.options!=="smartWalletOnly"){const u=Kt();if(u)return(n=u.setAppInfo)===null||n===void 0||n.call(u,r,i,a,e),u}const d=Ht();if(d!=null&&d.isCoinbaseBrowser)return(s=d.setAppInfo)===null||s===void 0||s.call(d,r,i,a,e),d}function Ft(t){if(!t||typeof t!="object"||Array.isArray(t))throw A.rpc.invalidParams({message:"Expected a single, non-array, object argument.",data:t});const{method:e,params:n}=t;if(typeof e!="string"||e.length===0)throw A.rpc.invalidParams({message:"'args.method' must be a non-empty string.",data:t});if(n!==void 0&&!Array.isArray(n)&&(typeof n!="object"||n===null))throw A.rpc.invalidParams({message:"'args.params' must be an object or array if provided.",data:t});switch(e){case"eth_sign":case"eth_signTypedData_v2":case"eth_subscribe":case"eth_unsubscribe":throw A.provider.unsupportedMethod()}}const Re="accounts",Pe="activeChain",Te="availableChains",Oe="walletCapabilities";class Gt{constructor(e){var n,s,r;this.metadata=e.metadata,this.communicator=e.communicator,this.callback=e.callback,this.keyManager=new qt,this.storage=new q("CBWSDK","SCWStateManager"),this.accounts=(n=this.storage.loadObject(Re))!==null&&n!==void 0?n:[],this.chain=this.storage.loadObject(Pe)||{id:(r=(s=e.metadata.appChainIds)===null||s===void 0?void 0:s[0])!==null&&r!==void 0?r:1},this.handshake=this.handshake.bind(this),this.request=this.request.bind(this),this.createRequestMessage=this.createRequestMessage.bind(this),this.decryptResponseMessage=this.decryptResponseMessage.bind(this)}async handshake(e){var n,s,r,i;await((s=(n=this.communicator).waitForPopupLoaded)===null||s===void 0?void 0:s.call(n));const a=await this.createRequestMessage({handshake:{method:e.method,params:Object.assign({},this.metadata,(r=e.params)!==null&&r!==void 0?r:{})}}),d=await this.communicator.postRequestAndWaitForResponse(a);if("failure"in d.content)throw d.content.failure;const u=await lt("public",d.sender);await this.keyManager.setPeerPublicKey(u);const m=(await this.decryptResponseMessage(d)).result;if("error"in m)throw m.error;switch(e.method){case"eth_requestAccounts":{const k=m.value;this.accounts=k,this.storage.storeObject(Re,k),(i=this.callback)===null||i===void 0||i.call(this,"accountsChanged",k);break}}}async request(e){var n;if(this.accounts.length===0)switch(e.method){case"wallet_sendCalls":return this.sendRequestToPopup(e);default:throw A.provider.unauthorized()}switch(e.method){case"eth_requestAccounts":return(n=this.callback)===null||n===void 0||n.call(this,"connect",{chainId:Y(this.chain.id)}),this.accounts;case"eth_accounts":return this.accounts;case"eth_coinbase":return this.accounts[0];case"net_version":return this.chain.id;case"eth_chainId":return Y(this.chain.id);case"wallet_getCapabilities":return this.storage.loadObject(Oe);case"wallet_switchEthereumChain":return this.handleSwitchChainRequest(e);case"eth_ecRecover":case"personal_sign":case"wallet_sign":case"personal_ecRecover":case"eth_signTransaction":case"eth_sendTransaction":case"eth_signTypedData_v1":case"eth_signTypedData_v3":case"eth_signTypedData_v4":case"eth_signTypedData":case"wallet_addEthereumChain":case"wallet_watchAsset":case"wallet_sendCalls":case"wallet_showCallsStatus":case"wallet_grantPermissions":return this.sendRequestToPopup(e);default:if(!this.chain.rpcUrl)throw A.rpc.internal("No RPC URL set for chain");return Ce(e,this.chain.rpcUrl)}}async sendRequestToPopup(e){var n,s;await((s=(n=this.communicator).waitForPopupLoaded)===null||s===void 0?void 0:s.call(n));const r=await this.sendEncryptedRequest(e),a=(await this.decryptResponseMessage(r)).result;if("error"in a)throw a.error;return a.value}async cleanup(){var e,n;this.storage.clear(),await this.keyManager.clear(),this.accounts=[],this.chain={id:(n=(e=this.metadata.appChainIds)===null||e===void 0?void 0:e[0])!==null&&n!==void 0?n:1}}async handleSwitchChainRequest(e){var n;const s=e.params;if(!s||!(!((n=s[0])===null||n===void 0)&&n.chainId))throw A.rpc.invalidParams();const r=ne(s[0].chainId);if(this.updateChain(r))return null;const a=await this.sendRequestToPopup(e);return a===null&&this.updateChain(r),a}async sendEncryptedRequest(e){const n=await this.keyManager.getSharedSecret();if(!n)throw A.provider.unauthorized("No valid session found, try requestAccounts before other methods");const s=await Bt({action:e,chainId:this.chain.id},n),r=await this.createRequestMessage({encrypted:s});return this.communicator.postRequestAndWaitForResponse(r)}async createRequestMessage(e){const n=await dt("public",await this.keyManager.getOwnPublicKey());return{id:crypto.randomUUID(),sender:n,content:e,timestamp:new Date}}async decryptResponseMessage(e){var n,s;const r=e.content;if("failure"in r)throw r.failure;const i=await this.keyManager.getSharedSecret();if(!i)throw A.provider.unauthorized("Invalid session");const a=await Wt(r.encrypted,i),d=(n=a.data)===null||n===void 0?void 0:n.chains;if(d){const p=Object.entries(d).map(([m,k])=>({id:Number(m),rpcUrl:k}));this.storage.storeObject(Te,p),this.updateChain(this.chain.id,p)}const u=(s=a.data)===null||s===void 0?void 0:s.capabilities;return u&&this.storage.storeObject(Oe,u),a}updateChain(e,n){var s;const r=n??this.storage.loadObject(Te),i=r==null?void 0:r.find(a=>a.id===e);return i?(i!==this.chain&&(this.chain=i,this.storage.storeObject(Pe,i),(s=this.callback)===null||s===void 0||s.call(this,"chainChanged",Y(i.id))),!0):!1}}var O={},G={},Ne;function ht(){if(Ne)return G;Ne=1,Object.defineProperty(G,"__esModule",{value:!0}),G.anumber=t,G.abytes=n,G.ahash=s,G.aexists=r,G.aoutput=i;function t(a){if(!Number.isSafeInteger(a)||a<0)throw new Error("positive integer expected, got "+a)}function e(a){return a instanceof Uint8Array||ArrayBuffer.isView(a)&&a.constructor.name==="Uint8Array"}function n(a,...d){if(!e(a))throw new Error("Uint8Array expected");if(d.length>0&&!d.includes(a.length))throw new Error("Uint8Array expected of length "+d+", got length="+a.length)}function s(a){if(typeof a!="function"||typeof a.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");t(a.outputLen),t(a.blockLen)}function r(a,d=!0){if(a.destroyed)throw new Error("Hash instance has been destroyed");if(d&&a.finished)throw new Error("Hash#digest() has already been called")}function i(a,d){n(a);const u=d.outputLen;if(a.length>e&t)}:{h:Number(g>>e&t)|0,l:Number(g&t)|0}}function s(g,f=!1){let o=new Uint32Array(g.length),w=new Uint32Array(g.length);for(let S=0;SBigInt(g>>>0)<>>0);E.toBig=r;const i=(g,f,o)=>g>>>o;E.shrSH=i;const a=(g,f,o)=>g<<32-o|f>>>o;E.shrSL=a;const d=(g,f,o)=>g>>>o|f<<32-o;E.rotrSH=d;const u=(g,f,o)=>g<<32-o|f>>>o;E.rotrSL=u;const p=(g,f,o)=>g<<64-o|f>>>o-32;E.rotrBH=p;const m=(g,f,o)=>g>>>o-32|f<<64-o;E.rotrBL=m;const k=(g,f)=>f;E.rotr32H=k;const l=(g,f)=>g;E.rotr32L=l;const c=(g,f,o)=>g<>>32-o;E.rotlSH=c;const h=(g,f,o)=>f<>>32-o;E.rotlSL=h;const _=(g,f,o)=>f<>>64-o;E.rotlBH=_;const v=(g,f,o)=>g<>>64-o;E.rotlBL=v;function L(g,f,o,w){const S=(f>>>0)+(w>>>0);return{h:g+o+(S/2**32|0)|0,l:S|0}}const x=(g,f,o)=>(g>>>0)+(f>>>0)+(o>>>0);E.add3L=x;const P=(g,f,o,w)=>f+o+w+(g/2**32|0)|0;E.add3H=P;const y=(g,f,o,w)=>(g>>>0)+(f>>>0)+(o>>>0)+(w>>>0);E.add4L=y;const b=(g,f,o,w,S)=>f+o+w+S+(g/2**32|0)|0;E.add4H=b;const I=(g,f,o,w,S)=>(g>>>0)+(f>>>0)+(o>>>0)+(w>>>0)+(S>>>0);E.add5L=I;const M=(g,f,o,w,S,C)=>f+o+w+S+C+(g/2**32|0)|0;E.add5H=M;const T={fromBig:n,split:s,toBig:r,shrSH:i,shrSL:a,rotrSH:d,rotrSL:u,rotrBH:p,rotrBL:m,rotr32H:k,rotr32L:l,rotlSH:c,rotlSL:h,rotlBH:_,rotlBL:v,add:L,add3L:x,add3H:P,add4L:y,add4H:b,add5H:M,add5L:I};return E.default=T,E}var he={},X={},je;function $t(){return je||(je=1,Object.defineProperty(X,"__esModule",{value:!0}),X.crypto=void 0,X.crypto=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0),X}var Ue;function Vt(){return Ue||(Ue=1,function(t){/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */Object.defineProperty(t,"__esModule",{value:!0}),t.Hash=t.nextTick=t.byteSwapIfBE=t.isLE=void 0,t.isBytes=s,t.u8=r,t.u32=i,t.createView=a,t.rotr=d,t.rotl=u,t.byteSwap=p,t.byteSwap32=m,t.bytesToHex=l,t.hexToBytes=_,t.asyncLoop=L,t.utf8ToBytes=x,t.toBytes=P,t.concatBytes=y,t.checkOpts=I,t.wrapConstructor=M,t.wrapConstructorWithOpts=T,t.wrapXOFConstructorWithOpts=g,t.randomBytes=f;const e=$t(),n=ht();function s(o){return o instanceof Uint8Array||ArrayBuffer.isView(o)&&o.constructor.name==="Uint8Array"}function r(o){return new Uint8Array(o.buffer,o.byteOffset,o.byteLength)}function i(o){return new Uint32Array(o.buffer,o.byteOffset,Math.floor(o.byteLength/4))}function a(o){return new DataView(o.buffer,o.byteOffset,o.byteLength)}function d(o,w){return o<<32-w|o>>>w}function u(o,w){return o<>>32-w>>>0}t.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function p(o){return o<<24&4278190080|o<<8&16711680|o>>>8&65280|o>>>24&255}t.byteSwapIfBE=t.isLE?o=>o:o=>p(o);function m(o){for(let w=0;ww.toString(16).padStart(2,"0"));function l(o){(0,n.abytes)(o);let w="";for(let S=0;S=c._0&&o<=c._9)return o-c._0;if(o>=c.A&&o<=c.F)return o-(c.A-10);if(o>=c.a&&o<=c.f)return o-(c.a-10)}function _(o){if(typeof o!="string")throw new Error("hex string expected, got "+typeof o);const w=o.length,S=w/2;if(w%2)throw new Error("hex string expected, got unpadded hex of length "+w);const C=new Uint8Array(S);for(let N=0,U=0;N{};t.nextTick=v;async function L(o,w,S){let C=Date.now();for(let N=0;N=0&&Uo().update(P(C)).digest(),S=o();return w.outputLen=S.outputLen,w.blockLen=S.blockLen,w.create=()=>o(),w}function T(o){const w=(C,N)=>o(N).update(P(C)).digest(),S=o({});return w.outputLen=S.outputLen,w.blockLen=S.blockLen,w.create=C=>o(C),w}function g(o){const w=(C,N)=>o(N).update(P(C)).digest(),S=o({});return w.outputLen=S.outputLen,w.blockLen=S.blockLen,w.create=C=>o(C),w}function f(o=32){if(e.crypto&&typeof e.crypto.getRandomValues=="function")return e.crypto.getRandomValues(new Uint8Array(o));if(e.crypto&&typeof e.crypto.randomBytes=="function")return e.crypto.randomBytes(o);throw new Error("crypto.getRandomValues must be defined")}}(he)),he}var Be;function Jt(){if(Be)return O;Be=1,Object.defineProperty(O,"__esModule",{value:!0}),O.shake256=O.shake128=O.keccak_512=O.keccak_384=O.keccak_256=O.keccak_224=O.sha3_512=O.sha3_384=O.sha3_256=O.sha3_224=O.Keccak=void 0,O.keccakP=v;const t=ht(),e=Yt(),n=Vt(),s=[],r=[],i=[],a=BigInt(0),d=BigInt(1),u=BigInt(2),p=BigInt(7),m=BigInt(256),k=BigInt(113);for(let y=0,b=d,I=1,M=0;y<24;y++){[I,M]=[M,(2*I+3*M)%5],s.push(2*(5*M+I)),r.push((y+1)*(y+2)/2%64);let T=a;for(let g=0;g<7;g++)b=(b<>p)*k)%m,b&u&&(T^=d<<(d<I>32?(0,e.rotlBH)(y,b,I):(0,e.rotlSH)(y,b,I),_=(y,b,I)=>I>32?(0,e.rotlBL)(y,b,I):(0,e.rotlSL)(y,b,I);function v(y,b=24){const I=new Uint32Array(10);for(let M=24-b;M<24;M++){for(let f=0;f<10;f++)I[f]=y[f]^y[f+10]^y[f+20]^y[f+30]^y[f+40];for(let f=0;f<10;f+=2){const o=(f+8)%10,w=(f+2)%10,S=I[w],C=I[w+1],N=h(S,C,1)^I[o],U=_(S,C,1)^I[o+1];for(let $=0;$<50;$+=10)y[f+$]^=N,y[f+$+1]^=U}let T=y[2],g=y[3];for(let f=0;f<24;f++){const o=r[f],w=h(T,g,o),S=_(T,g,o),C=s[f];T=y[C],g=y[C+1],y[C]=w,y[C+1]=S}for(let f=0;f<50;f+=10){for(let o=0;o<10;o++)I[o]=y[f+o];for(let o=0;o<10;o++)y[f+o]^=~I[(o+2)%10]&I[(o+4)%10]}y[0]^=l[M],y[1]^=c[M]}I.fill(0)}class L extends n.Hash{constructor(b,I,M,T=!1,g=24){if(super(),this.blockLen=b,this.suffix=I,this.outputLen=M,this.enableXOF=T,this.rounds=g,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,t.anumber)(M),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,n.u32)(this.state)}keccak(){n.isLE||(0,n.byteSwap32)(this.state32),v(this.state32,this.rounds),n.isLE||(0,n.byteSwap32)(this.state32),this.posOut=0,this.pos=0}update(b){(0,t.aexists)(this);const{blockLen:I,state:M}=this;b=(0,n.toBytes)(b);const T=b.length;for(let g=0;g=M&&this.keccak();const f=Math.min(M-this.posOut,g-T);b.set(I.subarray(this.posOut,this.posOut+f),T),this.posOut+=f,T+=f}return b}xofInto(b){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(b)}xof(b){return(0,t.anumber)(b),this.xofInto(new Uint8Array(b))}digestInto(b){if((0,t.aoutput)(b,this),this.finished)throw new Error("digest() was already called");return this.writeInto(b),this.destroy(),b}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(b){const{blockLen:I,suffix:M,outputLen:T,rounds:g,enableXOF:f}=this;return b||(b=new L(I,M,T,f,g)),b.state32.set(this.state32),b.pos=this.pos,b.posOut=this.posOut,b.finished=this.finished,b.rounds=g,b.suffix=M,b.outputLen=T,b.enableXOF=f,b.destroyed=this.destroyed,b}}O.Keccak=L;const x=(y,b,I)=>(0,n.wrapConstructor)(()=>new L(b,y,I));O.sha3_224=x(6,144,224/8),O.sha3_256=x(6,136,256/8),O.sha3_384=x(6,104,384/8),O.sha3_512=x(6,72,512/8),O.keccak_224=x(1,144,224/8),O.keccak_256=x(1,136,256/8),O.keccak_384=x(1,104,384/8),O.keccak_512=x(1,72,512/8);const P=(y,b,I)=>(0,n.wrapXOFConstructorWithOpts)((M={})=>new L(b,y,M.dkLen===void 0?I:M.dkLen,!0));return O.shake128=P(31,168,128/8),O.shake256=P(31,136,256/8),O}var fe,We;function ft(){if(We)return fe;We=1;const{keccak_256:t}=Jt();function e(c){return Buffer.allocUnsafe(c).fill(0)}function n(c){return c.toString(2).length}function s(c,h){let _=c.toString(16);_.length%2!==0&&(_="0"+_);const v=_.match(/.{1,2}/g).map(L=>parseInt(L,16));for(;v.length"u")throw new Error("Not an array?");if(h=r(l),h!=="dynamic"&&h!==0&&c.length>h)throw new Error("Elements exceed array size: "+h);v=[],l=l.slice(0,l.lastIndexOf("[")),typeof c=="string"&&(c=JSON.parse(c));for(L in c)v.push(a(l,c[L]));if(h==="dynamic"){var x=a("uint256",c.length);v.unshift(x)}return Buffer.concat(v)}else{if(l==="bytes")return c=new Buffer(c),v=Buffer.concat([a("uint256",c.length),c]),c.length%32!==0&&(v=Buffer.concat([v,t.zeros(32-c.length%32)])),v;if(l.startsWith("bytes")){if(h=n(l),h<1||h>32)throw new Error("Invalid bytes width: "+h);return t.setLengthRight(c,32)}else if(l.startsWith("uint")){if(h=n(l),h%8||h<8||h>256)throw new Error("Invalid uint width: "+h);_=i(c);const P=t.bitLengthFromBigInt(_);if(P>h)throw new Error("Supplied uint exceeds width: "+h+" vs "+P);if(_<0)throw new Error("Supplied uint is negative");return t.bufferBEFromBigInt(_,32)}else if(l.startsWith("int")){if(h=n(l),h%8||h<8||h>256)throw new Error("Invalid int width: "+h);_=i(c);const P=t.bitLengthFromBigInt(_);if(P>h)throw new Error("Supplied int exceeds width: "+h+" vs "+P);const y=t.twosFromBigInt(_,256);return t.bufferBEFromBigInt(y,32)}else if(l.startsWith("ufixed")){if(h=s(l),_=i(c),_<0)throw new Error("Supplied ufixed is negative");return a("uint256",_*BigInt(2)**BigInt(h[1]))}else if(l.startsWith("fixed"))return h=s(l),a("int256",i(c)*BigInt(2)**BigInt(h[1]))}throw new Error("Unsupported or invalid type: "+l)}function d(l){return l==="string"||l==="bytes"||r(l)==="dynamic"}function u(l){return l.lastIndexOf("]")===l.length-1}function p(l,c){var h=[],_=[],v=32*l.length;for(var L in l){var x=e(l[L]),P=c[L],y=a(x,P);d(x)?(h.push(a("uint256",v)),_.push(y),v+=y.length):h.push(y)}return Buffer.concat(h.concat(_))}function m(l,c){if(l.length!==c.length)throw new Error("Number of types are not matching the values");for(var h,_,v=[],L=0;L32)throw new Error("Invalid bytes width: "+h);v.push(t.setLengthRight(P,h))}else if(x.startsWith("uint")){if(h=n(x),h%8||h<8||h>256)throw new Error("Invalid uint width: "+h);_=i(P);const y=t.bitLengthFromBigInt(_);if(y>h)throw new Error("Supplied uint exceeds width: "+h+" vs "+y);v.push(t.bufferBEFromBigInt(_,h/8))}else if(x.startsWith("int")){if(h=n(x),h%8||h<8||h>256)throw new Error("Invalid int width: "+h);_=i(P);const y=t.bitLengthFromBigInt(_);if(y>h)throw new Error("Supplied int exceeds width: "+h+" vs "+y);const b=t.twosFromBigInt(_,h);v.push(t.bufferBEFromBigInt(b,h/8))}else throw new Error("Unsupported or invalid type: "+x)}return Buffer.concat(v)}function k(l,c){return t.keccak(m(l,c))}return pe={rawEncode:p,solidityPack:m,soliditySHA3:k},pe}var ge,Ke;function Zt(){if(Ke)return ge;Ke=1;const t=ft(),e=Qt(),n={type:"object",properties:{types:{type:"object",additionalProperties:{type:"array",items:{type:"object",properties:{name:{type:"string"},type:{type:"string"}},required:["name","type"]}}},primaryType:{type:"string"},domain:{type:"object"},message:{type:"object"}},required:["types","primaryType","domain","message"]},s={encodeData(i,a,d,u=!0){const p=["bytes32"],m=[this.hashType(i,d)];if(u){const k=(l,c,h)=>{if(d[c]!==void 0)return["bytes32",h==null?"0x0000000000000000000000000000000000000000000000000000000000000000":t.keccak(this.encodeData(c,h,d,u))];if(h===void 0)throw new Error(`missing value for field ${l} of type ${c}`);if(c==="bytes")return["bytes32",t.keccak(h)];if(c==="string")return typeof h=="string"&&(h=Buffer.from(h,"utf8")),["bytes32",t.keccak(h)];if(c.lastIndexOf("]")===c.length-1){const _=c.slice(0,c.lastIndexOf("[")),v=h.map(L=>k(l,_,L));return["bytes32",t.keccak(e.rawEncode(v.map(([L])=>L),v.map(([,L])=>L)))]}return[c,h]};for(const l of d[i]){const[c,h]=k(l.name,l.type,a[l.name]);p.push(c),m.push(h)}}else for(const k of d[i]){let l=a[k.name];if(l!==void 0)if(k.type==="bytes")p.push("bytes32"),l=t.keccak(l),m.push(l);else if(k.type==="string")p.push("bytes32"),typeof l=="string"&&(l=Buffer.from(l,"utf8")),l=t.keccak(l),m.push(l);else if(d[k.type]!==void 0)p.push("bytes32"),l=t.keccak(this.encodeData(k.type,l,d,u)),m.push(l);else{if(k.type.lastIndexOf("]")===k.type.length-1)throw new Error("Arrays currently unimplemented in encodeData");p.push(k.type),m.push(l)}}return e.rawEncode(p,m)},encodeType(i,a){let d="",u=this.findTypeDependencies(i,a).filter(p=>p!==i);u=[i].concat(u.sort());for(const p of u){if(!a[p])throw new Error("No type definition specified: "+p);d+=p+"("+a[p].map(({name:k,type:l})=>l+" "+k).join(",")+")"}return d},findTypeDependencies(i,a,d=[]){if(i=i.match(/^\w*/)[0],d.includes(i)||a[i]===void 0)return d;d.push(i);for(const u of a[i])for(const p of this.findTypeDependencies(u.type,a,d))!d.includes(p)&&d.push(p);return d},hashStruct(i,a,d,u=!0){return t.keccak(this.encodeData(i,a,d,u))},hashType(i,a){return t.keccak(this.encodeType(i,a))},sanitizeData(i){const a={};for(const d in n.properties)i[d]&&(a[d]=i[d]);return a.types&&(a.types=Object.assign({EIP712Domain:[]},a.types)),a},hash(i,a=!0){const d=this.sanitizeData(i),u=[Buffer.from("1901","hex")];return u.push(this.hashStruct("EIP712Domain",d.domain,d.types,a)),d.primaryType!=="EIP712Domain"&&u.push(this.hashStruct(d.primaryType,d.message,d.types,a)),t.keccak(Buffer.concat(u))}};ge={TYPED_MESSAGE_SCHEMA:n,TypedDataUtils:s,hashForSignTypedDataLegacy:function(i){return r(i.data)},hashForSignTypedData_v3:function(i){return s.hash(i.data,!1)},hashForSignTypedData_v4:function(i){return s.hash(i.data)}};function r(i){const a=new Error("Expect argument to be non-empty array");if(typeof i!="object"||!i.length)throw a;const d=i.map(function(m){return m.type==="bytes"?t.toBuffer(m.value):m.value}),u=i.map(function(m){return m.type}),p=i.map(function(m){if(!m.name)throw a;return m.type+" "+m.name});return e.soliditySHA3(["bytes32","bytes32"],[e.soliditySHA3(new Array(i.length).fill("string"),p),e.soliditySHA3(u,d)])}return ge}var Xt=Zt();const re=vt(Xt),en="walletUsername",ke="Addresses",tn="AppVersion";function j(t){return t.errorMessage!==void 0}class nn{constructor(e){this.secret=e}async encrypt(e){const n=this.secret;if(n.length!==64)throw Error("secret must be 256 bits");const s=crypto.getRandomValues(new Uint8Array(12)),r=await crypto.subtle.importKey("raw",ae(n),{name:"aes-gcm"},!1,["encrypt","decrypt"]),i=new TextEncoder,a=await window.crypto.subtle.encrypt({name:"AES-GCM",iv:s},r,i.encode(e)),d=16,u=a.slice(a.byteLength-d),p=a.slice(0,a.byteLength-d),m=new Uint8Array(u),k=new Uint8Array(p),l=new Uint8Array([...s,...m,...k]);return Ie(l)}async decrypt(e){const n=this.secret;if(n.length!==64)throw Error("secret must be 256 bits");return new Promise((s,r)=>{(async function(){const i=await crypto.subtle.importKey("raw",ae(n),{name:"aes-gcm"},!1,["encrypt","decrypt"]),a=ae(e),d=a.slice(0,12),u=a.slice(12,28),p=a.slice(28),m=new Uint8Array([...p,...u]),k={name:"AES-GCM",iv:new Uint8Array(d)};try{const l=await window.crypto.subtle.decrypt(k,i,m),c=new TextDecoder;s(c.decode(l))}catch(l){r(l)}})()})}}class sn{constructor(e,n,s){this.linkAPIUrl=e,this.sessionId=n;const r=`${n}:${s}`;this.auth=`Basic ${btoa(r)}`}async markUnseenEventsAsSeen(e){return Promise.all(e.map(n=>fetch(`${this.linkAPIUrl}/events/${n.eventId}/seen`,{method:"POST",headers:{Authorization:this.auth}}))).catch(n=>console.error("Unabled to mark event as failed:",n))}async fetchUnseenEvents(){var e;const n=await fetch(`${this.linkAPIUrl}/events?unseen=true`,{headers:{Authorization:this.auth}});if(n.ok){const{events:s,error:r}=await n.json();if(r)throw new Error(`Check unseen events failed: ${r}`);const i=(e=s==null?void 0:s.filter(a=>a.event==="Web3Response").map(a=>({type:"Event",sessionId:this.sessionId,eventId:a.id,event:a.event,data:a.data})))!==null&&e!==void 0?e:[];return this.markUnseenEventsAsSeen(i),i}throw new Error(`Check unseen events failed: ${n.status}`)}}var z;(function(t){t[t.DISCONNECTED=0]="DISCONNECTED",t[t.CONNECTING=1]="CONNECTING",t[t.CONNECTED=2]="CONNECTED"})(z||(z={}));class rn{setConnectionStateListener(e){this.connectionStateListener=e}setIncomingDataListener(e){this.incomingDataListener=e}constructor(e,n=WebSocket){this.WebSocketClass=n,this.webSocket=null,this.pendingData=[],this.url=e.replace(/^http/,"ws")}async connect(){if(this.webSocket)throw new Error("webSocket object is not null");return new Promise((e,n)=>{var s;let r;try{this.webSocket=r=new this.WebSocketClass(this.url)}catch(i){n(i);return}(s=this.connectionStateListener)===null||s===void 0||s.call(this,z.CONNECTING),r.onclose=i=>{var a;this.clearWebSocket(),n(new Error(`websocket error ${i.code}: ${i.reason}`)),(a=this.connectionStateListener)===null||a===void 0||a.call(this,z.DISCONNECTED)},r.onopen=i=>{var a;e(),(a=this.connectionStateListener)===null||a===void 0||a.call(this,z.CONNECTED),this.pendingData.length>0&&([...this.pendingData].forEach(u=>this.sendData(u)),this.pendingData=[])},r.onmessage=i=>{var a,d;if(i.data==="h")(a=this.incomingDataListener)===null||a===void 0||a.call(this,{type:"Heartbeat"});else try{const u=JSON.parse(i.data);(d=this.incomingDataListener)===null||d===void 0||d.call(this,u)}catch{}}})}disconnect(){var e;const{webSocket:n}=this;if(n){this.clearWebSocket(),(e=this.connectionStateListener)===null||e===void 0||e.call(this,z.DISCONNECTED),this.connectionStateListener=void 0,this.incomingDataListener=void 0;try{n.close()}catch{}}}sendData(e){const{webSocket:n}=this;if(!n){this.pendingData.push(e),this.connect();return}n.send(e)}clearWebSocket(){const{webSocket:e}=this;e&&(this.webSocket=null,e.onclose=null,e.onerror=null,e.onmessage=null,e.onopen=null)}}const He=1e4,an=6e4;class on{constructor({session:e,linkAPIUrl:n,listener:s}){this.destroyed=!1,this.lastHeartbeatResponse=0,this.nextReqId=K(1),this._connected=!1,this._linked=!1,this.shouldFetchUnseenEventsOnConnect=!1,this.requestResolutions=new Map,this.handleSessionMetadataUpdated=i=>{if(!i)return;new Map([["__destroyed",this.handleDestroyed],["EthereumAddress",this.handleAccountUpdated],["WalletUsername",this.handleWalletUsernameUpdated],["AppVersion",this.handleAppVersionUpdated],["ChainId",d=>i.JsonRpcUrl&&this.handleChainUpdated(d,i.JsonRpcUrl)]]).forEach((d,u)=>{const p=i[u];p!==void 0&&d(p)})},this.handleDestroyed=i=>{var a;i==="1"&&((a=this.listener)===null||a===void 0||a.resetAndReload())},this.handleAccountUpdated=async i=>{var a;const d=await this.cipher.decrypt(i);(a=this.listener)===null||a===void 0||a.accountUpdated(d)},this.handleMetadataUpdated=async(i,a)=>{var d;const u=await this.cipher.decrypt(a);(d=this.listener)===null||d===void 0||d.metadataUpdated(i,u)},this.handleWalletUsernameUpdated=async i=>{this.handleMetadataUpdated(en,i)},this.handleAppVersionUpdated=async i=>{this.handleMetadataUpdated(tn,i)},this.handleChainUpdated=async(i,a)=>{var d;const u=await this.cipher.decrypt(i),p=await this.cipher.decrypt(a);(d=this.listener)===null||d===void 0||d.chainUpdated(u,p)},this.session=e,this.cipher=new nn(e.secret),this.listener=s;const r=new rn(`${n}/rpc`,WebSocket);r.setConnectionStateListener(async i=>{let a=!1;switch(i){case z.DISCONNECTED:if(!this.destroyed){const d=async()=>{await new Promise(u=>setTimeout(u,5e3)),this.destroyed||r.connect().catch(()=>{d()})};d()}break;case z.CONNECTED:a=await this.handleConnected(),this.updateLastHeartbeat(),setInterval(()=>{this.heartbeat()},He),this.shouldFetchUnseenEventsOnConnect&&this.fetchUnseenEventsAPI();break;case z.CONNECTING:break}this.connected!==a&&(this.connected=a)}),r.setIncomingDataListener(i=>{var a;switch(i.type){case"Heartbeat":this.updateLastHeartbeat();return;case"IsLinkedOK":case"Linked":{const d=i.type==="IsLinkedOK"?i.linked:void 0;this.linked=d||i.onlineGuests>0;break}case"GetSessionConfigOK":case"SessionConfigUpdated":{this.handleSessionMetadataUpdated(i.metadata);break}case"Event":{this.handleIncomingEvent(i);break}}i.id!==void 0&&((a=this.requestResolutions.get(i.id))===null||a===void 0||a(i))}),this.ws=r,this.http=new sn(n,e.id,e.key)}connect(){if(this.destroyed)throw new Error("instance is destroyed");this.ws.connect()}async destroy(){this.destroyed||(await this.makeRequest({type:"SetSessionConfig",id:K(this.nextReqId++),sessionId:this.session.id,metadata:{__destroyed:"1"}},{timeout:1e3}),this.destroyed=!0,this.ws.disconnect(),this.listener=void 0)}get connected(){return this._connected}set connected(e){this._connected=e}get linked(){return this._linked}set linked(e){var n,s;this._linked=e,e&&((n=this.onceLinked)===null||n===void 0||n.call(this)),(s=this.listener)===null||s===void 0||s.linkedUpdated(e)}setOnceLinked(e){return new Promise(n=>{this.linked?e().then(n):this.onceLinked=()=>{e().then(n),this.onceLinked=void 0}})}async handleIncomingEvent(e){var n;if(e.type!=="Event"||e.event!=="Web3Response")return;const s=await this.cipher.decrypt(e.data),r=JSON.parse(s);if(r.type!=="WEB3_RESPONSE")return;const{id:i,response:a}=r;(n=this.listener)===null||n===void 0||n.handleWeb3ResponseMessage(i,a)}async checkUnseenEvents(){if(!this.connected){this.shouldFetchUnseenEventsOnConnect=!0;return}await new Promise(e=>setTimeout(e,250));try{await this.fetchUnseenEventsAPI()}catch(e){console.error("Unable to check for unseen events",e)}}async fetchUnseenEventsAPI(){this.shouldFetchUnseenEventsOnConnect=!1,(await this.http.fetchUnseenEvents()).forEach(n=>this.handleIncomingEvent(n))}async publishEvent(e,n,s=!1){const r=await this.cipher.encrypt(JSON.stringify(Object.assign(Object.assign({},n),{origin:location.origin,location:location.href,relaySource:"coinbaseWalletExtension"in window&&window.coinbaseWalletExtension?"injected_sdk":"sdk"}))),i={type:"PublishEvent",id:K(this.nextReqId++),sessionId:this.session.id,event:e,data:r,callWebhook:s};return this.setOnceLinked(async()=>{const a=await this.makeRequest(i);if(a.type==="Fail")throw new Error(a.error||"failed to publish event");return a.eventId})}sendData(e){this.ws.sendData(JSON.stringify(e))}updateLastHeartbeat(){this.lastHeartbeatResponse=Date.now()}heartbeat(){if(Date.now()-this.lastHeartbeatResponse>He*2){this.ws.disconnect();return}try{this.ws.sendData("h")}catch{}}async makeRequest(e,n={timeout:an}){const s=e.id;this.sendData(e);let r;return Promise.race([new Promise((i,a)=>{r=window.setTimeout(()=>{a(new Error(`request ${s} timed out`))},n.timeout)}),new Promise(i=>{this.requestResolutions.set(s,a=>{clearTimeout(r),i(a),this.requestResolutions.delete(s)})})])}async handleConnected(){return(await this.makeRequest({type:"HostSession",id:K(this.nextReqId++),sessionId:this.session.id,sessionKey:this.session.key})).type==="Fail"?!1:(this.sendData({type:"IsLinked",id:K(this.nextReqId++),sessionId:this.session.id}),this.sendData({type:"GetSessionConfig",id:K(this.nextReqId++),sessionId:this.session.id}),!0)}}class cn{constructor(){this._nextRequestId=0,this.callbacks=new Map}makeRequestId(){this._nextRequestId=(this._nextRequestId+1)%2147483647;const e=this._nextRequestId,n=ot(e.toString(16));return this.callbacks.get(n)&&this.callbacks.delete(n),e}}const ze="session:id",Fe="session:secret",Ge="session:linked";class Q{constructor(e,n,s,r=!1){this.storage=e,this.id=n,this.secret=s,this.key=Et(It(`${n}, ${s} WalletLink`)),this._linked=!!r}static create(e){const n=V(16),s=V(32);return new Q(e,n,s).save()}static load(e){const n=e.getItem(ze),s=e.getItem(Ge),r=e.getItem(Fe);return n&&r?new Q(e,n,r,s==="1"):null}get linked(){return this._linked}set linked(e){this._linked=e,this.persistLinked()}save(){return this.storage.setItem(ze,this.id),this.storage.setItem(Fe,this.secret),this.persistLinked(),this}persistLinked(){this.storage.setItem(Ge,this._linked?"1":"0")}}function dn(){try{return window.frameElement!==null}catch{return!1}}function ln(){try{return dn()&&window.top?window.top.location:window.location}catch{return window.location}}function un(){var t;return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test((t=window==null?void 0:window.navigator)===null||t===void 0?void 0:t.userAgent)}function pt(){var t,e;return(e=(t=window==null?void 0:window.matchMedia)===null||t===void 0?void 0:t.call(window,"(prefers-color-scheme: dark)").matches)!==null&&e!==void 0?e:!1}const hn='@namespace svg "http://www.w3.org/2000/svg";.-cbwsdk-css-reset,.-cbwsdk-css-reset *{animation:none;animation-delay:0;animation-direction:normal;animation-duration:0;animation-fill-mode:none;animation-iteration-count:1;animation-name:none;animation-play-state:running;animation-timing-function:ease;backface-visibility:visible;background:0;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position:0 0;background-position-x:0;background-position-y:0;background-repeat:repeat;background-size:auto auto;border:0;border-style:none;border-width:medium;border-color:inherit;border-bottom:0;border-bottom-color:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-style:none;border-bottom-width:medium;border-collapse:separate;border-image:none;border-left:0;border-left-color:inherit;border-left-style:none;border-left-width:medium;border-radius:0;border-right:0;border-right-color:inherit;border-right-style:none;border-right-width:medium;border-spacing:0;border-top:0;border-top-color:inherit;border-top-left-radius:0;border-top-right-radius:0;border-top-style:none;border-top-width:medium;box-shadow:none;box-sizing:border-box;caption-side:top;clear:none;clip:auto;color:inherit;columns:auto;column-count:auto;column-fill:balance;column-gap:normal;column-rule:medium none currentColor;column-rule-color:currentColor;column-rule-style:none;column-rule-width:none;column-span:1;column-width:auto;counter-increment:none;counter-reset:none;direction:ltr;empty-cells:show;float:none;font:normal;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;height:auto;hyphens:none;letter-spacing:normal;line-height:normal;list-style:none;list-style-image:none;list-style-position:outside;list-style-type:disc;margin:0;margin-bottom:0;margin-left:0;margin-right:0;margin-top:0;opacity:1;orphans:0;outline:0;outline-color:invert;outline-style:none;outline-width:medium;overflow:visible;overflow-x:visible;overflow-y:visible;padding:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0;page-break-after:auto;page-break-before:auto;page-break-inside:auto;perspective:none;perspective-origin:50% 50%;pointer-events:auto;position:static;quotes:"\\201C" "\\201D" "\\2018" "\\2019";tab-size:8;table-layout:auto;text-align:inherit;text-align-last:auto;text-decoration:none;text-decoration-color:inherit;text-decoration-line:none;text-decoration-style:solid;text-indent:0;text-shadow:none;text-transform:none;transform:none;transform-style:flat;transition:none;transition-delay:0s;transition-duration:0s;transition-property:none;transition-timing-function:ease;unicode-bidi:normal;vertical-align:baseline;visibility:visible;white-space:normal;widows:0;word-spacing:normal;z-index:auto}.-cbwsdk-css-reset strong{font-weight:bold}.-cbwsdk-css-reset *{box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;line-height:1}.-cbwsdk-css-reset [class*=container]{margin:0;padding:0}.-cbwsdk-css-reset style{display:none}';function gt(){const t=document.createElement("style");t.type="text/css",t.appendChild(document.createTextNode(hn)),document.documentElement.appendChild(t)}const fn=".-cbwsdk-css-reset .-gear-container{margin-left:16px !important;margin-right:9px !important;display:flex;align-items:center;justify-content:center;width:24px;height:24px;transition:opacity .25s}.-cbwsdk-css-reset .-gear-container *{user-select:none}.-cbwsdk-css-reset .-gear-container svg{opacity:0;position:absolute}.-cbwsdk-css-reset .-gear-icon{height:12px;width:12px;z-index:10000}.-cbwsdk-css-reset .-cbwsdk-snackbar{align-items:flex-end;display:flex;flex-direction:column;position:fixed;right:0;top:0;z-index:2147483647}.-cbwsdk-css-reset .-cbwsdk-snackbar *{user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance{display:flex;flex-direction:column;margin:8px 16px 0 16px;overflow:visible;text-align:left;transform:translateX(0);transition:opacity .25s,transform .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header:hover .-gear-container svg{opacity:1}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header{display:flex;align-items:center;background:#fff;overflow:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-cblogo{margin:8px 8px 8px 8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-message{color:#000;font-size:13px;line-height:1.5;user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu{background:#fff;transition:opacity .25s ease-in-out,transform .25s linear,visibility 0s;visibility:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;opacity:0;flex-direction:column;padding-left:8px;padding-right:8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:last-child{margin-bottom:8px !important}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover{background:#f5f7f8;border-radius:6px;transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover span{color:#050f19;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover svg path{fill:#000;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item{visibility:inherit;height:35px;margin-top:8px;margin-bottom:0;display:flex;flex-direction:row;align-items:center;padding:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item *{visibility:inherit;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover{background:rgba(223,95,103,.2);transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover svg path{fill:#df5f67;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover span{color:#df5f67;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-info{color:#aaa;font-size:13px;margin:0 8px 0 32px;position:absolute}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-hidden{opacity:0;text-align:left;transform:translateX(25%);transition:opacity .5s linear}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-expanded .-cbwsdk-snackbar-instance-menu{opacity:1;display:flex;transform:translateY(8px);visibility:visible}",pn="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEuNDkyIDEwLjQxOWE4LjkzIDguOTMgMCAwMTguOTMtOC45M2gxMS4xNjNhOC45MyA4LjkzIDAgMDE4LjkzIDguOTN2MTEuMTYzYTguOTMgOC45MyAwIDAxLTguOTMgOC45M0gxMC40MjJhOC45MyA4LjkzIDAgMDEtOC45My04LjkzVjEwLjQxOXoiIGZpbGw9IiMxNjUyRjAiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTEwLjQxOSAwSDIxLjU4QzI3LjMzNSAwIDMyIDQuNjY1IDMyIDEwLjQxOVYyMS41OEMzMiAyNy4zMzUgMjcuMzM1IDMyIDIxLjU4MSAzMkgxMC40MkM0LjY2NSAzMiAwIDI3LjMzNSAwIDIxLjU4MVYxMC40MkMwIDQuNjY1IDQuNjY1IDAgMTAuNDE5IDB6bTAgMS40ODhhOC45MyA4LjkzIDAgMDAtOC45MyA4LjkzdjExLjE2M2E4LjkzIDguOTMgMCAwMDguOTMgOC45M0gyMS41OGE4LjkzIDguOTMgMCAwMDguOTMtOC45M1YxMC40MmE4LjkzIDguOTMgMCAwMC04LjkzLTguOTNIMTAuNDJ6IiBmaWxsPSIjZmZmIi8+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNS45OTggMjYuMDQ5Yy01LjU0OSAwLTEwLjA0Ny00LjQ5OC0xMC4wNDctMTAuMDQ3IDAtNS41NDggNC40OTgtMTAuMDQ2IDEwLjA0Ny0xMC4wNDYgNS41NDggMCAxMC4wNDYgNC40OTggMTAuMDQ2IDEwLjA0NiAwIDUuNTQ5LTQuNDk4IDEwLjA0Ny0xMC4wNDYgMTAuMDQ3eiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0xMi43NjIgMTQuMjU0YzAtLjgyMi42NjctMS40ODkgMS40ODktMS40ODloMy40OTdjLjgyMiAwIDEuNDg4LjY2NiAxLjQ4OCAxLjQ4OXYzLjQ5N2MwIC44MjItLjY2NiAxLjQ4OC0xLjQ4OCAxLjQ4OGgtMy40OTdhMS40ODggMS40ODggMCAwMS0xLjQ4OS0xLjQ4OHYtMy40OTh6IiBmaWxsPSIjMTY1MkYwIi8+PC9zdmc+",gn="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDYuNzV2LTEuNWwtMS43Mi0uNTdjLS4wOC0uMjctLjE5LS41Mi0uMzItLjc3bC44MS0xLjYyLTEuMDYtMS4wNi0xLjYyLjgxYy0uMjQtLjEzLS41LS4yNC0uNzctLjMyTDYuNzUgMGgtMS41bC0uNTcgMS43MmMtLjI3LjA4LS41My4xOS0uNzcuMzJsLTEuNjItLjgxLTEuMDYgMS4wNi44MSAxLjYyYy0uMTMuMjQtLjI0LjUtLjMyLjc3TDAgNS4yNXYxLjVsMS43Mi41N2MuMDguMjcuMTkuNTMuMzIuNzdsLS44MSAxLjYyIDEuMDYgMS4wNiAxLjYyLS44MWMuMjQuMTMuNS4yMy43Ny4zMkw1LjI1IDEyaDEuNWwuNTctMS43MmMuMjctLjA4LjUyLS4xOS43Ny0uMzJsMS42Mi44MSAxLjA2LTEuMDYtLjgxLTEuNjJjLjEzLS4yNC4yMy0uNS4zMi0uNzdMMTIgNi43NXpNNiA4LjVhMi41IDIuNSAwIDAxMC01IDIuNSAyLjUgMCAwMTAgNXoiIGZpbGw9IiMwNTBGMTkiLz48L3N2Zz4=";class wn{constructor(){this.items=new Map,this.nextItemKey=0,this.root=null,this.darkMode=pt()}attach(e){this.root=document.createElement("div"),this.root.className="-cbwsdk-snackbar-root",e.appendChild(this.root),this.render()}presentItem(e){const n=this.nextItemKey++;return this.items.set(n,e),this.render(),()=>{this.items.delete(n),this.render()}}clear(){this.items.clear(),this.render()}render(){this.root&&we(R("div",null,R(wt,{darkMode:this.darkMode},Array.from(this.items.entries()).map(([e,n])=>R(bn,Object.assign({},n,{key:e}))))),this.root)}}const wt=t=>R("div",{class:ee("-cbwsdk-snackbar-container")},R("style",null,fn),R("div",{class:"-cbwsdk-snackbar"},t.children)),bn=({autoExpand:t,message:e,menuItems:n})=>{const[s,r]=Le(!0),[i,a]=Le(t??!1);_t(()=>{const u=[window.setTimeout(()=>{r(!1)},1),window.setTimeout(()=>{a(!0)},1e4)];return()=>{u.forEach(window.clearTimeout)}});const d=()=>{a(!i)};return R("div",{class:ee("-cbwsdk-snackbar-instance",s&&"-cbwsdk-snackbar-instance-hidden",i&&"-cbwsdk-snackbar-instance-expanded")},R("div",{class:"-cbwsdk-snackbar-instance-header",onClick:d},R("img",{src:pn,class:"-cbwsdk-snackbar-instance-header-cblogo"})," ",R("div",{class:"-cbwsdk-snackbar-instance-header-message"},e),R("div",{class:"-gear-container"},!i&&R("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},R("circle",{cx:"12",cy:"12",r:"12",fill:"#F5F7F8"})),R("img",{src:gn,class:"-gear-icon",title:"Expand"}))),n&&n.length>0&&R("div",{class:"-cbwsdk-snackbar-instance-menu"},n.map((u,p)=>R("div",{class:ee("-cbwsdk-snackbar-instance-menu-item",u.isRed&&"-cbwsdk-snackbar-instance-menu-item-is-red"),onClick:u.onClick,key:p},R("svg",{width:u.svgWidth,height:u.svgHeight,viewBox:"0 0 10 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},R("path",{"fill-rule":u.defaultFillRule,"clip-rule":u.defaultClipRule,d:u.path,fill:"#AAAAAA"})),R("span",{class:ee("-cbwsdk-snackbar-instance-menu-item-info",u.isRed&&"-cbwsdk-snackbar-instance-menu-item-info-is-red")},u.info)))))};class mn{constructor(){this.attached=!1,this.snackbar=new wn}attach(){if(this.attached)throw new Error("Coinbase Wallet SDK UI is already attached");const e=document.documentElement,n=document.createElement("div");n.className="-cbwsdk-css-reset",e.appendChild(n),this.snackbar.attach(n),this.attached=!0,gt()}showConnecting(e){let n;return e.isUnlinkedErrorState?n={autoExpand:!0,message:"Connection lost",menuItems:[{isRed:!1,info:"Reset connection",svgWidth:"10",svgHeight:"11",path:"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z",defaultFillRule:"evenodd",defaultClipRule:"evenodd",onClick:e.onResetConnection}]}:n={message:"Confirm on phone",menuItems:[{isRed:!0,info:"Cancel transaction",svgWidth:"11",svgHeight:"11",path:"M10.3711 1.52346L9.21775 0.370117L5.37109 4.21022L1.52444 0.370117L0.371094 1.52346L4.2112 5.37012L0.371094 9.21677L1.52444 10.3701L5.37109 6.53001L9.21775 10.3701L10.3711 9.21677L6.53099 5.37012L10.3711 1.52346Z",defaultFillRule:"inherit",defaultClipRule:"inherit",onClick:e.onCancel},{isRed:!1,info:"Reset connection",svgWidth:"10",svgHeight:"11",path:"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z",defaultFillRule:"evenodd",defaultClipRule:"evenodd",onClick:e.onResetConnection}]},this.snackbar.presentItem(n)}}const yn=".-cbwsdk-css-reset .-cbwsdk-redirect-dialog-backdrop{position:fixed;top:0;left:0;right:0;bottom:0;transition:opacity .25s;background-color:rgba(10,11,13,.5)}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-backdrop-hidden{opacity:0}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box{display:block;position:fixed;top:50%;left:50%;transform:translate(-50%, -50%);padding:20px;border-radius:8px;background-color:#fff;color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box p{display:block;font-weight:400;font-size:14px;line-height:20px;padding-bottom:12px;color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box button{appearance:none;border:none;background:none;color:#0052ff;padding:0;text-decoration:none;display:block;font-weight:600;font-size:16px;line-height:24px}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.dark{background-color:#0a0b0d;color:#fff}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.dark button{color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.light{background-color:#fff;color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.light button{color:#0052ff}";class kn{constructor(){this.root=null,this.darkMode=pt()}attach(){const e=document.documentElement;this.root=document.createElement("div"),this.root.className="-cbwsdk-css-reset",e.appendChild(this.root),gt()}present(e){this.render(e)}clear(){this.render(null)}render(e){this.root&&(we(null,this.root),e&&we(R(vn,Object.assign({},e,{onDismiss:()=>{this.clear()},darkMode:this.darkMode})),this.root))}}const vn=({title:t,buttonText:e,darkMode:n,onButtonClick:s,onDismiss:r})=>{const i=n?"dark":"light";return R(wt,{darkMode:n},R("div",{class:"-cbwsdk-redirect-dialog"},R("style",null,yn),R("div",{class:"-cbwsdk-redirect-dialog-backdrop",onClick:r}),R("div",{class:ee("-cbwsdk-redirect-dialog-box",i)},R("p",null,t),R("button",{onClick:s},e))))},En="https://keys.coinbase.com/connect",In="http://rpc.wallet.coinbase.com",Ye="https://www.walletlink.org",Sn="https://go.cb-w.com/walletlink";class $e{constructor(){this.attached=!1,this.redirectDialog=new kn}attach(){if(this.attached)throw new Error("Coinbase Wallet SDK UI is already attached");this.redirectDialog.attach(),this.attached=!0}redirectToCoinbaseWallet(e){const n=new URL(Sn);n.searchParams.append("redirect_url",ln().href),e&&n.searchParams.append("wl_url",e);const s=document.createElement("a");s.target="cbw-opener",s.href=n.href,s.rel="noreferrer noopener",s.click()}openCoinbaseWalletDeeplink(e){this.redirectDialog.present({title:"Redirecting to Coinbase Wallet...",buttonText:"Open",onButtonClick:()=>{this.redirectToCoinbaseWallet(e)}}),setTimeout(()=>{this.redirectToCoinbaseWallet(e)},99)}showConnecting(e){return()=>{this.redirectDialog.clear()}}}class H{constructor(e){this.chainCallbackParams={chainId:"",jsonRpcUrl:""},this.isMobileWeb=un(),this.linkedUpdated=i=>{this.isLinked=i;const a=this.storage.getItem(ke);if(i&&(this._session.linked=i),this.isUnlinkedErrorState=!1,a){const d=a.split(" "),u=this.storage.getItem("IsStandaloneSigning")==="true";d[0]!==""&&!i&&this._session.linked&&!u&&(this.isUnlinkedErrorState=!0)}},this.metadataUpdated=(i,a)=>{this.storage.setItem(i,a)},this.chainUpdated=(i,a)=>{this.chainCallbackParams.chainId===i&&this.chainCallbackParams.jsonRpcUrl===a||(this.chainCallbackParams={chainId:i,jsonRpcUrl:a},this.chainCallback&&this.chainCallback(a,Number.parseInt(i,10)))},this.accountUpdated=i=>{this.accountsCallback&&this.accountsCallback([i]),H.accountRequestCallbackIds.size>0&&(Array.from(H.accountRequestCallbackIds.values()).forEach(a=>{this.invokeCallback(a,{method:"requestEthereumAccounts",result:[i]})}),H.accountRequestCallbackIds.clear())},this.resetAndReload=this.resetAndReload.bind(this),this.linkAPIUrl=e.linkAPIUrl,this.storage=e.storage,this.metadata=e.metadata,this.accountsCallback=e.accountsCallback,this.chainCallback=e.chainCallback;const{session:n,ui:s,connection:r}=this.subscribe();this._session=n,this.connection=r,this.relayEventManager=new cn,this.ui=s,this.ui.attach()}subscribe(){const e=Q.load(this.storage)||Q.create(this.storage),{linkAPIUrl:n}=this,s=new on({session:e,linkAPIUrl:n,listener:this}),r=this.isMobileWeb?new $e:new mn;return s.connect(),{session:e,ui:r,connection:s}}resetAndReload(){this.connection.destroy().then(()=>{const e=Q.load(this.storage);(e==null?void 0:e.id)===this._session.id&&q.clearAll(),document.location.reload()}).catch(e=>{})}signEthereumTransaction(e){return this.sendRequest({method:"signEthereumTransaction",params:{fromAddress:e.fromAddress,toAddress:e.toAddress,weiValue:W(e.weiValue),data:te(e.data,!0),nonce:e.nonce,gasPriceInWei:e.gasPriceInWei?W(e.gasPriceInWei):null,maxFeePerGas:e.gasPriceInWei?W(e.gasPriceInWei):null,maxPriorityFeePerGas:e.gasPriceInWei?W(e.gasPriceInWei):null,gasLimit:e.gasLimit?W(e.gasLimit):null,chainId:e.chainId,shouldSubmit:!1}})}signAndSubmitEthereumTransaction(e){return this.sendRequest({method:"signEthereumTransaction",params:{fromAddress:e.fromAddress,toAddress:e.toAddress,weiValue:W(e.weiValue),data:te(e.data,!0),nonce:e.nonce,gasPriceInWei:e.gasPriceInWei?W(e.gasPriceInWei):null,maxFeePerGas:e.maxFeePerGas?W(e.maxFeePerGas):null,maxPriorityFeePerGas:e.maxPriorityFeePerGas?W(e.maxPriorityFeePerGas):null,gasLimit:e.gasLimit?W(e.gasLimit):null,chainId:e.chainId,shouldSubmit:!0}})}submitEthereumTransaction(e,n){return this.sendRequest({method:"submitEthereumTransaction",params:{signedTransaction:te(e,!0),chainId:n}})}getWalletLinkSession(){return this._session}sendRequest(e){let n=null;const s=V(8),r=i=>{this.publishWeb3RequestCanceledEvent(s),this.handleErrorResponse(s,e.method,i),n==null||n()};return new Promise((i,a)=>{n=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:r,onResetConnection:this.resetAndReload}),this.relayEventManager.callbacks.set(s,d=>{if(n==null||n(),j(d))return a(new Error(d.errorMessage));i(d)}),this.publishWeb3RequestEvent(s,e)})}publishWeb3RequestEvent(e,n){const s={type:"WEB3_REQUEST",id:e,request:n};this.publishEvent("Web3Request",s,!0).then(r=>{}).catch(r=>{this.handleWeb3ResponseMessage(s.id,{method:n.method,errorMessage:r.message})}),this.isMobileWeb&&this.openCoinbaseWalletDeeplink(n.method)}openCoinbaseWalletDeeplink(e){if(this.ui instanceof $e)switch(e){case"requestEthereumAccounts":case"switchEthereumChain":return;default:window.addEventListener("blur",()=>{window.addEventListener("focus",()=>{this.connection.checkUnseenEvents()},{once:!0})},{once:!0}),this.ui.openCoinbaseWalletDeeplink();break}}publishWeb3RequestCanceledEvent(e){const n={type:"WEB3_REQUEST_CANCELED",id:e};this.publishEvent("Web3RequestCanceled",n,!1).then()}publishEvent(e,n,s){return this.connection.publishEvent(e,n,s)}handleWeb3ResponseMessage(e,n){if(n.method==="requestEthereumAccounts"){H.accountRequestCallbackIds.forEach(s=>this.invokeCallback(s,n)),H.accountRequestCallbackIds.clear();return}this.invokeCallback(e,n)}handleErrorResponse(e,n,s){var r;const i=(r=s==null?void 0:s.message)!==null&&r!==void 0?r:"Unspecified error message.";this.handleWeb3ResponseMessage(e,{method:n,errorMessage:i})}invokeCallback(e,n){const s=this.relayEventManager.callbacks.get(e);s&&(s(n),this.relayEventManager.callbacks.delete(e))}requestEthereumAccounts(){const{appName:e,appLogoUrl:n}=this.metadata,s={method:"requestEthereumAccounts",params:{appName:e,appLogoUrl:n}},r=V(8);return new Promise((i,a)=>{this.relayEventManager.callbacks.set(r,d=>{if(j(d))return a(new Error(d.errorMessage));i(d)}),H.accountRequestCallbackIds.add(r),this.publishWeb3RequestEvent(r,s)})}watchAsset(e,n,s,r,i,a){const d={method:"watchAsset",params:{type:e,options:{address:n,symbol:s,decimals:r,image:i},chainId:a}};let u=null;const p=V(8),m=k=>{this.publishWeb3RequestCanceledEvent(p),this.handleErrorResponse(p,d.method,k),u==null||u()};return u=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:m,onResetConnection:this.resetAndReload}),new Promise((k,l)=>{this.relayEventManager.callbacks.set(p,c=>{if(u==null||u(),j(c))return l(new Error(c.errorMessage));k(c)}),this.publishWeb3RequestEvent(p,d)})}addEthereumChain(e,n,s,r,i,a){const d={method:"addEthereumChain",params:{chainId:e,rpcUrls:n,blockExplorerUrls:r,chainName:i,iconUrls:s,nativeCurrency:a}};let u=null;const p=V(8),m=k=>{this.publishWeb3RequestCanceledEvent(p),this.handleErrorResponse(p,d.method,k),u==null||u()};return u=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:m,onResetConnection:this.resetAndReload}),new Promise((k,l)=>{this.relayEventManager.callbacks.set(p,c=>{if(u==null||u(),j(c))return l(new Error(c.errorMessage));k(c)}),this.publishWeb3RequestEvent(p,d)})}switchEthereumChain(e,n){const s={method:"switchEthereumChain",params:Object.assign({chainId:e},{address:n})};let r=null;const i=V(8),a=d=>{this.publishWeb3RequestCanceledEvent(i),this.handleErrorResponse(i,s.method,d),r==null||r()};return r=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:a,onResetConnection:this.resetAndReload}),new Promise((d,u)=>{this.relayEventManager.callbacks.set(i,p=>{if(r==null||r(),j(p)&&p.errorCode)return u(A.provider.custom({code:p.errorCode,message:"Unrecognized chain ID. Try adding the chain using addEthereumChain first."}));if(j(p))return u(new Error(p.errorMessage));d(p)}),this.publishWeb3RequestEvent(i,s)})}}H.accountRequestCallbackIds=new Set;const Ve="DefaultChainId",Je="DefaultJsonRpcUrl";class bt{constructor(e){this._relay=null,this._addresses=[],this.metadata=e.metadata,this._storage=new q("walletlink",Ye),this.callback=e.callback||null;const n=this._storage.getItem(ke);if(n){const s=n.split(" ");s[0]!==""&&(this._addresses=s.map(r=>F(r)))}this.initializeRelay()}getSession(){const e=this.initializeRelay(),{id:n,secret:s}=e.getWalletLinkSession();return{id:n,secret:s}}async handshake(){await this._eth_requestAccounts()}get selectedAddress(){return this._addresses[0]||void 0}get jsonRpcUrl(){var e;return(e=this._storage.getItem(Je))!==null&&e!==void 0?e:void 0}set jsonRpcUrl(e){this._storage.setItem(Je,e)}updateProviderInfo(e,n){var s;this.jsonRpcUrl=e;const r=this.getChainId();this._storage.setItem(Ve,n.toString(10)),ne(n)!==r&&((s=this.callback)===null||s===void 0||s.call(this,"chainChanged",Y(n)))}async watchAsset(e){const n=Array.isArray(e)?e[0]:e;if(!n.type)throw A.rpc.invalidParams("Type is required");if((n==null?void 0:n.type)!=="ERC20")throw A.rpc.invalidParams(`Asset of type '${n.type}' is not supported`);if(!(n!=null&&n.options))throw A.rpc.invalidParams("Options are required");if(!(n!=null&&n.options.address))throw A.rpc.invalidParams("Address is required");const s=this.getChainId(),{address:r,symbol:i,image:a,decimals:d}=n.options,p=await this.initializeRelay().watchAsset(n.type,r,i,d,a,s==null?void 0:s.toString());return j(p)?!1:!!p.result}async addEthereumChain(e){var n,s;const r=e[0];if(((n=r.rpcUrls)===null||n===void 0?void 0:n.length)===0)throw A.rpc.invalidParams("please pass in at least 1 rpcUrl");if(!r.chainName||r.chainName.trim()==="")throw A.rpc.invalidParams("chainName is a required field");if(!r.nativeCurrency)throw A.rpc.invalidParams("nativeCurrency is a required field");const i=Number.parseInt(r.chainId,16);if(i===this.getChainId())return!1;const a=this.initializeRelay(),{rpcUrls:d=[],blockExplorerUrls:u=[],chainName:p,iconUrls:m=[],nativeCurrency:k}=r,l=await a.addEthereumChain(i.toString(),d,m,u,p,k);if(j(l))return!1;if(((s=l.result)===null||s===void 0?void 0:s.isApproved)===!0)return this.updateProviderInfo(d[0],i),null;throw A.rpc.internal("unable to add ethereum chain")}async switchEthereumChain(e){const n=e[0],s=Number.parseInt(n.chainId,16),i=await this.initializeRelay().switchEthereumChain(s.toString(10),this.selectedAddress||void 0);if(j(i))throw i;const a=i.result;return a.isApproved&&a.rpcUrl.length>0&&this.updateProviderInfo(a.rpcUrl,s),null}async cleanup(){this.callback=null,this._relay&&this._relay.resetAndReload(),this._storage.clear()}_setAddresses(e,n){var s;if(!Array.isArray(e))throw new Error("addresses is not an array");const r=e.map(i=>F(i));JSON.stringify(r)!==JSON.stringify(this._addresses)&&(this._addresses=r,(s=this.callback)===null||s===void 0||s.call(this,"accountsChanged",r),this._storage.setItem(ke,r.join(" ")))}async request(e){const n=e.params||[];switch(e.method){case"eth_accounts":return[...this._addresses];case"eth_coinbase":return this.selectedAddress||null;case"net_version":return this.getChainId().toString(10);case"eth_chainId":return Y(this.getChainId());case"eth_requestAccounts":return this._eth_requestAccounts();case"eth_ecRecover":case"personal_ecRecover":return this.ecRecover(e);case"personal_sign":return this.personalSign(e);case"eth_signTransaction":return this._eth_signTransaction(n);case"eth_sendRawTransaction":return this._eth_sendRawTransaction(n);case"eth_sendTransaction":return this._eth_sendTransaction(n);case"eth_signTypedData_v1":case"eth_signTypedData_v3":case"eth_signTypedData_v4":case"eth_signTypedData":return this.signTypedData(e);case"wallet_addEthereumChain":return this.addEthereumChain(n);case"wallet_switchEthereumChain":return this.switchEthereumChain(n);case"wallet_watchAsset":return this.watchAsset(n);default:if(!this.jsonRpcUrl)throw A.rpc.internal("No RPC URL set for chain");return Ce(e,this.jsonRpcUrl)}}_ensureKnownAddress(e){const n=F(e);if(!this._addresses.map(r=>F(r)).includes(n))throw new Error("Unknown Ethereum address")}_prepareTransactionParams(e){const n=e.from?F(e.from):this.selectedAddress;if(!n)throw new Error("Ethereum address is unavailable");this._ensureKnownAddress(n);const s=e.to?F(e.to):null,r=e.value!=null?Z(e.value):BigInt(0),i=e.data?ye(e.data):Buffer.alloc(0),a=e.nonce!=null?ne(e.nonce):null,d=e.gasPrice!=null?Z(e.gasPrice):null,u=e.maxFeePerGas!=null?Z(e.maxFeePerGas):null,p=e.maxPriorityFeePerGas!=null?Z(e.maxPriorityFeePerGas):null,m=e.gas!=null?Z(e.gas):null,k=e.chainId?ne(e.chainId):this.getChainId();return{fromAddress:n,toAddress:s,weiValue:r,data:i,nonce:a,gasPriceInWei:d,maxFeePerGas:u,maxPriorityFeePerGas:p,gasLimit:m,chainId:k}}async ecRecover(e){const{method:n,params:s}=e;if(!Array.isArray(s))throw A.rpc.invalidParams();const i=await this.initializeRelay().sendRequest({method:"ethereumAddressFromSignedMessage",params:{message:ce(s[0]),signature:ce(s[1]),addPrefix:n==="personal_ecRecover"}});if(j(i))throw i;return i.result}getChainId(){var e;return Number.parseInt((e=this._storage.getItem(Ve))!==null&&e!==void 0?e:"1",10)}async _eth_requestAccounts(){var e,n;if(this._addresses.length>0)return(e=this.callback)===null||e===void 0||e.call(this,"connect",{chainId:Y(this.getChainId())}),this._addresses;const r=await this.initializeRelay().requestEthereumAccounts();if(j(r))throw r;if(!r.result)throw new Error("accounts received is empty");return this._setAddresses(r.result),(n=this.callback)===null||n===void 0||n.call(this,"connect",{chainId:Y(this.getChainId())}),this._addresses}async personalSign({params:e}){if(!Array.isArray(e))throw A.rpc.invalidParams();const n=e[1],s=e[0];this._ensureKnownAddress(n);const i=await this.initializeRelay().sendRequest({method:"signEthereumMessage",params:{address:F(n),message:ce(s),addPrefix:!0,typedDataJson:null}});if(j(i))throw i;return i.result}async _eth_signTransaction(e){const n=this._prepareTransactionParams(e[0]||{}),r=await this.initializeRelay().signEthereumTransaction(n);if(j(r))throw r;return r.result}async _eth_sendRawTransaction(e){const n=ye(e[0]),r=await this.initializeRelay().submitEthereumTransaction(n,this.getChainId());if(j(r))throw r;return r.result}async _eth_sendTransaction(e){const n=this._prepareTransactionParams(e[0]||{}),r=await this.initializeRelay().signAndSubmitEthereumTransaction(n);if(j(r))throw r;return r.result}async signTypedData(e){const{method:n,params:s}=e;if(!Array.isArray(s))throw A.rpc.invalidParams();const r=p=>{const m={eth_signTypedData_v1:re.hashForSignTypedDataLegacy,eth_signTypedData_v3:re.hashForSignTypedData_v3,eth_signTypedData_v4:re.hashForSignTypedData_v4,eth_signTypedData:re.hashForSignTypedData_v4};return te(m[n]({data:Tt(p)}),!0)},i=s[n==="eth_signTypedData_v1"?1:0],a=s[n==="eth_signTypedData_v1"?0:1];this._ensureKnownAddress(i);const u=await this.initializeRelay().sendRequest({method:"signEthereumMessage",params:{address:F(i),message:r(a),typedDataJson:JSON.stringify(a,null,2),addPrefix:!1}});if(j(u))throw u;return u.result}initializeRelay(){return this._relay||(this._relay=new H({linkAPIUrl:Ye,storage:this._storage,metadata:this.metadata,accountsCallback:this._setAddresses.bind(this),chainCallback:this.updateProviderInfo.bind(this)})),this._relay}}const mt="SignerType",yt=new q("CBWSDK","SignerConfigurator");function _n(){return yt.getItem(mt)}function Cn(t){yt.setItem(mt,t)}async function An(t){const{communicator:e,metadata:n,handshakeRequest:s,callback:r}=t;xn(e,n,r).catch(()=>{});const i={id:crypto.randomUUID(),event:"selectSignerType",data:Object.assign(Object.assign({},t.preference),{handshakeRequest:s})},{data:a}=await e.postRequestAndWaitForResponse(i);return a}function Ln(t){const{signerType:e,metadata:n,communicator:s,callback:r}=t;switch(e){case"scw":return new Gt({metadata:n,callback:r,communicator:s});case"walletlink":return new bt({metadata:n,callback:r})}}async function xn(t,e,n){await t.onMessage(({event:r})=>r==="WalletLinkSessionRequest");const s=new bt({metadata:e,callback:n});t.postMessage({event:"WalletLinkUpdate",data:{session:s.getSession()}}),await s.handshake(),t.postMessage({event:"WalletLinkUpdate",data:{connected:!0}})}const Mn=`Coinbase Wallet SDK requires the Cross-Origin-Opener-Policy header to not be set to 'same-origin'. This is to ensure that the SDK can communicate with the Coinbase Smart Wallet app. + +Please see https://www.smartwallet.dev/guides/tips/popup-tips#cross-origin-opener-policy for more information.`,Rn=()=>{let t;return{getCrossOriginOpenerPolicy:()=>t===void 0?"undefined":t,checkCrossOriginOpenerPolicy:async()=>{if(typeof window>"u"){t="non-browser-env";return}try{const e=`${window.location.origin}${window.location.pathname}`,n=await fetch(e,{method:"HEAD"});if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);const s=n.headers.get("Cross-Origin-Opener-Policy");t=s??"null",t==="same-origin"&&console.error(Mn)}catch(e){console.error("Error checking Cross-Origin-Opener-Policy:",e.message),t="error"}}}},{checkCrossOriginOpenerPolicy:Pn,getCrossOriginOpenerPolicy:Tn}=Rn(),Qe=420,Ze=540;function On(t){const e=(window.innerWidth-Qe)/2+window.screenX,n=(window.innerHeight-Ze)/2+window.screenY;Dn(t);const s=`wallet_${crypto.randomUUID()}`,r=window.open(t,s,`width=${Qe}, height=${Ze}, left=${e}, top=${n}`);if(r==null||r.focus(),!r)throw A.rpc.internal("Pop up window failed to open");return r}function Nn(t){t&&!t.closed&&t.close()}function Dn(t){const e={sdkName:ut,sdkVersion:ie,origin:window.location.origin,coop:Tn()};for(const[n,s]of Object.entries(e))t.searchParams.append(n,s.toString())}class jn{constructor({url:e=En,metadata:n,preference:s}){this.popup=null,this.listeners=new Map,this.postMessage=async r=>{(await this.waitForPopupLoaded()).postMessage(r,this.url.origin)},this.postRequestAndWaitForResponse=async r=>{const i=this.onMessage(({requestId:a})=>a===r.id);return this.postMessage(r),await i},this.onMessage=async r=>new Promise((i,a)=>{const d=u=>{if(u.origin!==this.url.origin)return;const p=u.data;r(p)&&(i(p),window.removeEventListener("message",d),this.listeners.delete(d))};window.addEventListener("message",d),this.listeners.set(d,{reject:a})}),this.disconnect=()=>{Nn(this.popup),this.popup=null,this.listeners.forEach(({reject:r},i)=>{r(A.provider.userRejectedRequest("Request rejected")),window.removeEventListener("message",i)}),this.listeners.clear()},this.waitForPopupLoaded=async()=>this.popup&&!this.popup.closed?(this.popup.focus(),this.popup):(this.popup=On(this.url),this.onMessage(({event:r})=>r==="PopupUnload").then(this.disconnect).catch(()=>{}),this.onMessage(({event:r})=>r==="PopupLoaded").then(r=>{this.postMessage({requestId:r.id,data:{version:ie,metadata:this.metadata,preference:this.preference,location:window.location.toString()}})}).then(()=>{if(!this.popup)throw A.rpc.internal();return this.popup})),this.url=new URL(e),this.metadata=n,this.preference=s}}function Un(t){const e=Lt(Bn(t),{shouldIncludeStack:!0}),n=new URL("https://docs.cloud.coinbase.com/wallet-sdk/docs/errors");return n.searchParams.set("version",ie),n.searchParams.set("code",e.code.toString()),n.searchParams.set("message",e.message),Object.assign(Object.assign({},e),{docUrl:n.href})}function Bn(t){var e;if(typeof t=="string")return{message:t,code:D.rpc.internal};if(j(t)){const n=t.errorMessage,s=(e=t.errorCode)!==null&&e!==void 0?e:n.match(/(denied|rejected)/i)?D.provider.userRejectedRequest:void 0;return Object.assign(Object.assign({},t),{message:n,code:s,data:{method:t.method}})}return t}class Wn extends St{}var qn=function(t,e){var n={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(n[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,s=Object.getOwnPropertySymbols(t);r(r||(r=zn(s)),r)}}export{$n as createCoinbaseWalletSDK}; diff --git a/web3game/.vercel/output/static/assets/index-DcIuyBCN.js b/web3game/.vercel/output/static/assets/index-DcIuyBCN.js new file mode 100644 index 0000000000..b4bb0537e0 --- /dev/null +++ b/web3game/.vercel/output/static/assets/index-DcIuyBCN.js @@ -0,0 +1,64 @@ +import{i as f,b as h,r as b,x as g,f as y}from"./index-DVkBgnkX.js";import{n as u,c as w,o as v}from"./if-defined-DVOmkLu5.js";var p;(function(e){e.Google="google",e.Github="github",e.Apple="apple",e.Facebook="facebook",e.X="x",e.Discord="discord",e.Farcaster="farcaster"})(p||(p={}));const m=f` + :host { + display: flex; + justify-content: center; + align-items: center; + width: 40px; + height: 40px; + border-radius: var(--wui-border-radius-3xl); + border: 1px solid var(--wui-color-gray-glass-005); + overflow: hidden; + } + + wui-icon { + width: 100%; + height: 100%; + } +`;var x=function(e,o,i,l){var r=arguments.length,t=r<3?o:l===null?l=Object.getOwnPropertyDescriptor(o,i):l,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(e,o,i,l);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(t=(r<3?n(t):r>3?n(o,i,t):n(o,i))||t);return r>3&&t&&Object.defineProperty(o,i,t),t};let d=class extends b{constructor(){super(...arguments),this.logo="google"}render(){return g` `}};d.styles=[h,m];x([u()],d.prototype,"logo",void 0);d=x([w("wui-logo")],d);const $=f` + button { + column-gap: var(--wui-spacing-s); + padding: 7px var(--wui-spacing-l) 7px var(--wui-spacing-xs); + width: 100%; + justify-content: flex-start; + background-color: var(--wui-color-gray-glass-002); + border-radius: var(--wui-border-radius-xs); + color: var(--wui-color-fg-100); + } + + wui-text { + text-transform: capitalize; + } + + wui-text[data-align='left'] { + display: flex; + flex: 1; + } + + wui-text[data-align='center'] { + display: flex; + flex: 1; + justify-content: center; + } + + .invisible { + opacity: 0; + pointer-events: none; + } + + button:disabled { + background-color: var(--wui-color-gray-glass-015); + color: var(--wui-color-gray-glass-015); + } +`;var c=function(e,o,i,l){var r=arguments.length,t=r<3?o:l===null?l=Object.getOwnPropertyDescriptor(o,i):l,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(e,o,i,l);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(t=(r<3?n(t):r>3?n(o,i,t):n(o,i))||t);return r>3&&t&&Object.defineProperty(o,i,t),t};let a=class extends b{constructor(){super(...arguments),this.logo="google",this.name="Continue with google",this.align="left",this.disabled=!1}render(){return g` + + `}templatePlacement(){return this.align==="center"?g` `:null}};a.styles=[h,y,$];c([u()],a.prototype,"logo",void 0);c([u()],a.prototype,"name",void 0);c([u()],a.prototype,"align",void 0);c([u()],a.prototype,"tabIdx",void 0);c([u({type:Boolean})],a.prototype,"disabled",void 0);a=c([w("wui-list-social")],a);export{p as S}; diff --git a/web3game/.vercel/output/static/assets/index-DeEXhxyT.js b/web3game/.vercel/output/static/assets/index-DeEXhxyT.js new file mode 100644 index 0000000000..dcbea9e9d2 --- /dev/null +++ b/web3game/.vercel/output/static/assets/index-DeEXhxyT.js @@ -0,0 +1,25 @@ +import{i as u,b,f as p,r as f,x as v}from"./index-DVkBgnkX.js";import{n as d,c as m,o as x}from"./if-defined-DVOmkLu5.js";const g=u` + button { + padding: var(--wui-spacing-4xs) var(--wui-spacing-xxs); + border-radius: var(--wui-border-radius-3xs); + background-color: transparent; + color: var(--wui-color-accent-100); + } + + button:disabled { + background-color: transparent; + color: var(--wui-color-gray-glass-015); + } + + button:hover { + background-color: var(--wui-color-gray-glass-005); + } +`;var a=function(n,o,r,i){var s=arguments.length,t=s<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,r):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(n,o,r,i);else for(var c=n.length-1;c>=0;c--)(l=n[c])&&(t=(s<3?l(t):s>3?l(o,r,t):l(o,r))||t);return s>3&&t&&Object.defineProperty(o,r,t),t};let e=class extends f{constructor(){super(...arguments),this.tabIdx=void 0,this.disabled=!1,this.color="inherit"}render(){return v` + + `}};e.styles=[b,p,g];a([d()],e.prototype,"tabIdx",void 0);a([d({type:Boolean})],e.prototype,"disabled",void 0);a([d()],e.prototype,"color",void 0);e=a([m("wui-link")],e); diff --git a/web3game/.vercel/output/static/assets/index-DsF4Gov6.js b/web3game/.vercel/output/static/assets/index-DsF4Gov6.js new file mode 100644 index 0000000000..9e512b8f0c --- /dev/null +++ b/web3game/.vercel/output/static/assets/index-DsF4Gov6.js @@ -0,0 +1,134 @@ +import{i as h,b as f,f as y,r as g,x as u}from"./index-DVkBgnkX.js";import{n as c,c as x,U as w}from"./if-defined-DVOmkLu5.js";import"./index-QpqlfPgl.js";const k=h` + button { + padding: 6.5px var(--wui-spacing-l) 6.5px var(--wui-spacing-xs); + display: flex; + justify-content: space-between; + width: 100%; + border-radius: var(--wui-border-radius-xs); + background-color: var(--wui-color-gray-glass-002); + } + + button[data-clickable='false'] { + pointer-events: none; + background-color: transparent; + } + + wui-image, + wui-icon { + width: var(--wui-spacing-3xl); + height: var(--wui-spacing-3xl); + } + + wui-image { + border-radius: var(--wui-border-radius-3xl); + } +`;var m=function(r,o,t,a){var i=arguments.length,e=i<3?o:a===null?a=Object.getOwnPropertyDescriptor(o,t):a,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(r,o,t,a);else for(var n=r.length-1;n>=0;n--)(l=r[n])&&(e=(i<3?l(e):i>3?l(o,t,e):l(o,t))||e);return i>3&&e&&Object.defineProperty(o,t,e),e};let s=class extends g{constructor(){super(...arguments),this.tokenName="",this.tokenImageUrl="",this.tokenValue=0,this.tokenAmount="0.0",this.tokenCurrency="",this.clickable=!1}render(){return u` + + `}visualTemplate(){return this.tokenName&&this.tokenImageUrl?u``:u``}};s.styles=[f,y,k];m([c()],s.prototype,"tokenName",void 0);m([c()],s.prototype,"tokenImageUrl",void 0);m([c({type:Number})],s.prototype,"tokenValue",void 0);m([c()],s.prototype,"tokenAmount",void 0);m([c()],s.prototype,"tokenCurrency",void 0);m([c({type:Boolean})],s.prototype,"clickable",void 0);s=m([x("wui-list-token")],s);const $=h` + :host { + position: relative; + display: flex; + width: 100%; + height: 1px; + background-color: var(--wui-color-gray-glass-005); + justify-content: center; + align-items: center; + } + + :host > wui-text { + position: absolute; + padding: 0px 10px; + background-color: var(--wui-color-modal-bg); + transition: background-color var(--wui-duration-lg) var(--wui-ease-out-power-1); + will-change: background-color; + } +`;var b=function(r,o,t,a){var i=arguments.length,e=i<3?o:a===null?a=Object.getOwnPropertyDescriptor(o,t):a,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(r,o,t,a);else for(var n=r.length-1;n>=0;n--)(l=r[n])&&(e=(i<3?l(e):i>3?l(o,t,e):l(o,t))||e);return i>3&&e&&Object.defineProperty(o,t,e),e};let p=class extends g{constructor(){super(...arguments),this.text=""}render(){return u`${this.template()}`}template(){return this.text?u`${this.text}`:null}};p.styles=[f,$];b([c()],p.prototype,"text",void 0);p=b([x("wui-separator")],p);const j=h` + :host { + display: block; + width: var(--local-width); + height: var(--local-height); + border-radius: var(--wui-border-radius-3xl); + box-shadow: 0 0 0 8px var(--wui-color-gray-glass-005); + overflow: hidden; + position: relative; + } + + :host([data-variant='generated']) { + --mixed-local-color-1: var(--local-color-1); + --mixed-local-color-2: var(--local-color-2); + --mixed-local-color-3: var(--local-color-3); + --mixed-local-color-4: var(--local-color-4); + --mixed-local-color-5: var(--local-color-5); + } + + @supports (background: color-mix(in srgb, white 50%, black)) { + :host([data-variant='generated']) { + --mixed-local-color-1: color-mix( + in srgb, + var(--w3m-color-mix) var(--w3m-color-mix-strength), + var(--local-color-1) + ); + --mixed-local-color-2: color-mix( + in srgb, + var(--w3m-color-mix) var(--w3m-color-mix-strength), + var(--local-color-2) + ); + --mixed-local-color-3: color-mix( + in srgb, + var(--w3m-color-mix) var(--w3m-color-mix-strength), + var(--local-color-3) + ); + --mixed-local-color-4: color-mix( + in srgb, + var(--w3m-color-mix) var(--w3m-color-mix-strength), + var(--local-color-4) + ); + --mixed-local-color-5: color-mix( + in srgb, + var(--w3m-color-mix) var(--w3m-color-mix-strength), + var(--local-color-5) + ); + } + } + + :host([data-variant='generated']) { + box-shadow: 0 0 0 8px var(--wui-color-gray-glass-005); + background: radial-gradient( + var(--local-radial-circle), + #fff 0.52%, + var(--mixed-local-color-5) 31.25%, + var(--mixed-local-color-3) 51.56%, + var(--mixed-local-color-2) 65.63%, + var(--mixed-local-color-1) 82.29%, + var(--mixed-local-color-4) 100% + ); + } + + :host([data-variant='default']) { + box-shadow: 0 0 0 8px var(--wui-color-gray-glass-005); + background: radial-gradient( + 75.29% 75.29% at 64.96% 24.36%, + #fff 0.52%, + #f5ccfc 31.25%, + #dba4f5 51.56%, + #9a8ee8 65.63%, + #6493da 82.29%, + #6ebdea 100% + ); + } +`;var v=function(r,o,t,a){var i=arguments.length,e=i<3?o:a===null?a=Object.getOwnPropertyDescriptor(o,t):a,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(r,o,t,a);else for(var n=r.length-1;n>=0;n--)(l=r[n])&&(e=(i<3?l(e):i>3?l(o,t,e):l(o,t))||e);return i>3&&e&&Object.defineProperty(o,t,e),e};let d=class extends g{constructor(){super(...arguments),this.imageSrc=void 0,this.alt=void 0,this.address=void 0,this.size="xl"}render(){return this.style.cssText=` + --local-width: var(--wui-icon-box-size-${this.size}); + --local-height: var(--wui-icon-box-size-${this.size}); + `,u`${this.visualTemplate()}`}visualTemplate(){if(this.imageSrc)return this.dataset.variant="image",u``;if(this.address){this.dataset.variant="generated";const o=w.generateAvatarColors(this.address);return this.style.cssText+=` + ${o}`,null}return this.dataset.variant="default",null}};d.styles=[f,j];v([c()],d.prototype,"imageSrc",void 0);v([c()],d.prototype,"alt",void 0);v([c()],d.prototype,"address",void 0);v([c()],d.prototype,"size",void 0);d=v([x("wui-avatar")],d); diff --git a/web3game/.vercel/output/static/assets/index-LEBQNQA_.js b/web3game/.vercel/output/static/assets/index-LEBQNQA_.js new file mode 100644 index 0000000000..13ebac0621 --- /dev/null +++ b/web3game/.vercel/output/static/assets/index-LEBQNQA_.js @@ -0,0 +1,12 @@ +import{ao as $s,ap as Ye,aq as Hr,ar as gn,as as Xt,at as lh,K as hh}from"./index-DVkBgnkX.js";import{p as fh,a as dh,h as ph}from"./hooks.module-CUJGEegb.js";var Bn={},or={},po;function gh(){if(po)return or;po=1,or.byteLength=c,or.toByteArray=d,or.fromByteArray=l;for(var e=[],r=[],n=typeof Uint8Array<"u"?Uint8Array:Array,t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h=0,i=t.length;h0)throw new Error("Invalid string. Length must be a multiple of 4");var w=s.indexOf("=");w===-1&&(w=m);var v=w===m?0:4-w%4;return[w,v]}function c(s){var m=o(s),w=m[0],v=m[1];return(w+v)*3/4-v}function p(s,m,w){return(m+w)*3/4-w}function d(s){var m,w=o(s),v=w[0],u=w[1],R=new n(p(s,v,u)),S=0,I=u>0?v-4:v,T;for(T=0;T>16&255,R[S++]=m>>8&255,R[S++]=m&255;return u===2&&(m=r[s.charCodeAt(T)]<<2|r[s.charCodeAt(T+1)]>>4,R[S++]=m&255),u===1&&(m=r[s.charCodeAt(T)]<<10|r[s.charCodeAt(T+1)]<<4|r[s.charCodeAt(T+2)]>>2,R[S++]=m>>8&255,R[S++]=m&255),R}function g(s){return e[s>>18&63]+e[s>>12&63]+e[s>>6&63]+e[s&63]}function a(s,m,w){for(var v,u=[],R=m;RI?I:S+R));return v===1?(m=s[w-1],u.push(e[m>>2]+e[m<<4&63]+"==")):v===2&&(m=(s[w-2]<<8)+s[w-1],u.push(e[m>>10]+e[m>>4&63]+e[m<<2&63]+"=")),u.join("")}return or}var Zr={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */var go;function mh(){return go||(go=1,Zr.read=function(e,r,n,t,h){var i,o,c=h*8-t-1,p=(1<>1,g=-7,a=n?h-1:0,l=n?-1:1,s=e[r+a];for(a+=l,i=s&(1<<-g)-1,s>>=-g,g+=c;g>0;i=i*256+e[r+a],a+=l,g-=8);for(o=i&(1<<-g)-1,i>>=-g,g+=t;g>0;o=o*256+e[r+a],a+=l,g-=8);if(i===0)i=1-d;else{if(i===p)return o?NaN:(s?-1:1)*(1/0);o=o+Math.pow(2,t),i=i-d}return(s?-1:1)*o*Math.pow(2,i-t)},Zr.write=function(e,r,n,t,h,i){var o,c,p,d=i*8-h-1,g=(1<>1,l=h===23?Math.pow(2,-24)-Math.pow(2,-77):0,s=t?0:i-1,m=t?1:-1,w=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(c=isNaN(r)?1:0,o=g):(o=Math.floor(Math.log(r)/Math.LN2),r*(p=Math.pow(2,-o))<1&&(o--,p*=2),o+a>=1?r+=l/p:r+=l*Math.pow(2,1-a),r*p>=2&&(o++,p/=2),o+a>=g?(c=0,o=g):o+a>=1?(c=(r*p-1)*Math.pow(2,h),o=o+a):(c=r*Math.pow(2,a-1)*Math.pow(2,h),o=0));h>=8;e[n+s]=c&255,s+=m,c/=256,h-=8);for(o=o<0;e[n+s]=o&255,s+=m,o/=256,d-=8);e[n+s-m]|=w*128}),Zr}/*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + */var mo;function mn(){return mo||(mo=1,function(e){const r=gh(),n=mh(),t=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=c,e.SlowBuffer=R,e.INSPECT_MAX_BYTES=50;const h=2147483647;e.kMaxLength=h,c.TYPED_ARRAY_SUPPORT=i(),!c.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{const k=new Uint8Array(1),y={foo:function(){return 42}};return Object.setPrototypeOf(y,Uint8Array.prototype),Object.setPrototypeOf(k,y),k.foo()===42}catch{return!1}}Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}});function o(k){if(k>h)throw new RangeError('The value "'+k+'" is invalid for option "size"');const y=new Uint8Array(k);return Object.setPrototypeOf(y,c.prototype),y}function c(k,y,_){if(typeof k=="number"){if(typeof y=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return a(k)}return p(k,y,_)}c.poolSize=8192;function p(k,y,_){if(typeof k=="string")return l(k,y);if(ArrayBuffer.isView(k))return m(k);if(k==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof k);if(be(k,ArrayBuffer)||k&&be(k.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(be(k,SharedArrayBuffer)||k&&be(k.buffer,SharedArrayBuffer)))return w(k,y,_);if(typeof k=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const L=k.valueOf&&k.valueOf();if(L!=null&&L!==k)return c.from(L,y,_);const U=v(k);if(U)return U;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof k[Symbol.toPrimitive]=="function")return c.from(k[Symbol.toPrimitive]("string"),y,_);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof k)}c.from=function(k,y,_){return p(k,y,_)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array);function d(k){if(typeof k!="number")throw new TypeError('"size" argument must be of type number');if(k<0)throw new RangeError('The value "'+k+'" is invalid for option "size"')}function g(k,y,_){return d(k),k<=0?o(k):y!==void 0?typeof _=="string"?o(k).fill(y,_):o(k).fill(y):o(k)}c.alloc=function(k,y,_){return g(k,y,_)};function a(k){return d(k),o(k<0?0:u(k)|0)}c.allocUnsafe=function(k){return a(k)},c.allocUnsafeSlow=function(k){return a(k)};function l(k,y){if((typeof y!="string"||y==="")&&(y="utf8"),!c.isEncoding(y))throw new TypeError("Unknown encoding: "+y);const _=S(k,y)|0;let L=o(_);const U=L.write(k,y);return U!==_&&(L=L.slice(0,U)),L}function s(k){const y=k.length<0?0:u(k.length)|0,_=o(y);for(let L=0;L=h)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+h.toString(16)+" bytes");return k|0}function R(k){return+k!=k&&(k=0),c.alloc(+k)}c.isBuffer=function(y){return y!=null&&y._isBuffer===!0&&y!==c.prototype},c.compare=function(y,_){if(be(y,Uint8Array)&&(y=c.from(y,y.offset,y.byteLength)),be(_,Uint8Array)&&(_=c.from(_,_.offset,_.byteLength)),!c.isBuffer(y)||!c.isBuffer(_))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(y===_)return 0;let L=y.length,U=_.length;for(let V=0,z=Math.min(L,U);VU.length?(c.isBuffer(z)||(z=c.from(z)),z.copy(U,V)):Uint8Array.prototype.set.call(U,z,V);else if(c.isBuffer(z))z.copy(U,V);else throw new TypeError('"list" argument must be an Array of Buffers');V+=z.length}return U};function S(k,y){if(c.isBuffer(k))return k.length;if(ArrayBuffer.isView(k)||be(k,ArrayBuffer))return k.byteLength;if(typeof k!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof k);const _=k.length,L=arguments.length>2&&arguments[2]===!0;if(!L&&_===0)return 0;let U=!1;for(;;)switch(y){case"ascii":case"latin1":case"binary":return _;case"utf8":case"utf-8":return ie(k).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _*2;case"hex":return _>>>1;case"base64":return me(k).length;default:if(U)return L?-1:ie(k).length;y=(""+y).toLowerCase(),U=!0}}c.byteLength=S;function I(k,y,_){let L=!1;if((y===void 0||y<0)&&(y=0),y>this.length||((_===void 0||_>this.length)&&(_=this.length),_<=0)||(_>>>=0,y>>>=0,_<=y))return"";for(k||(k="utf8");;)switch(k){case"hex":return B(this,y,_);case"utf8":case"utf-8":return f(this,y,_);case"ascii":return M(this,y,_);case"latin1":case"binary":return x(this,y,_);case"base64":return F(this,y,_);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,y,_);default:if(L)throw new TypeError("Unknown encoding: "+k);k=(k+"").toLowerCase(),L=!0}}c.prototype._isBuffer=!0;function T(k,y,_){const L=k[y];k[y]=k[_],k[_]=L}c.prototype.swap16=function(){const y=this.length;if(y%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let _=0;__&&(y+=" ... "),""},t&&(c.prototype[t]=c.prototype.inspect),c.prototype.compare=function(y,_,L,U,V){if(be(y,Uint8Array)&&(y=c.from(y,y.offset,y.byteLength)),!c.isBuffer(y))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof y);if(_===void 0&&(_=0),L===void 0&&(L=y?y.length:0),U===void 0&&(U=0),V===void 0&&(V=this.length),_<0||L>y.length||U<0||V>this.length)throw new RangeError("out of range index");if(U>=V&&_>=L)return 0;if(U>=V)return-1;if(_>=L)return 1;if(_>>>=0,L>>>=0,U>>>=0,V>>>=0,this===y)return 0;let z=V-U,fe=L-_;const ue=Math.min(z,fe),ce=this.slice(U,V),ve=y.slice(_,L);for(let se=0;se2147483647?_=2147483647:_<-2147483648&&(_=-2147483648),_=+_,pe(_)&&(_=U?0:k.length-1),_<0&&(_=k.length+_),_>=k.length){if(U)return-1;_=k.length-1}else if(_<0)if(U)_=0;else return-1;if(typeof y=="string"&&(y=c.from(y,L)),c.isBuffer(y))return y.length===0?-1:D(k,y,_,L,U);if(typeof y=="number")return y=y&255,typeof Uint8Array.prototype.indexOf=="function"?U?Uint8Array.prototype.indexOf.call(k,y,_):Uint8Array.prototype.lastIndexOf.call(k,y,_):D(k,[y],_,L,U);throw new TypeError("val must be string, number or Buffer")}function D(k,y,_,L,U){let V=1,z=k.length,fe=y.length;if(L!==void 0&&(L=String(L).toLowerCase(),L==="ucs2"||L==="ucs-2"||L==="utf16le"||L==="utf-16le")){if(k.length<2||y.length<2)return-1;V=2,z/=2,fe/=2,_/=2}function ue(ve,se){return V===1?ve[se]:ve.readUInt16BE(se*V)}let ce;if(U){let ve=-1;for(ce=_;cez&&(_=z-fe),ce=_;ce>=0;ce--){let ve=!0;for(let se=0;seU&&(L=U)):L=U;const V=y.length;L>V/2&&(L=V/2);let z;for(z=0;z>>0,isFinite(L)?(L=L>>>0,U===void 0&&(U="utf8")):(U=L,L=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const V=this.length-_;if((L===void 0||L>V)&&(L=V),y.length>0&&(L<0||_<0)||_>this.length)throw new RangeError("Attempt to write outside buffer bounds");U||(U="utf8");let z=!1;for(;;)switch(U){case"hex":return H(this,y,_,L);case"utf8":case"utf-8":return G(this,y,_,L);case"ascii":case"latin1":case"binary":return X(this,y,_,L);case"base64":return Y(this,y,_,L);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return re(this,y,_,L);default:if(z)throw new TypeError("Unknown encoding: "+U);U=(""+U).toLowerCase(),z=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function F(k,y,_){return y===0&&_===k.length?r.fromByteArray(k):r.fromByteArray(k.slice(y,_))}function f(k,y,_){_=Math.min(k.length,_);const L=[];let U=y;for(;U<_;){const V=k[U];let z=null,fe=V>239?4:V>223?3:V>191?2:1;if(U+fe<=_){let ue,ce,ve,se;switch(fe){case 1:V<128&&(z=V);break;case 2:ue=k[U+1],(ue&192)===128&&(se=(V&31)<<6|ue&63,se>127&&(z=se));break;case 3:ue=k[U+1],ce=k[U+2],(ue&192)===128&&(ce&192)===128&&(se=(V&15)<<12|(ue&63)<<6|ce&63,se>2047&&(se<55296||se>57343)&&(z=se));break;case 4:ue=k[U+1],ce=k[U+2],ve=k[U+3],(ue&192)===128&&(ce&192)===128&&(ve&192)===128&&(se=(V&15)<<18|(ue&63)<<12|(ce&63)<<6|ve&63,se>65535&&se<1114112&&(z=se))}}z===null?(z=65533,fe=1):z>65535&&(z-=65536,L.push(z>>>10&1023|55296),z=56320|z&1023),L.push(z),U+=fe}return C(L)}const E=4096;function C(k){const y=k.length;if(y<=E)return String.fromCharCode.apply(String,k);let _="",L=0;for(;LL)&&(_=L);let U="";for(let V=y;V<_;++V)U+=ye[k[V]];return U}function j(k,y,_){const L=k.slice(y,_);let U="";for(let V=0;VL&&(y=L),_<0?(_+=L,_<0&&(_=0)):_>L&&(_=L),__)throw new RangeError("Trying to access beyond buffer length")}c.prototype.readUintLE=c.prototype.readUIntLE=function(y,_,L){y=y>>>0,_=_>>>0,L||A(y,_,this.length);let U=this[y],V=1,z=0;for(;++z<_&&(V*=256);)U+=this[y+z]*V;return U},c.prototype.readUintBE=c.prototype.readUIntBE=function(y,_,L){y=y>>>0,_=_>>>0,L||A(y,_,this.length);let U=this[y+--_],V=1;for(;_>0&&(V*=256);)U+=this[y+--_]*V;return U},c.prototype.readUint8=c.prototype.readUInt8=function(y,_){return y=y>>>0,_||A(y,1,this.length),this[y]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(y,_){return y=y>>>0,_||A(y,2,this.length),this[y]|this[y+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(y,_){return y=y>>>0,_||A(y,2,this.length),this[y]<<8|this[y+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(y,_){return y=y>>>0,_||A(y,4,this.length),(this[y]|this[y+1]<<8|this[y+2]<<16)+this[y+3]*16777216},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(y,_){return y=y>>>0,_||A(y,4,this.length),this[y]*16777216+(this[y+1]<<16|this[y+2]<<8|this[y+3])},c.prototype.readBigUInt64LE=je(function(y){y=y>>>0,Z(y,"offset");const _=this[y],L=this[y+7];(_===void 0||L===void 0)&&Q(y,this.length-8);const U=_+this[++y]*2**8+this[++y]*2**16+this[++y]*2**24,V=this[++y]+this[++y]*2**8+this[++y]*2**16+L*2**24;return BigInt(U)+(BigInt(V)<>>0,Z(y,"offset");const _=this[y],L=this[y+7];(_===void 0||L===void 0)&&Q(y,this.length-8);const U=_*2**24+this[++y]*2**16+this[++y]*2**8+this[++y],V=this[++y]*2**24+this[++y]*2**16+this[++y]*2**8+L;return(BigInt(U)<>>0,_=_>>>0,L||A(y,_,this.length);let U=this[y],V=1,z=0;for(;++z<_&&(V*=256);)U+=this[y+z]*V;return V*=128,U>=V&&(U-=Math.pow(2,8*_)),U},c.prototype.readIntBE=function(y,_,L){y=y>>>0,_=_>>>0,L||A(y,_,this.length);let U=_,V=1,z=this[y+--U];for(;U>0&&(V*=256);)z+=this[y+--U]*V;return V*=128,z>=V&&(z-=Math.pow(2,8*_)),z},c.prototype.readInt8=function(y,_){return y=y>>>0,_||A(y,1,this.length),this[y]&128?(255-this[y]+1)*-1:this[y]},c.prototype.readInt16LE=function(y,_){y=y>>>0,_||A(y,2,this.length);const L=this[y]|this[y+1]<<8;return L&32768?L|4294901760:L},c.prototype.readInt16BE=function(y,_){y=y>>>0,_||A(y,2,this.length);const L=this[y+1]|this[y]<<8;return L&32768?L|4294901760:L},c.prototype.readInt32LE=function(y,_){return y=y>>>0,_||A(y,4,this.length),this[y]|this[y+1]<<8|this[y+2]<<16|this[y+3]<<24},c.prototype.readInt32BE=function(y,_){return y=y>>>0,_||A(y,4,this.length),this[y]<<24|this[y+1]<<16|this[y+2]<<8|this[y+3]},c.prototype.readBigInt64LE=je(function(y){y=y>>>0,Z(y,"offset");const _=this[y],L=this[y+7];(_===void 0||L===void 0)&&Q(y,this.length-8);const U=this[y+4]+this[y+5]*2**8+this[y+6]*2**16+(L<<24);return(BigInt(U)<>>0,Z(y,"offset");const _=this[y],L=this[y+7];(_===void 0||L===void 0)&&Q(y,this.length-8);const U=(_<<24)+this[++y]*2**16+this[++y]*2**8+this[++y];return(BigInt(U)<>>0,_||A(y,4,this.length),n.read(this,y,!0,23,4)},c.prototype.readFloatBE=function(y,_){return y=y>>>0,_||A(y,4,this.length),n.read(this,y,!1,23,4)},c.prototype.readDoubleLE=function(y,_){return y=y>>>0,_||A(y,8,this.length),n.read(this,y,!0,52,8)},c.prototype.readDoubleBE=function(y,_){return y=y>>>0,_||A(y,8,this.length),n.read(this,y,!1,52,8)};function b(k,y,_,L,U,V){if(!c.isBuffer(k))throw new TypeError('"buffer" argument must be a Buffer instance');if(y>U||yk.length)throw new RangeError("Index out of range")}c.prototype.writeUintLE=c.prototype.writeUIntLE=function(y,_,L,U){if(y=+y,_=_>>>0,L=L>>>0,!U){const fe=Math.pow(2,8*L)-1;b(this,y,_,L,fe,0)}let V=1,z=0;for(this[_]=y&255;++z>>0,L=L>>>0,!U){const fe=Math.pow(2,8*L)-1;b(this,y,_,L,fe,0)}let V=L-1,z=1;for(this[_+V]=y&255;--V>=0&&(z*=256);)this[_+V]=y/z&255;return _+L},c.prototype.writeUint8=c.prototype.writeUInt8=function(y,_,L){return y=+y,_=_>>>0,L||b(this,y,_,1,255,0),this[_]=y&255,_+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(y,_,L){return y=+y,_=_>>>0,L||b(this,y,_,2,65535,0),this[_]=y&255,this[_+1]=y>>>8,_+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(y,_,L){return y=+y,_=_>>>0,L||b(this,y,_,2,65535,0),this[_]=y>>>8,this[_+1]=y&255,_+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(y,_,L){return y=+y,_=_>>>0,L||b(this,y,_,4,4294967295,0),this[_+3]=y>>>24,this[_+2]=y>>>16,this[_+1]=y>>>8,this[_]=y&255,_+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(y,_,L){return y=+y,_=_>>>0,L||b(this,y,_,4,4294967295,0),this[_]=y>>>24,this[_+1]=y>>>16,this[_+2]=y>>>8,this[_+3]=y&255,_+4};function N(k,y,_,L,U){O(y,L,U,k,_,7);let V=Number(y&BigInt(4294967295));k[_++]=V,V=V>>8,k[_++]=V,V=V>>8,k[_++]=V,V=V>>8,k[_++]=V;let z=Number(y>>BigInt(32)&BigInt(4294967295));return k[_++]=z,z=z>>8,k[_++]=z,z=z>>8,k[_++]=z,z=z>>8,k[_++]=z,_}function te(k,y,_,L,U){O(y,L,U,k,_,7);let V=Number(y&BigInt(4294967295));k[_+7]=V,V=V>>8,k[_+6]=V,V=V>>8,k[_+5]=V,V=V>>8,k[_+4]=V;let z=Number(y>>BigInt(32)&BigInt(4294967295));return k[_+3]=z,z=z>>8,k[_+2]=z,z=z>>8,k[_+1]=z,z=z>>8,k[_]=z,_+8}c.prototype.writeBigUInt64LE=je(function(y,_=0){return N(this,y,_,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeBigUInt64BE=je(function(y,_=0){return te(this,y,_,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeIntLE=function(y,_,L,U){if(y=+y,_=_>>>0,!U){const ue=Math.pow(2,8*L-1);b(this,y,_,L,ue-1,-ue)}let V=0,z=1,fe=0;for(this[_]=y&255;++V>0)-fe&255;return _+L},c.prototype.writeIntBE=function(y,_,L,U){if(y=+y,_=_>>>0,!U){const ue=Math.pow(2,8*L-1);b(this,y,_,L,ue-1,-ue)}let V=L-1,z=1,fe=0;for(this[_+V]=y&255;--V>=0&&(z*=256);)y<0&&fe===0&&this[_+V+1]!==0&&(fe=1),this[_+V]=(y/z>>0)-fe&255;return _+L},c.prototype.writeInt8=function(y,_,L){return y=+y,_=_>>>0,L||b(this,y,_,1,127,-128),y<0&&(y=255+y+1),this[_]=y&255,_+1},c.prototype.writeInt16LE=function(y,_,L){return y=+y,_=_>>>0,L||b(this,y,_,2,32767,-32768),this[_]=y&255,this[_+1]=y>>>8,_+2},c.prototype.writeInt16BE=function(y,_,L){return y=+y,_=_>>>0,L||b(this,y,_,2,32767,-32768),this[_]=y>>>8,this[_+1]=y&255,_+2},c.prototype.writeInt32LE=function(y,_,L){return y=+y,_=_>>>0,L||b(this,y,_,4,2147483647,-2147483648),this[_]=y&255,this[_+1]=y>>>8,this[_+2]=y>>>16,this[_+3]=y>>>24,_+4},c.prototype.writeInt32BE=function(y,_,L){return y=+y,_=_>>>0,L||b(this,y,_,4,2147483647,-2147483648),y<0&&(y=4294967295+y+1),this[_]=y>>>24,this[_+1]=y>>>16,this[_+2]=y>>>8,this[_+3]=y&255,_+4},c.prototype.writeBigInt64LE=je(function(y,_=0){return N(this,y,_,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeBigInt64BE=je(function(y,_=0){return te(this,y,_,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function K(k,y,_,L,U,V){if(_+L>k.length)throw new RangeError("Index out of range");if(_<0)throw new RangeError("Index out of range")}function $(k,y,_,L,U){return y=+y,_=_>>>0,U||K(k,y,_,4),n.write(k,y,_,L,23,4),_+4}c.prototype.writeFloatLE=function(y,_,L){return $(this,y,_,!0,L)},c.prototype.writeFloatBE=function(y,_,L){return $(this,y,_,!1,L)};function W(k,y,_,L,U){return y=+y,_=_>>>0,U||K(k,y,_,8),n.write(k,y,_,L,52,8),_+8}c.prototype.writeDoubleLE=function(y,_,L){return W(this,y,_,!0,L)},c.prototype.writeDoubleBE=function(y,_,L){return W(this,y,_,!1,L)},c.prototype.copy=function(y,_,L,U){if(!c.isBuffer(y))throw new TypeError("argument should be a Buffer");if(L||(L=0),!U&&U!==0&&(U=this.length),_>=y.length&&(_=y.length),_||(_=0),U>0&&U=this.length)throw new RangeError("Index out of range");if(U<0)throw new RangeError("sourceEnd out of bounds");U>this.length&&(U=this.length),y.length-_>>0,L=L===void 0?this.length:L>>>0,y||(y=0);let V;if(typeof y=="number")for(V=_;V2**32?U=oe(String(_)):typeof _=="bigint"&&(U=String(_),(_>BigInt(2)**BigInt(32)||_<-(BigInt(2)**BigInt(32)))&&(U=oe(U)),U+="n"),L+=` It must be ${y}. Received ${U}`,L},RangeError);function oe(k){let y="",_=k.length;const L=k[0]==="-"?1:0;for(;_>=L+4;_-=3)y=`_${k.slice(_-3,_)}${y}`;return`${k.slice(0,_)}${y}`}function P(k,y,_){Z(y,"offset"),(k[y]===void 0||k[y+_]===void 0)&&Q(y,k.length-(_+1))}function O(k,y,_,L,U,V){if(k>_||k= 0${z} and < 2${z} ** ${(V+1)*8}${z}`:fe=`>= -(2${z} ** ${(V+1)*8-1}${z}) and < 2 ** ${(V+1)*8-1}${z}`,new J.ERR_OUT_OF_RANGE("value",fe,k)}P(L,U,V)}function Z(k,y){if(typeof k!="number")throw new J.ERR_INVALID_ARG_TYPE(y,"number",k)}function Q(k,y,_){throw Math.floor(k)!==k?(Z(k,_),new J.ERR_OUT_OF_RANGE("offset","an integer",k)):y<0?new J.ERR_BUFFER_OUT_OF_BOUNDS:new J.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${y}`,k)}const ae=/[^+/0-9A-Za-z-_]/g;function le(k){if(k=k.split("=")[0],k=k.trim().replace(ae,""),k.length<2)return"";for(;k.length%4!==0;)k=k+"=";return k}function ie(k,y){y=y||1/0;let _;const L=k.length;let U=null;const V=[];for(let z=0;z55295&&_<57344){if(!U){if(_>56319){(y-=3)>-1&&V.push(239,191,189);continue}else if(z+1===L){(y-=3)>-1&&V.push(239,191,189);continue}U=_;continue}if(_<56320){(y-=3)>-1&&V.push(239,191,189),U=_;continue}_=(U-55296<<10|_-56320)+65536}else U&&(y-=3)>-1&&V.push(239,191,189);if(U=null,_<128){if((y-=1)<0)break;V.push(_)}else if(_<2048){if((y-=2)<0)break;V.push(_>>6|192,_&63|128)}else if(_<65536){if((y-=3)<0)break;V.push(_>>12|224,_>>6&63|128,_&63|128)}else if(_<1114112){if((y-=4)<0)break;V.push(_>>18|240,_>>12&63|128,_>>6&63|128,_&63|128)}else throw new Error("Invalid code point")}return V}function de(k){const y=[];for(let _=0;_>8,U=_%256,V.push(U),V.push(L);return V}function me(k){return r.toByteArray(le(k))}function he(k,y,_,L){let U;for(U=0;U=y.length||U>=k.length);++U)y[U+_]=k[U];return U}function be(k,y){return k instanceof y||k!=null&&k.constructor!=null&&k.constructor.name!=null&&k.constructor.name===y.name}function pe(k){return k!==k}const ye=function(){const k="0123456789abcdef",y=new Array(256);for(let _=0;_<16;++_){const L=_*16;for(let U=0;U<16;++U)y[L+U]=k[_]+k[U]}return y}();function je(k){return typeof BigInt>"u"?we:k}function we(){throw new Error("BigInt not supported")}}(Bn)),Bn}var Nn={},ar={},cr={},yo;function yh(){if(yo)return cr;yo=1,Object.defineProperty(cr,"__esModule",{value:!0}),cr.walletLogo=void 0;const e=(r,n)=>{let t;switch(r){case"standard":return t=n,`data:image/svg+xml,%3Csvg width='${n}' height='${t}' viewBox='0 0 1024 1024' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Crect width='1024' height='1024' fill='%230052FF'/%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M152 512C152 710.823 313.177 872 512 872C710.823 872 872 710.823 872 512C872 313.177 710.823 152 512 152C313.177 152 152 313.177 152 512ZM420 396C406.745 396 396 406.745 396 420V604C396 617.255 406.745 628 420 628H604C617.255 628 628 617.255 628 604V420C628 406.745 617.255 396 604 396H420Z' fill='white'/%3E %3C/svg%3E `;case"circle":return t=n,`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='${n}' height='${t}' viewBox='0 0 999.81 999.81'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052fe;%7D.cls-2%7Bfill:%23fefefe;%7D.cls-3%7Bfill:%230152fe;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M655-115.9h56c.83,1.59,2.36.88,3.56,1a478,478,0,0,1,75.06,10.42C891.4-81.76,978.33-32.58,1049.19,44q116.7,126,131.94,297.61c.38,4.14-.34,8.53,1.78,12.45v59c-1.58.84-.91,2.35-1,3.56a482.05,482.05,0,0,1-10.38,74.05c-24,106.72-76.64,196.76-158.83,268.93s-178.18,112.82-287.2,122.6c-4.83.43-9.86-.25-14.51,1.77H654c-1-1.68-2.69-.91-4.06-1a496.89,496.89,0,0,1-105.9-18.59c-93.54-27.42-172.78-77.59-236.91-150.94Q199.34,590.1,184.87,426.58c-.47-5.19.25-10.56-1.77-15.59V355c1.68-1,.91-2.7,1-4.06a498.12,498.12,0,0,1,18.58-105.9c26-88.75,72.64-164.9,140.6-227.57q126-116.27,297.21-131.61C645.32-114.57,650.35-113.88,655-115.9Zm377.92,500c0-192.44-156.31-349.49-347.56-350.15-194.13-.68-350.94,155.13-352.29,347.42-1.37,194.55,155.51,352.1,348.56,352.47C876.15,734.23,1032.93,577.84,1032.93,384.11Z' transform='translate(-183.1 115.9)'/%3E%3Cpath class='cls-2' d='M1032.93,384.11c0,193.73-156.78,350.12-351.29,349.74-193-.37-349.93-157.92-348.56-352.47C334.43,189.09,491.24,33.28,685.37,34,876.62,34.62,1032.94,191.67,1032.93,384.11ZM683,496.81q43.74,0,87.48,0c15.55,0,25.32-9.72,25.33-25.21q0-87.48,0-175c0-15.83-9.68-25.46-25.59-25.46H595.77c-15.88,0-25.57,9.64-25.58,25.46q0,87.23,0,174.45c0,16.18,9.59,25.7,25.84,25.71Z' transform='translate(-183.1 115.9)'/%3E%3Cpath class='cls-3' d='M683,496.81H596c-16.25,0-25.84-9.53-25.84-25.71q0-87.23,0-174.45c0-15.82,9.7-25.46,25.58-25.46H770.22c15.91,0,25.59,9.63,25.59,25.46q0,87.47,0,175c0,15.49-9.78,25.2-25.33,25.21Q726.74,496.84,683,496.81Z' transform='translate(-183.1 115.9)'/%3E%3C/svg%3E`;case"text":return t=(.1*n).toFixed(2),`data:image/svg+xml,%3Csvg width='${n}' height='${t}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 528.15 53.64'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class='cls-1' d='M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z'/%3E%3C/svg%3E`;case"textWithLogo":return t=(.25*n).toFixed(2),`data:image/svg+xml,%3Csvg width='${n}' height='${t}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 308.44 77.61'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z'/%3E%3C/svg%3E`;case"textLight":return t=(.1*n).toFixed(2),`data:image/svg+xml,%3Csvg width='${n}' height='${t}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 528.15 53.64'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class='cls-1' d='M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z'/%3E%3C/svg%3E`;case"textWithLogoLight":return t=(.25*n).toFixed(2),`data:image/svg+xml,%3Csvg width='${n}' height='${t}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 308.44 77.61'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z'/%3E%3C/svg%3E`;default:return t=n,`data:image/svg+xml,%3Csvg width='${n}' height='${t}' viewBox='0 0 1024 1024' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Crect width='1024' height='1024' fill='%230052FF'/%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M152 512C152 710.823 313.177 872 512 872C710.823 872 872 710.823 872 512C872 313.177 710.823 152 512 152C313.177 152 152 313.177 152 512ZM420 396C406.745 396 396 406.745 396 420V604C396 617.255 406.745 628 420 628H604C617.255 628 628 617.255 628 604V420C628 406.745 617.255 396 604 396H420Z' fill='white'/%3E %3C/svg%3E `}};return cr.walletLogo=e,cr}var ur={},wo;function wh(){return wo||(wo=1,Object.defineProperty(ur,"__esModule",{value:!0}),ur.LINK_API_URL=void 0,ur.LINK_API_URL="https://www.walletlink.org"),ur}var ne={},fn={exports:{}},vh=fn.exports,vo;function yn(){return vo||(vo=1,function(e){(function(r,n){function t(F,f){if(!F)throw new Error(f||"Assertion failed")}function h(F,f){F.super_=f;var E=function(){};E.prototype=f.prototype,F.prototype=new E,F.prototype.constructor=F}function i(F,f,E){if(i.isBN(F))return F;this.negative=0,this.words=null,this.length=0,this.red=null,F!==null&&((f==="le"||f==="be")&&(E=f,f=10),this._init(F||0,f||10,E||"be"))}typeof r=="object"?r.exports=i:n.BN=i,i.BN=i,i.wordSize=26;var o;try{typeof window<"u"&&typeof window.Buffer<"u"?o=window.Buffer:o=$s.Buffer}catch{}i.isBN=function(f){return f instanceof i?!0:f!==null&&typeof f=="object"&&f.constructor.wordSize===i.wordSize&&Array.isArray(f.words)},i.max=function(f,E){return f.cmp(E)>0?f:E},i.min=function(f,E){return f.cmp(E)<0?f:E},i.prototype._init=function(f,E,C){if(typeof f=="number")return this._initNumber(f,E,C);if(typeof f=="object")return this._initArray(f,E,C);E==="hex"&&(E=16),t(E===(E|0)&&E>=2&&E<=36),f=f.toString().replace(/\s+/g,"");var M=0;f[0]==="-"&&(M++,this.negative=1),M=0;M-=3)B=f[M]|f[M-1]<<8|f[M-2]<<16,this.words[x]|=B<>>26-j&67108863,j+=24,j>=26&&(j-=26,x++);else if(C==="le")for(M=0,x=0;M>>26-j&67108863,j+=24,j>=26&&(j-=26,x++);return this._strip()};function c(F,f){var E=F.charCodeAt(f);if(E>=48&&E<=57)return E-48;if(E>=65&&E<=70)return E-55;if(E>=97&&E<=102)return E-87;t(!1,"Invalid character in "+F)}function p(F,f,E){var C=c(F,E);return E-1>=f&&(C|=c(F,E-1)<<4),C}i.prototype._parseHex=function(f,E,C){this.length=Math.ceil((f.length-E)/6),this.words=new Array(this.length);for(var M=0;M=E;M-=2)j=p(f,E,M)<=18?(x-=18,B+=1,this.words[B]|=j>>>26):x+=8;else{var A=f.length-E;for(M=A%2===0?E+1:E;M=18?(x-=18,B+=1,this.words[B]|=j>>>26):x+=8}this._strip()};function d(F,f,E,C){for(var M=0,x=0,B=Math.min(F.length,E),j=f;j=49?x=A-49+10:A>=17?x=A-17+10:x=A,t(A>=0&&x1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=a}catch{i.prototype.inspect=a}else i.prototype.inspect=a;function a(){return(this.red?""}var l=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],s=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],m=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(f,E){f=f||10,E=E|0||1;var C;if(f===16||f==="hex"){C="";for(var M=0,x=0,B=0;B>>24-M&16777215,M+=2,M>=26&&(M-=26,B--),x!==0||B!==this.length-1?C=l[6-A.length]+A+C:C=A+C}for(x!==0&&(C=x.toString(16)+C);C.length%E!==0;)C="0"+C;return this.negative!==0&&(C="-"+C),C}if(f===(f|0)&&f>=2&&f<=36){var b=s[f],N=m[f];C="";var te=this.clone();for(te.negative=0;!te.isZero();){var K=te.modrn(N).toString(f);te=te.idivn(N),te.isZero()?C=K+C:C=l[b-K.length]+K+C}for(this.isZero()&&(C="0"+C);C.length%E!==0;)C="0"+C;return this.negative!==0&&(C="-"+C),C}t(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var f=this.words[0];return this.length===2?f+=this.words[1]*67108864:this.length===3&&this.words[2]===1?f+=4503599627370496+this.words[1]*67108864:this.length>2&&t(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-f:f},i.prototype.toJSON=function(){return this.toString(16,2)},o&&(i.prototype.toBuffer=function(f,E){return this.toArrayLike(o,f,E)}),i.prototype.toArray=function(f,E){return this.toArrayLike(Array,f,E)};var w=function(f,E){return f.allocUnsafe?f.allocUnsafe(E):new f(E)};i.prototype.toArrayLike=function(f,E,C){this._strip();var M=this.byteLength(),x=C||Math.max(1,M);t(M<=x,"byte array longer than desired length"),t(x>0,"Requested array length <= 0");var B=w(f,x),j=E==="le"?"LE":"BE";return this["_toArrayLike"+j](B,M),B},i.prototype._toArrayLikeLE=function(f,E){for(var C=0,M=0,x=0,B=0;x>8&255),C>16&255),B===6?(C>24&255),M=0,B=0):(M=j>>>24,B+=2)}if(C=0&&(f[C--]=j>>8&255),C>=0&&(f[C--]=j>>16&255),B===6?(C>=0&&(f[C--]=j>>24&255),M=0,B=0):(M=j>>>24,B+=2)}if(C>=0)for(f[C--]=M;C>=0;)f[C--]=0},Math.clz32?i.prototype._countBits=function(f){return 32-Math.clz32(f)}:i.prototype._countBits=function(f){var E=f,C=0;return E>=4096&&(C+=13,E>>>=13),E>=64&&(C+=7,E>>>=7),E>=8&&(C+=4,E>>>=4),E>=2&&(C+=2,E>>>=2),C+E},i.prototype._zeroBits=function(f){if(f===0)return 26;var E=f,C=0;return(E&8191)===0&&(C+=13,E>>>=13),(E&127)===0&&(C+=7,E>>>=7),(E&15)===0&&(C+=4,E>>>=4),(E&3)===0&&(C+=2,E>>>=2),(E&1)===0&&C++,C},i.prototype.bitLength=function(){var f=this.words[this.length-1],E=this._countBits(f);return(this.length-1)*26+E};function v(F){for(var f=new Array(F.bitLength()),E=0;E>>M&1}return f}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var f=0,E=0;Ef.length?this.clone().ior(f):f.clone().ior(this)},i.prototype.uor=function(f){return this.length>f.length?this.clone().iuor(f):f.clone().iuor(this)},i.prototype.iuand=function(f){var E;this.length>f.length?E=f:E=this;for(var C=0;Cf.length?this.clone().iand(f):f.clone().iand(this)},i.prototype.uand=function(f){return this.length>f.length?this.clone().iuand(f):f.clone().iuand(this)},i.prototype.iuxor=function(f){var E,C;this.length>f.length?(E=this,C=f):(E=f,C=this);for(var M=0;Mf.length?this.clone().ixor(f):f.clone().ixor(this)},i.prototype.uxor=function(f){return this.length>f.length?this.clone().iuxor(f):f.clone().iuxor(this)},i.prototype.inotn=function(f){t(typeof f=="number"&&f>=0);var E=Math.ceil(f/26)|0,C=f%26;this._expand(E),C>0&&E--;for(var M=0;M0&&(this.words[M]=~this.words[M]&67108863>>26-C),this._strip()},i.prototype.notn=function(f){return this.clone().inotn(f)},i.prototype.setn=function(f,E){t(typeof f=="number"&&f>=0);var C=f/26|0,M=f%26;return this._expand(C+1),E?this.words[C]=this.words[C]|1<f.length?(C=this,M=f):(C=f,M=this);for(var x=0,B=0;B>>26;for(;x!==0&&B>>26;if(this.length=C.length,x!==0)this.words[this.length]=x,this.length++;else if(C!==this)for(;Bf.length?this.clone().iadd(f):f.clone().iadd(this)},i.prototype.isub=function(f){if(f.negative!==0){f.negative=0;var E=this.iadd(f);return f.negative=1,E._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(f),this.negative=1,this._normSign();var C=this.cmp(f);if(C===0)return this.negative=0,this.length=1,this.words[0]=0,this;var M,x;C>0?(M=this,x=f):(M=f,x=this);for(var B=0,j=0;j>26,this.words[j]=E&67108863;for(;B!==0&&j>26,this.words[j]=E&67108863;if(B===0&&j>>26,te=A&67108863,K=Math.min(b,f.length-1),$=Math.max(0,b-F.length+1);$<=K;$++){var W=b-$|0;M=F.words[W]|0,x=f.words[$]|0,B=M*x+te,N+=B/67108864|0,te=B&67108863}E.words[b]=te|0,A=N|0}return A!==0?E.words[b]=A|0:E.length--,E._strip()}var R=function(f,E,C){var M=f.words,x=E.words,B=C.words,j=0,A,b,N,te=M[0]|0,K=te&8191,$=te>>>13,W=M[1]|0,J=W&8191,ee=W>>>13,oe=M[2]|0,P=oe&8191,O=oe>>>13,Z=M[3]|0,Q=Z&8191,ae=Z>>>13,le=M[4]|0,ie=le&8191,de=le>>>13,He=M[5]|0,me=He&8191,he=He>>>13,be=M[6]|0,pe=be&8191,ye=be>>>13,je=M[7]|0,we=je&8191,k=je>>>13,y=M[8]|0,_=y&8191,L=y>>>13,U=M[9]|0,V=U&8191,z=U>>>13,fe=x[0]|0,ue=fe&8191,ce=fe>>>13,ve=x[1]|0,se=ve&8191,_e=ve>>>13,Vt=x[2]|0,Ee=Vt&8191,Re=Vt>>>13,zt=x[3]|0,Se=zt&8191,Ce=zt>>>13,Jt=x[4]|0,Me=Jt&8191,ke=Jt>>>13,Gt=x[5]|0,Ie=Gt&8191,xe=Gt>>>13,Zt=x[6]|0,Ae=Zt&8191,Te=Zt>>>13,Kt=x[7]|0,Le=Kt&8191,Be=Kt>>>13,Qt=x[8]|0,Ne=Qt&8191,Pe=Qt>>>13,Yt=x[9]|0,Oe=Yt&8191,Fe=Yt>>>13;C.negative=f.negative^E.negative,C.length=19,A=Math.imul(K,ue),b=Math.imul(K,ce),b=b+Math.imul($,ue)|0,N=Math.imul($,ce);var at=(j+A|0)+((b&8191)<<13)|0;j=(N+(b>>>13)|0)+(at>>>26)|0,at&=67108863,A=Math.imul(J,ue),b=Math.imul(J,ce),b=b+Math.imul(ee,ue)|0,N=Math.imul(ee,ce),A=A+Math.imul(K,se)|0,b=b+Math.imul(K,_e)|0,b=b+Math.imul($,se)|0,N=N+Math.imul($,_e)|0;var ct=(j+A|0)+((b&8191)<<13)|0;j=(N+(b>>>13)|0)+(ct>>>26)|0,ct&=67108863,A=Math.imul(P,ue),b=Math.imul(P,ce),b=b+Math.imul(O,ue)|0,N=Math.imul(O,ce),A=A+Math.imul(J,se)|0,b=b+Math.imul(J,_e)|0,b=b+Math.imul(ee,se)|0,N=N+Math.imul(ee,_e)|0,A=A+Math.imul(K,Ee)|0,b=b+Math.imul(K,Re)|0,b=b+Math.imul($,Ee)|0,N=N+Math.imul($,Re)|0;var ut=(j+A|0)+((b&8191)<<13)|0;j=(N+(b>>>13)|0)+(ut>>>26)|0,ut&=67108863,A=Math.imul(Q,ue),b=Math.imul(Q,ce),b=b+Math.imul(ae,ue)|0,N=Math.imul(ae,ce),A=A+Math.imul(P,se)|0,b=b+Math.imul(P,_e)|0,b=b+Math.imul(O,se)|0,N=N+Math.imul(O,_e)|0,A=A+Math.imul(J,Ee)|0,b=b+Math.imul(J,Re)|0,b=b+Math.imul(ee,Ee)|0,N=N+Math.imul(ee,Re)|0,A=A+Math.imul(K,Se)|0,b=b+Math.imul(K,Ce)|0,b=b+Math.imul($,Se)|0,N=N+Math.imul($,Ce)|0;var lt=(j+A|0)+((b&8191)<<13)|0;j=(N+(b>>>13)|0)+(lt>>>26)|0,lt&=67108863,A=Math.imul(ie,ue),b=Math.imul(ie,ce),b=b+Math.imul(de,ue)|0,N=Math.imul(de,ce),A=A+Math.imul(Q,se)|0,b=b+Math.imul(Q,_e)|0,b=b+Math.imul(ae,se)|0,N=N+Math.imul(ae,_e)|0,A=A+Math.imul(P,Ee)|0,b=b+Math.imul(P,Re)|0,b=b+Math.imul(O,Ee)|0,N=N+Math.imul(O,Re)|0,A=A+Math.imul(J,Se)|0,b=b+Math.imul(J,Ce)|0,b=b+Math.imul(ee,Se)|0,N=N+Math.imul(ee,Ce)|0,A=A+Math.imul(K,Me)|0,b=b+Math.imul(K,ke)|0,b=b+Math.imul($,Me)|0,N=N+Math.imul($,ke)|0;var ht=(j+A|0)+((b&8191)<<13)|0;j=(N+(b>>>13)|0)+(ht>>>26)|0,ht&=67108863,A=Math.imul(me,ue),b=Math.imul(me,ce),b=b+Math.imul(he,ue)|0,N=Math.imul(he,ce),A=A+Math.imul(ie,se)|0,b=b+Math.imul(ie,_e)|0,b=b+Math.imul(de,se)|0,N=N+Math.imul(de,_e)|0,A=A+Math.imul(Q,Ee)|0,b=b+Math.imul(Q,Re)|0,b=b+Math.imul(ae,Ee)|0,N=N+Math.imul(ae,Re)|0,A=A+Math.imul(P,Se)|0,b=b+Math.imul(P,Ce)|0,b=b+Math.imul(O,Se)|0,N=N+Math.imul(O,Ce)|0,A=A+Math.imul(J,Me)|0,b=b+Math.imul(J,ke)|0,b=b+Math.imul(ee,Me)|0,N=N+Math.imul(ee,ke)|0,A=A+Math.imul(K,Ie)|0,b=b+Math.imul(K,xe)|0,b=b+Math.imul($,Ie)|0,N=N+Math.imul($,xe)|0;var ft=(j+A|0)+((b&8191)<<13)|0;j=(N+(b>>>13)|0)+(ft>>>26)|0,ft&=67108863,A=Math.imul(pe,ue),b=Math.imul(pe,ce),b=b+Math.imul(ye,ue)|0,N=Math.imul(ye,ce),A=A+Math.imul(me,se)|0,b=b+Math.imul(me,_e)|0,b=b+Math.imul(he,se)|0,N=N+Math.imul(he,_e)|0,A=A+Math.imul(ie,Ee)|0,b=b+Math.imul(ie,Re)|0,b=b+Math.imul(de,Ee)|0,N=N+Math.imul(de,Re)|0,A=A+Math.imul(Q,Se)|0,b=b+Math.imul(Q,Ce)|0,b=b+Math.imul(ae,Se)|0,N=N+Math.imul(ae,Ce)|0,A=A+Math.imul(P,Me)|0,b=b+Math.imul(P,ke)|0,b=b+Math.imul(O,Me)|0,N=N+Math.imul(O,ke)|0,A=A+Math.imul(J,Ie)|0,b=b+Math.imul(J,xe)|0,b=b+Math.imul(ee,Ie)|0,N=N+Math.imul(ee,xe)|0,A=A+Math.imul(K,Ae)|0,b=b+Math.imul(K,Te)|0,b=b+Math.imul($,Ae)|0,N=N+Math.imul($,Te)|0;var dt=(j+A|0)+((b&8191)<<13)|0;j=(N+(b>>>13)|0)+(dt>>>26)|0,dt&=67108863,A=Math.imul(we,ue),b=Math.imul(we,ce),b=b+Math.imul(k,ue)|0,N=Math.imul(k,ce),A=A+Math.imul(pe,se)|0,b=b+Math.imul(pe,_e)|0,b=b+Math.imul(ye,se)|0,N=N+Math.imul(ye,_e)|0,A=A+Math.imul(me,Ee)|0,b=b+Math.imul(me,Re)|0,b=b+Math.imul(he,Ee)|0,N=N+Math.imul(he,Re)|0,A=A+Math.imul(ie,Se)|0,b=b+Math.imul(ie,Ce)|0,b=b+Math.imul(de,Se)|0,N=N+Math.imul(de,Ce)|0,A=A+Math.imul(Q,Me)|0,b=b+Math.imul(Q,ke)|0,b=b+Math.imul(ae,Me)|0,N=N+Math.imul(ae,ke)|0,A=A+Math.imul(P,Ie)|0,b=b+Math.imul(P,xe)|0,b=b+Math.imul(O,Ie)|0,N=N+Math.imul(O,xe)|0,A=A+Math.imul(J,Ae)|0,b=b+Math.imul(J,Te)|0,b=b+Math.imul(ee,Ae)|0,N=N+Math.imul(ee,Te)|0,A=A+Math.imul(K,Le)|0,b=b+Math.imul(K,Be)|0,b=b+Math.imul($,Le)|0,N=N+Math.imul($,Be)|0;var pt=(j+A|0)+((b&8191)<<13)|0;j=(N+(b>>>13)|0)+(pt>>>26)|0,pt&=67108863,A=Math.imul(_,ue),b=Math.imul(_,ce),b=b+Math.imul(L,ue)|0,N=Math.imul(L,ce),A=A+Math.imul(we,se)|0,b=b+Math.imul(we,_e)|0,b=b+Math.imul(k,se)|0,N=N+Math.imul(k,_e)|0,A=A+Math.imul(pe,Ee)|0,b=b+Math.imul(pe,Re)|0,b=b+Math.imul(ye,Ee)|0,N=N+Math.imul(ye,Re)|0,A=A+Math.imul(me,Se)|0,b=b+Math.imul(me,Ce)|0,b=b+Math.imul(he,Se)|0,N=N+Math.imul(he,Ce)|0,A=A+Math.imul(ie,Me)|0,b=b+Math.imul(ie,ke)|0,b=b+Math.imul(de,Me)|0,N=N+Math.imul(de,ke)|0,A=A+Math.imul(Q,Ie)|0,b=b+Math.imul(Q,xe)|0,b=b+Math.imul(ae,Ie)|0,N=N+Math.imul(ae,xe)|0,A=A+Math.imul(P,Ae)|0,b=b+Math.imul(P,Te)|0,b=b+Math.imul(O,Ae)|0,N=N+Math.imul(O,Te)|0,A=A+Math.imul(J,Le)|0,b=b+Math.imul(J,Be)|0,b=b+Math.imul(ee,Le)|0,N=N+Math.imul(ee,Be)|0,A=A+Math.imul(K,Ne)|0,b=b+Math.imul(K,Pe)|0,b=b+Math.imul($,Ne)|0,N=N+Math.imul($,Pe)|0;var gt=(j+A|0)+((b&8191)<<13)|0;j=(N+(b>>>13)|0)+(gt>>>26)|0,gt&=67108863,A=Math.imul(V,ue),b=Math.imul(V,ce),b=b+Math.imul(z,ue)|0,N=Math.imul(z,ce),A=A+Math.imul(_,se)|0,b=b+Math.imul(_,_e)|0,b=b+Math.imul(L,se)|0,N=N+Math.imul(L,_e)|0,A=A+Math.imul(we,Ee)|0,b=b+Math.imul(we,Re)|0,b=b+Math.imul(k,Ee)|0,N=N+Math.imul(k,Re)|0,A=A+Math.imul(pe,Se)|0,b=b+Math.imul(pe,Ce)|0,b=b+Math.imul(ye,Se)|0,N=N+Math.imul(ye,Ce)|0,A=A+Math.imul(me,Me)|0,b=b+Math.imul(me,ke)|0,b=b+Math.imul(he,Me)|0,N=N+Math.imul(he,ke)|0,A=A+Math.imul(ie,Ie)|0,b=b+Math.imul(ie,xe)|0,b=b+Math.imul(de,Ie)|0,N=N+Math.imul(de,xe)|0,A=A+Math.imul(Q,Ae)|0,b=b+Math.imul(Q,Te)|0,b=b+Math.imul(ae,Ae)|0,N=N+Math.imul(ae,Te)|0,A=A+Math.imul(P,Le)|0,b=b+Math.imul(P,Be)|0,b=b+Math.imul(O,Le)|0,N=N+Math.imul(O,Be)|0,A=A+Math.imul(J,Ne)|0,b=b+Math.imul(J,Pe)|0,b=b+Math.imul(ee,Ne)|0,N=N+Math.imul(ee,Pe)|0,A=A+Math.imul(K,Oe)|0,b=b+Math.imul(K,Fe)|0,b=b+Math.imul($,Oe)|0,N=N+Math.imul($,Fe)|0;var mt=(j+A|0)+((b&8191)<<13)|0;j=(N+(b>>>13)|0)+(mt>>>26)|0,mt&=67108863,A=Math.imul(V,se),b=Math.imul(V,_e),b=b+Math.imul(z,se)|0,N=Math.imul(z,_e),A=A+Math.imul(_,Ee)|0,b=b+Math.imul(_,Re)|0,b=b+Math.imul(L,Ee)|0,N=N+Math.imul(L,Re)|0,A=A+Math.imul(we,Se)|0,b=b+Math.imul(we,Ce)|0,b=b+Math.imul(k,Se)|0,N=N+Math.imul(k,Ce)|0,A=A+Math.imul(pe,Me)|0,b=b+Math.imul(pe,ke)|0,b=b+Math.imul(ye,Me)|0,N=N+Math.imul(ye,ke)|0,A=A+Math.imul(me,Ie)|0,b=b+Math.imul(me,xe)|0,b=b+Math.imul(he,Ie)|0,N=N+Math.imul(he,xe)|0,A=A+Math.imul(ie,Ae)|0,b=b+Math.imul(ie,Te)|0,b=b+Math.imul(de,Ae)|0,N=N+Math.imul(de,Te)|0,A=A+Math.imul(Q,Le)|0,b=b+Math.imul(Q,Be)|0,b=b+Math.imul(ae,Le)|0,N=N+Math.imul(ae,Be)|0,A=A+Math.imul(P,Ne)|0,b=b+Math.imul(P,Pe)|0,b=b+Math.imul(O,Ne)|0,N=N+Math.imul(O,Pe)|0,A=A+Math.imul(J,Oe)|0,b=b+Math.imul(J,Fe)|0,b=b+Math.imul(ee,Oe)|0,N=N+Math.imul(ee,Fe)|0;var yt=(j+A|0)+((b&8191)<<13)|0;j=(N+(b>>>13)|0)+(yt>>>26)|0,yt&=67108863,A=Math.imul(V,Ee),b=Math.imul(V,Re),b=b+Math.imul(z,Ee)|0,N=Math.imul(z,Re),A=A+Math.imul(_,Se)|0,b=b+Math.imul(_,Ce)|0,b=b+Math.imul(L,Se)|0,N=N+Math.imul(L,Ce)|0,A=A+Math.imul(we,Me)|0,b=b+Math.imul(we,ke)|0,b=b+Math.imul(k,Me)|0,N=N+Math.imul(k,ke)|0,A=A+Math.imul(pe,Ie)|0,b=b+Math.imul(pe,xe)|0,b=b+Math.imul(ye,Ie)|0,N=N+Math.imul(ye,xe)|0,A=A+Math.imul(me,Ae)|0,b=b+Math.imul(me,Te)|0,b=b+Math.imul(he,Ae)|0,N=N+Math.imul(he,Te)|0,A=A+Math.imul(ie,Le)|0,b=b+Math.imul(ie,Be)|0,b=b+Math.imul(de,Le)|0,N=N+Math.imul(de,Be)|0,A=A+Math.imul(Q,Ne)|0,b=b+Math.imul(Q,Pe)|0,b=b+Math.imul(ae,Ne)|0,N=N+Math.imul(ae,Pe)|0,A=A+Math.imul(P,Oe)|0,b=b+Math.imul(P,Fe)|0,b=b+Math.imul(O,Oe)|0,N=N+Math.imul(O,Fe)|0;var wt=(j+A|0)+((b&8191)<<13)|0;j=(N+(b>>>13)|0)+(wt>>>26)|0,wt&=67108863,A=Math.imul(V,Se),b=Math.imul(V,Ce),b=b+Math.imul(z,Se)|0,N=Math.imul(z,Ce),A=A+Math.imul(_,Me)|0,b=b+Math.imul(_,ke)|0,b=b+Math.imul(L,Me)|0,N=N+Math.imul(L,ke)|0,A=A+Math.imul(we,Ie)|0,b=b+Math.imul(we,xe)|0,b=b+Math.imul(k,Ie)|0,N=N+Math.imul(k,xe)|0,A=A+Math.imul(pe,Ae)|0,b=b+Math.imul(pe,Te)|0,b=b+Math.imul(ye,Ae)|0,N=N+Math.imul(ye,Te)|0,A=A+Math.imul(me,Le)|0,b=b+Math.imul(me,Be)|0,b=b+Math.imul(he,Le)|0,N=N+Math.imul(he,Be)|0,A=A+Math.imul(ie,Ne)|0,b=b+Math.imul(ie,Pe)|0,b=b+Math.imul(de,Ne)|0,N=N+Math.imul(de,Pe)|0,A=A+Math.imul(Q,Oe)|0,b=b+Math.imul(Q,Fe)|0,b=b+Math.imul(ae,Oe)|0,N=N+Math.imul(ae,Fe)|0;var vt=(j+A|0)+((b&8191)<<13)|0;j=(N+(b>>>13)|0)+(vt>>>26)|0,vt&=67108863,A=Math.imul(V,Me),b=Math.imul(V,ke),b=b+Math.imul(z,Me)|0,N=Math.imul(z,ke),A=A+Math.imul(_,Ie)|0,b=b+Math.imul(_,xe)|0,b=b+Math.imul(L,Ie)|0,N=N+Math.imul(L,xe)|0,A=A+Math.imul(we,Ae)|0,b=b+Math.imul(we,Te)|0,b=b+Math.imul(k,Ae)|0,N=N+Math.imul(k,Te)|0,A=A+Math.imul(pe,Le)|0,b=b+Math.imul(pe,Be)|0,b=b+Math.imul(ye,Le)|0,N=N+Math.imul(ye,Be)|0,A=A+Math.imul(me,Ne)|0,b=b+Math.imul(me,Pe)|0,b=b+Math.imul(he,Ne)|0,N=N+Math.imul(he,Pe)|0,A=A+Math.imul(ie,Oe)|0,b=b+Math.imul(ie,Fe)|0,b=b+Math.imul(de,Oe)|0,N=N+Math.imul(de,Fe)|0;var bt=(j+A|0)+((b&8191)<<13)|0;j=(N+(b>>>13)|0)+(bt>>>26)|0,bt&=67108863,A=Math.imul(V,Ie),b=Math.imul(V,xe),b=b+Math.imul(z,Ie)|0,N=Math.imul(z,xe),A=A+Math.imul(_,Ae)|0,b=b+Math.imul(_,Te)|0,b=b+Math.imul(L,Ae)|0,N=N+Math.imul(L,Te)|0,A=A+Math.imul(we,Le)|0,b=b+Math.imul(we,Be)|0,b=b+Math.imul(k,Le)|0,N=N+Math.imul(k,Be)|0,A=A+Math.imul(pe,Ne)|0,b=b+Math.imul(pe,Pe)|0,b=b+Math.imul(ye,Ne)|0,N=N+Math.imul(ye,Pe)|0,A=A+Math.imul(me,Oe)|0,b=b+Math.imul(me,Fe)|0,b=b+Math.imul(he,Oe)|0,N=N+Math.imul(he,Fe)|0;var _t=(j+A|0)+((b&8191)<<13)|0;j=(N+(b>>>13)|0)+(_t>>>26)|0,_t&=67108863,A=Math.imul(V,Ae),b=Math.imul(V,Te),b=b+Math.imul(z,Ae)|0,N=Math.imul(z,Te),A=A+Math.imul(_,Le)|0,b=b+Math.imul(_,Be)|0,b=b+Math.imul(L,Le)|0,N=N+Math.imul(L,Be)|0,A=A+Math.imul(we,Ne)|0,b=b+Math.imul(we,Pe)|0,b=b+Math.imul(k,Ne)|0,N=N+Math.imul(k,Pe)|0,A=A+Math.imul(pe,Oe)|0,b=b+Math.imul(pe,Fe)|0,b=b+Math.imul(ye,Oe)|0,N=N+Math.imul(ye,Fe)|0;var xn=(j+A|0)+((b&8191)<<13)|0;j=(N+(b>>>13)|0)+(xn>>>26)|0,xn&=67108863,A=Math.imul(V,Le),b=Math.imul(V,Be),b=b+Math.imul(z,Le)|0,N=Math.imul(z,Be),A=A+Math.imul(_,Ne)|0,b=b+Math.imul(_,Pe)|0,b=b+Math.imul(L,Ne)|0,N=N+Math.imul(L,Pe)|0,A=A+Math.imul(we,Oe)|0,b=b+Math.imul(we,Fe)|0,b=b+Math.imul(k,Oe)|0,N=N+Math.imul(k,Fe)|0;var An=(j+A|0)+((b&8191)<<13)|0;j=(N+(b>>>13)|0)+(An>>>26)|0,An&=67108863,A=Math.imul(V,Ne),b=Math.imul(V,Pe),b=b+Math.imul(z,Ne)|0,N=Math.imul(z,Pe),A=A+Math.imul(_,Oe)|0,b=b+Math.imul(_,Fe)|0,b=b+Math.imul(L,Oe)|0,N=N+Math.imul(L,Fe)|0;var Tn=(j+A|0)+((b&8191)<<13)|0;j=(N+(b>>>13)|0)+(Tn>>>26)|0,Tn&=67108863,A=Math.imul(V,Oe),b=Math.imul(V,Fe),b=b+Math.imul(z,Oe)|0,N=Math.imul(z,Fe);var Ln=(j+A|0)+((b&8191)<<13)|0;return j=(N+(b>>>13)|0)+(Ln>>>26)|0,Ln&=67108863,B[0]=at,B[1]=ct,B[2]=ut,B[3]=lt,B[4]=ht,B[5]=ft,B[6]=dt,B[7]=pt,B[8]=gt,B[9]=mt,B[10]=yt,B[11]=wt,B[12]=vt,B[13]=bt,B[14]=_t,B[15]=xn,B[16]=An,B[17]=Tn,B[18]=Ln,j!==0&&(B[19]=j,C.length++),C};Math.imul||(R=u);function S(F,f,E){E.negative=f.negative^F.negative,E.length=F.length+f.length;for(var C=0,M=0,x=0;x>>26)|0,M+=B>>>26,B&=67108863}E.words[x]=j,C=B,B=M}return C!==0?E.words[x]=C:E.length--,E._strip()}function I(F,f,E){return S(F,f,E)}i.prototype.mulTo=function(f,E){var C,M=this.length+f.length;return this.length===10&&f.length===10?C=R(this,f,E):M<63?C=u(this,f,E):M<1024?C=S(this,f,E):C=I(this,f,E),C},i.prototype.mul=function(f){var E=new i(null);return E.words=new Array(this.length+f.length),this.mulTo(f,E)},i.prototype.mulf=function(f){var E=new i(null);return E.words=new Array(this.length+f.length),I(this,f,E)},i.prototype.imul=function(f){return this.clone().mulTo(f,this)},i.prototype.imuln=function(f){var E=f<0;E&&(f=-f),t(typeof f=="number"),t(f<67108864);for(var C=0,M=0;M>=26,C+=x/67108864|0,C+=B>>>26,this.words[M]=B&67108863}return C!==0&&(this.words[M]=C,this.length++),E?this.ineg():this},i.prototype.muln=function(f){return this.clone().imuln(f)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(f){var E=v(f);if(E.length===0)return new i(1);for(var C=this,M=0;M=0);var E=f%26,C=(f-E)/26,M=67108863>>>26-E<<26-E,x;if(E!==0){var B=0;for(x=0;x>>26-E}B&&(this.words[x]=B,this.length++)}if(C!==0){for(x=this.length-1;x>=0;x--)this.words[x+C]=this.words[x];for(x=0;x=0);var M;E?M=(E-E%26)/26:M=0;var x=f%26,B=Math.min((f-x)/26,this.length),j=67108863^67108863>>>x<B)for(this.length-=B,b=0;b=0&&(N!==0||b>=M);b--){var te=this.words[b]|0;this.words[b]=N<<26-x|te>>>x,N=te&j}return A&&N!==0&&(A.words[A.length++]=N),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(f,E,C){return t(this.negative===0),this.iushrn(f,E,C)},i.prototype.shln=function(f){return this.clone().ishln(f)},i.prototype.ushln=function(f){return this.clone().iushln(f)},i.prototype.shrn=function(f){return this.clone().ishrn(f)},i.prototype.ushrn=function(f){return this.clone().iushrn(f)},i.prototype.testn=function(f){t(typeof f=="number"&&f>=0);var E=f%26,C=(f-E)/26,M=1<=0);var E=f%26,C=(f-E)/26;if(t(this.negative===0,"imaskn works only with positive numbers"),this.length<=C)return this;if(E!==0&&C++,this.length=Math.min(C,this.length),E!==0){var M=67108863^67108863>>>E<=67108864;E++)this.words[E]-=67108864,E===this.length-1?this.words[E+1]=1:this.words[E+1]++;return this.length=Math.max(this.length,E+1),this},i.prototype.isubn=function(f){if(t(typeof f=="number"),t(f<67108864),f<0)return this.iaddn(-f);if(this.negative!==0)return this.negative=0,this.iaddn(f),this.negative=1,this;if(this.words[0]-=f,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var E=0;E>26)-(A/67108864|0),this.words[x+C]=B&67108863}for(;x>26,this.words[x+C]=B&67108863;if(j===0)return this._strip();for(t(j===-1),j=0,x=0;x>26,this.words[x]=B&67108863;return this.negative=1,this._strip()},i.prototype._wordDiv=function(f,E){var C=this.length-f.length,M=this.clone(),x=f,B=x.words[x.length-1]|0,j=this._countBits(B);C=26-j,C!==0&&(x=x.ushln(C),M.iushln(C),B=x.words[x.length-1]|0);var A=M.length-x.length,b;if(E!=="mod"){b=new i(null),b.length=A+1,b.words=new Array(b.length);for(var N=0;N=0;K--){var $=(M.words[x.length+K]|0)*67108864+(M.words[x.length+K-1]|0);for($=Math.min($/B|0,67108863),M._ishlnsubmul(x,$,K);M.negative!==0;)$--,M.negative=0,M._ishlnsubmul(x,1,K),M.isZero()||(M.negative^=1);b&&(b.words[K]=$)}return b&&b._strip(),M._strip(),E!=="div"&&C!==0&&M.iushrn(C),{div:b||null,mod:M}},i.prototype.divmod=function(f,E,C){if(t(!f.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var M,x,B;return this.negative!==0&&f.negative===0?(B=this.neg().divmod(f,E),E!=="mod"&&(M=B.div.neg()),E!=="div"&&(x=B.mod.neg(),C&&x.negative!==0&&x.iadd(f)),{div:M,mod:x}):this.negative===0&&f.negative!==0?(B=this.divmod(f.neg(),E),E!=="mod"&&(M=B.div.neg()),{div:M,mod:B.mod}):(this.negative&f.negative)!==0?(B=this.neg().divmod(f.neg(),E),E!=="div"&&(x=B.mod.neg(),C&&x.negative!==0&&x.isub(f)),{div:B.div,mod:x}):f.length>this.length||this.cmp(f)<0?{div:new i(0),mod:this}:f.length===1?E==="div"?{div:this.divn(f.words[0]),mod:null}:E==="mod"?{div:null,mod:new i(this.modrn(f.words[0]))}:{div:this.divn(f.words[0]),mod:new i(this.modrn(f.words[0]))}:this._wordDiv(f,E)},i.prototype.div=function(f){return this.divmod(f,"div",!1).div},i.prototype.mod=function(f){return this.divmod(f,"mod",!1).mod},i.prototype.umod=function(f){return this.divmod(f,"mod",!0).mod},i.prototype.divRound=function(f){var E=this.divmod(f);if(E.mod.isZero())return E.div;var C=E.div.negative!==0?E.mod.isub(f):E.mod,M=f.ushrn(1),x=f.andln(1),B=C.cmp(M);return B<0||x===1&&B===0?E.div:E.div.negative!==0?E.div.isubn(1):E.div.iaddn(1)},i.prototype.modrn=function(f){var E=f<0;E&&(f=-f),t(f<=67108863);for(var C=(1<<26)%f,M=0,x=this.length-1;x>=0;x--)M=(C*M+(this.words[x]|0))%f;return E?-M:M},i.prototype.modn=function(f){return this.modrn(f)},i.prototype.idivn=function(f){var E=f<0;E&&(f=-f),t(f<=67108863);for(var C=0,M=this.length-1;M>=0;M--){var x=(this.words[M]|0)+C*67108864;this.words[M]=x/f|0,C=x%f}return this._strip(),E?this.ineg():this},i.prototype.divn=function(f){return this.clone().idivn(f)},i.prototype.egcd=function(f){t(f.negative===0),t(!f.isZero());var E=this,C=f.clone();E.negative!==0?E=E.umod(f):E=E.clone();for(var M=new i(1),x=new i(0),B=new i(0),j=new i(1),A=0;E.isEven()&&C.isEven();)E.iushrn(1),C.iushrn(1),++A;for(var b=C.clone(),N=E.clone();!E.isZero();){for(var te=0,K=1;(E.words[0]&K)===0&&te<26;++te,K<<=1);if(te>0)for(E.iushrn(te);te-- >0;)(M.isOdd()||x.isOdd())&&(M.iadd(b),x.isub(N)),M.iushrn(1),x.iushrn(1);for(var $=0,W=1;(C.words[0]&W)===0&&$<26;++$,W<<=1);if($>0)for(C.iushrn($);$-- >0;)(B.isOdd()||j.isOdd())&&(B.iadd(b),j.isub(N)),B.iushrn(1),j.iushrn(1);E.cmp(C)>=0?(E.isub(C),M.isub(B),x.isub(j)):(C.isub(E),B.isub(M),j.isub(x))}return{a:B,b:j,gcd:C.iushln(A)}},i.prototype._invmp=function(f){t(f.negative===0),t(!f.isZero());var E=this,C=f.clone();E.negative!==0?E=E.umod(f):E=E.clone();for(var M=new i(1),x=new i(0),B=C.clone();E.cmpn(1)>0&&C.cmpn(1)>0;){for(var j=0,A=1;(E.words[0]&A)===0&&j<26;++j,A<<=1);if(j>0)for(E.iushrn(j);j-- >0;)M.isOdd()&&M.iadd(B),M.iushrn(1);for(var b=0,N=1;(C.words[0]&N)===0&&b<26;++b,N<<=1);if(b>0)for(C.iushrn(b);b-- >0;)x.isOdd()&&x.iadd(B),x.iushrn(1);E.cmp(C)>=0?(E.isub(C),M.isub(x)):(C.isub(E),x.isub(M))}var te;return E.cmpn(1)===0?te=M:te=x,te.cmpn(0)<0&&te.iadd(f),te},i.prototype.gcd=function(f){if(this.isZero())return f.abs();if(f.isZero())return this.abs();var E=this.clone(),C=f.clone();E.negative=0,C.negative=0;for(var M=0;E.isEven()&&C.isEven();M++)E.iushrn(1),C.iushrn(1);do{for(;E.isEven();)E.iushrn(1);for(;C.isEven();)C.iushrn(1);var x=E.cmp(C);if(x<0){var B=E;E=C,C=B}else if(x===0||C.cmpn(1)===0)break;E.isub(C)}while(!0);return C.iushln(M)},i.prototype.invm=function(f){return this.egcd(f).a.umod(f)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(f){return this.words[0]&f},i.prototype.bincn=function(f){t(typeof f=="number");var E=f%26,C=(f-E)/26,M=1<>>26,j&=67108863,this.words[B]=j}return x!==0&&(this.words[B]=x,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(f){var E=f<0;if(this.negative!==0&&!E)return-1;if(this.negative===0&&E)return 1;this._strip();var C;if(this.length>1)C=1;else{E&&(f=-f),t(f<=67108863,"Number is too big");var M=this.words[0]|0;C=M===f?0:Mf.length)return 1;if(this.length=0;C--){var M=this.words[C]|0,x=f.words[C]|0;if(M!==x){Mx&&(E=1);break}}return E},i.prototype.gtn=function(f){return this.cmpn(f)===1},i.prototype.gt=function(f){return this.cmp(f)===1},i.prototype.gten=function(f){return this.cmpn(f)>=0},i.prototype.gte=function(f){return this.cmp(f)>=0},i.prototype.ltn=function(f){return this.cmpn(f)===-1},i.prototype.lt=function(f){return this.cmp(f)===-1},i.prototype.lten=function(f){return this.cmpn(f)<=0},i.prototype.lte=function(f){return this.cmp(f)<=0},i.prototype.eqn=function(f){return this.cmpn(f)===0},i.prototype.eq=function(f){return this.cmp(f)===0},i.red=function(f){return new Y(f)},i.prototype.toRed=function(f){return t(!this.red,"Already a number in reduction context"),t(this.negative===0,"red works only with positives"),f.convertTo(this)._forceRed(f)},i.prototype.fromRed=function(){return t(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(f){return this.red=f,this},i.prototype.forceRed=function(f){return t(!this.red,"Already a number in reduction context"),this._forceRed(f)},i.prototype.redAdd=function(f){return t(this.red,"redAdd works only with red numbers"),this.red.add(this,f)},i.prototype.redIAdd=function(f){return t(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,f)},i.prototype.redSub=function(f){return t(this.red,"redSub works only with red numbers"),this.red.sub(this,f)},i.prototype.redISub=function(f){return t(this.red,"redISub works only with red numbers"),this.red.isub(this,f)},i.prototype.redShl=function(f){return t(this.red,"redShl works only with red numbers"),this.red.shl(this,f)},i.prototype.redMul=function(f){return t(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.mul(this,f)},i.prototype.redIMul=function(f){return t(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.imul(this,f)},i.prototype.redSqr=function(){return t(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return t(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return t(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return t(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return t(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(f){return t(this.red&&!f.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,f)};var T={k256:null,p224:null,p192:null,p25519:null};function q(F,f){this.name=F,this.p=new i(f,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}q.prototype._tmp=function(){var f=new i(null);return f.words=new Array(Math.ceil(this.n/13)),f},q.prototype.ireduce=function(f){var E=f,C;do this.split(E,this.tmp),E=this.imulK(E),E=E.iadd(this.tmp),C=E.bitLength();while(C>this.n);var M=C0?E.isub(this.p):E.strip!==void 0?E.strip():E._strip(),E},q.prototype.split=function(f,E){f.iushrn(this.n,0,E)},q.prototype.imulK=function(f){return f.imul(this.k)};function D(){q.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}h(D,q),D.prototype.split=function(f,E){for(var C=4194303,M=Math.min(f.length,9),x=0;x>>22,B=j}B>>>=22,f.words[x-10]=B,B===0&&f.length>10?f.length-=10:f.length-=9},D.prototype.imulK=function(f){f.words[f.length]=0,f.words[f.length+1]=0,f.length+=2;for(var E=0,C=0;C>>=26,f.words[C]=x,E=M}return E!==0&&(f.words[f.length++]=E),f},i._prime=function(f){if(T[f])return T[f];var E;if(f==="k256")E=new D;else if(f==="p224")E=new H;else if(f==="p192")E=new G;else if(f==="p25519")E=new X;else throw new Error("Unknown prime "+f);return T[f]=E,E};function Y(F){if(typeof F=="string"){var f=i._prime(F);this.m=f.p,this.prime=f}else t(F.gtn(1),"modulus must be greater than 1"),this.m=F,this.prime=null}Y.prototype._verify1=function(f){t(f.negative===0,"red works only with positives"),t(f.red,"red works only with red numbers")},Y.prototype._verify2=function(f,E){t((f.negative|E.negative)===0,"red works only with positives"),t(f.red&&f.red===E.red,"red works only with red numbers")},Y.prototype.imod=function(f){return this.prime?this.prime.ireduce(f)._forceRed(this):(g(f,f.umod(this.m)._forceRed(this)),f)},Y.prototype.neg=function(f){return f.isZero()?f.clone():this.m.sub(f)._forceRed(this)},Y.prototype.add=function(f,E){this._verify2(f,E);var C=f.add(E);return C.cmp(this.m)>=0&&C.isub(this.m),C._forceRed(this)},Y.prototype.iadd=function(f,E){this._verify2(f,E);var C=f.iadd(E);return C.cmp(this.m)>=0&&C.isub(this.m),C},Y.prototype.sub=function(f,E){this._verify2(f,E);var C=f.sub(E);return C.cmpn(0)<0&&C.iadd(this.m),C._forceRed(this)},Y.prototype.isub=function(f,E){this._verify2(f,E);var C=f.isub(E);return C.cmpn(0)<0&&C.iadd(this.m),C},Y.prototype.shl=function(f,E){return this._verify1(f),this.imod(f.ushln(E))},Y.prototype.imul=function(f,E){return this._verify2(f,E),this.imod(f.imul(E))},Y.prototype.mul=function(f,E){return this._verify2(f,E),this.imod(f.mul(E))},Y.prototype.isqr=function(f){return this.imul(f,f.clone())},Y.prototype.sqr=function(f){return this.mul(f,f)},Y.prototype.sqrt=function(f){if(f.isZero())return f.clone();var E=this.m.andln(3);if(t(E%2===1),E===3){var C=this.m.add(new i(1)).iushrn(2);return this.pow(f,C)}for(var M=this.m.subn(1),x=0;!M.isZero()&&M.andln(1)===0;)x++,M.iushrn(1);t(!M.isZero());var B=new i(1).toRed(this),j=B.redNeg(),A=this.m.subn(1).iushrn(1),b=this.m.bitLength();for(b=new i(2*b*b).toRed(this);this.pow(b,A).cmp(j)!==0;)b.redIAdd(j);for(var N=this.pow(b,M),te=this.pow(f,M.addn(1).iushrn(1)),K=this.pow(f,M),$=x;K.cmp(B)!==0;){for(var W=K,J=0;W.cmp(B)!==0;J++)W=W.redSqr();t(J<$);var ee=this.pow(N,new i(1).iushln($-J-1));te=te.redMul(ee),N=ee.redSqr(),K=K.redMul(N),$=J}return te},Y.prototype.invm=function(f){var E=f._invmp(this.m);return E.negative!==0?(E.negative=0,this.imod(E).redNeg()):this.imod(E)},Y.prototype.pow=function(f,E){if(E.isZero())return new i(1).toRed(this);if(E.cmpn(1)===0)return f.clone();var C=4,M=new Array(1<=0;x--){for(var N=E.words[x],te=b-1;te>=0;te--){var K=N>>te&1;if(B!==M[0]&&(B=this.sqr(B)),K===0&&j===0){A=0;continue}j<<=1,j|=K,A++,!(A!==C&&(x!==0||te!==0))&&(B=this.mul(B,M[j]),A=0,j=0)}b=26}return B},Y.prototype.convertTo=function(f){var E=f.umod(this.m);return E===f?E.clone():E},Y.prototype.convertFrom=function(f){var E=f.clone();return E.red=null,E},i.mont=function(f){return new re(f)};function re(F){Y.call(this,F),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}h(re,Y),re.prototype.convertTo=function(f){return this.imod(f.ushln(this.shift))},re.prototype.convertFrom=function(f){var E=this.imod(f.mul(this.rinv));return E.red=null,E},re.prototype.imul=function(f,E){if(f.isZero()||E.isZero())return f.words[0]=0,f.length=1,f;var C=f.imul(E),M=C.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=C.isub(M).iushrn(this.shift),B=x;return x.cmp(this.m)>=0?B=x.isub(this.m):x.cmpn(0)<0&&(B=x.iadd(this.m)),B._forceRed(this)},re.prototype.mul=function(f,E){if(f.isZero()||E.isZero())return new i(0)._forceRed(this);var C=f.mul(E),M=C.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=C.isub(M).iushrn(this.shift),B=x;return x.cmp(this.m)>=0?B=x.isub(this.m):x.cmpn(0)<0&&(B=x.iadd(this.m)),B._forceRed(this)},re.prototype.invm=function(f){var E=this.imod(f._invmp(this.m).mul(this.r2));return E._forceRed(this)}})(e,vh)}(fn)),fn.exports}var Pn={},Et={},bo;function wn(){return bo||(bo=1,Object.defineProperty(Et,"__esModule",{value:!0}),Et.errorValues=Et.standardErrorCodes=void 0,Et.standardErrorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901,unsupportedChain:4902}},Et.errorValues={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."},4902:{standard:"EIP-3085",message:"Unrecognized chain ID."}}),Et}var lr={},On={},_o;function Us(){return _o||(_o=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.serialize=e.getErrorCode=e.isValidCode=e.getMessageFromCode=e.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;const r=wn(),n="Unspecified error message.";e.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.";function t(l,s=n){if(l&&Number.isInteger(l)){const m=l.toString();if(g(r.errorValues,m))return r.errorValues[m].message;if(p(l))return e.JSON_RPC_SERVER_ERROR_MESSAGE}return s}e.getMessageFromCode=t;function h(l){if(!Number.isInteger(l))return!1;const s=l.toString();return!!(r.errorValues[s]||p(l))}e.isValidCode=h;function i(l){var s;if(typeof l=="number")return l;if(o(l))return(s=l.code)!==null&&s!==void 0?s:l.errorCode}e.getErrorCode=i;function o(l){return typeof l=="object"&&l!==null&&(typeof l.code=="number"||typeof l.errorCode=="number")}function c(l,{shouldIncludeStack:s=!1}={}){const m={};if(l&&typeof l=="object"&&!Array.isArray(l)&&g(l,"code")&&h(l.code)){const w=l;m.code=w.code,w.message&&typeof w.message=="string"?(m.message=w.message,g(w,"data")&&(m.data=w.data)):(m.message=t(m.code),m.data={originalError:d(l)})}else m.code=r.standardErrorCodes.rpc.internal,m.message=a(l,"message")?l.message:n,m.data={originalError:d(l)};return s&&(m.stack=a(l,"stack")?l.stack:void 0),m}e.serialize=c;function p(l){return l>=-32099&&l<=-32e3}function d(l){return l&&typeof l=="object"&&!Array.isArray(l)?Object.assign({},l):l}function g(l,s){return Object.prototype.hasOwnProperty.call(l,s)}function a(l,s){return typeof l=="object"&&l!==null&&s in l&&typeof l[s]=="string"}}(On)),On}var Eo;function bh(){if(Eo)return lr;Eo=1,Object.defineProperty(lr,"__esModule",{value:!0}),lr.standardErrors=void 0;const e=wn(),r=Us();lr.standardErrors={rpc:{parse:p=>n(e.standardErrorCodes.rpc.parse,p),invalidRequest:p=>n(e.standardErrorCodes.rpc.invalidRequest,p),invalidParams:p=>n(e.standardErrorCodes.rpc.invalidParams,p),methodNotFound:p=>n(e.standardErrorCodes.rpc.methodNotFound,p),internal:p=>n(e.standardErrorCodes.rpc.internal,p),server:p=>{if(!p||typeof p!="object"||Array.isArray(p))throw new Error("Ethereum RPC Server errors must provide single object argument.");const{code:d}=p;if(!Number.isInteger(d)||d>-32005||d<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return n(d,p)},invalidInput:p=>n(e.standardErrorCodes.rpc.invalidInput,p),resourceNotFound:p=>n(e.standardErrorCodes.rpc.resourceNotFound,p),resourceUnavailable:p=>n(e.standardErrorCodes.rpc.resourceUnavailable,p),transactionRejected:p=>n(e.standardErrorCodes.rpc.transactionRejected,p),methodNotSupported:p=>n(e.standardErrorCodes.rpc.methodNotSupported,p),limitExceeded:p=>n(e.standardErrorCodes.rpc.limitExceeded,p)},provider:{userRejectedRequest:p=>t(e.standardErrorCodes.provider.userRejectedRequest,p),unauthorized:p=>t(e.standardErrorCodes.provider.unauthorized,p),unsupportedMethod:p=>t(e.standardErrorCodes.provider.unsupportedMethod,p),disconnected:p=>t(e.standardErrorCodes.provider.disconnected,p),chainDisconnected:p=>t(e.standardErrorCodes.provider.chainDisconnected,p),unsupportedChain:p=>t(e.standardErrorCodes.provider.unsupportedChain,p),custom:p=>{if(!p||typeof p!="object"||Array.isArray(p))throw new Error("Ethereum Provider custom errors must provide single object argument.");const{code:d,message:g,data:a}=p;if(!g||typeof g!="string")throw new Error('"message" must be a nonempty string');return new o(d,g,a)}}};function n(p,d){const[g,a]=h(d);return new i(p,g||(0,r.getMessageFromCode)(p),a)}function t(p,d){const[g,a]=h(d);return new o(p,g||(0,r.getMessageFromCode)(p),a)}function h(p){if(p){if(typeof p=="string")return[p];if(typeof p=="object"&&!Array.isArray(p)){const{message:d,data:g}=p;if(d&&typeof d!="string")throw new Error("Must specify string message.");return[d||void 0,g]}}return[]}class i extends Error{constructor(d,g,a){if(!Number.isInteger(d))throw new Error('"code" must be an integer.');if(!g||typeof g!="string")throw new Error('"message" must be a nonempty string.');super(g),this.code=d,a!==void 0&&(this.data=a)}}class o extends i{constructor(d,g,a){if(!c(d))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(d,g,a)}}function c(p){return Number.isInteger(p)&&p>=1e3&&p<=4999}return lr}var hr={},fr={},Ro;function Hs(){if(Ro)return fr;Ro=1,Object.defineProperty(fr,"__esModule",{value:!0}),fr.isErrorResponse=void 0;function e(r){return r.errorMessage!==void 0}return fr.isErrorResponse=e,fr}var dr={},So;function Ws(){return So||(So=1,Object.defineProperty(dr,"__esModule",{value:!0}),dr.LIB_VERSION=void 0,dr.LIB_VERSION="3.9.3"),dr}var Co;function _h(){if(Co)return hr;Co=1,Object.defineProperty(hr,"__esModule",{value:!0}),hr.serializeError=void 0;const e=Hs(),r=Ws(),n=wn(),t=Us();function h(c,p){const d=(0,t.serialize)(i(c),{shouldIncludeStack:!0}),g=new URL("https://docs.cloud.coinbase.com/wallet-sdk/docs/errors");g.searchParams.set("version",r.LIB_VERSION),g.searchParams.set("code",d.code.toString());const a=o(d.data,p);return a&&g.searchParams.set("method",a),g.searchParams.set("message",d.message),Object.assign(Object.assign({},d),{docUrl:g.href})}hr.serializeError=h;function i(c){return typeof c=="string"?{message:c,code:n.standardErrorCodes.rpc.internal}:(0,e.isErrorResponse)(c)?Object.assign(Object.assign({},c),{message:c.errorMessage,code:c.errorCode,data:{method:c.method}}):c}function o(c,p){const d=c==null?void 0:c.method;if(d)return d;if(p!==void 0){if(typeof p=="string")return p;if(Array.isArray(p)){if(p.length>0)return p[0].method}else return p.method}}return hr}var Mo;function vn(){return Mo||(Mo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.standardErrors=e.standardErrorCodes=e.serializeError=e.getMessageFromCode=e.getErrorCode=void 0;const r=wn();Object.defineProperty(e,"standardErrorCodes",{enumerable:!0,get:function(){return r.standardErrorCodes}});const n=bh();Object.defineProperty(e,"standardErrors",{enumerable:!0,get:function(){return n.standardErrors}});const t=_h();Object.defineProperty(e,"serializeError",{enumerable:!0,get:function(){return t.serializeError}});const h=Us();Object.defineProperty(e,"getErrorCode",{enumerable:!0,get:function(){return h.getErrorCode}}),Object.defineProperty(e,"getMessageFromCode",{enumerable:!0,get:function(){return h.getMessageFromCode}})}(Pn)),Pn}var $e={},ko;function bn(){if(ko)return $e;ko=1,Object.defineProperty($e,"__esModule",{value:!0}),$e.ProviderType=$e.RegExpString=$e.IntNumber=$e.BigIntString=$e.AddressString=$e.HexString=$e.OpaqueType=void 0;function e(){return t=>t}$e.OpaqueType=e,$e.HexString=e(),$e.AddressString=e(),$e.BigIntString=e();function r(t){return Math.floor(t)}$e.IntNumber=r,$e.RegExpString=e();var n;return function(t){t.CoinbaseWallet="CoinbaseWallet",t.MetaMask="MetaMask",t.Unselected=""}(n||($e.ProviderType=n={})),$e}var Io;function nt(){if(Io)return ne;Io=1;var e=ne&&ne.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(ne,"__esModule",{value:!0}),ne.isMobileWeb=ne.getLocation=ne.isInIFrame=ne.createQrUrl=ne.getFavicon=ne.range=ne.isBigNumber=ne.ensureParsedJSONObject=ne.ensureBN=ne.ensureRegExpString=ne.ensureIntNumber=ne.ensureBuffer=ne.ensureAddressString=ne.ensureEvenLengthHexString=ne.ensureHexString=ne.isHexString=ne.prepend0x=ne.strip0x=ne.has0xPrefix=ne.hexStringFromIntNumber=ne.intNumberFromHexString=ne.bigIntStringFromBN=ne.hexStringFromBuffer=ne.hexStringToUint8Array=ne.uint8ArrayToHex=ne.randomBytesHex=void 0;const r=e(yn()),n=vn(),t=bn(),h=/^[0-9]*$/,i=/^[a-f0-9]*$/;function o(C){return c(crypto.getRandomValues(new Uint8Array(C)))}ne.randomBytesHex=o;function c(C){return[...C].map(M=>M.toString(16).padStart(2,"0")).join("")}ne.uint8ArrayToHex=c;function p(C){return new Uint8Array(C.match(/.{1,2}/g).map(M=>parseInt(M,16)))}ne.hexStringToUint8Array=p;function d(C,M=!1){const x=C.toString("hex");return(0,t.HexString)(M?`0x${x}`:x)}ne.hexStringFromBuffer=d;function g(C){return(0,t.BigIntString)(C.toString(10))}ne.bigIntStringFromBN=g;function a(C){return(0,t.IntNumber)(new r.default(R(C,!1),16).toNumber())}ne.intNumberFromHexString=a;function l(C){return(0,t.HexString)(`0x${new r.default(C).toString(16)}`)}ne.hexStringFromIntNumber=l;function s(C){return C.startsWith("0x")||C.startsWith("0X")}ne.has0xPrefix=s;function m(C){return s(C)?C.slice(2):C}ne.strip0x=m;function w(C){return s(C)?`0x${C.slice(2)}`:`0x${C}`}ne.prepend0x=w;function v(C){if(typeof C!="string")return!1;const M=m(C).toLowerCase();return i.test(M)}ne.isHexString=v;function u(C,M=!1){if(typeof C=="string"){const x=m(C).toLowerCase();if(i.test(x))return(0,t.HexString)(M?`0x${x}`:x)}throw n.standardErrors.rpc.invalidParams(`"${String(C)}" is not a hexadecimal string`)}ne.ensureHexString=u;function R(C,M=!1){let x=u(C,!1);return x.length%2===1&&(x=(0,t.HexString)(`0${x}`)),M?(0,t.HexString)(`0x${x}`):x}ne.ensureEvenLengthHexString=R;function S(C){if(typeof C=="string"){const M=m(C).toLowerCase();if(v(M)&&M.length===40)return(0,t.AddressString)(w(M))}throw n.standardErrors.rpc.invalidParams(`Invalid Ethereum address: ${String(C)}`)}ne.ensureAddressString=S;function I(C){if(Buffer.isBuffer(C))return C;if(typeof C=="string"){if(v(C)){const M=R(C,!1);return Buffer.from(M,"hex")}return Buffer.from(C,"utf8")}throw n.standardErrors.rpc.invalidParams(`Not binary data: ${String(C)}`)}ne.ensureBuffer=I;function T(C){if(typeof C=="number"&&Number.isInteger(C))return(0,t.IntNumber)(C);if(typeof C=="string"){if(h.test(C))return(0,t.IntNumber)(Number(C));if(v(C))return(0,t.IntNumber)(new r.default(R(C,!1),16).toNumber())}throw n.standardErrors.rpc.invalidParams(`Not an integer: ${String(C)}`)}ne.ensureIntNumber=T;function q(C){if(C instanceof RegExp)return(0,t.RegExpString)(C.toString());throw n.standardErrors.rpc.invalidParams(`Not a RegExp: ${String(C)}`)}ne.ensureRegExpString=q;function D(C){if(C!==null&&(r.default.isBN(C)||G(C)))return new r.default(C.toString(10),10);if(typeof C=="number")return new r.default(T(C));if(typeof C=="string"){if(h.test(C))return new r.default(C,10);if(v(C))return new r.default(R(C,!1),16)}throw n.standardErrors.rpc.invalidParams(`Not an integer: ${String(C)}`)}ne.ensureBN=D;function H(C){if(typeof C=="string")return JSON.parse(C);if(typeof C=="object")return C;throw n.standardErrors.rpc.invalidParams(`Not a JSON string or an object: ${String(C)}`)}ne.ensureParsedJSONObject=H;function G(C){if(C==null||typeof C.constructor!="function")return!1;const{constructor:M}=C;return typeof M.config=="function"&&typeof M.EUCLID=="number"}ne.isBigNumber=G;function X(C,M){return Array.from({length:M-C},(x,B)=>C+B)}ne.range=X;function Y(){const C=document.querySelector('link[sizes="192x192"]')||document.querySelector('link[sizes="180x180"]')||document.querySelector('link[rel="icon"]')||document.querySelector('link[rel="shortcut icon"]'),{protocol:M,host:x}=document.location,B=C?C.getAttribute("href"):null;return!B||B.startsWith("javascript:")||B.startsWith("vbscript:")?null:B.startsWith("http://")||B.startsWith("https://")||B.startsWith("data:")?B:B.startsWith("//")?M+B:`${M}//${x}${B}`}ne.getFavicon=Y;function re(C,M,x,B,j,A){const b=B?"parent-id":"id",N=new URLSearchParams({[b]:C,secret:M,server:x,v:j,chainId:A.toString()}).toString();return`${x}/#/link?${N}`}ne.createQrUrl=re;function F(){try{return window.frameElement!==null}catch{return!1}}ne.isInIFrame=F;function f(){try{return F()&&window.top?window.top.location:window.location}catch{return window.location}}ne.getLocation=f;function E(){var C;return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test((C=window==null?void 0:window.navigator)===null||C===void 0?void 0:C.userAgent)}return ne.isMobileWeb=E,ne}var pr={},xo;function Eh(){if(xo)return pr;xo=1,Object.defineProperty(pr,"__esModule",{value:!0}),pr.ScopedLocalStorage=void 0;let e=class{constructor(n){this.scope=n}setItem(n,t){localStorage.setItem(this.scopedKey(n),t)}getItem(n){return localStorage.getItem(this.scopedKey(n))}removeItem(n){localStorage.removeItem(this.scopedKey(n))}clear(){const n=this.scopedKey(""),t=[];for(let h=0;hlocalStorage.removeItem(h))}scopedKey(n){return`${this.scope}:${n}`}};return pr.ScopedLocalStorage=e,pr}var Rt={},gr={},mr={},yr={},Ao;function Vs(){return Ao||(Ao=1,Object.defineProperty(yr,"__esModule",{value:!0}),yr.EVENTS=void 0,yr.EVENTS={STARTED_CONNECTING:"walletlink_sdk.started.connecting",CONNECTED_STATE_CHANGE:"walletlink_sdk.connected",DISCONNECTED:"walletlink_sdk.disconnected",METADATA_DESTROYED:"walletlink_sdk_metadata_destroyed",LINKED:"walletlink_sdk.linked",FAILURE:"walletlink_sdk.generic_failure",SESSION_CONFIG_RECEIVED:"walletlink_sdk.session_config_event_received",ETH_ACCOUNTS_STATE:"walletlink_sdk.eth_accounts_state",SESSION_STATE_CHANGE:"walletlink_sdk.session_state_change",UNLINKED_ERROR_STATE:"walletlink_sdk.unlinked_error_state",SKIPPED_CLEARING_SESSION:"walletlink_sdk.skipped_clearing_session",GENERAL_ERROR:"walletlink_sdk.general_error",WEB3_REQUEST:"walletlink_sdk.web3.request",WEB3_REQUEST_PUBLISHED:"walletlink_sdk.web3.request_published",WEB3_RESPONSE:"walletlink_sdk.web3.response",METHOD_NOT_IMPLEMENTED:"walletlink_sdk.method_not_implemented",UNKNOWN_ADDRESS_ENCOUNTERED:"walletlink_sdk.unknown_address_encountered"}),yr}var Je={},To;function zs(){if(To)return Je;To=1,Object.defineProperty(Je,"__esModule",{value:!0}),Je.RelayAbstract=Je.APP_VERSION_KEY=Je.LOCAL_STORAGE_ADDRESSES_KEY=Je.WALLET_USER_NAME_KEY=void 0;const e=vn();Je.WALLET_USER_NAME_KEY="walletUsername",Je.LOCAL_STORAGE_ADDRESSES_KEY="Addresses",Je.APP_VERSION_KEY="AppVersion";let r=class{async makeEthereumJSONRPCRequest(t,h){if(!h)throw new Error("Error: No jsonRpcUrl provided");return window.fetch(h,{method:"POST",body:JSON.stringify(t),mode:"cors",headers:{"Content-Type":"application/json"}}).then(i=>i.json()).then(i=>{if(!i)throw e.standardErrors.rpc.parse({});const o=i,{error:c}=o;if(c)throw(0,e.serializeError)(c,t.method);return o})}};return Je.RelayAbstract=r,Je}var wr={},Fn={exports:{}},Kr={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh */var Lo;function st(){return Lo||(Lo=1,function(e,r){var n=mn(),t=n.Buffer;function h(o,c){for(var p in o)c[p]=o[p]}t.from&&t.alloc&&t.allocUnsafe&&t.allocUnsafeSlow?e.exports=n:(h(n,r),r.Buffer=i);function i(o,c,p){return t(o,c,p)}i.prototype=Object.create(t.prototype),h(t,i),i.from=function(o,c,p){if(typeof o=="number")throw new TypeError("Argument must not be a number");return t(o,c,p)},i.alloc=function(o,c,p){if(typeof o!="number")throw new TypeError("Argument must be a number");var d=t(o);return c!==void 0?typeof p=="string"?d.fill(c,p):d.fill(c):d.fill(0),d},i.allocUnsafe=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return t(o)},i.allocUnsafeSlow=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return n.SlowBuffer(o)}}(Kr,Kr.exports)),Kr.exports}var Dn,Bo;function rr(){if(Bo)return Dn;Bo=1;var e=st().Buffer;function r(n,t){this._block=e.alloc(n),this._finalSize=t,this._blockSize=n,this._len=0}return r.prototype.update=function(n,t){typeof n=="string"&&(t=t||"utf8",n=e.from(n,t));for(var h=this._block,i=this._blockSize,o=n.length,c=this._len,p=0;p=this._finalSize&&(this._update(this._block),this._block.fill(0));var h=this._len*8;if(h<=4294967295)this._block.writeUInt32BE(h,this._blockSize-4);else{var i=(h&4294967295)>>>0,o=(h-i)/4294967296;this._block.writeUInt32BE(o,this._blockSize-8),this._block.writeUInt32BE(i,this._blockSize-4)}this._update(this._block);var c=this._hash();return n?c.toString(n):c},r.prototype._update=function(){throw new Error("_update must be implemented by subclass")},Dn=r,Dn}var qn,No;function Rh(){if(No)return qn;No=1;var e=Ye(),r=rr(),n=st().Buffer,t=[1518500249,1859775393,-1894007588,-899497514],h=new Array(80);function i(){this.init(),this._w=h,r.call(this,64,56)}e(i,r),i.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function o(d){return d<<5|d>>>27}function c(d){return d<<30|d>>>2}function p(d,g,a,l){return d===0?g&a|~g&l:d===2?g&a|g&l|a&l:g^a^l}return i.prototype._update=function(d){for(var g=this._w,a=this._a|0,l=this._b|0,s=this._c|0,m=this._d|0,w=this._e|0,v=0;v<16;++v)g[v]=d.readInt32BE(v*4);for(;v<80;++v)g[v]=g[v-3]^g[v-8]^g[v-14]^g[v-16];for(var u=0;u<80;++u){var R=~~(u/20),S=o(a)+p(R,l,s,m)+w+g[u]+t[R]|0;w=m,m=s,s=c(l),l=a,a=S}this._a=a+this._a|0,this._b=l+this._b|0,this._c=s+this._c|0,this._d=m+this._d|0,this._e=w+this._e|0},i.prototype._hash=function(){var d=n.allocUnsafe(20);return d.writeInt32BE(this._a|0,0),d.writeInt32BE(this._b|0,4),d.writeInt32BE(this._c|0,8),d.writeInt32BE(this._d|0,12),d.writeInt32BE(this._e|0,16),d},qn=i,qn}var jn,Po;function Sh(){if(Po)return jn;Po=1;var e=Ye(),r=rr(),n=st().Buffer,t=[1518500249,1859775393,-1894007588,-899497514],h=new Array(80);function i(){this.init(),this._w=h,r.call(this,64,56)}e(i,r),i.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function o(g){return g<<1|g>>>31}function c(g){return g<<5|g>>>27}function p(g){return g<<30|g>>>2}function d(g,a,l,s){return g===0?a&l|~a&s:g===2?a&l|a&s|l&s:a^l^s}return i.prototype._update=function(g){for(var a=this._w,l=this._a|0,s=this._b|0,m=this._c|0,w=this._d|0,v=this._e|0,u=0;u<16;++u)a[u]=g.readInt32BE(u*4);for(;u<80;++u)a[u]=o(a[u-3]^a[u-8]^a[u-14]^a[u-16]);for(var R=0;R<80;++R){var S=~~(R/20),I=c(l)+d(S,s,m,w)+v+a[R]+t[S]|0;v=w,w=m,m=p(s),s=l,l=I}this._a=l+this._a|0,this._b=s+this._b|0,this._c=m+this._c|0,this._d=w+this._d|0,this._e=v+this._e|0},i.prototype._hash=function(){var g=n.allocUnsafe(20);return g.writeInt32BE(this._a|0,0),g.writeInt32BE(this._b|0,4),g.writeInt32BE(this._c|0,8),g.writeInt32BE(this._d|0,12),g.writeInt32BE(this._e|0,16),g},jn=i,jn}var $n,Oo;function Qu(){if(Oo)return $n;Oo=1;var e=Ye(),r=rr(),n=st().Buffer,t=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],h=new Array(64);function i(){this.init(),this._w=h,r.call(this,64,56)}e(i,r),i.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function o(l,s,m){return m^l&(s^m)}function c(l,s,m){return l&s|m&(l|s)}function p(l){return(l>>>2|l<<30)^(l>>>13|l<<19)^(l>>>22|l<<10)}function d(l){return(l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7)}function g(l){return(l>>>7|l<<25)^(l>>>18|l<<14)^l>>>3}function a(l){return(l>>>17|l<<15)^(l>>>19|l<<13)^l>>>10}return i.prototype._update=function(l){for(var s=this._w,m=this._a|0,w=this._b|0,v=this._c|0,u=this._d|0,R=this._e|0,S=this._f|0,I=this._g|0,T=this._h|0,q=0;q<16;++q)s[q]=l.readInt32BE(q*4);for(;q<64;++q)s[q]=a(s[q-2])+s[q-7]+g(s[q-15])+s[q-16]|0;for(var D=0;D<64;++D){var H=T+d(R)+o(R,S,I)+t[D]+s[D]|0,G=p(m)+c(m,w,v)|0;T=I,I=S,S=R,R=u+H|0,u=v,v=w,w=m,m=H+G|0}this._a=m+this._a|0,this._b=w+this._b|0,this._c=v+this._c|0,this._d=u+this._d|0,this._e=R+this._e|0,this._f=S+this._f|0,this._g=I+this._g|0,this._h=T+this._h|0},i.prototype._hash=function(){var l=n.allocUnsafe(32);return l.writeInt32BE(this._a,0),l.writeInt32BE(this._b,4),l.writeInt32BE(this._c,8),l.writeInt32BE(this._d,12),l.writeInt32BE(this._e,16),l.writeInt32BE(this._f,20),l.writeInt32BE(this._g,24),l.writeInt32BE(this._h,28),l},$n=i,$n}var Un,Fo;function Ch(){if(Fo)return Un;Fo=1;var e=Ye(),r=Qu(),n=rr(),t=st().Buffer,h=new Array(64);function i(){this.init(),this._w=h,n.call(this,64,56)}return e(i,r),i.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},i.prototype._hash=function(){var o=t.allocUnsafe(28);return o.writeInt32BE(this._a,0),o.writeInt32BE(this._b,4),o.writeInt32BE(this._c,8),o.writeInt32BE(this._d,12),o.writeInt32BE(this._e,16),o.writeInt32BE(this._f,20),o.writeInt32BE(this._g,24),o},Un=i,Un}var Hn,Do;function Yu(){if(Do)return Hn;Do=1;var e=Ye(),r=rr(),n=st().Buffer,t=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],h=new Array(160);function i(){this.init(),this._w=h,r.call(this,128,112)}e(i,r),i.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function o(w,v,u){return u^w&(v^u)}function c(w,v,u){return w&v|u&(w|v)}function p(w,v){return(w>>>28|v<<4)^(v>>>2|w<<30)^(v>>>7|w<<25)}function d(w,v){return(w>>>14|v<<18)^(w>>>18|v<<14)^(v>>>9|w<<23)}function g(w,v){return(w>>>1|v<<31)^(w>>>8|v<<24)^w>>>7}function a(w,v){return(w>>>1|v<<31)^(w>>>8|v<<24)^(w>>>7|v<<25)}function l(w,v){return(w>>>19|v<<13)^(v>>>29|w<<3)^w>>>6}function s(w,v){return(w>>>19|v<<13)^(v>>>29|w<<3)^(w>>>6|v<<26)}function m(w,v){return w>>>0>>0?1:0}return i.prototype._update=function(w){for(var v=this._w,u=this._ah|0,R=this._bh|0,S=this._ch|0,I=this._dh|0,T=this._eh|0,q=this._fh|0,D=this._gh|0,H=this._hh|0,G=this._al|0,X=this._bl|0,Y=this._cl|0,re=this._dl|0,F=this._el|0,f=this._fl|0,E=this._gl|0,C=this._hl|0,M=0;M<32;M+=2)v[M]=w.readInt32BE(M*4),v[M+1]=w.readInt32BE(M*4+4);for(;M<160;M+=2){var x=v[M-30],B=v[M-15*2+1],j=g(x,B),A=a(B,x);x=v[M-2*2],B=v[M-2*2+1];var b=l(x,B),N=s(B,x),te=v[M-7*2],K=v[M-7*2+1],$=v[M-16*2],W=v[M-16*2+1],J=A+K|0,ee=j+te+m(J,A)|0;J=J+N|0,ee=ee+b+m(J,N)|0,J=J+W|0,ee=ee+$+m(J,W)|0,v[M]=ee,v[M+1]=J}for(var oe=0;oe<160;oe+=2){ee=v[oe],J=v[oe+1];var P=c(u,R,S),O=c(G,X,Y),Z=p(u,G),Q=p(G,u),ae=d(T,F),le=d(F,T),ie=t[oe],de=t[oe+1],He=o(T,q,D),me=o(F,f,E),he=C+le|0,be=H+ae+m(he,C)|0;he=he+me|0,be=be+He+m(he,me)|0,he=he+de|0,be=be+ie+m(he,de)|0,he=he+J|0,be=be+ee+m(he,J)|0;var pe=Q+O|0,ye=Z+P+m(pe,Q)|0;H=D,C=E,D=q,E=f,q=T,f=F,F=re+he|0,T=I+be+m(F,re)|0,I=S,re=Y,S=R,Y=X,R=u,X=G,G=he+pe|0,u=be+ye+m(G,he)|0}this._al=this._al+G|0,this._bl=this._bl+X|0,this._cl=this._cl+Y|0,this._dl=this._dl+re|0,this._el=this._el+F|0,this._fl=this._fl+f|0,this._gl=this._gl+E|0,this._hl=this._hl+C|0,this._ah=this._ah+u+m(this._al,G)|0,this._bh=this._bh+R+m(this._bl,X)|0,this._ch=this._ch+S+m(this._cl,Y)|0,this._dh=this._dh+I+m(this._dl,re)|0,this._eh=this._eh+T+m(this._el,F)|0,this._fh=this._fh+q+m(this._fl,f)|0,this._gh=this._gh+D+m(this._gl,E)|0,this._hh=this._hh+H+m(this._hl,C)|0},i.prototype._hash=function(){var w=n.allocUnsafe(64);function v(u,R,S){w.writeInt32BE(u,S),w.writeInt32BE(R,S+4)}return v(this._ah,this._al,0),v(this._bh,this._bl,8),v(this._ch,this._cl,16),v(this._dh,this._dl,24),v(this._eh,this._el,32),v(this._fh,this._fl,40),v(this._gh,this._gl,48),v(this._hh,this._hl,56),w},Hn=i,Hn}var Wn,qo;function Mh(){if(qo)return Wn;qo=1;var e=Ye(),r=Yu(),n=rr(),t=st().Buffer,h=new Array(160);function i(){this.init(),this._w=h,n.call(this,128,112)}return e(i,r),i.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},i.prototype._hash=function(){var o=t.allocUnsafe(48);function c(p,d,g){o.writeInt32BE(p,g),o.writeInt32BE(d,g+4)}return c(this._ah,this._al,0),c(this._bh,this._bl,8),c(this._ch,this._cl,16),c(this._dh,this._dl,24),c(this._eh,this._el,32),c(this._fh,this._fl,40),o},Wn=i,Wn}var jo;function kh(){if(jo)return Fn.exports;jo=1;var e=Fn.exports=function(n){n=n.toLowerCase();var t=e[n];if(!t)throw new Error(n+" is not supported (we accept pull requests)");return new t};return e.sha=Rh(),e.sha1=Sh(),e.sha224=Ch(),e.sha256=Qu(),e.sha384=Mh(),e.sha512=Yu(),Fn.exports}var $o;function Js(){if($o)return wr;$o=1,Object.defineProperty(wr,"__esModule",{value:!0}),wr.Session=void 0;const e=kh(),r=nt(),n="session:id",t="session:secret",h="session:linked";let i=class Xu{constructor(c,p,d,g){this._storage=c,this._id=p||(0,r.randomBytesHex)(16),this._secret=d||(0,r.randomBytesHex)(32),this._key=new e.sha256().update(`${this._id}, ${this._secret} WalletLink`).digest("hex"),this._linked=!!g}static load(c){const p=c.getItem(n),d=c.getItem(h),g=c.getItem(t);return p&&g?new Xu(c,p,g,d==="1"):null}static hash(c){return new e.sha256().update(c).digest("hex")}get id(){return this._id}get secret(){return this._secret}get key(){return this._key}get linked(){return this._linked}set linked(c){this._linked=c,this.persistLinked()}save(){return this._storage.setItem(n,this._id),this._storage.setItem(t,this._secret),this.persistLinked(),this}persistLinked(){this._storage.setItem(h,this._linked?"1":"0")}};return wr.Session=i,wr}var vr={},br={},Uo;function Ih(){if(Uo)return br;Uo=1,Object.defineProperty(br,"__esModule",{value:!0}),br.Cipher=void 0;const e=nt();let r=class{constructor(t){this.secret=t}async encrypt(t){const h=this.secret;if(h.length!==64)throw Error("secret must be 256 bits");const i=crypto.getRandomValues(new Uint8Array(12)),o=await crypto.subtle.importKey("raw",(0,e.hexStringToUint8Array)(h),{name:"aes-gcm"},!1,["encrypt","decrypt"]),c=new TextEncoder,p=await window.crypto.subtle.encrypt({name:"AES-GCM",iv:i},o,c.encode(t)),d=16,g=p.slice(p.byteLength-d),a=p.slice(0,p.byteLength-d),l=new Uint8Array(g),s=new Uint8Array(a),m=new Uint8Array([...i,...l,...s]);return(0,e.uint8ArrayToHex)(m)}async decrypt(t){const h=this.secret;if(h.length!==64)throw Error("secret must be 256 bits");return new Promise((i,o)=>{(async function(){const c=await crypto.subtle.importKey("raw",(0,e.hexStringToUint8Array)(h),{name:"aes-gcm"},!1,["encrypt","decrypt"]),p=(0,e.hexStringToUint8Array)(t),d=p.slice(0,12),g=p.slice(12,28),a=p.slice(28),l=new Uint8Array([...a,...g]),s={name:"AES-GCM",iv:new Uint8Array(d)};try{const m=await window.crypto.subtle.decrypt(s,c,l),w=new TextDecoder;i(w.decode(m))}catch(m){o(m)}})()})}};return br.Cipher=r,br}var _r={},Ho;function xh(){if(Ho)return _r;Ho=1,Object.defineProperty(_r,"__esModule",{value:!0}),_r.WalletLinkHTTP=void 0;let e=class{constructor(n,t,h){this.linkAPIUrl=n,this.sessionId=t;const i=`${t}:${h}`;this.auth=`Basic ${btoa(i)}`}async markUnseenEventsAsSeen(n){return Promise.all(n.map(t=>fetch(`${this.linkAPIUrl}/events/${t.eventId}/seen`,{method:"POST",headers:{Authorization:this.auth}}))).catch(t=>console.error("Unabled to mark event as failed:",t))}async fetchUnseenEvents(){var n;const t=await fetch(`${this.linkAPIUrl}/events?unseen=true`,{headers:{Authorization:this.auth}});if(t.ok){const{events:h,error:i}=await t.json();if(i)throw new Error(`Check unseen events failed: ${i}`);const o=(n=h==null?void 0:h.filter(c=>c.event==="Web3Response").map(c=>({type:"Event",sessionId:this.sessionId,eventId:c.id,event:c.event,data:c.data})))!==null&&n!==void 0?n:[];return this.markUnseenEventsAsSeen(o),o}throw new Error(`Check unseen events failed: ${t.status}`)}};return _r.WalletLinkHTTP=e,_r}var St={},Wo;function Ah(){if(Wo)return St;Wo=1,Object.defineProperty(St,"__esModule",{value:!0}),St.WalletLinkWebSocket=St.ConnectionState=void 0;var e;(function(n){n[n.DISCONNECTED=0]="DISCONNECTED",n[n.CONNECTING=1]="CONNECTING",n[n.CONNECTED=2]="CONNECTED"})(e||(St.ConnectionState=e={}));let r=class{setConnectionStateListener(t){this.connectionStateListener=t}setIncomingDataListener(t){this.incomingDataListener=t}constructor(t,h=WebSocket){this.WebSocketClass=h,this.webSocket=null,this.pendingData=[],this.url=t.replace(/^http/,"ws")}async connect(){if(this.webSocket)throw new Error("webSocket object is not null");return new Promise((t,h)=>{var i;let o;try{this.webSocket=o=new this.WebSocketClass(this.url)}catch(c){h(c);return}(i=this.connectionStateListener)===null||i===void 0||i.call(this,e.CONNECTING),o.onclose=c=>{var p;this.clearWebSocket(),h(new Error(`websocket error ${c.code}: ${c.reason}`)),(p=this.connectionStateListener)===null||p===void 0||p.call(this,e.DISCONNECTED)},o.onopen=c=>{var p;t(),(p=this.connectionStateListener)===null||p===void 0||p.call(this,e.CONNECTED),this.pendingData.length>0&&([...this.pendingData].forEach(g=>this.sendData(g)),this.pendingData=[])},o.onmessage=c=>{var p,d;if(c.data==="h")(p=this.incomingDataListener)===null||p===void 0||p.call(this,{type:"Heartbeat"});else try{const g=JSON.parse(c.data);(d=this.incomingDataListener)===null||d===void 0||d.call(this,g)}catch{}}})}disconnect(){var t;const{webSocket:h}=this;if(h){this.clearWebSocket(),(t=this.connectionStateListener)===null||t===void 0||t.call(this,e.DISCONNECTED),this.connectionStateListener=void 0,this.incomingDataListener=void 0;try{h.close()}catch{}}}sendData(t){const{webSocket:h}=this;if(!h){this.pendingData.push(t),this.connect();return}h.send(t)}clearWebSocket(){const{webSocket:t}=this;t&&(this.webSocket=null,t.onclose=null,t.onerror=null,t.onmessage=null,t.onopen=null)}};return St.WalletLinkWebSocket=r,St}var Vo;function Th(){if(Vo)return vr;Vo=1,Object.defineProperty(vr,"__esModule",{value:!0}),vr.WalletLinkConnection=void 0;const e=bn(),r=Ih(),n=Vs(),t=zs(),h=Js(),i=xh(),o=Ah(),c=1e4,p=6e4;let d=class{constructor({session:a,linkAPIUrl:l,listener:s,diagnostic:m,WebSocketClass:w=WebSocket}){this.destroyed=!1,this.lastHeartbeatResponse=0,this.nextReqId=(0,e.IntNumber)(1),this._connected=!1,this._linked=!1,this.shouldFetchUnseenEventsOnConnect=!1,this.requestResolutions=new Map,this.handleSessionMetadataUpdated=u=>{if(!u)return;new Map([["__destroyed",this.handleDestroyed],["EthereumAddress",this.handleAccountUpdated],["WalletUsername",this.handleWalletUsernameUpdated],["AppVersion",this.handleAppVersionUpdated],["ChainId",S=>u.JsonRpcUrl&&this.handleChainUpdated(S,u.JsonRpcUrl)]]).forEach((S,I)=>{const T=u[I];T!==void 0&&S(T)})},this.handleDestroyed=u=>{var R,S;u==="1"&&((R=this.listener)===null||R===void 0||R.resetAndReload(),(S=this.diagnostic)===null||S===void 0||S.log(n.EVENTS.METADATA_DESTROYED,{alreadyDestroyed:this.isDestroyed,sessionIdHash:h.Session.hash(this.session.id)}))},this.handleAccountUpdated=async u=>{var R,S;try{const I=await this.cipher.decrypt(u);(R=this.listener)===null||R===void 0||R.accountUpdated(I)}catch{(S=this.diagnostic)===null||S===void 0||S.log(n.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"selectedAddress"})}},this.handleMetadataUpdated=async(u,R)=>{var S,I;try{const T=await this.cipher.decrypt(R);(S=this.listener)===null||S===void 0||S.metadataUpdated(u,T)}catch{(I=this.diagnostic)===null||I===void 0||I.log(n.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:u})}},this.handleWalletUsernameUpdated=async u=>{this.handleMetadataUpdated(t.WALLET_USER_NAME_KEY,u)},this.handleAppVersionUpdated=async u=>{this.handleMetadataUpdated(t.APP_VERSION_KEY,u)},this.handleChainUpdated=async(u,R)=>{var S,I;try{const T=await this.cipher.decrypt(u),q=await this.cipher.decrypt(R);(S=this.listener)===null||S===void 0||S.chainUpdated(T,q)}catch{(I=this.diagnostic)===null||I===void 0||I.log(n.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"chainId|jsonRpcUrl"})}},this.session=a,this.cipher=new r.Cipher(a.secret),this.diagnostic=m,this.listener=s;const v=new o.WalletLinkWebSocket(`${l}/rpc`,w);v.setConnectionStateListener(async u=>{var R;(R=this.diagnostic)===null||R===void 0||R.log(n.EVENTS.CONNECTED_STATE_CHANGE,{state:u,sessionIdHash:h.Session.hash(a.id)});let S=!1;switch(u){case o.ConnectionState.DISCONNECTED:if(!this.destroyed){const I=async()=>{await new Promise(T=>setTimeout(T,5e3)),this.destroyed||v.connect().catch(()=>{I()})};I()}break;case o.ConnectionState.CONNECTED:try{await this.authenticate(),this.sendIsLinked(),this.sendGetSessionConfig(),S=!0}catch{}this.updateLastHeartbeat(),setInterval(()=>{this.heartbeat()},c),this.shouldFetchUnseenEventsOnConnect&&this.fetchUnseenEventsAPI();break;case o.ConnectionState.CONNECTING:break}this.connected!==S&&(this.connected=S)}),v.setIncomingDataListener(u=>{var R,S,I;switch(u.type){case"Heartbeat":this.updateLastHeartbeat();return;case"IsLinkedOK":case"Linked":{const T=u.type==="IsLinkedOK"?u.linked:void 0;(R=this.diagnostic)===null||R===void 0||R.log(n.EVENTS.LINKED,{sessionIdHash:h.Session.hash(a.id),linked:T,type:u.type,onlineGuests:u.onlineGuests}),this.linked=T||u.onlineGuests>0;break}case"GetSessionConfigOK":case"SessionConfigUpdated":{(S=this.diagnostic)===null||S===void 0||S.log(n.EVENTS.SESSION_CONFIG_RECEIVED,{sessionIdHash:h.Session.hash(a.id),metadata_keys:u&&u.metadata?Object.keys(u.metadata):void 0}),this.handleSessionMetadataUpdated(u.metadata);break}case"Event":{this.handleIncomingEvent(u);break}}u.id!==void 0&&((I=this.requestResolutions.get(u.id))===null||I===void 0||I(u))}),this.ws=v,this.http=new i.WalletLinkHTTP(l,a.id,a.key)}connect(){var a;if(this.destroyed)throw new Error("instance is destroyed");(a=this.diagnostic)===null||a===void 0||a.log(n.EVENTS.STARTED_CONNECTING,{sessionIdHash:h.Session.hash(this.session.id)}),this.ws.connect()}destroy(){var a;this.destroyed=!0,this.ws.disconnect(),(a=this.diagnostic)===null||a===void 0||a.log(n.EVENTS.DISCONNECTED,{sessionIdHash:h.Session.hash(this.session.id)}),this.listener=void 0}get isDestroyed(){return this.destroyed}get connected(){return this._connected}set connected(a){var l,s;this._connected=a,a&&((l=this.onceConnected)===null||l===void 0||l.call(this)),(s=this.listener)===null||s===void 0||s.connectedUpdated(a)}setOnceConnected(a){return new Promise(l=>{this.connected?a().then(l):this.onceConnected=()=>{a().then(l),this.onceConnected=void 0}})}get linked(){return this._linked}set linked(a){var l,s;this._linked=a,a&&((l=this.onceLinked)===null||l===void 0||l.call(this)),(s=this.listener)===null||s===void 0||s.linkedUpdated(a)}setOnceLinked(a){return new Promise(l=>{this.linked?a().then(l):this.onceLinked=()=>{a().then(l),this.onceLinked=void 0}})}async handleIncomingEvent(a){var l,s;if(!(a.type!=="Event"||a.event!=="Web3Response"))try{const m=await this.cipher.decrypt(a.data),w=JSON.parse(m);if(w.type!=="WEB3_RESPONSE")return;(l=this.listener)===null||l===void 0||l.handleWeb3ResponseMessage(w)}catch{(s=this.diagnostic)===null||s===void 0||s.log(n.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"incomingEvent"})}}async checkUnseenEvents(){if(!this.connected){this.shouldFetchUnseenEventsOnConnect=!0;return}await new Promise(a=>setTimeout(a,250));try{await this.fetchUnseenEventsAPI()}catch(a){console.error("Unable to check for unseen events",a)}}async fetchUnseenEventsAPI(){this.shouldFetchUnseenEventsOnConnect=!1,(await this.http.fetchUnseenEvents()).forEach(l=>this.handleIncomingEvent(l))}async setSessionMetadata(a,l){const s={type:"SetSessionConfig",id:(0,e.IntNumber)(this.nextReqId++),sessionId:this.session.id,metadata:{[a]:l}};return this.setOnceConnected(async()=>{const m=await this.makeRequest(s);if(m.type==="Fail")throw new Error(m.error||"failed to set session metadata")})}async publishEvent(a,l,s=!1){const m=await this.cipher.encrypt(JSON.stringify(Object.assign(Object.assign({},l),{origin:location.origin,relaySource:window.coinbaseWalletExtension?"injected_sdk":"sdk"}))),w={type:"PublishEvent",id:(0,e.IntNumber)(this.nextReqId++),sessionId:this.session.id,event:a,data:m,callWebhook:s};return this.setOnceLinked(async()=>{const v=await this.makeRequest(w);if(v.type==="Fail")throw new Error(v.error||"failed to publish event");return v.eventId})}sendData(a){this.ws.sendData(JSON.stringify(a))}updateLastHeartbeat(){this.lastHeartbeatResponse=Date.now()}heartbeat(){if(Date.now()-this.lastHeartbeatResponse>c*2){this.ws.disconnect();return}try{this.ws.sendData("h")}catch{}}async makeRequest(a,l=p){const s=a.id;this.sendData(a);let m;return Promise.race([new Promise((w,v)=>{m=window.setTimeout(()=>{v(new Error(`request ${s} timed out`))},l)}),new Promise(w=>{this.requestResolutions.set(s,v=>{clearTimeout(m),w(v),this.requestResolutions.delete(s)})})])}async authenticate(){const a={type:"HostSession",id:(0,e.IntNumber)(this.nextReqId++),sessionId:this.session.id,sessionKey:this.session.key},l=await this.makeRequest(a);if(l.type==="Fail")throw new Error(l.error||"failed to authentcate")}sendIsLinked(){const a={type:"IsLinked",id:(0,e.IntNumber)(this.nextReqId++),sessionId:this.session.id};this.sendData(a)}sendGetSessionConfig(){const a={type:"GetSessionConfig",id:(0,e.IntNumber)(this.nextReqId++),sessionId:this.session.id};this.sendData(a)}};return vr.WalletLinkConnection=d,vr}var Er={},Ct={},Qr={},zo;function Lh(){return zo||(zo=1,Object.defineProperty(Qr,"__esModule",{value:!0}),Qr.default='@namespace svg "http://www.w3.org/2000/svg";.-cbwsdk-css-reset,.-cbwsdk-css-reset *{animation:none;animation-delay:0;animation-direction:normal;animation-duration:0;animation-fill-mode:none;animation-iteration-count:1;animation-name:none;animation-play-state:running;animation-timing-function:ease;backface-visibility:visible;background:0;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position:0 0;background-position-x:0;background-position-y:0;background-repeat:repeat;background-size:auto auto;border:0;border-style:none;border-width:medium;border-color:inherit;border-bottom:0;border-bottom-color:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-style:none;border-bottom-width:medium;border-collapse:separate;border-image:none;border-left:0;border-left-color:inherit;border-left-style:none;border-left-width:medium;border-radius:0;border-right:0;border-right-color:inherit;border-right-style:none;border-right-width:medium;border-spacing:0;border-top:0;border-top-color:inherit;border-top-left-radius:0;border-top-right-radius:0;border-top-style:none;border-top-width:medium;box-shadow:none;box-sizing:border-box;caption-side:top;clear:none;clip:auto;color:inherit;columns:auto;column-count:auto;column-fill:balance;column-gap:normal;column-rule:medium none currentColor;column-rule-color:currentColor;column-rule-style:none;column-rule-width:none;column-span:1;column-width:auto;counter-increment:none;counter-reset:none;direction:ltr;empty-cells:show;float:none;font:normal;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;height:auto;hyphens:none;letter-spacing:normal;line-height:normal;list-style:none;list-style-image:none;list-style-position:outside;list-style-type:disc;margin:0;margin-bottom:0;margin-left:0;margin-right:0;margin-top:0;opacity:1;orphans:0;outline:0;outline-color:invert;outline-style:none;outline-width:medium;overflow:visible;overflow-x:visible;overflow-y:visible;padding:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0;page-break-after:auto;page-break-before:auto;page-break-inside:auto;perspective:none;perspective-origin:50% 50%;pointer-events:auto;position:static;quotes:"\\201C" "\\201D" "\\2018" "\\2019";tab-size:8;table-layout:auto;text-align:inherit;text-align-last:auto;text-decoration:none;text-decoration-color:inherit;text-decoration-line:none;text-decoration-style:solid;text-indent:0;text-shadow:none;text-transform:none;transform:none;transform-style:flat;transition:none;transition-delay:0s;transition-duration:0s;transition-property:none;transition-timing-function:ease;unicode-bidi:normal;vertical-align:baseline;visibility:visible;white-space:normal;widows:0;word-spacing:normal;z-index:auto}.-cbwsdk-css-reset strong{font-weight:bold}.-cbwsdk-css-reset *{box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;line-height:1}.-cbwsdk-css-reset [class*=container]{margin:0;padding:0}.-cbwsdk-css-reset style{display:none}'),Qr}var Jo;function el(){if(Jo)return Ct;Jo=1;var e=Ct&&Ct.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.injectCssReset=void 0;const r=e(Lh());function n(){const t=document.createElement("style");t.type="text/css",t.appendChild(document.createTextNode(r.default)),document.documentElement.appendChild(t)}return Ct.injectCssReset=n,Ct}var Rr={};const We=Hr(fh);var Mt={};const Wr=Hr(dh),_n=Hr(ph);var tt={},Sr={},Go;function Bh(){if(Go)return Sr;Go=1,Object.defineProperty(Sr,"__esModule",{value:!0}),Sr.CloseIcon=void 0;const e=We;function r(n){return(0,e.h)("svg",Object.assign({width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),(0,e.h)("path",{d:"M13.7677 13L12.3535 14.4142L18.3535 20.4142L12.3535 26.4142L13.7677 27.8284L19.7677 21.8284L25.7677 27.8284L27.1819 26.4142L21.1819 20.4142L27.1819 14.4142L25.7677 13L19.7677 19L13.7677 13Z"}))}return Sr.CloseIcon=r,Sr}var Cr={},Zo;function Nh(){if(Zo)return Cr;Zo=1,Object.defineProperty(Cr,"__esModule",{value:!0}),Cr.CoinbaseWalletRound=void 0;const e=We;function r(n){return(0,e.h)("svg",Object.assign({width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),(0,e.h)("circle",{cx:"14",cy:"14",r:"14",fill:"#0052FF"}),(0,e.h)("path",{d:"M23.8521 14.0003C23.8521 19.455 19.455 23.8521 14.0003 23.8521C8.54559 23.8521 4.14844 19.455 4.14844 14.0003C4.14844 8.54559 8.54559 4.14844 14.0003 4.14844C19.455 4.14844 23.8521 8.54559 23.8521 14.0003Z",fill:"white"}),(0,e.h)("path",{d:"M11.1855 12.5042C11.1855 12.0477 11.1855 11.7942 11.2835 11.642C11.3814 11.4899 11.4793 11.3377 11.6261 11.287C11.8219 11.1855 12.0178 11.1855 12.5073 11.1855H15.4934C15.983 11.1855 16.1788 11.1855 16.3746 11.287C16.5215 11.3884 16.6683 11.4899 16.7173 11.642C16.8152 11.8449 16.8152 12.0477 16.8152 12.5042V15.4965C16.8152 15.953 16.8152 16.2066 16.7173 16.3587C16.6194 16.5109 16.5215 16.663 16.3746 16.7137C16.1788 16.8152 15.983 16.8152 15.4934 16.8152H12.5073C12.0178 16.8152 11.8219 16.8152 11.6261 16.7137C11.4793 16.6123 11.3324 16.5109 11.2835 16.3587C11.1855 16.1558 11.1855 15.953 11.1855 15.4965V12.5042Z",fill:"#0052FF"}))}return Cr.CoinbaseWalletRound=r,Cr}var Mr={},Ko;function Ph(){if(Ko)return Mr;Ko=1,Object.defineProperty(Mr,"__esModule",{value:!0}),Mr.QRCodeIcon=void 0;const e=We;function r(n){return(0,e.h)("svg",Object.assign({width:"18",height:"18",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},n),(0,e.h)("path",{d:"M3 3V8.99939L5 8.99996V5H9V3H3Z"}),(0,e.h)("path",{d:"M15 21L21 21V15.0006L19 15V19L15 19V21Z"}),(0,e.h)("path",{d:"M21 9H19V5H15.0006L15 3H21V9Z"}),(0,e.h)("path",{d:"M3 15V21H8.99939L8.99996 19H5L5 15H3Z"}))}return Mr.QRCodeIcon=r,Mr}var kt={},Vn,Qo;function Oh(){if(Qo)return Vn;Qo=1;function e(s){this.mode=n.MODE_8BIT_BYTE,this.data=s,this.parsedData=[];for(var m=0,w=this.data.length;m65536?(v[0]=240|(u&1835008)>>>18,v[1]=128|(u&258048)>>>12,v[2]=128|(u&4032)>>>6,v[3]=128|u&63):u>2048?(v[0]=224|(u&61440)>>>12,v[1]=128|(u&4032)>>>6,v[2]=128|u&63):u>128?(v[0]=192|(u&1984)>>>6,v[1]=128|u&63):v[0]=u,this.parsedData.push(v)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}e.prototype={getLength:function(s){return this.parsedData.length},write:function(s){for(var m=0,w=this.parsedData.length;m=7&&this.setupTypeNumber(s),this.dataCache==null&&(this.dataCache=r.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,m)},setupPositionProbePattern:function(s,m){for(var w=-1;w<=7;w++)if(!(s+w<=-1||this.moduleCount<=s+w))for(var v=-1;v<=7;v++)m+v<=-1||this.moduleCount<=m+v||(0<=w&&w<=6&&(v==0||v==6)||0<=v&&v<=6&&(w==0||w==6)||2<=w&&w<=4&&2<=v&&v<=4?this.modules[s+w][m+v]=!0:this.modules[s+w][m+v]=!1)},getBestMaskPattern:function(){for(var s=0,m=0,w=0;w<8;w++){this.makeImpl(!0,w);var v=i.getLostPoint(this);(w==0||s>v)&&(s=v,m=w)}return m},createMovieClip:function(s,m,w){var v=s.createEmptyMovieClip(m,w),u=1;this.make();for(var R=0;R>w&1)==1;this.modules[Math.floor(w/3)][w%3+this.moduleCount-8-3]=v}for(var w=0;w<18;w++){var v=!s&&(m>>w&1)==1;this.modules[w%3+this.moduleCount-8-3][Math.floor(w/3)]=v}},setupTypeInfo:function(s,m){for(var w=this.errorCorrectLevel<<3|m,v=i.getBCHTypeInfo(w),u=0;u<15;u++){var R=!s&&(v>>u&1)==1;u<6?this.modules[u][8]=R:u<8?this.modules[u+1][8]=R:this.modules[this.moduleCount-15+u][8]=R}for(var u=0;u<15;u++){var R=!s&&(v>>u&1)==1;u<8?this.modules[8][this.moduleCount-u-1]=R:u<9?this.modules[8][15-u-1+1]=R:this.modules[8][15-u-1]=R}this.modules[this.moduleCount-8][8]=!s},mapData:function(s,m){for(var w=-1,v=this.moduleCount-1,u=7,R=0,S=this.moduleCount-1;S>0;S-=2)for(S==6&&S--;;){for(var I=0;I<2;I++)if(this.modules[v][S-I]==null){var T=!1;R>>u&1)==1);var q=i.getMask(m,v,S-I);q&&(T=!T),this.modules[v][S-I]=T,u--,u==-1&&(R++,u=7)}if(v+=w,v<0||this.moduleCount<=v){v-=w,w=-w;break}}}},r.PAD0=236,r.PAD1=17,r.createData=function(s,m,w){for(var v=d.getRSBlocks(s,m),u=new g,R=0;RI*8)throw new Error("code length overflow. ("+u.getLengthInBits()+">"+I*8+")");for(u.getLengthInBits()+4<=I*8&&u.put(0,4);u.getLengthInBits()%8!=0;)u.putBit(!1);for(;!(u.getLengthInBits()>=I*8||(u.put(r.PAD0,8),u.getLengthInBits()>=I*8));)u.put(r.PAD1,8);return r.createBytes(u,v)},r.createBytes=function(s,m){for(var w=0,v=0,u=0,R=new Array(m.length),S=new Array(m.length),I=0;I=0?X.get(Y):0}}for(var re=0,D=0;D=0;)m^=i.G15<=0;)m^=i.G18<>>=1;return m},getPatternPosition:function(s){return i.PATTERN_POSITION_TABLE[s-1]},getMask:function(s,m,w){switch(s){case h.PATTERN000:return(m+w)%2==0;case h.PATTERN001:return m%2==0;case h.PATTERN010:return w%3==0;case h.PATTERN011:return(m+w)%3==0;case h.PATTERN100:return(Math.floor(m/2)+Math.floor(w/3))%2==0;case h.PATTERN101:return m*w%2+m*w%3==0;case h.PATTERN110:return(m*w%2+m*w%3)%2==0;case h.PATTERN111:return(m*w%3+(m+w)%2)%2==0;default:throw new Error("bad maskPattern:"+s)}},getErrorCorrectPolynomial:function(s){for(var m=new p([1],0),w=0;w5&&(w+=3+R-5)}for(var v=0;v=256;)s-=255;return o.EXP_TABLE[s]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},c=0;c<8;c++)o.EXP_TABLE[c]=1<>>7-s%8&1)==1},put:function(s,m){for(var w=0;w>>m-w-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(s){var m=Math.floor(this.length/8);this.buffer.length<=m&&this.buffer.push(0),s&&(this.buffer[m]|=128>>>this.length%8),this.length++}};var a=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];function l(s){if(this.options={padding:4,width:256,height:256,typeNumber:4,color:"#000000",background:"#ffffff",ecl:"M",image:{svg:"",width:0,height:0}},typeof s=="string"&&(s={content:s}),s)for(var m in s)this.options[m]=s[m];if(typeof this.options.content!="string")throw new Error("Expected 'content' as string!");if(this.options.content.length===0)throw new Error("Expected 'content' to be non-empty!");if(!(this.options.padding>=0))throw new Error("Expected 'padding' value to be non-negative!");if(!(this.options.width>0)||!(this.options.height>0))throw new Error("Expected 'width' or 'height' value to be higher than zero!");function w(T){switch(T){case"L":return t.L;case"M":return t.M;case"Q":return t.Q;case"H":return t.H;default:throw new Error("Unknwon error correction level: "+T)}}function v(T,q){for(var D=u(T),H=1,G=0,X=0,Y=a.length;X<=Y;X++){var re=a[X];if(!re)throw new Error("Content too long: expected "+G+" but got "+D);switch(q){case"L":G=re[0];break;case"M":G=re[1];break;case"Q":G=re[2];break;case"H":G=re[3];break;default:throw new Error("Unknwon error correction level: "+q)}if(D<=G)break;H++}if(H>a.length)throw new Error("Content too long");return H}function u(T){var q=encodeURI(T).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return q.length+(q.length!=T?3:0)}var R=this.options.content,S=v(R,this.options.ecl),I=w(this.options.ecl);this.qrcode=new r(S,I),this.qrcode.addData(R),this.qrcode.make()}return l.prototype.svg=function(s){var m=this.options||{},w=this.qrcode.modules;typeof s>"u"&&(s={container:m.container||"svg"});for(var v=typeof m.pretty<"u"?!!m.pretty:!0,u=v?" ":"",R=v?`\r +`:"",S=m.width,I=m.height,T=w.length,q=S/(T+2*m.padding),D=I/(T+2*m.padding),H=typeof m.join<"u"?!!m.join:!1,G=typeof m.swap<"u"?!!m.swap:!1,X=typeof m.xmlDeclaration<"u"?!!m.xmlDeclaration:!0,Y=typeof m.predefined<"u"?!!m.predefined:!1,re=Y?u+''+R:"",F=u+''+R,f="",E="",C=0;C'+R:f+=u+''+R}}H&&(f=u+'');let te="";if(this.options.image!==void 0&&this.options.image.svg){const $=S*this.options.image.width/100,W=I*this.options.image.height/100,J=S/2-$/2,ee=I/2-W/2;te+=``,te+=this.options.image.svg+R,te+=""}var K="";switch(s.container){case"svg":X&&(K+=''+R),K+=''+R,K+=re+F+f,K+=te,K+="";break;case"svg-viewbox":X&&(K+=''+R),K+=''+R,K+=re+F+f,K+=te,K+="";break;case"g":K+=''+R,K+=re+F+f,K+=te,K+="";break;default:K+=(re+F+f+te).replace(/^\s+/,"");break}return K},Vn=l,Vn}var Yo;function Fh(){if(Yo)return kt;Yo=1;var e=kt&&kt.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(kt,"__esModule",{value:!0}),kt.QRCode=void 0;const r=We,n=_n,t=e(Oh()),h=i=>{const[o,c]=(0,n.useState)("");return(0,n.useEffect)(()=>{var p,d;const g=new t.default({content:i.content,background:i.bgColor||"#ffffff",color:i.fgColor||"#000000",container:"svg",ecl:"M",width:(p=i.width)!==null&&p!==void 0?p:256,height:(d=i.height)!==null&&d!==void 0?d:256,padding:0,image:i.image}),a=Buffer.from(g.svg(),"utf8").toString("base64");c(`data:image/svg+xml;base64,${a}`)},[i.bgColor,i.content,i.fgColor,i.height,i.image,i.width]),o?(0,r.h)("img",{src:o,alt:"QR Code"}):null};return kt.QRCode=h,kt}var It={},Yr={},Xo;function Dh(){return Xo||(Xo=1,Object.defineProperty(Yr,"__esModule",{value:!0}),Yr.default=".-cbwsdk-css-reset .-cbwsdk-spinner{display:inline-block}.-cbwsdk-css-reset .-cbwsdk-spinner svg{display:inline-block;animation:2s linear infinite -cbwsdk-spinner-svg}.-cbwsdk-css-reset .-cbwsdk-spinner svg circle{animation:1.9s ease-in-out infinite both -cbwsdk-spinner-circle;display:block;fill:rgba(0,0,0,0);stroke-dasharray:283;stroke-dashoffset:280;stroke-linecap:round;stroke-width:10px;transform-origin:50% 50%}@keyframes -cbwsdk-spinner-svg{0%{transform:rotateZ(0deg)}100%{transform:rotateZ(360deg)}}@keyframes -cbwsdk-spinner-circle{0%,25%{stroke-dashoffset:280;transform:rotate(0)}50%,75%{stroke-dashoffset:75;transform:rotate(45deg)}100%{stroke-dashoffset:280;transform:rotate(360deg)}}"),Yr}var ea;function qh(){if(ea)return It;ea=1;var e=It&&It.__importDefault||function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(It,"__esModule",{value:!0}),It.Spinner=void 0;const r=We,n=e(Dh()),t=h=>{var i;const o=(i=h.size)!==null&&i!==void 0?i:64,c=h.color||"#000";return(0,r.h)("div",{class:"-cbwsdk-spinner"},(0,r.h)("style",null,n.default),(0,r.h)("svg",{viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",style:{width:o,height:o}},(0,r.h)("circle",{style:{cx:50,cy:50,r:45,stroke:c}})))};return It.Spinner=t,It}var Xr={},ta;function jh(){return ta||(ta=1,Object.defineProperty(Xr,"__esModule",{value:!0}),Xr.default=".-cbwsdk-css-reset .-cbwsdk-connect-content{height:430px;width:700px;border-radius:12px;padding:30px}.-cbwsdk-css-reset .-cbwsdk-connect-content.light{background:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content.dark{background:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-header{display:flex;align-items:center;justify-content:space-between;margin:0 0 30px}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading{font-style:normal;font-weight:500;font-size:28px;line-height:36px;margin:0}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-layout{display:flex;flex-direction:row}.-cbwsdk-css-reset .-cbwsdk-connect-content-column-left{margin-right:30px;display:flex;flex-direction:column;justify-content:space-between}.-cbwsdk-css-reset .-cbwsdk-connect-content-column-right{flex:25%;margin-right:34px}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-wrapper{width:220px;height:220px;border-radius:12px;display:flex;justify-content:center;align-items:center;background:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting{position:absolute;top:0;bottom:0;left:0;right:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.light{background-color:rgba(255,255,255,.95)}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.light>p{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.dark{background-color:rgba(10,11,13,.9)}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.dark>p{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting>p{font-size:12px;font-weight:bold;margin-top:16px}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app{border-radius:8px;font-size:14px;line-height:20px;padding:12px;width:339px}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app.light{background:#eef0f3;color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app.dark{background:#1e2025;color:#8a919e}.-cbwsdk-css-reset .-cbwsdk-cancel-button{-webkit-appearance:none;border:none;background:none;cursor:pointer;padding:0;margin:0}.-cbwsdk-css-reset .-cbwsdk-cancel-button-x{position:relative;display:block;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-wallet-steps{padding:0 0 0 16px;margin:0;width:100%;list-style:decimal}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item{list-style-type:decimal;display:list-item;font-style:normal;font-weight:400;font-size:16px;line-height:24px;margin-top:20px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item-wrapper{display:flex;align-items:center}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-pad-left{margin-left:6px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon{display:flex;border-radius:50%;height:24px;width:24px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon svg{margin:auto;display:block}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon.light{background:#0052ff}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon.dark{background:#588af5}.-cbwsdk-css-reset .-cbwsdk-connect-item{align-items:center;display:flex;flex-direction:row;padding:16px 24px;gap:12px;cursor:pointer;border-radius:100px;font-weight:600}.-cbwsdk-css-reset .-cbwsdk-connect-item.light{background:#f5f8ff;color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-connect-item.dark{background:#001033;color:#588af5}.-cbwsdk-css-reset .-cbwsdk-connect-item-copy-wrapper{margin:0 4px 0 8px}.-cbwsdk-css-reset .-cbwsdk-connect-item-title{margin:0 0 0;font-size:16px;line-height:24px;font-weight:500}.-cbwsdk-css-reset .-cbwsdk-connect-item-description{font-weight:400;font-size:14px;line-height:20px;margin:0}"),Xr}var ra;function $h(){if(ra)return tt;ra=1;var e=tt&&tt.__importDefault||function(v){return v&&v.__esModule?v:{default:v}};Object.defineProperty(tt,"__esModule",{value:!0}),tt.CoinbaseWalletSteps=tt.ConnectContent=void 0;const r=e(Wr),n=We,t=nt(),h=Ws(),i=Bh(),o=Nh(),c=Ph(),p=Fh(),d=qh(),g=e(jh()),a={title:"Coinbase Wallet app",description:"Connect with your self-custody wallet",steps:w},l=v=>v==="light"?"#FFFFFF":"#0A0B0D";function s(v){const{theme:u}=v,R=(0,t.createQrUrl)(v.sessionId,v.sessionSecret,v.linkAPIUrl,v.isParentConnection,v.version,v.chainId),S=a.steps;return(0,n.h)("div",{"data-testid":"connect-content",className:(0,r.default)("-cbwsdk-connect-content",u)},(0,n.h)("style",null,g.default),(0,n.h)("div",{className:"-cbwsdk-connect-content-header"},(0,n.h)("h2",{className:(0,r.default)("-cbwsdk-connect-content-heading",u)},"Scan to connect with our mobile app"),v.onCancel&&(0,n.h)("button",{type:"button",className:"-cbwsdk-cancel-button",onClick:v.onCancel},(0,n.h)(i.CloseIcon,{fill:u==="light"?"#0A0B0D":"#FFFFFF"}))),(0,n.h)("div",{className:"-cbwsdk-connect-content-layout"},(0,n.h)("div",{className:"-cbwsdk-connect-content-column-left"},(0,n.h)(m,{title:a.title,description:a.description,theme:u})),(0,n.h)("div",{className:"-cbwsdk-connect-content-column-right"},(0,n.h)("div",{className:"-cbwsdk-connect-content-qr-wrapper"},(0,n.h)(p.QRCode,{content:R,width:200,height:200,fgColor:"#000",bgColor:"transparent"}),(0,n.h)("input",{type:"hidden",name:"cbw-cbwsdk-version",value:h.LIB_VERSION}),(0,n.h)("input",{type:"hidden",value:R})),(0,n.h)(S,{theme:u}),!v.isConnected&&(0,n.h)("div",{"data-testid":"connecting-spinner",className:(0,r.default)("-cbwsdk-connect-content-qr-connecting",u)},(0,n.h)(d.Spinner,{size:36,color:u==="dark"?"#FFF":"#000"}),(0,n.h)("p",null,"Connecting...")))))}tt.ConnectContent=s;function m({title:v,description:u,theme:R}){return(0,n.h)("div",{className:(0,r.default)("-cbwsdk-connect-item",R)},(0,n.h)("div",null,(0,n.h)(o.CoinbaseWalletRound,null)),(0,n.h)("div",{className:"-cbwsdk-connect-item-copy-wrapper"},(0,n.h)("h3",{className:"-cbwsdk-connect-item-title"},v),(0,n.h)("p",{className:"-cbwsdk-connect-item-description"},u)))}function w({theme:v}){return(0,n.h)("ol",{className:"-cbwsdk-wallet-steps"},(0,n.h)("li",{className:(0,r.default)("-cbwsdk-wallet-steps-item",v)},(0,n.h)("div",{className:"-cbwsdk-wallet-steps-item-wrapper"},"Open Coinbase Wallet app")),(0,n.h)("li",{className:(0,r.default)("-cbwsdk-wallet-steps-item",v)},(0,n.h)("div",{className:"-cbwsdk-wallet-steps-item-wrapper"},(0,n.h)("span",null,"Tap ",(0,n.h)("strong",null,"Scan")," "),(0,n.h)("span",{className:(0,r.default)("-cbwsdk-wallet-steps-pad-left","-cbwsdk-wallet-steps-icon",v)},(0,n.h)(c.QRCodeIcon,{fill:l(v)})))))}return tt.CoinbaseWalletSteps=w,tt}var xt={},kr={},na;function Uh(){if(na)return kr;na=1,Object.defineProperty(kr,"__esModule",{value:!0}),kr.ArrowLeftIcon=void 0;const e=We;function r(n){return(0,e.h)("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},n),(0,e.h)("path",{d:"M8.60675 0.155884L7.37816 1.28209L12.7723 7.16662H0V8.83328H12.6548L6.82149 14.6666L8 15.8451L15.8201 8.02501L8.60675 0.155884Z"}))}return kr.ArrowLeftIcon=r,kr}var Ir={},ia;function Hh(){if(ia)return Ir;ia=1,Object.defineProperty(Ir,"__esModule",{value:!0}),Ir.LaptopIcon=void 0;const e=We;function r(n){return(0,e.h)("svg",Object.assign({width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},n),(0,e.h)("path",{d:"M1.8001 2.2002H12.2001V9.40019H1.8001V2.2002ZM3.4001 3.8002V7.80019H10.6001V3.8002H3.4001Z"}),(0,e.h)("path",{d:"M13.4001 10.2002H0.600098C0.600098 11.0838 1.31644 11.8002 2.2001 11.8002H11.8001C12.6838 11.8002 13.4001 11.0838 13.4001 10.2002Z"}))}return Ir.LaptopIcon=r,Ir}var xr={},sa;function Wh(){if(sa)return xr;sa=1,Object.defineProperty(xr,"__esModule",{value:!0}),xr.SafeIcon=void 0;const e=We;function r(n){return(0,e.h)("svg",Object.assign({width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},n),(0,e.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.600098 0.600098V11.8001H13.4001V0.600098H0.600098ZM7.0001 9.2001C5.3441 9.2001 4.0001 7.8561 4.0001 6.2001C4.0001 4.5441 5.3441 3.2001 7.0001 3.2001C8.6561 3.2001 10.0001 4.5441 10.0001 6.2001C10.0001 7.8561 8.6561 9.2001 7.0001 9.2001ZM0.600098 12.6001H3.8001V13.4001H0.600098V12.6001ZM10.2001 12.6001H13.4001V13.4001H10.2001V12.6001ZM8.8001 6.2001C8.8001 7.19421 7.99421 8.0001 7.0001 8.0001C6.00598 8.0001 5.2001 7.19421 5.2001 6.2001C5.2001 5.20598 6.00598 4.4001 7.0001 4.4001C7.99421 4.4001 8.8001 5.20598 8.8001 6.2001Z"}))}return xr.SafeIcon=r,xr}var en={},oa;function Vh(){return oa||(oa=1,Object.defineProperty(en,"__esModule",{value:!0}),en.default=".-cbwsdk-css-reset .-cbwsdk-try-extension{display:flex;margin-top:12px;height:202px;width:700px;border-radius:12px;padding:30px}.-cbwsdk-css-reset .-cbwsdk-try-extension.light{background:#fff}.-cbwsdk-css-reset .-cbwsdk-try-extension.dark{background:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-try-extension-column-half{flex:50%}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading{font-style:normal;font-weight:500;font-size:25px;line-height:32px;margin:0;max-width:204px}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta{appearance:none;border:none;background:none;color:#0052ff;cursor:pointer;padding:0;text-decoration:none;display:block;font-weight:600;font-size:16px;line-height:24px}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta.light{color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta.dark{color:#588af5}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta-wrapper{display:flex;align-items:center;margin-top:12px}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta-icon{display:block;margin-left:4px;height:14px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list{display:flex;flex-direction:column;justify-content:center;align-items:center;margin:0;padding:0;list-style:none;height:100%}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item{display:flex;align-items:center;flex-flow:nowrap;margin-top:24px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item:first-of-type{margin-top:0}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon-wrapper{display:block}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon{display:flex;height:32px;width:32px;border-radius:50%}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon svg{margin:auto;display:block}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon.light{background:#eef0f3}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon.dark{background:#1e2025}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy{display:block;font-weight:400;font-size:14px;line-height:20px;padding-left:12px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy.light{color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy.dark{color:#8a919e}"),en}var aa;function zh(){if(aa)return xt;aa=1;var e=xt&&xt.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(xt,"__esModule",{value:!0}),xt.TryExtensionContent=void 0;const r=e(Wr),n=We,t=_n,h=Uh(),i=Hh(),o=Wh(),c=e(Vh());function p({theme:d}){const[g,a]=(0,t.useState)(!1),l=(0,t.useCallback)(()=>{window.open("https://api.wallet.coinbase.com/rpc/v2/desktop/chrome","_blank")},[]),s=(0,t.useCallback)(()=>{g?window.location.reload():(l(),a(!0))},[l,g]);return(0,n.h)("div",{class:(0,r.default)("-cbwsdk-try-extension",d)},(0,n.h)("style",null,c.default),(0,n.h)("div",{class:"-cbwsdk-try-extension-column-half"},(0,n.h)("h3",{class:(0,r.default)("-cbwsdk-try-extension-heading",d)},"Or try the Coinbase Wallet browser extension"),(0,n.h)("div",{class:"-cbwsdk-try-extension-cta-wrapper"},(0,n.h)("button",{class:(0,r.default)("-cbwsdk-try-extension-cta",d),onClick:s},g?"Refresh":"Install"),(0,n.h)("div",null,!g&&(0,n.h)(h.ArrowLeftIcon,{class:"-cbwsdk-try-extension-cta-icon",fill:d==="light"?"#0052FF":"#588AF5"})))),(0,n.h)("div",{class:"-cbwsdk-try-extension-column-half"},(0,n.h)("ul",{class:"-cbwsdk-try-extension-list"},(0,n.h)("li",{class:"-cbwsdk-try-extension-list-item"},(0,n.h)("div",{class:"-cbwsdk-try-extension-list-item-icon-wrapper"},(0,n.h)("span",{class:(0,r.default)("-cbwsdk-try-extension-list-item-icon",d)},(0,n.h)(i.LaptopIcon,{fill:d==="light"?"#0A0B0D":"#FFFFFF"}))),(0,n.h)("div",{class:(0,r.default)("-cbwsdk-try-extension-list-item-copy",d)},"Connect with dapps with just one click on your desktop browser")),(0,n.h)("li",{class:"-cbwsdk-try-extension-list-item"},(0,n.h)("div",{class:"-cbwsdk-try-extension-list-item-icon-wrapper"},(0,n.h)("span",{class:(0,r.default)("-cbwsdk-try-extension-list-item-icon",d)},(0,n.h)(o.SafeIcon,{fill:d==="light"?"#0A0B0D":"#FFFFFF"}))),(0,n.h)("div",{class:(0,r.default)("-cbwsdk-try-extension-list-item-copy",d)},"Add an additional layer of security by using a supported Ledger hardware wallet")))))}return xt.TryExtensionContent=p,xt}var tn={},ca;function Jh(){return ca||(ca=1,Object.defineProperty(tn,"__esModule",{value:!0}),tn.default=".-cbwsdk-css-reset .-cbwsdk-connect-dialog{z-index:2147483647;position:fixed;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop{z-index:2147483647;position:fixed;top:0;left:0;right:0;bottom:0;transition:opacity .25s}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop.light{background-color:rgba(0,0,0,.5)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop.dark{background-color:rgba(50,53,61,.4)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop-hidden{opacity:0}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-box{display:flex;position:relative;flex-direction:column;transform:scale(1);transition:opacity .25s,transform .25s}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-box-hidden{opacity:0;transform:scale(0.85)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-container{display:block}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-container-hidden{display:none}"),tn}var ua;function Gh(){if(ua)return Mt;ua=1;var e=Mt&&Mt.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(Mt,"__esModule",{value:!0}),Mt.ConnectDialog=void 0;const r=e(Wr),n=We,t=_n,h=$h(),i=zh(),o=e(Jh()),c=p=>{const{isOpen:d,darkMode:g}=p,[a,l]=(0,t.useState)(!d),[s,m]=(0,t.useState)(!d);(0,t.useEffect)(()=>{const v=[window.setTimeout(()=>{m(!d)},10)];return d?l(!1):v.push(window.setTimeout(()=>{l(!0)},360)),()=>{v.forEach(window.clearTimeout)}},[d]);const w=g?"dark":"light";return(0,n.h)("div",{class:(0,r.default)("-cbwsdk-connect-dialog-container",a&&"-cbwsdk-connect-dialog-container-hidden")},(0,n.h)("style",null,o.default),(0,n.h)("div",{class:(0,r.default)("-cbwsdk-connect-dialog-backdrop",w,s&&"-cbwsdk-connect-dialog-backdrop-hidden")}),(0,n.h)("div",{class:"-cbwsdk-connect-dialog"},(0,n.h)("div",{class:(0,r.default)("-cbwsdk-connect-dialog-box",s&&"-cbwsdk-connect-dialog-box-hidden")},p.connectDisabled?null:(0,n.h)(h.ConnectContent,{theme:w,version:p.version,sessionId:p.sessionId,sessionSecret:p.sessionSecret,linkAPIUrl:p.linkAPIUrl,isConnected:p.isConnected,isParentConnection:p.isParentConnection,chainId:p.chainId,onCancel:p.onCancel}),(0,n.h)(i.TryExtensionContent,{theme:w}))))};return Mt.ConnectDialog=c,Mt}var la;function Zh(){if(la)return Rr;la=1,Object.defineProperty(Rr,"__esModule",{value:!0}),Rr.LinkFlow=void 0;const e=We,r=Gh();let n=class{constructor(h){this.connected=!1,this.chainId=1,this.isOpen=!1,this.onCancel=null,this.root=null,this.connectDisabled=!1,this.darkMode=h.darkMode,this.version=h.version,this.sessionId=h.sessionId,this.sessionSecret=h.sessionSecret,this.linkAPIUrl=h.linkAPIUrl,this.isParentConnection=h.isParentConnection}attach(h){this.root=document.createElement("div"),this.root.className="-cbwsdk-link-flow-root",h.appendChild(this.root),this.render()}setConnected(h){this.connected!==h&&(this.connected=h,this.render())}setChainId(h){this.chainId!==h&&(this.chainId=h,this.render())}detach(){var h;this.root&&((0,e.render)(null,this.root),(h=this.root.parentElement)===null||h===void 0||h.removeChild(this.root))}setConnectDisabled(h){this.connectDisabled=h}open(h){this.isOpen=!0,this.onCancel=h.onCancel,this.render()}close(){this.isOpen=!1,this.onCancel=null,this.render()}render(){this.root&&(0,e.render)((0,e.h)(r.ConnectDialog,{darkMode:this.darkMode,version:this.version,sessionId:this.sessionId,sessionSecret:this.sessionSecret,linkAPIUrl:this.linkAPIUrl,isOpen:this.isOpen,isConnected:this.connected,isParentConnection:this.isParentConnection,chainId:this.chainId,onCancel:this.onCancel,connectDisabled:this.connectDisabled}),this.root)}};return Rr.LinkFlow=n,Rr}var Ar={},rn={},ha;function Kh(){return ha||(ha=1,Object.defineProperty(rn,"__esModule",{value:!0}),rn.default=".-cbwsdk-css-reset .-gear-container{margin-left:16px !important;margin-right:9px !important;display:flex;align-items:center;justify-content:center;width:24px;height:24px;transition:opacity .25s}.-cbwsdk-css-reset .-gear-container *{user-select:none}.-cbwsdk-css-reset .-gear-container svg{opacity:0;position:absolute}.-cbwsdk-css-reset .-gear-icon{height:12px;width:12px;z-index:10000}.-cbwsdk-css-reset .-cbwsdk-snackbar{align-items:flex-end;display:flex;flex-direction:column;position:fixed;right:0;top:0;z-index:2147483647}.-cbwsdk-css-reset .-cbwsdk-snackbar *{user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance{display:flex;flex-direction:column;margin:8px 16px 0 16px;overflow:visible;text-align:left;transform:translateX(0);transition:opacity .25s,transform .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header:hover .-gear-container svg{opacity:1}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header{display:flex;align-items:center;background:#fff;overflow:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-cblogo{margin:8px 8px 8px 8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-message{color:#000;font-size:13px;line-height:1.5;user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu{background:#fff;transition:opacity .25s ease-in-out,transform .25s linear,visibility 0s;visibility:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;opacity:0;flex-direction:column;padding-left:8px;padding-right:8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:last-child{margin-bottom:8px !important}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover{background:#f5f7f8;border-radius:6px;transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover span{color:#050f19;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover svg path{fill:#000;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item{visibility:inherit;height:35px;margin-top:8px;margin-bottom:0;display:flex;flex-direction:row;align-items:center;padding:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item *{visibility:inherit;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover{background:rgba(223,95,103,.2);transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover svg path{fill:#df5f67;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover span{color:#df5f67;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-info{color:#aaa;font-size:13px;margin:0 8px 0 32px;position:absolute}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-hidden{opacity:0;text-align:left;transform:translateX(25%);transition:opacity .5s linear}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-expanded .-cbwsdk-snackbar-instance-menu{opacity:1;display:flex;transform:translateY(8px);visibility:visible}"),rn}var fa;function tl(){return fa||(fa=1,function(e){var r=Ar&&Ar.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(e,"__esModule",{value:!0}),e.SnackbarInstance=e.SnackbarContainer=e.Snackbar=void 0;const n=r(Wr),t=We,h=_n,i=r(Kh()),o="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEuNDkyIDEwLjQxOWE4LjkzIDguOTMgMCAwMTguOTMtOC45M2gxMS4xNjNhOC45MyA4LjkzIDAgMDE4LjkzIDguOTN2MTEuMTYzYTguOTMgOC45MyAwIDAxLTguOTMgOC45M0gxMC40MjJhOC45MyA4LjkzIDAgMDEtOC45My04LjkzVjEwLjQxOXoiIGZpbGw9IiMxNjUyRjAiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTEwLjQxOSAwSDIxLjU4QzI3LjMzNSAwIDMyIDQuNjY1IDMyIDEwLjQxOVYyMS41OEMzMiAyNy4zMzUgMjcuMzM1IDMyIDIxLjU4MSAzMkgxMC40MkM0LjY2NSAzMiAwIDI3LjMzNSAwIDIxLjU4MVYxMC40MkMwIDQuNjY1IDQuNjY1IDAgMTAuNDE5IDB6bTAgMS40ODhhOC45MyA4LjkzIDAgMDAtOC45MyA4LjkzdjExLjE2M2E4LjkzIDguOTMgMCAwMDguOTMgOC45M0gyMS41OGE4LjkzIDguOTMgMCAwMDguOTMtOC45M1YxMC40MmE4LjkzIDguOTMgMCAwMC04LjkzLTguOTNIMTAuNDJ6IiBmaWxsPSIjZmZmIi8+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNS45OTggMjYuMDQ5Yy01LjU0OSAwLTEwLjA0Ny00LjQ5OC0xMC4wNDctMTAuMDQ3IDAtNS41NDggNC40OTgtMTAuMDQ2IDEwLjA0Ny0xMC4wNDYgNS41NDggMCAxMC4wNDYgNC40OTggMTAuMDQ2IDEwLjA0NiAwIDUuNTQ5LTQuNDk4IDEwLjA0Ny0xMC4wNDYgMTAuMDQ3eiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0xMi43NjIgMTQuMjU0YzAtLjgyMi42NjctMS40ODkgMS40ODktMS40ODloMy40OTdjLjgyMiAwIDEuNDg4LjY2NiAxLjQ4OCAxLjQ4OXYzLjQ5N2MwIC44MjItLjY2NiAxLjQ4OC0xLjQ4OCAxLjQ4OGgtMy40OTdhMS40ODggMS40ODggMCAwMS0xLjQ4OS0xLjQ4OHYtMy40OTh6IiBmaWxsPSIjMTY1MkYwIi8+PC9zdmc+",c="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDYuNzV2LTEuNWwtMS43Mi0uNTdjLS4wOC0uMjctLjE5LS41Mi0uMzItLjc3bC44MS0xLjYyLTEuMDYtMS4wNi0xLjYyLjgxYy0uMjQtLjEzLS41LS4yNC0uNzctLjMyTDYuNzUgMGgtMS41bC0uNTcgMS43MmMtLjI3LjA4LS41My4xOS0uNzcuMzJsLTEuNjItLjgxLTEuMDYgMS4wNi44MSAxLjYyYy0uMTMuMjQtLjI0LjUtLjMyLjc3TDAgNS4yNXYxLjVsMS43Mi41N2MuMDguMjcuMTkuNTMuMzIuNzdsLS44MSAxLjYyIDEuMDYgMS4wNiAxLjYyLS44MWMuMjQuMTMuNS4yMy43Ny4zMkw1LjI1IDEyaDEuNWwuNTctMS43MmMuMjctLjA4LjUyLS4xOS43Ny0uMzJsMS42Mi44MSAxLjA2LTEuMDYtLjgxLTEuNjJjLjEzLS4yNC4yMy0uNS4zMi0uNzdMMTIgNi43NXpNNiA4LjVhMi41IDIuNSAwIDAxMC01IDIuNSAyLjUgMCAwMTAgNXoiIGZpbGw9IiMwNTBGMTkiLz48L3N2Zz4=";class p{constructor(l){this.items=new Map,this.nextItemKey=0,this.root=null,this.darkMode=l.darkMode}attach(l){this.root=document.createElement("div"),this.root.className="-cbwsdk-snackbar-root",l.appendChild(this.root),this.render()}presentItem(l){const s=this.nextItemKey++;return this.items.set(s,l),this.render(),()=>{this.items.delete(s),this.render()}}clear(){this.items.clear(),this.render()}render(){this.root&&(0,t.render)((0,t.h)("div",null,(0,t.h)(e.SnackbarContainer,{darkMode:this.darkMode},Array.from(this.items.entries()).map(([l,s])=>(0,t.h)(e.SnackbarInstance,Object.assign({},s,{key:l}))))),this.root)}}e.Snackbar=p;const d=a=>(0,t.h)("div",{class:(0,n.default)("-cbwsdk-snackbar-container")},(0,t.h)("style",null,i.default),(0,t.h)("div",{class:"-cbwsdk-snackbar"},a.children));e.SnackbarContainer=d;const g=({autoExpand:a,message:l,menuItems:s})=>{const[m,w]=(0,h.useState)(!0),[v,u]=(0,h.useState)(a??!1);(0,h.useEffect)(()=>{const S=[window.setTimeout(()=>{w(!1)},1),window.setTimeout(()=>{u(!0)},1e4)];return()=>{S.forEach(window.clearTimeout)}});const R=()=>{u(!v)};return(0,t.h)("div",{class:(0,n.default)("-cbwsdk-snackbar-instance",m&&"-cbwsdk-snackbar-instance-hidden",v&&"-cbwsdk-snackbar-instance-expanded")},(0,t.h)("div",{class:"-cbwsdk-snackbar-instance-header",onClick:R},(0,t.h)("img",{src:o,class:"-cbwsdk-snackbar-instance-header-cblogo"})," ",(0,t.h)("div",{class:"-cbwsdk-snackbar-instance-header-message"},l),(0,t.h)("div",{class:"-gear-container"},!v&&(0,t.h)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.h)("circle",{cx:"12",cy:"12",r:"12",fill:"#F5F7F8"})),(0,t.h)("img",{src:c,class:"-gear-icon",title:"Expand"}))),s&&s.length>0&&(0,t.h)("div",{class:"-cbwsdk-snackbar-instance-menu"},s.map((S,I)=>(0,t.h)("div",{class:(0,n.default)("-cbwsdk-snackbar-instance-menu-item",S.isRed&&"-cbwsdk-snackbar-instance-menu-item-is-red"),onClick:S.onClick,key:I},(0,t.h)("svg",{width:S.svgWidth,height:S.svgHeight,viewBox:"0 0 10 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.h)("path",{"fill-rule":S.defaultFillRule,"clip-rule":S.defaultClipRule,d:S.path,fill:"#AAAAAA"})),(0,t.h)("span",{class:(0,n.default)("-cbwsdk-snackbar-instance-menu-item-info",S.isRed&&"-cbwsdk-snackbar-instance-menu-item-info-is-red")},S.info)))))};e.SnackbarInstance=g}(Ar)),Ar}var da;function rl(){if(da)return Er;da=1,Object.defineProperty(Er,"__esModule",{value:!0}),Er.WalletLinkRelayUI=void 0;const e=el(),r=Zh(),n=tl();let t=class{constructor(i){this.standalone=null,this.attached=!1,this.snackbar=new n.Snackbar({darkMode:i.darkMode}),this.linkFlow=new r.LinkFlow({darkMode:i.darkMode,version:i.version,sessionId:i.session.id,sessionSecret:i.session.secret,linkAPIUrl:i.linkAPIUrl,isParentConnection:!1})}attach(){if(this.attached)throw new Error("Coinbase Wallet SDK UI is already attached");const i=document.documentElement,o=document.createElement("div");o.className="-cbwsdk-css-reset",i.appendChild(o),this.linkFlow.attach(o),this.snackbar.attach(o),this.attached=!0,(0,e.injectCssReset)()}setConnected(i){this.linkFlow.setConnected(i)}setChainId(i){this.linkFlow.setChainId(i)}setConnectDisabled(i){this.linkFlow.setConnectDisabled(i)}addEthereumChain(){}watchAsset(){}switchEthereumChain(){}requestEthereumAccounts(i){this.linkFlow.open({onCancel:i.onCancel})}hideRequestEthereumAccounts(){this.linkFlow.close()}signEthereumMessage(){}signEthereumTransaction(){}submitEthereumTransaction(){}ethereumAddressFromSignedMessage(){}showConnecting(i){let o;return i.isUnlinkedErrorState?o={autoExpand:!0,message:"Connection lost",menuItems:[{isRed:!1,info:"Reset connection",svgWidth:"10",svgHeight:"11",path:"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z",defaultFillRule:"evenodd",defaultClipRule:"evenodd",onClick:i.onResetConnection}]}:o={message:"Confirm on phone",menuItems:[{isRed:!0,info:"Cancel transaction",svgWidth:"11",svgHeight:"11",path:"M10.3711 1.52346L9.21775 0.370117L5.37109 4.21022L1.52444 0.370117L0.371094 1.52346L4.2112 5.37012L0.371094 9.21677L1.52444 10.3701L5.37109 6.53001L9.21775 10.3701L10.3711 9.21677L6.53099 5.37012L10.3711 1.52346Z",defaultFillRule:"inherit",defaultClipRule:"inherit",onClick:i.onCancel},{isRed:!1,info:"Reset connection",svgWidth:"10",svgHeight:"11",path:"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z",defaultFillRule:"evenodd",defaultClipRule:"evenodd",onClick:i.onResetConnection}]},this.snackbar.presentItem(o)}reloadUI(){document.location.reload()}inlineAccountsResponse(){return!1}inlineAddEthereumChain(){return!1}inlineWatchAsset(){return!1}inlineSwitchEthereumChain(){return!1}setStandalone(i){this.standalone=i}isStandalone(){var i;return(i=this.standalone)!==null&&i!==void 0?i:!1}};return Er.WalletLinkRelayUI=t,Er}var pa;function nl(){if(pa)return mr;pa=1,Object.defineProperty(mr,"__esModule",{value:!0}),mr.WalletLinkRelay=void 0;const e=vn(),r=bn(),n=nt(),t=Vs(),h=zs(),i=Js(),o=Th(),c=Hs(),p=rl();let d=class Ut extends h.RelayAbstract{constructor(a){var l;super(),this.accountsCallback=null,this.chainCallbackParams={chainId:"",jsonRpcUrl:""},this.chainCallback=null,this.dappDefaultChain=1,this.appName="",this.appLogoUrl=null,this.linkedUpdated=v=>{var u;this.isLinked=v;const R=this.storage.getItem(h.LOCAL_STORAGE_ADDRESSES_KEY);if(v&&(this.session.linked=v),this.isUnlinkedErrorState=!1,R){const S=R.split(" "),I=this.storage.getItem("IsStandaloneSigning")==="true";if(S[0]!==""&&!v&&this.session.linked&&!I){this.isUnlinkedErrorState=!0;const T=this.getSessionIdHash();(u=this.diagnostic)===null||u===void 0||u.log(t.EVENTS.UNLINKED_ERROR_STATE,{sessionIdHash:T})}}},this.metadataUpdated=(v,u)=>{this.storage.setItem(v,u)},this.chainUpdated=(v,u)=>{this.chainCallbackParams.chainId===v&&this.chainCallbackParams.jsonRpcUrl===u||(this.chainCallbackParams={chainId:v,jsonRpcUrl:u},this.chainCallback&&this.chainCallback(v,u))},this.accountUpdated=v=>{this.accountsCallback&&this.accountsCallback([v]),Ut.accountRequestCallbackIds.size>0&&(Array.from(Ut.accountRequestCallbackIds.values()).forEach(u=>{const R={type:"WEB3_RESPONSE",id:u,response:{method:"requestEthereumAccounts",result:[v]}};this.invokeCallback(Object.assign(Object.assign({},R),{id:u}))}),Ut.accountRequestCallbackIds.clear())},this.connectedUpdated=v=>{this.ui.setConnected(v)},this.resetAndReload=this.resetAndReload.bind(this),this.linkAPIUrl=a.linkAPIUrl,this.storage=a.storage,this.options=a;const{session:s,ui:m,connection:w}=this.subscribe();this._session=s,this.connection=w,this.relayEventManager=a.relayEventManager,this.diagnostic=a.diagnosticLogger,this._reloadOnDisconnect=(l=a.reloadOnDisconnect)!==null&&l!==void 0?l:!0,this.ui=m}subscribe(){const a=i.Session.load(this.storage)||new i.Session(this.storage).save(),{linkAPIUrl:l,diagnostic:s}=this,m=new o.WalletLinkConnection({session:a,linkAPIUrl:l,diagnostic:s,listener:this}),{version:w,darkMode:v}=this.options,u=this.options.uiConstructor({linkAPIUrl:l,version:w,darkMode:v,session:a});return m.connect(),{session:a,ui:u,connection:m}}attachUI(){this.ui.attach()}resetAndReload(){Promise.race([this.connection.setSessionMetadata("__destroyed","1"),new Promise(a=>setTimeout(()=>a(null),1e3))]).then(()=>{var a,l;const s=this.ui.isStandalone();(a=this.diagnostic)===null||a===void 0||a.log(t.EVENTS.SESSION_STATE_CHANGE,{method:"relay::resetAndReload",sessionMetadataChange:"__destroyed, 1",sessionIdHash:this.getSessionIdHash()}),this.connection.destroy();const m=i.Session.load(this.storage);if((m==null?void 0:m.id)===this._session.id?this.storage.clear():m&&((l=this.diagnostic)===null||l===void 0||l.log(t.EVENTS.SKIPPED_CLEARING_SESSION,{sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:i.Session.hash(m.id)})),this._reloadOnDisconnect){this.ui.reloadUI();return}this.accountsCallback&&this.accountsCallback([],!0);const{session:w,ui:v,connection:u}=this.subscribe();this._session=w,this.connection=u,this.ui=v,s&&this.ui.setStandalone&&this.ui.setStandalone(!0),this.options.headlessMode||this.attachUI()}).catch(a=>{var l;(l=this.diagnostic)===null||l===void 0||l.log(t.EVENTS.FAILURE,{method:"relay::resetAndReload",message:`failed to reset and reload with ${a}`,sessionIdHash:this.getSessionIdHash()})})}setAppInfo(a,l){this.appName=a,this.appLogoUrl=l}getStorageItem(a){return this.storage.getItem(a)}get session(){return this._session}setStorageItem(a,l){this.storage.setItem(a,l)}signEthereumMessage(a,l,s,m){return this.sendRequest({method:"signEthereumMessage",params:{message:(0,n.hexStringFromBuffer)(a,!0),address:l,addPrefix:s,typedDataJson:m||null}})}ethereumAddressFromSignedMessage(a,l,s){return this.sendRequest({method:"ethereumAddressFromSignedMessage",params:{message:(0,n.hexStringFromBuffer)(a,!0),signature:(0,n.hexStringFromBuffer)(l,!0),addPrefix:s}})}signEthereumTransaction(a){return this.sendRequest({method:"signEthereumTransaction",params:{fromAddress:a.fromAddress,toAddress:a.toAddress,weiValue:(0,n.bigIntStringFromBN)(a.weiValue),data:(0,n.hexStringFromBuffer)(a.data,!0),nonce:a.nonce,gasPriceInWei:a.gasPriceInWei?(0,n.bigIntStringFromBN)(a.gasPriceInWei):null,maxFeePerGas:a.gasPriceInWei?(0,n.bigIntStringFromBN)(a.gasPriceInWei):null,maxPriorityFeePerGas:a.gasPriceInWei?(0,n.bigIntStringFromBN)(a.gasPriceInWei):null,gasLimit:a.gasLimit?(0,n.bigIntStringFromBN)(a.gasLimit):null,chainId:a.chainId,shouldSubmit:!1}})}signAndSubmitEthereumTransaction(a){return this.sendRequest({method:"signEthereumTransaction",params:{fromAddress:a.fromAddress,toAddress:a.toAddress,weiValue:(0,n.bigIntStringFromBN)(a.weiValue),data:(0,n.hexStringFromBuffer)(a.data,!0),nonce:a.nonce,gasPriceInWei:a.gasPriceInWei?(0,n.bigIntStringFromBN)(a.gasPriceInWei):null,maxFeePerGas:a.maxFeePerGas?(0,n.bigIntStringFromBN)(a.maxFeePerGas):null,maxPriorityFeePerGas:a.maxPriorityFeePerGas?(0,n.bigIntStringFromBN)(a.maxPriorityFeePerGas):null,gasLimit:a.gasLimit?(0,n.bigIntStringFromBN)(a.gasLimit):null,chainId:a.chainId,shouldSubmit:!0}})}submitEthereumTransaction(a,l){return this.sendRequest({method:"submitEthereumTransaction",params:{signedTransaction:(0,n.hexStringFromBuffer)(a,!0),chainId:l}})}scanQRCode(a){return this.sendRequest({method:"scanQRCode",params:{regExp:a}})}getQRCodeUrl(){return(0,n.createQrUrl)(this._session.id,this._session.secret,this.linkAPIUrl,!1,this.options.version,this.dappDefaultChain)}genericRequest(a,l){return this.sendRequest({method:"generic",params:{action:l,data:a}})}sendGenericMessage(a){return this.sendRequest(a)}sendRequest(a){let l=null;const s=(0,n.randomBytesHex)(8),m=v=>{this.publishWeb3RequestCanceledEvent(s),this.handleErrorResponse(s,a.method,v),l==null||l()};return{promise:new Promise((v,u)=>{this.ui.isStandalone()||(l=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:m,onResetConnection:this.resetAndReload})),this.relayEventManager.callbacks.set(s,R=>{if(l==null||l(),(0,c.isErrorResponse)(R))return u(new Error(R.errorMessage));v(R)}),this.ui.isStandalone()?this.sendRequestStandalone(s,a):this.publishWeb3RequestEvent(s,a)}),cancel:m}}setConnectDisabled(a){this.ui.setConnectDisabled(a)}setAccountsCallback(a){this.accountsCallback=a}setChainCallback(a){this.chainCallback=a}setDappDefaultChainCallback(a){this.dappDefaultChain=a,this.ui instanceof p.WalletLinkRelayUI&&this.ui.setChainId(a)}publishWeb3RequestEvent(a,l){var s;const m={type:"WEB3_REQUEST",id:a,request:l},w=i.Session.load(this.storage);(s=this.diagnostic)===null||s===void 0||s.log(t.EVENTS.WEB3_REQUEST,{eventId:m.id,method:`relay::${l.method}`,sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:w?i.Session.hash(w.id):"",isSessionMismatched:((w==null?void 0:w.id)!==this._session.id).toString()}),this.publishEvent("Web3Request",m,!0).then(v=>{var u;(u=this.diagnostic)===null||u===void 0||u.log(t.EVENTS.WEB3_REQUEST_PUBLISHED,{eventId:m.id,method:`relay::${l.method}`,sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:w?i.Session.hash(w.id):"",isSessionMismatched:((w==null?void 0:w.id)!==this._session.id).toString()})}).catch(v=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:m.id,response:{method:l.method,errorMessage:v.message}})})}publishWeb3RequestCanceledEvent(a){const l={type:"WEB3_REQUEST_CANCELED",id:a};this.publishEvent("Web3RequestCanceled",l,!1).then()}publishEvent(a,l,s){return this.connection.publishEvent(a,l,s)}handleWeb3ResponseMessage(a){var l;const{response:s}=a;if((l=this.diagnostic)===null||l===void 0||l.log(t.EVENTS.WEB3_RESPONSE,{eventId:a.id,method:`relay::${s.method}`,sessionIdHash:this.getSessionIdHash()}),s.method==="requestEthereumAccounts"){Ut.accountRequestCallbackIds.forEach(m=>this.invokeCallback(Object.assign(Object.assign({},a),{id:m}))),Ut.accountRequestCallbackIds.clear();return}this.invokeCallback(a)}handleErrorResponse(a,l,s,m){var w;const v=(w=s==null?void 0:s.message)!==null&&w!==void 0?w:(0,e.getMessageFromCode)(m);this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:a,response:{method:l,errorMessage:v,errorCode:m}})}invokeCallback(a){const l=this.relayEventManager.callbacks.get(a.id);l&&(l(a.response),this.relayEventManager.callbacks.delete(a.id))}requestEthereumAccounts(){const a={method:"requestEthereumAccounts",params:{appName:this.appName,appLogoUrl:this.appLogoUrl||null}},l=(0,n.randomBytesHex)(8),s=w=>{this.publishWeb3RequestCanceledEvent(l),this.handleErrorResponse(l,a.method,w)};return{promise:new Promise((w,v)=>{if(this.relayEventManager.callbacks.set(l,u=>{if(this.ui.hideRequestEthereumAccounts(),(0,c.isErrorResponse)(u))return v(new Error(u.errorMessage));w(u)}),this.ui.inlineAccountsResponse()){const u=R=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:l,response:{method:"requestEthereumAccounts",result:R}})};this.ui.requestEthereumAccounts({onCancel:s,onAccounts:u})}else{const u=e.standardErrors.provider.userRejectedRequest("User denied account authorization");this.ui.requestEthereumAccounts({onCancel:()=>s(u)})}Ut.accountRequestCallbackIds.add(l),!this.ui.inlineAccountsResponse()&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(l,a)}),cancel:s}}selectProvider(a){const l={method:"selectProvider"},s=(0,n.randomBytesHex)(8),m=v=>{this.publishWeb3RequestCanceledEvent(s),this.handleErrorResponse(s,l.method,v)},w=new Promise((v,u)=>{this.relayEventManager.callbacks.set(s,I=>{if((0,c.isErrorResponse)(I))return u(new Error(I.errorMessage));v(I)});const R=I=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:s,response:{method:"selectProvider",result:r.ProviderType.Unselected}})},S=I=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:s,response:{method:"selectProvider",result:I}})};this.ui.selectProvider&&this.ui.selectProvider({onApprove:S,onCancel:R,providerOptions:a})});return{cancel:m,promise:w}}watchAsset(a,l,s,m,w,v){const u={method:"watchAsset",params:{type:a,options:{address:l,symbol:s,decimals:m,image:w},chainId:v}};let R=null;const S=(0,n.randomBytesHex)(8),I=q=>{this.publishWeb3RequestCanceledEvent(S),this.handleErrorResponse(S,u.method,q),R==null||R()};this.ui.inlineWatchAsset()||(R=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:I,onResetConnection:this.resetAndReload}));const T=new Promise((q,D)=>{this.relayEventManager.callbacks.set(S,X=>{if(R==null||R(),(0,c.isErrorResponse)(X))return D(new Error(X.errorMessage));q(X)});const H=X=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:S,response:{method:"watchAsset",result:!1}})},G=()=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:S,response:{method:"watchAsset",result:!0}})};this.ui.inlineWatchAsset()&&this.ui.watchAsset({onApprove:G,onCancel:H,type:a,address:l,symbol:s,decimals:m,image:w,chainId:v}),!this.ui.inlineWatchAsset()&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(S,u)});return{cancel:I,promise:T}}addEthereumChain(a,l,s,m,w,v){const u={method:"addEthereumChain",params:{chainId:a,rpcUrls:l,blockExplorerUrls:m,chainName:w,iconUrls:s,nativeCurrency:v}};let R=null;const S=(0,n.randomBytesHex)(8),I=q=>{this.publishWeb3RequestCanceledEvent(S),this.handleErrorResponse(S,u.method,q),R==null||R()};return this.ui.inlineAddEthereumChain(a)||(R=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:I,onResetConnection:this.resetAndReload})),{promise:new Promise((q,D)=>{this.relayEventManager.callbacks.set(S,X=>{if(R==null||R(),(0,c.isErrorResponse)(X))return D(new Error(X.errorMessage));q(X)});const H=X=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:S,response:{method:"addEthereumChain",result:{isApproved:!1,rpcUrl:""}}})},G=X=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:S,response:{method:"addEthereumChain",result:{isApproved:!0,rpcUrl:X}}})};this.ui.inlineAddEthereumChain(a)&&this.ui.addEthereumChain({onCancel:H,onApprove:G,chainId:u.params.chainId,rpcUrls:u.params.rpcUrls,blockExplorerUrls:u.params.blockExplorerUrls,chainName:u.params.chainName,iconUrls:u.params.iconUrls,nativeCurrency:u.params.nativeCurrency}),!this.ui.inlineAddEthereumChain(a)&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(S,u)}),cancel:I}}switchEthereumChain(a,l){const s={method:"switchEthereumChain",params:Object.assign({chainId:a},{address:l})},m=(0,n.randomBytesHex)(8),w=u=>{this.publishWeb3RequestCanceledEvent(m),this.handleErrorResponse(m,s.method,u)};return{promise:new Promise((u,R)=>{this.relayEventManager.callbacks.set(m,T=>{if((0,c.isErrorResponse)(T)&&T.errorCode)return R(e.standardErrors.provider.custom({code:T.errorCode,message:"Unrecognized chain ID. Try adding the chain using addEthereumChain first."}));if((0,c.isErrorResponse)(T))return R(new Error(T.errorMessage));u(T)});const S=T=>{var q;if(T){const D=(q=(0,e.getErrorCode)(T))!==null&&q!==void 0?q:e.standardErrorCodes.provider.unsupportedChain;this.handleErrorResponse(m,"switchEthereumChain",T instanceof Error?T:e.standardErrors.provider.unsupportedChain(a),D)}else this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:m,response:{method:"switchEthereumChain",result:{isApproved:!1,rpcUrl:""}}})},I=T=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:m,response:{method:"switchEthereumChain",result:{isApproved:!0,rpcUrl:T}}})};this.ui.switchEthereumChain({onCancel:S,onApprove:I,chainId:s.params.chainId,address:s.params.address}),!this.ui.inlineSwitchEthereumChain()&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(m,s)}),cancel:w}}inlineAddEthereumChain(a){return this.ui.inlineAddEthereumChain(a)}getSessionIdHash(){return i.Session.hash(this._session.id)}sendRequestStandalone(a,l){const s=w=>{this.handleErrorResponse(a,l.method,w)},m=w=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:a,response:w})};switch(l.method){case"signEthereumMessage":this.ui.signEthereumMessage({request:l,onSuccess:m,onCancel:s});break;case"signEthereumTransaction":this.ui.signEthereumTransaction({request:l,onSuccess:m,onCancel:s});break;case"submitEthereumTransaction":this.ui.submitEthereumTransaction({request:l,onSuccess:m,onCancel:s});break;case"ethereumAddressFromSignedMessage":this.ui.ethereumAddressFromSignedMessage({request:l,onSuccess:m});break;default:s();break}}};return mr.WalletLinkRelay=d,d.accountRequestCallbackIds=new Set,mr}var Tr={},At={},Tt={},ga;function Qh(){return ga||(ga=1,function(e){var r=Tt&&Tt.__createBinding||(Object.create?function(t,h,i,o){o===void 0&&(o=i);var c=Object.getOwnPropertyDescriptor(h,i);(!c||("get"in c?!h.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return h[i]}}),Object.defineProperty(t,o,c)}:function(t,h,i,o){o===void 0&&(o=i),t[o]=h[i]}),n=Tt&&Tt.__exportStar||function(t,h){for(var i in t)i!=="default"&&!Object.prototype.hasOwnProperty.call(h,i)&&r(h,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),n(tl(),e)}(Tt)),Tt}var nn={},ma;function Yh(){return ma||(ma=1,Object.defineProperty(nn,"__esModule",{value:!0}),nn.default=".-cbwsdk-css-reset .-cbwsdk-redirect-dialog-backdrop{position:fixed;top:0;left:0;right:0;bottom:0;transition:opacity .25s;background-color:rgba(10,11,13,.5)}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-backdrop-hidden{opacity:0}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box{display:block;position:fixed;top:50%;left:50%;transform:translate(-50%, -50%);padding:20px;border-radius:8px;background-color:#fff;color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box p{display:block;font-weight:400;font-size:14px;line-height:20px;padding-bottom:12px;color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box button{appearance:none;border:none;background:none;color:#0052ff;padding:0;text-decoration:none;display:block;font-weight:600;font-size:16px;line-height:24px}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.dark{background-color:#0a0b0d;color:#fff}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.dark button{color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.light{background-color:#fff;color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.light button{color:#0052ff}"),nn}var ya;function Xh(){if(ya)return At;ya=1;var e=At&&At.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(At,"__esModule",{value:!0}),At.RedirectDialog=void 0;const r=e(Wr),n=We,t=el(),h=Qh(),i=e(Yh());let o=class{constructor(){this.root=null}attach(){const d=document.documentElement;this.root=document.createElement("div"),this.root.className="-cbwsdk-css-reset",d.appendChild(this.root),(0,t.injectCssReset)()}present(d){this.render(d)}clear(){this.render(null)}render(d){this.root&&((0,n.render)(null,this.root),d&&(0,n.render)((0,n.h)(c,Object.assign({},d,{onDismiss:()=>{this.clear()}})),this.root))}};At.RedirectDialog=o;const c=({title:p,buttonText:d,darkMode:g,onButtonClick:a,onDismiss:l})=>{const s=g?"dark":"light";return(0,n.h)(h.SnackbarContainer,{darkMode:g},(0,n.h)("div",{class:"-cbwsdk-redirect-dialog"},(0,n.h)("style",null,i.default),(0,n.h)("div",{class:"-cbwsdk-redirect-dialog-backdrop",onClick:l}),(0,n.h)("div",{class:(0,r.default)("-cbwsdk-redirect-dialog-box",s)},(0,n.h)("p",null,p),(0,n.h)("button",{onClick:a},d))))};return At}var wa;function il(){if(wa)return Tr;wa=1,Object.defineProperty(Tr,"__esModule",{value:!0}),Tr.MobileRelayUI=void 0;const e=Xh();let r=class{constructor(t){this.attached=!1,this.darkMode=!1,this.redirectDialog=new e.RedirectDialog,this.darkMode=t.darkMode}attach(){if(this.attached)throw new Error("Coinbase Wallet SDK UI is already attached");this.redirectDialog.attach(),this.attached=!0}setConnected(t){}redirectToCoinbaseWallet(t){const h=new URL("https://go.cb-w.com/walletlink");h.searchParams.append("redirect_url",window.location.href),t&&h.searchParams.append("wl_url",t);const i=document.createElement("a");i.target="cbw-opener",i.href=h.href,i.rel="noreferrer noopener",i.click()}openCoinbaseWalletDeeplink(t){this.redirectDialog.present({title:"Redirecting to Coinbase Wallet...",buttonText:"Open",darkMode:this.darkMode,onButtonClick:()=>{this.redirectToCoinbaseWallet(t)}}),setTimeout(()=>{this.redirectToCoinbaseWallet(t)},99)}showConnecting(t){return()=>{this.redirectDialog.clear()}}hideRequestEthereumAccounts(){this.redirectDialog.clear()}requestEthereumAccounts(){}addEthereumChain(){}watchAsset(){}selectProvider(){}switchEthereumChain(){}signEthereumMessage(){}signEthereumTransaction(){}submitEthereumTransaction(){}ethereumAddressFromSignedMessage(){}reloadUI(){}setStandalone(){}setConnectDisabled(){}inlineAccountsResponse(){return!1}inlineAddEthereumChain(){return!1}inlineWatchAsset(){return!1}inlineSwitchEthereumChain(){return!1}isStandalone(){return!1}};return Tr.MobileRelayUI=r,Tr}var va;function sl(){if(va)return gr;va=1,Object.defineProperty(gr,"__esModule",{value:!0}),gr.MobileRelay=void 0;const e=nt(),r=nl(),n=il();let t=class extends r.WalletLinkRelay{constructor(i){var o;super(i),this._enableMobileWalletLink=(o=i.enableMobileWalletLink)!==null&&o!==void 0?o:!1}requestEthereumAccounts(){return this._enableMobileWalletLink?super.requestEthereumAccounts():{promise:new Promise(()=>{const i=(0,e.getLocation)();i.href=`https://go.cb-w.com/dapp?cb_url=${encodeURIComponent(i.href)}`}),cancel:()=>{}}}publishWeb3RequestEvent(i,o){if(super.publishWeb3RequestEvent(i,o),!(this._enableMobileWalletLink&&this.ui instanceof n.MobileRelayUI))return;let c=!1;switch(o.method){case"requestEthereumAccounts":case"connectAndSignIn":c=!0,this.ui.openCoinbaseWalletDeeplink(this.getQRCodeUrl());break;case"switchEthereumChain":return;default:c=!0,this.ui.openCoinbaseWalletDeeplink();break}c&&window.addEventListener("blur",()=>{window.addEventListener("focus",()=>{this.connection.checkUnseenEvents()},{once:!0})},{once:!0})}handleWeb3ResponseMessage(i){super.handleWeb3ResponseMessage(i)}connectAndSignIn(i){if(!this._enableMobileWalletLink)throw new Error("connectAndSignIn is supported only when enableMobileWalletLink is on");return this.sendRequest({method:"connectAndSignIn",params:{appName:this.appName,appLogoUrl:this.appLogoUrl,domain:window.location.hostname,aud:window.location.href,version:"1",type:"eip4361",nonce:i.nonce,iat:new Date().toISOString(),chainId:`eip155:${this.dappDefaultChain}`,statement:i.statement,resources:i.resources}})}};return gr.MobileRelay=t,gr}var sn={exports:{}},zn,ba;function ol(){return ba||(ba=1,zn=gn().EventEmitter),zn}var Jn,_a;function ef(){if(_a)return Jn;_a=1;function e(m,w){var v=Object.keys(m);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(m);w&&(u=u.filter(function(R){return Object.getOwnPropertyDescriptor(m,R).enumerable})),v.push.apply(v,u)}return v}function r(m){for(var w=1;w0?this.tail.next=u:this.head=u,this.tail=u,++this.length}},{key:"unshift",value:function(v){var u={data:v,next:this.head};this.length===0&&(this.tail=u),this.head=u,++this.length}},{key:"shift",value:function(){if(this.length!==0){var v=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,v}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(v){if(this.length===0)return"";for(var u=this.head,R=""+u.data;u=u.next;)R+=v+u.data;return R}},{key:"concat",value:function(v){if(this.length===0)return d.alloc(0);for(var u=d.allocUnsafe(v>>>0),R=this.head,S=0;R;)s(R.data,u,S),S+=R.data.length,R=R.next;return u}},{key:"consume",value:function(v,u){var R;return vI.length?I.length:v;if(T===I.length?S+=I:S+=I.slice(0,v),v-=T,v===0){T===I.length?(++R,u.next?this.head=u.next:this.head=this.tail=null):(this.head=u,u.data=I.slice(T));break}++R}return this.length-=R,S}},{key:"_getBuffer",value:function(v){var u=d.allocUnsafe(v),R=this.head,S=1;for(R.data.copy(u),v-=R.data.length;R=R.next;){var I=R.data,T=v>I.length?I.length:v;if(I.copy(u,u.length-v,0,T),v-=T,v===0){T===I.length?(++S,R.next?this.head=R.next:this.head=this.tail=null):(this.head=R,R.data=I.slice(T));break}++S}return this.length-=S,u}},{key:l,value:function(v,u){return a(this,r(r({},u),{},{depth:0,customInspect:!1}))}}]),m}(),Jn}var Gn,Ea;function al(){if(Ea)return Gn;Ea=1;function e(o,c){var p=this,d=this._readableState&&this._readableState.destroyed,g=this._writableState&&this._writableState.destroyed;return d||g?(c?c(o):o&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(h,this,o)):process.nextTick(h,this,o)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(o||null,function(a){!c&&a?p._writableState?p._writableState.errorEmitted?process.nextTick(n,p):(p._writableState.errorEmitted=!0,process.nextTick(r,p,a)):process.nextTick(r,p,a):c?(process.nextTick(n,p),c(a)):process.nextTick(n,p)}),this)}function r(o,c){h(o,c),n(o)}function n(o){o._writableState&&!o._writableState.emitClose||o._readableState&&!o._readableState.emitClose||o.emit("close")}function t(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function h(o,c){o.emit("error",c)}function i(o,c){var p=o._readableState,d=o._writableState;p&&p.autoDestroy||d&&d.autoDestroy?o.destroy(c):o.emit("error",c)}return Gn={destroy:e,undestroy:t,errorOrDestroy:i},Gn}var Zn={},Ra;function nr(){if(Ra)return Zn;Ra=1;function e(c,p){c.prototype=Object.create(p.prototype),c.prototype.constructor=c,c.__proto__=p}var r={};function n(c,p,d){d||(d=Error);function g(l,s,m){return typeof p=="string"?p:p(l,s,m)}var a=function(l){e(s,l);function s(m,w,v){return l.call(this,g(m,w,v))||this}return s}(d);a.prototype.name=d.name,a.prototype.code=c,r[c]=a}function t(c,p){if(Array.isArray(c)){var d=c.length;return c=c.map(function(g){return String(g)}),d>2?"one of ".concat(p," ").concat(c.slice(0,d-1).join(", "),", or ")+c[d-1]:d===2?"one of ".concat(p," ").concat(c[0]," or ").concat(c[1]):"of ".concat(p," ").concat(c[0])}else return"of ".concat(p," ").concat(String(c))}function h(c,p,d){return c.substr(0,p.length)===p}function i(c,p,d){return(d===void 0||d>c.length)&&(d=c.length),c.substring(d-p.length,d)===p}function o(c,p,d){return typeof d!="number"&&(d=0),d+p.length>c.length?!1:c.indexOf(p,d)!==-1}return n("ERR_INVALID_OPT_VALUE",function(c,p){return'The value "'+p+'" is invalid for option "'+c+'"'},TypeError),n("ERR_INVALID_ARG_TYPE",function(c,p,d){var g;typeof p=="string"&&h(p,"not ")?(g="must not be",p=p.replace(/^not /,"")):g="must be";var a;if(i(c," argument"))a="The ".concat(c," ").concat(g," ").concat(t(p,"type"));else{var l=o(c,".")?"property":"argument";a='The "'.concat(c,'" ').concat(l," ").concat(g," ").concat(t(p,"type"))}return a+=". Received type ".concat(typeof d),a},TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",function(c){return"The "+c+" method is not implemented"}),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",function(c){return"Cannot call "+c+" after a stream was destroyed"}),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",function(c){return"Unknown encoding: "+c},TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),Zn.codes=r,Zn}var Kn,Sa;function cl(){if(Sa)return Kn;Sa=1;var e=nr().codes.ERR_INVALID_OPT_VALUE;function r(t,h,i){return t.highWaterMark!=null?t.highWaterMark:h?t[i]:null}function n(t,h,i,o){var c=r(h,o,i);if(c!=null){if(!(isFinite(c)&&Math.floor(c)===c)||c<0){var p=o?i:"highWaterMark";throw new e(p,c)}return Math.floor(c)}return t.objectMode?16:16*1024}return Kn={getHighWaterMark:n},Kn}var Qn,Ca;function tf(){if(Ca)return Qn;Ca=1,Qn=e;function e(n,t){if(r("noDeprecation"))return n;var h=!1;function i(){if(!h){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),h=!0}return n.apply(this,arguments)}return i}function r(n){try{if(!Xt.localStorage)return!1}catch{return!1}var t=Xt.localStorage[n];return t==null?!1:String(t).toLowerCase()==="true"}return Qn}var Yn,Ma;function ul(){if(Ma)return Yn;Ma=1,Yn=H;function e($){var W=this;this.next=null,this.entry=null,this.finish=function(){K(W,$)}}var r;H.WritableState=q;var n={deprecate:tf()},t=ol(),h=mn().Buffer,i=(typeof Xt<"u"?Xt:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function o($){return h.from($)}function c($){return h.isBuffer($)||$ instanceof i}var p=al(),d=cl(),g=d.getHighWaterMark,a=nr().codes,l=a.ERR_INVALID_ARG_TYPE,s=a.ERR_METHOD_NOT_IMPLEMENTED,m=a.ERR_MULTIPLE_CALLBACK,w=a.ERR_STREAM_CANNOT_PIPE,v=a.ERR_STREAM_DESTROYED,u=a.ERR_STREAM_NULL_VALUES,R=a.ERR_STREAM_WRITE_AFTER_END,S=a.ERR_UNKNOWN_ENCODING,I=p.errorOrDestroy;Ye()(H,t);function T(){}function q($,W,J){r=r||er(),$=$||{},typeof J!="boolean"&&(J=W instanceof r),this.objectMode=!!$.objectMode,J&&(this.objectMode=this.objectMode||!!$.writableObjectMode),this.highWaterMark=g(this,$,"writableHighWaterMark",J),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var ee=$.decodeStrings===!1;this.decodeStrings=!ee,this.defaultEncoding=$.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(oe){C(W,oe)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=$.emitClose!==!1,this.autoDestroy=!!$.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}q.prototype.getBuffer=function(){for(var W=this.bufferedRequest,J=[];W;)J.push(W),W=W.next;return J},function(){try{Object.defineProperty(q.prototype,"buffer",{get:n.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var D;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(D=Function.prototype[Symbol.hasInstance],Object.defineProperty(H,Symbol.hasInstance,{value:function(W){return D.call(this,W)?!0:this!==H?!1:W&&W._writableState instanceof q}})):D=function(W){return W instanceof this};function H($){r=r||er();var W=this instanceof r;if(!W&&!D.call(H,this))return new H($);this._writableState=new q($,this,W),this.writable=!0,$&&(typeof $.write=="function"&&(this._write=$.write),typeof $.writev=="function"&&(this._writev=$.writev),typeof $.destroy=="function"&&(this._destroy=$.destroy),typeof $.final=="function"&&(this._final=$.final)),t.call(this)}H.prototype.pipe=function(){I(this,new w)};function G($,W){var J=new R;I($,J),process.nextTick(W,J)}function X($,W,J,ee){var oe;return J===null?oe=new u:typeof J!="string"&&!W.objectMode&&(oe=new l("chunk",["string","Buffer"],J)),oe?(I($,oe),process.nextTick(ee,oe),!1):!0}H.prototype.write=function($,W,J){var ee=this._writableState,oe=!1,P=!ee.objectMode&&c($);return P&&!h.isBuffer($)&&($=o($)),typeof W=="function"&&(J=W,W=null),P?W="buffer":W||(W=ee.defaultEncoding),typeof J!="function"&&(J=T),ee.ending?G(this,J):(P||X(this,ee,$,J))&&(ee.pendingcb++,oe=re(this,ee,P,$,W,J)),oe},H.prototype.cork=function(){this._writableState.corked++},H.prototype.uncork=function(){var $=this._writableState;$.corked&&($.corked--,!$.writing&&!$.corked&&!$.bufferProcessing&&$.bufferedRequest&&B(this,$))},H.prototype.setDefaultEncoding=function(W){if(typeof W=="string"&&(W=W.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((W+"").toLowerCase())>-1))throw new S(W);return this._writableState.defaultEncoding=W,this},Object.defineProperty(H.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function Y($,W,J){return!$.objectMode&&$.decodeStrings!==!1&&typeof W=="string"&&(W=h.from(W,J)),W}Object.defineProperty(H.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function re($,W,J,ee,oe,P){if(!J){var O=Y(W,ee,oe);ee!==O&&(J=!0,oe="buffer",ee=O)}var Z=W.objectMode?1:ee.length;W.length+=Z;var Q=W.length>5===6?2:u>>4===14?3:u>>3===30?4:u>>6===2?-1:-2}function o(u,R,S){var I=R.length-1;if(I=0?(T>0&&(u.lastNeed=T-1),T):--I=0?(T>0&&(u.lastNeed=T-2),T):--I=0?(T>0&&(T===2?T=0:u.lastNeed=T-3),T):0))}function c(u,R,S){if((R[0]&192)!==128)return u.lastNeed=0,"�";if(u.lastNeed>1&&R.length>1){if((R[1]&192)!==128)return u.lastNeed=1,"�";if(u.lastNeed>2&&R.length>2&&(R[2]&192)!==128)return u.lastNeed=2,"�"}}function p(u){var R=this.lastTotal-this.lastNeed,S=c(this,u);if(S!==void 0)return S;if(this.lastNeed<=u.length)return u.copy(this.lastChar,R,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);u.copy(this.lastChar,R,0,u.length),this.lastNeed-=u.length}function d(u,R){var S=o(this,u,R);if(!this.lastNeed)return u.toString("utf8",R);this.lastTotal=S;var I=u.length-(S-this.lastNeed);return u.copy(this.lastChar,0,I),u.toString("utf8",R,I)}function g(u){var R=u&&u.length?this.write(u):"";return this.lastNeed?R+"�":R}function a(u,R){if((u.length-R)%2===0){var S=u.toString("utf16le",R);if(S){var I=S.charCodeAt(S.length-1);if(I>=55296&&I<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=u[u.length-2],this.lastChar[1]=u[u.length-1],S.slice(0,-1)}return S}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=u[u.length-1],u.toString("utf16le",R,u.length-1)}function l(u){var R=u&&u.length?this.write(u):"";if(this.lastNeed){var S=this.lastTotal-this.lastNeed;return R+this.lastChar.toString("utf16le",0,S)}return R}function s(u,R){var S=(u.length-R)%3;return S===0?u.toString("base64",R):(this.lastNeed=3-S,this.lastTotal=3,S===1?this.lastChar[0]=u[u.length-1]:(this.lastChar[0]=u[u.length-2],this.lastChar[1]=u[u.length-1]),u.toString("base64",R,u.length-S))}function m(u){var R=u&&u.length?this.write(u):"";return this.lastNeed?R+this.lastChar.toString("base64",0,3-this.lastNeed):R}function w(u){return u.toString(this.encoding)}function v(u){return u&&u.length?this.write(u):""}return ei}var ti,Aa;function Gs(){if(Aa)return ti;Aa=1;var e=nr().codes.ERR_STREAM_PREMATURE_CLOSE;function r(i){var o=!1;return function(){if(!o){o=!0;for(var c=arguments.length,p=new Array(c),d=0;d0)if(typeof O!="string"&&!le.objectMode&&Object.getPrototypeOf(O)!==t.prototype&&(O=i(O)),Q)le.endEmitted?T(P,new u):Y(P,le,O,!0);else if(le.ended)T(P,new w);else{if(le.destroyed)return!1;le.reading=!1,le.decoder&&!Z?(O=le.decoder.write(O),le.objectMode||O.length!==0?Y(P,le,O,!1):B(P,le)):Y(P,le,O,!1)}else Q||(le.reading=!1,B(P,le))}return!le.ended&&(le.length=F?P=F:(P--,P|=P>>>1,P|=P>>>2,P|=P>>>4,P|=P>>>8,P|=P>>>16,P++),P}function E(P,O){return P<=0||O.length===0&&O.ended?0:O.objectMode?1:P!==P?O.flowing&&O.length?O.buffer.head.data.length:O.length:(P>O.highWaterMark&&(O.highWaterMark=f(P)),P<=O.length?P:O.ended?O.length:(O.needReadable=!0,0))}G.prototype.read=function(P){p("read",P),P=parseInt(P,10);var O=this._readableState,Z=P;if(P!==0&&(O.emittedReadable=!1),P===0&&O.needReadable&&((O.highWaterMark!==0?O.length>=O.highWaterMark:O.length>0)||O.ended))return p("read: emitReadable",O.length,O.ended),O.length===0&&O.ended?J(this):M(this),null;if(P=E(P,O),P===0&&O.ended)return O.length===0&&J(this),null;var Q=O.needReadable;p("need readable",Q),(O.length===0||O.length-P0?ae=W(P,O):ae=null,ae===null?(O.needReadable=O.length<=O.highWaterMark,P=0):(O.length-=P,O.awaitDrain=0),O.length===0&&(O.ended||(O.needReadable=!0),Z!==P&&O.ended&&J(this)),ae!==null&&this.emit("data",ae),ae};function C(P,O){if(p("onEofChunk"),!O.ended){if(O.decoder){var Z=O.decoder.end();Z&&Z.length&&(O.buffer.push(Z),O.length+=O.objectMode?1:Z.length)}O.ended=!0,O.sync?M(P):(O.needReadable=!1,O.emittedReadable||(O.emittedReadable=!0,x(P)))}}function M(P){var O=P._readableState;p("emitReadable",O.needReadable,O.emittedReadable),O.needReadable=!1,O.emittedReadable||(p("emitReadable",O.flowing),O.emittedReadable=!0,process.nextTick(x,P))}function x(P){var O=P._readableState;p("emitReadable_",O.destroyed,O.length,O.ended),!O.destroyed&&(O.length||O.ended)&&(P.emit("readable"),O.emittedReadable=!1),O.needReadable=!O.flowing&&!O.ended&&O.length<=O.highWaterMark,$(P)}function B(P,O){O.readingMore||(O.readingMore=!0,process.nextTick(j,P,O))}function j(P,O){for(;!O.reading&&!O.ended&&(O.length1&&oe(Q.pipes,P)!==-1)&&!me&&(p("false write response, pause",Q.awaitDrain),Q.awaitDrain++),Z.pause())}function pe(k){p("onerror",k),we(),P.removeListener("error",pe),r(P,"error")===0&&T(P,k)}D(P,"error",pe);function ye(){P.removeListener("finish",je),we()}P.once("close",ye);function je(){p("onfinish"),P.removeListener("close",ye),we()}P.once("finish",je);function we(){p("unpipe"),Z.unpipe(P)}return P.emit("pipe",Z),Q.flowing||(p("pipe resume"),Z.resume()),P};function A(P){return function(){var Z=P._readableState;p("pipeOnDrain",Z.awaitDrain),Z.awaitDrain&&Z.awaitDrain--,Z.awaitDrain===0&&r(P,"data")&&(Z.flowing=!0,$(P))}}G.prototype.unpipe=function(P){var O=this._readableState,Z={hasUnpiped:!1};if(O.pipesCount===0)return this;if(O.pipesCount===1)return P&&P!==O.pipes?this:(P||(P=O.pipes),O.pipes=null,O.pipesCount=0,O.flowing=!1,P&&P.emit("unpipe",this,Z),this);if(!P){var Q=O.pipes,ae=O.pipesCount;O.pipes=null,O.pipesCount=0,O.flowing=!1;for(var le=0;le0,Q.flowing!==!1&&this.resume()):P==="readable"&&!Q.endEmitted&&!Q.readableListening&&(Q.readableListening=Q.needReadable=!0,Q.flowing=!1,Q.emittedReadable=!1,p("on readable",Q.length,Q.reading),Q.length?M(this):Q.reading||process.nextTick(N,this)),Z},G.prototype.addListener=G.prototype.on,G.prototype.removeListener=function(P,O){var Z=n.prototype.removeListener.call(this,P,O);return P==="readable"&&process.nextTick(b,this),Z},G.prototype.removeAllListeners=function(P){var O=n.prototype.removeAllListeners.apply(this,arguments);return(P==="readable"||P===void 0)&&process.nextTick(b,this),O};function b(P){var O=P._readableState;O.readableListening=P.listenerCount("readable")>0,O.resumeScheduled&&!O.paused?O.flowing=!0:P.listenerCount("data")>0&&P.resume()}function N(P){p("readable nexttick read 0"),P.read(0)}G.prototype.resume=function(){var P=this._readableState;return P.flowing||(p("resume"),P.flowing=!P.readableListening,te(this,P)),P.paused=!1,this};function te(P,O){O.resumeScheduled||(O.resumeScheduled=!0,process.nextTick(K,P,O))}function K(P,O){p("resume",O.reading),O.reading||P.read(0),O.resumeScheduled=!1,P.emit("resume"),$(P),O.flowing&&!O.reading&&P.read(0)}G.prototype.pause=function(){return p("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(p("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function $(P){var O=P._readableState;for(p("flow",O.flowing);O.flowing&&P.read()!==null;);}G.prototype.wrap=function(P){var O=this,Z=this._readableState,Q=!1;P.on("end",function(){if(p("wrapped end"),Z.decoder&&!Z.ended){var ie=Z.decoder.end();ie&&ie.length&&O.push(ie)}O.push(null)}),P.on("data",function(ie){if(p("wrapped data"),Z.decoder&&(ie=Z.decoder.write(ie)),!(Z.objectMode&&ie==null)&&!(!Z.objectMode&&(!ie||!ie.length))){var de=O.push(ie);de||(Q=!0,P.pause())}});for(var ae in P)this[ae]===void 0&&typeof P[ae]=="function"&&(this[ae]=function(de){return function(){return P[de].apply(P,arguments)}}(ae));for(var le=0;le=O.length?(O.decoder?Z=O.buffer.join(""):O.buffer.length===1?Z=O.buffer.first():Z=O.buffer.concat(O.length),O.buffer.clear()):Z=O.buffer.consume(P,O.decoder),Z}function J(P){var O=P._readableState;p("endReadable",O.endEmitted),O.endEmitted||(O.ended=!0,process.nextTick(ee,O,P))}function ee(P,O){if(p("endReadableNT",P.endEmitted,P.length),!P.endEmitted&&P.length===0&&(P.endEmitted=!0,O.readable=!1,O.emit("end"),P.autoDestroy)){var Z=O._writableState;(!Z||Z.autoDestroy&&Z.finished)&&O.destroy()}}typeof Symbol=="function"&&(G.from=function(P,O){return I===void 0&&(I=nf()),I(G,P,O)});function oe(P,O){for(var Z=0,Q=P.length;Z0;return c(R,I,T,function(q){v||(v=q),q&&u.forEach(p),!I&&(u.forEach(p),w(v))})});return s.reduce(d)}return ai=a,ai}var Fa;function fl(){return Fa||(Fa=1,function(e,r){r=e.exports=ll(),r.Stream=r,r.Readable=r,r.Writable=ul(),r.Duplex=er(),r.Transform=hl(),r.PassThrough=sf(),r.finished=Gs(),r.pipeline=of()}(sn,sn.exports)),sn.exports}var ci,Da;function af(){if(Da)return ci;Da=1;const{Transform:e}=fl();return ci=r=>class dl extends e{constructor(t,h,i,o,c){super(c),this._rate=t,this._capacity=h,this._delimitedSuffix=i,this._hashBitLength=o,this._options=c,this._state=new r,this._state.initialize(t,h),this._finalized=!1}_transform(t,h,i){let o=null;try{this.update(t,h)}catch(c){o=c}i(o)}_flush(t){let h=null;try{this.push(this.digest())}catch(i){h=i}t(h)}update(t,h){if(!Buffer.isBuffer(t)&&typeof t!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");return Buffer.isBuffer(t)||(t=Buffer.from(t,h)),this._state.absorb(t),this}digest(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);let h=this._state.squeeze(this._hashBitLength/8);return t!==void 0&&(h=h.toString(t)),this._resetState(),h}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const t=new dl(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(t._state),t._finalized=this._finalized,t}},ci}var ui,qa;function cf(){if(qa)return ui;qa=1;const{Transform:e}=fl();return ui=r=>class pl extends e{constructor(t,h,i,o){super(o),this._rate=t,this._capacity=h,this._delimitedSuffix=i,this._options=o,this._state=new r,this._state.initialize(t,h),this._finalized=!1}_transform(t,h,i){let o=null;try{this.update(t,h)}catch(c){o=c}i(o)}_flush(){}_read(t){this.push(this.squeeze(t))}update(t,h){if(!Buffer.isBuffer(t)&&typeof t!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Squeeze already called");return Buffer.isBuffer(t)||(t=Buffer.from(t,h)),this._state.absorb(t),this}squeeze(t,h){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let i=this._state.squeeze(t);return h!==void 0&&(i=i.toString(h)),i}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const t=new pl(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(t._state),t._finalized=this._finalized,t}},ui}var li,ja;function uf(){if(ja)return li;ja=1;const e=af(),r=cf();return li=function(n){const t=e(n),h=r(n);return function(i,o){switch(typeof i=="string"?i.toLowerCase():i){case"keccak224":return new t(1152,448,null,224,o);case"keccak256":return new t(1088,512,null,256,o);case"keccak384":return new t(832,768,null,384,o);case"keccak512":return new t(576,1024,null,512,o);case"sha3-224":return new t(1152,448,6,224,o);case"sha3-256":return new t(1088,512,6,256,o);case"sha3-384":return new t(832,768,6,384,o);case"sha3-512":return new t(576,1024,6,512,o);case"shake128":return new h(1344,256,31,o);case"shake256":return new h(1088,512,31,o);default:throw new Error("Invald algorithm: "+i)}}},li}var hi={},$a;function lf(){if($a)return hi;$a=1;const e=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648];return hi.p1600=function(r){for(let n=0;n<24;++n){const t=r[0]^r[10]^r[20]^r[30]^r[40],h=r[1]^r[11]^r[21]^r[31]^r[41],i=r[2]^r[12]^r[22]^r[32]^r[42],o=r[3]^r[13]^r[23]^r[33]^r[43],c=r[4]^r[14]^r[24]^r[34]^r[44],p=r[5]^r[15]^r[25]^r[35]^r[45],d=r[6]^r[16]^r[26]^r[36]^r[46],g=r[7]^r[17]^r[27]^r[37]^r[47],a=r[8]^r[18]^r[28]^r[38]^r[48],l=r[9]^r[19]^r[29]^r[39]^r[49];let s=a^(i<<1|o>>>31),m=l^(o<<1|i>>>31);const w=r[0]^s,v=r[1]^m,u=r[10]^s,R=r[11]^m,S=r[20]^s,I=r[21]^m,T=r[30]^s,q=r[31]^m,D=r[40]^s,H=r[41]^m;s=t^(c<<1|p>>>31),m=h^(p<<1|c>>>31);const G=r[2]^s,X=r[3]^m,Y=r[12]^s,re=r[13]^m,F=r[22]^s,f=r[23]^m,E=r[32]^s,C=r[33]^m,M=r[42]^s,x=r[43]^m;s=i^(d<<1|g>>>31),m=o^(g<<1|d>>>31);const B=r[4]^s,j=r[5]^m,A=r[14]^s,b=r[15]^m,N=r[24]^s,te=r[25]^m,K=r[34]^s,$=r[35]^m,W=r[44]^s,J=r[45]^m;s=c^(a<<1|l>>>31),m=p^(l<<1|a>>>31);const ee=r[6]^s,oe=r[7]^m,P=r[16]^s,O=r[17]^m,Z=r[26]^s,Q=r[27]^m,ae=r[36]^s,le=r[37]^m,ie=r[46]^s,de=r[47]^m;s=d^(t<<1|h>>>31),m=g^(h<<1|t>>>31);const He=r[8]^s,me=r[9]^m,he=r[18]^s,be=r[19]^m,pe=r[28]^s,ye=r[29]^m,je=r[38]^s,we=r[39]^m,k=r[48]^s,y=r[49]^m,_=w,L=v,U=R<<4|u>>>28,V=u<<4|R>>>28,z=S<<3|I>>>29,fe=I<<3|S>>>29,ue=q<<9|T>>>23,ce=T<<9|q>>>23,ve=D<<18|H>>>14,se=H<<18|D>>>14,_e=G<<1|X>>>31,Vt=X<<1|G>>>31,Ee=re<<12|Y>>>20,Re=Y<<12|re>>>20,zt=F<<10|f>>>22,Se=f<<10|F>>>22,Ce=C<<13|E>>>19,Jt=E<<13|C>>>19,Me=M<<2|x>>>30,ke=x<<2|M>>>30,Gt=j<<30|B>>>2,Ie=B<<30|j>>>2,xe=A<<6|b>>>26,Zt=b<<6|A>>>26,Ae=te<<11|N>>>21,Te=N<<11|te>>>21,Kt=K<<15|$>>>17,Le=$<<15|K>>>17,Be=J<<29|W>>>3,Qt=W<<29|J>>>3,Ne=ee<<28|oe>>>4,Pe=oe<<28|ee>>>4,Yt=O<<23|P>>>9,Oe=P<<23|O>>>9,Fe=Z<<25|Q>>>7,at=Q<<25|Z>>>7,ct=ae<<21|le>>>11,ut=le<<21|ae>>>11,lt=de<<24|ie>>>8,ht=ie<<24|de>>>8,ft=He<<27|me>>>5,dt=me<<27|He>>>5,pt=he<<20|be>>>12,gt=be<<20|he>>>12,mt=ye<<7|pe>>>25,yt=pe<<7|ye>>>25,wt=je<<8|we>>>24,vt=we<<8|je>>>24,bt=k<<14|y>>>18,_t=y<<14|k>>>18;r[0]=_^~Ee&Ae,r[1]=L^~Re&Te,r[10]=Ne^~pt&z,r[11]=Pe^~gt&fe,r[20]=_e^~xe&Fe,r[21]=Vt^~Zt&at,r[30]=ft^~U&zt,r[31]=dt^~V&Se,r[40]=Gt^~Yt&mt,r[41]=Ie^~Oe&yt,r[2]=Ee^~Ae&ct,r[3]=Re^~Te&ut,r[12]=pt^~z&Ce,r[13]=gt^~fe&Jt,r[22]=xe^~Fe&wt,r[23]=Zt^~at&vt,r[32]=U^~zt&Kt,r[33]=V^~Se&Le,r[42]=Yt^~mt&ue,r[43]=Oe^~yt&ce,r[4]=Ae^~ct&bt,r[5]=Te^~ut&_t,r[14]=z^~Ce&Be,r[15]=fe^~Jt&Qt,r[24]=Fe^~wt&ve,r[25]=at^~vt&se,r[34]=zt^~Kt<,r[35]=Se^~Le&ht,r[44]=mt^~ue&Me,r[45]=yt^~ce&ke,r[6]=ct^~bt&_,r[7]=ut^~_t&L,r[16]=Ce^~Be&Ne,r[17]=Jt^~Qt&Pe,r[26]=wt^~ve&_e,r[27]=vt^~se&Vt,r[36]=Kt^~lt&ft,r[37]=Le^~ht&dt,r[46]=ue^~Me&Gt,r[47]=ce^~ke&Ie,r[8]=bt^~_&Ee,r[9]=_t^~L&Re,r[18]=Be^~Ne&pt,r[19]=Qt^~Pe>,r[28]=ve^~_e&xe,r[29]=se^~Vt&Zt,r[38]=lt^~ft&U,r[39]=ht^~dt&V,r[48]=Me^~Gt&Yt,r[49]=ke^~Ie&Oe,r[0]^=e[n*2],r[1]^=e[n*2+1]}},hi}var fi,Ua;function hf(){if(Ua)return fi;Ua=1;const e=lf();function r(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}return r.prototype.initialize=function(n,t){for(let h=0;h<50;++h)this.state[h]=0;this.blockSize=n/8,this.count=0,this.squeezing=!1},r.prototype.absorb=function(n){for(let t=0;t>>8*(this.count%4)&255,this.count+=1,this.count===this.blockSize&&(e.p1600(this.state),this.count=0);return t},r.prototype.copy=function(n){for(let t=0;t<50;++t)n.state[t]=this.state[t];n.blockSize=this.blockSize,n.count=this.count,n.squeezing=this.squeezing},fi=r,fi}var di,Ha;function ff(){return Ha||(Ha=1,di=uf()(hf())),di}var pi,Wa;function gl(){if(Wa)return pi;Wa=1;const e=ff(),r=yn();function n(a){return Buffer.allocUnsafe(a).fill(0)}function t(a,l,s){const m=n(l);return a=i(a),s?a.length"u")throw new Error("Not an array?");if(w=i(s),w!=="dynamic"&&w!==0&&m.length>w)throw new Error("Elements exceed array size: "+w);u=[],s=s.slice(0,s.lastIndexOf("[")),typeof m=="string"&&(m=JSON.parse(m));for(R in m)u.push(c(s,m[R]));if(w==="dynamic"){var S=c("uint256",m.length);u.unshift(S)}return Buffer.concat(u)}else{if(s==="bytes")return m=new Buffer(m),u=Buffer.concat([c("uint256",m.length),m]),m.length%32!==0&&(u=Buffer.concat([u,e.zeros(32-m.length%32)])),u;if(s.startsWith("bytes")){if(w=t(s),w<1||w>32)throw new Error("Invalid bytes width: "+w);return e.setLengthRight(m,32)}else if(s.startsWith("uint")){if(w=t(s),w%8||w<8||w>256)throw new Error("Invalid uint width: "+w);if(v=o(m),v.bitLength()>w)throw new Error("Supplied uint exceeds width: "+w+" vs "+v.bitLength());if(v<0)throw new Error("Supplied uint is negative");return v.toArrayLike(Buffer,"be",32)}else if(s.startsWith("int")){if(w=t(s),w%8||w<8||w>256)throw new Error("Invalid int width: "+w);if(v=o(m),v.bitLength()>w)throw new Error("Supplied int exceeds width: "+w+" vs "+v.bitLength());return v.toTwos(256).toArrayLike(Buffer,"be",32)}else if(s.startsWith("ufixed")){if(w=h(s),v=o(m),v<0)throw new Error("Supplied ufixed is negative");return c("uint256",v.mul(new r(2).pow(new r(w[1]))))}else if(s.startsWith("fixed"))return w=h(s),c("int256",o(m).mul(new r(2).pow(new r(w[1]))))}throw new Error("Unsupported or invalid type: "+s)}function p(s){return s==="string"||s==="bytes"||i(s)==="dynamic"}function d(s){return s.lastIndexOf("]")===s.length-1}function g(s,m){var w=[],v=[],u=32*s.length;for(var R in s){var S=n(s[R]),I=m[R],T=c(S,I);p(S)?(w.push(c("uint256",u)),v.push(T),u+=T.length):w.push(T)}return Buffer.concat(w.concat(v))}function a(s,m){if(s.length!==m.length)throw new Error("Number of types are not matching the values");for(var w,v,u=[],R=0;R32)throw new Error("Invalid bytes width: "+w);u.push(e.setLengthRight(I,w))}else if(S.startsWith("uint")){if(w=t(S),w%8||w<8||w>256)throw new Error("Invalid uint width: "+w);if(v=o(I),v.bitLength()>w)throw new Error("Supplied uint exceeds width: "+w+" vs "+v.bitLength());u.push(v.toArrayLike(Buffer,"be",w/8))}else if(S.startsWith("int")){if(w=t(S),w%8||w<8||w>256)throw new Error("Invalid int width: "+w);if(v=o(I),v.bitLength()>w)throw new Error("Supplied int exceeds width: "+w+" vs "+v.bitLength());u.push(v.toTwos(w).toArrayLike(Buffer,"be",w/8))}else throw new Error("Unsupported or invalid type: "+S)}return Buffer.concat(u)}function l(s,m){return e.keccak(a(s,m))}return gi={rawEncode:g,solidityPack:a,soliditySHA3:l},gi}var mi,za;function pf(){if(za)return mi;za=1;const e=gl(),r=df(),n={type:"object",properties:{types:{type:"object",additionalProperties:{type:"array",items:{type:"object",properties:{name:{type:"string"},type:{type:"string"}},required:["name","type"]}}},primaryType:{type:"string"},domain:{type:"object"},message:{type:"object"}},required:["types","primaryType","domain","message"]},t={encodeData(i,o,c,p=!0){const d=["bytes32"],g=[this.hashType(i,c)];if(p){const a=(l,s,m)=>{if(c[s]!==void 0)return["bytes32",m==null?"0x0000000000000000000000000000000000000000000000000000000000000000":e.keccak(this.encodeData(s,m,c,p))];if(m===void 0)throw new Error(`missing value for field ${l} of type ${s}`);if(s==="bytes")return["bytes32",e.keccak(m)];if(s==="string")return typeof m=="string"&&(m=Buffer.from(m,"utf8")),["bytes32",e.keccak(m)];if(s.lastIndexOf("]")===s.length-1){const w=s.slice(0,s.lastIndexOf("[")),v=m.map(u=>a(l,w,u));return["bytes32",e.keccak(r.rawEncode(v.map(([u])=>u),v.map(([,u])=>u)))]}return[s,m]};for(const l of c[i]){const[s,m]=a(l.name,l.type,o[l.name]);d.push(s),g.push(m)}}else for(const a of c[i]){let l=o[a.name];if(l!==void 0)if(a.type==="bytes")d.push("bytes32"),l=e.keccak(l),g.push(l);else if(a.type==="string")d.push("bytes32"),typeof l=="string"&&(l=Buffer.from(l,"utf8")),l=e.keccak(l),g.push(l);else if(c[a.type]!==void 0)d.push("bytes32"),l=e.keccak(this.encodeData(a.type,l,c,p)),g.push(l);else{if(a.type.lastIndexOf("]")===a.type.length-1)throw new Error("Arrays currently unimplemented in encodeData");d.push(a.type),g.push(l)}}return r.rawEncode(d,g)},encodeType(i,o){let c="",p=this.findTypeDependencies(i,o).filter(d=>d!==i);p=[i].concat(p.sort());for(const d of p){if(!o[d])throw new Error("No type definition specified: "+d);c+=d+"("+o[d].map(({name:a,type:l})=>l+" "+a).join(",")+")"}return c},findTypeDependencies(i,o,c=[]){if(i=i.match(/^\w*/)[0],c.includes(i)||o[i]===void 0)return c;c.push(i);for(const p of o[i])for(const d of this.findTypeDependencies(p.type,o,c))!c.includes(d)&&c.push(d);return c},hashStruct(i,o,c,p=!0){return e.keccak(this.encodeData(i,o,c,p))},hashType(i,o){return e.keccak(this.encodeType(i,o))},sanitizeData(i){const o={};for(const c in n.properties)i[c]&&(o[c]=i[c]);return o.types&&(o.types=Object.assign({EIP712Domain:[]},o.types)),o},hash(i,o=!0){const c=this.sanitizeData(i),p=[Buffer.from("1901","hex")];return p.push(this.hashStruct("EIP712Domain",c.domain,c.types,o)),c.primaryType!=="EIP712Domain"&&p.push(this.hashStruct(c.primaryType,c.message,c.types,o)),e.keccak(Buffer.concat(p))}};mi={TYPED_MESSAGE_SCHEMA:n,TypedDataUtils:t,hashForSignTypedDataLegacy:function(i){return h(i.data)},hashForSignTypedData_v3:function(i){return t.hash(i.data,!1)},hashForSignTypedData_v4:function(i){return t.hash(i.data)}};function h(i){const o=new Error("Expect argument to be non-empty array");if(typeof i!="object"||!i.length)throw o;const c=i.map(function(g){return g.type==="bytes"?e.toBuffer(g.value):g.value}),p=i.map(function(g){return g.type}),d=i.map(function(g){if(!g.name)throw o;return g.type+" "+g.name});return r.soliditySHA3(["bytes32","bytes32"],[r.soliditySHA3(new Array(i.length).fill("string"),d),r.soliditySHA3(p,c)])}return mi}var Lt={},Ja;function gf(){if(Ja)return Lt;Ja=1,Object.defineProperty(Lt,"__esModule",{value:!0}),Lt.filterFromParam=Lt.FilterPolyfill=void 0;const e=bn(),r=nt(),n=5*60*1e3,t={jsonrpc:"2.0",id:0};let h=class{constructor(l){this.logFilters=new Map,this.blockFilters=new Set,this.pendingTransactionFilters=new Set,this.cursors=new Map,this.timeouts=new Map,this.nextFilterId=(0,e.IntNumber)(1),this.REQUEST_THROTTLE_INTERVAL=1e3,this.lastFetchTimestamp=new Date(0),this.resolvers=[],this.provider=l}async newFilter(l){const s=i(l),m=this.makeFilterId(),w=await this.setInitialCursorPosition(m,s.fromBlock);return console.info(`Installing new log filter(${m}):`,s,"initial cursor position:",w),this.logFilters.set(m,s),this.setFilterTimeout(m),(0,r.hexStringFromIntNumber)(m)}async newBlockFilter(){const l=this.makeFilterId(),s=await this.setInitialCursorPosition(l,"latest");return console.info(`Installing new block filter (${l}) with initial cursor position:`,s),this.blockFilters.add(l),this.setFilterTimeout(l),(0,r.hexStringFromIntNumber)(l)}async newPendingTransactionFilter(){const l=this.makeFilterId(),s=await this.setInitialCursorPosition(l,"latest");return console.info(`Installing new block filter (${l}) with initial cursor position:`,s),this.pendingTransactionFilters.add(l),this.setFilterTimeout(l),(0,r.hexStringFromIntNumber)(l)}uninstallFilter(l){const s=(0,r.intNumberFromHexString)(l);return console.info(`Uninstalling filter (${s})`),this.deleteFilter(s),!0}getFilterChanges(l){const s=(0,r.intNumberFromHexString)(l);return this.timeouts.has(s)&&this.setFilterTimeout(s),this.logFilters.has(s)?this.getLogFilterChanges(s):this.blockFilters.has(s)?this.getBlockFilterChanges(s):this.pendingTransactionFilters.has(s)?this.getPendingTransactionFilterChanges(s):Promise.resolve(d())}async getFilterLogs(l){const s=(0,r.intNumberFromHexString)(l),m=this.logFilters.get(s);return m?this.sendAsyncPromise(Object.assign(Object.assign({},t),{method:"eth_getLogs",params:[o(m)]})):d()}makeFilterId(){return(0,e.IntNumber)(++this.nextFilterId)}sendAsyncPromise(l){return new Promise((s,m)=>{this.provider.sendAsync(l,(w,v)=>{if(w)return m(w);if(Array.isArray(v)||v==null)return m(new Error(`unexpected response received: ${JSON.stringify(v)}`));s(v)})})}deleteFilter(l){console.info(`Deleting filter (${l})`),this.logFilters.delete(l),this.blockFilters.delete(l),this.pendingTransactionFilters.delete(l),this.cursors.delete(l),this.timeouts.delete(l)}async getLogFilterChanges(l){const s=this.logFilters.get(l),m=this.cursors.get(l);if(!m||!s)return d();const w=await this.getCurrentBlockHeight(),v=s.toBlock==="latest"?w:s.toBlock;if(m>w||m>Number(s.toBlock))return g();console.info(`Fetching logs from ${m} to ${v} for filter ${l}`);const u=await this.sendAsyncPromise(Object.assign(Object.assign({},t),{method:"eth_getLogs",params:[o(Object.assign(Object.assign({},s),{fromBlock:m,toBlock:v}))]}));if(Array.isArray(u.result)){const R=u.result.map(I=>(0,r.intNumberFromHexString)(I.blockNumber||"0x0")),S=Math.max(...R);if(S&&S>m){const I=(0,e.IntNumber)(S+1);console.info(`Moving cursor position for filter (${l}) from ${m} to ${I}`),this.cursors.set(l,I)}}return u}async getBlockFilterChanges(l){const s=this.cursors.get(l);if(!s)return d();const m=await this.getCurrentBlockHeight();if(s>m)return g();console.info(`Fetching blocks from ${s} to ${m} for filter (${l})`);const w=(await Promise.all((0,r.range)(s,m+1).map(u=>this.getBlockHashByNumber((0,e.IntNumber)(u))))).filter(u=>!!u),v=(0,e.IntNumber)(s+w.length);return console.info(`Moving cursor position for filter (${l}) from ${s} to ${v}`),this.cursors.set(l,v),Object.assign(Object.assign({},t),{result:w})}async getPendingTransactionFilterChanges(l){return Promise.resolve(g())}async setInitialCursorPosition(l,s){const m=await this.getCurrentBlockHeight(),w=typeof s=="number"&&s>m?s:m;return this.cursors.set(l,w),w}setFilterTimeout(l){const s=this.timeouts.get(l);s&&window.clearTimeout(s);const m=window.setTimeout(()=>{console.info(`Filter (${l}) timed out`),this.deleteFilter(l)},n);this.timeouts.set(l,m)}async getCurrentBlockHeight(){const l=new Date;if(l.getTime()-this.lastFetchTimestamp.getTime()>this.REQUEST_THROTTLE_INTERVAL){this.lastFetchTimestamp=l;const s=await this._getCurrentBlockHeight();this.currentBlockHeight=s,this.resolvers.forEach(m=>m(s)),this.resolvers=[]}return this.currentBlockHeight?this.currentBlockHeight:new Promise(s=>this.resolvers.push(s))}async _getCurrentBlockHeight(){const{result:l}=await this.sendAsyncPromise(Object.assign(Object.assign({},t),{method:"eth_blockNumber",params:[]}));return(0,r.intNumberFromHexString)((0,r.ensureHexString)(l))}async getBlockHashByNumber(l){const s=await this.sendAsyncPromise(Object.assign(Object.assign({},t),{method:"eth_getBlockByNumber",params:[(0,r.hexStringFromIntNumber)(l),!1]}));return s.result&&typeof s.result.hash=="string"?(0,r.ensureHexString)(s.result.hash):null}};Lt.FilterPolyfill=h;function i(a){return{fromBlock:c(a.fromBlock),toBlock:c(a.toBlock),addresses:a.address===void 0?null:Array.isArray(a.address)?a.address:[a.address],topics:a.topics||[]}}Lt.filterFromParam=i;function o(a){const l={fromBlock:p(a.fromBlock),toBlock:p(a.toBlock),topics:a.topics};return a.addresses!==null&&(l.address=a.addresses),l}function c(a){if(a===void 0||a==="latest"||a==="pending")return"latest";if(a==="earliest")return(0,e.IntNumber)(0);if((0,r.isHexString)(a))return(0,r.intNumberFromHexString)(a);throw new Error(`Invalid block option: ${String(a)}`)}function p(a){return a==="latest"?a:(0,r.hexStringFromIntNumber)(a)}function d(){return Object.assign(Object.assign({},t),{error:{code:-32e3,message:"filter not found"}})}function g(){return Object.assign(Object.assign({},t),{result:[]})}return Lt}var Lr={},Bt={},Nt={},yi,Ga;function Zs(){if(Ga)return yi;Ga=1,yi=e;function e(r){r=r||{};var n=r.max||Number.MAX_SAFE_INTEGER,t=typeof r.start<"u"?r.start:Math.floor(Math.random()*n);return function(){return t=t%n,t++}}return yi}var wi,Za;function mf(){if(Za)return wi;Za=1;const e=(r,n)=>function(){const t=n.promiseModule,h=new Array(arguments.length);for(let i=0;i{n.errorFirst?h.push(function(c,p){if(n.multiArgs){const d=new Array(arguments.length-1);for(let g=1;g{n=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},n);const t=i=>{const o=c=>typeof c=="string"?i===c:c.test(i);return n.include?n.include.some(o):!n.exclude.some(o)};let h;typeof r=="function"?h=function(){return n.excludeMain?r.apply(this,arguments):e(r,n).apply(this,arguments)}:h=Object.create(Object.getPrototypeOf(r));for(const i in r){const o=r[i];h[i]=typeof o=="function"&&t(i)?e(o,n):o}return h},wi}var Pt={},on={},Ka;function Ks(){if(Ka)return on;Ka=1,Object.defineProperty(on,"__esModule",{value:!0});const e=gn();function r(h,i,o){try{Reflect.apply(h,i,o)}catch(c){setTimeout(()=>{throw c})}}function n(h){const i=h.length,o=new Array(i);for(let c=0;c0&&([g]=o),g instanceof Error)throw g;const a=new Error(`Unhandled error.${g?` (${g.message})`:""}`);throw a.context=g,a}const d=p[i];if(d===void 0)return!1;if(typeof d=="function")r(d,this,o);else{const g=d.length,a=n(d);for(let l=0;lc+p,h=["sync","latest"];let i=class extends r.default{constructor(p){super(),this._blockResetDuration=p.blockResetDuration||20*n,this._usePastBlocks=p.usePastBlocks||!1,this._currentBlock=null,this._isRunning=!1,this._onNewListener=this._onNewListener.bind(this),this._onRemoveListener=this._onRemoveListener.bind(this),this._resetCurrentBlock=this._resetCurrentBlock.bind(this),this._setupInternalEvents()}async destroy(){this._cancelBlockResetTimeout(),await this._maybeEnd(),super.removeAllListeners()}isRunning(){return this._isRunning}getCurrentBlock(){return this._currentBlock}async getLatestBlock(){return this._currentBlock?this._currentBlock:await new Promise(d=>this.once("latest",d))}removeAllListeners(p){return p?super.removeAllListeners(p):super.removeAllListeners(),this._setupInternalEvents(),this._onRemoveListener(),this}_setupInternalEvents(){this.removeListener("newListener",this._onNewListener),this.removeListener("removeListener",this._onRemoveListener),this.on("newListener",this._onNewListener),this.on("removeListener",this._onRemoveListener)}_onNewListener(p){h.includes(p)&&this._maybeStart()}_onRemoveListener(){this._getBlockTrackerEventCount()>0||this._maybeEnd()}async _maybeStart(){this._isRunning||(this._isRunning=!0,this._cancelBlockResetTimeout(),await this._start(),this.emit("_started"))}async _maybeEnd(){this._isRunning&&(this._isRunning=!1,this._setupBlockResetTimeout(),await this._end(),this.emit("_ended"))}_getBlockTrackerEventCount(){return h.map(p=>this.listenerCount(p)).reduce(t)}_shouldUseNewBlock(p){const d=this._currentBlock;if(!d)return!0;const g=o(p),a=o(d);return this._usePastBlocks&&ga}_newPotentialLatest(p){this._shouldUseNewBlock(p)&&this._setCurrentBlock(p)}_setCurrentBlock(p){const d=this._currentBlock;this._currentBlock=p,this.emit("latest",p),this.emit("sync",{oldBlock:d,newBlock:p})}_setupBlockResetTimeout(){this._cancelBlockResetTimeout(),this._blockResetTimeout=setTimeout(this._resetCurrentBlock,this._blockResetDuration),this._blockResetTimeout.unref&&this._blockResetTimeout.unref()}_cancelBlockResetTimeout(){this._blockResetTimeout&&clearTimeout(this._blockResetTimeout)}_resetCurrentBlock(){this._currentBlock=null}};Pt.BaseBlockTracker=i;function o(c){return Number.parseInt(c,16)}return Pt}var vi={},Ot={},Ge={};class yl extends TypeError{constructor(r,n){let t;const{message:h,explanation:i,...o}=r,{path:c}=r,p=c.length===0?h:`At path: ${c.join(".")} -- ${h}`;super(i??p),i!=null&&(this.cause=p),Object.assign(this,o),this.name=this.constructor.name,this.failures=()=>t??(t=[r,...n()])}}function yf(e){return ze(e)&&typeof e[Symbol.iterator]=="function"}function ze(e){return typeof e=="object"&&e!=null}function Ya(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;const r=Object.getPrototypeOf(e);return r===null||r===Object.prototype}function qe(e){return typeof e=="symbol"?e.toString():typeof e=="string"?JSON.stringify(e):`${e}`}function wf(e){const{done:r,value:n}=e.next();return r?void 0:n}function vf(e,r,n,t){if(e===!0)return;e===!1?e={}:typeof e=="string"&&(e={message:e});const{path:h,branch:i}=r,{type:o}=n,{refinement:c,message:p=`Expected a value of type \`${o}\`${c?` with refinement \`${c}\``:""}, but received: \`${qe(t)}\``}=e;return{value:t,type:o,refinement:c,key:h[h.length-1],path:h,branch:i,...e,message:p}}function*Fs(e,r,n,t){yf(e)||(e=[e]);for(const h of e){const i=vf(h,r,n,t);i&&(yield i)}}function*Qs(e,r,n={}){const{path:t=[],branch:h=[e],coerce:i=!1,mask:o=!1}=n,c={path:t,branch:h};if(i&&(e=r.coercer(e,c),o&&r.type!=="type"&&ze(r.schema)&&ze(e)&&!Array.isArray(e)))for(const d in e)r.schema[d]===void 0&&delete e[d];let p="valid";for(const d of r.validator(e,c))d.explanation=n.message,p="not_valid",yield[d,void 0];for(let[d,g,a]of r.entries(e,c)){const l=Qs(g,a,{path:d===void 0?t:[...t,d],branch:d===void 0?h:[...h,g],coerce:i,mask:o,message:n.message});for(const s of l)s[0]?(p=s[0].refinement!=null?"not_refined":"not_valid",yield[s[0],void 0]):i&&(g=s[1],d===void 0?e=g:e instanceof Map?e.set(d,g):e instanceof Set?e.add(g):ze(e)&&(g!==void 0||d in e)&&(e[d]=g))}if(p!=="not_valid")for(const d of r.refiner(e,c))d.explanation=n.message,p="not_refined",yield[d,void 0];p==="valid"&&(yield[void 0,e])}class De{constructor(r){const{type:n,schema:t,validator:h,refiner:i,coercer:o=p=>p,entries:c=function*(){}}=r;this.type=n,this.schema=t,this.entries=c,this.coercer=o,h?this.validator=(p,d)=>{const g=h(p,d);return Fs(g,d,this,p)}:this.validator=()=>[],i?this.refiner=(p,d)=>{const g=i(p,d);return Fs(g,d,this,p)}:this.refiner=()=>[]}assert(r,n){return wl(r,this,n)}create(r,n){return vl(r,this,n)}is(r){return Ys(r,this)}mask(r,n){return bl(r,this,n)}validate(r,n={}){return ir(r,this,n)}}function wl(e,r,n){const t=ir(e,r,{message:n});if(t[0])throw t[0]}function vl(e,r,n){const t=ir(e,r,{coerce:!0,message:n});if(t[0])throw t[0];return t[1]}function bl(e,r,n){const t=ir(e,r,{coerce:!0,mask:!0,message:n});if(t[0])throw t[0];return t[1]}function Ys(e,r){return!ir(e,r)[0]}function ir(e,r,n={}){const t=Qs(e,r,n),h=wf(t);return h[0]?[new yl(h[0],function*(){for(const o of t)o[0]&&(yield o[0])}),void 0]:[void 0,h[1]]}function bf(...e){const r=e[0].type==="type",n=e.map(h=>h.schema),t=Object.assign({},...n);return r?zr(t):Vr(t)}function Ve(e,r){return new De({type:e,schema:null,validator:r})}function _f(e,r){return new De({...e,refiner:(n,t)=>n===void 0||e.refiner(n,t),validator(n,t){return n===void 0?!0:(r(n,t),e.validator(n,t))}})}function Ef(e){return new De({type:"dynamic",schema:null,*entries(r,n){yield*e(r,n).entries(r,n)},validator(r,n){return e(r,n).validator(r,n)},coercer(r,n){return e(r,n).coercer(r,n)},refiner(r,n){return e(r,n).refiner(r,n)}})}function Rf(e){let r;return new De({type:"lazy",schema:null,*entries(n,t){r??(r=e()),yield*r.entries(n,t)},validator(n,t){return r??(r=e()),r.validator(n,t)},coercer(n,t){return r??(r=e()),r.coercer(n,t)},refiner(n,t){return r??(r=e()),r.refiner(n,t)}})}function Sf(e,r){const{schema:n}=e,t={...n};for(const h of r)delete t[h];switch(e.type){case"type":return zr(t);default:return Vr(t)}}function Cf(e){const r=e instanceof De,n=r?{...e.schema}:{...e};for(const t in n)n[t]=_l(n[t]);return r&&e.type==="type"?zr(n):Vr(n)}function Mf(e,r){const{schema:n}=e,t={};for(const h of r)t[h]=n[h];switch(e.type){case"type":return zr(t);default:return Vr(t)}}function kf(e,r){return console.warn("superstruct@0.11 - The `struct` helper has been renamed to `define`."),Ve(e,r)}function If(){return Ve("any",()=>!0)}function xf(e){return new De({type:"array",schema:e,*entries(r){if(e&&Array.isArray(r))for(const[n,t]of r.entries())yield[n,t,e]},coercer(r){return Array.isArray(r)?r.slice():r},validator(r){return Array.isArray(r)||`Expected an array value, but received: ${qe(r)}`}})}function Af(){return Ve("bigint",e=>typeof e=="bigint")}function Tf(){return Ve("boolean",e=>typeof e=="boolean")}function Lf(){return Ve("date",e=>e instanceof Date&&!isNaN(e.getTime())||`Expected a valid \`Date\` object, but received: ${qe(e)}`)}function Bf(e){const r={},n=e.map(t=>qe(t)).join();for(const t of e)r[t]=t;return new De({type:"enums",schema:r,validator(t){return e.includes(t)||`Expected one of \`${n}\`, but received: ${qe(t)}`}})}function Nf(){return Ve("func",e=>typeof e=="function"||`Expected a function, but received: ${qe(e)}`)}function Pf(e){return Ve("instance",r=>r instanceof e||`Expected a \`${e.name}\` instance, but received: ${qe(r)}`)}function Of(){return Ve("integer",e=>typeof e=="number"&&!isNaN(e)&&Number.isInteger(e)||`Expected an integer, but received: ${qe(e)}`)}function Ff(e){return new De({type:"intersection",schema:null,*entries(r,n){for(const t of e)yield*t.entries(r,n)},*validator(r,n){for(const t of e)yield*t.validator(r,n)},*refiner(r,n){for(const t of e)yield*t.refiner(r,n)}})}function Df(e){const r=qe(e),n=typeof e;return new De({type:"literal",schema:n==="string"||n==="number"||n==="boolean"?e:null,validator(t){return t===e||`Expected the literal \`${r}\`, but received: ${qe(t)}`}})}function qf(e,r){return new De({type:"map",schema:null,*entries(n){if(e&&r&&n instanceof Map)for(const[t,h]of n.entries())yield[t,t,e],yield[t,h,r]},coercer(n){return n instanceof Map?new Map(n):n},validator(n){return n instanceof Map||`Expected a \`Map\` object, but received: ${qe(n)}`}})}function Xs(){return Ve("never",()=>!1)}function jf(e){return new De({...e,validator:(r,n)=>r===null||e.validator(r,n),refiner:(r,n)=>r===null||e.refiner(r,n)})}function $f(){return Ve("number",e=>typeof e=="number"&&!isNaN(e)||`Expected a number, but received: ${qe(e)}`)}function Vr(e){const r=e?Object.keys(e):[],n=Xs();return new De({type:"object",schema:e||null,*entries(t){if(e&&ze(t)){const h=new Set(Object.keys(t));for(const i of r)h.delete(i),yield[i,t[i],e[i]];for(const i of h)yield[i,t[i],n]}},validator(t){return ze(t)||`Expected an object, but received: ${qe(t)}`},coercer(t){return ze(t)?{...t}:t}})}function _l(e){return new De({...e,validator:(r,n)=>r===void 0||e.validator(r,n),refiner:(r,n)=>r===void 0||e.refiner(r,n)})}function Uf(e,r){return new De({type:"record",schema:null,*entries(n){if(ze(n))for(const t in n){const h=n[t];yield[t,t,e],yield[t,h,r]}},validator(n){return ze(n)||`Expected an object, but received: ${qe(n)}`}})}function Hf(){return Ve("regexp",e=>e instanceof RegExp)}function Wf(e){return new De({type:"set",schema:null,*entries(r){if(e&&r instanceof Set)for(const n of r)yield[n,n,e]},coercer(r){return r instanceof Set?new Set(r):r},validator(r){return r instanceof Set||`Expected a \`Set\` object, but received: ${qe(r)}`}})}function El(){return Ve("string",e=>typeof e=="string"||`Expected a string, but received: ${qe(e)}`)}function Vf(e){const r=Xs();return new De({type:"tuple",schema:null,*entries(n){if(Array.isArray(n)){const t=Math.max(e.length,n.length);for(let h=0;hn.type).join(" | ");return new De({type:"union",schema:null,coercer(n){for(const t of e){const[h,i]=t.validate(n,{coerce:!0});if(!h)return i}return n},validator(n,t){const h=[];for(const i of e){const[...o]=Qs(n,i,t),[c]=o;if(c[0])for(const[p]of o)p&&h.push(p);else return[]}return[`Expected the value to satisfy a union of \`${r}\`, but received: ${qe(n)}`,...h]}})}function Rl(){return Ve("unknown",()=>!0)}function eo(e,r,n){return new De({...e,coercer:(t,h)=>Ys(t,r)?e.coercer(n(t,h),h):e.coercer(t,h)})}function Jf(e,r,n={}){return eo(e,Rl(),t=>{const h=typeof r=="function"?r():r;if(t===void 0)return h;if(!n.strict&&Ya(t)&&Ya(h)){const i={...t};let o=!1;for(const c in h)i[c]===void 0&&(i[c]=h[c],o=!0);if(o)return i}return t})}function Gf(e){return eo(e,El(),r=>r.trim())}function Zf(e){return Ht(e,"empty",r=>{const n=Sl(r);return n===0||`Expected an empty ${e.type} but received one with a size of \`${n}\``})}function Sl(e){return e instanceof Map||e instanceof Set?e.size:e.length}function Kf(e,r,n={}){const{exclusive:t}=n;return Ht(e,"max",h=>t?ht?h>r:h>=r||`Expected a ${e.type} greater than ${t?"":"or equal to "}${r} but received \`${h}\``)}function Yf(e){return Ht(e,"nonempty",r=>Sl(r)>0||`Expected a nonempty ${e.type} but received an empty one`)}function Xf(e,r){return Ht(e,"pattern",n=>r.test(n)||`Expected a ${e.type} matching \`/${r.source}/\` but received "${n}"`)}function ed(e,r,n=r){const t=`Expected a ${e.type}`,h=r===n?`of \`${r}\``:`between \`${r}\` and \`${n}\``;return Ht(e,"size",i=>{if(typeof i=="number"||i instanceof Date)return r<=i&&i<=n||`${t} ${h} but received \`${i}\``;if(i instanceof Map||i instanceof Set){const{size:o}=i;return r<=o&&o<=n||`${t} with a size ${h} but received one with a size of \`${o}\``}else{const{length:o}=i;return r<=o&&o<=n||`${t} with a length ${h} but received one with a length of \`${o}\``}})}function Ht(e,r,n){return new De({...e,*refiner(t,h){yield*e.refiner(t,h);const i=n(t,h),o=Fs(i,h,e,t);for(const c of o)yield{...c,refinement:r}}})}const td=Object.freeze(Object.defineProperty({__proto__:null,Struct:De,StructError:yl,any:If,array:xf,assert:wl,assign:bf,bigint:Af,boolean:Tf,coerce:eo,create:vl,date:Lf,defaulted:Jf,define:Ve,deprecated:_f,dynamic:Ef,empty:Zf,enums:Bf,func:Nf,instance:Pf,integer:Of,intersection:Ff,is:Ys,lazy:Rf,literal:Df,map:qf,mask:bl,max:Kf,min:Qf,never:Xs,nonempty:Yf,nullable:jf,number:$f,object:Vr,omit:Sf,optional:_l,partial:Cf,pattern:Xf,pick:Mf,record:Uf,refine:Ht,regexp:Hf,set:Wf,size:ed,string:El,struct:kf,trimmed:Gf,tuple:Vf,type:zr,union:zf,unknown:Rl,validate:ir},Symbol.toStringTag,{value:"Module"})),Wt=Hr(td);var Xa;function ot(){if(Xa)return Ge;Xa=1,Object.defineProperty(Ge,"__esModule",{value:!0}),Ge.assertExhaustive=Ge.assertStruct=Ge.assert=Ge.AssertionError=void 0;const e=Wt;function r(d){return typeof d=="object"&&d!==null&&"message"in d}function n(d){var g,a;return typeof((a=(g=d==null?void 0:d.prototype)===null||g===void 0?void 0:g.constructor)===null||a===void 0?void 0:a.name)=="string"}function t(d){const g=r(d)?d.message:String(d);return g.endsWith(".")?g.slice(0,-1):g}function h(d,g){return n(d)?new d({message:g}):d({message:g})}class i extends Error{constructor(g){super(g.message),this.code="ERR_ASSERTION"}}Ge.AssertionError=i;function o(d,g="Assertion failed.",a=i){if(!d)throw g instanceof Error?g:h(a,g)}Ge.assert=o;function c(d,g,a="Assertion failed",l=i){try{(0,e.assert)(d,g)}catch(s){throw h(l,`${a}: ${t(s)}.`)}}Ge.assertStruct=c;function p(d){throw new Error("Invalid branch reached. Should be detected during compilation.")}return Ge.assertExhaustive=p,Ge}var Br={},ec;function Cl(){if(ec)return Br;ec=1,Object.defineProperty(Br,"__esModule",{value:!0}),Br.base64=void 0;const e=Wt,r=ot(),n=(t,h={})=>{var i,o;const c=(i=h.paddingRequired)!==null&&i!==void 0?i:!1,p=(o=h.characterSet)!==null&&o!==void 0?o:"base64";let d;p==="base64"?d=String.raw`[A-Za-z0-9+\/]`:((0,r.assert)(p==="base64url"),d=String.raw`[-_A-Za-z0-9]`);let g;return c?g=new RegExp(`^(?:${d}{4})*(?:${d}{3}=|${d}{2}==)?$`,"u"):g=new RegExp(`^(?:${d}{4})*(?:${d}{2,3}|${d}{3}=|${d}{2}==)?$`,"u"),(0,e.pattern)(t,g)};return Br.base64=n,Br}var ge={},bi={},tc;function En(){return tc||(tc=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.remove0x=e.add0x=e.assertIsStrictHexString=e.assertIsHexString=e.isStrictHexString=e.isHexString=e.StrictHexStruct=e.HexStruct=void 0;const r=Wt,n=ot();e.HexStruct=(0,r.pattern)((0,r.string)(),/^(?:0x)?[0-9a-f]+$/iu),e.StrictHexStruct=(0,r.pattern)((0,r.string)(),/^0x[0-9a-f]+$/iu);function t(d){return(0,r.is)(d,e.HexStruct)}e.isHexString=t;function h(d){return(0,r.is)(d,e.StrictHexStruct)}e.isStrictHexString=h;function i(d){(0,n.assert)(t(d),"Value must be a hexadecimal string.")}e.assertIsHexString=i;function o(d){(0,n.assert)(h(d),'Value must be a hexadecimal string, starting with "0x".')}e.assertIsStrictHexString=o;function c(d){return d.startsWith("0x")?d:d.startsWith("0X")?`0x${d.substring(2)}`:`0x${d}`}e.add0x=c;function p(d){return d.startsWith("0x")||d.startsWith("0X")?d.substring(2):d}e.remove0x=p}(bi)),bi}var rc;function Ml(){if(rc)return ge;rc=1,Object.defineProperty(ge,"__esModule",{value:!0}),ge.createDataView=ge.concatBytes=ge.valueToBytes=ge.stringToBytes=ge.numberToBytes=ge.signedBigIntToBytes=ge.bigIntToBytes=ge.hexToBytes=ge.bytesToString=ge.bytesToNumber=ge.bytesToSignedBigInt=ge.bytesToBigInt=ge.bytesToHex=ge.assertIsBytes=ge.isBytes=void 0;const e=ot(),r=En(),n=48,t=58,h=87;function i(){const D=[];return()=>{if(D.length===0)for(let H=0;H<256;H++)D.push(H.toString(16).padStart(2,"0"));return D}}const o=i();function c(D){return D instanceof Uint8Array}ge.isBytes=c;function p(D){(0,e.assert)(c(D),"Value must be a Uint8Array.")}ge.assertIsBytes=p;function d(D){if(p(D),D.length===0)return"0x";const H=o(),G=new Array(D.length);for(let X=0;X=BigInt(0),"Value must be a non-negative bigint.");const H=D.toString(16);return m(H)}ge.bigIntToBytes=w;function v(D,H){(0,e.assert)(H>0);const G=D>>BigInt(31);return!((~D&G)+(D&~G)>>BigInt(H*8+-1))}function u(D,H){(0,e.assert)(typeof D=="bigint","Value must be a bigint."),(0,e.assert)(typeof H=="number","Byte length must be a number."),(0,e.assert)(H>0,"Byte length must be greater than 0."),(0,e.assert)(v(D,H),"Byte length is too small to represent the given value.");let G=D;const X=new Uint8Array(H);for(let Y=0;Y>=BigInt(8);return X.reverse()}ge.signedBigIntToBytes=u;function R(D){(0,e.assert)(typeof D=="number","Value must be a number."),(0,e.assert)(D>=0,"Value must be a non-negative number."),(0,e.assert)(Number.isSafeInteger(D),"Value is not a safe integer. Use `bigIntToBytes` instead.");const H=D.toString(16);return m(H)}ge.numberToBytes=R;function S(D){return(0,e.assert)(typeof D=="string","Value must be a string."),new TextEncoder().encode(D)}ge.stringToBytes=S;function I(D){if(typeof D=="bigint")return w(D);if(typeof D=="number")return R(D);if(typeof D=="string")return D.startsWith("0x")?m(D):S(D);if(c(D))return D;throw new TypeError(`Unsupported value type: "${typeof D}".`)}ge.valueToBytes=I;function T(D){const H=new Array(D.length);let G=0;for(let Y=0;Yc.call(p,d,g,this))}get(c){return r(this,n,"f").get(c)}has(c){return r(this,n,"f").has(c)}keys(){return r(this,n,"f").keys()}values(){return r(this,n,"f").values()}toString(){return`FrozenMap(${this.size}) {${this.size>0?` ${[...this.entries()].map(([c,p])=>`${String(c)} => ${String(p)}`).join(", ")} `:""}}`}}Ke.FrozenMap=h;class i{constructor(c){t.set(this,void 0),e(this,t,new Set(c),"f"),Object.freeze(this)}get size(){return r(this,t,"f").size}[(t=new WeakMap,Symbol.iterator)](){return r(this,t,"f")[Symbol.iterator]()}entries(){return r(this,t,"f").entries()}forEach(c,p){return r(this,t,"f").forEach((d,g,a)=>c.call(p,d,g,this))}has(c){return r(this,t,"f").has(c)}keys(){return r(this,t,"f").keys()}values(){return r(this,t,"f").values()}toString(){return`FrozenSet(${this.size}) {${this.size>0?` ${[...this.values()].map(c=>String(c)).join(", ")} `:""}}`}}return Ke.FrozenSet=i,Object.freeze(h),Object.freeze(h.prototype),Object.freeze(i),Object.freeze(i.prototype),Ke}var _i={},oc;function sd(){return oc||(oc=1,Object.defineProperty(_i,"__esModule",{value:!0})),_i}var Ei={},ac;function od(){return ac||(ac=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getJsonRpcIdValidator=e.assertIsJsonRpcError=e.isJsonRpcError=e.assertIsJsonRpcFailure=e.isJsonRpcFailure=e.assertIsJsonRpcSuccess=e.isJsonRpcSuccess=e.assertIsJsonRpcResponse=e.isJsonRpcResponse=e.assertIsPendingJsonRpcResponse=e.isPendingJsonRpcResponse=e.JsonRpcResponseStruct=e.JsonRpcFailureStruct=e.JsonRpcSuccessStruct=e.PendingJsonRpcResponseStruct=e.assertIsJsonRpcRequest=e.isJsonRpcRequest=e.assertIsJsonRpcNotification=e.isJsonRpcNotification=e.JsonRpcNotificationStruct=e.JsonRpcRequestStruct=e.JsonRpcParamsStruct=e.JsonRpcErrorStruct=e.JsonRpcIdStruct=e.JsonRpcVersionStruct=e.jsonrpc2=e.getJsonSize=e.isValidJson=e.JsonStruct=e.UnsafeJsonStruct=void 0;const r=Wt,n=ot(),t=()=>(0,r.define)("finite number",T=>(0,r.is)(T,(0,r.number)())&&Number.isFinite(T));e.UnsafeJsonStruct=(0,r.union)([(0,r.literal)(null),(0,r.boolean)(),t(),(0,r.string)(),(0,r.array)((0,r.lazy)(()=>e.UnsafeJsonStruct)),(0,r.record)((0,r.string)(),(0,r.lazy)(()=>e.UnsafeJsonStruct))]),e.JsonStruct=(0,r.define)("Json",(T,q)=>{function D(H,G){const Y=[...G.validator(H,q)];return Y.length>0?Y:!0}try{const H=D(T,e.UnsafeJsonStruct);return H!==!0?H:D(JSON.parse(JSON.stringify(T)),e.UnsafeJsonStruct)}catch(H){return H instanceof RangeError?"Circular reference detected":!1}});function h(T){return(0,r.is)(T,e.JsonStruct)}e.isValidJson=h;function i(T){(0,n.assertStruct)(T,e.JsonStruct,"Invalid JSON value");const q=JSON.stringify(T);return new TextEncoder().encode(q).byteLength}e.getJsonSize=i,e.jsonrpc2="2.0",e.JsonRpcVersionStruct=(0,r.literal)(e.jsonrpc2),e.JsonRpcIdStruct=(0,r.nullable)((0,r.union)([(0,r.number)(),(0,r.string)()])),e.JsonRpcErrorStruct=(0,r.object)({code:(0,r.integer)(),message:(0,r.string)(),data:(0,r.optional)(e.JsonStruct),stack:(0,r.optional)((0,r.string)())}),e.JsonRpcParamsStruct=(0,r.optional)((0,r.union)([(0,r.record)((0,r.string)(),e.JsonStruct),(0,r.array)(e.JsonStruct)])),e.JsonRpcRequestStruct=(0,r.object)({id:e.JsonRpcIdStruct,jsonrpc:e.JsonRpcVersionStruct,method:(0,r.string)(),params:e.JsonRpcParamsStruct}),e.JsonRpcNotificationStruct=(0,r.omit)(e.JsonRpcRequestStruct,["id"]);function o(T){return(0,r.is)(T,e.JsonRpcNotificationStruct)}e.isJsonRpcNotification=o;function c(T,q){(0,n.assertStruct)(T,e.JsonRpcNotificationStruct,"Invalid JSON-RPC notification",q)}e.assertIsJsonRpcNotification=c;function p(T){return(0,r.is)(T,e.JsonRpcRequestStruct)}e.isJsonRpcRequest=p;function d(T,q){(0,n.assertStruct)(T,e.JsonRpcRequestStruct,"Invalid JSON-RPC request",q)}e.assertIsJsonRpcRequest=d,e.PendingJsonRpcResponseStruct=(0,r.object)({id:e.JsonRpcIdStruct,jsonrpc:e.JsonRpcVersionStruct,result:(0,r.optional)((0,r.unknown)()),error:(0,r.optional)(e.JsonRpcErrorStruct)}),e.JsonRpcSuccessStruct=(0,r.object)({id:e.JsonRpcIdStruct,jsonrpc:e.JsonRpcVersionStruct,result:e.JsonStruct}),e.JsonRpcFailureStruct=(0,r.object)({id:e.JsonRpcIdStruct,jsonrpc:e.JsonRpcVersionStruct,error:e.JsonRpcErrorStruct}),e.JsonRpcResponseStruct=(0,r.union)([e.JsonRpcSuccessStruct,e.JsonRpcFailureStruct]);function g(T){return(0,r.is)(T,e.PendingJsonRpcResponseStruct)}e.isPendingJsonRpcResponse=g;function a(T,q){(0,n.assertStruct)(T,e.PendingJsonRpcResponseStruct,"Invalid pending JSON-RPC response",q)}e.assertIsPendingJsonRpcResponse=a;function l(T){return(0,r.is)(T,e.JsonRpcResponseStruct)}e.isJsonRpcResponse=l;function s(T,q){(0,n.assertStruct)(T,e.JsonRpcResponseStruct,"Invalid JSON-RPC response",q)}e.assertIsJsonRpcResponse=s;function m(T){return(0,r.is)(T,e.JsonRpcSuccessStruct)}e.isJsonRpcSuccess=m;function w(T,q){(0,n.assertStruct)(T,e.JsonRpcSuccessStruct,"Invalid JSON-RPC success response",q)}e.assertIsJsonRpcSuccess=w;function v(T){return(0,r.is)(T,e.JsonRpcFailureStruct)}e.isJsonRpcFailure=v;function u(T,q){(0,n.assertStruct)(T,e.JsonRpcFailureStruct,"Invalid JSON-RPC failure response",q)}e.assertIsJsonRpcFailure=u;function R(T){return(0,r.is)(T,e.JsonRpcErrorStruct)}e.isJsonRpcError=R;function S(T,q){(0,n.assertStruct)(T,e.JsonRpcErrorStruct,"Invalid JSON-RPC error",q)}e.assertIsJsonRpcError=S;function I(T){const{permitEmptyString:q,permitFractions:D,permitNull:H}=Object.assign({permitEmptyString:!0,permitFractions:!1,permitNull:!0},T);return X=>!!(typeof X=="number"&&(D||Number.isInteger(X))||typeof X=="string"&&(q||X.length>0)||H&&X===null)}e.getJsonRpcIdValidator=I}(Ei)),Ei}var Ri={},cc;function ad(){return cc||(cc=1,Object.defineProperty(Ri,"__esModule",{value:!0})),Ri}var rt={},an={exports:{}},Si,uc;function cd(){if(uc)return Si;uc=1;var e=1e3,r=e*60,n=r*60,t=n*24,h=t*7,i=t*365.25;Si=function(g,a){a=a||{};var l=typeof g;if(l==="string"&&g.length>0)return o(g);if(l==="number"&&isFinite(g))return a.long?p(g):c(g);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(g))};function o(g){if(g=String(g),!(g.length>100)){var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(g);if(a){var l=parseFloat(a[1]),s=(a[2]||"ms").toLowerCase();switch(s){case"years":case"year":case"yrs":case"yr":case"y":return l*i;case"weeks":case"week":case"w":return l*h;case"days":case"day":case"d":return l*t;case"hours":case"hour":case"hrs":case"hr":case"h":return l*n;case"minutes":case"minute":case"mins":case"min":case"m":return l*r;case"seconds":case"second":case"secs":case"sec":case"s":return l*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:return}}}}function c(g){var a=Math.abs(g);return a>=t?Math.round(g/t)+"d":a>=n?Math.round(g/n)+"h":a>=r?Math.round(g/r)+"m":a>=e?Math.round(g/e)+"s":g+"ms"}function p(g){var a=Math.abs(g);return a>=t?d(g,a,t,"day"):a>=n?d(g,a,n,"hour"):a>=r?d(g,a,r,"minute"):a>=e?d(g,a,e,"second"):g+" ms"}function d(g,a,l,s){var m=a>=l*1.5;return Math.round(g/l)+" "+s+(m?"s":"")}return Si}var Ci,lc;function ud(){if(lc)return Ci;lc=1;function e(r){t.debug=t,t.default=t,t.coerce=d,t.disable=c,t.enable=i,t.enabled=p,t.humanize=cd(),t.destroy=g,Object.keys(r).forEach(a=>{t[a]=r[a]}),t.names=[],t.skips=[],t.formatters={};function n(a){let l=0;for(let s=0;s{if(D==="%%")return"%";T++;const G=t.formatters[H];if(typeof G=="function"){const X=u[T];D=G.call(R,X),u.splice(T,1),T--}return D}),t.formatArgs.call(R,u),(R.log||t.log).apply(R,u)}return v.namespace=a,v.useColors=t.useColors(),v.color=t.selectColor(a),v.extend=h,v.destroy=t.destroy,Object.defineProperty(v,"enabled",{enumerable:!0,configurable:!1,get:()=>s!==null?s:(m!==t.namespaces&&(m=t.namespaces,w=t.enabled(a)),w),set:u=>{s=u}}),typeof t.init=="function"&&t.init(v),v}function h(a,l){const s=t(this.namespace+(typeof l>"u"?":":l)+a);return s.log=this.log,s}function i(a){t.save(a),t.namespaces=a,t.names=[],t.skips=[];const l=(typeof a=="string"?a:"").trim().replace(" ",",").split(",").filter(Boolean);for(const s of l)s[0]==="-"?t.skips.push(s.slice(1)):t.names.push(s)}function o(a,l){let s=0,m=0,w=-1,v=0;for(;s"-"+l)].join(",");return t.enable(""),a}function p(a){for(const l of t.skips)if(o(a,l))return!1;for(const l of t.names)if(o(a,l))return!0;return!1}function d(a){return a instanceof Error?a.stack||a.message:a}function g(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return t.enable(t.load()),t}return Ci=e,Ci}var hc;function ld(){return hc||(hc=1,function(e,r){var n={};r.formatArgs=h,r.save=i,r.load=o,r.useColors=t,r.storage=c(),r.destroy=(()=>{let d=!1;return()=>{d||(d=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),r.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function t(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let d;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(d=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(d[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function h(d){if(d[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+d[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const g="color: "+this.color;d.splice(1,0,g,"color: inherit");let a=0,l=0;d[0].replace(/%[a-zA-Z%]/g,s=>{s!=="%%"&&(a++,s==="%c"&&(l=a))}),d.splice(l,0,g)}r.log=console.debug||console.log||(()=>{});function i(d){try{d?r.storage.setItem("debug",d):r.storage.removeItem("debug")}catch{}}function o(){let d;try{d=r.storage.getItem("debug")}catch{}return!d&&typeof process<"u"&&"env"in process&&(d=n.DEBUG),d}function c(){try{return localStorage}catch{}}e.exports=ud()(r);const{formatters:p}=e.exports;p.j=function(d){try{return JSON.stringify(d)}catch(g){return"[UnexpectedJSONParseError]: "+g.message}}}(an,an.exports)),an.exports}var fc;function hd(){if(fc)return rt;fc=1;var e=rt&&rt.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(rt,"__esModule",{value:!0}),rt.createModuleLogger=rt.createProjectLogger=void 0;const n=(0,e(ld()).default)("metamask");function t(i){return n.extend(i)}rt.createProjectLogger=t;function h(i,o){return i.extend(o)}return rt.createModuleLogger=h,rt}var Mi={},dc;function fd(){return dc||(dc=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.calculateNumberSize=e.calculateStringSize=e.isASCII=e.isPlainObject=e.ESCAPE_CHARACTERS_REGEXP=e.JsonSize=e.hasProperty=e.isObject=e.isNullOrUndefined=e.isNonEmptyArray=void 0;function r(d){return Array.isArray(d)&&d.length>0}e.isNonEmptyArray=r;function n(d){return d==null}e.isNullOrUndefined=n;function t(d){return!!d&&typeof d=="object"&&!Array.isArray(d)}e.isObject=t;const h=(d,g)=>Object.hasOwnProperty.call(d,g);e.hasProperty=h,function(d){d[d.Null=4]="Null",d[d.Comma=1]="Comma",d[d.Wrapper=1]="Wrapper",d[d.True=4]="True",d[d.False=5]="False",d[d.Quote=1]="Quote",d[d.Colon=1]="Colon",d[d.Date=24]="Date"}(e.JsonSize||(e.JsonSize={})),e.ESCAPE_CHARACTERS_REGEXP=/"|\\|\n|\r|\t/gu;function i(d){if(typeof d!="object"||d===null)return!1;try{let g=d;for(;Object.getPrototypeOf(g)!==null;)g=Object.getPrototypeOf(g);return Object.getPrototypeOf(d)===g}catch{return!1}}e.isPlainObject=i;function o(d){return d.charCodeAt(0)<=127}e.isASCII=o;function c(d){var g;return d.split("").reduce((l,s)=>o(s)?l+1:l+2,0)+((g=d.match(e.ESCAPE_CHARACTERS_REGEXP))!==null&&g!==void 0?g:[]).length}e.calculateStringSize=c;function p(d){return d.toString().length}e.calculateNumberSize=p}(Mi)),Mi}var Qe={},pc;function dd(){if(pc)return Qe;pc=1,Object.defineProperty(Qe,"__esModule",{value:!0}),Qe.hexToBigInt=Qe.hexToNumber=Qe.bigIntToHex=Qe.numberToHex=void 0;const e=ot(),r=En(),n=o=>((0,e.assert)(typeof o=="number","Value must be a number."),(0,e.assert)(o>=0,"Value must be a non-negative number."),(0,e.assert)(Number.isSafeInteger(o),"Value is not a safe integer. Use `bigIntToHex` instead."),(0,r.add0x)(o.toString(16)));Qe.numberToHex=n;const t=o=>((0,e.assert)(typeof o=="bigint","Value must be a bigint."),(0,e.assert)(o>=0,"Value must be a non-negative bigint."),(0,r.add0x)(o.toString(16)));Qe.bigIntToHex=t;const h=o=>{(0,r.assertIsHexString)(o);const c=parseInt(o,16);return(0,e.assert)(Number.isSafeInteger(c),"Value is not a safe integer. Use `hexToBigInt` instead."),c};Qe.hexToNumber=h;const i=o=>((0,r.assertIsHexString)(o),BigInt((0,r.add0x)(o)));return Qe.hexToBigInt=i,Qe}var ki={},gc;function pd(){return gc||(gc=1,Object.defineProperty(ki,"__esModule",{value:!0})),ki}var Ii={},mc;function gd(){return mc||(mc=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.timeSince=e.inMilliseconds=e.Duration=void 0,function(i){i[i.Millisecond=1]="Millisecond",i[i.Second=1e3]="Second",i[i.Minute=6e4]="Minute",i[i.Hour=36e5]="Hour",i[i.Day=864e5]="Day",i[i.Week=6048e5]="Week",i[i.Year=31536e6]="Year"}(e.Duration||(e.Duration={}));const r=i=>Number.isInteger(i)&&i>=0,n=(i,o)=>{if(!r(i))throw new Error(`"${o}" must be a non-negative integer. Received: "${i}".`)};function t(i,o){return n(i,"count"),i*o}e.inMilliseconds=t;function h(i){return n(i,"timestamp"),Date.now()-i}e.timeSince=h}(Ii)),Ii}var xi={},yc;function md(){return yc||(yc=1,Object.defineProperty(xi,"__esModule",{value:!0})),xi}var Ai={},cn={exports:{}},Ti,wc;function Rn(){if(wc)return Ti;wc=1;const e="2.0.0",r=256,n=Number.MAX_SAFE_INTEGER||9007199254740991,t=16,h=r-6;return Ti={MAX_LENGTH:r,MAX_SAFE_COMPONENT_LENGTH:t,MAX_SAFE_BUILD_LENGTH:h,MAX_SAFE_INTEGER:n,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},Ti}var Li,vc;function Sn(){if(vc)return Li;vc=1;var e={};return Li=typeof process=="object"&&e&&e.NODE_DEBUG&&/\bsemver\b/i.test(e.NODE_DEBUG)?(...n)=>console.error("SEMVER",...n):()=>{},Li}var bc;function Jr(){return bc||(bc=1,function(e,r){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:t,MAX_LENGTH:h}=Rn(),i=Sn();r=e.exports={};const o=r.re=[],c=r.safeRe=[],p=r.src=[],d=r.safeSrc=[],g=r.t={};let a=0;const l="[a-zA-Z0-9-]",s=[["\\s",1],["\\d",h],[l,t]],m=v=>{for(const[u,R]of s)v=v.split(`${u}*`).join(`${u}{0,${R}}`).split(`${u}+`).join(`${u}{1,${R}}`);return v},w=(v,u,R)=>{const S=m(u),I=a++;i(v,I,u),g[v]=I,p[I]=u,d[I]=S,o[I]=new RegExp(u,R?"g":void 0),c[I]=new RegExp(S,R?"g":void 0)};w("NUMERICIDENTIFIER","0|[1-9]\\d*"),w("NUMERICIDENTIFIERLOOSE","\\d+"),w("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${l}*`),w("MAINVERSION",`(${p[g.NUMERICIDENTIFIER]})\\.(${p[g.NUMERICIDENTIFIER]})\\.(${p[g.NUMERICIDENTIFIER]})`),w("MAINVERSIONLOOSE",`(${p[g.NUMERICIDENTIFIERLOOSE]})\\.(${p[g.NUMERICIDENTIFIERLOOSE]})\\.(${p[g.NUMERICIDENTIFIERLOOSE]})`),w("PRERELEASEIDENTIFIER",`(?:${p[g.NUMERICIDENTIFIER]}|${p[g.NONNUMERICIDENTIFIER]})`),w("PRERELEASEIDENTIFIERLOOSE",`(?:${p[g.NUMERICIDENTIFIERLOOSE]}|${p[g.NONNUMERICIDENTIFIER]})`),w("PRERELEASE",`(?:-(${p[g.PRERELEASEIDENTIFIER]}(?:\\.${p[g.PRERELEASEIDENTIFIER]})*))`),w("PRERELEASELOOSE",`(?:-?(${p[g.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${p[g.PRERELEASEIDENTIFIERLOOSE]})*))`),w("BUILDIDENTIFIER",`${l}+`),w("BUILD",`(?:\\+(${p[g.BUILDIDENTIFIER]}(?:\\.${p[g.BUILDIDENTIFIER]})*))`),w("FULLPLAIN",`v?${p[g.MAINVERSION]}${p[g.PRERELEASE]}?${p[g.BUILD]}?`),w("FULL",`^${p[g.FULLPLAIN]}$`),w("LOOSEPLAIN",`[v=\\s]*${p[g.MAINVERSIONLOOSE]}${p[g.PRERELEASELOOSE]}?${p[g.BUILD]}?`),w("LOOSE",`^${p[g.LOOSEPLAIN]}$`),w("GTLT","((?:<|>)?=?)"),w("XRANGEIDENTIFIERLOOSE",`${p[g.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),w("XRANGEIDENTIFIER",`${p[g.NUMERICIDENTIFIER]}|x|X|\\*`),w("XRANGEPLAIN",`[v=\\s]*(${p[g.XRANGEIDENTIFIER]})(?:\\.(${p[g.XRANGEIDENTIFIER]})(?:\\.(${p[g.XRANGEIDENTIFIER]})(?:${p[g.PRERELEASE]})?${p[g.BUILD]}?)?)?`),w("XRANGEPLAINLOOSE",`[v=\\s]*(${p[g.XRANGEIDENTIFIERLOOSE]})(?:\\.(${p[g.XRANGEIDENTIFIERLOOSE]})(?:\\.(${p[g.XRANGEIDENTIFIERLOOSE]})(?:${p[g.PRERELEASELOOSE]})?${p[g.BUILD]}?)?)?`),w("XRANGE",`^${p[g.GTLT]}\\s*${p[g.XRANGEPLAIN]}$`),w("XRANGELOOSE",`^${p[g.GTLT]}\\s*${p[g.XRANGEPLAINLOOSE]}$`),w("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),w("COERCE",`${p[g.COERCEPLAIN]}(?:$|[^\\d])`),w("COERCEFULL",p[g.COERCEPLAIN]+`(?:${p[g.PRERELEASE]})?(?:${p[g.BUILD]})?(?:$|[^\\d])`),w("COERCERTL",p[g.COERCE],!0),w("COERCERTLFULL",p[g.COERCEFULL],!0),w("LONETILDE","(?:~>?)"),w("TILDETRIM",`(\\s*)${p[g.LONETILDE]}\\s+`,!0),r.tildeTrimReplace="$1~",w("TILDE",`^${p[g.LONETILDE]}${p[g.XRANGEPLAIN]}$`),w("TILDELOOSE",`^${p[g.LONETILDE]}${p[g.XRANGEPLAINLOOSE]}$`),w("LONECARET","(?:\\^)"),w("CARETTRIM",`(\\s*)${p[g.LONECARET]}\\s+`,!0),r.caretTrimReplace="$1^",w("CARET",`^${p[g.LONECARET]}${p[g.XRANGEPLAIN]}$`),w("CARETLOOSE",`^${p[g.LONECARET]}${p[g.XRANGEPLAINLOOSE]}$`),w("COMPARATORLOOSE",`^${p[g.GTLT]}\\s*(${p[g.LOOSEPLAIN]})$|^$`),w("COMPARATOR",`^${p[g.GTLT]}\\s*(${p[g.FULLPLAIN]})$|^$`),w("COMPARATORTRIM",`(\\s*)${p[g.GTLT]}\\s*(${p[g.LOOSEPLAIN]}|${p[g.XRANGEPLAIN]})`,!0),r.comparatorTrimReplace="$1$2$3",w("HYPHENRANGE",`^\\s*(${p[g.XRANGEPLAIN]})\\s+-\\s+(${p[g.XRANGEPLAIN]})\\s*$`),w("HYPHENRANGELOOSE",`^\\s*(${p[g.XRANGEPLAINLOOSE]})\\s+-\\s+(${p[g.XRANGEPLAINLOOSE]})\\s*$`),w("STAR","(<|>)?=?\\s*\\*"),w("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),w("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(cn,cn.exports)),cn.exports}var Bi,_c;function to(){if(_c)return Bi;_c=1;const e=Object.freeze({loose:!0}),r=Object.freeze({});return Bi=t=>t?typeof t!="object"?e:t:r,Bi}var Ni,Ec;function kl(){if(Ec)return Ni;Ec=1;const e=/^[0-9]+$/,r=(t,h)=>{const i=e.test(t),o=e.test(h);return i&&o&&(t=+t,h=+h),t===h?0:i&&!o?-1:o&&!i?1:tr(h,t)},Ni}var Pi,Rc;function Ue(){if(Rc)return Pi;Rc=1;const e=Sn(),{MAX_LENGTH:r,MAX_SAFE_INTEGER:n}=Rn(),{safeRe:t,safeSrc:h,t:i}=Jr(),o=to(),{compareIdentifiers:c}=kl();class p{constructor(g,a){if(a=o(a),g instanceof p){if(g.loose===!!a.loose&&g.includePrerelease===!!a.includePrerelease)return g;g=g.version}else if(typeof g!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof g}".`);if(g.length>r)throw new TypeError(`version is longer than ${r} characters`);e("SemVer",g,a),this.options=a,this.loose=!!a.loose,this.includePrerelease=!!a.includePrerelease;const l=g.trim().match(a.loose?t[i.LOOSE]:t[i.FULL]);if(!l)throw new TypeError(`Invalid Version: ${g}`);if(this.raw=g,this.major=+l[1],this.minor=+l[2],this.patch=+l[3],this.major>n||this.major<0)throw new TypeError("Invalid major version");if(this.minor>n||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>n||this.patch<0)throw new TypeError("Invalid patch version");l[4]?this.prerelease=l[4].split(".").map(s=>{if(/^[0-9]+$/.test(s)){const m=+s;if(m>=0&&m=0;)typeof this.prerelease[m]=="number"&&(this.prerelease[m]++,m=-2);if(m===-1){if(a===this.prerelease.join(".")&&l===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(s)}}if(a){let m=[a,s];l===!1&&(m=[a]),c(this.prerelease[0],a)===0?isNaN(this.prerelease[1])&&(this.prerelease=m):this.prerelease=m}break}default:throw new Error(`invalid increment argument: ${g}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return Pi=p,Pi}var Oi,Sc;function sr(){if(Sc)return Oi;Sc=1;const e=Ue();return Oi=(n,t,h=!1)=>{if(n instanceof e)return n;try{return new e(n,t)}catch(i){if(!h)return null;throw i}},Oi}var Fi,Cc;function yd(){if(Cc)return Fi;Cc=1;const e=sr();return Fi=(n,t)=>{const h=e(n,t);return h?h.version:null},Fi}var Di,Mc;function wd(){if(Mc)return Di;Mc=1;const e=sr();return Di=(n,t)=>{const h=e(n.trim().replace(/^[=v]+/,""),t);return h?h.version:null},Di}var qi,kc;function vd(){if(kc)return qi;kc=1;const e=Ue();return qi=(n,t,h,i,o)=>{typeof h=="string"&&(o=i,i=h,h=void 0);try{return new e(n instanceof e?n.version:n,h).inc(t,i,o).version}catch{return null}},qi}var ji,Ic;function bd(){if(Ic)return ji;Ic=1;const e=sr();return ji=(n,t)=>{const h=e(n,null,!0),i=e(t,null,!0),o=h.compare(i);if(o===0)return null;const c=o>0,p=c?h:i,d=c?i:h,g=!!p.prerelease.length;if(!!d.prerelease.length&&!g){if(!d.patch&&!d.minor)return"major";if(d.compareMain(p)===0)return d.minor&&!d.patch?"minor":"patch"}const l=g?"pre":"";return h.major!==i.major?l+"major":h.minor!==i.minor?l+"minor":h.patch!==i.patch?l+"patch":"prerelease"},ji}var $i,xc;function _d(){if(xc)return $i;xc=1;const e=Ue();return $i=(n,t)=>new e(n,t).major,$i}var Ui,Ac;function Ed(){if(Ac)return Ui;Ac=1;const e=Ue();return Ui=(n,t)=>new e(n,t).minor,Ui}var Hi,Tc;function Rd(){if(Tc)return Hi;Tc=1;const e=Ue();return Hi=(n,t)=>new e(n,t).patch,Hi}var Wi,Lc;function Sd(){if(Lc)return Wi;Lc=1;const e=sr();return Wi=(n,t)=>{const h=e(n,t);return h&&h.prerelease.length?h.prerelease:null},Wi}var Vi,Bc;function Xe(){if(Bc)return Vi;Bc=1;const e=Ue();return Vi=(n,t,h)=>new e(n,h).compare(new e(t,h)),Vi}var zi,Nc;function Cd(){if(Nc)return zi;Nc=1;const e=Xe();return zi=(n,t,h)=>e(t,n,h),zi}var Ji,Pc;function Md(){if(Pc)return Ji;Pc=1;const e=Xe();return Ji=(n,t)=>e(n,t,!0),Ji}var Gi,Oc;function ro(){if(Oc)return Gi;Oc=1;const e=Ue();return Gi=(n,t,h)=>{const i=new e(n,h),o=new e(t,h);return i.compare(o)||i.compareBuild(o)},Gi}var Zi,Fc;function kd(){if(Fc)return Zi;Fc=1;const e=ro();return Zi=(n,t)=>n.sort((h,i)=>e(h,i,t)),Zi}var Ki,Dc;function Id(){if(Dc)return Ki;Dc=1;const e=ro();return Ki=(n,t)=>n.sort((h,i)=>e(i,h,t)),Ki}var Qi,qc;function Cn(){if(qc)return Qi;qc=1;const e=Xe();return Qi=(n,t,h)=>e(n,t,h)>0,Qi}var Yi,jc;function no(){if(jc)return Yi;jc=1;const e=Xe();return Yi=(n,t,h)=>e(n,t,h)<0,Yi}var Xi,$c;function Il(){if($c)return Xi;$c=1;const e=Xe();return Xi=(n,t,h)=>e(n,t,h)===0,Xi}var es,Uc;function xl(){if(Uc)return es;Uc=1;const e=Xe();return es=(n,t,h)=>e(n,t,h)!==0,es}var ts,Hc;function io(){if(Hc)return ts;Hc=1;const e=Xe();return ts=(n,t,h)=>e(n,t,h)>=0,ts}var rs,Wc;function so(){if(Wc)return rs;Wc=1;const e=Xe();return rs=(n,t,h)=>e(n,t,h)<=0,rs}var ns,Vc;function Al(){if(Vc)return ns;Vc=1;const e=Il(),r=xl(),n=Cn(),t=io(),h=no(),i=so();return ns=(c,p,d,g)=>{switch(p){case"===":return typeof c=="object"&&(c=c.version),typeof d=="object"&&(d=d.version),c===d;case"!==":return typeof c=="object"&&(c=c.version),typeof d=="object"&&(d=d.version),c!==d;case"":case"=":case"==":return e(c,d,g);case"!=":return r(c,d,g);case">":return n(c,d,g);case">=":return t(c,d,g);case"<":return h(c,d,g);case"<=":return i(c,d,g);default:throw new TypeError(`Invalid operator: ${p}`)}},ns}var is,zc;function xd(){if(zc)return is;zc=1;const e=Ue(),r=sr(),{safeRe:n,t}=Jr();return is=(i,o)=>{if(i instanceof e)return i;if(typeof i=="number"&&(i=String(i)),typeof i!="string")return null;o=o||{};let c=null;if(!o.rtl)c=i.match(o.includePrerelease?n[t.COERCEFULL]:n[t.COERCE]);else{const s=o.includePrerelease?n[t.COERCERTLFULL]:n[t.COERCERTL];let m;for(;(m=s.exec(i))&&(!c||c.index+c[0].length!==i.length);)(!c||m.index+m[0].length!==c.index+c[0].length)&&(c=m),s.lastIndex=m.index+m[1].length+m[2].length;s.lastIndex=-1}if(c===null)return null;const p=c[2],d=c[3]||"0",g=c[4]||"0",a=o.includePrerelease&&c[5]?`-${c[5]}`:"",l=o.includePrerelease&&c[6]?`+${c[6]}`:"";return r(`${p}.${d}.${g}${a}${l}`,o)},is}var ss,Jc;function Ad(){if(Jc)return ss;Jc=1;class e{constructor(){this.max=1e3,this.map=new Map}get(n){const t=this.map.get(n);if(t!==void 0)return this.map.delete(n),this.map.set(n,t),t}delete(n){return this.map.delete(n)}set(n,t){if(!this.delete(n)&&t!==void 0){if(this.map.size>=this.max){const i=this.map.keys().next().value;this.delete(i)}this.map.set(n,t)}return this}}return ss=e,ss}var os,Gc;function et(){if(Gc)return os;Gc=1;const e=/\s+/g;class r{constructor(E,C){if(C=h(C),E instanceof r)return E.loose===!!C.loose&&E.includePrerelease===!!C.includePrerelease?E:new r(E.raw,C);if(E instanceof i)return this.raw=E.value,this.set=[[E]],this.formatted=void 0,this;if(this.options=C,this.loose=!!C.loose,this.includePrerelease=!!C.includePrerelease,this.raw=E.trim().replace(e," "),this.set=this.raw.split("||").map(M=>this.parseRange(M.trim())).filter(M=>M.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const M=this.set[0];if(this.set=this.set.filter(x=>!w(x[0])),this.set.length===0)this.set=[M];else if(this.set.length>1){for(const x of this.set)if(x.length===1&&v(x[0])){this.set=[x];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let E=0;E0&&(this.formatted+="||");const C=this.set[E];for(let M=0;M0&&(this.formatted+=" "),this.formatted+=C[M].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(E){const M=((this.options.includePrerelease&&s)|(this.options.loose&&m))+":"+E,x=t.get(M);if(x)return x;const B=this.options.loose,j=B?p[d.HYPHENRANGELOOSE]:p[d.HYPHENRANGE];E=E.replace(j,re(this.options.includePrerelease)),o("hyphen replace",E),E=E.replace(p[d.COMPARATORTRIM],g),o("comparator trim",E),E=E.replace(p[d.TILDETRIM],a),o("tilde trim",E),E=E.replace(p[d.CARETTRIM],l),o("caret trim",E);let A=E.split(" ").map(K=>R(K,this.options)).join(" ").split(/\s+/).map(K=>Y(K,this.options));B&&(A=A.filter(K=>(o("loose invalid filter",K,this.options),!!K.match(p[d.COMPARATORLOOSE])))),o("range list",A);const b=new Map,N=A.map(K=>new i(K,this.options));for(const K of N){if(w(K))return[K];b.set(K.value,K)}b.size>1&&b.has("")&&b.delete("");const te=[...b.values()];return t.set(M,te),te}intersects(E,C){if(!(E instanceof r))throw new TypeError("a Range is required");return this.set.some(M=>u(M,C)&&E.set.some(x=>u(x,C)&&M.every(B=>x.every(j=>B.intersects(j,C)))))}test(E){if(!E)return!1;if(typeof E=="string")try{E=new c(E,this.options)}catch{return!1}for(let C=0;Cf.value==="<0.0.0-0",v=f=>f.value==="",u=(f,E)=>{let C=!0;const M=f.slice();let x=M.pop();for(;C&&M.length;)C=M.every(B=>x.intersects(B,E)),x=M.pop();return C},R=(f,E)=>(o("comp",f,E),f=q(f,E),o("caret",f),f=I(f,E),o("tildes",f),f=H(f,E),o("xrange",f),f=X(f,E),o("stars",f),f),S=f=>!f||f.toLowerCase()==="x"||f==="*",I=(f,E)=>f.trim().split(/\s+/).map(C=>T(C,E)).join(" "),T=(f,E)=>{const C=E.loose?p[d.TILDELOOSE]:p[d.TILDE];return f.replace(C,(M,x,B,j,A)=>{o("tilde",f,M,x,B,j,A);let b;return S(x)?b="":S(B)?b=`>=${x}.0.0 <${+x+1}.0.0-0`:S(j)?b=`>=${x}.${B}.0 <${x}.${+B+1}.0-0`:A?(o("replaceTilde pr",A),b=`>=${x}.${B}.${j}-${A} <${x}.${+B+1}.0-0`):b=`>=${x}.${B}.${j} <${x}.${+B+1}.0-0`,o("tilde return",b),b})},q=(f,E)=>f.trim().split(/\s+/).map(C=>D(C,E)).join(" "),D=(f,E)=>{o("caret",f,E);const C=E.loose?p[d.CARETLOOSE]:p[d.CARET],M=E.includePrerelease?"-0":"";return f.replace(C,(x,B,j,A,b)=>{o("caret",f,x,B,j,A,b);let N;return S(B)?N="":S(j)?N=`>=${B}.0.0${M} <${+B+1}.0.0-0`:S(A)?B==="0"?N=`>=${B}.${j}.0${M} <${B}.${+j+1}.0-0`:N=`>=${B}.${j}.0${M} <${+B+1}.0.0-0`:b?(o("replaceCaret pr",b),B==="0"?j==="0"?N=`>=${B}.${j}.${A}-${b} <${B}.${j}.${+A+1}-0`:N=`>=${B}.${j}.${A}-${b} <${B}.${+j+1}.0-0`:N=`>=${B}.${j}.${A}-${b} <${+B+1}.0.0-0`):(o("no pr"),B==="0"?j==="0"?N=`>=${B}.${j}.${A}${M} <${B}.${j}.${+A+1}-0`:N=`>=${B}.${j}.${A}${M} <${B}.${+j+1}.0-0`:N=`>=${B}.${j}.${A} <${+B+1}.0.0-0`),o("caret return",N),N})},H=(f,E)=>(o("replaceXRanges",f,E),f.split(/\s+/).map(C=>G(C,E)).join(" ")),G=(f,E)=>{f=f.trim();const C=E.loose?p[d.XRANGELOOSE]:p[d.XRANGE];return f.replace(C,(M,x,B,j,A,b)=>{o("xRange",f,M,x,B,j,A,b);const N=S(B),te=N||S(j),K=te||S(A),$=K;return x==="="&&$&&(x=""),b=E.includePrerelease?"-0":"",N?x===">"||x==="<"?M="<0.0.0-0":M="*":x&&$?(te&&(j=0),A=0,x===">"?(x=">=",te?(B=+B+1,j=0,A=0):(j=+j+1,A=0)):x==="<="&&(x="<",te?B=+B+1:j=+j+1),x==="<"&&(b="-0"),M=`${x+B}.${j}.${A}${b}`):te?M=`>=${B}.0.0${b} <${+B+1}.0.0-0`:K&&(M=`>=${B}.${j}.0${b} <${B}.${+j+1}.0-0`),o("xRange return",M),M})},X=(f,E)=>(o("replaceStars",f,E),f.trim().replace(p[d.STAR],"")),Y=(f,E)=>(o("replaceGTE0",f,E),f.trim().replace(p[E.includePrerelease?d.GTE0PRE:d.GTE0],"")),re=f=>(E,C,M,x,B,j,A,b,N,te,K,$)=>(S(M)?C="":S(x)?C=`>=${M}.0.0${f?"-0":""}`:S(B)?C=`>=${M}.${x}.0${f?"-0":""}`:j?C=`>=${C}`:C=`>=${C}${f?"-0":""}`,S(N)?b="":S(te)?b=`<${+N+1}.0.0-0`:S(K)?b=`<${N}.${+te+1}.0-0`:$?b=`<=${N}.${te}.${K}-${$}`:f?b=`<${N}.${te}.${+K+1}-0`:b=`<=${b}`,`${C} ${b}`.trim()),F=(f,E,C)=>{for(let M=0;M0){const x=f[M].semver;if(x.major===E.major&&x.minor===E.minor&&x.patch===E.patch)return!0}return!1}return!0};return os}var as,Zc;function Mn(){if(Zc)return as;Zc=1;const e=Symbol("SemVer ANY");class r{static get ANY(){return e}constructor(g,a){if(a=n(a),g instanceof r){if(g.loose===!!a.loose)return g;g=g.value}g=g.trim().split(/\s+/).join(" "),o("comparator",g,a),this.options=a,this.loose=!!a.loose,this.parse(g),this.semver===e?this.value="":this.value=this.operator+this.semver.version,o("comp",this)}parse(g){const a=this.options.loose?t[h.COMPARATORLOOSE]:t[h.COMPARATOR],l=g.match(a);if(!l)throw new TypeError(`Invalid comparator: ${g}`);this.operator=l[1]!==void 0?l[1]:"",this.operator==="="&&(this.operator=""),l[2]?this.semver=new c(l[2],this.options.loose):this.semver=e}toString(){return this.value}test(g){if(o("Comparator.test",g,this.options.loose),this.semver===e||g===e)return!0;if(typeof g=="string")try{g=new c(g,this.options)}catch{return!1}return i(g,this.operator,this.semver,this.options)}intersects(g,a){if(!(g instanceof r))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new p(g.value,a).test(this.value):g.operator===""?g.value===""?!0:new p(this.value,a).test(g.semver):(a=n(a),a.includePrerelease&&(this.value==="<0.0.0-0"||g.value==="<0.0.0-0")||!a.includePrerelease&&(this.value.startsWith("<0.0.0")||g.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&g.operator.startsWith(">")||this.operator.startsWith("<")&&g.operator.startsWith("<")||this.semver.version===g.semver.version&&this.operator.includes("=")&&g.operator.includes("=")||i(this.semver,"<",g.semver,a)&&this.operator.startsWith(">")&&g.operator.startsWith("<")||i(this.semver,">",g.semver,a)&&this.operator.startsWith("<")&&g.operator.startsWith(">")))}}as=r;const n=to(),{safeRe:t,t:h}=Jr(),i=Al(),o=Sn(),c=Ue(),p=et();return as}var cs,Kc;function kn(){if(Kc)return cs;Kc=1;const e=et();return cs=(n,t,h)=>{try{t=new e(t,h)}catch{return!1}return t.test(n)},cs}var us,Qc;function Td(){if(Qc)return us;Qc=1;const e=et();return us=(n,t)=>new e(n,t).set.map(h=>h.map(i=>i.value).join(" ").trim().split(" ")),us}var ls,Yc;function Ld(){if(Yc)return ls;Yc=1;const e=Ue(),r=et();return ls=(t,h,i)=>{let o=null,c=null,p=null;try{p=new r(h,i)}catch{return null}return t.forEach(d=>{p.test(d)&&(!o||c.compare(d)===-1)&&(o=d,c=new e(o,i))}),o},ls}var hs,Xc;function Bd(){if(Xc)return hs;Xc=1;const e=Ue(),r=et();return hs=(t,h,i)=>{let o=null,c=null,p=null;try{p=new r(h,i)}catch{return null}return t.forEach(d=>{p.test(d)&&(!o||c.compare(d)===1)&&(o=d,c=new e(o,i))}),o},hs}var fs,eu;function Nd(){if(eu)return fs;eu=1;const e=Ue(),r=et(),n=Cn();return fs=(h,i)=>{h=new r(h,i);let o=new e("0.0.0");if(h.test(o)||(o=new e("0.0.0-0"),h.test(o)))return o;o=null;for(let c=0;c{const a=new e(g.semver.version);switch(g.operator){case">":a.prerelease.length===0?a.patch++:a.prerelease.push(0),a.raw=a.format();case"":case">=":(!d||n(a,d))&&(d=a);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${g.operator}`)}}),d&&(!o||n(o,d))&&(o=d)}return o&&h.test(o)?o:null},fs}var ds,tu;function Pd(){if(tu)return ds;tu=1;const e=et();return ds=(n,t)=>{try{return new e(n,t).range||"*"}catch{return null}},ds}var ps,ru;function oo(){if(ru)return ps;ru=1;const e=Ue(),r=Mn(),{ANY:n}=r,t=et(),h=kn(),i=Cn(),o=no(),c=so(),p=io();return ps=(g,a,l,s)=>{g=new e(g,s),a=new t(a,s);let m,w,v,u,R;switch(l){case">":m=i,w=c,v=o,u=">",R=">=";break;case"<":m=o,w=p,v=i,u="<",R="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(h(g,a,s))return!1;for(let S=0;S{D.semver===n&&(D=new r(">=0.0.0")),T=T||D,q=q||D,m(D.semver,T.semver,s)?T=D:v(D.semver,q.semver,s)&&(q=D)}),T.operator===u||T.operator===R||(!q.operator||q.operator===u)&&w(g,q.semver))return!1;if(q.operator===R&&v(g,q.semver))return!1}return!0},ps}var gs,nu;function Od(){if(nu)return gs;nu=1;const e=oo();return gs=(n,t,h)=>e(n,t,">",h),gs}var ms,iu;function Fd(){if(iu)return ms;iu=1;const e=oo();return ms=(n,t,h)=>e(n,t,"<",h),ms}var ys,su;function Dd(){if(su)return ys;su=1;const e=et();return ys=(n,t,h)=>(n=new e(n,h),t=new e(t,h),n.intersects(t,h)),ys}var ws,ou;function qd(){if(ou)return ws;ou=1;const e=kn(),r=Xe();return ws=(n,t,h)=>{const i=[];let o=null,c=null;const p=n.sort((l,s)=>r(l,s,h));for(const l of p)e(l,t,h)?(c=l,o||(o=l)):(c&&i.push([o,c]),c=null,o=null);o&&i.push([o,null]);const d=[];for(const[l,s]of i)l===s?d.push(l):!s&&l===p[0]?d.push("*"):s?l===p[0]?d.push(`<=${s}`):d.push(`${l} - ${s}`):d.push(`>=${l}`);const g=d.join(" || "),a=typeof t.raw=="string"?t.raw:String(t);return g.length{if(a===l)return!0;a=new e(a,s),l=new e(l,s);let m=!1;e:for(const w of a.set){for(const v of l.set){const u=p(w,v,s);if(m=m||u!==null,u)continue e}if(m)return!1}return!0},o=[new r(">=0.0.0-0")],c=[new r(">=0.0.0")],p=(a,l,s)=>{if(a===l)return!0;if(a.length===1&&a[0].semver===n){if(l.length===1&&l[0].semver===n)return!0;s.includePrerelease?a=o:a=c}if(l.length===1&&l[0].semver===n){if(s.includePrerelease)return!0;l=c}const m=new Set;let w,v;for(const H of a)H.operator===">"||H.operator===">="?w=d(w,H,s):H.operator==="<"||H.operator==="<="?v=g(v,H,s):m.add(H.semver);if(m.size>1)return null;let u;if(w&&v){if(u=h(w.semver,v.semver,s),u>0)return null;if(u===0&&(w.operator!==">="||v.operator!=="<="))return null}for(const H of m){if(w&&!t(H,String(w),s)||v&&!t(H,String(v),s))return null;for(const G of l)if(!t(H,String(G),s))return!1;return!0}let R,S,I,T,q=v&&!s.includePrerelease&&v.semver.prerelease.length?v.semver:!1,D=w&&!s.includePrerelease&&w.semver.prerelease.length?w.semver:!1;q&&q.prerelease.length===1&&v.operator==="<"&&q.prerelease[0]===0&&(q=!1);for(const H of l){if(T=T||H.operator===">"||H.operator===">=",I=I||H.operator==="<"||H.operator==="<=",w){if(D&&H.semver.prerelease&&H.semver.prerelease.length&&H.semver.major===D.major&&H.semver.minor===D.minor&&H.semver.patch===D.patch&&(D=!1),H.operator===">"||H.operator===">="){if(R=d(w,H,s),R===H&&R!==w)return!1}else if(w.operator===">="&&!t(w.semver,String(H),s))return!1}if(v){if(q&&H.semver.prerelease&&H.semver.prerelease.length&&H.semver.major===q.major&&H.semver.minor===q.minor&&H.semver.patch===q.patch&&(q=!1),H.operator==="<"||H.operator==="<="){if(S=g(v,H,s),S===H&&S!==v)return!1}else if(v.operator==="<="&&!t(v.semver,String(H),s))return!1}if(!H.operator&&(v||w)&&u!==0)return!1}return!(w&&I&&!v&&u!==0||v&&T&&!w&&u!==0||D||q)},d=(a,l,s)=>{if(!a)return l;const m=h(a.semver,l.semver,s);return m>0?a:m<0||l.operator===">"&&a.operator===">="?l:a},g=(a,l,s)=>{if(!a)return l;const m=h(a.semver,l.semver,s);return m<0?a:m>0||l.operator==="<"&&a.operator==="<="?l:a};return vs=i,vs}var bs,cu;function $d(){if(cu)return bs;cu=1;const e=Jr(),r=Rn(),n=Ue(),t=kl(),h=sr(),i=yd(),o=wd(),c=vd(),p=bd(),d=_d(),g=Ed(),a=Rd(),l=Sd(),s=Xe(),m=Cd(),w=Md(),v=ro(),u=kd(),R=Id(),S=Cn(),I=no(),T=Il(),q=xl(),D=io(),H=so(),G=Al(),X=xd(),Y=Mn(),re=et(),F=kn(),f=Td(),E=Ld(),C=Bd(),M=Nd(),x=Pd(),B=oo(),j=Od(),A=Fd(),b=Dd(),N=qd(),te=jd();return bs={parse:h,valid:i,clean:o,inc:c,diff:p,major:d,minor:g,patch:a,prerelease:l,compare:s,rcompare:m,compareLoose:w,compareBuild:v,sort:u,rsort:R,gt:S,lt:I,eq:T,neq:q,gte:D,lte:H,cmp:G,coerce:X,Comparator:Y,Range:re,satisfies:F,toComparators:f,maxSatisfying:E,minSatisfying:C,minVersion:M,validRange:x,outside:B,gtr:j,ltr:A,intersects:b,simplifyRange:N,subset:te,SemVer:n,re:e.re,src:e.src,tokens:e.t,SEMVER_SPEC_VERSION:r.SEMVER_SPEC_VERSION,RELEASE_TYPES:r.RELEASE_TYPES,compareIdentifiers:t.compareIdentifiers,rcompareIdentifiers:t.rcompareIdentifiers},bs}var uu;function Ud(){return uu||(uu=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.satisfiesVersionRange=e.gtRange=e.gtVersion=e.assertIsSemVerRange=e.assertIsSemVerVersion=e.isValidSemVerRange=e.isValidSemVerVersion=e.VersionRangeStruct=e.VersionStruct=void 0;const r=$d(),n=Wt,t=ot();e.VersionStruct=(0,n.refine)((0,n.string)(),"Version",a=>(0,r.valid)(a)===null?`Expected SemVer version, got "${a}"`:!0),e.VersionRangeStruct=(0,n.refine)((0,n.string)(),"Version range",a=>(0,r.validRange)(a)===null?`Expected SemVer range, got "${a}"`:!0);function h(a){return(0,n.is)(a,e.VersionStruct)}e.isValidSemVerVersion=h;function i(a){return(0,n.is)(a,e.VersionRangeStruct)}e.isValidSemVerRange=i;function o(a){(0,t.assertStruct)(a,e.VersionStruct)}e.assertIsSemVerVersion=o;function c(a){(0,t.assertStruct)(a,e.VersionRangeStruct)}e.assertIsSemVerRange=c;function p(a,l){return(0,r.gt)(a,l)}e.gtVersion=p;function d(a,l){return(0,r.gtr)(a,l)}e.gtRange=d;function g(a,l){return(0,r.satisfies)(a,l,{includePrerelease:!0})}e.satisfiesVersionRange=g}(Ai)),Ai}var lu;function Hd(){return lu||(lu=1,function(e){var r=Ot&&Ot.__createBinding||(Object.create?function(t,h,i,o){o===void 0&&(o=i);var c=Object.getOwnPropertyDescriptor(h,i);(!c||("get"in c?!h.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return h[i]}}),Object.defineProperty(t,o,c)}:function(t,h,i,o){o===void 0&&(o=i),t[o]=h[i]}),n=Ot&&Ot.__exportStar||function(t,h){for(var i in t)i!=="default"&&!Object.prototype.hasOwnProperty.call(h,i)&&r(h,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),n(ot(),e),n(Cl(),e),n(Ml(),e),n(rd(),e),n(nd(),e),n(id(),e),n(sd(),e),n(En(),e),n(od(),e),n(ad(),e),n(hd(),e),n(fd(),e),n(dd(),e),n(pd(),e),n(gd(),e),n(md(),e),n(Ud(),e)}(Ot)),Ot}var hu;function Wd(){return hu||(hu=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createModuleLogger=e.projectLogger=void 0;const r=Hd();Object.defineProperty(e,"createModuleLogger",{enumerable:!0,get:function(){return r.createModuleLogger}}),e.projectLogger=(0,r.createProjectLogger)("eth-block-tracker")}(vi)),vi}var fu;function Vd(){if(fu)return Nt;fu=1;var e=Nt&&Nt.__importDefault||function(g){return g&&g.__esModule?g:{default:g}};Object.defineProperty(Nt,"__esModule",{value:!0}),Nt.PollingBlockTracker=void 0;const r=e(Zs()),n=e(mf()),t=ml(),h=Wd(),i=(0,h.createModuleLogger)(h.projectLogger,"polling-block-tracker"),o=(0,r.default)(),c=1e3;let p=class extends t.BaseBlockTracker{constructor(a={}){var l;if(!a.provider)throw new Error("PollingBlockTracker - no provider specified.");super(Object.assign(Object.assign({},a),{blockResetDuration:(l=a.blockResetDuration)!==null&&l!==void 0?l:a.pollingInterval})),this._provider=a.provider,this._pollingInterval=a.pollingInterval||20*c,this._retryTimeout=a.retryTimeout||this._pollingInterval/10,this._keepEventLoopActive=a.keepEventLoopActive===void 0?!0:a.keepEventLoopActive,this._setSkipCacheFlag=a.setSkipCacheFlag||!1}async checkForLatestBlock(){return await this._updateLatestBlock(),await this.getLatestBlock()}async _start(){this._synchronize()}async _end(){}async _synchronize(){for(var a;this._isRunning;)try{await this._updateLatestBlock();const l=d(this._pollingInterval,!this._keepEventLoopActive);this.emit("_waitingForNextIteration"),await l}catch(l){const s=new Error(`PollingBlockTracker - encountered an error while attempting to update latest block: +${(a=l.stack)!==null&&a!==void 0?a:l}`);try{this.emit("error",s)}catch{console.error(s)}const m=d(this._retryTimeout,!this._keepEventLoopActive);this.emit("_waitingForNextIteration"),await m}}async _updateLatestBlock(){const a=await this._fetchLatestBlock();this._newPotentialLatest(a)}async _fetchLatestBlock(){const a={jsonrpc:"2.0",id:o(),method:"eth_blockNumber",params:[]};this._setSkipCacheFlag&&(a.skipCache=!0),i("Making request",a);const l=await(0,n.default)(s=>this._provider.sendAsync(a,s))();if(i("Got response",l),l.error)throw new Error(`PollingBlockTracker - encountered error fetching block: +${l.error.message}`);return l.result}};Nt.PollingBlockTracker=p;function d(g,a){return new Promise(l=>{const s=setTimeout(l,g);s.unref&&a&&s.unref()})}return Nt}var Ft={},du;function zd(){if(du)return Ft;du=1;var e=Ft&&Ft.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Ft,"__esModule",{value:!0}),Ft.SubscribeBlockTracker=void 0;const r=e(Zs()),n=ml(),t=(0,r.default)();let h=class extends n.BaseBlockTracker{constructor(o={}){if(!o.provider)throw new Error("SubscribeBlockTracker - no provider specified.");super(o),this._provider=o.provider,this._subscriptionId=null}async checkForLatestBlock(){return await this.getLatestBlock()}async _start(){if(this._subscriptionId===void 0||this._subscriptionId===null)try{const o=await this._call("eth_blockNumber");this._subscriptionId=await this._call("eth_subscribe","newHeads"),this._provider.on("data",this._handleSubData.bind(this)),this._newPotentialLatest(o)}catch(o){this.emit("error",o)}}async _end(){if(this._subscriptionId!==null&&this._subscriptionId!==void 0)try{await this._call("eth_unsubscribe",this._subscriptionId),this._subscriptionId=null}catch(o){this.emit("error",o)}}_call(o,...c){return new Promise((p,d)=>{this._provider.sendAsync({id:t(),method:o,params:c,jsonrpc:"2.0"},(g,a)=>{g?d(g):p(a.result)})})}_handleSubData(o,c){var p;c.method==="eth_subscription"&&((p=c.params)===null||p===void 0?void 0:p.subscription)===this._subscriptionId&&this._newPotentialLatest(c.params.result.number)}};return Ft.SubscribeBlockTracker=h,Ft}var pu;function Jd(){return pu||(pu=1,function(e){var r=Bt&&Bt.__createBinding||(Object.create?function(t,h,i,o){o===void 0&&(o=i),Object.defineProperty(t,o,{enumerable:!0,get:function(){return h[i]}})}:function(t,h,i,o){o===void 0&&(o=i),t[o]=h[i]}),n=Bt&&Bt.__exportStar||function(t,h){for(var i in t)i!=="default"&&!Object.prototype.hasOwnProperty.call(h,i)&&r(h,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),n(Vd(),e),n(zd(),e)}(Bt)),Bt}var Dt={},Pr={},Or={},gu;function Tl(){if(gu)return Or;gu=1,Object.defineProperty(Or,"__esModule",{value:!0}),Or.getUniqueId=void 0;const e=4294967295;let r=Math.floor(Math.random()*e);function n(){return r=(r+1)%e,r}return Or.getUniqueId=n,Or}var mu;function Gd(){if(mu)return Pr;mu=1,Object.defineProperty(Pr,"__esModule",{value:!0}),Pr.createIdRemapMiddleware=void 0;const e=Tl();function r(){return(n,t,h,i)=>{const o=n.id,c=e.getUniqueId();n.id=c,t.id=c,h(p=>{n.id=o,t.id=o,p()})}}return Pr.createIdRemapMiddleware=r,Pr}var Fr={},yu;function Zd(){if(yu)return Fr;yu=1,Object.defineProperty(Fr,"__esModule",{value:!0}),Fr.createAsyncMiddleware=void 0;function e(r){return async(n,t,h,i)=>{let o;const c=new Promise(a=>{o=a});let p=null,d=!1;const g=async()=>{d=!0,h(a=>{p=a,o()}),await c};try{await r(n,t,g),d?(await c,p(null)):i(null)}catch(a){p?p(a):i(a)}}}return Fr.createAsyncMiddleware=e,Fr}var Dr={},wu;function Kd(){if(wu)return Dr;wu=1,Object.defineProperty(Dr,"__esModule",{value:!0}),Dr.createScaffoldMiddleware=void 0;function e(r){return(n,t,h,i)=>{const o=r[n.method];return o===void 0?h():typeof o=="function"?o(n,t,h,i):(t.result=o,i())}}return Dr.createScaffoldMiddleware=e,Dr}var qt={},un={},vu;function Qd(){if(vu)return un;vu=1,Object.defineProperty(un,"__esModule",{value:!0});const e=gn();function r(h,i,o){try{Reflect.apply(h,i,o)}catch(c){setTimeout(()=>{throw c})}}function n(h){const i=h.length,o=new Array(i);for(let c=0;c0&&([g]=o),g instanceof Error)throw g;const a=new Error(`Unhandled error.${g?` (${g.message})`:""}`);throw a.context=g,a}const d=p[i];if(d===void 0)return!1;if(typeof d=="function")r(d,this,o);else{const g=d.length,a=n(d);for(let l=0;l"u"&&(w=h()),c(l,"",0,[],void 0,0,w);var v;try{t.length===0?v=JSON.stringify(l,s,m):v=JSON.stringify(l,a(s),m)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;n.length!==0;){var u=n.pop();u.length===4?Object.defineProperty(u[0],u[1],u[3]):u[0][u[1]]=u[2]}}return v}function o(l,s,m,w){var v=Object.getOwnPropertyDescriptor(w,m);v.get!==void 0?v.configurable?(Object.defineProperty(w,m,{value:l}),n.push([w,m,s,v])):t.push([s,m,l]):(w[m]=l,n.push([w,m,s]))}function c(l,s,m,w,v,u,R){u+=1;var S;if(typeof l=="object"&&l!==null){for(S=0;SR.depthLimit){o(e,l,s,v);return}if(typeof R.edgesLimit<"u"&&m+1>R.edgesLimit){o(e,l,s,v);return}if(w.push(l),Array.isArray(l))for(S=0;Ss?1:0}function d(l,s,m,w){typeof w>"u"&&(w=h());var v=g(l,"",0,[],void 0,0,w)||l,u;try{t.length===0?u=JSON.stringify(v,s,m):u=JSON.stringify(v,a(s),m)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;n.length!==0;){var R=n.pop();R.length===4?Object.defineProperty(R[0],R[1],R[3]):R[0][R[1]]=R[2]}}return u}function g(l,s,m,w,v,u,R){u+=1;var S;if(typeof l=="object"&&l!==null){for(S=0;SR.depthLimit){o(e,l,s,v);return}if(typeof R.edgesLimit<"u"&&m+1>R.edgesLimit){o(e,l,s,v);return}if(w.push(l),Array.isArray(l))for(S=0;S0)for(var w=0;w=1e3&&i<=4999}function h(i,o){if(o!=="[Circular]")return o}return jt}var Rs={},$t={},Eu;function co(){return Eu||(Eu=1,Object.defineProperty($t,"__esModule",{value:!0}),$t.errorValues=$t.errorCodes=void 0,$t.errorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901}},$t.errorValues={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."}}),$t}var Ru;function Ll(){return Ru||(Ru=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.serializeError=e.isValidCode=e.getMessageFromCode=e.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;const r=co(),n=ao(),t=r.errorCodes.rpc.internal,h="Unspecified error message. This is a bug, please report it.",i={code:t,message:o(t)};e.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.";function o(l,s=h){if(Number.isInteger(l)){const m=l.toString();if(a(r.errorValues,m))return r.errorValues[m].message;if(d(l))return e.JSON_RPC_SERVER_ERROR_MESSAGE}return s}e.getMessageFromCode=o;function c(l){if(!Number.isInteger(l))return!1;const s=l.toString();return!!(r.errorValues[s]||d(l))}e.isValidCode=c;function p(l,{fallbackError:s=i,shouldIncludeStack:m=!1}={}){var w,v;if(!s||!Number.isInteger(s.code)||typeof s.message!="string")throw new Error("Must provide fallback error with integer number code and string message.");if(l instanceof n.EthereumRpcError)return l.serialize();const u={};if(l&&typeof l=="object"&&!Array.isArray(l)&&a(l,"code")&&c(l.code)){const S=l;u.code=S.code,S.message&&typeof S.message=="string"?(u.message=S.message,a(S,"data")&&(u.data=S.data)):(u.message=o(u.code),u.data={originalError:g(l)})}else{u.code=s.code;const S=(w=l)===null||w===void 0?void 0:w.message;u.message=S&&typeof S=="string"?S:s.message,u.data={originalError:g(l)}}const R=(v=l)===null||v===void 0?void 0:v.stack;return m&&l&&R&&typeof R=="string"&&(u.stack=R),u}e.serializeError=p;function d(l){return l>=-32099&&l<=-32e3}function g(l){return l&&typeof l=="object"&&!Array.isArray(l)?Object.assign({},l):l}function a(l,s){return Object.prototype.hasOwnProperty.call(l,s)}}(Rs)),Rs}var qr={},Su;function Xd(){if(Su)return qr;Su=1,Object.defineProperty(qr,"__esModule",{value:!0}),qr.ethErrors=void 0;const e=ao(),r=Ll(),n=co();qr.ethErrors={rpc:{parse:o=>t(n.errorCodes.rpc.parse,o),invalidRequest:o=>t(n.errorCodes.rpc.invalidRequest,o),invalidParams:o=>t(n.errorCodes.rpc.invalidParams,o),methodNotFound:o=>t(n.errorCodes.rpc.methodNotFound,o),internal:o=>t(n.errorCodes.rpc.internal,o),server:o=>{if(!o||typeof o!="object"||Array.isArray(o))throw new Error("Ethereum RPC Server errors must provide single object argument.");const{code:c}=o;if(!Number.isInteger(c)||c>-32005||c<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return t(c,o)},invalidInput:o=>t(n.errorCodes.rpc.invalidInput,o),resourceNotFound:o=>t(n.errorCodes.rpc.resourceNotFound,o),resourceUnavailable:o=>t(n.errorCodes.rpc.resourceUnavailable,o),transactionRejected:o=>t(n.errorCodes.rpc.transactionRejected,o),methodNotSupported:o=>t(n.errorCodes.rpc.methodNotSupported,o),limitExceeded:o=>t(n.errorCodes.rpc.limitExceeded,o)},provider:{userRejectedRequest:o=>h(n.errorCodes.provider.userRejectedRequest,o),unauthorized:o=>h(n.errorCodes.provider.unauthorized,o),unsupportedMethod:o=>h(n.errorCodes.provider.unsupportedMethod,o),disconnected:o=>h(n.errorCodes.provider.disconnected,o),chainDisconnected:o=>h(n.errorCodes.provider.chainDisconnected,o),custom:o=>{if(!o||typeof o!="object"||Array.isArray(o))throw new Error("Ethereum Provider custom errors must provide single object argument.");const{code:c,message:p,data:d}=o;if(!p||typeof p!="string")throw new Error('"message" must be a nonempty string');return new e.EthereumProviderError(c,p,d)}}};function t(o,c){const[p,d]=i(c);return new e.EthereumRpcError(o,p||r.getMessageFromCode(o),d)}function h(o,c){const[p,d]=i(c);return new e.EthereumProviderError(o,p||r.getMessageFromCode(o),d)}function i(o){if(o){if(typeof o=="string")return[o];if(typeof o=="object"&&!Array.isArray(o)){const{message:c,data:p}=o;if(c&&typeof c!="string")throw new Error("Must specify string message.");return[c||void 0,p]}}return[]}return qr}var Cu;function e0(){return Cu||(Cu=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getMessageFromCode=e.serializeError=e.EthereumProviderError=e.EthereumRpcError=e.ethErrors=e.errorCodes=void 0;const r=ao();Object.defineProperty(e,"EthereumRpcError",{enumerable:!0,get:function(){return r.EthereumRpcError}}),Object.defineProperty(e,"EthereumProviderError",{enumerable:!0,get:function(){return r.EthereumProviderError}});const n=Ll();Object.defineProperty(e,"serializeError",{enumerable:!0,get:function(){return n.serializeError}}),Object.defineProperty(e,"getMessageFromCode",{enumerable:!0,get:function(){return n.getMessageFromCode}});const t=Xd();Object.defineProperty(e,"ethErrors",{enumerable:!0,get:function(){return t.ethErrors}});const h=co();Object.defineProperty(e,"errorCodes",{enumerable:!0,get:function(){return h.errorCodes}})}(_s)),_s}var Mu;function Bl(){if(Mu)return qt;Mu=1;var e=qt&&qt.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(qt,"__esModule",{value:!0}),qt.JsonRpcEngine=void 0;const r=e(Qd()),n=e0();let t=class it extends r.default{constructor(){super(),this._middleware=[]}push(o){this._middleware.push(o)}handle(o,c){if(c&&typeof c!="function")throw new Error('"callback" must be a function if provided.');return Array.isArray(o)?c?this._handleBatch(o,c):this._handleBatch(o):c?this._handle(o,c):this._promiseHandle(o)}asMiddleware(){return async(o,c,p,d)=>{try{const[g,a,l]=await it._runAllMiddleware(o,c,this._middleware);return a?(await it._runReturnHandlers(l),d(g)):p(async s=>{try{await it._runReturnHandlers(l)}catch(m){return s(m)}return s()})}catch(g){return d(g)}}}async _handleBatch(o,c){try{const p=await Promise.all(o.map(this._promiseHandle.bind(this)));return c?c(null,p):p}catch(p){if(c)return c(p);throw p}}_promiseHandle(o){return new Promise(c=>{this._handle(o,(p,d)=>{c(d)})})}async _handle(o,c){if(!o||Array.isArray(o)||typeof o!="object"){const a=new n.EthereumRpcError(n.errorCodes.rpc.invalidRequest,`Requests must be plain objects. Received: ${typeof o}`,{request:o});return c(a,{id:void 0,jsonrpc:"2.0",error:a})}if(typeof o.method!="string"){const a=new n.EthereumRpcError(n.errorCodes.rpc.invalidRequest,`Must specify a string method. Received: ${typeof o.method}`,{request:o});return c(a,{id:o.id,jsonrpc:"2.0",error:a})}const p=Object.assign({},o),d={id:p.id,jsonrpc:p.jsonrpc};let g=null;try{await this._processRequest(p,d)}catch(a){g=a}return g&&(delete d.result,d.error||(d.error=n.serializeError(g))),c(g,d)}async _processRequest(o,c){const[p,d,g]=await it._runAllMiddleware(o,c,this._middleware);if(it._checkForCompletion(o,c,d),await it._runReturnHandlers(g),p)throw p}static async _runAllMiddleware(o,c,p){const d=[];let g=null,a=!1;for(const l of p)if([g,a]=await it._runMiddleware(o,c,l,d),a)break;return[g,a,d.reverse()]}static _runMiddleware(o,c,p,d){return new Promise(g=>{const a=s=>{const m=s||c.error;m&&(c.error=n.serializeError(m)),g([m,!0])},l=s=>{c.error?a(c.error):(s&&(typeof s!="function"&&a(new n.EthereumRpcError(n.errorCodes.rpc.internal,`JsonRpcEngine: "next" return handlers must be functions. Received "${typeof s}" for request: +${h(o)}`,{request:o})),d.push(s)),g([null,!1]))};try{p(o,c,l,a)}catch(s){a(s)}})}static async _runReturnHandlers(o){for(const c of o)await new Promise((p,d)=>{c(g=>g?d(g):p())})}static _checkForCompletion(o,c,p){if(!("result"in c)&&!("error"in c))throw new n.EthereumRpcError(n.errorCodes.rpc.internal,`JsonRpcEngine: Response has no error or result for request: +${h(o)}`,{request:o});if(!p)throw new n.EthereumRpcError(n.errorCodes.rpc.internal,`JsonRpcEngine: Nothing ended request: +${h(o)}`,{request:o})}};qt.JsonRpcEngine=t;function h(i){return JSON.stringify(i,null,2)}return qt}var jr={},ku;function t0(){if(ku)return jr;ku=1,Object.defineProperty(jr,"__esModule",{value:!0}),jr.mergeMiddleware=void 0;const e=Bl();function r(n){const t=new e.JsonRpcEngine;return n.forEach(h=>t.push(h)),t.asMiddleware()}return jr.mergeMiddleware=r,jr}var Iu;function Nl(){return Iu||(Iu=1,function(e){var r=Dt&&Dt.__createBinding||(Object.create?function(t,h,i,o){o===void 0&&(o=i),Object.defineProperty(t,o,{enumerable:!0,get:function(){return h[i]}})}:function(t,h,i,o){o===void 0&&(o=i),t[o]=h[i]}),n=Dt&&Dt.__exportStar||function(t,h){for(var i in t)i!=="default"&&!Object.prototype.hasOwnProperty.call(h,i)&&r(h,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),n(Gd(),e),n(Zd(),e),n(Kd(),e),n(Tl(),e),n(Bl(),e),n(t0(),e)}(Dt)),Dt}var Ss={},ln={},Ds=function(e,r){return Ds=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var h in t)Object.prototype.hasOwnProperty.call(t,h)&&(n[h]=t[h])},Ds(e,r)};function Pl(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");Ds(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}var dn=function(){return dn=Object.assign||function(r){for(var n,t=1,h=arguments.length;t=0;c--)(o=e[c])&&(i=(h<3?o(i):h>3?o(r,n,i):o(r,n))||i);return h>3&&i&&Object.defineProperty(r,n,i),i}function Dl(e,r){return function(n,t){r(n,t,e)}}function ql(e,r,n,t,h,i){function o(u){if(u!==void 0&&typeof u!="function")throw new TypeError("Function expected");return u}for(var c=t.kind,p=c==="getter"?"get":c==="setter"?"set":"value",d=!r&&e?t.static?e:e.prototype:null,g=r||(d?Object.getOwnPropertyDescriptor(d,t.name):{}),a,l=!1,s=n.length-1;s>=0;s--){var m={};for(var w in t)m[w]=w==="access"?{}:t[w];for(var w in t.access)m.access[w]=t.access[w];m.addInitializer=function(u){if(l)throw new TypeError("Cannot add initializers after decoration has completed");i.push(o(u||null))};var v=(0,n[s])(c==="accessor"?{get:g.get,set:g.set}:g[p],m);if(c==="accessor"){if(v===void 0)continue;if(v===null||typeof v!="object")throw new TypeError("Object expected");(a=o(v.get))&&(g.get=a),(a=o(v.set))&&(g.set=a),(a=o(v.init))&&h.unshift(a)}else(a=o(v))&&(c==="field"?h.unshift(a):g[p]=a)}d&&Object.defineProperty(d,t.name,g),l=!0}function jl(e,r,n){for(var t=arguments.length>2,h=0;h0&&i[i.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!i||d[1]>i[0]&&d[1]=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function uo(e,r){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var t=n.call(e),h,i=[],o;try{for(;(r===void 0||r-- >0)&&!(h=t.next()).done;)i.push(h.value)}catch(c){o={error:c}}finally{try{h&&!h.done&&(n=t.return)&&n.call(t)}finally{if(o)throw o.error}}return i}function Jl(){for(var e=[],r=0;r1||p(s,w)})},m&&(h[s]=m(h[s])))}function p(s,m){try{d(t[s](m))}catch(w){l(i[0][3],w)}}function d(s){s.value instanceof tr?Promise.resolve(s.value.v).then(g,a):l(i[0][2],s)}function g(s){p("next",s)}function a(s){p("throw",s)}function l(s,m){s(m),i.shift(),i.length&&p(i[0][0],i[0][1])}}function Ql(e){var r,n;return r={},t("next"),t("throw",function(h){throw h}),t("return"),r[Symbol.iterator]=function(){return this},r;function t(h,i){r[h]=e[h]?function(o){return(n=!n)?{value:tr(e[h](o)),done:!1}:i?i(o):o}:i}}function Yl(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=e[Symbol.asyncIterator],n;return r?r.call(e):(e=typeof pn=="function"?pn(e):e[Symbol.iterator](),n={},t("next"),t("throw"),t("return"),n[Symbol.asyncIterator]=function(){return this},n);function t(i){n[i]=e[i]&&function(o){return new Promise(function(c,p){o=e[i](o),h(c,p,o.done,o.value)})}}function h(i,o,c,p){Promise.resolve(p).then(function(d){i({value:d,done:c})},o)}}function Xl(e,r){return Object.defineProperty?Object.defineProperty(e,"raw",{value:r}):e.raw=r,e}var r0=Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r},qs=function(e){return qs=Object.getOwnPropertyNames||function(r){var n=[];for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(n[n.length]=t);return n},qs(e)};function eh(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=qs(e),t=0;t1)throw new Error("this method is unavailabel on semaphores with concurrency > 1; use the scoped release returned by acquire instead");if(this._currentReleaser){var t=this._currentReleaser;this._currentReleaser=void 0,t()}},n.prototype._dispatch=function(){var t=this,h=this._queue.shift();if(h){var i=!1;this._currentReleaser=function(){i||(i=!0,t._value++,t._dispatch())},h([this._value--,this._currentReleaser])}},n}();return hn.default=r,hn}var Au;function o0(){if(Au)return ln;Au=1,Object.defineProperty(ln,"__esModule",{value:!0});var e=lo,r=ch(),n=function(){function t(){this._semaphore=new r.default(1)}return t.prototype.acquire=function(){return e.__awaiter(this,void 0,void 0,function(){var h,i;return e.__generator(this,function(o){switch(o.label){case 0:return[4,this._semaphore.acquire()];case 1:return h=o.sent(),i=h[1],[2,i]}})})},t.prototype.runExclusive=function(h){return this._semaphore.runExclusive(function(){return h()})},t.prototype.isLocked=function(){return this._semaphore.isLocked()},t.prototype.release=function(){this._semaphore.release()},t}();return ln.default=n,ln}var $r={},Tu;function a0(){if(Tu)return $r;Tu=1,Object.defineProperty($r,"__esModule",{value:!0}),$r.withTimeout=void 0;var e=lo;function r(n,t,h){var i=this;return h===void 0&&(h=new Error("timeout")),{acquire:function(){return new Promise(function(o,c){return e.__awaiter(i,void 0,void 0,function(){var p,d,g;return e.__generator(this,function(a){switch(a.label){case 0:return p=!1,setTimeout(function(){p=!0,c(h)},t),[4,n.acquire()];case 1:return d=a.sent(),p?(g=Array.isArray(d)?d[1]:d,g()):o(d),[2]}})})})},runExclusive:function(o){return e.__awaiter(this,void 0,void 0,function(){var c,p;return e.__generator(this,function(d){switch(d.label){case 0:c=function(){},d.label=1;case 1:return d.trys.push([1,,7,8]),[4,this.acquire()];case 2:return p=d.sent(),Array.isArray(p)?(c=p[1],[4,o(p[0])]):[3,4];case 3:return[2,d.sent()];case 4:return c=p,[4,o()];case 5:return[2,d.sent()];case 6:return[3,8];case 7:return c(),[7];case 8:return[2]}})})},release:function(){n.release()},isLocked:function(){return n.isLocked()}}}return $r.withTimeout=r,$r}var Lu;function c0(){return Lu||(Lu=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.withTimeout=e.Semaphore=e.Mutex=void 0;var r=o0();Object.defineProperty(e,"Mutex",{enumerable:!0,get:function(){return r.default}});var n=ch();Object.defineProperty(e,"Semaphore",{enumerable:!0,get:function(){return n.default}});var t=a0();Object.defineProperty(e,"withTimeout",{enumerable:!0,get:function(){return t.withTimeout}})}(Ss)),Ss}var Cs,Bu;function u0(){if(Bu)return Cs;Bu=1,Cs=r;var e=Object.prototype.hasOwnProperty;function r(){for(var n={},t=0;tfunction(...o){const c=t.promiseModule;return new c((p,d)=>{t.multiArgs?o.push((...a)=>{t.errorFirst?a[0]?d(a):(a.shift(),p(a)):p(a)}):t.errorFirst?o.push((a,l)=>{a?d(a):p(l)}):o.push(p),Reflect.apply(n,this===h?i:this,o)})},r=new WeakMap;return ks=(n,t)=>{t={exclude:[/.+(?:Sync|Stream)$/],errorFirst:!0,promiseModule:Promise,...t};const h=typeof n;if(!(n!==null&&(h==="object"||h==="function")))throw new TypeError(`Expected \`input\` to be a \`Function\` or \`Object\`, got \`${n===null?"null":h}\``);const i=(p,d)=>{let g=r.get(p);if(g||(g={},r.set(p,g)),d in g)return g[d];const a=v=>typeof v=="string"||typeof d=="symbol"?d===v:v.test(d),l=Reflect.getOwnPropertyDescriptor(p,d),s=l===void 0||l.writable||l.configurable,w=(t.include?t.include.some(a):!t.exclude.some(a))&&s;return g[d]=w,w},o=new WeakMap,c=new Proxy(n,{apply(p,d,g){const a=o.get(p);if(a)return Reflect.apply(a,d,g);const l=t.excludeMain?p:e(p,t,c,p);return o.set(p,l),Reflect.apply(l,d,g)},get(p,d){const g=p[d];if(!i(p,d)||g===Function.prototype[d])return g;const a=o.get(g);if(a)return a;if(typeof g=="function"){const l=e(g,t,c,p);return o.set(g,l),l}return g}});return c},ks}var Is,Ou;function ho(){if(Ou)return Is;Ou=1;const e=Ks().default;class r extends e{constructor(){super(),this.updates=[]}async initialize(){}async update(){throw new Error("BaseFilter - no update method specified")}addResults(t){this.updates=this.updates.concat(t),t.forEach(h=>this.emit("update",h))}addInitialResults(t){}getChangesAndClear(){const t=this.updates;return this.updates=[],t}}return Is=r,Is}var xs,Fu;function f0(){if(Fu)return xs;Fu=1;const e=ho();class r extends e{constructor(){super(),this.allResults=[]}async update(){throw new Error("BaseFilterWithHistory - no update method specified")}addResults(t){this.allResults=this.allResults.concat(t),super.addResults(t)}addInitialResults(t){this.allResults=this.allResults.concat(t),super.addInitialResults(t)}getAllResults(){return this.allResults}}return xs=r,xs}var As,Du;function Gr(){if(Du)return As;Du=1,As={minBlockRef:e,maxBlockRef:r,sortBlockRefs:n,bnToHex:t,blockRefIsNumber:h,hexToInt:i,incrementHexInt:o,intToHex:c,unsafeRandomBytes:p};function e(...g){return n(g)[0]}function r(...g){const a=n(g);return a[a.length-1]}function n(g){return g.sort((a,l)=>a==="latest"||l==="earliest"?1:l==="latest"||a==="earliest"?-1:i(a)-i(l))}function t(g){return"0x"+g.toString(16)}function h(g){return g&&!["earliest","latest","pending"].includes(g)}function i(g){return g==null?g:Number.parseInt(g,16)}function o(g){if(g==null)return g;const a=i(g);return c(a+1)}function c(g){if(g==null)return g;let a=g.toString(16);return a.length%2&&(a="0"+a),"0x"+a}function p(g){let a="0x";for(let l=0;ll.toLowerCase()))}async initialize({currentBlock:g}){let a=this.params.fromBlock;["latest","pending"].includes(a)&&(a=g),a==="earliest"&&(a="0x0"),this.params.fromBlock=a;const l=o(this.params.toBlock,g),s=Object.assign({},this.params,{toBlock:l}),m=await this._fetchLogs(s);this.addInitialResults(m)}async update({oldBlock:g,newBlock:a}){const l=a;let s;g?s=i(g):s=a;const m=Object.assign({},this.params,{fromBlock:s,toBlock:l}),v=(await this._fetchLogs(m)).filter(u=>this.matchLog(u));this.addResults(v)}async _fetchLogs(g){return await r(l=>this.ethQuery.getLogs(g,l))()}matchLog(g){if(h(this.params.fromBlock)>=h(g.blockNumber)||c(this.params.toBlock)&&h(this.params.toBlock)<=h(g.blockNumber))return!1;const a=g.address&&g.address.toLowerCase();return this.params.address&&a&&!this.params.address.includes(a)?!1:this.params.topics.every((s,m)=>{let w=g.topics[m];if(!w)return!1;w=w.toLowerCase();let v=Array.isArray(s)?s:[s];return v.includes(null)?!0:(v=v.map(S=>S.toLowerCase()),v.includes(w))})}}return Ts=p,Ts}var Ls,ju;function fo(){if(ju)return Ls;ju=1,Ls=e;async function e({provider:i,fromBlock:o,toBlock:c}){o||(o=c);const p=r(o),g=r(c)-p+1,a=Array(g).fill().map((s,m)=>p+m).map(n);let l=await Promise.all(a.map(s=>h(i,"eth_getBlockByNumber",[s,!1])));return l=l.filter(s=>s!==null),l}function r(i){return i==null?i:Number.parseInt(i,16)}function n(i){return i==null?i:"0x"+i.toString(16)}function t(i,o){return new Promise((c,p)=>{i.sendAsync(o,(d,g)=>{d?p(d):g.error?p(g.error):g.result?c(g.result):p(new Error("Result was empty"))})})}async function h(i,o,c){for(let p=0;p<3;p++)try{return await t(i,{id:1,jsonrpc:"2.0",method:o,params:c})}catch(d){console.error(`provider.sendAsync failed: ${d.stack||d.message||d}`)}return null}return Ls}var Bs,$u;function p0(){if($u)return Bs;$u=1;const e=ho(),r=fo(),{incrementHexInt:n}=Gr();class t extends e{constructor({provider:i,params:o}){super(),this.type="block",this.provider=i}async update({oldBlock:i,newBlock:o}){const c=o,p=n(i),g=(await r({provider:this.provider,fromBlock:p,toBlock:c})).map(a=>a.hash);this.addResults(g)}}return Bs=t,Bs}var Ns,Uu;function g0(){if(Uu)return Ns;Uu=1;const e=ho(),r=fo(),{incrementHexInt:n}=Gr();class t extends e{constructor({provider:i}){super(),this.type="tx",this.provider=i}async update({oldBlock:i}){const o=i,c=n(i),p=await r({provider:this.provider,fromBlock:c,toBlock:o}),d=[];for(const g of p)d.push(...g.transactions);this.addResults(d)}}return Ns=t,Ns}var Ps,Hu;function m0(){if(Hu)return Ps;Hu=1;const e=c0().Mutex,{createAsyncMiddleware:r,createScaffoldMiddleware:n}=Nl(),t=d0(),h=p0(),i=g0(),{intToHex:o,hexToInt:c}=Gr();Ps=p;function p({blockTracker:s,provider:m}){let w=0,v={};const u=new e,R=a({mutex:u}),S=n({eth_newFilter:R(d(T)),eth_newBlockFilter:R(d(q)),eth_newPendingTransactionFilter:R(d(D)),eth_uninstallFilter:R(g(X)),eth_getFilterChanges:R(g(H)),eth_getFilterLogs:R(g(G))}),I=async({oldBlock:E,newBlock:C})=>{if(v.length===0)return;const M=await u.acquire();try{await Promise.all(l(v).map(async x=>{try{await x.update({oldBlock:E,newBlock:C})}catch(B){console.error(B)}}))}catch(x){console.error(x)}M()};return S.newLogFilter=T,S.newBlockFilter=q,S.newPendingTransactionFilter=D,S.uninstallFilter=X,S.getFilterChanges=H,S.getFilterLogs=G,S.destroy=()=>{F()},S;async function T(E){const C=new t({provider:m,params:E});return await Y(C),C}async function q(){const E=new h({provider:m});return await Y(E),E}async function D(){const E=new i({provider:m});return await Y(E),E}async function H(E){const C=c(E),M=v[C];if(!M)throw new Error(`No filter for index "${C}"`);return M.getChangesAndClear()}async function G(E){const C=c(E),M=v[C];if(!M)throw new Error(`No filter for index "${C}"`);let x=[];return M.type==="log"&&(x=M.getAllResults()),x}async function X(E){const C=c(E),x=!!v[C];return x&&await re(C),x}async function Y(E){const C=l(v).length,M=await s.getLatestBlock();await E.initialize({currentBlock:M}),w++,v[w]=E,E.id=w,E.idHex=o(w);const x=l(v).length;return f({prevFilterCount:C,newFilterCount:x}),w}async function re(E){const C=l(v).length;delete v[E];const M=l(v).length;f({prevFilterCount:C,newFilterCount:M})}async function F(){const E=l(v).length;v={},f({prevFilterCount:E,newFilterCount:0})}function f({prevFilterCount:E,newFilterCount:C}){if(E===0&&C>0){s.on("sync",I);return}if(E>0&&C===0){s.removeListener("sync",I);return}}}function d(s){return g(async(...m)=>{const w=await s(...m);return o(w.id)})}function g(s){return r(async(m,w)=>{const v=await s.apply(null,m.params);w.result=v})}function a({mutex:s}){return m=>async(w,v,u,R)=>{(await s.acquire())(),m(w,v,u,R)}}function l(s,m){const w=[];for(let v in s)w.push(s[v]);return w}return Ps}var Os,Wu;function y0(){if(Wu)return Os;Wu=1;const e=Ks().default,{createAsyncMiddleware:r,createScaffoldMiddleware:n}=Nl(),t=m0(),{unsafeRandomBytes:h,incrementHexInt:i}=Gr(),o=fo();Os=c;function c({blockTracker:d,provider:g}){const a={},l=t({blockTracker:d,provider:g});let s=!1;const m=new e,w=n({eth_subscribe:r(v),eth_unsubscribe:r(u)});return w.destroy=S,{events:m,middleware:w};async function v(I,T){if(s)throw new Error("SubscriptionManager - attempting to use after destroying");const q=I.params[0],D=h(16);let H;switch(q){case"newHeads":H=G({subId:D});break;case"logs":const Y=I.params[1],re=await l.newLogFilter(Y);H=X({subId:D,filter:re});break;default:throw new Error(`SubscriptionManager - unsupported subscription type "${q}"`)}a[D]=H,T.result=D;return;function G({subId:Y}){const re={type:q,destroy:async()=>{d.removeListener("sync",re.update)},update:async({oldBlock:F,newBlock:f})=>{const E=f,C=i(F);(await o({provider:g,fromBlock:C,toBlock:E})).map(p).filter(B=>B!==null).forEach(B=>{R(Y,B)})}};return d.on("sync",re.update),re}function X({subId:Y,filter:re}){return re.on("update",f=>R(Y,f)),{type:q,destroy:async()=>await l.uninstallFilter(re.idHex)}}}async function u(I,T){if(s)throw new Error("SubscriptionManager - attempting to use after destroying");const q=I.params[0],D=a[q];if(!D){T.result=!1;return}delete a[q],await D.destroy(),T.result=!0}function R(I,T){m.emit("notification",{jsonrpc:"2.0",method:"eth_subscription",params:{subscription:I,result:T}})}function S(){m.removeAllListeners();for(const I in a)a[I].destroy(),delete a[I];s=!0}}function p(d){return d==null?null:{hash:d.hash,parentHash:d.parentHash,sha3Uncles:d.sha3Uncles,miner:d.miner,stateRoot:d.stateRoot,transactionsRoot:d.transactionsRoot,receiptsRoot:d.receiptsRoot,logsBloom:d.logsBloom,difficulty:d.difficulty,number:d.number,gasLimit:d.gasLimit,gasUsed:d.gasUsed,nonce:d.nonce,mixHash:d.mixHash,timestamp:d.timestamp,extraData:d.extraData}}return Os}var Vu;function w0(){if(Vu)return Lr;Vu=1,Object.defineProperty(Lr,"__esModule",{value:!0}),Lr.SubscriptionManager=void 0;const e=Jd(),r=y0(),n=()=>{};let t=class{constructor(i){const o=new e.PollingBlockTracker({provider:i,pollingInterval:15e3,setSkipCacheFlag:!0}),{events:c,middleware:p}=r({blockTracker:o,provider:i});this.events=c,this.subscriptionMiddleware=p}async handleRequest(i){const o={};return await this.subscriptionMiddleware(i,o,n,n),o}destroy(){this.subscriptionMiddleware.destroy()}};return Lr.SubscriptionManager=t,Lr}var zu;function js(){if(zu)return Rt;zu=1;var e=Rt&&Rt.__importDefault||function(v){return v&&v.__esModule?v:{default:v}};Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.CoinbaseWalletProvider=void 0;const r=e(yn()),n=lh(),t=vn(),h=nt(),i=sl(),o=zs(),c=Js(),p=Hs(),d=e(pf()),g=Vs(),a=gf(),l=w0(),s="DefaultChainId",m="DefaultJsonRpcUrl";let w=class extends n.EventEmitter{constructor(u){var R,S;super(),this._filterPolyfill=new a.FilterPolyfill(this),this._subscriptionManager=new l.SubscriptionManager(this),this._relay=null,this._addresses=[],this.hasMadeFirstChainChangedEmission=!1,this.setProviderInfo=this.setProviderInfo.bind(this),this.updateProviderInfo=this.updateProviderInfo.bind(this),this.getChainId=this.getChainId.bind(this),this.setAppInfo=this.setAppInfo.bind(this),this.enable=this.enable.bind(this),this.close=this.close.bind(this),this.send=this.send.bind(this),this.sendAsync=this.sendAsync.bind(this),this.request=this.request.bind(this),this._setAddresses=this._setAddresses.bind(this),this.scanQRCode=this.scanQRCode.bind(this),this.genericRequest=this.genericRequest.bind(this),this._chainIdFromOpts=u.chainId,this._jsonRpcUrlFromOpts=u.jsonRpcUrl,this._overrideIsMetaMask=u.overrideIsMetaMask,this._relayProvider=u.relayProvider,this._storage=u.storage,this._relayEventManager=u.relayEventManager,this.diagnostic=u.diagnosticLogger,this.reloadOnDisconnect=!0,this.isCoinbaseWallet=(R=u.overrideIsCoinbaseWallet)!==null&&R!==void 0?R:!0,this.isCoinbaseBrowser=(S=u.overrideIsCoinbaseBrowser)!==null&&S!==void 0?S:!1,this.qrUrl=u.qrUrl;const I=this.getChainId(),T=(0,h.prepend0x)(I.toString(16));this.emit("connect",{chainIdStr:T});const q=this._storage.getItem(o.LOCAL_STORAGE_ADDRESSES_KEY);if(q){const D=q.split(" ");D[0]!==""&&(this._addresses=D.map(H=>(0,h.ensureAddressString)(H)),this.emit("accountsChanged",D))}this._subscriptionManager.events.on("notification",D=>{this.emit("message",{type:D.method,data:D.params})}),this._isAuthorized()&&this.initializeRelay(),window.addEventListener("message",D=>{var H;if(!(D.origin!==location.origin||D.source!==window)&&D.data.type==="walletLinkMessage"&&D.data.data.action==="dappChainSwitched"){const G=D.data.data.chainId,X=(H=D.data.data.jsonRpcUrl)!==null&&H!==void 0?H:this.jsonRpcUrl;this.updateProviderInfo(X,Number(G))}})}get selectedAddress(){return this._addresses[0]||void 0}get networkVersion(){return this.getChainId().toString(10)}get chainId(){return(0,h.prepend0x)(this.getChainId().toString(16))}get isWalletLink(){return!0}get isMetaMask(){return this._overrideIsMetaMask}get host(){return this.jsonRpcUrl}get connected(){return!0}isConnected(){return!0}get jsonRpcUrl(){var u;return(u=this._storage.getItem(m))!==null&&u!==void 0?u:this._jsonRpcUrlFromOpts}set jsonRpcUrl(u){this._storage.setItem(m,u)}disableReloadOnDisconnect(){this.reloadOnDisconnect=!1}setProviderInfo(u,R){this.isCoinbaseBrowser||(this._chainIdFromOpts=R,this._jsonRpcUrlFromOpts=u),this.updateProviderInfo(this.jsonRpcUrl,this.getChainId())}updateProviderInfo(u,R){this.jsonRpcUrl=u;const S=this.getChainId();this._storage.setItem(s,R.toString(10)),((0,h.ensureIntNumber)(R)!==S||!this.hasMadeFirstChainChangedEmission)&&(this.emit("chainChanged",this.getChainId()),this.hasMadeFirstChainChangedEmission=!0)}async watchAsset(u,R,S,I,T,q){const H=await(await this.initializeRelay()).watchAsset(u,R,S,I,T,q==null?void 0:q.toString()).promise;return(0,p.isErrorResponse)(H)?!1:!!H.result}async addEthereumChain(u,R,S,I,T,q){var D,H;if((0,h.ensureIntNumber)(u)===this.getChainId())return!1;const G=await this.initializeRelay(),X=G.inlineAddEthereumChain(u.toString());!this._isAuthorized()&&!X&&await G.requestEthereumAccounts().promise;const Y=await G.addEthereumChain(u.toString(),R,T,S,I,q).promise;return(0,p.isErrorResponse)(Y)?!1:(((D=Y.result)===null||D===void 0?void 0:D.isApproved)===!0&&this.updateProviderInfo(R[0],u),((H=Y.result)===null||H===void 0?void 0:H.isApproved)===!0)}async switchEthereumChain(u){const S=await(await this.initializeRelay()).switchEthereumChain(u.toString(10),this.selectedAddress||void 0).promise;if((0,p.isErrorResponse)(S)){if(!S.errorCode)return;throw S.errorCode===t.standardErrorCodes.provider.unsupportedChain?t.standardErrors.provider.unsupportedChain():t.standardErrors.provider.custom({message:S.errorMessage,code:S.errorCode})}const I=S.result;I.isApproved&&I.rpcUrl.length>0&&this.updateProviderInfo(I.rpcUrl,u)}setAppInfo(u,R){this.initializeRelay().then(S=>S.setAppInfo(u,R))}async enable(){var u;return(u=this.diagnostic)===null||u===void 0||u.log(g.EVENTS.ETH_ACCOUNTS_STATE,{method:"provider::enable",addresses_length:this._addresses.length,sessionIdHash:this._relay?c.Session.hash(this._relay.session.id):void 0}),this._isAuthorized()?[...this._addresses]:await this.send("eth_requestAccounts")}async close(){(await this.initializeRelay()).resetAndReload()}send(u,R){try{const S=this._send(u,R);if(S instanceof Promise)return S.catch(I=>{throw(0,t.serializeError)(I,u)})}catch(S){throw(0,t.serializeError)(S,u)}}_send(u,R){if(typeof u=="string"){const I=u,T=Array.isArray(R)?R:R!==void 0?[R]:[],q={jsonrpc:"2.0",id:0,method:I,params:T};return this._sendRequestAsync(q).then(D=>D.result)}if(typeof R=="function"){const I=u,T=R;return this._sendAsync(I,T)}if(Array.isArray(u))return u.map(T=>this._sendRequest(T));const S=u;return this._sendRequest(S)}async sendAsync(u,R){try{return this._sendAsync(u,R).catch(S=>{throw(0,t.serializeError)(S,u)})}catch(S){return Promise.reject((0,t.serializeError)(S,u))}}async _sendAsync(u,R){if(typeof R!="function")throw new Error("callback is required");if(Array.isArray(u)){const I=R;this._sendMultipleRequestsAsync(u).then(T=>I(null,T)).catch(T=>I(T,null));return}const S=R;return this._sendRequestAsync(u).then(I=>S(null,I)).catch(I=>S(I,null))}async request(u){try{return this._request(u).catch(R=>{throw(0,t.serializeError)(R,u.method)})}catch(R){return Promise.reject((0,t.serializeError)(R,u.method))}}async _request(u){if(!u||typeof u!="object"||Array.isArray(u))throw t.standardErrors.rpc.invalidRequest({message:"Expected a single, non-array, object argument.",data:u});const{method:R,params:S}=u;if(typeof R!="string"||R.length===0)throw t.standardErrors.rpc.invalidRequest({message:"'args.method' must be a non-empty string.",data:u});if(S!==void 0&&!Array.isArray(S)&&(typeof S!="object"||S===null))throw t.standardErrors.rpc.invalidRequest({message:"'args.params' must be an object or array if provided.",data:u});const I=S===void 0?[]:S,T=this._relayEventManager.makeRequestId();return(await this._sendRequestAsync({method:R,params:I,jsonrpc:"2.0",id:T})).result}async scanQRCode(u){const S=await(await this.initializeRelay()).scanQRCode((0,h.ensureRegExpString)(u)).promise;if((0,p.isErrorResponse)(S))throw(0,t.serializeError)(S.errorMessage,"scanQRCode");if(typeof S.result!="string")throw(0,t.serializeError)("result was not a string","scanQRCode");return S.result}async genericRequest(u,R){const I=await(await this.initializeRelay()).genericRequest(u,R).promise;if((0,p.isErrorResponse)(I))throw(0,t.serializeError)(I.errorMessage,"generic");if(typeof I.result!="string")throw(0,t.serializeError)("result was not a string","generic");return I.result}async connectAndSignIn(u){var R;(R=this.diagnostic)===null||R===void 0||R.log(g.EVENTS.ETH_ACCOUNTS_STATE,{method:"provider::connectAndSignIn",sessionIdHash:this._relay?c.Session.hash(this._relay.session.id):void 0});let S;try{const T=await this.initializeRelay();if(!(T instanceof i.MobileRelay))throw new Error("connectAndSignIn is only supported on mobile");if(S=await T.connectAndSignIn(u).promise,(0,p.isErrorResponse)(S))throw new Error(S.errorMessage)}catch(T){throw typeof T.message=="string"&&T.message.match(/(denied|rejected)/i)?t.standardErrors.provider.userRejectedRequest("User denied account authorization"):T}if(!S.result)throw new Error("accounts received is empty");const{accounts:I}=S.result;return this._setAddresses(I),this.isCoinbaseBrowser||await this.switchEthereumChain(this.getChainId()),S.result}async selectProvider(u){const S=await(await this.initializeRelay()).selectProvider(u).promise;if((0,p.isErrorResponse)(S))throw(0,t.serializeError)(S.errorMessage,"selectProvider");if(typeof S.result!="string")throw(0,t.serializeError)("result was not a string","selectProvider");return S.result}supportsSubscriptions(){return!1}subscribe(){throw new Error("Subscriptions are not supported")}unsubscribe(){throw new Error("Subscriptions are not supported")}disconnect(){return!0}_sendRequest(u){const R={jsonrpc:"2.0",id:u.id},{method:S}=u;if(R.result=this._handleSynchronousMethods(u),R.result===void 0)throw new Error(`Coinbase Wallet does not support calling ${S} synchronously without a callback. Please provide a callback parameter to call ${S} asynchronously.`);return R}_setAddresses(u,R){if(!Array.isArray(u))throw new Error("addresses is not an array");const S=u.map(I=>(0,h.ensureAddressString)(I));JSON.stringify(S)!==JSON.stringify(this._addresses)&&(this._addresses=S,this.emit("accountsChanged",this._addresses),this._storage.setItem(o.LOCAL_STORAGE_ADDRESSES_KEY,S.join(" ")))}_sendRequestAsync(u){return new Promise((R,S)=>{try{const I=this._handleSynchronousMethods(u);if(I!==void 0)return R({jsonrpc:"2.0",id:u.id,result:I});const T=this._handleAsynchronousFilterMethods(u);if(T!==void 0){T.then(D=>R(Object.assign(Object.assign({},D),{id:u.id}))).catch(D=>S(D));return}const q=this._handleSubscriptionMethods(u);if(q!==void 0){q.then(D=>R({jsonrpc:"2.0",id:u.id,result:D.result})).catch(D=>S(D));return}}catch(I){return S(I)}this._handleAsynchronousMethods(u).then(I=>I&&R(Object.assign(Object.assign({},I),{id:u.id}))).catch(I=>S(I))})}_sendMultipleRequestsAsync(u){return Promise.all(u.map(R=>this._sendRequestAsync(R)))}_handleSynchronousMethods(u){const{method:R}=u,S=u.params||[];switch(R){case"eth_accounts":return this._eth_accounts();case"eth_coinbase":return this._eth_coinbase();case"eth_uninstallFilter":return this._eth_uninstallFilter(S);case"net_version":return this._net_version();case"eth_chainId":return this._eth_chainId();default:return}}async _handleAsynchronousMethods(u){const{method:R}=u,S=u.params||[];switch(R){case"eth_requestAccounts":return this._eth_requestAccounts();case"eth_sign":return this._eth_sign(S);case"eth_ecRecover":return this._eth_ecRecover(S);case"personal_sign":return this._personal_sign(S);case"personal_ecRecover":return this._personal_ecRecover(S);case"eth_signTransaction":return this._eth_signTransaction(S);case"eth_sendRawTransaction":return this._eth_sendRawTransaction(S);case"eth_sendTransaction":return this._eth_sendTransaction(S);case"eth_signTypedData_v1":return this._eth_signTypedData_v1(S);case"eth_signTypedData_v2":return this._throwUnsupportedMethodError();case"eth_signTypedData_v3":return this._eth_signTypedData_v3(S);case"eth_signTypedData_v4":case"eth_signTypedData":return this._eth_signTypedData_v4(S);case"cbWallet_arbitrary":return this._cbwallet_arbitrary(S);case"wallet_addEthereumChain":return this._wallet_addEthereumChain(S);case"wallet_switchEthereumChain":return this._wallet_switchEthereumChain(S);case"wallet_watchAsset":return this._wallet_watchAsset(S)}return(await this.initializeRelay()).makeEthereumJSONRPCRequest(u,this.jsonRpcUrl).catch(T=>{var q;throw(T.code===t.standardErrorCodes.rpc.methodNotFound||T.code===t.standardErrorCodes.rpc.methodNotSupported)&&((q=this.diagnostic)===null||q===void 0||q.log(g.EVENTS.METHOD_NOT_IMPLEMENTED,{method:u.method,sessionIdHash:this._relay?c.Session.hash(this._relay.session.id):void 0})),T})}_handleAsynchronousFilterMethods(u){const{method:R}=u,S=u.params||[];switch(R){case"eth_newFilter":return this._eth_newFilter(S);case"eth_newBlockFilter":return this._eth_newBlockFilter();case"eth_newPendingTransactionFilter":return this._eth_newPendingTransactionFilter();case"eth_getFilterChanges":return this._eth_getFilterChanges(S);case"eth_getFilterLogs":return this._eth_getFilterLogs(S)}}_handleSubscriptionMethods(u){switch(u.method){case"eth_subscribe":case"eth_unsubscribe":return this._subscriptionManager.handleRequest(u)}}_isKnownAddress(u){try{const R=(0,h.ensureAddressString)(u);return this._addresses.map(I=>(0,h.ensureAddressString)(I)).includes(R)}catch{}return!1}_ensureKnownAddress(u){var R;if(!this._isKnownAddress(u))throw(R=this.diagnostic)===null||R===void 0||R.log(g.EVENTS.UNKNOWN_ADDRESS_ENCOUNTERED),new Error("Unknown Ethereum address")}_prepareTransactionParams(u){const R=u.from?(0,h.ensureAddressString)(u.from):this.selectedAddress;if(!R)throw new Error("Ethereum address is unavailable");this._ensureKnownAddress(R);const S=u.to?(0,h.ensureAddressString)(u.to):null,I=u.value!=null?(0,h.ensureBN)(u.value):new r.default(0),T=u.data?(0,h.ensureBuffer)(u.data):Buffer.alloc(0),q=u.nonce!=null?(0,h.ensureIntNumber)(u.nonce):null,D=u.gasPrice!=null?(0,h.ensureBN)(u.gasPrice):null,H=u.maxFeePerGas!=null?(0,h.ensureBN)(u.maxFeePerGas):null,G=u.maxPriorityFeePerGas!=null?(0,h.ensureBN)(u.maxPriorityFeePerGas):null,X=u.gas!=null?(0,h.ensureBN)(u.gas):null,Y=u.chainId?(0,h.ensureIntNumber)(u.chainId):this.getChainId();return{fromAddress:R,toAddress:S,weiValue:I,data:T,nonce:q,gasPriceInWei:D,maxFeePerGas:H,maxPriorityFeePerGas:G,gasLimit:X,chainId:Y}}_isAuthorized(){return this._addresses.length>0}_requireAuthorization(){if(!this._isAuthorized())throw t.standardErrors.provider.unauthorized({})}_throwUnsupportedMethodError(){throw t.standardErrors.provider.unsupportedMethod({})}async _signEthereumMessage(u,R,S,I){this._ensureKnownAddress(R);try{const q=await(await this.initializeRelay()).signEthereumMessage(u,R,S,I).promise;if((0,p.isErrorResponse)(q))throw new Error(q.errorMessage);return{jsonrpc:"2.0",id:0,result:q.result}}catch(T){throw typeof T.message=="string"&&T.message.match(/(denied|rejected)/i)?t.standardErrors.provider.userRejectedRequest("User denied message signature"):T}}async _ethereumAddressFromSignedMessage(u,R,S){const T=await(await this.initializeRelay()).ethereumAddressFromSignedMessage(u,R,S).promise;if((0,p.isErrorResponse)(T))throw new Error(T.errorMessage);return{jsonrpc:"2.0",id:0,result:T.result}}_eth_accounts(){return[...this._addresses]}_eth_coinbase(){return this.selectedAddress||null}_net_version(){return this.getChainId().toString(10)}_eth_chainId(){return(0,h.hexStringFromIntNumber)(this.getChainId())}getChainId(){const u=this._storage.getItem(s);if(!u)return(0,h.ensureIntNumber)(this._chainIdFromOpts);const R=parseInt(u,10);return(0,h.ensureIntNumber)(R)}async _eth_requestAccounts(){var u;if((u=this.diagnostic)===null||u===void 0||u.log(g.EVENTS.ETH_ACCOUNTS_STATE,{method:"provider::_eth_requestAccounts",addresses_length:this._addresses.length,sessionIdHash:this._relay?c.Session.hash(this._relay.session.id):void 0}),this._isAuthorized())return Promise.resolve({jsonrpc:"2.0",id:0,result:this._addresses});let R;try{if(R=await(await this.initializeRelay()).requestEthereumAccounts().promise,(0,p.isErrorResponse)(R))throw new Error(R.errorMessage)}catch(S){throw typeof S.message=="string"&&S.message.match(/(denied|rejected)/i)?t.standardErrors.provider.userRejectedRequest("User denied account authorization"):S}if(!R.result)throw new Error("accounts received is empty");return this._setAddresses(R.result),this.isCoinbaseBrowser||await this.switchEthereumChain(this.getChainId()),{jsonrpc:"2.0",id:0,result:this._addresses}}_eth_sign(u){this._requireAuthorization();const R=(0,h.ensureAddressString)(u[0]),S=(0,h.ensureBuffer)(u[1]);return this._signEthereumMessage(S,R,!1)}_eth_ecRecover(u){const R=(0,h.ensureBuffer)(u[0]),S=(0,h.ensureBuffer)(u[1]);return this._ethereumAddressFromSignedMessage(R,S,!1)}_personal_sign(u){this._requireAuthorization();const R=(0,h.ensureBuffer)(u[0]),S=(0,h.ensureAddressString)(u[1]);return this._signEthereumMessage(R,S,!0)}_personal_ecRecover(u){const R=(0,h.ensureBuffer)(u[0]),S=(0,h.ensureBuffer)(u[1]);return this._ethereumAddressFromSignedMessage(R,S,!0)}async _eth_signTransaction(u){this._requireAuthorization();const R=this._prepareTransactionParams(u[0]||{});try{const I=await(await this.initializeRelay()).signEthereumTransaction(R).promise;if((0,p.isErrorResponse)(I))throw new Error(I.errorMessage);return{jsonrpc:"2.0",id:0,result:I.result}}catch(S){throw typeof S.message=="string"&&S.message.match(/(denied|rejected)/i)?t.standardErrors.provider.userRejectedRequest("User denied transaction signature"):S}}async _eth_sendRawTransaction(u){const R=(0,h.ensureBuffer)(u[0]),I=await(await this.initializeRelay()).submitEthereumTransaction(R,this.getChainId()).promise;if((0,p.isErrorResponse)(I))throw new Error(I.errorMessage);return{jsonrpc:"2.0",id:0,result:I.result}}async _eth_sendTransaction(u){this._requireAuthorization();const R=this._prepareTransactionParams(u[0]||{});try{const I=await(await this.initializeRelay()).signAndSubmitEthereumTransaction(R).promise;if((0,p.isErrorResponse)(I))throw new Error(I.errorMessage);return{jsonrpc:"2.0",id:0,result:I.result}}catch(S){throw typeof S.message=="string"&&S.message.match(/(denied|rejected)/i)?t.standardErrors.provider.userRejectedRequest("User denied transaction signature"):S}}async _eth_signTypedData_v1(u){this._requireAuthorization();const R=(0,h.ensureParsedJSONObject)(u[0]),S=(0,h.ensureAddressString)(u[1]);this._ensureKnownAddress(S);const I=d.default.hashForSignTypedDataLegacy({data:R}),T=JSON.stringify(R,null,2);return this._signEthereumMessage(I,S,!1,T)}async _eth_signTypedData_v3(u){this._requireAuthorization();const R=(0,h.ensureAddressString)(u[0]),S=(0,h.ensureParsedJSONObject)(u[1]);this._ensureKnownAddress(R);const I=d.default.hashForSignTypedData_v3({data:S}),T=JSON.stringify(S,null,2);return this._signEthereumMessage(I,R,!1,T)}async _eth_signTypedData_v4(u){this._requireAuthorization();const R=(0,h.ensureAddressString)(u[0]),S=(0,h.ensureParsedJSONObject)(u[1]);this._ensureKnownAddress(R);const I=d.default.hashForSignTypedData_v4({data:S}),T=JSON.stringify(S,null,2);return this._signEthereumMessage(I,R,!1,T)}async _cbwallet_arbitrary(u){const R=u[0],S=u[1];if(typeof S!="string")throw new Error("parameter must be a string");if(typeof R!="object"||R===null)throw new Error("parameter must be an object");return{jsonrpc:"2.0",id:0,result:await this.genericRequest(R,S)}}async _wallet_addEthereumChain(u){var R,S,I,T;const q=u[0];if(((R=q.rpcUrls)===null||R===void 0?void 0:R.length)===0)return{jsonrpc:"2.0",id:0,error:{code:2,message:"please pass in at least 1 rpcUrl"}};if(!q.chainName||q.chainName.trim()==="")throw t.standardErrors.rpc.invalidParams("chainName is a required field");if(!q.nativeCurrency)throw t.standardErrors.rpc.invalidParams("nativeCurrency is a required field");const D=parseInt(q.chainId,16);return await this.addEthereumChain(D,(S=q.rpcUrls)!==null&&S!==void 0?S:[],(I=q.blockExplorerUrls)!==null&&I!==void 0?I:[],q.chainName,(T=q.iconUrls)!==null&&T!==void 0?T:[],q.nativeCurrency)?{jsonrpc:"2.0",id:0,result:null}:{jsonrpc:"2.0",id:0,error:{code:2,message:"unable to add ethereum chain"}}}async _wallet_switchEthereumChain(u){const R=u[0];return await this.switchEthereumChain(parseInt(R.chainId,16)),{jsonrpc:"2.0",id:0,result:null}}async _wallet_watchAsset(u){const R=Array.isArray(u)?u[0]:u;if(!R.type)throw t.standardErrors.rpc.invalidParams("Type is required");if((R==null?void 0:R.type)!=="ERC20")throw t.standardErrors.rpc.invalidParams(`Asset of type '${R.type}' is not supported`);if(!(R!=null&&R.options))throw t.standardErrors.rpc.invalidParams("Options are required");if(!(R!=null&&R.options.address))throw t.standardErrors.rpc.invalidParams("Address is required");const S=this.getChainId(),{address:I,symbol:T,image:q,decimals:D}=R.options;return{jsonrpc:"2.0",id:0,result:await this.watchAsset(R.type,I,T,D,q,S)}}_eth_uninstallFilter(u){const R=(0,h.ensureHexString)(u[0]);return this._filterPolyfill.uninstallFilter(R)}async _eth_newFilter(u){const R=u[0];return{jsonrpc:"2.0",id:0,result:await this._filterPolyfill.newFilter(R)}}async _eth_newBlockFilter(){return{jsonrpc:"2.0",id:0,result:await this._filterPolyfill.newBlockFilter()}}async _eth_newPendingTransactionFilter(){return{jsonrpc:"2.0",id:0,result:await this._filterPolyfill.newPendingTransactionFilter()}}_eth_getFilterChanges(u){const R=(0,h.ensureHexString)(u[0]);return this._filterPolyfill.getFilterChanges(R)}_eth_getFilterLogs(u){const R=(0,h.ensureHexString)(u[0]);return this._filterPolyfill.getFilterLogs(R)}initializeRelay(){return this._relay?Promise.resolve(this._relay):this._relayProvider().then(u=>(u.setAccountsCallback((R,S)=>this._setAddresses(R,S)),u.setChainCallback((R,S)=>{this.updateProviderInfo(S,parseInt(R,10))}),u.setDappDefaultChainCallback(this._chainIdFromOpts),this._relay=u,u))}};return Rt.CoinbaseWalletProvider=w,Rt}var Ur={},Ju;function v0(){if(Ju)return Ur;Ju=1,Object.defineProperty(Ur,"__esModule",{value:!0}),Ur.RelayEventManager=void 0;const e=nt();let r=class{constructor(){this._nextRequestId=0,this.callbacks=new Map}makeRequestId(){this._nextRequestId=(this._nextRequestId+1)%2147483647;const t=this._nextRequestId,h=(0,e.prepend0x)(t.toString(16));return this.callbacks.get(h)&&this.callbacks.delete(h),t}};return Ur.RelayEventManager=r,Ur}var Gu;function Zu(){if(Gu)return ar;Gu=1,Object.defineProperty(ar,"__esModule",{value:!0}),ar.CoinbaseWalletSDK=void 0;const e=yh(),r=wh(),n=nt(),t=Eh(),h=js(),i=sl(),o=il(),c=v0(),p=rl(),d=nl(),g=Ws();let a=class uh{constructor(s){var m,w,v;this._appName="",this._appLogoUrl=null,this._relay=null,this._relayEventManager=null;const u=s.linkAPIUrl||r.LINK_API_URL;typeof s.overrideIsMetaMask>"u"?this._overrideIsMetaMask=!1:this._overrideIsMetaMask=s.overrideIsMetaMask,this._overrideIsCoinbaseWallet=(m=s.overrideIsCoinbaseWallet)!==null&&m!==void 0?m:!0,this._overrideIsCoinbaseBrowser=(w=s.overrideIsCoinbaseBrowser)!==null&&w!==void 0?w:!1,this._diagnosticLogger=s.diagnosticLogger,this._reloadOnDisconnect=(v=s.reloadOnDisconnect)!==null&&v!==void 0?v:!0;const R=new URL(u),S=`${R.protocol}//${R.host}`;if(this._storage=new t.ScopedLocalStorage(`-walletlink:${S}`),this._storage.setItem("version",uh.VERSION),this.walletExtension||this.coinbaseBrowser)return;this._relayEventManager=new c.RelayEventManager;const I=(0,n.isMobileWeb)(),T=s.uiConstructor||(D=>I?new o.MobileRelayUI(D):new p.WalletLinkRelayUI(D)),q={linkAPIUrl:u,version:g.LIB_VERSION,darkMode:!!s.darkMode,headlessMode:!!s.headlessMode,uiConstructor:T,storage:this._storage,relayEventManager:this._relayEventManager,diagnosticLogger:this._diagnosticLogger,reloadOnDisconnect:this._reloadOnDisconnect,enableMobileWalletLink:s.enableMobileWalletLink};this._relay=I?new i.MobileRelay(q):new d.WalletLinkRelay(q),this.setAppInfo(s.appName,s.appLogoUrl),!s.headlessMode&&this._relay.attachUI()}makeWeb3Provider(s="",m=1){const w=this.walletExtension;if(w)return this.isCipherProvider(w)||w.setProviderInfo(s,m),this._reloadOnDisconnect===!1&&typeof w.disableReloadOnDisconnect=="function"&&w.disableReloadOnDisconnect(),w;const v=this.coinbaseBrowser;if(v)return v;const u=this._relay;if(!u||!this._relayEventManager||!this._storage)throw new Error("Relay not initialized, should never happen");return s||u.setConnectDisabled(!0),new h.CoinbaseWalletProvider({relayProvider:()=>Promise.resolve(u),relayEventManager:this._relayEventManager,storage:this._storage,jsonRpcUrl:s,chainId:m,qrUrl:this.getQrUrl(),diagnosticLogger:this._diagnosticLogger,overrideIsMetaMask:this._overrideIsMetaMask,overrideIsCoinbaseWallet:this._overrideIsCoinbaseWallet,overrideIsCoinbaseBrowser:this._overrideIsCoinbaseBrowser})}setAppInfo(s,m){var w;this._appName=s||"DApp",this._appLogoUrl=m||(0,n.getFavicon)();const v=this.walletExtension;v?this.isCipherProvider(v)||v.setAppInfo(this._appName,this._appLogoUrl):(w=this._relay)===null||w===void 0||w.setAppInfo(this._appName,this._appLogoUrl)}disconnect(){var s;const m=this===null||this===void 0?void 0:this.walletExtension;m?m.close():(s=this._relay)===null||s===void 0||s.resetAndReload()}getQrUrl(){var s,m;return(m=(s=this._relay)===null||s===void 0?void 0:s.getQRCodeUrl())!==null&&m!==void 0?m:null}getCoinbaseWalletLogo(s,m=240){return(0,e.walletLogo)(s,m)}get walletExtension(){var s;return(s=window.coinbaseWalletExtension)!==null&&s!==void 0?s:window.walletLinkExtension}get coinbaseBrowser(){var s,m;try{const w=(s=window.ethereum)!==null&&s!==void 0?s:(m=window.top)===null||m===void 0?void 0:m.ethereum;return w&&"isCoinbaseBrowser"in w&&w.isCoinbaseBrowser?w:void 0}catch{return}}isCipherProvider(s){return typeof s.isCipher=="boolean"&&s.isCipher}};return ar.CoinbaseWalletSDK=a,a.VERSION=g.LIB_VERSION,ar}var Ku;function b0(){return Ku||(Ku=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CoinbaseWalletProvider=e.CoinbaseWalletSDK=void 0;const r=Zu(),n=js();var t=Zu();Object.defineProperty(e,"CoinbaseWalletSDK",{enumerable:!0,get:function(){return t.CoinbaseWalletSDK}});var h=js();Object.defineProperty(e,"CoinbaseWalletProvider",{enumerable:!0,get:function(){return h.CoinbaseWalletProvider}}),e.default=r.CoinbaseWalletSDK,typeof window<"u"&&(window.CoinbaseWalletSDK=r.CoinbaseWalletSDK,window.CoinbaseWalletProvider=n.CoinbaseWalletProvider,window.WalletLink=r.CoinbaseWalletSDK,window.WalletLinkProvider=n.CoinbaseWalletProvider)}(Nn)),Nn}var _0=b0();const E0=hh(_0),W0=Object.freeze(Object.defineProperty({__proto__:null,default:E0},Symbol.toStringTag,{value:"Module"}));export{W0 as i}; diff --git a/web3game/.vercel/output/static/assets/index-QVU1uMUX.js b/web3game/.vercel/output/static/assets/index-QVU1uMUX.js new file mode 100644 index 0000000000..dbc728db98 --- /dev/null +++ b/web3game/.vercel/output/static/assets/index-QVU1uMUX.js @@ -0,0 +1,13 @@ +import{i as p,r as u,R as f,M as b,x as d}from"./index-DVkBgnkX.js";import{n as g,r as m,c as M}from"./if-defined-DVOmkLu5.js";import{T as l}from"./index-swSfGf8i.js";const x={interpolate(i,e,o){if(i.length!==2||e.length!==2)throw new Error("inputRange and outputRange must be an array of length 2");const n=i[0]||0,r=i[1]||0,t=e[0]||0,s=e[1]||0;return or?s:(s-t)/(r-n)*(o-n)+t}},v=p` + :host { + width: 100%; + display: block; + } +`;var a=function(i,e,o,n){var r=arguments.length,t=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(i,e,o,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(t=(r<3?s(t):r>3?s(e,o,t):s(e,o))||t);return r>3&&t&&Object.defineProperty(e,o,t),t};let h=class extends u{constructor(){super(),this.unsubscribe=[],this.text="",this.open=l.state.open,this.unsubscribe.push(f.subscribeKey("view",()=>{l.hide()}),b.subscribeKey("open",e=>{e||l.hide()}),l.subscribeKey("open",e=>{this.open=e}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e()),l.hide()}render(){return d` +
+ ${this.renderChildren()} +
+ `}renderChildren(){return d` `}onMouseEnter(){const e=this.getBoundingClientRect();this.open||l.showTooltip({message:this.text,triggerRect:{width:e.width,height:e.height,left:e.left,top:e.top},variant:"shade"})}onMouseLeave(e){this.contains(e.relatedTarget)||l.hide()}};h.styles=[v];a([g()],h.prototype,"text",void 0);a([m()],h.prototype,"open",void 0);h=a([M("w3m-tooltip-trigger")],h);export{x as M}; diff --git a/web3game/.vercel/output/static/assets/index-QpqlfPgl.js b/web3game/.vercel/output/static/assets/index-QpqlfPgl.js new file mode 100644 index 0000000000..75a76925bb --- /dev/null +++ b/web3game/.vercel/output/static/assets/index-QpqlfPgl.js @@ -0,0 +1,19 @@ +import{i as d,b as u,D as p,r as m,x as f}from"./index-DVkBgnkX.js";import{n as h,c as g}from"./if-defined-DVOmkLu5.js";const v=d` + :host { + display: block; + width: var(--local-width); + height: var(--local-height); + } + + img { + display: block; + width: 100%; + height: 100%; + object-fit: cover; + object-position: center center; + border-radius: inherit; + } +`;var l=function(o,t,r,s){var n=arguments.length,e=n<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,r):s,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(o,t,r,s);else for(var a=o.length-1;a>=0;a--)(c=o[a])&&(e=(n<3?c(e):n>3?c(t,r,e):c(t,r))||e);return n>3&&e&&Object.defineProperty(t,r,e),e};let i=class extends m{constructor(){super(...arguments),this.src="./path/to/image.jpg",this.alt="Image",this.size=void 0}render(){return this.style.cssText=` + --local-width: ${this.size?`var(--wui-icon-size-${this.size});`:"100%"}; + --local-height: ${this.size?`var(--wui-icon-size-${this.size});`:"100%"}; + `,f`${this.alt}`}handleImageError(){this.dispatchEvent(new CustomEvent("onLoadError",{bubbles:!0,composed:!0}))}};i.styles=[u,p,v];l([h()],i.prototype,"src",void 0);l([h()],i.prototype,"alt",void 0);l([h()],i.prototype,"size",void 0);i=l([g("wui-image")],i); diff --git a/web3game/.vercel/output/static/assets/index-kA5-QyMM.js b/web3game/.vercel/output/static/assets/index-kA5-QyMM.js new file mode 100644 index 0000000000..0f0502cba0 --- /dev/null +++ b/web3game/.vercel/output/static/assets/index-kA5-QyMM.js @@ -0,0 +1,21 @@ +import{U as re,c as de}from"./if-defined-DVOmkLu5.js";import{K as ee,i as le,b as he,r as fe,x as me}from"./index-DVkBgnkX.js";import"./index-CTojmOJx.js";var Q={exports:{}},pe=Q.exports,ie;function ge(){return ie||(ie=1,function(e,d){(function(a,c){e.exports=c()})(pe,function(){var a=1e3,c=6e4,m=36e5,l="millisecond",f="second",y="minute",$="hour",p="day",w="week",T="month",I="quarter",b="year",D="date",j="Invalid Date",q=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,W=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,B={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(u){var r=["th","st","nd","rd"],t=u%100;return"["+u+(r[(t-20)%10]||r[t]||r[0])+"]"}},C=function(u,r,t){var i=String(u);return!i||i.length>=r?u:""+Array(r+1-i.length).join(t)+u},R={s:C,z:function(u){var r=-u.utcOffset(),t=Math.abs(r),i=Math.floor(t/60),n=t%60;return(r<=0?"+":"-")+C(i,2,"0")+":"+C(n,2,"0")},m:function u(r,t){if(r.date()1)return u(s[0])}else{var g=r.name;O[g]=r,n=g}return!i&&n&&(S=n),n||!i&&S},M=function(u,r){if(Y(u))return u.clone();var t=typeof r=="object"?r:{};return t.date=u,t.args=arguments,new z(t)},h=R;h.l=Z,h.i=Y,h.w=function(u,r){return M(u,{locale:r.$L,utc:r.$u,x:r.$x,$offset:r.$offset})};var z=function(){function u(t){this.$L=Z(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[E]=!0}var r=u.prototype;return r.parse=function(t){this.$d=function(i){var n=i.date,o=i.utc;if(n===null)return new Date(NaN);if(h.u(n))return new Date;if(n instanceof Date)return new Date(n);if(typeof n=="string"&&!/Z$/i.test(n)){var s=n.match(q);if(s){var g=s[2]-1||0,v=(s[7]||"0").substring(0,3);return o?new Date(Date.UTC(s[1],g,s[3]||1,s[4]||0,s[5]||0,s[6]||0,v)):new Date(s[1],g,s[3]||1,s[4]||0,s[5]||0,s[6]||0,v)}}return new Date(n)}(t),this.init()},r.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},r.$utils=function(){return h},r.isValid=function(){return this.$d.toString()!==j},r.isSame=function(t,i){var n=M(t);return this.startOf(i)<=n&&n<=this.endOf(i)},r.isAfter=function(t,i){return M(t)0,O<=S.r||!S.r){O<=1&&R>0&&(S=B[R-1]);var E=W[S.l];b&&(O=b(""+O)),j=typeof E=="string"?E.replace("%d",O):E(O,w,S.l,q);break}}if(w)return j;var Y=q?W.future:W.past;return typeof Y=="function"?Y(j):Y.replace("%s",j)},l.to=function(p,w){return y(p,w,this,!0)},l.from=function(p,w){return y(p,w,this)};var $=function(p){return p.$u?m.utc():m()};l.toNow=function(p){return this.to($(this),p)},l.fromNow=function(p){return this.from($(this),p)}}})}(K)),K.exports}var De=we();const _e=ee(De);var X={exports:{}},be=X.exports,se;function Se(){return se||(se=1,function(e,d){(function(a,c){e.exports=c()})(be,function(){return function(a,c,m){m.updateLocale=function(l,f){var y=m.Ls[l];if(y)return(f?Object.keys(f):[]).forEach(function($){y[$]=f[$]}),y}}})}(X)),X.exports}var Oe=Se();const Le=ee(Oe);H.extend(_e);H.extend(Le);const Fe={...Me,name:"en-web3-modal",relativeTime:{future:"in %s",past:"%s ago",s:"%d sec",m:"1 min",mm:"%d min",h:"1 hr",hh:"%d hrs",d:"1 d",dd:"%d d",M:"1 mo",MM:"%d mo",y:"1 yr",yy:"%d yr"}},Ie=["January","February","March","April","May","June","July","August","September","October","November","December"];H.locale("en-web3-modal",Fe);const ae={getMonthNameByIndex(e){return Ie[e]},getYear(e=new Date().toISOString()){return H(e).year()},getRelativeDateFromNow(e){return H(e).locale("en-web3-modal").fromNow(!0)},formatDate(e,d="DD MMM"){return H(e).format(d)}},Ne=3,je=["receive","deposit","borrow","claim"],Re=["withdraw","repay","burn"],ce={getTransactionGroupTitle(e,d){const a=ae.getYear(),c=ae.getMonthNameByIndex(d);return e===a?c:`${c} ${e}`},getTransactionImages(e){const[d,a]=e,c=!!d&&(e==null?void 0:e.every(f=>!!f.nft_info)),m=(e==null?void 0:e.length)>1;return(e==null?void 0:e.length)===2&&!c?[this.getTransactionImage(d),this.getTransactionImage(a)]:m?e.map(f=>this.getTransactionImage(f)):[this.getTransactionImage(d)]},getTransactionImage(e){return{type:ce.getTransactionTransferTokenType(e),url:ce.getTransactionImageURL(e)}},getTransactionImageURL(e){var m,l,f,y,$;let d;const a=!!(e!=null&&e.nft_info),c=!!(e!=null&&e.fungible_info);return e&&a?d=(f=(l=(m=e==null?void 0:e.nft_info)==null?void 0:m.content)==null?void 0:l.preview)==null?void 0:f.url:e&&c&&(d=($=(y=e==null?void 0:e.fungible_info)==null?void 0:y.icon)==null?void 0:$.url),d},getTransactionTransferTokenType(e){if(e!=null&&e.fungible_info)return"FUNGIBLE";if(e!=null&&e.nft_info)return"NFT"},getTransactionDescriptions(e){var T,I,b;const d=(T=e==null?void 0:e.metadata)==null?void 0:T.operationType,a=e==null?void 0:e.transfers,c=((I=e==null?void 0:e.transfers)==null?void 0:I.length)>0,m=((b=e==null?void 0:e.transfers)==null?void 0:b.length)>1,l=c&&(a==null?void 0:a.every(D=>!!(D!=null&&D.fungible_info))),[f,y]=a;let $=this.getTransferDescription(f),p=this.getTransferDescription(y);if(!c)return(d==="send"||d==="receive")&&l?($=re.getTruncateString({string:e==null?void 0:e.metadata.sentFrom,charsStart:4,charsEnd:6,truncate:"middle"}),p=re.getTruncateString({string:e==null?void 0:e.metadata.sentTo,charsStart:4,charsEnd:6,truncate:"middle"}),[$,p]):[e.metadata.status];if(m)return a.map(D=>this.getTransferDescription(D));let w="";return je.includes(d)?w="+":Re.includes(d)&&(w="-"),$=w.concat($),[$]},getTransferDescription(e){var a;let d="";return e&&(e!=null&&e.nft_info?d=((a=e==null?void 0:e.nft_info)==null?void 0:a.name)||"-":e!=null&&e.fungible_info&&(d=this.getFungibleTransferDescription(e)||"-")),d},getFungibleTransferDescription(e){var c;return e?[this.getQuantityFixedValue(e==null?void 0:e.quantity.numeric),(c=e==null?void 0:e.fungible_info)==null?void 0:c.symbol].join(" ").trim():null},getQuantityFixedValue(e){return e?parseFloat(e).toFixed(Ne):null}},Ye=le` + :host > wui-flex:first-child { + column-gap: var(--wui-spacing-s); + padding: 7px var(--wui-spacing-l) 7px var(--wui-spacing-xs); + width: 100%; + } + + wui-flex { + display: flex; + flex: 1; + } +`;var Ue=function(e,d,a,c){var m=arguments.length,l=m<3?d:c===null?c=Object.getOwnPropertyDescriptor(d,a):c,f;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,d,a,c);else for(var y=e.length-1;y>=0;y--)(f=e[y])&&(l=(m<3?f(l):m>3?f(d,a,l):f(d,a))||l);return m>3&&l&&Object.defineProperty(d,a,l),l};let te=class extends fe{render(){return me` + + + + + + + + + `}};te.styles=[he,Ye];te=Ue([de("wui-transaction-list-item-loader")],te);export{ae as D,ce as T}; diff --git a/web3game/.vercel/output/static/assets/index-swSfGf8i.js b/web3game/.vercel/output/static/assets/index-swSfGf8i.js new file mode 100644 index 0000000000..d492ffd827 --- /dev/null +++ b/web3game/.vercel/output/static/assets/index-swSfGf8i.js @@ -0,0 +1,74 @@ +import{q as h,v as w,w as m,i as f,r as v,x as b}from"./index-DVkBgnkX.js";import{r as u,c as g}from"./if-defined-DVOmkLu5.js";const e=h({message:"",open:!1,triggerRect:{width:0,height:0,top:0,left:0},variant:"shade"}),s={state:e,subscribe(o){return m(e,()=>o(e))},subscribeKey(o,t){return w(e,o,t)},showTooltip({message:o,triggerRect:t,variant:i}){e.open=!0,e.message=o,e.triggerRect=t,e.variant=i},hide(){e.open=!1,e.message="",e.triggerRect={width:0,height:0,top:0,left:0}}},x=f` + :host { + pointer-events: none; + } + + :host > wui-flex { + display: var(--w3m-tooltip-display); + opacity: var(--w3m-tooltip-opacity); + padding: 9px var(--wui-spacing-s) 10px var(--wui-spacing-s); + border-radius: var(--wui-border-radius-xxs); + color: var(--wui-color-bg-100); + position: fixed; + top: var(--w3m-tooltip-top); + left: var(--w3m-tooltip-left); + transform: translate(calc(-50% + var(--w3m-tooltip-parent-width)), calc(-100% - 8px)); + max-width: calc(var(--w3m-modal-width) - var(--wui-spacing-xl)); + transition: opacity 0.2s var(--wui-ease-out-power-2); + will-change: opacity; + } + + :host([data-variant='shade']) > wui-flex { + background-color: var(--wui-color-bg-150); + border: 1px solid var(--wui-color-gray-glass-005); + } + + :host([data-variant='shade']) > wui-flex > wui-text { + color: var(--wui-color-fg-150); + } + + :host([data-variant='fill']) > wui-flex { + background-color: var(--wui-color-fg-100); + border: none; + } + + wui-icon { + position: absolute; + width: 12px !important; + height: 4px !important; + color: var(--wui-color-bg-150); + } + + wui-icon[data-placement='top'] { + bottom: 0px; + left: 50%; + transform: translate(-50%, 95%); + } + + wui-icon[data-placement='bottom'] { + top: 0; + left: 50%; + transform: translate(-50%, -95%) rotate(180deg); + } + + wui-icon[data-placement='right'] { + top: 50%; + left: 0; + transform: translate(-65%, -50%) rotate(90deg); + } + + wui-icon[data-placement='left'] { + top: 50%; + right: 0%; + transform: translate(65%, -50%) rotate(270deg); + } +`;var n=function(o,t,i,l){var p=arguments.length,r=p<3?t:l===null?l=Object.getOwnPropertyDescriptor(t,i):l,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,t,i,l);else for(var d=o.length-1;d>=0;d--)(c=o[d])&&(r=(p<3?c(r):p>3?c(t,i,r):c(t,i))||r);return p>3&&r&&Object.defineProperty(t,i,r),r};let a=class extends v{constructor(){super(),this.unsubscribe=[],this.open=s.state.open,this.message=s.state.message,this.triggerRect=s.state.triggerRect,this.variant=s.state.variant,this.unsubscribe.push(s.subscribe(t=>{this.open=t.open,this.message=t.message,this.triggerRect=t.triggerRect,this.variant=t.variant}))}disconnectedCallback(){this.unsubscribe.forEach(t=>t())}render(){this.dataset.variant=this.variant;const t=this.triggerRect.top,i=this.triggerRect.left;return this.style.cssText=` + --w3m-tooltip-top: ${t}px; + --w3m-tooltip-left: ${i}px; + --w3m-tooltip-parent-width: ${this.triggerRect.width/2}px; + --w3m-tooltip-display: ${this.open?"flex":"none"}; + --w3m-tooltip-opacity: ${this.open?1:0}; + `,b` + + ${this.message} + `}};a.styles=[x];n([u()],a.prototype,"open",void 0);n([u()],a.prototype,"message",void 0);n([u()],a.prototype,"triggerRect",void 0);n([u()],a.prototype,"variant",void 0);a=n([g("w3m-tooltip"),g("w3m-tooltip")],a);export{s as T}; diff --git a/web3game/.vercel/output/static/assets/index-vgifefJD.js b/web3game/.vercel/output/static/assets/index-vgifefJD.js new file mode 100644 index 0000000000..e810f7dfcb --- /dev/null +++ b/web3game/.vercel/output/static/assets/index-vgifefJD.js @@ -0,0 +1,649 @@ +import{i as w,b as g,f as x,r as u,x as n,F as t}from"./index-DVkBgnkX.js";import{n as o,c as k,o as v}from"./if-defined-DVOmkLu5.js";import"./index-QpqlfPgl.js";import"./index-B2osUT2V.js";import"./index-Cxc8tIRM.js";const M=w` + button { + column-gap: var(--wui-spacing-s); + padding: 11px 18px 11px var(--wui-spacing-s); + width: 100%; + background-color: var(--wui-color-gray-glass-002); + border-radius: var(--wui-border-radius-xs); + color: var(--wui-color-fg-250); + transition: + color var(--wui-ease-out-power-1) var(--wui-duration-md), + background-color var(--wui-ease-out-power-1) var(--wui-duration-md); + will-change: color, background-color; + } + + button[data-iconvariant='square'], + button[data-iconvariant='square-blue'] { + padding: 6px 18px 6px 9px; + } + + button > wui-flex { + flex: 1; + } + + button > wui-image { + width: 32px; + height: 32px; + box-shadow: 0 0 0 2px var(--wui-color-gray-glass-005); + border-radius: var(--wui-border-radius-3xl); + } + + button > wui-icon { + width: 36px; + height: 36px; + transition: opacity var(--wui-ease-out-power-1) var(--wui-duration-md); + will-change: opacity; + } + + button > wui-icon-box[data-variant='blue'] { + box-shadow: 0 0 0 2px var(--wui-color-accent-glass-005); + } + + button > wui-icon-box[data-variant='overlay'] { + box-shadow: 0 0 0 2px var(--wui-color-gray-glass-005); + } + + button > wui-icon-box[data-variant='square-blue'] { + border-radius: var(--wui-border-radius-3xs); + position: relative; + border: none; + width: 36px; + height: 36px; + } + + button > wui-icon-box[data-variant='square-blue']::after { + content: ''; + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; + border-radius: inherit; + border: 1px solid var(--wui-color-accent-glass-010); + pointer-events: none; + } + + button > wui-icon:last-child { + width: 14px; + height: 14px; + } + + button:disabled { + color: var(--wui-color-gray-glass-020); + } + + button[data-loading='true'] > wui-icon { + opacity: 0; + } + + wui-loading-spinner { + position: absolute; + right: 18px; + top: 50%; + transform: translateY(-50%); + } +`;var s=function(c,e,l,r){var h=arguments.length,i=h<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,l):r,C;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(c,e,l,r);else for(var d=c.length-1;d>=0;d--)(C=c[d])&&(i=(h<3?C(i):h>3?C(e,l,i):C(e,l))||i);return h>3&&i&&Object.defineProperty(e,l,i),i};let a=class extends u{constructor(){super(...arguments),this.tabIdx=void 0,this.variant="icon",this.disabled=!1,this.imageSrc=void 0,this.alt=void 0,this.chevron=!1,this.loading=!1}render(){return n` + + `}visualTemplate(){if(this.variant==="image"&&this.imageSrc)return n``;if(this.iconVariant==="square"&&this.icon&&this.variant==="icon")return n``;if(this.variant==="icon"&&this.icon&&this.iconVariant){const e=["blue","square-blue"].includes(this.iconVariant)?"accent-100":"fg-200",l=this.iconVariant==="square-blue"?"mdl":"md",r=this.iconSize?this.iconSize:l;return n` + + `}return null}loadingTemplate(){return this.loading?n``:n``}chevronTemplate(){return this.chevron?n``:null}};a.styles=[g,x,M];s([o()],a.prototype,"icon",void 0);s([o()],a.prototype,"iconSize",void 0);s([o()],a.prototype,"tabIdx",void 0);s([o()],a.prototype,"variant",void 0);s([o()],a.prototype,"iconVariant",void 0);s([o({type:Boolean})],a.prototype,"disabled",void 0);s([o()],a.prototype,"imageSrc",void 0);s([o()],a.prototype,"alt",void 0);s([o({type:Boolean})],a.prototype,"chevron",void 0);s([o({type:Boolean})],a.prototype,"loading",void 0);a=s([k("wui-list-item")],a);const y=t` + + + + + + + + `,Z=t` + + + + + + + + + +`,V=t` + + + + + + + + + + + + + + + + `,b=t` + + + + + + + + + + + + +`,m=t` + + + + + + + + + + + + + `,E=t` + + + + + + + + + + + + + + + `,H=t` + + + + + + + + + +`,B=t` + + + + + +`,F=t` + + + + + + + + + + + + + + + + +`,L=t` + + + + + +`,_=t` + + + + + + + + + + `,D=t` + + + + + + + + + + + + + + + + + + + + + + + + + + + + +`,S=t` + + + + + + + + + + +`,P=t` + + + + + + + + + + + + + + + +`,A=t` + + + + + + + + + + `,j=t` + + + + + + + + +`,z=t` + + + + + + + + + + + + +`,$=t` + + + + + + + + + + + + +`,O=t` + + + + + + + + + + + + + + + + + + +`,G=t` + + + + + + + + + + + + + + + `,U=t` + + + + + + + + + + + + + + + + + `,q=t` + + + + + + + + + + +`,R=t` + + + + + + + + + + + + + + `,T=w` + :host { + display: block; + width: var(--local-size); + height: var(--local-size); + } + + :host svg { + width: 100%; + height: 100%; + } +`;var p=function(c,e,l,r){var h=arguments.length,i=h<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,l):r,C;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(c,e,l,r);else for(var d=c.length-1;d>=0;d--)(C=c[d])&&(i=(h<3?C(i):h>3?C(e,l,i):C(e,l))||i);return h>3&&i&&Object.defineProperty(e,l,i),i};const I={browser:y,dao:V,defi:b,defiAlt:m,eth:E,layers:B,lock:L,login:_,network:P,nft:A,noun:j,profile:G,system:R,coinbase:Z,meld:D,onrampCard:z,moonpay:S,stripe:q,paypal:$,google:H,pencil:O,lightbulb:F,solana:U};let f=class extends u{constructor(){super(...arguments),this.name="browser",this.size="md"}render(){return this.style.cssText=` + --local-size: var(--wui-visual-size-${this.size}); + `,n`${I[this.name]}`}};f.styles=[g,T];p([o()],f.prototype,"name",void 0);p([o()],f.prototype,"size",void 0);f=p([k("wui-visual")],f); diff --git a/web3game/.vercel/output/static/assets/info-CSLZ5wvI.js b/web3game/.vercel/output/static/assets/info-CSLZ5wvI.js new file mode 100644 index 0000000000..e2821d3681 --- /dev/null +++ b/web3game/.vercel/output/static/assets/info-CSLZ5wvI.js @@ -0,0 +1,3 @@ +import{F as C}from"./index-DVkBgnkX.js";const t=C` + +`;export{t as infoSvg}; diff --git a/web3game/.vercel/output/static/assets/info-circle-COWIYv2l.js b/web3game/.vercel/output/static/assets/info-circle-COWIYv2l.js new file mode 100644 index 0000000000..981cf996b1 --- /dev/null +++ b/web3game/.vercel/output/static/assets/info-circle-COWIYv2l.js @@ -0,0 +1,12 @@ +import{F as l}from"./index-DVkBgnkX.js";const e=l` + + +`;export{e as infoCircleSvg}; diff --git a/web3game/.vercel/output/static/assets/lightbulb-CjRCkO6O.js b/web3game/.vercel/output/static/assets/lightbulb-CjRCkO6O.js new file mode 100644 index 0000000000..5fa885d01f --- /dev/null +++ b/web3game/.vercel/output/static/assets/lightbulb-CjRCkO6O.js @@ -0,0 +1,3 @@ +import{F as C}from"./index-DVkBgnkX.js";const e=C` + +`;export{e as lightbulbSvg}; diff --git a/web3game/.vercel/output/static/assets/mail-D7coD8o_.js b/web3game/.vercel/output/static/assets/mail-D7coD8o_.js new file mode 100644 index 0000000000..5754e6b344 --- /dev/null +++ b/web3game/.vercel/output/static/assets/mail-D7coD8o_.js @@ -0,0 +1,8 @@ +import{F as c}from"./index-DVkBgnkX.js";const e=c` + +`;export{e as mailSvg}; diff --git a/web3game/.vercel/output/static/assets/mobile-3Krzacvp.js b/web3game/.vercel/output/static/assets/mobile-3Krzacvp.js new file mode 100644 index 0000000000..4581271343 --- /dev/null +++ b/web3game/.vercel/output/static/assets/mobile-3Krzacvp.js @@ -0,0 +1,9 @@ +import{F as l}from"./index-DVkBgnkX.js";const e=l` + + +`;export{e as mobileSvg}; diff --git a/web3game/.vercel/output/static/assets/more-DGXZHGlR.js b/web3game/.vercel/output/static/assets/more-DGXZHGlR.js new file mode 100644 index 0000000000..ab592435aa --- /dev/null +++ b/web3game/.vercel/output/static/assets/more-DGXZHGlR.js @@ -0,0 +1,11 @@ +import{F as l}from"./index-DVkBgnkX.js";const a=l` + + +`;export{a as moreSvg}; diff --git a/web3game/.vercel/output/static/assets/network-placeholder-E-UjXM4z.js b/web3game/.vercel/output/static/assets/network-placeholder-E-UjXM4z.js new file mode 100644 index 0000000000..803455ffe1 --- /dev/null +++ b/web3game/.vercel/output/static/assets/network-placeholder-E-UjXM4z.js @@ -0,0 +1,14 @@ +import{F as l}from"./index-DVkBgnkX.js";const e=l` + + +`;export{e as networkPlaceholderSvg}; diff --git a/web3game/.vercel/output/static/assets/nftPlaceholder-CjHKbcZ4.js b/web3game/.vercel/output/static/assets/nftPlaceholder-CjHKbcZ4.js new file mode 100644 index 0000000000..2e9dd1670c --- /dev/null +++ b/web3game/.vercel/output/static/assets/nftPlaceholder-CjHKbcZ4.js @@ -0,0 +1,8 @@ +import{F as c}from"./index-DVkBgnkX.js";const l=c` + +`;export{l as nftPlaceholderSvg}; diff --git a/web3game/.vercel/output/static/assets/off-yFnShhD4.js b/web3game/.vercel/output/static/assets/off-yFnShhD4.js new file mode 100644 index 0000000000..5066b383c5 --- /dev/null +++ b/web3game/.vercel/output/static/assets/off-yFnShhD4.js @@ -0,0 +1,8 @@ +import{F as o}from"./index-DVkBgnkX.js";const l=o` + +`;export{l as offSvg}; diff --git a/web3game/.vercel/output/static/assets/onramp-BzOH_Bbb.js b/web3game/.vercel/output/static/assets/onramp-BzOH_Bbb.js new file mode 100644 index 0000000000..fbd396c44b --- /dev/null +++ b/web3game/.vercel/output/static/assets/onramp-BzOH_Bbb.js @@ -0,0 +1,603 @@ +import{q as re,s as J,B as Y,t as V,j as U,c as ie,A as _,u as se,v as ne,w as oe,i as R,r as y,x as c,y as B,z as C,O as D,M as I,p as ae,e as Z,W as ee,R as E,d as q,a as K,k as ce,S as M,T as le}from"./index-DVkBgnkX.js";import{n as p,c as g,o as m,r as d}from"./if-defined-DVOmkLu5.js";import{D as ue,T as de}from"./index-kA5-QyMM.js";import"./index-Cxc8tIRM.js";import"./index-QpqlfPgl.js";import"./index-B2osUT2V.js";import"./index-vgifefJD.js";import"./index-C5GW1wiz.js";import"./index-DeEXhxyT.js";import"./index-Cn1TwpSs.js";import"./index-BfDAOq8h.js";import"./index-CTojmOJx.js";const N={id:"2b92315d-eab7-5bef-84fa-089a131333f5",name:"USD Coin",symbol:"USDC",networks:[{name:"ethereum-mainnet",display_name:"Ethereum",chain_id:"1",contract_address:"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"},{name:"polygon-mainnet",display_name:"Polygon",chain_id:"137",contract_address:"0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174"}]},F={id:"USD",payment_method_limits:[{id:"card",min:"10.00",max:"7500.00"},{id:"ach_bank_account",min:"10.00",max:"25000.00"}]},pe={providers:J,selectedProvider:null,error:null,purchaseCurrency:N,paymentCurrency:F,purchaseCurrencies:[N],paymentCurrencies:[],quotesLoading:!1},l=re(pe),u={state:l,subscribe(s){return oe(l,()=>s(l))},subscribeKey(s,e){return ne(l,s,e)},setSelectedProvider(s){if(s&&s.name==="meld"){const e=U.state.activeChain===ie.CHAIN.SOLANA?"SOL":"USDC",t=_.state.address??"",i=new URL(s.url);i.searchParams.append("publicKey",se),i.searchParams.append("destinationCurrencyCode",e),i.searchParams.append("walletAddress",t),s.url=i.toString()}l.selectedProvider=s},setPurchaseCurrency(s){l.purchaseCurrency=s},setPaymentCurrency(s){l.paymentCurrency=s},setPurchaseAmount(s){this.state.purchaseAmount=s},setPaymentAmount(s){this.state.paymentAmount=s},async getAvailableCurrencies(){const s=await Y.getOnrampOptions();l.purchaseCurrencies=s.purchaseCurrencies,l.paymentCurrencies=s.paymentCurrencies,l.paymentCurrency=s.paymentCurrencies[0]||F,l.purchaseCurrency=s.purchaseCurrencies[0]||N,await V.fetchCurrencyImages(s.paymentCurrencies.map(e=>e.id)),await V.fetchTokenImages(s.purchaseCurrencies.map(e=>e.symbol))},async getQuote(){var s,e;l.quotesLoading=!0;try{const t=await Y.getOnrampQuote({purchaseCurrency:l.purchaseCurrency,paymentCurrency:l.paymentCurrency,amount:((s=l.paymentAmount)==null?void 0:s.toString())||"0",network:(e=l.purchaseCurrency)==null?void 0:e.symbol});return l.quotesLoading=!1,l.purchaseAmount=Number(t==null?void 0:t.purchaseAmount.amount),t}catch(t){return l.error=t.message,l.quotesLoading=!1,null}finally{l.quotesLoading=!1}},resetState(){l.providers=J,l.selectedProvider=null,l.error=null,l.purchaseCurrency=N,l.paymentCurrency=F,l.purchaseCurrencies=[N],l.paymentCurrencies=[],l.paymentAmount=void 0,l.purchaseAmount=void 0,l.quotesLoading=!1}},he=R` + :host { + width: 100%; + } + + :host > wui-flex { + width: 100%; + padding: var(--wui-spacing-s); + border-radius: var(--wui-border-radius-xs); + width: 100%; + display: flex; + align-items: center; + justify-content: flex-start; + gap: var(--wui-spacing-s); + } + + :host > wui-flex:hover { + background-color: var(--wui-color-gray-glass-002); + } + + .purchase-image-container { + display: flex; + justify-content: center; + align-items: center; + position: relative; + width: var(--wui-icon-box-size-lg); + height: var(--wui-icon-box-size-lg); + } + + .purchase-image-container wui-image { + width: 100%; + height: 100%; + position: relative; + border-radius: calc(var(--wui-icon-box-size-lg) / 2); + } + + .purchase-image-container wui-image::after { + content: ''; + display: block; + width: 100%; + height: 100%; + position: absolute; + inset: 0; + border-radius: calc(var(--wui-icon-box-size-lg) / 2); + box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005); + } + + .purchase-image-container wui-icon-box { + position: absolute; + right: 0; + bottom: 0; + transform: translate(20%, 20%); + } +`;var w=function(s,e,t,i){var n=arguments.length,r=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(o=s[a])&&(r=(n<3?o(r):n>3?o(e,t,r):o(e,t))||r);return n>3&&r&&Object.defineProperty(e,t,r),r};let h=class extends y{constructor(){super(...arguments),this.disabled=!1,this.color="inherit",this.label="Bought",this.purchaseValue="",this.purchaseCurrency="",this.date="",this.completed=!1,this.inProgress=!1,this.failed=!1,this.onClick=null,this.symbol=""}firstUpdated(){this.icon||this.fetchTokenImage()}render(){return c` + + ${this.imageTemplate()} + + + ${this.statusIconTemplate()} + ${this.label} + + + + ${this.purchaseValue} ${this.purchaseCurrency} + + + ${this.inProgress?c``:c`${this.date}`} + + `}async fetchTokenImage(){await V._fetchTokenImage(this.purchaseCurrency)}statusIconTemplate(){return this.inProgress?null:this.completed?this.boughtIconTemplate():this.errorIconTemplate()}errorIconTemplate(){return c``}imageTemplate(){const e=this.icon||`https://avatar.vercel.sh/andrew.svg?size=50&text=${this.symbol}`;return c` + + `}boughtIconTemplate(){return c``}};h.styles=[he];w([p({type:Boolean})],h.prototype,"disabled",void 0);w([p()],h.prototype,"color",void 0);w([p()],h.prototype,"label",void 0);w([p()],h.prototype,"purchaseValue",void 0);w([p()],h.prototype,"purchaseCurrency",void 0);w([p()],h.prototype,"date",void 0);w([p({type:Boolean})],h.prototype,"completed",void 0);w([p({type:Boolean})],h.prototype,"inProgress",void 0);w([p({type:Boolean})],h.prototype,"failed",void 0);w([p()],h.prototype,"onClick",void 0);w([p()],h.prototype,"symbol",void 0);w([p()],h.prototype,"icon",void 0);h=w([g("w3m-onramp-activity-item")],h);const me=R` + :host > wui-flex { + height: 500px; + overflow-y: auto; + overflow-x: hidden; + scrollbar-width: none; + padding: var(--wui-spacing-m); + box-sizing: border-box; + display: flex; + align-items: center; + justify-content: flex-start; + } + + :host > wui-flex::-webkit-scrollbar { + display: none; + } + + :host > wui-flex > wui-flex { + width: 100%; + } + + wui-transaction-list-item-loader { + width: 100%; + } +`;var L=function(s,e,t,i){var n=arguments.length,r=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(o=s[a])&&(r=(n<3?o(r):n>3?o(e,t,r):o(e,t))||r);return n>3&&r&&Object.defineProperty(e,t,r),r};const fe=7;let $=class extends y{constructor(){super(),this.unsubscribe=[],this.selectedOnRampProvider=u.state.selectedProvider,this.loading=!1,this.coinbaseTransactions=B.state.coinbaseTransactions,this.tokenImages=C.state.tokenImages,this.unsubscribe.push(u.subscribeKey("selectedProvider",e=>{this.selectedOnRampProvider=e}),C.subscribeKey("tokenImages",e=>this.tokenImages=e),()=>{clearTimeout(this.refetchTimeout)},B.subscribe(e=>{this.coinbaseTransactions={...e.coinbaseTransactions}})),B.clearCursor(),this.fetchTransactions()}render(){return c` + + ${this.loading?this.templateLoading():this.templateTransactionsByYear()} + + `}templateTransactions(e){return e==null?void 0:e.map(t=>{var a,j,Q;const i=ue.formatDate((a=t==null?void 0:t.metadata)==null?void 0:a.minedAt),n=t.transfers[0],r=n==null?void 0:n.fungible_info;if(!r)return null;const o=((j=r==null?void 0:r.icon)==null?void 0:j.url)||((Q=this.tokenImages)==null?void 0:Q[r.symbol||""]);return c` + + `})}templateTransactionsByYear(){return Object.keys(this.coinbaseTransactions).sort().reverse().map(t=>{const i=parseInt(t,10);return new Array(12).fill(null).map((r,o)=>o).reverse().map(r=>{var j;const o=de.getTransactionGroupTitle(i,r),a=(j=this.coinbaseTransactions[i])==null?void 0:j[r];return a?c` + + + ${o} + + + ${this.templateTransactions(a)} + + + `:null})})}async fetchTransactions(){await this.fetchCoinbaseTransactions()}async fetchCoinbaseTransactions(){const e=_.state.address,t=D.state.projectId;if(!e)throw new Error("No address found");if(!t)throw new Error("No projectId found");this.loading=!0,await B.fetchTransactions(e,"coinbase"),this.loading=!1,this.refetchLoadingTransactions()}refetchLoadingTransactions(){var n;const e=new Date;if((((n=this.coinbaseTransactions[e.getFullYear()])==null?void 0:n[e.getMonth()])||[]).filter(r=>r.metadata.status==="ONRAMP_TRANSACTION_STATUS_IN_PROGRESS").length===0){clearTimeout(this.refetchTimeout);return}this.refetchTimeout=setTimeout(async()=>{const r=_.state.address;await B.fetchTransactions(r,"coinbase"),this.refetchLoadingTransactions()},3e3)}templateLoading(){return Array(fe).fill(c` `).map(e=>e)}};$.styles=me;L([d()],$.prototype,"selectedOnRampProvider",void 0);L([d()],$.prototype,"loading",void 0);L([d()],$.prototype,"coinbaseTransactions",void 0);L([d()],$.prototype,"tokenImages",void 0);$=L([g("w3m-onramp-activity-view")],$);const we=R` + :host > wui-grid { + max-height: 360px; + overflow: auto; + } + + wui-flex { + transition: opacity var(--wui-ease-out-power-1) var(--wui-duration-md); + will-change: opacity; + } + + wui-grid::-webkit-scrollbar { + display: none; + } + + wui-flex.disabled { + opacity: 0.3; + pointer-events: none; + user-select: none; + } +`;var W=function(s,e,t,i){var n=arguments.length,r=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(o=s[a])&&(r=(n<3?o(r):n>3?o(e,t,r):o(e,t))||r);return n>3&&r&&Object.defineProperty(e,t,r),r};let O=class extends y{constructor(){super(),this.unsubscribe=[],this.selectedCurrency=u.state.paymentCurrency,this.currencies=u.state.paymentCurrencies,this.currencyImages=C.state.currencyImages,this.checked=!1,this.unsubscribe.push(u.subscribe(e=>{this.selectedCurrency=e.paymentCurrency,this.currencies=e.paymentCurrencies}),C.subscribeKey("currencyImages",e=>this.currencyImages=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){var a;const{termsConditionsUrl:e,privacyPolicyUrl:t}=D.state,i=(a=D.state.features)==null?void 0:a.legalCheckbox,o=!!(e||t)&&!!i&&!this.checked;return c` + + + ${this.currenciesTemplate(o)} + + + `}currenciesTemplate(e=!1){return this.currencies.map(t=>{var i;return c` + this.selectCurrency(t)} + variant="image" + tabIdx=${m(e?-1:void 0)} + > + ${t.id} + + `})}selectCurrency(e){e&&(u.setPaymentCurrency(e),I.close())}onCheckboxChange(e){this.checked=!!e.detail}};O.styles=we;W([d()],O.prototype,"selectedCurrency",void 0);W([d()],O.prototype,"currencies",void 0);W([d()],O.prototype,"currencyImages",void 0);W([d()],O.prototype,"checked",void 0);O=W([g("w3m-onramp-fiat-select-view")],O);const ye=R` + button { + padding: var(--wui-spacing-s); + border-radius: var(--wui-border-radius-xs); + border: none; + outline: none; + background-color: var(--wui-color-gray-glass-002); + width: 100%; + display: flex; + align-items: center; + justify-content: flex-start; + gap: var(--wui-spacing-s); + transition: background-color var(--wui-ease-out-power-1) var(--wui-duration-md); + will-change: background-color; + } + + button:hover { + background-color: var(--wui-color-gray-glass-005); + } + + .provider-image { + width: var(--wui-spacing-3xl); + min-width: var(--wui-spacing-3xl); + height: var(--wui-spacing-3xl); + border-radius: calc(var(--wui-border-radius-xs) - calc(var(--wui-spacing-s) / 2)); + position: relative; + overflow: hidden; + } + + .provider-image::after { + content: ''; + display: block; + width: 100%; + height: 100%; + position: absolute; + inset: 0; + border-radius: calc(var(--wui-border-radius-xs) - calc(var(--wui-spacing-s) / 2)); + box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005); + } + + .network-icon { + width: var(--wui-spacing-m); + height: var(--wui-spacing-m); + border-radius: calc(var(--wui-spacing-m) / 2); + overflow: hidden; + box-shadow: + 0 0 0 3px var(--wui-color-gray-glass-002), + 0 0 0 3px var(--wui-color-modal-bg); + transition: box-shadow var(--wui-ease-out-power-1) var(--wui-duration-md); + will-change: box-shadow; + } + + button:hover .network-icon { + box-shadow: + 0 0 0 3px var(--wui-color-gray-glass-005), + 0 0 0 3px var(--wui-color-modal-bg); + } +`;var A=function(s,e,t,i){var n=arguments.length,r=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(o=s[a])&&(r=(n<3?o(r):n>3?o(e,t,r):o(e,t))||r);return n>3&&r&&Object.defineProperty(e,t,r),r};let v=class extends y{constructor(){super(...arguments),this.disabled=!1,this.color="inherit",this.label="",this.feeRange="",this.loading=!1,this.onClick=null}render(){return c` + + `}networksTemplate(){var i;const e=U.getAllRequestedCaipNetworks(),t=(i=e==null?void 0:e.filter(n=>{var r;return(r=n==null?void 0:n.assets)==null?void 0:r.imageId}))==null?void 0:i.slice(0,5);return c` + + ${t==null?void 0:t.map(n=>c` + + + + `)} + + `}};v.styles=[ye];A([p({type:Boolean})],v.prototype,"disabled",void 0);A([p()],v.prototype,"color",void 0);A([p()],v.prototype,"name",void 0);A([p()],v.prototype,"label",void 0);A([p()],v.prototype,"feeRange",void 0);A([p({type:Boolean})],v.prototype,"loading",void 0);A([p()],v.prototype,"onClick",void 0);v=A([g("w3m-onramp-provider-item")],v);const ge=R` + wui-flex { + border-top: 1px solid var(--wui-color-gray-glass-005); + } + + a { + text-decoration: none; + color: var(--wui-color-fg-175); + font-weight: 500; + display: flex; + align-items: center; + justify-content: center; + gap: var(--wui-spacing-3xs); + } +`;var be=function(s,e,t,i){var n=arguments.length,r=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(o=s[a])&&(r=(n<3?o(r):n>3?o(e,t,r):o(e,t))||r);return n>3&&r&&Object.defineProperty(e,t,r),r};let H=class extends y{render(){const{termsConditionsUrl:e,privacyPolicyUrl:t}=D.state;return!e&&!t?null:c` + + + We work with the best providers to give you the lowest fees and best support. More options + coming soon! + + + ${this.howDoesItWorkTemplate()} + + `}howDoesItWorkTemplate(){return c` + + How does it work? + `}onWhatIsBuy(){Z.sendEvent({type:"track",event:"SELECT_WHAT_IS_A_BUY",properties:{isSmartAccount:_.state.preferredAccountType===ee.ACCOUNT_TYPES.SMART_ACCOUNT}}),E.push("WhatIsABuy")}};H.styles=[ge];H=be([g("w3m-onramp-providers-footer")],H);var te=function(s,e,t,i){var n=arguments.length,r=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(o=s[a])&&(r=(n<3?o(r):n>3?o(e,t,r):o(e,t))||r);return n>3&&r&&Object.defineProperty(e,t,r),r};let G=class extends y{constructor(){super(),this.unsubscribe=[],this.providers=u.state.providers,this.unsubscribe.push(u.subscribeKey("providers",e=>{this.providers=e}))}firstUpdated(){const e=this.providers.map(async t=>t.name==="coinbase"?await this.getCoinbaseOnRampURL():Promise.resolve(t==null?void 0:t.url));Promise.all(e).then(t=>{this.providers=this.providers.map((i,n)=>({...i,url:t[n]||""}))})}render(){return c` + + ${this.onRampProvidersTemplate()} + + + `}onRampProvidersTemplate(){return this.providers.filter(e=>e.supportedChains.includes(U.state.activeChain??"eip155")).map(e=>c` + {this.onClickProvider(e)}} + ?disabled=${!e.url} + > + `)}onClickProvider(e){u.setSelectedProvider(e),E.push("BuyInProgress"),q.openHref(e.url,"popupWindow","width=600,height=800,scrollbars=yes"),Z.sendEvent({type:"track",event:"SELECT_BUY_PROVIDER",properties:{provider:e.name,isSmartAccount:_.state.preferredAccountType===ee.ACCOUNT_TYPES.SMART_ACCOUNT}})}async getCoinbaseOnRampURL(){const e=_.state.address,t=U.state.activeCaipNetwork;if(!e)throw new Error("No address found");if(!(t!=null&&t.name))throw new Error("No network found");const i=K.WC_COINBASE_PAY_SDK_CHAIN_NAME_MAP[t.name]??K.WC_COINBASE_PAY_SDK_FALLBACK_CHAIN,n=u.state.purchaseCurrency,r=n?[n.symbol]:u.state.purchaseCurrencies.map(o=>o.symbol);return await Y.generateOnRampURL({defaultNetwork:i,destinationWallets:[{address:e,blockchains:K.WC_COINBASE_PAY_SDK_CHAINS,assets:r}],partnerUserId:e,purchaseAmount:u.state.purchaseAmount})}};te([d()],G.prototype,"providers",void 0);G=te([g("w3m-onramp-providers-view")],G);const ve=R` + :host > wui-grid { + max-height: 360px; + overflow: auto; + } + + wui-flex { + transition: opacity var(--wui-ease-out-power-1) var(--wui-duration-md); + will-change: opacity; + } + + wui-grid::-webkit-scrollbar { + display: none; + } + + wui-flex.disabled { + opacity: 0.3; + pointer-events: none; + user-select: none; + } +`;var z=function(s,e,t,i){var n=arguments.length,r=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(o=s[a])&&(r=(n<3?o(r):n>3?o(e,t,r):o(e,t))||r);return n>3&&r&&Object.defineProperty(e,t,r),r};let k=class extends y{constructor(){super(),this.unsubscribe=[],this.selectedCurrency=u.state.purchaseCurrencies,this.tokens=u.state.purchaseCurrencies,this.tokenImages=C.state.tokenImages,this.checked=!1,this.unsubscribe.push(u.subscribe(e=>{this.selectedCurrency=e.purchaseCurrencies,this.tokens=e.purchaseCurrencies}),C.subscribeKey("tokenImages",e=>this.tokenImages=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){var a;const{termsConditionsUrl:e,privacyPolicyUrl:t}=D.state,i=(a=D.state.features)==null?void 0:a.legalCheckbox,o=!!(e||t)&&!!i&&!this.checked;return c` + + + ${this.currenciesTemplate(o)} + + + `}currenciesTemplate(e=!1){return this.tokens.map(t=>{var i;return c` + this.selectToken(t)} + variant="image" + tabIdx=${m(e?-1:void 0)} + > + + ${t.name} + ${t.symbol} + + + `})}selectToken(e){e&&(u.setPurchaseCurrency(e),I.close())}onCheckboxChange(e){this.checked=!!e.detail}};k.styles=ve;z([d()],k.prototype,"selectedCurrency",void 0);z([d()],k.prototype,"tokens",void 0);z([d()],k.prototype,"tokenImages",void 0);z([d()],k.prototype,"checked",void 0);k=z([g("w3m-onramp-token-select-view")],k);const xe=R` + @keyframes shake { + 0% { + transform: translateX(0); + } + 25% { + transform: translateX(3px); + } + 50% { + transform: translateX(-3px); + } + 75% { + transform: translateX(3px); + } + 100% { + transform: translateX(0); + } + } + + wui-flex:first-child:not(:only-child) { + position: relative; + } + + wui-loading-thumbnail { + position: absolute; + } + + wui-visual { + width: var(--wui-wallet-image-size-lg); + height: var(--wui-wallet-image-size-lg); + border-radius: calc(var(--wui-border-radius-5xs) * 9 - var(--wui-border-radius-xxs)); + position: relative; + overflow: hidden; + } + + wui-visual::after { + content: ''; + display: block; + width: 100%; + height: 100%; + position: absolute; + inset: 0; + border-radius: calc(var(--wui-border-radius-5xs) * 9 - var(--wui-border-radius-xxs)); + box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005); + } + + wui-icon-box { + position: absolute; + right: calc(var(--wui-spacing-3xs) * -1); + bottom: calc(var(--wui-spacing-3xs) * -1); + opacity: 0; + transform: scale(0.5); + transition: + opacity var(--wui-ease-out-power-2) var(--wui-duration-lg), + transform var(--wui-ease-out-power-2) var(--wui-duration-lg); + will-change: opacity, transform; + } + + wui-text[align='center'] { + width: 100%; + padding: 0px var(--wui-spacing-l); + } + + [data-error='true'] wui-icon-box { + opacity: 1; + transform: scale(1); + } + + [data-error='true'] > wui-flex:first-child { + animation: shake 250ms cubic-bezier(0.36, 0.07, 0.19, 0.97) both; + } + + [data-retry='false'] wui-link { + display: none; + } + + [data-retry='true'] wui-link { + display: block; + opacity: 1; + } + + wui-link { + padding: var(--wui-spacing-4xs) var(--wui-spacing-xxs); + } +`;var b=function(s,e,t,i){var n=arguments.length,r=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(o=s[a])&&(r=(n<3?o(r):n>3?o(e,t,r):o(e,t))||r);return n>3&&r&&Object.defineProperty(e,t,r),r};let f=class extends y{constructor(){super(),this.unsubscribe=[],this.selectedOnRampProvider=u.state.selectedProvider,this.uri=ce.state.wcUri,this.ready=!1,this.showRetry=!1,this.buffering=!1,this.error=!1,this.startTime=null,this.isMobile=!1,this.onRetry=void 0,this.unsubscribe.push(u.subscribeKey("selectedProvider",e=>{this.selectedOnRampProvider=e})),this.watchTransactions()}disconnectedCallback(){this.intervalId&&clearInterval(this.intervalId)}render(){var i,n;let e="Continue in external window";this.error?e="Buy failed":this.selectedOnRampProvider&&(e=`Buy in ${(i=this.selectedOnRampProvider)==null?void 0:i.label}`);const t=this.error?"Buy can be declined from your side or due to and error on the provider app":"We’ll notify you once your Buy is processed";return c` + + + + + + ${this.error?null:this.loaderTemplate()} + + + + + + + ${e} + + ${t} + + + ${this.error?this.tryAgainTemplate():null} + + + + + + Copy link + + + `}watchTransactions(){if(this.selectedOnRampProvider)switch(this.selectedOnRampProvider.name){case"coinbase":this.startTime=Date.now(),this.initializeCoinbaseTransactions();break}}async initializeCoinbaseTransactions(){await this.watchCoinbaseTransactions(),this.intervalId=setInterval(()=>this.watchCoinbaseTransactions(),4e3)}async watchCoinbaseTransactions(){try{const e=_.state.address;if(!e)throw new Error("No address found");(await Y.fetchTransactions({account:e,onramp:"coinbase"})).data.filter(n=>new Date(n.metadata.minedAt)>new Date(this.startTime)||n.metadata.status==="ONRAMP_TRANSACTION_STATUS_IN_PROGRESS").length?(clearInterval(this.intervalId),E.replace("OnRampActivity")):this.startTime&&Date.now()-this.startTime>=18e4&&(clearInterval(this.intervalId),this.error=!0)}catch(e){M.showError(e)}}onTryAgain(){this.selectedOnRampProvider&&(this.error=!1,q.openHref(this.selectedOnRampProvider.url,"popupWindow","width=600,height=800,scrollbars=yes"))}tryAgainTemplate(){var e;return(e=this.selectedOnRampProvider)!=null&&e.url?c` + + Try again + `:null}loaderTemplate(){const e=le.state.themeVariables["--w3m-border-radius-master"],t=e?parseInt(e.replace("px",""),10):4;return c``}onCopyUri(){var e;if(!((e=this.selectedOnRampProvider)!=null&&e.url)){M.showError("No link found"),E.goBack();return}try{q.copyToClopboard(this.selectedOnRampProvider.url),M.showSuccess("Link copied")}catch{M.showError("Failed to copy")}}};f.styles=xe;b([d()],f.prototype,"intervalId",void 0);b([d()],f.prototype,"selectedOnRampProvider",void 0);b([d()],f.prototype,"uri",void 0);b([d()],f.prototype,"ready",void 0);b([d()],f.prototype,"showRetry",void 0);b([d()],f.prototype,"buffering",void 0);b([d()],f.prototype,"error",void 0);b([d()],f.prototype,"startTime",void 0);b([p({type:Boolean})],f.prototype,"isMobile",void 0);b([p()],f.prototype,"onRetry",void 0);f=b([g("w3m-buy-in-progress-view")],f);var Ce=function(s,e,t,i){var n=arguments.length,r=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(o=s[a])&&(r=(n<3?o(r):n>3?o(e,t,r):o(e,t))||r);return n>3&&r&&Object.defineProperty(e,t,r),r};let X=class extends y{render(){return c` + + + + + Quickly and easily buy digital assets! + + + Simply select your preferred onramp provider and add digital assets to your account + using your credit card or bank transfer + + + + + Buy + + + `}};X=Ce([g("w3m-what-is-a-buy-view")],X);const Te=R` + :host { + width: 100%; + } + + wui-loading-spinner { + position: absolute; + top: 50%; + right: 20px; + transform: translateY(-50%); + } + + .currency-container { + position: absolute; + top: 50%; + transform: translateY(-50%); + right: var(--wui-spacing-1xs); + height: 40px; + padding: var(--wui-spacing-xs) var(--wui-spacing-1xs) var(--wui-spacing-xs) + var(--wui-spacing-xs); + min-width: 95px; + border-radius: var(--FULL, 1000px); + border: 1px solid var(--wui-color-gray-glass-002); + background: var(--wui-color-gray-glass-002); + cursor: pointer; + } + + .currency-container > wui-image { + height: 24px; + width: 24px; + border-radius: 50%; + } +`;var S=function(s,e,t,i){var n=arguments.length,r=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(o=s[a])&&(r=(n<3?o(r):n>3?o(e,t,r):o(e,t))||r);return n>3&&r&&Object.defineProperty(e,t,r),r};let T=class extends y{constructor(){var e;super(),this.unsubscribe=[],this.type="Token",this.value=0,this.currencies=[],this.selectedCurrency=(e=this.currencies)==null?void 0:e[0],this.currencyImages=C.state.currencyImages,this.tokenImages=C.state.tokenImages,this.unsubscribe.push(u.subscribeKey("purchaseCurrency",t=>{!t||this.type==="Fiat"||(this.selectedCurrency=this.formatPurchaseCurrency(t))}),u.subscribeKey("paymentCurrency",t=>{!t||this.type==="Token"||(this.selectedCurrency=this.formatPaymentCurrency(t))}),u.subscribe(t=>{this.type==="Fiat"?this.currencies=t.purchaseCurrencies.map(this.formatPurchaseCurrency):this.currencies=t.paymentCurrencies.map(this.formatPaymentCurrency)}),C.subscribe(t=>{this.currencyImages={...t.currencyImages},this.tokenImages={...t.tokenImages}}))}firstUpdated(){u.getAvailableCurrencies()}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){var i;const e=((i=this.selectedCurrency)==null?void 0:i.symbol)||"",t=this.currencyImages[e]||this.tokenImages[e];return c` + ${this.selectedCurrency?c` I.open({view:`OnRamp${this.type}Select`})} + > + + ${this.selectedCurrency.symbol} + `:c``} + `}formatPaymentCurrency(e){return{name:e.id,symbol:e.id}}formatPurchaseCurrency(e){return{name:e.name,symbol:e.symbol}}};T.styles=Te;S([p({type:String})],T.prototype,"type",void 0);S([p({type:Number})],T.prototype,"value",void 0);S([d()],T.prototype,"currencies",void 0);S([d()],T.prototype,"selectedCurrency",void 0);S([d()],T.prototype,"currencyImages",void 0);S([d()],T.prototype,"tokenImages",void 0);T=S([g("w3m-onramp-input")],T);const Re=R` + :host > wui-flex { + width: 100%; + max-width: 360px; + } + + :host > wui-flex > wui-flex { + border-radius: var(--wui-border-radius-l); + width: 100%; + } + + .amounts-container { + width: 100%; + } +`;var P=function(s,e,t,i){var n=arguments.length,r=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(o=s[a])&&(r=(n<3?o(r):n>3?o(e,t,r):o(e,t))||r);return n>3&&r&&Object.defineProperty(e,t,r),r};const Ae={USD:"$",EUR:"€",GBP:"£"},Pe=[100,250,500,1e3];let x=class extends y{constructor(){super(),this.unsubscribe=[],this.disabled=!1,this.caipAddress=U.state.activeCaipAddress,this.loading=I.state.loading,this.paymentCurrency=u.state.paymentCurrency,this.paymentAmount=u.state.paymentAmount,this.purchaseAmount=u.state.purchaseAmount,this.quoteLoading=u.state.quotesLoading,this.unsubscribe.push(U.subscribeKey("activeCaipAddress",e=>this.caipAddress=e),I.subscribeKey("loading",e=>{this.loading=e}),u.subscribe(e=>{this.paymentCurrency=e.paymentCurrency,this.paymentAmount=e.paymentAmount,this.purchaseAmount=e.purchaseAmount,this.quoteLoading=e.quotesLoading}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return c` + + + + + + ${Pe.map(e=>{var t;return c`this.selectPresetAmount(e)} + >${`${Ae[((t=this.paymentCurrency)==null?void 0:t.id)||"USD"]} ${e}`}`})} + + ${this.templateButton()} + + + `}templateButton(){return this.caipAddress?c` + Get quotes + `:c` + Connect wallet + `}getQuotes(){this.loading||I.open({view:"OnRampProviders"})}openModal(){I.open({view:"Connect"})}async onPaymentAmountChange(e){u.setPaymentAmount(Number(e.detail)),await u.getQuote()}async selectPresetAmount(e){u.setPaymentAmount(e),await u.getQuote()}};x.styles=Re;P([p({type:Boolean})],x.prototype,"disabled",void 0);P([d()],x.prototype,"caipAddress",void 0);P([d()],x.prototype,"loading",void 0);P([d()],x.prototype,"paymentCurrency",void 0);P([d()],x.prototype,"paymentAmount",void 0);P([d()],x.prototype,"purchaseAmount",void 0);P([d()],x.prototype,"quoteLoading",void 0);x=P([g("w3m-onramp-widget")],x);export{f as W3mBuyInProgressView,$ as W3mOnRampActivityView,G as W3mOnRampProvidersView,O as W3mOnrampFiatSelectView,k as W3mOnrampTokensView,x as W3mOnrampWidget,X as W3mWhatIsABuyView}; diff --git a/web3game/.vercel/output/static/assets/play-store-tvJjzaSb.js b/web3game/.vercel/output/static/assets/play-store-tvJjzaSb.js new file mode 100644 index 0000000000..4ebd6f260f --- /dev/null +++ b/web3game/.vercel/output/static/assets/play-store-tvJjzaSb.js @@ -0,0 +1,32 @@ +import{F as a}from"./index-DVkBgnkX.js";const t=a` + + + + + + +`;export{t as playStoreSvg}; diff --git a/web3game/.vercel/output/static/assets/plus-DA4pqP2R.js b/web3game/.vercel/output/static/assets/plus-DA4pqP2R.js new file mode 100644 index 0000000000..15feeeaf92 --- /dev/null +++ b/web3game/.vercel/output/static/assets/plus-DA4pqP2R.js @@ -0,0 +1,13 @@ +import{F as e}from"./index-DVkBgnkX.js";const o=e` + `;export{o as plusSvg}; diff --git a/web3game/.vercel/output/static/assets/qr-code-BC_08Sos.js b/web3game/.vercel/output/static/assets/qr-code-BC_08Sos.js new file mode 100644 index 0000000000..8d2faabce3 --- /dev/null +++ b/web3game/.vercel/output/static/assets/qr-code-BC_08Sos.js @@ -0,0 +1,6 @@ +import{F as a}from"./index-DVkBgnkX.js";const s=a` + +`;export{s as qrCodeIcon}; diff --git a/web3game/.vercel/output/static/assets/receive-BTHURE40.js b/web3game/.vercel/output/static/assets/receive-BTHURE40.js new file mode 100644 index 0000000000..a6d91660d3 --- /dev/null +++ b/web3game/.vercel/output/static/assets/receive-BTHURE40.js @@ -0,0 +1,83 @@ +import{i as y,b as N,f as $,r as v,x as l,A as w,j as u,S as f,p as h,T as k,W as A,R,d as T}from"./index-DVkBgnkX.js";import{n as x,c as C,U as I,o as S,r as m}from"./if-defined-DVOmkLu5.js";import"./index-BaPrYmVj.js";import"./index-QpqlfPgl.js";import"./index-BeTGsQ0g.js";const O=y` + button { + display: flex; + gap: var(--wui-spacing-xl); + width: 100%; + background-color: var(--wui-color-gray-glass-002); + border-radius: var(--wui-border-radius-xxs); + padding: var(--wui-spacing-m) var(--wui-spacing-s); + } + + wui-text { + width: 100%; + } + + wui-flex { + width: auto; + } + + .network-icon { + width: var(--wui-spacing-2l); + height: var(--wui-spacing-2l); + border-radius: calc(var(--wui-spacing-2l) / 2); + overflow: hidden; + box-shadow: + 0 0 0 3px var(--wui-color-gray-glass-002), + 0 0 0 3px var(--wui-color-modal-bg); + } +`;var g=function(n,e,r,i){var a=arguments.length,t=a<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(n,e,r,i);else for(var s=n.length-1;s>=0;s--)(o=n[s])&&(t=(a<3?o(t):a>3?o(e,r,t):o(e,r))||t);return a>3&&t&&Object.defineProperty(e,r,t),t};let p=class extends v{constructor(){super(...arguments),this.networkImages=[""],this.text=""}render(){return l` + + `}networksTemplate(){const e=this.networkImages.slice(0,5);return l` + ${e==null?void 0:e.map(r=>l` `)} + `}};p.styles=[N,$,O];g([x({type:Array})],p.prototype,"networkImages",void 0);g([x()],p.prototype,"text",void 0);p=g([C("wui-compatible-network")],p);const _=y` + wui-compatible-network { + margin-top: var(--wui-spacing-l); + } +`;var d=function(n,e,r,i){var a=arguments.length,t=a<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(n,e,r,i);else for(var s=n.length-1;s>=0;s--)(o=n[s])&&(t=(a<3?o(t):a>3?o(e,r,t):o(e,r))||t);return a>3&&t&&Object.defineProperty(e,r,t),t};let c=class extends v{constructor(){super(),this.unsubscribe=[],this.address=w.state.address,this.profileName=w.state.profileName,this.network=u.state.activeCaipNetwork,this.preferredAccountType=w.state.preferredAccountType,this.unsubscribe.push(w.subscribe(e=>{e.address?(this.address=e.address,this.profileName=e.profileName,this.preferredAccountType=e.preferredAccountType):f.showError("Account not found")}),u.subscribeKey("activeCaipNetwork",e=>{e!=null&&e.id&&(this.network=e)}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){if(!this.address)throw new Error("w3m-wallet-receive-view: No account provided");const e=h.getNetworkImage(this.network);return l` + + + + + Copy your address or scan this QR code + + + ${this.networkTemplate()} + `}networkTemplate(){var o;const e=u.getAllRequestedCaipNetworks(),r=u.checkIfSmartAccountEnabled(),i=u.state.activeCaipNetwork;if(this.preferredAccountType===A.ACCOUNT_TYPES.SMART_ACCOUNT&&r)return i?l``:null;const t=((o=e==null?void 0:e.filter(s=>{var b;return(b=s==null?void 0:s.assets)==null?void 0:b.imageId}))==null?void 0:o.slice(0,5)).map(h.getNetworkImage).filter(Boolean);return l``}onReceiveClick(){R.push("WalletCompatibleNetworks")}onCopyClick(){try{this.address&&(T.copyToClopboard(this.address),f.showSuccess("Address copied"))}catch{f.showError("Failed to copy")}}};c.styles=_;d([m()],c.prototype,"address",void 0);d([m()],c.prototype,"profileName",void 0);d([m()],c.prototype,"network",void 0);d([m()],c.prototype,"preferredAccountType",void 0);c=d([C("w3m-wallet-receive-view")],c);export{c as W3mWalletReceiveView}; diff --git a/web3game/.vercel/output/static/assets/recycle-horizontal-DLiPzQIQ.js b/web3game/.vercel/output/static/assets/recycle-horizontal-DLiPzQIQ.js new file mode 100644 index 0000000000..7634e9ea9a --- /dev/null +++ b/web3game/.vercel/output/static/assets/recycle-horizontal-DLiPzQIQ.js @@ -0,0 +1,9 @@ +import{F as C}from"./index-DVkBgnkX.js";const o=C` + `;export{o as recycleHorizontalSvg}; diff --git a/web3game/.vercel/output/static/assets/refresh-DQ7TTnTe.js b/web3game/.vercel/output/static/assets/refresh-DQ7TTnTe.js new file mode 100644 index 0000000000..51bbcff20a --- /dev/null +++ b/web3game/.vercel/output/static/assets/refresh-DQ7TTnTe.js @@ -0,0 +1,8 @@ +import{F as l}from"./index-DVkBgnkX.js";const o=l` + +`;export{o as refreshSvg}; diff --git a/web3game/.vercel/output/static/assets/reown-logo-CtO9kn0h.js b/web3game/.vercel/output/static/assets/reown-logo-CtO9kn0h.js new file mode 100644 index 0000000000..f3f9035ec4 --- /dev/null +++ b/web3game/.vercel/output/static/assets/reown-logo-CtO9kn0h.js @@ -0,0 +1,12 @@ +import{F as C}from"./index-DVkBgnkX.js";const l=C` + + + + + + + + + + +`;export{l as reownSvg}; diff --git a/web3game/.vercel/output/static/assets/search-CSgRmoBq.js b/web3game/.vercel/output/static/assets/search-CSgRmoBq.js new file mode 100644 index 0000000000..9a1b67b044 --- /dev/null +++ b/web3game/.vercel/output/static/assets/search-CSgRmoBq.js @@ -0,0 +1,8 @@ +import{F as l}from"./index-DVkBgnkX.js";const o=l` + +`;export{o as searchSvg}; diff --git a/web3game/.vercel/output/static/assets/secp256k1-C-C-k1yE.js b/web3game/.vercel/output/static/assets/secp256k1-C-C-k1yE.js new file mode 100644 index 0000000000..f9dcc1e528 --- /dev/null +++ b/web3game/.vercel/output/static/assets/secp256k1-C-C-k1yE.js @@ -0,0 +1 @@ +import{ae as se,af as ce,ag as fe,ah as _t,ai as ae,aj as ue,ak as le,al as de}from"./index-DVkBgnkX.js";/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const mt=BigInt(0),bt=BigInt(1),he=BigInt(2);function nt(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function gt(e){if(!nt(e))throw new Error("Uint8Array expected")}function ct(e,n){if(typeof n!="boolean")throw new Error(e+" boolean expected, got "+n)}const we=Array.from({length:256},(e,n)=>n.toString(16).padStart(2,"0"));function ft(e){gt(e);let n="";for(let t=0;t=$._0&&e<=$._9)return e-$._0;if(e>=$.A&&e<=$.F)return e-($.A-10);if(e>=$.a&&e<=$.f)return e-($.a-10)}function at(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);const n=e.length,t=n/2;if(n%2)throw new Error("hex string expected, got unpadded hex of length "+n);const r=new Uint8Array(t);for(let i=0,s=0;itypeof e=="bigint"&&mt<=e;function Et(e,n,t){return xt(e)&&xt(n)&&xt(t)&&n<=e&&emt;e>>=bt,n+=1);return n}function me(e,n){return e>>BigInt(n)&bt}function be(e,n,t){return e|(t?bt:mt)<(he<new Uint8Array(e),Mt=e=>Uint8Array.from(e);function Wt(e,n,t){if(typeof e!="number"||e<2)throw new Error("hashLen must be a number");if(typeof n!="number"||n<2)throw new Error("qByteLen must be a number");if(typeof t!="function")throw new Error("hmacFn must be a function");let r=St(e),i=St(e),s=0;const f=()=>{r.fill(1),i.fill(0),s=0},a=(...A)=>t(i,r,...A),o=(A=St())=>{i=a(Mt([0]),A),r=a(),A.length!==0&&(i=a(Mt([1]),A),r=a())},u=()=>{if(s++>=1e3)throw new Error("drbg: tried 1000 values");let A=0;const d=[];for(;A{f(),o(A);let v;for(;!(v=d(u()));)o();return f(),v}}const Ee={bigint:e=>typeof e=="bigint",function:e=>typeof e=="function",boolean:e=>typeof e=="boolean",string:e=>typeof e=="string",stringOrUint8Array:e=>typeof e=="string"||nt(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,n)=>n.Fp.isValid(e),hash:e=>typeof e=="function"&&Number.isSafeInteger(e.outputLen)};function pt(e,n,t={}){const r=(i,s,f)=>{const a=Ee[s];if(typeof a!="function")throw new Error("invalid validator function");const o=e[i];if(!(f&&o===void 0)&&!a(o,e))throw new Error("param "+String(i)+" is invalid. Expected "+s+", got "+o)};for(const[i,s]of Object.entries(n))r(i,s,!1);for(const[i,s]of Object.entries(t))r(i,s,!0);return e}const Be=()=>{throw new Error("not implemented")};function Ot(e){const n=new WeakMap;return(t,...r)=>{const i=n.get(t);if(i!==void 0)return i;const s=e(t,...r);return n.set(t,s),s}}const ve=Object.freeze(Object.defineProperty({__proto__:null,aInRange:et,abool:ct,abytes:gt,bitGet:me,bitLen:Gt,bitMask:Rt,bitSet:be,bytesToHex:ft,bytesToNumberBE:tt,bytesToNumberLE:Ut,concatBytes:wt,createHmacDrbg:Wt,ensureBytes:P,equalBytes:pe,hexToBytes:at,hexToNumber:kt,inRange:Et,isBytes:nt,memoized:Ot,notImplemented:Be,numberToBytesBE:ut,numberToBytesLE:Zt,numberToHexUnpadded:st,numberToVarBytesBE:ge,utf8ToBytes:ye,validateObject:pt},Symbol.toStringTag,{value:"Module"}));class Xt extends se{constructor(n,t){super(),this.finished=!1,this.destroyed=!1,ce(n);const r=fe(t);if(this.iHash=n.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const i=this.blockLen,s=new Uint8Array(i);s.set(r.length>i?n.create().update(r).digest():r);for(let f=0;fnew Xt(e,n).update(t).digest();Dt.create=(e,n)=>new Xt(e,n);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Z=BigInt(0),z=BigInt(1),J=BigInt(2),xe=BigInt(3),Lt=BigInt(4),Vt=BigInt(5),jt=BigInt(8);function V(e,n){const t=e%n;return t>=Z?t:n+t}function Se(e,n,t){if(nZ;)n&z&&(r=r*e%t),e=e*e%t,n>>=z;return r}function Y(e,n,t){let r=e;for(;n-- >Z;)r*=r,r%=t;return r}function Ht(e,n){if(e===Z)throw new Error("invert: expected non-zero number");if(n<=Z)throw new Error("invert: expected positive modulus, got "+n);let t=V(e,n),r=n,i=Z,s=z;for(;t!==Z;){const a=r/t,o=r%t,u=i-s*a;r=t,t=o,i=s,s=u}if(r!==z)throw new Error("invert: does not exist");return V(i,n)}function Ie(e){const n=(e-z)/J;let t,r,i;for(t=e-z,r=0;t%J===Z;t/=J,r++);for(i=J;i1e3)throw new Error("Cannot find square root: likely non-prime P");if(r===1){const f=(e+z)/Lt;return function(o,u){const E=o.pow(u,f);if(!o.eql(o.sqr(E),u))throw new Error("Cannot find square root");return E}}const s=(t+z)/J;return function(a,o){if(a.pow(o,n)===a.neg(a.ONE))throw new Error("Cannot find square root");let u=r,E=a.pow(a.mul(a.ONE,i),t),A=a.pow(o,s),d=a.pow(o,t);for(;!a.eql(d,a.ONE);){if(a.eql(d,a.ZERO))return a.ZERO;let v=1;for(let p=a.sqr(d);v(r[i]="function",r),n);return pt(e,t)}function Oe(e,n,t){if(tZ;)t&z&&(r=e.mul(r,i)),i=e.sqr(i),t>>=z;return r}function Le(e,n){const t=new Array(n.length),r=n.reduce((s,f,a)=>e.is0(f)?s:(t[a]=s,e.mul(s,f)),e.ONE),i=e.inv(r);return n.reduceRight((s,f,a)=>e.is0(f)?s:(t[a]=e.mul(s,t[a]),e.mul(s,f)),i),t}function Qt(e,n){const t=n!==void 0?n:e.toString(2).length,r=Math.ceil(t/8);return{nBitLength:t,nByteLength:r}}function Jt(e,n,t=!1,r={}){if(e<=Z)throw new Error("invalid field: expected ORDER > 0, got "+e);const{nBitLength:i,nByteLength:s}=Qt(e,n);if(s>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let f;const a=Object.freeze({ORDER:e,isLE:t,BITS:i,BYTES:s,MASK:Rt(i),ZERO:Z,ONE:z,create:o=>V(o,e),isValid:o=>{if(typeof o!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof o);return Z<=o&&oo===Z,isOdd:o=>(o&z)===z,neg:o=>V(-o,e),eql:(o,u)=>o===u,sqr:o=>V(o*o,e),add:(o,u)=>V(o+u,e),sub:(o,u)=>V(o-u,e),mul:(o,u)=>V(o*u,e),pow:(o,u)=>Oe(a,o,u),div:(o,u)=>V(o*Ht(u,e),e),sqrN:o=>o*o,addN:(o,u)=>o+u,subN:(o,u)=>o-u,mulN:(o,u)=>o*u,inv:o=>Ht(o,e),sqrt:r.sqrt||(o=>(f||(f=Ae(e)),f(a,o))),invertBatch:o=>Le(a,o),cmov:(o,u,E)=>E?u:o,toBytes:o=>t?Zt(o,s):ut(o,s),fromBytes:o=>{if(o.length!==s)throw new Error("Field.fromBytes: expected "+s+" bytes, got "+o.length);return t?Ut(o):tt(o)}});return Object.freeze(a)}function te(e){if(typeof e!="bigint")throw new Error("field order must be bigint");const n=e.toString(2).length;return Math.ceil(n/8)}function ee(e){const n=te(e);return n+Math.ceil(n/2)}function He(e,n,t=!1){const r=e.length,i=te(n),s=ee(n);if(r<16||r1024)throw new Error("expected "+s+"-1024 bytes of input, got "+r);const f=t?Ut(e):tt(e),a=V(f,n-z)+z;return t?Zt(a,i):ut(a,i)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Yt=BigInt(0),yt=BigInt(1);function It(e,n){const t=n.negate();return e?t:n}function ne(e,n){if(!Number.isSafeInteger(e)||e<=0||e>n)throw new Error("invalid window size, expected [1.."+n+"], got W="+e)}function At(e,n){ne(e,n);const t=Math.ceil(n/e)+1,r=2**(e-1);return{windows:t,windowSize:r}}function Te(e,n){if(!Array.isArray(e))throw new Error("array expected");e.forEach((t,r)=>{if(!(t instanceof n))throw new Error("invalid point at index "+r)})}function ze(e,n){if(!Array.isArray(e))throw new Error("array of scalars expected");e.forEach((t,r)=>{if(!n.isValid(t))throw new Error("invalid scalar at index "+r)})}const qt=new WeakMap,re=new WeakMap;function Nt(e){return re.get(e)||1}function ke(e,n){return{constTimeNegate:It,hasPrecomputes(t){return Nt(t)!==1},unsafeLadder(t,r,i=e.ZERO){let s=t;for(;r>Yt;)r&yt&&(i=i.add(s)),s=s.double(),r>>=yt;return i},precomputeWindow(t,r){const{windows:i,windowSize:s}=At(r,n),f=[];let a=t,o=a;for(let u=0;u>=A,N>f&&(N-=E,i+=yt);const p=v,c=v+Math.abs(N)-1,h=d%2!==0,y=N<0;N===0?o=o.add(It(h,r[p])):a=a.add(It(y,r[c]))}return{p:a,f:o}},wNAFUnsafe(t,r,i,s=e.ZERO){const{windows:f,windowSize:a}=At(t,n),o=BigInt(2**t-1),u=2**t,E=BigInt(t);for(let A=0;A>=E,v>a&&(v-=u,i+=yt),v===0)continue;let N=r[d+Math.abs(v)-1];v<0&&(N=N.negate()),s=s.add(N)}return s},getPrecomputes(t,r,i){let s=qt.get(r);return s||(s=this.precomputeWindow(r,t),t!==1&&qt.set(r,i(s))),s},wNAFCached(t,r,i){const s=Nt(t);return this.wNAF(s,this.getPrecomputes(s,t,i),r)},wNAFCachedUnsafe(t,r,i,s){const f=Nt(t);return f===1?this.unsafeLadder(t,r,s):this.wNAFUnsafe(f,this.getPrecomputes(f,t,i),r,s)},setWindowSize(t,r){ne(r,n),re.set(t,r),qt.delete(t)}}}function Ue(e,n,t,r){if(Te(t,e),ze(r,n),t.length!==r.length)throw new Error("arrays of points and scalars must have equal length");const i=e.ZERO,s=Gt(BigInt(t.length)),f=s>12?s-3:s>4?s-2:s?2:1,a=(1<=0;A-=f){o.fill(i);for(let v=0;v>BigInt(A)&BigInt(a));o[p]=o[p].add(t[v])}let d=i;for(let v=o.length-1,N=i;v>0;v--)N=N.add(o[v]),d=d.add(N);if(E=E.add(d),A!==0)for(let v=0;v{const{Err:t}=G;if(e<0||e>256)throw new t("tlv.encode: wrong tag");if(n.length&1)throw new t("tlv.encode: unpadded data");const r=n.length/2,i=st(r);if(i.length/2&128)throw new t("tlv.encode: long form length too big");const s=r>127?st(i.length/2|128):"";return st(e)+s+i+n},decode(e,n){const{Err:t}=G;let r=0;if(e<0||e>256)throw new t("tlv.encode: wrong tag");if(n.length<2||n[r++]!==e)throw new t("tlv.decode: wrong tlv");const i=n[r++],s=!!(i&128);let f=0;if(!s)f=i;else{const o=i&127;if(!o)throw new t("tlv.decode(long): indefinite length not supported");if(o>4)throw new t("tlv.decode(long): byte length is too big");const u=n.subarray(r,r+o);if(u.length!==o)throw new t("tlv.decode: length bytes not complete");if(u[0]===0)throw new t("tlv.decode(long): zero leftmost byte");for(const E of u)f=f<<8|E;if(r+=o,f<128)throw new t("tlv.decode(long): not minimal encoding")}const a=n.subarray(r,r+f);if(a.length!==f)throw new t("tlv.decode: wrong value length");return{v:a,l:n.subarray(r+f)}}},_int:{encode(e){const{Err:n}=G;if(e{const y=c.toAffine();return wt(Uint8Array.from([4]),t.toBytes(y.x),t.toBytes(y.y))}),s=n.fromBytes||(p=>{const c=p.subarray(1),h=t.fromBytes(c.subarray(0,t.BYTES)),y=t.fromBytes(c.subarray(t.BYTES,2*t.BYTES));return{x:h,y}});function f(p){const{a:c,b:h}=n,y=t.sqr(p),m=t.mul(y,p);return t.add(t.add(m,t.mul(p,c)),h)}if(!t.eql(t.sqr(n.Gy),f(n.Gx)))throw new Error("bad generator point: equation left != right");function a(p){return Et(p,U,n.n)}function o(p){const{allowedPrivateKeyLengths:c,nByteLength:h,wrapPrivateKey:y,n:m}=n;if(c&&typeof p!="bigint"){if(nt(p)&&(p=ft(p)),typeof p!="string"||!c.includes(p.length))throw new Error("invalid private key");p=p.padStart(h*2,"0")}let q;try{q=typeof p=="bigint"?p:tt(P("private key",p,h))}catch{throw new Error("invalid private key, expected hex or "+h+" bytes, got "+typeof p)}return y&&(q=V(q,m)),et("private key",q,U,m),q}function u(p){if(!(p instanceof d))throw new Error("ProjectivePoint expected")}const E=Ot((p,c)=>{const{px:h,py:y,pz:m}=p;if(t.eql(m,t.ONE))return{x:h,y};const q=p.is0();c==null&&(c=q?t.ONE:t.inv(m));const L=t.mul(h,c),I=t.mul(y,c),b=t.mul(m,c);if(q)return{x:t.ZERO,y:t.ZERO};if(!t.eql(b,t.ONE))throw new Error("invZ was invalid");return{x:L,y:I}}),A=Ot(p=>{if(p.is0()){if(n.allowInfinityPoint&&!t.is0(p.py))return;throw new Error("bad point: ZERO")}const{x:c,y:h}=p.toAffine();if(!t.isValid(c)||!t.isValid(h))throw new Error("bad point: x or y not FE");const y=t.sqr(h),m=f(c);if(!t.eql(y,m))throw new Error("bad point: equation left != right");if(!p.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});class d{constructor(c,h,y){if(this.px=c,this.py=h,this.pz=y,c==null||!t.isValid(c))throw new Error("x required");if(h==null||!t.isValid(h))throw new Error("y required");if(y==null||!t.isValid(y))throw new Error("z required");Object.freeze(this)}static fromAffine(c){const{x:h,y}=c||{};if(!c||!t.isValid(h)||!t.isValid(y))throw new Error("invalid affine point");if(c instanceof d)throw new Error("projective point not allowed");const m=q=>t.eql(q,t.ZERO);return m(h)&&m(y)?d.ZERO:new d(h,y,t.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(c){const h=t.invertBatch(c.map(y=>y.pz));return c.map((y,m)=>y.toAffine(h[m])).map(d.fromAffine)}static fromHex(c){const h=d.fromAffine(s(P("pointHex",c)));return h.assertValidity(),h}static fromPrivateKey(c){return d.BASE.multiply(o(c))}static msm(c,h){return Ue(d,r,c,h)}_setWindowSize(c){N.setWindowSize(this,c)}assertValidity(){A(this)}hasEvenY(){const{y:c}=this.toAffine();if(t.isOdd)return!t.isOdd(c);throw new Error("Field doesn't support isOdd")}equals(c){u(c);const{px:h,py:y,pz:m}=this,{px:q,py:L,pz:I}=c,b=t.eql(t.mul(h,I),t.mul(q,m)),S=t.eql(t.mul(y,I),t.mul(L,m));return b&&S}negate(){return new d(this.px,t.neg(this.py),this.pz)}double(){const{a:c,b:h}=n,y=t.mul(h,Pt),{px:m,py:q,pz:L}=this;let I=t.ZERO,b=t.ZERO,S=t.ZERO,B=t.mul(m,m),R=t.mul(q,q),T=t.mul(L,L),H=t.mul(m,q);return H=t.add(H,H),S=t.mul(m,L),S=t.add(S,S),I=t.mul(c,S),b=t.mul(y,T),b=t.add(I,b),I=t.sub(R,b),b=t.add(R,b),b=t.mul(I,b),I=t.mul(H,I),S=t.mul(y,S),T=t.mul(c,T),H=t.sub(B,T),H=t.mul(c,H),H=t.add(H,S),S=t.add(B,B),B=t.add(S,B),B=t.add(B,T),B=t.mul(B,H),b=t.add(b,B),T=t.mul(q,L),T=t.add(T,T),B=t.mul(T,H),I=t.sub(I,B),S=t.mul(T,R),S=t.add(S,S),S=t.add(S,S),new d(I,b,S)}add(c){u(c);const{px:h,py:y,pz:m}=this,{px:q,py:L,pz:I}=c;let b=t.ZERO,S=t.ZERO,B=t.ZERO;const R=n.a,T=t.mul(n.b,Pt);let H=t.mul(h,q),j=t.mul(y,L),l=t.mul(m,I),w=t.add(h,y),g=t.add(q,L);w=t.mul(w,g),g=t.add(H,j),w=t.sub(w,g),g=t.add(h,m);let x=t.add(q,I);return g=t.mul(g,x),x=t.add(H,l),g=t.sub(g,x),x=t.add(y,m),b=t.add(L,I),x=t.mul(x,b),b=t.add(j,l),x=t.sub(x,b),B=t.mul(R,g),b=t.mul(T,l),B=t.add(b,B),b=t.sub(j,B),B=t.add(j,B),S=t.mul(b,B),j=t.add(H,H),j=t.add(j,H),l=t.mul(R,l),g=t.mul(T,g),j=t.add(j,l),l=t.sub(H,l),l=t.mul(R,l),g=t.add(g,l),H=t.mul(j,g),S=t.add(S,H),H=t.mul(x,g),b=t.mul(w,b),b=t.sub(b,H),H=t.mul(w,j),B=t.mul(x,B),B=t.add(B,H),new d(b,S,B)}subtract(c){return this.add(c.negate())}is0(){return this.equals(d.ZERO)}wNAF(c){return N.wNAFCached(this,c,d.normalizeZ)}multiplyUnsafe(c){const{endo:h,n:y}=n;et("scalar",c,W,y);const m=d.ZERO;if(c===W)return m;if(this.is0()||c===U)return this;if(!h||N.hasPrecomputes(this))return N.wNAFCachedUnsafe(this,c,d.normalizeZ);let{k1neg:q,k1:L,k2neg:I,k2:b}=h.splitScalar(c),S=m,B=m,R=this;for(;L>W||b>W;)L&U&&(S=S.add(R)),b&U&&(B=B.add(R)),R=R.double(),L>>=U,b>>=U;return q&&(S=S.negate()),I&&(B=B.negate()),B=new d(t.mul(B.px,h.beta),B.py,B.pz),S.add(B)}multiply(c){const{endo:h,n:y}=n;et("scalar",c,U,y);let m,q;if(h){const{k1neg:L,k1:I,k2neg:b,k2:S}=h.splitScalar(c);let{p:B,f:R}=this.wNAF(I),{p:T,f:H}=this.wNAF(S);B=N.constTimeNegate(L,B),T=N.constTimeNegate(b,T),T=new d(t.mul(T.px,h.beta),T.py,T.pz),m=B.add(T),q=R.add(H)}else{const{p:L,f:I}=this.wNAF(c);m=L,q=I}return d.normalizeZ([m,q])[0]}multiplyAndAddUnsafe(c,h,y){const m=d.BASE,q=(I,b)=>b===W||b===U||!I.equals(m)?I.multiplyUnsafe(b):I.multiply(b),L=q(this,h).add(q(c,y));return L.is0()?void 0:L}toAffine(c){return E(this,c)}isTorsionFree(){const{h:c,isTorsionFree:h}=n;if(c===U)return!0;if(h)return h(d,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:c,clearCofactor:h}=n;return c===U?this:h?h(d,this):this.multiplyUnsafe(n.h)}toRawBytes(c=!0){return ct("isCompressed",c),this.assertValidity(),i(d,this,c)}toHex(c=!0){return ct("isCompressed",c),ft(this.toRawBytes(c))}}d.BASE=new d(n.Gx,n.Gy,t.ONE),d.ZERO=new d(t.ZERO,t.ONE,t.ZERO);const v=n.nBitLength,N=ke(d,n.endo?Math.ceil(v/2):v);return{CURVE:n,ProjectivePoint:d,normPrivateKeyToScalar:o,weierstrassEquation:f,isWithinCurveOrder:a}}function Ve(e){const n=oe(e);return pt(n,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...n})}function je(e){const n=Ve(e),{Fp:t,n:r}=n,i=t.BYTES+1,s=2*t.BYTES+1;function f(l){return V(l,r)}function a(l){return Ht(l,r)}const{ProjectivePoint:o,normPrivateKeyToScalar:u,weierstrassEquation:E,isWithinCurveOrder:A}=Me({...n,toBytes(l,w,g){const x=w.toAffine(),O=t.toBytes(x.x),k=wt;return ct("isCompressed",g),g?k(Uint8Array.from([w.hasEvenY()?2:3]),O):k(Uint8Array.from([4]),O,t.toBytes(x.y))},fromBytes(l){const w=l.length,g=l[0],x=l.subarray(1);if(w===i&&(g===2||g===3)){const O=tt(x);if(!Et(O,U,t.ORDER))throw new Error("Point is not on curve");const k=E(O);let C;try{C=t.sqrt(k)}catch(K){const M=K instanceof Error?": "+K.message:"";throw new Error("Point is not on curve"+M)}const _=(C&U)===U;return(g&1)===1!==_&&(C=t.neg(C)),{x:O,y:C}}else if(w===s&&g===4){const O=t.fromBytes(x.subarray(0,t.BYTES)),k=t.fromBytes(x.subarray(t.BYTES,2*t.BYTES));return{x:O,y:k}}else{const O=i,k=s;throw new Error("invalid Point, expected length of "+O+", or uncompressed "+k+", got "+w)}}}),d=l=>ft(ut(l,n.nByteLength));function v(l){const w=r>>U;return l>w}function N(l){return v(l)?f(-l):l}const p=(l,w,g)=>tt(l.slice(w,g));class c{constructor(w,g,x){this.r=w,this.s=g,this.recovery=x,this.assertValidity()}static fromCompact(w){const g=n.nByteLength;return w=P("compactSignature",w,g*2),new c(p(w,0,g),p(w,g,2*g))}static fromDER(w){const{r:g,s:x}=G.toSig(P("DER",w));return new c(g,x)}assertValidity(){et("r",this.r,U,r),et("s",this.s,U,r)}addRecoveryBit(w){return new c(this.r,this.s,w)}recoverPublicKey(w){const{r:g,s:x,recovery:O}=this,k=I(P("msgHash",w));if(O==null||![0,1,2,3].includes(O))throw new Error("recovery id invalid");const C=O===2||O===3?g+n.n:g;if(C>=t.ORDER)throw new Error("recovery id 2 or 3 invalid");const _=(O&1)===0?"02":"03",F=o.fromHex(_+d(C)),K=a(C),M=f(-k*K),rt=f(x*K),X=o.BASE.multiplyAndAddUnsafe(F,M,rt);if(!X)throw new Error("point at infinify");return X.assertValidity(),X}hasHighS(){return v(this.s)}normalizeS(){return this.hasHighS()?new c(this.r,f(-this.s),this.recovery):this}toDERRawBytes(){return at(this.toDERHex())}toDERHex(){return G.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return at(this.toCompactHex())}toCompactHex(){return d(this.r)+d(this.s)}}const h={isValidPrivateKey(l){try{return u(l),!0}catch{return!1}},normPrivateKeyToScalar:u,randomPrivateKey:()=>{const l=ee(n.n);return He(n.randomBytes(l),n.n)},precompute(l=8,w=o.BASE){return w._setWindowSize(l),w.multiply(BigInt(3)),w}};function y(l,w=!0){return o.fromPrivateKey(l).toRawBytes(w)}function m(l){const w=nt(l),g=typeof l=="string",x=(w||g)&&l.length;return w?x===i||x===s:g?x===2*i||x===2*s:l instanceof o}function q(l,w,g=!0){if(m(l))throw new Error("first arg must be private key");if(!m(w))throw new Error("second arg must be public key");return o.fromHex(w).multiply(u(l)).toRawBytes(g)}const L=n.bits2int||function(l){if(l.length>8192)throw new Error("input is too large");const w=tt(l),g=l.length*8-n.nBitLength;return g>0?w>>BigInt(g):w},I=n.bits2int_modN||function(l){return f(L(l))},b=Rt(n.nBitLength);function S(l){return et("num < 2^"+n.nBitLength,l,W,b),ut(l,n.nByteLength)}function B(l,w,g=R){if(["recovered","canonical"].some(D=>D in g))throw new Error("sign() legacy options not supported");const{hash:x,randomBytes:O}=n;let{lowS:k,prehash:C,extraEntropy:_}=g;k==null&&(k=!0),l=P("msgHash",l),Kt(g),C&&(l=P("prehashed msgHash",x(l)));const F=I(l),K=u(w),M=[S(K),S(F)];if(_!=null&&_!==!1){const D=_===!0?O(t.BYTES):_;M.push(P("extraEntropy",D))}const rt=wt(...M),X=F;function Bt(D){const ot=L(D);if(!A(ot))return;const vt=a(ot),lt=o.BASE.multiply(ot).toAffine(),Q=f(lt.x);if(Q===W)return;const dt=f(vt*f(X+Q*K));if(dt===W)return;let ht=(lt.x===Q?0:2)|Number(lt.y&U),it=dt;return k&&v(dt)&&(it=N(dt),ht^=1),new c(Q,it,ht)}return{seed:rt,k2sig:Bt}}const R={lowS:n.lowS,prehash:!1},T={lowS:n.lowS,prehash:!1};function H(l,w,g=R){const{seed:x,k2sig:O}=B(l,w,g),k=n;return Wt(k.hash.outputLen,k.nByteLength,k.hmac)(x,O)}o.BASE._setWindowSize(8);function j(l,w,g,x=T){var ht;const O=l;w=P("msgHash",w),g=P("publicKey",g);const{lowS:k,prehash:C,format:_}=x;if(Kt(x),"strict"in x)throw new Error("options.strict was renamed to lowS");if(_!==void 0&&_!=="compact"&&_!=="der")throw new Error("format must be compact or der");const F=typeof O=="string"||nt(O),K=!F&&!_&&typeof O=="object"&&O!==null&&typeof O.r=="bigint"&&typeof O.s=="bigint";if(!F&&!K)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");let M,rt;try{if(K&&(M=new c(O.r,O.s)),F){try{_!=="compact"&&(M=c.fromDER(O))}catch(it){if(!(it instanceof G.Err))throw it}!M&&_!=="der"&&(M=c.fromCompact(O))}rt=o.fromHex(g)}catch{return!1}if(!M||k&&M.hasHighS())return!1;C&&(w=n.hash(w));const{r:X,s:Bt}=M,D=I(w),ot=a(Bt),vt=f(D*ot),lt=f(X*ot),Q=(ht=o.BASE.multiplyAndAddUnsafe(rt,vt,lt))==null?void 0:ht.toAffine();return Q?f(Q.x)===X:!1}return{CURVE:n,getPublicKey:y,getSharedSecret:q,sign:H,verify:j,ProjectivePoint:o,Signature:c,utils:h}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function Ye(e){return{hash:e,hmac:(n,...t)=>Dt(e,n,le(...t)),randomBytes:ue}}function Ke(e,n){const t=r=>je({...e,...Ye(r)});return{...t(n),create:t}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const ie=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),Ft=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),Pe=BigInt(1),Tt=BigInt(2),$t=(e,n)=>(e+n/Tt)/n;function Fe(e){const n=ie,t=BigInt(3),r=BigInt(6),i=BigInt(11),s=BigInt(22),f=BigInt(23),a=BigInt(44),o=BigInt(88),u=e*e*e%n,E=u*u*e%n,A=Y(E,t,n)*E%n,d=Y(A,t,n)*E%n,v=Y(d,Tt,n)*u%n,N=Y(v,i,n)*v%n,p=Y(N,s,n)*N%n,c=Y(p,a,n)*p%n,h=Y(c,o,n)*c%n,y=Y(h,a,n)*p%n,m=Y(y,t,n)*E%n,q=Y(m,f,n)*N%n,L=Y(q,r,n)*u%n,I=Y(L,Tt,n);if(!zt.eql(zt.sqr(I),e))throw new Error("Cannot find square root");return I}const zt=Jt(ie,void 0,void 0,{sqrt:Fe}),$e=Ke({a:BigInt(0),b:BigInt(7),Fp:zt,n:Ft,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{const n=Ft,t=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-Pe*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),i=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),s=t,f=BigInt("0x100000000000000000000000000000000"),a=$t(s*e,n),o=$t(-r*e,n);let u=V(e-a*t-o*i,n),E=V(-a*r-o*s,n);const A=u>f,d=E>f;if(A&&(u=n-u),d&&(E=n-E),u>f||E>f)throw new Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:A,k1:u,k2neg:d,k2:E}}}},de);BigInt(0);$e.ProjectivePoint;export{$e as secp256k1}; diff --git a/web3game/.vercel/output/static/assets/send-CrjHOw2Z.js b/web3game/.vercel/output/static/assets/send-CrjHOw2Z.js new file mode 100644 index 0000000000..63aa902ba4 --- /dev/null +++ b/web3game/.vercel/output/static/assets/send-CrjHOw2Z.js @@ -0,0 +1,538 @@ +import{i as f,r as w,d as z,k as H,o as a,x as u,b as W,f as V,R as b,a as L,N,n as F,j as D,p as G}from"./index-DVkBgnkX.js";import{n as d,r as c,c as m,U as v,o as q}from"./if-defined-DVOmkLu5.js";import{e as U,n as O}from"./index-Cn1TwpSs.js";import"./index-Cxc8tIRM.js";import"./index-DeEXhxyT.js";import"./index-BIRMkK39.js";import"./index-BfDAOq8h.js";import"./index-DsF4Gov6.js";import"./index-QpqlfPgl.js";import"./index-B2osUT2V.js";const M=f` + :host { + width: 100%; + height: 100px; + border-radius: var(--wui-border-radius-s); + border: 1px solid var(--wui-color-gray-glass-002); + background-color: var(--wui-color-gray-glass-002); + transition: background-color var(--wui-ease-out-power-1) var(--wui-duration-lg); + will-change: background-color; + position: relative; + } + + :host(:hover) { + background-color: var(--wui-color-gray-glass-005); + } + + wui-flex { + width: 100%; + height: fit-content; + } + + wui-button { + display: ruby; + color: var(--wui-color-fg-100); + margin: 0 var(--wui-spacing-xs); + } + + .instruction { + position: absolute; + top: 50%; + transform: translateY(-50%); + z-index: 2; + } + + .paste { + display: inline-flex; + } + + textarea { + background: transparent; + width: 100%; + font-family: var(--w3m-font-family); + font-size: var(--wui-font-size-medium); + font-style: normal; + font-weight: var(--wui-font-weight-light); + line-height: 130%; + letter-spacing: var(--wui-letter-spacing-medium); + color: var(--wui-color-fg-100); + caret-color: var(--wui-color-accent-100); + box-sizing: border-box; + -webkit-appearance: none; + -moz-appearance: textfield; + padding: 0px; + border: none; + outline: none; + appearance: none; + resize: none; + overflow: hidden; + } +`;var E=function(o,e,i,n){var r=arguments.length,t=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(o,e,i,n);else for(var l=o.length-1;l>=0;l--)(s=o[l])&&(t=(r<3?s(t):r>3?s(e,i,t):s(e,i))||t);return r>3&&t&&Object.defineProperty(e,i,t),t};let P=class extends w{constructor(){super(...arguments),this.inputElementRef=U(),this.instructionElementRef=U(),this.instructionHidden=!!this.value,this.pasting=!1,this.onDebouncedSearch=z.debounce(async e=>{const i=await H.getEnsAddress(e);if(a.setLoading(!1),i){a.setReceiverProfileName(e),a.setReceiverAddress(i);const n=await H.getEnsAvatar(e);a.setReceiverProfileImageUrl(n||void 0)}else a.setReceiverAddress(e),a.setReceiverProfileName(void 0),a.setReceiverProfileImageUrl(void 0)})}firstUpdated(){this.value&&(this.instructionHidden=!0),this.checkHidden()}render(){return u` + + Type or + + + Paste + + address + + + `}async focusInput(){var e;this.instructionElementRef.value&&(this.instructionHidden=!0,await this.toggleInstructionFocus(!1),this.instructionElementRef.value.style.pointerEvents="none",(e=this.inputElementRef.value)==null||e.focus(),this.inputElementRef.value&&(this.inputElementRef.value.selectionStart=this.inputElementRef.value.selectionEnd=this.inputElementRef.value.value.length))}async focusInstruction(){var e;this.instructionElementRef.value&&(this.instructionHidden=!1,await this.toggleInstructionFocus(!0),this.instructionElementRef.value.style.pointerEvents="auto",(e=this.inputElementRef.value)==null||e.blur())}async toggleInstructionFocus(e){this.instructionElementRef.value&&await this.instructionElementRef.value.animate([{opacity:e?0:1},{opacity:e?1:0}],{duration:100,easing:"ease",fill:"forwards"}).finished}onBoxClick(){!this.value&&!this.instructionHidden&&this.focusInput()}onBlur(){!this.value&&this.instructionHidden&&!this.pasting&&this.focusInstruction()}checkHidden(){this.instructionHidden&&this.focusInput()}async onPasteClick(){this.pasting=!0;const e=await navigator.clipboard.readText();a.setReceiverAddress(e),this.focusInput()}onInputChange(e){this.pasting=!1;const i=e.target;i.value&&!this.instructionHidden&&this.focusInput(),a.setLoading(!0),this.onDebouncedSearch(i.value)}};P.styles=M;E([d()],P.prototype,"value",void 0);E([c()],P.prototype,"instructionHidden",void 0);E([c()],P.prototype,"pasting",void 0);P=E([m("w3m-input-address")],P);const Y=/[.*+?^${}()|[\]\\]/gu,K=/[0-9,.]/u,J=f` + :host { + position: relative; + display: inline-block; + } + + input { + background: transparent; + width: 100%; + height: auto; + font-family: var(--wui-font-family); + color: var(--wui-color-fg-100); + + font-feature-settings: 'case' on; + font-size: 32px; + font-weight: var(--wui-font-weight-light); + caret-color: var(--wui-color-accent-100); + line-height: 130%; + letter-spacing: -1.28px; + box-sizing: border-box; + -webkit-appearance: none; + -moz-appearance: textfield; + padding: 0px; + } + + input::-webkit-outer-spin-button, + input::-webkit-inner-spin-button { + -webkit-appearance: none; + margin: 0; + } + + input::placeholder { + color: var(--wui-color-fg-275); + } +`;var j=function(o,e,i,n){var r=arguments.length,t=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(o,e,i,n);else for(var l=o.length-1;l>=0;l--)(s=o[l])&&(t=(r<3?s(t):r>3?s(e,i,t):s(e,i))||t);return r>3&&t&&Object.defineProperty(e,i,t),t};let T=class extends w{constructor(){super(...arguments),this.inputElementRef=U(),this.disabled=!1,this.value="",this.placeholder="0"}render(){var e;return(e=this.inputElementRef)!=null&&e.value&&this.value&&(this.inputElementRef.value.value=this.value),u` `}dispatchInputChangeEvent(e){var n,r;const i=e.data;if(i&&((n=this.inputElementRef)!=null&&n.value))if(i===","){const t=this.inputElementRef.value.value.replace(",",".");this.inputElementRef.value.value=t,this.value=`${this.value}${t}`}else K.test(i)||(this.inputElementRef.value.value=this.value.replace(new RegExp(i.replace(Y,"\\$&"),"gu"),""));this.dispatchEvent(new CustomEvent("inputChange",{detail:(r=this.inputElementRef.value)==null?void 0:r.value,bubbles:!0,composed:!0}))}};T.styles=[W,V,J];j([d({type:Boolean})],T.prototype,"disabled",void 0);j([d({type:String})],T.prototype,"value",void 0);j([d({type:String})],T.prototype,"placeholder",void 0);T=j([m("wui-input-amount")],T);const Q=f` + :host { + width: 100%; + height: 100px; + border-radius: var(--wui-border-radius-s); + border: 1px solid var(--wui-color-gray-glass-002); + background-color: var(--wui-color-gray-glass-002); + transition: background-color var(--wui-ease-out-power-1) var(--wui-duration-lg); + will-change: background-color; + } + + :host(:hover) { + background-color: var(--wui-color-gray-glass-005); + } + + wui-flex { + width: 100%; + height: fit-content; + } + + wui-button { + width: 100%; + display: flex; + justify-content: flex-end; + } + + wui-input-amount { + mask-image: linear-gradient( + 270deg, + transparent 0px, + transparent 8px, + black 24px, + black 25px, + black 32px, + black 100% + ); + } + + .totalValue { + width: 100%; + } +`;var A=function(o,e,i,n){var r=arguments.length,t=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(o,e,i,n);else for(var l=o.length-1;l>=0;l--)(s=o[l])&&(t=(r<3?s(t):r>3?s(e,i,t):s(e,i))||t);return r>3&&t&&Object.defineProperty(e,i,t),t};let k=class extends w{render(){return u` + + + ${this.buttonTemplate()} + + + ${this.sendValueTemplate()} + + ${this.maxAmountTemplate()} ${this.actionTemplate()} + + + `}buttonTemplate(){return this.token?u` + `:u`Select token`}handleSelectButtonClick(){b.push("WalletSendSelectToken")}sendValueTemplate(){if(this.token&&this.sendTokenAmount){const i=this.token.price*this.sendTokenAmount;return u`${i?`$${v.formatNumberToLocalString(i,2)}`:"Incorrect value"}`}return null}maxAmountTemplate(){return this.token?this.sendTokenAmount&&this.sendTokenAmount>Number(this.token.quantity.numeric)?u` + ${v.roundNumber(Number(this.token.quantity.numeric),6,5)} + `:u` + ${v.roundNumber(Number(this.token.quantity.numeric),6,5)} + `:null}actionTemplate(){return this.token?this.sendTokenAmount&&this.sendTokenAmount>Number(this.token.quantity.numeric)?u`Buy`:u`Max`:null}onInputChange(e){a.setTokenAmount(e.detail)}onMaxClick(){if(this.token&&typeof this.gasPrice<"u"){const e=this.token.address===void 0||Object.values(L.NATIVE_TOKEN_ADDRESS).some(r=>{var t;return((t=this.token)==null?void 0:t.address)===r}),i=N.bigNumber(this.gasPrice).div(N.bigNumber(10).pow(Number(this.token.quantity.decimals))),n=e?N.bigNumber(this.token.quantity.numeric).minus(i):N.bigNumber(this.token.quantity.numeric);a.setTokenAmount(Number(n.toFixed(20)))}}onBuyClick(){b.push("OnRampProviders")}};k.styles=Q;A([d({type:Object})],k.prototype,"token",void 0);A([d({type:Number})],k.prototype,"sendTokenAmount",void 0);A([d({type:Number})],k.prototype,"gasPriceInUSD",void 0);A([d({type:Number})],k.prototype,"gasPrice",void 0);k=A([m("w3m-input-token")],k);const X=f` + :host { + display: block; + } + + wui-flex { + position: relative; + } + + wui-icon-box { + width: 40px; + height: 40px; + border-radius: var(--wui-border-radius-xs) !important; + border: 5px solid var(--wui-color-bg-125); + background: var(--wui-color-bg-175); + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + z-index: 3; + } + + wui-button { + --local-border-radius: var(--wui-border-radius-xs) !important; + } + + .inputContainer { + height: fit-content; + } +`;var g=function(o,e,i,n){var r=arguments.length,t=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(o,e,i,n);else for(var l=o.length-1;l>=0;l--)(s=o[l])&&(t=(r<3?s(t):r>3?s(e,i,t):s(e,i))||t);return r>3&&t&&Object.defineProperty(e,i,t),t};let p=class extends w{constructor(){super(),this.unsubscribe=[],this.token=a.state.token,this.sendTokenAmount=a.state.sendTokenAmount,this.receiverAddress=a.state.receiverAddress,this.receiverProfileName=a.state.receiverProfileName,this.loading=a.state.loading,this.gasPriceInUSD=a.state.gasPriceInUSD,this.gasPrice=a.state.gasPrice,this.message="Preview Send",this.fetchNetworkPrice(),this.fetchBalances(),this.unsubscribe.push(a.subscribe(e=>{this.token=e.token,this.sendTokenAmount=e.sendTokenAmount,this.receiverAddress=e.receiverAddress,this.gasPriceInUSD=e.gasPriceInUSD,this.receiverProfileName=e.receiverProfileName,this.loading=e.loading}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return this.getMessage(),u` + + + + + + + + ${this.message} + + + `}async fetchBalances(){await a.fetchTokenBalance(),a.fetchNetworkBalance()}async fetchNetworkPrice(){await F.getNetworkTokenPrice();const e=await F.getInitialGasPrice();e!=null&&e.gasPrice&&(e!=null&&e.gasPriceInUSD)&&(a.setGasPrice(e.gasPrice),a.setGasPriceInUsd(e.gasPriceInUSD))}onButtonClick(){b.push("WalletSendPreview")}getMessage(){var e;this.message="Preview Send",this.receiverAddress&&!z.isAddress(this.receiverAddress,D.state.activeChain)&&(this.message="Invalid Address"),this.receiverAddress||(this.message="Add Address"),a.hasInsufficientGasFunds()&&(this.message="Insufficient Gas Funds"),this.sendTokenAmount&&this.token&&this.sendTokenAmount>Number(this.token.quantity.numeric)&&(this.message="Insufficient Funds"),this.sendTokenAmount||(this.message="Add Amount"),this.sendTokenAmount&&((e=this.token)!=null&&e.price)&&(this.sendTokenAmount*this.token.price||(this.message="Incorrect Value")),this.token||(this.message="Select Token")}};p.styles=X;g([c()],p.prototype,"token",void 0);g([c()],p.prototype,"sendTokenAmount",void 0);g([c()],p.prototype,"receiverAddress",void 0);g([c()],p.prototype,"receiverProfileName",void 0);g([c()],p.prototype,"loading",void 0);g([c()],p.prototype,"gasPriceInUSD",void 0);g([c()],p.prototype,"gasPrice",void 0);g([c()],p.prototype,"message",void 0);p=g([m("w3m-wallet-send-view")],p);const Z=f` + .contentContainer { + height: 440px; + overflow: scroll; + scrollbar-width: none; + } + + .contentContainer::-webkit-scrollbar { + display: none; + } + + wui-icon-box { + width: 40px; + height: 40px; + border-radius: var(--wui-border-radius-xxs); + } +`;var I=function(o,e,i,n){var r=arguments.length,t=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(o,e,i,n);else for(var l=o.length-1;l>=0;l--)(s=o[l])&&(t=(r<3?s(t):r>3?s(e,i,t):s(e,i))||t);return r>3&&t&&Object.defineProperty(e,i,t),t};let y=class extends w{constructor(){super(),this.unsubscribe=[],this.tokenBalances=a.state.tokenBalances,this.search="",this.onDebouncedSearch=z.debounce(e=>{this.search=e}),this.unsubscribe.push(a.subscribe(e=>{this.tokenBalances=e.tokenBalances}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return u` + + ${this.templateSearchInput()} ${this.templateTokens()} + + `}templateSearchInput(){return u` + + + + `}templateTokens(){var e,i;return this.tokens=(e=this.tokenBalances)==null?void 0:e.filter(n=>{var r;return n.chainId===((r=D.state.activeCaipNetwork)==null?void 0:r.caipNetworkId)}),this.search?this.filteredTokens=(i=this.tokenBalances)==null?void 0:i.filter(n=>n.name.toLowerCase().includes(this.search.toLowerCase())):this.filteredTokens=this.tokens,u` + + + Your tokens + + + ${this.filteredTokens&&this.filteredTokens.length>0?this.filteredTokens.map(n=>u``):u` + + + No tokens found + Your tokens will appear here + + Buy + `} + + + `}onBuyClick(){b.push("OnRampProviders")}onInputChange(e){this.onDebouncedSearch(e.detail)}handleTokenClick(e){a.setToken(e),a.setTokenAmount(void 0),b.goBack()}};y.styles=Z;I([c()],y.prototype,"tokenBalances",void 0);I([c()],y.prototype,"tokens",void 0);I([c()],y.prototype,"filteredTokens",void 0);I([c()],y.prototype,"search",void 0);y=I([m("w3m-wallet-send-select-token-view")],y);const ee=f` + :host { + display: flex; + gap: var(--wui-spacing-xs); + border-radius: var(--wui-border-radius-3xl); + border: 1px solid var(--wui-color-gray-glass-002); + background: var(--wui-color-gray-glass-002); + padding: var(--wui-spacing-2xs) var(--wui-spacing-xs) var(--wui-spacing-2xs) + var(--wui-spacing-s); + align-items: center; + } + + wui-avatar, + wui-icon, + wui-image { + width: 32px; + height: 32px; + border: 1px solid var(--wui-color-gray-glass-002); + border-radius: var(--wui-border-radius-3xl); + box-shadow: 0 0 0 2px var(--wui-color-gray-glass-002); + } +`;var R=function(o,e,i,n){var r=arguments.length,t=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(o,e,i,n);else for(var l=o.length-1;l>=0;l--)(s=o[l])&&(t=(r<3?s(t):r>3?s(e,i,t):s(e,i))||t);return r>3&&t&&Object.defineProperty(e,i,t),t};let $=class extends w{constructor(){super(...arguments),this.text="",this.address="",this.isAddress=!1}render(){return u`${this.text} + ${this.imageTemplate()}`}imageTemplate(){return this.isAddress?u``:this.imageSrc?u``:u``}};$.styles=[W,V,ee];R([d()],$.prototype,"text",void 0);R([d()],$.prototype,"address",void 0);R([d()],$.prototype,"imageSrc",void 0);R([d({type:Boolean})],$.prototype,"isAddress",void 0);$=R([m("wui-preview-item")],$);const te=f` + :host { + display: flex; + column-gap: var(--wui-spacing-s); + padding: 17px 18px 17px var(--wui-spacing-m); + width: 100%; + background-color: var(--wui-color-gray-glass-002); + border-radius: var(--wui-border-radius-xs); + color: var(--wui-color-fg-250); + } + + wui-image { + width: var(--wui-icon-size-lg); + height: var(--wui-icon-size-lg); + border-radius: var(--wui-border-radius-3xl); + } + + wui-icon { + width: var(--wui-icon-size-lg); + height: var(--wui-icon-size-lg); + } +`;var _=function(o,e,i,n){var r=arguments.length,t=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(o,e,i,n);else for(var l=o.length-1;l>=0;l--)(s=o[l])&&(t=(r<3?s(t):r>3?s(e,i,t):s(e,i))||t);return r>3&&t&&Object.defineProperty(e,i,t),t};let C=class extends w{constructor(){super(...arguments),this.imageSrc=void 0,this.textTitle="",this.textValue=void 0}render(){return u` + + + ${this.textTitle} + + ${this.templateContent()} + + `}templateContent(){return this.imageSrc?u``:this.textValue?u` ${this.textValue} `:u``}};C.styles=[W,V,te];_([d()],C.prototype,"imageSrc",void 0);_([d()],C.prototype,"textTitle",void 0);_([d()],C.prototype,"textValue",void 0);C=_([m("wui-list-content")],C);const ie=f` + :host { + display: flex; + width: auto; + flex-direction: column; + gap: var(--wui-border-radius-1xs); + border-radius: var(--wui-border-radius-s); + background: var(--wui-color-gray-glass-002); + padding: var(--wui-spacing-s) var(--wui-spacing-1xs) var(--wui-spacing-1xs) + var(--wui-spacing-1xs); + } + + wui-text { + padding: 0 var(--wui-spacing-1xs); + } + + wui-flex { + margin-top: var(--wui-spacing-1xs); + } + + .network { + cursor: pointer; + transition: background-color var(--wui-ease-out-power-1) var(--wui-duration-lg); + will-change: background-color; + } + + .network:focus-visible { + border: 1px solid var(--wui-color-accent-100); + background-color: var(--wui-color-gray-glass-005); + -webkit-box-shadow: 0px 0px 0px 4px var(--wui-box-shadow-blue); + -moz-box-shadow: 0px 0px 0px 4px var(--wui-box-shadow-blue); + box-shadow: 0px 0px 0px 4px var(--wui-box-shadow-blue); + } + + .network:hover { + background-color: var(--wui-color-gray-glass-005); + } + + .network:active { + background-color: var(--wui-color-gray-glass-010); + } +`;var B=function(o,e,i,n){var r=arguments.length,t=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(o,e,i,n);else for(var l=o.length-1;l>=0;l--)(s=o[l])&&(t=(r<3?s(t):r>3?s(e,i,t):s(e,i))||t);return r>3&&t&&Object.defineProperty(e,i,t),t};let S=class extends w{render(){return u` Details + + + + + ${this.networkTemplate()} + `}networkTemplate(){var e;return(e=this.caipNetwork)!=null&&e.name?u` this.onNetworkClick(this.caipNetwork)} + class="network" + textTitle="Network" + imageSrc=${q(G.getNetworkImage(this.caipNetwork))} + >`:null}onNetworkClick(e){e&&b.push("Networks",{network:e})}};S.styles=ie;B([d()],S.prototype,"receiverAddress",void 0);B([d({type:Object})],S.prototype,"caipNetwork",void 0);B([d({type:Number})],S.prototype,"networkFee",void 0);S=B([m("w3m-wallet-send-details")],S);const ne=f` + wui-avatar, + wui-image { + display: ruby; + width: 32px; + height: 32px; + border-radius: var(--wui-border-radius-3xl); + } + + .sendButton { + width: 70%; + --local-width: 100% !important; + --local-border-radius: var(--wui-border-radius-xs) !important; + } + + .cancelButton { + width: 30%; + --local-width: 100% !important; + --local-border-radius: var(--wui-border-radius-xs) !important; + } +`;var x=function(o,e,i,n){var r=arguments.length,t=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(o,e,i,n);else for(var l=o.length-1;l>=0;l--)(s=o[l])&&(t=(r<3?s(t):r>3?s(e,i,t):s(e,i))||t);return r>3&&t&&Object.defineProperty(e,i,t),t};let h=class extends w{constructor(){super(),this.unsubscribe=[],this.token=a.state.token,this.sendTokenAmount=a.state.sendTokenAmount,this.receiverAddress=a.state.receiverAddress,this.receiverProfileName=a.state.receiverProfileName,this.receiverProfileImageUrl=a.state.receiverProfileImageUrl,this.gasPriceInUSD=a.state.gasPriceInUSD,this.caipNetwork=D.state.activeCaipNetwork,this.unsubscribe.push(a.subscribe(e=>{this.token=e.token,this.sendTokenAmount=e.sendTokenAmount,this.receiverAddress=e.receiverAddress,this.gasPriceInUSD=e.gasPriceInUSD,this.receiverProfileName=e.receiverProfileName,this.receiverProfileImageUrl=e.receiverProfileImageUrl}),D.subscribeKey("activeCaipNetwork",e=>this.caipNetwork=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){var e,i;return u` + + + + Send + ${this.sendValueTemplate()} + + + + + + + + To + + + + + + + + Review transaction carefully + + + + Cancel + + + Send + + + `}sendValueTemplate(){if(this.token&&this.sendTokenAmount){const i=this.token.price*this.sendTokenAmount;return u`$${i.toFixed(2)}`}return null}onSendClick(){a.sendToken()}onCancelClick(){b.goBack()}};h.styles=ne;x([c()],h.prototype,"token",void 0);x([c()],h.prototype,"sendTokenAmount",void 0);x([c()],h.prototype,"receiverAddress",void 0);x([c()],h.prototype,"receiverProfileName",void 0);x([c()],h.prototype,"receiverProfileImageUrl",void 0);x([c()],h.prototype,"gasPriceInUSD",void 0);x([c()],h.prototype,"caipNetwork",void 0);h=x([m("w3m-wallet-send-preview-view")],h);export{y as W3mSendSelectTokenView,h as W3mWalletSendPreviewView,p as W3mWalletSendView}; diff --git a/web3game/.vercel/output/static/assets/send-Dqw_tWKd.js b/web3game/.vercel/output/static/assets/send-Dqw_tWKd.js new file mode 100644 index 0000000000..fb91e1907a --- /dev/null +++ b/web3game/.vercel/output/static/assets/send-Dqw_tWKd.js @@ -0,0 +1,15 @@ +import{F as C}from"./index-DVkBgnkX.js";const l=C` + + `;export{l as sendSvg}; diff --git a/web3game/.vercel/output/static/assets/socials-Uau0-5BN.js b/web3game/.vercel/output/static/assets/socials-Uau0-5BN.js new file mode 100644 index 0000000000..c23109d032 --- /dev/null +++ b/web3game/.vercel/output/static/assets/socials-Uau0-5BN.js @@ -0,0 +1,261 @@ +import{i as _,r as I,C as m,O as C,R as h,a as W,x as c,A as l,j as b,e as d,S as g,d as E,l as A,m as T,k as L,M as R,T as $}from"./index-DVkBgnkX.js";import{n as D,r as u,c as k,o as v}from"./if-defined-DVOmkLu5.js";import"./index-C5GW1wiz.js";import{S as j}from"./index-DcIuyBCN.js";import"./index-Cxc8tIRM.js";import"./index-Cn1TwpSs.js";import"./index-DeEXhxyT.js";import"./index-BeTGsQ0g.js";import"./index-CTojmOJx.js";import"./index-B2osUT2V.js";import"./index-QpqlfPgl.js";const q=_` + :host { + margin-top: var(--wui-spacing-3xs); + } + wui-separator { + margin: var(--wui-spacing-m) calc(var(--wui-spacing-m) * -1) var(--wui-spacing-xs) + calc(var(--wui-spacing-m) * -1); + width: calc(100% + var(--wui-spacing-s) * 2); + } +`;var y=function(s,e,t,o){var r=arguments.length,i=r<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(s,e,t,o);else for(var a=s.length-1;a>=0;a--)(n=s[a])&&(i=(r<3?n(i):r>3?n(e,t,i):n(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i};let w=class extends I{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=m.state.connectors,this.authConnector=this.connectors.find(e=>e.type==="AUTH"),this.features=C.state.features,this.unsubscribe.push(m.subscribeKey("connectors",e=>{this.connectors=e,this.authConnector=this.connectors.find(t=>t.type==="AUTH")}),C.subscribeKey("features",e=>this.features=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){var i;let e=((i=this.features)==null?void 0:i.socials)||[];const t=!!this.authConnector,o=e==null?void 0:e.length,r=h.state.view==="ConnectSocials";return(!t||!o)&&!r?null:(r&&!o&&(e=W.DEFAULT_FEATURES.socials),c` + ${e.map(n=>c`{this.onSocialClick(n)}} + name=${n} + logo=${n} + tabIdx=${v(this.tabIdx)} + >`)} + `)}async onSocialClick(e){var t,o;if(e&&(l.setSocialProvider(e,b.state.activeChain),d.sendEvent({type:"track",event:"SOCIAL_LOGIN_STARTED",properties:{provider:e}})),e===j.Farcaster){h.push("ConnectingFarcaster");const r=m.getAuthConnector();if(r&&!l.state.farcasterUrl)try{const{url:i}=await r.provider.getFarcasterUri();l.setFarcasterUrl(i,b.state.activeChain)}catch(i){h.goBack(),g.showError(i)}}else{h.push("ConnectingSocial");const r=m.getAuthConnector();this.popupWindow=E.returnOpenHref("","popupWindow","width=600,height=800,scrollbars=yes");try{if(r&&e){const{uri:i}=await r.provider.getSocialRedirectUri({provider:e});if(this.popupWindow&&i)l.setSocialWindow(this.popupWindow,b.state.activeChain),this.popupWindow.location.href=i;else throw(t=this.popupWindow)==null||t.close(),new Error("Something went wrong")}}catch{(o=this.popupWindow)==null||o.close(),g.showError("Something went wrong")}}}};w.styles=q;y([D()],w.prototype,"tabIdx",void 0);y([u()],w.prototype,"connectors",void 0);y([u()],w.prototype,"authConnector",void 0);y([u()],w.prototype,"features",void 0);w=y([k("w3m-social-login-list")],w);const z=_` + wui-flex { + max-height: clamp(360px, 540px, 80vh); + overflow: scroll; + scrollbar-width: none; + transition: opacity var(--wui-ease-out-power-1) var(--wui-duration-md); + will-change: opacity; + } + wui-flex::-webkit-scrollbar { + display: none; + } + wui-flex.disabled { + opacity: 0.3; + pointer-events: none; + user-select: none; + } +`;var U=function(s,e,t,o){var r=arguments.length,i=r<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(s,e,t,o);else for(var a=s.length-1;a>=0;a--)(n=s[a])&&(i=(r<3?n(i):r>3?n(e,t,i):n(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i};let P=class extends I{constructor(){super(...arguments),this.checked=!1}render(){var O;const{termsConditionsUrl:e,privacyPolicyUrl:t}=C.state,o=(O=C.state.features)==null?void 0:O.legalCheckbox,i=!!(e||t)&&!!o,n=i&&!this.checked,a=n?-1:void 0;return c` + + + + + + `}onCheckboxChange(e){this.checked=!!e.detail}};P.styles=z;U([u()],P.prototype,"checked",void 0);P=U([k("w3m-connect-socials-view")],P);const F=_` + wui-logo { + width: 80px; + height: 80px; + border-radius: var(--wui-border-radius-m); + } + @keyframes shake { + 0% { + transform: translateX(0); + } + 25% { + transform: translateX(3px); + } + 50% { + transform: translateX(-3px); + } + 75% { + transform: translateX(3px); + } + 100% { + transform: translateX(0); + } + } + wui-flex:first-child:not(:only-child) { + position: relative; + } + wui-loading-thumbnail { + position: absolute; + } + wui-icon-box { + position: absolute; + right: calc(var(--wui-spacing-3xs) * -1); + bottom: calc(var(--wui-spacing-3xs) * -1); + opacity: 0; + transform: scale(0.5); + transition: all var(--wui-ease-out-power-2) var(--wui-duration-lg); + } + wui-text[align='center'] { + width: 100%; + padding: 0px var(--wui-spacing-l); + } + [data-error='true'] wui-icon-box { + opacity: 1; + transform: scale(1); + } + [data-error='true'] > wui-flex:first-child { + animation: shake 250ms cubic-bezier(0.36, 0.07, 0.19, 0.97) both; + } + .capitalize { + text-transform: capitalize; + } +`;var x=function(s,e,t,o){var r=arguments.length,i=r<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(s,e,t,o);else for(var a=s.length-1;a>=0;a--)(n=s[a])&&(i=(r<3?n(i):r>3?n(e,t,i):n(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i};let p=class extends I{constructor(){super(),this.unsubscribe=[],this.socialProvider=l.state.socialProvider,this.socialWindow=l.state.socialWindow,this.error=!1,this.connecting=!1,this.message="Connect in the provider window",this.authConnector=m.getAuthConnector(),this.handleSocialConnection=async e=>{var t;if((t=e.data)!=null&&t.resultUri)if(e.origin===A.SECURE_SITE_ORIGIN){window.removeEventListener("message",this.handleSocialConnection,!1);try{if(this.authConnector&&!this.connecting){this.socialWindow&&(this.socialWindow.close(),l.setSocialWindow(void 0,b.state.activeChain)),this.connecting=!0,this.updateMessage();const o=e.data.resultUri;this.socialProvider&&d.sendEvent({type:"track",event:"SOCIAL_LOGIN_REQUEST_USER_DATA",properties:{provider:this.socialProvider}}),await this.authConnector.provider.connectSocial(o),this.socialProvider&&(T.setConnectedSocialProvider(this.socialProvider),await L.connectExternal(this.authConnector,this.authConnector.chain),d.sendEvent({type:"track",event:"SOCIAL_LOGIN_SUCCESS",properties:{provider:this.socialProvider}}))}}catch{this.error=!0,this.updateMessage(),this.socialProvider&&d.sendEvent({type:"track",event:"SOCIAL_LOGIN_ERROR",properties:{provider:this.socialProvider}})}}else h.goBack(),g.showError("Untrusted Origin"),this.socialProvider&&d.sendEvent({type:"track",event:"SOCIAL_LOGIN_ERROR",properties:{provider:this.socialProvider}})},this.unsubscribe.push(l.subscribe(e=>{e.socialProvider&&(this.socialProvider=e.socialProvider),e.socialWindow&&(this.socialWindow=e.socialWindow),e.address&&(R.state.open||C.state.enableEmbedded)&&R.close()})),this.authConnector&&this.connectSocial()}disconnectedCallback(){var e;this.unsubscribe.forEach(t=>t()),window.removeEventListener("message",this.handleSocialConnection,!1),(e=this.socialWindow)==null||e.close(),l.setSocialWindow(void 0,b.state.activeChain)}render(){return c` + + + + ${this.error?null:this.loaderTemplate()} + + + + Log in with + ${this.socialProvider??"Social"} + ${this.message} + + `}loaderTemplate(){const e=$.state.themeVariables["--w3m-border-radius-master"],t=e?parseInt(e.replace("px",""),10):4;return c``}connectSocial(){const e=setInterval(()=>{var t;(t=this.socialWindow)!=null&&t.closed&&(!this.connecting&&h.state.view==="ConnectingSocial"&&(this.socialProvider&&d.sendEvent({type:"track",event:"SOCIAL_LOGIN_CANCELED",properties:{provider:this.socialProvider}}),h.goBack()),clearInterval(e))},1e3);window.addEventListener("message",this.handleSocialConnection,!1)}updateMessage(){this.error?this.message="Something went wrong":this.connecting?this.message="Retrieving user data":this.message="Connect in the provider window"}};p.styles=F;x([u()],p.prototype,"socialProvider",void 0);x([u()],p.prototype,"socialWindow",void 0);x([u()],p.prototype,"error",void 0);x([u()],p.prototype,"connecting",void 0);x([u()],p.prototype,"message",void 0);p=x([k("w3m-connecting-social-view")],p);const N=_` + @keyframes fadein { + from { + opacity: 0; + } + to { + opacity: 1; + } + } + + wui-shimmer { + width: 100%; + aspect-ratio: 1 / 1; + border-radius: clamp(0px, var(--wui-border-radius-l), 40px) !important; + } + + wui-qr-code { + opacity: 0; + animation-duration: 200ms; + animation-timing-function: ease; + animation-name: fadein; + animation-fill-mode: forwards; + } + + wui-logo { + width: 80px; + height: 80px; + border-radius: var(--wui-border-radius-m); + } + + wui-flex:first-child:not(:only-child) { + position: relative; + } + wui-loading-thumbnail { + position: absolute; + } + wui-icon-box { + position: absolute; + right: calc(var(--wui-spacing-3xs) * -1); + bottom: calc(var(--wui-spacing-3xs) * -1); + opacity: 0; + transform: scale(0.5); + transition: all var(--wui-ease-out-power-2) var(--wui-duration-lg); + } +`;var S=function(s,e,t,o){var r=arguments.length,i=r<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(s,e,t,o);else for(var a=s.length-1;a>=0;a--)(n=s[a])&&(i=(r<3?n(i):r>3?n(e,t,i):n(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i};let f=class extends I{constructor(){super(),this.unsubscribe=[],this.timeout=void 0,this.socialProvider=l.state.socialProvider,this.uri=l.state.farcasterUrl,this.ready=!1,this.loading=!1,this.authConnector=m.getAuthConnector(),this.forceUpdate=()=>{this.requestUpdate()},this.unsubscribe.push(l.subscribeKey("farcasterUrl",e=>{e&&(this.uri=e,this.connectFarcaster())}),l.subscribeKey("socialProvider",e=>{e&&(this.socialProvider=e)})),window.addEventListener("resize",this.forceUpdate)}disconnectedCallback(){super.disconnectedCallback(),clearTimeout(this.timeout),window.removeEventListener("resize",this.forceUpdate)}render(){return this.onRenderProxy(),c`${this.platformTemplate()}`}platformTemplate(){return E.isMobile()?c`${this.mobileTemplate()}`:c`${this.desktopTemplate()}`}desktopTemplate(){return this.loading?c`${this.loadingTemplate()}`:c`${this.qrTemplate()}`}qrTemplate(){return c` + ${this.qrCodeTemplate()} + + + Scan this QR Code with your phone + + ${this.copyTemplate()} + `}loadingTemplate(){return c` + + + + ${this.loaderTemplate()} + + + + + Loading user data + + + Please wait a moment while we load your data. + + + + `}mobileTemplate(){return c` + + + ${this.loaderTemplate()} + + + + Continue in Farcaster + Accept connection request in the app + ${this.mobileLinkTemplate()} + `}loaderTemplate(){const e=$.state.themeVariables["--w3m-border-radius-master"],t=e?parseInt(e.replace("px",""),10):4;return c``}async connectFarcaster(){var e;if(this.authConnector)try{await((e=this.authConnector)==null?void 0:e.provider.connectFarcaster()),this.socialProvider&&(T.setConnectedSocialProvider(this.socialProvider),d.sendEvent({type:"track",event:"SOCIAL_LOGIN_REQUEST_USER_DATA",properties:{provider:this.socialProvider}})),this.loading=!0,await L.connectExternal(this.authConnector,this.authConnector.chain),this.socialProvider&&d.sendEvent({type:"track",event:"SOCIAL_LOGIN_SUCCESS",properties:{provider:this.socialProvider}}),this.loading=!1,R.close()}catch(t){this.socialProvider&&d.sendEvent({type:"track",event:"SOCIAL_LOGIN_ERROR",properties:{provider:this.socialProvider}}),h.goBack(),g.showError(t)}}mobileLinkTemplate(){return c`{this.uri&&E.openHref(this.uri,"_blank")}} + > + Open farcaster`}onRenderProxy(){!this.ready&&this.uri&&(this.timeout=setTimeout(()=>{this.ready=!0},200))}qrCodeTemplate(){if(!this.uri||!this.ready)return null;const e=this.getBoundingClientRect().width-40;return c` `}copyTemplate(){const e=!this.uri||!this.ready;return c` + + Copy link + `}onCopyUri(){try{this.uri&&(E.copyToClopboard(this.uri),g.showSuccess("Link copied"))}catch{g.showError("Failed to copy")}}};f.styles=N;S([u()],f.prototype,"socialProvider",void 0);S([u()],f.prototype,"uri",void 0);S([u()],f.prototype,"ready",void 0);S([u()],f.prototype,"loading",void 0);f=S([k("w3m-connecting-farcaster-view")],f);export{P as W3mConnectSocialsView,f as W3mConnectingFarcasterView,p as W3mConnectingSocialView}; diff --git a/web3game/.vercel/output/static/assets/swapHorizontal-DP2tiBl6.js b/web3game/.vercel/output/static/assets/swapHorizontal-DP2tiBl6.js new file mode 100644 index 0000000000..3926c4654e --- /dev/null +++ b/web3game/.vercel/output/static/assets/swapHorizontal-DP2tiBl6.js @@ -0,0 +1,8 @@ +import{F as l}from"./index-DVkBgnkX.js";const o=l` + +`;export{o as swapHorizontalSvg}; diff --git a/web3game/.vercel/output/static/assets/swapHorizontalBold-ub_CisFk.js b/web3game/.vercel/output/static/assets/swapHorizontalBold-ub_CisFk.js new file mode 100644 index 0000000000..23440821a9 --- /dev/null +++ b/web3game/.vercel/output/static/assets/swapHorizontalBold-ub_CisFk.js @@ -0,0 +1,8 @@ +import{F as C}from"./index-DVkBgnkX.js";const e=C` + +`;export{e as swapHorizontalBoldSvg}; diff --git a/web3game/.vercel/output/static/assets/swapHorizontalMedium-D_OW6wbc.js b/web3game/.vercel/output/static/assets/swapHorizontalMedium-D_OW6wbc.js new file mode 100644 index 0000000000..8719528891 --- /dev/null +++ b/web3game/.vercel/output/static/assets/swapHorizontalMedium-D_OW6wbc.js @@ -0,0 +1,16 @@ +import{F as C}from"./index-DVkBgnkX.js";const e=C` + + + +`;export{e as swapHorizontalMediumSvg}; diff --git a/web3game/.vercel/output/static/assets/swapHorizontalRoundedBold-5Y1wl0rz.js b/web3game/.vercel/output/static/assets/swapHorizontalRoundedBold-5Y1wl0rz.js new file mode 100644 index 0000000000..23433f7cfb --- /dev/null +++ b/web3game/.vercel/output/static/assets/swapHorizontalRoundedBold-5Y1wl0rz.js @@ -0,0 +1,8 @@ +import{F as C}from"./index-DVkBgnkX.js";const L=C` + +`;export{L as swapHorizontalRoundedBoldSvg}; diff --git a/web3game/.vercel/output/static/assets/swapVertical-BXtoGSgK.js b/web3game/.vercel/output/static/assets/swapVertical-BXtoGSgK.js new file mode 100644 index 0000000000..2b9eed1d77 --- /dev/null +++ b/web3game/.vercel/output/static/assets/swapVertical-BXtoGSgK.js @@ -0,0 +1,8 @@ +import{F as l}from"./index-DVkBgnkX.js";const e=l` + +`;export{e as swapVerticalSvg}; diff --git a/web3game/.vercel/output/static/assets/swaps-BYyffamV.js b/web3game/.vercel/output/static/assets/swaps-BYyffamV.js new file mode 100644 index 0000000000..16586a19af --- /dev/null +++ b/web3game/.vercel/output/static/assets/swaps-BYyffamV.js @@ -0,0 +1,997 @@ +import{i as A,r as U,j as _,n as i,N as D,x as u,a as V,e as W,R as $,d as M,M as K,A as L,W as F,b as Q,f as q}from"./index-DVkBgnkX.js";import{r as s,n as w,c as C,U as x}from"./if-defined-DVOmkLu5.js";import"./index-Cn1TwpSs.js";import{M as R}from"./index-QVU1uMUX.js";import"./index-swSfGf8i.js";import"./index-CTojmOJx.js";import"./index-BIRMkK39.js";import"./index-BfDAOq8h.js";import"./index-QpqlfPgl.js";import"./index-B2osUT2V.js";import"./index-Cxc8tIRM.js";const G={numericInputKeyDown(l,t,e){const n=["Backspace","Meta","Ctrl","a","A","c","C","x","X","v","V","ArrowLeft","ArrowRight","Tab"],r=l.metaKey||l.ctrlKey,o=l.key,a=o.toLocaleLowerCase(),c=a==="a",y=a==="c",k=a==="v",j=a==="x",E=o===",",O=o===".",B=o>="0"&&o<="9";!r&&(c||y||k||j)&&l.preventDefault(),t==="0"&&!E&&!O&&o==="0"&&l.preventDefault(),t==="0"&&B&&(e(o),l.preventDefault()),(E||O)&&(t||(e("0."),l.preventDefault()),(t!=null&&t.includes(".")||t!=null&&t.includes(","))&&l.preventDefault()),!B&&!n.includes(o)&&!O&&!E&&l.preventDefault()}},H=A` + :host { + width: 100%; + } + + .details-container > wui-flex { + background: var(--wui-color-gray-glass-002); + border-radius: var(--wui-border-radius-xxs); + width: 100%; + } + + .details-container > wui-flex > button { + border: none; + background: none; + padding: var(--wui-spacing-s); + border-radius: var(--wui-border-radius-xxs); + cursor: pointer; + } + + .details-content-container { + padding: var(--wui-spacing-1xs); + padding-top: 0px; + display: flex; + align-items: center; + justify-content: center; + } + + .details-content-container > wui-flex { + width: 100%; + } + + .details-row { + width: 100%; + padding: var(--wui-spacing-s); + padding-left: var(--wui-spacing-s); + padding-right: var(--wui-spacing-1xs); + border-radius: calc(var(--wui-border-radius-5xs) + var(--wui-border-radius-4xs)); + background: var(--wui-color-gray-glass-002); + } + + .details-row-title { + white-space: nowrap; + } + + .details-row.provider-free-row { + padding-right: var(--wui-spacing-xs); + } +`;var b=function(l,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(l,t,e,n);else for(var c=l.length-1;c>=0;c--)(a=l[c])&&(o=(r<3?a(o):r>3?a(t,e,o):a(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o};const X=V.CONVERT_SLIPPAGE_TOLERANCE;let f=class extends U{constructor(){var t;super(),this.unsubscribe=[],this.networkName=(t=_.state.activeCaipNetwork)==null?void 0:t.name,this.detailsOpen=!1,this.sourceToken=i.state.sourceToken,this.toToken=i.state.toToken,this.toTokenAmount=i.state.toTokenAmount,this.sourceTokenPriceInUSD=i.state.sourceTokenPriceInUSD,this.toTokenPriceInUSD=i.state.toTokenPriceInUSD,this.gasPriceInUSD=i.state.gasPriceInUSD,this.priceImpact=i.state.priceImpact,this.maxSlippage=i.state.maxSlippage,this.networkTokenSymbol=i.state.networkTokenSymbol,this.inputError=i.state.inputError,this.unsubscribe.push(i.subscribe(e=>{this.sourceToken=e.sourceToken,this.toToken=e.toToken,this.toTokenAmount=e.toTokenAmount,this.gasPriceInUSD=e.gasPriceInUSD,this.priceImpact=e.priceImpact,this.maxSlippage=e.maxSlippage,this.sourceTokenPriceInUSD=e.sourceTokenPriceInUSD,this.toTokenPriceInUSD=e.toTokenPriceInUSD,this.inputError=e.inputError}))}render(){const t=this.toTokenAmount&&this.maxSlippage?D.bigNumber(this.toTokenAmount).minus(this.maxSlippage).toString():null;if(!this.sourceToken||!this.toToken||this.inputError)return null;const e=this.sourceTokenPriceInUSD&&this.toTokenPriceInUSD?1/this.toTokenPriceInUSD*this.sourceTokenPriceInUSD:0;return u` + + + + ${this.detailsOpen?u` + + + + + + Network cost + + + + + + + $${x.formatNumberToLocalString(this.gasPriceInUSD,3)} + + + + ${this.priceImpact?u` + + + + Price impact + + + + + + + + ${x.formatNumberToLocalString(this.priceImpact,3)}% + + + + `:null} + ${this.maxSlippage&&this.sourceToken.symbol?u` + + + + Max. slippage + + + + + + + + ${x.formatNumberToLocalString(this.maxSlippage,6)} + ${this.toToken.symbol} ${X}% + + + + `:null} + + + + + Provider fee + + + + 0.85% + + + + + `:null} + + + `}toggleDetails(){this.detailsOpen=!this.detailsOpen}};f.styles=[H];b([s()],f.prototype,"networkName",void 0);b([w()],f.prototype,"detailsOpen",void 0);b([s()],f.prototype,"sourceToken",void 0);b([s()],f.prototype,"toToken",void 0);b([s()],f.prototype,"toTokenAmount",void 0);b([s()],f.prototype,"sourceTokenPriceInUSD",void 0);b([s()],f.prototype,"toTokenPriceInUSD",void 0);b([s()],f.prototype,"gasPriceInUSD",void 0);b([s()],f.prototype,"priceImpact",void 0);b([s()],f.prototype,"maxSlippage",void 0);b([s()],f.prototype,"networkTokenSymbol",void 0);b([s()],f.prototype,"inputError",void 0);f=b([C("w3m-swap-details")],f);const Y=A` + :host { + width: 100%; + } + + :host > wui-flex { + display: flex; + flex-direction: row; + justify-content: space-between; + align-items: center; + border-radius: var(--wui-border-radius-s); + padding: var(--wui-spacing-xl); + padding-right: var(--wui-spacing-s); + background-color: var(--wui-color-gray-glass-002); + box-shadow: inset 0px 0px 0px 1px var(--wui-color-gray-glass-002); + width: 100%; + height: 100px; + box-sizing: border-box; + position: relative; + } + + wui-shimmer.market-value { + opacity: 0; + } + + :host > wui-flex > svg.input_mask { + position: absolute; + inset: 0; + z-index: 5; + } + + :host wui-flex .input_mask__border, + :host wui-flex .input_mask__background { + transition: fill var(--wui-duration-md) var(--wui-ease-out-power-1); + will-change: fill; + } + + :host wui-flex .input_mask__border { + fill: var(--wui-color-gray-glass-020); + } + + :host wui-flex .input_mask__background { + fill: var(--wui-color-gray-glass-002); + } +`;var z=function(l,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(l,t,e,n);else for(var c=l.length-1;c>=0;c--)(a=l[c])&&(o=(r<3?a(o):r>3?a(t,e,o):a(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o};let N=class extends U{constructor(){super(...arguments),this.target="sourceToken"}render(){return u` + + + + + ${this.templateTokenSelectButton()} + + `}templateTokenSelectButton(){return u` + + + + `}};N.styles=[Y];z([w()],N.prototype,"target",void 0);N=z([C("w3m-swap-input-skeleton")],N);const Z=A` + :host > wui-flex { + display: flex; + flex-direction: row; + justify-content: space-between; + align-items: center; + border-radius: var(--wui-border-radius-s); + background-color: var(--wui-color-gray-glass-002); + padding: var(--wui-spacing-xl); + padding-right: var(--wui-spacing-s); + width: 100%; + height: 100px; + box-sizing: border-box; + box-shadow: inset 0px 0px 0px 1px var(--wui-color-gray-glass-002); + position: relative; + transition: box-shadow var(--wui-ease-out-power-1) var(--wui-duration-lg); + will-change: background-color; + } + + :host wui-flex.focus { + box-shadow: inset 0px 0px 0px 1px var(--wui-color-gray-glass-005); + } + + :host > wui-flex .swap-input, + :host > wui-flex .swap-token-button { + z-index: 10; + } + + :host > wui-flex .swap-input { + -webkit-mask-image: linear-gradient( + 270deg, + transparent 0px, + transparent 8px, + black 24px, + black 25px, + black 32px, + black 100% + ); + mask-image: linear-gradient( + 270deg, + transparent 0px, + transparent 8px, + black 24px, + black 25px, + black 32px, + black 100% + ); + } + + :host > wui-flex .swap-input input { + background: none; + border: none; + height: 42px; + width: 100%; + font-size: 32px; + font-style: normal; + font-weight: 400; + line-height: 130%; + letter-spacing: -1.28px; + outline: none; + caret-color: var(--wui-color-accent-100); + color: var(--wui-color-fg-100); + padding: 0px; + } + + :host > wui-flex .swap-input input:focus-visible { + outline: none; + } + + :host > wui-flex .swap-input input::-webkit-outer-spin-button, + :host > wui-flex .swap-input input::-webkit-inner-spin-button { + -webkit-appearance: none; + margin: 0; + } + + .max-value-button { + background-color: transparent; + border: none; + cursor: pointer; + color: var(--wui-color-gray-glass-020); + padding-left: 0px; + } + + .market-value { + min-height: 18px; + } +`;var T=function(l,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(l,t,e,n);else for(var c=l.length-1;c>=0;c--)(a=l[c])&&(o=(r<3?a(o):r>3?a(t,e,o):a(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o};const J=5e-5;let m=class extends U{constructor(){super(...arguments),this.focused=!1,this.price=0,this.target="sourceToken",this.onSetAmount=null,this.onSetMaxValue=null}render(){const t=this.marketValue||"0",e=D.bigNumber(t).gt("0");return u` + + + this.onFocusChange(!0)} + @focusout=${()=>this.onFocusChange(!1)} + ?disabled=${this.disabled} + .value=${this.value} + @input=${this.dispatchInputChangeEvent} + @keydown=${this.handleKeydown} + placeholder="0" + type="text" + inputmode="decimal" + /> + + ${e?`$${x.formatNumberToLocalString(this.marketValue,2)}`:null} + + + ${this.templateTokenSelectButton()} + + `}handleKeydown(t){return G.numericInputKeyDown(t,this.value,e=>{var n;return(n=this.onSetAmount)==null?void 0:n.call(this,this.target,e)})}dispatchInputChangeEvent(t){if(!this.onSetAmount)return;const e=t.target.value.replace(/[^0-9.]/gu,"");e===","||e==="."?this.onSetAmount(this.target,"0."):e.endsWith(",")?this.onSetAmount(this.target,e.replace(",",".")):this.onSetAmount(this.target,e)}setMaxValueToInput(){var t;(t=this.onSetMaxValue)==null||t.call(this,this.target,this.balance)}templateTokenSelectButton(){return this.token?u` + + + + ${this.tokenBalanceTemplate()} + + `:u` + Select token + `}tokenBalanceTemplate(){const t=D.multiply(this.balance,this.price),e=t?t==null?void 0:t.gt(J):!1;return u` + ${e?u` + ${x.formatNumberToLocalString(this.balance,2)} + `:null} + ${this.target==="sourceToken"?this.tokenActionButtonTemplate(e):null} + `}tokenActionButtonTemplate(t){return t?u` `:u` `}onFocusChange(t){this.focused=t}onSelectToken(){W.sendEvent({type:"track",event:"CLICK_SELECT_TOKEN_TO_SWAP"}),$.push("SwapSelectToken",{target:this.target})}onBuyToken(){$.push("OnRampProviders")}};m.styles=[Z];T([w()],m.prototype,"focused",void 0);T([w()],m.prototype,"balance",void 0);T([w()],m.prototype,"value",void 0);T([w()],m.prototype,"price",void 0);T([w()],m.prototype,"marketValue",void 0);T([w()],m.prototype,"disabled",void 0);T([w()],m.prototype,"target",void 0);T([w()],m.prototype,"token",void 0);T([w()],m.prototype,"onSetAmount",void 0);T([w()],m.prototype,"onSetMaxValue",void 0);m=T([C("w3m-swap-input")],m);const tt=A` + :host > wui-flex:first-child { + overflow-y: auto; + overflow-x: hidden; + scrollbar-width: none; + } + + :host > wui-flex:first-child::-webkit-scrollbar { + display: none; + } + + wui-loading-hexagon { + position: absolute; + } + + .action-button { + width: 100%; + border-radius: var(--wui-border-radius-xs); + } + + .action-button:disabled { + border-color: 1px solid var(--wui-color-gray-glass-005); + } + + .swap-inputs-container { + position: relative; + } + + .replace-tokens-button-container { + display: flex; + justify-content: center; + align-items: center; + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + gap: var(--wui-spacing-1xs); + border-radius: var(--wui-border-radius-xs); + background-color: var(--wui-color-modal-bg-base); + padding: var(--wui-spacing-xxs); + } + + .replace-tokens-button-container > button { + display: flex; + justify-content: center; + align-items: center; + height: 40px; + width: 40px; + padding: var(--wui-spacing-xs); + border: none; + border-radius: var(--wui-border-radius-xxs); + background: var(--wui-color-gray-glass-002); + transition: background-color var(--wui-duration-md) var(--wui-ease-out-power-1); + will-change: background-color; + z-index: 20; + } + + .replace-tokens-button-container > button:hover { + background: var(--wui-color-gray-glass-005); + } + + .details-container > wui-flex { + background: var(--wui-color-gray-glass-002); + border-radius: var(--wui-border-radius-xxs); + width: 100%; + } + + .details-container > wui-flex > button { + border: none; + background: none; + padding: var(--wui-spacing-s); + border-radius: var(--wui-border-radius-xxs); + transition: background 0.2s linear; + } + + .details-container > wui-flex > button:hover { + background: var(--wui-color-gray-glass-002); + } + + .details-content-container { + padding: var(--wui-spacing-1xs); + display: flex; + align-items: center; + justify-content: center; + } + + .details-content-container > wui-flex { + width: 100%; + } + + .details-row { + width: 100%; + padding: var(--wui-spacing-s) var(--wui-spacing-xl); + border-radius: var(--wui-border-radius-xxs); + background: var(--wui-color-gray-glass-002); + } +`;var g=function(l,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(l,t,e,n);else for(var c=l.length-1;c>=0;c--)(a=l[c])&&(o=(r<3?a(o):r>3?a(t,e,o):a(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o};let d=class extends U{constructor(){var t;super(),this.unsubscribe=[],this.detailsOpen=!1,this.caipNetworkId=(t=_.state.activeCaipNetwork)==null?void 0:t.caipNetworkId,this.initialized=i.state.initialized,this.loadingQuote=i.state.loadingQuote,this.loadingPrices=i.state.loadingPrices,this.loadingTransaction=i.state.loadingTransaction,this.sourceToken=i.state.sourceToken,this.sourceTokenAmount=i.state.sourceTokenAmount,this.sourceTokenPriceInUSD=i.state.sourceTokenPriceInUSD,this.toToken=i.state.toToken,this.toTokenAmount=i.state.toTokenAmount,this.toTokenPriceInUSD=i.state.toTokenPriceInUSD,this.inputError=i.state.inputError,this.gasPriceInUSD=i.state.gasPriceInUSD,this.fetchError=i.state.fetchError,this.onDebouncedGetSwapCalldata=M.debounce(async()=>{await i.swapTokens()},200),_.subscribeKey("activeCaipNetwork",e=>{this.caipNetworkId!==(e==null?void 0:e.caipNetworkId)&&(this.caipNetworkId=e==null?void 0:e.caipNetworkId,i.resetState(),i.initializeState())}),this.unsubscribe.push(K.subscribeKey("open",e=>{e||i.resetState()}),$.subscribeKey("view",e=>{e.includes("Swap")||i.resetValues()}),i.subscribe(e=>{this.initialized=e.initialized,this.loadingQuote=e.loadingQuote,this.loadingPrices=e.loadingPrices,this.loadingTransaction=e.loadingTransaction,this.sourceToken=e.sourceToken,this.sourceTokenAmount=e.sourceTokenAmount,this.sourceTokenPriceInUSD=e.sourceTokenPriceInUSD,this.toToken=e.toToken,this.toTokenAmount=e.toTokenAmount,this.toTokenPriceInUSD=e.toTokenPriceInUSD,this.inputError=e.inputError,this.gasPriceInUSD=e.gasPriceInUSD,this.fetchError=e.fetchError}))}firstUpdated(){i.initializeState(),this.watchTokensAndValues()}disconnectedCallback(){this.unsubscribe.forEach(t=>t==null?void 0:t()),clearInterval(this.interval)}render(){return u` + + ${this.initialized?this.templateSwap():this.templateLoading()} + + `}watchTokensAndValues(){this.interval=setInterval(()=>{i.getNetworkTokenPrice(),i.getMyTokensWithBalance(),i.swapTokens()},1e4)}templateSwap(){return u` + + + ${this.templateTokenInput("sourceToken",this.sourceToken)} + ${this.templateTokenInput("toToken",this.toToken)} ${this.templateReplaceTokensButton()} + + ${this.templateDetails()} ${this.templateActionButton()} + + `}actionButtonLabel(){return this.fetchError?"Swap":!this.sourceToken||!this.toToken?"Select token":this.sourceTokenAmount?this.inputError?this.inputError:"Review swap":"Enter amount"}templateReplaceTokensButton(){return u` + + + + `}templateLoading(){return u` + + + + + ${this.templateReplaceTokensButton()} + + ${this.templateActionButton()} + + `}templateTokenInput(t,e){var c,y;const n=(c=i.state.myTokensWithBalance)==null?void 0:c.find(k=>(k==null?void 0:k.address)===(e==null?void 0:e.address)),r=t==="toToken"?this.toTokenAmount:this.sourceTokenAmount,o=t==="toToken"?this.toTokenPriceInUSD:this.sourceTokenPriceInUSD,a=D.parseLocalStringToNumber(r)*o;return u``}onSetMaxValue(t,e){const n=t==="sourceToken"?this.sourceToken:this.toToken,r=(n==null?void 0:n.address)===_.getActiveNetworkTokenAddress();let o="0";if(!e){o="0",this.handleChangeAmount(t,o);return}if(!this.gasPriceInUSD){o=e,this.handleChangeAmount(t,o);return}const a=D.bigNumber(this.gasPriceInUSD.toFixed(5)).div(this.sourceTokenPriceInUSD),c=r?D.bigNumber(e).minus(a):D.bigNumber(e);this.handleChangeAmount(t,c.gt(0)?c.toFixed(20):"0")}templateDetails(){return!this.sourceToken||!this.toToken||this.inputError?null:u``}handleChangeAmount(t,e){i.clearError(),t==="sourceToken"?i.setSourceTokenAmount(e):i.setToTokenAmount(e),this.onDebouncedGetSwapCalldata()}templateActionButton(){const t=!this.toToken||!this.sourceToken,e=!this.sourceTokenAmount,n=this.loadingQuote||this.loadingPrices||this.loadingTransaction,r=n||t||e||this.inputError;return u` + + ${this.actionButtonLabel()} + + `}onSwitchTokens(){i.switchTokens()}onSwapPreview(){var t,e;if(this.fetchError){i.swapTokens();return}W.sendEvent({type:"track",event:"INITIATE_SWAP",properties:{network:this.caipNetworkId||"",swapFromToken:((t=this.sourceToken)==null?void 0:t.symbol)||"",swapToToken:((e=this.toToken)==null?void 0:e.symbol)||"",swapFromAmount:this.sourceTokenAmount||"",swapToAmount:this.toTokenAmount||"",isSmartAccount:L.state.preferredAccountType===F.ACCOUNT_TYPES.SMART_ACCOUNT}}),$.push("SwapPreview")}};d.styles=tt;g([s()],d.prototype,"interval",void 0);g([s()],d.prototype,"detailsOpen",void 0);g([s()],d.prototype,"caipNetworkId",void 0);g([s()],d.prototype,"initialized",void 0);g([s()],d.prototype,"loadingQuote",void 0);g([s()],d.prototype,"loadingPrices",void 0);g([s()],d.prototype,"loadingTransaction",void 0);g([s()],d.prototype,"sourceToken",void 0);g([s()],d.prototype,"sourceTokenAmount",void 0);g([s()],d.prototype,"sourceTokenPriceInUSD",void 0);g([s()],d.prototype,"toToken",void 0);g([s()],d.prototype,"toTokenAmount",void 0);g([s()],d.prototype,"toTokenPriceInUSD",void 0);g([s()],d.prototype,"inputError",void 0);g([s()],d.prototype,"gasPriceInUSD",void 0);g([s()],d.prototype,"fetchError",void 0);d=g([C("w3m-swap-view")],d);const et=A` + :host > wui-flex:first-child { + overflow-y: auto; + overflow-x: hidden; + scrollbar-width: none; + } + + :host > wui-flex:first-child::-webkit-scrollbar { + display: none; + } + + .preview-container, + .details-container { + width: 100%; + } + + .token-image { + width: 24px; + height: 24px; + box-shadow: 0 0 0 2px var(--wui-color-gray-glass-005); + border-radius: 12px; + } + + wui-loading-hexagon { + position: absolute; + } + + .token-item { + display: flex; + align-items: center; + justify-content: center; + gap: var(--wui-spacing-xxs); + padding: var(--wui-spacing-xs); + height: 40px; + border: none; + border-radius: 80px; + background: var(--wui-color-gray-glass-002); + box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002); + cursor: pointer; + transition: background 0.2s linear; + } + + .token-item:hover { + background: var(--wui-color-gray-glass-005); + } + + .preview-token-details-container { + width: 100%; + } + + .details-row { + width: 100%; + padding: var(--wui-spacing-s) var(--wui-spacing-xl); + border-radius: var(--wui-border-radius-xxs); + background: var(--wui-color-gray-glass-002); + } + + .action-buttons-container { + width: 100%; + gap: var(--wui-spacing-xs); + } + + .action-buttons-container > button { + display: flex; + align-items: center; + justify-content: center; + background: transparent; + height: 48px; + border-radius: var(--wui-border-radius-xs); + border: none; + box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010); + } + + .action-buttons-container > button:disabled { + opacity: 0.8; + cursor: not-allowed; + } + + .action-button > wui-loading-spinner { + display: inline-block; + } + + .cancel-button:hover, + .action-button:hover { + cursor: pointer; + } + + .action-buttons-container > wui-button.cancel-button { + flex: 2; + } + + .action-buttons-container > wui-button.action-button { + flex: 4; + } + + .action-buttons-container > button.action-button > wui-text { + color: white; + } + + .details-container > wui-flex { + background: var(--wui-color-gray-glass-002); + border-radius: var(--wui-border-radius-xxs); + width: 100%; + } + + .details-container > wui-flex > button { + border: none; + background: none; + padding: var(--wui-spacing-s); + border-radius: var(--wui-border-radius-xxs); + transition: background 0.2s linear; + } + + .details-container > wui-flex > button:hover { + background: var(--wui-color-gray-glass-002); + } + + .details-content-container { + padding: var(--wui-spacing-1xs); + display: flex; + align-items: center; + justify-content: center; + } + + .details-content-container > wui-flex { + width: 100%; + } + + .details-row { + width: 100%; + padding: var(--wui-spacing-s) var(--wui-spacing-xl); + border-radius: var(--wui-border-radius-xxs); + background: var(--wui-color-gray-glass-002); + } +`;var h=function(l,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(l,t,e,n);else for(var c=l.length-1;c>=0;c--)(a=l[c])&&(o=(r<3?a(o):r>3?a(t,e,o):a(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o};let p=class extends U{constructor(){super(),this.unsubscribe=[],this.detailsOpen=!0,this.approvalTransaction=i.state.approvalTransaction,this.swapTransaction=i.state.swapTransaction,this.sourceToken=i.state.sourceToken,this.sourceTokenAmount=i.state.sourceTokenAmount??"",this.sourceTokenPriceInUSD=i.state.sourceTokenPriceInUSD,this.toToken=i.state.toToken,this.toTokenAmount=i.state.toTokenAmount??"",this.toTokenPriceInUSD=i.state.toTokenPriceInUSD,this.caipNetwork=_.state.activeCaipNetwork,this.balanceSymbol=L.state.balanceSymbol,this.gasPriceInUSD=i.state.gasPriceInUSD,this.inputError=i.state.inputError,this.loadingQuote=i.state.loadingQuote,this.loadingApprovalTransaction=i.state.loadingApprovalTransaction,this.loadingBuildTransaction=i.state.loadingBuildTransaction,this.loadingTransaction=i.state.loadingTransaction,this.unsubscribe.push(L.subscribeKey("balanceSymbol",t=>{this.balanceSymbol!==t&&$.goBack()}),_.subscribeKey("activeCaipNetwork",t=>{this.caipNetwork!==t&&(this.caipNetwork=t)}),i.subscribe(t=>{this.approvalTransaction=t.approvalTransaction,this.swapTransaction=t.swapTransaction,this.sourceToken=t.sourceToken,this.gasPriceInUSD=t.gasPriceInUSD,this.toToken=t.toToken,this.gasPriceInUSD=t.gasPriceInUSD,this.toTokenPriceInUSD=t.toTokenPriceInUSD,this.sourceTokenAmount=t.sourceTokenAmount??"",this.toTokenAmount=t.toTokenAmount??"",this.inputError=t.inputError,t.inputError&&$.goBack(),this.loadingQuote=t.loadingQuote,this.loadingApprovalTransaction=t.loadingApprovalTransaction,this.loadingBuildTransaction=t.loadingBuildTransaction,this.loadingTransaction=t.loadingTransaction}))}firstUpdated(){i.getTransaction(),this.refreshTransaction()}disconnectedCallback(){this.unsubscribe.forEach(t=>t==null?void 0:t()),clearInterval(this.interval)}render(){return u` + + ${this.templateSwap()} + + `}refreshTransaction(){this.interval=setInterval(()=>{i.getApprovalLoadingState()||i.getTransaction()},1e4)}templateSwap(){var y,k,j,E;const t=`${x.formatNumberToLocalString(parseFloat(this.sourceTokenAmount))} ${(y=this.sourceToken)==null?void 0:y.symbol}`,e=`${x.formatNumberToLocalString(parseFloat(this.toTokenAmount))} ${(k=this.toToken)==null?void 0:k.symbol}`,n=parseFloat(this.sourceTokenAmount)*this.sourceTokenPriceInUSD,r=parseFloat(this.toTokenAmount)*this.toTokenPriceInUSD-(this.gasPriceInUSD||0),o=x.formatNumberToLocalString(n),a=x.formatNumberToLocalString(r),c=this.loadingQuote||this.loadingBuildTransaction||this.loadingTransaction||this.loadingApprovalTransaction;return u` + + + + + Send + $${o} + + + + + + + + Receive + $${a} + + + + + + + ${this.templateDetails()} + + + + Review transaction carefully + + + + + Cancel + + + + ${this.actionButtonLabel()} + + + + + `}templateDetails(){return!this.sourceToken||!this.toToken||this.inputError?null:u``}actionButtonLabel(){return this.loadingApprovalTransaction?"Approving...":this.approvalTransaction?"Approve":"Swap"}onCancelTransaction(){$.goBack()}onSendTransaction(){this.approvalTransaction?i.sendTransactionForApproval(this.approvalTransaction):i.sendTransactionForSwap(this.swapTransaction)}};p.styles=et;h([s()],p.prototype,"interval",void 0);h([s()],p.prototype,"detailsOpen",void 0);h([s()],p.prototype,"approvalTransaction",void 0);h([s()],p.prototype,"swapTransaction",void 0);h([s()],p.prototype,"sourceToken",void 0);h([s()],p.prototype,"sourceTokenAmount",void 0);h([s()],p.prototype,"sourceTokenPriceInUSD",void 0);h([s()],p.prototype,"toToken",void 0);h([s()],p.prototype,"toTokenAmount",void 0);h([s()],p.prototype,"toTokenPriceInUSD",void 0);h([s()],p.prototype,"caipNetwork",void 0);h([s()],p.prototype,"balanceSymbol",void 0);h([s()],p.prototype,"gasPriceInUSD",void 0);h([s()],p.prototype,"inputError",void 0);h([s()],p.prototype,"loadingQuote",void 0);h([s()],p.prototype,"loadingApprovalTransaction",void 0);h([s()],p.prototype,"loadingBuildTransaction",void 0);h([s()],p.prototype,"loadingTransaction",void 0);p=h([C("w3m-swap-preview-view")],p);const ot=A` + :host { + height: 60px; + min-height: 60px; + } + + :host > wui-flex { + cursor: pointer; + height: 100%; + display: flex; + column-gap: var(--wui-spacing-s); + padding: var(--wui-spacing-xs); + padding-right: var(--wui-spacing-l); + width: 100%; + background-color: transparent; + border-radius: var(--wui-border-radius-xs); + color: var(--wui-color-fg-250); + transition: + background-color var(--wui-ease-out-power-1) var(--wui-duration-lg), + opacity var(--wui-ease-out-power-1) var(--wui-duration-lg); + will-change: background-color, opacity; + } + + @media (hover: hover) and (pointer: fine) { + :host > wui-flex:hover { + background-color: var(--wui-color-gray-glass-002); + } + + :host > wui-flex:active { + background-color: var(--wui-color-gray-glass-005); + } + } + + :host([disabled]) > wui-flex { + opacity: 0.6; + } + + :host([disabled]) > wui-flex:hover { + background-color: transparent; + } + + :host > wui-flex > wui-flex { + flex: 1; + } + + :host > wui-flex > wui-image, + :host > wui-flex > .token-item-image-placeholder { + width: 40px; + max-width: 40px; + height: 40px; + border-radius: var(--wui-border-radius-3xl); + position: relative; + } + + :host > wui-flex > .token-item-image-placeholder { + display: flex; + align-items: center; + justify-content: center; + } + + :host > wui-flex > wui-image::after, + :host > wui-flex > .token-item-image-placeholder::after { + position: absolute; + content: ''; + inset: 0; + box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010); + border-radius: var(--wui-border-radius-l); + } + + button > wui-icon-box[data-variant='square-blue'] { + border-radius: var(--wui-border-radius-3xs); + position: relative; + border: none; + width: 36px; + height: 36px; + } +`;var P=function(l,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(l,t,e,n);else for(var c=l.length-1;c>=0;c--)(a=l[c])&&(o=(r<3?a(o):r>3?a(t,e,o):a(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o};let S=class extends U{constructor(){super(),this.observer=new IntersectionObserver(()=>{}),this.imageSrc=void 0,this.name=void 0,this.symbol=void 0,this.price=void 0,this.amount=void 0,this.visible=!1,this.imageError=!1,this.observer=new IntersectionObserver(t=>{t.forEach(e=>{e.isIntersecting?this.visible=!0:this.visible=!1})},{threshold:.1})}firstUpdated(){this.observer.observe(this)}disconnectedCallback(){this.observer.disconnect()}render(){var e;if(!this.visible)return null;const t=this.amount&&this.price?(e=D.multiply(this.price,this.amount))==null?void 0:e.toFixed(3):null;return u` + + ${this.visualTemplate()} + + + ${this.name} + ${t?u` + + $${x.formatNumberToLocalString(t,3)} + + `:null} + + + ${this.symbol} + ${this.amount?u` + ${x.formatNumberToLocalString(this.amount,4)} + `:null} + + + + `}visualTemplate(){return this.imageError?u` + + `:this.imageSrc?u``:null}imageLoadError(){this.imageError=!0}};S.styles=[Q,q,ot];P([w()],S.prototype,"imageSrc",void 0);P([w()],S.prototype,"name",void 0);P([w()],S.prototype,"symbol",void 0);P([w()],S.prototype,"price",void 0);P([w()],S.prototype,"amount",void 0);P([s()],S.prototype,"visible",void 0);P([s()],S.prototype,"imageError",void 0);S=P([C("wui-token-list-item")],S);const it=A` + :host { + --tokens-scroll--top-opacity: 0; + --tokens-scroll--bottom-opacity: 1; + --suggested-tokens-scroll--left-opacity: 0; + --suggested-tokens-scroll--right-opacity: 1; + } + + :host > wui-flex:first-child { + overflow-y: hidden; + overflow-x: hidden; + scrollbar-width: none; + scrollbar-height: none; + } + + :host > wui-flex:first-child::-webkit-scrollbar { + display: none; + } + + wui-loading-hexagon { + position: absolute; + } + + .suggested-tokens-container { + overflow-x: auto; + mask-image: linear-gradient( + to right, + rgba(0, 0, 0, calc(1 - var(--suggested-tokens-scroll--left-opacity))) 0px, + rgba(200, 200, 200, calc(1 - var(--suggested-tokens-scroll--left-opacity))) 1px, + black 50px, + black 90px, + black calc(100% - 90px), + black calc(100% - 50px), + rgba(155, 155, 155, calc(1 - var(--suggested-tokens-scroll--right-opacity))) calc(100% - 1px), + rgba(0, 0, 0, calc(1 - var(--suggested-tokens-scroll--right-opacity))) 100% + ); + } + + .suggested-tokens-container::-webkit-scrollbar { + display: none; + } + + .tokens-container { + border-top: 1px solid var(--wui-color-gray-glass-005); + height: 100%; + max-height: 390px; + } + + .tokens { + width: 100%; + overflow-y: auto; + mask-image: linear-gradient( + to bottom, + rgba(0, 0, 0, calc(1 - var(--tokens-scroll--top-opacity))) 0px, + rgba(200, 200, 200, calc(1 - var(--tokens-scroll--top-opacity))) 1px, + black 50px, + black 90px, + black calc(100% - 90px), + black calc(100% - 50px), + rgba(155, 155, 155, calc(1 - var(--tokens-scroll--bottom-opacity))) calc(100% - 1px), + rgba(0, 0, 0, calc(1 - var(--tokens-scroll--bottom-opacity))) 100% + ); + } + + .network-search-input, + .select-network-button { + height: 40px; + } + + .select-network-button { + border: none; + display: flex; + flex-direction: row; + align-items: center; + justify-content: center; + gap: var(--wui-spacing-xs); + box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005); + background-color: transparent; + border-radius: var(--wui-border-radius-xxs); + padding: var(--wui-spacing-xs); + align-items: center; + transition: background-color 0.2s linear; + } + + .select-network-button:hover { + background-color: var(--wui-color-gray-glass-002); + } + + .select-network-button > wui-image { + width: 26px; + height: 26px; + border-radius: var(--wui-border-radius-xs); + box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010); + } +`;var I=function(l,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(l,t,e,n);else for(var c=l.length-1;c>=0;c--)(a=l[c])&&(o=(r<3?a(o):r>3?a(t,e,o):a(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o};let v=class extends U{constructor(){var t;super(),this.unsubscribe=[],this.targetToken=(t=$.state.data)==null?void 0:t.target,this.sourceToken=i.state.sourceToken,this.sourceTokenAmount=i.state.sourceTokenAmount,this.toToken=i.state.toToken,this.myTokensWithBalance=i.state.myTokensWithBalance,this.popularTokens=i.state.popularTokens,this.searchValue="",this.unsubscribe.push(i.subscribe(e=>{this.sourceToken=e.sourceToken,this.toToken=e.toToken,this.myTokensWithBalance=e.myTokensWithBalance}))}updated(){var n,r;const t=(n=this.renderRoot)==null?void 0:n.querySelector(".suggested-tokens-container");t==null||t.addEventListener("scroll",this.handleSuggestedTokensScroll.bind(this));const e=(r=this.renderRoot)==null?void 0:r.querySelector(".tokens");e==null||e.addEventListener("scroll",this.handleTokenListScroll.bind(this))}disconnectedCallback(){var n,r;super.disconnectedCallback();const t=(n=this.renderRoot)==null?void 0:n.querySelector(".suggested-tokens-container"),e=(r=this.renderRoot)==null?void 0:r.querySelector(".tokens");t==null||t.removeEventListener("scroll",this.handleSuggestedTokensScroll.bind(this)),e==null||e.removeEventListener("scroll",this.handleTokenListScroll.bind(this)),clearInterval(this.interval)}render(){return u` + + ${this.templateSearchInput()} ${this.templateSuggestedTokens()} ${this.templateTokens()} + + `}onSelectToken(t){this.targetToken==="sourceToken"?i.setSourceToken(t):(i.setToToken(t),this.sourceToken&&this.sourceTokenAmount&&i.swapTokens()),$.goBack()}templateSearchInput(){return u` + + + + `}templateTokens(){const t=this.myTokensWithBalance?Object.values(this.myTokensWithBalance):[],e=this.popularTokens?this.popularTokens:[],n=this.filterTokensWithText(t,this.searchValue),r=this.filterTokensWithText(e,this.searchValue);return u` + + + ${(n==null?void 0:n.length)>0?u` + + Your tokens + + ${n.map(o=>{var c,y,k;const a=o.symbol===((c=this.sourceToken)==null?void 0:c.symbol)||o.symbol===((y=this.toToken)==null?void 0:y.symbol);return u` + {a||this.onSelectToken(o)}} + > + + `})} + `:null} + + + Tokens + + ${(r==null?void 0:r.length)>0?r.map(o=>u` + this.onSelectToken(o)} + > + + `):null} + + + `}templateSuggestedTokens(){const t=i.state.suggestedTokens?i.state.suggestedTokens.slice(0,8):null;return t?u` + + ${t.map(e=>u` + this.onSelectToken(e)} + > + + `)} + + `:null}onSearchInputChange(t){this.searchValue=t.detail}handleSuggestedTokensScroll(){var e;const t=(e=this.renderRoot)==null?void 0:e.querySelector(".suggested-tokens-container");t&&(t.style.setProperty("--suggested-tokens-scroll--left-opacity",R.interpolate([0,100],[0,1],t.scrollLeft).toString()),t.style.setProperty("--suggested-tokens-scroll--right-opacity",R.interpolate([0,100],[0,1],t.scrollWidth-t.scrollLeft-t.offsetWidth).toString()))}handleTokenListScroll(){var e;const t=(e=this.renderRoot)==null?void 0:e.querySelector(".tokens");t&&(t.style.setProperty("--tokens-scroll--top-opacity",R.interpolate([0,100],[0,1],t.scrollTop).toString()),t.style.setProperty("--tokens-scroll--bottom-opacity",R.interpolate([0,100],[0,1],t.scrollHeight-t.scrollTop-t.offsetHeight).toString()))}filterTokensWithText(t,e){return t.filter(n=>`${n.symbol} ${n.name} ${n.address}`.toLowerCase().includes(e.toLowerCase()))}};v.styles=it;I([s()],v.prototype,"interval",void 0);I([s()],v.prototype,"targetToken",void 0);I([s()],v.prototype,"sourceToken",void 0);I([s()],v.prototype,"sourceTokenAmount",void 0);I([s()],v.prototype,"toToken",void 0);I([s()],v.prototype,"myTokensWithBalance",void 0);I([s()],v.prototype,"popularTokens",void 0);I([s()],v.prototype,"searchValue",void 0);v=I([C("w3m-swap-select-token-view")],v);export{p as W3mSwapPreviewView,v as W3mSwapSelectTokenView,d as W3mSwapView}; diff --git a/web3game/.vercel/output/static/assets/telegram-DRrPPrlc.js b/web3game/.vercel/output/static/assets/telegram-DRrPPrlc.js new file mode 100644 index 0000000000..e28064203e --- /dev/null +++ b/web3game/.vercel/output/static/assets/telegram-DRrPPrlc.js @@ -0,0 +1,16 @@ +import{F as t}from"./index-DVkBgnkX.js";const l=t` + + + + + + + + + + + + + + +`;export{l as telegramSvg}; diff --git a/web3game/.vercel/output/static/assets/three-dots-wbEop_LN.js b/web3game/.vercel/output/static/assets/three-dots-wbEop_LN.js new file mode 100644 index 0000000000..019904cbcc --- /dev/null +++ b/web3game/.vercel/output/static/assets/three-dots-wbEop_LN.js @@ -0,0 +1,5 @@ +import{F as t}from"./index-DVkBgnkX.js";const l=t` + + + +`;export{l as threeDotsSvg}; diff --git a/web3game/.vercel/output/static/assets/transactions-C-U2YbwL.js b/web3game/.vercel/output/static/assets/transactions-C-U2YbwL.js new file mode 100644 index 0000000000..1d4df07e95 --- /dev/null +++ b/web3game/.vercel/output/static/assets/transactions-C-U2YbwL.js @@ -0,0 +1,16 @@ +import{i as s,r as m,x as a}from"./index-DVkBgnkX.js";import{c as p}from"./if-defined-DVOmkLu5.js";import"./index-B4eb2ffY.js";import"./index-kA5-QyMM.js";import"./index-CTojmOJx.js";import"./index-Cxc8tIRM.js";import"./index-DeEXhxyT.js";import"./index-QpqlfPgl.js";const d=s` + :host > wui-flex:first-child { + height: 500px; + overflow-y: auto; + overflow-x: hidden; + scrollbar-width: none; + } + + :host > wui-flex:first-child::-webkit-scrollbar { + display: none; + } +`;var u=function(o,t,i,r){var n=arguments.length,e=n<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(o,t,i,r);else for(var c=o.length-1;c>=0;c--)(l=o[c])&&(e=(n<3?l(e):n>3?l(t,i,e):l(t,i))||e);return n>3&&e&&Object.defineProperty(t,i,e),e};let f=class extends m{render(){return a` + + + + `}};f.styles=d;f=u([p("w3m-transactions-view")],f);export{f as W3mTransactionsView}; diff --git a/web3game/.vercel/output/static/assets/twitch-DY-zpdKt.js b/web3game/.vercel/output/static/assets/twitch-DY-zpdKt.js new file mode 100644 index 0000000000..66bba0cd34 --- /dev/null +++ b/web3game/.vercel/output/static/assets/twitch-DY-zpdKt.js @@ -0,0 +1,18 @@ +import{F as l}from"./index-DVkBgnkX.js";const i=l` + + + + + + + + + + + + + +`;export{i as twitchSvg}; diff --git a/web3game/.vercel/output/static/assets/twitterIcon-DTouZ5iL.js b/web3game/.vercel/output/static/assets/twitterIcon-DTouZ5iL.js new file mode 100644 index 0000000000..7f89a78a55 --- /dev/null +++ b/web3game/.vercel/output/static/assets/twitterIcon-DTouZ5iL.js @@ -0,0 +1,6 @@ +import{F as o}from"./index-DVkBgnkX.js";const c=o` + +`;export{c as twitterIconSvg}; diff --git a/web3game/.vercel/output/static/assets/verify-BkwPA2pZ.js b/web3game/.vercel/output/static/assets/verify-BkwPA2pZ.js new file mode 100644 index 0000000000..4f805c1e62 --- /dev/null +++ b/web3game/.vercel/output/static/assets/verify-BkwPA2pZ.js @@ -0,0 +1,8 @@ +import{F as l}from"./index-DVkBgnkX.js";const c=l` + +`;export{c as verifySvg}; diff --git a/web3game/.vercel/output/static/assets/verify-filled-Dn8Tpdxd.js b/web3game/.vercel/output/static/assets/verify-filled-Dn8Tpdxd.js new file mode 100644 index 0000000000..b81032597f --- /dev/null +++ b/web3game/.vercel/output/static/assets/verify-filled-Dn8Tpdxd.js @@ -0,0 +1,8 @@ +import{F as l}from"./index-DVkBgnkX.js";const o=l` + +`;export{o as verifyFilledSvg}; diff --git a/web3game/.vercel/output/static/assets/w3m-modal-2k5y_YMI.js b/web3game/.vercel/output/static/assets/w3m-modal-2k5y_YMI.js new file mode 100644 index 0000000000..8af7bed746 --- /dev/null +++ b/web3game/.vercel/output/static/assets/w3m-modal-2k5y_YMI.js @@ -0,0 +1,469 @@ +import{i as g,b as B,r as v,x as c,P as E,f as ee,D as te,R as l,j as w,p as j,z as oe,l as U,k as ie,e as X,J as z,M as h,O,C as K,A as q,S as N,t as D,T as ne,Q as ae,d as se,c as re}from"./index-DVkBgnkX.js";import{c as y,n as p,r as d,o as H,U as ce}from"./if-defined-DVOmkLu5.js";import"./index-BGjtclTS.js";import"./index-QpqlfPgl.js";import"./index-Cxc8tIRM.js";import"./index-B2osUT2V.js";import"./index-swSfGf8i.js";import"./index-Bz4Ul6tQ.js";const le=g` + :host { + display: block; + border-radius: clamp(0px, var(--wui-border-radius-l), 44px); + box-shadow: 0 0 0 1px var(--wui-color-gray-glass-005); + background-color: var(--wui-color-modal-bg); + overflow: hidden; + } + + :host([data-embedded='true']) { + box-shadow: + 0 0 0 1px var(--wui-color-gray-glass-005), + 0px 4px 12px 4px var(--w3m-card-embedded-shadow-color); + } +`;var de=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var r=s.length-1;r>=0;r--)(a=s[r])&&(o=(n<3?a(o):n>3?a(e,t,o):a(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};let Y=class extends v{render(){return c``}};Y.styles=[B,le];Y=de([y("wui-card")],Y);const ue=g` + :host { + display: flex; + align-items: center; + justify-content: center; + padding: var(--wui-spacing-s); + border-radius: var(--wui-border-radius-s); + border: 1px solid var(--wui-color-dark-glass-100); + box-sizing: border-box; + background-color: var(--wui-color-bg-325); + box-shadow: 0px 0px 16px 0px rgba(0, 0, 0, 0.25); + } + + wui-flex { + width: 100%; + } + + wui-text { + word-break: break-word; + flex: 1; + } + + .close { + cursor: pointer; + } + + .icon-box { + height: 40px; + width: 40px; + border-radius: var(--wui-border-radius-3xs); + background-color: var(--local-icon-bg-value); + } +`;var T=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var r=s.length-1;r>=0;r--)(a=s[r])&&(o=(n<3?a(o):n>3?a(e,t,o):a(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};let k=class extends v{constructor(){super(...arguments),this.message="",this.backgroundColor="accent-100",this.iconColor="accent-100",this.icon="info"}render(){return this.style.cssText=` + --local-icon-bg-value: var(--wui-color-${this.backgroundColor}); + `,c` + + + + + + ${this.message} + + + + `}onClose(){E.close()}};k.styles=[B,ue];T([p()],k.prototype,"message",void 0);T([p()],k.prototype,"backgroundColor",void 0);T([p()],k.prototype,"iconColor",void 0);T([p()],k.prototype,"icon",void 0);k=T([y("wui-alertbar")],k);const pe=g` + :host { + display: block; + position: absolute; + top: var(--wui-spacing-s); + left: var(--wui-spacing-l); + right: var(--wui-spacing-l); + opacity: 0; + pointer-events: none; + } +`;var J=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var r=s.length-1;r>=0;r--)(a=s[r])&&(o=(n<3?a(o):n>3?a(e,t,o):a(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};const he={info:{backgroundColor:"fg-350",iconColor:"fg-325",icon:"info"},success:{backgroundColor:"success-glass-reown-020",iconColor:"success-125",icon:"checkmark"},warning:{backgroundColor:"warning-glass-reown-020",iconColor:"warning-100",icon:"warningCircle"},error:{backgroundColor:"error-glass-reown-020",iconColor:"error-125",icon:"exclamationTriangle"}};let R=class extends v{constructor(){super(),this.unsubscribe=[],this.open=E.state.open,this.onOpen(!0),this.unsubscribe.push(E.subscribeKey("open",e=>{this.open=e,this.onOpen(!1)}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){const{message:e,variant:t}=E.state,i=he[t];return c` + + `}onOpen(e){this.open?(this.animate([{opacity:0,transform:"scale(0.85)"},{opacity:1,transform:"scale(1)"}],{duration:150,fill:"forwards",easing:"ease"}),this.style.cssText="pointer-events: auto"):e||(this.animate([{opacity:1,transform:"scale(1)"},{opacity:0,transform:"scale(0.85)"}],{duration:150,fill:"forwards",easing:"ease"}),this.style.cssText="pointer-events: none")}};R.styles=pe;J([d()],R.prototype,"open",void 0);R=J([y("w3m-alertbar")],R);const we=g` + button { + display: block; + display: flex; + align-items: center; + padding: var(--wui-spacing-xxs); + gap: var(--wui-spacing-xxs); + transition: all var(--wui-ease-out-power-1) var(--wui-duration-md); + border-radius: var(--wui-border-radius-xxs); + } + + wui-image { + border-radius: 100%; + width: var(--wui-spacing-xl); + height: var(--wui-spacing-xl); + } + + wui-icon-box { + width: var(--wui-spacing-xl); + height: var(--wui-spacing-xl); + } + + button:hover { + background-color: var(--wui-color-gray-glass-002); + } + + button:active { + background-color: var(--wui-color-gray-glass-005); + } +`;var Q=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var r=s.length-1;r>=0;r--)(a=s[r])&&(o=(n<3?a(o):n>3?a(e,t,o):a(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};let I=class extends v{constructor(){super(...arguments),this.imageSrc=""}render(){return c``}imageTemplate(){return this.imageSrc?c``:c``}};I.styles=[B,ee,te,we];Q([p()],I.prototype,"imageSrc",void 0);I=Q([y("wui-select")],I);const me=g` + :host { + height: 64px; + } + + wui-text { + text-transform: capitalize; + } + + wui-flex.w3m-header-title { + transform: translateY(0); + opacity: 1; + } + + wui-flex.w3m-header-title[view-direction='prev'] { + animation: + slide-down-out 120ms forwards var(--wui-ease-out-power-2), + slide-down-in 120ms forwards var(--wui-ease-out-power-2); + animation-delay: 0ms, 200ms; + } + + wui-flex.w3m-header-title[view-direction='next'] { + animation: + slide-up-out 120ms forwards var(--wui-ease-out-power-2), + slide-up-in 120ms forwards var(--wui-ease-out-power-2); + animation-delay: 0ms, 200ms; + } + + wui-icon-link[data-hidden='true'] { + opacity: 0 !important; + pointer-events: none; + } + + @keyframes slide-up-out { + from { + transform: translateY(0px); + opacity: 1; + } + to { + transform: translateY(3px); + opacity: 0; + } + } + + @keyframes slide-up-in { + from { + transform: translateY(-3px); + opacity: 0; + } + to { + transform: translateY(0); + opacity: 1; + } + } + + @keyframes slide-down-out { + from { + transform: translateY(0px); + opacity: 1; + } + to { + transform: translateY(-3px); + opacity: 0; + } + } + + @keyframes slide-down-in { + from { + transform: translateY(3px); + opacity: 0; + } + to { + transform: translateY(0); + opacity: 1; + } + } +`;var m=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var r=s.length-1;r>=0;r--)(a=s[r])&&(o=(n<3?a(o):n>3?a(e,t,o):a(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};const fe=["SmartSessionList"];function L(){var a,r,C,A,W,P,$;const s=(r=(a=l.state.data)==null?void 0:a.connector)==null?void 0:r.name,e=(A=(C=l.state.data)==null?void 0:C.wallet)==null?void 0:A.name,t=(P=(W=l.state.data)==null?void 0:W.network)==null?void 0:P.name,i=e??s,n=K.getConnectors();return{Connect:`Connect ${n.length===1&&(($=n[0])==null?void 0:$.id)==="w3m-email"?"Email":""} Wallet`,Create:"Create Wallet",ChooseAccountName:void 0,Account:void 0,AccountSettings:void 0,AllWallets:"All Wallets",ApproveTransaction:"Approve Transaction",BuyInProgress:"Buy",ConnectingExternal:i??"Connect Wallet",ConnectingWalletConnect:i??"WalletConnect",ConnectingWalletConnectBasic:"WalletConnect",ConnectingSiwe:"Sign In",Convert:"Convert",ConvertSelectToken:"Select token",ConvertPreview:"Preview convert",Downloads:i?`Get ${i}`:"Downloads",EmailVerifyOtp:"Confirm Email",EmailVerifyDevice:"Register Device",GetWallet:"Get a wallet",Networks:"Choose Network",OnRampProviders:"Choose Provider",OnRampActivity:"Activity",OnRampTokenSelect:"Select Token",OnRampFiatSelect:"Select Currency",Profile:void 0,SwitchNetwork:t??"Switch Network",SwitchAddress:"Switch Address",Transactions:"Activity",UnsupportedChain:"Switch Network",UpgradeEmailWallet:"Upgrade your Wallet",UpdateEmailWallet:"Edit Email",UpdateEmailPrimaryOtp:"Confirm Current Email",UpdateEmailSecondaryOtp:"Confirm New Email",WhatIsABuy:"What is Buy?",RegisterAccountName:"Choose name",RegisterAccountNameSuccess:"",WalletReceive:"Receive",WalletCompatibleNetworks:"Compatible Networks",Swap:"Swap",SwapSelectToken:"Select token",SwapPreview:"Preview swap",WalletSend:"Send",WalletSendPreview:"Review send",WalletSendSelectToken:"Select Token",WhatIsANetwork:"What is a network?",WhatIsAWallet:"What is a wallet?",ConnectWallets:"Connect wallet",ConnectSocials:"All socials",ConnectingSocial:q.state.socialProvider?q.state.socialProvider:"Connect Social",ConnectingMultiChain:"Select chain",ConnectingFarcaster:"Farcaster",SwitchActiveChain:"Switch chain",SmartSessionCreated:void 0,SmartSessionList:"Smart Sessions",SIWXSignMessage:"Sign In"}}let u=class extends v{constructor(){super(),this.unsubscribe=[],this.heading=L()[l.state.view],this.network=w.state.activeCaipNetwork,this.networkImage=j.getNetworkImage(this.network),this.buffering=!1,this.showBack=!1,this.prevHistoryLength=1,this.view=l.state.view,this.viewDirection="",this.headerText=L()[l.state.view],this.unsubscribe.push(oe.subscribeNetworkImages(()=>{this.networkImage=j.getNetworkImage(this.network)}),l.subscribeKey("view",e=>{setTimeout(()=>{this.view=e,this.headerText=L()[e]},U.ANIMATION_DURATIONS.HeaderText),this.onViewChange(),this.onHistoryChange()}),ie.subscribeKey("buffering",e=>this.buffering=e),w.subscribeKey("activeCaipNetwork",e=>{this.network=e,this.networkImage=j.getNetworkImage(this.network)}))}disconnectCallback(){this.unsubscribe.forEach(e=>e())}render(){return c` + + ${this.leftHeaderTemplate()} ${this.titleTemplate()} ${this.rightHeaderTemplate()} + + `}onWalletHelp(){X.sendEvent({type:"track",event:"CLICK_WALLET_HELP"}),l.push("WhatIsAWallet")}async onClose(){l.state.view==="UnsupportedChain"||await z.isSIWXCloseDisabled()?h.shake():h.close()}rightHeaderTemplate(){var t,i,n;const e=(n=(i=(t=O)==null?void 0:t.state)==null?void 0:i.features)==null?void 0:n.smartSessions;return l.state.view!=="Account"||!e?this.closeButtonTemplate():c` + l.push("SmartSessionList")} + data-testid="w3m-header-smart-sessions" + > + ${this.closeButtonTemplate()} + `}closeButtonTemplate(){return c` + + `}titleTemplate(){const e=fe.includes(this.view);return c` + + ${this.headerText} + ${e?c`Beta`:null} + + `}leftHeaderTemplate(){var C;const{view:e}=l.state,t=e==="Connect",i=O.state.enableEmbedded,n=e==="ApproveTransaction",o=e==="ConnectingSiwe",a=e==="Account",r=n||o||t&&i;return a?c``:this.showBack&&!r?c``:c``}onNetworks(){this.isAllowedNetworkSwitch()&&(X.sendEvent({type:"track",event:"CLICK_NETWORKS"}),l.push("Networks"))}isAllowedNetworkSwitch(){const e=w.getAllRequestedCaipNetworks(),t=e?e.length>1:!1,i=e==null?void 0:e.find(({id:n})=>{var o;return n===((o=this.network)==null?void 0:o.id)});return t||!i}getPadding(){return this.heading?["l","2l","l","2l"]:["0","2l","0","2l"]}onViewChange(){const{history:e}=l.state;let t=U.VIEW_DIRECTION.Next;e.length1&&!this.showBack&&t?(await t.animate([{opacity:1},{opacity:0}],{duration:200,fill:"forwards",easing:"ease"}).finished,this.showBack=!0,t.animate([{opacity:0},{opacity:1}],{duration:200,fill:"forwards",easing:"ease"})):e.length<=1&&this.showBack&&t&&(await t.animate([{opacity:1},{opacity:0}],{duration:200,fill:"forwards",easing:"ease"}).finished,this.showBack=!1,t.animate([{opacity:0},{opacity:1}],{duration:200,fill:"forwards",easing:"ease"}))}onGoBack(){l.goBack()}};u.styles=me;m([d()],u.prototype,"heading",void 0);m([d()],u.prototype,"network",void 0);m([d()],u.prototype,"networkImage",void 0);m([d()],u.prototype,"buffering",void 0);m([d()],u.prototype,"showBack",void 0);m([d()],u.prototype,"prevHistoryLength",void 0);m([d()],u.prototype,"view",void 0);m([d()],u.prototype,"viewDirection",void 0);m([d()],u.prototype,"headerText",void 0);u=m([y("w3m-header")],u);const be=g` + :host { + display: flex; + column-gap: var(--wui-spacing-s); + align-items: center; + padding: var(--wui-spacing-xs) var(--wui-spacing-m) var(--wui-spacing-xs) var(--wui-spacing-xs); + border-radius: var(--wui-border-radius-s); + border: 1px solid var(--wui-color-gray-glass-005); + box-sizing: border-box; + background-color: var(--wui-color-bg-175); + box-shadow: + 0px 14px 64px -4px rgba(0, 0, 0, 0.15), + 0px 8px 22px -6px rgba(0, 0, 0, 0.15); + + max-width: 300px; + } + + :host wui-loading-spinner { + margin-left: var(--wui-spacing-3xs); + } +`;var x=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var r=s.length-1;r>=0;r--)(a=s[r])&&(o=(n<3?a(o):n>3?a(e,t,o):a(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};let f=class extends v{constructor(){super(...arguments),this.backgroundColor="accent-100",this.iconColor="accent-100",this.icon="checkmark",this.message="",this.loading=!1,this.iconType="default"}render(){return c` + ${this.templateIcon()} + ${this.message} + `}templateIcon(){return this.loading?c``:this.iconType==="default"?c``:c``}};f.styles=[B,be];x([p()],f.prototype,"backgroundColor",void 0);x([p()],f.prototype,"iconColor",void 0);x([p()],f.prototype,"icon",void 0);x([p()],f.prototype,"message",void 0);x([p()],f.prototype,"loading",void 0);x([p()],f.prototype,"iconType",void 0);f=x([y("wui-snackbar")],f);const ge=g` + :host { + display: block; + position: absolute; + opacity: 0; + pointer-events: none; + top: 11px; + left: 50%; + width: max-content; + } +`;var Z=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var r=s.length-1;r>=0;r--)(a=s[r])&&(o=(n<3?a(o):n>3?a(e,t,o):a(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};const ve={loading:void 0,success:{backgroundColor:"success-100",iconColor:"success-100",icon:"checkmark"},error:{backgroundColor:"error-100",iconColor:"error-100",icon:"close"}};let _=class extends v{constructor(){super(),this.unsubscribe=[],this.timeout=void 0,this.open=N.state.open,this.unsubscribe.push(N.subscribeKey("open",e=>{this.open=e,this.onOpen()}))}disconnectedCallback(){clearTimeout(this.timeout),this.unsubscribe.forEach(e=>e())}render(){const{message:e,variant:t,svg:i}=N.state,n=ve[t],{icon:o,iconColor:a}=i??n??{};return c` + + `}onOpen(){clearTimeout(this.timeout),this.open?(this.animate([{opacity:0,transform:"translateX(-50%) scale(0.85)"},{opacity:1,transform:"translateX(-50%) scale(1)"}],{duration:150,fill:"forwards",easing:"ease"}),this.timeout&&clearTimeout(this.timeout),N.state.autoClose&&(this.timeout=setTimeout(()=>N.hide(),2500))):this.animate([{opacity:1,transform:"translateX(-50%) scale(1)"},{opacity:0,transform:"translateX(-50%) scale(0.85)"}],{duration:150,fill:"forwards",easing:"ease"})}};_.styles=ge;Z([d()],_.prototype,"open",void 0);_=Z([y("w3m-snackbar")],_);const ye=g` + :host { + z-index: var(--w3m-z-index); + display: block; + backface-visibility: hidden; + will-change: opacity; + position: fixed; + top: 0; + left: 0; + right: 0; + bottom: 0; + pointer-events: none; + opacity: 0; + background-color: var(--wui-cover); + transition: opacity 0.2s var(--wui-ease-out-power-2); + will-change: opacity; + } + + :host(.open) { + opacity: 1; + } + + :host(.embedded) { + position: relative; + pointer-events: unset; + background: none; + width: 100%; + opacity: 1; + } + + wui-card { + max-width: var(--w3m-modal-width); + width: 100%; + position: relative; + animation: zoom-in 0.2s var(--wui-ease-out-power-2); + animation-fill-mode: backwards; + outline: none; + transition: + border-radius var(--wui-duration-lg) var(--wui-ease-out-power-1), + background-color var(--wui-duration-lg) var(--wui-ease-out-power-1); + will-change: border-radius, background-color; + } + + :host(.embedded) wui-card { + max-width: 400px; + } + + wui-card[shake='true'] { + animation: + zoom-in 0.2s var(--wui-ease-out-power-2), + w3m-shake 0.5s var(--wui-ease-out-power-2); + } + + wui-flex { + overflow-x: hidden; + overflow-y: auto; + display: flex; + align-items: center; + justify-content: center; + width: 100%; + height: 100%; + } + + @media (max-height: 700px) and (min-width: 431px) { + wui-flex { + align-items: flex-start; + } + + wui-card { + margin: var(--wui-spacing-xxl) 0px; + } + } + + @media (max-width: 430px) { + wui-flex { + align-items: flex-end; + } + + wui-card { + max-width: 100%; + border-bottom-left-radius: var(--local-border-bottom-mobile-radius); + border-bottom-right-radius: var(--local-border-bottom-mobile-radius); + border-bottom: none; + animation: slide-in 0.2s var(--wui-ease-out-power-2); + } + + wui-card[shake='true'] { + animation: + slide-in 0.2s var(--wui-ease-out-power-2), + w3m-shake 0.5s var(--wui-ease-out-power-2); + } + } + + @keyframes zoom-in { + 0% { + transform: scale(0.95) translateY(0); + } + 100% { + transform: scale(1) translateY(0); + } + } + + @keyframes slide-in { + 0% { + transform: scale(1) translateY(50px); + } + 100% { + transform: scale(1) translateY(0); + } + } + + @keyframes w3m-shake { + 0% { + transform: scale(1) rotate(0deg); + } + 20% { + transform: scale(1) rotate(-1deg); + } + 40% { + transform: scale(1) rotate(1.5deg); + } + 60% { + transform: scale(1) rotate(-1.5deg); + } + 80% { + transform: scale(1) rotate(1deg); + } + 100% { + transform: scale(1) rotate(0deg); + } + } + + @keyframes w3m-view-height { + from { + height: var(--prev-height); + } + to { + height: var(--new-height); + } + } +`;var S=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var r=s.length-1;r>=0;r--)(a=s[r])&&(o=(n<3?a(o):n>3?a(e,t,o):a(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o};const F="scroll-lock";let b=class extends v{constructor(){super(),this.unsubscribe=[],this.abortController=void 0,this.hasPrefetched=!1,this.enableEmbedded=O.state.enableEmbedded,this.open=h.state.open,this.caipAddress=w.state.activeCaipAddress,this.caipNetwork=w.state.activeCaipNetwork,this.shake=h.state.shake,this.filterByNamespace=K.state.filterByNamespace,this.initializeTheming(),D.prefetchAnalyticsConfig(),this.unsubscribe.push(h.subscribeKey("open",e=>e?this.onOpen():this.onClose()),h.subscribeKey("shake",e=>this.shake=e),w.subscribeKey("activeCaipNetwork",e=>this.onNewNetwork(e)),w.subscribeKey("activeCaipAddress",e=>this.onNewAddress(e)),O.subscribeKey("enableEmbedded",e=>this.enableEmbedded=e),K.subscribeKey("filterByNamespace",e=>{this.filterByNamespace!==e&&(D.fetchRecommendedWallets(),this.filterByNamespace=e)}))}firstUpdated(){if(this.caipAddress){if(this.enableEmbedded){h.close(),this.prefetch();return}this.onNewAddress(this.caipAddress)}this.open&&this.onOpen(),this.enableEmbedded&&this.prefetch()}disconnectedCallback(){this.unsubscribe.forEach(e=>e()),this.onRemoveKeyboardListener()}render(){return this.style.cssText=` + --local-border-bottom-mobile-radius: ${this.enableEmbedded?"clamp(0px, var(--wui-border-radius-l), 44px)":"0px"}; + `,this.enableEmbedded?c`${this.contentTemplate()} + `:this.open?c` + + ${this.contentTemplate()} + + + `:null}contentTemplate(){return c` + + + + + `}async onOverlayClick(e){e.target===e.currentTarget&&await this.handleClose()}async handleClose(){l.state.view==="UnsupportedChain"||await z.isSIWXCloseDisabled()?h.shake():h.close()}initializeTheming(){const{themeVariables:e,themeMode:t}=ne.state,i=ce.getColorTheme(t);ae(e,i)}onClose(){this.open=!1,this.classList.remove("open"),this.onScrollUnlock(),N.hide(),this.onRemoveKeyboardListener()}onOpen(){this.open=!0,this.classList.add("open"),this.onScrollLock(),this.onAddKeyboardListener()}onScrollLock(){const e=document.createElement("style");e.dataset.w3m=F,e.textContent=` + body { + touch-action: none; + overflow: hidden; + overscroll-behavior: contain; + } + w3m-modal { + pointer-events: auto; + } + `,document.head.appendChild(e)}onScrollUnlock(){const e=document.head.querySelector(`style[data-w3m="${F}"]`);e&&e.remove()}onAddKeyboardListener(){var t;this.abortController=new AbortController;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("wui-card");e==null||e.focus(),window.addEventListener("keydown",i=>{if(i.key==="Escape")this.handleClose();else if(i.key==="Tab"){const{tagName:n}=i.target;n&&!n.includes("W3M-")&&!n.includes("WUI-")&&(e==null||e.focus())}},this.abortController)}onRemoveKeyboardListener(){var e;(e=this.abortController)==null||e.abort(),this.abortController=void 0}async onNewAddress(e){const t=w.state.isSwitchingNamespace,i=se.getPlainAddress(e);!i&&!t?h.close():t&&i&&l.goBack(),await z.initializeIfEnabled(),this.caipAddress=e,w.setIsSwitchingNamespace(!1)}onNewNetwork(e){var $,M,V,G;const t=(M=($=this.caipNetwork)==null?void 0:$.caipNetworkId)==null?void 0:M.toString(),i=(V=e==null?void 0:e.caipNetworkId)==null?void 0:V.toString(),n=t&&i&&t!==i,o=w.state.isSwitchingNamespace,a=((G=this.caipNetwork)==null?void 0:G.name)===re.UNSUPPORTED_NETWORK_NAME,r=l.state.view==="ConnectingExternal",C=!this.caipAddress,A=n&&!a&&!o,W=l.state.view==="UnsupportedChain";!r&&(C||W||A)&&l.goBack(),this.caipNetwork=e}prefetch(){this.hasPrefetched||(this.hasPrefetched=!0,D.prefetch())}};b.styles=ye;S([p({type:Boolean})],b.prototype,"enableEmbedded",void 0);S([d()],b.prototype,"open",void 0);S([d()],b.prototype,"caipAddress",void 0);S([d()],b.prototype,"caipNetwork",void 0);S([d()],b.prototype,"shake",void 0);S([d()],b.prototype,"filterByNamespace",void 0);b=S([y("w3m-modal")],b);export{b as W3mModal}; diff --git a/web3game/.vercel/output/static/assets/wallet-DHIi6hLs.js b/web3game/.vercel/output/static/assets/wallet-DHIi6hLs.js new file mode 100644 index 0000000000..c7985f4b71 --- /dev/null +++ b/web3game/.vercel/output/static/assets/wallet-DHIi6hLs.js @@ -0,0 +1,8 @@ +import{F as c}from"./index-DVkBgnkX.js";const v=c` + +`;export{v as walletSvg}; diff --git a/web3game/.vercel/output/static/assets/wallet-placeholder-ZNRmXa0_.js b/web3game/.vercel/output/static/assets/wallet-placeholder-ZNRmXa0_.js new file mode 100644 index 0000000000..725320131e --- /dev/null +++ b/web3game/.vercel/output/static/assets/wallet-placeholder-ZNRmXa0_.js @@ -0,0 +1,14 @@ +import{F as a}from"./index-DVkBgnkX.js";const v=a` + + + + +`;export{v as walletPlaceholderSvg}; diff --git a/web3game/.vercel/output/static/assets/walletconnect-CsuS1Jxc.js b/web3game/.vercel/output/static/assets/walletconnect-CsuS1Jxc.js new file mode 100644 index 0000000000..567756b360 --- /dev/null +++ b/web3game/.vercel/output/static/assets/walletconnect-CsuS1Jxc.js @@ -0,0 +1,30 @@ +import{F as l}from"./index-DVkBgnkX.js";const t=l` + + +`,C=l` + + + + + + + + + + + +`,L=l` + + + + + + +`;export{L as walletConnectBrownSvg,C as walletConnectLightBrownSvg,t as walletConnectSvg}; diff --git a/web3game/.vercel/output/static/assets/warning-circle-pbE6L1a0.js b/web3game/.vercel/output/static/assets/warning-circle-pbE6L1a0.js new file mode 100644 index 0000000000..1f7e93b602 --- /dev/null +++ b/web3game/.vercel/output/static/assets/warning-circle-pbE6L1a0.js @@ -0,0 +1,12 @@ +import{F as l}from"./index-DVkBgnkX.js";const e=l` + + +`;export{e as warningCircleSvg}; diff --git a/web3game/.vercel/output/static/assets/x-Pfa4sQvV.js b/web3game/.vercel/output/static/assets/x-Pfa4sQvV.js new file mode 100644 index 0000000000..3de4043766 --- /dev/null +++ b/web3game/.vercel/output/static/assets/x-Pfa4sQvV.js @@ -0,0 +1,12 @@ +import{F as l}from"./index-DVkBgnkX.js";const h=l` + + + + + + + +`;export{h as xSvg}; diff --git a/web3game/.vercel/output/static/favicon.ico b/web3game/.vercel/output/static/favicon.ico new file mode 100644 index 0000000000..db58b9a069 Binary files /dev/null and b/web3game/.vercel/output/static/favicon.ico differ diff --git a/web3game/.vercel/output/static/index.html b/web3game/.vercel/output/static/index.html new file mode 100644 index 0000000000..8f9620e901 --- /dev/null +++ b/web3game/.vercel/output/static/index.html @@ -0,0 +1,14 @@ + + + + + + + https://demo.reown.com/?config=eyJmZWF0dXJlcyI6eyJzd2FwcyI6dHJ1ZSwib25yYW1wIjp0cnVlLCJyZWNlaXZlIjp0cnVlLCJzZW5kIjp0cnVlLCJlbWFpbCI6dHJ1ZSwiZW1haWxTaG93V2FsbGV0cyI6dHJ1ZSwic29jaWFscyI6WyJnb29nbGUiLCJ4IiwiZGlzY29yZCIsImZhcmNhc3RlciIsImdpdGh1YiIsImFwcGxlIiwiZmFjZWJvb2siXSwiY29ubmVjdG9yVHlwZU9yZGVyIjpbIndhbGxldENvbm5lY3QiLCJyZWNlbnQiLCJpbmplY3RlZCIsImZlYXR1cmVkIiwiY3VzdG9tIiwiZXh0ZXJuYWwiLCJyZWNvbW1lbmRlZCJdLCJoaXN0b3J5Ijp0cnVlLCJhbmFseXRpY3MiOnRydWUsImFsbFdhbGxldHMiOnRydWUsImxlZ2FsQ2hlY2tib3giOmZhbHNlLCJzbWFydFNlc3Npb25zIjpmYWxzZSwiY29sbGFwc2VXYWxsZXRzIjp0cnVlLCJ3YWxsZXRGZWF0dXJlc09yZGVyIjpbIm9ucmFtcCIsInN3YXBzIiwicmVjZWl2ZSIsInNlbmQiXSwiY29ubmVjdE1ldGhvZHNPcmRlciI6WyJ3YWxsZXQiLCJlbWFpbCIsInNvY2lhbCJdfSwidGhlbWVWYXJpYWJsZXMiOnt9LCJ0aGVtZU1vZGUiOiJkYXJrIn0= + + + + +
+ + diff --git a/web3game/.vercel/output/static/reown.svg b/web3game/.vercel/output/static/reown.svg new file mode 100644 index 0000000000..99353d6aec --- /dev/null +++ b/web3game/.vercel/output/static/reown.svg @@ -0,0 +1,2 @@ + + \ No newline at end of file