peachsim 0.1.2111 → 0.1.2113

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 (92) hide show
  1. package/dist-lib/agent-daemon-client.cjs +1 -1
  2. package/dist-lib/agent-events.cjs +1 -1
  3. package/dist-lib/attached-projects.cjs +1 -1
  4. package/dist-lib/auth/shared-session.cjs +1 -1
  5. package/dist-lib/backend-origin.cjs +1 -1
  6. package/dist-lib/beta.cjs +1 -1
  7. package/dist-lib/beta.mjs +1 -1
  8. package/dist-lib/bridge-constants.cjs +1 -1
  9. package/dist-lib/bridge-contract-input.cjs +1 -1
  10. package/dist-lib/bridge-contract-input.mjs +1 -1
  11. package/dist-lib/bridge-contract.cjs +1 -1
  12. package/dist-lib/bridge-contract.mjs +1 -1
  13. package/dist-lib/bundle-channel.cjs +14 -9
  14. package/dist-lib/capture-contract.cjs +1 -1
  15. package/dist-lib/capture-contract.mjs +1 -1
  16. package/dist-lib/cloud-contract.cjs +1 -1
  17. package/dist-lib/cloud-contract.mjs +1 -1
  18. package/dist-lib/cloud-test-args.cjs +1 -1
  19. package/dist-lib/cloud-test-args.mjs +1 -1
  20. package/dist-lib/cloud.cjs +1 -1
  21. package/dist-lib/cloud.mjs +1 -1
  22. package/dist-lib/config.cjs +1 -1
  23. package/dist-lib/config.mjs +1 -1
  24. package/dist-lib/detox/index.cjs +1 -1
  25. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  26. package/dist-lib/expo-swift-bundle.cjs +297 -291
  27. package/dist-lib/expo-swift-metadata.cjs +1 -1
  28. package/dist-lib/expo-swift-metadata.mjs +1 -1
  29. package/dist-lib/home-paths.cjs +1 -1
  30. package/dist-lib/host/bridge-host.cjs +13 -8
  31. package/dist-lib/host/fetch-proxy-handler.cjs +2 -2
  32. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  33. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  34. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  35. package/dist-lib/host/websocket-proxy.cjs +1 -1
  36. package/dist-lib/index.cjs +2 -2
  37. package/dist-lib/jump-to-source-babel.cjs +1 -1
  38. package/dist-lib/jump-to-source-native.cjs +1 -1
  39. package/dist-lib/kotlin-host.cjs +1 -1
  40. package/dist-lib/menu.cjs +1 -1
  41. package/dist-lib/menu.mjs +1 -1
  42. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  43. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  44. package/dist-lib/metro-production-bundle.cjs +1 -1
  45. package/dist-lib/metro-production-bundle.mjs +1 -1
  46. package/dist-lib/metro.cjs +2 -2
  47. package/dist-lib/native-app-identity-project.cjs +2 -2
  48. package/dist-lib/native-app-identity-project.mjs +2 -2
  49. package/dist-lib/native-app-identity.cjs +1 -1
  50. package/dist-lib/native-app-identity.mjs +1 -1
  51. package/dist-lib/native-firebase-metadata.cjs +1 -1
  52. package/dist-lib/native-firebase-metadata.mjs +1 -1
  53. package/dist-lib/pdfium-raster.cjs +1 -1
  54. package/dist-lib/pdfium-raster.mjs +1 -1
  55. package/dist-lib/plist.cjs +1 -1
  56. package/dist-lib/plist.mjs +1 -1
  57. package/dist-lib/profiles.cjs +1 -1
  58. package/dist-lib/public-brand.cjs +1 -1
  59. package/dist-lib/public-origins-lib-esm.json +24 -24
  60. package/dist-lib/public-origins-lib.json +53 -53
  61. package/dist-lib/react-native-host-modules.cjs +1 -1
  62. package/dist-lib/react-native-host-modules.mjs +1 -1
  63. package/dist-lib/reap-browser.cjs +1 -1
  64. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  65. package/dist-lib/sdk.cjs +1 -1
  66. package/dist-lib/sdk.mjs +1 -1
  67. package/dist-lib/skills.cjs +14 -9
  68. package/dist-lib/swift-compile.cjs +2 -2
  69. package/dist-lib/swift-compile.mjs +2 -2
  70. package/dist-lib/swift-package.cjs +1 -1
  71. package/dist-lib/swift-package.mjs +1 -1
  72. package/dist-lib/swift-submit.cjs +1 -1
  73. package/dist-lib/swift-submit.mjs +1 -1
  74. package/dist-lib/swift-toolchain.cjs +1 -1
  75. package/dist-lib/swift.cjs +1 -1
  76. package/dist-lib/vite-swift.cjs +2 -2
  77. package/dist-lib/vite.cjs +2 -2
  78. package/dist-lib/worklet-executable.cjs +1 -1
  79. package/dist-lib/worklet-executable.mjs +1 -1
  80. package/package.json +1 -1
  81. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBarAppearance.h +2 -1
  82. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBarButtonItemAppearance.h +1 -0
  83. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBlurEffect.h +2 -44
  84. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIColor.h +1 -1
  85. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDevice.h +1 -9
  86. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIImage.h +2 -2
  87. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITabBarAppearance.h +4 -3
  88. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIVisualEffect.h +2 -1
  89. package/sdk/ios/System/Library/Frameworks/UIKitTypes.framework/Headers/UIKitTypes.h +67 -0
  90. package/sdk/ios/System/Library/Frameworks/UIKitTypes.framework/Modules/module.modulemap +2 -0
  91. package/src/turbo-compile.ts +14 -1
  92. package/src/turbo-source.ts +6 -2
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2111 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2113 | (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;
@@ -1176,7 +1176,7 @@ var import_node_crypto42 = require("node:crypto");
1176
1176
  var import_node_fs82 = __toESM(require("node:fs"), 1);
1177
1177
  var import_node_module8 = require("node:module");
1178
1178
  var import_node_os17 = __toESM(require("node:os"), 1);
1179
- var import_node_path79 = __toESM(require("node:path"), 1);
1179
+ var import_node_path80 = __toESM(require("node:path"), 1);
1180
1180
  var import_node_url6 = require("node:url");
1181
1181
  var import_node_util15 = require("node:util");
1182
1182
 
@@ -2980,17 +2980,17 @@ function visit(node, visitor) {
2980
2980
  visit.BREAK = BREAK;
2981
2981
  visit.SKIP = SKIP;
2982
2982
  visit.REMOVE = REMOVE;
2983
- function visit_(key2, node, visitor, path69) {
2984
- const ctrl = callVisitor(key2, node, visitor, path69);
2983
+ function visit_(key2, node, visitor, path70) {
2984
+ const ctrl = callVisitor(key2, node, visitor, path70);
2985
2985
  if (isNode(ctrl) || isPair(ctrl)) {
2986
- replaceNode(key2, path69, ctrl);
2987
- return visit_(key2, ctrl, visitor, path69);
2986
+ replaceNode(key2, path70, ctrl);
2987
+ return visit_(key2, ctrl, visitor, path70);
2988
2988
  }
2989
2989
  if (typeof ctrl !== "symbol") {
2990
2990
  if (isCollection(node)) {
2991
- path69 = Object.freeze(path69.concat(node));
2991
+ path70 = Object.freeze(path70.concat(node));
2992
2992
  for (let i = 0; i < node.items.length; ++i) {
2993
- const ci = visit_(i, node.items[i], visitor, path69);
2993
+ const ci = visit_(i, node.items[i], visitor, path70);
2994
2994
  if (typeof ci === "number")
2995
2995
  i = ci - 1;
2996
2996
  else if (ci === BREAK)
@@ -3001,13 +3001,13 @@ function visit_(key2, node, visitor, path69) {
3001
3001
  }
3002
3002
  }
3003
3003
  } else if (isPair(node)) {
3004
- path69 = Object.freeze(path69.concat(node));
3005
- const ck = visit_("key", node.key, visitor, path69);
3004
+ path70 = Object.freeze(path70.concat(node));
3005
+ const ck = visit_("key", node.key, visitor, path70);
3006
3006
  if (ck === BREAK)
3007
3007
  return BREAK;
3008
3008
  else if (ck === REMOVE)
3009
3009
  node.key = null;
3010
- const cv = visit_("value", node.value, visitor, path69);
3010
+ const cv = visit_("value", node.value, visitor, path70);
3011
3011
  if (cv === BREAK)
3012
3012
  return BREAK;
3013
3013
  else if (cv === REMOVE)
@@ -3028,17 +3028,17 @@ async function visitAsync(node, visitor) {
3028
3028
  visitAsync.BREAK = BREAK;
3029
3029
  visitAsync.SKIP = SKIP;
3030
3030
  visitAsync.REMOVE = REMOVE;
3031
- async function visitAsync_(key2, node, visitor, path69) {
3032
- const ctrl = await callVisitor(key2, node, visitor, path69);
3031
+ async function visitAsync_(key2, node, visitor, path70) {
3032
+ const ctrl = await callVisitor(key2, node, visitor, path70);
3033
3033
  if (isNode(ctrl) || isPair(ctrl)) {
3034
- replaceNode(key2, path69, ctrl);
3035
- return visitAsync_(key2, ctrl, visitor, path69);
3034
+ replaceNode(key2, path70, ctrl);
3035
+ return visitAsync_(key2, ctrl, visitor, path70);
3036
3036
  }
3037
3037
  if (typeof ctrl !== "symbol") {
3038
3038
  if (isCollection(node)) {
3039
- path69 = Object.freeze(path69.concat(node));
3039
+ path70 = Object.freeze(path70.concat(node));
3040
3040
  for (let i = 0; i < node.items.length; ++i) {
3041
- const ci = await visitAsync_(i, node.items[i], visitor, path69);
3041
+ const ci = await visitAsync_(i, node.items[i], visitor, path70);
3042
3042
  if (typeof ci === "number")
3043
3043
  i = ci - 1;
3044
3044
  else if (ci === BREAK)
@@ -3049,13 +3049,13 @@ async function visitAsync_(key2, node, visitor, path69) {
3049
3049
  }
3050
3050
  }
3051
3051
  } else if (isPair(node)) {
3052
- path69 = Object.freeze(path69.concat(node));
3053
- const ck = await visitAsync_("key", node.key, visitor, path69);
3052
+ path70 = Object.freeze(path70.concat(node));
3053
+ const ck = await visitAsync_("key", node.key, visitor, path70);
3054
3054
  if (ck === BREAK)
3055
3055
  return BREAK;
3056
3056
  else if (ck === REMOVE)
3057
3057
  node.key = null;
3058
- const cv = await visitAsync_("value", node.value, visitor, path69);
3058
+ const cv = await visitAsync_("value", node.value, visitor, path70);
3059
3059
  if (cv === BREAK)
3060
3060
  return BREAK;
3061
3061
  else if (cv === REMOVE)
@@ -3082,23 +3082,23 @@ function initVisitor(visitor) {
3082
3082
  }
3083
3083
  return visitor;
3084
3084
  }
3085
- function callVisitor(key2, node, visitor, path69) {
3085
+ function callVisitor(key2, node, visitor, path70) {
3086
3086
  if (typeof visitor === "function")
3087
- return visitor(key2, node, path69);
3087
+ return visitor(key2, node, path70);
3088
3088
  if (isMap(node))
3089
- return visitor.Map?.(key2, node, path69);
3089
+ return visitor.Map?.(key2, node, path70);
3090
3090
  if (isSeq(node))
3091
- return visitor.Seq?.(key2, node, path69);
3091
+ return visitor.Seq?.(key2, node, path70);
3092
3092
  if (isPair(node))
3093
- return visitor.Pair?.(key2, node, path69);
3093
+ return visitor.Pair?.(key2, node, path70);
3094
3094
  if (isScalar(node))
3095
- return visitor.Scalar?.(key2, node, path69);
3095
+ return visitor.Scalar?.(key2, node, path70);
3096
3096
  if (isAlias(node))
3097
- return visitor.Alias?.(key2, node, path69);
3097
+ return visitor.Alias?.(key2, node, path70);
3098
3098
  return void 0;
3099
3099
  }
3100
- function replaceNode(key2, path69, node) {
3101
- const parent = path69[path69.length - 1];
3100
+ function replaceNode(key2, path70, node) {
3101
+ const parent = path70[path70.length - 1];
3102
3102
  if (isCollection(parent)) {
3103
3103
  parent.items[key2] = node;
3104
3104
  } else if (isPair(parent)) {
@@ -3597,10 +3597,10 @@ function createNode(value, tagName, ctx) {
3597
3597
  }
3598
3598
 
3599
3599
  // ../../node_modules/yaml/browser/dist/nodes/Collection.js
3600
- function collectionFromPath(schema4, path69, value) {
3600
+ function collectionFromPath(schema4, path70, value) {
3601
3601
  let v6 = value;
3602
- for (let i = path69.length - 1; i >= 0; --i) {
3603
- const k = path69[i];
3602
+ for (let i = path70.length - 1; i >= 0; --i) {
3603
+ const k = path70[i];
3604
3604
  if (typeof k === "number" && Number.isInteger(k) && k >= 0) {
3605
3605
  const a = [];
3606
3606
  a[k] = v6;
@@ -3619,7 +3619,7 @@ function collectionFromPath(schema4, path69, value) {
3619
3619
  sourceObjects: /* @__PURE__ */ new Map()
3620
3620
  });
3621
3621
  }
3622
- var isEmptyPath = (path69) => path69 == null || typeof path69 === "object" && !!path69[Symbol.iterator]().next().done;
3622
+ var isEmptyPath = (path70) => path70 == null || typeof path70 === "object" && !!path70[Symbol.iterator]().next().done;
3623
3623
  var Collection = class extends NodeBase {
3624
3624
  constructor(type, schema4) {
3625
3625
  super(type);
@@ -3649,11 +3649,11 @@ var Collection = class extends NodeBase {
3649
3649
  * be a Pair instance or a `{ key, value }` object, which may not have a key
3650
3650
  * that already exists in the map.
3651
3651
  */
3652
- addIn(path69, value) {
3653
- if (isEmptyPath(path69))
3652
+ addIn(path70, value) {
3653
+ if (isEmptyPath(path70))
3654
3654
  this.add(value);
3655
3655
  else {
3656
- const [key2, ...rest] = path69;
3656
+ const [key2, ...rest] = path70;
3657
3657
  const node = this.get(key2, true);
3658
3658
  if (isCollection(node))
3659
3659
  node.addIn(rest, value);
@@ -3667,8 +3667,8 @@ var Collection = class extends NodeBase {
3667
3667
  * Removes a value from the collection.
3668
3668
  * @returns `true` if the item was found and removed.
3669
3669
  */
3670
- deleteIn(path69) {
3671
- const [key2, ...rest] = path69;
3670
+ deleteIn(path70) {
3671
+ const [key2, ...rest] = path70;
3672
3672
  if (rest.length === 0)
3673
3673
  return this.delete(key2);
3674
3674
  const node = this.get(key2, true);
@@ -3682,8 +3682,8 @@ var Collection = class extends NodeBase {
3682
3682
  * scalar values from their surrounding node; to disable set `keepScalar` to
3683
3683
  * `true` (collections are always returned intact).
3684
3684
  */
3685
- getIn(path69, keepScalar) {
3686
- const [key2, ...rest] = path69;
3685
+ getIn(path70, keepScalar) {
3686
+ const [key2, ...rest] = path70;
3687
3687
  const node = this.get(key2, true);
3688
3688
  if (rest.length === 0)
3689
3689
  return !keepScalar && isScalar(node) ? node.value : node;
@@ -3701,8 +3701,8 @@ var Collection = class extends NodeBase {
3701
3701
  /**
3702
3702
  * Checks if the collection includes a value with the key `key`.
3703
3703
  */
3704
- hasIn(path69) {
3705
- const [key2, ...rest] = path69;
3704
+ hasIn(path70) {
3705
+ const [key2, ...rest] = path70;
3706
3706
  if (rest.length === 0)
3707
3707
  return this.has(key2);
3708
3708
  const node = this.get(key2, true);
@@ -3712,8 +3712,8 @@ var Collection = class extends NodeBase {
3712
3712
  * Sets a value in this collection. For `!!set`, `value` needs to be a
3713
3713
  * boolean to add/remove the item from the set.
3714
3714
  */
3715
- setIn(path69, value) {
3716
- const [key2, ...rest] = path69;
3715
+ setIn(path70, value) {
3716
+ const [key2, ...rest] = path70;
3717
3717
  if (rest.length === 0) {
3718
3718
  this.set(key2, value);
3719
3719
  } else {
@@ -5302,9 +5302,9 @@ function visit2(cst, visitor) {
5302
5302
  visit2.BREAK = BREAK2;
5303
5303
  visit2.SKIP = SKIP2;
5304
5304
  visit2.REMOVE = REMOVE2;
5305
- visit2.itemAtPath = (cst, path69) => {
5305
+ visit2.itemAtPath = (cst, path70) => {
5306
5306
  let item = cst;
5307
- for (const [field, index] of path69) {
5307
+ for (const [field, index] of path70) {
5308
5308
  const tok = item?.[field];
5309
5309
  if (tok && "items" in tok) {
5310
5310
  item = tok.items[index];
@@ -5313,23 +5313,23 @@ visit2.itemAtPath = (cst, path69) => {
5313
5313
  }
5314
5314
  return item;
5315
5315
  };
5316
- visit2.parentCollection = (cst, path69) => {
5317
- const parent = visit2.itemAtPath(cst, path69.slice(0, -1));
5318
- const field = path69[path69.length - 1][0];
5316
+ visit2.parentCollection = (cst, path70) => {
5317
+ const parent = visit2.itemAtPath(cst, path70.slice(0, -1));
5318
+ const field = path70[path70.length - 1][0];
5319
5319
  const coll = parent?.[field];
5320
5320
  if (coll && "items" in coll)
5321
5321
  return coll;
5322
5322
  throw new Error("Parent collection not found");
5323
5323
  };
5324
- function _visit(path69, item, visitor) {
5325
- let ctrl = visitor(item, path69);
5324
+ function _visit(path70, item, visitor) {
5325
+ let ctrl = visitor(item, path70);
5326
5326
  if (typeof ctrl === "symbol")
5327
5327
  return ctrl;
5328
5328
  for (const field of ["key", "value"]) {
5329
5329
  const token = item[field];
5330
5330
  if (token && "items" in token) {
5331
5331
  for (let i = 0; i < token.items.length; ++i) {
5332
- const ci = _visit(Object.freeze(path69.concat([[field, i]])), token.items[i], visitor);
5332
+ const ci = _visit(Object.freeze(path70.concat([[field, i]])), token.items[i], visitor);
5333
5333
  if (typeof ci === "number")
5334
5334
  i = ci - 1;
5335
5335
  else if (ci === BREAK2)
@@ -5340,10 +5340,10 @@ function _visit(path69, item, visitor) {
5340
5340
  }
5341
5341
  }
5342
5342
  if (typeof ctrl === "function" && field === "key")
5343
- ctrl = ctrl(item, path69);
5343
+ ctrl = ctrl(item, path70);
5344
5344
  }
5345
5345
  }
5346
- return typeof ctrl === "function" ? ctrl(item, path69) : ctrl;
5346
+ return typeof ctrl === "function" ? ctrl(item, path70) : ctrl;
5347
5347
  }
5348
5348
 
5349
5349
  // ../../node_modules/yaml/browser/dist/parse/lexer.js
@@ -5466,8 +5466,8 @@ function metadataValue(value, key2) {
5466
5466
  if (!value || typeof value !== "object") return void 0;
5467
5467
  return Object.getOwnPropertyDescriptor(value, key2)?.value;
5468
5468
  }
5469
- function readProjectJson(path69, files2 = nodeRepoFileReader) {
5470
- const text6 = readProjectMetadata(path69, files2);
5469
+ function readProjectJson(path70, files2 = nodeRepoFileReader) {
5470
+ const text6 = readProjectMetadata(path70, files2);
5471
5471
  if (text6 === null) return null;
5472
5472
  try {
5473
5473
  const value = JSON.parse(text6);
@@ -6022,7 +6022,7 @@ function scanLocalNative(appDir, pkg, answered2, platform, knownPackages = /* @_
6022
6022
  expoModule: moduleDir ? (0, import_node_path8.relative)(appDir, moduleDir) || "." : null,
6023
6023
  optional: optional3,
6024
6024
  swift: moduleDir ? (nativeFilesByModule.get(moduleDir) ?? []).some(
6025
- (path69) => path69.endsWith(".swift") && [...(readSmallFile(path69) ?? "").matchAll(/\bName\(\s*"(\w+)"\s*\)/g)].some(
6025
+ (path70) => path70.endsWith(".swift") && [...(readSmallFile(path70) ?? "").matchAll(/\bName\(\s*"(\w+)"\s*\)/g)].some(
6026
6026
  (match) => match[1] === name3
6027
6027
  )
6028
6028
  ) : false,
@@ -7873,8 +7873,8 @@ export *
7873
7873
  }`;
7874
7874
  }
7875
7875
  function swiftPackageIdentity(url) {
7876
- const path69 = url.endsWith("/") ? url.slice(0, -1) : url;
7877
- return (path69.split("/").pop() ?? path69).replace(/\.git$/, "").toLowerCase();
7876
+ const path70 = url.endsWith("/") ? url.slice(0, -1) : url;
7877
+ return (path70.split("/").pop() ?? path70).replace(/\.git$/, "").toLowerCase();
7878
7878
  }
7879
7879
  var withoutGlogModuleMap = (flags) => flags.filter(
7880
7880
  (flag) => !(flag.startsWith("-fmodule-map-file=") && flag.endsWith("/glog.modulemap"))
@@ -8421,8 +8421,8 @@ var import_node_fs23 = require("node:fs");
8421
8421
  var import_node_path19 = require("node:path");
8422
8422
  var Refusal = class extends Error {
8423
8423
  };
8424
- var refuse = (path69, reason) => {
8425
- throw new Refusal(`Generated asset symbols are unproven for ${path69}: ${reason}`);
8424
+ var refuse = (path70, reason) => {
8425
+ throw new Refusal(`Generated asset symbols are unproven for ${path70}: ${reason}`);
8426
8426
  };
8427
8427
  var isRecord2 = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
8428
8428
  var scope = (source) => ({
@@ -8710,14 +8710,14 @@ function addAsset(into, asset) {
8710
8710
  function checkStack(dir, type, devices) {
8711
8711
  const sets = (parent, allowed) => (0, import_node_fs23.readdirSync)(parent, { withFileTypes: true }).flatMap((entry) => {
8712
8712
  if (entry.name.startsWith(".") || entry.isFile()) return [];
8713
- const path69 = (0, import_node_path19.join)(parent, entry.name);
8713
+ const path70 = (0, import_node_path19.join)(parent, entry.name);
8714
8714
  const extension = (0, import_node_path19.extname)(entry.name);
8715
8715
  if (!entry.isDirectory() || !allowed.includes(extension))
8716
8716
  return refuse(
8717
- path69,
8717
+ path70,
8718
8718
  `image stack content other than ${allowed.join(", ")} is unproven`
8719
8719
  );
8720
- return [{ path: path69, extension }];
8720
+ return [{ path: path70, extension }];
8721
8721
  });
8722
8722
  for (const layer of sets(dir, [`.${type}layer`, ".imageset", ".colorset"])) {
8723
8723
  if (layer.extension !== `.${type}layer`) continue;
@@ -8729,37 +8729,37 @@ function checkStack(dir, type, devices) {
8729
8729
  function walk(dir, into, devices, extensions) {
8730
8730
  for (const entry of (0, import_node_fs23.readdirSync)(dir, { withFileTypes: true })) {
8731
8731
  if (entry.name.startsWith(".") || entry.isFile()) continue;
8732
- const path69 = (0, import_node_path19.join)(dir, entry.name);
8733
- if (!entry.isDirectory()) return refuse(path69, "it is neither a file nor a directory");
8732
+ const path70 = (0, import_node_path19.join)(dir, entry.name);
8733
+ if (!entry.isDirectory()) return refuse(path70, "it is neither a file nor a directory");
8734
8734
  const extension = (0, import_node_path19.extname)(entry.name).slice(1);
8735
8735
  const type = extension.toLowerCase();
8736
8736
  const base = entry.name.slice(0, entry.name.length - extension.length - 1);
8737
8737
  if (type !== extension && knownTypes.has(type))
8738
- return refuse(path69, "its type extension is not lowercase");
8738
+ return refuse(path70, "its type extension is not lowercase");
8739
8739
  if (type === "colorset" || type === "imageset" || type === "symbolset") {
8740
8740
  addAsset(into, {
8741
8741
  kind: type === "colorset" ? "color" : "image",
8742
8742
  name: base,
8743
- ...assetState(path69, type, devices),
8743
+ ...assetState(path70, type, devices),
8744
8744
  extensions,
8745
- source: path69
8745
+ source: path70
8746
8746
  });
8747
8747
  continue;
8748
8748
  }
8749
8749
  if (silentTypes.has(type)) continue;
8750
8750
  if (stackTypes.has(type)) {
8751
- checkStack(path69, type, devices);
8751
+ checkStack(path70, type, devices);
8752
8752
  continue;
8753
8753
  }
8754
- if (unprovenTypes.has(type)) return refuse(path69, `${type} assets are unproven`);
8754
+ if (unprovenTypes.has(type)) return refuse(path70, `${type} assets are unproven`);
8755
8755
  const name3 = type === "spriteatlas" ? base : entry.name;
8756
- if (!folderProperties((0, import_node_path19.join)(path69, "Contents.json")).namespace) {
8757
- walk(path69, into, devices, extensions);
8756
+ if (!folderProperties((0, import_node_path19.join)(path70, "Contents.json")).namespace) {
8757
+ walk(path70, into, devices, extensions);
8758
8758
  continue;
8759
8759
  }
8760
- const child = into.namespaces.get(name3) ?? scope(path69);
8760
+ const child = into.namespaces.get(name3) ?? scope(path70);
8761
8761
  into.namespaces.set(name3, child);
8762
- walk(path69, child, devices, extensions);
8762
+ walk(path70, child, devices, extensions);
8763
8763
  }
8764
8764
  }
8765
8765
  var hasKind = (into, kind) => [...into.assets.values()].some((asset) => asset.kind === kind && asset.included) || [...into.namespaces.values()].some((child) => hasKind(child, kind));
@@ -8828,11 +8828,11 @@ function members(into, kind, prefix, extensions) {
8828
8828
  const assets2 = /* @__PURE__ */ new Set();
8829
8829
  const out = [];
8830
8830
  for (const entry of entries) {
8831
- const path69 = `${prefix}${entry.name}`;
8831
+ const path70 = `${prefix}${entry.name}`;
8832
8832
  const source = entry.child ? entry.child.source : entry.asset.source;
8833
8833
  if (Array.from(entry.name).some((char) => char.charCodeAt(0) > 127))
8834
8834
  refuse(source, "its name is not ASCII");
8835
- const named = (text7) => `The \\"${escape(path69)}\\" ${text7}`;
8835
+ const named = (text7) => `The \\"${escape(path70)}\\" ${text7}`;
8836
8836
  if (entry.child) {
8837
8837
  const text7 = symbol(entry.name, true);
8838
8838
  if (!text7)
@@ -8855,9 +8855,9 @@ function members(into, kind, prefix, extensions) {
8855
8855
  namespaces.add(text7);
8856
8856
  out.push({
8857
8857
  type: "namespace",
8858
- path: path69,
8858
+ path: path70,
8859
8859
  symbol: spelled(text7),
8860
- members: members(entry.child, kind, `${path69}/`, extensions)
8860
+ members: members(entry.child, kind, `${path70}/`, extensions)
8861
8861
  });
8862
8862
  }
8863
8863
  continue;
@@ -8884,7 +8884,7 @@ function members(into, kind, prefix, extensions) {
8884
8884
  else if (!omitted)
8885
8885
  out.push({
8886
8886
  type: "asset",
8887
- path: path69,
8887
+ path: path70,
8888
8888
  name: entry.name,
8889
8889
  symbol: spelled(text6),
8890
8890
  thinnable: asset.thinnable,
@@ -9418,11 +9418,11 @@ function catalogDigest(directory2) {
9418
9418
  for (const entry of (0, import_node_fs24.readdirSync)(dir, { withFileTypes: true }).sort(
9419
9419
  (a, b) => a.name.localeCompare(b.name)
9420
9420
  )) {
9421
- const path69 = (0, import_node_path20.join)(dir, entry.name);
9422
- if (entry.isDirectory()) walk3(path69);
9423
- else if (entry.isFile() && (0, import_node_fs24.statSync)(path69).size <= 64 * 1024 * 1024)
9424
- hashes.push([(0, import_node_path20.relative)(directory2, path69), sha256((0, import_node_fs24.readFileSync)(path69))]);
9425
- else throw new Error(`Unsupported asset catalog entry: ${path69}`);
9421
+ const path70 = (0, import_node_path20.join)(dir, entry.name);
9422
+ if (entry.isDirectory()) walk3(path70);
9423
+ else if (entry.isFile() && (0, import_node_fs24.statSync)(path70).size <= 64 * 1024 * 1024)
9424
+ hashes.push([(0, import_node_path20.relative)(directory2, path70), sha256((0, import_node_fs24.readFileSync)(path70))]);
9425
+ else throw new Error(`Unsupported asset catalog entry: ${path70}`);
9426
9426
  }
9427
9427
  };
9428
9428
  walk3(directory2);
@@ -9434,7 +9434,7 @@ function symbolSource(plan, root) {
9434
9434
  const known = symbolTexts.get(key2);
9435
9435
  if (known !== void 0) return { status: "source", text: known };
9436
9436
  const source = assetSymbolSource(
9437
- plan.catalogs.map(({ path: path69 }) => (0, import_node_path20.join)(root, path69)),
9437
+ plan.catalogs.map(({ path: path70 }) => (0, import_node_path20.join)(root, path70)),
9438
9438
  plan.settings
9439
9439
  );
9440
9440
  if (source.status === "source") symbolTexts.set(key2, source.text);
@@ -9492,9 +9492,9 @@ function planAssetSymbols(resources, root, settings) {
9492
9492
  `Generated asset symbols are proven only for TARGETED_DEVICE_FAMILY 1, 2, 1,2, 1,7, 1,2,6 or 1,2,7; this target resolves to "${families}".`
9493
9493
  );
9494
9494
  const plan = {
9495
- catalogs: catalogs.map((path69) => ({
9496
- path: path69,
9497
- sha256: catalogDigest((0, import_node_path20.join)(root, path69))
9495
+ catalogs: catalogs.map((path70) => ({
9496
+ path: path70,
9497
+ sha256: catalogDigest((0, import_node_path20.join)(root, path70))
9498
9498
  })),
9499
9499
  settings: { deployment: target, devices, extensions: extensions === "YES" }
9500
9500
  };
@@ -12380,10 +12380,10 @@ function synthesizedInterfaceEnums(interfaceText, module2, graphs) {
12380
12380
  const enclosing = scopes.length > 0 ? scopes[scopes.length - 1].prefix : [];
12381
12381
  if (scope2?.[3] === "enum" && opens > 0 && /(^|\s)(public|open)\s/.test(scope2[2] ?? "") && !/\bwhere\b/.test(first.masked) && first.masked[scope2.index + scope2[0].length] !== "<") {
12382
12382
  const name3 = scope2[4];
12383
- const path69 = scopeOf(name3, enclosing, false);
12384
- if (!byPath.has(path69.join(".")) && (path69.length === 1 || byPath.has(path69.slice(0, -1).join(".")))) {
12383
+ const path70 = scopeOf(name3, enclosing, false);
12384
+ if (!byPath.has(path70.join(".")) && (path70.length === 1 || byPath.has(path70.slice(0, -1).join(".")))) {
12385
12385
  const keptAttrs = [...(scope2[1] ?? "").matchAll(/@\w+(?:\([^)]*\))?/g)].map((attr) => attr[0]).filter((attr) => !attr.startsWith("@objc"));
12386
- const id = `s:peach-synthesized-${module2}-${path69.join(".")}`;
12386
+ const id = `s:peach-synthesized-${module2}-${path70.join(".")}`;
12387
12387
  const body = [];
12388
12388
  let inner = 1;
12389
12389
  let closed = false;
@@ -12438,15 +12438,15 @@ function synthesizedInterfaceEnums(interfaceText, module2, graphs) {
12438
12438
  symbols.push({
12439
12439
  kind: { identifier: "swift.enum" },
12440
12440
  identifier: { precise: id },
12441
- pathComponents: path69,
12441
+ pathComponents: path70,
12442
12442
  declarationFragments: fragments,
12443
12443
  accessLevel: "public"
12444
12444
  });
12445
- if (path69.length > 1)
12445
+ if (path70.length > 1)
12446
12446
  relationships.push({
12447
12447
  kind: "memberOf",
12448
12448
  source: id,
12449
- target: byPath.get(path69.slice(0, -1).join("."))
12449
+ target: byPath.get(path70.slice(0, -1).join("."))
12450
12450
  });
12451
12451
  for (const kase of cases) {
12452
12452
  const memberId = `${id}-${kase.leaf}`;
@@ -12455,7 +12455,7 @@ function synthesizedInterfaceEnums(interfaceText, module2, graphs) {
12455
12455
  symbols.push({
12456
12456
  kind: { identifier: "swift.enum.case" },
12457
12457
  identifier: { precise: memberId },
12458
- pathComponents: [...path69, kase.leaf],
12458
+ pathComponents: [...path70, kase.leaf],
12459
12459
  declarationFragments: [
12460
12460
  { kind: "keyword", spelling: "case" },
12461
12461
  { kind: "text", spelling: " " },
@@ -12471,7 +12471,7 @@ function synthesizedInterfaceEnums(interfaceText, module2, graphs) {
12471
12471
  symbols.push({
12472
12472
  kind: { identifier: "swift.init" },
12473
12473
  identifier: { precise: initId },
12474
- pathComponents: [...path69, "init(rawValue:)"],
12474
+ pathComponents: [...path70, "init(rawValue:)"],
12475
12475
  declarationFragments: [
12476
12476
  { kind: "keyword", spelling: "init" },
12477
12477
  { kind: "text", spelling: "?(" },
@@ -12540,7 +12540,7 @@ function emitSwiftStandin(sourceGraphs, options) {
12540
12540
  })
12541
12541
  )
12542
12542
  );
12543
- const trap = (path69) => `fatalError("${path69} is ${options.placeholder === void 0 ? "a binary framework" : "a placeholder"} peach cannot run")`;
12543
+ const trap = (path70) => `fatalError("${path70} is ${options.placeholder === void 0 ? "a binary framework" : "a placeholder"} peach cannot run")`;
12544
12544
  const skipped = [];
12545
12545
  const behavior = options.behavior ?? /* @__PURE__ */ new Map();
12546
12546
  const used = /* @__PURE__ */ new Set();
@@ -12890,34 +12890,34 @@ function emitSwiftStandin(sourceGraphs, options) {
12890
12890
  lines.push(...physical);
12891
12891
  owners.push(...physical.map(() => current2));
12892
12892
  };
12893
- const emitAt = (path69, line) => {
12894
- if (omit.has(path69)) return;
12893
+ const emitAt = (path70, line) => {
12894
+ if (omit.has(path70)) return;
12895
12895
  const previous = current2;
12896
- current2 = path69;
12896
+ current2 = path70;
12897
12897
  emit(line);
12898
12898
  current2 = previous;
12899
12899
  };
12900
12900
  const emitInertState = (id, indent2, build) => {
12901
- const path69 = pathOf(byId.get(id));
12901
+ const path70 = pathOf(byId.get(id));
12902
12902
  emitAt(hiddenInit(id), `${indent2}init(_peachInert: Void) { ${build} }`);
12903
12903
  const list2 = conforms.get(id) ?? [];
12904
12904
  const has = (name3) => (children.get(id) ?? []).some((member) => leaf(member) === name3);
12905
12905
  if (list2.includes("Encodable") && !has("encode(to:)"))
12906
12906
  emitAt(
12907
- `${path69}.encode(to:)`,
12907
+ `${path70}.encode(to:)`,
12908
12908
  `${indent2}public func encode(to encoder: Encoder) throws {}`
12909
12909
  );
12910
12910
  if (list2.includes("Decodable") && !has("init(from:)"))
12911
12911
  emitAt(
12912
- `${path69}.init(from:)`,
12912
+ `${path70}.init(from:)`,
12913
12913
  `${indent2}public init(from decoder: Decoder) throws { self.init(_peachInert: ()) }`
12914
12914
  );
12915
12915
  };
12916
12916
  const scoped = (body) => (symbol2, ...rest) => {
12917
- const path69 = pathOf(symbol2);
12918
- if (omit.has(path69)) return void skipped.push({ path: path69, reason: omit.get(path69) });
12917
+ const path70 = pathOf(symbol2);
12918
+ if (omit.has(path70)) return void skipped.push({ path: path70, reason: omit.get(path70) });
12919
12919
  const previous = current2;
12920
- current2 = path69;
12920
+ current2 = path70;
12921
12921
  try {
12922
12922
  body(symbol2, ...rest);
12923
12923
  } finally {
@@ -12949,7 +12949,7 @@ function emitSwiftStandin(sourceGraphs, options) {
12949
12949
  };
12950
12950
  const emitMember = scoped(
12951
12951
  (member, indent2, context) => {
12952
- const path69 = pathOf(member);
12952
+ const path70 = pathOf(member);
12953
12953
  if (TYPE_KINDS.has(member.kind.identifier)) {
12954
12954
  const origin = origins.get(member.identifier.precise)?.split(".")[0];
12955
12955
  const parent = owner.get(member.identifier.precise);
@@ -12966,7 +12966,7 @@ function emitSwiftStandin(sourceGraphs, options) {
12966
12966
  ))
12967
12967
  return;
12968
12968
  if (!MEMBER_KINDS.has(member.kind.identifier)) {
12969
- skipped.push({ path: path69, reason: `unhandled ${member.kind.identifier}` });
12969
+ skipped.push({ path: path70, reason: `unhandled ${member.kind.identifier}` });
12970
12970
  return;
12971
12971
  }
12972
12972
  const { 1: spelledAttrs, 2: rest } = LEADING_ATTRS.exec(text(member));
@@ -12974,27 +12974,27 @@ function emitSwiftStandin(sourceGraphs, options) {
12974
12974
  /@(\w+)(?:\([^)]*\))?\s*/g,
12975
12975
  (attr, name3) => typeByPath.has(name3) ? "" : attr
12976
12976
  ) : spelledAttrs;
12977
- const attrs = options.unobjc?.has(path69) ? wrapped.replace(/@objc(?:\([^)]*\))?\s*/g, "") : wrapped;
12977
+ const attrs = options.unobjc?.has(path70) ? wrapped.replace(/@objc(?:\([^)]*\))?\s*/g, "") : wrapped;
12978
12978
  const modifiers = /^((?:(?:required|final|override|convenience|unowned(?:\(\w+\))?|weak|lazy|nonisolated|mutating|nonmutating) )*)(.*)$/s.exec(
12979
12979
  rest
12980
12980
  );
12981
12981
  const flags = new Set(
12982
12982
  modifiers[1].trim().split(/\s+/).filter(Boolean).map((flag) => flag.replace(/\(.*/, ""))
12983
12983
  );
12984
- const requiredInit = context.inClass && !!options.requiredInits?.has(path69);
12985
- const restatesRequired = context.inClass && path69.endsWith(".init()") && [...superChain(owner.get(member.identifier.precise) ?? "")].some(
12984
+ const requiredInit = context.inClass && !!options.requiredInits?.has(path70);
12985
+ const restatesRequired = context.inClass && path70.endsWith(".init()") && [...superChain(owner.get(member.identifier.precise) ?? "")].some(
12986
12986
  (at) => options.requiredInits?.has(`${pathOf(byId.get(at))}.init()`)
12987
12987
  );
12988
12988
  const required = context.inClass && (flags.has("required") || requiredInit || restatesRequired);
12989
12989
  const final = context.inClass && flags.has("final") ? "final " : "";
12990
12990
  const mutating = flags.has("mutating") ? "mutating " : flags.has("nonmutating") ? "nonmutating " : "";
12991
12991
  let core = `${flags.has("convenience") ? "convenience " : ""}${modifiers[2]}`;
12992
- const override = context.inClass && !options.plain?.has(path69) && !restatesRequired && (flags.has("override") || overrides.has(member.identifier.precise) || options.forcedOverride?.has(path69) || isObjC(member) && path69.endsWith(".init()")) ? "override " : "";
12992
+ const override = context.inClass && !options.plain?.has(path70) && !restatesRequired && (flags.has("override") || overrides.has(member.identifier.precise) || options.forcedOverride?.has(path70) || isObjC(member) && path70.endsWith(".init()")) ? "override " : "";
12993
12993
  const head = `${indent2}${attrs}${access(member, context.openOwner)} ${required ? "required " : ""}${final}${override}${mutating}`;
12994
- const measured = behavior.get(path69);
12995
- if (measured) used.add(path69);
12994
+ const measured = behavior.get(path70);
12995
+ if (measured) used.add(path70);
12996
12996
  const overloadBody = /\basync\b/.test(core) ? measured?.asyncBody : /\bResult</.test(core) ? measured?.resultBody : void 0;
12997
- const body = overloadBody ?? measured?.body ?? (options.inert ? inertBody(member) : trap(path69));
12997
+ const body = overloadBody ?? measured?.body ?? (options.inert ? inertBody(member) : trap(path70));
12998
12998
  switch (member.kind.identifier) {
12999
12999
  case "swift.property":
13000
13000
  case "swift.type.property":
@@ -13007,13 +13007,13 @@ function emitSwiftStandin(sourceGraphs, options) {
13007
13007
  const parameter = !measured && !options.inert && !settable && /:\s*some\s/.test(decl) ? opaqueParameter(member) : void 0;
13008
13008
  const getter = parameter ? `return ({ () -> ${parameter} in ${body} })()` : body;
13009
13009
  const computed = decl.replace(/^((?:static |class )*)let /, "$1var ");
13010
- const wrapper = options.projections?.get(path69);
13010
+ const wrapper = options.projections?.get(path70);
13011
13011
  if (wrapper) {
13012
13012
  const type = /^var\s+`?\w+`?\s*:\s*(.+)$/s.exec(computed)?.[1];
13013
- const initial = type && inertValue(type, /* @__PURE__ */ new Set(), [path69]);
13013
+ const initial = type && inertValue(type, /* @__PURE__ */ new Set(), [path70]);
13014
13014
  if (!initial)
13015
13015
  return void skipped.push({
13016
- path: path69,
13016
+ path: path70,
13017
13017
  reason: `wrapped by ${wrapper} with no inert initial value`
13018
13018
  });
13019
13019
  const own = new RegExp(
@@ -13034,7 +13034,7 @@ function emitSwiftStandin(sourceGraphs, options) {
13034
13034
  return;
13035
13035
  }
13036
13036
  emit(
13037
- `${head}${computed} { get${effects} { ${getter} }${settable && !effects ? ` ${parsed.nonmutating ? "nonmutating " : ""}set { ${measured?.set ?? (options.inert ? "" : trap(path69))} }` : ""} }`
13037
+ `${head}${computed} { get${effects} { ${getter} }${settable && !effects ? ` ${parsed.nonmutating ? "nonmutating " : ""}set { ${measured?.set ?? (options.inert ? "" : trap(path70))} }` : ""} }`
13038
13038
  );
13039
13039
  return;
13040
13040
  }
@@ -13093,7 +13093,7 @@ function emitSwiftStandin(sourceGraphs, options) {
13093
13093
  };
13094
13094
  const emitType = scoped(
13095
13095
  (symbol2, indent2) => {
13096
- const path69 = pathOf(symbol2);
13096
+ const path70 = pathOf(symbol2);
13097
13097
  const id = symbol2.identifier.precise;
13098
13098
  const inner = `${indent2} `;
13099
13099
  switch (symbol2.kind.identifier) {
@@ -13110,10 +13110,10 @@ function emitSwiftStandin(sourceGraphs, options) {
13110
13110
  case "swift.class": {
13111
13111
  const shape = header(symbol2, "class", indent2);
13112
13112
  if (!shape)
13113
- return void skipped.push({ path: path69, reason: `unparsed class ${text(symbol2)}` });
13114
- const parent = options.superclasses?.get(path69) ?? superclass.get(id);
13113
+ return void skipped.push({ path: path70, reason: `unparsed class ${text(symbol2)}` });
13114
+ const parent = options.superclasses?.get(path70) ?? superclass.get(id);
13115
13115
  const blocked = classBlocked(id);
13116
- if (blocked) return void skipped.push({ path: path69, reason: blocked });
13116
+ if (blocked) return void skipped.push({ path: path70, reason: blocked });
13117
13117
  const ancestors = /* @__PURE__ */ new Set();
13118
13118
  const inherited = /* @__PURE__ */ new Set();
13119
13119
  for (let at = superId.get(id); at; at = superId.get(at)) {
@@ -13136,9 +13136,9 @@ function emitSwiftStandin(sourceGraphs, options) {
13136
13136
  `${indent2}${shape.attrs}${objcName ? `@objc(${objcName}) ` : ""}${shape.final}${open ? "open" : "public"} class ${shape.name}${shape.generics}${list2.length ? `: ${list2.join(", ")}` : ""}${selfConforming(shape.where)} {`
13137
13137
  );
13138
13138
  const members2 = membersOf(id);
13139
- const extra = options.behavior?.get(path69)?.members;
13139
+ const extra = options.behavior?.get(path70)?.members;
13140
13140
  if (extra) {
13141
- used.add(path69);
13141
+ used.add(path70);
13142
13142
  emit(`${inner}${extra}`);
13143
13143
  }
13144
13144
  for (const member of members2)
@@ -13194,11 +13194,11 @@ function emitSwiftStandin(sourceGraphs, options) {
13194
13194
  if (protocol && member.kind.identifier === "swift.method" && leaf(member).endsWith("()") && have.has(`instance|leaf|${leaf(member).slice(0, -2)}`))
13195
13195
  propertyWitnesses.push({
13196
13196
  owner: current2,
13197
- head: `extension ${pathOf(protocol)} where Self: ${path69} {`,
13197
+ head: `extension ${pathOf(protocol)} where Self: ${path70} {`,
13198
13198
  member,
13199
- path: path69
13199
+ path: path70
13200
13200
  });
13201
- else emitWitness(member, inner, path69, open && isObjC(member));
13201
+ else emitWitness(member, inner, path70, open && isObjC(member));
13202
13202
  }
13203
13203
  }
13204
13204
  if (options.inert && designated2 && classBuild(id) === "hidden")
@@ -13206,13 +13206,13 @@ function emitSwiftStandin(sourceGraphs, options) {
13206
13206
  const coder = members2.some((member) => leaf(member) === "init(coder:)");
13207
13207
  if (designated2 && !coder && externalRoot(id) !== "NSObject" && externalRoot(id) !== null)
13208
13208
  emit(
13209
- `${inner}public required init?(coder: NSCoder) { ${options.inert ? "return nil" : trap(`${path69}.init(coder:)`)} }`
13209
+ `${inner}public required init?(coder: NSCoder) { ${options.inert ? "return nil" : trap(`${path70}.init(coder:)`)} }`
13210
13210
  );
13211
13211
  if (designated2 && !members2.some((member) => leaf(member) === "init()") && [...superChain(id)].some(
13212
13212
  (at) => options.requiredInits?.has(`${pathOf(byId.get(at))}.init()`)
13213
13213
  ))
13214
13214
  emit(
13215
- `${inner}public required init() { ${options.inert ? superInit(id) : trap(`${path69}.init()`)} }`
13215
+ `${inner}public required init() { ${options.inert ? superInit(id) : trap(`${path70}.init()`)} }`
13216
13216
  );
13217
13217
  emit(`${indent2}}`);
13218
13218
  return;
@@ -13220,7 +13220,7 @@ function emitSwiftStandin(sourceGraphs, options) {
13220
13220
  case "swift.struct": {
13221
13221
  const shape = header(symbol2, "struct", indent2);
13222
13222
  if (!shape)
13223
- return void skipped.push({ path: path69, reason: `unparsed struct ${text(symbol2)}` });
13223
+ return void skipped.push({ path: path70, reason: `unparsed struct ${text(symbol2)}` });
13224
13224
  const members2 = membersOf(id);
13225
13225
  const raw2 = rawType(members2);
13226
13226
  const list2 = inheritance(id);
@@ -13261,7 +13261,7 @@ function emitSwiftStandin(sourceGraphs, options) {
13261
13261
  emitInertState(
13262
13262
  id,
13263
13263
  inner,
13264
- raw2 ? `self.rawValue = ${inertValue(raw2, /* @__PURE__ */ new Set(), [path69]) ?? "0"}` : ""
13264
+ raw2 ? `self.rawValue = ${inertValue(raw2, /* @__PURE__ */ new Set(), [path70]) ?? "0"}` : ""
13265
13265
  );
13266
13266
  emit(`${indent2}}`);
13267
13267
  return;
@@ -13269,7 +13269,7 @@ function emitSwiftStandin(sourceGraphs, options) {
13269
13269
  case "swift.enum": {
13270
13270
  const shape = header(symbol2, "enum", indent2);
13271
13271
  if (!shape)
13272
- return void skipped.push({ path: path69, reason: `unparsed enum ${text(symbol2)}` });
13272
+ return void skipped.push({ path: path70, reason: `unparsed enum ${text(symbol2)}` });
13273
13273
  const members2 = membersOf(id);
13274
13274
  const cases = members2.filter(
13275
13275
  (member) => member.kind.identifier === "swift.enum.case"
@@ -13279,7 +13279,7 @@ function emitSwiftStandin(sourceGraphs, options) {
13279
13279
  const missing = raw2 ? cases.filter((member) => !values.has(member.identifier.precise)) : [];
13280
13280
  if (raw2 && (isObjC(symbol2) || /^c:@C?M@[^@]+@E@/.test(id)) && missing.length > 0)
13281
13281
  return void skipped.push({
13282
- path: path69,
13282
+ path: path70,
13283
13283
  reason: `no header value for ${missing.map(leaf).join(", ")}`
13284
13284
  });
13285
13285
  const list2 = inheritance(id, raw2 ?? void 0).filter(
@@ -13319,8 +13319,8 @@ function emitSwiftStandin(sourceGraphs, options) {
13319
13319
  });
13320
13320
  }
13321
13321
  if (options.inert) {
13322
- const value = options.trapped?.has(hiddenInit(id)) ? null : inertValue(path69, /* @__PURE__ */ new Set(), []);
13323
- emitInertState(id, inner, value === null ? trap(path69) : `self = ${value}`);
13322
+ const value = options.trapped?.has(hiddenInit(id)) ? null : inertValue(path70, /* @__PURE__ */ new Set(), []);
13323
+ emitInertState(id, inner, value === null ? trap(path70) : `self = ${value}`);
13324
13324
  }
13325
13325
  emit(`${indent2}}`);
13326
13326
  return;
@@ -13329,14 +13329,14 @@ function emitSwiftStandin(sourceGraphs, options) {
13329
13329
  const shape = header(symbol2, "protocol", indent2);
13330
13330
  if (!shape)
13331
13331
  return void skipped.push({
13332
- path: path69,
13332
+ path: path70,
13333
13333
  reason: `unparsed protocol ${text(symbol2)}`
13334
13334
  });
13335
13335
  const native = nativeObjcProtocols.has(id);
13336
13336
  const objcName = native ? /^c:objc\(pl\)(\w+)$/.exec(id)?.[1] : void 0;
13337
13337
  if (native && !objcName)
13338
13338
  return void skipped.push({
13339
- path: path69,
13339
+ path: path70,
13340
13340
  reason: `unknown Objective-C protocol identity ${id}`
13341
13341
  });
13342
13342
  const list2 = [
@@ -13364,7 +13364,7 @@ function emitSwiftStandin(sourceGraphs, options) {
13364
13364
  }
13365
13365
  emit(`${indent2}}`);
13366
13366
  if (defaults.length > 0) {
13367
- emit(`${indent2}extension ${path69} {`);
13367
+ emit(`${indent2}extension ${path70} {`);
13368
13368
  for (const member of defaults) {
13369
13369
  const decl = text(member);
13370
13370
  if (optional3.has(member.identifier.precise) && member.kind.identifier === "swift.method" && !decl.replace(/\([^)]*\)/g, "").includes("->") && !/ async\b/.test(decl))
@@ -13456,7 +13456,7 @@ function emitSwiftStandin(sourceGraphs, options) {
13456
13456
  };
13457
13457
  const atWidth = (value, raw2) => (raw2 === "UInt" || raw2 === "Swift.UInt") && value === "18446744073709551615" ? "4294967295" : (raw2 === "Int" || raw2 === "Swift.Int") && value === "9223372036854775807" ? "2147483647" : (raw2 === "Int" || raw2 === "Swift.Int") && value === "-9223372036854775808" ? "-2147483648" : value;
13458
13458
  const emitGlobal = scoped((symbol2) => {
13459
- const path69 = pathOf(symbol2);
13459
+ const path70 = pathOf(symbol2);
13460
13460
  const kind = symbol2.kind.identifier;
13461
13461
  if (kind === "swift.func" || kind === "swift.func.op" || kind === "swift.method" || kind === "swift.type.method") {
13462
13462
  const { 1: attrs, 2: rest } = LEADING_ATTRS.exec(text(symbol2));
@@ -13465,20 +13465,20 @@ function emitSwiftStandin(sourceGraphs, options) {
13465
13465
  if (leaf(symbol2).endsWith("(_:)") && !/^(?:prefix|infix|postfix)\b/.test(spelled2))
13466
13466
  spelled2 = `prefix ${spelled2}`;
13467
13467
  }
13468
- const measured = behavior.get(path69);
13469
- if (measured) used.add(path69);
13468
+ const measured = behavior.get(path70);
13469
+ if (measured) used.add(path70);
13470
13470
  const overloadBody = /\basync\b/.test(spelled2) ? measured?.asyncBody : /\bResult</.test(spelled2) ? measured?.resultBody : void 0;
13471
13471
  emit(
13472
- `${attrs}public ${spelled2} { ${overloadBody ?? measured?.body ?? (options.inert ? inertBody(symbol2) : trap(path69))} }`
13472
+ `${attrs}public ${spelled2} { ${overloadBody ?? measured?.body ?? (options.inert ? inertBody(symbol2) : trap(path70))} }`
13473
13473
  );
13474
13474
  } else if (kind === "swift.var") {
13475
13475
  const parsed = splitAccessors(text(symbol2).replace(/^let /, "var "));
13476
- const measured = behavior.get(path69);
13477
- if (measured) used.add(path69);
13476
+ const measured = behavior.get(path70);
13477
+ if (measured) used.add(path70);
13478
13478
  emit(
13479
- `public ${parsed.decl} { ${measured?.body ?? (options.inert ? inertBody(symbol2) : trap(path69))} }`
13479
+ `public ${parsed.decl} { ${measured?.body ?? (options.inert ? inertBody(symbol2) : trap(path70))} }`
13480
13480
  );
13481
- } else skipped.push({ path: path69, reason: `unhandled top-level ${kind}` });
13481
+ } else skipped.push({ path: path70, reason: `unhandled top-level ${kind}` });
13482
13482
  });
13483
13483
  const cExports = new Set(
13484
13484
  [...byId.values()].flatMap((symbol2) => {
@@ -13495,7 +13495,7 @@ function emitSwiftStandin(sourceGraphs, options) {
13495
13495
  return !name3 || !cExports.has(`${name3}|${text(symbol2)}`);
13496
13496
  }).sort((a, b) => pathOf(a).localeCompare(pathOf(b)));
13497
13497
  for (const symbol2 of roots) {
13498
- const path69 = pathOf(symbol2);
13498
+ const path70 = pathOf(symbol2);
13499
13499
  if (TYPE_KINDS.has(symbol2.kind.identifier)) emitType(symbol2, "");
13500
13500
  else emitGlobal(symbol2);
13501
13501
  }
@@ -13556,9 +13556,9 @@ function emitSwiftStandin(sourceGraphs, options) {
13556
13556
  "#endif",
13557
13557
  ""
13558
13558
  ];
13559
- for (const path69 of behavior.keys())
13560
- if (!used.has(path69))
13561
- skipped.push({ path: path69, reason: "behavior names no emitted declaration" });
13559
+ for (const path70 of behavior.keys())
13560
+ if (!used.has(path70))
13561
+ skipped.push({ path: path70, reason: "behavior names no emitted declaration" });
13562
13562
  return {
13563
13563
  source: `${[...banner, ...lines].join("\n")}
13564
13564
  `,
@@ -15586,9 +15586,9 @@ var EXCERPT = /^(\s*)(\d+)( \| )(.*)$/;
15586
15586
  var MARKER = /^(\s*)( \| )(.*)$/;
15587
15587
  function designTimeDiagnostic(output2, files2) {
15588
15588
  const rewritten = /* @__PURE__ */ new Map();
15589
- const linesOf = (path69) => {
15589
+ const linesOf = (path70) => {
15590
15590
  const file = Object.keys(files2).find(
15591
- (name3) => name3.endsWith(".swift") && (path69 === name3 || path69.endsWith(`/${name3}`))
15591
+ (name3) => name3.endsWith(".swift") && (path70 === name3 || path70.endsWith(`/${name3}`))
15592
15592
  );
15593
15593
  if (file === void 0) return null;
15594
15594
  let lines = rewritten.get(file);
@@ -22997,7 +22997,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
22997
22997
  var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
22998
22998
  var MULTI_MANIFEST_VERSION = 68;
22999
22999
  var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
23000
- var compilerSourceDigest = true ? "2785fbd24d382cf03125cf053e28d3c4016317441246689f1d4b4c15c2a677b0" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
23000
+ var compilerSourceDigest = true ? "ea71d48e0e763d5d66f6bcf76f1c0d531770cb823f7918bdbc8a380ff04b0105" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
23001
23001
  function swiftArtifactHash(input, release, moduleRoot) {
23002
23002
  const hash = (0, import_node_crypto19.createHash)("sha256");
23003
23003
  hash.update(`swift-compile
@@ -32451,9 +32451,9 @@ async function packageTreeDigest(root) {
32451
32451
  (a, b) => a.name.localeCompare(b.name)
32452
32452
  )) {
32453
32453
  if (entry.name === "node_modules") continue;
32454
- const path69 = `${relative3}${entry.name}`;
32455
- if (entry.isDirectory()) walk3((0, import_node_path60.join)(directory2, entry.name), `${path69}/`);
32456
- else if (entry.isFile()) files2.push(path69);
32454
+ const path70 = `${relative3}${entry.name}`;
32455
+ if (entry.isDirectory()) walk3((0, import_node_path60.join)(directory2, entry.name), `${path70}/`);
32456
+ else if (entry.isFile()) files2.push(path70);
32457
32457
  }
32458
32458
  };
32459
32459
  walk3(root, "");
@@ -32469,7 +32469,7 @@ async function packageTreeDigest(root) {
32469
32469
  // src/expo-native-prebuilt.ts
32470
32470
  var EXPO_NATIVE_ENTRY_NAME = "ios";
32471
32471
  function expoNativeCompilerDigestValue() {
32472
- return true ? "dad87cfcec146aa605aa455c2c0f72bc5f2d6fe3f0a4122953c3ba99587f6733" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
32472
+ return true ? "b2b988d96f675274b5000b8cdf6e9f3d8f9329b3fab3587223744ec4caf04923" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
32473
32473
  }
32474
32474
  var IDENTITY_SOURCE_SKIPS = 1 | 4 | 8 | 16 | 32 | 64 | 128 | 4096;
32475
32475
  function readSources(value) {
@@ -33637,7 +33637,7 @@ function resolveSwiftPackages(options) {
33637
33637
  headers.set(name3, import_node_path65.default.relative(binary2.dir, dir));
33638
33638
  };
33639
33639
  visit3(pkg, binary2.target);
33640
- binary2.headerDependencies = [...headers].map(([module2, path69]) => ({ module: module2, path: path69 }));
33640
+ binary2.headerDependencies = [...headers].map(([module2, path70]) => ({ module: module2, path: path70 }));
33641
33641
  }
33642
33642
  for (const owner of options.owners ?? []) {
33643
33643
  const found = productClosure(owner.products);
@@ -38446,8 +38446,8 @@ function imagesetFiles(images) {
38446
38446
  ];
38447
38447
  }).sort((a, b) => a.scale - b.scale);
38448
38448
  }
38449
- function flatScale(path69) {
38450
- const match = /@([23])x\.[^./]+$/.exec(path69);
38449
+ function flatScale(path70) {
38450
+ const match = /@([23])x\.[^./]+$/.exec(path70);
38451
38451
  return match ? Number(match[1]) : 1;
38452
38452
  }
38453
38453
  function providesNamespace(text6) {
@@ -38474,8 +38474,8 @@ function catalogEntryName(contentsPath, kind, readText) {
38474
38474
  }
38475
38475
  return segments.join("/");
38476
38476
  }
38477
- function isFlatResourceImage(path69) {
38478
- return path69.split("/").includes("Resources") && RASTER_EXTENSIONS.has(extOf(path69));
38477
+ function isFlatResourceImage(path70) {
38478
+ return path70.split("/").includes("Resources") && RASTER_EXTENSIONS.has(extOf(path70));
38479
38479
  }
38480
38480
  function enumerateBundleImages(paths, readText, bundleForFile = () => ".") {
38481
38481
  const table = [];
@@ -38488,7 +38488,7 @@ function enumerateBundleImages(paths, readText, bundleForFile = () => ".") {
38488
38488
  seen.set(bundlePath, names);
38489
38489
  return { bundlePath, names };
38490
38490
  };
38491
- const catalogs = paths.filter((path69) => baseOf(path69) === "Contents.json");
38491
+ const catalogs = paths.filter((path70) => baseOf(path70) === "Contents.json");
38492
38492
  for (const contentsPath of catalogs) {
38493
38493
  const name3 = catalogEntryName(contentsPath, ".imageset", readText);
38494
38494
  if (name3 === null) continue;
@@ -38520,13 +38520,13 @@ function enumerateBundleImages(paths, readText, bundleForFile = () => ".") {
38520
38520
  ...intent === "template" || intent === "original" ? { renderingMode: intent } : {}
38521
38521
  });
38522
38522
  }
38523
- for (const path69 of paths) {
38524
- if (!isFlatResourceImage(path69)) continue;
38525
- const name3 = baseOf(path69).slice(0, -extOf(path69).length);
38526
- const { bundlePath, names } = namesFor(path69);
38523
+ for (const path70 of paths) {
38524
+ if (!isFlatResourceImage(path70)) continue;
38525
+ const name3 = baseOf(path70).slice(0, -extOf(path70).length);
38526
+ const { bundlePath, names } = namesFor(path70);
38527
38527
  if (name3 === "" || names.has(name3)) continue;
38528
38528
  names.add(name3);
38529
- table.push({ name: name3, file: path69, scale: flatScale(path69), bundlePath });
38529
+ table.push({ name: name3, file: path70, scale: flatScale(path70), bundlePath });
38530
38530
  }
38531
38531
  return table;
38532
38532
  }
@@ -38561,7 +38561,7 @@ function colorsetValue(color) {
38561
38561
  }
38562
38562
  function enumerateBundleColors(paths, readText) {
38563
38563
  const table = {};
38564
- for (const contentsPath of paths.filter((path69) => baseOf(path69) === "Contents.json")) {
38564
+ for (const contentsPath of paths.filter((path70) => baseOf(path70) === "Contents.json")) {
38565
38565
  const name3 = catalogEntryName(contentsPath, ".colorset", readText);
38566
38566
  if (name3 === null || name3 in table) continue;
38567
38567
  let colors;
@@ -38642,8 +38642,8 @@ function axisExtremes(points) {
38642
38642
  function pathBounds(d) {
38643
38643
  const xs = [];
38644
38644
  const ys = [];
38645
- for (const path69 of d)
38646
- (0, import_svgpath.default)(path69).abs().unshort().unarc().iterate((segment, _index, x, y) => {
38645
+ for (const path70 of d)
38646
+ (0, import_svgpath.default)(path70).abs().unshort().unarc().iterate((segment, _index, x, y) => {
38647
38647
  const [command, ...args] = segment;
38648
38648
  if (command === "M" || command === "L") {
38649
38649
  xs.push(Number(args[0]));
@@ -38670,7 +38670,7 @@ function guide(svg, id, axis) {
38670
38670
  }
38671
38671
  function enumerateBundleSymbols(paths, readText, bundleForFile) {
38672
38672
  const table = {};
38673
- for (const contentsPath of paths.filter((path69) => baseOf(path69) === "Contents.json")) {
38673
+ for (const contentsPath of paths.filter((path70) => baseOf(path70) === "Contents.json")) {
38674
38674
  const name3 = catalogEntryName(contentsPath, ".symbolset", readText);
38675
38675
  if (name3 === null) continue;
38676
38676
  const bundle = bundleForFile(contentsPath);
@@ -38729,8 +38729,8 @@ function enumerateBundleSymbols(paths, readText, bundleForFile) {
38729
38729
  advance,
38730
38730
  box: [12 - wide / 2, 12 - tall / 2, wide, tall],
38731
38731
  ...customLayout ? { customLayout } : {},
38732
- layers: d.map((path69) => ({
38733
- d: (0, import_svgpath.default)(path69).abs().scale(em).translate(translateX, translateY).round(3).toString()
38732
+ layers: d.map((path70) => ({
38733
+ d: (0, import_svgpath.default)(path70).abs().scale(em).translate(translateX, translateY).round(3).toString()
38734
38734
  }))
38735
38735
  };
38736
38736
  table[vectorKey] = vector;
@@ -38742,18 +38742,18 @@ function enumerateBundleSymbols(paths, readText, bundleForFile) {
38742
38742
  return table;
38743
38743
  }
38744
38744
  var COMPILED_EXTENSIONS = /* @__PURE__ */ new Set([".swift", ".metal", ".storyboard", ".xib"]);
38745
- function isCopiedResource(path69, copiedBundle) {
38746
- if (copiedBundle || path69.split("/").some((segment) => /\.(atlasc|bundle|storyboardc|nib)$/.test(segment)))
38745
+ function isCopiedResource(path70, copiedBundle) {
38746
+ if (copiedBundle || path70.split("/").some((segment) => /\.(atlasc|bundle|storyboardc|nib)$/.test(segment)))
38747
38747
  return true;
38748
- const ext = extOf(path69);
38748
+ const ext = extOf(path70);
38749
38749
  if (ext === ".json" || ext === ".xcstrings") return true;
38750
- return !RASTER_EXTENSIONS.has(ext) && !COMPILED_EXTENSIONS.has(ext) && !path69.split("/").some((segment) => segment.endsWith(".xcassets"));
38750
+ return !RASTER_EXTENSIONS.has(ext) && !COMPILED_EXTENSIONS.has(ext) && !path70.split("/").some((segment) => segment.endsWith(".xcassets"));
38751
38751
  }
38752
38752
  function enumerateBundleResources(paths, copiedBundle = false) {
38753
38753
  const found = [];
38754
38754
  const seen = /* @__PURE__ */ new Set();
38755
38755
  const ordered = [...paths].filter(
38756
- (path69) => path69.split("/").includes("Resources") && path69.split("/").every((segment) => segment !== "" && segment !== "..") && isCopiedResource(path69, copiedBundle)
38756
+ (path70) => path70.split("/").includes("Resources") && path70.split("/").every((segment) => segment !== "" && segment !== "..") && isCopiedResource(path70, copiedBundle)
38757
38757
  ).sort((a, b) => {
38758
38758
  const aDepth = a.split("/").length;
38759
38759
  const bDepth = b.split("/").length;
@@ -38864,31 +38864,31 @@ function tokens(text6) {
38864
38864
  }
38865
38865
  return result;
38866
38866
  }
38867
- function qualified(language, key2, path69) {
38868
- return `(${language}: ${key2}${path69 === "" ? "" : "|==|" + path69})`;
38867
+ function qualified(language, key2, path70) {
38868
+ return `(${language}: ${key2}${path70 === "" ? "" : "|==|" + path70})`;
38869
38869
  }
38870
- function requiresNumber(language, key2, path69) {
38870
+ function requiresNumber(language, key2, path70) {
38871
38871
  return Error(
38872
- "Plural variation requires referencing the number in the string. To maintain grammatical correctness for strings that do not reference the number of items, use separate top-level strings for one and greater than one. " + qualified(language, key2, path69)
38872
+ "Plural variation requires referencing the number in the string. To maintain grammatical correctness for strings that do not reference the number of items, use separate top-level strings for one and greater than one. " + qualified(language, key2, path70)
38873
38873
  );
38874
38874
  }
38875
- function moreThanOne(language, key2, path69) {
38875
+ function moreThanOne(language, key2, path70) {
38876
38876
  return Error(
38877
- "Cannot infer format specifier for string group because more than one numerical specifier was found " + qualified(language, key2, path69)
38877
+ "Cannot infer format specifier for string group because more than one numerical specifier was found " + qualified(language, key2, path70)
38878
38878
  );
38879
38879
  }
38880
38880
  function schemaPath(segments) {
38881
38881
  return segments.map((segment) => `'${segment}'`).join(" -> ");
38882
38882
  }
38883
- function checkUnitShape(node, path69) {
38883
+ function checkUnitShape(node, path70) {
38884
38884
  const raw2 = node.stringUnit;
38885
38885
  if (raw2 === void 0)
38886
- throw Error(`Missing required key 'stringUnit' inside ${schemaPath(path69)}`);
38886
+ throw Error(`Missing required key 'stringUnit' inside ${schemaPath(path70)}`);
38887
38887
  if (raw2 === null)
38888
- throw Error(`Missing required value for key 'stringUnit' inside ${schemaPath(path69)}`);
38888
+ throw Error(`Missing required value for key 'stringUnit' inside ${schemaPath(path70)}`);
38889
38889
  if (!isRecord3(raw2))
38890
- throw Error(`Expected dictionary for key 'stringUnit' inside ${schemaPath(path69)}`);
38891
- const unitPath = [...path69, "stringUnit"];
38890
+ throw Error(`Expected dictionary for key 'stringUnit' inside ${schemaPath(path70)}`);
38891
+ const unitPath = [...path70, "stringUnit"];
38892
38892
  if (!Object.hasOwn(raw2, "state"))
38893
38893
  throw Error(`Missing required key 'state' inside ${schemaPath(unitPath)}`);
38894
38894
  const state = raw2.state;
@@ -38905,38 +38905,38 @@ function checkUnitShape(node, path69) {
38905
38905
  throw Error(`Expected string for key 'value' inside ${schemaPath(unitPath)}`);
38906
38906
  return value;
38907
38907
  }
38908
- function checkPluralShape(node, path69) {
38908
+ function checkPluralShape(node, path70) {
38909
38909
  for (const [category, raw2] of Object.entries(node)) {
38910
- const categoryPath = [...path69, category];
38910
+ const categoryPath = [...path70, category];
38911
38911
  if (raw2 === null)
38912
38912
  throw Error(
38913
- `Missing required value for key '${category}' inside ${schemaPath(path69)}`
38913
+ `Missing required value for key '${category}' inside ${schemaPath(path70)}`
38914
38914
  );
38915
38915
  if (!isRecord3(raw2))
38916
- throw Error(`Expected dictionary for key '${category}' inside ${schemaPath(path69)}`);
38916
+ throw Error(`Expected dictionary for key '${category}' inside ${schemaPath(path70)}`);
38917
38917
  checkUnitShape(raw2, categoryPath);
38918
38918
  }
38919
38919
  }
38920
- function checkLocalizationShape(node, path69, deviceValue = false) {
38920
+ function checkLocalizationShape(node, path70, deviceValue = false) {
38921
38921
  if (node === null)
38922
38922
  throw Error(
38923
- `Missing required value for key '${path69[path69.length - 1]}' inside ${schemaPath(path69.slice(0, -1))}`
38923
+ `Missing required value for key '${path70[path70.length - 1]}' inside ${schemaPath(path70.slice(0, -1))}`
38924
38924
  );
38925
38925
  if (!isRecord3(node))
38926
38926
  throw Error(
38927
- `Expected dictionary for key '${path69[path69.length - 1]}' inside ${schemaPath(path69.slice(0, -1))}`
38927
+ `Expected dictionary for key '${path70[path70.length - 1]}' inside ${schemaPath(path70.slice(0, -1))}`
38928
38928
  );
38929
- if (Object.hasOwn(node, "variations")) checkVariationsShape(node.variations, path69);
38929
+ if (Object.hasOwn(node, "variations")) checkVariationsShape(node.variations, path70);
38930
38930
  if (!deviceValue && Object.hasOwn(node, "substitutions"))
38931
- checkSubstitutionsShape(node.substitutions, path69);
38932
- if (!Object.hasOwn(node, "variations")) checkUnitShape(node, path69);
38931
+ checkSubstitutionsShape(node.substitutions, path70);
38932
+ if (!Object.hasOwn(node, "variations")) checkUnitShape(node, path70);
38933
38933
  }
38934
- function checkVariationsShape(variations, path69) {
38934
+ function checkVariationsShape(variations, path70) {
38935
38935
  if (variations === null)
38936
- throw Error(`Missing required value for key 'variations' inside ${schemaPath(path69)}`);
38936
+ throw Error(`Missing required value for key 'variations' inside ${schemaPath(path70)}`);
38937
38937
  if (!isRecord3(variations))
38938
- throw Error(`Expected dictionary for key 'variations' inside ${schemaPath(path69)}`);
38939
- const variationsPath = [...path69, "variations"];
38938
+ throw Error(`Expected dictionary for key 'variations' inside ${schemaPath(path70)}`);
38939
+ const variationsPath = [...path70, "variations"];
38940
38940
  for (const [type, raw2] of Object.entries(variations)) {
38941
38941
  if (raw2 === null)
38942
38942
  throw Error(
@@ -38962,11 +38962,11 @@ function checkVariationsShape(variations, path69) {
38962
38962
  }
38963
38963
  }
38964
38964
  }
38965
- function checkSubstitutionsShape(substitutions, path69) {
38965
+ function checkSubstitutionsShape(substitutions, path70) {
38966
38966
  if (substitutions === null) return;
38967
38967
  if (!isRecord3(substitutions))
38968
- throw Error(`Expected dictionary for key 'substitutions' inside ${schemaPath(path69)}`);
38969
- const substitutionsPath = [...path69, "substitutions"];
38968
+ throw Error(`Expected dictionary for key 'substitutions' inside ${schemaPath(path70)}`);
38969
+ const substitutionsPath = [...path70, "substitutions"];
38970
38970
  for (const [name3, raw2] of Object.entries(substitutions)) {
38971
38971
  const subPath = [...substitutionsPath, name3];
38972
38972
  if (raw2 === null)
@@ -39008,10 +39008,10 @@ function scanSpecs(forms) {
39008
39008
  }
39009
39009
  return specs;
39010
39010
  }
39011
- function inferPlural(forms, language, key2, path69) {
39011
+ function inferPlural(forms, language, key2, path70) {
39012
39012
  const specs = scanSpecs(forms);
39013
- if (specs.size === 0) throw requiresNumber(language, key2, path69);
39014
- if (specs.size > 1) throw moreThanOne(language, key2, path69);
39013
+ if (specs.size === 0) throw requiresNumber(language, key2, path70);
39014
+ if (specs.size > 1) throw moreThanOne(language, key2, path70);
39015
39015
  return [...specs.values()][0] ?? { specifier: "", argument: 0 };
39016
39016
  }
39017
39017
  function unit(value) {
@@ -39843,8 +39843,8 @@ function plist4(value, depth) {
39843
39843
  }
39844
39844
  function compileStringCatalog(source, name3) {
39845
39845
  return Object.fromEntries(
39846
- Object.entries(compileCatalogTables(source, name3)).map(([path69, table]) => [
39847
- path69,
39846
+ Object.entries(compileCatalogTables(source, name3)).map(([path70, table]) => [
39847
+ path70,
39848
39848
  '<?xml version="1.0" encoding="UTF-8"?>\n<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">\n<plist version="1.0">\n' + plist4(table, 0) + "</plist>\n"
39849
39849
  ])
39850
39850
  );
@@ -40416,8 +40416,8 @@ function sourceEntryPath() {
40416
40416
  return null;
40417
40417
  }
40418
40418
  }
40419
- function isCliEntry(path69) {
40420
- const name3 = (0, import_node_path73.basename)(path69);
40419
+ function isCliEntry(path70) {
40420
+ const name3 = (0, import_node_path73.basename)(path70);
40421
40421
  return name3 === "bin.ts" || name3 === "bin.js";
40422
40422
  }
40423
40423
  function rnxSelfInvocation() {
@@ -42595,6 +42595,7 @@ function scopedArtifact(project, entry, moduleRoot, signal) {
42595
42595
 
42596
42596
  // src/turbo-compile.ts
42597
42597
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
42598
+ var import_node_path79 = __toESM(require("node:path"), 1);
42598
42599
 
42599
42600
  // src/nitro-adapter.ts
42600
42601
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
@@ -44416,6 +44417,7 @@ function codegenSpecRoot(codegen) {
44416
44417
  var TURBO_CORE_TARGET = "TurboCore";
44417
44418
  var TURBO_FMT_TARGET = "TurboFmt";
44418
44419
  var TURBO_ENTRY_HEADER = "PeachTurboEntry.hpp";
44420
+ var TURBO_CORE_PUBLIC_HEADERS = "entry";
44419
44421
  var REGISTRATION = "registerCxxModuleToGlobalModuleMap";
44420
44422
  var CODEGEN_OBJC = /@generated by codegen project: GenerateModuleObjCpp\b/;
44421
44423
  var UNIT = /\.(?:c|cc|cpp|cxx)$/;
@@ -44682,11 +44684,11 @@ function stringList(value) {
44682
44684
  function externalSpecMembers(root, requested) {
44683
44685
  const children = (spec) => Array.isArray(spec.subspecs) ? spec.subspecs.filter(object5) : [];
44684
44686
  const chains = /* @__PURE__ */ new Map();
44685
- const select = (path69) => {
44686
- const key2 = path69.join("/");
44687
+ const select = (path70) => {
44688
+ const key2 = path70.join("/");
44687
44689
  if (chains.has(key2)) return;
44688
44690
  const chain = [root];
44689
- for (const part of path69) {
44691
+ for (const part of path70) {
44690
44692
  const child = children(chain.at(-1)).find((sub) => sub.name === part);
44691
44693
  if (!child) throw new Error(`${String(root.name)} has no subspec ${key2}`);
44692
44694
  chain.push(child);
@@ -44695,7 +44697,7 @@ function externalSpecMembers(root, requested) {
44695
44697
  const spec = chain.at(-1);
44696
44698
  const defaults = stringList(spec.default_subspecs ?? spec.default_subspec);
44697
44699
  const activated = defaults[0] === "none" ? [] : defaults.length > 0 ? defaults : children(spec).map((sub) => String(sub.name));
44698
- for (const name3 of activated) select([...path69, ...name3.split("/")]);
44700
+ for (const name3 of activated) select([...path70, ...name3.split("/")]);
44699
44701
  for (const member of chain)
44700
44702
  for (const dependencies of [member.dependencies, iosOf(member)?.dependencies])
44701
44703
  for (const dependency of object5(dependencies) ? Object.keys(dependencies) : []) {
@@ -45843,11 +45845,11 @@ ${declared.map((symbol2) => `extern "C" void ${symbol2}();
45843
45845
  const withRuntime = binding.includes("TurboModuleProviderFunctionTypeWithRuntime");
45844
45846
  add(`${core}/include/PeachJsiRuntime.hpp`, TURBO_RUNTIME_HEADER);
45845
45847
  add(
45846
- `${core}/include/${TURBO_ENTRY_HEADER}`,
45848
+ `${core}/${TURBO_CORE_PUBLIC_HEADERS}/${TURBO_ENTRY_HEADER}`,
45847
45849
  '#pragma once\nextern "C" void peachTurboInitialize();\n'
45848
45850
  );
45849
45851
  add(
45850
- `${core}/include/module.modulemap`,
45852
+ `${core}/${TURBO_CORE_PUBLIC_HEADERS}/module.modulemap`,
45851
45853
  `module ${TURBO_CORE_TARGET} { header "${TURBO_ENTRY_HEADER}" export * }
45852
45854
  `
45853
45855
  );
@@ -46669,6 +46671,7 @@ function collectTurboCompileInput(collection, runtime, iosDeploymentTarget, depe
46669
46671
  `let package = Package(name: "PeachNativeModule", platforms: [.iOS(${JSON.stringify(iosDeploymentTarget)})], targets: [`,
46670
46672
  ...dependencyTargets,
46671
46673
  ...targets.map((target) => {
46674
+ const hasCore = targetNames.includes(TURBO_CORE_TARGET);
46672
46675
  const hasObjcPrefix = Boolean(
46673
46676
  files2[`Sources/${TURBO_CORE_TARGET}/include/PeachTurboPrefix.pch`]
46674
46677
  );
@@ -46679,11 +46682,14 @@ function collectTurboCompileInput(collection, runtime, iosDeploymentTarget, depe
46679
46682
  ...target.name === TURBO_CORE_TARGET ? [] : ['.unsafeFlags(["-fmodules", "-Wno-error=int-conversion"])'],
46680
46683
  ...clangSettingEntries(target.clangSettings, "c")
46681
46684
  ];
46685
+ const coreHeaders = hasCore ? `.headerSearchPath(${JSON.stringify(import_node_path79.default.posix.relative(target.path, `Sources/${TURBO_CORE_TARGET}/include`))})` : null;
46686
+ if (coreHeaders) cEntries.push(coreHeaders);
46682
46687
  const cSettings = cEntries.length ? `, cSettings: [${cEntries.join(", ")}]` : "";
46683
- return `.target(name: ${JSON.stringify(target.name)}, dependencies: ${JSON.stringify(target.dependencies?.map((dependency) => dependency.name) ?? [])}, path: ${JSON.stringify(target.path)}, exclude: ${JSON.stringify(target.exclude ?? [])}${cSettings}, cxxSettings: [${(target.cxxDefines ?? []).map((define) => {
46688
+ const publicHeaders = hasCore && target.name === TURBO_CORE_TARGET ? `, publicHeadersPath: ${JSON.stringify(TURBO_CORE_PUBLIC_HEADERS)}` : "";
46689
+ return `.target(name: ${JSON.stringify(target.name)}, dependencies: ${JSON.stringify(target.dependencies?.map((dependency) => dependency.name) ?? [])}, path: ${JSON.stringify(target.path)}, exclude: ${JSON.stringify(target.exclude ?? [])}${publicHeaders}${cSettings}, cxxSettings: [${(target.cxxDefines ?? []).map((define) => {
46684
46690
  const [name3, ...value] = define.split("=");
46685
46691
  return value.length ? `.define(${JSON.stringify(name3)}, to: ${JSON.stringify(value.join("="))})` : `.define(${JSON.stringify(name3)})`;
46686
- }).concat(clangSettingEntries(target.clangSettings, "cxx")).join(", ")}], ${swiftManifestSettings(target)}),`;
46692
+ }).concat(clangSettingEntries(target.clangSettings, "cxx")).concat(coreHeaders ? [coreHeaders] : []).join(", ")}], ${swiftManifestSettings(target)}),`;
46687
46693
  }),
46688
46694
  `.executableTarget(name: "PeachTurboApp", dependencies: ${JSON.stringify(targetNames)}, swiftSettings: [.interoperabilityMode(.Cxx)]),`,
46689
46695
  "], cxxLanguageStandard: .cxx20)",
@@ -46743,17 +46749,17 @@ function mtimeNs(stat) {
46743
46749
  }
46744
46750
  function tracedPath(value) {
46745
46751
  if (typeof value === "number" || value == null) return null;
46746
- if (typeof value === "string") return value.length === 0 ? null : import_node_path79.default.resolve(value);
46752
+ if (typeof value === "string") return value.length === 0 ? null : import_node_path80.default.resolve(value);
46747
46753
  if (value instanceof URL)
46748
46754
  return value.protocol === "file:" ? (0, import_node_url6.fileURLToPath)(value) : null;
46749
- if (Buffer.isBuffer(value)) return import_node_path79.default.resolve(value.toString());
46755
+ if (Buffer.isBuffer(value)) return import_node_path80.default.resolve(value.toString());
46750
46756
  return null;
46751
46757
  }
46752
46758
  function ignoredInput(file) {
46753
- if (file.includes(`${import_node_path79.default.sep}peach-expo-swift${import_node_path79.default.sep}`) || file.endsWith(`${import_node_path79.default.sep}peach-expo-swift`))
46759
+ if (file.includes(`${import_node_path80.default.sep}peach-expo-swift${import_node_path80.default.sep}`) || file.endsWith(`${import_node_path80.default.sep}peach-expo-swift`))
46754
46760
  return true;
46755
46761
  return ignoredRoots.some(
46756
- (root) => file === root || file.startsWith(`${root}${import_node_path79.default.sep}`)
46762
+ (root) => file === root || file.startsWith(`${root}${import_node_path80.default.sep}`)
46757
46763
  );
46758
46764
  }
46759
46765
  function noteMissing(file) {
@@ -46825,14 +46831,14 @@ function namesFromListing(dir, entries) {
46825
46831
  const names = [];
46826
46832
  for (const entry of entries) {
46827
46833
  if (typeof entry === "string" || Buffer.isBuffer(entry)) {
46828
- names.push(entry.toString().split(import_node_path79.default.sep).join("/"));
46834
+ names.push(entry.toString().split(import_node_path80.default.sep).join("/"));
46829
46835
  continue;
46830
46836
  }
46831
46837
  if (!entry || typeof entry !== "object" || !("name" in entry)) continue;
46832
46838
  const name3 = String(Reflect.get(entry, "name"));
46833
46839
  const parent = Reflect.get(entry, "parentPath");
46834
46840
  const base = typeof parent === "string" && parent.length > 0 ? parent : dir;
46835
- names.push(import_node_path79.default.relative(dir, import_node_path79.default.join(base, name3)).split(import_node_path79.default.sep).join("/"));
46841
+ names.push(import_node_path80.default.relative(dir, import_node_path80.default.join(base, name3)).split(import_node_path80.default.sep).join("/"));
46836
46842
  }
46837
46843
  names.sort();
46838
46844
  return names.join("\0");
@@ -46852,10 +46858,10 @@ function installSwiftInputTrace() {
46852
46858
  };
46853
46859
  savedFs = saved;
46854
46860
  const prefixes = [
46855
- import_node_path79.default.join(cacheDir(), "swift-builds"),
46856
- import_node_path79.default.join(swiftCacheDir(), "swift-builds"),
46861
+ import_node_path80.default.join(cacheDir(), "swift-builds"),
46862
+ import_node_path80.default.join(swiftCacheDir(), "swift-builds"),
46857
46863
  swiftRootLocksDir(),
46858
- import_node_path79.default.join(cacheDir(), "swift-tmp")
46864
+ import_node_path80.default.join(cacheDir(), "swift-tmp")
46859
46865
  ].filter((prefix, index, all) => all.indexOf(prefix) === index);
46860
46866
  ignoredRoots = prefixes.flatMap((root) => {
46861
46867
  try {
@@ -46982,7 +46988,7 @@ function cloneNativeTarget(target) {
46982
46988
  function podSupportsIOS(pod) {
46983
46989
  if (!isRecord(pod) || typeof pod.podName !== "string" || typeof pod.podspecDir !== "string")
46984
46990
  throw new Error("invalid Expo autolinking pod");
46985
- const base = import_node_path79.default.join(pod.podspecDir, pod.podName);
46991
+ const base = import_node_path80.default.join(pod.podspecDir, pod.podName);
46986
46992
  if (import_node_fs82.default.existsSync(`${base}.podspec.json`)) {
46987
46993
  const platforms2 = JSON.parse(
46988
46994
  import_node_fs82.default.readFileSync(`${base}.podspec.json`, "utf8")
@@ -47029,7 +47035,7 @@ function standinNativeTarget(standin, deploymentTarget) {
47029
47035
  const modulemap = Object.keys(standin.files).find(
47030
47036
  (file) => file === "module.modulemap" || file.endsWith("/module.modulemap")
47031
47037
  );
47032
- const headerDir = (modulemap ? import_node_path79.default.posix.dirname(`${prefix}${modulemap}`) : null) ?? commonStandinHeaderDir(prefix, headers) ?? `${prefix}include`;
47038
+ const headerDir = (modulemap ? import_node_path80.default.posix.dirname(`${prefix}${modulemap}`) : null) ?? commonStandinHeaderDir(prefix, headers) ?? `${prefix}include`;
47033
47039
  return {
47034
47040
  ...synthesizedNativeTarget(standin.module, deploymentTarget),
47035
47041
  headers,
@@ -47039,11 +47045,11 @@ function standinNativeTarget(standin, deploymentTarget) {
47039
47045
  }
47040
47046
  function commonStandinHeaderDir(prefix, headers) {
47041
47047
  if (headers.length === 0) return null;
47042
- let common = import_node_path79.default.posix.dirname(headers[0]);
47048
+ let common = import_node_path80.default.posix.dirname(headers[0]);
47043
47049
  for (const header of headers.slice(1)) {
47044
- const dir = import_node_path79.default.posix.dirname(header);
47050
+ const dir = import_node_path80.default.posix.dirname(header);
47045
47051
  while (dir !== common && !dir.startsWith(`${common}/`))
47046
- common = import_node_path79.default.posix.dirname(common);
47052
+ common = import_node_path80.default.posix.dirname(common);
47047
47053
  }
47048
47054
  return common === prefix.slice(0, -1) || common.startsWith(prefix) ? common : null;
47049
47055
  }
@@ -47154,12 +47160,12 @@ function enrichInstalledUnits(units, installed, namespaceGroups, provided, modul
47154
47160
  );
47155
47161
  const byPath = [...installedTargets].sort((a, b) => b.path.length - a.path.length);
47156
47162
  const reactNativeRoot = import_node_fs82.default.realpathSync(
47157
- import_node_path79.default.dirname(
47158
- (0, import_node_module8.createRequire)(import_node_path79.default.join(appRoot, "package.json")).resolve(
47163
+ import_node_path80.default.dirname(
47164
+ (0, import_node_module8.createRequire)(import_node_path80.default.join(appRoot, "package.json")).resolve(
47159
47165
  "react-native/package.json"
47160
47166
  )
47161
47167
  )
47162
- ) + import_node_path79.default.sep;
47168
+ ) + import_node_path80.default.sep;
47163
47169
  const reactTargets = new Set(
47164
47170
  (input.nativeTargets ?? []).flatMap((target) => {
47165
47171
  const originals = Object.keys(target.sourceDirectories).flatMap(
@@ -47201,7 +47207,7 @@ function enrichInstalledUnits(units, installed, namespaceGroups, provided, modul
47201
47207
  const bridge = bridgeNamespaces.has(unit2.namespace);
47202
47208
  if (bridge)
47203
47209
  for (const file of Object.keys(unit2.files)) {
47204
- if (!import_node_path79.default.posix.basename(file).startsWith(BRIDGE_MODULE_FILE_PREFIX))
47210
+ if (!import_node_path80.default.posix.basename(file).startsWith(BRIDGE_MODULE_FILE_PREFIX))
47205
47211
  delete unit2.files[file];
47206
47212
  }
47207
47213
  unit2.swiftLanguageMode = target.languageMode;
@@ -47335,13 +47341,13 @@ ${source}` : source;
47335
47341
  for (const map3 of maps) {
47336
47342
  if (!include.startsWith(`${map3.name}/`)) continue;
47337
47343
  const header = include.slice(map3.name.length + 1);
47338
- const candidate = import_node_path79.default.posix.join(import_node_path79.default.posix.dirname(map3.file), include);
47344
+ const candidate = import_node_path80.default.posix.join(import_node_path80.default.posix.dirname(map3.file), include);
47339
47345
  if (support[candidate] === void 0) continue;
47340
47346
  map3.reached.add(header);
47341
47347
  pending.push([candidate, support[candidate]]);
47342
47348
  }
47343
- const relative3 = import_node_path79.default.posix.normalize(
47344
- import_node_path79.default.posix.join(import_node_path79.default.posix.dirname(file), include)
47349
+ const relative3 = import_node_path80.default.posix.normalize(
47350
+ import_node_path80.default.posix.join(import_node_path80.default.posix.dirname(file), include)
47345
47351
  );
47346
47352
  if (support[relative3] !== void 0) pending.push([relative3, support[relative3]]);
47347
47353
  }
@@ -47349,12 +47355,12 @@ ${source}` : source;
47349
47355
  for (const map3 of maps) {
47350
47356
  if (!map3.reached.size) continue;
47351
47357
  const swift = swiftModuleInterface(moduleRoot, map3.name, interfaceRoot);
47352
- const mapDirectory = import_node_path79.default.posix.dirname(map3.file);
47358
+ const mapDirectory = import_node_path80.default.posix.dirname(map3.file);
47353
47359
  if (swift) {
47354
47360
  const header = `${map3.name}-Swift.h`;
47355
- support[import_node_path79.default.posix.join(mapDirectory, map3.name, header)] = swift.header;
47361
+ support[import_node_path80.default.posix.join(mapDirectory, map3.name, header)] = swift.header;
47356
47362
  const queue = [...map3.reached].map(
47357
- (file) => import_node_path79.default.posix.join(mapDirectory, map3.name, file)
47363
+ (file) => import_node_path80.default.posix.join(mapDirectory, map3.name, file)
47358
47364
  );
47359
47365
  const seen = /* @__PURE__ */ new Set();
47360
47366
  while (queue.length) {
@@ -47366,7 +47372,7 @@ ${source}` : source;
47366
47372
  /#\s*(?:import|include)\s*[<"]([^>"]+)[>"]/g
47367
47373
  )) {
47368
47374
  const include = match[1];
47369
- const next = include.startsWith(`${map3.name}/`) ? import_node_path79.default.posix.join(mapDirectory, include) : import_node_path79.default.posix.normalize(import_node_path79.default.posix.join(import_node_path79.default.posix.dirname(file), include));
47375
+ const next = include.startsWith(`${map3.name}/`) ? import_node_path80.default.posix.join(mapDirectory, include) : import_node_path80.default.posix.normalize(import_node_path80.default.posix.join(import_node_path80.default.posix.dirname(file), include));
47370
47376
  if (support[next] !== void 0) queue.push(next);
47371
47377
  }
47372
47378
  const contents = withoutSwiftDeclarations(
@@ -47431,10 +47437,10 @@ async function collectExpoSwiftSourcesUncached(appRoot, signal, installedWorkspa
47431
47437
  signal?.throwIfAborted();
47432
47438
  appRoot = import_node_fs82.default.realpathSync(appRoot);
47433
47439
  const appConfig = await loadRNXAppConfig(resolveAppProject(appRoot));
47434
- const appRequire = (0, import_node_module8.createRequire)(import_node_path79.default.join(appRoot, "package.json"));
47440
+ const appRequire = (0, import_node_module8.createRequire)(import_node_path80.default.join(appRoot, "package.json"));
47435
47441
  let expoRoot;
47436
47442
  try {
47437
- expoRoot = import_node_path79.default.dirname(appRequire.resolve("expo/package.json"));
47443
+ expoRoot = import_node_path80.default.dirname(appRequire.resolve("expo/package.json"));
47438
47444
  } catch (error) {
47439
47445
  if (!error || typeof error !== "object" || Reflect.get(error, "code") !== "MODULE_NOT_FOUND")
47440
47446
  throw error;
@@ -47454,16 +47460,16 @@ async function collectExpoSwiftSourcesUncached(appRoot, signal, installedWorkspa
47454
47460
  ).version;
47455
47461
  if (typeof autolinkerVersion === "string" && Number.parseInt(autolinkerVersion, 10) < 1)
47456
47462
  return null;
47457
- const cli = import_node_path79.default.join(import_node_path79.default.dirname(autolinker), "bin/expo-modules-autolinking.js");
47463
+ const cli = import_node_path80.default.join(import_node_path80.default.dirname(autolinker), "bin/expo-modules-autolinking.js");
47458
47464
  const flags = autolinkerAppleFlags(autolinker, appRoot);
47459
47465
  const appManifest = JSON.parse(
47460
- import_node_fs82.default.readFileSync(import_node_path79.default.join(appRoot, "package.json"), "utf8")
47466
+ import_node_fs82.default.readFileSync(import_node_path80.default.join(appRoot, "package.json"), "utf8")
47461
47467
  );
47462
47468
  const expoConfig = appManifest && typeof appManifest === "object" ? Reflect.get(appManifest, "expo") : null;
47463
47469
  const autolinking = expoConfig && typeof expoConfig === "object" ? Reflect.get(expoConfig, "autolinking") : null;
47464
47470
  const modulesDir = autolinking && typeof autolinking === "object" ? Reflect.get(autolinking, "nativeModulesDir") : null;
47465
47471
  import_node_fs82.default.existsSync(
47466
- import_node_path79.default.resolve(appRoot, typeof modulesDir === "string" ? modulesDir : "modules")
47472
+ import_node_path80.default.resolve(appRoot, typeof modulesDir === "string" ? modulesDir : "modules")
47467
47473
  );
47468
47474
  const childStart = performance.timeOrigin + performance.now();
47469
47475
  const [searched, resolvedModules] = await Promise.allSettled(
@@ -47489,7 +47495,7 @@ async function collectExpoSwiftSourcesUncached(appRoot, signal, installedWorkspa
47489
47495
  const resolutions = resolved && typeof resolved === "object" ? Reflect.get(resolved, "modules") : null;
47490
47496
  if (!Array.isArray(resolutions)) throw new Error("invalid Expo Apple resolution");
47491
47497
  const scan2 = Reflect.get(
47492
- appRequire(import_node_path79.default.join(import_node_path79.default.dirname(autolinker), "build/platforms/apple")),
47498
+ appRequire(import_node_path80.default.join(import_node_path80.default.dirname(autolinker), "build/platforms/apple")),
47493
47499
  "scanNativeModulesAsync"
47494
47500
  );
47495
47501
  const scanned = typeof scan2 === "function" ? await scan2(search, "apple") : null;
@@ -47577,7 +47583,7 @@ async function collectExpoSwiftSourcesUncached(appRoot, signal, installedWorkspa
47577
47583
  if (typeof sourceRoot !== "string")
47578
47584
  throw new Error("Expo autolinking entry has no path");
47579
47585
  const canonical = import_node_fs82.default.realpathSync(sourceRoot);
47580
- const answered2 = canonical.split(import_node_path79.default.sep).includes("node_modules") && peachAnsweredNativePackages().has(packageName);
47586
+ const answered2 = canonical.split(import_node_path80.default.sep).includes("node_modules") && peachAnsweredNativePackages().has(packageName);
47581
47587
  if (answered2) {
47582
47588
  answeredInstalled = true;
47583
47589
  if (installed || prepareNative) {
@@ -47586,7 +47592,7 @@ async function collectExpoSwiftSourcesUncached(appRoot, signal, installedWorkspa
47586
47592
  }
47587
47593
  }
47588
47594
  for (const name3 of ["expo-module.config.json", "unimodule.json"]) {
47589
- const descriptor = import_node_path79.default.join(canonical, name3);
47595
+ const descriptor = import_node_path80.default.join(canonical, name3);
47590
47596
  if (import_node_fs82.default.existsSync(descriptor)) {
47591
47597
  import_node_fs82.default.readFileSync(descriptor);
47592
47598
  noteChangedSince(descriptor, childStart);
@@ -47700,10 +47706,10 @@ async function collectExpoSwiftSourcesUncached(appRoot, signal, installedWorkspa
47700
47706
  namespacesSeen.add(namespace);
47701
47707
  const files2 = {};
47702
47708
  const frameworks = /* @__PURE__ */ new Set();
47703
- const ios = import_node_path79.default.join(canonical, "ios");
47704
- const appOwned = !canonical.split(import_node_path79.default.sep).includes("node_modules");
47705
- const withinApp = import_node_path79.default.relative(appRoot, canonical);
47706
- const sourceBoundary = appOwned && withinApp !== ".." && !withinApp.startsWith(`..${import_node_path79.default.sep}`) ? appRoot : canonical;
47709
+ const ios = import_node_path80.default.join(canonical, "ios");
47710
+ const appOwned = !canonical.split(import_node_path80.default.sep).includes("node_modules");
47711
+ const withinApp = import_node_path80.default.relative(appRoot, canonical);
47712
+ const sourceBoundary = appOwned && withinApp !== ".." && !withinApp.startsWith(`..${import_node_path80.default.sep}`) ? appRoot : canonical;
47707
47713
  const boundaryName = sourceBoundary === appRoot ? "app root" : "module root";
47708
47714
  const directories2 = /* @__PURE__ */ new Set();
47709
47715
  const sources = /* @__PURE__ */ new Set();
@@ -47717,8 +47723,8 @@ async function collectExpoSwiftSourcesUncached(appRoot, signal, installedWorkspa
47717
47723
  cause
47718
47724
  });
47719
47725
  }
47720
- const relative3 = import_node_path79.default.relative(sourceBoundary, target);
47721
- if (relative3 === ".." || relative3.startsWith(`..${import_node_path79.default.sep}`) || import_node_path79.default.isAbsolute(relative3))
47726
+ const relative3 = import_node_path80.default.relative(sourceBoundary, target);
47727
+ if (relative3 === ".." || relative3.startsWith(`..${import_node_path80.default.sep}`) || import_node_path80.default.isAbsolute(relative3))
47722
47728
  throw new Error(
47723
47729
  `Expo Swift source escapes ${boundaryName}: ${file} -> ${target}`
47724
47730
  );
@@ -47730,7 +47736,7 @@ async function collectExpoSwiftSourcesUncached(appRoot, signal, installedWorkspa
47730
47736
  if (directories2.has(directory2)) return;
47731
47737
  directories2.add(directory2);
47732
47738
  for (const child of import_node_fs82.default.readdirSync(dir, { withFileTypes: true }).sort((a, b) => a.name.localeCompare(b.name))) {
47733
- const file = import_node_path79.default.join(dir, child.name);
47739
+ const file = import_node_path80.default.join(dir, child.name);
47734
47740
  const linked = child.isSymbolicLink() ? resolveSource(file) : null;
47735
47741
  const target = linked ? import_node_fs82.default.statSync(linked) : child;
47736
47742
  if (target.isDirectory()) {
@@ -47745,7 +47751,7 @@ async function collectExpoSwiftSourcesUncached(appRoot, signal, installedWorkspa
47745
47751
  if (import_node_fs82.default.statSync(source2).size > 4096 || !/^(?:\s|\/\/[^\n]*|\/\*[\s\S]*?\*\/)*$/.test(
47746
47752
  import_node_fs82.default.readFileSync(source2, "utf8")
47747
47753
  ))
47748
- nativeSources.add(import_node_path79.default.relative(ios, file));
47754
+ nativeSources.add(import_node_path80.default.relative(ios, file));
47749
47755
  }
47750
47756
  if (!target.isFile() || !child.name.endsWith(".swift")) continue;
47751
47757
  const source = linked ?? resolveSource(file);
@@ -47755,7 +47761,7 @@ async function collectExpoSwiftSourcesUncached(appRoot, signal, installedWorkspa
47755
47761
  fileCount++;
47756
47762
  if (!installedWorkspace && (fileCount > MAX_SWIFT_COMPILE_FILES - 2 || bytes > MAX_SWIFT_COMPILE_SOURCE_BYTES))
47757
47763
  throw new Error("Expo Swift sources exceed compile service caps");
47758
- files2[`Sources/${namespace}/${import_node_path79.default.relative(ios, file).split(import_node_path79.default.sep).join("/")}`] = // CocoaPods' iOS umbrella header imports UIKit into every Swift file
47764
+ files2[`Sources/${namespace}/${import_node_path80.default.relative(ios, file).split(import_node_path80.default.sep).join("/")}`] = // CocoaPods' iOS umbrella header imports UIKit into every Swift file
47759
47765
  // through the underlying module; these source units have no clang pod.
47760
47766
  `import UIKit
47761
47767
  #sourceLocation(file: ${JSON.stringify(file)}, line: 1)
@@ -47770,7 +47776,7 @@ ${import_node_fs82.default.readFileSync(source, "utf8")}`;
47770
47776
  for (const child of import_node_fs82.default.readdirSync(dir, { withFileTypes: true }).sort((a, b) => a.name.localeCompare(b.name))) {
47771
47777
  if (child.name.startsWith(".") || child.name === "build" || child.name === "node_modules" || child.name === "android" || child.name === "web" || child.name === "src")
47772
47778
  continue;
47773
- const file = import_node_path79.default.join(dir, child.name);
47779
+ const file = import_node_path80.default.join(dir, child.name);
47774
47780
  const linked = child.isSymbolicLink() ? resolveSource(file) : null;
47775
47781
  const target = linked ? import_node_fs82.default.statSync(linked) : child;
47776
47782
  if (!target.isDirectory()) continue;
@@ -47803,25 +47809,25 @@ ${import_node_fs82.default.readFileSync(source, "utf8")}`;
47803
47809
  const absentFrameworks = [];
47804
47810
  if (podspec && !installed) {
47805
47811
  const declared = [
47806
- ...import_node_fs82.default.readFileSync(import_node_path79.default.join(ios, podspec), "utf8").matchAll(/\bvendored_frameworks\s*=\s*(\[[^\]]*\]|'[^'\n]*'|"[^"\n]*")/g)
47812
+ ...import_node_fs82.default.readFileSync(import_node_path80.default.join(ios, podspec), "utf8").matchAll(/\bvendored_frameworks\s*=\s*(\[[^\]]*\]|'[^'\n]*'|"[^"\n]*")/g)
47807
47813
  ].flatMap(
47808
47814
  ([, value]) => [...value.matchAll(/'([^'\n]*)'|"([^"\n#]*)"/g)].map(
47809
47815
  (match) => match[1] ?? match[2]
47810
47816
  )
47811
47817
  );
47812
47818
  for (const entry2 of declared) {
47813
- const base = import_node_path79.default.dirname(import_node_path79.default.resolve(ios, entry2));
47819
+ const base = import_node_path80.default.dirname(import_node_path80.default.resolve(ios, entry2));
47814
47820
  const name3 = new RegExp(
47815
- `^${import_node_path79.default.basename(entry2).replace(/[.+^${}()|[\]\\]/g, "\\$&").replaceAll("*", "[^/]*")}$`
47821
+ `^${import_node_path80.default.basename(entry2).replace(/[.+^${}()|[\]\\]/g, "\\$&").replaceAll("*", "[^/]*")}$`
47816
47822
  );
47817
47823
  const found = import_node_fs82.default.existsSync(base) ? import_node_fs82.default.readdirSync(base).filter((child) => name3.test(child)) : [];
47818
47824
  if (found.length === 0)
47819
- absentFrameworks.push(import_node_path79.default.relative(appRoot, import_node_path79.default.resolve(ios, entry2)));
47820
- for (const child of found) frameworks.add(resolveSource(import_node_path79.default.join(base, child)));
47825
+ absentFrameworks.push(import_node_path80.default.relative(appRoot, import_node_path80.default.resolve(ios, entry2)));
47826
+ for (const child of found) frameworks.add(resolveSource(import_node_path80.default.join(base, child)));
47821
47827
  }
47822
47828
  }
47823
47829
  const podspecFloor = podspec ? /\.platforms\s*=\s*\{\s*:ios\s*=>\s*['"](\d+(?:\.\d+){0,2})['"]/.exec(
47824
- import_node_fs82.default.readFileSync(import_node_path79.default.join(ios, podspec), "utf8")
47830
+ import_node_fs82.default.readFileSync(import_node_path80.default.join(ios, podspec), "utf8")
47825
47831
  )?.[1] : void 0;
47826
47832
  if (dependencyOnly && Object.keys(files2).length > 0) {
47827
47833
  dependencyUnits.push({
@@ -47933,7 +47939,7 @@ ${import_node_fs82.default.readFileSync(source, "utf8")}`;
47933
47939
  if (directories !== void 0 && directories.length > 0) {
47934
47940
  const scanInline = Reflect.get(
47935
47941
  appRequire(
47936
- import_node_path79.default.join(import_node_path79.default.dirname(autolinker), "build/inlineModules/inlineModules.js")
47942
+ import_node_path80.default.join(import_node_path80.default.dirname(autolinker), "build/inlineModules/inlineModules.js")
47937
47943
  ),
47938
47944
  "getMirrorStateObject"
47939
47945
  );
@@ -47957,14 +47963,14 @@ ${import_node_fs82.default.readFileSync(source, "utf8")}`;
47957
47963
  const file = entry && typeof entry === "object" ? Reflect.get(entry, "filePath") : null;
47958
47964
  if (typeof file !== "string") throw new Error("invalid Expo inline source");
47959
47965
  if (!file.endsWith(".swift")) continue;
47960
- const relative3 = import_node_path79.default.relative(appRoot, import_node_fs82.default.realpathSync(file));
47961
- if (relative3 === ".." || relative3.startsWith(`..${import_node_path79.default.sep}`) || import_node_path79.default.isAbsolute(relative3))
47966
+ const relative3 = import_node_path80.default.relative(appRoot, import_node_fs82.default.realpathSync(file));
47967
+ if (relative3 === ".." || relative3.startsWith(`..${import_node_path80.default.sep}`) || import_node_path80.default.isAbsolute(relative3))
47962
47968
  throw new Error(`Expo inline source escapes app root: ${file}`);
47963
47969
  bytes += import_node_fs82.default.statSync(file).size;
47964
47970
  fileCount++;
47965
47971
  if (fileCount > MAX_SWIFT_COMPILE_FILES - 2 || bytes > MAX_SWIFT_COMPILE_SOURCE_BYTES)
47966
47972
  throw new Error("Expo Swift sources exceed compile service caps");
47967
- appFiles[`Sources/PeachExpoApp/Inline/${relative3.split(import_node_path79.default.sep).join("/")}`] = `import UIKit
47973
+ appFiles[`Sources/PeachExpoApp/Inline/${relative3.split(import_node_path80.default.sep).join("/")}`] = `import UIKit
47968
47974
  #sourceLocation(file: ${JSON.stringify(file)}, line: 1)
47969
47975
  ${import_node_fs82.default.readFileSync(file, "utf8")}`;
47970
47976
  }
@@ -48203,13 +48209,13 @@ function expoUnitAppPaths(unit2) {
48203
48209
  });
48204
48210
  }
48205
48211
  function expoSwiftPackage(appKey, name3) {
48206
- return import_node_path79.default.join(import_node_os17.default.tmpdir(), "peach-expo-swift", appKey, `p${process.pid}`, name3);
48212
+ return import_node_path80.default.join(import_node_os17.default.tmpdir(), "peach-expo-swift", appKey, `p${process.pid}`, name3);
48207
48213
  }
48208
48214
  var ExpoSwiftLinkRefusal = class extends Error {
48209
48215
  };
48210
48216
  function failureRecordPath(packagePath) {
48211
- const app = import_node_path79.default.dirname(import_node_path79.default.dirname(packagePath));
48212
- return import_node_path79.default.join(app, `${import_node_path79.default.basename(packagePath)}.failed.json`);
48217
+ const app = import_node_path80.default.dirname(import_node_path80.default.dirname(packagePath));
48218
+ return import_node_path80.default.join(app, `${import_node_path80.default.basename(packagePath)}.failed.json`);
48213
48219
  }
48214
48220
  function readFailedCompilation(packagePath) {
48215
48221
  let record2;
@@ -48321,7 +48327,7 @@ async function compileExpoSwiftModulesTraced(root, base, publishArtifact, option
48321
48327
  packagePath,
48322
48328
  new Map(
48323
48329
  Object.entries(files2).map(([name3, source]) => [
48324
- import_node_path79.default.join(packagePath, name3),
48330
+ import_node_path80.default.join(packagePath, name3),
48325
48331
  source
48326
48332
  ])
48327
48333
  )
@@ -48396,16 +48402,16 @@ async function compileExpoSwiftModulesTraced(root, base, publishArtifact, option
48396
48402
  options.iosTarget
48397
48403
  );
48398
48404
  signal.throwIfAborted();
48399
- const ios = import_node_path79.default.join(root, "ios");
48400
- if ([ios, import_node_path79.default.join(ios, "Pods")].some(
48405
+ const ios = import_node_path80.default.join(root, "ios");
48406
+ if ([ios, import_node_path80.default.join(ios, "Pods")].some(
48401
48407
  (dir) => import_node_fs82.default.existsSync(dir) && import_node_fs82.default.readdirSync(dir).some((entry) => {
48402
- const project = import_node_path79.default.join(dir, entry, "project.pbxproj");
48408
+ const project = import_node_path80.default.join(dir, entry, "project.pbxproj");
48403
48409
  return entry.endsWith(".xcodeproj") && import_node_fs82.default.existsSync(project) && import_node_fs82.default.readFileSync(project, "utf8").includes("XCRemoteSwiftPackageReference");
48404
48410
  })
48405
48411
  ))
48406
48412
  await ensureSwiftToolchain(signal);
48407
48413
  let bridge = options.only ? null : collectBridgeModuleSources(import_node_fs82.default.realpathSync(root), signal);
48408
- if (nativeWorkspaceAvailable() && import_node_fs82.default.existsSync(import_node_path79.default.join(root, "ios", "Podfile")) && bridge?.units.some(
48414
+ if (nativeWorkspaceAvailable() && import_node_fs82.default.existsSync(import_node_path80.default.join(root, "ios", "Podfile")) && bridge?.units.some(
48409
48415
  (unit2) => unit2.nativeTargets?.some((target) => target.bridgingHeader)
48410
48416
  )) {
48411
48417
  const prepared = await prepareExpoNativeWorkspace(root, signal, options.iosTarget);
@@ -48483,16 +48489,16 @@ async function compileExpoSwiftModulesTraced(root, base, publishArtifact, option
48483
48489
  const module2 = await resolveSwiftModule({ signal });
48484
48490
  signal.throwIfAborted();
48485
48491
  const reactProvider = units.some((unit2) => unit2.reactNativeProvider) ? await (async () => {
48486
- const projectRoot = options.installedWorkspace ? import_node_path79.default.dirname(import_node_path79.default.dirname(options.installedWorkspace)) : (await prepareExpoNativeWorkspace(root, signal, options.iosTarget)).app;
48487
- const reactNativeRoot = import_node_path79.default.dirname(
48488
- (0, import_node_module8.createRequire)(import_node_path79.default.join(projectRoot, "package.json")).resolve(
48492
+ const projectRoot = options.installedWorkspace ? import_node_path80.default.dirname(import_node_path80.default.dirname(options.installedWorkspace)) : (await prepareExpoNativeWorkspace(root, signal, options.iosTarget)).app;
48493
+ const reactNativeRoot = import_node_path80.default.dirname(
48494
+ (0, import_node_module8.createRequire)(import_node_path80.default.join(projectRoot, "package.json")).resolve(
48489
48495
  "react-native/package.json"
48490
48496
  )
48491
48497
  );
48492
48498
  await prepareTurboSourceDependencies(reactNativeRoot);
48493
48499
  import_node_fs82.default.mkdirSync(swiftCacheDir(), { recursive: true });
48494
48500
  const codegenDir = import_node_fs82.default.mkdtempSync(
48495
- import_node_path79.default.join(swiftCacheDir(), "expo-react-codegen-")
48501
+ import_node_path80.default.join(swiftCacheDir(), "expo-react-codegen-")
48496
48502
  );
48497
48503
  const collection = await collectTurboSources({
48498
48504
  appRoot: projectRoot,
@@ -48503,7 +48509,7 @@ async function compileExpoSwiftModulesTraced(root, base, publishArtifact, option
48503
48509
  reactNativeProvider: true
48504
48510
  });
48505
48511
  const headers = /* @__PURE__ */ new Map();
48506
- const reactRoot = import_node_fs82.default.realpathSync(reactNativeRoot) + import_node_path79.default.sep;
48512
+ const reactRoot = import_node_fs82.default.realpathSync(reactNativeRoot) + import_node_path80.default.sep;
48507
48513
  for (const { file, source } of collection.sources) {
48508
48514
  if (!/\.(?:h|hh|hpp|hxx)$/.test(file) || !source.startsWith(reactRoot))
48509
48515
  continue;
@@ -48563,7 +48569,7 @@ async function compileExpoSwiftModulesTraced(root, base, publishArtifact, option
48563
48569
  const binaries = await Promise.all(
48564
48570
  unit2.frameworks.map(async (dir) => {
48565
48571
  const binary2 = {
48566
- target: import_node_path79.default.basename(dir).replace(/\.(xcframework|framework)$/, ""),
48572
+ target: import_node_path80.default.basename(dir).replace(/\.(xcframework|framework)$/, ""),
48567
48573
  source: dir,
48568
48574
  url: null,
48569
48575
  checksum: null,