@capxul/mcp 2.6.1 → 2.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
- import { i as __toESM, n as __exportAll, r as __require, t as __commonJSMin } from "./chunk-2rV9d50f.mjs";
3
- import { t as import_eventemitter3 } from "./eventemitter3-BAR9woZ4.mjs";
4
- import { t as require_lib } from "./lib-DYnihSM4.mjs";
2
+ import { i as __toESM, n as __exportAll, r as __require, t as __commonJSMin } from "./rolldown-runtime-B4iAMlE-.mjs";
3
+ import { t as import_eventemitter3 } from "./eventemitter3-CtD_UIP9.mjs";
4
+ import { t as require_lib } from "./lib-C5eHZg-C.mjs";
5
5
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
6
6
  import { createHash, randomBytes } from "node:crypto";
7
7
  import { createServer } from "node:http";
@@ -28,7 +28,7 @@ import { getChainId, getCode, readContract, signTypedData } from "viem/actions";
28
28
  import { getAction } from "viem/utils";
29
29
  import { baseSepolia } from "viem/chains";
30
30
  //#region src/approvals.ts
31
- const DEFAULT_TTL_MS$1 = 60 * 6e4;
31
+ const DEFAULT_TTL_MS$1 = 36e5;
32
32
  const DEFAULT_MAX_ENTRIES = 1e3;
33
33
  var InMemoryApprovalStore = class {
34
34
  entries = /* @__PURE__ */ new Map();
@@ -70,8 +70,8 @@ var InMemoryApprovalStore = class {
70
70
  }
71
71
  };
72
72
  const REQUIRED_MCP_SCOPE = "mcp:tools";
73
- const DEFAULT_CODE_TTL_MS = 5 * 6e4;
74
- const DEFAULT_ACCESS_TOKEN_TTL_MS = 60 * 6e4;
73
+ const DEFAULT_CODE_TTL_MS = 3e5;
74
+ const DEFAULT_ACCESS_TOKEN_TTL_MS = 36e5;
75
75
  const EMAIL_PATTERN = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
76
76
  var InMemoryOAuthProvider = class {
77
77
  issuer;
@@ -240,7 +240,7 @@ function normalizeEmail(email) {
240
240
  }
241
241
  //#endregion
242
242
  //#region package.json
243
- var version$2 = "2.6.1";
243
+ var version$2 = "2.7.0";
244
244
  //#endregion
245
245
  //#region ../../packages/errors/src/chain-cause.ts
246
246
  /**
@@ -411,7 +411,7 @@ const CAPXUL_ERROR_CODES = [
411
411
  * code rename forces this set to move with it) stops the two sides of the wire
412
412
  * from drifting and silently splitting one outcome across two streams.
413
413
  */
414
- const EXPECTED_OPERATION_OUTCOMES = new Set([
414
+ const EXPECTED_OPERATION_OUTCOMES = /* @__PURE__ */ new Set([
415
415
  "INVALID_INPUT",
416
416
  "NOT_AUTHENTICATED",
417
417
  "SMART_ACCOUNT_MISSING",
@@ -812,22 +812,24 @@ function buildCapxulSafeInitializer(owner) {
812
812
  functionName: "enableModules",
813
813
  args: [[SAFE_4337_MODULE]]
814
814
  });
815
+ const enableModulesByteLen = BigInt((enableModulesCall.length - 2) / 2);
816
+ const multiSendPayload = encodePacked([
817
+ "uint8",
818
+ "address",
819
+ "uint256",
820
+ "uint256",
821
+ "bytes"
822
+ ], [
823
+ 1,
824
+ SAFE_MODULE_SETUP,
825
+ 0n,
826
+ enableModulesByteLen,
827
+ enableModulesCall
828
+ ]);
815
829
  const setupData = encodeFunctionData({
816
830
  abi: multiSendAbi$2,
817
831
  functionName: "multiSend",
818
- args: [encodePacked([
819
- "uint8",
820
- "address",
821
- "uint256",
822
- "uint256",
823
- "bytes"
824
- ], [
825
- 1,
826
- SAFE_MODULE_SETUP,
827
- 0n,
828
- BigInt((enableModulesCall.length - 2) / 2),
829
- enableModulesCall
830
- ])]
832
+ args: [multiSendPayload]
831
833
  });
832
834
  return encodeFunctionData({
833
835
  abi: safeSetupAbi$1,
@@ -897,11 +899,13 @@ function deriveCapxulSafeAddressForOwner(input) {
897
899
  email: input.email,
898
900
  namespace: input.namespace
899
901
  });
902
+ const salt = keccak256(encodePacked(["bytes32", "uint256"], [keccak256(initializer), saltNonce]));
903
+ const deploymentCode = concat([SAFE_PROXY_CREATION_CODE, encodeAbiParameters([{ type: "uint256" }], [BigInt(SAFE_L2_SINGLETON)])]);
900
904
  return getContractAddress({
901
905
  opcode: "CREATE2",
902
906
  from: SAFE_PROXY_FACTORY,
903
- salt: keccak256(encodePacked(["bytes32", "uint256"], [keccak256(initializer), saltNonce])),
904
- bytecodeHash: keccak256(concat([SAFE_PROXY_CREATION_CODE, encodeAbiParameters([{ type: "uint256" }], [BigInt(SAFE_L2_SINGLETON)])]))
907
+ salt,
908
+ bytecodeHash: keccak256(deploymentCode)
905
909
  }).toLowerCase();
906
910
  }
907
911
  /** Canonical ERC-4337 EntryPoint v0.7 address (same on every chain). */
@@ -1852,22 +1856,24 @@ function buildCapxulOrgInitializer(input) {
1852
1856
  functionName: "enableModules",
1853
1857
  args: [[SAFE_4337_MODULE]]
1854
1858
  });
1859
+ const enableModulesByteLen = BigInt((enableModulesCall.length - 2) / 2);
1860
+ const multiSendPayload = encodePacked([
1861
+ "uint8",
1862
+ "address",
1863
+ "uint256",
1864
+ "uint256",
1865
+ "bytes"
1866
+ ], [
1867
+ 1,
1868
+ SAFE_MODULE_SETUP,
1869
+ 0n,
1870
+ enableModulesByteLen,
1871
+ enableModulesCall
1872
+ ]);
1855
1873
  const setupData = encodeFunctionData({
1856
1874
  abi: multiSendAbi$1,
1857
1875
  functionName: "multiSend",
1858
- args: [encodePacked([
1859
- "uint8",
1860
- "address",
1861
- "uint256",
1862
- "uint256",
1863
- "bytes"
1864
- ], [
1865
- 1,
1866
- SAFE_MODULE_SETUP,
1867
- 0n,
1868
- BigInt((enableModulesCall.length - 2) / 2),
1869
- enableModulesCall
1870
- ])]
1876
+ args: [multiSendPayload]
1871
1877
  });
1872
1878
  return encodeFunctionData({
1873
1879
  abi: safeSetupAbi,
@@ -1891,11 +1897,13 @@ function deriveCapxulOrgAddress(input) {
1891
1897
  email: input.email,
1892
1898
  orgHandle
1893
1899
  });
1900
+ const salt = keccak256(encodePacked(["bytes32", "uint256"], [keccak256(initializer), saltNonce]));
1901
+ const deploymentCode = concat([SAFE_PROXY_CREATION_CODE, encodeAbiParameters([{ type: "uint256" }], [BigInt(SAFE_L2_SINGLETON)])]);
1894
1902
  return getContractAddress({
1895
1903
  opcode: "CREATE2",
1896
1904
  from: SAFE_PROXY_FACTORY,
1897
- salt: keccak256(encodePacked(["bytes32", "uint256"], [keccak256(initializer), saltNonce])),
1898
- bytecodeHash: keccak256(concat([SAFE_PROXY_CREATION_CODE, encodeAbiParameters([{ type: "uint256" }], [BigInt(SAFE_L2_SINGLETON)])]))
1905
+ salt,
1906
+ bytecodeHash: keccak256(deploymentCode)
1899
1907
  }).toLowerCase();
1900
1908
  }
1901
1909
  10n ** BigInt(6);
@@ -5511,7 +5519,7 @@ function parseCliArgs(argv, env = process.env) {
5511
5519
  let portRaw = env.CAPXUL_MCP_PORT ?? "8788";
5512
5520
  let approvalBaseUrl = env.CAPXUL_MCP_APPROVAL_URL ?? "http://localhost:5998";
5513
5521
  let stdio = false;
5514
- const valueFlags = new Map([
5522
+ const valueFlags = /* @__PURE__ */ new Map([
5515
5523
  ["--mode", (value) => {
5516
5524
  const parsed = parseMode(value);
5517
5525
  if (parsed.kind === "error") return parsed;
@@ -5718,7 +5726,7 @@ function validateDevConvexUrl(input) {
5718
5726
  }
5719
5727
  //#endregion
5720
5728
  //#region src/pending-auth.ts
5721
- const PENDING_TTL_MS = 10 * 6e4;
5729
+ const PENDING_TTL_MS = 6e5;
5722
5730
  function cacheKey(email) {
5723
5731
  return email.trim().toLowerCase();
5724
5732
  }
@@ -6406,10 +6414,11 @@ const boot = (spec, options = {}) => Effect.gen(function* () {
6406
6414
  const outcome = spec.transition(state, event);
6407
6415
  if ("refused" in outcome) return Effect.succeed(state);
6408
6416
  return Ref.set(cell, outcome.next).pipe(Effect.tap(() => {
6409
- return emit(applied(state, outcome.next, event, cursor.slot, cursor.epoch, {
6417
+ const record = applied(state, outcome.next, event, cursor.slot, cursor.epoch, {
6410
6418
  invocation: cursor.invocation,
6411
6419
  startedAt: cursor.startedAt
6412
- })).pipe(Effect.andThen(Effect.sync(() => {
6420
+ });
6421
+ return emit(record).pipe(Effect.andThen(Effect.sync(() => {
6413
6422
  notify(outcome.next);
6414
6423
  })));
6415
6424
  }), Effect.as(outcome.next));
@@ -7068,7 +7077,7 @@ function stringifyValueForError(value) {
7068
7077
  });
7069
7078
  if (str.length > MAX_VALUE_FOR_ERROR_LEN) {
7070
7079
  const rest = "[...truncated]";
7071
- let truncateAt = MAX_VALUE_FOR_ERROR_LEN - 14;
7080
+ let truncateAt = 16370;
7072
7081
  const codePoint = str.codePointAt(truncateAt - 1);
7073
7082
  if (codePoint !== void 0 && codePoint > 65535) truncateAt -= 1;
7074
7083
  return str.substring(0, truncateAt) + rest;
@@ -7085,11 +7094,13 @@ function convexToJsonInternal(value, originalValue, context, includeTopLevelUnde
7085
7094
  if (value < MIN_INT64 || MAX_INT64 < value) throw new Error(`BigInt ${value} does not fit into a 64-bit signed integer.`);
7086
7095
  return { $integer: bigIntToBase64(value) };
7087
7096
  }
7088
- if (typeof value === "number") if (isSpecial(value)) {
7089
- const buffer = /* @__PURE__ */ new ArrayBuffer(8);
7090
- new DataView(buffer).setFloat64(0, value, LITTLE_ENDIAN);
7091
- return { $float: fromByteArray(new Uint8Array(buffer)) };
7092
- } else return value;
7097
+ if (typeof value === "number") {
7098
+ if (isSpecial(value)) {
7099
+ const buffer = /* @__PURE__ */ new ArrayBuffer(8);
7100
+ new DataView(buffer).setFloat64(0, value, LITTLE_ENDIAN);
7101
+ return { $float: fromByteArray(new Uint8Array(buffer)) };
7102
+ } else return value;
7103
+ }
7093
7104
  if (typeof value === "boolean") return value;
7094
7105
  if (typeof value === "string") return value;
7095
7106
  if (value instanceof ArrayBuffer) return { $bytes: fromByteArray(new Uint8Array(value)) };
@@ -7828,7 +7839,8 @@ var __defNormalProp$11 = (obj, key, value) => key in obj ? __defProp$11(obj, key
7828
7839
  value
7829
7840
  }) : obj[key] = value;
7830
7841
  var __publicField$11 = (obj, key, value) => __defNormalProp$11(obj, typeof key !== "symbol" ? key + "" : key, value);
7831
- var _a, _b;
7842
+ var _a;
7843
+ var _b;
7832
7844
  const IDENTIFYING_FIELD = Symbol.for("ConvexError");
7833
7845
  var ConvexError = class extends (_b = Error, _a = IDENTIFYING_FIELD, _b) {
7834
7846
  constructor(data) {
@@ -7856,9 +7868,10 @@ function isFunctionHandle(s) {
7856
7868
  }
7857
7869
  function getFunctionAddress(functionReference) {
7858
7870
  let functionAddress;
7859
- if (typeof functionReference === "string") if (isFunctionHandle(functionReference)) functionAddress = { functionHandle: functionReference };
7860
- else functionAddress = { name: functionReference };
7861
- else if (functionReference[functionName]) functionAddress = { name: functionReference[functionName] };
7871
+ if (typeof functionReference === "string") {
7872
+ if (isFunctionHandle(functionReference)) functionAddress = { functionHandle: functionReference };
7873
+ else functionAddress = { name: functionReference };
7874
+ } else if (functionReference[functionName]) functionAddress = { name: functionReference[functionName] };
7862
7875
  else {
7863
7876
  const referencePath = extractReferencePath(functionReference);
7864
7877
  if (!referencePath) throw new Error(`${functionReference} is not a functionReference`);
@@ -8541,7 +8554,7 @@ const moneyExecutionContract = {
8541
8554
  };
8542
8555
  //#endregion
8543
8556
  //#region ../../packages/sdk/package.json
8544
- var version = "2.6.1";
8557
+ var version = "2.7.0";
8545
8558
  //#endregion
8546
8559
  //#region ../../packages/sdk/src/telemetry/capture-exception.ts
8547
8560
  /** Fixed, leak-safe message — the raw error message may carry PII and never ships. */
@@ -9160,7 +9173,7 @@ const paymentAttemptReleases = /* @__PURE__ */ new Set();
9160
9173
  let paymentAttemptPagehideInstalled = false;
9161
9174
  function randomPaymentRequestKey() {
9162
9175
  try {
9163
- return `pay_${Array.from(crypto.getRandomValues(new Uint8Array(16)), (byte) => byte.toString(16).padStart(2, "0")).join("")}`;
9176
+ return `pay_${Array.from(crypto.getRandomValues(/* @__PURE__ */ new Uint8Array(16)), (byte) => byte.toString(16).padStart(2, "0")).join("")}`;
9164
9177
  } catch (cause) {
9165
9178
  throw Errors.providerError("sdk", "paymentRequestKey", cause);
9166
9179
  }
@@ -9366,7 +9379,8 @@ function makeFinancialOpsMethods(deps) {
9366
9379
  };
9367
9380
  let requestKey;
9368
9381
  try {
9369
- requestKey = await paymentRequestKeyLifecycle(`personal-pay:${requestKeyScope}:${deps.actor.authSession()?.authUserId ?? "signed-out"}`, input, input.requestKey);
9382
+ const actorId = deps.actor.authSession()?.authUserId ?? "signed-out";
9383
+ requestKey = await paymentRequestKeyLifecycle(`personal-pay:${requestKeyScope}:${actorId}`, input, input.requestKey);
9370
9384
  } catch (cause) {
9371
9385
  return {
9372
9386
  ok: false,
@@ -10146,7 +10160,7 @@ const postHogOtlpEndpoints = (host) => {
10146
10160
  };
10147
10161
  };
10148
10162
  const ENGINEERING_CAPXUL_ENV_SET = new Set(ENGINEERING_CAPXUL_ENVS);
10149
- const ENGINEERING_PRODUCERS = new Set(["browser", "server"]);
10163
+ const ENGINEERING_PRODUCERS = /* @__PURE__ */ new Set(["browser", "server"]);
10150
10164
  const PUBLIC_POSTHOG_AUTHORIZATION = /^Bearer phc_[A-Za-z0-9_-]{1,191}$/u;
10151
10165
  const SAFE_RESOURCE_VALUE = /^[A-Za-z0-9][A-Za-z0-9._+@/-]{0,127}$/u;
10152
10166
  const validateEngineeringTelemetryConfig = (config) => {
@@ -10303,7 +10317,7 @@ function authSessionFromBetterAuth$1(token, user) {
10303
10317
  authUserId: toAuthUserId(user.id),
10304
10318
  email: toEmail(user.email),
10305
10319
  token: toSessionToken(token),
10306
- expiresAt: toEpochMs(Date.now() + 10080 * 60 * 1e3)
10320
+ expiresAt: toEpochMs(Date.now() + 6048e5)
10307
10321
  };
10308
10322
  }
10309
10323
  async function safeJson$1(res) {
@@ -10694,7 +10708,7 @@ function authSessionFromBetterAuth(token, user) {
10694
10708
  authUserId: toAuthUserId(user.id),
10695
10709
  email: toEmail(user.email),
10696
10710
  token: toSessionToken(token),
10697
- expiresAt: toEpochMs(Date.now() + 10080 * 60 * 1e3)
10711
+ expiresAt: toEpochMs(Date.now() + 6048e5)
10698
10712
  };
10699
10713
  }
10700
10714
  async function safeJson(res) {
@@ -11021,7 +11035,7 @@ const DEFAULT_RETRY = {
11021
11035
  baseDelayMs: 400
11022
11036
  };
11023
11037
  /** Request-side statuses a proxy or backend returns while momentarily unable to serve. */
11024
- const TRANSIENT_HTTP_STATUSES = new Set([
11038
+ const TRANSIENT_HTTP_STATUSES = /* @__PURE__ */ new Set([
11025
11039
  408,
11026
11040
  425,
11027
11041
  429
@@ -11559,9 +11573,10 @@ var LocalSyncState = class {
11559
11573
  type: "Remove",
11560
11574
  queryId: localQuery.id
11561
11575
  };
11562
- if (this.paused) if (this.pendingQuerySetModifications.has(localQuery.id)) this.pendingQuerySetModifications.delete(localQuery.id);
11563
- else this.pendingQuerySetModifications.set(localQuery.id, remove);
11564
- else this.querySetVersion = newVersion;
11576
+ if (this.paused) {
11577
+ if (this.pendingQuerySetModifications.has(localQuery.id)) this.pendingQuerySetModifications.delete(localQuery.id);
11578
+ else this.pendingQuerySetModifications.set(localQuery.id, remove);
11579
+ } else this.querySetVersion = newVersion;
11565
11580
  return {
11566
11581
  type: "ModifyQuerySet",
11567
11582
  baseVersion,
@@ -12053,7 +12068,6 @@ function parseServerMessage(encoded) {
12053
12068
  ts: u64ToLong(encoded.endVersion.ts)
12054
12069
  }
12055
12070
  };
12056
- default:
12057
12071
  }
12058
12072
  }
12059
12073
  function encodeClientMessage(message) {
@@ -12071,7 +12085,6 @@ function encodeClientMessage(message) {
12071
12085
  ...message,
12072
12086
  maxObservedTimestamp: void 0
12073
12087
  };
12074
- default:
12075
12088
  }
12076
12089
  }
12077
12090
  //#endregion
@@ -12242,8 +12255,10 @@ var WebSocketManager = class {
12242
12255
  clientTs: monotonicMillis()
12243
12256
  });
12244
12257
  }
12245
- if (this.lastCloseReason !== "InitialConnect") if (this.lastCloseReason) this.logger.log("WebSocket reconnected at", prettyNow(), "after disconnect due to", this.lastCloseReason);
12246
- else this.logger.log("WebSocket reconnected at", prettyNow());
12258
+ if (this.lastCloseReason !== "InitialConnect") {
12259
+ if (this.lastCloseReason) this.logger.log("WebSocket reconnected at", prettyNow(), "after disconnect due to", this.lastCloseReason);
12260
+ else this.logger.log("WebSocket reconnected at", prettyNow());
12261
+ }
12247
12262
  this.connectionCount += 1;
12248
12263
  this.lastCloseReason = null;
12249
12264
  if (this.pendingNetworkRecoveryInfo !== null) {
@@ -12678,7 +12693,7 @@ var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key,
12678
12693
  value
12679
12694
  }) : obj[key] = value;
12680
12695
  var __publicField$3 = (obj, key, value) => __defNormalProp$3(obj, typeof key !== "symbol" ? key + "" : key, value);
12681
- const MAXIMUM_REFRESH_DELAY = 480 * 60 * 60 * 1e3;
12696
+ const MAXIMUM_REFRESH_DELAY = 1728e6;
12682
12697
  const MAX_TOKEN_CONFIRMATION_ATTEMPTS = 2;
12683
12698
  var AuthenticationManager = class {
12684
12699
  constructor(syncState, callbacks, config) {
@@ -12798,19 +12813,20 @@ var AuthenticationManager = class {
12798
12813
  this._logVerbose("refetching auth token");
12799
12814
  const token = await this.fetchTokenAndGuardAgainstRace(this.authState.config.fetchToken, { forceRefreshToken: true });
12800
12815
  if (token.isFromOutdatedConfig) return;
12801
- if (token.value) if (this.syncState.isNewAuth(token.value)) {
12802
- this.setAuthState({
12803
- state: "waitingForServerConfirmationOfFreshToken",
12804
- hadAuth: this.syncState.hasAuth(),
12805
- token: token.value,
12816
+ if (token.value) {
12817
+ if (this.syncState.isNewAuth(token.value)) {
12818
+ this.setAuthState({
12819
+ state: "waitingForServerConfirmationOfFreshToken",
12820
+ hadAuth: this.syncState.hasAuth(),
12821
+ token: token.value,
12822
+ config: this.authState.config
12823
+ });
12824
+ this.authenticate(token.value);
12825
+ } else this.setAuthState({
12826
+ state: "notRefetching",
12806
12827
  config: this.authState.config
12807
12828
  });
12808
- this.authenticate(token.value);
12809
- } else this.setAuthState({
12810
- state: "notRefetching",
12811
- config: this.authState.config
12812
- });
12813
- else {
12829
+ } else {
12814
12830
  this._logVerbose("refetching token failed");
12815
12831
  if (this.syncState.hasAuth()) this.clearAuth();
12816
12832
  this.setAndReportAuthFailed(this.authState.config.onAuthChange);
@@ -12886,13 +12902,7 @@ var AuthenticationManager = class {
12886
12902
  switch (newAuth.state) {
12887
12903
  case "waitingForScheduledRefetch":
12888
12904
  case "notRefetching":
12889
- case "noAuth":
12890
- this.tokenConfirmationAttempts = 0;
12891
- break;
12892
- case "waitingForServerConfirmationOfFreshToken":
12893
- case "waitingForServerConfirmationOfCachedToken":
12894
- case "initialRefetch": break;
12895
- default:
12905
+ case "noAuth": this.tokenConfirmationAttempts = 0;
12896
12906
  }
12897
12907
  if (this.authState.state === "waitingForScheduledRefetch") clearTimeout(this.authState.refetchTokenTimeoutId);
12898
12908
  this.authState = newAuth;
@@ -13106,7 +13116,6 @@ var BaseConvexClient = class {
13106
13116
  this.webSocketManager.terminate();
13107
13117
  throw error;
13108
13118
  }
13109
- default:
13110
13119
  }
13111
13120
  return { hasSyncedPastLastReconnect: this.hasSyncedPastLastReconnect() };
13112
13121
  },
@@ -13496,7 +13505,7 @@ var BaseConvexClient = class {
13496
13505
  tryReportLongDisconnect() {
13497
13506
  if (!this.debug) return;
13498
13507
  const timeOfOldestRequest = this.connectionState().timeOfOldestInflightRequest;
13499
- if (timeOfOldestRequest === null || Date.now() - timeOfOldestRequest.getTime() <= 60 * 1e3) return;
13508
+ if (timeOfOldestRequest === null || Date.now() - timeOfOldestRequest.getTime() <= 6e4) return;
13500
13509
  const endpoint = `${this.address}/api/debug_event`;
13501
13510
  fetch(endpoint, {
13502
13511
  method: "POST",
@@ -14122,7 +14131,7 @@ var ConvexCallPortTag = class extends Context.Service()("@capxul/sdk/ports/Conve
14122
14131
  //#endregion
14123
14132
  //#region ../../packages/sdk/src/adapters/convex-call/ConvexCallAdapter.ts
14124
14133
  /** Exact floor-first allowlist; every additional handler must migrate its validator first. */
14125
- const OBSERVED_CONVEX_ACTIONS = new Set([
14134
+ const OBSERVED_CONVEX_ACTIONS = /* @__PURE__ */ new Set([
14126
14135
  "smartAccount/actions:claim",
14127
14136
  "org/actions:prepareFounderAccount",
14128
14137
  "org/actions:prepareBootstrap",
@@ -14130,12 +14139,12 @@ const OBSERVED_CONVEX_ACTIONS = new Set([
14130
14139
  "org/actions:resumeBootstrapSubmission",
14131
14140
  "org/actions:confirmBootstrap"
14132
14141
  ]);
14133
- const OBSERVED_CONVEX_QUERIES = new Set([
14142
+ const OBSERVED_CONVEX_QUERIES = /* @__PURE__ */ new Set([
14134
14143
  "identity/queries:loadByAuthUserId",
14135
14144
  "smartAccount/queries:loadByAuthUserId",
14136
14145
  "org/lifecycle:load"
14137
14146
  ]);
14138
- const OBSERVED_CONVEX_MUTATIONS = new Set([
14147
+ const OBSERVED_CONVEX_MUTATIONS = /* @__PURE__ */ new Set([
14139
14148
  "identity/mutations:create",
14140
14149
  "identity/mutations:update",
14141
14150
  "identity/mutations:completeOnboarding",
@@ -14259,7 +14268,7 @@ function mapToCapxulError(operation, err) {
14259
14268
  function mapToConvexCallError(operation, err) {
14260
14269
  return convexCallErrorFromCapxul(operation, mapToCapxulError(operation, err));
14261
14270
  }
14262
- const TRANSPORT_ERROR_CODES = new Set([
14271
+ const TRANSPORT_ERROR_CODES = /* @__PURE__ */ new Set([
14263
14272
  "EAI_AGAIN",
14264
14273
  "ECONNREFUSED",
14265
14274
  "ECONNRESET",
@@ -15736,7 +15745,7 @@ const SHA256_K = [
15736
15745
  function sha256Hex(input) {
15737
15746
  const padded = padSha256Message(new TextEncoder().encode(input));
15738
15747
  const view = new DataView(padded.buffer, padded.byteOffset, padded.byteLength);
15739
- const words = new Uint32Array(64);
15748
+ const words = /* @__PURE__ */ new Uint32Array(64);
15740
15749
  let h0 = SHA256_INITIAL_HASH[0];
15741
15750
  let h1 = SHA256_INITIAL_HASH[1];
15742
15751
  let h2 = SHA256_INITIAL_HASH[2];
@@ -16685,9 +16694,10 @@ var parseHeaders_default = (rawHeaders) => {
16685
16694
  key = line.substring(0, i).trim().toLowerCase();
16686
16695
  val = line.substring(i + 1).trim();
16687
16696
  if (!key || parsed[key] && ignoreDuplicateOf[key]) return;
16688
- if (key === "set-cookie") if (parsed[key]) parsed[key].push(val);
16689
- else parsed[key] = [val];
16690
- else parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
16697
+ if (key === "set-cookie") {
16698
+ if (parsed[key]) parsed[key].push(val);
16699
+ else parsed[key] = [val];
16700
+ } else parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
16691
16701
  });
16692
16702
  return parsed;
16693
16703
  };
@@ -17050,7 +17060,7 @@ var require_delayed_stream = /* @__PURE__ */ __commonJSMin(((exports, module) =>
17050
17060
  function DelayedStream() {
17051
17061
  this.source = null;
17052
17062
  this.dataSize = 0;
17053
- this.maxDataSize = 1024 * 1024;
17063
+ this.maxDataSize = 1048576;
17054
17064
  this.pauseStream = true;
17055
17065
  this._maxDataSizeExceeded = false;
17056
17066
  this._released = false;
@@ -17130,7 +17140,7 @@ var require_combined_stream = /* @__PURE__ */ __commonJSMin(((exports, module) =
17130
17140
  this.writable = false;
17131
17141
  this.readable = true;
17132
17142
  this.dataSize = 0;
17133
- this.maxDataSize = 2 * 1024 * 1024;
17143
+ this.maxDataSize = 2097152;
17134
17144
  this.pauseStreams = true;
17135
17145
  this._released = false;
17136
17146
  this._streams = [];
@@ -24511,7 +24521,8 @@ var require_abort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
24511
24521
  //#endregion
24512
24522
  //#region ../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/iterate.js
24513
24523
  var require_iterate = /* @__PURE__ */ __commonJSMin(((exports, module) => {
24514
- var async = require_async(), abort = require_abort();
24524
+ var async = require_async();
24525
+ var abort = require_abort();
24515
24526
  module.exports = iterate;
24516
24527
  /**
24517
24528
  * Iterates over each job object
@@ -24577,7 +24588,8 @@ var require_state = /* @__PURE__ */ __commonJSMin(((exports, module) => {
24577
24588
  //#endregion
24578
24589
  //#region ../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/terminator.js
24579
24590
  var require_terminator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
24580
- var abort = require_abort(), async = require_async();
24591
+ var abort = require_abort();
24592
+ var async = require_async();
24581
24593
  module.exports = terminator;
24582
24594
  /**
24583
24595
  * Terminates jobs in the attached state context
@@ -24595,7 +24607,9 @@ var require_terminator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
24595
24607
  //#endregion
24596
24608
  //#region ../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/parallel.js
24597
24609
  var require_parallel = /* @__PURE__ */ __commonJSMin(((exports, module) => {
24598
- var iterate = require_iterate(), initState = require_state(), terminator = require_terminator();
24610
+ var iterate = require_iterate();
24611
+ var initState = require_state();
24612
+ var terminator = require_terminator();
24599
24613
  module.exports = parallel;
24600
24614
  /**
24601
24615
  * Runs iterator over provided array elements in parallel
@@ -24626,7 +24640,9 @@ var require_parallel = /* @__PURE__ */ __commonJSMin(((exports, module) => {
24626
24640
  //#endregion
24627
24641
  //#region ../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/serialOrdered.js
24628
24642
  var require_serialOrdered = /* @__PURE__ */ __commonJSMin(((exports, module) => {
24629
- var iterate = require_iterate(), initState = require_state(), terminator = require_terminator();
24643
+ var iterate = require_iterate();
24644
+ var initState = require_state();
24645
+ var terminator = require_terminator();
24630
24646
  module.exports = serialOrdered;
24631
24647
  module.exports.ascending = ascending;
24632
24648
  module.exports.descending = descending;
@@ -25378,13 +25394,15 @@ var require_es_set_tostringtag = /* @__PURE__ */ __commonJSMin(((exports, module
25378
25394
  var overrideIfSet = arguments.length > 2 && !!arguments[2] && arguments[2].force;
25379
25395
  var nonConfigurable = arguments.length > 2 && !!arguments[2] && arguments[2].nonConfigurable;
25380
25396
  if (typeof overrideIfSet !== "undefined" && typeof overrideIfSet !== "boolean" || typeof nonConfigurable !== "undefined" && typeof nonConfigurable !== "boolean") throw new $TypeError("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");
25381
- if (toStringTag && (overrideIfSet || !hasOwn(object, toStringTag))) if ($defineProperty) $defineProperty(object, toStringTag, {
25382
- configurable: !nonConfigurable,
25383
- enumerable: false,
25384
- value,
25385
- writable: false
25386
- });
25387
- else object[toStringTag] = value;
25397
+ if (toStringTag && (overrideIfSet || !hasOwn(object, toStringTag))) {
25398
+ if ($defineProperty) $defineProperty(object, toStringTag, {
25399
+ configurable: !nonConfigurable,
25400
+ enumerable: false,
25401
+ value,
25402
+ writable: false
25403
+ });
25404
+ else object[toStringTag] = value;
25405
+ }
25388
25406
  };
25389
25407
  }));
25390
25408
  //#endregion
@@ -25459,15 +25477,16 @@ var FormData_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin((
25459
25477
  if (!options.knownLength) this._valuesToMeasure.push(value);
25460
25478
  };
25461
25479
  FormData.prototype._lengthRetriever = function(value, callback) {
25462
- if (hasOwn(value, "fd")) if (value.end != void 0 && value.end != Infinity && value.start != void 0) callback(null, value.end + 1 - (value.start ? value.start : 0));
25463
- else fs.stat(value.path, function(err, stat) {
25464
- if (err) {
25465
- callback(err);
25466
- return;
25467
- }
25468
- callback(null, stat.size - (value.start ? value.start : 0));
25469
- });
25470
- else if (hasOwn(value, "httpVersion")) callback(null, Number(value.headers["content-length"]));
25480
+ if (hasOwn(value, "fd")) {
25481
+ if (value.end != void 0 && value.end != Infinity && value.start != void 0) callback(null, value.end + 1 - (value.start ? value.start : 0));
25482
+ else fs.stat(value.path, function(err, stat) {
25483
+ if (err) {
25484
+ callback(err);
25485
+ return;
25486
+ }
25487
+ callback(null, stat.size - (value.start ? value.start : 0));
25488
+ });
25489
+ } else if (hasOwn(value, "httpVersion")) callback(null, Number(value.headers["content-length"]));
25471
25490
  else if (hasOwn(value, "httpModule")) {
25472
25491
  value.on("response", function(response) {
25473
25492
  value.pause();
@@ -26638,15 +26657,16 @@ var require_common = /* @__PURE__ */ __commonJSMin(((exports, module) => {
26638
26657
  let templateIndex = 0;
26639
26658
  let starIndex = -1;
26640
26659
  let matchIndex = 0;
26641
- while (searchIndex < search.length) if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) if (template[templateIndex] === "*") {
26642
- starIndex = templateIndex;
26643
- matchIndex = searchIndex;
26644
- templateIndex++;
26645
- } else {
26646
- searchIndex++;
26647
- templateIndex++;
26648
- }
26649
- else if (starIndex !== -1) {
26660
+ while (searchIndex < search.length) if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) {
26661
+ if (template[templateIndex] === "*") {
26662
+ starIndex = templateIndex;
26663
+ matchIndex = searchIndex;
26664
+ templateIndex++;
26665
+ } else {
26666
+ searchIndex++;
26667
+ templateIndex++;
26668
+ }
26669
+ } else if (starIndex !== -1) {
26650
26670
  templateIndex = starIndex + 1;
26651
26671
  matchIndex++;
26652
26672
  searchIndex = matchIndex;
@@ -26916,9 +26936,11 @@ var require_supports_color = /* @__PURE__ */ __commonJSMin(((exports, module) =>
26916
26936
  let forceColor;
26917
26937
  if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) forceColor = 0;
26918
26938
  else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) forceColor = 1;
26919
- if ("FORCE_COLOR" in env) if (env.FORCE_COLOR === "true") forceColor = 1;
26920
- else if (env.FORCE_COLOR === "false") forceColor = 0;
26921
- else forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);
26939
+ if ("FORCE_COLOR" in env) {
26940
+ if (env.FORCE_COLOR === "true") forceColor = 1;
26941
+ else if (env.FORCE_COLOR === "false") forceColor = 0;
26942
+ else forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);
26943
+ }
26922
26944
  function translateLevel(level) {
26923
26945
  if (level === 0) return false;
26924
26946
  return {
@@ -27330,16 +27352,19 @@ var require_src = /* @__PURE__ */ __commonJSMin(((exports, module) => {
27330
27352
  req.onSocket(socket);
27331
27353
  return;
27332
27354
  }
27333
- onerror(/* @__PURE__ */ new Error(`no Duplex stream was returned to agent-base for \`${req.method} ${req.path}\``));
27355
+ const err = /* @__PURE__ */ new Error(`no Duplex stream was returned to agent-base for \`${req.method} ${req.path}\``);
27356
+ onerror(err);
27334
27357
  };
27335
27358
  if (typeof this.callback !== "function") {
27336
27359
  onerror(/* @__PURE__ */ new Error("`callback` is not defined"));
27337
27360
  return;
27338
27361
  }
27339
- if (!this.promisifiedCallback) if (this.callback.length >= 3) {
27340
- debug("Converting legacy callback function to promise");
27341
- this.promisifiedCallback = promisify_1.default(this.callback);
27342
- } else this.promisifiedCallback = this.callback;
27362
+ if (!this.promisifiedCallback) {
27363
+ if (this.callback.length >= 3) {
27364
+ debug("Converting legacy callback function to promise");
27365
+ this.promisifiedCallback = promisify_1.default(this.callback);
27366
+ } else this.promisifiedCallback = this.callback;
27367
+ }
27343
27368
  if (typeof timeoutMs === "number" && timeoutMs > 0) timeoutId = setTimeout(ontimeout, timeoutMs);
27344
27369
  if ("port" in opts && typeof opts.port !== "number") opts.port = Number(opts.port);
27345
27370
  try {
@@ -27899,7 +27924,7 @@ var require_follow_redirects = /* @__PURE__ */ __commonJSMin(((exports, module)
27899
27924
  function wrap(protocols) {
27900
27925
  var exports$1 = {
27901
27926
  maxRedirects: 21,
27902
- maxBodyLength: 10 * 1024 * 1024
27927
+ maxBodyLength: 10485760
27903
27928
  };
27904
27929
  var nativeProtocols = {};
27905
27930
  Object.keys(protocols).forEach(function(scheme) {
@@ -28094,7 +28119,7 @@ var AxiosTransformStream = class extends stream.Transform {
28094
28119
  constructor(options) {
28095
28120
  options = utils_default.toFlatObject(options, {
28096
28121
  maxRate: 0,
28097
- chunkSize: 64 * 1024,
28122
+ chunkSize: 65536,
28098
28123
  minChunkSize: 100,
28099
28124
  timeWindow: 500,
28100
28125
  ticksRate: 2,
@@ -28349,7 +28374,7 @@ const callbackify = (fn, reducer) => {
28349
28374
  };
28350
28375
  //#endregion
28351
28376
  //#region ../../node_modules/.pnpm/axios@1.17.0/node_modules/axios/lib/helpers/shouldBypassProxy.js
28352
- const LOOPBACK_HOSTNAMES = new Set(["localhost"]);
28377
+ const LOOPBACK_HOSTNAMES = /* @__PURE__ */ new Set(["localhost"]);
28353
28378
  const isIPv4Loopback = (host) => {
28354
28379
  const parts = host.split(".");
28355
28380
  if (parts.length !== 4) return false;
@@ -28660,10 +28685,11 @@ function getTunnelingAgent(agentOptions, userHttpsAgent) {
28660
28685
  const cache = userHttpsAgent ? tunnelingAgentCacheUser.get(userHttpsAgent) || tunnelingAgentCacheUser.set(userHttpsAgent, /* @__PURE__ */ new Map()).get(userHttpsAgent) : tunnelingAgentCache;
28661
28686
  let agent = cache.get(key);
28662
28687
  if (agent) return agent;
28663
- agent = new import_dist.default(userHttpsAgent && userHttpsAgent.options ? {
28688
+ const merged = userHttpsAgent && userHttpsAgent.options ? {
28664
28689
  ...userHttpsAgent.options,
28665
28690
  ...agentOptions
28666
- } : agentOptions);
28691
+ } : agentOptions;
28692
+ agent = new import_dist.default(merged);
28667
28693
  if (userHttpsAgent && userHttpsAgent.options) {
28668
28694
  const originTLSOptions = { ...userHttpsAgent.options };
28669
28695
  const callback = agent.callback;
@@ -29108,12 +29134,10 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
29108
29134
  delete res.headers["content-encoding"];
29109
29135
  }
29110
29136
  break;
29111
- case "zstd":
29112
- if (isZstdSupported) {
29113
- streams.push(zlib.createZstdDecompress(zstdOptions));
29114
- delete res.headers["content-encoding"];
29115
- }
29116
- break;
29137
+ case "zstd": if (isZstdSupported) {
29138
+ streams.push(zlib.createZstdDecompress(zstdOptions));
29139
+ delete res.headers["content-encoding"];
29140
+ }
29117
29141
  }
29118
29142
  }
29119
29143
  responseStream = streams.length > 1 ? stream.pipeline(streams, utils_default.noop) : streams[0];
@@ -29192,7 +29216,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
29192
29216
  });
29193
29217
  const boundSockets = /* @__PURE__ */ new Set();
29194
29218
  req.on("socket", function handleRequestSocket(socket) {
29195
- socket.setKeepAlive(true, 1e3 * 60);
29219
+ socket.setKeepAlive(true, 6e4);
29196
29220
  if (!socket[kAxiosSocketListener]) {
29197
29221
  socket.on("error", function handleSocketError(err) {
29198
29222
  const current = socket[kAxiosCurrentReq];
@@ -29629,7 +29653,7 @@ const trackStream = (stream, chunkSize, onProgress, onFinish) => {
29629
29653
  };
29630
29654
  //#endregion
29631
29655
  //#region ../../node_modules/.pnpm/axios@1.17.0/node_modules/axios/lib/adapters/fetch.js
29632
- const DEFAULT_CHUNK_SIZE = 64 * 1024;
29656
+ const DEFAULT_CHUNK_SIZE = 65536;
29633
29657
  const { isFunction } = utils_default;
29634
29658
  /**
29635
29659
  * Encode a UTF-8 string to a Latin-1 byte string for use with btoa().
@@ -30164,11 +30188,13 @@ var Axios$1 = class {
30164
30188
  legacyInterceptorReqResOrdering: validators.transitional(validators.boolean),
30165
30189
  advertiseZstdAcceptEncoding: validators.transitional(validators.boolean)
30166
30190
  }, false);
30167
- if (paramsSerializer != null) if (utils_default.isFunction(paramsSerializer)) config.paramsSerializer = { serialize: paramsSerializer };
30168
- else validator_default.assertOptions(paramsSerializer, {
30169
- encode: validators.function,
30170
- serialize: validators.function
30171
- }, true);
30191
+ if (paramsSerializer != null) {
30192
+ if (utils_default.isFunction(paramsSerializer)) config.paramsSerializer = { serialize: paramsSerializer };
30193
+ else validator_default.assertOptions(paramsSerializer, {
30194
+ encode: validators.function,
30195
+ serialize: validators.function
30196
+ }, true);
30197
+ }
30172
30198
  if (config.allowAbsoluteUrls !== void 0) {} else if (this.defaults.allowAbsoluteUrls !== void 0) config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;
30173
30199
  else config.allowAbsoluteUrls = true;
30174
30200
  validator_default.assertOptions(config, {
@@ -30524,7 +30550,7 @@ const { Axios, AxiosError, CanceledError, isCancel, CancelToken, VERSION, all, C
30524
30550
  //#endregion
30525
30551
  //#region ../../node_modules/.pnpm/axios-retry@4.5.0_axios@1.17.0/node_modules/axios-retry/dist/esm/index.js
30526
30552
  var import_is_retry_allowed = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
30527
- const denyList = new Set([
30553
+ const denyList = /* @__PURE__ */ new Set([
30528
30554
  "ENOTFOUND",
30529
30555
  "ENETUNREACH",
30530
30556
  "UNABLE_TO_GET_ISSUER_CERT",
@@ -30721,9 +30747,11 @@ var a$13 = class extends Error {
30721
30747
  super(t), this.field = e, this.name = "RequiredError";
30722
30748
  }
30723
30749
  };
30724
- const i$8 = "https://example.com", o$16 = function(e, t, s) {
30750
+ const i$8 = "https://example.com";
30751
+ const o$16 = function(e, t, s) {
30725
30752
  if (null == s) throw new a$13(t, `Required parameter ${t} was null or undefined when calling ${e}.`);
30726
- }, r$17 = async function(e, t) {
30753
+ };
30754
+ const r$17 = async function(e, t) {
30727
30755
  if (t && t.accessToken) e.Authorization = "Bearer " + ("function" == typeof t.accessToken ? await t.accessToken() : await t.accessToken);
30728
30756
  };
30729
30757
  function h$2(e, t, s = "") {
@@ -30732,12 +30760,15 @@ function h$2(e, t, s = "") {
30732
30760
  const c$8 = function(e, ...t) {
30733
30761
  const s = new URLSearchParams(e.search);
30734
30762
  h$2(s, t), e.search = s.toString();
30735
- }, u$4 = function(e, t, s) {
30763
+ };
30764
+ const u$4 = function(e, t, s) {
30736
30765
  const n = "string" != typeof e;
30737
30766
  return (n && s && s.isJsonMime ? s.isJsonMime(t.headers["Content-Type"]) : n) ? JSON.stringify(void 0 !== e ? e : {}) : e || "";
30738
- }, d$6 = function(e) {
30767
+ };
30768
+ const d$6 = function(e) {
30739
30769
  return e.pathname + e.search + e.hash;
30740
- }, l$4 = function(e, t, s, n) {
30770
+ };
30771
+ const l$4 = function(e, t, s, n) {
30741
30772
  return (a = t, i = s) => {
30742
30773
  const o = {
30743
30774
  ...e.options,
@@ -30745,7 +30776,8 @@ const c$8 = function(e, ...t) {
30745
30776
  };
30746
30777
  return a.request(o);
30747
30778
  };
30748
- }, p$6 = function(t) {
30779
+ };
30780
+ const p$6 = function(t) {
30749
30781
  const n = function(e) {
30750
30782
  return {
30751
30783
  createAccount: async (t, s = {}) => {
@@ -30835,16 +30867,20 @@ const c$8 = function(e, ...t) {
30835
30867
  }(t);
30836
30868
  return {
30837
30869
  async createAccount(a, i) {
30838
- return l$4(await n.createAccount(a, i), axios, s$12, t);
30870
+ const o = await n.createAccount(a, i);
30871
+ return l$4(o, axios, s$12, t);
30839
30872
  },
30840
30873
  async disableAccount(a, i) {
30841
- return l$4(await n.disableAccount(a, i), axios, s$12, t);
30874
+ const o = await n.disableAccount(a, i);
30875
+ return l$4(o, axios, s$12, t);
30842
30876
  },
30843
30877
  async getAccount(a, i, o) {
30844
- return l$4(await n.getAccount(a, i, o), axios, s$12, t);
30878
+ const r = await n.getAccount(a, i, o);
30879
+ return l$4(r, axios, s$12, t);
30845
30880
  },
30846
30881
  async getAccounts(a, i, o, r, h, c, u, d) {
30847
- return l$4(await n.getAccounts(a, i, o, r, h, c, u, d), axios, s$12, t);
30882
+ const p = await n.getAccounts(a, i, o, r, h, c, u, d);
30883
+ return l$4(p, axios, s$12, t);
30848
30884
  }
30849
30885
  };
30850
30886
  };
@@ -31015,25 +31051,32 @@ const w = function(t) {
31015
31051
  }(t);
31016
31052
  return {
31017
31053
  async createAccountV2(a, i) {
31018
- return l$4(await n.createAccountV2(a, i), axios, s$12, t);
31054
+ const o = await n.createAccountV2(a, i);
31055
+ return l$4(o, axios, s$12, t);
31019
31056
  },
31020
31057
  async exportAccountShare(a, i) {
31021
- return l$4(await n.exportAccountShare(a, i), axios, s$12, t);
31058
+ const o = await n.exportAccountShare(a, i);
31059
+ return l$4(o, axios, s$12, t);
31022
31060
  },
31023
31061
  async getAccountV2(a, i) {
31024
- return l$4(await n.getAccountV2(a, i), axios, s$12, t);
31062
+ const o = await n.getAccountV2(a, i);
31063
+ return l$4(o, axios, s$12, t);
31025
31064
  },
31026
31065
  async getAccountsV2(a, i, o, r, h, c, u, d, p, P) {
31027
- return l$4(await n.getAccountsV2(a, i, o, r, h, c, u, d, p, P), axios, s$12, t);
31066
+ const w = await n.getAccountsV2(a, i, o, r, h, c, u, d, p, P);
31067
+ return l$4(w, axios, s$12, t);
31028
31068
  },
31029
31069
  async getSignerIdByAddress(a, i) {
31030
- return l$4(await n.getSignerIdByAddress(a, i), axios, s$12, t);
31070
+ const o = await n.getSignerIdByAddress(a, i);
31071
+ return l$4(o, axios, s$12, t);
31031
31072
  },
31032
31073
  async removeAccount(a, i) {
31033
- return l$4(await n.removeAccount(a, i), axios, s$12, t);
31074
+ const o = await n.removeAccount(a, i);
31075
+ return l$4(o, axios, s$12, t);
31034
31076
  },
31035
31077
  async switchChainV2(a, i) {
31036
- return l$4(await n.switchChainV2(a, i), axios, s$12, t);
31078
+ const o = await n.switchChainV2(a, i);
31079
+ return l$4(o, axios, s$12, t);
31037
31080
  }
31038
31081
  };
31039
31082
  };
@@ -31588,79 +31631,104 @@ const m$3 = function(t) {
31588
31631
  }(t);
31589
31632
  return {
31590
31633
  async authenticateSIWE(a, i) {
31591
- return l$4(await n.authenticateSIWE(a, i), axios, s$12, t);
31634
+ const o = await n.authenticateSIWE(a, i);
31635
+ return l$4(o, axios, s$12, t);
31592
31636
  },
31593
31637
  async getJwks(a, i) {
31594
- return l$4(await n.getJwks(a, i), axios, s$12, t);
31638
+ const o = await n.getJwks(a, i);
31639
+ return l$4(o, axios, s$12, t);
31595
31640
  },
31596
31641
  async initOAuth(a, i, o) {
31597
- return l$4(await n.initOAuth(a, i, o), axios, s$12, t);
31642
+ const r = await n.initOAuth(a, i, o);
31643
+ return l$4(r, axios, s$12, t);
31598
31644
  },
31599
31645
  async initSIWE(a, i, o) {
31600
- return l$4(await n.initSIWE(a, i, o), axios, s$12, t);
31646
+ const r = await n.initSIWE(a, i, o);
31647
+ return l$4(r, axios, s$12, t);
31601
31648
  },
31602
31649
  async linkEmail(a, i, o) {
31603
- return l$4(await n.linkEmail(a, i, o), axios, s$12, t);
31650
+ const r = await n.linkEmail(a, i, o);
31651
+ return l$4(r, axios, s$12, t);
31604
31652
  },
31605
31653
  async linkOAuth(a, i, o) {
31606
- return l$4(await n.linkOAuth(a, i, o), axios, s$12, t);
31654
+ const r = await n.linkOAuth(a, i, o);
31655
+ return l$4(r, axios, s$12, t);
31607
31656
  },
31608
31657
  async linkSIWE(a, i) {
31609
- return l$4(await n.linkSIWE(a, i), axios, s$12, t);
31658
+ const o = await n.linkSIWE(a, i);
31659
+ return l$4(o, axios, s$12, t);
31610
31660
  },
31611
31661
  async linkThirdParty(a, i, o) {
31612
- return l$4(await n.linkThirdParty(a, i, o), axios, s$12, t);
31662
+ const r = await n.linkThirdParty(a, i, o);
31663
+ return l$4(r, axios, s$12, t);
31613
31664
  },
31614
31665
  async loginEmailPassword(a, i, o) {
31615
- return l$4(await n.loginEmailPassword(a, i, o), axios, s$12, t);
31666
+ const r = await n.loginEmailPassword(a, i, o);
31667
+ return l$4(r, axios, s$12, t);
31616
31668
  },
31617
31669
  async loginWithIdToken(a, i) {
31618
- return l$4(await n.loginWithIdToken(a, i), axios, s$12, t);
31670
+ const o = await n.loginWithIdToken(a, i);
31671
+ return l$4(o, axios, s$12, t);
31619
31672
  },
31620
31673
  async logout(a, i) {
31621
- return l$4(await n.logout(a, i), axios, s$12, t);
31674
+ const o = await n.logout(a, i);
31675
+ return l$4(o, axios, s$12, t);
31622
31676
  },
31623
31677
  async me(a) {
31624
- return l$4(await n.me(a), axios, s$12, t);
31678
+ const i = await n.me(a);
31679
+ return l$4(i, axios, s$12, t);
31625
31680
  },
31626
31681
  async poolOAuth(a, i) {
31627
- return l$4(await n.poolOAuth(a, i), axios, s$12, t);
31682
+ const o = await n.poolOAuth(a, i);
31683
+ return l$4(o, axios, s$12, t);
31628
31684
  },
31629
31685
  async refresh(a, i) {
31630
- return l$4(await n.refresh(a, i), axios, s$12, t);
31686
+ const o = await n.refresh(a, i);
31687
+ return l$4(o, axios, s$12, t);
31631
31688
  },
31632
31689
  async registerGuest(a, i) {
31633
- return l$4(await n.registerGuest(a, i), axios, s$12, t);
31690
+ const o = await n.registerGuest(a, i);
31691
+ return l$4(o, axios, s$12, t);
31634
31692
  },
31635
31693
  async requestEmailVerification(a, i) {
31636
- return l$4(await n.requestEmailVerification(a, i), axios, s$12, t);
31694
+ const o = await n.requestEmailVerification(a, i);
31695
+ return l$4(o, axios, s$12, t);
31637
31696
  },
31638
31697
  async requestResetPassword(a, i) {
31639
- return l$4(await n.requestResetPassword(a, i), axios, s$12, t);
31698
+ const o = await n.requestResetPassword(a, i);
31699
+ return l$4(o, axios, s$12, t);
31640
31700
  },
31641
31701
  async resetPassword(a, i) {
31642
- return l$4(await n.resetPassword(a, i), axios, s$12, t);
31702
+ const o = await n.resetPassword(a, i);
31703
+ return l$4(o, axios, s$12, t);
31643
31704
  },
31644
31705
  async signupEmailPassword(a, i, o) {
31645
- return l$4(await n.signupEmailPassword(a, i, o), axios, s$12, t);
31706
+ const r = await n.signupEmailPassword(a, i, o);
31707
+ return l$4(r, axios, s$12, t);
31646
31708
  },
31647
31709
  async thirdParty(a, i, o) {
31648
- return l$4(await n.thirdParty(a, i, o), axios, s$12, t);
31710
+ const r = await n.thirdParty(a, i, o);
31711
+ return l$4(r, axios, s$12, t);
31649
31712
  },
31650
31713
  async unlinkEmail(a, i) {
31651
- return l$4(await n.unlinkEmail(a, i), axios, s$12, t);
31714
+ const o = await n.unlinkEmail(a, i);
31715
+ return l$4(o, axios, s$12, t);
31652
31716
  },
31653
31717
  async unlinkOAuth(a, i) {
31654
- return l$4(await n.unlinkOAuth(a, i), axios, s$12, t);
31718
+ const o = await n.unlinkOAuth(a, i);
31719
+ return l$4(o, axios, s$12, t);
31655
31720
  },
31656
31721
  async unlinkSIWE(a, i) {
31657
- return l$4(await n.unlinkSIWE(a, i), axios, s$12, t);
31722
+ const o = await n.unlinkSIWE(a, i);
31723
+ return l$4(o, axios, s$12, t);
31658
31724
  },
31659
31725
  async verifyEmail(a, i) {
31660
- return l$4(await n.verifyEmail(a, i), axios, s$12, t);
31726
+ const o = await n.verifyEmail(a, i);
31727
+ return l$4(o, axios, s$12, t);
31661
31728
  },
31662
31729
  async verifyOAuthToken(a, i) {
31663
- return l$4(await n.verifyOAuthToken(a, i), axios, s$12, t);
31730
+ const o = await n.verifyOAuthToken(a, i);
31731
+ return l$4(o, axios, s$12, t);
31664
31732
  }
31665
31733
  };
31666
31734
  };
@@ -32619,130 +32687,172 @@ const R$1 = function(t) {
32619
32687
  }(t);
32620
32688
  return {
32621
32689
  async accountInfoPost(a, i) {
32622
- return l$4(await n.accountInfoPost(a, i), axios, s$12, t);
32690
+ const o = await n.accountInfoPost(a, i);
32691
+ return l$4(o, axios, s$12, t);
32623
32692
  },
32624
32693
  async changeEmailPost(a, i) {
32625
- return l$4(await n.changeEmailPost(a, i), axios, s$12, t);
32694
+ const o = await n.changeEmailPost(a, i);
32695
+ return l$4(o, axios, s$12, t);
32626
32696
  },
32627
32697
  async changePasswordPost(a, i) {
32628
- return l$4(await n.changePasswordPost(a, i), axios, s$12, t);
32698
+ const o = await n.changePasswordPost(a, i);
32699
+ return l$4(o, axios, s$12, t);
32629
32700
  },
32630
32701
  async checkVerificationOtp(a, i) {
32631
- return l$4(await n.checkVerificationOtp(a, i), axios, s$12, t);
32702
+ const o = await n.checkVerificationOtp(a, i);
32703
+ return l$4(o, axios, s$12, t);
32632
32704
  },
32633
32705
  async emailOtpResetPasswordPost(a, i) {
32634
- return l$4(await n.emailOtpResetPasswordPost(a, i), axios, s$12, t);
32706
+ const o = await n.emailOtpResetPasswordPost(a, i);
32707
+ return l$4(o, axios, s$12, t);
32635
32708
  },
32636
32709
  async emailOtpSendVerificationOtpPost(a, i) {
32637
- return l$4(await n.emailOtpSendVerificationOtpPost(a, i), axios, s$12, t);
32710
+ const o = await n.emailOtpSendVerificationOtpPost(a, i);
32711
+ return l$4(o, axios, s$12, t);
32638
32712
  },
32639
32713
  async emailOtpVerifyEmailPost(a, i) {
32640
- return l$4(await n.emailOtpVerifyEmailPost(a, i), axios, s$12, t);
32714
+ const o = await n.emailOtpVerifyEmailPost(a, i);
32715
+ return l$4(o, axios, s$12, t);
32641
32716
  },
32642
32717
  async forgetPasswordEmailOtpPost(a, i) {
32643
- return l$4(await n.forgetPasswordEmailOtpPost(a, i), axios, s$12, t);
32718
+ const o = await n.forgetPasswordEmailOtpPost(a, i);
32719
+ return l$4(o, axios, s$12, t);
32644
32720
  },
32645
32721
  async forgetPasswordPost(a, i) {
32646
- return l$4(await n.forgetPasswordPost(a, i), axios, s$12, t);
32722
+ const o = await n.forgetPasswordPost(a, i);
32723
+ return l$4(o, axios, s$12, t);
32647
32724
  },
32648
32725
  async getAccessTokenPost(a, i) {
32649
- return l$4(await n.getAccessTokenPost(a, i), axios, s$12, t);
32726
+ const o = await n.getAccessTokenPost(a, i);
32727
+ return l$4(o, axios, s$12, t);
32650
32728
  },
32651
32729
  async getSessionGet(a, i) {
32652
- return l$4(await n.getSessionGet(a, i), axios, s$12, t);
32730
+ const o = await n.getSessionGet(a, i);
32731
+ return l$4(o, axios, s$12, t);
32653
32732
  },
32654
32733
  async linkSiweListWalletsGet(a) {
32655
- return l$4(await n.linkSiweListWalletsGet(a), axios, s$12, t);
32734
+ const i = await n.linkSiweListWalletsGet(a);
32735
+ return l$4(i, axios, s$12, t);
32656
32736
  },
32657
32737
  async linkSiweNoncePost(a, i) {
32658
- return l$4(await n.linkSiweNoncePost(a, i), axios, s$12, t);
32738
+ const o = await n.linkSiweNoncePost(a, i);
32739
+ return l$4(o, axios, s$12, t);
32659
32740
  },
32660
32741
  async linkSiweUnlinkPost(a, i) {
32661
- return l$4(await n.linkSiweUnlinkPost(a, i), axios, s$12, t);
32742
+ const o = await n.linkSiweUnlinkPost(a, i);
32743
+ return l$4(o, axios, s$12, t);
32662
32744
  },
32663
32745
  async linkSiweVerifyPost(a, i) {
32664
- return l$4(await n.linkSiweVerifyPost(a, i), axios, s$12, t);
32746
+ const o = await n.linkSiweVerifyPost(a, i);
32747
+ return l$4(o, axios, s$12, t);
32665
32748
  },
32666
32749
  async linkSocialPost(a, i) {
32667
- return l$4(await n.linkSocialPost(a, i), axios, s$12, t);
32750
+ const o = await n.linkSocialPost(a, i);
32751
+ return l$4(o, axios, s$12, t);
32668
32752
  },
32669
32753
  async listAccountsGet(a) {
32670
- return l$4(await n.listAccountsGet(a), axios, s$12, t);
32754
+ const i = await n.listAccountsGet(a);
32755
+ return l$4(i, axios, s$12, t);
32671
32756
  },
32672
32757
  async listSessionsGet(a) {
32673
- return l$4(await n.listSessionsGet(a), axios, s$12, t);
32758
+ const i = await n.listSessionsGet(a);
32759
+ return l$4(i, axios, s$12, t);
32674
32760
  },
32675
32761
  async phoneNumberForgetPasswordPost(a, i) {
32676
- return l$4(await n.phoneNumberForgetPasswordPost(a, i), axios, s$12, t);
32762
+ const o = await n.phoneNumberForgetPasswordPost(a, i);
32763
+ return l$4(o, axios, s$12, t);
32677
32764
  },
32678
32765
  async phoneNumberRequestPasswordResetPost(a, i) {
32679
- return l$4(await n.phoneNumberRequestPasswordResetPost(a, i), axios, s$12, t);
32766
+ const o = await n.phoneNumberRequestPasswordResetPost(a, i);
32767
+ return l$4(o, axios, s$12, t);
32680
32768
  },
32681
32769
  async phoneNumberResetPasswordPost(a, i) {
32682
- return l$4(await n.phoneNumberResetPasswordPost(a, i), axios, s$12, t);
32770
+ const o = await n.phoneNumberResetPasswordPost(a, i);
32771
+ return l$4(o, axios, s$12, t);
32683
32772
  },
32684
32773
  async phoneNumberSendOtpPost(a, i) {
32685
- return l$4(await n.phoneNumberSendOtpPost(a, i), axios, s$12, t);
32774
+ const o = await n.phoneNumberSendOtpPost(a, i);
32775
+ return l$4(o, axios, s$12, t);
32686
32776
  },
32687
32777
  async phoneNumberVerifyPost(a, i) {
32688
- return l$4(await n.phoneNumberVerifyPost(a, i), axios, s$12, t);
32778
+ const o = await n.phoneNumberVerifyPost(a, i);
32779
+ return l$4(o, axios, s$12, t);
32689
32780
  },
32690
32781
  async refreshTokenPost(a, i) {
32691
- return l$4(await n.refreshTokenPost(a, i), axios, s$12, t);
32782
+ const o = await n.refreshTokenPost(a, i);
32783
+ return l$4(o, axios, s$12, t);
32692
32784
  },
32693
32785
  async requestPasswordResetPost(a, i) {
32694
- return l$4(await n.requestPasswordResetPost(a, i), axios, s$12, t);
32786
+ const o = await n.requestPasswordResetPost(a, i);
32787
+ return l$4(o, axios, s$12, t);
32695
32788
  },
32696
32789
  async resetPasswordPost(a, i) {
32697
- return l$4(await n.resetPasswordPost(a, i), axios, s$12, t);
32790
+ const o = await n.resetPasswordPost(a, i);
32791
+ return l$4(o, axios, s$12, t);
32698
32792
  },
32699
32793
  async resetPasswordTokenGet(a, i, o) {
32700
- return l$4(await n.resetPasswordTokenGet(a, i, o), axios, s$12, t);
32794
+ const r = await n.resetPasswordTokenGet(a, i, o);
32795
+ return l$4(r, axios, s$12, t);
32701
32796
  },
32702
32797
  async revokeOtherSessionsPost(a, i) {
32703
- return l$4(await n.revokeOtherSessionsPost(a, i), axios, s$12, t);
32798
+ const o = await n.revokeOtherSessionsPost(a, i);
32799
+ return l$4(o, axios, s$12, t);
32704
32800
  },
32705
32801
  async revokeSessionPost(a, i) {
32706
- return l$4(await n.revokeSessionPost(a, i), axios, s$12, t);
32802
+ const o = await n.revokeSessionPost(a, i);
32803
+ return l$4(o, axios, s$12, t);
32707
32804
  },
32708
32805
  async revokeSessionsPost(a, i) {
32709
- return l$4(await n.revokeSessionsPost(a, i), axios, s$12, t);
32806
+ const o = await n.revokeSessionsPost(a, i);
32807
+ return l$4(o, axios, s$12, t);
32710
32808
  },
32711
32809
  async sendVerificationEmailPost(a, i) {
32712
- return l$4(await n.sendVerificationEmailPost(a, i), axios, s$12, t);
32810
+ const o = await n.sendVerificationEmailPost(a, i);
32811
+ return l$4(o, axios, s$12, t);
32713
32812
  },
32714
32813
  async signInAnonymousPost(a) {
32715
- return l$4(await n.signInAnonymousPost(a), axios, s$12, t);
32814
+ const i = await n.signInAnonymousPost(a);
32815
+ return l$4(i, axios, s$12, t);
32716
32816
  },
32717
32817
  async signInEmailOtpPost(a, i) {
32718
- return l$4(await n.signInEmailOtpPost(a, i), axios, s$12, t);
32818
+ const o = await n.signInEmailOtpPost(a, i);
32819
+ return l$4(o, axios, s$12, t);
32719
32820
  },
32720
32821
  async signInEmailPost(a, i) {
32721
- return l$4(await n.signInEmailPost(a, i), axios, s$12, t);
32822
+ const o = await n.signInEmailPost(a, i);
32823
+ return l$4(o, axios, s$12, t);
32722
32824
  },
32723
32825
  async signInPhoneNumberPost(a, i) {
32724
- return l$4(await n.signInPhoneNumberPost(a, i), axios, s$12, t);
32826
+ const o = await n.signInPhoneNumberPost(a, i);
32827
+ return l$4(o, axios, s$12, t);
32725
32828
  },
32726
32829
  async signOutPost(a, i) {
32727
- return l$4(await n.signOutPost(a, i), axios, s$12, t);
32830
+ const o = await n.signOutPost(a, i);
32831
+ return l$4(o, axios, s$12, t);
32728
32832
  },
32729
32833
  async signUpEmailPost(a, i) {
32730
- return l$4(await n.signUpEmailPost(a, i), axios, s$12, t);
32834
+ const o = await n.signUpEmailPost(a, i);
32835
+ return l$4(o, axios, s$12, t);
32731
32836
  },
32732
32837
  async siweNoncePost(a, i) {
32733
- return l$4(await n.siweNoncePost(a, i), axios, s$12, t);
32838
+ const o = await n.siweNoncePost(a, i);
32839
+ return l$4(o, axios, s$12, t);
32734
32840
  },
32735
32841
  async siweVerifyPost(a, i) {
32736
- return l$4(await n.siweVerifyPost(a, i), axios, s$12, t);
32842
+ const o = await n.siweVerifyPost(a, i);
32843
+ return l$4(o, axios, s$12, t);
32737
32844
  },
32738
32845
  async socialSignIn(a, i) {
32739
- return l$4(await n.socialSignIn(a, i), axios, s$12, t);
32846
+ const o = await n.socialSignIn(a, i);
32847
+ return l$4(o, axios, s$12, t);
32740
32848
  },
32741
32849
  async unlinkAccountPost(a, i) {
32742
- return l$4(await n.unlinkAccountPost(a, i), axios, s$12, t);
32850
+ const o = await n.unlinkAccountPost(a, i);
32851
+ return l$4(o, axios, s$12, t);
32743
32852
  },
32744
32853
  async verifyEmailGet(a, i, o) {
32745
- return l$4(await n.verifyEmailGet(a, i, o), axios, s$12, t);
32854
+ const r = await n.verifyEmailGet(a, i, o);
32855
+ return l$4(r, axios, s$12, t);
32746
32856
  }
32747
32857
  };
32748
32858
  };
@@ -32923,10 +33033,12 @@ const b = function(t) {
32923
33033
  }(t);
32924
33034
  return {
32925
33035
  async handleChainRpcRequest(a, i, o) {
32926
- return l$4(await n.handleChainRpcRequest(a, i, o), axios, s$12, t);
33036
+ const r = await n.handleChainRpcRequest(a, i, o);
33037
+ return l$4(r, axios, s$12, t);
32927
33038
  },
32928
33039
  async handleRpcRequest(a, i) {
32929
- return l$4(await n.handleRpcRequest(a, i), axios, s$12, t);
33040
+ const o = await n.handleRpcRequest(a, i);
33041
+ return l$4(o, axios, s$12, t);
32930
33042
  }
32931
33043
  };
32932
33044
  };
@@ -33050,19 +33162,24 @@ const S = function(t) {
33050
33162
  }(t);
33051
33163
  return {
33052
33164
  async createSession(a, i, o) {
33053
- return l$4(await n.createSession(a, i, o), axios, s$12, t);
33165
+ const r = await n.createSession(a, i, o);
33166
+ return l$4(r, axios, s$12, t);
33054
33167
  },
33055
33168
  async getPlayerSessions(a, i, o, r, h, c) {
33056
- return l$4(await n.getPlayerSessions(a, i, o, r, h, c), axios, s$12, t);
33169
+ const u = await n.getPlayerSessions(a, i, o, r, h, c);
33170
+ return l$4(u, axios, s$12, t);
33057
33171
  },
33058
33172
  async getSession(a, i, o) {
33059
- return l$4(await n.getSession(a, i, o), axios, s$12, t);
33173
+ const r = await n.getSession(a, i, o);
33174
+ return l$4(r, axios, s$12, t);
33060
33175
  },
33061
33176
  async revokeSession(a, i, o) {
33062
- return l$4(await n.revokeSession(a, i, o), axios, s$12, t);
33177
+ const r = await n.revokeSession(a, i, o);
33178
+ return l$4(r, axios, s$12, t);
33063
33179
  },
33064
33180
  async signatureSession(a, i, o) {
33065
- return l$4(await n.signatureSession(a, i, o), axios, s$12, t);
33181
+ const r = await n.signatureSession(a, i, o);
33182
+ return l$4(r, axios, s$12, t);
33066
33183
  }
33067
33184
  };
33068
33185
  };
@@ -33194,19 +33311,24 @@ const k$1 = function(t) {
33194
33311
  }(t);
33195
33312
  return {
33196
33313
  async createTransactionIntent(a, i, o) {
33197
- return l$4(await n.createTransactionIntent(a, i, o), axios, s$12, t);
33314
+ const r = await n.createTransactionIntent(a, i, o);
33315
+ return l$4(r, axios, s$12, t);
33198
33316
  },
33199
33317
  async estimateTransactionIntentCost(a, i) {
33200
- return l$4(await n.estimateTransactionIntentCost(a, i), axios, s$12, t);
33318
+ const o = await n.estimateTransactionIntentCost(a, i);
33319
+ return l$4(o, axios, s$12, t);
33201
33320
  },
33202
33321
  async getTransactionIntent(a, i, o) {
33203
- return l$4(await n.getTransactionIntent(a, i, o), axios, s$12, t);
33322
+ const r = await n.getTransactionIntent(a, i, o);
33323
+ return l$4(r, axios, s$12, t);
33204
33324
  },
33205
33325
  async getTransactionIntents(a, i, o, r, h, c, u, d, p, P) {
33206
- return l$4(await n.getTransactionIntents(a, i, o, r, h, c, u, d, p, P), axios, s$12, t);
33326
+ const w = await n.getTransactionIntents(a, i, o, r, h, c, u, d, p, P);
33327
+ return l$4(w, axios, s$12, t);
33207
33328
  },
33208
33329
  async signature(a, i, o) {
33209
- return l$4(await n.signature(a, i, o), axios, s$12, t);
33330
+ const r = await n.signature(a, i, o);
33331
+ return l$4(r, axios, s$12, t);
33210
33332
  }
33211
33333
  };
33212
33334
  };
@@ -33379,25 +33501,32 @@ const q = function(t) {
33379
33501
  }(t);
33380
33502
  return {
33381
33503
  async deleteUser(a, i) {
33382
- return l$4(await n.deleteUser(a, i), axios, s$12, t);
33504
+ const o = await n.deleteUser(a, i);
33505
+ return l$4(o, axios, s$12, t);
33383
33506
  },
33384
33507
  async getAuthUser(a, i) {
33385
- return l$4(await n.getAuthUser(a, i), axios, s$12, t);
33508
+ const o = await n.getAuthUser(a, i);
33509
+ return l$4(o, axios, s$12, t);
33386
33510
  },
33387
33511
  async getAuthUsers(a, i, o, r, h, c, u, d, p, P) {
33388
- return l$4(await n.getAuthUsers(a, i, o, r, h, c, u, d, p, P), axios, s$12, t);
33512
+ const w = await n.getAuthUsers(a, i, o, r, h, c, u, d, p, P);
33513
+ return l$4(w, axios, s$12, t);
33389
33514
  },
33390
33515
  async getUserWallet(a, i) {
33391
- return l$4(await n.getUserWallet(a, i), axios, s$12, t);
33516
+ const o = await n.getUserWallet(a, i);
33517
+ return l$4(o, axios, s$12, t);
33392
33518
  },
33393
33519
  async meV2(a) {
33394
- return l$4(await n.meV2(a), axios, s$12, t);
33520
+ const i = await n.meV2(a);
33521
+ return l$4(i, axios, s$12, t);
33395
33522
  },
33396
33523
  async pregenerateUserV2(a, i) {
33397
- return l$4(await n.pregenerateUserV2(a, i), axios, s$12, t);
33524
+ const o = await n.pregenerateUserV2(a, i);
33525
+ return l$4(o, axios, s$12, t);
33398
33526
  },
33399
33527
  async thirdPartyV2(a, i) {
33400
- return l$4(await n.thirdPartyV2(a, i), axios, s$12, t);
33528
+ const o = await n.thirdPartyV2(a, i);
33529
+ return l$4(o, axios, s$12, t);
33401
33530
  }
33402
33531
  };
33403
33532
  };
@@ -33478,11 +33607,11 @@ var U$1 = class {
33478
33607
  nativeAppIdentifier: s.nativeAppIdentifier
33479
33608
  };
33480
33609
  this.config = { backend: A$2(n) };
33481
- const i = A$2({
33610
+ const a = {
33482
33611
  basePath: `${s.basePath}/iam/v2/auth`,
33483
33612
  accessToken: "",
33484
33613
  nativeAppIdentifier: s.nativeAppIdentifier
33485
- });
33614
+ }, i = A$2(a);
33486
33615
  this.authenticationApi = new y$3(this.config.backend, void 0, this.axiosInstance), this.authApi = new f$1(i, void 0, this.axiosInstance), this.userApi = new I(this.config.backend, void 0, this.axiosInstance), this.transactionIntentsApi = new v(this.config.backend, void 0, this.axiosInstance), this.accountsApi = new P(this.config.backend, void 0, this.axiosInstance), this.accountsV2Api = new g(this.config.backend, void 0, this.axiosInstance), this.sessionsApi = new T$2(this.config.backend, void 0, this.axiosInstance), this.rpcApi = new O$3(this.config.backend, void 0, this.axiosInstance);
33487
33616
  }
33488
33617
  setupInterceptors() {
@@ -33599,7 +33728,9 @@ const _$1 = {
33599
33728
  OPERATION_NOT_SUPPORTED: "OPERATION_NOT_SUPPORTED",
33600
33729
  LOGOUT_ERROR: "LOGOUT_ERROR",
33601
33730
  UNKNOWN_ERROR: "UNKNOWN_ERROR"
33602
- }, E$4 = _$1, O$2 = _$1;
33731
+ };
33732
+ const E$4 = _$1;
33733
+ const O$2 = _$1;
33603
33734
  //#endregion
33604
33735
  //#region ../../node_modules/.pnpm/@openfort+openfort-js@1.3.6/node_modules/@openfort/openfort-js/dist/sdk/src/core/errors/openfortError.js
33605
33736
  var t$20 = class t$20 extends Error {
@@ -33673,7 +33804,19 @@ var a$12 = class a$12 extends t$20 {
33673
33804
  };
33674
33805
  //#endregion
33675
33806
  //#region ../../node_modules/.pnpm/@openfort+openfort-js@1.3.6/node_modules/@openfort/openfort-js/dist/sdk/src/types/types.js
33676
- var E$3, A$1, e$10, T$1, t$19, n$12, o$13, O$1, _, C$2, N$1, c$6, a$11;
33807
+ var E$3;
33808
+ var A$1;
33809
+ var e$10;
33810
+ var T$1;
33811
+ var t$19;
33812
+ var n$12;
33813
+ var o$13;
33814
+ var O$1;
33815
+ var _;
33816
+ var C$2;
33817
+ var N$1;
33818
+ var c$6;
33819
+ var a$11;
33677
33820
  (function(E) {
33678
33821
  E[E.NONE = 0] = "NONE", E[E.UNAUTHENTICATED = 1] = "UNAUTHENTICATED", E[E.EMBEDDED_SIGNER_NOT_CONFIGURED = 2] = "EMBEDDED_SIGNER_NOT_CONFIGURED", E[E.CREATING_ACCOUNT = 3] = "CREATING_ACCOUNT", E[E.READY = 4] = "READY";
33679
33822
  })(E$3 || (E$3 = {})), function(E) {
@@ -34781,7 +34924,7 @@ var l$3 = class {
34781
34924
  });
34782
34925
  }
34783
34926
  getChallengeBytes() {
34784
- return crypto.getRandomValues(new Uint8Array(32));
34927
+ return crypto.getRandomValues(/* @__PURE__ */ new Uint8Array(32));
34785
34928
  }
34786
34929
  async deriveKeyFromAssertion(e) {
34787
34930
  const r = e.getClientExtensionResults();
@@ -34867,7 +35010,7 @@ var l$3 = class {
34867
35010
  //#region ../../node_modules/.pnpm/@openfort+openfort-js@1.3.6/node_modules/@openfort/openfort-js/dist/sdk/src/utils/crypto.js
34868
35011
  function t$17() {
34869
35012
  if ("undefined" != typeof crypto && crypto.randomUUID) return crypto.randomUUID();
34870
- const t = new Uint8Array(16);
35013
+ const t = /* @__PURE__ */ new Uint8Array(16);
34871
35014
  return crypto.getRandomValues(t), t[6] = 15 & t[6] | 64, t[8] = 63 & t[8] | 128, [...t].map((t, r) => {
34872
35015
  const n = t.toString(16).padStart(2, "0");
34873
35016
  return [
@@ -34962,7 +35105,8 @@ var s$9 = class s$9 {
34962
35105
  const r = await t.get(o$15.ACCOUNT);
34963
35106
  if (!r) return null;
34964
35107
  try {
34965
- return new s$9(JSON.parse(r));
35108
+ const e = JSON.parse(r);
35109
+ return new s$9(e);
34966
35110
  } catch {
34967
35111
  return null;
34968
35112
  }
@@ -35021,7 +35165,8 @@ function D$1(D) {
35021
35165
  }
35022
35166
  //#endregion
35023
35167
  //#region ../../node_modules/.pnpm/@openfort+openfort-js@1.3.6/node_modules/@openfort/openfort-js/dist/sdk/src/version.js
35024
- const o$10 = "1.3.6", t$15 = "@openfort/openfort-js";
35168
+ const o$10 = "1.3.6";
35169
+ const t$15 = "@openfort/openfort-js";
35025
35170
  //#endregion
35026
35171
  //#region ../../node_modules/.pnpm/@openfort+openfort-js@1.3.6/node_modules/@openfort/openfort-js/dist/sdk/src/core/errors/sentry.js
35027
35172
  const r$10 = "https://64a03e4967fb4dad3ecb914918c777b6@o4504593015242752.ingest.us.sentry.io/4509292415287296";
@@ -35088,7 +35233,7 @@ var n$10 = class n$10 {
35088
35233
  }
35089
35234
  static async init({ sentry: e, configuration: o }) {
35090
35235
  if (e) return void (n$10.sentry = e);
35091
- const a = await import("./esm-D2-zCfAo.mjs");
35236
+ const a = await import("./esm-DUNJOL6b.mjs");
35092
35237
  n$10.sentry = new a.BrowserClient({
35093
35238
  dsn: r$10,
35094
35239
  integrations: [],
@@ -35134,7 +35279,8 @@ function t$14(...t) {
35134
35279
  }
35135
35280
  //#endregion
35136
35281
  //#region ../../node_modules/.pnpm/@openfort+openfort-js@1.3.6/node_modules/@openfort/openfort-js/dist/sdk/src/utils/observe.js
35137
- const t$13 = /* @__PURE__ */ new Map(), n$9 = /* @__PURE__ */ new Map();
35282
+ const t$13 = /* @__PURE__ */ new Map();
35283
+ const n$9 = /* @__PURE__ */ new Map();
35138
35284
  let o$7 = 0;
35139
35285
  function e$6(e, s, c) {
35140
35286
  const f = ++o$7, i = () => t$13.get(e) || [], r = () => {
@@ -35463,7 +35609,8 @@ var t$11 = class {
35463
35609
  };
35464
35610
  //#endregion
35465
35611
  //#region ../../node_modules/.pnpm/@openfort+openfort-js@1.3.6/node_modules/@openfort/openfort-js/dist/sdk/src/wallets/evm/JsonRpcError.js
35466
- var R, E$2;
35612
+ var R;
35613
+ var E$2;
35467
35614
  (function(R) {
35468
35615
  R[R.UNAUTHORIZED = 4100] = "UNAUTHORIZED", R[R.UNSUPPORTED_METHOD = 4200] = "UNSUPPORTED_METHOD";
35469
35616
  })(R || (R = {})), function(R) {
@@ -35482,7 +35629,8 @@ const n$8 = [
35482
35629
  "chainId",
35483
35630
  "chainName",
35484
35631
  "nativeCurrency"
35485
- ], a$9 = (a) => {
35632
+ ];
35633
+ const a$9 = (a) => {
35486
35634
  if (!a || "object" != typeof a) throw new A(E$2.INVALID_PARAMS, "Invalid chain parameter: expected an object");
35487
35635
  if (!((e) => n$8.every((r) => r in e))(a)) throw new A(E$2.INVALID_PARAMS, `Invalid chain parameter. The following properties are required: ${n$8.join(", ")}`);
35488
35636
  if (!a.chainName || "" === a.chainName.trim()) throw new A(E$2.INVALID_PARAMS, "chainName cannot be empty");
@@ -35498,7 +35646,8 @@ const n$8 = [
35498
35646
  rpcUrls: a.rpcUrls || [],
35499
35647
  nativeCurrency: a.nativeCurrency
35500
35648
  };
35501
- }, i$6 = async ({ params: n, rpcProvider: i, storage: t }) => {
35649
+ };
35650
+ const i$6 = async ({ params: n, rpcProvider: i, storage: t }) => {
35502
35651
  if (!n || !Array.isArray(n) || 0 === n.length) throw new A(E$2.INVALID_PARAMS, "Invalid parameters for wallet_addEthereumChain");
35503
35652
  const c = a$9(n[0]), o = parseInt(c.chainId, 16), { chainId: s } = await i.detectNetwork();
35504
35653
  return o !== s && null;
@@ -35601,12 +35750,12 @@ const t$10 = async (t) => {
35601
35750
  }, t = { OpenfortMessage: [{
35602
35751
  name: "hashedMessage",
35603
35752
  type: "bytes32"
35604
- }] }, a = { hashedMessage: g }, { _TypedDataEncoder: s } = await import("./lib-S7tWZSeq.mjs").then((m) => /* @__PURE__ */ __toESM(m.default, 1));
35753
+ }] }, a = { hashedMessage: g }, { _TypedDataEncoder: s } = await import("./lib-BxePH7nf.mjs").then((m) => /* @__PURE__ */ __toESM(m.default, 1));
35605
35754
  g = s.hash(e, t, a);
35606
35755
  }
35607
35756
  const P = await s.sign(g, !1, !1);
35608
35757
  if (i && n && [T$1.UPGRADEABLE_V5, T$1.UPGRADEABLE_V6].includes(d)) {
35609
- const { id: e } = await import("./lib-S7tWZSeq.mjs").then((m) => /* @__PURE__ */ __toESM(m.default, 1)), { defaultAbiCoder: t } = await import("./lib-DY_aksO0.mjs").then((m) => /* @__PURE__ */ __toESM(m.default, 1)), { hexConcat: a } = await import("./lib-CQVjg2KA.mjs").then((m) => /* @__PURE__ */ __toESM(m.default, 1)), s = a([e("createAccountWithNonce(address,bytes32,bool)").slice(0, 10), t.encode([
35758
+ const { id: e } = await import("./lib-BxePH7nf.mjs").then((m) => /* @__PURE__ */ __toESM(m.default, 1)), { defaultAbiCoder: t } = await import("./lib-DrRsvTcx.mjs").then((m) => /* @__PURE__ */ __toESM(m.default, 1)), { hexConcat: a } = await import("./lib-CBkhBVvk.mjs").then((m) => /* @__PURE__ */ __toESM(m.default, 1)), s = a([e("createAccountWithNonce(address,bytes32,bool)").slice(0, 10), t.encode([
35610
35759
  "address",
35611
35760
  "bytes32",
35612
35761
  "bool"
@@ -35678,7 +35827,7 @@ const t$9 = async ({ params: t, signer: o, account: n }) => {
35678
35827
  const i = t[0], d = t[1];
35679
35828
  if (!d || !i) throw new A(E$2.INVALID_PARAMS, "personal_sign requires an address and a message");
35680
35829
  if (d.toLowerCase() !== n.address.toLowerCase()) throw new A(E$2.INVALID_PARAMS, "personal_sign requires the signer to be the from address");
35681
- const { hashMessage: p } = await import("./lib-S7tWZSeq.mjs").then((m) => /* @__PURE__ */ __toESM(m.default, 1));
35830
+ const { hashMessage: p } = await import("./lib-BxePH7nf.mjs").then((m) => /* @__PURE__ */ __toESM(m.default, 1));
35682
35831
  return await t$10({
35683
35832
  hash: p(n$11(i)),
35684
35833
  implementationType: n.implementationType || n.type,
@@ -35819,8 +35968,7 @@ const o$5 = async ({ params: o, signer: i, account: r, authentication: s, backen
35819
35968
  //#region ../../node_modules/.pnpm/@openfort+openfort-js@1.3.6/node_modules/@openfort/openfort-js/dist/sdk/src/utils/authorization.js
35820
35969
  var import_lib = require_lib();
35821
35970
  function r$6(r) {
35822
- const { address: n, chainId: e, nonce: i } = r;
35823
- return (0, import_lib.keccak256)(`0x05${function(t, r, n) {
35971
+ const { address: n, chainId: e, nonce: i } = r, s = `0x05${function(t, r, n) {
35824
35972
  const e = (t, r) => {
35825
35973
  if (t < 56) return (r + t).toString(16).padStart(2, "0");
35826
35974
  const n = t.toString(16), e = Math.ceil(n.length / 2);
@@ -35838,7 +35986,8 @@ function r$6(r) {
35838
35986
  return r.length % 2 != 0 && (r = `0${r}`), 0 === r.length ? "80" : 2 === r.length && parseInt(r, 16) < 128 ? r : e(r.length / 2, 128) + r;
35839
35987
  }).join("");
35840
35988
  return `0x${e(i.length / 2, 192)}${i}`;
35841
- }(e, n, i).slice(2)}`);
35989
+ }(e, n, i).slice(2)}`;
35990
+ return (0, import_lib.keccak256)(s);
35842
35991
  }
35843
35992
  async function n$7(t) {
35844
35993
  const { authorization: n, signer: e } = t, i = r$6(n), o = await e.sign(i, !1, !1), s = o.startsWith("0x") ? o.slice(2) : o, a = `0x${s.slice(0, 64)}`, c = `0x${s.slice(64, 128)}`, d = s.slice(128, 130), h = parseInt(d, 16);
@@ -35996,7 +36145,8 @@ const r$5 = [
35996
36145
  "domain",
35997
36146
  "primaryType",
35998
36147
  "message"
35999
- ], n$5 = (a, n) => {
36148
+ ];
36149
+ const n$5 = (a, n) => {
36000
36150
  let s;
36001
36151
  if ("string" == typeof a) try {
36002
36152
  s = JSON.parse(a);
@@ -36011,14 +36161,15 @@ const r$5 = [
36011
36161
  const d = s.domain?.chainId;
36012
36162
  if (d && ("string" == typeof d && (d.startsWith("0x") ? s.domain.chainId = parseInt(d, 16) : s.domain.chainId = parseInt(d, 10)), s.domain.chainId !== n)) throw new A(E$2.INVALID_PARAMS, `Invalid chainId, expected ${n}`);
36013
36163
  return s;
36014
- }, s$6 = async ({ params: r, method: s, signer: d, implementationType: i, rpcProvider: o, account: p }) => {
36164
+ };
36165
+ const s$6 = async ({ params: r, method: s, signer: d, implementationType: i, rpcProvider: o, account: p }) => {
36015
36166
  const c = r[0], h = r[1];
36016
36167
  if (!c || !h) throw new A(E$2.INVALID_PARAMS, `${s} requires an address and a typed data JSON`);
36017
36168
  const { chainId: m } = await o.detectNetwork(), I = n$5(h, m), y = { ...I.types };
36018
36169
  delete y.EIP712Domain;
36019
- const { _TypedDataEncoder: A$4 } = await import("./lib-S7tWZSeq.mjs").then((m) => /* @__PURE__ */ __toESM(m.default, 1));
36170
+ const { _TypedDataEncoder: A$4 } = await import("./lib-BxePH7nf.mjs").then((m) => /* @__PURE__ */ __toESM(m.default, 1)), w = A$4.hash(I.domain, y, I.message);
36020
36171
  return await t$10({
36021
- hash: A$4.hash(I.domain, y, I.message),
36172
+ hash: w,
36022
36173
  implementationType: i,
36023
36174
  chainId: m,
36024
36175
  signer: d,
@@ -36066,7 +36217,7 @@ var E$1 = class {
36066
36217
  async getRpcProvider() {
36067
36218
  if (!this.#o) {
36068
36219
  const s = (await s$9.fromStorage(this.#t))?.chainId || (this.#s ? Number(Object.keys(this.#s)[0]) : void 0) || 8453;
36069
- await import("./lib-BPNIfCSS.mjs").then((m) => /* @__PURE__ */ __toESM(m.default, 1)).then((t) => {
36220
+ await import("./lib-DQFX8e0j.mjs").then((m) => /* @__PURE__ */ __toESM(m.default, 1)).then((t) => {
36070
36221
  const e = this.#s ? this.#s[s] : void 0;
36071
36222
  this.#o = new t.StaticJsonRpcProvider(e ?? t$12[s]);
36072
36223
  });
@@ -36093,7 +36244,7 @@ var E$1 = class {
36093
36244
  if (!a || !r) throw new A(R.UNAUTHORIZED, "Unauthorized - call eth_requestAccounts first");
36094
36245
  const { chainId: n } = await (await this.getRpcProvider()).detectNetwork(), [h] = s.params || [];
36095
36246
  h.chainId || (h.chainId = n.toString());
36096
- const c = s$8(h), { serialize: p } = await import("./lib-Cs29vVRx.mjs").then((m) => /* @__PURE__ */ __toESM(m.default, 1)), w = (t) => ({
36247
+ const c = s$8(h), { serialize: p } = await import("./lib-Cc6HXyt-.mjs").then((m) => /* @__PURE__ */ __toESM(m.default, 1)), w = (t) => ({
36097
36248
  legacy: 0,
36098
36249
  eip2930: 1,
36099
36250
  eip1559: 2
@@ -36102,9 +36253,9 @@ var E$1 = class {
36102
36253
  gasLimit: u,
36103
36254
  to: c.to ?? void 0,
36104
36255
  type: w(c.type)
36105
- }, f = p(g), { keccak256: S } = await import("./lib-CMLhJW3x.mjs").then((m) => /* @__PURE__ */ __toESM(m.default, 1)), A$3 = S(f);
36256
+ }, f = p(g), { keccak256: S } = await import("./lib-CbXTRod6.mjs").then((m) => /* @__PURE__ */ __toESM(m.default, 1)), A$3 = S(f);
36106
36257
  await this.#i();
36107
- const R$2 = await i.sign(A$3, !1, !1), { splitSignature: v } = await import("./lib-CQVjg2KA.mjs").then((m) => /* @__PURE__ */ __toESM(m.default, 1));
36258
+ const R$2 = await i.sign(A$3, !1, !1), { splitSignature: v } = await import("./lib-CBkhBVvk.mjs").then((m) => /* @__PURE__ */ __toESM(m.default, 1));
36108
36259
  return p(g, v(R$2));
36109
36260
  }
36110
36261
  case "eth_sendTransaction": {
@@ -36198,7 +36349,7 @@ var E$1 = class {
36198
36349
  await this.#i();
36199
36350
  try {
36200
36351
  const e = parseInt(s.params[0].chainId, 16);
36201
- await t.switchChain({ chainId: e }), await import("./lib-BPNIfCSS.mjs").then((m) => /* @__PURE__ */ __toESM(m.default, 1)).then((t) => {
36352
+ await t.switchChain({ chainId: e }), await import("./lib-DQFX8e0j.mjs").then((m) => /* @__PURE__ */ __toESM(m.default, 1)).then((t) => {
36202
36353
  const s = this.#s ? this.#s[e] : void 0;
36203
36354
  this.#o = new t.StaticJsonRpcProvider(s ?? t$12[e]);
36204
36355
  }), this.#r.emit(C$1.CHAIN_CHANGED, r$11(e));
@@ -36356,7 +36507,15 @@ var r$4 = class extends Error {
36356
36507
  var a$4 = "penpal";
36357
36508
  //#endregion
36358
36509
  //#region ../../node_modules/.pnpm/@openfort+openfort-js@1.3.6/node_modules/@openfort/openfort-js/dist/sdk/src/wallets/messaging/browserMessenger/guards.js
36359
- const t$5 = (e) => "object" == typeof e && null !== e, p$2 = (e) => "function" == typeof e, o$4 = (p) => t$5(p) && p.namespace === "penpal", y$2 = (e) => "SYN" === e.type, n$3 = (e) => "ACK1" === e.type, c$3 = (e) => "ACK2" === e.type, a$3 = (e) => "CALL" === e.type, f = (e) => "REPLY" === e.type, m$2 = (e) => "DESTROY" === e.type;
36510
+ const t$5 = (e) => "object" == typeof e && null !== e;
36511
+ const p$2 = (e) => "function" == typeof e;
36512
+ const o$4 = (p) => t$5(p) && p.namespace === "penpal";
36513
+ const y$2 = (e) => "SYN" === e.type;
36514
+ const n$3 = (e) => "ACK1" === e.type;
36515
+ const c$3 = (e) => "ACK2" === e.type;
36516
+ const a$3 = (e) => "CALL" === e.type;
36517
+ const f = (e) => "REPLY" === e.type;
36518
+ const m$2 = (e) => "DESTROY" === e.type;
36360
36519
  //#endregion
36361
36520
  //#region ../../node_modules/.pnpm/@openfort+openfort-js@1.3.6/node_modules/@openfort/openfort-js/dist/sdk/src/wallets/messaging/browserMessenger/PenpalBugError.js
36362
36521
  var e$3 = class extends Error {
@@ -36367,13 +36526,18 @@ var e$3 = class extends Error {
36367
36526
  //#endregion
36368
36527
  //#region ../../node_modules/.pnpm/@openfort+openfort-js@1.3.6/node_modules/@openfort/openfort-js/dist/sdk/src/wallets/messaging/browserMessenger/backwardCompatibility.js
36369
36528
  const p$1 = "deprecated-penpal";
36370
- var i$3, o$3;
36529
+ var i$3;
36530
+ var o$3;
36371
36531
  (function(e) {
36372
36532
  e.Call = "call", e.Reply = "reply", e.Syn = "syn", e.SynAck = "synAck", e.Ack = "ack";
36373
36533
  })(i$3 || (i$3 = {})), function(e) {
36374
36534
  e.Fulfilled = "fulfilled", e.Rejected = "rejected";
36375
36535
  }(o$3 || (o$3 = {}));
36376
- const u$2 = (e) => t$5(e) && "penpal" in e, d$4 = (e) => e.split("."), s$5 = (e) => e.join("."), c$2 = (e) => new e$3(`Unexpected message to translate: ${JSON.stringify(e)}`), m$1 = (e) => {
36536
+ const u$2 = (e) => t$5(e) && "penpal" in e;
36537
+ const d$4 = (e) => e.split(".");
36538
+ const s$5 = (e) => e.join(".");
36539
+ const c$2 = (e) => new e$3(`Unexpected message to translate: ${JSON.stringify(e)}`);
36540
+ const m$1 = (e) => {
36377
36541
  if (e.penpal === i$3.Syn) return {
36378
36542
  namespace: a$4,
36379
36543
  channel: void 0,
@@ -36417,7 +36581,8 @@ const u$2 = (e) => t$5(e) && "penpal" in e, d$4 = (e) => e.split("."), s$5 = (e)
36417
36581
  } : { value: e.returnValue }
36418
36582
  };
36419
36583
  throw c$2(e);
36420
- }, h$1 = (n) => {
36584
+ };
36585
+ const h$1 = (n) => {
36421
36586
  if (n$3(n)) return {
36422
36587
  penpal: i$3.SynAck,
36423
36588
  methodNames: n.methodPaths.map(s$5)
@@ -36646,7 +36811,8 @@ const a$2 = (a) => ({
36646
36811
  message: a.message,
36647
36812
  stack: a.stack,
36648
36813
  penpalCode: a instanceof r$4 ? a.code : void 0
36649
- }), n$2 = ({ name: a, message: n, stack: s, penpalCode: o }) => {
36814
+ });
36815
+ const n$2 = ({ name: a, message: n, stack: s, penpalCode: o }) => {
36650
36816
  const r = o ? new r$4(o, n) : new Error(n);
36651
36817
  return r.name = a, r.stack = s, r;
36652
36818
  };
@@ -36659,10 +36825,12 @@ const s$3 = (t, n = []) => {
36659
36825
  p$2(u) ? c.push([...n, e]) : t$5(u) && c.push(...s$3(u, [...n, e]));
36660
36826
  }
36661
36827
  return c;
36662
- }, t$3 = (s, t) => {
36828
+ };
36829
+ const t$3 = (s, t) => {
36663
36830
  const n = s.reduce((o, s) => t$5(o) ? o[s] : void 0, t);
36664
36831
  return p$2(n) ? n : void 0;
36665
- }, n$1 = (o) => o.join(".");
36832
+ };
36833
+ const n$1 = (o) => o.join(".");
36666
36834
  //#endregion
36667
36835
  //#region ../../node_modules/.pnpm/@openfort+openfort-js@1.3.6/node_modules/@openfort/openfort-js/dist/sdk/src/wallets/messaging/browserMessenger/Reply.js
36668
36836
  var s$2 = class {
@@ -36684,7 +36852,8 @@ const i$2 = (r, a, t) => ({
36684
36852
  value: a$2(t),
36685
36853
  isSerializedErrorInstance: !0
36686
36854
  } : { value: t }
36687
- }), l$2 = (e, l, c, d) => {
36855
+ });
36856
+ const l$2 = (e, l, c, d) => {
36688
36857
  let m = !1;
36689
36858
  const p = async (p) => {
36690
36859
  if (m) return;
@@ -36727,16 +36896,19 @@ var t$2 = class {
36727
36896
  };
36728
36897
  //#endregion
36729
36898
  //#region ../../node_modules/.pnpm/@openfort+openfort-js@1.3.6/node_modules/@openfort/openfort-js/dist/sdk/src/wallets/messaging/browserMessenger/connectRemoteProxy.js
36730
- const l$1 = new Set([
36899
+ const l$1 = /* @__PURE__ */ new Set([
36731
36900
  "apply",
36732
36901
  "call",
36733
36902
  "bind"
36734
- ]), i$1 = (e, t, r = []) => new Proxy(r.length ? () => {} : Object.create(null), {
36903
+ ]);
36904
+ const i$1 = (e, t, r = []) => new Proxy(r.length ? () => {} : Object.create(null), {
36735
36905
  get(o, a) {
36736
36906
  if ("then" !== a) return r.length && l$1.has(a) ? Reflect.get(o, a) : i$1(e, t, [...r, a]);
36737
36907
  },
36738
36908
  apply: (t, o, a) => e(r, a)
36739
- }), c$1 = (e) => new r$4("CONNECTION_DESTROYED", `Method call ${n$1(e)}() failed due to destroyed connection`), d$3 = (l, d, m) => {
36909
+ });
36910
+ const c$1 = (e) => new r$4("CONNECTION_DESTROYED", `Method call ${n$1(e)}() failed due to destroyed connection`);
36911
+ const d$3 = (l, d, m) => {
36740
36912
  let h = !1;
36741
36913
  const p = /* @__PURE__ */ new Map(), f$2 = (e) => {
36742
36914
  if (!f(e)) return;
@@ -36863,7 +37035,8 @@ const p = ({ messenger: p, methods: h, timeout: l, channel: f, log: S }) => {
36863
37035
  };
36864
37036
  //#endregion
36865
37037
  //#region ../../node_modules/.pnpm/@openfort+openfort-js@1.3.6/node_modules/@openfort/openfort-js/dist/sdk/src/wallets/messaging/browserMessenger/connect.js
36866
- const a$1 = /* @__PURE__ */ new WeakSet(), m = ({ messenger: m, methods: c = {}, timeout: i, channel: d, log: h }) => {
37038
+ const a$1 = /* @__PURE__ */ new WeakSet();
37039
+ const m = ({ messenger: m, methods: c = {}, timeout: i, channel: d, log: h }) => {
36867
37040
  if (!m) throw new r$4("INVALID_ARGUMENT", "messenger must be defined");
36868
37041
  if (a$1.has(m)) throw new r$4("INVALID_ARGUMENT", "A messenger can only be used for a single connection");
36869
37042
  a$1.add(m);
@@ -37589,9 +37762,9 @@ var k = class {
37589
37762
  if (!i) throw new s$11(E$4.MISSING_SIGNER, "No account found");
37590
37763
  const n = { ...t };
37591
37764
  delete n.EIP712Domain;
37592
- const { _TypedDataEncoder: d } = await import("./lib-S7tWZSeq.mjs").then((m) => /* @__PURE__ */ __toESM(m.default, 1));
37765
+ const { _TypedDataEncoder: d } = await import("./lib-BxePH7nf.mjs").then((m) => /* @__PURE__ */ __toESM(m.default, 1)), h = d.hash(e, n, r);
37593
37766
  return await t$10({
37594
- hash: d.hash(e, n, r),
37767
+ hash: h,
37595
37768
  implementationType: i.implementationType || i.type,
37596
37769
  chainId: Number(i.chainId),
37597
37770
  signer: s,
@@ -38284,7 +38457,8 @@ var r = class {
38284
38457
  };
38285
38458
  //#endregion
38286
38459
  //#region ../../node_modules/.pnpm/@openfort+openfort-js@1.3.6/node_modules/@openfort/openfort-js/dist/sdk/src/utils/promiseUtils.js
38287
- const e = {}, l = (l, t) => {
38460
+ const e = {};
38461
+ const l = (l, t) => {
38288
38462
  let n = e[t];
38289
38463
  return n || (n = l().finally(() => {
38290
38464
  delete e[t], n = null;
@@ -38511,7 +38685,7 @@ function clearStaleOpenfortBrowserStorage(publishableKey) {
38511
38685
  * tagging them `stale-openfort-cache` would delete the triage signal the tag
38512
38686
  * exists to carry.
38513
38687
  */
38514
- const STALE_USER_ERROR_CODES = new Set(["USER_NOT_FOUND"]);
38688
+ const STALE_USER_ERROR_CODES = /* @__PURE__ */ new Set(["USER_NOT_FOUND"]);
38515
38689
  /**
38516
38690
  * The one predicate that opens the heal. It reads the Openfort error code and
38517
38691
  * never the message text (ADR-0023 R4). It walks the cause chain the way
@@ -39441,7 +39615,7 @@ function clearAuthCacheEffect(authCache) {
39441
39615
  return authCache.clearSession.pipe(Effect.mapError((cause) => Errors.providerError("auth-cache", "clearSession", cause)), Effect.andThen(authCache.clearJwt.pipe(Effect.mapError((cause) => Errors.providerError("auth-cache", "clearJwt", cause)))));
39442
39616
  }
39443
39617
  function cryptoRandomId() {
39444
- const bytes = new Uint8Array(8);
39618
+ const bytes = /* @__PURE__ */ new Uint8Array(8);
39445
39619
  if (typeof globalThis.crypto !== "undefined" && typeof globalThis.crypto.getRandomValues === "function") globalThis.crypto.getRandomValues(bytes);
39446
39620
  else for (let i = 0; i < bytes.length; i++) bytes[i] = Math.floor(Math.random() * 256);
39447
39621
  return Array.from(bytes, (b) => b.toString(16).padStart(2, "0")).join("");
@@ -40890,7 +41064,7 @@ const organizationPaymentExecutionUnavailable = () => Promise.resolve({
40890
41064
  const holdingsContract = { current: makeFunctionReference(CAPXUL_FUNCTIONS["holdings/actions"].current) };
40891
41065
  //#endregion
40892
41066
  //#region ../../packages/sdk/src/domain/money/primary-holding.ts
40893
- const CURRENCY_BY_TOKEN_SYMBOL = new Map([["USDX", toCurrencyCode("USD")]]);
41067
+ const CURRENCY_BY_TOKEN_SYMBOL = /* @__PURE__ */ new Map([["USDX", toCurrencyCode("USD")]]);
40894
41068
  /**
40895
41069
  * The designated display asset: the payable row holding the most money, or
40896
41070
  * `null` when no row is payable.
@@ -42349,7 +42523,7 @@ const isSmartAccountDeployed = async (client, address) => {
42349
42523
  */
42350
42524
  let oxModule = null;
42351
42525
  try {
42352
- oxModule = { importPromise: import("./_esm-BJMBPEEJ.mjs") };
42526
+ oxModule = { importPromise: import("./_esm-CD_IfzIg.mjs") };
42353
42527
  } catch (error) {}
42354
42528
  async function getOxModule() {
42355
42529
  if (!oxModule) throw new Error("The 'ox' package is required for WebAuthn functionality. Please install it: npm install ox");
@@ -42483,9 +42657,8 @@ async function signUserOperation(parameters) {
42483
42657
  signer,
42484
42658
  dynamic: isWebAuthnAccount(localOwner),
42485
42659
  data: await (async () => {
42486
- if (isWebAuthnAccount(localOwner)) return getWebAuthnSignature({
42487
- owner: localOwner,
42488
- hash: hashTypedData({
42660
+ if (isWebAuthnAccount(localOwner)) {
42661
+ const safeHash = hashTypedData({
42489
42662
  domain: {
42490
42663
  chainId,
42491
42664
  verifyingContract: safe4337ModuleAddress
@@ -42493,8 +42666,12 @@ async function signUserOperation(parameters) {
42493
42666
  types: entryPoint.version === "0.6" ? EIP712_SAFE_OPERATION_TYPE_V06 : EIP712_SAFE_OPERATION_TYPE_V07,
42494
42667
  primaryType: "SafeOp",
42495
42668
  message
42496
- })
42497
- });
42669
+ });
42670
+ return getWebAuthnSignature({
42671
+ owner: localOwner,
42672
+ hash: safeHash
42673
+ });
42674
+ }
42498
42675
  return localOwner.signTypedData({
42499
42676
  domain: {
42500
42677
  chainId,
@@ -43019,10 +43196,11 @@ const encodeInternalTransaction = (tx) => {
43019
43196
  ]).slice(2);
43020
43197
  };
43021
43198
  const encodeMultiSend = (txs) => {
43199
+ const data = `0x${txs.map((tx) => encodeInternalTransaction(tx)).join("")}`;
43022
43200
  return encodeFunctionData({
43023
43201
  abi: multiSendAbi,
43024
43202
  functionName: "multiSend",
43025
- args: [`0x${txs.map((tx) => encodeInternalTransaction(tx)).join("")}`]
43203
+ args: [data]
43026
43204
  });
43027
43205
  };
43028
43206
  const get7579LaunchPadInitData = ({ safe4337ModuleAddress, safeSingletonAddress, erc7579LaunchpadAddress, safeWebAuthnSharedSignerAddress, owners, validators, executors, fallbacks, hooks, attesters, threshold, attestersThreshold }) => {
@@ -43082,67 +43260,68 @@ const getInitializerCode = async ({ owners, threshold, safeModuleSetupAddress, s
43082
43260
  attesters,
43083
43261
  attestersThreshold
43084
43262
  });
43263
+ const initHash = keccak256(encodeAbiParameters([
43264
+ {
43265
+ internalType: "address",
43266
+ name: "singleton",
43267
+ type: "address"
43268
+ },
43269
+ {
43270
+ internalType: "address[]",
43271
+ name: "owners",
43272
+ type: "address[]"
43273
+ },
43274
+ {
43275
+ internalType: "uint256",
43276
+ name: "threshold",
43277
+ type: "uint256"
43278
+ },
43279
+ {
43280
+ internalType: "address",
43281
+ name: "setupTo",
43282
+ type: "address"
43283
+ },
43284
+ {
43285
+ internalType: "bytes",
43286
+ name: "setupData",
43287
+ type: "bytes"
43288
+ },
43289
+ {
43290
+ internalType: "contract ISafe7579",
43291
+ name: "safe7579",
43292
+ type: "address"
43293
+ },
43294
+ {
43295
+ internalType: "struct ModuleInit[]",
43296
+ name: "validators",
43297
+ type: "tuple[]",
43298
+ components: [{
43299
+ internalType: "address",
43300
+ name: "module",
43301
+ type: "address"
43302
+ }, {
43303
+ internalType: "bytes",
43304
+ name: "initData",
43305
+ type: "bytes"
43306
+ }]
43307
+ }
43308
+ ], [
43309
+ initData.singleton,
43310
+ initData.owners,
43311
+ initData.threshold,
43312
+ initData.setupTo,
43313
+ initData.setupData,
43314
+ initData.safe7579,
43315
+ initData.validators.map((validator) => ({
43316
+ module: validator.address,
43317
+ initData: validator.context
43318
+ }))
43319
+ ]));
43085
43320
  return encodeFunctionData({
43086
43321
  abi: preValidationSetupAbi,
43087
43322
  functionName: "preValidationSetup",
43088
43323
  args: [
43089
- keccak256(encodeAbiParameters([
43090
- {
43091
- internalType: "address",
43092
- name: "singleton",
43093
- type: "address"
43094
- },
43095
- {
43096
- internalType: "address[]",
43097
- name: "owners",
43098
- type: "address[]"
43099
- },
43100
- {
43101
- internalType: "uint256",
43102
- name: "threshold",
43103
- type: "uint256"
43104
- },
43105
- {
43106
- internalType: "address",
43107
- name: "setupTo",
43108
- type: "address"
43109
- },
43110
- {
43111
- internalType: "bytes",
43112
- name: "setupData",
43113
- type: "bytes"
43114
- },
43115
- {
43116
- internalType: "contract ISafe7579",
43117
- name: "safe7579",
43118
- type: "address"
43119
- },
43120
- {
43121
- internalType: "struct ModuleInit[]",
43122
- name: "validators",
43123
- type: "tuple[]",
43124
- components: [{
43125
- internalType: "address",
43126
- name: "module",
43127
- type: "address"
43128
- }, {
43129
- internalType: "bytes",
43130
- name: "initData",
43131
- type: "bytes"
43132
- }]
43133
- }
43134
- ], [
43135
- initData.singleton,
43136
- initData.owners,
43137
- initData.threshold,
43138
- initData.setupTo,
43139
- initData.setupData,
43140
- initData.safe7579,
43141
- initData.validators.map((validator) => ({
43142
- module: validator.address,
43143
- initData: validator.context
43144
- }))
43145
- ])),
43324
+ initHash,
43146
43325
  zeroAddress,
43147
43326
  "0x"
43148
43327
  ]
@@ -43192,6 +43371,7 @@ const getInitializerCode = async ({ owners, threshold, safeModuleSetupAddress, s
43192
43371
  ...tx,
43193
43372
  operation: 0
43194
43373
  });
43374
+ const multiSendCallData = encodeMultiSend(multiCalls);
43195
43375
  return encodeFunctionData({
43196
43376
  abi: setupAbi,
43197
43377
  functionName: "setup",
@@ -43199,7 +43379,7 @@ const getInitializerCode = async ({ owners, threshold, safeModuleSetupAddress, s
43199
43379
  ownerAddresses,
43200
43380
  threshold,
43201
43381
  multiSendAddress,
43202
- encodeMultiSend(multiCalls),
43382
+ multiSendCallData,
43203
43383
  safe4337ModuleAddress,
43204
43384
  paymentToken,
43205
43385
  payment,
@@ -43305,9 +43485,10 @@ const getAccountAddress = async ({ client, owners, threshold, safeModuleSetupAdd
43305
43485
  paymentReceiver
43306
43486
  });
43307
43487
  const deploymentCode = encodePacked(["bytes", "uint256"], [proxyCreationCode, hexToBigInt(erc7579LaunchpadAddress ?? safeSingletonAddress)]);
43488
+ const salt = keccak256(encodePacked(["bytes32", "uint256"], [keccak256(encodePacked(["bytes"], [initializer])), saltNonce]));
43308
43489
  return getContractAddress({
43309
43490
  from: safeProxyFactoryAddress,
43310
- salt: keccak256(encodePacked(["bytes32", "uint256"], [keccak256(encodePacked(["bytes"], [initializer])), saltNonce])),
43491
+ salt,
43311
43492
  bytecode: deploymentCode,
43312
43493
  opcode: "CREATE2"
43313
43494
  });
@@ -43583,6 +43764,39 @@ async function toSafeSmartAccount(parameters) {
43583
43764
  });
43584
43765
  },
43585
43766
  async getStubSignature() {
43767
+ const signatures = owners.map((owner) => {
43768
+ let signer = safeWebAuthnSharedSignerAddress;
43769
+ let dynamic = true;
43770
+ let data = "0xfffffffffffffffffffffffffffffff0000000000000000000000000000000007aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa1c";
43771
+ if (isWebAuthnAccount(owner)) data = encodeAbiParameters([
43772
+ {
43773
+ name: "authenticatorData",
43774
+ type: "bytes"
43775
+ },
43776
+ {
43777
+ name: "clientDataJSON",
43778
+ type: "string"
43779
+ },
43780
+ {
43781
+ name: "signature",
43782
+ type: "uint256[2]"
43783
+ }
43784
+ ], [
43785
+ "0x49960de5880e8c687434170f6476605b8fe4aeb9a28632c7995cf3ba831d97631d00000000",
43786
+ "\"origin\":\"http://somelargdomainheresothatwehaveenoughbytes.com\",\"crossOrigin\":false",
43787
+ [44941127272049826721201904734628716258498742255959991581049806490182030242267n, 9910254599581058084911561569808925251374718953855182016200087235935345969636n]
43788
+ ]);
43789
+ else {
43790
+ signer = owner.address;
43791
+ dynamic = false;
43792
+ }
43793
+ if (!signer) throw new Error("No signer found");
43794
+ return {
43795
+ signer,
43796
+ data,
43797
+ dynamic
43798
+ };
43799
+ });
43586
43800
  return encodePacked([
43587
43801
  "uint48",
43588
43802
  "uint48",
@@ -43590,39 +43804,7 @@ async function toSafeSmartAccount(parameters) {
43590
43804
  ], [
43591
43805
  0,
43592
43806
  0,
43593
- concatSignatures(owners.map((owner) => {
43594
- let signer = safeWebAuthnSharedSignerAddress;
43595
- let dynamic = true;
43596
- let data = "0xfffffffffffffffffffffffffffffff0000000000000000000000000000000007aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa1c";
43597
- if (isWebAuthnAccount(owner)) data = encodeAbiParameters([
43598
- {
43599
- name: "authenticatorData",
43600
- type: "bytes"
43601
- },
43602
- {
43603
- name: "clientDataJSON",
43604
- type: "string"
43605
- },
43606
- {
43607
- name: "signature",
43608
- type: "uint256[2]"
43609
- }
43610
- ], [
43611
- "0x49960de5880e8c687434170f6476605b8fe4aeb9a28632c7995cf3ba831d97631d00000000",
43612
- "\"origin\":\"http://somelargdomainheresothatwehaveenoughbytes.com\",\"crossOrigin\":false",
43613
- [44941127272049826721201904734628716258498742255959991581049806490182030242267n, 9910254599581058084911561569808925251374718953855182016200087235935345969636n]
43614
- ]);
43615
- else {
43616
- signer = owner.address;
43617
- dynamic = false;
43618
- }
43619
- if (!signer) throw new Error("No signer found");
43620
- return {
43621
- signer,
43622
- data,
43623
- dynamic
43624
- };
43625
- }))
43807
+ concatSignatures(signatures)
43626
43808
  ]);
43627
43809
  },
43628
43810
  async sign({ hash }) {
@@ -43643,7 +43825,7 @@ async function toSafeSmartAccount(parameters) {
43643
43825
  primaryType: "SafeMessage",
43644
43826
  message: { message: generateSafeMessageMessage(message) }
43645
43827
  });
43646
- const signatureBytes = concatSignatures(await Promise.all(localOwners.map(async (localOwner) => {
43828
+ const signatures = await Promise.all(localOwners.map(async (localOwner) => {
43647
43829
  let signer = safeWebAuthnSharedSignerAddress;
43648
43830
  let data;
43649
43831
  let dynamic = true;
@@ -43662,19 +43844,19 @@ async function toSafeSmartAccount(parameters) {
43662
43844
  dynamic,
43663
43845
  data
43664
43846
  };
43665
- })));
43847
+ }));
43848
+ const signatureBytes = concatSignatures(signatures);
43666
43849
  return erc7579LaunchpadAddress ? concat([zeroAddress, signatureBytes]) : signatureBytes;
43667
43850
  },
43668
43851
  async signTypedData(typedData) {
43669
43852
  if (localOwners.length < Number(threshold)) throw new Error("Owners length mismatch, currently not supported");
43670
43853
  if (erc7579LaunchpadAddress && version === "1.5.0") throw new Error("Safe 7579 & version 1.5.0 are not compatible");
43671
- const signatureBytes = concatSignatures(await Promise.all(localOwners.map(async (localOwner) => {
43854
+ const signatures = await Promise.all(localOwners.map(async (localOwner) => {
43672
43855
  let signer = safeWebAuthnSharedSignerAddress;
43673
43856
  let data;
43674
43857
  let dynamic = true;
43675
- if (isWebAuthnAccount(localOwner)) data = await getWebAuthnSignature({
43676
- owner: localOwner,
43677
- hash: hashTypedData({
43858
+ if (isWebAuthnAccount(localOwner)) {
43859
+ const messageHash = hashTypedData({
43678
43860
  domain: {
43679
43861
  chainId: await getMemoizedChainId(),
43680
43862
  verifyingContract: await this.getAddress()
@@ -43685,9 +43867,12 @@ async function toSafeSmartAccount(parameters) {
43685
43867
  }] },
43686
43868
  primaryType: "SafeMessage",
43687
43869
  message: { message: generateSafeMessageMessage(typedData) }
43688
- })
43689
- });
43690
- else {
43870
+ });
43871
+ data = await getWebAuthnSignature({
43872
+ owner: localOwner,
43873
+ hash: messageHash
43874
+ });
43875
+ } else {
43691
43876
  signer = localOwner.address;
43692
43877
  data = adjustVInSignature("eth_signTypedData", await localOwner.signTypedData({
43693
43878
  domain: {
@@ -43709,7 +43894,8 @@ async function toSafeSmartAccount(parameters) {
43709
43894
  dynamic,
43710
43895
  data
43711
43896
  };
43712
- })));
43897
+ }));
43898
+ const signatureBytes = concatSignatures(signatures);
43713
43899
  return erc7579LaunchpadAddress ? concat([zeroAddress, signatureBytes]) : signatureBytes;
43714
43900
  },
43715
43901
  async signUserOperation(parameters) {
@@ -44227,16 +44413,18 @@ var LiveOrgDeploymentAdapter = class {
44227
44413
  }
44228
44414
  async #deployProxy(input) {
44229
44415
  if (this.#sendOrgProxyDeployUserOperation !== void 0) {
44416
+ const initializerHex = buildCapxulOrgInitializer({ founderPersonalSafe: input.founderPersonalSafe });
44417
+ const saltNonceHex = computeCapxulOrgSaltNonce({
44418
+ email: input.email,
44419
+ orgHandle: input.orgHandle
44420
+ });
44230
44421
  const createProxyCallData = encodeFunctionData({
44231
44422
  abi: safeProxyFactoryAbi,
44232
44423
  functionName: "createProxyWithNonce",
44233
44424
  args: [
44234
44425
  SAFE_L2_SINGLETON,
44235
- buildCapxulOrgInitializer({ founderPersonalSafe: input.founderPersonalSafe }),
44236
- computeCapxulOrgSaltNonce({
44237
- email: input.email,
44238
- orgHandle: input.orgHandle
44239
- })
44426
+ initializerHex,
44427
+ saltNonceHex
44240
44428
  ]
44241
44429
  });
44242
44430
  await this.#sendOrgProxyDeployUserOperation({
@@ -44261,16 +44449,18 @@ var LiveOrgDeploymentAdapter = class {
44261
44449
  setupTransactions: []
44262
44450
  });
44263
44451
  if (founderSafe.address.toLowerCase() !== input.founderPersonalSafe.toLowerCase()) throw Errors.invalidInput("founderPersonalSafe", "permissionless personal Safe address does not match backend founder Safe");
44452
+ const initializer = buildCapxulOrgInitializer({ founderPersonalSafe: input.founderPersonalSafe });
44453
+ const saltNonce = computeCapxulOrgSaltNonce({
44454
+ email: input.email,
44455
+ orgHandle: input.orgHandle
44456
+ });
44264
44457
  const createProxyCall = encodeFunctionData({
44265
44458
  abi: safeProxyFactoryAbi,
44266
44459
  functionName: "createProxyWithNonce",
44267
44460
  args: [
44268
44461
  SAFE_L2_SINGLETON,
44269
- buildCapxulOrgInitializer({ founderPersonalSafe: input.founderPersonalSafe }),
44270
- computeCapxulOrgSaltNonce({
44271
- email: input.email,
44272
- orgHandle: input.orgHandle
44273
- })
44462
+ initializer,
44463
+ saltNonce
44274
44464
  ]
44275
44465
  });
44276
44466
  const bundler = makeSponsoredBundlerClient({
@@ -45009,14 +45199,14 @@ const ADDRESS_HEX = /^0x[0-9a-fA-F]{40}$/;
45009
45199
  const BYTES32_HEX = /^0x[0-9a-fA-F]{64}$/;
45010
45200
  const EVEN_DATA_HEX = /^0x(?:[0-9a-fA-F]{2})*$/;
45011
45201
  const QUANTITY_HEX = /^(?:0x0|0x[1-9a-fA-F][0-9a-fA-F]*)$/;
45012
- const EVIDENCE_RPC_METHODS = new Set([
45202
+ const EVIDENCE_RPC_METHODS = /* @__PURE__ */ new Set([
45013
45203
  "eth_call",
45014
45204
  "eth_getBlockByNumber",
45015
45205
  "eth_getCode",
45016
45206
  "eth_getLogs",
45017
45207
  "eth_getTransactionReceipt"
45018
45208
  ]);
45019
- const BUNDLER_RPC_METHODS = new Set([
45209
+ const BUNDLER_RPC_METHODS = /* @__PURE__ */ new Set([
45020
45210
  "eth_sendUserOperation",
45021
45211
  "eth_estimateUserOperationGas",
45022
45212
  "eth_getUserOperationReceipt",
@@ -45038,13 +45228,13 @@ function rpcProviderError(operation, cause, chainId) {
45038
45228
  return Errors.providerError(rpcProviderRole(chainId, method), operation, cause);
45039
45229
  }
45040
45230
  /** The modes the next upstream may not share: a throttle, a timeout, a dead upstream. */
45041
- const TRANSIENT_MODES = new Set([
45231
+ const TRANSIENT_MODES = /* @__PURE__ */ new Set([
45042
45232
  "rate-limited",
45043
45233
  "timeout",
45044
45234
  "upstream-down"
45045
45235
  ]);
45046
45236
  /** ERC-4337 validation refusals (`-3250x`) and the bundler's invalid-params answer. */
45047
- const BUNDLER_REJECTION_CODES = new Set([
45237
+ const BUNDLER_REJECTION_CODES = /* @__PURE__ */ new Set([
45048
45238
  -32500,
45049
45239
  -32501,
45050
45240
  -32502,
@@ -45223,7 +45413,7 @@ function boundedRevertDetails(revert, bundlerMessage) {
45223
45413
  const RATE_LIMITED_RPC_CODE = -32005;
45224
45414
  const RATE_LIMIT_MESSAGE = /rate limit|too many requests|throttl|capacity/iu;
45225
45415
  /** Alchemy's free tier caps `eth_getLogs` at 10 blocks; evidence reads span thousands. */
45226
- const WIDE_LOG_READS = new Set(["eth_getLogs"]);
45416
+ const WIDE_LOG_READS = /* @__PURE__ */ new Set(["eth_getLogs"]);
45227
45417
  function stripSlash(url) {
45228
45418
  return url.replace(/\/+$/u, "");
45229
45419
  }
@@ -46338,7 +46528,7 @@ function createDevSignerSessionStorage() {
46338
46528
  }
46339
46529
  //#endregion
46340
46530
  //#region src/session-store.ts
46341
- const DEFAULT_TTL_MS = 720 * 6e4;
46531
+ const DEFAULT_TTL_MS = 432e5;
46342
46532
  const DEFAULT_MAX_SESSIONS = 1e4;
46343
46533
  var InMemorySessionStore = class {
46344
46534
  sessions = /* @__PURE__ */ new Map();