peachsim 0.1.2158 → 0.1.2172

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 (131) hide show
  1. package/README.md +7 -1
  2. package/cli/app-catalog.ts +22 -15
  3. package/cli/bridge-flow-runner.ts +8 -7
  4. package/cli/commands/cleanup.ts +4 -2
  5. package/cli/commands/control.ts +2 -1
  6. package/cli/commands/kotlin.ts +2 -2
  7. package/cli/commands/package.ts +22 -7
  8. package/cli/commands/shell-url.ts +4 -2
  9. package/cli/native-input.ts +1 -1
  10. package/cli/outbound-endpoints.ts +13 -2
  11. package/dist-lib/agent-daemon-client.cjs +1 -1
  12. package/dist-lib/agent-events.cjs +1 -1
  13. package/dist-lib/attached-projects.cjs +2 -3
  14. package/dist-lib/auth/shared-session.cjs +2 -3
  15. package/dist-lib/backend-origin.cjs +1 -1
  16. package/dist-lib/beta.cjs +1 -1
  17. package/dist-lib/beta.mjs +1 -1
  18. package/dist-lib/bridge-constants.cjs +1 -1
  19. package/dist-lib/bridge-contract-input.cjs +1 -1
  20. package/dist-lib/bridge-contract-input.mjs +1 -1
  21. package/dist-lib/bridge-contract.cjs +1 -1
  22. package/dist-lib/bridge-contract.mjs +1 -1
  23. package/dist-lib/bundle-channel.cjs +3643 -3306
  24. package/dist-lib/capture-contract.cjs +1 -1
  25. package/dist-lib/capture-contract.mjs +1 -1
  26. package/dist-lib/cloud-contract.cjs +1 -1
  27. package/dist-lib/cloud-contract.mjs +1 -1
  28. package/dist-lib/cloud-test-args.cjs +1 -1
  29. package/dist-lib/cloud-test-args.mjs +1 -1
  30. package/dist-lib/cloud.cjs +1 -1
  31. package/dist-lib/cloud.mjs +1 -1
  32. package/dist-lib/config.cjs +1 -1
  33. package/dist-lib/config.mjs +1 -1
  34. package/dist-lib/detox/index.cjs +6 -5
  35. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  36. package/dist-lib/expo-swift-bundle.cjs +4228 -8528
  37. package/dist-lib/expo-swift-metadata.cjs +5 -1
  38. package/dist-lib/expo-swift-metadata.mjs +5 -1
  39. package/dist-lib/home-paths.cjs +2 -3
  40. package/dist-lib/host/bridge-host.cjs +4566 -4253
  41. package/dist-lib/host/fetch-proxy-handler.cjs +35 -15
  42. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  43. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  44. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  45. package/dist-lib/host/websocket-proxy.cjs +1 -1
  46. package/dist-lib/index.cjs +195 -155
  47. package/dist-lib/jump-to-source-babel.cjs +1 -1
  48. package/dist-lib/jump-to-source-native.cjs +1 -1
  49. package/dist-lib/kotlin-host.cjs +12 -7
  50. package/dist-lib/menu.cjs +1 -1
  51. package/dist-lib/menu.mjs +1 -1
  52. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  53. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  54. package/dist-lib/metro-production-bundle.cjs +1 -1
  55. package/dist-lib/metro-production-bundle.mjs +1 -1
  56. package/dist-lib/metro.cjs +42 -16
  57. package/dist-lib/native-app-identity-project.cjs +10 -5
  58. package/dist-lib/native-app-identity-project.mjs +10 -5
  59. package/dist-lib/native-app-identity.cjs +9 -1
  60. package/dist-lib/native-app-identity.mjs +9 -1
  61. package/dist-lib/native-firebase-metadata.cjs +1 -1
  62. package/dist-lib/native-firebase-metadata.mjs +1 -1
  63. package/dist-lib/pdfium-raster.cjs +1 -1
  64. package/dist-lib/pdfium-raster.mjs +1 -1
  65. package/dist-lib/plist.cjs +1 -1
  66. package/dist-lib/plist.mjs +1 -1
  67. package/dist-lib/profiles.cjs +2 -3
  68. package/dist-lib/public-brand.cjs +1 -1
  69. package/dist-lib/public-origins-lib-esm.json +24 -24
  70. package/dist-lib/public-origins-lib.json +99 -78
  71. package/dist-lib/react-native-host-modules.cjs +1 -1
  72. package/dist-lib/react-native-host-modules.mjs +1 -1
  73. package/dist-lib/reap-browser.cjs +4 -2
  74. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  75. package/dist-lib/sdk.cjs +1 -1
  76. package/dist-lib/sdk.mjs +1 -1
  77. package/dist-lib/skills.cjs +5760 -5116
  78. package/dist-lib/swift-compile.cjs +22 -11
  79. package/dist-lib/swift-compile.mjs +22 -11
  80. package/dist-lib/swift-package.cjs +1 -1
  81. package/dist-lib/swift-package.mjs +1 -1
  82. package/dist-lib/swift-submit.cjs +1 -1
  83. package/dist-lib/swift-submit.mjs +1 -1
  84. package/dist-lib/swift-toolchain.cjs +1 -1
  85. package/dist-lib/swift.cjs +1 -1
  86. package/dist-lib/vite-swift.cjs +31 -15
  87. package/dist-lib/vite.cjs +119 -85
  88. package/dist-lib/worklet-executable.cjs +1 -1
  89. package/dist-lib/worklet-executable.mjs +1 -1
  90. package/dist-types/packages/peach-engine/src/engine/inspect-info.d.ts +0 -1
  91. package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +3 -1
  92. package/dist-types/packages/peach-engine/src/render-worker/shell-protocol.d.ts +9 -1
  93. package/dist-types/packages/peach-engine/src/render-worker/ui-frame-clock.d.ts +26 -0
  94. package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime.d.ts +2 -2
  95. package/dist-types/packages/peach-engine/src/render-worker/worklet-sab.d.ts +1 -6
  96. package/kotlin/README.md +5 -0
  97. package/kotlin/sdk.tar.gz +0 -0
  98. package/package.json +2 -1
  99. package/runtime-companion.json +1 -1
  100. package/src/answeredNativePackages.ts +1 -5
  101. package/src/disk-cleanup.ts +44 -1
  102. package/src/expo-native-compiler-digest.ts +2 -0
  103. package/src/expo-native-workspace.ts +61 -16
  104. package/src/expo-swift-host.ts +64 -53
  105. package/src/expoSwiftContract.ts +6 -0
  106. package/src/home-activity.ts +124 -0
  107. package/src/home-paths.ts +1 -2
  108. package/src/installed-native-build-options.ts +27 -3
  109. package/src/kotlin-app.ts +156 -31
  110. package/src/kotlin-compose-bom.ts +64 -0
  111. package/src/kotlin-host.ts +12 -3
  112. package/src/kotlin-version-catalog.ts +77 -0
  113. package/src/native-app-identity-project.ts +3 -0
  114. package/src/native-app-identity.ts +15 -0
  115. package/src/native-git.ts +12 -0
  116. package/src/native-prebuilt.ts +11 -2
  117. package/src/nitro-compile.ts +12 -4
  118. package/src/one-native-app-catalog.ts +59 -0
  119. package/src/one-sdk-preparation.ts +53 -8
  120. package/src/react-native-core-digest.ts +24 -0
  121. package/src/react-native-core.ts +239 -0
  122. package/src/reap-browser.ts +3 -1
  123. package/src/swift-compile.ts +6 -5
  124. package/src/swift-packages.ts +2 -0
  125. package/src/swift-standins.ts +6 -5
  126. package/src/swift-wasm-prune.ts +20 -2
  127. package/src/turbo-bundle.ts +1 -1
  128. package/src/turbo-compile.ts +27 -6
  129. package/src/turbo-source.ts +29 -9
  130. package/src/vite-plugin-one.ts +8 -5
  131. package/src/one-native-app-accent.ts +0 -32
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2158 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2172 | (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;
@@ -39,7 +39,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
39
39
  var define_SWIFT_COVERAGE_SOURCE_DIGESTS_default;
40
40
  var init_define_SWIFT_COVERAGE_SOURCE_DIGESTS = __esm({
41
41
  "<define:__SWIFT_COVERAGE_SOURCE_DIGESTS__>"() {
42
- define_SWIFT_COVERAGE_SOURCE_DIGESTS_default = { "swift-coverage/indexdump.ts": "0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412", "swift-coverage/indexing.ts": "633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272", "swift-coverage/types.ts": "5bd72edc235189d69835155cb0367a1aee14332405896366af3be606dbe8cce8", "swift-coverage/source.ts": "c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee", "swift-coverage/package.ts": "1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b", "swift-coverage/xcode.ts": "65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa", "swift-coverage/xcode-assets.ts": "99e03b74c961d2449afd58c2cbc415ba91d1d469a4f89e461c137fd6c305b27c", "swift-coverage/xcode-asset-symbols.ts": "1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671", "swift-coverage/xcode-bridging.ts": "33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11", "swift-coverage/xcode-packages.ts": "8e6020d17d24474150a5a50d042aca6261819ef75c79680a287a66f395909915", "swift-coverage/xcode-strings.ts": "f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c", "swift-coverage/reader.ts": "da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c", "swift-coverage/provenance.ts": "eb3b41ae8b58b48f6758f084800f188dfb1edb227e483abdd6b80cde66e849b9", "swift-package-manifest.ts": "4b7d4a715cdaf57468ead23f2ff9dce76d02c6a888d73d144d4baa2ae571ba3c", "swift-package.ts": "0b82b3773f9c0b27636f277d9c123b3e631b9c9980995d67d67efa6b3176df4a", "swift-source-file.ts": "93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94", "swift-toolchain.ts": "65a0698bf022ace2f4254f3f891828dedf403d61c102238e242084a2279e04eb", "home-paths.ts": "783c20faf3235e3fc1846b056d788f29d9bfdfc946822b62acf722341b3a10fd", "xcode-header-search.ts": "f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1", "xcode-project.ts": "5f41cd0bd86cb0cffbfb0047348b963f81d5e51cb0e8dd574c739b1a27aa56de", "xcode-target-members.ts": "ad7589132bffab265e8a10b64e24484fe88b4a2b1cc0ee19a97f151a002eca77", "xcode-json-project.ts": "41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6", "openstep-plist.ts": "74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3" };
42
+ define_SWIFT_COVERAGE_SOURCE_DIGESTS_default = { "swift-coverage/indexdump.ts": "0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412", "swift-coverage/indexing.ts": "633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272", "swift-coverage/types.ts": "5bd72edc235189d69835155cb0367a1aee14332405896366af3be606dbe8cce8", "swift-coverage/source.ts": "c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee", "swift-coverage/package.ts": "1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b", "swift-coverage/xcode.ts": "65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa", "swift-coverage/xcode-assets.ts": "99e03b74c961d2449afd58c2cbc415ba91d1d469a4f89e461c137fd6c305b27c", "swift-coverage/xcode-asset-symbols.ts": "1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671", "swift-coverage/xcode-bridging.ts": "33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11", "swift-coverage/xcode-packages.ts": "8e6020d17d24474150a5a50d042aca6261819ef75c79680a287a66f395909915", "swift-coverage/xcode-strings.ts": "f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c", "swift-coverage/reader.ts": "da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c", "swift-coverage/provenance.ts": "eb3b41ae8b58b48f6758f084800f188dfb1edb227e483abdd6b80cde66e849b9", "swift-package-manifest.ts": "4b7d4a715cdaf57468ead23f2ff9dce76d02c6a888d73d144d4baa2ae571ba3c", "swift-package.ts": "0b82b3773f9c0b27636f277d9c123b3e631b9c9980995d67d67efa6b3176df4a", "swift-source-file.ts": "93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94", "swift-toolchain.ts": "65a0698bf022ace2f4254f3f891828dedf403d61c102238e242084a2279e04eb", "home-paths.ts": "f5583b61f8bdd81823b3b29ff519a48daf9993719f194ddb7de22218472e90f9", "xcode-header-search.ts": "f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1", "xcode-project.ts": "5f41cd0bd86cb0cffbfb0047348b963f81d5e51cb0e8dd574c739b1a27aa56de", "xcode-target-members.ts": "ad7589132bffab265e8a10b64e24484fe88b4a2b1cc0ee19a97f151a002eca77", "xcode-json-project.ts": "41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6", "openstep-plist.ts": "74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3" };
43
43
  }
44
44
  });
45
45
 
@@ -113,8 +113,7 @@ function ambientHomeDir() {
113
113
  }
114
114
  function rnxHomeDir() {
115
115
  const override = process.env[PEACH_HOME_ENV];
116
- if (override && override.length > 0) return import_node_path.default.resolve(override);
117
- return ambientHomeDir();
116
+ return override && override.length > 0 ? import_node_path.default.resolve(override) : ambientHomeDir();
118
117
  }
119
118
  function runtimesDir() {
120
119
  return import_node_path.default.join(rnxHomeDir(), "runtimes");
@@ -1475,17 +1474,17 @@ function visit(node, visitor) {
1475
1474
  } else
1476
1475
  visit_(null, node, visitor_, Object.freeze([]));
1477
1476
  }
1478
- function visit_(key, node, visitor, path30) {
1479
- const ctrl = callVisitor(key, node, visitor, path30);
1477
+ function visit_(key, node, visitor, path31) {
1478
+ const ctrl = callVisitor(key, node, visitor, path31);
1480
1479
  if (isNode(ctrl) || isPair(ctrl)) {
1481
- replaceNode(key, path30, ctrl);
1482
- return visit_(key, ctrl, visitor, path30);
1480
+ replaceNode(key, path31, ctrl);
1481
+ return visit_(key, ctrl, visitor, path31);
1483
1482
  }
1484
1483
  if (typeof ctrl !== "symbol") {
1485
1484
  if (isCollection(node)) {
1486
- path30 = Object.freeze(path30.concat(node));
1485
+ path31 = Object.freeze(path31.concat(node));
1487
1486
  for (let i = 0; i < node.items.length; ++i) {
1488
- const ci = visit_(i, node.items[i], visitor, path30);
1487
+ const ci = visit_(i, node.items[i], visitor, path31);
1489
1488
  if (typeof ci === "number")
1490
1489
  i = ci - 1;
1491
1490
  else if (ci === BREAK)
@@ -1496,13 +1495,13 @@ function visit_(key, node, visitor, path30) {
1496
1495
  }
1497
1496
  }
1498
1497
  } else if (isPair(node)) {
1499
- path30 = Object.freeze(path30.concat(node));
1500
- const ck = visit_("key", node.key, visitor, path30);
1498
+ path31 = Object.freeze(path31.concat(node));
1499
+ const ck = visit_("key", node.key, visitor, path31);
1501
1500
  if (ck === BREAK)
1502
1501
  return BREAK;
1503
1502
  else if (ck === REMOVE)
1504
1503
  node.key = null;
1505
- const cv = visit_("value", node.value, visitor, path30);
1504
+ const cv = visit_("value", node.value, visitor, path31);
1506
1505
  if (cv === BREAK)
1507
1506
  return BREAK;
1508
1507
  else if (cv === REMOVE)
@@ -1520,17 +1519,17 @@ async function visitAsync(node, visitor) {
1520
1519
  } else
1521
1520
  await visitAsync_(null, node, visitor_, Object.freeze([]));
1522
1521
  }
1523
- async function visitAsync_(key, node, visitor, path30) {
1524
- const ctrl = await callVisitor(key, node, visitor, path30);
1522
+ async function visitAsync_(key, node, visitor, path31) {
1523
+ const ctrl = await callVisitor(key, node, visitor, path31);
1525
1524
  if (isNode(ctrl) || isPair(ctrl)) {
1526
- replaceNode(key, path30, ctrl);
1527
- return visitAsync_(key, ctrl, visitor, path30);
1525
+ replaceNode(key, path31, ctrl);
1526
+ return visitAsync_(key, ctrl, visitor, path31);
1528
1527
  }
1529
1528
  if (typeof ctrl !== "symbol") {
1530
1529
  if (isCollection(node)) {
1531
- path30 = Object.freeze(path30.concat(node));
1530
+ path31 = Object.freeze(path31.concat(node));
1532
1531
  for (let i = 0; i < node.items.length; ++i) {
1533
- const ci = await visitAsync_(i, node.items[i], visitor, path30);
1532
+ const ci = await visitAsync_(i, node.items[i], visitor, path31);
1534
1533
  if (typeof ci === "number")
1535
1534
  i = ci - 1;
1536
1535
  else if (ci === BREAK)
@@ -1541,13 +1540,13 @@ async function visitAsync_(key, node, visitor, path30) {
1541
1540
  }
1542
1541
  }
1543
1542
  } else if (isPair(node)) {
1544
- path30 = Object.freeze(path30.concat(node));
1545
- const ck = await visitAsync_("key", node.key, visitor, path30);
1543
+ path31 = Object.freeze(path31.concat(node));
1544
+ const ck = await visitAsync_("key", node.key, visitor, path31);
1546
1545
  if (ck === BREAK)
1547
1546
  return BREAK;
1548
1547
  else if (ck === REMOVE)
1549
1548
  node.key = null;
1550
- const cv = await visitAsync_("value", node.value, visitor, path30);
1549
+ const cv = await visitAsync_("value", node.value, visitor, path31);
1551
1550
  if (cv === BREAK)
1552
1551
  return BREAK;
1553
1552
  else if (cv === REMOVE)
@@ -1574,23 +1573,23 @@ function initVisitor(visitor) {
1574
1573
  }
1575
1574
  return visitor;
1576
1575
  }
1577
- function callVisitor(key, node, visitor, path30) {
1576
+ function callVisitor(key, node, visitor, path31) {
1578
1577
  if (typeof visitor === "function")
1579
- return visitor(key, node, path30);
1578
+ return visitor(key, node, path31);
1580
1579
  if (isMap(node))
1581
- return visitor.Map?.(key, node, path30);
1580
+ return visitor.Map?.(key, node, path31);
1582
1581
  if (isSeq(node))
1583
- return visitor.Seq?.(key, node, path30);
1582
+ return visitor.Seq?.(key, node, path31);
1584
1583
  if (isPair(node))
1585
- return visitor.Pair?.(key, node, path30);
1584
+ return visitor.Pair?.(key, node, path31);
1586
1585
  if (isScalar(node))
1587
- return visitor.Scalar?.(key, node, path30);
1586
+ return visitor.Scalar?.(key, node, path31);
1588
1587
  if (isAlias(node))
1589
- return visitor.Alias?.(key, node, path30);
1588
+ return visitor.Alias?.(key, node, path31);
1590
1589
  return void 0;
1591
1590
  }
1592
- function replaceNode(key, path30, node) {
1593
- const parent = path30[path30.length - 1];
1591
+ function replaceNode(key, path31, node) {
1592
+ const parent = path31[path31.length - 1];
1594
1593
  if (isCollection(parent)) {
1595
1594
  parent.items[key] = node;
1596
1595
  } else if (isPair(parent)) {
@@ -2150,10 +2149,10 @@ var init_createNode = __esm({
2150
2149
  });
2151
2150
 
2152
2151
  // ../../node_modules/yaml/browser/dist/nodes/Collection.js
2153
- function collectionFromPath(schema4, path30, value) {
2152
+ function collectionFromPath(schema4, path31, value) {
2154
2153
  let v6 = value;
2155
- for (let i = path30.length - 1; i >= 0; --i) {
2156
- const k = path30[i];
2154
+ for (let i = path31.length - 1; i >= 0; --i) {
2155
+ const k = path31[i];
2157
2156
  if (typeof k === "number" && Number.isInteger(k) && k >= 0) {
2158
2157
  const a = [];
2159
2158
  a[k] = v6;
@@ -2179,7 +2178,7 @@ var init_Collection = __esm({
2179
2178
  init_createNode();
2180
2179
  init_identity();
2181
2180
  init_Node();
2182
- isEmptyPath = (path30) => path30 == null || typeof path30 === "object" && !!path30[Symbol.iterator]().next().done;
2181
+ isEmptyPath = (path31) => path31 == null || typeof path31 === "object" && !!path31[Symbol.iterator]().next().done;
2183
2182
  Collection = class extends NodeBase {
2184
2183
  constructor(type, schema4) {
2185
2184
  super(type);
@@ -2209,11 +2208,11 @@ var init_Collection = __esm({
2209
2208
  * be a Pair instance or a `{ key, value }` object, which may not have a key
2210
2209
  * that already exists in the map.
2211
2210
  */
2212
- addIn(path30, value) {
2213
- if (isEmptyPath(path30))
2211
+ addIn(path31, value) {
2212
+ if (isEmptyPath(path31))
2214
2213
  this.add(value);
2215
2214
  else {
2216
- const [key, ...rest] = path30;
2215
+ const [key, ...rest] = path31;
2217
2216
  const node = this.get(key, true);
2218
2217
  if (isCollection(node))
2219
2218
  node.addIn(rest, value);
@@ -2227,8 +2226,8 @@ var init_Collection = __esm({
2227
2226
  * Removes a value from the collection.
2228
2227
  * @returns `true` if the item was found and removed.
2229
2228
  */
2230
- deleteIn(path30) {
2231
- const [key, ...rest] = path30;
2229
+ deleteIn(path31) {
2230
+ const [key, ...rest] = path31;
2232
2231
  if (rest.length === 0)
2233
2232
  return this.delete(key);
2234
2233
  const node = this.get(key, true);
@@ -2242,8 +2241,8 @@ var init_Collection = __esm({
2242
2241
  * scalar values from their surrounding node; to disable set `keepScalar` to
2243
2242
  * `true` (collections are always returned intact).
2244
2243
  */
2245
- getIn(path30, keepScalar) {
2246
- const [key, ...rest] = path30;
2244
+ getIn(path31, keepScalar) {
2245
+ const [key, ...rest] = path31;
2247
2246
  const node = this.get(key, true);
2248
2247
  if (rest.length === 0)
2249
2248
  return !keepScalar && isScalar(node) ? node.value : node;
@@ -2261,8 +2260,8 @@ var init_Collection = __esm({
2261
2260
  /**
2262
2261
  * Checks if the collection includes a value with the key `key`.
2263
2262
  */
2264
- hasIn(path30) {
2265
- const [key, ...rest] = path30;
2263
+ hasIn(path31) {
2264
+ const [key, ...rest] = path31;
2266
2265
  if (rest.length === 0)
2267
2266
  return this.has(key);
2268
2267
  const node = this.get(key, true);
@@ -2272,8 +2271,8 @@ var init_Collection = __esm({
2272
2271
  * Sets a value in this collection. For `!!set`, `value` needs to be a
2273
2272
  * boolean to add/remove the item from the set.
2274
2273
  */
2275
- setIn(path30, value) {
2276
- const [key, ...rest] = path30;
2274
+ setIn(path31, value) {
2275
+ const [key, ...rest] = path31;
2277
2276
  if (rest.length === 0) {
2278
2277
  this.set(key, value);
2279
2278
  } else {
@@ -4246,15 +4245,15 @@ function visit2(cst, visitor) {
4246
4245
  cst = { start: cst.start, value: cst.value };
4247
4246
  _visit(Object.freeze([]), cst, visitor);
4248
4247
  }
4249
- function _visit(path30, item, visitor) {
4250
- let ctrl = visitor(item, path30);
4248
+ function _visit(path31, item, visitor) {
4249
+ let ctrl = visitor(item, path31);
4251
4250
  if (typeof ctrl === "symbol")
4252
4251
  return ctrl;
4253
4252
  for (const field of ["key", "value"]) {
4254
4253
  const token = item[field];
4255
4254
  if (token && "items" in token) {
4256
4255
  for (let i = 0; i < token.items.length; ++i) {
4257
- const ci = _visit(Object.freeze(path30.concat([[field, i]])), token.items[i], visitor);
4256
+ const ci = _visit(Object.freeze(path31.concat([[field, i]])), token.items[i], visitor);
4258
4257
  if (typeof ci === "number")
4259
4258
  i = ci - 1;
4260
4259
  else if (ci === BREAK2)
@@ -4265,10 +4264,10 @@ function _visit(path30, item, visitor) {
4265
4264
  }
4266
4265
  }
4267
4266
  if (typeof ctrl === "function" && field === "key")
4268
- ctrl = ctrl(item, path30);
4267
+ ctrl = ctrl(item, path31);
4269
4268
  }
4270
4269
  }
4271
- return typeof ctrl === "function" ? ctrl(item, path30) : ctrl;
4270
+ return typeof ctrl === "function" ? ctrl(item, path31) : ctrl;
4272
4271
  }
4273
4272
  var BREAK2, SKIP2, REMOVE2;
4274
4273
  var init_cst_visit = __esm({
@@ -4280,9 +4279,9 @@ var init_cst_visit = __esm({
4280
4279
  visit2.BREAK = BREAK2;
4281
4280
  visit2.SKIP = SKIP2;
4282
4281
  visit2.REMOVE = REMOVE2;
4283
- visit2.itemAtPath = (cst, path30) => {
4282
+ visit2.itemAtPath = (cst, path31) => {
4284
4283
  let item = cst;
4285
- for (const [field, index] of path30) {
4284
+ for (const [field, index] of path31) {
4286
4285
  const tok = item?.[field];
4287
4286
  if (tok && "items" in tok) {
4288
4287
  item = tok.items[index];
@@ -4291,9 +4290,9 @@ var init_cst_visit = __esm({
4291
4290
  }
4292
4291
  return item;
4293
4292
  };
4294
- visit2.parentCollection = (cst, path30) => {
4295
- const parent = visit2.itemAtPath(cst, path30.slice(0, -1));
4296
- const field = path30[path30.length - 1][0];
4293
+ visit2.parentCollection = (cst, path31) => {
4294
+ const parent = visit2.itemAtPath(cst, path31.slice(0, -1));
4295
+ const field = path31[path31.length - 1][0];
4297
4296
  const coll = parent?.[field];
4298
4297
  if (coll && "items" in coll)
4299
4298
  return coll;
@@ -4463,8 +4462,8 @@ function metadataValue(value, key) {
4463
4462
  if (!value || typeof value !== "object") return void 0;
4464
4463
  return Object.getOwnPropertyDescriptor(value, key)?.value;
4465
4464
  }
4466
- function readProjectJson(path30, files = nodeRepoFileReader) {
4467
- const text2 = readProjectMetadata(path30, files);
4465
+ function readProjectJson(path31, files = nodeRepoFileReader) {
4466
+ const text2 = readProjectMetadata(path31, files);
4468
4467
  if (text2 === null) return null;
4469
4468
  try {
4470
4469
  const value = JSON.parse(text2);
@@ -5904,7 +5903,7 @@ var init_replacement_module_handler = __esm({
5904
5903
  // cli/app-project.ts
5905
5904
  function firstNamedFile(dir, names) {
5906
5905
  for (const name2 of names) {
5907
- const candidate = import_node_path27.default.join(dir, name2);
5906
+ const candidate = import_node_path28.default.join(dir, name2);
5908
5907
  try {
5909
5908
  if (import_node_fs24.default.statSync(candidate).isFile()) return candidate;
5910
5909
  } catch {
@@ -5919,25 +5918,25 @@ function findRNXAppConfig(dir) {
5919
5918
  return firstNamedFile(dir, PEACH_APP_CONFIG_NAMES);
5920
5919
  }
5921
5920
  function resolveAppProject(projectRoot) {
5922
- const appDir = import_node_path27.default.resolve(projectRoot);
5921
+ const appDir = import_node_path28.default.resolve(projectRoot);
5923
5922
  try {
5924
5923
  if (!import_node_fs24.default.statSync(appDir).isDirectory()) return null;
5925
5924
  } catch {
5926
5925
  return null;
5927
5926
  }
5928
5927
  const configPath = findRNXAppConfig(appDir);
5929
- if (!configPath && !findExpoAppConfig(appDir) && !import_node_fs24.default.existsSync(import_node_path27.default.join(appDir, "package.json"))) {
5928
+ if (!configPath && !findExpoAppConfig(appDir) && !import_node_fs24.default.existsSync(import_node_path28.default.join(appDir, "package.json"))) {
5930
5929
  return null;
5931
5930
  }
5932
5931
  return { appDir, configPath };
5933
5932
  }
5934
- var import_node_fs24, import_node_path27, EXPO_APP_CONFIG_NAMES, PEACH_APP_CONFIG_NAMES;
5933
+ var import_node_fs24, import_node_path28, EXPO_APP_CONFIG_NAMES, PEACH_APP_CONFIG_NAMES;
5935
5934
  var init_app_project = __esm({
5936
5935
  "cli/app-project.ts"() {
5937
5936
  "use strict";
5938
5937
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
5939
5938
  import_node_fs24 = __toESM(require("node:fs"), 1);
5940
- import_node_path27 = __toESM(require("node:path"), 1);
5939
+ import_node_path28 = __toESM(require("node:path"), 1);
5941
5940
  EXPO_APP_CONFIG_NAMES = [
5942
5941
  "app.config.js",
5943
5942
  "app.config.ts",
@@ -6070,7 +6069,7 @@ function resolveAppStubs(appDir, config, configDir) {
6070
6069
  const { modules, views, hybridObjects } = expandStubs(appDir, source);
6071
6070
  assertRegisteredHybridObjects(appDir, source, hybridObjects);
6072
6071
  for (const [name2, answer] of Object.entries(hybridObjects))
6073
- nativeHybridObjects[name2] = answer === "unsupported" ? answer : { file: (0, import_node_path30.resolve)(source.baseDir, answer) };
6072
+ nativeHybridObjects[name2] = answer === "unsupported" ? answer : { file: (0, import_node_path31.resolve)(source.baseDir, answer) };
6074
6073
  for (const [name2, stub] of Object.entries(modules))
6075
6074
  nativeModules[name2] = lowerStub(stub, source.baseDir);
6076
6075
  for (const [name2, stub] of Object.entries(views))
@@ -6135,10 +6134,10 @@ function assertRegisteredHybridObjects(appDir, source, hybridObjects) {
6135
6134
  );
6136
6135
  }
6137
6136
  function lowerStub(stub, baseDir) {
6138
- return stub === "noop" ? stub : { file: (0, import_node_path30.resolve)(baseDir, stub) };
6137
+ return stub === "noop" ? stub : { file: (0, import_node_path31.resolve)(baseDir, stub) };
6139
6138
  }
6140
6139
  function readPackageJson(dir) {
6141
- const text2 = readSmallFile((0, import_node_path30.join)(dir, "package.json"));
6140
+ const text2 = readSmallFile((0, import_node_path31.join)(dir, "package.json"));
6142
6141
  if (!text2) return null;
6143
6142
  try {
6144
6143
  const parsed = JSON.parse(text2);
@@ -6150,9 +6149,9 @@ function readPackageJson(dir) {
6150
6149
  function installedPackageDir(appDir, name2) {
6151
6150
  let current = appDir;
6152
6151
  while (true) {
6153
- const dir = (0, import_node_path30.join)(current, "node_modules", name2);
6154
- if ((0, import_node_fs27.existsSync)((0, import_node_path30.join)(dir, "package.json"))) return (0, import_node_fs27.realpathSync)(dir);
6155
- const parent = (0, import_node_path30.dirname)(current);
6152
+ const dir = (0, import_node_path31.join)(current, "node_modules", name2);
6153
+ if ((0, import_node_fs27.existsSync)((0, import_node_path31.join)(dir, "package.json"))) return (0, import_node_fs27.realpathSync)(dir);
6154
+ const parent = (0, import_node_path31.dirname)(current);
6156
6155
  if (parent === current) return null;
6157
6156
  current = parent;
6158
6157
  }
@@ -6256,7 +6255,7 @@ function mergeRequests(previous, next) {
6256
6255
  function packageNativeRequests(dir) {
6257
6256
  const found = /* @__PURE__ */ new Map();
6258
6257
  const directories = scanRepository(dir).directories.filter((sub) => {
6259
- const segments = (0, import_node_path30.relative)(dir, sub).split("/");
6258
+ const segments = (0, import_node_path31.relative)(dir, sub).split("/");
6260
6259
  return !NATIVE_SOURCE_DIRS.has(segments[0]) && !segments.some((segment) => PACKAGE_SKIP_DIRS.has(segment));
6261
6260
  });
6262
6261
  let files = 0;
@@ -6264,7 +6263,7 @@ function packageNativeRequests(dir) {
6264
6263
  for (const name2 of listDir(sub)) {
6265
6264
  if (!SOURCE_FILE.test(name2) || name2.endsWith(".d.ts") || files >= 2e3) continue;
6266
6265
  files++;
6267
- const file = (0, import_node_path30.join)(sub, name2);
6266
+ const file = (0, import_node_path31.join)(sub, name2);
6268
6267
  const text2 = readSmallFile(file);
6269
6268
  if (!text2) continue;
6270
6269
  for (const { line: _line, ...request } of sourceNativeRequests(file, text2, true)) {
@@ -6395,14 +6394,14 @@ function readSmallFile(file) {
6395
6394
  }
6396
6395
  }
6397
6396
  function hasNativeCode(dir, platform) {
6398
- const expoConfig = (0, import_node_path30.join)(dir, "expo-module.config.json");
6397
+ const expoConfig = (0, import_node_path31.join)(dir, "expo-module.config.json");
6399
6398
  const platforms = metadataValue(readProjectJson(expoConfig), "platforms");
6400
6399
  if (Array.isArray(platforms))
6401
6400
  return platforms.includes(platform) || platform === "ios" && platforms.includes("apple");
6402
- if ([platform, "expo-module.config.json"].some((entry) => (0, import_node_fs27.existsSync)((0, import_node_path30.join)(dir, entry))))
6401
+ if ([platform, "expo-module.config.json"].some((entry) => (0, import_node_fs27.existsSync)((0, import_node_path31.join)(dir, entry))))
6403
6402
  return true;
6404
6403
  if (listDir(dir).some((name2) => name2.endsWith(".podspec"))) return true;
6405
- const manifest = readSmallFile((0, import_node_path30.join)(dir, "package.json"));
6404
+ const manifest = readSmallFile((0, import_node_path31.join)(dir, "package.json"));
6406
6405
  return manifest !== null && manifest.includes('"codegenConfig"');
6407
6406
  }
6408
6407
  function scanLocalNative(appDir, pkg, answered, platform, knownPackages = /* @__PURE__ */ new Set(), includeLegacy = false, providers) {
@@ -6415,7 +6414,7 @@ function scanLocalNative(appDir, pkg, answered, platform, knownPackages = /* @__
6415
6414
  (excluded) => dir === excluded || dir.startsWith(`${excluded}/`)
6416
6415
  ))
6417
6416
  continue;
6418
- if ((0, import_node_fs27.existsSync)((0, import_node_path30.join)(dir, "expo-module.config.json"))) {
6417
+ if ((0, import_node_fs27.existsSync)((0, import_node_path31.join)(dir, "expo-module.config.json"))) {
6419
6418
  if (platform && !hasNativeCode(dir, platform)) {
6420
6419
  excludedModuleDirs.push(dir);
6421
6420
  continue;
@@ -6424,7 +6423,7 @@ function scanLocalNative(appDir, pkg, answered, platform, knownPackages = /* @__
6424
6423
  }
6425
6424
  for (const name2 of listDir(dir)) {
6426
6425
  if (SOURCE_FILE.test(name2) && !name2.endsWith(".d.ts"))
6427
- sourceFiles.push((0, import_node_path30.join)(dir, name2));
6426
+ sourceFiles.push((0, import_node_path31.join)(dir, name2));
6428
6427
  }
6429
6428
  }
6430
6429
  }
@@ -6434,7 +6433,7 @@ function scanLocalNative(appDir, pkg, answered, platform, knownPackages = /* @__
6434
6433
  scanRepository(dir).directories.flatMap(
6435
6434
  (sub) => listDir(sub).filter(
6436
6435
  (name2) => NATIVE_SOURCE_FILE.test(name2) && (!platform || (platform === "ios" ? name2.endsWith(".swift") : name2.endsWith(".kt")))
6437
- ).map((name2) => (0, import_node_path30.join)(sub, name2))
6436
+ ).map((name2) => (0, import_node_path31.join)(sub, name2))
6438
6437
  )
6439
6438
  ])
6440
6439
  );
@@ -6443,7 +6442,7 @@ function scanLocalNative(appDir, pkg, answered, platform, knownPackages = /* @__
6443
6442
  const known = owners.get(dir);
6444
6443
  if (known) return known;
6445
6444
  const name2 = readPackageJson(dir)?.name;
6446
- const parent = (0, import_node_path30.dirname)(dir);
6445
+ const parent = (0, import_node_path31.dirname)(dir);
6447
6446
  const result = typeof name2 === "string" ? name2 : parent === dir ? pkg.name ?? "app" : owner(parent);
6448
6447
  owners.set(dir, result);
6449
6448
  return result;
@@ -6457,25 +6456,25 @@ function scanLocalNative(appDir, pkg, answered, platform, knownPackages = /* @__
6457
6456
  else {
6458
6457
  const moduleDir2 = expoModuleDirs.find((dir) => file.startsWith(`${dir}/`));
6459
6458
  if (moduleDir2 && (file.endsWith(".swift") || !known.expoModule)) {
6460
- known.expoModule = (0, import_node_path30.relative)(appDir, moduleDir2) || ".";
6459
+ known.expoModule = (0, import_node_path31.relative)(appDir, moduleDir2) || ".";
6461
6460
  known.swift = file.endsWith(".swift");
6462
6461
  }
6463
6462
  }
6464
6463
  return;
6465
6464
  }
6466
6465
  providers ??= dependencyNativeOwners(appDir, pkg);
6467
- const packageName = providers.get(key) ?? owner((0, import_node_path30.dirname)(file));
6466
+ const packageName = providers.get(key) ?? owner((0, import_node_path31.dirname)(file));
6468
6467
  if (knownPackages.has(packageName)) return;
6469
6468
  const moduleDir = expoModuleDirs.find((dir) => file.startsWith(`${dir}/`)) ?? null;
6470
6469
  found.set(key, {
6471
6470
  kind,
6472
6471
  name: name2,
6473
6472
  package: packageName,
6474
- path: `${(0, import_node_path30.relative)(appDir, file)}:${line}`,
6475
- expoModule: moduleDir ? (0, import_node_path30.relative)(appDir, moduleDir) || "." : null,
6473
+ path: `${(0, import_node_path31.relative)(appDir, file)}:${line}`,
6474
+ expoModule: moduleDir ? (0, import_node_path31.relative)(appDir, moduleDir) || "." : null,
6476
6475
  optional: optional3,
6477
6476
  swift: moduleDir ? (nativeFilesByModule.get(moduleDir) ?? []).some(
6478
- (path30) => path30.endsWith(".swift") && [...(readSmallFile(path30) ?? "").matchAll(/\bName\(\s*"(\w+)"\s*\)/g)].some(
6477
+ (path31) => path31.endsWith(".swift") && [...(readSmallFile(path31) ?? "").matchAll(/\bName\(\s*"(\w+)"\s*\)/g)].some(
6479
6478
  (match) => match[1] === name2
6480
6479
  )
6481
6480
  ) : false,
@@ -6523,7 +6522,7 @@ function workspacePackageDirs(appDir, pkg) {
6523
6522
  for (const name2 of Object.keys({ ...pkg.dependencies, ...pkg.devDependencies })) {
6524
6523
  let current = appDir;
6525
6524
  while (true) {
6526
- const link = (0, import_node_path30.join)(current, "node_modules", name2);
6525
+ const link = (0, import_node_path31.join)(current, "node_modules", name2);
6527
6526
  if ((0, import_node_fs27.existsSync)(link)) {
6528
6527
  if ((0, import_node_fs27.lstatSync)(link).isSymbolicLink()) {
6529
6528
  const target = (0, import_node_fs27.realpathSync)(link);
@@ -6533,20 +6532,20 @@ function workspacePackageDirs(appDir, pkg) {
6533
6532
  }
6534
6533
  break;
6535
6534
  }
6536
- const parent = (0, import_node_path30.dirname)(current);
6535
+ const parent = (0, import_node_path31.dirname)(current);
6537
6536
  if (parent === current) break;
6538
6537
  current = parent;
6539
6538
  }
6540
6539
  }
6541
6540
  return [...dirs];
6542
6541
  }
6543
- var import_node_fs27, import_node_path30, import_oxc_parser2, import_sucrase, SOURCE_FILE, NATIVE_LOOKUP, NATIVE_SOURCE_DIRS, PACKAGE_SKIP_DIRS, NATIVE_SOURCE_FILE;
6542
+ var import_node_fs27, import_node_path31, import_oxc_parser2, import_sucrase, SOURCE_FILE, NATIVE_LOOKUP, NATIVE_SOURCE_DIRS, PACKAGE_SKIP_DIRS, NATIVE_SOURCE_FILE;
6544
6543
  var init_app_stubs = __esm({
6545
6544
  "cli/app-stubs.ts"() {
6546
6545
  "use strict";
6547
6546
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
6548
6547
  import_node_fs27 = require("node:fs");
6549
- import_node_path30 = require("node:path");
6548
+ import_node_path31 = require("node:path");
6550
6549
  init_version_range();
6551
6550
  import_oxc_parser2 = require("oxc-parser");
6552
6551
  import_sucrase = require("sucrase");
@@ -6582,12 +6581,12 @@ function resolveFileEntries(entries, configDir) {
6582
6581
  return Object.fromEntries(
6583
6582
  Object.entries(entries).map(([name2, resolution]) => [
6584
6583
  name2,
6585
- resolution && typeof resolution === "object" && "file" in resolution && typeof resolution.file === "string" ? { ...resolution, file: import_node_path31.default.resolve(configDir, resolution.file) } : resolution
6584
+ resolution && typeof resolution === "object" && "file" in resolution && typeof resolution.file === "string" ? { ...resolution, file: import_node_path32.default.resolve(configDir, resolution.file) } : resolution
6586
6585
  ])
6587
6586
  );
6588
6587
  }
6589
6588
  function resolveConfigReplacementFiles(config, configPath) {
6590
- const configDir = import_node_path31.default.dirname(configPath);
6589
+ const configDir = import_node_path32.default.dirname(configPath);
6591
6590
  return {
6592
6591
  ...config,
6593
6592
  modules: resolveFileEntries(config.modules, configDir)
@@ -6603,7 +6602,7 @@ async function loadRNXAppStubs(project) {
6603
6602
  return resolveAppStubs(
6604
6603
  project.appDir,
6605
6604
  config,
6606
- project.configPath ? import_node_path31.default.dirname(project.configPath) : project.appDir
6605
+ project.configPath ? import_node_path32.default.dirname(project.configPath) : project.appDir
6607
6606
  );
6608
6607
  } catch (error) {
6609
6608
  const message = error instanceof Error ? error.message : String(error);
@@ -6658,13 +6657,13 @@ async function resolveRNXAppConfig(startDir = process.cwd()) {
6658
6657
  const project = resolveAppProject(startDir);
6659
6658
  return { project, ...await loadRNXAppStubs(project) };
6660
6659
  }
6661
- var import_node_fs28, import_node_path31, import_jiti, WIRE_SLOTS;
6660
+ var import_node_fs28, import_node_path32, import_jiti, WIRE_SLOTS;
6662
6661
  var init_app_config = __esm({
6663
6662
  "cli/app-config.ts"() {
6664
6663
  "use strict";
6665
6664
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
6666
6665
  import_node_fs28 = require("node:fs");
6667
- import_node_path31 = __toESM(require("node:path"), 1);
6666
+ import_node_path32 = __toESM(require("node:path"), 1);
6668
6667
  import_jiti = require("jiti");
6669
6668
  init_config();
6670
6669
  init_config();
@@ -6795,7 +6794,7 @@ async function produceConfiguredBundle(source, config, runtimePackages) {
6795
6794
  if (!entries || typeof entries !== "object") continue;
6796
6795
  for (const resolution of Object.values(entries)) {
6797
6796
  if (resolution && typeof resolution === "object" && "file" in resolution && typeof resolution.file === "string") {
6798
- resolution.file = visit3(import_node_path32.default.resolve(resolution.file));
6797
+ resolution.file = visit3(import_node_path33.default.resolve(resolution.file));
6799
6798
  }
6800
6799
  }
6801
6800
  }
@@ -6819,13 +6818,13 @@ async function produceConfiguredBundle(source, config, runtimePackages) {
6819
6818
  const identityStart = findBundleFooter(source, "globalThis.__sootsimModulePaths=");
6820
6819
  return prefix2 + (identityStart < 0 ? source + footer : source.slice(0, identityStart) + footer + source.slice(identityStart));
6821
6820
  }
6822
- var import_node_fs29, import_node_path32, import_sucrase2, import_terser, PREFIX_START, PREFIX_END;
6821
+ var import_node_fs29, import_node_path33, import_sucrase2, import_terser, PREFIX_START, PREFIX_END;
6823
6822
  var init_configured_bundle_producer = __esm({
6824
6823
  "src/configured-bundle-producer.ts"() {
6825
6824
  "use strict";
6826
6825
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
6827
6826
  import_node_fs29 = __toESM(require("node:fs"), 1);
6828
- import_node_path32 = __toESM(require("node:path"), 1);
6827
+ import_node_path33 = __toESM(require("node:path"), 1);
6829
6828
  init_bundle_global_footer();
6830
6829
  import_sucrase2 = require("sucrase");
6831
6830
  import_terser = require("terser");
@@ -6962,7 +6961,7 @@ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
6962
6961
  init_version();
6963
6962
 
6964
6963
  // runtime-companion.json
6965
- var runtime_companion_default = { abi: 1, sha256: "9b370a218cb12559cba2bb30e1e33d168ccd0f310e473c5428133b85938be20a", file: "node/cli-9b370a218cb12559cba2bb30e1e33d168ccd0f310e473c5428133b85938be20a.cjs" };
6964
+ var runtime_companion_default = { abi: 1, sha256: "c5311b24d34f15e1e93e1e7fc426600404705562e03ce05c7c359e341afc75cd", file: "node/cli-c5311b24d34f15e1e93e1e7fc426600404705562e03ce05c7c359e341afc75cd.cjs" };
6966
6965
 
6967
6966
  // src/answeredNativePackages.ts
6968
6967
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
@@ -12099,6 +12098,9 @@ var import_plist5 = __toESM(require("plist"), 1);
12099
12098
  // src/expo-native-compiler-digest.ts
12100
12099
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
12101
12100
 
12101
+ // src/react-native-core-digest.ts
12102
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
12103
+
12102
12104
  // src/swift-compiler-digest.ts
12103
12105
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
12104
12106
 
@@ -12118,7 +12120,7 @@ function readIosSdkTree(root) {
12118
12120
 
12119
12121
  // src/swift-standin-digest.ts
12120
12122
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
12121
- var STANDIN_SOURCE_DIGEST = true ? "b907e67a4a7c7d3e52e4ce9d48391c83bd5c6b4d3689f58b96f42435e285522e" : standinSourceDigest();
12123
+ var STANDIN_SOURCE_DIGEST = true ? "2cafa88ed6dca7afc4a60a09683b0395b95553c3677c2907ae7ce47fe4f45a73" : standinSourceDigest();
12122
12124
 
12123
12125
  // src/expo-native-workspace.ts
12124
12126
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
@@ -12139,9 +12141,17 @@ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
12139
12141
  init_home_paths();
12140
12142
  var FAILED_OUTPUT_KEPT_MS = 7 * 24 * 36e5;
12141
12143
 
12144
+ // src/native-git.ts
12145
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
12146
+
12142
12147
  // src/one-sdk-preparation.ts
12143
12148
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
12144
12149
 
12150
+ // src/native-prebuilt.ts
12151
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
12152
+ init_home_paths();
12153
+ init_is_record();
12154
+
12145
12155
  // src/oneSdkContract.ts
12146
12156
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
12147
12157
  init_bundle_global_footer();
@@ -12805,10 +12815,10 @@ function appTargetReleaseSettings(pbxproj, targetName, infoPlistRelativePath) {
12805
12815
  var APP_DELEGATE_PATH_RE = /(?:^|\/)(?:ios\/)?([^/]+)\/AppDelegate\.(?:swift|mm|m)$/;
12806
12816
  function nativeAppIdentityFromIos(files, parseInfoPlist, iosTarget, resourceUri) {
12807
12817
  const pbxprojPath = Object.keys(files).find(
12808
- (path30) => /(?:^|\/)ios\/[^/]+\.xcodeproj\/project\.pbxproj$/.test(path30)
12818
+ (path31) => /(?:^|\/)ios\/[^/]+\.xcodeproj\/project\.pbxproj$/.test(path31)
12809
12819
  ) ?? Object.keys(files).find(
12810
- (path30) => /(?:^|\/)[^/]+\.xcodeproj\/project\.pbxproj$/.test(path30)
12811
- ) ?? Object.keys(files).find((path30) => /(?:^|\/)project\.pbxproj$/.test(path30));
12820
+ (path31) => /(?:^|\/)[^/]+\.xcodeproj\/project\.pbxproj$/.test(path31)
12821
+ ) ?? Object.keys(files).find((path31) => /(?:^|\/)project\.pbxproj$/.test(path31));
12812
12822
  if (!pbxprojPath) return null;
12813
12823
  const pbxproj = files[pbxprojPath];
12814
12824
  let objects = {};
@@ -12850,7 +12860,7 @@ function nativeAppIdentityFromIos(files, parseInfoPlist, iosTarget, resourceUri)
12850
12860
  } else if (applicationTargetNames.size === 1) {
12851
12861
  targetName = [...applicationTargetNames][0];
12852
12862
  } else if (applicationTargetNames.size > 1) {
12853
- const delegateTargets = Object.keys(files).filter((path30) => !path30.includes("/Pods/")).map((path30) => path30.match(APP_DELEGATE_PATH_RE)?.[1]).filter(
12863
+ const delegateTargets = Object.keys(files).filter((path31) => !path31.includes("/Pods/")).map((path31) => path31.match(APP_DELEGATE_PATH_RE)?.[1]).filter(
12854
12864
  (name2) => typeof name2 === "string" && applicationTargetNames.has(name2)
12855
12865
  );
12856
12866
  if (delegateTargets.length === 1) {
@@ -13042,7 +13052,9 @@ function nativeAppIdentityFromIos(files, parseInfoPlist, iosTarget, resourceUri)
13042
13052
  permissionUsageDescriptions[key] = resolved;
13043
13053
  }
13044
13054
  const infoPlistStrings = {};
13055
+ const infoPlistBooleans = {};
13045
13056
  for (const [key, value] of Object.entries(dictionary)) {
13057
+ if (typeof value === "boolean") infoPlistBooleans[key] = value;
13046
13058
  if (typeof value !== "string") continue;
13047
13059
  const resolved = resolveBuildSetting(value, settings);
13048
13060
  if (resolved !== null) infoPlistStrings[key] = resolved;
@@ -13086,7 +13098,7 @@ function nativeAppIdentityFromIos(files, parseInfoPlist, iosTarget, resourceUri)
13086
13098
  if (Object.hasOwn(files, file)) return [file];
13087
13099
  const prefix2 = file === "" ? "" : `${file.replace(/\/$/, "")}/`;
13088
13100
  return paths.filter(
13089
- (path30) => path30.startsWith(prefix2) && !/(?:^|\/)\./.test(path30.slice(prefix2.length))
13101
+ (path31) => path31.startsWith(prefix2) && !/(?:^|\/)\./.test(path31.slice(prefix2.length))
13090
13102
  );
13091
13103
  },
13092
13104
  join9,
@@ -13097,7 +13109,7 @@ function nativeAppIdentityFromIos(files, parseInfoPlist, iosTarget, resourceUri)
13097
13109
  }
13098
13110
  const rootModuleName = readRootModuleName(
13099
13111
  Object.entries(files).filter(
13100
- ([path30]) => !path30.includes("/Pods/") && (/(?:^|\/)(?:ios\/)?AppDelegate\.(?:swift|mm|m)$/.test(path30) || path30.match(APP_DELEGATE_PATH_RE)?.[1] === targetName)
13112
+ ([path31]) => !path31.includes("/Pods/") && (/(?:^|\/)(?:ios\/)?AppDelegate\.(?:swift|mm|m)$/.test(path31) || path31.match(APP_DELEGATE_PATH_RE)?.[1] === targetName)
13101
13113
  ).map(([, source]) => source)
13102
13114
  );
13103
13115
  return {
@@ -13144,6 +13156,7 @@ function nativeAppIdentityFromIos(files, parseInfoPlist, iosTarget, resourceUri)
13144
13156
  } : {},
13145
13157
  permissionUsageDescriptions,
13146
13158
  infoPlistStrings,
13159
+ infoPlistBooleans,
13147
13160
  urlQuerySchemes,
13148
13161
  ...keychainAccessGroups === void 0 ? {} : { keychainAccessGroups },
13149
13162
  ...shareIntoAppGroupId === void 0 ? {} : { shareIntoAppGroupId },
@@ -14233,7 +14246,7 @@ var FOUNDATION_IMPLICIT_MODULES = [
14233
14246
  var FOUNDATION_IMPLICIT_FLAGS = FOUNDATION_IMPLICIT_MODULES.map(
14234
14247
  (module2) => `, "-Xfrontend", "-import-module", "-Xfrontend", "${module2}"`
14235
14248
  ).join("");
14236
- var compilerSourceDigest = true ? "91c8105b0a382e74c2395d36f69294e1ec6afa3aa0b66c61b6b11e63e0dbe5d7" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
14249
+ var compilerSourceDigest = true ? "4fe13bc9a7fef541d09abfb87d6aa775bd9d830d442d6efa43a0e2d6bc34faf5" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
14237
14250
  var CORE_FOUNDATION_HANDLE_IMPORTS = [
14238
14251
  "CFAllocator",
14239
14252
  "CFArray",
@@ -17419,8 +17432,10 @@ function readNativeAppIdentityFromXcodeTarget(app, parseInfoPlist = parsePlistSo
17419
17432
  permissionUsageDescriptions[key] = value;
17420
17433
  }
17421
17434
  const infoPlistStrings = {};
17435
+ const infoPlistBooleans = {};
17422
17436
  for (const [key, value] of Object.entries(dictionary)) {
17423
17437
  if (typeof value === "string") infoPlistStrings[key] = value;
17438
+ else if (typeof value === "boolean") infoPlistBooleans[key] = value;
17424
17439
  }
17425
17440
  const querySchemes = dictionary.LSApplicationQueriesSchemes;
17426
17441
  const urlQuerySchemes = Array.isArray(querySchemes) ? querySchemes : [];
@@ -17485,6 +17500,7 @@ function readNativeAppIdentityFromXcodeTarget(app, parseInfoPlist = parsePlistSo
17485
17500
  ),
17486
17501
  permissionUsageDescriptions,
17487
17502
  infoPlistStrings,
17503
+ infoPlistBooleans,
17488
17504
  urlQuerySchemes,
17489
17505
  ...shareIntoAppGroupId ? { shareIntoAppGroupId } : {},
17490
17506
  ...rtcAppGroupIdentifier ? { rtcAppGroupIdentifier } : {},
@@ -17656,11 +17672,6 @@ function readIosAppTarget(projectRoot, iosTarget, environment) {
17656
17672
  });
17657
17673
  }
17658
17674
 
17659
- // src/native-prebuilt.ts
17660
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
17661
- init_home_paths();
17662
- init_is_record();
17663
-
17664
17675
  // src/nitroContract.ts
17665
17676
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
17666
17677
  init_bundle_global_footer();
@@ -19585,7 +19596,6 @@ var LAZY_STUB_PATTERNS = [
19585
19596
  "react-native-keyboard-manager",
19586
19597
  "react-native-keys",
19587
19598
  "react-native-loader-kit",
19588
- "react-native-localization",
19589
19599
  "react-native-mixpanel",
19590
19600
  "react-native-moengage",
19591
19601
  "react-native-navigation-mode",
@@ -20584,9 +20594,25 @@ function* rubyFiles(directory, seen, iosRoot = false) {
20584
20594
  return files;
20585
20595
  }
20586
20596
  function* nativeBuildOptionsWalk(projectRoot, versions, environment) {
20587
- if (!needsRiveOptions(versions)) return {};
20597
+ let sensorOptions = {};
20598
+ const sensors = versions["expo-sensors"];
20599
+ if (sensors && resolveCompatVersionRange([">=58.0.4 <59.0.0"], sensors).status === "matched") {
20600
+ const file = import_node_path22.default.join(projectRoot, "ios", "Podfile.properties.json");
20601
+ const source = yield { type: "read", path: file };
20602
+ if (source !== null && typeof source !== "string")
20603
+ throw new Error(`cannot inspect ${file}`);
20604
+ const properties = source === null ? {} : JSON.parse(source);
20605
+ if (typeof properties !== "object" || properties === null || Array.isArray(properties))
20606
+ throw new Error(`${file} must contain an object`);
20607
+ sensorOptions = {
20608
+ "expo-sensors": {
20609
+ EXPO_DISABLE_MOTION_PERMISSION: Reflect.get(properties, "MOTION_PERMISSION") === "false"
20610
+ }
20611
+ };
20612
+ }
20613
+ if (!needsRiveOptions(versions)) return sensorOptions;
20588
20614
  if (environment.USE_RIVE_LEGACY === "1" || environment.USE_RIVE_LEGACY === "true")
20589
- return { [RIVE_PACKAGE]: { USE_RIVE_LEGACY: true } };
20615
+ return { ...sensorOptions, [RIVE_PACKAGE]: { USE_RIVE_LEGACY: true } };
20590
20616
  const ios = import_node_path22.default.join(projectRoot, "ios");
20591
20617
  const podfile = import_node_path22.default.join(ios, "Podfile");
20592
20618
  const files = [podfile, ...yield* rubyFiles(ios, /* @__PURE__ */ new Set(), true)];
@@ -20607,7 +20633,7 @@ function* nativeBuildOptionsWalk(projectRoot, versions, environment) {
20607
20633
  value = literal2[1] === "true";
20608
20634
  }
20609
20635
  }
20610
- return { [RIVE_PACKAGE]: { USE_RIVE_LEGACY: value } };
20636
+ return { ...sensorOptions, [RIVE_PACKAGE]: { USE_RIVE_LEGACY: value } };
20611
20637
  }
20612
20638
  function readInstalledNativeBuildOptions(projectRoot, versions, environment = process.env) {
20613
20639
  const walk = nativeBuildOptionsWalk(projectRoot, versions, environment);
@@ -22284,21 +22310,32 @@ async function proxyUpstream(req, res, upstreamUrl, reportFailure, route) {
22284
22310
  // src/vite-plugin-one.ts
22285
22311
  init_replacement_module_handler();
22286
22312
 
22287
- // src/one-native-app-accent.ts
22313
+ // src/one-native-app-catalog.ts
22288
22314
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
22315
+ var import_node_path26 = __toESM(require("node:path"), 1);
22289
22316
  init_is_record();
22290
- var ONE_NATIVE_APP_ACCENT_ROUTE = "/__peach/native-app-accent";
22317
+ var ONE_NATIVE_APP_CATALOG_ROUTE = "/__peach/native-app-catalog";
22291
22318
  var HEX_COLOR = /^#[\da-f]{6}$/i;
22292
- function parseOneNativeAppAccent(value) {
22319
+ function parseAccent(value) {
22293
22320
  if (!isRecord(value) || typeof value.light !== "string") return null;
22294
22321
  if (!HEX_COLOR.test(value.light)) return null;
22295
22322
  const dark = typeof value.dark === "string" && HEX_COLOR.test(value.dark) ? value.dark : value.light;
22296
22323
  return { light: value.light, dark };
22297
22324
  }
22298
- function readOneNativeAppAccent(entryConfig) {
22325
+ function parseOneNativeAppCatalog(value) {
22326
+ if (!isRecord(value)) return null;
22327
+ const accentColor = parseAccent(value.accentColor);
22328
+ const assetCatalog = typeof value.assetCatalog === "string" && import_node_path26.default.isAbsolute(value.assetCatalog) ? value.assetCatalog : null;
22329
+ return accentColor || assetCatalog ? { accentColor, assetCatalog } : null;
22330
+ }
22331
+ function readOneNativeAppCatalog(entryConfig, root) {
22299
22332
  const app = isRecord(entryConfig) ? entryConfig.app : void 0;
22300
22333
  const ios = isRecord(app) ? app.ios : void 0;
22301
- return isRecord(ios) ? parseOneNativeAppAccent(ios.accentColor) : null;
22334
+ if (!isRecord(ios)) return null;
22335
+ return parseOneNativeAppCatalog({
22336
+ accentColor: ios.accentColor,
22337
+ assetCatalog: typeof ios.assetCatalog === "string" ? import_node_path26.default.resolve(root, ios.assetCatalog) : null
22338
+ });
22302
22339
  }
22303
22340
 
22304
22341
  // src/one-widget-metadata.ts
@@ -22307,7 +22344,7 @@ var import_node_child_process11 = require("node:child_process");
22307
22344
  var import_node_crypto10 = require("node:crypto");
22308
22345
  var import_node_fs23 = __toESM(require("node:fs"), 1);
22309
22346
  var import_node_module3 = require("node:module");
22310
- var import_node_path26 = __toESM(require("node:path"), 1);
22347
+ var import_node_path27 = __toESM(require("node:path"), 1);
22311
22348
  var import_node_util7 = require("node:util");
22312
22349
  init_forked_script_contract();
22313
22350
  init_is_record();
@@ -22345,12 +22382,12 @@ async function readConfig(root) {
22345
22382
  const reading = reads.get(root);
22346
22383
  if (reading) return reading;
22347
22384
  const promise = (async () => {
22348
- (0, import_node_module3.createRequire)(import_node_path26.default.join(root, "package.json")).resolve("one/vite");
22349
- const cache = import_node_path26.default.join(root, "node_modules/.cache/peach-widget-config");
22385
+ (0, import_node_module3.createRequire)(import_node_path27.default.join(root, "package.json")).resolve("one/vite");
22386
+ const cache = import_node_path27.default.join(root, "node_modules/.cache/peach-widget-config");
22350
22387
  import_node_fs23.default.mkdirSync(cache, { recursive: true });
22351
- const directory = import_node_fs23.default.mkdtempSync(import_node_path26.default.join(cache, "read-"));
22352
- const script = import_node_path26.default.join(directory, "read.mjs");
22353
- const result = import_node_path26.default.join(directory, "result.json");
22388
+ const directory = import_node_fs23.default.mkdtempSync(import_node_path27.default.join(cache, "read-"));
22389
+ const script = import_node_path27.default.join(directory, "read.mjs");
22390
+ const result = import_node_path27.default.join(directory, "result.json");
22354
22391
  import_node_fs23.default.writeFileSync(script, CONFIG_CHILD);
22355
22392
  try {
22356
22393
  await run6(process.execPath, [script, result], {
@@ -22382,8 +22419,8 @@ async function readConfig(root) {
22382
22419
  }
22383
22420
  const watched = [
22384
22421
  .../* @__PURE__ */ new Set([
22385
- import_node_path26.default.join(root, "package.json"),
22386
- ...value.watched.map((file) => import_node_path26.default.resolve(root, file))
22422
+ import_node_path27.default.join(root, "package.json"),
22423
+ ...value.watched.map((file) => import_node_path27.default.resolve(root, file))
22387
22424
  ])
22388
22425
  ];
22389
22426
  const loaded3 = {
@@ -22421,8 +22458,8 @@ async function readOneWidgetSources(appRoot) {
22421
22458
  if (!config.widget) return null;
22422
22459
  const widget = config.widget;
22423
22460
  const sourceFiles = {
22424
- "OneWidget.swift": import_node_path26.default.join(root, "ios/OneWidgets/OneWidget.swift"),
22425
- "OneWidgetContract.swift": import_node_path26.default.join(
22461
+ "OneWidget.swift": import_node_path27.default.join(root, "ios/OneWidgets/OneWidget.swift"),
22462
+ "OneWidgetContract.swift": import_node_path27.default.join(
22426
22463
  root,
22427
22464
  "ios",
22428
22465
  widget.appName,
@@ -22439,7 +22476,7 @@ async function readOneWidgetSources(appRoot) {
22439
22476
  if (!Buffer.from(text2).equals(bytes))
22440
22477
  throw new Error(`One widget prebuild source is not UTF-8: ${file}`);
22441
22478
  files.set(name2, text2);
22442
- sources[import_node_path26.default.relative(root, file).split(import_node_path26.default.sep).join("/")] = (0, import_node_crypto10.createHash)("sha256").update(bytes).digest("hex");
22479
+ sources[import_node_path27.default.relative(root, file).split(import_node_path27.default.sep).join("/")] = (0, import_node_crypto10.createHash)("sha256").update(bytes).digest("hex");
22443
22480
  }
22444
22481
  const contract = files.get("OneWidgetContract.swift") ?? "";
22445
22482
  const source = files.get("OneWidget.swift") ?? "";
@@ -22855,11 +22892,14 @@ function peachPlugin(options = {}) {
22855
22892
  return html.replace("</head>", inject + "</head>");
22856
22893
  };
22857
22894
  server.middlewares.use((req, res, next) => {
22858
- if ((req.url ?? "").split("?")[0] !== ONE_NATIVE_APP_ACCENT_ROUTE) return next();
22895
+ if ((req.url ?? "").split("?")[0] !== ONE_NATIVE_APP_CATALOG_ROUTE) return next();
22859
22896
  res.setHeader("content-type", "application/json");
22860
22897
  res.end(
22861
22898
  JSON.stringify(
22862
- readOneNativeAppAccent(Reflect.get(globalThis, "__vxrnNativeEntryConfig"))
22899
+ readOneNativeAppCatalog(
22900
+ Reflect.get(globalThis, "__vxrnNativeEntryConfig"),
22901
+ server.config.root
22902
+ )
22863
22903
  )
22864
22904
  );
22865
22905
  });
@@ -22992,7 +23032,7 @@ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
22992
23032
  var import_node_child_process12 = require("node:child_process");
22993
23033
  var import_node_fs25 = __toESM(require("node:fs"), 1);
22994
23034
  var import_node_module4 = require("node:module");
22995
- var import_node_path28 = __toESM(require("node:path"), 1);
23035
+ var import_node_path29 = __toESM(require("node:path"), 1);
22996
23036
  var import_node_util8 = require("node:util");
22997
23037
  init_forked_script_contract();
22998
23038
  init_is_record();
@@ -23013,7 +23053,7 @@ async function resolveExpoAndroidAutolinking(appRoot) {
23013
23053
  async function resolveAndroidModules(appRoot) {
23014
23054
  let autolinker;
23015
23055
  try {
23016
- autolinker = (0, import_node_module4.createRequire)(import_node_path28.default.join(appRoot, "package.json")).resolve(
23056
+ autolinker = (0, import_node_module4.createRequire)(import_node_path29.default.join(appRoot, "package.json")).resolve(
23017
23057
  "expo-modules-autolinking/package.json"
23018
23058
  );
23019
23059
  } catch (error) {
@@ -23023,7 +23063,7 @@ async function resolveAndroidModules(appRoot) {
23023
23063
  const { stdout } = await run7(
23024
23064
  process.execPath,
23025
23065
  [
23026
- import_node_path28.default.join(import_node_path28.default.dirname(autolinker), "bin/expo-modules-autolinking.js"),
23066
+ import_node_path29.default.join(import_node_path29.default.dirname(autolinker), "bin/expo-modules-autolinking.js"),
23027
23067
  "resolve",
23028
23068
  "--platform",
23029
23069
  "android",
@@ -23053,7 +23093,7 @@ async function collectAndroidAutolinkedPackages(appRoot) {
23053
23093
  // src/android-root-module.ts
23054
23094
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
23055
23095
  var import_node_fs26 = __toESM(require("node:fs"), 1);
23056
- var import_node_path29 = __toESM(require("node:path"), 1);
23096
+ var import_node_path30 = __toESM(require("node:path"), 1);
23057
23097
  var STRINGS_AND_COMMENTS = /"(?:\\.|[^"\\])*"|\/\/[^\n]*|\/\*[\s\S]*?\*\//g;
23058
23098
  var DECLARATION = /\b(?:fun|String)\s+getMainComponentName\s*\(/g;
23059
23099
  var KOTLIN_LITERAL = /^override\s+fun\s+getMainComponentName\s*\(\s*\)\s*(?::\s*String\s*)?(?:=\s*|\{\s*return\s+)"([^"\\$]+)"(?=\s*(?:;|\}|override\b|fun\b|private\b|public\b|protected\b|@|$))/;
@@ -23090,7 +23130,7 @@ function launcherActivities(application) {
23090
23130
  function readModuleNamespace(moduleRoot, manifest) {
23091
23131
  if (manifest.attributes.package) return manifest.attributes.package;
23092
23132
  for (const name2 of ["build.gradle", "build.gradle.kts"]) {
23093
- const file = import_node_path29.default.join(moduleRoot, name2);
23133
+ const file = import_node_path30.default.join(moduleRoot, name2);
23094
23134
  if (!import_node_fs26.default.existsSync(file)) continue;
23095
23135
  const match = /\bnamespace\s*=?\s*["']([\w.]+)["']/.exec(
23096
23136
  import_node_fs26.default.readFileSync(file, "utf8")
@@ -23100,8 +23140,8 @@ function readModuleNamespace(moduleRoot, manifest) {
23100
23140
  return void 0;
23101
23141
  }
23102
23142
  function readModuleRootModuleName(moduleRoot) {
23103
- const sourceSets = import_node_path29.default.join(moduleRoot, "src");
23104
- const manifestFile = import_node_path29.default.join(sourceSets, "main/AndroidManifest.xml");
23143
+ const sourceSets = import_node_path30.default.join(moduleRoot, "src");
23144
+ const manifestFile = import_node_path30.default.join(sourceSets, "main/AndroidManifest.xml");
23105
23145
  if (!import_node_fs26.default.existsSync(manifestFile)) return null;
23106
23146
  const document = parseXml(import_node_fs26.default.readFileSync(manifestFile, "utf8"), manifestFile);
23107
23147
  const manifest = document.children[0];
@@ -23110,7 +23150,7 @@ function readModuleRootModuleName(moduleRoot) {
23110
23150
  const launchers = launcherActivities(application);
23111
23151
  if (launchers.length === 0) return null;
23112
23152
  for (const set2 of import_node_fs26.default.readdirSync(sourceSets, { withFileTypes: true })) {
23113
- const file = import_node_path29.default.join(sourceSets, set2.name, "AndroidManifest.xml");
23153
+ const file = import_node_path30.default.join(sourceSets, set2.name, "AndroidManifest.xml");
23114
23154
  if (!set2.isDirectory() || set2.name === "main" || !import_node_fs26.default.existsSync(file)) continue;
23115
23155
  if (import_node_fs26.default.readFileSync(file, "utf8").includes("<activity")) return void 0;
23116
23156
  }
@@ -23127,7 +23167,7 @@ function readModuleRootModuleName(moduleRoot) {
23127
23167
  const files = import_node_fs26.default.readdirSync(sourceSets, { withFileTypes: true }).filter((set2) => set2.isDirectory()).flatMap(
23128
23168
  (set2) => ["java", "kotlin"].flatMap(
23129
23169
  (language) => ["kt", "java"].map(
23130
- (extension) => import_node_path29.default.join(sourceSets, set2.name, language, `${relative3}.${extension}`)
23170
+ (extension) => import_node_path30.default.join(sourceSets, set2.name, language, `${relative3}.${extension}`)
23131
23171
  )
23132
23172
  )
23133
23173
  ).filter((file) => import_node_fs26.default.existsSync(file));
@@ -23138,9 +23178,9 @@ function readModuleRootModuleName(moduleRoot) {
23138
23178
  );
23139
23179
  }
23140
23180
  function readAndroidLauncherRootModuleName(projectRoot) {
23141
- const androidRoot = import_node_path29.default.join(projectRoot, "android");
23181
+ const androidRoot = import_node_path30.default.join(projectRoot, "android");
23142
23182
  if (!import_node_fs26.default.existsSync(androidRoot)) return void 0;
23143
- const names = import_node_fs26.default.readdirSync(androidRoot, { withFileTypes: true }).filter((entry) => entry.isDirectory()).map((entry) => readModuleRootModuleName(import_node_path29.default.join(androidRoot, entry.name))).filter((name2) => name2 !== null);
23183
+ const names = import_node_fs26.default.readdirSync(androidRoot, { withFileTypes: true }).filter((entry) => entry.isDirectory()).map((entry) => readModuleRootModuleName(import_node_path30.default.join(androidRoot, entry.name))).filter((name2) => name2 !== null);
23144
23184
  return names.length === 1 ? names[0] : void 0;
23145
23185
  }
23146
23186
 
@@ -23590,13 +23630,13 @@ var metro_plugin_default = withPeach;
23590
23630
 
23591
23631
  // src/jump-to-source-babel.ts
23592
23632
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
23593
- function normalizeSourcePath(path30) {
23594
- const queryStart = path30.indexOf("?");
23595
- const clean = queryStart >= 0 ? path30.slice(0, queryStart) : path30;
23633
+ function normalizeSourcePath(path31) {
23634
+ const queryStart = path31.indexOf("?");
23635
+ const clean = queryStart >= 0 ? path31.slice(0, queryStart) : path31;
23596
23636
  return clean.replace(/\\/g, "/");
23597
23637
  }
23598
- function matchesPath(path30, matcher) {
23599
- return typeof matcher === "string" ? path30.includes(matcher) : matcher.test(path30);
23638
+ function matchesPath(path31, matcher) {
23639
+ return typeof matcher === "string" ? path31.includes(matcher) : matcher.test(path31);
23600
23640
  }
23601
23641
  function shouldStampFile(filename, options) {
23602
23642
  const normalized = normalizeSourcePath(filename);
@@ -23616,11 +23656,11 @@ function sootsimJumpToSourceBabelPlugin(api, options = {}) {
23616
23656
  name: "sootsim-jump-to-source",
23617
23657
  visitor: {
23618
23658
  JSXElement: {
23619
- exit(path30, state) {
23659
+ exit(path31, state) {
23620
23660
  if (options.enabled === false) return;
23621
23661
  const filename = state.filename;
23622
23662
  if (!filename || !shouldStampFile(filename, options)) return;
23623
- const node = path30.node;
23663
+ const node = path31.node;
23624
23664
  if (stamped.has(node)) return;
23625
23665
  stamped.add(node);
23626
23666
  const opening = node.openingElement;
@@ -23639,12 +23679,12 @@ function sootsimJumpToSourceBabelPlugin(api, options = {}) {
23639
23679
  );
23640
23680
  return;
23641
23681
  }
23642
- const fn = path30.getFunctionParent();
23682
+ const fn = path31.getFunctionParent();
23643
23683
  const parameterDefault = Boolean(
23644
23684
  fn && opening.start != null && fn.node.body.start != null && opening.start < fn.node.body.start
23645
23685
  );
23646
- const type = path30.scope.generateUidIdentifier("PeachSourceType");
23647
- if (!parameterDefault) path30.scope.push({ id: type });
23686
+ const type = path31.scope.generateUidIdentifier("PeachSourceType");
23687
+ if (!parameterDefault) path31.scope.push({ id: type });
23648
23688
  function expression(tag) {
23649
23689
  return t.isJSXIdentifier(tag) ? t.identifier(tag.name) : t.memberExpression(
23650
23690
  expression(tag.object),
@@ -23679,10 +23719,10 @@ function sootsimJumpToSourceBabelPlugin(api, options = {}) {
23679
23719
  ),
23680
23720
  node
23681
23721
  );
23682
- if (path30.parentPath.isJSXElement() || path30.parentPath.isJSXFragment()) {
23683
- path30.replaceWith(t.jsxExpressionContainer(replacement));
23722
+ if (path31.parentPath.isJSXElement() || path31.parentPath.isJSXFragment()) {
23723
+ path31.replaceWith(t.jsxExpressionContainer(replacement));
23684
23724
  } else {
23685
- path30.replaceWith(replacement);
23725
+ path31.replaceWith(replacement);
23686
23726
  }
23687
23727
  }
23688
23728
  }