alchemy 0.93.9 → 0.93.11

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/bin/alchemy.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import { createRequire } from "node:module";
3
3
  import { EventEmitter, addAbortListener, on, once, setMaxListeners } from "node:events";
4
4
  import childProcess, { ChildProcess, exec, execFile, spawn, spawnSync } from "node:child_process";
5
- import path from "node:path";
5
+ import nodePath from "node:path";
6
6
  import fs, { appendFileSync, createReadStream, createWriteStream, readFileSync, statSync, writeFileSync } from "node:fs";
7
7
  import y, { execArgv, execPath, hrtime, platform, stdin, stdout } from "node:process";
8
8
  import util, { aborted, callbackify, debuglog, inspect, promisify, stripVTControlCharacters } from "node:util";
@@ -12,7 +12,7 @@ import { Duplex, PassThrough, Readable, Transform, Writable, getDefaultHighWater
12
12
  import pc from "picocolors";
13
13
  import fs$1, { access, constants } from "node:fs/promises";
14
14
  import os, { constants as constants$1 } from "node:os";
15
- import path$1, { dirname, join, relative, resolve } from "pathe";
15
+ import path, { dirname, join, relative, resolve } from "pathe";
16
16
  import lockfile from "proper-lockfile";
17
17
  import crypto$1, { createHash } from "node:crypto";
18
18
  import { onExit } from "signal-exit";
@@ -36771,11 +36771,11 @@ var zod_default = external_exports;
36771
36771
 
36772
36772
  //#endregion
36773
36773
  //#region src/util/lock.ts
36774
- const LOCK_DIR = path$1.join(os.homedir(), ".alchemy", "lock");
36774
+ const LOCK_DIR = path.join(os.homedir(), ".alchemy", "lock");
36775
36775
  var Lock = class {
36776
36776
  path;
36777
36777
  constructor(key) {
36778
- this.path = path$1.join(LOCK_DIR, encodeURIComponent(key));
36778
+ this.path = path.join(LOCK_DIR, encodeURIComponent(key));
36779
36779
  }
36780
36780
  /**
36781
36781
  * Acquires the lock.
@@ -36979,7 +36979,7 @@ var FileSystemStateStore = class {
36979
36979
  initialized = false;
36980
36980
  constructor(scope, options) {
36981
36981
  this.scope = scope;
36982
- this.dir = path$1.join(options?.rootDir ?? scope.dotAlchemy, ...scope.chain);
36982
+ this.dir = path.join(options?.rootDir ?? scope.dotAlchemy, ...scope.chain);
36983
36983
  }
36984
36984
  async init() {
36985
36985
  if (this.initialized) return;
@@ -37021,7 +37021,7 @@ var FileSystemStateStore = class {
37021
37021
  async set(key, value) {
37022
37022
  await this.init();
37023
37023
  const file$2 = this.getPath(key);
37024
- await fs.promises.mkdir(path$1.dirname(file$2), { recursive: true });
37024
+ await fs.promises.mkdir(path.dirname(file$2), { recursive: true });
37025
37025
  await fs.promises.writeFile(file$2, JSON.stringify(await serialize$1(this.scope, value), null, 2));
37026
37026
  }
37027
37027
  async delete(key) {
@@ -37054,14 +37054,14 @@ var FileSystemStateStore = class {
37054
37054
  if (key.includes(":")) throw new Error(`ID cannot include colons: ${key}`);
37055
37055
  if (key.includes("/")) key = key.replaceAll("/", ALCHEMY_SEPERATOR_CHAR);
37056
37056
  if (process.platform === "win32") key = key.replaceAll("*", "+");
37057
- return path$1.join(this.dir, `${key}.json`);
37057
+ return path.join(this.dir, `${key}.json`);
37058
37058
  }
37059
37059
  };
37060
37060
 
37061
37061
  //#endregion
37062
37062
  //#region package.json
37063
37063
  var name = "alchemy";
37064
- var version = "0.93.9";
37064
+ var version = "0.93.11";
37065
37065
  var homepage = "https://alchemy.run";
37066
37066
  var license = "Apache-2.0";
37067
37067
  var author = "Sam Goodwin <sam@alchemy.run>";
@@ -37507,13 +37507,13 @@ var AsyncMutex = class {
37507
37507
  async function idempotentSpawn({ cmd, cwd: cwd$1, env: env$2, stateFile = "state.json", overlapBytes = 0, resume = false, log = "log.txt", processName, extract, isSameProcess, quiet = false }) {
37508
37508
  if (!processName && !isSameProcess) processName = cmd.split(" ")[0];
37509
37509
  const outPath = log;
37510
- await Promise.all([fs$1.mkdir(path$1.dirname(stateFile), { recursive: true }), fs$1.mkdir(path$1.dirname(log), { recursive: true })]);
37510
+ await Promise.all([fs$1.mkdir(path.dirname(stateFile), { recursive: true }), fs$1.mkdir(path.dirname(log), { recursive: true })]);
37511
37511
  const { promise: extracted, resolve: resolveExtracted } = Promise.withResolvers();
37512
37512
  if (!extract) resolveExtracted(void 0);
37513
37513
  const pid = await ensureChildRunning();
37514
37514
  const write = quiet ? () => false : (buf) => process.stdout.write(buf);
37515
37515
  await followFilePersisted(outPath, {
37516
- stateKey: `${path$1.resolve(outPath)}::stdout`,
37516
+ stateKey: `${path.resolve(outPath)}::stdout`,
37517
37517
  write
37518
37518
  });
37519
37519
  return {
@@ -37530,8 +37530,8 @@ async function idempotentSpawn({ cmd, cwd: cwd$1, env: env$2, stateFile = "state
37530
37530
  }
37531
37531
  }
37532
37532
  async function writeJsonAtomic(file$2, data) {
37533
- const dir = path$1.dirname(file$2);
37534
- const tmp = path$1.join(dir, `.${path$1.basename(file$2)}.${process.pid}.${Date.now()}.tmp`);
37533
+ const dir = path.dirname(file$2);
37534
+ const tmp = path.join(dir, `.${path.basename(file$2)}.${process.pid}.${Date.now()}.tmp`);
37535
37535
  await fs$1.writeFile(tmp, JSON.stringify(data, null, 2), { mode: 384 });
37536
37536
  await fs$1.rename(tmp, file$2);
37537
37537
  }
@@ -37579,7 +37579,7 @@ async function idempotentSpawn({ cmd, cwd: cwd$1, env: env$2, stateFile = "state
37579
37579
  return (await spawnLoggedChild()).pid;
37580
37580
  }
37581
37581
  async function followFilePersisted(logPath, { write: write$1, chunkSize = 64 * 1024, tickMs = 100 }) {
37582
- logPath = path$1.resolve(logPath);
37582
+ logPath = path.resolve(logPath);
37583
37583
  let state$1 = await readJson$3(stateFile) ?? {};
37584
37584
  let fh = await fs$1.open(logPath, "r");
37585
37585
  let st = await fh.stat();
@@ -37728,34 +37728,34 @@ const homedir = os.homedir();
37728
37728
  const tmpdir = os.tmpdir();
37729
37729
  const { env: env$1 } = y;
37730
37730
  const macos = (name$1) => {
37731
- const library = path.join(homedir, "Library");
37731
+ const library = nodePath.join(homedir, "Library");
37732
37732
  return {
37733
- data: path.join(library, "Application Support", name$1),
37734
- config: path.join(library, "Preferences", name$1),
37735
- cache: path.join(library, "Caches", name$1),
37736
- log: path.join(library, "Logs", name$1),
37737
- temp: path.join(tmpdir, name$1)
37733
+ data: nodePath.join(library, "Application Support", name$1),
37734
+ config: nodePath.join(library, "Preferences", name$1),
37735
+ cache: nodePath.join(library, "Caches", name$1),
37736
+ log: nodePath.join(library, "Logs", name$1),
37737
+ temp: nodePath.join(tmpdir, name$1)
37738
37738
  };
37739
37739
  };
37740
37740
  const windows = (name$1) => {
37741
- const appData = env$1.APPDATA || path.join(homedir, "AppData", "Roaming");
37742
- const localAppData = env$1.LOCALAPPDATA || path.join(homedir, "AppData", "Local");
37741
+ const appData = env$1.APPDATA || nodePath.join(homedir, "AppData", "Roaming");
37742
+ const localAppData = env$1.LOCALAPPDATA || nodePath.join(homedir, "AppData", "Local");
37743
37743
  return {
37744
- data: path.join(localAppData, name$1, "Data"),
37745
- config: path.join(appData, name$1, "Config"),
37746
- cache: path.join(localAppData, name$1, "Cache"),
37747
- log: path.join(localAppData, name$1, "Log"),
37748
- temp: path.join(tmpdir, name$1)
37744
+ data: nodePath.join(localAppData, name$1, "Data"),
37745
+ config: nodePath.join(appData, name$1, "Config"),
37746
+ cache: nodePath.join(localAppData, name$1, "Cache"),
37747
+ log: nodePath.join(localAppData, name$1, "Log"),
37748
+ temp: nodePath.join(tmpdir, name$1)
37749
37749
  };
37750
37750
  };
37751
37751
  const linux = (name$1) => {
37752
- const username = path.basename(homedir);
37752
+ const username = nodePath.basename(homedir);
37753
37753
  return {
37754
- data: path.join(env$1.XDG_DATA_HOME || path.join(homedir, ".local", "share"), name$1),
37755
- config: path.join(env$1.XDG_CONFIG_HOME || path.join(homedir, ".config"), name$1),
37756
- cache: path.join(env$1.XDG_CACHE_HOME || path.join(homedir, ".cache"), name$1),
37757
- log: path.join(env$1.XDG_STATE_HOME || path.join(homedir, ".local", "state"), name$1),
37758
- temp: path.join(tmpdir, username, name$1)
37754
+ data: nodePath.join(env$1.XDG_DATA_HOME || nodePath.join(homedir, ".local", "share"), name$1),
37755
+ config: nodePath.join(env$1.XDG_CONFIG_HOME || nodePath.join(homedir, ".config"), name$1),
37756
+ cache: nodePath.join(env$1.XDG_CACHE_HOME || nodePath.join(homedir, ".cache"), name$1),
37757
+ log: nodePath.join(env$1.XDG_STATE_HOME || nodePath.join(homedir, ".local", "state"), name$1),
37758
+ temp: nodePath.join(tmpdir, username, name$1)
37759
37759
  };
37760
37760
  };
37761
37761
  function envPaths(name$1, { suffix = "nodejs" } = {}) {
@@ -37782,10 +37782,10 @@ function isTransientNetworkError(err) {
37782
37782
 
37783
37783
  //#endregion
37784
37784
  //#region src/util/telemetry.ts
37785
- const ALCHEMY_DIR = path$1.join(os.homedir(), ".alchemy");
37786
- const ID_PATH = path$1.join(ALCHEMY_DIR, "id");
37787
- const ID_PATH_LEGACY = path$1.join(envPaths("alchemy", { suffix: "" }).config, "id");
37788
- const DISABLED_PATH = path$1.join(ALCHEMY_DIR, "telemetry-disabled");
37785
+ const ALCHEMY_DIR = path.join(os.homedir(), ".alchemy");
37786
+ const ID_PATH = path.join(ALCHEMY_DIR, "id");
37787
+ const ID_PATH_LEGACY = path.join(envPaths("alchemy", { suffix: "" }).config, "id");
37788
+ const DISABLED_PATH = path.join(ALCHEMY_DIR, "telemetry-disabled");
37789
37789
  const TELEMETRY_DISABLED = !!process.env.ALCHEMY_TELEMETRY_DISABLED || !!process.env.DO_NOT_TRACK;
37790
37790
  const TELEMETRY_API_URL = process.env.ALCHEMY_TELEMETRY_API_URL ?? "https://telemetry.alchemy.run";
37791
37791
  const SUPPRESS_TELEMETRY_ERRORS = !!process.env.ALCHEMY_TELEMETRY_SUPPRESS_ERRORS;
@@ -38108,7 +38108,7 @@ var Scope = class Scope {
38108
38108
  this.rootDir = rootDir ?? this.parent?.rootDir ?? ALCHEMY_ROOT;
38109
38109
  this.isSelected = isSelected ?? this.parent?.isSelected;
38110
38110
  this.startedAt = startedAt ?? this.parent?.startedAt ?? performance.now();
38111
- this.dotAlchemy = dotAlchemy ?? this.parent?.dotAlchemy ?? path$1.resolve(this.rootDir, ".alchemy");
38111
+ this.dotAlchemy = dotAlchemy ?? this.parent?.dotAlchemy ?? path.resolve(this.rootDir, ".alchemy");
38112
38112
  this.providerCredentials = providerCredentials;
38113
38113
  this.stage = stage ?? this.parent?.stage ?? DEFAULT_STAGE;
38114
38114
  this.profile = profile ?? this.parent?.profile;
@@ -38155,22 +38155,22 @@ var Scope = class Scope {
38155
38155
  return name$1;
38156
38156
  }
38157
38157
  async spawn(id, options) {
38158
- const logsDir = path$1.join(this.dotAlchemy, "logs");
38159
- const pidsDir = path$1.join(this.dotAlchemy, "pids");
38158
+ const logsDir = path.join(this.dotAlchemy, "logs");
38159
+ const pidsDir = path.join(this.dotAlchemy, "pids");
38160
38160
  const result = await idempotentSpawn({
38161
- log: path$1.join(logsDir, `${id}.log`),
38162
- stateFile: path$1.join(pidsDir, `${id}.pid.json`),
38161
+ log: path.join(logsDir, `${id}.log`),
38162
+ stateFile: path.join(pidsDir, `${id}.pid.json`),
38163
38163
  ...options
38164
38164
  });
38165
38165
  this.onCleanup(result.stop);
38166
38166
  return result.extracted;
38167
38167
  }
38168
38168
  async exec(id, command) {
38169
- const logFilePath = path$1.join(this.dotAlchemy, "logs", `${id}.log`);
38169
+ const logFilePath = path.join(this.dotAlchemy, "logs", `${id}.log`);
38170
38170
  const [cmd, ...args] = command.split(/\s+/);
38171
38171
  const child = spawn(cmd, args, { stdio: "pipe" });
38172
38172
  await once(child, "spawn");
38173
- await fs$1.mkdir(path$1.dirname(logFilePath), { recursive: true });
38173
+ await fs$1.mkdir(path.dirname(logFilePath), { recursive: true });
38174
38174
  const logFile = await fs$1.open(logFilePath, "w");
38175
38175
  let stdout$1 = "";
38176
38176
  let stderr = "";
@@ -39073,7 +39073,7 @@ async function _alchemy(appName, options) {
39073
39073
  password: process.env.ALCHEMY_PASSWORD,
39074
39074
  adopt: cliArgs.includes("--adopt"),
39075
39075
  eraseSecrets: cliArgs.includes("--erase-secrets"),
39076
- rootDir: path$1.resolve(parseOption("--root-dir", ALCHEMY_ROOT)),
39076
+ rootDir: path.resolve(parseOption("--root-dir", ALCHEMY_ROOT)),
39077
39077
  profile: parseOption("--profile"),
39078
39078
  ...options
39079
39079
  };
@@ -39381,10 +39381,10 @@ function defaultKeyFn(...args) {
39381
39381
  //#region src/auth.ts
39382
39382
  let Path;
39383
39383
  (function(_Path) {
39384
- const rootDir = _Path.rootDir = path$1.join(os.homedir(), ".alchemy");
39385
- _Path.configFile = path$1.join(rootDir, "config.json");
39386
- const credentialsDir = _Path.credentialsDir = path$1.join(rootDir, "credentials");
39387
- _Path.credentialsFile = (provider, profile) => path$1.join(credentialsDir, profile, `${provider}.json`);
39384
+ const rootDir = _Path.rootDir = path.join(os.homedir(), ".alchemy");
39385
+ _Path.configFile = path.join(rootDir, "config.json");
39386
+ const credentialsDir = _Path.credentialsDir = path.join(rootDir, "credentials");
39387
+ _Path.credentialsFile = (provider, profile) => path.join(credentialsDir, profile, `${provider}.json`);
39388
39388
  })(Path || (Path = {}));
39389
39389
  let Config;
39390
39390
  (function(_Config) {
@@ -39484,7 +39484,7 @@ let FS;
39484
39484
  }
39485
39485
  };
39486
39486
  _FS.writeJSON = async (name$1, data) => {
39487
- await fs$1.mkdir(path$1.dirname(name$1), { recursive: true });
39487
+ await fs$1.mkdir(path.dirname(name$1), { recursive: true });
39488
39488
  await fs$1.writeFile(name$1, JSON.stringify(data, null, 2), { mode: 384 });
39489
39489
  };
39490
39490
  })(FS || (FS = {}));
@@ -40302,8 +40302,8 @@ async function defaultBrowser() {
40302
40302
  //#endregion
40303
40303
  //#region ../node_modules/.bun/open@10.2.0/node_modules/open/index.js
40304
40304
  const execFile$1 = promisify(childProcess.execFile);
40305
- const __dirname$1 = path.dirname(fileURLToPath(import.meta.url));
40306
- const localXdgOpenPath = path.join(__dirname$1, "xdg-open");
40305
+ const __dirname$1 = nodePath.dirname(fileURLToPath(import.meta.url));
40306
+ const localXdgOpenPath = nodePath.join(__dirname$1, "xdg-open");
40307
40307
  const { platform: platform$2, arch } = y;
40308
40308
  /**
40309
40309
  Get the default browser name in Windows from WSL.
@@ -42625,9 +42625,9 @@ async function exists(path$32) {
42625
42625
  //#region src/util/find-workspace-root.ts
42626
42626
  async function findWorkspaceRoot(directory = process.cwd()) {
42627
42627
  if ((await Promise.all(Object.entries(predicates).map(async ([file$2, predicate]) => {
42628
- return await check(path$1.join(directory, file$2), predicate);
42628
+ return await check(path.join(directory, file$2), predicate);
42629
42629
  }))).includes(true)) return directory;
42630
- const parent = path$1.resolve(directory, "..");
42630
+ const parent = path.resolve(directory, "..");
42631
42631
  if (parent === directory) return directory;
42632
42632
  return await findWorkspaceRoot(parent);
42633
42633
  }
@@ -42661,12 +42661,12 @@ const predicates = {
42661
42661
  //#region src/util/detect-package-manager.ts
42662
42662
  async function detectPackageManager(root = process.cwd()) {
42663
42663
  root = await findWorkspaceRoot(root);
42664
- if (await exists(path$1.resolve(root, "deno.lock"))) return "deno";
42665
- if (await exists(path$1.resolve(root, "deno.json")) || await exists(path$1.resolve(root, "deno.jsonc"))) return "deno";
42666
- if (await exists(path$1.resolve(root, "bun.lockb"))) return "bun";
42667
- if (await exists(path$1.resolve(root, "bun.lock"))) return "bun";
42668
- if (await exists(path$1.resolve(root, "pnpm-lock.yaml"))) return "pnpm";
42669
- if (await exists(path$1.resolve(root, "yarn.lock"))) return "yarn";
42664
+ if (await exists(path.resolve(root, "deno.lock"))) return "deno";
42665
+ if (await exists(path.resolve(root, "deno.json")) || await exists(path.resolve(root, "deno.jsonc"))) return "deno";
42666
+ if (await exists(path.resolve(root, "bun.lockb"))) return "bun";
42667
+ if (await exists(path.resolve(root, "bun.lock"))) return "bun";
42668
+ if (await exists(path.resolve(root, "pnpm-lock.yaml"))) return "pnpm";
42669
+ if (await exists(path.resolve(root, "yarn.lock"))) return "yarn";
42670
42670
  if (process.env.npm_execpath?.includes("bun")) return "bun";
42671
42671
  if (process.env.DENO) return "deno";
42672
42672
  const userAgent = process.env.npm_config_user_agent;
@@ -43902,12 +43902,12 @@ function toPath(urlOrPath) {
43902
43902
  }
43903
43903
  function traversePathUp(startPath) {
43904
43904
  return { *[Symbol.iterator]() {
43905
- let currentPath = path.resolve(toPath(startPath));
43905
+ let currentPath = nodePath.resolve(toPath(startPath));
43906
43906
  let previousPath;
43907
43907
  while (previousPath !== currentPath) {
43908
43908
  yield currentPath;
43909
43909
  previousPath = currentPath;
43910
- currentPath = path.resolve(currentPath, "..");
43910
+ currentPath = nodePath.resolve(currentPath, "..");
43911
43911
  }
43912
43912
  } };
43913
43913
  }
@@ -43916,21 +43916,21 @@ const TEN_MEGABYTES_IN_BYTES = 10 * 1024 * 1024;
43916
43916
  //#endregion
43917
43917
  //#region ../node_modules/.bun/npm-run-path@6.0.0/node_modules/npm-run-path/index.js
43918
43918
  const npmRunPath = ({ cwd: cwd$1 = y.cwd(), path: pathOption = y.env[pathKey()], preferLocal = true, execPath: execPath$1 = y.execPath, addExecPath = true } = {}) => {
43919
- const cwdPath = path.resolve(toPath(cwd$1));
43919
+ const cwdPath = nodePath.resolve(toPath(cwd$1));
43920
43920
  const result = [];
43921
- const pathParts = pathOption.split(path.delimiter);
43921
+ const pathParts = pathOption.split(nodePath.delimiter);
43922
43922
  if (preferLocal) applyPreferLocal(result, pathParts, cwdPath);
43923
43923
  if (addExecPath) applyExecPath(result, pathParts, execPath$1, cwdPath);
43924
- return pathOption === "" || pathOption === path.delimiter ? `${result.join(path.delimiter)}${pathOption}` : [...result, pathOption].join(path.delimiter);
43924
+ return pathOption === "" || pathOption === nodePath.delimiter ? `${result.join(nodePath.delimiter)}${pathOption}` : [...result, pathOption].join(nodePath.delimiter);
43925
43925
  };
43926
43926
  const applyPreferLocal = (result, pathParts, cwdPath) => {
43927
43927
  for (const directory of traversePathUp(cwdPath)) {
43928
- const pathPart = path.join(directory, "node_modules/.bin");
43928
+ const pathPart = nodePath.join(directory, "node_modules/.bin");
43929
43929
  if (!pathParts.includes(pathPart)) result.push(pathPart);
43930
43930
  }
43931
43931
  };
43932
43932
  const applyExecPath = (result, pathParts, execPath$1, cwdPath) => {
43933
- const pathPart = path.resolve(cwdPath, toPath(execPath$1), "..");
43933
+ const pathPart = nodePath.resolve(cwdPath, toPath(execPath$1), "..");
43934
43934
  if (!pathParts.includes(pathPart)) result.push(pathPart);
43935
43935
  };
43936
43936
  const npmRunPathEnv = ({ env: env$2 = y.env,...options } = {}) => {
@@ -44962,10 +44962,10 @@ const mapNode = ({ options }) => {
44962
44962
  node: true
44963
44963
  } };
44964
44964
  };
44965
- const handleNodeOption = (file$2, commandArguments, { node: shouldHandleNode = false, nodePath = execPath, nodeOptions = execArgv.filter((nodeOption) => !nodeOption.startsWith("--inspect")), cwd: cwd$1, execPath: formerNodePath,...options }) => {
44965
+ const handleNodeOption = (file$2, commandArguments, { node: shouldHandleNode = false, nodePath: nodePath$1 = execPath, nodeOptions = execArgv.filter((nodeOption) => !nodeOption.startsWith("--inspect")), cwd: cwd$1, execPath: formerNodePath,...options }) => {
44966
44966
  if (formerNodePath !== void 0) throw new TypeError("The \"execPath\" option has been removed. Please use the \"nodePath\" option instead.");
44967
- const normalizedNodePath = safeNormalizeFileUrl(nodePath, "The \"nodePath\" option");
44968
- const resolvedNodePath = path.resolve(cwd$1, normalizedNodePath);
44967
+ const normalizedNodePath = safeNormalizeFileUrl(nodePath$1, "The \"nodePath\" option");
44968
+ const resolvedNodePath = nodePath.resolve(cwd$1, normalizedNodePath);
44969
44969
  const newOptions = {
44970
44970
  ...options,
44971
44971
  nodePath: resolvedNodePath,
@@ -44977,7 +44977,7 @@ const handleNodeOption = (file$2, commandArguments, { node: shouldHandleNode = f
44977
44977
  commandArguments,
44978
44978
  newOptions
44979
44979
  ];
44980
- if (path.basename(file$2, ".exe") === "node") throw new TypeError("When the \"node\" option is true, the first argument does not need to be \"node\".");
44980
+ if (nodePath.basename(file$2, ".exe") === "node") throw new TypeError("When the \"node\" option is true, the first argument does not need to be \"node\".");
44981
44981
  return [
44982
44982
  resolvedNodePath,
44983
44983
  [
@@ -45064,7 +45064,7 @@ const serializeEncoding = (encoding) => typeof encoding === "string" ? `"${encod
45064
45064
  //#region ../node_modules/.bun/execa@9.6.0/node_modules/execa/lib/arguments/cwd.js
45065
45065
  const normalizeCwd = (cwd$1 = getDefaultCwd()) => {
45066
45066
  const cwdString = safeNormalizeFileUrl(cwd$1, "The \"cwd\" option");
45067
- return path.resolve(cwdString);
45067
+ return nodePath.resolve(cwdString);
45068
45068
  };
45069
45069
  const getDefaultCwd = () => {
45070
45070
  try {
@@ -45103,7 +45103,7 @@ const normalizeOptions$2 = (filePath, rawArguments, rawOptions) => {
45103
45103
  options.killSignal = normalizeKillSignal(options.killSignal);
45104
45104
  options.forceKillAfterDelay = normalizeForceKillAfterDelay(options.forceKillAfterDelay);
45105
45105
  options.lines = options.lines.map((lines, fdNumber) => lines && !BINARY_ENCODINGS.has(options.encoding) && options.buffer[fdNumber]);
45106
- if (y.platform === "win32" && path.basename(file$2, ".exe") === "cmd") commandArguments.unshift("/q");
45106
+ if (y.platform === "win32" && nodePath.basename(file$2, ".exe") === "cmd") commandArguments.unshift("/q");
45107
45107
  return {
45108
45108
  file: file$2,
45109
45109
  commandArguments,
@@ -45128,7 +45128,7 @@ const addDefaultOptions = ({ extendEnv = true, preferLocal = false, cwd: cwd$1,
45128
45128
  ipc,
45129
45129
  serialization
45130
45130
  });
45131
- const getEnv = ({ env: envOption, extendEnv, preferLocal, node, localDirectory, nodePath }) => {
45131
+ const getEnv = ({ env: envOption, extendEnv, preferLocal, node, localDirectory, nodePath: nodePath$1 }) => {
45132
45132
  const env$2 = extendEnv ? {
45133
45133
  ...y.env,
45134
45134
  ...envOption
@@ -45136,7 +45136,7 @@ const getEnv = ({ env: envOption, extendEnv, preferLocal, node, localDirectory,
45136
45136
  if (preferLocal || node) return npmRunPathEnv({
45137
45137
  env: env$2,
45138
45138
  cwd: localDirectory,
45139
- execPath: nodePath,
45139
+ execPath: nodePath$1,
45140
45140
  preferLocal,
45141
45141
  addExecPath: node
45142
45142
  });
@@ -48909,11 +48909,11 @@ async function installDependencies(context$1, { dependencies: dependencies$1, de
48909
48909
  //#endregion
48910
48910
  //#region bin/services/github-workflow.ts
48911
48911
  async function addGitHubWorkflowToAlchemy(context$1) {
48912
- const alchemyFilePath = path$1.join(context$1.path, "alchemy.run.ts");
48912
+ const alchemyFilePath = path.join(context$1.path, "alchemy.run.ts");
48913
48913
  const s = Y();
48914
48914
  s.start("Setting up GitHub Actions...");
48915
48915
  try {
48916
- const workflowDir = path$1.join(context$1.path, ".github", "workflows");
48916
+ const workflowDir = path.join(context$1.path, ".github", "workflows");
48917
48917
  await (0, import_lib$6.ensureDir)(workflowDir);
48918
48918
  const pmCommands = PackageManager[context$1.packageManager] ?? PackageManager.bun;
48919
48919
  const installCmd = pmCommands.install;
@@ -48945,7 +48945,7 @@ async function addGitHubWorkflowToAlchemy(context$1) {
48945
48945
  shell: "bash",
48946
48946
  run: installCmd
48947
48947
  };
48948
- await (0, import_lib$6.writeFile)(path$1.join(workflowDir, "pr-preview.yml"), YAML.stringify({
48948
+ await (0, import_lib$6.writeFile)(path.join(workflowDir, "pr-preview.yml"), YAML.stringify({
48949
48949
  name: "Preview",
48950
48950
  on: { pull_request: { types: [
48951
48951
  "opened",
@@ -49020,7 +49020,7 @@ async function addGitHubWorkflowToAlchemy(context$1) {
49020
49020
  }
49021
49021
  }
49022
49022
  }));
49023
- await (0, import_lib$6.writeFile)(path$1.join(workflowDir, "publish.yml"), YAML.stringify({
49023
+ await (0, import_lib$6.writeFile)(path.join(workflowDir, "publish.yml"), YAML.stringify({
49024
49024
  name: "Publish",
49025
49025
  on: { push: { branches: ["main"] } },
49026
49026
  concurrency: {
@@ -55119,15 +55119,15 @@ const ignoreFilesGlobOptions = {
55119
55119
  dot: true
55120
55120
  };
55121
55121
  const GITIGNORE_FILES_PATTERN = "**/.gitignore";
55122
- const applyBaseToPattern = (pattern$1, base) => isNegativePattern(pattern$1) ? "!" + path.posix.join(base, pattern$1.slice(1)) : path.posix.join(base, pattern$1);
55122
+ const applyBaseToPattern = (pattern$1, base) => isNegativePattern(pattern$1) ? "!" + nodePath.posix.join(base, pattern$1.slice(1)) : nodePath.posix.join(base, pattern$1);
55123
55123
  const parseIgnoreFile = (file$2, cwd$1) => {
55124
- const base = slash(path.relative(cwd$1, path.dirname(file$2.filePath)));
55124
+ const base = slash(nodePath.relative(cwd$1, nodePath.dirname(file$2.filePath)));
55125
55125
  return file$2.content.split(/\r?\n/).filter((line) => line && !line.startsWith("#")).map((pattern$1) => applyBaseToPattern(pattern$1, base));
55126
55126
  };
55127
55127
  const toRelativePath = (fileOrDirectory, cwd$1) => {
55128
55128
  cwd$1 = slash(cwd$1);
55129
- if (path.isAbsolute(fileOrDirectory)) {
55130
- if (slash(fileOrDirectory).startsWith(cwd$1)) return path.relative(cwd$1, fileOrDirectory);
55129
+ if (nodePath.isAbsolute(fileOrDirectory)) {
55130
+ if (slash(fileOrDirectory).startsWith(cwd$1)) return nodePath.relative(cwd$1, fileOrDirectory);
55131
55131
  throw new Error(`Path ${fileOrDirectory} is not in cwd ${cwd$1}`);
55132
55132
  }
55133
55133
  return fileOrDirectory;
@@ -55183,11 +55183,11 @@ const assertPatternsInput = (patterns) => {
55183
55183
  };
55184
55184
  const normalizePathForDirectoryGlob = (filePath, cwd$1) => {
55185
55185
  const path$32 = isNegativePattern(filePath) ? filePath.slice(1) : filePath;
55186
- return path.isAbsolute(path$32) ? path$32 : path.join(cwd$1, path$32);
55186
+ return nodePath.isAbsolute(path$32) ? path$32 : nodePath.join(cwd$1, path$32);
55187
55187
  };
55188
55188
  const getDirectoryGlob = ({ directoryPath, files: files$1, extensions }) => {
55189
55189
  const extensionGlob = extensions?.length > 0 ? `.${extensions.length > 1 ? `{${extensions.join(",")}}` : extensions[0]}` : "";
55190
- return files$1 ? files$1.map((file$2) => path.posix.join(directoryPath, `**/${path.extname(file$2) ? file$2 : `${file$2}${extensionGlob}`}`)) : [path.posix.join(directoryPath, `**${extensionGlob ? `/*${extensionGlob}` : ""}`)];
55190
+ return files$1 ? files$1.map((file$2) => nodePath.posix.join(directoryPath, `**/${nodePath.extname(file$2) ? file$2 : `${file$2}${extensionGlob}`}`)) : [nodePath.posix.join(directoryPath, `**${extensionGlob ? `/*${extensionGlob}` : ""}`)];
55191
55191
  };
55192
55192
  const directoryToGlob = async (directoryPaths, { cwd: cwd$1 = y.cwd(), files: files$1, extensions } = {}) => {
55193
55193
  return (await Promise.all(directoryPaths.map(async (directoryPath) => await isDirectory(normalizePathForDirectoryGlob(directoryPath, cwd$1)) ? getDirectoryGlob({
@@ -55245,7 +55245,7 @@ const getFilterSync = (options) => {
55245
55245
  const createFilterFunction = (isIgnored) => {
55246
55246
  const seen = /* @__PURE__ */ new Set();
55247
55247
  return (fastGlobResult) => {
55248
- const pathKey$2 = path.normalize(fastGlobResult.path ?? fastGlobResult);
55248
+ const pathKey$2 = nodePath.normalize(fastGlobResult.path ?? fastGlobResult);
55249
55249
  if (seen.has(pathKey$2) || isIgnored && isIgnored(pathKey$2)) return false;
55250
55250
  seen.add(pathKey$2);
55251
55251
  return true;
@@ -55332,16 +55332,16 @@ const { convertPathToPattern } = import_out.default;
55332
55332
  //#region bin/services/get-package-version.ts
55333
55333
  var import_lib$5 = /* @__PURE__ */ __toESM$1(require_lib(), 1);
55334
55334
  const getPackageVersion = async () => {
55335
- return (await (0, import_lib$5.readJSON)(path$1.join(PKG_ROOT, "package.json"))).version ?? "1.0.0";
55335
+ return (await (0, import_lib$5.readJSON)(path.join(PKG_ROOT, "package.json"))).version ?? "1.0.0";
55336
55336
  };
55337
55337
 
55338
55338
  //#endregion
55339
55339
  //#region bin/constants.ts
55340
55340
  const __filename$1 = fileURLToPath(import.meta.url);
55341
- const distPath = path$1.dirname(__filename$1);
55342
- const PKG_ROOT = path$1.join(distPath, "../");
55341
+ const distPath = path.dirname(__filename$1);
55342
+ const PKG_ROOT = path.join(distPath, "../");
55343
55343
  const dependencyVersionMap = {
55344
- alchemy: process.env.NODE_ENV === "test" ? `file:${path$1.resolve(PKG_ROOT)}` : await getPackageVersion(),
55344
+ alchemy: process.env.NODE_ENV === "test" ? `file:${path.resolve(PKG_ROOT)}` : await getPackageVersion(),
55345
55345
  miniflare: "^4.20250617.3",
55346
55346
  "@cloudflare/workers-types": "^4.20250805.0",
55347
55347
  wrangler: "^4.20.5",
@@ -55358,7 +55358,7 @@ const dependencyVersionMap = {
55358
55358
  var import_lib$4 = /* @__PURE__ */ __toESM$1(require_lib(), 1);
55359
55359
  const addPackageDependencies = async (opts) => {
55360
55360
  const { dependencies: dependencies$1 = [], devDependencies: devDependencies$1 = [], projectDir } = opts;
55361
- const pkgJsonPath = path$1.join(projectDir, "package.json");
55361
+ const pkgJsonPath = path.join(projectDir, "package.json");
55362
55362
  const pkgJson = await (0, import_lib$4.readJson)(pkgJsonPath);
55363
55363
  if (!pkgJson.dependencies) pkgJson.dependencies = {};
55364
55364
  if (!pkgJson.devDependencies) pkgJson.devDependencies = {};
@@ -55377,7 +55377,7 @@ const addPackageDependencies = async (opts) => {
55377
55377
  //#region bin/services/template-manager.ts
55378
55378
  var import_lib$3 = /* @__PURE__ */ __toESM$1(require_lib(), 1);
55379
55379
  async function copyTemplate(templateName, context$1) {
55380
- const templatePath = path$1.join(PKG_ROOT, "templates", templateName);
55380
+ const templatePath = path.join(PKG_ROOT, "templates", templateName);
55381
55381
  if (!await exists(templatePath)) throw new Error(`Template '${templateName}' not found at ${templatePath}`);
55382
55382
  const filesToRename = [
55383
55383
  "_gitignore",
@@ -55398,13 +55398,13 @@ async function copyTemplate(templateName, context$1) {
55398
55398
  for (const file$2 of files$1) {
55399
55399
  const srcPath = join(templatePath, file$2);
55400
55400
  let destFile = file$2;
55401
- const basename = path$1.basename(file$2);
55401
+ const basename = path.basename(file$2);
55402
55402
  if (filesToRename.includes(basename)) {
55403
55403
  const newBasename = `.${basename.slice(1)}`;
55404
- destFile = path$1.join(path$1.dirname(file$2), newBasename);
55404
+ destFile = path.join(path.dirname(file$2), newBasename);
55405
55405
  }
55406
55406
  const destPath = join(context$1.path, destFile);
55407
- await (0, import_lib$3.ensureDir)(path$1.dirname(destPath));
55407
+ await (0, import_lib$3.ensureDir)(path.dirname(destPath));
55408
55408
  await (0, import_lib$3.copy)(srcPath, destPath);
55409
55409
  }
55410
55410
  await substituteProjectName(context$1);
@@ -55893,8 +55893,8 @@ async function isPortAvailable(host, port) {
55893
55893
 
55894
55894
  //#endregion
55895
55895
  //#region bin/services/cdp-manager/server.ts
55896
- const LOGS_DIRECTORY = path$1.join(ALCHEMY_ROOT, ".alchemy", "logs");
55897
- const DEBUGGER_URLS_FILE = path$1.join(ALCHEMY_ROOT, ".alchemy", ".debugger-urls");
55896
+ const LOGS_DIRECTORY = path.join(ALCHEMY_ROOT, ".alchemy", "logs");
55897
+ const DEBUGGER_URLS_FILE = path.join(ALCHEMY_ROOT, ".alchemy", ".debugger-urls");
55898
55898
  var CDPManager = class {
55899
55899
  server;
55900
55900
  url;
@@ -55966,7 +55966,7 @@ var CDPServer = class {
55966
55966
  lastClient = null;
55967
55967
  constructor(options) {
55968
55968
  this.domains = options.domains ?? new Set(["Log", "Debugger"]);
55969
- this.logFile = options.logFile ?? path$1.join(LOGS_DIRECTORY, `${options.name}.log`);
55969
+ this.logFile = options.logFile ?? path.join(LOGS_DIRECTORY, `${options.name}.log`);
55970
55970
  this.name = options.name;
55971
55971
  fs.writeFileSync(this.logFile, "");
55972
55972
  this.wss = new WebSocketServer({ noServer: true });
@@ -56351,7 +56351,7 @@ function parse(data, options) {
56351
56351
  var getFilename, getDirname, __dirname, __filename;
56352
56352
  var init_esm_shims = __esm({ "../node_modules/.bun/tsdown@0.14.2+1fb4c65d43e298b9/node_modules/tsdown/esm-shims.js": (() => {
56353
56353
  getFilename = () => fileURLToPath(import.meta.url);
56354
- getDirname = () => path.dirname(getFilename());
56354
+ getDirname = () => nodePath.dirname(getFilename());
56355
56355
  __dirname = /* @__PURE__ */ getDirname();
56356
56356
  __filename = /* @__PURE__ */ getFilename();
56357
56357
  }) });
@@ -207023,7 +207023,7 @@ var require_path_browserify = /* @__PURE__ */ __commonJS$1({ "../node_modules/.b
207023
207023
  var require_ts_morph_common = /* @__PURE__ */ __commonJS$1({ "../node_modules/.bun/@ts-morph+common@0.27.0/node_modules/@ts-morph/common/dist/ts-morph-common.js": ((exports) => {
207024
207024
  var ts = require_typescript();
207025
207025
  var minimatch = require_commonjs();
207026
- var path$1$1 = require_path_browserify();
207026
+ var path$1 = require_path_browserify();
207027
207027
  var fastGlob = require_out();
207028
207028
  var fs$1$1 = __require("node:fs");
207029
207029
  var fsp = __require("node:fs/promises");
@@ -207051,7 +207051,7 @@ var require_ts_morph_common = /* @__PURE__ */ __commonJS$1({ "../node_modules/.b
207051
207051
  }
207052
207052
  var ts__namespace = /* @__PURE__ */ _interopNamespaceCompat(ts);
207053
207053
  var minimatch__namespace = /* @__PURE__ */ _interopNamespaceCompat(minimatch);
207054
- var path__default = /* @__PURE__ */ _interopDefaultCompat$1(path$1$1);
207054
+ var path__default = /* @__PURE__ */ _interopDefaultCompat$1(path$1);
207055
207055
  var fastGlob__default = /* @__PURE__ */ _interopDefaultCompat$1(fastGlob);
207056
207056
  var fs__namespace = /* @__PURE__ */ _interopNamespaceCompat(fs$1$1);
207057
207057
  var fsp__namespace = /* @__PURE__ */ _interopNamespaceCompat(fsp);
@@ -36,6 +36,6 @@ export type Bound<T extends Binding> = T extends _AiSearch ? AiSearchInstance :
36
36
  type: "kv_namespace";
37
37
  } ? KVNamespace : T extends WorkerStub<infer RPC> ? BoundWorker<RPC> : T extends _Worker<any, infer RPC> | WorkerRef<infer RPC> ? BoundWorker<RPC> : T extends {
38
38
  type: "service";
39
- } ? Service : T extends _R2Bucket ? R2Bucket : T extends _Hyperdrive | HyperdriveRef ? Hyperdrive : T extends Secret ? string : T extends CloudflareSecret | CloudflareSecretRef ? SecretsStoreSecret : T extends _EmailSender ? SendEmail : T extends SecretKey ? CryptoKey : T extends Assets ? Service : T extends _Workflow<infer P> ? Workflow<P> : T extends _D1Database ? D1Database : T extends DispatchNamespace ? DispatchNamespace : T extends _WorkerLoader ? WorkerLoader : T extends _VectorizeIndex ? VectorizeIndex : T extends _Queue<infer Body> ? Queue<Body> : T extends _AnalyticsEngineDataset ? AnalyticsEngineDataset : T extends _Pipeline<infer R> ? Pipeline<R> : T extends _RateLimit ? RateLimit : T extends string ? T : T extends BrowserRendering ? Fetcher : T extends _Ai<infer M> ? Ai<M> : T extends _Images ? ImagesBinding : T extends _VersionMetadata ? WorkerVersionMetadata : T extends _Worker.DevDomain | _Worker.DevUrl ? string : T extends Self ? Service : T extends Json<infer T> ? T : T extends _Container<infer Obj> ? DurableObjectNamespace<Obj & Rpc.DurableObjectBranded> : T extends _VpcService ? Fetcher : T extends undefined ? undefined : Service;
39
+ } ? Service : T extends _R2Bucket ? R2Bucket : T extends _Hyperdrive | HyperdriveRef ? Hyperdrive : T extends Secret ? string : T extends CloudflareSecret | CloudflareSecretRef ? SecretsStoreSecret : T extends _EmailSender ? SendEmail : T extends SecretKey ? CryptoKey : T extends Assets ? Service : T extends _Workflow<infer P> ? Workflow<P> : T extends _D1Database ? D1Database : T extends DispatchNamespace ? DispatchNamespace : T extends _WorkerLoader ? WorkerLoader : T extends _VectorizeIndex ? VectorizeIndex : T extends _Queue<infer Body> ? Queue<Body> : T extends _AnalyticsEngineDataset ? AnalyticsEngineDataset : T extends _Pipeline<infer R> ? Pipeline<R> : T extends _RateLimit ? RateLimit : T extends string ? T : T extends BrowserRendering ? BrowserRun : T extends _Ai<infer M> ? Ai<M> : T extends _Images ? ImagesBinding : T extends _VersionMetadata ? WorkerVersionMetadata : T extends _Worker.DevDomain | _Worker.DevUrl ? string : T extends Self ? Service : T extends Json<infer T> ? T : T extends _Container<infer Obj> ? DurableObjectNamespace<Obj & Rpc.DurableObjectBranded> : T extends _VpcService ? Fetcher : T extends undefined ? undefined : Service;
40
40
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AAM,CAAC,CACR,GACD,CAAC,GACD,CAAC,SAAS,UAAU,CAChB,MAAM,GAAG,CACV,GACD,sBAAsB,CACpB,GAAG,GACD,GAAG,CAAC,oBAAoB,CAC3B,GACD,CAAC,SAAS,WAAW,GACnB,OAAO,GACP,CAAC,SAAS,SAAS,GACjB,SAAS,GACT,OAAO,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"bucket-object.d.ts","sourceRoot":"","sources":["../../src/cloudflare/bucket-object.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iDAAiD,CAAC;AACpF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAE7C,OAAO,EAAuB,KAAK,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAC1E,OAAO,EAAgB,KAAK,eAAe,EAAE,KAAK,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEhF;;GAEG;AACH,MAAM,WAAW,aAAc,SAAQ,oBAAoB;IACzD;;OAEG;IACH,MAAM,EAAE,QAAQ,CAAC;IAEjB;;;OAGG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;;OAGG;IACH,OAAO,EAAE,eAAe,CAAC;IAEzB;;OAEG;IACH,OAAO,CAAC,EAAE,IAAI,CAAC,YAAY,EAAE,cAAc,CAAC,CAAC;CAC9C;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,eAAO,MAAM,QAAQ,yFAGX,OAAO,CAAC,QAAQ,CAAC,MACnB,MAAM,SACH,aAAa,KACnB,OAAO,CAAC,QAAQ,CAAC,CA2BrB,CAAC"}
1
+ {"version":3,"file":"bucket-object.d.ts","sourceRoot":"","sources":["../../src/cloudflare/bucket-object.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iDAAiD,CAAC;AACpF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAE7C,OAAO,EAAuB,KAAK,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAC1E,OAAO,EAAgB,KAAK,eAAe,EAAE,KAAK,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEhF;;GAEG;AACH,MAAM,WAAW,aAAc,SAAQ,oBAAoB;IACzD;;OAEG;IACH,MAAM,EAAE,QAAQ,CAAC;IAEjB;;;OAGG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;;OAGG;IACH,OAAO,EAAE,eAAe,CAAC;IAEzB;;OAEG;IACH,OAAO,CAAC,EAAE,IAAI,CAAC,YAAY,EAAE,cAAc,CAAC,CAAC;CAC9C;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,eAAO,MAAM,QAAQ,yFAGX,OAAO,CAAC,QAAQ,CAAC,MACnB,MAAM,SACH,aAAa,KACnB,OAAO,CAAC,QAAQ,CAAC,CA4BrB,CAAC"}
@@ -48,6 +48,7 @@ export const R2Object = Resource("cloudflare::R2Object", async function (id, pro
48
48
  await deleteObject(api, {
49
49
  bucketName: props.bucket.name,
50
50
  key: props.key,
51
+ jurisdiction: props.bucket.jurisdiction,
51
52
  });
52
53
  return this.destroy();
53
54
  }
@@ -1 +1 @@
1
- {"version":3,"file":"bucket-object.js","sourceRoot":"","sources":["../../src/cloudflare/bucket-object.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1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