peachsim 0.1.2442 → 0.1.2457

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.
Files changed (167) hide show
  1. package/README.md +2 -49
  2. package/cli/app-catalog.ts +8 -7
  3. package/cli/app-stubs.ts +98 -70
  4. package/cli/cloud-box-artifact.ts +2 -5
  5. package/cli/cloud-client.ts +12 -1
  6. package/cli/commands/box.ts +41 -2
  7. package/cli/commands/compat.ts +5 -3
  8. package/cli/commands/cpu-profile.ts +11 -14
  9. package/cli/commands/diagnose.ts +5 -18
  10. package/cli/commands/inspect/describe.ts +4 -8
  11. package/cli/commands/maestro-generate.ts +4 -8
  12. package/cli/commands/mode.ts +3 -19
  13. package/cli/commands/perf.ts +3 -19
  14. package/cli/commands/permissions.ts +2 -6
  15. package/cli/commands/platform.ts +22 -14
  16. package/cli/commands/react.ts +7 -21
  17. package/cli/commands/record-three.ts +6 -10
  18. package/cli/commands/record.ts +38 -62
  19. package/cli/commands/screenshot-command.ts +8 -25
  20. package/cli/commands/storage.ts +4 -16
  21. package/cli/commands/three-mode.ts +6 -10
  22. package/cli/outbound-endpoints.ts +4 -5
  23. package/cli/parse-args.ts +45 -0
  24. package/cli/remote-metro.ts +1 -1
  25. package/cli/remote-simulators.ts +5 -1
  26. package/cli/send-to-box.ts +3 -1
  27. package/dist-lib/agent-daemon-client.cjs +1 -1
  28. package/dist-lib/agent-events.cjs +1 -1
  29. package/dist-lib/attached-projects.cjs +1 -1
  30. package/dist-lib/auth/shared-session.cjs +1 -1
  31. package/dist-lib/backend-origin.cjs +1 -1
  32. package/dist-lib/beta.cjs +1 -1
  33. package/dist-lib/beta.mjs +2 -2
  34. package/dist-lib/bridge-constants.cjs +1 -1
  35. package/dist-lib/bridge-contract-input.cjs +1 -1
  36. package/dist-lib/bridge-contract-input.mjs +5 -5
  37. package/dist-lib/bridge-contract.cjs +1 -1
  38. package/dist-lib/bridge-contract.mjs +3 -3
  39. package/dist-lib/bundle-channel.cjs +204 -300
  40. package/dist-lib/capture-contract.cjs +1 -1
  41. package/dist-lib/capture-contract.mjs +3 -3
  42. package/dist-lib/cloud-contract.cjs +14 -1
  43. package/dist-lib/cloud-contract.mjs +5 -3
  44. package/dist-lib/cloud-test-args.cjs +1 -1
  45. package/dist-lib/cloud-test-args.mjs +2 -2
  46. package/dist-lib/cloud.cjs +1 -1
  47. package/dist-lib/cloud.mjs +7 -7
  48. package/dist-lib/config.cjs +1 -6
  49. package/dist-lib/config.mjs +5 -9
  50. package/dist-lib/detox/index.cjs +1 -1
  51. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  52. package/dist-lib/esm-chunks/{acorn-D5YJOCIH.mjs → acorn-73XUBXBT.mjs} +3 -3
  53. package/dist-lib/esm-chunks/{chunk-IL72GVD2.mjs → chunk-7V2QJGVI.mjs} +1 -1
  54. package/dist-lib/esm-chunks/{chunk-CHX6MVMJ.mjs → chunk-BHQEYJAF.mjs} +1 -1
  55. package/dist-lib/esm-chunks/{chunk-QUCZFE4Q.mjs → chunk-DSPFMVBM.mjs} +1 -1
  56. package/dist-lib/esm-chunks/{chunk-VIB2KS3Z.mjs → chunk-GA73RJSG.mjs} +4 -4
  57. package/dist-lib/esm-chunks/{chunk-Q3B6RI26.mjs → chunk-IGBAFWZ3.mjs} +3 -3
  58. package/dist-lib/esm-chunks/{chunk-DGMP72J3.mjs → chunk-IKZDUGT6.mjs} +1 -1
  59. package/dist-lib/esm-chunks/{chunk-2WXLADPB.mjs → chunk-IP5ZV36U.mjs} +1 -1
  60. package/dist-lib/esm-chunks/{chunk-HBINLWOI.mjs → chunk-KGHQ4GK2.mjs} +1 -1
  61. package/dist-lib/esm-chunks/{chunk-NZRT4DMX.mjs → chunk-KY63O76W.mjs} +2 -2
  62. package/dist-lib/esm-chunks/{chunk-AAUTS54C.mjs → chunk-LJ74MO6Y.mjs} +1 -1
  63. package/dist-lib/esm-chunks/{chunk-COWKF3A3.mjs → chunk-LJX42YVT.mjs} +1 -1
  64. package/dist-lib/esm-chunks/{chunk-S6SCCQXW.mjs → chunk-O4KAW2JJ.mjs} +1 -1
  65. package/dist-lib/esm-chunks/{chunk-QZBKRPVC.mjs → chunk-OIFM356B.mjs} +1 -1
  66. package/dist-lib/esm-chunks/{chunk-DSGMAFCS.mjs → chunk-P63DPATT.mjs} +1 -1
  67. package/dist-lib/esm-chunks/{chunk-MYQU622L.mjs → chunk-SCCOZKCP.mjs} +1 -1
  68. package/dist-lib/esm-chunks/{chunk-PTLTHUGX.mjs → chunk-TAZL253K.mjs} +10 -8
  69. package/dist-lib/esm-chunks/{chunk-ZTXYR22R.mjs → chunk-UBXCWZL3.mjs} +1 -1
  70. package/dist-lib/esm-chunks/{chunk-NPSA7CAZ.mjs → chunk-ZQWWO33G.mjs} +14 -2
  71. package/dist-lib/esm-chunks/{metro-layout-parser-BIIH3PF6.mjs → metro-layout-parser-HNQRTPVE.mjs} +3 -3
  72. package/dist-lib/expo-swift-bundle.cjs +161 -326
  73. package/dist-lib/expo-swift-metadata.cjs +1 -1
  74. package/dist-lib/expo-swift-metadata.mjs +7 -7
  75. package/dist-lib/home-paths.cjs +1 -1
  76. package/dist-lib/host/bridge-host.cjs +237 -362
  77. package/dist-lib/host/fetch-proxy-handler.cjs +33 -35
  78. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  79. package/dist-lib/host/fetch-proxy-overrides.mjs +2 -2
  80. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  81. package/dist-lib/host/websocket-proxy.cjs +3 -1
  82. package/dist-lib/index.cjs +1 -104
  83. package/dist-lib/kotlin-host.cjs +6 -4
  84. package/dist-lib/menu.cjs +1 -1
  85. package/dist-lib/menu.mjs +3 -3
  86. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  87. package/dist-lib/metro-fingerprint-registry.mjs +3 -3
  88. package/dist-lib/metro-production-bundle.cjs +1 -1
  89. package/dist-lib/metro-production-bundle.mjs +4 -4
  90. package/dist-lib/native-app-identity-project.cjs +2 -2
  91. package/dist-lib/native-app-identity-project.mjs +12 -12
  92. package/dist-lib/native-app-identity.cjs +1 -1
  93. package/dist-lib/native-app-identity.mjs +6 -6
  94. package/dist-lib/native-firebase-metadata.cjs +1 -1
  95. package/dist-lib/native-firebase-metadata.mjs +3 -3
  96. package/dist-lib/pdfium-raster.cjs +1 -1
  97. package/dist-lib/pdfium-raster.mjs +2 -2
  98. package/dist-lib/plist.cjs +1 -1
  99. package/dist-lib/plist.mjs +3 -3
  100. package/dist-lib/profiles.cjs +1 -1
  101. package/dist-lib/public-brand.cjs +1 -1
  102. package/dist-lib/public-origins-lib-esm.json +64 -64
  103. package/dist-lib/public-origins-lib.json +73 -97
  104. package/dist-lib/react-native-host-modules.cjs +1 -1
  105. package/dist-lib/react-native-host-modules.mjs +2 -2
  106. package/dist-lib/reap-browser.cjs +1 -1
  107. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  108. package/dist-lib/sdk.cjs +1 -1
  109. package/dist-lib/sdk.mjs +7 -7
  110. package/dist-lib/skills.cjs +261 -281
  111. package/dist-lib/swift-compile.cjs +6 -4
  112. package/dist-lib/swift-compile.mjs +8 -8
  113. package/dist-lib/swift-package.cjs +1 -1
  114. package/dist-lib/swift-package.mjs +3 -3
  115. package/dist-lib/swift-submit.cjs +1 -1
  116. package/dist-lib/swift-submit.mjs +5 -5
  117. package/dist-lib/swift-toolchain.cjs +1 -1
  118. package/dist-lib/swift.cjs +1 -1
  119. package/dist-lib/vendor/@peculiar/x509.cjs +1 -1
  120. package/dist-lib/vendor/@ruby/prism/src/nodes.js.cjs +1 -1
  121. package/dist-lib/vendor/@ruby/prism/src/parsePrism.js.cjs +1 -1
  122. package/dist-lib/vendor/acorn.cjs +1 -1
  123. package/dist-lib/vendor/bplist-parser.cjs +1 -1
  124. package/dist-lib/vendor/ignore.cjs +1 -1
  125. package/dist-lib/vendor/magic-string.cjs +1 -1
  126. package/dist-lib/vendor/plist.cjs +1 -1
  127. package/dist-lib/vendor/smol-toml.cjs +1 -1
  128. package/dist-lib/vendor/stream-json.cjs +1 -1
  129. package/dist-lib/vendor/sucrase/dist/index.js.cjs +1 -1
  130. package/dist-lib/vendor/sucrase/dist/parser/index.js.cjs +1 -1
  131. package/dist-lib/vendor/sucrase/dist/parser/tokenizer/index.js.cjs +1 -1
  132. package/dist-lib/vendor/sucrase/dist/parser/tokenizer/types.js.cjs +1 -1
  133. package/dist-lib/vendor/sucrase.cjs +1 -1
  134. package/dist-lib/vendor/terser.cjs +1 -1
  135. package/dist-lib/vendor/valibot.cjs +1 -1
  136. package/dist-lib/vendor/ws.cjs +1 -1
  137. package/dist-lib/vendor/zod.cjs +1 -1
  138. package/dist-lib/worklet-executable.cjs +1 -1
  139. package/dist-lib/worklet-executable.mjs +3 -3
  140. package/dist-types/packages/peach-compat/src/stubs/native-seams/react-native-gesture-handler.d.ts +0 -3
  141. package/dist-types/packages/peach-engine/src/config.d.ts +1 -1
  142. package/dist-types/packages/peach-engine/src/engine/scene-table.d.ts +1 -0
  143. package/dist-types/packages/peach-engine/src/engine/text-line-break.d.ts +3 -1
  144. package/dist-types/packages/peach-engine/src/engine/text-paint.d.ts +1 -0
  145. package/dist-types/packages/peach-engine/src/engine/text-runs.d.ts +6 -1
  146. package/kotlin/sdk.tar.gz +0 -0
  147. package/package.json +1 -12
  148. package/skills/peach-setup/references/native-config.md +3 -3
  149. package/src/app-config.ts +7 -15
  150. package/src/cloud-contract.ts +35 -0
  151. package/src/config.ts +2 -6
  152. package/src/estree-walk.ts +13 -0
  153. package/src/host/network-policy.ts +4 -1
  154. package/src/index.ts +0 -1
  155. package/src/one-native-app-config.ts +14 -15
  156. package/src/process-group.ts +4 -1
  157. package/src/process-table.ts +6 -1
  158. package/src/swift-host.ts +10 -4
  159. package/cli/commands/box/bundle-plane.ts +0 -154
  160. package/dist-lib/jump-to-source-babel.cjs +0 -131
  161. package/dist-lib/jump-to-source-native.cjs +0 -248
  162. package/dist-lib/vendor/jiti.cjs +0 -32732
  163. package/src/java-static-imports.ts +0 -68
  164. package/src/jump-to-source-babel.ts +0 -143
  165. package/src/jump-to-source-native.ts +0 -201
  166. package/src/kotlin-jvm-sources.ts +0 -35
  167. package/src/oxc-parser-peer.ts +0 -12
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2442 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2457 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -465,7 +465,8 @@ function readProcessTable(timeoutMs = 1e4, pid) {
465
465
  try {
466
466
  stat2 = (0, import_node_fs4.readFileSync)(`/proc/${name3}/stat`, "utf8");
467
467
  } catch (error) {
468
- if (error instanceof Error && "code" in error && error.code === "ENOENT") continue;
468
+ if (error instanceof Error && "code" in error && (error.code === "ENOENT" || error.code === "ESRCH"))
469
+ continue;
469
470
  throw error;
470
471
  }
471
472
  const fields = stat2.slice(stat2.lastIndexOf(")") + 2).trim().split(/\s+/);
@@ -701,7 +702,7 @@ function processesHaveExited(pids, pgid) {
701
702
  if (!mayExist) return true;
702
703
  const knownPids = new Set(pids);
703
704
  try {
704
- return !readProcessTable(FORCED_EXIT_TIMEOUT_MS).some(
705
+ return !readProcessTable(EXIT_SCAN_TIMEOUT_MS).some(
705
706
  (row) => (row.pgid === pgid || knownPids.has(row.pid)) && !row.zombie
706
707
  );
707
708
  } catch {
@@ -845,7 +846,7 @@ async function terminateProcessGroup(child, signal = "SIGTERM", gracefulTimeoutM
845
846
  }
846
847
  if (inspectionError) throw inspectionError;
847
848
  }
848
- var import_node_child_process2, import_node_fs5, import_node_os3, import_node_path3, import_node_stream, import_promises, GRACEFUL_TIMEOUT_MS, FORCED_EXIT_TIMEOUT_MS, INSPECTION_TIMEOUT_MS, FREEZE_GUARD_NAME;
849
+ var import_node_child_process2, import_node_fs5, import_node_os3, import_node_path3, import_node_stream, import_promises, GRACEFUL_TIMEOUT_MS, FORCED_EXIT_TIMEOUT_MS, EXIT_SCAN_TIMEOUT_MS, INSPECTION_TIMEOUT_MS, FREEZE_GUARD_NAME;
849
850
  var init_process_group = __esm({
850
851
  "src/process-group.ts"() {
851
852
  "use strict";
@@ -858,6 +859,7 @@ var init_process_group = __esm({
858
859
  init_process_table();
859
860
  GRACEFUL_TIMEOUT_MS = 3e3;
860
861
  FORCED_EXIT_TIMEOUT_MS = 1e3;
862
+ EXIT_SCAN_TIMEOUT_MS = 1e4;
861
863
  INSPECTION_TIMEOUT_MS = 1e4;
862
864
  FREEZE_GUARD_NAME = "process-freeze-guard";
863
865
  }
@@ -885,7 +887,7 @@ function runtimeTarballCacheName(product, version2) {
885
887
  return import_node_path4.default.posix.basename(product.tarballPath(version2));
886
888
  }
887
889
  function compareSemver(a, b) {
888
- const parse12 = (v7) => {
890
+ const parse14 = (v7) => {
889
891
  const hyphen = v7.indexOf("-");
890
892
  const core = hyphen >= 0 ? v7.slice(0, hyphen) : v7;
891
893
  const pre = hyphen >= 0 ? v7.slice(hyphen + 1) : "";
@@ -893,8 +895,8 @@ function compareSemver(a, b) {
893
895
  if (parts.some((n) => !Number.isFinite(n))) return [[Number.POSITIVE_INFINITY], v7];
894
896
  return [parts, pre];
895
897
  };
896
- const [an, ap] = parse12(a);
897
- const [bn, bp] = parse12(b);
898
+ const [an, ap] = parse14(a);
899
+ const [bn, bp] = parse14(b);
898
900
  for (let i = 0; i < Math.max(an.length, bn.length); i++) {
899
901
  const av = an[i] ?? 0;
900
902
  const bv = bn[i] ?? 0;
@@ -16653,7 +16655,7 @@ var require_parse = __commonJS({
16653
16655
  var token;
16654
16656
  var key2;
16655
16657
  var root;
16656
- module2.exports = function parse12(text7, reviver) {
16658
+ module2.exports = function parse14(text7, reviver) {
16657
16659
  source = String(text7);
16658
16660
  parseState = "start";
16659
16661
  stack = [];
@@ -17709,10 +17711,10 @@ var require_stringify = __commonJS({
17709
17711
  // ../../node_modules/json5/lib/index.js
17710
17712
  var require_lib = __commonJS({
17711
17713
  "../../node_modules/json5/lib/index.js"(exports3, module2) {
17712
- var parse12 = require_parse();
17714
+ var parse14 = require_parse();
17713
17715
  var stringify4 = require_stringify();
17714
17716
  var JSON53 = {
17715
- parse: parse12,
17717
+ parse: parse14,
17716
17718
  stringify: stringify4
17717
17719
  };
17718
17720
  module2.exports = JSON53;
@@ -17729,7 +17731,7 @@ function isCollection(node) {
17729
17731
  }
17730
17732
  return false;
17731
17733
  }
17732
- function isNode(node) {
17734
+ function isNode2(node) {
17733
17735
  if (node && typeof node === "object")
17734
17736
  switch (node[NODE_TYPE]) {
17735
17737
  case ALIAS:
@@ -17772,7 +17774,7 @@ function visit(node, visitor) {
17772
17774
  }
17773
17775
  function visit_(key2, node, visitor, path142) {
17774
17776
  const ctrl = callVisitor(key2, node, visitor, path142);
17775
- if (isNode(ctrl) || isPair(ctrl)) {
17777
+ if (isNode2(ctrl) || isPair(ctrl)) {
17776
17778
  replaceNode(key2, path142, ctrl);
17777
17779
  return visit_(key2, ctrl, visitor, path142);
17778
17780
  }
@@ -17817,7 +17819,7 @@ async function visitAsync(node, visitor) {
17817
17819
  }
17818
17820
  async function visitAsync_(key2, node, visitor, path142) {
17819
17821
  const ctrl = await callVisitor(key2, node, visitor, path142);
17820
- if (isNode(ctrl) || isPair(ctrl)) {
17822
+ if (isNode2(ctrl) || isPair(ctrl)) {
17821
17823
  replaceNode(key2, path142, ctrl);
17822
17824
  return visitAsync_(key2, ctrl, visitor, path142);
17823
17825
  }
@@ -18063,10 +18065,10 @@ var init_directives = __esm({
18063
18065
  const lines = this.yaml.explicit ? [`%YAML ${this.yaml.version || "1.2"}`] : [];
18064
18066
  const tagEntries = Object.entries(this.tags);
18065
18067
  let tagNames;
18066
- if (doc && tagEntries.length > 0 && isNode(doc.contents)) {
18068
+ if (doc && tagEntries.length > 0 && isNode2(doc.contents)) {
18067
18069
  const tags = {};
18068
18070
  visit(doc.contents, (_key, node) => {
18069
- if (isNode(node) && node.tag)
18071
+ if (isNode2(node) && node.tag)
18070
18072
  tags[node.tag] = true;
18071
18073
  });
18072
18074
  tagNames = Object.keys(tags);
@@ -18424,7 +18426,7 @@ function findTagObject(value, tagName, tags) {
18424
18426
  function createNode(value, tagName, ctx) {
18425
18427
  if (isDocument(value))
18426
18428
  value = value.contents;
18427
- if (isNode(value))
18429
+ if (isNode2(value))
18428
18430
  return value;
18429
18431
  if (isPair(value)) {
18430
18432
  const map2 = ctx.schema[MAP].createNode?.(ctx.schema, null, ctx);
@@ -18533,7 +18535,7 @@ var init_Collection = __esm({
18533
18535
  const copy = Object.create(Object.getPrototypeOf(this), Object.getOwnPropertyDescriptors(this));
18534
18536
  if (schema4)
18535
18537
  copy.schema = schema4;
18536
- copy.items = copy.items.map((it) => isNode(it) || isPair(it) ? it.clone(schema4) : it);
18538
+ copy.items = copy.items.map((it) => isNode2(it) || isPair(it) ? it.clone(schema4) : it);
18537
18539
  if (this.range)
18538
18540
  copy.range = this.range.slice();
18539
18541
  return copy;
@@ -19152,7 +19154,7 @@ function stringify(item, ctx, onComment, onChompKeep) {
19152
19154
  }
19153
19155
  }
19154
19156
  let tagObj = void 0;
19155
- const node = isNode(item) ? item : ctx.doc.createNode(item, { onTagObj: (o) => tagObj = o });
19157
+ const node = isNode2(item) ? item : ctx.doc.createNode(item, { onTagObj: (o) => tagObj = o });
19156
19158
  tagObj ?? (tagObj = getTagObject(ctx.doc.schema.tags, node));
19157
19159
  const props = stringifyProps(node, tagObj, ctx);
19158
19160
  if (props.length > 0)
@@ -19175,12 +19177,12 @@ var init_stringify = __esm({
19175
19177
  // ../../node_modules/yaml/browser/dist/stringify/stringifyPair.js
19176
19178
  function stringifyPair({ key: key2, value }, ctx, onComment, onChompKeep) {
19177
19179
  const { allNullValues, doc, indent: indent2, indentStep, options: { commentString, indentSeq, simpleKeys } } = ctx;
19178
- let keyComment = isNode(key2) && key2.comment || null;
19180
+ let keyComment = isNode2(key2) && key2.comment || null;
19179
19181
  if (simpleKeys) {
19180
19182
  if (keyComment) {
19181
19183
  throw new Error("With simple keys, key nodes cannot have comments");
19182
19184
  }
19183
- if (isCollection(key2) || !isNode(key2) && typeof key2 === "object") {
19185
+ if (isCollection(key2) || !isNode2(key2) && typeof key2 === "object") {
19184
19186
  const msg = "With simple keys, collection cannot be used as a key value";
19185
19187
  throw new Error(msg);
19186
19188
  }
@@ -19226,7 +19228,7 @@ ${indent2}:`;
19226
19228
  str3 += lineComment(str3, ctx.indent, commentString(keyComment));
19227
19229
  }
19228
19230
  let vsb, vcb, valueComment;
19229
- if (isNode(value)) {
19231
+ if (isNode2(value)) {
19230
19232
  vsb = !!value.spaceBefore;
19231
19233
  vcb = value.commentBefore;
19232
19234
  valueComment = value.comment;
@@ -19373,7 +19375,7 @@ var init_merge = __esm({
19373
19375
 
19374
19376
  // ../../node_modules/yaml/browser/dist/nodes/addPairToJSMap.js
19375
19377
  function addPairToJSMap(ctx, map2, { key: key2, value }) {
19376
- if (isNode(key2) && key2.addToJSMap)
19378
+ if (isNode2(key2) && key2.addToJSMap)
19377
19379
  key2.addToJSMap(ctx, map2, value);
19378
19380
  else if (isMergeKey(ctx, key2))
19379
19381
  addMergeToJSMap(ctx, map2, value);
@@ -19404,7 +19406,7 @@ function stringifyKey(key2, jsKey, ctx) {
19404
19406
  return "";
19405
19407
  if (typeof jsKey !== "object")
19406
19408
  return String(jsKey);
19407
- if (isNode(key2) && ctx?.doc) {
19409
+ if (isNode2(key2) && ctx?.doc) {
19408
19410
  const strCtx = createStringifyContext(ctx.doc, {});
19409
19411
  strCtx.anchors = /* @__PURE__ */ new Set();
19410
19412
  for (const node of ctx.anchors.keys())
@@ -19454,9 +19456,9 @@ var init_Pair = __esm({
19454
19456
  }
19455
19457
  clone(schema4) {
19456
19458
  let { key: key2, value } = this;
19457
- if (isNode(key2))
19459
+ if (isNode2(key2))
19458
19460
  key2 = key2.clone(schema4);
19459
- if (isNode(value))
19461
+ if (isNode2(value))
19460
19462
  value = value.clone(schema4);
19461
19463
  return new _Pair(key2, value);
19462
19464
  }
@@ -19485,14 +19487,14 @@ function stringifyBlockCollection({ comment, items: items2 }, ctx, { blockItemPr
19485
19487
  for (let i = 0; i < items2.length; ++i) {
19486
19488
  const item = items2[i];
19487
19489
  let comment2 = null;
19488
- if (isNode(item)) {
19490
+ if (isNode2(item)) {
19489
19491
  if (!chompKeep && item.spaceBefore)
19490
19492
  lines.push("");
19491
19493
  addCommentBefore(ctx, lines, item.commentBefore, chompKeep);
19492
19494
  if (item.comment)
19493
19495
  comment2 = item.comment;
19494
19496
  } else if (isPair(item)) {
19495
- const ik = isNode(item.key) ? item.key : null;
19497
+ const ik = isNode2(item.key) ? item.key : null;
19496
19498
  if (ik) {
19497
19499
  if (!chompKeep && ik.spaceBefore)
19498
19500
  lines.push("");
@@ -19540,14 +19542,14 @@ function stringifyFlowCollection({ items: items2 }, ctx, { flowChars, itemIndent
19540
19542
  for (let i = 0; i < items2.length; ++i) {
19541
19543
  const item = items2[i];
19542
19544
  let comment = null;
19543
- if (isNode(item)) {
19545
+ if (isNode2(item)) {
19544
19546
  if (item.spaceBefore)
19545
19547
  lines.push("");
19546
19548
  addCommentBefore(ctx, lines, item.commentBefore, false);
19547
19549
  if (item.comment)
19548
19550
  comment = item.comment;
19549
19551
  } else if (isPair(item)) {
19550
- const ik = isNode(item.key) ? item.key : null;
19552
+ const ik = isNode2(item.key) ? item.key : null;
19551
19553
  if (ik) {
19552
19554
  if (ik.spaceBefore)
19553
19555
  lines.push("");
@@ -19555,7 +19557,7 @@ function stringifyFlowCollection({ items: items2 }, ctx, { flowChars, itemIndent
19555
19557
  if (ik.comment)
19556
19558
  reqNewline = true;
19557
19559
  }
19558
- const iv = isNode(item.value) ? item.value : null;
19560
+ const iv = isNode2(item.value) ? item.value : null;
19559
19561
  if (iv) {
19560
19562
  if (iv.comment)
19561
19563
  comment = iv.comment;
@@ -20905,7 +20907,7 @@ function stringifyDocument(doc, options) {
20905
20907
  let chompKeep = false;
20906
20908
  let contentComment = null;
20907
20909
  if (doc.contents) {
20908
- if (isNode(doc.contents)) {
20910
+ if (isNode2(doc.contents)) {
20909
20911
  if (doc.contents.spaceBefore && hasDirectives)
20910
20912
  lines.push("");
20911
20913
  if (doc.contents.commentBefore) {
@@ -21030,7 +21032,7 @@ var init_Document = __esm({
21030
21032
  if (this.directives)
21031
21033
  copy.directives = this.directives.clone();
21032
21034
  copy.schema = this.schema.clone();
21033
- copy.contents = isNode(this.contents) ? this.contents.clone(copy.schema) : this.contents;
21035
+ copy.contents = isNode2(this.contents) ? this.contents.clone(copy.schema) : this.contents;
21034
21036
  if (this.range)
21035
21037
  copy.range = this.range.slice();
21036
21038
  return copy;
@@ -21963,7 +21965,7 @@ function composeCollection(CN2, ctx, token, props, onError) {
21963
21965
  }
21964
21966
  const coll = resolveCollection(CN2, ctx, token, onError, tagName, tag);
21965
21967
  const res = tag.resolve?.(coll, (msg) => onError(tagToken, "TAG_RESOLVE_FAILED", msg), ctx.options) ?? coll;
21966
- const node = isNode(res) ? res : new Scalar(res);
21968
+ const node = isNode2(res) ? res : new Scalar(res);
21967
21969
  node.range = coll.range;
21968
21970
  node.tag = tagName;
21969
21971
  if (tag?.format)
@@ -24847,7 +24849,7 @@ __export(dist_exports, {
24847
24849
  isCollection: () => isCollection,
24848
24850
  isDocument: () => isDocument,
24849
24851
  isMap: () => isMap,
24850
- isNode: () => isNode,
24852
+ isNode: () => isNode2,
24851
24853
  isPair: () => isPair,
24852
24854
  isScalar: () => isScalar,
24853
24855
  isSeq: () => isSeq,
@@ -26018,7 +26020,7 @@ function autolinkerAppleFlags(autolinkerManifest, appRoot) {
26018
26020
  return ["--platform", "ios"];
26019
26021
  }
26020
26022
  async function autolinkerResults(appRoot) {
26021
- const appRequire = (0, import_node_module5.createRequire)(import_node_path30.default.join(appRoot, "package.json"));
26023
+ const appRequire = (0, import_node_module6.createRequire)(import_node_path30.default.join(appRoot, "package.json"));
26022
26024
  let expoRoot;
26023
26025
  try {
26024
26026
  expoRoot = import_node_path30.default.dirname(appRequire.resolve("expo/package.json"));
@@ -26083,12 +26085,12 @@ async function expoAutolinkedPods(appRoot) {
26083
26085
  }))
26084
26086
  );
26085
26087
  }
26086
- var import_node_fs32, import_node_module5, import_node_path30;
26088
+ var import_node_fs32, import_node_module6, import_node_path30;
26087
26089
  var init_expo_autolinking = __esm({
26088
26090
  "src/expo-autolinking.ts"() {
26089
26091
  "use strict";
26090
26092
  import_node_fs32 = __toESM(require("node:fs"), 1);
26091
- import_node_module5 = require("node:module");
26093
+ import_node_module6 = require("node:module");
26092
26094
  import_node_path30 = __toESM(require("node:path"), 1);
26093
26095
  init_autolinker_process();
26094
26096
  init_is_record();
@@ -26172,7 +26174,7 @@ var init_swift_standin_digest = __esm({
26172
26174
  STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
26173
26175
  SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
26174
26176
  standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
26175
- STANDIN_SOURCE_DIGEST = true ? "420f8c4f781572c3c44024d8ff6179ebb2496ed860764ce77dbcb9250dfe20ad" : standinSourceDigest();
26177
+ STANDIN_SOURCE_DIGEST = true ? "63118ef9a51a40246d1d92d46ba9262a11addaf6d84914f7e1b78d6ff3b9bf19" : standinSourceDigest();
26176
26178
  }
26177
26179
  });
26178
26180
 
@@ -43171,7 +43173,7 @@ int EXUpdatesApplyBSDiffPatch(const char * _Nonnull oldFilePath,
43171
43173
  REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
43172
43174
  MULTI_MANIFEST_VERSION = 72;
43173
43175
  SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
43174
- compilerSourceDigest = true ? "ff32cc71088e14ace82447127edb06417dff9ada03e57efef920cc2b92a46239" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
43176
+ compilerSourceDigest = true ? "82277b01523ae4b1fce8888e636cd6a98f714c692be322d3916352e5629be0f5" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
43175
43177
  nativeCxxCompilerFlags = ["-fno-cxx-modules"];
43176
43178
  cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
43177
43179
  cxxFlagArray = (flags) => JSON.stringify([...nativeCxxCompilerFlags, ...withoutGlogModuleMap(flags)]);
@@ -53064,12 +53066,12 @@ function readIosAppTarget(projectRoot, iosTarget, environment) {
53064
53066
  environment
53065
53067
  });
53066
53068
  }
53067
- var import_node_fs83, import_node_module8, import_node_path83, SDK_BEFORE_SCENE_REQUIREMENT;
53069
+ var import_node_fs83, import_node_module9, import_node_path83, SDK_BEFORE_SCENE_REQUIREMENT;
53068
53070
  var init_native_app_identity_project = __esm({
53069
53071
  "src/native-app-identity-project.ts"() {
53070
53072
  "use strict";
53071
53073
  import_node_fs83 = __toESM(require("node:fs"), 1);
53072
- import_node_module8 = require("node:module");
53074
+ import_node_module9 = require("node:module");
53073
53075
  import_node_path83 = __toESM(require("node:path"), 1);
53074
53076
  init_android_app_identity();
53075
53077
  init_is_record();
@@ -60689,11 +60691,14 @@ function enumerateBundleImages(paths, readText, bundleForFile = () => ".") {
60689
60691
  }
60690
60692
  for (const path142 of paths) {
60691
60693
  if (!isFlatResourceImage(path142)) continue;
60692
- const name3 = baseOf(path142).slice(0, -extOf(path142).length);
60694
+ const filename = baseOf(path142);
60695
+ const name3 = filename.slice(0, -extOf(filename).length);
60693
60696
  const { bundlePath, names } = namesFor(path142);
60694
60697
  if (name3 === "" || names.has(name3)) continue;
60695
60698
  names.add(name3);
60696
- table.push({ name: name3, file: path142, scale: flatScale(path142), bundlePath });
60699
+ const scaledFilename = filename.replace(/@[23]x(?=\.[^./]+$)/, "");
60700
+ const fileNames = (scaledFilename === filename ? [filename] : [filename, scaledFilename]).filter((lookup3) => !names.has(lookup3));
60701
+ table.push({ name: name3, file: path142, scale: flatScale(path142), bundlePath, fileNames });
60697
60702
  }
60698
60703
  return table;
60699
60704
  }
@@ -60823,13 +60828,13 @@ function templateElements(svg) {
60823
60828
  continue;
60824
60829
  }
60825
60830
  let [x, y] = offsets.at(-1) ?? [0, 0];
60826
- const transform5 = /transform="([^"]*)"/.exec(attributes)?.[1];
60827
- if (kind === "g" && transform5 !== void 0) {
60831
+ const transform6 = /transform="([^"]*)"/.exec(attributes)?.[1];
60832
+ if (kind === "g" && transform6 !== void 0) {
60828
60833
  const translate = /^\s*translate\(\s*([-0-9.]+)[\s,]*([-0-9.]*)\s*\)\s*$/.exec(
60829
- transform5
60834
+ transform6
60830
60835
  );
60831
60836
  const matrix = /^\s*matrix\(\s*1[\s,]+0[\s,]+0[\s,]+1[\s,]+([-0-9.]+)[\s,]+([-0-9.]+)\s*\)\s*$/.exec(
60832
- transform5
60837
+ transform6
60833
60838
  );
60834
60839
  const move = translate ?? matrix;
60835
60840
  if (!move) return null;
@@ -65002,10 +65007,10 @@ var require_packer_sync = __commonJS({
65002
65007
  var require_png_sync = __commonJS({
65003
65008
  "../../node_modules/pngjs/lib/png-sync.js"(exports3) {
65004
65009
  "use strict";
65005
- var parse12 = require_parser_sync();
65010
+ var parse14 = require_parser_sync();
65006
65011
  var pack = require_packer_sync();
65007
65012
  exports3.read = function(buffer, options) {
65008
- return parse12(buffer, options || {});
65013
+ return parse14(buffer, options || {});
65009
65014
  };
65010
65015
  exports3.write = function(png, options) {
65011
65016
  return pack(png, options);
@@ -65671,11 +65676,11 @@ do { try data.write(to: output) } catch { exit(7) }
65671
65676
  });
65672
65677
 
65673
65678
  // src/swift-standin-config.ts
65674
- var import_acorn, import_sucrase3;
65679
+ var import_acorn2, import_sucrase3;
65675
65680
  var init_swift_standin_config = __esm({
65676
65681
  "src/swift-standin-config.ts"() {
65677
65682
  "use strict";
65678
- import_acorn = require("peachsim/vendor/acorn");
65683
+ import_acorn2 = require("peachsim/vendor/acorn");
65679
65684
  import_sucrase3 = require("peachsim/vendor/sucrase");
65680
65685
  init_is_record();
65681
65686
  }
@@ -66993,7 +66998,7 @@ function buildSwiftResourceTable(project2, baseUrl, inputs) {
66993
66998
  registered.set(`${sha2565}.metal`, { bytes, contentType: "text/plain; charset=utf-8" });
66994
66999
  }
66995
67000
  let imageBytes = 0;
66996
- for (const { name: name3, file, scale, bundlePath, renderingMode } of found2) {
67001
+ for (const { name: name3, file, scale, bundlePath, renderingMode, fileNames } of found2) {
66997
67002
  const disk = byRelative.get(file);
66998
67003
  if (!disk) continue;
66999
67004
  if (Object.keys(images).length >= limits.images) {
@@ -67032,12 +67037,15 @@ function buildSwiftResourceTable(project2, baseUrl, inputs) {
67032
67037
  imageBytes += bytes.length;
67033
67038
  const hash = (0, import_node_crypto58.createHash)("sha256").update(bytes).digest("hex").slice(0, 16);
67034
67039
  const bundle = table[bundlePath] ?? /* @__PURE__ */ Object.create(null);
67035
- const variants = bundle[name3] ??= [];
67036
- variants.push({
67040
+ const variant2 = {
67037
67041
  uri: `${baseUrl}${RESOURCE_PATH}${hash}${ext}`,
67038
67042
  scale: variantScale,
67039
67043
  ...renderingMode ? { renderingMode } : {}
67040
- });
67044
+ };
67045
+ for (const lookup3 of [name3, ...fileNames ?? []]) {
67046
+ const variants = bundle[lookup3] ??= [];
67047
+ variants.push(variant2);
67048
+ }
67041
67049
  table[bundlePath] = bundle;
67042
67050
  const key2 = layout2 ? xcodeInputKey(layout2, disk, file) : file;
67043
67051
  images[key2] = {
@@ -67052,6 +67060,9 @@ function buildSwiftResourceTable(project2, baseUrl, inputs) {
67052
67060
  contentType: RESOURCE_CONTENT_TYPES[ext] ?? "application/octet-stream"
67053
67061
  });
67054
67062
  }
67063
+ for (const bundle of Object.values(table))
67064
+ for (const variants of Object.values(bundle))
67065
+ variants.sort((a, b) => a.scale - b.scale);
67055
67066
  for (const file of relative4) {
67056
67067
  if (file.endsWith(".colorset/Contents.json") || file.includes(".symbolset/"))
67057
67068
  watched.push(file);
@@ -68601,7 +68612,7 @@ function installedNativeLibraries(providers, projectRoot, moduleRoot, iosTarget,
68601
68612
  const podsRoot = import_node_path105.default.dirname(app.cocoapods.manifestLock);
68602
68613
  const localPods = app.cocoapods.localPodspecs;
68603
68614
  const reactNativeRoot = import_node_path105.default.dirname(
68604
- (0, import_node_module12.createRequire)(import_node_path105.default.join(projectRoot, "package.json")).resolve(
68615
+ (0, import_node_module13.createRequire)(import_node_path105.default.join(projectRoot, "package.json")).resolve(
68605
68616
  "react-native/package.json"
68606
68617
  )
68607
68618
  );
@@ -68790,12 +68801,12 @@ function installedPodBinaries(directory2) {
68790
68801
  }
68791
68802
  return binaries.sort();
68792
68803
  }
68793
- var import_node_fs106, import_node_module12, import_node_path105, BINARY_BUNDLE, SOURCE;
68804
+ var import_node_fs106, import_node_module13, import_node_path105, BINARY_BUNDLE, SOURCE;
68794
68805
  var init_installed_native_libraries = __esm({
68795
68806
  "src/installed-native-libraries.ts"() {
68796
68807
  "use strict";
68797
68808
  import_node_fs106 = __toESM(require("node:fs"), 1);
68798
- import_node_module12 = require("node:module");
68809
+ import_node_module13 = require("node:module");
68799
68810
  import_node_path105 = __toESM(require("node:path"), 1);
68800
68811
  init_is_record();
68801
68812
  init_native_static_libraries();
@@ -68888,7 +68899,7 @@ function realTarget(target) {
68888
68899
  return import_node_path106.default.join(realTarget(import_node_path106.default.dirname(resolved)), import_node_path106.default.basename(resolved));
68889
68900
  }
68890
68901
  async function runInstalledTurboCodegen(appRoot, outDir, signal) {
68891
- const manifestPath = (0, import_node_module13.createRequire)(import_node_path106.default.join(appRoot, "package.json")).resolve(
68902
+ const manifestPath = (0, import_node_module14.createRequire)(import_node_path106.default.join(appRoot, "package.json")).resolve(
68892
68903
  "react-native/package.json"
68893
68904
  );
68894
68905
  const manifest = JSON.parse(import_node_fs107.default.readFileSync(manifestPath, "utf8"));
@@ -68928,14 +68939,14 @@ async function runInstalledTurboCodegen(appRoot, outDir, signal) {
68928
68939
  files: hashTree(generatedRoot)
68929
68940
  };
68930
68941
  }
68931
- var import_node_child_process51, import_node_crypto59, import_node_fs107, import_node_module13, import_node_path106, import_node_util11, run5, RENDERER_PODS, RENDERER_PODS_VERSIONED, COMPILED_SOURCE, LEGACY_BRIDGE_DEV_SUPPORT, LEGACY_BRIDGE_PODS, LEGACY_BRIDGE_PODS_VERSIONED;
68942
+ var import_node_child_process51, import_node_crypto59, import_node_fs107, import_node_module14, import_node_path106, import_node_util11, run5, RENDERER_PODS, RENDERER_PODS_VERSIONED, COMPILED_SOURCE, LEGACY_BRIDGE_DEV_SUPPORT, LEGACY_BRIDGE_PODS, LEGACY_BRIDGE_PODS_VERSIONED;
68932
68943
  var init_turbo_codegen_intake = __esm({
68933
68944
  "src/turbo-codegen-intake.ts"() {
68934
68945
  "use strict";
68935
68946
  import_node_child_process51 = require("node:child_process");
68936
68947
  import_node_crypto59 = require("node:crypto");
68937
68948
  import_node_fs107 = __toESM(require("node:fs"), 1);
68938
- import_node_module13 = require("node:module");
68949
+ import_node_module14 = require("node:module");
68939
68950
  import_node_path106 = __toESM(require("node:path"), 1);
68940
68951
  import_node_util11 = require("node:util");
68941
68952
  init_forked_script_contract();
@@ -73712,7 +73723,7 @@ async function prepareTurboCompileInput(options) {
73712
73723
  const reactNative = [options.appRoot, options.projectRoot].map(
73713
73724
  (root2) => import_node_path108.default.dirname(
73714
73725
  import_node_fs109.default.realpathSync(
73715
- (0, import_node_module14.createRequire)(import_node_path108.default.join(root2, "package.json")).resolve(
73726
+ (0, import_node_module15.createRequire)(import_node_path108.default.join(root2, "package.json")).resolve(
73716
73727
  "react-native/package.json"
73717
73728
  )
73718
73729
  )
@@ -73867,13 +73878,13 @@ async function compileTurboModule(options) {
73867
73878
  collection
73868
73879
  };
73869
73880
  }
73870
- var import_node_crypto61, import_node_fs109, import_node_module14, import_node_os24, import_node_path108;
73881
+ var import_node_crypto61, import_node_fs109, import_node_module15, import_node_os24, import_node_path108;
73871
73882
  var init_turbo_compile = __esm({
73872
73883
  "src/turbo-compile.ts"() {
73873
73884
  "use strict";
73874
73885
  import_node_crypto61 = require("node:crypto");
73875
73886
  import_node_fs109 = __toESM(require("node:fs"), 1);
73876
- import_node_module14 = require("node:module");
73887
+ import_node_module15 = require("node:module");
73877
73888
  import_node_os24 = __toESM(require("node:os"), 1);
73878
73889
  import_node_path108 = __toESM(require("node:path"), 1);
73879
73890
  init_native_app_identity_project();
@@ -74100,7 +74111,7 @@ function reactNativeCoreEntry(reactNativeRoot, moduleRoot, mode) {
74100
74111
  };
74101
74112
  walk3("");
74102
74113
  const codegenRoot = import_node_path110.default.dirname(
74103
- (0, import_node_module15.createRequire)(import_node_path110.default.join(reactNativeRoot, "package.json")).resolve(
74114
+ (0, import_node_module16.createRequire)(import_node_path110.default.join(reactNativeRoot, "package.json")).resolve(
74104
74115
  "@react-native/codegen/package.json"
74105
74116
  )
74106
74117
  );
@@ -74201,13 +74212,13 @@ function linkReactNativeCore(collection, core, moduleRoot) {
74201
74212
  }
74202
74213
  }
74203
74214
  }
74204
- var import_node_crypto62, import_node_fs111, import_node_module15, import_node_path110, import_node_util12, recipe, strings4, building;
74215
+ var import_node_crypto62, import_node_fs111, import_node_module16, import_node_path110, import_node_util12, recipe, strings4, building;
74205
74216
  var init_react_native_core = __esm({
74206
74217
  "src/react-native-core.ts"() {
74207
74218
  "use strict";
74208
74219
  import_node_crypto62 = require("node:crypto");
74209
74220
  import_node_fs111 = __toESM(require("node:fs"), 1);
74210
- import_node_module15 = require("node:module");
74221
+ import_node_module16 = require("node:module");
74211
74222
  import_node_path110 = __toESM(require("node:path"), 1);
74212
74223
  import_node_util12 = require("node:util");
74213
74224
  init_home_paths();
@@ -74239,7 +74250,7 @@ var init_nitro_compiler_digest = __esm({
74239
74250
 
74240
74251
  // src/nitro-superset-inputs.ts
74241
74252
  async function nitroSupersetInputs(options) {
74242
- const resolve9 = (0, import_node_module17.createRequire)((0, import_node_path121.join)(options.appRoot, "package.json")).resolve;
74253
+ const resolve9 = (0, import_node_module18.createRequire)((0, import_node_path121.join)(options.appRoot, "package.json")).resolve;
74243
74254
  const pin2 = swiftNativePin();
74244
74255
  const inputs = {
74245
74256
  configuration: options.configuration,
@@ -74256,12 +74267,12 @@ async function nitroSupersetInputs(options) {
74256
74267
  inputs[`provider:${name3}`] = `${packageVersion(root)}\0${await packageTreeDigest(root)}`;
74257
74268
  return inputs;
74258
74269
  }
74259
- var import_node_fs121, import_node_module17, import_node_path121, packageVersion;
74270
+ var import_node_fs121, import_node_module18, import_node_path121, packageVersion;
74260
74271
  var init_nitro_superset_inputs = __esm({
74261
74272
  "src/nitro-superset-inputs.ts"() {
74262
74273
  "use strict";
74263
74274
  import_node_fs121 = require("node:fs");
74264
- import_node_module17 = require("node:module");
74275
+ import_node_module18 = require("node:module");
74265
74276
  import_node_path121 = require("node:path");
74266
74277
  init_package_tree_digest();
74267
74278
  init_swift_native_pin();
@@ -74368,7 +74379,7 @@ var init_nitro_superset = __esm({
74368
74379
  init_nitroContract();
74369
74380
  init_swift_standin_digest();
74370
74381
  NITRO_SUPERSET_ENTRY_NAME = "superset";
74371
- NITRO_COMPILER_DIGEST = true ? "56643f8d73ca4838b5234057e53442c1eae68c01a04258a057b105158501e3a1" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
74382
+ NITRO_COMPILER_DIGEST = true ? "40b5a3e48324aaea7cd2483960647c93319a36d65bd8e3de3289996016f66be0" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
74372
74383
  nitroSupersetLock = parseLock(nitro_superset_lock_default);
74373
74384
  nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
74374
74385
  published2 = /* @__PURE__ */ new Map();
@@ -74740,7 +74751,7 @@ function bindingNames(pattern) {
74740
74751
  throw new Error(`unsupported Kotlin export binding ${pattern.type}`);
74741
74752
  }
74742
74753
  function kotlinInstanceSource(source, factory, instanceImports = /* @__PURE__ */ new Map()) {
74743
- const program = (0, import_acorn2.parse)(source, { ecmaVersion: "latest", sourceType: "module" });
74754
+ const program = (0, import_acorn4.parse)(source, { ecmaVersion: "latest", sourceType: "module" });
74744
74755
  const imports2 = [];
74745
74756
  const body = [];
74746
74757
  let dependencies = 0;
@@ -74830,11 +74841,11 @@ return { peachDisposeInstance, ${exports3.map((item) => `${JSON.stringify(item.e
74830
74841
  exports: exports3
74831
74842
  };
74832
74843
  }
74833
- var import_acorn2;
74844
+ var import_acorn4;
74834
74845
  var init_kotlin_instance_source = __esm({
74835
74846
  "src/kotlin-instance-source.ts"() {
74836
74847
  "use strict";
74837
- import_acorn2 = require("peachsim/vendor/acorn");
74848
+ import_acorn4 = require("peachsim/vendor/acorn");
74838
74849
  }
74839
74850
  });
74840
74851
 
@@ -75334,7 +75345,7 @@ function loadKotlinSdk(moduleRoot, toolchain) {
75334
75345
  }
75335
75346
  function appKotlinLanguage(root) {
75336
75347
  const reactNative = import_node_path131.default.dirname(
75337
- (0, import_node_module19.createRequire)(import_node_path131.default.join(root, "package.json")).resolve("react-native/package.json")
75348
+ (0, import_node_module20.createRequire)(import_node_path131.default.join(root, "package.json")).resolve("react-native/package.json")
75338
75349
  );
75339
75350
  const versions = import_node_fs130.default.readFileSync(
75340
75351
  import_node_path131.default.join(reactNative, "gradle", "libs.versions.toml"),
@@ -75508,7 +75519,7 @@ function readExpoTypes(output) {
75508
75519
  };
75509
75520
  });
75510
75521
  }
75511
- async function scanSources(tool, parse12, toolchain, moduleRoot, files2) {
75522
+ async function scanSources(tool, parse14, toolchain, moduleRoot, files2) {
75512
75523
  const digest2 = (0, import_node_crypto76.createHash)("sha256").update(JSON.stringify(toolchain.compiler));
75513
75524
  const sdk2 = await loadKotlinSdk(moduleRoot, toolchain);
75514
75525
  digest2.update(import_node_fs130.default.readFileSync(import_node_path131.default.join(moduleRoot, "sdk.tar.gz")));
@@ -75523,7 +75534,7 @@ async function scanSources(tool, parse12, toolchain, moduleRoot, files2) {
75523
75534
  });
75524
75535
  toolScans.set(key2, scan3);
75525
75536
  }
75526
- return parse12(await scan3);
75537
+ return parse14(await scan3);
75527
75538
  }
75528
75539
  async function scanExpoTypes(toolchain, moduleRoot, sources) {
75529
75540
  const candidates = sources.filter(
@@ -76313,7 +76324,7 @@ async function compileKotlin(input, origin) {
76313
76324
  import_node_path131.default.join(work, "js")
76314
76325
  ]);
76315
76326
  const skikoPath = import_node_path131.default.join(work, "js", "skiko.mjs");
76316
- const upstream = (0, import_acorn3.parse)(import_node_fs130.default.readFileSync(skikoPath, "utf8"), {
76327
+ const upstream = (0, import_acorn5.parse)(import_node_fs130.default.readFileSync(skikoPath, "utf8"), {
76317
76328
  ecmaVersion: "latest",
76318
76329
  sourceType: "module"
76319
76330
  });
@@ -76509,17 +76520,17 @@ async function serveKotlinRequest(pathname, res, app) {
76509
76520
  }
76510
76521
  return true;
76511
76522
  }
76512
- var import_node_child_process59, import_node_crypto76, import_node_fs130, import_node_module19, import_node_path131, import_node_util18, import_acorn3, run10, KOTLIN_ARTIFACT_PREFIX, SKIP_DIRS, configureDeviceSource, BUILD_FORMAT, builds, toolScans, BRIDGE_PARAMETERS, BRIDGE_CASTS, BRIDGE_RETURNS, bridgeType, JAVA_CLASSES, argb, escapes2, literal2, CONTENT_TYPES;
76523
+ var import_node_child_process59, import_node_crypto76, import_node_fs130, import_node_module20, import_node_path131, import_node_util18, import_acorn5, run10, KOTLIN_ARTIFACT_PREFIX, SKIP_DIRS, configureDeviceSource, BUILD_FORMAT, builds, toolScans, BRIDGE_PARAMETERS, BRIDGE_CASTS, BRIDGE_RETURNS, bridgeType, JAVA_CLASSES, argb, escapes2, literal2, CONTENT_TYPES;
76513
76524
  var init_kotlin_host = __esm({
76514
76525
  "src/kotlin-host.ts"() {
76515
76526
  "use strict";
76516
76527
  import_node_child_process59 = require("node:child_process");
76517
76528
  import_node_crypto76 = require("node:crypto");
76518
76529
  import_node_fs130 = __toESM(require("node:fs"), 1);
76519
- import_node_module19 = require("node:module");
76530
+ import_node_module20 = require("node:module");
76520
76531
  import_node_path131 = __toESM(require("node:path"), 1);
76521
76532
  import_node_util18 = require("node:util");
76522
- import_acorn3 = require("peachsim/vendor/acorn");
76533
+ import_acorn5 = require("peachsim/vendor/acorn");
76523
76534
  init_android_bridge_packages();
76524
76535
  init_android_view_classes();
76525
76536
  init_is_record();
@@ -76693,7 +76704,7 @@ function getCliRuntime() {
76693
76704
  if (loaded3) return loaded3.runtime;
76694
76705
  const root = peachRuntimeRoot();
76695
76706
  verifyCliCompanion(root);
76696
- const require2 = (0, import_node_module21.createRequire)(__sootsim_import_meta_url);
76707
+ const require2 = (0, import_node_module22.createRequire)(__sootsim_import_meta_url);
76697
76708
  const runtime = require2((0, import_node_path134.join)(root, cliCompanionPath()));
76698
76709
  if (runtime.cliCompanionAbi !== CLI_COMPANION_ABI) {
76699
76710
  throw new Error(
@@ -76704,13 +76715,13 @@ function getCliRuntime() {
76704
76715
  loaded3 = { root, runtime };
76705
76716
  return runtime;
76706
76717
  }
76707
- var import_node_crypto78, import_node_fs133, import_node_module21, import_node_path134, CLI_COMPANION_ABI, loaded3;
76718
+ var import_node_crypto78, import_node_fs133, import_node_module22, import_node_path134, CLI_COMPANION_ABI, loaded3;
76708
76719
  var init_cli_runtime = __esm({
76709
76720
  "src/cli-runtime.ts"() {
76710
76721
  "use strict";
76711
76722
  import_node_crypto78 = require("node:crypto");
76712
76723
  import_node_fs133 = require("node:fs");
76713
- import_node_module21 = require("node:module");
76724
+ import_node_module22 = require("node:module");
76714
76725
  import_node_path134 = require("node:path");
76715
76726
  init_src();
76716
76727
  init_runtime_companion();
@@ -80356,7 +80367,7 @@ async function resolveExpoAndroidAutolinking(appRoot) {
80356
80367
  async function resolveAndroidModules(appRoot) {
80357
80368
  let autolinker;
80358
80369
  try {
80359
- autolinker = (0, import_node_module23.createRequire)(import_node_path153.default.join(appRoot, "package.json")).resolve(
80370
+ autolinker = (0, import_node_module24.createRequire)(import_node_path153.default.join(appRoot, "package.json")).resolve(
80360
80371
  "expo-modules-autolinking/package.json"
80361
80372
  );
80362
80373
  } catch (error) {
@@ -80410,12 +80421,12 @@ async function resolveReactNativeAndroidAutolinking(appRoot) {
80410
80421
  }
80411
80422
  return linked;
80412
80423
  }
80413
- var import_node_fs148, import_node_module23, import_node_path153, resolving;
80424
+ var import_node_fs148, import_node_module24, import_node_path153, resolving;
80414
80425
  var init_android_autolinking = __esm({
80415
80426
  "src/android-autolinking.ts"() {
80416
80427
  "use strict";
80417
80428
  import_node_fs148 = __toESM(require("node:fs"), 1);
80418
- import_node_module23 = require("node:module");
80429
+ import_node_module24 = require("node:module");
80419
80430
  import_node_path153 = __toESM(require("node:path"), 1);
80420
80431
  init_androidAutolinkingContract();
80421
80432
  init_autolinker_process();
@@ -82542,7 +82553,7 @@ function memoizedBinarySearch(haystack, needle, state, key2) {
82542
82553
  state.lastNeedle = needle;
82543
82554
  return state.lastIndex = binarySearch(haystack, needle, low, high);
82544
82555
  }
82545
- function parse11(map2) {
82556
+ function parse13(map2) {
82546
82557
  return typeof map2 === "string" ? JSON.parse(map2) : map2;
82547
82558
  }
82548
82559
  function cast(map2) {
@@ -82620,7 +82631,7 @@ var init_trace_mapping = __esm({
82620
82631
  constructor(map2, mapUrl) {
82621
82632
  const isString = typeof map2 === "string";
82622
82633
  if (!isString && map2._decodedMemo) return map2;
82623
- const parsed2 = parse11(map2);
82634
+ const parsed2 = parse13(map2);
82624
82635
  const { version: version2, file, names, sourceRoot, sources, sourcesContent } = parsed2;
82625
82636
  this.version = version2;
82626
82637
  this.file = file;
@@ -83966,7 +83977,7 @@ async function createCloudBox(options) {
83966
83977
  warnings: artifact.warnings
83967
83978
  };
83968
83979
  }
83969
- var import_node_crypto86, import_node_fs155, import_node_path160, import_node_vm, DEFAULT_RNX_CLOUD_ORIGIN, MAX_RNX_CLOUD_BUNDLE_BYTES, REMOTE_COMMAND, PREVIEW_COMMAND, MAX_ASSET_DEST_FILES, ACCOUNT_CHOICE_REFUSALS, PROJECT_ONLY_DIRECTORIES, MAX_PLACEMENT_COMBINATIONS;
83980
+ var import_node_crypto86, import_node_fs155, import_node_path160, import_node_vm, DEFAULT_RNX_CLOUD_ORIGIN, MAX_RNX_CLOUD_BUNDLE_BYTES, REMOTE_COMMAND, PREVIEW_COMMAND, NanoDevelopmentOnlyError, MAX_ASSET_DEST_FILES, ACCOUNT_CHOICE_REFUSALS, PROJECT_ONLY_DIRECTORIES, MAX_PLACEMENT_COMBINATIONS;
83970
83981
  var init_cloud_client = __esm({
83971
83982
  "cli/cloud-client.ts"() {
83972
83983
  "use strict";
@@ -83994,6 +84005,12 @@ var init_cloud_client = __esm({
83994
84005
  MAX_RNX_CLOUD_BUNDLE_BYTES = RNX_CLOUD_MAX_ARTIFACT_BYTES;
83995
84006
  REMOTE_COMMAND = "peach remote";
83996
84007
  PREVIEW_COMMAND = "peach preview";
84008
+ NanoDevelopmentOnlyError = class extends Error {
84009
+ code = "nano_development_only";
84010
+ constructor() {
84011
+ super("Nano requires a development build. [nano_development_only]");
84012
+ }
84013
+ };
83997
84014
  MAX_ASSET_DEST_FILES = 25e3;
83998
84015
  ACCOUNT_CHOICE_REFUSALS = /* @__PURE__ */ new Set([
83999
84016
  "accountId is required",
@@ -84023,6 +84040,7 @@ function cloudDevice(capturedModel) {
84023
84040
  return captured && getCliRuntime().settings_devices.getRuntimePlatform(captured) === "ios" ? captured : DEFAULT_DEVICE_BY_PLATFORM.ios;
84024
84041
  }
84025
84042
  async function sendToBox(options) {
84043
+ if (!isSootsimDevCheckout()) throw new NanoDevelopmentOnlyError();
84026
84044
  const captured = await options.send({
84027
84045
  type: "evaluate",
84028
84046
  simId: options.simId,
@@ -84070,6 +84088,7 @@ var init_send_to_box = __esm({
84070
84088
  "use strict";
84071
84089
  init_cli_runtime();
84072
84090
  init_device_catalog();
84091
+ init_home_paths();
84073
84092
  init_is_record();
84074
84093
  init_metro_production_bundle();
84075
84094
  init_simulator_route();
@@ -84293,7 +84312,7 @@ var import_node_async_hooks3 = require("node:async_hooks");
84293
84312
  var import_node_child_process54 = require("node:child_process");
84294
84313
  var import_node_crypto64 = require("node:crypto");
84295
84314
  var import_node_fs113 = __toESM(require("node:fs"), 1);
84296
- var import_node_module16 = require("node:module");
84315
+ var import_node_module17 = require("node:module");
84297
84316
  var import_node_os25 = __toESM(require("node:os"), 1);
84298
84317
  var import_node_path112 = __toESM(require("node:path"), 1);
84299
84318
  var import_node_url5 = require("node:url");
@@ -84363,36 +84382,17 @@ init_answeredNativePackages();
84363
84382
 
84364
84383
  // src/app-config.ts
84365
84384
  var import_node_fs31 = require("node:fs");
84385
+ var import_node_module5 = require("node:module");
84366
84386
  var import_node_path29 = __toESM(require("node:path"), 1);
84367
- var import_jiti = require("peachsim/vendor/jiti");
84368
84387
 
84369
84388
  // cli/app-stubs.ts
84370
84389
  var import_node_fs30 = require("node:fs");
84371
84390
  var import_node_path27 = require("node:path");
84372
84391
  init_version_range();
84373
- var import_oxc_parser2 = require("oxc-parser");
84392
+ var import_acorn = require("peachsim/vendor/acorn");
84374
84393
  var import_sucrase = require("peachsim/vendor/sucrase");
84375
84394
 
84376
84395
  // src/config.ts
84377
- var config_exports = {};
84378
- __export(config_exports, {
84379
- PEACH_CONFIGURED_FILES_HOOK: () => PEACH_CONFIGURED_FILES_HOOK,
84380
- PEACH_CONFIG_QUERY_PARAM: () => PEACH_CONFIG_QUERY_PARAM,
84381
- applyPeachConfigToUrl: () => applyPeachConfigToUrl,
84382
- collectConfiguredFileModules: () => collectConfiguredFileModules,
84383
- createPeachBundleConfigFooter: () => createPeachBundleConfigFooter,
84384
- defineConfig: () => defineConfig,
84385
- detachPeachBundleConfigFooter: () => detachPeachBundleConfigFooter,
84386
- hasPeachConfig: () => hasPeachConfig,
84387
- isPackageStubs: () => isPackageStubs,
84388
- isPeachConfig: () => isPeachConfig,
84389
- matchConfigModule: () => matchConfigModule,
84390
- mergePeachConfig: () => mergePeachConfig,
84391
- readNativeRenderer: () => readNativeRenderer,
84392
- readPeachBundleConfig: () => readPeachBundleConfig,
84393
- readPeachBundleConfigFooter: () => readPeachBundleConfigFooter,
84394
- readPeachConfigFromSearchParams: () => readPeachConfigFromSearchParams
84395
- });
84396
84396
  init_version();
84397
84397
  init_bundle_global_footer();
84398
84398
  init_is_record();
@@ -84418,21 +84418,6 @@ function isNativeViewSource(value) {
84418
84418
  }
84419
84419
 
84420
84420
  // src/config.ts
84421
- function readNativeRenderer(value) {
84422
- if (value === void 0) return void 0;
84423
- if (value === "paper" || value === "fabric") return value;
84424
- throw new Error("nativeRenderer must be paper or fabric");
84425
- }
84426
- function matchConfigModule(name3, modules) {
84427
- const entries = Object.entries(modules).sort((a, b) => b[0].length - a[0].length);
84428
- const modulePath = name3.startsWith("/") ? name3 : `/${name3}`;
84429
- for (const [pattern, resolution] of entries) {
84430
- if (modulePath.includes(`/${pattern}/`) || modulePath.endsWith(`/${pattern}`) || modulePath.endsWith(`/${pattern}.js`) || modulePath.endsWith(`/${pattern}.ts`) || modulePath.endsWith(`/${pattern}.tsx`)) {
84431
- return { pattern, resolution };
84432
- }
84433
- }
84434
- return void 0;
84435
- }
84436
84421
  function isHybridObjectAnswer(answer2) {
84437
84422
  return answer2 === "unsupported" || isRecord(answer2) && typeof answer2.file === "string" && answer2.file.length > 0;
84438
84423
  }
@@ -84456,25 +84441,6 @@ function isPackageStubs(value) {
84456
84441
  )) && (value.hybridObjects === void 0 || isPackageHybridObjects(value.hybridObjects));
84457
84442
  }
84458
84443
  var PEACH_CONFIG_QUERY_PARAM = "peachConfig";
84459
- function collectConfiguredFileModules(config) {
84460
- return [
84461
- ...new Set(
84462
- [
84463
- "modules",
84464
- "turboModules",
84465
- "nativeModules",
84466
- "nativeViews",
84467
- "nativeHybridObjects"
84468
- ].flatMap((key2) => {
84469
- const entries = config && Reflect.get(config, key2);
84470
- if (!isRecord(entries)) return [];
84471
- return Object.values(entries).flatMap(
84472
- (entry) => isRecord(entry) && typeof entry.file === "string" ? [entry.file] : []
84473
- );
84474
- })
84475
- )
84476
- ];
84477
- }
84478
84444
  function isPeachConfig(value) {
84479
84445
  if (!isRecord(value)) return false;
84480
84446
  return (value.storeKit === void 0 || isRecord(value.storeKit) && typeof value.storeKit.configuration === "string" && value.storeKit.configuration.trim().length > 0) && (value.nativeRenderer === void 0 || value.nativeRenderer === "paper" || value.nativeRenderer === "fabric") && (value.mapKit === void 0 || isRecord(value.mapKit) && typeof value.mapKit.token === "string" && value.mapKit.token.length > 0 && value.mapKit.token === value.mapKit.token.trim()) && (value.runtimeVersion === void 0 || typeof value.runtimeVersion === "string" && value.runtimeVersion === value.runtimeVersion.trim() && isValidRuntimeVersion(value.runtimeVersion)) && [
@@ -84493,44 +84459,6 @@ function isPeachConfig(value) {
84493
84459
  (entry) => entry === "noop" || isNativeViewSource(entry) || isRecord(entry) && typeof entry.file === "string" && entry.file.length > 0
84494
84460
  ));
84495
84461
  }
84496
- var BUNDLE_CONFIG_PREFIX = "globalThis.__peachBundleConfig=";
84497
- var PEACH_CONFIGURED_FILES_HOOK = "__peachInstallConfiguredFiles";
84498
- function readPeachBundleConfig(value) {
84499
- if (value === void 0 || value === null) return null;
84500
- if (!isRecord(value) || !isPeachConfig(value.config) || !Array.isArray(value.runtimePackages) || !value.runtimePackages.every((name3) => typeof name3 === "string")) {
84501
- throw new Error("configured bundle metadata is malformed");
84502
- }
84503
- return { config: value.config, runtimePackages: [...value.runtimePackages] };
84504
- }
84505
- function readPeachBundleConfigFooter(source) {
84506
- const start = findBundleFooter(source, BUNDLE_CONFIG_PREFIX);
84507
- if (start < 0) return null;
84508
- const end = source.indexOf("\n", start + 1);
84509
- const line = source.slice(start + 1, end < 0 ? void 0 : end);
84510
- if (!line.endsWith(";")) throw new Error("configured bundle footer is truncated");
84511
- const result = readPeachBundleConfig(
84512
- JSON.parse(line.slice(BUNDLE_CONFIG_PREFIX.length, -1))
84513
- );
84514
- if (!result) throw new Error("configured bundle footer is empty");
84515
- return result;
84516
- }
84517
- function createPeachBundleConfigFooter(config) {
84518
- const json = JSON.stringify(config).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/<\//g, "<\\/");
84519
- return "\n" + BUNDLE_CONFIG_PREFIX + json + ";";
84520
- }
84521
- function detachPeachBundleConfigFooter(source) {
84522
- const configuredBundle = readPeachBundleConfigFooter(source);
84523
- if (!configuredBundle) return { source, configuredBundle };
84524
- const start = findBundleFooter(source, BUNDLE_CONFIG_PREFIX);
84525
- const end = source.indexOf("\n", start + 1);
84526
- return {
84527
- source: source.slice(0, start) + source.slice(end < 0 ? source.length : end),
84528
- configuredBundle
84529
- };
84530
- }
84531
- function defineConfig(config) {
84532
- return config;
84533
- }
84534
84462
  function hasOwnKeys(value) {
84535
84463
  return !!value && Object.keys(value).length > 0;
84536
84464
  }
@@ -84538,47 +84466,6 @@ function hasPeachConfig(config) {
84538
84466
  if (!config) return false;
84539
84467
  return config.nativeRenderer !== void 0 || config.mapKit !== void 0 || typeof config.runtimeVersion === "string" && config.runtimeVersion.length > 0 || hasOwnKeys(config.modules) || hasOwnKeys(config.turboModules) || hasOwnKeys(config.nativeModules) || hasOwnKeys(config.nativeViews) || hasOwnKeys(config.nativeHybridObjects) || hasOwnKeys(config.env) || hasOwnKeys(config.network?.remap) || hasOwnKeys(config.initialProps) || hasOwnKeys(config.initialState);
84540
84468
  }
84541
- function mergePeachConfig(base2, override) {
84542
- if (!hasPeachConfig(base2) && !hasPeachConfig(override)) return void 0;
84543
- if (!hasPeachConfig(base2)) return override ? { ...override } : void 0;
84544
- if (!hasPeachConfig(override)) return base2 ? { ...base2 } : void 0;
84545
- return {
84546
- runtimeVersion: override.runtimeVersion ?? base2.runtimeVersion,
84547
- nativeRenderer: override.nativeRenderer ?? base2.nativeRenderer,
84548
- mapKit: override.mapKit ?? base2.mapKit,
84549
- modules: { ...base2.modules || {}, ...override.modules || {} },
84550
- turboModules: { ...base2.turboModules || {}, ...override.turboModules || {} },
84551
- nativeModules: {
84552
- ...base2.nativeModules || {},
84553
- ...override.nativeModules || {}
84554
- },
84555
- nativeViews: { ...base2.nativeViews || {}, ...override.nativeViews || {} },
84556
- nativeHybridObjects: {
84557
- ...base2.nativeHybridObjects || {},
84558
- ...override.nativeHybridObjects || {}
84559
- },
84560
- env: { ...base2.env || {}, ...override.env || {} },
84561
- network: {
84562
- remap: { ...base2.network?.remap || {}, ...override.network?.remap || {} }
84563
- },
84564
- initialProps: { ...base2.initialProps || {}, ...override.initialProps || {} },
84565
- initialState: { ...base2.initialState || {}, ...override.initialState || {} }
84566
- };
84567
- }
84568
- function readPeachConfigFromSearchParams(searchParams) {
84569
- const raw2 = searchParams.get(PEACH_CONFIG_QUERY_PARAM);
84570
- if (!raw2) return void 0;
84571
- let parsed2;
84572
- try {
84573
- parsed2 = JSON.parse(raw2);
84574
- } catch (error) {
84575
- const message = error instanceof Error ? error.message : String(error);
84576
- console.warn(`[peach] invalid ${PEACH_CONFIG_QUERY_PARAM}: ${message}`);
84577
- return void 0;
84578
- }
84579
- if (isRecord(parsed2)) readNativeRenderer(parsed2.nativeRenderer);
84580
- return isPeachConfig(parsed2) && hasPeachConfig(parsed2) ? parsed2 : void 0;
84581
- }
84582
84469
  function applyPeachConfigToUrl(url, config) {
84583
84470
  const parsed2 = new URL(url);
84584
84471
  if (hasPeachConfig(config)) {
@@ -84589,48 +84476,22 @@ function applyPeachConfigToUrl(url, config) {
84589
84476
  return parsed2.toString();
84590
84477
  }
84591
84478
 
84592
- // cli/app-stubs.ts
84479
+ // src/estree-walk.ts
84593
84480
  init_is_record();
84594
- init_nitro_source();
84595
- init_public_brand();
84596
-
84597
- // src/visit-parsed-program.ts
84598
- var import_oxc_parser = require("oxc-parser");
84599
- init_is_record();
84600
- function visitParsedProgram(program, visitor) {
84601
- const enterByType = /* @__PURE__ */ new Map();
84602
- const exitByType = /* @__PURE__ */ new Map();
84603
- for (const key2 of Object.keys(visitor)) {
84604
- const handler = Reflect.get(visitor, key2);
84605
- if (typeof handler !== "function") continue;
84606
- const invoke = (node) => {
84607
- handler(node);
84608
- };
84609
- if (key2.endsWith(":exit")) exitByType.set(key2.slice(0, -5), invoke);
84610
- else enterByType.set(key2, invoke);
84611
- }
84612
- if (enterByType.size === 0 && exitByType.size === 0) return;
84613
- const hasExit = exitByType.size > 0;
84614
- function visit3(value) {
84615
- if (Array.isArray(value)) {
84616
- for (let i = 0; i < value.length; i++) visit3(value[i]);
84617
- return;
84618
- }
84619
- if (!isRecord(value) || typeof value.type !== "string") return;
84620
- const keys = import_oxc_parser.visitorKeys[value.type];
84621
- if (!keys) return;
84622
- const enter = enterByType.get(value.type);
84623
- if (enter) enter(value);
84624
- for (let i = 0; i < keys.length; i++) visit3(value[keys[i]]);
84625
- if (hasExit) {
84626
- const exit = exitByType.get(value.type);
84627
- if (exit) exit(value);
84628
- }
84629
- }
84630
- visit3(program);
84481
+ function isNode(value) {
84482
+ return isRecord(value) && typeof value.type === "string";
84483
+ }
84484
+ function visitNodes(node, enter) {
84485
+ enter(node);
84486
+ for (const value of Object.values(node))
84487
+ for (const child of Array.isArray(value) ? value : [value])
84488
+ if (isNode(child)) visitNodes(child, enter);
84631
84489
  }
84632
84490
 
84633
84491
  // cli/app-stubs.ts
84492
+ init_is_record();
84493
+ init_nitro_source();
84494
+ init_public_brand();
84634
84495
  init_detect();
84635
84496
  function stubPackageTarget(name3) {
84636
84497
  const match = /^(?:@[^/]+\/)?peach-stub-(.+)$/.exec(name3);
@@ -84832,8 +84693,17 @@ function sourceNativeRequests(file, text7, includeLegacy = false) {
84832
84693
  } catch {
84833
84694
  return [];
84834
84695
  }
84835
- const { program, errors } = (0, import_oxc_parser2.parseSync)(file, code, { lang: "jsx" });
84836
- if (errors.length) return [];
84696
+ let program;
84697
+ try {
84698
+ program = (0, import_acorn.parse)(code, {
84699
+ ecmaVersion: "latest",
84700
+ sourceType: "module",
84701
+ allowHashBang: true,
84702
+ allowReturnOutsideFunction: true
84703
+ });
84704
+ } catch {
84705
+ return [];
84706
+ }
84837
84707
  const found2 = [];
84838
84708
  const androidRanges = [];
84839
84709
  const guard = (test, branch) => {
@@ -84848,50 +84718,63 @@ function sourceNativeRequests(file, text7, includeLegacy = false) {
84848
84718
  line: code.slice(0, at).split("\n").length
84849
84719
  });
84850
84720
  };
84851
- visitParsedProgram(program, {
84852
- IfStatement(node) {
84853
- guard(node.test, node.consequent);
84854
- },
84855
- ConditionalExpression(node) {
84856
- guard(node.test, node.consequent);
84857
- },
84858
- LogicalExpression(node) {
84859
- if (node.operator === "&&") guard(node.left, node.right);
84860
- },
84861
- VariableDeclarator(node) {
84862
- if (!includeLegacy || !node.init || nativeLookupName(node.init) !== "NativeModules" || node.id.type !== "ObjectPattern")
84863
- return;
84864
- for (const property of node.id.properties) {
84865
- if (property.type !== "Property") continue;
84866
- const key2 = property.key;
84867
- if (!property.computed && key2.type === "Identifier")
84868
- add("module", key2.name, property.start, false);
84869
- else if (key2.type === "Literal" && typeof key2.value === "string")
84870
- add("module", key2.value, property.start, false);
84721
+ visitNodes(program, (node) => {
84722
+ switch (node.type) {
84723
+ case "IfStatement": {
84724
+ guard(node.test, node.consequent);
84725
+ break;
84871
84726
  }
84872
- },
84873
- CallExpression(node) {
84874
- const first = node.arguments[0];
84875
- if (first?.type !== "Literal" || typeof first.value !== "string") return;
84876
- const callee = node.callee;
84877
- const lookup3 = nativeLookupName(callee);
84878
- if (callee.type === "MemberExpression" && !callee.computed && nativeLookupName(callee.object) === "TurboModuleRegistry" && (lookup3 === "get" || lookup3 === "getEnforcing")) {
84879
- add("module", first.value, node.start, false);
84880
- } else if (lookup3) {
84881
- if (["requireNativeModule", "requireOptionalNativeModule"].includes(lookup3))
84882
- add("module", first.value, node.start, lookup3 === "requireOptionalNativeModule");
84883
- else if (["requireNativeComponent", "codegenNativeComponent"].includes(lookup3))
84884
- add("view", first.value, node.start, false);
84885
- else if (["requireNativeView", "requireNativeViewManager"].includes(lookup3)) {
84886
- const second = node.arguments[1];
84887
- const name3 = second?.type === "Literal" && typeof second.value === "string" ? `${first.value}_${second.value}` : first.value;
84888
- add("view", name3, node.start, false);
84727
+ case "ConditionalExpression": {
84728
+ guard(node.test, node.consequent);
84729
+ break;
84730
+ }
84731
+ case "LogicalExpression": {
84732
+ if (node.operator === "&&") guard(node.left, node.right);
84733
+ break;
84734
+ }
84735
+ case "VariableDeclarator": {
84736
+ if (!includeLegacy || !node.init || nativeLookupName(node.init) !== "NativeModules" || node.id.type !== "ObjectPattern")
84737
+ return;
84738
+ for (const property of node.id.properties) {
84739
+ if (property.type !== "Property") continue;
84740
+ const key2 = property.key;
84741
+ if (!property.computed && key2.type === "Identifier")
84742
+ add("module", key2.name, property.start, false);
84743
+ else if (key2.type === "Literal" && typeof key2.value === "string")
84744
+ add("module", key2.value, property.start, false);
84889
84745
  }
84746
+ break;
84747
+ }
84748
+ case "CallExpression": {
84749
+ const first = node.arguments[0];
84750
+ if (first?.type !== "Literal" || typeof first.value !== "string") return;
84751
+ const callee = node.callee;
84752
+ const lookup3 = nativeLookupName(callee);
84753
+ if (callee.type === "MemberExpression" && !callee.computed && nativeLookupName(callee.object) === "TurboModuleRegistry" && (lookup3 === "get" || lookup3 === "getEnforcing")) {
84754
+ add("module", first.value, node.start, false);
84755
+ } else if (lookup3) {
84756
+ if (["requireNativeModule", "requireOptionalNativeModule"].includes(lookup3))
84757
+ add(
84758
+ "module",
84759
+ first.value,
84760
+ node.start,
84761
+ lookup3 === "requireOptionalNativeModule"
84762
+ );
84763
+ else if (["requireNativeComponent", "codegenNativeComponent"].includes(lookup3))
84764
+ add("view", first.value, node.start, false);
84765
+ else if (["requireNativeView", "requireNativeViewManager"].includes(lookup3)) {
84766
+ const second = node.arguments[1];
84767
+ const name3 = second?.type === "Literal" && typeof second.value === "string" ? `${first.value}_${second.value}` : first.value;
84768
+ add("view", name3, node.start, false);
84769
+ }
84770
+ }
84771
+ break;
84772
+ }
84773
+ case "MemberExpression": {
84774
+ if (includeLegacy && !node.computed && nativeLookupName(node.object) === "NativeModules" && node.property.type === "Identifier")
84775
+ add("module", node.property.name, node.start, false);
84776
+ break;
84890
84777
  }
84891
- },
84892
- MemberExpression(node) {
84893
- if (includeLegacy && !node.computed && nativeLookupName(node.object) === "NativeModules" && node.property.type === "Identifier")
84894
- add("module", node.property.name, node.start, false);
84895
84778
  }
84896
84779
  });
84897
84780
  return found2;
@@ -84968,11 +84851,11 @@ function configModule(configPath, packages) {
84968
84851
  if (configPath && (configPath.endsWith(".cjs") || configPath.endsWith(".js") && /\bmodule\.exports\b/.test(readSmallFile(configPath) ?? "")))
84969
84852
  return ["module.exports = {", ...body, "}"].join("\n");
84970
84853
  return [
84971
- `import { defineConfig } from '${rnxPublicBrand.packageName}/config'`,
84854
+ `import type { PeachConfig } from '${rnxPublicBrand.packageName}/config'`,
84972
84855
  "",
84973
- "export default defineConfig({",
84856
+ "export default {",
84974
84857
  ...body,
84975
- "})"
84858
+ "} satisfies PeachConfig"
84976
84859
  ].join("\n");
84977
84860
  }
84978
84861
  function wireSlotMigration(appDir, configPath, wire, kept = []) {
@@ -85201,9 +85084,6 @@ function workspacePackageDirs(appDir, pkg) {
85201
85084
  return [...dirs];
85202
85085
  }
85203
85086
 
85204
- // src/app-config.ts
85205
- init_public_brand();
85206
-
85207
85087
  // ../peach-globals/src/dynamic-type-scales.ts
85208
85088
  var IOS_DYNAMIC_TYPE_SCALES = [
85209
85089
  0.823,
@@ -85954,16 +85834,9 @@ async function loadRNXAppStubs(project2) {
85954
85834
  async function loadConfigFile(project2) {
85955
85835
  if (!project2.configPath) return void 0;
85956
85836
  try {
85957
- const jiti = (0, import_jiti.createJiti)(__sootsim_import_meta_url, {
85958
- interopDefault: true,
85959
- // metro serializes repeatedly in one process; edits must reload the config.
85960
- moduleCache: false,
85961
- tryNative: false,
85962
- virtualModules: {
85963
- [`${rnxPublicBrand.packageName}/config`]: config_exports
85964
- }
85965
- });
85966
- const loaded4 = project2.configPath.endsWith(".json") ? JSON.parse((0, import_node_fs31.readFileSync)(project2.configPath, "utf8")) : await jiti.import(project2.configPath, { default: true });
85837
+ const configPath = import_node_path29.default.resolve(project2.configPath);
85838
+ delete (0, import_node_module5.createRequire)(__sootsim_import_meta_url).cache[configPath];
85839
+ const loaded4 = configPath.endsWith(".json") ? JSON.parse((0, import_node_fs31.readFileSync)(configPath, "utf8")) : Reflect.get(await import(configPath), "default");
85967
85840
  if (!isPeachConfig(loaded4)) {
85968
85841
  throw new Error("the default export must be a peach config object");
85969
85842
  }
@@ -86028,14 +85901,14 @@ init_react_native_core_digest();
86028
85901
  init_swift_compiler_digest();
86029
85902
  init_swift_standin_digest();
86030
85903
  function expoNativeCompilerDigestValue() {
86031
- return true ? "3e8fe9ffda4be4b34b27b8625184f164ae16034e248705a9dacdb82bf81971d2" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
85904
+ return true ? "d2721a5a426ac104272e382f27c37ac5deab8be0ed9aff4e274daba20781f6df" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
86032
85905
  }
86033
85906
 
86034
85907
  // src/expo-native-workspace.ts
86035
85908
  var import_node_child_process39 = require("node:child_process");
86036
85909
  var import_node_crypto45 = require("node:crypto");
86037
85910
  var import_node_fs81 = __toESM(require("node:fs"), 1);
86038
- var import_node_module7 = require("node:module");
85911
+ var import_node_module8 = require("node:module");
86039
85912
  var import_node_os19 = __toESM(require("node:os"), 1);
86040
85913
  var import_node_path81 = __toESM(require("node:path"), 1);
86041
85914
  var import_node_util8 = require("node:util");
@@ -86192,7 +86065,7 @@ init_native_git();
86192
86065
  var import_node_child_process19 = require("node:child_process");
86193
86066
  var import_node_crypto20 = require("node:crypto");
86194
86067
  var import_node_fs39 = __toESM(require("node:fs"), 1);
86195
- var import_node_module6 = require("node:module");
86068
+ var import_node_module7 = require("node:module");
86196
86069
  var import_node_os8 = __toESM(require("node:os"), 1);
86197
86070
  var import_node_path37 = __toESM(require("node:path"), 1);
86198
86071
  var import_node_url3 = require("node:url");
@@ -86271,7 +86144,7 @@ async function generateAppSdkInChild(generatorFile, frameworks, options) {
86271
86144
  }
86272
86145
  }
86273
86146
  async function selectOneSDK(appRoot) {
86274
- const require2 = (0, import_node_module6.createRequire)(import_node_path37.default.join(appRoot, "package.json"));
86147
+ const require2 = (0, import_node_module7.createRequire)(import_node_path37.default.join(appRoot, "package.json"));
86275
86148
  let onePackage;
86276
86149
  try {
86277
86150
  onePackage = require2.resolve("one/package.json");
@@ -96131,7 +96004,7 @@ function declaresNativeDependency(manifest, name3) {
96131
96004
  return Object.hasOwn(manifest.dependencies ?? {}, name3) || Object.hasOwn(manifest.devDependencies ?? {}, name3);
96132
96005
  }
96133
96006
  async function prepareNativeProject(app, workspace, manifest, stage, execute, report, oneSdkPrepared) {
96134
- const appRequire = (0, import_node_module7.createRequire)(import_node_path81.default.join(app, "package.json"));
96007
+ const appRequire = (0, import_node_module8.createRequire)(import_node_path81.default.join(app, "package.json"));
96135
96008
  const sourcePodEnv = {
96136
96009
  EXPO_USE_PRECOMPILED_MODULES: "0",
96137
96010
  ONE_PREBUILT_IOS: "0",
@@ -96676,7 +96549,7 @@ function writeExpoDiscovery(options) {
96676
96549
  // src/expo-native-prebuilt.ts
96677
96550
  var import_node_crypto48 = require("node:crypto");
96678
96551
  var import_node_fs86 = __toESM(require("node:fs"), 1);
96679
- var import_node_module10 = require("node:module");
96552
+ var import_node_module11 = require("node:module");
96680
96553
  var import_node_path86 = __toESM(require("node:path"), 1);
96681
96554
  var import_node_util9 = require("node:util");
96682
96555
  var import_plist7 = __toESM(require("peachsim/vendor/plist"), 1);
@@ -96720,7 +96593,7 @@ init_native_app_identity_project();
96720
96593
  // src/native-firebase-config.ts
96721
96594
  var import_node_child_process40 = require("node:child_process");
96722
96595
  var import_node_fs84 = __toESM(require("node:fs"), 1);
96723
- var import_node_module9 = require("node:module");
96596
+ var import_node_module10 = require("node:module");
96724
96597
  var import_node_os20 = __toESM(require("node:os"), 1);
96725
96598
  var import_node_path84 = __toESM(require("node:path"), 1);
96726
96599
  init_is_record();
@@ -96845,7 +96718,7 @@ function packageRootOf(appRoot, file) {
96845
96718
  async function expoNativeInputs(appRoot) {
96846
96719
  appRoot = import_node_fs86.default.realpathSync(appRoot);
96847
96720
  if (findXcodeProject(import_node_path86.default.join(appRoot, "ios"))) return null;
96848
- const appRequire = (0, import_node_module10.createRequire)(import_node_path86.default.join(appRoot, "package.json"));
96721
+ const appRequire = (0, import_node_module11.createRequire)(import_node_path86.default.join(appRoot, "package.json"));
96849
96722
  let fingerprintEntry;
96850
96723
  try {
96851
96724
  fingerprintEntry = appRequire.resolve("@expo/fingerprint", {
@@ -97061,7 +96934,7 @@ var NATIVE_PREPARED_QUERY_PARAM = "prepared";
97061
96934
 
97062
96935
  // src/react-native-bridge-modules.ts
97063
96936
  var import_node_fs97 = __toESM(require("node:fs"), 1);
97064
- var import_node_module11 = require("node:module");
96937
+ var import_node_module12 = require("node:module");
97065
96938
  var import_node_path96 = __toESM(require("node:path"), 1);
97066
96939
  init_answeredNativePackages();
97067
96940
  init_swift_compile();
@@ -97538,7 +97411,7 @@ function collectInstalledSwiftBridgeUnits(appRoot, units, installedNamespaces, s
97538
97411
  const dependencies = manifest && typeof manifest === "object" ? Reflect.get(manifest, "dependencies") : null;
97539
97412
  if (!dependencies || typeof dependencies !== "object" || Array.isArray(dependencies))
97540
97413
  return;
97541
- const appRequire = (0, import_node_module11.createRequire)(manifestPath);
97414
+ const appRequire = (0, import_node_module12.createRequire)(manifestPath);
97542
97415
  const namespacesSeen = new Set(units.map((unit2) => unit2.namespace));
97543
97416
  for (const packageName of Object.keys(dependencies).sort()) {
97544
97417
  signal?.throwIfAborted();
@@ -98206,7 +98079,7 @@ function enrichInstalledUnits(units, installed, namespaceGroups, provided, modul
98206
98079
  const byPath = [...installedTargets].sort((a, b) => b.path.length - a.path.length);
98207
98080
  const reactNativeRoot = import_node_fs113.default.realpathSync(
98208
98081
  import_node_path112.default.dirname(
98209
- (0, import_node_module16.createRequire)(import_node_path112.default.join(appRoot, "package.json")).resolve(
98082
+ (0, import_node_module17.createRequire)(import_node_path112.default.join(appRoot, "package.json")).resolve(
98210
98083
  "react-native/package.json"
98211
98084
  )
98212
98085
  )
@@ -98645,7 +98518,7 @@ async function collectExpoSwiftSourcesUncached(appRoot, signal, installedWorkspa
98645
98518
  signal?.throwIfAborted();
98646
98519
  appRoot = import_node_fs113.default.realpathSync(appRoot);
98647
98520
  const appConfig = await loadRNXAppConfig(resolveAppProject(appRoot));
98648
- const appRequire = (0, import_node_module16.createRequire)(import_node_path112.default.join(appRoot, "package.json"));
98521
+ const appRequire = (0, import_node_module17.createRequire)(import_node_path112.default.join(appRoot, "package.json"));
98649
98522
  let expoRoot;
98650
98523
  try {
98651
98524
  expoRoot = import_node_path112.default.dirname(appRequire.resolve("expo/package.json"));
@@ -99778,7 +99651,7 @@ async function compileExpoSwiftModulesTraced(root, base2, publishArtifact, optio
99778
99651
  const reactProvider = units.some((unit2) => unit2.reactNativeProvider) ? await (async () => {
99779
99652
  const projectRoot = options.installedWorkspace ? import_node_path112.default.dirname(import_node_path112.default.dirname(options.installedWorkspace)) : (await prepareExpoNativeWorkspace(root, signal, options.iosTarget)).app;
99780
99653
  const reactNativeRoot = import_node_path112.default.dirname(
99781
- (0, import_node_module16.createRequire)(import_node_path112.default.join(projectRoot, "package.json")).resolve(
99654
+ (0, import_node_module17.createRequire)(import_node_path112.default.join(projectRoot, "package.json")).resolve(
99782
99655
  "react-native/package.json"
99783
99656
  )
99784
99657
  );
@@ -100261,7 +100134,7 @@ async function handleExpoSwiftRequest(req, res) {
100261
100134
  // src/expo-widgets-bundle.ts
100262
100135
  var import_node_child_process55 = require("node:child_process");
100263
100136
  var import_promises10 = __toESM(require("node:fs/promises"), 1);
100264
- var import_node_module18 = require("node:module");
100137
+ var import_node_module19 = require("node:module");
100265
100138
  var import_node_path123 = __toESM(require("node:path"), 1);
100266
100139
  var import_node_util14 = require("node:util");
100267
100140
 
@@ -100482,7 +100355,8 @@ init_is_record();
100482
100355
  // src/one-native-app-config.ts
100483
100356
  var import_node_fs115 = __toESM(require("node:fs"), 1);
100484
100357
  var import_node_path114 = __toESM(require("node:path"), 1);
100485
- var import_oxc_parser3 = require("oxc-parser");
100358
+ var import_acorn3 = require("peachsim/vendor/acorn");
100359
+ var import_sucrase4 = require("peachsim/vendor/sucrase");
100486
100360
  init_is_record();
100487
100361
  var CONFIG_FILES = [
100488
100362
  "vite.config.ts",
@@ -100510,10 +100384,6 @@ function staticValue(node) {
100510
100384
  return typeof value === "number" ? -value : NOT_STATIC;
100511
100385
  }
100512
100386
  return NOT_STATIC;
100513
- case "TSAsExpression":
100514
- case "TSSatisfiesExpression":
100515
- case "ParenthesizedExpression":
100516
- return staticValue(node.expression);
100517
100387
  case "ArrayExpression": {
100518
100388
  const items2 = [];
100519
100389
  for (const element of node.elements) {
@@ -100545,16 +100415,18 @@ function staticObject(node) {
100545
100415
  function readOneNativeApp(root) {
100546
100416
  const file = oneConfigPath(root);
100547
100417
  if (!file) return null;
100548
- const { program } = (0, import_oxc_parser3.parseSync)(file, import_node_fs115.default.readFileSync(file, "utf8"));
100418
+ const { code } = (0, import_sucrase4.transform)(import_node_fs115.default.readFileSync(file, "utf8"), {
100419
+ transforms: /\.[cm]?ts$/.test(file) ? ["typescript"] : [],
100420
+ disableESTransforms: true
100421
+ });
100549
100422
  let app = null;
100550
- visitParsedProgram(program, {
100551
- CallExpression(call) {
100552
- if (app || call.callee.type !== "Identifier" || call.callee.name !== "one") return;
100553
- const [options] = call.arguments;
100554
- if (options?.type !== "ObjectExpression") return;
100555
- const { native } = staticObject(options);
100556
- if (isRecord(native) && isRecord(native.app)) app = native.app;
100557
- }
100423
+ visitNodes((0, import_acorn3.parse)(code, { ecmaVersion: "latest", sourceType: "module" }), (call) => {
100424
+ if (app || call.type !== "CallExpression") return;
100425
+ if (call.callee.type !== "Identifier" || call.callee.name !== "one") return;
100426
+ const [options] = call.arguments;
100427
+ if (options?.type !== "ObjectExpression") return;
100428
+ const { native } = staticObject(options);
100429
+ if (isRecord(native) && isRecord(native.app)) app = native.app;
100558
100430
  });
100559
100431
  return app;
100560
100432
  }
@@ -100564,18 +100436,19 @@ function readAssetCatalog(files2, readContents2, imageUri, accentName) {
100564
100436
  const colors = enumerateBundleColors(files2, readContents2);
100565
100437
  const symbols = enumerateBundleSymbols(files2, readContents2, () => ".");
100566
100438
  const images = {};
100567
- for (const { name: name3, file, scale, renderingMode } of enumerateBundleImages(
100439
+ for (const { name: name3, file, scale, renderingMode, fileNames } of enumerateBundleImages(
100568
100440
  files2,
100569
100441
  readContents2
100570
100442
  )) {
100571
100443
  const uri = imageUri(file);
100572
- if (uri !== null)
100573
- (images[name3] ??= []).push({
100574
- uri,
100575
- scale,
100576
- ...renderingMode ? { renderingMode } : {}
100577
- });
100444
+ if (uri === null) continue;
100445
+ const variant2 = { uri, scale, ...renderingMode ? { renderingMode } : {} };
100446
+ for (const lookup3 of [name3, ...fileNames ?? []]) {
100447
+ const variants = images[lookup3] ??= [];
100448
+ variants.push(variant2);
100449
+ }
100578
100450
  }
100451
+ for (const variants of Object.values(images)) variants.sort((a, b) => a.scale - b.scale);
100579
100452
  if (accentName === null && Object.keys(colors).length === 0 && Object.keys(images).length === 0 && Object.keys(symbols).length === 0)
100580
100453
  return null;
100581
100454
  return { colors, images, symbols, accentName };
@@ -101834,7 +101707,7 @@ var handleNitroRequest = compiledModuleRequestHandler(
101834
101707
  init_swift_root_lock();
101835
101708
  var EXPO_WIDGETS_ROUTE = "/__peach/expo-widgets";
101836
101709
  async function buildExpoWidgetsBundle(appRoot, origin = "") {
101837
- const require2 = (0, import_node_module18.createRequire)(import_node_path123.default.join(appRoot, "package.json"));
101710
+ const require2 = (0, import_node_module19.createRequire)(import_node_path123.default.join(appRoot, "package.json"));
101838
101711
  let manifest;
101839
101712
  try {
101840
101713
  manifest = require2.resolve("expo-widgets/package.json");
@@ -101874,7 +101747,7 @@ init_kotlinDiscoveryContract();
101874
101747
 
101875
101748
  // src/one-native-source.ts
101876
101749
  var import_node_fs131 = __toESM(require("node:fs"), 1);
101877
- var import_node_module20 = require("node:module");
101750
+ var import_node_module21 = require("node:module");
101878
101751
  var import_node_path132 = __toESM(require("node:path"), 1);
101879
101752
  var import_node_url7 = require("node:url");
101880
101753
  var import_ws = require("peachsim/vendor/ws");
@@ -102076,7 +101949,7 @@ function send2(app, change) {
102076
101949
  if (client2.readyState === import_ws.WebSocket.OPEN) client2.send(message);
102077
101950
  }
102078
101951
  async function swiftPackages2(root) {
102079
- const resolved = (0, import_node_module20.createRequire)(import_node_path132.default.join(root, "package.json")).resolve(
101952
+ const resolved = (0, import_node_module21.createRequire)(import_node_path132.default.join(root, "package.json")).resolve(
102080
101953
  "vxrn/swift-package-id"
102081
101954
  );
102082
101955
  const loaded4 = await import((0, import_node_url7.pathToFileURL)(resolved).href);
@@ -102694,7 +102567,7 @@ init_runtime_packs();
102694
102567
  init_swift_submit();
102695
102568
 
102696
102569
  // src/turbo-bundle.ts
102697
- var import_node_module22 = require("node:module");
102570
+ var import_node_module23 = require("node:module");
102698
102571
  var import_node_path136 = __toESM(require("node:path"), 1);
102699
102572
  init_installed_native_libraries();
102700
102573
  init_swift_distribution();
@@ -102751,7 +102624,7 @@ async function compileTurboApp(appRoot, origin, moduleRoot, iosTarget, prepareRe
102751
102624
  const { artifact, collection } = await compileTurboModule({
102752
102625
  appRoot,
102753
102626
  reactNativeRoot: import_node_path136.default.dirname(
102754
- (0, import_node_module22.createRequire)(import_node_path136.default.join(projectRoot, "package.json")).resolve(
102627
+ (0, import_node_module23.createRequire)(import_node_path136.default.join(projectRoot, "package.json")).resolve(
102755
102628
  "react-native/package.json"
102756
102629
  )
102757
102630
  ),
@@ -106136,6 +106009,8 @@ function describeEvent(event) {
106136
106009
  return `websocket frame opcode ${event.opcode} (${event.data.byteLength} bytes) to ${new URL(event.url).origin}`;
106137
106010
  case "tcp":
106138
106011
  return `tcp ${event.host}:${event.port}`;
106012
+ case "udp":
106013
+ return `udp ${event.host}:${event.port}`;
106139
106014
  case "tunnel":
106140
106015
  return `tunnel ${event.host}:${event.port}`;
106141
106016
  case "dns":