peachsim 0.1.2777 → 0.1.2778

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 (142) 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 +2 -2
  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 +5 -5
  11. package/dist-lib/bridge-contract.cjs +1 -1
  12. package/dist-lib/bridge-contract.mjs +3 -3
  13. package/dist-lib/bundle-channel.cjs +381 -366
  14. package/dist-lib/capture-contract.cjs +1 -1
  15. package/dist-lib/capture-contract.mjs +3 -3
  16. package/dist-lib/cloud-contract.cjs +1 -1
  17. package/dist-lib/cloud-contract.mjs +3 -3
  18. package/dist-lib/cloud-test-args.cjs +1 -1
  19. package/dist-lib/cloud-test-args.mjs +2 -2
  20. package/dist-lib/cloud.cjs +1 -1
  21. package/dist-lib/cloud.mjs +7 -7
  22. package/dist-lib/config.cjs +1 -1
  23. package/dist-lib/config.mjs +5 -5
  24. package/dist-lib/detox/index.cjs +1 -1
  25. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  26. package/dist-lib/esm-chunks/{acorn-M5O633NZ.mjs → acorn-RWBIRNWO.mjs} +3 -3
  27. package/dist-lib/esm-chunks/{chunk-GSTVX33B.mjs → chunk-3RPELUA2.mjs} +36 -14
  28. package/dist-lib/esm-chunks/{chunk-WSHBJUCP.mjs → chunk-3WQANOYY.mjs} +1 -1
  29. package/dist-lib/esm-chunks/{chunk-TONCJKKR.mjs → chunk-5TIUTQ55.mjs} +1 -1
  30. package/dist-lib/esm-chunks/{chunk-OVCIWUV2.mjs → chunk-5WASPTSS.mjs} +1 -1
  31. package/dist-lib/esm-chunks/{chunk-DPL3I4WY.mjs → chunk-6YHF4VYF.mjs} +1 -1
  32. package/dist-lib/esm-chunks/{chunk-Q42OLP7O.mjs → chunk-DLBUPWTI.mjs} +1 -1
  33. package/dist-lib/esm-chunks/{chunk-TRSHEQVJ.mjs → chunk-EXU474NE.mjs} +1 -1
  34. package/dist-lib/esm-chunks/{chunk-FHYWKCOZ.mjs → chunk-F3OPIKJC.mjs} +2 -2
  35. package/dist-lib/esm-chunks/{chunk-3UJO4NG3.mjs → chunk-G7UJ4BAC.mjs} +1 -1
  36. package/dist-lib/esm-chunks/{chunk-NJHTAVEI.mjs → chunk-GSTHJQMW.mjs} +16 -6
  37. package/dist-lib/esm-chunks/{chunk-V2I633CU.mjs → chunk-IQSFMB4R.mjs} +4 -4
  38. package/dist-lib/esm-chunks/{chunk-KCSUAVJQ.mjs → chunk-K3ULPN2R.mjs} +1 -1
  39. package/dist-lib/esm-chunks/{chunk-THHP5XKD.mjs → chunk-KBYVKTVK.mjs} +3 -3
  40. package/dist-lib/esm-chunks/{chunk-Q53QPYEU.mjs → chunk-KLA74B7J.mjs} +1 -1
  41. package/dist-lib/esm-chunks/{chunk-LB2X5KYV.mjs → chunk-KX7LV722.mjs} +1 -1
  42. package/dist-lib/esm-chunks/{chunk-OSESKVWT.mjs → chunk-LQVLXDRN.mjs} +1 -1
  43. package/dist-lib/esm-chunks/{chunk-OLCLLGZF.mjs → chunk-MRIDS3GE.mjs} +5 -5
  44. package/dist-lib/esm-chunks/{chunk-FB27T2JY.mjs → chunk-N2PEXZGL.mjs} +1 -1
  45. package/dist-lib/esm-chunks/{chunk-GISUEYXO.mjs → chunk-QKTKE4OX.mjs} +1 -1
  46. package/dist-lib/esm-chunks/{chunk-GMN43CNC.mjs → chunk-QUVLFF6I.mjs} +1 -1
  47. package/dist-lib/esm-chunks/{chunk-ZKPBT6FD.mjs → chunk-VZ3NXXUC.mjs} +1 -1
  48. package/dist-lib/esm-chunks/{chunk-RX3WDTYI.mjs → chunk-X25PQNNH.mjs} +1 -1
  49. package/dist-lib/esm-chunks/{chunk-IPX66HMP.mjs → chunk-ZDWMPXYI.mjs} +1 -1
  50. package/dist-lib/esm-chunks/{chunk-AGWZKA24.mjs → chunk-ZWOS2EDN.mjs} +65 -75
  51. package/dist-lib/esm-chunks/{metro-layout-parser-PFRFHGDY.mjs → metro-layout-parser-RRIZOLBE.mjs} +3 -3
  52. package/dist-lib/esm-chunks/{swift-package-prebuilt-NUAEDMSQ.mjs → swift-package-prebuilt-EIZ7MCKR.mjs} +12 -12
  53. package/dist-lib/esm-chunks/{swift-sdk-app-module-P3BARE2W.mjs → swift-sdk-app-module-S2LQ4OXD.mjs} +16 -16
  54. package/dist-lib/esm-chunks/{swift-sdk-image-Y6XT7KI4.mjs → swift-sdk-image-77FFUGXI.mjs} +16 -16
  55. package/dist-lib/esm-chunks/{swift-sdk-image-producer-DYR47O6H.mjs → swift-sdk-image-producer-XFSFUXQJ.mjs} +5 -5
  56. package/dist-lib/expo-swift-bundle.cjs +304 -289
  57. package/dist-lib/expo-swift-metadata.cjs +1 -1
  58. package/dist-lib/expo-swift-metadata.mjs +7 -7
  59. package/dist-lib/home-paths.cjs +1 -1
  60. package/dist-lib/host/bridge-host.cjs +441 -421
  61. package/dist-lib/host/fetch-proxy-handler.cjs +99 -86
  62. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  63. package/dist-lib/host/fetch-proxy-overrides.mjs +2 -2
  64. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  65. package/dist-lib/host/websocket-proxy.cjs +1 -1
  66. package/dist-lib/index.cjs +1 -1
  67. package/dist-lib/kotlin-host.cjs +1 -1
  68. package/dist-lib/menu.cjs +1 -1
  69. package/dist-lib/menu.mjs +3 -3
  70. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  71. package/dist-lib/metro-fingerprint-registry.mjs +3 -3
  72. package/dist-lib/metro-production-bundle.cjs +1 -1
  73. package/dist-lib/metro-production-bundle.mjs +4 -4
  74. package/dist-lib/native-app-identity-project.cjs +20 -15
  75. package/dist-lib/native-app-identity-project.mjs +27 -32
  76. package/dist-lib/native-app-identity.cjs +1 -1
  77. package/dist-lib/native-app-identity.mjs +6 -6
  78. package/dist-lib/native-firebase-metadata.cjs +1 -1
  79. package/dist-lib/native-firebase-metadata.mjs +3 -3
  80. package/dist-lib/pdfium-raster.cjs +1 -1
  81. package/dist-lib/pdfium-raster.mjs +2 -2
  82. package/dist-lib/plist.cjs +1 -1
  83. package/dist-lib/plist.mjs +3 -3
  84. package/dist-lib/profiles.cjs +1 -1
  85. package/dist-lib/public-brand.cjs +1 -1
  86. package/dist-lib/public-origins-lib-esm.json +86 -85
  87. package/dist-lib/public-origins-lib.json +71 -64
  88. package/dist-lib/react-native-host-modules.cjs +1 -1
  89. package/dist-lib/react-native-host-modules.mjs +2 -2
  90. package/dist-lib/reap-browser.cjs +1 -1
  91. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  92. package/dist-lib/sdk.cjs +1 -1
  93. package/dist-lib/sdk.mjs +8 -8
  94. package/dist-lib/skills.cjs +480 -460
  95. package/dist-lib/swift-compile.cjs +91 -62
  96. package/dist-lib/swift-compile.mjs +12 -12
  97. package/dist-lib/swift-package.cjs +1 -1
  98. package/dist-lib/swift-package.mjs +3 -3
  99. package/dist-lib/swift-submit.cjs +1 -1
  100. package/dist-lib/swift-submit.mjs +6 -6
  101. package/dist-lib/swift-svg-raster.cjs +1 -1
  102. package/dist-lib/swift-svg-raster.mjs +2 -2
  103. package/dist-lib/swift-toolchain.cjs +1 -1
  104. package/dist-lib/swift.cjs +1 -1
  105. package/dist-lib/vendor/@peculiar/x509.cjs +1 -1
  106. package/dist-lib/vendor/@ruby/prism/src/nodes.js.cjs +1 -1
  107. package/dist-lib/vendor/@ruby/prism/src/parsePrism.js.cjs +1 -1
  108. package/dist-lib/vendor/acorn.cjs +1 -1
  109. package/dist-lib/vendor/magic-string.cjs +1 -1
  110. package/dist-lib/vendor/stream-json.cjs +1 -1
  111. package/dist-lib/vendor/sucrase/dist/index.js.cjs +1 -1
  112. package/dist-lib/vendor/sucrase/dist/parser/index.js.cjs +1 -1
  113. package/dist-lib/vendor/sucrase/dist/parser/tokenizer/index.js.cjs +1 -1
  114. package/dist-lib/vendor/sucrase/dist/parser/tokenizer/types.js.cjs +1 -1
  115. package/dist-lib/vendor/sucrase.cjs +1 -1
  116. package/dist-lib/vendor/terser.cjs +1 -1
  117. package/dist-lib/vendor/valibot.cjs +1 -1
  118. package/dist-lib/vendor/ws.cjs +1 -1
  119. package/dist-lib/vendor/zod.cjs +1 -1
  120. package/dist-lib/worklet-executable.cjs +1 -1
  121. package/dist-lib/worklet-executable.mjs +3 -3
  122. package/dist-types/packages/peach-engine/core-abi/web/sceneClientContract.d.ts +0 -6
  123. package/dist-types/packages/peach-engine/src/components/native-ui/webview-frame-bridge.d.ts +0 -3
  124. package/dist-types/packages/peach-engine/src/webview-automation-host.d.ts +0 -4
  125. package/package.json +1 -1
  126. package/src/bazel-project.ts +2 -6
  127. package/src/build-cache.ts +3 -2
  128. package/src/sha256.ts +8 -0
  129. package/src/swift-coverage/indexing.ts +3 -4
  130. package/src/swift-coverage/package.ts +1 -4
  131. package/src/swift-coverage/reader.ts +1 -4
  132. package/src/swift-coverage/source.ts +1 -4
  133. package/src/swift-coverage/xcode-assets.ts +1 -4
  134. package/src/swift-coverage/xcode-bridging.ts +1 -4
  135. package/src/swift-coverage/xcode-packages.ts +1 -4
  136. package/src/swift-coverage/xcode-strings.ts +1 -4
  137. package/src/swift-coverage/xcode.ts +1 -4
  138. package/src/swift-guest-dyld-table.ts +1 -6
  139. package/src/swift-guest-source-inputs.ts +3 -15
  140. package/src/swift-objc-compile.ts +2 -7
  141. package/src/swift-sdk-image.ts +50 -12
  142. package/src/swift-wasm-prune.ts +3 -9
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2777 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2778 | (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;
@@ -29800,14 +29800,14 @@ var init_oneNativeControlsContract = __esm({
29800
29800
  });
29801
29801
 
29802
29802
  // ../peach-globals/src/oneNativeControlsReleaseContract.ts
29803
- function oneNativeControlsReleaseObject(sha2565) {
29804
- return `native/swift-package/${ONE_NATIVE_CONTROLS_PACKAGE}/releases/${sha2565}.tar.gz`;
29803
+ function oneNativeControlsReleaseObject(sha2564) {
29804
+ return `native/swift-package/${ONE_NATIVE_CONTROLS_PACKAGE}/releases/${sha2564}.tar.gz`;
29805
29805
  }
29806
29806
  function parseOneNativeControlsReleasePin(pin2, file) {
29807
- const sha2565 = pin2.trim();
29808
- if (!/^[a-f0-9]{64}$/.test(sha2565))
29807
+ const sha2564 = pin2.trim();
29808
+ if (!/^[a-f0-9]{64}$/.test(sha2564))
29809
29809
  throw new Error(`invalid OneNativeControls release digest at ${file}`);
29810
- return sha2565;
29810
+ return sha2564;
29811
29811
  }
29812
29812
  var ONE_NATIVE_CONTROLS_RELEASE_BUNDLE, ONE_NATIVE_CONTROLS_RELEASE_PIN, ONE_NATIVE_CONTROLS_STAGED_BUNDLE;
29813
29813
  var init_oneNativeControlsReleaseContract = __esm({
@@ -30567,22 +30567,22 @@ function isOneNativeControlsReleaseAsset(pathname) {
30567
30567
  async function serveOneNativeControlsRelease(req, res, pathname, runtime) {
30568
30568
  const pin2 = import_node_path8.default.join(runtime, ONE_NATIVE_CONTROLS_RELEASE_PIN);
30569
30569
  if (!import_node_fs12.default.existsSync(pin2)) return false;
30570
- const sha2565 = parseOneNativeControlsReleasePin(import_node_fs12.default.readFileSync(pin2, "utf8"), pin2);
30571
- const destDir = import_node_path8.default.join(cacheDir(), "one-native-controls", sha2565);
30570
+ const sha2564 = parseOneNativeControlsReleasePin(import_node_fs12.default.readFileSync(pin2, "utf8"), pin2);
30571
+ const destDir = import_node_path8.default.join(cacheDir(), "one-native-controls", sha2564);
30572
30572
  const metadata = pathname === ONE_NATIVE_CONTROLS_METADATA_PATH;
30573
30573
  if (metadata && !import_node_fs12.default.existsSync(import_node_path8.default.join(destDir, METADATA_FILE))) {
30574
- let pending2 = installing.get(sha2565);
30574
+ let pending2 = installing.get(sha2564);
30575
30575
  if (!pending2) {
30576
30576
  const staged = import_node_path8.default.join(runtime, ONE_NATIVE_CONTROLS_STAGED_BUNDLE);
30577
30577
  pending2 = installVerifiedTarball({
30578
- url: `${NATIVE_PREBUILT_ORIGIN}/${oneNativeControlsReleaseObject(sha2565)}`,
30578
+ url: `${NATIVE_PREBUILT_ORIGIN}/${oneNativeControlsReleaseObject(sha2564)}`,
30579
30579
  localPath: import_node_fs12.default.existsSync(staged) ? staged : void 0,
30580
- digest: { algorithm: "sha256", encoding: "hex", value: sha2565 },
30580
+ digest: { algorithm: "sha256", encoding: "hex", value: sha2564 },
30581
30581
  destDir,
30582
30582
  installedMarker: METADATA_FILE,
30583
30583
  label: ONE_NATIVE_CONTROLS_PACKAGE
30584
- }).finally(() => installing.delete(sha2565));
30585
- installing.set(sha2565, pending2);
30584
+ }).finally(() => installing.delete(sha2564));
30585
+ installing.set(sha2564, pending2);
30586
30586
  }
30587
30587
  await pending2;
30588
30588
  }
@@ -31034,11 +31034,11 @@ async function installPack(runtimeRoot, prefix, destDir, allowDownload) {
31034
31034
  await install;
31035
31035
  return import_node_fs16.default.existsSync(marker);
31036
31036
  }
31037
- function desktopPackPath(sha2565) {
31037
+ function desktopPackPath(sha2564) {
31038
31038
  if (process.platform !== "darwin") return;
31039
31039
  const cliDir = import_node_path11.default.dirname(process.execPath);
31040
31040
  const resources = cliDir.endsWith("/Contents/Resources/bin") ? import_node_path11.default.dirname(cliDir) : import_node_path11.default.join(MAC_HOST_APP, "Contents/Resources");
31041
- const file = import_node_path11.default.join(resources, DESKTOP_RUNTIME_PACKS_DIR, `${sha2565}.tar.zst`);
31041
+ const file = import_node_path11.default.join(resources, DESKTOP_RUNTIME_PACKS_DIR, `${sha2564}.tar.zst`);
31042
31042
  if (import_node_fs16.default.existsSync(file)) return file;
31043
31043
  }
31044
31044
  var import_node_fs16, import_node_path11, import_node_timers, inflight, packsByRoot, listedByRoot, WARM_DELAY_MS, warming;
@@ -36021,7 +36021,7 @@ var init_swift_objc_sdk_tree = __esm({
36021
36021
 
36022
36022
  // src/swift-compiler-digest.ts
36023
36023
  function swiftArchiveCompilerDigestValue() {
36024
- return true ? "dafa6520c0bcd0e852437835ad9626e824b1e758db5c163a7de2f7fc70ac67ee" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname, "archive");
36024
+ return true ? "faa13b0ae0340e03d058b765e659f5e07b69f8e94793bf99981b3da7ca3bf2bd" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname, "archive");
36025
36025
  }
36026
36026
  var import_node_crypto11, import_node_fs27, import_node_path25, SWIFT_DIGEST_SOURCES, LINKED_IMAGE_SOURCES, SWIFT_ARCHIVE_DIGEST_SOURCES;
36027
36027
  var init_swift_compiler_digest = __esm({
@@ -36167,13 +36167,13 @@ var init_swift_standin_digest = __esm({
36167
36167
  ];
36168
36168
  RUNTIME_IMPORT = /(?:^|[;\n])[ \t]*(?:import|export)\s+(?!type(?:\s|\{))([\s\S]*?)\s+from\s*['"]([^'"]+)['"]|(?:^|[;\n])[ \t]*import\s+['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
36169
36169
  standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS, STANDIN_DIGEST_EXCLUDED_FILES);
36170
- STANDIN_SOURCE_DIGEST = true ? "c2d1c024e059538977fdd0666278d52ec2116aafae79fe0e8b1cda82a5981f3b" : standinSourceDigest();
36170
+ STANDIN_SOURCE_DIGEST = true ? "b6aa8eda1952d06a101c0a46227f227fb983255bb2a5f825515d7b9bc6f8650d" : standinSourceDigest();
36171
36171
  }
36172
36172
  });
36173
36173
 
36174
36174
  // src/expo-native-compiler-digest.ts
36175
36175
  function expoNativeCompilerDigestValue() {
36176
- return true ? "c9950c3dbdb6ca5891145f8c4133c9b62e89b35f62d9343e8d7ef410cda838f5" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
36176
+ return true ? "d396bac9636107aeb95f7657c77fa10e270f50f4ac8935e007b088b2ef65dfc8" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
36177
36177
  }
36178
36178
  var import_node_crypto13;
36179
36179
  var init_expo_native_compiler_digest = __esm({
@@ -39356,9 +39356,9 @@ async function ensureCompose(toolchain) {
39356
39356
  const downloads = [...toolchain.composeLibraries, toolchain.composeLoader];
39357
39357
  const root = import_node_path29.default.join(kotlinHome(), "compose", toolchain.composeArchive.sha256);
39358
39358
  const verify = (dir) => {
39359
- for (const { name: name3, sha256: sha2565 } of downloads) {
39359
+ for (const { name: name3, sha256: sha2564 } of downloads) {
39360
39360
  const actual = (0, import_node_crypto15.createHash)("sha256").update(import_node_fs30.default.readFileSync(import_node_path29.default.join(dir, name3))).digest("hex");
39361
- if (actual !== sha2565)
39361
+ if (actual !== sha2564)
39362
39362
  throw new Error(`Compose input differs from its pin: ${name3}`);
39363
39363
  }
39364
39364
  };
@@ -39647,15 +39647,15 @@ function nitroDependencyReader(reactNativeVersion, reactNativeRoot) {
39647
39647
  if (!Buffer.from(text7).equals(bytes))
39648
39648
  throw new Error(`Nitro dependency header is not UTF-8: ${source}`);
39649
39649
  const backport = dependency.backport?.file === relative8 ? dependency.backport : void 0;
39650
- let sha2565 = original;
39650
+ let sha2564 = original;
39651
39651
  if (backport) {
39652
39652
  if (original !== backport.originalSha256)
39653
39653
  throw new Error(`${dependency.name} backport original differs: ${relative8}`);
39654
39654
  if (!text7.includes(backport.before))
39655
39655
  throw new Error(`${dependency.name} backport anchor missing: ${relative8}`);
39656
39656
  text7 = text7.replace(backport.before, backport.after);
39657
- sha2565 = (0, import_node_crypto16.createHash)("sha256").update(text7).digest("hex");
39658
- if (sha2565 !== backport.derivedSha256)
39657
+ sha2564 = (0, import_node_crypto16.createHash)("sha256").update(text7).digest("hex");
39658
+ if (sha2564 !== backport.derivedSha256)
39659
39659
  throw new Error(`${dependency.name} backport derived source differs: ${relative8}`);
39660
39660
  }
39661
39661
  return {
@@ -39663,7 +39663,7 @@ function nitroDependencyReader(reactNativeVersion, reactNativeRoot) {
39663
39663
  name: dependency.name,
39664
39664
  source,
39665
39665
  text: text7,
39666
- sha256: sha2565,
39666
+ sha256: sha2564,
39667
39667
  ...backport && {
39668
39668
  derivation: {
39669
39669
  upstreamCommit: backport.upstreamCommit,
@@ -47593,10 +47593,10 @@ function swiftNativePin() {
47593
47593
  }
47594
47594
  return pin;
47595
47595
  }
47596
- function publishedSwiftSdk(sha2565) {
47596
+ function publishedSwiftSdk(sha2564) {
47597
47597
  const { sdkRuntime, sdkGuestRuntime } = swiftNativePin().distribution;
47598
47598
  return [sdkRuntime, sdkGuestRuntime].find(
47599
- (publication) => publication?.source === sha2565
47599
+ (publication) => publication?.source === sha2564
47600
47600
  );
47601
47601
  }
47602
47602
  var pin;
@@ -59848,6 +59848,21 @@ var init_swift_foundation = __esm({
59848
59848
  }
59849
59849
  });
59850
59850
 
59851
+ // src/sha256.ts
59852
+ function sha256Hex2(input) {
59853
+ if (typeof Bun !== "undefined") {
59854
+ return new Bun.CryptoHasher("sha256").update(input).digest("hex");
59855
+ }
59856
+ return (0, import_node_crypto31.createHash)("sha256").update(input).digest("hex");
59857
+ }
59858
+ var import_node_crypto31;
59859
+ var init_sha256 = __esm({
59860
+ "src/sha256.ts"() {
59861
+ "use strict";
59862
+ import_node_crypto31 = require("node:crypto");
59863
+ }
59864
+ });
59865
+
59851
59866
  // src/swift-guest-source-plan.ts
59852
59867
  function swiftPackageLinkage(target) {
59853
59868
  const linkage = target.machOType === "staticlib" ? "static" : target.machOType === "mh_dylib" ? "dynamic" : null;
@@ -62499,11 +62514,6 @@ var init_swift_wasm_archive = __esm({
62499
62514
  });
62500
62515
 
62501
62516
  // src/swift-wasm-prune.ts
62502
- function sha256Hex2(bytes) {
62503
- if (typeof Bun !== "undefined")
62504
- return new Bun.CryptoHasher("sha256").update(bytes).digest("hex");
62505
- return (0, import_node_crypto31.createHash)("sha256").update(bytes).digest("hex");
62506
- }
62507
62517
  function readULEB2(b, o) {
62508
62518
  let res = 0;
62509
62519
  let shift = 0;
@@ -63540,7 +63550,7 @@ function swiftPrunedSdkObjectOrigins(sdk2, args, rewritten) {
63540
63550
  }
63541
63551
  function ensureUnpackedSdkObjects(sdkWasiDir) {
63542
63552
  const archives = import_node_fs60.default.readdirSync(sdkWasiDir).filter((file) => file.endsWith(".a")).sort();
63543
- const hash = (0, import_node_crypto31.createHash)("sha256");
63553
+ const hash = (0, import_node_crypto32.createHash)("sha256");
63544
63554
  for (const archive of archives) {
63545
63555
  hash.update(archive + "\0");
63546
63556
  hash.update(swiftFileChecksum(import_node_path59.default.join(sdkWasiDir, archive)));
@@ -64829,15 +64839,16 @@ function pruneSwiftWasmLink(directory2, toolchainBin, moduleRoot, staticClangTar
64829
64839
  );
64830
64840
  import_node_fs60.default.rmSync(rspPath, { force: true });
64831
64841
  }
64832
- var import_node_child_process27, import_node_crypto31, import_node_fs60, import_node_path59, v3, WIDE_DATA_RELOCS, ROOT_SEG_PREFIXES, RECORD_SEGS, PARTITIONED_SEGS, PRUNED_SDK_ARCHIVES, OMIT_SDK_LIB_FLAGS, NEUTRALIZED_SWIFTRT_SECTIONS, ADDEND_RELOC_MASK2, relocationBytes, parsedObjectCache, PARSED_ROOTS, SWIFTUI_WRAPPER_HOST_PROTOCOLS, SWIFT_PRUNED_LINK_MAP, SWIFT_PRUNED_LINK_RESPONSE;
64842
+ var import_node_child_process27, import_node_crypto32, import_node_fs60, import_node_path59, v3, WIDE_DATA_RELOCS, ROOT_SEG_PREFIXES, RECORD_SEGS, PARTITIONED_SEGS, PRUNED_SDK_ARCHIVES, OMIT_SDK_LIB_FLAGS, NEUTRALIZED_SWIFTRT_SECTIONS, ADDEND_RELOC_MASK2, relocationBytes, parsedObjectCache, PARSED_ROOTS, SWIFTUI_WRAPPER_HOST_PROTOCOLS, SWIFT_PRUNED_LINK_MAP, SWIFT_PRUNED_LINK_RESPONSE;
64833
64843
  var init_swift_wasm_prune = __esm({
64834
64844
  "src/swift-wasm-prune.ts"() {
64835
64845
  "use strict";
64836
64846
  import_node_child_process27 = require("node:child_process");
64837
- import_node_crypto31 = require("node:crypto");
64847
+ import_node_crypto32 = require("node:crypto");
64838
64848
  import_node_fs60 = __toESM(require("node:fs"), 1);
64839
64849
  import_node_path59 = __toESM(require("node:path"), 1);
64840
64850
  v3 = __toESM(require("peachsim/vendor/valibot"), 1);
64851
+ init_sha256();
64841
64852
  init_swift_guest_source_plan();
64842
64853
  init_swift_link_roots();
64843
64854
  init_swift_resource_class_names();
@@ -64951,7 +64962,7 @@ function aliasGuestArchive(options2) {
64951
64962
  alias,
64952
64963
  name: member.name,
64953
64964
  ordinal,
64954
- sha256: (0, import_node_crypto32.createHash)("sha256").update(member.bytes).digest("hex")
64965
+ sha256: (0, import_node_crypto33.createHash)("sha256").update(member.bytes).digest("hex")
64955
64966
  };
64956
64967
  });
64957
64968
  const response = import_node_path60.default.join(options2.directory, "members.rsp");
@@ -64964,7 +64975,7 @@ function aliasGuestArchive(options2) {
64964
64975
  (0, import_node_child_process28.execFileSync)(options2.llvmAr, ["rcsD", archive, `@${response}`], { stdio: "pipe" });
64965
64976
  const rewritten = readArMembers((0, import_node_fs61.readFileSync)(archive));
64966
64977
  if (rewritten.length !== members2.length || rewritten.some(
64967
- (member, index) => member.name !== members2[index].alias || (0, import_node_crypto32.createHash)("sha256").update(member.bytes).digest("hex") !== members2[index].sha256
64978
+ (member, index) => member.name !== members2[index].alias || (0, import_node_crypto33.createHash)("sha256").update(member.bytes).digest("hex") !== members2[index].sha256
64968
64979
  ))
64969
64980
  throw new Error(`guest archive changed members ${options2.archive}`);
64970
64981
  return { source: options2.archive, archive, members: members2 };
@@ -65024,12 +65035,12 @@ function aliasGuestLinkIdentities(identities, archives) {
65024
65035
  }
65025
65036
  return result;
65026
65037
  }
65027
- var import_node_child_process28, import_node_crypto32, import_node_fs61, import_node_path60;
65038
+ var import_node_child_process28, import_node_crypto33, import_node_fs61, import_node_path60;
65028
65039
  var init_swift_guest_archive = __esm({
65029
65040
  "src/swift-guest-archive.ts"() {
65030
65041
  "use strict";
65031
65042
  import_node_child_process28 = require("node:child_process");
65032
- import_node_crypto32 = require("node:crypto");
65043
+ import_node_crypto33 = require("node:crypto");
65033
65044
  import_node_fs61 = require("node:fs");
65034
65045
  import_node_path60 = __toESM(require("node:path"), 1);
65035
65046
  init_swift_wasm_prune();
@@ -65043,15 +65054,15 @@ function nativeDyldName(bytes) {
65043
65054
  name3 += String.fromCharCode(...bytes.subarray(start, start + 4096));
65044
65055
  return name3;
65045
65056
  }
65046
- function nativeDyldTablePath(primary, sha2565) {
65057
+ function nativeDyldTablePath(primary, sha2564) {
65047
65058
  const prefix = primary.slice(0, primary.lastIndexOf("/") + 1);
65048
- return prefix + sha2565 + (primary.endsWith(".wasm") ? ".dyld" : "");
65059
+ return prefix + sha2564 + (primary.endsWith(".wasm") ? ".dyld" : "");
65049
65060
  }
65050
65061
  function readNativeDyldTableIndex(section2) {
65051
65062
  const bytes = new Uint8Array(section2);
65052
65063
  const view = new DataView(section2);
65053
65064
  if (bytes.length < 40) throw new Error("native dyld table index is truncated");
65054
- const sha2565 = Array.from(
65065
+ const sha2564 = Array.from(
65055
65066
  bytes.subarray(0, 32),
65056
65067
  (byte) => byte.toString(16).padStart(2, "0")
65057
65068
  ).join("");
@@ -65075,7 +65086,7 @@ function readNativeDyldTableIndex(section2) {
65075
65086
  at = end + 1;
65076
65087
  }
65077
65088
  if (at !== bytes.length) throw new Error("native dyld table index has trailing bytes");
65078
- return { sha256: sha2565, byteLength, packs, firsts };
65089
+ return { sha256: sha2564, byteLength, packs, firsts };
65079
65090
  }
65080
65091
  var NATIVE_DYLD_TABLE_SECTION, NATIVE_DYLD_PACKS_SECTION;
65081
65092
  var init_nativeDyldTableContract = __esm({
@@ -65099,12 +65110,12 @@ function readNativeLazyParts(section2) {
65099
65110
  for (let id = 0; id < count; id++) {
65100
65111
  const offset = 4 + id * NATIVE_LAZY_PART_BYTES;
65101
65112
  const digest3 = new Uint8Array(section2, offset, NATIVE_LAZY_DIGEST_BYTES);
65102
- const sha2565 = Array.from(digest3, (byte) => byte.toString(16).padStart(2, "0")).join(
65113
+ const sha2564 = Array.from(digest3, (byte) => byte.toString(16).padStart(2, "0")).join(
65103
65114
  ""
65104
65115
  );
65105
65116
  const byteLength = view.getUint32(offset + NATIVE_LAZY_DIGEST_BYTES, true);
65106
65117
  if (!byteLength) throw new Error("native code part has no bytes");
65107
- parts2.push({ sha256: sha2565, byteLength });
65118
+ parts2.push({ sha256: sha2564, byteLength });
65108
65119
  }
65109
65120
  return { parts: parts2, slotOffset, slotBytes };
65110
65121
  }
@@ -66067,7 +66078,7 @@ function createGuestImageLedger(input) {
66067
66078
  const digest3 = ({ object: object9 }) => {
66068
66079
  let value = digests2.get(object9);
66069
66080
  if (value === void 0) {
66070
- value = (0, import_node_crypto33.createHash)("sha256").update(objects2.get(object9).bytes).digest("hex");
66081
+ value = (0, import_node_crypto34.createHash)("sha256").update(objects2.get(object9).bytes).digest("hex");
66071
66082
  digests2.set(object9, value);
66072
66083
  }
66073
66084
  return value;
@@ -66282,7 +66293,7 @@ done:
66282
66293
  attributes #0 = { "wasm-import-module"="${NATIVE_TABLE_IMPORT_MODULE}" "wasm-import-name"="${NATIVE_DYLD_FUNCTION_IMPORT}" }`;
66283
66294
  }
66284
66295
  function sdkGuestCallerId(product) {
66285
- const hash = (0, import_node_crypto33.createHash)("sha256").update(product).digest().readUInt32LE(0);
66296
+ const hash = (0, import_node_crypto34.createHash)("sha256").update(product).digest().readUInt32LE(0);
66286
66297
  return (hash | 2147483648) >>> 0;
66287
66298
  }
66288
66299
  function sdkGuestSymbolName(product, name3) {
@@ -66360,11 +66371,11 @@ function nameGuestImageAliases(wasm, symbols) {
66360
66371
  }
66361
66372
  return Buffer.concat(parts2);
66362
66373
  }
66363
- var import_node_crypto33, ByteWriter, OBJC_INIT_RECORD, TABLE_INDEX_RELOCATIONS, sha256PairHex, GUEST_DYLD_VALUES_SECTION, GUEST_LAZY_FUNCTION_BASE, SDK_DYLD_RESOLVER;
66374
+ var import_node_crypto34, ByteWriter, OBJC_INIT_RECORD, TABLE_INDEX_RELOCATIONS, sha256PairHex, GUEST_DYLD_VALUES_SECTION, GUEST_LAZY_FUNCTION_BASE, SDK_DYLD_RESOLVER;
66364
66375
  var init_swift_guest_image_ledger = __esm({
66365
66376
  "src/swift-guest-image-ledger.ts"() {
66366
66377
  "use strict";
66367
- import_node_crypto33 = require("node:crypto");
66378
+ import_node_crypto34 = require("node:crypto");
66368
66379
  init_nativeWasmContract();
66369
66380
  init_swift_sdk_image_wasm();
66370
66381
  init_swiftSdkLinkContract();
@@ -66421,7 +66432,7 @@ var init_swift_guest_image_ledger = __esm({
66421
66432
  };
66422
66433
  OBJC_INIT_RECORD = ".objc_init";
66423
66434
  TABLE_INDEX_RELOCATIONS = /* @__PURE__ */ new Set([1, 2, 12, 18, 19, 24]);
66424
- sha256PairHex = typeof Bun !== "undefined" ? (first, second) => new Bun.CryptoHasher("sha256").update(first).update("\0").update(second).digest("hex") : (first, second) => (0, import_node_crypto33.createHash)("sha256").update(first).update("\0").update(second).digest("hex");
66435
+ sha256PairHex = typeof Bun !== "undefined" ? (first, second) => new Bun.CryptoHasher("sha256").update(first).update("\0").update(second).digest("hex") : (first, second) => (0, import_node_crypto34.createHash)("sha256").update(first).update("\0").update(second).digest("hex");
66425
66436
  GUEST_DYLD_VALUES_SECTION = "peach_dyld_values";
66426
66437
  GUEST_LAZY_FUNCTION_BASE = 2 ** 32;
66427
66438
  SDK_DYLD_RESOLVER = "__peach_sdk_dyld_resolve";
@@ -66913,12 +66924,7 @@ var init_wasm_narrow_boundary = __esm({
66913
66924
  function sha256Buffer(bytes) {
66914
66925
  if (typeof Bun !== "undefined")
66915
66926
  return Buffer.from(new Bun.CryptoHasher("sha256").update(bytes).digest());
66916
- return (0, import_node_crypto34.createHash)("sha256").update(bytes).digest();
66917
- }
66918
- function sha256Hex3(bytes) {
66919
- if (typeof Bun !== "undefined")
66920
- return new Bun.CryptoHasher("sha256").update(bytes).digest("hex");
66921
- return (0, import_node_crypto34.createHash)("sha256").update(bytes).digest("hex");
66927
+ return (0, import_node_crypto35.createHash)("sha256").update(bytes).digest();
66922
66928
  }
66923
66929
  function uleb2(value) {
66924
66930
  const bytes = [];
@@ -67009,8 +67015,8 @@ function guestDyldValueRange(map2) {
67009
67015
  function swiftDyldTableReference(modulePath, module2) {
67010
67016
  const section2 = readWasmCustomSection(module2, NATIVE_DYLD_TABLE_SECTION);
67011
67017
  if (!section2 || readWasmCustomSection(module2, NATIVE_DYLD_PACKS_SECTION)) return;
67012
- const { sha256: sha2565, byteLength } = readNativeDyldTableIndex(Uint8Array.from(section2).buffer);
67013
- return { path: nativeDyldTablePath(modulePath, sha2565), sha256: sha2565, byteLength };
67018
+ const { sha256: sha2564, byteLength } = readNativeDyldTableIndex(Uint8Array.from(section2).buffer);
67019
+ return { path: nativeDyldTablePath(modulePath, sha2564), sha256: sha2564, byteLength };
67014
67020
  }
67015
67021
  function splitSwiftDyldTable(wasm) {
67016
67022
  const packs = readWasmCustomSection(wasm, NATIVE_DYLD_PACKS_SECTION);
@@ -67018,16 +67024,17 @@ function splitSwiftDyldTable(wasm) {
67018
67024
  const bytes = Buffer.from(packs);
67019
67025
  return {
67020
67026
  module: dropWasmCustomSection(wasm, NATIVE_DYLD_PACKS_SECTION),
67021
- table: { sha256: sha256Hex3(bytes), bytes }
67027
+ table: { sha256: sha256Hex2(bytes), bytes }
67022
67028
  };
67023
67029
  }
67024
- var import_node_crypto34, import_node_zlib4, PACK_BYTES;
67030
+ var import_node_crypto35, import_node_zlib4, PACK_BYTES;
67025
67031
  var init_swift_guest_dyld_table = __esm({
67026
67032
  "src/swift-guest-dyld-table.ts"() {
67027
67033
  "use strict";
67028
- import_node_crypto34 = require("node:crypto");
67034
+ import_node_crypto35 = require("node:crypto");
67029
67035
  import_node_zlib4 = require("node:zlib");
67030
67036
  init_nativeDyldTableContract();
67037
+ init_sha256();
67031
67038
  init_swift_guest_image_ledger();
67032
67039
  init_swift_guest_linked_spans();
67033
67040
  init_wasm_narrow_boundary();
@@ -67477,7 +67484,7 @@ function selectedGuestManifestInputs(plan, selection, identities, readSelected)
67477
67484
  throw new Error(
67478
67485
  `selected member has no original identity: ${item.artifact}(${item.member})`
67479
67486
  );
67480
- if (origin && (0, import_node_crypto35.createHash)("sha256").update(bytes).digest("hex") !== origin.sha256)
67487
+ if (origin && (0, import_node_crypto36.createHash)("sha256").update(bytes).digest("hex") !== origin.sha256)
67481
67488
  throw new Error(
67482
67489
  `selected member differs from original: ${item.artifact}(${item.member})`
67483
67490
  );
@@ -67524,7 +67531,7 @@ function createGuestImageManifest(image) {
67524
67531
  cpuType: -1,
67525
67532
  cpuSubtype: 0
67526
67533
  };
67527
- const digest3 = (0, import_node_crypto35.createHash)("sha256");
67534
+ const digest3 = (0, import_node_crypto36.createHash)("sha256");
67528
67535
  const sizeBuf = Buffer.allocUnsafe(8);
67529
67536
  const add2 = (bytes) => {
67530
67537
  sizeBuf.writeBigUInt64BE(BigInt(bytes.byteLength));
@@ -67566,11 +67573,11 @@ function createGuestImageManifest(image) {
67566
67573
  regions: image.regions
67567
67574
  };
67568
67575
  }
67569
- var import_node_crypto35, import_node_fs62, framedLinkOptionsCache;
67576
+ var import_node_crypto36, import_node_fs62, framedLinkOptionsCache;
67570
67577
  var init_swift_guest_manifest = __esm({
67571
67578
  "src/swift-guest-manifest.ts"() {
67572
67579
  "use strict";
67573
- import_node_crypto35 = require("node:crypto");
67580
+ import_node_crypto36 = require("node:crypto");
67574
67581
  import_node_fs62 = require("node:fs");
67575
67582
  init_swift_guest_link_plan();
67576
67583
  init_swift_wasm_prune();
@@ -68036,11 +68043,11 @@ var init_swift_guest_projection_storage = __esm({
68036
68043
  function frameworkRuntimeProductId(product) {
68037
68044
  return `swift-package/${product.packageName}/${product.product.name}`;
68038
68045
  }
68039
- var import_node_crypto36, v4, packageSchema;
68046
+ var import_node_crypto37, v4, packageSchema;
68040
68047
  var init_swift_runtime_products = __esm({
68041
68048
  "src/swift-runtime-products.ts"() {
68042
68049
  "use strict";
68043
- import_node_crypto36 = require("node:crypto");
68050
+ import_node_crypto37 = require("node:crypto");
68044
68051
  v4 = __toESM(require("peachsim/vendor/valibot"), 1);
68045
68052
  init_is_record();
68046
68053
  packageSchema = v4.object({
@@ -68071,7 +68078,7 @@ function canonicalArchivePath(file) {
68071
68078
  function sdkArtifactBytes(root, artifact) {
68072
68079
  const file = import_node_path61.default.resolve(root, artifact.path);
68073
68080
  const linked = (0, import_node_fs63.readFileSync)(file);
68074
- const hash = (bytes) => (0, import_node_crypto37.createHash)("sha256").update(bytes).digest("hex");
68081
+ const hash = (bytes) => (0, import_node_crypto38.createHash)("sha256").update(bytes).digest("hex");
68075
68082
  if (hash(linked) === artifact.sha256) return { source: linked, linked };
68076
68083
  if (artifact.kind !== "archive" || artifact.path !== `${SWIFT_SDK_PRODUCT_DIRECTORY}/libFoundation.a`)
68077
68084
  throw new Error(`SDK product artifact changed ${file}`);
@@ -68097,9 +68104,9 @@ function indexSdkMembers(bytes) {
68097
68104
  );
68098
68105
  }
68099
68106
  function verifySdkObjectTransform(source, linked, sourceSha256, transformation) {
68100
- if ((0, import_node_crypto37.createHash)("sha256").update(source).digest("hex") !== sourceSha256 || transformation.inputSha256 !== sourceSha256)
68107
+ if ((0, import_node_crypto38.createHash)("sha256").update(source).digest("hex") !== sourceSha256 || transformation.inputSha256 !== sourceSha256)
68101
68108
  throw new Error("SDK object transform input changed");
68102
- if ((0, import_node_crypto37.createHash)("sha256").update(linked).digest("hex") !== transformation.outputSha256 || transformation.kind === "swiftrt" && !Buffer.from(patchSwiftrtObject(source)).equals(linked))
68109
+ if ((0, import_node_crypto38.createHash)("sha256").update(linked).digest("hex") !== transformation.outputSha256 || transformation.kind === "swiftrt" && !Buffer.from(patchSwiftrtObject(source)).equals(linked))
68103
68110
  throw new Error("SDK object transform output changed");
68104
68111
  }
68105
68112
  function readGuestRuntimeCatalogs(sdkRoot, distributionRoot) {
@@ -68379,7 +68386,7 @@ function guestSdkProductLinkArtifacts(products, sdk2, inputs2, linkedArchives, r
68379
68386
  const digest3 = (file) => {
68380
68387
  let value = hashes.get(file);
68381
68388
  if (!value) {
68382
- value = (0, import_node_crypto37.createHash)("sha256").update((0, import_node_fs63.readFileSync)(file)).digest("hex");
68389
+ value = (0, import_node_crypto38.createHash)("sha256").update((0, import_node_fs63.readFileSync)(file)).digest("hex");
68383
68390
  hashes.set(file, value);
68384
68391
  }
68385
68392
  return value;
@@ -68447,9 +68454,9 @@ function guestSdkProductLinkArtifacts(products, sdk2, inputs2, linkedArchives, r
68447
68454
  if (input.member) {
68448
68455
  if (original.kind !== "archive")
68449
68456
  throw new Error(`SDK input member has no archive ${originalFile}`);
68450
- const { name: name3, ordinal, sha256: sha2565 } = input.member;
68457
+ const { name: name3, ordinal, sha256: sha2564 } = input.member;
68451
68458
  const member = original.members.find(
68452
- (entry) => entry.name === name3 && entry.ordinal === ordinal && entry.sha256 === sha2565
68459
+ (entry) => entry.name === name3 && entry.ordinal === ordinal && entry.sha256 === sha2564
68453
68460
  );
68454
68461
  let records = archiveMembers.get(originalFile);
68455
68462
  if (!records) {
@@ -68457,7 +68464,7 @@ function guestSdkProductLinkArtifacts(products, sdk2, inputs2, linkedArchives, r
68457
68464
  archiveMembers.set(originalFile, records);
68458
68465
  }
68459
68466
  const bytes = records.filter((entry) => entry.name === name3)[ordinal - 1]?.bytes;
68460
- if (!member || !bytes || (0, import_node_crypto37.createHash)("sha256").update(bytes).digest("hex") !== sha2565)
68467
+ if (!member || !bytes || (0, import_node_crypto38.createHash)("sha256").update(bytes).digest("hex") !== sha2564)
68461
68468
  throw new Error(`SDK input member changed ${originalFile}(${name3})`);
68462
68469
  } else if (original.kind !== "object")
68463
68470
  throw new Error(`SDK object input has no member ${originalFile}`);
@@ -68486,7 +68493,7 @@ function guestSdkProductLinkArtifacts(products, sdk2, inputs2, linkedArchives, r
68486
68493
  const member = members2.get(key2);
68487
68494
  const source = indexed.source.get(key2);
68488
68495
  const linked2 = indexed.linked.get(key2);
68489
- if (!member || !source || !linked2 || (0, import_node_crypto37.createHash)("sha256").update(source).digest("hex") !== member.sha256 || (0, import_node_crypto37.createHash)("sha256").update(linked2).digest("hex") !== digest3(origin.original))
68496
+ if (!member || !source || !linked2 || (0, import_node_crypto38.createHash)("sha256").update(source).digest("hex") !== member.sha256 || (0, import_node_crypto38.createHash)("sha256").update(linked2).digest("hex") !== digest3(origin.original))
68490
68497
  throw new Error(`SDK member differs from source product ${origin.original}`);
68491
68498
  add2({
68492
68499
  path: origin.original,
@@ -68551,7 +68558,7 @@ function guestAliasedSdkArchiveArtifacts(options2) {
68551
68558
  const key2 = JSON.stringify([member.name, member.ordinal]);
68552
68559
  const bytes = sourceMembers[index].get(key2);
68553
68560
  const linked = viewMembers[index].get(key2);
68554
- return bytes !== void 0 && linked !== void 0 && (0, import_node_crypto37.createHash)("sha256").update(bytes).digest("hex") === entry.sha256 && (0, import_node_crypto37.createHash)("sha256").update(linked).digest("hex") === member.sha256;
68561
+ return bytes !== void 0 && linked !== void 0 && (0, import_node_crypto38.createHash)("sha256").update(bytes).digest("hex") === entry.sha256 && (0, import_node_crypto38.createHash)("sha256").update(linked).digest("hex") === member.sha256;
68555
68562
  }) ? [product2.id] : []
68556
68563
  )
68557
68564
  );
@@ -68584,11 +68591,11 @@ function guestAliasedSdkArchiveArtifacts(options2) {
68584
68591
  }
68585
68592
  return result;
68586
68593
  }
68587
- var import_node_crypto37, import_node_fs63, import_node_path61, v5, SDK_CONTAINING_IMAGE;
68594
+ var import_node_crypto38, import_node_fs63, import_node_path61, v5, SDK_CONTAINING_IMAGE;
68588
68595
  var init_swift_guest_runtime_plan = __esm({
68589
68596
  "src/swift-guest-runtime-plan.ts"() {
68590
68597
  "use strict";
68591
- import_node_crypto37 = require("node:crypto");
68598
+ import_node_crypto38 = require("node:crypto");
68592
68599
  import_node_fs63 = require("node:fs");
68593
68600
  import_node_path61 = __toESM(require("node:path"), 1);
68594
68601
  v5 = __toESM(require("peachsim/vendor/valibot"), 1);
@@ -70424,13 +70431,8 @@ function clangBinaryStamp(file) {
70424
70431
  const stat2 = (0, import_node_fs66.statSync)(file, { bigint: true });
70425
70432
  return [file, stat2.size, stat2.mtimeNs].join(":");
70426
70433
  }
70427
- function sha256Hex4(bytes) {
70428
- if (typeof Bun !== "undefined")
70429
- return new Bun.CryptoHasher("sha256").update(bytes).digest("hex");
70430
- return (0, import_node_crypto38.createHash)("sha256").update(bytes).digest("hex");
70431
- }
70432
70434
  function clangWrapperStamp(file) {
70433
- return sha256Hex4((0, import_node_fs66.readFileSync)(file));
70435
+ return sha256Hex2((0, import_node_fs66.readFileSync)(file));
70434
70436
  }
70435
70437
  function clangArgsNeedCwd(args) {
70436
70438
  const pathFlags = /* @__PURE__ */ new Set([
@@ -70608,7 +70610,7 @@ function sourceGuestClangLinkOptions(options2) {
70608
70610
  import_node_path64.default.join(options2.buildDirectory, CLANG_TARGET_MODULE_WRAPPER)
70609
70611
  )))
70610
70612
  throw new Error(`unsupported source object producer ${file}`);
70611
- const key2 = sha256Hex4(
70613
+ const key2 = sha256Hex2(
70612
70614
  JSON.stringify([
70613
70615
  "clang-link-options/v2",
70614
70616
  clangArgsNeedCwd(command.args) ? process.cwd() : null,
@@ -70619,7 +70621,7 @@ function sourceGuestClangLinkOptions(options2) {
70619
70621
  clangProducerStamp(file)
70620
70622
  ])
70621
70623
  );
70622
- const cacheFile = import_node_path64.default.join(cacheDirectory, sha256Hex4(file) + ".json");
70624
+ const cacheFile = import_node_path64.default.join(cacheDirectory, sha256Hex2(file) + ".json");
70623
70625
  const cached5 = readClangLinkOptions(cacheFile, key2);
70624
70626
  if (cached5) {
70625
70627
  validateClangLinkOptions(cached5);
@@ -70832,7 +70834,7 @@ function sourceGuestRuntimeLinks(options2) {
70832
70834
  const file = import_node_path64.default.resolve(directory2, alias.moduleMap);
70833
70835
  if (!file.startsWith(directory2 + import_node_path64.default.sep))
70834
70836
  throw new Error(`invalid framework module map ${alias.moduleMap}`);
70835
- if ((0, import_node_crypto38.createHash)("sha256").update((0, import_node_fs66.readFileSync)(file)).digest("hex") !== alias.moduleMapSha256)
70837
+ if (sha256Hex2((0, import_node_fs66.readFileSync)(file)) !== alias.moduleMapSha256)
70836
70838
  throw new Error(`framework module map changed ${alias.moduleMap}`);
70837
70839
  sdkAliases.set(alias.name, {
70838
70840
  product: product.id,
@@ -70888,7 +70890,7 @@ function sourceGuestRuntimeLinks(options2) {
70888
70890
  const map2 = import_node_path64.default.resolve(root, alias.moduleMap);
70889
70891
  if (!map2.startsWith(root + import_node_path64.default.sep))
70890
70892
  throw new Error(`invalid framework module map ${alias.moduleMap}`);
70891
- if ((0, import_node_crypto38.createHash)("sha256").update((0, import_node_fs66.readFileSync)(map2)).digest("hex") !== alias.moduleMapSha256)
70893
+ if (sha256Hex2((0, import_node_fs66.readFileSync)(map2)) !== alias.moduleMapSha256)
70892
70894
  throw new Error(`framework module map changed ${alias.moduleMap}`);
70893
70895
  frameworkAliases.set(alias.name, { kind: "package", targets: closure(alias.targets) });
70894
70896
  }
@@ -70989,15 +70991,15 @@ function logicalGuestLinkOptions(args, identities, roots) {
70989
70991
  }
70990
70992
  return output;
70991
70993
  }
70992
- var import_node_child_process31, import_node_crypto38, import_node_fs66, import_node_path64, CLANG_TARGET_MODULE_WRAPPER, PARALLEL_REPLAY;
70994
+ var import_node_child_process31, import_node_fs66, import_node_path64, CLANG_TARGET_MODULE_WRAPPER, PARALLEL_REPLAY;
70993
70995
  var init_swift_guest_source_inputs = __esm({
70994
70996
  "src/swift-guest-source-inputs.ts"() {
70995
70997
  "use strict";
70996
70998
  import_node_child_process31 = require("node:child_process");
70997
- import_node_crypto38 = require("node:crypto");
70998
70999
  import_node_fs66 = require("node:fs");
70999
71000
  import_node_path64 = __toESM(require("node:path"), 1);
71000
71001
  init_forked_script_contract();
71002
+ init_sha256();
71001
71003
  init_swift_guest_source_plan();
71002
71004
  init_swift_runtime_products();
71003
71005
  init_swift_wasm_prune();
@@ -75971,6 +75973,10 @@ ${SWIFT_SDK_IMAGE_VERSION}
75971
75973
  `).update(inputs2).update(products.length === 0 ? "" : `
75972
75974
  products ${products.join(" ")}`).digest("hex").slice(0, 32);
75973
75975
  }
75976
+ function swiftSdkImageVariantKey(baseKey, required) {
75977
+ if (!required.length) return baseKey;
75978
+ return (0, import_node_crypto45.createHash)("sha256").update(baseKey).update(JSON.stringify(required)).digest("hex").slice(0, 32);
75979
+ }
75974
75980
  function swiftSdkImageEntry(key2, scopedLookups) {
75975
75981
  const inputs2 = { image: key2 };
75976
75982
  return {
@@ -76000,15 +76006,15 @@ function cached3(directory2, key2) {
76000
76006
  return void 0;
76001
76007
  }
76002
76008
  }
76003
- function sdkImageAt(directory2, key2, sha2565) {
76009
+ function sdkImageAt(directory2, key2, sha2564) {
76004
76010
  refreshSwiftCacheHold(directory2);
76005
- const cacheKey = `${directory2}\0${sha2565}`;
76011
+ const cacheKey = `${directory2}\0${sha2564}`;
76006
76012
  let loadedInterface;
76007
76013
  return {
76008
76014
  key: key2,
76009
76015
  directory: directory2,
76010
76016
  image: import_node_path73.default.join(directory2, IMAGE_FILE),
76011
- sha256: sha2565,
76017
+ sha256: sha2564,
76012
76018
  get sdkInterface() {
76013
76019
  if (loadedInterface) return loadedInterface;
76014
76020
  const memo2 = cachedSdkInterfaces.get(cacheKey);
@@ -76022,11 +76028,24 @@ function sdkImageAt(directory2, key2, sha2565) {
76022
76028
  }
76023
76029
  async function buildSwiftSdkImage(moduleRoot, scopedLookups = false, frameworkImports2 = [], options2) {
76024
76030
  const { imports: imports2, products } = swiftSdkImageProducts(moduleRoot, frameworkImports2);
76025
- const key2 = swiftSdkImageKey(moduleRoot, scopedLookups, products);
76026
- const directory2 = import_node_path73.default.join(swiftCacheDir(), "swift-sdk-images", key2);
76031
+ const images = import_node_path73.default.join(swiftCacheDir(), "swift-sdk-images");
76032
+ const baseKey = swiftSdkImageKey(moduleRoot, scopedLookups, products);
76033
+ const required = [...new Set(options2?.requiredGuestSymbols)].sort();
76034
+ const base2 = cached3(import_node_path73.default.join(images, baseKey), baseKey);
76035
+ if (base2) {
76036
+ if (!required.length) return base2;
76037
+ const { functions, data, tls } = base2.sdkInterface;
76038
+ if (required.every(
76039
+ (name3) => functions[name3] !== void 0 || data[name3] !== void 0 || tls[name3] !== void 0
76040
+ ))
76041
+ return base2;
76042
+ }
76043
+ const key2 = swiftSdkImageVariantKey(baseKey, required);
76044
+ const directory2 = import_node_path73.default.join(images, key2);
76027
76045
  const existing = cached3(directory2, key2);
76028
76046
  if (existing) return existing;
76029
- if (!options2?.producer && !swiftDistributionAt(moduleRoot) && import_node_path73.default.resolve(moduleRoot) === sourceSwiftCheckout() && process.platform === "linux" && process.env.TM_SESSION) {
76047
+ const distribution = swiftDistributionAt(moduleRoot);
76048
+ if (!options2?.producer && !required.length && !distribution && import_node_path73.default.resolve(moduleRoot) === sourceSwiftCheckout() && process.platform === "linux" && process.env.TM_SESSION) {
76030
76049
  const { produceSwiftSdkImage: produceSwiftSdkImage2 } = await Promise.resolve().then(() => (init_swift_sdk_image_producer(), swift_sdk_image_producer_exports));
76031
76050
  await produceSwiftSdkImage2({
76032
76051
  moduleRoot,
@@ -76047,7 +76066,7 @@ async function buildSwiftSdkImage(moduleRoot, scopedLookups = false, frameworkIm
76047
76066
  return cached3(directory2, key2) ?? withSwiftRootLock(directory2, async () => {
76048
76067
  const previous = cached3(directory2, key2);
76049
76068
  if (previous) return previous;
76050
- if (swiftDistributionAt(moduleRoot)) {
76069
+ if (distribution && !required.length) {
76051
76070
  const entry = swiftSdkImageEntry(key2, scopedLookups);
76052
76071
  const fetched = fetchNativeEntry("sdk-image", entry.name, entry.key);
76053
76072
  if (fetched) {
@@ -76084,6 +76103,7 @@ async function buildSwiftSdkImage(moduleRoot, scopedLookups = false, frameworkIm
76084
76103
  work,
76085
76104
  scopedLookups,
76086
76105
  imports2,
76106
+ required,
76087
76107
  releaseFrameworks
76088
76108
  )
76089
76109
  );
@@ -76092,7 +76112,7 @@ async function buildSwiftSdkImage(moduleRoot, scopedLookups = false, frameworkIm
76092
76112
  }
76093
76113
  });
76094
76114
  }
76095
- async function linkSwiftSdkImage(moduleRoot, key2, directory2, work, scopedLookups, imports2, releaseFrameworks) {
76115
+ async function linkSwiftSdkImage(moduleRoot, key2, directory2, work, scopedLookups, imports2, required, releaseFrameworks) {
76096
76116
  (0, import_node_fs75.rmSync)(work, { recursive: true, force: true });
76097
76117
  (0, import_node_fs75.mkdirSync)(work, { recursive: true });
76098
76118
  const toolchain = swiftModuleToolchain(moduleRoot);
@@ -76253,7 +76273,10 @@ async function linkSwiftSdkImage(moduleRoot, key2, directory2, work, scopedLooku
76253
76273
  const quote3 = (value) => JSON.stringify(value);
76254
76274
  (0, import_node_fs75.writeFileSync)(
76255
76275
  import_node_path73.default.join(work, "exports.rsp"),
76256
- [...defined].map((name3) => quote3(`--export-if-defined=${name3}`)).join("\n")
76276
+ [
76277
+ ...[...defined].map((name3) => quote3(`--export-if-defined=${name3}`)),
76278
+ ...required.filter((name3) => !defined.has(name3)).map((name3) => quote3(`--export=${name3}`))
76279
+ ].join("\n")
76257
76280
  );
76258
76281
  const guestServices = import_node_path73.default.join(work, "peach-guest-services.allow");
76259
76282
  (0, import_node_fs75.writeFileSync)(guestServices, peachGuestServiceAllowlist);
@@ -76344,11 +76367,12 @@ async function linkSwiftSdkImage(moduleRoot, key2, directory2, work, scopedLooku
76344
76367
  import_node_path73.default.join(work, IMAGE_DIGEST),
76345
76368
  typeof Bun !== "undefined" ? new Bun.CryptoHasher("sha256").update(image).digest("hex") : (0, import_node_crypto45.createHash)("sha256").update(image).digest("hex")
76346
76369
  );
76347
- if (swiftSdkImageKey(
76370
+ const baseKey = swiftSdkImageKey(
76348
76371
  moduleRoot,
76349
76372
  scopedLookups,
76350
76373
  swiftSdkImageProducts(moduleRoot, imports2).products
76351
- ) !== key2)
76374
+ );
76375
+ if (swiftSdkImageVariantKey(baseKey, required) !== key2)
76352
76376
  throw new Error("Swift SDK image inputs changed during compilation");
76353
76377
  for (const name3 of (0, import_node_fs75.readdirSync)(work))
76354
76378
  if (!SWIFT_SDK_IMAGE_FILES.includes(name3))
@@ -76759,12 +76783,12 @@ function encodeNativeSdkLater(later) {
76759
76783
  const view = new DataView(bytes.buffer);
76760
76784
  view.setUint32(0, files2.length, true);
76761
76785
  let at = 4;
76762
- for (const { sha256: sha2565, byteLength } of files2) {
76763
- if (!/^[a-f0-9]{64}$/.test(sha2565))
76786
+ for (const { sha256: sha2564, byteLength } of files2) {
76787
+ if (!/^[a-f0-9]{64}$/.test(sha2564))
76764
76788
  throw new Error("Swift SDK later data needs a sha256 digest");
76765
76789
  if (!byteLength) throw new Error("Swift SDK later data file is empty");
76766
76790
  for (let i = 0; i < LATER_DIGEST_BYTES; i++)
76767
- bytes[at + i] = Number.parseInt(sha2565.slice(i * 2, i * 2 + 2), 16);
76791
+ bytes[at + i] = Number.parseInt(sha2564.slice(i * 2, i * 2 + 2), 16);
76768
76792
  view.setUint32(at + LATER_DIGEST_BYTES, byteLength, true);
76769
76793
  at += LATER_DIGEST_BYTES + 4;
76770
76794
  }
@@ -76789,13 +76813,13 @@ function decodeNativeSdkLater(trailer) {
76789
76813
  const files2 = [];
76790
76814
  for (let file = 0; file < count; file++) {
76791
76815
  if (at + LATER_DIGEST_BYTES + 4 > trailer.byteLength) throw truncated();
76792
- const sha2565 = Array.from(
76816
+ const sha2564 = Array.from(
76793
76817
  trailer.subarray(at, at + LATER_DIGEST_BYTES),
76794
76818
  (byte) => byte.toString(16).padStart(2, "0")
76795
76819
  ).join("");
76796
76820
  const byteLength = view.getUint32(at + LATER_DIGEST_BYTES, true);
76797
76821
  if (!byteLength) throw new Error("Swift SDK binding names empty later data");
76798
- files2.push({ sha256: sha2565, byteLength });
76822
+ files2.push({ sha256: sha2564, byteLength });
76799
76823
  at += LATER_DIGEST_BYTES + 4;
76800
76824
  }
76801
76825
  if (!files2.length || at + 4 > trailer.byteLength) throw truncated();
@@ -77982,8 +78006,8 @@ function createSwiftSdkBinding(linkage, sdk2, usage, projection) {
77982
78006
  const binding = bindSwiftAppModule(linkage, sdk2);
77983
78007
  const { data, liveSlots } = selectSwiftSdkData(sdk2, usage, linkage, projection);
77984
78008
  const bytes = Buffer.concat([binding, data]);
77985
- const sha2565 = typeof Bun !== "undefined" ? new Bun.CryptoHasher("sha256").update(bytes).digest("hex") : (0, import_node_crypto46.createHash)("sha256").update(bytes).digest("hex");
77986
- return { bytes, sha256: sha2565, liveSlots };
78009
+ const sha2564 = typeof Bun !== "undefined" ? new Bun.CryptoHasher("sha256").update(bytes).digest("hex") : (0, import_node_crypto46.createHash)("sha256").update(bytes).digest("hex");
78010
+ return { bytes, sha256: sha2564, liveSlots };
77987
78011
  }
77988
78012
  function readSwiftSdkUsage(mapFile, linkedFile, sdkObjects) {
77989
78013
  const map2 = readWasmLinkMap(mapFile, false);
@@ -79688,8 +79712,8 @@ function brotliCompressQ4(bytes, cacheKey) {
79688
79712
  function brotliCompressQ6(bytes, cacheKey) {
79689
79713
  return cachedBrotli(bytes, 6, cacheKey);
79690
79714
  }
79691
- function brotliCompressSwiftSdkBinding(bytes, sha2565) {
79692
- return cachedBrotli(bytes, 5, sha2565);
79715
+ function brotliCompressSwiftSdkBinding(bytes, sha2564) {
79716
+ return cachedBrotli(bytes, 5, sha2564);
79693
79717
  }
79694
79718
  async function memo(cache, key2, load2) {
79695
79719
  const cached5 = cache.get(key2);
@@ -86497,7 +86521,7 @@ ${wasmThreadLinkFlags.map((flag) => ` "-Xlinker", ${JSON.stringify(flag
86497
86521
  REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
86498
86522
  MULTI_MANIFEST_VERSION = 76;
86499
86523
  SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
86500
- compilerSourceDigest = true ? "1803ba36803a88ceeca92ee7b13baa39dde72fbb72df14659f0414084afaf5d7" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
86524
+ compilerSourceDigest = true ? "3bdbb1d31ba7d202e612a91b60a3b588f9bc94a11990fb114585b3e2521857f5" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
86501
86525
  nativeCxxCompilerFlags = ["-fno-cxx-modules"];
86502
86526
  MODULE_MAP_RESPONSE_FILE_RUN = 16;
86503
86527
  cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
@@ -97290,11 +97314,6 @@ end
97290
97314
  });
97291
97315
 
97292
97316
  // src/bazel-project.ts
97293
- function sha256Hex5(bytes) {
97294
- if (typeof Bun !== "undefined")
97295
- return new Bun.CryptoHasher("sha256").update(bytes).digest("hex");
97296
- return (0, import_node_crypto55.createHash)("sha256").update(bytes).digest("hex");
97297
- }
97298
97317
  function isBazelPackage(input) {
97299
97318
  return /^BUILD(?:\.bazel)?$/.test(import_node_path97.default.basename(input)) && import_node_fs96.default.statSync(input).isFile();
97300
97319
  }
@@ -97324,7 +97343,7 @@ function bazelBinary(root) {
97324
97343
  const expected = (0, import_node_child_process48.execFileSync)("curl", ["-fsSL", `${url}.sha256`], {
97325
97344
  encoding: "utf8"
97326
97345
  }).split(/\s/)[0];
97327
- const actual = (0, import_node_crypto55.createHash)("sha256").update(import_node_fs96.default.readFileSync(partial)).digest("hex");
97346
+ const actual = sha256Hex2(import_node_fs96.default.readFileSync(partial));
97328
97347
  if (actual !== expected) {
97329
97348
  import_node_fs96.default.rmSync(partial, { force: true });
97330
97349
  throw new Error(`${url} digest ${actual} differs from its release ${expected}`);
@@ -98049,8 +98068,8 @@ ${published4.map(
98049
98068
  ]
98050
98069
  )
98051
98070
  ]);
98052
- const digest3 = sha256Hex5(
98053
- JSON.stringify([...contents2].map(([file, bytes]) => [file, sha256Hex5(bytes)]))
98071
+ const digest3 = sha256Hex2(
98072
+ JSON.stringify([...contents2].map(([file, bytes]) => [file, sha256Hex2(bytes)]))
98054
98073
  );
98055
98074
  const stamp = import_node_path97.default.join(bundle, ".peach-digest");
98056
98075
  if (!import_node_fs96.default.existsSync(stamp) || import_node_fs96.default.readFileSync(stamp, "utf8") !== digest3) {
@@ -98222,6 +98241,7 @@ var init_bazel_project = __esm({
98222
98241
  import_node_path97 = __toESM(require("node:path"), 1);
98223
98242
  init_is_record();
98224
98243
  init_plist();
98244
+ init_sha256();
98225
98245
  LIBRARY_RULES = /* @__PURE__ */ new Set(["swift_library", "objc_library", "cc_library"]);
98226
98246
  QUERIED_RULES = [
98227
98247
  "swift_library",
@@ -98710,7 +98730,7 @@ var init_provenance = __esm({
98710
98730
  import_node_crypto57 = require("node:crypto");
98711
98731
  import_node_fs98 = require("node:fs");
98712
98732
  import_node_path99 = require("node:path");
98713
- swiftCoverageProvenance = true ? JSON.parse('{"swift-coverage/indexdump.ts":"0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412","swift-coverage/indexing.ts":"633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272","swift-coverage/types.ts":"bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1","swift-coverage/source.ts":"c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee","swift-coverage/package.ts":"1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b","swift-coverage/xcode.ts":"d6a3228567a46c6d5280895383093889d9b868958a117881061bdd74729a225f","swift-coverage/xcode-assets.ts":"d98d6294b359528f7733b26db6f80f554782354faa235605f9562be4ad98b8a3","swift-coverage/xcode-asset-symbols.ts":"1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671","swift-coverage/xcode-bridging.ts":"33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11","swift-coverage/xcode-packages.ts":"5c83f56357d880243ab485b260d23abd0094583ffa2287dac6e9e7eb18c3673d","swift-coverage/xcode-strings.ts":"facdbeb9de6bb12da4ab4954553edfaadd0e486f1181443138be70c3d8396236","swift-coverage/reader.ts":"da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c","swift-coverage/provenance.ts":"f5039c16e63c6129e22b71203f58982c68cef6e282a4f236b93da28edd39c108","swift-package-manifest.ts":"523fdfffc0cff95c8df7beeca437622a07d4fd666f0bb22b0ff67d14c42a7b10","swift-package.ts":"05c6cf101fbc944f6684a70db0a9c5aede846b2f0482a6b4a5a0abed737d4658","swift-source-file.ts":"8becce5e73b76a61d9d202c1ecfb39b1238e9bbf0e77841f1c51c98fa9ac7bd3","swift-toolchain.ts":"cc32d16a0a3539e97447f853dd876b6b9240d544f5e0f21852c5a8333968e8a5","home-paths.ts":"d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd","xcode-header-search.ts":"c72b724fc497e4cf603c355f86eb3c07c929ad299758cffbc6ff88ed241654c6","xcode-project.ts":"d140088a94d032e28788e18bf11499965e0c626255fd904538764ededcf1d751","xcode-target-members.ts":"2379e6d411c5d63fa65ddc24c4e4fc8bfcd001b5be109b694c848fe62908db86","xcode-json-project.ts":"df6d6db28e0c8cfdf1f480e1e32d35f12c9cf1936642d5dda923889fb18a8fd6","openstep-plist.ts":"da11f86885ef1e25979ad989f332195c113c4b7a43f108e8d36646973430b81b"}') : swiftCoverageSourceDigests((0, import_node_path99.join)(__sootsim_import_meta_dirname, ".."));
98733
+ swiftCoverageProvenance = true ? JSON.parse('{"swift-coverage/indexdump.ts":"0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412","swift-coverage/indexing.ts":"839661007eb801f3e3ec055a1f00c0e8b7a3d3be7f4bf1fc389ee6b5c2a290a6","swift-coverage/types.ts":"bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1","swift-coverage/source.ts":"2c235d7947d94c8a9f84b305f5453da8647c5c9f8180a38c59631868685b8723","swift-coverage/package.ts":"0f595bd55bcbd22bb337395f175d2aba23624d60f44d3309a61929629cc9b200","swift-coverage/xcode.ts":"059dd3b47d1ce4fe43acef97277c64b57507399866725a2144289eaa6ef8c1d4","swift-coverage/xcode-assets.ts":"a9314d1de1df0ce639a4402b66f89f8b20537f3fdadf0b7cf7355e6ac5b09f54","swift-coverage/xcode-asset-symbols.ts":"1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671","swift-coverage/xcode-bridging.ts":"b7f31dd9c3c554bd69bff75cc9985a11032a394b405acc4b82be8f140a2a8676","swift-coverage/xcode-packages.ts":"d6b3d7fb1f5e32b4b08727927b794030d2f1285c7e3c41d7e8ab2e244a3d8c36","swift-coverage/xcode-strings.ts":"ef711d2a9039a08eb7d407546018ab22aafb0e883a65fc838bf864f5c5c9f85b","swift-coverage/reader.ts":"2562d668fd959c4ae3d24b765d3281b8d03251e8de65ec62bda305ba79f7d8c3","swift-coverage/provenance.ts":"f5039c16e63c6129e22b71203f58982c68cef6e282a4f236b93da28edd39c108","swift-package-manifest.ts":"523fdfffc0cff95c8df7beeca437622a07d4fd666f0bb22b0ff67d14c42a7b10","swift-package.ts":"05c6cf101fbc944f6684a70db0a9c5aede846b2f0482a6b4a5a0abed737d4658","swift-source-file.ts":"8becce5e73b76a61d9d202c1ecfb39b1238e9bbf0e77841f1c51c98fa9ac7bd3","swift-toolchain.ts":"cc32d16a0a3539e97447f853dd876b6b9240d544f5e0f21852c5a8333968e8a5","home-paths.ts":"d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd","xcode-header-search.ts":"c72b724fc497e4cf603c355f86eb3c07c929ad299758cffbc6ff88ed241654c6","xcode-project.ts":"d140088a94d032e28788e18bf11499965e0c626255fd904538764ededcf1d751","xcode-target-members.ts":"2379e6d411c5d63fa65ddc24c4e4fc8bfcd001b5be109b694c848fe62908db86","xcode-json-project.ts":"df6d6db28e0c8cfdf1f480e1e32d35f12c9cf1936642d5dda923889fb18a8fd6","openstep-plist.ts":"da11f86885ef1e25979ad989f332195c113c4b7a43f108e8d36646973430b81b"}') : swiftCoverageSourceDigests((0, import_node_path99.join)(__sootsim_import_meta_dirname, ".."));
98714
98734
  }
98715
98735
  });
98716
98736
 
@@ -99702,12 +99722,12 @@ function catalogDigest(directory2) {
99702
99722
  const path195 = (0, import_node_path101.join)(dir, entry.name);
99703
99723
  if (entry.isDirectory()) walk4(path195);
99704
99724
  else if (entry.isFile() && (0, import_node_fs100.statSync)(path195).size <= 64 * 1024 * 1024)
99705
- hashes.push([(0, import_node_path101.relative)(directory2, path195), sha2562((0, import_node_fs100.readFileSync)(path195))]);
99725
+ hashes.push([(0, import_node_path101.relative)(directory2, path195), sha256Hex2((0, import_node_fs100.readFileSync)(path195))]);
99706
99726
  else throw new Error(`Unsupported asset catalog entry: ${path195}`);
99707
99727
  }
99708
99728
  };
99709
99729
  walk4(directory2);
99710
- return sha2562(JSON.stringify(hashes));
99730
+ return sha256Hex2(JSON.stringify(hashes));
99711
99731
  }
99712
99732
  function symbolSource(plan, root) {
99713
99733
  const key2 = JSON.stringify([root, plan]);
@@ -99804,16 +99824,15 @@ function assetSymbolText(plan, root) {
99804
99824
  if (source.status === "unknown") throw new Error(source.reason);
99805
99825
  return source.text;
99806
99826
  }
99807
- var import_node_crypto58, import_node_fs100, import_node_path101, sha2562, unprovenAssetSettings, assetSymbolSettingKeys, provenOtherAssetFlags, symbolTexts;
99827
+ var import_node_fs100, import_node_path101, unprovenAssetSettings, assetSymbolSettingKeys, provenOtherAssetFlags, symbolTexts;
99808
99828
  var init_xcode_assets = __esm({
99809
99829
  "src/swift-coverage/xcode-assets.ts"() {
99810
99830
  "use strict";
99811
- import_node_crypto58 = require("node:crypto");
99812
99831
  import_node_fs100 = require("node:fs");
99813
99832
  import_node_path101 = require("node:path");
99833
+ init_sha256();
99814
99834
  init_provenance();
99815
99835
  init_xcode_asset_symbols();
99816
- sha2562 = (bytes) => (0, import_node_crypto58.createHash)("sha256").update(bytes).digest("hex");
99817
99836
  unprovenAssetSettings = [
99818
99837
  "ASSETCATALOG_COMPILER_GENERATE_ASSET_SYMBOL_FRAMEWORKS",
99819
99838
  "ASSETCATALOG_COMPILER_GENERATE_ASSET_SYMBOL_WARNINGS",
@@ -100495,7 +100514,7 @@ function normalizedEnums(input) {
100495
100514
  }
100496
100515
  function localizationIdentifier(field2, key2) {
100497
100516
  const alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
100498
- const digest3 = (0, import_node_crypto59.createHash)("sha256").update(JSON.stringify([...field2, key2])).digest();
100517
+ const digest3 = (0, import_node_crypto58.createHash)("sha256").update(JSON.stringify([...field2, key2])).digest();
100499
100518
  return Array.from(
100500
100519
  digest3.subarray(0, 6),
100501
100520
  (byte) => alphabet[byte % alphabet.length]
@@ -100820,12 +100839,12 @@ function writeIntentDefinition(input, prefix) {
100820
100839
  lines.push("</plist>", "");
100821
100840
  return lines.join("\n");
100822
100841
  }
100823
- var import_strict4, import_node_crypto59, typeMetadata, initializeMetadata, widgetArraySizes, defaultReasonMessages;
100842
+ var import_strict4, import_node_crypto58, typeMetadata, initializeMetadata, widgetArraySizes, defaultReasonMessages;
100824
100843
  var init_metadata = __esm({
100825
100844
  "src/intent-definition/metadata.ts"() {
100826
100845
  "use strict";
100827
100846
  import_strict4 = __toESM(require("node:assert/strict"), 1);
100828
- import_node_crypto59 = require("node:crypto");
100847
+ import_node_crypto58 = require("node:crypto");
100829
100848
  init_fields();
100830
100849
  init_hash_input();
100831
100850
  init_siphash();
@@ -101534,7 +101553,7 @@ function preparePortableIntent(definition2, derivedDirectory, prefix, language,
101534
101553
  if (prefix) identifier(prefix);
101535
101554
  if (module2) identifier(module2);
101536
101555
  const source = import_node_fs102.default.readFileSync(definition2);
101537
- const key2 = (0, import_node_crypto60.createHash)("sha256").update(
101556
+ const key2 = (0, import_node_crypto59.createHash)("sha256").update(
101538
101557
  JSON.stringify([intentCompilerRevision, definition2, prefix, language, module2])
101539
101558
  ).update("\0").update(source).digest("hex");
101540
101559
  const cache = import_node_path103.default.join(derivedDirectory, "IntentDefinitions");
@@ -101574,11 +101593,11 @@ function preparePortableIntent(definition2, derivedDirectory, prefix, language,
101574
101593
  import_node_fs102.default.rmSync(stage, { recursive: true, force: true });
101575
101594
  }
101576
101595
  }
101577
- var import_node_crypto60, import_node_fs102, import_node_path103, intentCompilerRevision;
101596
+ var import_node_crypto59, import_node_fs102, import_node_path103, intentCompilerRevision;
101578
101597
  var init_xcode_intents = __esm({
101579
101598
  "src/xcode-intents.ts"() {
101580
101599
  "use strict";
101581
- import_node_crypto60 = require("node:crypto");
101600
+ import_node_crypto59 = require("node:crypto");
101582
101601
  import_node_fs102 = __toESM(require("node:fs"), 1);
101583
101602
  import_node_path103 = __toESM(require("node:path"), 1);
101584
101603
  init_fields();
@@ -102280,7 +102299,7 @@ function loadProject(xcodeproj) {
102280
102299
  if (!projectFile)
102281
102300
  throw new Error(`${xcodeproj} has no project.pbxproj or project.xcproj`);
102282
102301
  const source = import_node_fs103.default.readFileSync(projectFile, "utf8");
102283
- const digest3 = (0, import_node_crypto61.createHash)("sha256").update(source).digest("hex");
102302
+ const digest3 = (0, import_node_crypto60.createHash)("sha256").update(source).digest("hex");
102284
102303
  const cached5 = loaded3.get(projectFile);
102285
102304
  if (cached5?.digest === digest3) return cached5.project;
102286
102305
  const root = projectFile.endsWith(".xcproj") ? readXcodeJsonProject(xcodeproj, source) : parseOpenStepPlist(source);
@@ -102332,7 +102351,7 @@ function xcodeInstallationIdentity() {
102332
102351
  if (!selected) return null;
102333
102352
  const directory2 = import_node_path105.default.extname(selected) === ".app" ? import_node_path105.default.join(selected, "Contents", "Developer") : selected;
102334
102353
  const versionFile = `${directory2}/../version.plist`;
102335
- const version2 = import_node_fs103.default.existsSync(versionFile) ? (0, import_node_crypto61.createHash)("sha256").update(import_node_fs103.default.readFileSync(versionFile)).digest("hex") : null;
102354
+ const version2 = import_node_fs103.default.existsSync(versionFile) ? (0, import_node_crypto60.createHash)("sha256").update(import_node_fs103.default.readFileSync(versionFile)).digest("hex") : null;
102336
102355
  return { directory: directory2, version: version2 };
102337
102356
  }
102338
102357
  function defaultConfiguration(project2) {
@@ -102816,7 +102835,7 @@ function targetMembers(ref, settings, options2, settingKeys, projectInputs) {
102816
102835
  );
102817
102836
  });
102818
102837
  }
102819
- const signature2 = (0, import_node_crypto61.createHash)("sha256").update(
102838
+ const signature2 = (0, import_node_crypto60.createHash)("sha256").update(
102820
102839
  JSON.stringify([phase, [...settingKeys].map((key3) => [key3, settings(key3)])])
102821
102840
  );
102822
102841
  for (const file of inputFiles) {
@@ -102971,7 +102990,7 @@ ${output}`
102971
102990
  const inputs2 = JSON.stringify([
102972
102991
  1,
102973
102992
  args,
102974
- (0, import_node_crypto61.createHash)("sha256").update(import_node_fs103.default.readFileSync(file)).digest("hex")
102993
+ (0, import_node_crypto60.createHash)("sha256").update(import_node_fs103.default.readFileSync(file)).digest("hex")
102975
102994
  ]);
102976
102995
  const developer = settings("DEVELOPER_DIR");
102977
102996
  const cached5 = import_node_fs103.default.existsSync(output) && import_node_fs103.default.existsSync(stamp) ? import_node_fs103.default.readFileSync(stamp, "utf8").split("\n") : [];
@@ -104521,12 +104540,12 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
104521
104540
  cocoapods
104522
104541
  };
104523
104542
  }
104524
- var import_node_child_process49, import_node_crypto61, import_node_fs103, import_node_module9, import_node_path105, XCODE_DEFAULT_IOS_DEPLOYMENT_TARGET, runScriptTimeoutMs, CXX_STANDARD_ALIASES, PRE_CXX20_STANDARDS, APPLICATION, APP_EXTENSION, RESOURCE_BUNDLE, PRODUCT_MACH_O_TYPES, FRAMEWORK_PRODUCTS, HEADER_FILE, MODULE_PRODUCTS, CONDITIONS, isDirectory3, loaded3, developerDir, preparedSourcePhases, isPodsProject, targetRefs, NativeAppTargetSelectionError, workspaceResolvedFile, SwiftPackageResolutionRequired;
104543
+ var import_node_child_process49, import_node_crypto60, import_node_fs103, import_node_module9, import_node_path105, XCODE_DEFAULT_IOS_DEPLOYMENT_TARGET, runScriptTimeoutMs, CXX_STANDARD_ALIASES, PRE_CXX20_STANDARDS, APPLICATION, APP_EXTENSION, RESOURCE_BUNDLE, PRODUCT_MACH_O_TYPES, FRAMEWORK_PRODUCTS, HEADER_FILE, MODULE_PRODUCTS, CONDITIONS, isDirectory3, loaded3, developerDir, preparedSourcePhases, isPodsProject, targetRefs, NativeAppTargetSelectionError, workspaceResolvedFile, SwiftPackageResolutionRequired;
104525
104544
  var init_xcode_project = __esm({
104526
104545
  "src/xcode-project.ts"() {
104527
104546
  "use strict";
104528
104547
  import_node_child_process49 = require("node:child_process");
104529
- import_node_crypto61 = require("node:crypto");
104548
+ import_node_crypto60 = require("node:crypto");
104530
104549
  import_node_fs103 = __toESM(require("node:fs"), 1);
104531
104550
  import_node_module9 = require("node:module");
104532
104551
  import_node_path105 = __toESM(require("node:path"), 1);
@@ -104735,8 +104754,8 @@ async function walkWorkspaceInputs(app, everyByte, sourceOnly, podsEnvironment)
104735
104754
  );
104736
104755
  const appRelative = import_node_path106.default.relative(root, app);
104737
104756
  const manifest = JSON.parse(import_node_fs104.default.readFileSync(import_node_path106.default.join(root, "package.json"), "utf8"));
104738
- const hash = (0, import_node_crypto62.createHash)("sha256");
104739
- const native = (0, import_node_crypto62.createHash)("sha256");
104757
+ const hash = (0, import_node_crypto61.createHash)("sha256");
104758
+ const native = (0, import_node_crypto61.createHash)("sha256");
104740
104759
  const nativeDirectories = localPackageDirectories(root, app);
104741
104760
  const versionFree = new Set(
104742
104761
  nativeDirectories.filter((directory2) => directory2 !== appRelative && directory2 !== "").filter(
@@ -104820,7 +104839,7 @@ async function walkWorkspaceInputs(app, everyByte, sourceOnly, podsEnvironment)
104820
104839
  unread.slice(start, start + 32).map(async ({ file, content }) => {
104821
104840
  const bytes = await import_node_fs104.default.promises.readFile(file);
104822
104841
  content.size = bytes.length;
104823
- content.digest = (0, import_node_crypto62.createHash)("sha256").update(bytes).digest("hex");
104842
+ content.digest = (0, import_node_crypto61.createHash)("sha256").update(bytes).digest("hex");
104824
104843
  fileDigests.set(file, content);
104825
104844
  })
104826
104845
  );
@@ -105373,10 +105392,10 @@ function stageCachedQuickCryptoOpenSsl(app) {
105373
105392
  const opensslDir = import_node_path106.default.join(packageDir, "ios", "openssl");
105374
105393
  if (import_node_fs104.default.existsSync(import_node_path106.default.join(opensslDir, "quickcrypto_openssl_prefix.h"))) return;
105375
105394
  const podspec = import_node_fs104.default.readFileSync(import_node_path106.default.join(packageDir, "QuickCrypto.podspec"), "utf8");
105376
- const sha2565 = /openssl_sha256\s*=\s*"([0-9a-f]{64})"/.exec(podspec)?.[1];
105377
- if (!sha2565) return;
105378
- const archive = import_node_path106.default.join(cacheDir(), "pod-archives", `${sha2565}.zip`);
105379
- if (!import_node_fs104.default.existsSync(archive) || (0, import_node_crypto62.createHash)("sha256").update(import_node_fs104.default.readFileSync(archive)).digest("hex") !== sha2565)
105395
+ const sha2564 = /openssl_sha256\s*=\s*"([0-9a-f]{64})"/.exec(podspec)?.[1];
105396
+ if (!sha2564) return;
105397
+ const archive = import_node_path106.default.join(cacheDir(), "pod-archives", `${sha2564}.zip`);
105398
+ if (!import_node_fs104.default.existsSync(archive) || (0, import_node_crypto61.createHash)("sha256").update(import_node_fs104.default.readFileSync(archive)).digest("hex") !== sha2564)
105380
105399
  return;
105381
105400
  import_node_fs104.default.rmSync(opensslDir, { recursive: true, force: true });
105382
105401
  import_node_fs104.default.mkdirSync(opensslDir, { recursive: true });
@@ -105414,12 +105433,12 @@ ${failedOutputLine(command, cwd, bytes)}`
105414
105433
  });
105415
105434
  });
105416
105435
  }
105417
- var import_node_child_process50, import_node_crypto62, import_node_fs104, import_node_module10, import_node_os22, import_node_path106, import_node_util13, isolatedGitEnv, EXACT_VERSION, NATIVE_CONFIG_FILE, NATIVE_SOURCE_FILE2, fileDigests, NATIVE_PACKAGE_ENTRY, hashing, KEPT_WORKSPACES, WORKSPACE_GRACE_MS, ABANDONED_WORKSPACE_MS, RETIRED_PREFIX2, preparing, watches, current, CLONE_ENTRIES;
105436
+ var import_node_child_process50, import_node_crypto61, import_node_fs104, import_node_module10, import_node_os22, import_node_path106, import_node_util13, isolatedGitEnv, EXACT_VERSION, NATIVE_CONFIG_FILE, NATIVE_SOURCE_FILE2, fileDigests, NATIVE_PACKAGE_ENTRY, hashing, KEPT_WORKSPACES, WORKSPACE_GRACE_MS, ABANDONED_WORKSPACE_MS, RETIRED_PREFIX2, preparing, watches, current, CLONE_ENTRIES;
105418
105437
  var init_expo_native_workspace = __esm({
105419
105438
  "src/expo-native-workspace.ts"() {
105420
105439
  "use strict";
105421
105440
  import_node_child_process50 = require("node:child_process");
105422
- import_node_crypto62 = require("node:crypto");
105441
+ import_node_crypto61 = require("node:crypto");
105423
105442
  import_node_fs104 = __toESM(require("node:fs"), 1);
105424
105443
  import_node_module10 = require("node:module");
105425
105444
  import_node_os22 = __toESM(require("node:os"), 1);
@@ -105493,7 +105512,7 @@ function run() {
105493
105512
 
105494
105513
  // src/expo-discovery-cache.ts
105495
105514
  function peachPin() {
105496
- return (0, import_node_crypto63.createHash)("sha256").update(
105515
+ return (0, import_node_crypto62.createHash)("sha256").update(
105497
105516
  `${FORMAT}\0${expoNativeCompilerDigestValue()}\0${swiftNativePin().distribution.id}\0`
105498
105517
  ).update(JSON.stringify([...EXPO_EAGER_NATIVE_VIEWS])).update(JSON.stringify([...peachAnsweredNativePackages()].sort())).digest("hex");
105499
105518
  }
@@ -105507,7 +105526,7 @@ function stable(value) {
105507
105526
  }
105508
105527
  async function expoDiscoveryKey(options2) {
105509
105528
  const { root, hash } = await hashExpoWorkspace(options2.appRoot, options2.signal);
105510
- const key2 = (0, import_node_crypto63.createHash)("sha256").update(`${peachPin()}\0${hash}\0`).update(`${stable(JSON.parse(options2.searchText))}\0`).update(`${stable(options2.configuration)}\0`).update(stable(JSON.parse(options2.resolveText))).digest("hex");
105529
+ const key2 = (0, import_node_crypto62.createHash)("sha256").update(`${peachPin()}\0${hash}\0`).update(`${stable(JSON.parse(options2.searchText))}\0`).update(`${stable(options2.configuration)}\0`).update(stable(JSON.parse(options2.resolveText))).digest("hex");
105511
105530
  return { key: key2, root };
105512
105531
  }
105513
105532
  function expoDiscoveryCacheDir() {
@@ -105578,7 +105597,7 @@ function readExpoDiscovery(key2) {
105578
105597
  if (typeof parsed2.archive !== "string" || !isDigest(parsed2.archive)) return void 0;
105579
105598
  const archive = import_node_path107.default.join(expoDiscoveryCacheDir(), "blobs", `${parsed2.archive}.zst`);
105580
105599
  const bytes = import_node_fs105.default.readFileSync(archive);
105581
- if ((0, import_node_crypto63.createHash)("sha256").update(bytes).digest("hex") !== parsed2.archive)
105600
+ if ((0, import_node_crypto62.createHash)("sha256").update(bytes).digest("hex") !== parsed2.archive)
105582
105601
  return void 0;
105583
105602
  const bodies = (0, import_node_zlib7.zstdDecompressSync)(bytes);
105584
105603
  const decoded = /* @__PURE__ */ new Map();
@@ -105652,7 +105671,7 @@ function stampedFileHash(file) {
105652
105671
  const stamp = [stat2.dev, stat2.ino, stat2.size, stat2.mtimeNs, stat2.ctimeNs].join(":");
105653
105672
  const cached5 = fileHashes.get(file);
105654
105673
  if (cached5?.stamp === stamp) return cached5.checksum;
105655
- const checksum = (0, import_node_crypto63.createHash)("sha256").update(import_node_fs105.default.readFileSync(file)).digest("hex");
105674
+ const checksum = (0, import_node_crypto62.createHash)("sha256").update(import_node_fs105.default.readFileSync(file)).digest("hex");
105656
105675
  fileHashes.set(file, { stamp, checksum });
105657
105676
  fileHashesChanged = true;
105658
105677
  return checksum;
@@ -105661,7 +105680,7 @@ function saveFileHashes() {
105661
105680
  if (!fileHashesChanged) return;
105662
105681
  fileHashesChanged = false;
105663
105682
  const target = fileHashesPath();
105664
- const temporary = `${target}.${process.pid}.${(0, import_node_crypto63.randomUUID)()}.tmp`;
105683
+ const temporary = `${target}.${process.pid}.${(0, import_node_crypto62.randomUUID)()}.tmp`;
105665
105684
  try {
105666
105685
  import_node_fs105.default.mkdirSync(import_node_path107.default.dirname(target), { recursive: true });
105667
105686
  import_node_fs105.default.writeFileSync(
@@ -105716,7 +105735,7 @@ function frameworkDigest(directory2, signal) {
105716
105735
  if (target !== root && !target.startsWith(`${root}${import_node_path107.default.sep}`))
105717
105736
  throw new Error(`framework link escapes its tree: ${relative8}`);
105718
105737
  }
105719
- return (0, import_node_crypto63.createHash)("sha256").update(JSON.stringify([...entries2])).digest("hex");
105738
+ return (0, import_node_crypto62.createHash)("sha256").update(JSON.stringify([...entries2])).digest("hex");
105720
105739
  }
105721
105740
  function rewritePreparedPaths(options2) {
105722
105741
  const { units, sourceRoot, preparedRoot, signal } = options2;
@@ -105737,7 +105756,7 @@ function rewritePreparedPaths(options2) {
105737
105756
  return null;
105738
105757
  }
105739
105758
  if (!preparedBytes.equals(sourceBytes)) return null;
105740
- dependencies[sourceFile] = (0, import_node_crypto63.createHash)("sha256").update(sourceBytes).digest("hex");
105759
+ dependencies[sourceFile] = (0, import_node_crypto62.createHash)("sha256").update(sourceBytes).digest("hex");
105741
105760
  verifiedFiles.set(preparedFile, sourceFile);
105742
105761
  return sourceFile;
105743
105762
  };
@@ -105814,7 +105833,7 @@ function rewritePreparedPaths(options2) {
105814
105833
  portableDir = import_node_path107.default.join(parent, import_node_path107.default.basename(dir));
105815
105834
  if (!import_node_fs105.default.existsSync(portableDir)) {
105816
105835
  import_node_fs105.default.mkdirSync(parent, { recursive: true });
105817
- const tmp = import_node_path107.default.join(parent, `.${process.pid}.${(0, import_node_crypto63.randomUUID)()}.tmp`);
105836
+ const tmp = import_node_path107.default.join(parent, `.${process.pid}.${(0, import_node_crypto62.randomUUID)()}.tmp`);
105818
105837
  try {
105819
105838
  import_node_fs105.default.cpSync(dir, tmp, { recursive: true, verbatimSymlinks: true });
105820
105839
  if (frameworkDigest(tmp, signal) !== preparedDigest)
@@ -105843,7 +105862,7 @@ function writeExpoDiscovery(options2) {
105843
105862
  try {
105844
105863
  const dir = expoDiscoveryCacheDir();
105845
105864
  import_node_fs105.default.mkdirSync(dir, { recursive: true });
105846
- const tmp = import_node_path107.default.join(dir, `.${options2.key}.${process.pid}.${(0, import_node_crypto63.randomUUID)()}.tmp`);
105865
+ const tmp = import_node_path107.default.join(dir, `.${options2.key}.${process.pid}.${(0, import_node_crypto62.randomUUID)()}.tmp`);
105847
105866
  if (options2.units === null) {
105848
105867
  import_node_fs105.default.writeFileSync(
105849
105868
  tmp,
@@ -105906,8 +105925,8 @@ function writeExpoDiscovery(options2) {
105906
105925
  }
105907
105926
  );
105908
105927
  const contents2 = (0, import_node_zlib7.zstdCompressSync)(Buffer.concat(chunks, size2));
105909
- const archive = (0, import_node_crypto63.createHash)("sha256").update(contents2).digest("hex");
105910
- const temporary = import_node_path107.default.join(blobDir, "." + (0, import_node_crypto63.randomUUID)() + ".tmp");
105928
+ const archive = (0, import_node_crypto62.createHash)("sha256").update(contents2).digest("hex");
105929
+ const temporary = import_node_path107.default.join(blobDir, "." + (0, import_node_crypto62.randomUUID)() + ".tmp");
105911
105930
  try {
105912
105931
  import_node_fs105.default.writeFileSync(temporary, contents2);
105913
105932
  import_node_fs105.default.renameSync(temporary, import_node_path107.default.join(blobDir, `${archive}.zst`));
@@ -105934,11 +105953,11 @@ function writeExpoDiscovery(options2) {
105934
105953
  return error instanceof Error ? error.message : String(error);
105935
105954
  }
105936
105955
  }
105937
- var import_node_crypto63, import_node_fs105, import_node_path107, import_node_zlib7, FORMAT, EXPIRY_MS, ORPHAN_TEMPORARY_MS, strings3, stringRecord, isDigest, digestRecord, isBodyOffset, isBodyOffsets, sourceLocationLine, fileHashes, fileHashesLoaded, fileHashesChanged, MISSING_TREE;
105956
+ var import_node_crypto62, import_node_fs105, import_node_path107, import_node_zlib7, FORMAT, EXPIRY_MS, ORPHAN_TEMPORARY_MS, strings3, stringRecord, isDigest, digestRecord, isBodyOffset, isBodyOffsets, sourceLocationLine, fileHashes, fileHashesLoaded, fileHashesChanged, MISSING_TREE;
105938
105957
  var init_expo_discovery_cache = __esm({
105939
105958
  "src/expo-discovery-cache.ts"() {
105940
105959
  "use strict";
105941
- import_node_crypto63 = require("node:crypto");
105960
+ import_node_crypto62 = require("node:crypto");
105942
105961
  import_node_fs105 = __toESM(require("node:fs"), 1);
105943
105962
  import_node_path107 = __toESM(require("node:path"), 1);
105944
105963
  import_node_zlib7 = require("node:zlib");
@@ -107001,7 +107020,7 @@ function hashPackageTree(root, options2) {
107001
107020
  }
107002
107021
  };
107003
107022
  walk4(root, "");
107004
- const hash = (0, import_node_crypto64.createHash)("sha256");
107023
+ const hash = (0, import_node_crypto63.createHash)("sha256");
107005
107024
  return (async () => {
107006
107025
  for (let start = 0; start < files2.length; start += READ_AHEAD) {
107007
107026
  const batch = files2.slice(start, start + READ_AHEAD);
@@ -107022,11 +107041,11 @@ function nativePackageTreeDigest(root) {
107022
107041
  skipFile: (name3) => name3.endsWith(".d.ts") || name3.endsWith(".d.ts.map") || name3.endsWith(".js.map")
107023
107042
  });
107024
107043
  }
107025
- var import_node_crypto64, import_node_fs108, import_promises13, import_node_path110, READ_AHEAD;
107044
+ var import_node_crypto63, import_node_fs108, import_promises13, import_node_path110, READ_AHEAD;
107026
107045
  var init_package_tree_digest = __esm({
107027
107046
  "src/package-tree-digest.ts"() {
107028
107047
  "use strict";
107029
- import_node_crypto64 = require("node:crypto");
107048
+ import_node_crypto63 = require("node:crypto");
107030
107049
  import_node_fs108 = require("node:fs");
107031
107050
  import_promises13 = require("node:fs/promises");
107032
107051
  import_node_path110 = require("node:path");
@@ -107106,7 +107125,7 @@ async function expoNativeInputs(appRoot) {
107106
107125
  "swift-pin": JSON.stringify(swiftNativePin()),
107107
107126
  answered: JSON.stringify([...peachAnsweredNativePackages()].sort()),
107108
107127
  "pods-environment": JSON.stringify(reactNativePodsEnvironment()),
107109
- fingerprint: (0, import_node_crypto65.createHash)("sha256").update(lines.sort().join("\n")).digest("hex")
107128
+ fingerprint: (0, import_node_crypto64.createHash)("sha256").update(lines.sort().join("\n")).digest("hex")
107110
107129
  },
107111
107130
  packages
107112
107131
  };
@@ -107224,7 +107243,7 @@ async function managedExpoNativeAppIdentity(appRoot, iosTarget) {
107224
107243
  }
107225
107244
  function servedExpoSwift(appRoot, entry, app) {
107226
107245
  if (!entry.expoSwift) return null;
107227
- const rootId = `${(0, import_node_crypto65.createHash)("sha256").update(import_node_fs109.default.realpathSync(appRoot)).digest("hex")}/Expo`;
107246
+ const rootId = `${(0, import_node_crypto64.createHash)("sha256").update(import_node_fs109.default.realpathSync(appRoot)).digest("hex")}/Expo`;
107228
107247
  if (app.infoPlist === null) throw new Error("the prebuilt app target has no Info.plist");
107229
107248
  const installed2 = installedInfoPlist(app.infoPlist, entry.infoPlist);
107230
107249
  const infoPlist2 = Buffer.from(installed2).toString("base64");
@@ -107252,11 +107271,11 @@ async function prebuiltExpoSwiftResult(appRoot, entry, signal) {
107252
107271
  await prebuiltAppTarget(appRoot, signal, "installed")
107253
107272
  );
107254
107273
  }
107255
- var import_node_crypto65, import_node_fs109, import_node_module13, import_node_path111, import_node_util14, EXPO_NATIVE_ENTRY_NAME, IDENTITY_SOURCE_SKIPS, expoNativeEntryUrl, isStringRecord, isPlistArray, published, lookups, answers;
107274
+ var import_node_crypto64, import_node_fs109, import_node_module13, import_node_path111, import_node_util14, EXPO_NATIVE_ENTRY_NAME, IDENTITY_SOURCE_SKIPS, expoNativeEntryUrl, isStringRecord, isPlistArray, published, lookups, answers;
107256
107275
  var init_expo_native_prebuilt = __esm({
107257
107276
  "src/expo-native-prebuilt.ts"() {
107258
107277
  "use strict";
107259
- import_node_crypto65 = require("node:crypto");
107278
+ import_node_crypto64 = require("node:crypto");
107260
107279
  import_node_fs109 = __toESM(require("node:fs"), 1);
107261
107280
  import_node_module13 = require("node:module");
107262
107281
  import_node_path111 = __toESM(require("node:path"), 1);
@@ -107308,7 +107327,7 @@ function watchNativeInputs(root) {
107308
107327
  (0, import_node_timers2.clearTimeout)(expiry);
107309
107328
  for (const watcher of watchers) watcher.close();
107310
107329
  }
107311
- const inputs2 = { expiry, revision: (0, import_node_crypto66.randomUUID)() };
107330
+ const inputs2 = { expiry, revision: (0, import_node_crypto65.randomUUID)() };
107312
107331
  const watch4 = (directory2, recursive, name3) => {
107313
107332
  const watcher = import_node_fs110.default.watch(
107314
107333
  directory2,
@@ -107353,11 +107372,11 @@ function nativeInputRevision(root) {
107353
107372
  const inputs2 = watchNativeInputs(root);
107354
107373
  if (inputs2) return JSON.stringify([inputs2.revision, resolveActiveRuntimeRoot()]);
107355
107374
  }
107356
- var import_node_crypto66, import_node_fs110, import_node_path112, import_node_timers2, setTimeoutNode, RETENTION_MS, watchedInputs, NativePreparation;
107375
+ var import_node_crypto65, import_node_fs110, import_node_path112, import_node_timers2, setTimeoutNode, RETENTION_MS, watchedInputs, NativePreparation;
107357
107376
  var init_native_preparation = __esm({
107358
107377
  "src/native-preparation.ts"() {
107359
107378
  "use strict";
107360
- import_node_crypto66 = require("node:crypto");
107379
+ import_node_crypto65 = require("node:crypto");
107361
107380
  import_node_fs110 = __toESM(require("node:fs"), 1);
107362
107381
  import_node_path112 = __toESM(require("node:path"), 1);
107363
107382
  import_node_timers2 = require("node:timers");
@@ -107456,7 +107475,7 @@ function nativeStaticLibraryEntry(recipe2, compiler, sdk2, distribution) {
107456
107475
  return { name: recipe2.name, inputs: inputs2, key: nativeEntryKey(inputs2) };
107457
107476
  }
107458
107477
  function nativeStaticLibraryRecipe(bytes) {
107459
- const digest3 = (0, import_node_crypto67.createHash)("sha256").update(bytes).digest("hex");
107478
+ const digest3 = (0, import_node_crypto66.createHash)("sha256").update(bytes).digest("hex");
107460
107479
  return NATIVE_STATIC_LIBRARY_RECIPES.find((item) => item.nativeSha256 === digest3);
107461
107480
  }
107462
107481
  function nativeStaticLibrary(file, recipe2, moduleRoot) {
@@ -107499,7 +107518,7 @@ function isRustSymbol(name3, demangled) {
107499
107518
  function rustStaticLibrary(file, moduleRoot) {
107500
107519
  const toolchain = swiftModuleToolchain(moduleRoot);
107501
107520
  const bytes = import_node_fs111.default.readFileSync(file);
107502
- const key2 = (0, import_node_crypto67.createHash)("sha256").update("rust-c-abi-v4\0").update(toolchain.release).update("\0").update(bytes).digest("hex");
107521
+ const key2 = (0, import_node_crypto66.createHash)("sha256").update("rust-c-abi-v4\0").update(toolchain.release).update("\0").update(bytes).digest("hex");
107503
107522
  const directory2 = import_node_path113.default.join(cacheDir(), "native-archives", key2);
107504
107523
  const archive = import_node_path113.default.join(directory2, "library.a");
107505
107524
  if (import_node_fs111.default.existsSync(archive)) return archive;
@@ -107528,7 +107547,7 @@ function rustStaticLibrary(file, moduleRoot) {
107528
107547
  const members2 = readArMembers(bytes, true);
107529
107548
  const seen = /* @__PURE__ */ new Set();
107530
107549
  const unique2 = members2.filter(({ name: name3, bytes: bytes2 }) => {
107531
- const identity2 = name3 + "\0" + (0, import_node_crypto67.createHash)("sha256").update(bytes2).digest("hex");
107550
+ const identity2 = name3 + "\0" + (0, import_node_crypto66.createHash)("sha256").update(bytes2).digest("hex");
107532
107551
  if (seen.has(identity2)) return false;
107533
107552
  seen.add(identity2);
107534
107553
  return true;
@@ -107575,14 +107594,14 @@ function rustStaticLibrary(file, moduleRoot) {
107575
107594
  function combineNativeStaticLibraries(files2, moduleRoot) {
107576
107595
  if (files2.length === 1) return files2[0];
107577
107596
  const toolchain = swiftModuleToolchain(moduleRoot);
107578
- const hash = (0, import_node_crypto67.createHash)("sha256").update(toolchain.release);
107597
+ const hash = (0, import_node_crypto66.createHash)("sha256").update(toolchain.release);
107579
107598
  for (const file of files2)
107580
107599
  hash.update("\0").update(import_node_path113.default.basename(file)).update("\0").update(import_node_fs111.default.readFileSync(file));
107581
107600
  const directory2 = import_node_path113.default.join(cacheDir(), "native-archives", hash.digest("hex"));
107582
107601
  const archive = import_node_path113.default.join(directory2, "combined.a");
107583
107602
  if (import_node_fs111.default.existsSync(archive)) return archive;
107584
107603
  import_node_fs111.default.mkdirSync(directory2, { recursive: true });
107585
- const temporary = import_node_path113.default.join(directory2, `combined-${(0, import_node_crypto67.randomUUID)()}.a`);
107604
+ const temporary = import_node_path113.default.join(directory2, `combined-${(0, import_node_crypto66.randomUUID)()}.a`);
107586
107605
  try {
107587
107606
  (0, import_node_child_process52.execFileSync)(import_node_path113.default.join(toolchain.toolchainBin, "llvm-ar"), [
107588
107607
  "qcsDL",
@@ -107595,12 +107614,12 @@ function combineNativeStaticLibraries(files2, moduleRoot) {
107595
107614
  }
107596
107615
  return archive;
107597
107616
  }
107598
- var import_node_child_process52, import_node_crypto67, import_node_fs111, import_node_path113, WEBRTC_NATIVE_FRAMEWORK, SIGNAL_WEBRTC_NATIVE_FRAMEWORK, WEBRTC_NATIVE_FRAMEWORK_RECIPES, NATIVE_STATIC_LIBRARY_RECIPES;
107617
+ var import_node_child_process52, import_node_crypto66, import_node_fs111, import_node_path113, WEBRTC_NATIVE_FRAMEWORK, SIGNAL_WEBRTC_NATIVE_FRAMEWORK, WEBRTC_NATIVE_FRAMEWORK_RECIPES, NATIVE_STATIC_LIBRARY_RECIPES;
107599
107618
  var init_native_static_libraries = __esm({
107600
107619
  "src/native-static-libraries.ts"() {
107601
107620
  "use strict";
107602
107621
  import_node_child_process52 = require("node:child_process");
107603
- import_node_crypto67 = require("node:crypto");
107622
+ import_node_crypto66 = require("node:crypto");
107604
107623
  import_node_fs111 = __toESM(require("node:fs"), 1);
107605
107624
  import_node_path113 = __toESM(require("node:path"), 1);
107606
107625
  init_home_paths();
@@ -108212,13 +108231,13 @@ var init_swift_wasm64_wamr = __esm({
108212
108231
 
108213
108232
  // src/swift-wasm64-native-source.ts
108214
108233
  function deriveSource(file, bytes, backport) {
108215
- if (!backport || (0, import_node_crypto68.createHash)("sha256").update(bytes).digest("hex") !== backport.originalSha256)
108234
+ if (!backport || (0, import_node_crypto67.createHash)("sha256").update(bytes).digest("hex") !== backport.originalSha256)
108216
108235
  return null;
108217
108236
  const source = bytes.toString("utf8");
108218
108237
  const derived = Buffer.from(
108219
108238
  "rewrite" in backport ? backport.rewrite(source) : source.replace(backport.before, backport.after)
108220
108239
  );
108221
- if ((0, import_node_crypto68.createHash)("sha256").update(derived).digest("hex") !== backport.derivedSha256)
108240
+ if ((0, import_node_crypto67.createHash)("sha256").update(derived).digest("hex") !== backport.derivedSha256)
108222
108241
  throw new Error(`Native source derivation differs: ${file}`);
108223
108242
  return {
108224
108243
  bytes: derived,
@@ -108237,11 +108256,11 @@ function deriveWasm64NativeSource(file, bytes) {
108237
108256
  sourceDerivations.get(name3) ?? headerDerivations.get(name3)
108238
108257
  );
108239
108258
  }
108240
- var import_node_crypto68, import_node_path115, webrtcUnknownArchitecture, boringsslWordSize2, wamrCommit, headerDerivations, sourceDerivations;
108259
+ var import_node_crypto67, import_node_path115, webrtcUnknownArchitecture, boringsslWordSize2, wamrCommit, headerDerivations, sourceDerivations;
108241
108260
  var init_swift_wasm64_native_source = __esm({
108242
108261
  "src/swift-wasm64-native-source.ts"() {
108243
108262
  "use strict";
108244
- import_node_crypto68 = require("node:crypto");
108263
+ import_node_crypto67 = require("node:crypto");
108245
108264
  import_node_path115 = __toESM(require("node:path"), 1);
108246
108265
  init_swift_wasm64_wamr();
108247
108266
  init_swiftWasm64ConfigContract();
@@ -108701,7 +108720,7 @@ var init_genrule_library_builds = __esm({
108701
108720
  function nativeFrameworkCompiler(moduleRoot, toolchainBin, directory2) {
108702
108721
  const distribution = swiftDistributionAt(moduleRoot);
108703
108722
  const sdk2 = swiftSdkPaths(moduleRoot, toolchainBin);
108704
- const identity2 = (0, import_node_crypto69.createHash)("sha256").update(
108723
+ const identity2 = (0, import_node_crypto68.createHash)("sha256").update(
108705
108724
  JSON.stringify([
108706
108725
  distribution?.id,
108707
108726
  distribution?.link,
@@ -108727,7 +108746,7 @@ function nativeFrameworkCompiler(moduleRoot, toolchainBin, directory2) {
108727
108746
  for (const alias of product.frameworkAliases) {
108728
108747
  if (alias.wasmSdkId !== distribution.wasmSdkId || alias.wasmSdkChecksum !== distribution.wasmSdkChecksum)
108729
108748
  throw new Error(`framework SDK identity differs for ${alias.name}`);
108730
- if ((0, import_node_crypto69.createHash)("sha256").update(import_node_fs114.default.readFileSync(import_node_path117.default.join(moduleRoot, alias.moduleMap))).digest("hex") !== alias.moduleMapSha256)
108749
+ if ((0, import_node_crypto68.createHash)("sha256").update(import_node_fs114.default.readFileSync(import_node_path117.default.join(moduleRoot, alias.moduleMap))).digest("hex") !== alias.moduleMapSha256)
108731
108750
  throw new Error(`framework module map changed ${alias.moduleMap}`);
108732
108751
  const selected = /* @__PURE__ */ new Set();
108733
108752
  const reach = (name3) => {
@@ -108768,7 +108787,7 @@ function nativeFrameworkCompiler(moduleRoot, toolchainBin, directory2) {
108768
108787
  for (const alias of owner.frameworkAliases) {
108769
108788
  if (frameworkResponses[alias.name])
108770
108789
  throw new Error(`ambiguous declared framework ${alias.name}`);
108771
- if ((0, import_node_crypto69.createHash)("sha256").update(import_node_fs114.default.readFileSync(import_node_path117.default.join(sdkRoot, alias.moduleMap))).digest("hex") !== alias.moduleMapSha256)
108790
+ if ((0, import_node_crypto68.createHash)("sha256").update(import_node_fs114.default.readFileSync(import_node_path117.default.join(sdkRoot, alias.moduleMap))).digest("hex") !== alias.moduleMapSha256)
108772
108791
  throw new Error(`framework module map changed ${alias.moduleMap}`);
108773
108792
  const file = import_node_path117.default.join(root, `${alias.name}.rsp`);
108774
108793
  import_node_fs114.default.writeFileSync(file, aliasArtifacts.map(quote3).join("\n") + "\n");
@@ -108862,11 +108881,11 @@ exec ${shellQuote2(configuration2.compiler)} "$@"
108862
108881
  };
108863
108882
  return { cc: compiler("clang"), cxx: compiler("clang++"), identity: identity2 };
108864
108883
  }
108865
- var import_node_crypto69, import_node_fs114, import_node_path117, v7;
108884
+ var import_node_crypto68, import_node_fs114, import_node_path117, v7;
108866
108885
  var init_native_framework_compiler = __esm({
108867
108886
  "src/native-framework-compiler.ts"() {
108868
108887
  "use strict";
108869
- import_node_crypto69 = require("node:crypto");
108888
+ import_node_crypto68 = require("node:crypto");
108870
108889
  import_node_fs114 = __toESM(require("node:fs"), 1);
108871
108890
  import_node_path117 = __toESM(require("node:path"), 1);
108872
108891
  v7 = __toESM(require("peachsim/vendor/valibot"), 1);
@@ -108887,7 +108906,7 @@ function processAlive(pid) {
108887
108906
  }
108888
108907
  function tryAcquireNumberedLock(directory2, detail = "") {
108889
108908
  (0, import_node_fs115.mkdirSync)(directory2, { recursive: true });
108890
- const claim = (0, import_node_path118.join)(directory2, `claim-${process.pid}-${(0, import_node_crypto70.randomUUID)()}`);
108909
+ const claim = (0, import_node_path118.join)(directory2, `claim-${process.pid}-${(0, import_node_crypto69.randomUUID)()}`);
108891
108910
  for (; ; ) {
108892
108911
  const numbers = (0, import_node_fs115.readdirSync)(directory2).filter((name3) => /^\d+$/.test(name3)).map(Number);
108893
108912
  const top = Math.max(-1, ...numbers);
@@ -108926,11 +108945,11 @@ ${detail}` : ""}`);
108926
108945
  };
108927
108946
  }
108928
108947
  }
108929
- var import_node_crypto70, import_node_fs115, import_node_path118, errorCode2;
108948
+ var import_node_crypto69, import_node_fs115, import_node_path118, errorCode2;
108930
108949
  var init_numbered_lock = __esm({
108931
108950
  "src/numbered-lock.ts"() {
108932
108951
  "use strict";
108933
- import_node_crypto70 = require("node:crypto");
108952
+ import_node_crypto69 = require("node:crypto");
108934
108953
  import_node_fs115 = require("node:fs");
108935
108954
  import_node_path118 = require("node:path");
108936
108955
  errorCode2 = (error) => error instanceof Error && "code" in error ? error.code : void 0;
@@ -108957,7 +108976,7 @@ function llvmIdentity(toolchainBin, release) {
108957
108976
  ] : ["clang", "wasm-ld", "llvm-ar", "llvm-nm", "llvm-strip"].map(
108958
108977
  (name3) => swiftFileChecksum(import_node_path119.default.join(toolchainBin, name3))
108959
108978
  );
108960
- const identity2 = (0, import_node_crypto71.createHash)("sha256").update(JSON.stringify(components)).digest("hex");
108979
+ const identity2 = (0, import_node_crypto70.createHash)("sha256").update(JSON.stringify(components)).digest("hex");
108961
108980
  toolIdentities.set(toolchainBin, identity2);
108962
108981
  return identity2;
108963
108982
  }
@@ -108965,7 +108984,7 @@ function cSdkIdentity(sysroot, resourceDir, frameworks) {
108965
108984
  const key2 = JSON.stringify([sysroot, resourceDir, frameworks]);
108966
108985
  const cached5 = sysrootIdentities.get(key2);
108967
108986
  if (cached5) return cached5;
108968
- const hash = (0, import_node_crypto71.createHash)("sha256");
108987
+ const hash = (0, import_node_crypto70.createHash)("sha256");
108969
108988
  const add2 = (root, relative8) => {
108970
108989
  const file = import_node_path119.default.join(root, relative8);
108971
108990
  const stat2 = import_node_fs116.default.statSync(file, { throwIfNoEntry: false });
@@ -109000,7 +109019,7 @@ function frameworkProbeIdentity(moduleRoot, toolchainBin) {
109000
109019
  import_node_fs116.default.readFileSync(import_node_path119.default.join(moduleRoot, SWIFT_FRAMEWORK_PRODUCT_FILE), "utf8")
109001
109020
  )
109002
109021
  );
109003
- const hash = (0, import_node_crypto71.createHash)("sha256").update(
109022
+ const hash = (0, import_node_crypto70.createHash)("sha256").update(
109004
109023
  JSON.stringify([
109005
109024
  headers,
109006
109025
  distribution.link,
@@ -109010,7 +109029,7 @@ function frameworkProbeIdentity(moduleRoot, toolchainBin) {
109010
109029
  ])
109011
109030
  );
109012
109031
  const objects = distribution.objects.map((file) => [file, distribution.files[file]]);
109013
- const objectKey = (0, import_node_crypto71.createHash)("sha256").update(JSON.stringify(objects)).digest("hex");
109032
+ const objectKey = (0, import_node_crypto70.createHash)("sha256").update(JSON.stringify(objects)).digest("hex");
109014
109033
  const cache = import_node_path119.default.join(cacheDir4, "framework-symbols-by-object", objectKey);
109015
109034
  if (!import_node_fs116.default.existsSync(cache)) {
109016
109035
  import_node_fs116.default.mkdirSync(import_node_path119.default.dirname(cache), { recursive: true });
@@ -109045,7 +109064,7 @@ function frameworkProbeIdentity(moduleRoot, toolchainBin) {
109045
109064
  const digest3 = import_node_path119.default.join(temporary, "digest");
109046
109065
  import_node_fs116.default.writeFileSync(
109047
109066
  digest3,
109048
- (0, import_node_crypto71.createHash)("sha256").update(symbols.sort().join("\n")).digest("hex")
109067
+ (0, import_node_crypto70.createHash)("sha256").update(symbols.sort().join("\n")).digest("hex")
109049
109068
  );
109050
109069
  import_node_fs116.default.renameSync(digest3, cache);
109051
109070
  } finally {
@@ -109100,7 +109119,7 @@ function buildable(declaration) {
109100
109119
  return builderOf(declaration) !== null && declaration.dependencies.every(buildable);
109101
109120
  }
109102
109121
  function declarationInputs(declaration, builder, toolchain, dependencyKeys) {
109103
- const hash = (0, import_node_crypto71.createHash)("sha256");
109122
+ const hash = (0, import_node_crypto70.createHash)("sha256");
109104
109123
  const files2 = declaration.sources.filter(
109105
109124
  (source) => !source.generator && !source.file.split(import_node_path119.default.sep).includes(".git")
109106
109125
  ).map((source) => import_node_path119.default.relative(declaration.packageDir, source.file));
@@ -109234,12 +109253,12 @@ function genruleArchive(declaration, library, moduleRoot) {
109234
109253
  }
109235
109254
  return combined;
109236
109255
  }
109237
- var import_node_child_process55, import_node_crypto71, import_node_fs116, import_node_os24, import_node_path119, v8, BUILDERS, cacheDir4, toolIdentities, sysrootIdentities, GENRULE_RECIPE, GENRULE_BUNDLE;
109256
+ var import_node_child_process55, import_node_crypto70, import_node_fs116, import_node_os24, import_node_path119, v8, BUILDERS, cacheDir4, toolIdentities, sysrootIdentities, GENRULE_RECIPE, GENRULE_BUNDLE;
109238
109257
  var init_genrule_archives = __esm({
109239
109258
  "src/genrule-archives.ts"() {
109240
109259
  "use strict";
109241
109260
  import_node_child_process55 = require("node:child_process");
109242
- import_node_crypto71 = require("node:crypto");
109261
+ import_node_crypto70 = require("node:crypto");
109243
109262
  import_node_fs116 = __toESM(require("node:fs"), 1);
109244
109263
  import_node_os24 = __toESM(require("node:os"), 1);
109245
109264
  import_node_path119 = __toESM(require("node:path"), 1);
@@ -109347,7 +109366,7 @@ function privateSentrySlice(entry, moduleRoot) {
109347
109366
  function nativeSwiftSlice(standin, moduleRoot, generator, configured, artifact) {
109348
109367
  if (standin.module !== SENTRY_SWIFT_SLICE.name) return standin;
109349
109368
  const native = simulatorNativeLibrary(artifact());
109350
- if (!native || (0, import_node_crypto72.createHash)("sha256").update(import_node_fs117.default.readFileSync(native.file)).digest("hex") !== SENTRY_SWIFT_SLICE.nativeSha256)
109369
+ if (!native || (0, import_node_crypto71.createHash)("sha256").update(import_node_fs117.default.readFileSync(native.file)).digest("hex") !== SENTRY_SWIFT_SLICE.nativeSha256)
109351
109370
  return standin;
109352
109371
  if (configured)
109353
109372
  throw new Error(
@@ -109405,12 +109424,12 @@ function nativeSwiftSlice(standin, moduleRoot, generator, configured, artifact)
109405
109424
  }
109406
109425
  };
109407
109426
  }
109408
- var import_node_child_process56, import_node_crypto72, import_node_fs117, import_node_os25, import_node_path120, SENTRY_SWIFT_SLICE;
109427
+ var import_node_child_process56, import_node_crypto71, import_node_fs117, import_node_os25, import_node_path120, SENTRY_SWIFT_SLICE;
109409
109428
  var init_native_swift_slices = __esm({
109410
109429
  "src/native-swift-slices.ts"() {
109411
109430
  "use strict";
109412
109431
  import_node_child_process56 = require("node:child_process");
109413
- import_node_crypto72 = require("node:crypto");
109432
+ import_node_crypto71 = require("node:crypto");
109414
109433
  import_node_fs117 = __toESM(require("node:fs"), 1);
109415
109434
  import_node_os25 = __toESM(require("node:os"), 1);
109416
109435
  import_node_path120 = __toESM(require("node:path"), 1);
@@ -110218,7 +110237,7 @@ function treeDigest2(root) {
110218
110237
  }).join("\n");
110219
110238
  const memo2 = digests.get(`tree\0${root}`);
110220
110239
  if (memo2?.stamp === stamp) return memo2.digest;
110221
- const hash = (0, import_node_crypto73.createHash)("sha256");
110240
+ const hash = (0, import_node_crypto72.createHash)("sha256");
110222
110241
  for (const name3 of names) {
110223
110242
  hash.update(`${name3}\0`);
110224
110243
  hash.update(import_node_fs121.default.readFileSync(import_node_path123.default.join(root, name3)));
@@ -110265,7 +110284,7 @@ function swiftBinaryFramework(binary2) {
110265
110284
  const found4 = locateXcframework(import_node_path123.default.join(dir, "tree"));
110266
110285
  if (found4) return { dir: found4, digest: stored.sha };
110267
110286
  }
110268
- const sha2 = (0, import_node_crypto73.createHash)("sha256").update(import_node_fs121.default.readFileSync(binary2.dir)).digest("hex");
110287
+ const sha2 = (0, import_node_crypto72.createHash)("sha256").update(import_node_fs121.default.readFileSync(binary2.dir)).digest("hex");
110269
110288
  if (sha2 !== stored?.sha || !locateXcframework(import_node_path123.default.join(dir, "tree"))) {
110270
110289
  import_node_fs121.default.rmSync(dir, { recursive: true, force: true });
110271
110290
  import_node_fs121.default.mkdirSync(import_node_path123.default.join(dir, "tree"), { recursive: true });
@@ -110277,7 +110296,7 @@ function swiftBinaryFramework(binary2) {
110277
110296
  return { dir: found3, digest: sha2 };
110278
110297
  }
110279
110298
  if (stored && import_node_fs121.default.existsSync(archive)) {
110280
- const sha2 = (0, import_node_crypto73.createHash)("sha256").update(import_node_fs121.default.readFileSync(archive)).digest("hex");
110299
+ const sha2 = (0, import_node_crypto72.createHash)("sha256").update(import_node_fs121.default.readFileSync(archive)).digest("hex");
110281
110300
  if (sha2 !== expected)
110282
110301
  throw new Error(`archive checksum ${sha2} is not the declared checksum ${expected}`);
110283
110302
  const found3 = locateXcframework(import_node_path123.default.join(dir, "tree"));
@@ -110286,7 +110305,7 @@ function swiftBinaryFramework(binary2) {
110286
110305
  import_node_fs121.default.rmSync(dir, { recursive: true, force: true });
110287
110306
  import_node_fs121.default.mkdirSync(import_node_path123.default.join(dir, "tree"), { recursive: true });
110288
110307
  exec("curl", ["-fsSL", "--retry", "2", "-o", archive, binary2.url]);
110289
- const sha = (0, import_node_crypto73.createHash)("sha256").update(import_node_fs121.default.readFileSync(archive)).digest("hex");
110308
+ const sha = (0, import_node_crypto72.createHash)("sha256").update(import_node_fs121.default.readFileSync(archive)).digest("hex");
110290
110309
  if (sha !== expected) {
110291
110310
  import_node_fs121.default.rmSync(dir, { recursive: true, force: true });
110292
110311
  throw new Error(`archive checksum ${sha} is not the declared checksum ${expected}`);
@@ -110411,7 +110430,7 @@ function binaryHeaderSearchPaths(binary2, root, workspaceRoot2, declaredFramewor
110411
110430
  });
110412
110431
  }
110413
110432
  }
110414
- const declaredDigest = (0, import_node_crypto73.createHash)("sha256");
110433
+ const declaredDigest = (0, import_node_crypto72.createHash)("sha256");
110415
110434
  for (const framework of providedFrameworks)
110416
110435
  declaredDigest.update(`provided/${import_node_path123.default.relative(artifact.dir, framework)}\0`);
110417
110436
  for (const [framework, { declared: names, imports: imports2, sdkHeader }] of declared)
@@ -110481,7 +110500,7 @@ function binaryHeaderSearchPaths(binary2, root, workspaceRoot2, declaredFramewor
110481
110500
  import_node_fs121.default.copyFileSync(surface.modulemap, modulemap);
110482
110501
  }
110483
110502
  }
110484
- const contents2 = (0, import_node_crypto73.createHash)("sha256");
110503
+ const contents2 = (0, import_node_crypto72.createHash)("sha256");
110485
110504
  for (const framework of providedFrameworks.filter((item) => !declared.has(item))) {
110486
110505
  const modulemap = import_node_path123.default.join(
110487
110506
  pending2,
@@ -111896,7 +111915,7 @@ function crateSourceRoots(manifest, searchRoot) {
111896
111915
  return roots;
111897
111916
  }
111898
111917
  function crateSourceDigest(manifest, searchRoot) {
111899
- const hash = (0, import_node_crypto73.createHash)("sha256");
111918
+ const hash = (0, import_node_crypto72.createHash)("sha256");
111900
111919
  const walk4 = (dir, root) => {
111901
111920
  for (const entry of import_node_fs121.default.readdirSync(dir, { withFileTypes: true }).sort((left, right) => left.name < right.name ? -1 : 1)) {
111902
111921
  const full = import_node_path123.default.join(dir, entry.name);
@@ -112343,7 +112362,7 @@ function standinGenerationInputs(binaries, toolchain, configuredBehavior = {}, s
112343
112362
  ...swiftSources.flags,
112344
112363
  ...swiftSources.sources.flatMap((source) => [
112345
112364
  source,
112346
- (0, import_node_crypto73.createHash)("sha256").update(import_node_fs121.default.readFileSync(import_node_path123.default.join(binary2.dir, source))).digest("hex")
112365
+ (0, import_node_crypto72.createHash)("sha256").update(import_node_fs121.default.readFileSync(import_node_path123.default.join(binary2.dir, source))).digest("hex")
112347
112366
  ])
112348
112367
  );
112349
112368
  continue;
@@ -112379,7 +112398,7 @@ function standinGenerationInputs(binaries, toolchain, configuredBehavior = {}, s
112379
112398
  );
112380
112399
  }
112381
112400
  }
112382
- return (0, import_node_crypto73.createHash)("sha256").update(parts2.join("\0")).digest("hex");
112401
+ return (0, import_node_crypto72.createHash)("sha256").update(parts2.join("\0")).digest("hex");
112383
112402
  }
112384
112403
  function missingArtifactGap(binary2) {
112385
112404
  if (swiftBinaryOnDisk(binary2)) return null;
@@ -112461,7 +112480,7 @@ ${roots.map((file) => ` header "${file}"`).join("\n")}
112461
112480
  return NO_IMPORTABLE_SURFACE;
112462
112481
  }
112463
112482
  const configured = new Map(Object.entries(behavior));
112464
- const hash = (0, import_node_crypto73.createHash)("sha256").update(
112483
+ const hash = (0, import_node_crypto72.createHash)("sha256").update(
112465
112484
  standinGenerationInputs([binary2], toolchain, behavior)
112466
112485
  );
112467
112486
  hash.update(digest3);
@@ -112701,7 +112720,7 @@ async function buildStandins(binaries, toolchain, provided, behavior) {
112701
112720
  );
112702
112721
  if (binary2.moduleSources !== void 0)
112703
112722
  frameworkInputs.push(
112704
- `${binary2.target}\0${(0, import_node_crypto73.createHash)("sha256").update(
112723
+ `${binary2.target}\0${(0, import_node_crypto72.createHash)("sha256").update(
112705
112724
  [iosSdkId(), ...swiftSources.flags, ...swiftSources.sources, ...texts].join(
112706
112725
  "\0"
112707
112726
  )
@@ -112742,7 +112761,7 @@ async function buildStandins(binaries, toolchain, provided, behavior) {
112742
112761
  import_node_fs121.default.mkdirSync(sourceFrameworks);
112743
112762
  const frameworks = {
112744
112763
  dirs: [...frameworkDirs, sourceFrameworks].sort(),
112745
- digest: (0, import_node_crypto73.createHash)("sha256").update(frameworkInputs.sort().join("\0")).digest("hex"),
112764
+ digest: (0, import_node_crypto72.createHash)("sha256").update(frameworkInputs.sort().join("\0")).digest("hex"),
112746
112765
  surfaces: frameworkSurfaces
112747
112766
  };
112748
112767
  const siblings = new Map(
@@ -112861,12 +112880,12 @@ async function buildStandins(binaries, toolchain, provided, behavior) {
112861
112880
  import_node_fs121.default.rmSync(modules, { recursive: true, force: true });
112862
112881
  }
112863
112882
  }
112864
- var import_node_child_process58, import_node_crypto73, import_node_fs121, import_node_path123, TRIPLE, cacheDir5, key, digests, isBinaryLibraryFile, OBJC_IMPORT, files, OBJC, NO_IMPORTABLE_SURFACE, OBJC_ATTRIBUTE, TYPE_DECLARATION, OPTIONAL_REQUIREMENT, WASM_EH_FLAGS, OBJC_UNREPRESENTABLE, INERT_VALUE, identChar, RUST_TARGET, UNSEARCHED, RUST_TOOLCHAIN, built;
112883
+ var import_node_child_process58, import_node_crypto72, import_node_fs121, import_node_path123, TRIPLE, cacheDir5, key, digests, isBinaryLibraryFile, OBJC_IMPORT, files, OBJC, NO_IMPORTABLE_SURFACE, OBJC_ATTRIBUTE, TYPE_DECLARATION, OPTIONAL_REQUIREMENT, WASM_EH_FLAGS, OBJC_UNREPRESENTABLE, INERT_VALUE, identChar, RUST_TARGET, UNSEARCHED, RUST_TOOLCHAIN, built;
112865
112884
  var init_swift_standins = __esm({
112866
112885
  "src/swift-standins.ts"() {
112867
112886
  "use strict";
112868
112887
  import_node_child_process58 = require("node:child_process");
112869
- import_node_crypto73 = require("node:crypto");
112888
+ import_node_crypto72 = require("node:crypto");
112870
112889
  import_node_fs121 = __toESM(require("node:fs"), 1);
112871
112890
  import_node_path123 = __toESM(require("node:path"), 1);
112872
112891
  init_forked_script_contract();
@@ -112896,7 +112915,7 @@ var init_swift_standins = __esm({
112896
112915
  init_swiftTargetContract();
112897
112916
  TRIPLE = SWIFT_WASM_TRIPLE;
112898
112917
  cacheDir5 = import_node_path123.default.join(cacheDir(), "swift-standins");
112899
- key = (...parts2) => (0, import_node_crypto73.createHash)("sha256").update(parts2.join("\0")).digest("hex").slice(0, 32);
112918
+ key = (...parts2) => (0, import_node_crypto72.createHash)("sha256").update(parts2.join("\0")).digest("hex").slice(0, 32);
112900
112919
  digests = /* @__PURE__ */ new Map();
112901
112920
  isBinaryLibraryFile = (file) => /\.(?:a|dylib|o|tbd)$/i.test(file);
112902
112921
  OBJC_IMPORT = /#\s*(?:import|include)\s*[<"](?:[\w+-]+\/)?([\w+.-]+\.h)[>"]/g;
@@ -113056,11 +113075,6 @@ function compiledFrameworkImports(app, products) {
113056
113075
  }
113057
113076
  return imports2;
113058
113077
  }
113059
- function sha256Hex6(bytes) {
113060
- if (typeof Bun !== "undefined")
113061
- return new Bun.CryptoHasher("sha256").update(bytes).digest("hex");
113062
- return (0, import_node_crypto74.createHash)("sha256").update(bytes).digest("hex");
113063
- }
113064
113078
  function regularFileStamp(file) {
113065
113079
  const stat2 = import_node_fs122.default.lstatSync(file, { bigint: true, throwIfNoEntry: false });
113066
113080
  if (!stat2 || !stat2.isFile()) return null;
@@ -113074,7 +113088,7 @@ function verifyRetainedFile(work, file, hash, stamps) {
113074
113088
  if (typeof expectedStamp === "string" && regularFileStamp(resolved) === expectedStamp)
113075
113089
  return true;
113076
113090
  if (!import_node_fs122.default.existsSync(resolved)) return false;
113077
- return sha256Hex6(readPackageFile(work, resolved, Infinity)) === hash;
113091
+ return sha256Hex2(readPackageFile(work, resolved, Infinity)) === hash;
113078
113092
  }
113079
113093
  function recordRetainedStamps(work, files2) {
113080
113094
  const stamps = {};
@@ -113091,7 +113105,7 @@ function cachedBinaryFileDigest(file) {
113091
113105
  const memory = binaryFileDigests.get(real);
113092
113106
  if (memory?.stamp === stamp) return memory.digest;
113093
113107
  const dir = import_node_path124.default.join(swiftCacheDir(), "swift-binary-digests");
113094
- const record6 = import_node_path124.default.join(dir, `${sha256Hex6(real)}.json`);
113108
+ const record6 = import_node_path124.default.join(dir, `${sha256Hex2(real)}.json`);
113095
113109
  if (import_node_fs122.default.existsSync(record6)) {
113096
113110
  const saved = JSON.parse(import_node_fs122.default.readFileSync(record6, "utf8"));
113097
113111
  if (isRecord(saved) && saved.stamp === stamp && typeof saved.digest === "string") {
@@ -113099,10 +113113,10 @@ function cachedBinaryFileDigest(file) {
113099
113113
  return saved.digest;
113100
113114
  }
113101
113115
  }
113102
- const digest3 = sha256Hex6(import_node_fs122.default.readFileSync(real));
113116
+ const digest3 = sha256Hex2(import_node_fs122.default.readFileSync(real));
113103
113117
  binaryFileDigests.set(real, { stamp, digest: digest3 });
113104
113118
  import_node_fs122.default.mkdirSync(dir, { recursive: true });
113105
- const partial = `${record6}.${process.pid}.${(0, import_node_crypto74.randomUUID)()}`;
113119
+ const partial = `${record6}.${process.pid}.${(0, import_node_crypto73.randomUUID)()}`;
113106
113120
  import_node_fs122.default.writeFileSync(partial, JSON.stringify({ stamp, digest: digest3 }));
113107
113121
  import_node_fs122.default.renameSync(partial, record6);
113108
113122
  return digest3;
@@ -113640,7 +113654,7 @@ function prepareXcodeSwiftProducts(app, binaries, moduleRoot) {
113640
113654
  const staged = withFrameworkCompanionImports(original);
113641
113655
  if (staged !== original) sources.set(file, Buffer.from(staged));
113642
113656
  }
113643
- const digest3 = sha256Hex6;
113657
+ const digest3 = sha256Hex2;
113644
113658
  const providers = /* @__PURE__ */ new Map();
113645
113659
  for (const target of targets) {
113646
113660
  if (!supplied.has(target.moduleName)) continue;
@@ -113996,7 +114010,7 @@ async function prepareXcodeNativeInputs(app, binaries, moduleRoot, purpose) {
113996
114010
  products
113997
114011
  );
113998
114012
  const checkouts = remoteSwiftCheckouts(app.rootDir);
113999
- const digest3 = sha256Hex6;
114013
+ const digest3 = sha256Hex2;
114000
114014
  const inputs2 = Object.fromEntries(
114001
114015
  [...sources].map(([file, bytes]) => [file, digest3(bytes)])
114002
114016
  );
@@ -114378,16 +114392,17 @@ ${reported.trimEnd() || `Clang exited with status ${result.status}`}`;
114378
114392
  import_node_fs122.default.closeSync(descriptor);
114379
114393
  }
114380
114394
  }
114381
- var import_node_child_process59, import_node_crypto74, import_node_fs122, import_node_path124, SwiftObjCCompilationError, isDirectory4, isSdkInclude, FRAMEWORK_IMPORT, OWN_IMPORT, binaryFileDigests, objcInputSnapshots;
114395
+ var import_node_child_process59, import_node_crypto73, import_node_fs122, import_node_path124, SwiftObjCCompilationError, isDirectory4, isSdkInclude, FRAMEWORK_IMPORT, OWN_IMPORT, binaryFileDigests, objcInputSnapshots;
114382
114396
  var init_swift_objc_compile = __esm({
114383
114397
  "src/swift-objc-compile.ts"() {
114384
114398
  "use strict";
114385
114399
  import_node_child_process59 = require("node:child_process");
114386
- import_node_crypto74 = require("node:crypto");
114400
+ import_node_crypto73 = require("node:crypto");
114387
114401
  import_node_fs122 = __toESM(require("node:fs"), 1);
114388
114402
  import_node_path124 = __toESM(require("node:path"), 1);
114389
114403
  init_mapLimit();
114390
114404
  init_is_record();
114405
+ init_sha256();
114391
114406
  init_swift_objc_import();
114392
114407
  init_swift_objc_runtime();
114393
114408
  init_swift_objc_standin();
@@ -118473,19 +118488,19 @@ function u32(value) {
118473
118488
  }
118474
118489
  function propertyHash(property2) {
118475
118490
  const transient = property2.kind === "attribute" && property2.transient;
118476
- const base2 = sha2563(
118491
+ const base2 = sha2562(
118477
118492
  property2.name,
118478
118493
  [(property2.optional ? 1 : 0) | (transient ? 2 : 0), 0],
118479
118494
  property2.modifier ?? ""
118480
118495
  );
118481
118496
  if (property2.kind === "attribute")
118482
- return sha2563(
118497
+ return sha2562(
118483
118498
  base2,
118484
118499
  u32(property2.type),
118485
118500
  property2.type === 1e3 && property2.flags & EXTERNAL_BINARY ? [1] : [],
118486
118501
  property2.flags & PRESERVE_AFTER_DELETION ? [1] : []
118487
118502
  );
118488
- return sha2563(
118503
+ return sha2562(
118489
118504
  base2,
118490
118505
  property2.destination,
118491
118506
  property2.inverse ?? "",
@@ -118500,7 +118515,7 @@ function entityHashes(model) {
118500
118515
  ...item.parent === null ? [] : allProperties(byName2.get(item.parent)),
118501
118516
  ...item.properties
118502
118517
  ];
118503
- const hash = (item) => sha2563(
118518
+ const hash = (item) => sha2562(
118504
118519
  item.name,
118505
118520
  [item.abstract ? 1 : 0],
118506
118521
  item.parent === null ? [] : hash(byName2.get(item.parent)),
@@ -118528,7 +118543,7 @@ function compileCoreDataModel(directory2) {
118528
118543
  files2[`${name3}.momd/${version2}.mom`] = archiveModel(model);
118529
118544
  const entities = entityHashes(model);
118530
118545
  hashes[version2] = Object.fromEntries(entities);
118531
- checksums[version2] = sha2563(...entities.map(([, hash]) => hash)).toString("base64");
118546
+ checksums[version2] = sha2562(...entities.map(([, hash]) => hash)).toString("base64");
118532
118547
  }
118533
118548
  const named = (0, import_node_fs126.existsSync)(import_node_path128.default.join(directory2, ".xccurrentversion")) ? {
118534
118549
  NSManagedObjectModel_CurrentVersionName: import_node_path128.default.basename(
@@ -118551,11 +118566,11 @@ function coreDataModelDirectories(files2) {
118551
118566
  }
118552
118567
  return [...models].sort();
118553
118568
  }
118554
- var import_node_crypto75, import_node_fs126, import_node_path128, attributeTypes, deleteRules, EXTERNAL_BINARY, PRESERVE_AFTER_DELETION, yes, common, uid, NULL, classChains, KeyedArchive, sha2563;
118569
+ var import_node_crypto74, import_node_fs126, import_node_path128, attributeTypes, deleteRules, EXTERNAL_BINARY, PRESERVE_AFTER_DELETION, yes, common, uid, NULL, classChains, KeyedArchive, sha2562;
118555
118570
  var init_core_data_model = __esm({
118556
118571
  "src/core-data-model.ts"() {
118557
118572
  "use strict";
118558
- import_node_crypto75 = require("node:crypto");
118573
+ import_node_crypto74 = require("node:crypto");
118559
118574
  import_node_fs126 = require("node:fs");
118560
118575
  import_node_path128 = __toESM(require("node:path"), 1);
118561
118576
  init_core_data_entity_classes();
@@ -118674,7 +118689,7 @@ var init_core_data_model = __esm({
118674
118689
  });
118675
118690
  }
118676
118691
  };
118677
- sha2563 = (...parts2) => (0, import_node_crypto75.createHash)("sha256").update(
118692
+ sha2562 = (...parts2) => (0, import_node_crypto74.createHash)("sha256").update(
118678
118693
  Buffer.concat(
118679
118694
  parts2.map(
118680
118695
  (part) => Array.isArray(part) ? Buffer.from(part) : Buffer.from(part)
@@ -120866,7 +120881,7 @@ async function buildRiveRuntimeDependencies(checkout, moduleRoot) {
120866
120881
  ];
120867
120882
  const objc = [...swiftObjCRuntimeFlags, "-fobjc-exceptions"];
120868
120883
  const xcode = (0, import_node_child_process61.execFileSync)("xcodebuild", ["-version"], { encoding: "utf8" });
120869
- const key2 = (0, import_node_crypto76.createHash)("sha256").update(
120884
+ const key2 = (0, import_node_crypto75.createHash)("sha256").update(
120870
120885
  JSON.stringify([
120871
120886
  RECIPE,
120872
120887
  (0, import_node_child_process61.execFileSync)("git", ["-C", runtime, "rev-parse", "HEAD"], {
@@ -121077,12 +121092,12 @@ exec ${quote3(import_node_path129.default.join(toolchainBin, "llvm-ar"))} rcs "$
121077
121092
  );
121078
121093
  return directory2;
121079
121094
  }
121080
- var import_node_child_process61, import_node_crypto76, import_node_fs127, import_node_os26, import_node_path129, import_promises15, RECIPE, CONFIG, RUNTIME_LIBRARIES;
121095
+ var import_node_child_process61, import_node_crypto75, import_node_fs127, import_node_os26, import_node_path129, import_promises15, RECIPE, CONFIG, RUNTIME_LIBRARIES;
121081
121096
  var init_rive_runtime_dependencies = __esm({
121082
121097
  "src/rive-runtime-dependencies.ts"() {
121083
121098
  "use strict";
121084
121099
  import_node_child_process61 = require("node:child_process");
121085
- import_node_crypto76 = require("node:crypto");
121100
+ import_node_crypto75 = require("node:crypto");
121086
121101
  import_node_fs127 = __toESM(require("node:fs"), 1);
121087
121102
  import_node_os26 = __toESM(require("node:os"), 1);
121088
121103
  import_node_path129 = __toESM(require("node:path"), 1);
@@ -121939,7 +121954,7 @@ async function xcodeCxxReachable(app, binaries, moduleRoot, clang) {
121939
121954
  (binary2) => binary2.publicHeaders === void 0 && binary2.placeholder === void 0 && swiftBinaryOnDisk(binary2) && binaryHeaderSearchPaths(binary2, staged, app.rootDir).headers.length === 1
121940
121955
  ))
121941
121956
  return [...binaries];
121942
- const hash = (0, import_node_crypto77.createHash)("sha256");
121957
+ const hash = (0, import_node_crypto76.createHash)("sha256");
121943
121958
  hash.update(
121944
121959
  JSON.stringify([
121945
121960
  inputs2.targets,
@@ -122148,12 +122163,12 @@ async function xcodeCxxReachable(app, binaries, moduleRoot, clang) {
122148
122163
  );
122149
122164
  return result;
122150
122165
  }
122151
- var import_node_child_process63, import_node_crypto77, import_node_fs129, import_node_path131, cachedInputs;
122166
+ var import_node_child_process63, import_node_crypto76, import_node_fs129, import_node_path131, cachedInputs;
122152
122167
  var init_swift_cxx_reachable = __esm({
122153
122168
  "src/swift-cxx-reachable.ts"() {
122154
122169
  "use strict";
122155
122170
  import_node_child_process63 = require("node:child_process");
122156
- import_node_crypto77 = require("node:crypto");
122171
+ import_node_crypto76 = require("node:crypto");
122157
122172
  import_node_fs129 = __toESM(require("node:fs"), 1);
122158
122173
  import_node_path131 = __toESM(require("node:path"), 1);
122159
122174
  init_is_record();
@@ -122174,15 +122189,15 @@ function rasterizePdfFiles(inputs2, { imageBytes, imageTotalBytes } = { imageByt
122174
122189
  const pending2 = /* @__PURE__ */ new Map();
122175
122190
  const renderer = process.platform === "darwin" ? "30774891a9db216d" : "pdfium-1";
122176
122191
  const cache = swiftCacheDir();
122177
- const cached5 = (sha2565) => import_node_path132.default.join(cache, `swift-pdf-png-${renderer}-${sha2565}.png`);
122192
+ const cached5 = (sha2564) => import_node_path132.default.join(cache, `swift-pdf-png-${renderer}-${sha2564}.png`);
122178
122193
  let remainingBytes = imageTotalBytes;
122179
- const record6 = ({ file, sha256: sha2565 }, bytes) => {
122194
+ const record6 = ({ file, sha256: sha2564 }, bytes) => {
122180
122195
  if (bytes.length > imageBytes)
122181
122196
  throw new Error(`swift image ${file} raster exceeds the per-image cap`);
122182
122197
  remainingBytes -= bytes.length;
122183
122198
  if (remainingBytes < 0)
122184
122199
  throw new Error("swift image pack exceeds the compile service caps");
122185
- rendered.set(sha2565, bytes);
122200
+ rendered.set(sha2564, bytes);
122186
122201
  };
122187
122202
  for (const input of inputs2) {
122188
122203
  if (rendered.has(input.sha256) || pending2.has(input.sha256)) continue;
@@ -122701,7 +122716,7 @@ function fetchSwiftSdkDataPlan({ url, dataPlan }) {
122701
122716
  if (!response.ok)
122702
122717
  throw new Error(`Swift SDK data plan ${address} answered ${response.status}`);
122703
122718
  const bytes = Buffer.from(await response.arrayBuffer());
122704
- if ((0, import_node_crypto78.createHash)("sha256").update(bytes).digest("hex") !== dataPlan)
122719
+ if ((0, import_node_crypto77.createHash)("sha256").update(bytes).digest("hex") !== dataPlan)
122705
122720
  throw new Error(`Swift SDK data plan ${address} failed its digest check`);
122706
122721
  return bytes;
122707
122722
  });
@@ -122806,7 +122821,7 @@ function splitSwiftSdkLaterData(directory2, binding, plan) {
122806
122821
  encode2(now),
122807
122822
  encodeNativeSdkLater({
122808
122823
  files: later.map((bytes) => ({
122809
- sha256: (0, import_node_crypto78.createHash)("sha256").update(bytes).digest("hex"),
122824
+ sha256: (0, import_node_crypto77.createHash)("sha256").update(bytes).digest("hex"),
122810
122825
  byteLength: bytes.length
122811
122826
  })),
122812
122827
  ...needs && {
@@ -122822,11 +122837,11 @@ function splitSwiftSdkLaterData(directory2, binding, plan) {
122822
122837
  later
122823
122838
  };
122824
122839
  }
122825
- var import_node_crypto78, ADDRESS_REACH, sdkPieces, firstAtOrAfter, pieceAt, LATER_GROUP_BYTES, MAX_LATER_GROUPS, publishedPlans;
122840
+ var import_node_crypto77, ADDRESS_REACH, sdkPieces, firstAtOrAfter, pieceAt, LATER_GROUP_BYTES, MAX_LATER_GROUPS, publishedPlans;
122826
122841
  var init_swift_sdk_later_data = __esm({
122827
122842
  "src/swift-sdk-later-data.ts"() {
122828
122843
  "use strict";
122829
- import_node_crypto78 = require("node:crypto");
122844
+ import_node_crypto77 = require("node:crypto");
122830
122845
  init_nativeSdkBindingContract();
122831
122846
  init_nativeWasmContract();
122832
122847
  init_swift_sdk_image();
@@ -124437,7 +124452,7 @@ async function splitNativeWasm(input, directory2, profile, binaryen, shared, kee
124437
124452
  const part = await guard((0, import_node_path134.join)(directory2, `side-${id}.wasm`), lazy, env);
124438
124453
  const bytes = (0, import_node_fs132.readFileSync)(part.file);
124439
124454
  assertWasmCodeOnly(bytes);
124440
- return { ...part, slots: slots2, sha256: (0, import_node_crypto79.createHash)("sha256").update(bytes).digest("hex") };
124455
+ return { ...part, slots: slots2, sha256: (0, import_node_crypto78.createHash)("sha256").update(bytes).digest("hex") };
124441
124456
  }
124442
124457
  );
124443
124458
  const dyldGroups = parts2.flatMap(
@@ -124462,9 +124477,9 @@ function sealNativeWasmSplit(split2, initialPages) {
124462
124477
  const slotOffset = 4 + split2.sides.length * NATIVE_LAZY_PART_BYTES;
124463
124478
  const inventory = Buffer.alloc(slotOffset + (lastSlot + 1) * 2);
124464
124479
  inventory.writeUInt32LE(split2.sides.length, 0);
124465
- for (const [id, { sha256: sha2565, byteLength, slots }] of split2.sides.entries()) {
124480
+ for (const [id, { sha256: sha2564, byteLength, slots }] of split2.sides.entries()) {
124466
124481
  const offset = 4 + id * NATIVE_LAZY_PART_BYTES;
124467
- inventory.write(sha2565, offset, NATIVE_LAZY_DIGEST_BYTES, "hex");
124482
+ inventory.write(sha2564, offset, NATIVE_LAZY_DIGEST_BYTES, "hex");
124468
124483
  inventory.writeUInt32LE(byteLength, offset + NATIVE_LAZY_DIGEST_BYTES);
124469
124484
  for (const slot of slots) inventory.writeUInt16LE(id + 1, slotOffset + slot * 2);
124470
124485
  }
@@ -124505,12 +124520,12 @@ function describePart(file) {
124505
124520
  );
124506
124521
  return { file, functions, byteLength: bytes.byteLength };
124507
124522
  }
124508
- var import_node_child_process66, import_node_crypto79, import_node_fs132, import_node_os28, import_node_path134, import_node_util16, run11, MAX_MODULE_FUNCTIONS, MAX_START_FUNCTIONS, SIDE_FUNCTIONS, SIDE_CODE_BYTES, FEATURES2, featuresOf;
124523
+ var import_node_child_process66, import_node_crypto78, import_node_fs132, import_node_os28, import_node_path134, import_node_util16, run11, MAX_MODULE_FUNCTIONS, MAX_START_FUNCTIONS, SIDE_FUNCTIONS, SIDE_CODE_BYTES, FEATURES2, featuresOf;
124509
124524
  var init_wasm_lazy_split = __esm({
124510
124525
  "src/wasm-lazy-split.ts"() {
124511
124526
  "use strict";
124512
124527
  import_node_child_process66 = require("node:child_process");
124513
- import_node_crypto79 = require("node:crypto");
124528
+ import_node_crypto78 = require("node:crypto");
124514
124529
  import_node_fs132 = require("node:fs");
124515
124530
  import_node_os28 = require("node:os");
124516
124531
  import_node_path134 = require("node:path");
@@ -124741,7 +124756,7 @@ async function storeStartupSplit(work, profile, parent, cache, partCodeBytes) {
124741
124756
  const result = {
124742
124757
  primary: delivery.primary,
124743
124758
  parts: new Map(
124744
- split2.sides.map(({ sha256: sha2565 }, index) => [sha2565, delivery.sides[index]])
124759
+ split2.sides.map(({ sha256: sha2564 }, index) => [sha2564, delivery.sides[index]])
124745
124760
  ),
124746
124761
  ...partCodeBytes === void 0 ? {} : {
124747
124762
  source: digest2(work.bytes),
@@ -124947,11 +124962,11 @@ async function bootSwiftPreview(launch2, profile) {
124947
124962
  server.close();
124948
124963
  }
124949
124964
  }
124950
- var import_node_crypto80, import_node_fs133, import_node_http3, import_node_https2, import_node_os29, import_node_path135, packageName, guestPath, appPath, profileWindowMs, profileQuietMs, digest2, partDigest, platform;
124965
+ var import_node_crypto79, import_node_fs133, import_node_http3, import_node_https2, import_node_os29, import_node_path135, packageName, guestPath, appPath, profileWindowMs, profileQuietMs, digest2, partDigest, platform;
124951
124966
  var init_swift_startup_split = __esm({
124952
124967
  "src/swift-startup-split.ts"() {
124953
124968
  "use strict";
124954
- import_node_crypto80 = require("node:crypto");
124969
+ import_node_crypto79 = require("node:crypto");
124955
124970
  import_node_fs133 = require("node:fs");
124956
124971
  import_node_http3 = require("node:http");
124957
124972
  import_node_https2 = require("node:https");
@@ -124976,7 +124991,7 @@ var init_swift_startup_split = __esm({
124976
124991
  appPath = "/__peach/swift/startup.wasm";
124977
124992
  profileWindowMs = 3e4;
124978
124993
  profileQuietMs = 2e3;
124979
- digest2 = (bytes) => (0, import_node_crypto80.createHash)("sha256").update(bytes).digest("hex");
124994
+ digest2 = (bytes) => (0, import_node_crypto79.createHash)("sha256").update(bytes).digest("hex");
124980
124995
  partDigest = /^[a-f0-9]{64}$/;
124981
124996
  platform = `${process.platform}-${process.arch}`;
124982
124997
  }
@@ -125001,7 +125016,7 @@ async function readAsset(url, digest3, contentType2 = "application/wasm") {
125001
125016
  `published Swift SDK asset ${digest3} answered HTTP ${response.status}`
125002
125017
  );
125003
125018
  const bytes = Buffer.from(await response.arrayBuffer());
125004
- if ((0, import_node_crypto81.createHash)("sha256").update(bytes).digest("hex") !== digest3)
125019
+ if ((0, import_node_crypto80.createHash)("sha256").update(bytes).digest("hex") !== digest3)
125005
125020
  throw new Error(`published Swift SDK asset ${digest3} digest mismatch`);
125006
125021
  return { bytes, contentType: contentType2, digest: digest3 };
125007
125022
  }
@@ -125017,7 +125032,7 @@ async function readPublishedSwiftSdkParts(url, module2) {
125017
125032
  const [dyld] = WebAssembly.Module.customSections(module2, NATIVE_DYLD_TABLE_SECTION);
125018
125033
  if (lazy.length > 1) throw new Error("native code has more than one part inventory");
125019
125034
  const parts2 = lazy[0] ? readNativeLazyParts(lazy[0]).parts : [];
125020
- const assets2 = new Map(parts2.map(({ sha256: sha2565, byteLength }) => [sha2565, byteLength]));
125035
+ const assets2 = new Map(parts2.map(({ sha256: sha2564, byteLength }) => [sha2564, byteLength]));
125021
125036
  let dyldDigest;
125022
125037
  if (dyld && !WebAssembly.Module.customSections(module2, NATIVE_DYLD_PACKS_SECTION).length) {
125023
125038
  const table = readNativeDyldTableIndex(dyld);
@@ -125036,11 +125051,11 @@ async function readPublishedSwiftSdkParts(url, module2) {
125036
125051
  }
125037
125052
  );
125038
125053
  }
125039
- var import_node_crypto81;
125054
+ var import_node_crypto80;
125040
125055
  var init_published_swift_sdk = __esm({
125041
125056
  "src/published-swift-sdk.ts"() {
125042
125057
  "use strict";
125043
- import_node_crypto81 = require("node:crypto");
125058
+ import_node_crypto80 = require("node:crypto");
125044
125059
  init_mapLimit();
125045
125060
  init_nativeDyldTableContract();
125046
125061
  init_nativeWasmContract();
@@ -125085,7 +125100,7 @@ function* filesUnder(absolute) {
125085
125100
  }
125086
125101
  function hashFile(absolutePath) {
125087
125102
  try {
125088
- return (0, import_node_crypto82.createHash)("sha1").update((0, import_node_fs134.readFileSync)(absolutePath)).digest("hex");
125103
+ return (0, import_node_crypto81.createHash)("sha1").update((0, import_node_fs134.readFileSync)(absolutePath)).digest("hex");
125089
125104
  } catch {
125090
125105
  return null;
125091
125106
  }
@@ -125219,11 +125234,11 @@ function findStaleRoutes(monorepoRoot, routes2) {
125219
125234
  }
125220
125235
  return stale;
125221
125236
  }
125222
- var import_node_crypto82, import_node_fs134, import_node_path136, DEV_BUILD_REBUILD_COMMAND, RECORD_DIR, PEACHSIM_ENGINE_INPUTS, ENGINE_SOURCES, ROUTES, STANDALONE_ENGINE_ROUTES, EXCLUDED_DIR_NAMES;
125237
+ var import_node_crypto81, import_node_fs134, import_node_path136, DEV_BUILD_REBUILD_COMMAND, RECORD_DIR, PEACHSIM_ENGINE_INPUTS, ENGINE_SOURCES, ROUTES, STANDALONE_ENGINE_ROUTES, EXCLUDED_DIR_NAMES;
125223
125238
  var init_dev_build_freshness = __esm({
125224
125239
  "cli/dev-build-freshness.ts"() {
125225
125240
  "use strict";
125226
- import_node_crypto82 = require("node:crypto");
125241
+ import_node_crypto81 = require("node:crypto");
125227
125242
  import_node_fs134 = require("node:fs");
125228
125243
  import_node_path136 = require("node:path");
125229
125244
  DEV_BUILD_REBUILD_COMMAND = "bun run build:peach";
@@ -125392,7 +125407,7 @@ function nativeSourceFiles(packagePath) {
125392
125407
  function swiftArtifactContentDigest(bytes) {
125393
125408
  let digest3 = swiftArtifactDigests.get(bytes);
125394
125409
  if (!digest3) {
125395
- digest3 = (0, import_node_crypto83.createHash)("sha256").update(bytes).digest("hex");
125410
+ digest3 = (0, import_node_crypto82.createHash)("sha256").update(bytes).digest("hex");
125396
125411
  swiftArtifactDigests.set(bytes, digest3);
125397
125412
  }
125398
125413
  return digest3;
@@ -125543,7 +125558,7 @@ async function wasmPortableAssembly(binaries, toolchainBin, moduleRoot) {
125543
125558
  const clang = import_node_path137.default.join(toolchainBin, "clang");
125544
125559
  const empty = (binary2, file) => {
125545
125560
  const source = import_node_path137.default.join(binary2.dir, file);
125546
- const key2 = (0, import_node_crypto83.createHash)("sha256").update(
125561
+ const key2 = (0, import_node_crypto82.createHash)("sha256").update(
125547
125562
  JSON.stringify([
125548
125563
  clang,
125549
125564
  sdk2.sysroot,
@@ -125588,7 +125603,7 @@ async function wasmPortableAssembly(binaries, toolchainBin, moduleRoot) {
125588
125603
  return new Set(portable.flat());
125589
125604
  }
125590
125605
  async function swiftPackages(entry, app) {
125591
- const stamp = (file) => import_node_fs135.default.existsSync(file) ? (0, import_node_crypto83.createHash)("sha256").update(import_node_fs135.default.readFileSync(file)).digest("hex") : null;
125606
+ const stamp = (file) => import_node_fs135.default.existsSync(file) ? (0, import_node_crypto82.createHash)("sha256").update(import_node_fs135.default.readFileSync(file)).digest("hex") : null;
125592
125607
  const owners = [...app.frameworks, app].map((target) => ({
125593
125608
  module: target.moduleName,
125594
125609
  products: target.packageProducts ?? []
@@ -126757,18 +126772,18 @@ async function buildSwiftResourceTable(project2, baseUrl, inputs2) {
126757
126772
  const source = new TextDecoder("utf-8", { fatal: true, ignoreBOM: true }).decode(
126758
126773
  bytes
126759
126774
  );
126760
- const sha2565 = (0, import_node_crypto83.createHash)("sha256").update(bytes).digest("hex");
126775
+ const sha2564 = (0, import_node_crypto82.createHash)("sha256").update(bytes).digest("hex");
126761
126776
  const bundle = swiftResourceBundleForFile(bundles, key2);
126762
126777
  if (!bundle && inputs2["Package.swift"])
126763
126778
  throw new Error(`metal source ${key2} has no resource target bundle`);
126764
126779
  metalSources[key2] = {
126765
- sha256: sha2565,
126766
- url: `${baseUrl}${RESOURCE_PATH}${sha2565}.metal`,
126780
+ sha256: sha2564,
126781
+ url: `${baseUrl}${RESOURCE_PATH}${sha2564}.metal`,
126767
126782
  bundlePath: bundle?.path ?? "."
126768
126783
  };
126769
126784
  metalUploads[key2] = source;
126770
126785
  watched.push(file);
126771
- registered.set(`${sha2565}.metal`, { bytes, contentType: "text/plain; charset=utf-8" });
126786
+ registered.set(`${sha2564}.metal`, { bytes, contentType: "text/plain; charset=utf-8" });
126772
126787
  }
126773
126788
  const pdfs = /* @__PURE__ */ new Map();
126774
126789
  for (const { file } of found2) {
@@ -126780,7 +126795,7 @@ async function buildSwiftResourceTable(project2, baseUrl, inputs2) {
126780
126795
  const bytes = readPackageFile2(project2.packagePath, disk, limits.imageBytes);
126781
126796
  pdfs.set(file, {
126782
126797
  file: disk,
126783
- sha256: (0, import_node_crypto83.createHash)("sha256").update(bytes).digest("hex")
126798
+ sha256: (0, import_node_crypto82.createHash)("sha256").update(bytes).digest("hex")
126784
126799
  });
126785
126800
  }
126786
126801
  const pdfRasters = rasterizePdfFiles([...pdfs.values()], limits);
@@ -126826,7 +126841,7 @@ async function buildSwiftResourceTable(project2, baseUrl, inputs2) {
126826
126841
  throw new Error("swift image pack exceeds the compile service caps");
126827
126842
  }
126828
126843
  imageBytes += bytes.length;
126829
- const hash = (0, import_node_crypto83.createHash)("sha256").update(bytes).digest("hex").slice(0, 16);
126844
+ const hash = (0, import_node_crypto82.createHash)("sha256").update(bytes).digest("hex").slice(0, 16);
126830
126845
  const bundle = table[bundlePath] ?? /* @__PURE__ */ Object.create(null);
126831
126846
  const pixelSize = ext === ".png" ? readPngDimensions(bytes) : null;
126832
126847
  const variant2 = {
@@ -127135,7 +127150,7 @@ function updateSwiftConfigStamp(hash, packagePath) {
127135
127150
  hash.update(JSON.stringify(gates.map((name3) => swiftWasm64PlatformGates[name3])));
127136
127151
  }
127137
127152
  function sourceStamp(packagePath, moduleRootOverride, hosted = false) {
127138
- const hash = (0, import_node_crypto83.createHash)("sha256");
127153
+ const hash = (0, import_node_crypto82.createHash)("sha256");
127139
127154
  hash.update(packagePath);
127140
127155
  updateSwiftConfigStamp(hash, packagePath);
127141
127156
  const libraries = projects().get(packagePath)?.libraries;
@@ -127164,7 +127179,7 @@ function sourceStamp(packagePath, moduleRootOverride, hosted = false) {
127164
127179
  return hash.digest("hex").slice(0, 16);
127165
127180
  }
127166
127181
  function sourceContentStamp(packagePath, moduleRootOverride) {
127167
- const hash = (0, import_node_crypto83.createHash)("sha256");
127182
+ const hash = (0, import_node_crypto82.createHash)("sha256");
127168
127183
  hash.update(compilerSourceDigest);
127169
127184
  updateSwiftConfigStamp(hash, packagePath);
127170
127185
  const libraries = projects().get(packagePath)?.libraries;
@@ -127196,7 +127211,7 @@ function moduleStamp(packagePath, moduleRootOverride, hosted) {
127196
127211
  (root) => import_node_fs135.default.existsSync(import_node_path137.default.join(root, "toolchain.json"))
127197
127212
  );
127198
127213
  if (!moduleRoot) return "";
127199
- const hash = (0, import_node_crypto83.createHash)("sha256");
127214
+ const hash = (0, import_node_crypto82.createHash)("sha256");
127200
127215
  hash.update(moduleRoot);
127201
127216
  for (const relative8 of swiftModuleInputFiles(moduleRoot)) {
127202
127217
  hash.update(relative8);
@@ -127206,7 +127221,7 @@ function moduleStamp(packagePath, moduleRootOverride, hosted) {
127206
127221
  }
127207
127222
  function otherInputs(input) {
127208
127223
  const { files: _files, ...rest } = input;
127209
- return (0, import_node_crypto83.createHash)("sha256").update(JSON.stringify(rest)).digest("hex");
127224
+ return (0, import_node_crypto82.createHash)("sha256").update(JSON.stringify(rest)).digest("hex");
127210
127225
  }
127211
127226
  function entryRootId(packagePath, file) {
127212
127227
  const relative8 = import_node_path137.default.relative(packagePath, file).split(import_node_path137.default.sep).join(import_node_path137.default.posix.sep);
@@ -127228,7 +127243,7 @@ function standinLibraries(binaries, standins, rootDir, toolchain, rustWasm64) {
127228
127243
  for (const standin of standins) {
127229
127244
  if (!standin.prebuilt) continue;
127230
127245
  const bytes = Buffer.from(standin.prebuilt.library, "base64");
127231
- const digest3 = (0, import_node_crypto83.createHash)("sha256").update(bytes).digest("hex");
127246
+ const digest3 = (0, import_node_crypto82.createHash)("sha256").update(bytes).digest("hex");
127232
127247
  const dir = import_node_path137.default.join(swiftCacheDir(), "native-archives", digest3);
127233
127248
  import_node_fs135.default.mkdirSync(dir, { recursive: true });
127234
127249
  const library = import_node_path137.default.join(dir, `lib${standin.module}.a`);
@@ -127576,7 +127591,7 @@ function swiftBuildRoot(packagePath, moduleRoot) {
127576
127591
  return import_node_path137.default.join(
127577
127592
  swiftCacheDir(),
127578
127593
  "swift-builds",
127579
- (0, import_node_crypto83.createHash)("sha256").update(`${compilerKey}\0${buildKeyPath}`).digest("hex").slice(0, 16)
127594
+ (0, import_node_crypto82.createHash)("sha256").update(`${compilerKey}\0${buildKeyPath}`).digest("hex").slice(0, 16)
127580
127595
  );
127581
127596
  }
127582
127597
  function installedWorkspaceInput(packagePath, entry, moduleRoot) {
@@ -127870,14 +127885,14 @@ async function fetchSwiftDyldTable(moduleUrl, module2, signal) {
127870
127885
  const url = new URL(moduleUrl);
127871
127886
  const table = swiftDyldTableReference(url.pathname, module2);
127872
127887
  if (!table) return {};
127873
- const { sha256: sha2565, byteLength } = table;
127888
+ const { sha256: sha2564, byteLength } = table;
127874
127889
  url.pathname = table.path;
127875
127890
  const response = await fetch(url, { signal });
127876
127891
  if (!response.ok) throw new Error(`swift compile: ${url} answered ${response.status}`);
127877
127892
  const bytes = Buffer.from(await response.arrayBuffer());
127878
- if (bytes.length !== byteLength || (0, import_node_crypto83.createHash)("sha256").update(bytes).digest("hex") !== sha2565)
127893
+ if (bytes.length !== byteLength || (0, import_node_crypto82.createHash)("sha256").update(bytes).digest("hex") !== sha2564)
127879
127894
  throw new Error(`swift compile: ${url} does not match its module's index`);
127880
- return { dyldTable: { sha256: sha2565, bytes } };
127895
+ return { dyldTable: { sha256: sha2564, bytes } };
127881
127896
  }
127882
127897
  function currentStamp(project2, moduleRoot) {
127883
127898
  return withXcodeLayout(
@@ -128166,10 +128181,10 @@ async function splitSdkBinding(sdk2, splitKey, plan) {
128166
128181
  sdk2.binding.bytes,
128167
128182
  plan
128168
128183
  );
128169
- const digest3 = (0, import_node_crypto83.createHash)("sha256").update(split2.binding).digest("hex");
128184
+ const digest3 = (0, import_node_crypto82.createHash)("sha256").update(split2.binding).digest("hex");
128170
128185
  sdkBindingFiles.set(digest3, split2.binding);
128171
128186
  for (const later of split2.later)
128172
- sdkBindingFiles.set((0, import_node_crypto83.createHash)("sha256").update(later).digest("hex"), later);
128187
+ sdkBindingFiles.set((0, import_node_crypto82.createHash)("sha256").update(later).digest("hex"), later);
128173
128188
  sdkSplitBindings.set(key2, digest3);
128174
128189
  }
128175
128190
  function swiftCodePartAssets(origin, appParts, sdkDigest) {
@@ -128248,7 +128263,7 @@ function swiftSdkStartup(sdk2, packagePath, artifactHash, metadata, launch2, run
128248
128263
  const { key: key2 } = sdk2;
128249
128264
  const normalizedPackage = normalizedSwiftPackagePath(packagePath);
128250
128265
  const requireCurrentProfile = import_node_path137.default.basename(import_node_path137.default.dirname(normalizedPackage)) === "one-native-controls";
128251
- const app = (0, import_node_crypto83.createHash)("sha256").update(
128266
+ const app = (0, import_node_crypto82.createHash)("sha256").update(
128252
128267
  JSON.stringify([
128253
128268
  normalizedPackage,
128254
128269
  launch2.environment,
@@ -128282,7 +128297,7 @@ function swiftSdkStartup(sdk2, packagePath, artifactHash, metadata, launch2, run
128282
128297
  app,
128283
128298
  requireCurrentProfile
128284
128299
  );
128285
- const name3 = (0, import_node_crypto83.createHash)("sha256").update(split2.primary).digest("hex");
128300
+ const name3 = (0, import_node_crypto82.createHash)("sha256").update(split2.primary).digest("hex");
128286
128301
  sdkPieces2.set(name3, split2.primary);
128287
128302
  for (const [digest3, bytes] of split2.parts) sdkPieces2.set(digest3, bytes);
128288
128303
  sdkStartupParts.set(name3, split2.parts);
@@ -128511,10 +128526,10 @@ async function swiftArtifactAssets(artifact, { sdkUrl, sdkBindingUrl }) {
128511
128526
  const later = decodeNativeSdkBinding(
128512
128527
  bytes.buffer.slice(bytes.byteOffset, bytes.byteOffset + bytes.byteLength)
128513
128528
  ).later;
128514
- for (const { sha256: sha2565 } of later?.files ?? []) {
128515
- const laterBytes = sdkBindingFiles.get(sha2565);
128516
- if (!laterBytes) throw new Error(`swift sdk later data ${sha2565} is not served`);
128517
- assets2.set(`${SDK_BINDING_PATH}${sha2565}.bin`, {
128529
+ for (const { sha256: sha2564 } of later?.files ?? []) {
128530
+ const laterBytes = sdkBindingFiles.get(sha2564);
128531
+ if (!laterBytes) throw new Error(`swift sdk later data ${sha2564} is not served`);
128532
+ assets2.set(`${SDK_BINDING_PATH}${sha2564}.bin`, {
128518
128533
  bytes: laterBytes,
128519
128534
  contentType: "application/octet-stream"
128520
128535
  });
@@ -128559,13 +128574,13 @@ function disposeSwiftProject(packagePath, signal) {
128559
128574
  xcodeProjects().delete(packagePath);
128560
128575
  sourceEntries().delete(packagePath);
128561
128576
  }
128562
- var import_node_async_hooks3, import_node_child_process67, import_node_crypto83, import_node_fs135, import_node_os30, import_node_path137, ARTIFACT_PATH, RESOURCE_PATH, ICU_PATH, SDK_PATH, SDK_BINDING_PATH, SKIP_ROOT_DIRS, NATIVE_DESCRIPTOR, NATIVE_GLUE, SwiftMissingModulesError, startupImages, swiftArtifactDigests, sharedProjects, projectScope, projects, sharedSourceEntries, sourceEntries, sharedXcodeProjects, xcodeProjects, preparedScriptInputs, emptyWasmAssembly, XCODE_APP_DIR, XCODE_FRAMEWORKS_DIR, XCODE_PACKAGES_DIR, layoutScope, HOSTED_LIMITS, LOCAL_LIMITS, inputLimits, RESOURCE_CONTENT_TYPES, API_GAP_PATTERNS, IOS_SDK_FRAMEWORKS, sdkStartups, sdkStartupParts, sdkStartupPlans, sdkPieces2, publishedSdkPieces, publishedSdkMirrors, sdkSplitBindings, sdkBindingFiles, servedSdkBinding;
128577
+ var import_node_async_hooks3, import_node_child_process67, import_node_crypto82, import_node_fs135, import_node_os30, import_node_path137, ARTIFACT_PATH, RESOURCE_PATH, ICU_PATH, SDK_PATH, SDK_BINDING_PATH, SKIP_ROOT_DIRS, NATIVE_DESCRIPTOR, NATIVE_GLUE, SwiftMissingModulesError, startupImages, swiftArtifactDigests, sharedProjects, projectScope, projects, sharedSourceEntries, sourceEntries, sharedXcodeProjects, xcodeProjects, preparedScriptInputs, emptyWasmAssembly, XCODE_APP_DIR, XCODE_FRAMEWORKS_DIR, XCODE_PACKAGES_DIR, layoutScope, HOSTED_LIMITS, LOCAL_LIMITS, inputLimits, RESOURCE_CONTENT_TYPES, API_GAP_PATTERNS, IOS_SDK_FRAMEWORKS, sdkStartups, sdkStartupParts, sdkStartupPlans, sdkPieces2, publishedSdkPieces, publishedSdkMirrors, sdkSplitBindings, sdkBindingFiles, servedSdkBinding;
128563
128578
  var init_swift_host = __esm({
128564
128579
  "src/swift-host.ts"() {
128565
128580
  "use strict";
128566
128581
  import_node_async_hooks3 = require("node:async_hooks");
128567
128582
  import_node_child_process67 = require("node:child_process");
128568
- import_node_crypto83 = require("node:crypto");
128583
+ import_node_crypto82 = require("node:crypto");
128569
128584
  import_node_fs135 = __toESM(require("node:fs"), 1);
128570
128585
  import_node_os30 = __toESM(require("node:os"), 1);
128571
128586
  import_node_path137 = __toESM(require("node:path"), 1);
@@ -129327,7 +129342,7 @@ function hashTree(root) {
129327
129342
  for (const entry of import_node_fs138.default.readdirSync(root, { recursive: true, withFileTypes: true })) {
129328
129343
  if (!entry.isFile()) continue;
129329
129344
  const file = import_node_path140.default.join(entry.parentPath, entry.name);
129330
- hashes[import_node_path140.default.relative(root, file).split(import_node_path140.default.sep).join("/")] = (0, import_node_crypto84.createHash)("sha256").update(import_node_fs138.default.readFileSync(file)).digest("hex");
129345
+ hashes[import_node_path140.default.relative(root, file).split(import_node_path140.default.sep).join("/")] = (0, import_node_crypto83.createHash)("sha256").update(import_node_fs138.default.readFileSync(file)).digest("hex");
129331
129346
  }
129332
129347
  return Object.fromEntries(Object.entries(hashes).sort(([a], [b]) => a < b ? -1 : 1));
129333
129348
  }
@@ -129377,12 +129392,12 @@ async function runInstalledTurboCodegen(appRoot, outDir, signal) {
129377
129392
  files: hashTree(generatedRoot)
129378
129393
  };
129379
129394
  }
129380
- var import_node_child_process68, import_node_crypto84, import_node_fs138, import_node_module17, import_node_path140, import_node_util17, run12, RENDERER_DEPENDENCY_PODS, RENDERER_PODS, RENDERER_PODS_VERSIONED, COMPILED_SOURCE, LEGACY_BRIDGE_DEV_SUPPORT, LEGACY_BRIDGE_PODS, LEGACY_BRIDGE_PODS_VERSIONED;
129395
+ var import_node_child_process68, import_node_crypto83, import_node_fs138, import_node_module17, import_node_path140, import_node_util17, run12, RENDERER_DEPENDENCY_PODS, RENDERER_PODS, RENDERER_PODS_VERSIONED, COMPILED_SOURCE, LEGACY_BRIDGE_DEV_SUPPORT, LEGACY_BRIDGE_PODS, LEGACY_BRIDGE_PODS_VERSIONED;
129381
129396
  var init_turbo_codegen_intake = __esm({
129382
129397
  "src/turbo-codegen-intake.ts"() {
129383
129398
  "use strict";
129384
129399
  import_node_child_process68 = require("node:child_process");
129385
- import_node_crypto84 = require("node:crypto");
129400
+ import_node_crypto83 = require("node:crypto");
129386
129401
  import_node_fs138 = __toESM(require("node:fs"), 1);
129387
129402
  import_node_module17 = require("node:module");
129388
129403
  import_node_path140 = __toESM(require("node:path"), 1);
@@ -130455,7 +130470,7 @@ async function collectTurboSources(options2) {
130455
130470
  );
130456
130471
  const installedHeaders = /* @__PURE__ */ new Map();
130457
130472
  const targetPath = (name3) => `Sources/${name3}`;
130458
- const providerTarget = (name3) => `TurboPackage_${sha2564(name3).slice(0, 16)}`;
130473
+ const providerTarget = (name3) => `TurboPackage_${sha2563(name3).slice(0, 16)}`;
130459
130474
  const folly = readFollyConfig(reactNative.root);
130460
130475
  const baseDefines = [
130461
130476
  options2.configuration === "Debug" ? "DEBUG=1" : "NDEBUG",
@@ -130599,7 +130614,7 @@ async function collectTurboSources(options2) {
130599
130614
  if (!Buffer.from(text7).equals(bytes))
130600
130615
  throw new Error(`TurboModule source is not UTF-8: ${disk}`);
130601
130616
  add2(key2, text7);
130602
- result.sources.push({ file: key2, source: disk, sha256: sha2564(bytes) });
130617
+ result.sources.push({ file: key2, source: disk, sha256: sha2563(bytes) });
130603
130618
  pending2.push({ key: key2, targetName, label, root, relative: relative8 });
130604
130619
  return key2;
130605
130620
  };
@@ -131412,13 +131427,13 @@ async function collectTurboSources(options2) {
131412
131427
  let decoratorHasPerformanceLogger = false;
131413
131428
  let managerHasDevMenuDecorator = false;
131414
131429
  if (fabric) objc = true;
131415
- for (const { relative: relative8, source, text: text7, sha256: sha2565, configured } of glogSources()) {
131430
+ for (const { relative: relative8, source, text: text7, sha256: sha2564, configured } of glogSources()) {
131416
131431
  const key2 = `${core}/dependencies/glog/${relative8}`;
131417
131432
  add2(key2, text7);
131418
131433
  result.sources.push({
131419
131434
  file: key2,
131420
131435
  source,
131421
- sha256: sha2565,
131436
+ sha256: sha2564,
131422
131437
  ...configured && { configured }
131423
131438
  });
131424
131439
  if (relative8.startsWith("src/glog/"))
@@ -133701,11 +133716,11 @@ extern "C" __attribute__((export_name("peach_fabric_component_names"))) const ch
133701
133716
  }
133702
133717
  `;
133703
133718
  }
133704
- var import_node_crypto85, import_node_fs139, import_node_module18, import_node_path141, TURBO_CORE_TARGET, TURBO_FMT_TARGET, TURBO_ENTRY_HEADER, TURBO_CORE_PUBLIC_HEADERS, REGISTRATION, CODEGEN_OBJC, UNIT, HEADER5, OBJC2, OBJC_TURBO, OBJC_BRIDGE, OBJC_REGISTERED, REACT_NATIVE_UNITS, REACT_NATIVE_INCLUDE_ROOTS, REACT_NATIVE_OBJC_UNITS, REACT_NATIVE_OBJC_VERSIONED_UNITS, REACT_NATIVE_HEADER_DIRS, REACT_NATIVE_BARE_HEADER_DIRS, DECLARED_MODULE_NAME, EXPORTED_MODULE, sha2564, podspecList, reactNativePods, reactNativePod, versionParts, iosOf, JS_CALL_INVOKER, FABRIC_SHADOW_HANDLE_HOST, FABRIC_HOST_INCLUDES, FABRIC_HOST_PAPER_INCLUDES, PAPER_UIKIT_BRIDGE_SWIFT;
133719
+ var import_node_crypto84, import_node_fs139, import_node_module18, import_node_path141, TURBO_CORE_TARGET, TURBO_FMT_TARGET, TURBO_ENTRY_HEADER, TURBO_CORE_PUBLIC_HEADERS, REGISTRATION, CODEGEN_OBJC, UNIT, HEADER5, OBJC2, OBJC_TURBO, OBJC_BRIDGE, OBJC_REGISTERED, REACT_NATIVE_UNITS, REACT_NATIVE_INCLUDE_ROOTS, REACT_NATIVE_OBJC_UNITS, REACT_NATIVE_OBJC_VERSIONED_UNITS, REACT_NATIVE_HEADER_DIRS, REACT_NATIVE_BARE_HEADER_DIRS, DECLARED_MODULE_NAME, EXPORTED_MODULE, sha2563, podspecList, reactNativePods, reactNativePod, versionParts, iosOf, JS_CALL_INVOKER, FABRIC_SHADOW_HANDLE_HOST, FABRIC_HOST_INCLUDES, FABRIC_HOST_PAPER_INCLUDES, PAPER_UIKIT_BRIDGE_SWIFT;
133705
133720
  var init_turbo_source = __esm({
133706
133721
  "src/turbo-source.ts"() {
133707
133722
  "use strict";
133708
- import_node_crypto85 = require("node:crypto");
133723
+ import_node_crypto84 = require("node:crypto");
133709
133724
  import_node_fs139 = __toESM(require("node:fs"), 1);
133710
133725
  import_node_module18 = require("node:module");
133711
133726
  import_node_path141 = __toESM(require("node:path"), 1);
@@ -133835,7 +133850,7 @@ var init_turbo_source = __esm({
133835
133850
  ];
133836
133851
  DECLARED_MODULE_NAME = /\bName\(\s*"(\w+)"\s*\)/g;
133837
133852
  EXPORTED_MODULE = /\bRCT_(?:EXPORT_MODULE(?:_NO_LOAD)?|EXTERN_MODULE)\s*\(\s*(\w*)/g;
133838
- sha2564 = (data) => (0, import_node_crypto85.createHash)("sha256").update(data).digest("hex");
133853
+ sha2563 = (data) => (0, import_node_crypto84.createHash)("sha256").update(data).digest("hex");
133839
133854
  podspecList = podspecAttribute;
133840
133855
  reactNativePods = /* @__PURE__ */ new Set([
133841
133856
  "React",
@@ -134722,7 +134737,7 @@ function retainInstalledReactNativeDeclarations(snapshot, options2, skipped, cor
134722
134737
  }
134723
134738
  async function prepareTurboCompileInput(options2) {
134724
134739
  await prepareTurboSourceDependencies(options2.reactNativeRoot);
134725
- const key2 = (0, import_node_crypto86.createHash)("sha256").update(options2.providers.map(({ root }) => import_node_fs140.default.realpathSync(root)).join("\0")).update("\0").update(import_node_fs140.default.realpathSync(options2.moduleRoot)).digest("hex");
134740
+ const key2 = (0, import_node_crypto85.createHash)("sha256").update(options2.providers.map(({ root }) => import_node_fs140.default.realpathSync(root)).join("\0")).update("\0").update(import_node_fs140.default.realpathSync(options2.moduleRoot)).digest("hex");
134726
134741
  const scratch2 = import_node_path142.default.join(import_node_os31.default.tmpdir(), "peach-turbo-swift", key2);
134727
134742
  import_node_fs140.default.mkdirSync(scratch2, { recursive: true });
134728
134743
  const codegenDir = import_node_fs140.default.mkdtempSync(import_node_path142.default.join(scratch2, "codegen-"));
@@ -134964,11 +134979,11 @@ async function compileTurboModule(options2) {
134964
134979
  collection
134965
134980
  };
134966
134981
  }
134967
- var import_node_crypto86, import_node_fs140, import_node_module19, import_node_os31, import_node_path142;
134982
+ var import_node_crypto85, import_node_fs140, import_node_module19, import_node_os31, import_node_path142;
134968
134983
  var init_turbo_compile = __esm({
134969
134984
  "src/turbo-compile.ts"() {
134970
134985
  "use strict";
134971
- import_node_crypto86 = require("node:crypto");
134986
+ import_node_crypto85 = require("node:crypto");
134972
134987
  import_node_fs140 = __toESM(require("node:fs"), 1);
134973
134988
  import_node_module19 = require("node:module");
134974
134989
  import_node_os31 = __toESM(require("node:os"), 1);
@@ -135168,8 +135183,8 @@ function reactNativeCoreEntry(reactNativeRoot, moduleRoot, mode) {
135168
135183
  );
135169
135184
  if (!isRecord(manifest) || typeof manifest.version !== "string")
135170
135185
  throw new Error(`${reactNativeRoot}: react-native has no version`);
135171
- const headers = (0, import_node_crypto87.createHash)("sha256");
135172
- const sources = (0, import_node_crypto87.createHash)("sha256");
135186
+ const headers = (0, import_node_crypto86.createHash)("sha256");
135187
+ const sources = (0, import_node_crypto86.createHash)("sha256");
135173
135188
  const walk4 = (relative8) => {
135174
135189
  for (const file of import_node_fs142.default.readdirSync(import_node_path144.default.join(reactNativeRoot, relative8), { withFileTypes: true }).sort((a, b) => a.name < b.name ? -1 : a.name > b.name ? 1 : 0)) {
135175
135190
  if (file.name === "node_modules" || file.name.startsWith(".")) continue;
@@ -135276,7 +135291,7 @@ function linkReactNativeCore(collection, core, moduleRoot) {
135276
135291
  const file = import_node_path144.default.join(
135277
135292
  cacheDir(),
135278
135293
  "native-archives",
135279
- `${(0, import_node_crypto87.createHash)("sha256").update(data).digest("hex")}.a`
135294
+ `${(0, import_node_crypto86.createHash)("sha256").update(data).digest("hex")}.a`
135280
135295
  );
135281
135296
  import_node_fs142.default.mkdirSync(import_node_path144.default.dirname(file), { recursive: true });
135282
135297
  if (!import_node_fs142.default.existsSync(file)) import_node_fs142.default.writeFileSync(file, Buffer.from(data, "base64"));
@@ -135286,11 +135301,11 @@ function linkReactNativeCore(collection, core, moduleRoot) {
135286
135301
  }
135287
135302
  }
135288
135303
  }
135289
- var import_node_crypto87, import_node_fs142, import_node_module20, import_node_path144, import_node_util18, recipe, strings4, building;
135304
+ var import_node_crypto86, import_node_fs142, import_node_module20, import_node_path144, import_node_util18, recipe, strings4, building;
135290
135305
  var init_react_native_core = __esm({
135291
135306
  "src/react-native-core.ts"() {
135292
135307
  "use strict";
135293
- import_node_crypto87 = require("node:crypto");
135308
+ import_node_crypto86 = require("node:crypto");
135294
135309
  import_node_fs142 = __toESM(require("node:fs"), 1);
135295
135310
  import_node_module20 = require("node:module");
135296
135311
  import_node_path144 = __toESM(require("node:path"), 1);
@@ -135316,7 +135331,7 @@ function exportedNames(moduleRoot, name3) {
135316
135331
  const modules = import_node_path145.default.join(moduleRoot, "modules");
135317
135332
  const module2 = import_node_path145.default.join(modules, `${name3}.swiftmodule`);
135318
135333
  if (!import_node_fs143.default.existsSync(module2)) return /* @__PURE__ */ new Set();
135319
- const key2 = (0, import_node_crypto88.createHash)("sha256").update(import_node_fs143.default.readFileSync(module2)).digest("hex");
135334
+ const key2 = (0, import_node_crypto87.createHash)("sha256").update(import_node_fs143.default.readFileSync(module2)).digest("hex");
135320
135335
  const directory2 = import_node_path145.default.join(swiftCacheDir(), "swift-public-names");
135321
135336
  const receipt = import_node_path145.default.join(directory2, `${key2}.json`);
135322
135337
  if (import_node_fs143.default.existsSync(receipt)) {
@@ -135399,12 +135414,12 @@ function clangTypeOwnership(moduleRoot, module2) {
135399
135414
  }
135400
135415
  );
135401
135416
  }
135402
- var import_node_child_process70, import_node_crypto88, import_node_fs143, import_node_path145, blockTypedef, enumTypedef, enumConstant, swiftPrivate;
135417
+ var import_node_child_process70, import_node_crypto87, import_node_fs143, import_node_path145, blockTypedef, enumTypedef, enumConstant, swiftPrivate;
135403
135418
  var init_swift_clang_type_ownership = __esm({
135404
135419
  "src/swift-clang-type-ownership.ts"() {
135405
135420
  "use strict";
135406
135421
  import_node_child_process70 = require("node:child_process");
135407
- import_node_crypto88 = require("node:crypto");
135422
+ import_node_crypto87 = require("node:crypto");
135408
135423
  import_node_fs143 = __toESM(require("node:fs"), 1);
135409
135424
  import_node_path145 = __toESM(require("node:path"), 1);
135410
135425
  init_is_record();
@@ -137084,7 +137099,7 @@ function targetSettings2(units) {
137084
137099
  }
137085
137100
  function oneSDKStamp(oneSDK) {
137086
137101
  if (!oneSDK) return "";
137087
- const hash = (0, import_node_crypto89.createHash)("sha256");
137102
+ const hash = (0, import_node_crypto88.createHash)("sha256");
137088
137103
  for (const files2 of [oneSDK.targets, oneSDK.entry])
137089
137104
  for (const [name3, source] of [...files2].sort(([a], [b]) => a.localeCompare(b)))
137090
137105
  hash.update(`${name3}\0${source}\0`);
@@ -137135,7 +137150,7 @@ ${bridgeModules.length ? "import React\n" : ""}${oneSDK ? "import One\nimport On
137135
137150
  `;
137136
137151
  }
137137
137152
  function expoSwiftPreparedKey(base2, units, reactProviderStamp) {
137138
- const hash = (0, import_node_crypto89.createHash)("sha256");
137153
+ const hash = (0, import_node_crypto88.createHash)("sha256");
137139
137154
  hash.update(base2);
137140
137155
  hash.update(reactProviderStamp);
137141
137156
  for (const unit2 of units) {
@@ -137508,8 +137523,8 @@ async function compileExpoSwiftModulesTraced(root, base2, publishArtifact, optio
137508
137523
  }
137509
137524
  return provider;
137510
137525
  })() : void 0;
137511
- const reactProviderStamp = reactProvider ? (0, import_node_crypto89.createHash)("sha256").update(JSON.stringify(reactProvider)).digest("hex") : "";
137512
- const key2 = (0, import_node_crypto89.createHash)("sha256").update(import_node_fs144.default.realpathSync(root)).digest("hex");
137526
+ const reactProviderStamp = reactProvider ? (0, import_node_crypto88.createHash)("sha256").update(JSON.stringify(reactProvider)).digest("hex") : "";
137527
+ const key2 = (0, import_node_crypto88.createHash)("sha256").update(import_node_fs144.default.realpathSync(root)).digest("hex");
137513
137528
  const unitContentStamp = (unit2) => sourceContentStamp(expoSwiftPackage(key2, unit2.moduleId), module2.root) + (unit2.reactNativeProvider ? `:${reactProviderStamp}` : "");
137514
137529
  const failures = /* @__PURE__ */ new Map();
137515
137530
  const failureRecords = /* @__PURE__ */ new Map();
@@ -137803,7 +137818,7 @@ async function compileExpoSwiftModulesTraced(root, base2, publishArtifact, optio
137803
137818
  await check2(part[0]);
137804
137819
  continue;
137805
137820
  }
137806
- const name3 = (0, import_node_crypto89.createHash)("sha256").update(part.map((unit2) => unit2.moduleId).join("\0")).digest("hex").slice(0, 16);
137821
+ const name3 = (0, import_node_crypto88.createHash)("sha256").update(part.map((unit2) => unit2.moduleId).join("\0")).digest("hex").slice(0, 16);
137807
137822
  report(`linking ${part.length} namespaces to isolate failures`);
137808
137823
  try {
137809
137824
  const built2 = await link(part, `isolate-${name3}`);
@@ -137988,13 +138003,13 @@ ${diagnostics}`}`
137988
138003
  }
137989
138004
  return true;
137990
138005
  }
137991
- var import_node_async_hooks4, import_node_child_process71, import_node_crypto89, import_node_fs144, import_node_module21, import_node_os32, import_node_path146, import_node_url7, import_node_util19, run13, scriptEnv, EXPO_SWIFT_ROUTE, EXPO_SWIFT_ENTRY, WITNESS_BATCH, traceStore, discoveryCache, preparedCache, savedFs, ignoredRoots, ownTemporaryRoots, EXPO_MODULE_SCAN_TIMEOUT_MS, preparedExpoSwift, openPreparations, ExpoSwiftLinkRefusal;
138006
+ var import_node_async_hooks4, import_node_child_process71, import_node_crypto88, import_node_fs144, import_node_module21, import_node_os32, import_node_path146, import_node_url7, import_node_util19, run13, scriptEnv, EXPO_SWIFT_ROUTE, EXPO_SWIFT_ENTRY, WITNESS_BATCH, traceStore, discoveryCache, preparedCache, savedFs, ignoredRoots, ownTemporaryRoots, EXPO_MODULE_SCAN_TIMEOUT_MS, preparedExpoSwift, openPreparations, ExpoSwiftLinkRefusal;
137992
138007
  var init_expo_swift_host = __esm({
137993
138008
  "src/expo-swift-host.ts"() {
137994
138009
  "use strict";
137995
138010
  import_node_async_hooks4 = require("node:async_hooks");
137996
138011
  import_node_child_process71 = require("node:child_process");
137997
- import_node_crypto89 = require("node:crypto");
138012
+ import_node_crypto88 = require("node:crypto");
137998
138013
  import_node_fs144 = __toESM(require("node:fs"), 1);
137999
138014
  import_node_module21 = require("node:module");
138000
138015
  import_node_os32 = __toESM(require("node:os"), 1);
@@ -141270,7 +141285,7 @@ async function createIdentity() {
141270
141285
  const keys = await crypto.subtle.generateKey(algorithm, true, ["sign", "verify"]);
141271
141286
  const certificate = await import_x5092.X509CertificateGenerator.createSelfSigned(
141272
141287
  {
141273
- serialNumber: (0, import_node_crypto90.randomBytes)(16).toString("hex"),
141288
+ serialNumber: (0, import_node_crypto89.randomBytes)(16).toString("hex"),
141274
141289
  name: "CN=localhost",
141275
141290
  notBefore: new Date(Date.now() - 6e4),
141276
141291
  notAfter: new Date(Date.now() + 365 * 24 * 60 * 6e4),
@@ -141289,7 +141304,7 @@ async function createIdentity() {
141289
141304
  ${privateKey.toString("base64").match(/.{1,64}/g)?.join("\n")}
141290
141305
  -----END PRIVATE KEY-----
141291
141306
  `,
141292
- spki: (0, import_node_crypto90.createHash)("sha256").update(Buffer.from(await crypto.subtle.exportKey("spki", keys.publicKey))).digest("base64")
141307
+ spki: (0, import_node_crypto89.createHash)("sha256").update(Buffer.from(await crypto.subtle.exportKey("spki", keys.publicKey))).digest("base64")
141293
141308
  };
141294
141309
  }
141295
141310
  async function startFetchProxyTransport(identityPath, hasLiveSims = () => false) {
@@ -141363,11 +141378,11 @@ async function startFetchProxyTransport(identityPath, hasLiveSims = () => false)
141363
141378
  );
141364
141379
  }
141365
141380
  }
141366
- var import_node_crypto90, import_node_fs148, import_node_http23, import_node_path150, import_x5092;
141381
+ var import_node_crypto89, import_node_fs148, import_node_http23, import_node_path150, import_x5092;
141367
141382
  var init_fetch_proxy_transport = __esm({
141368
141383
  "src/host/fetch-proxy-transport.ts"() {
141369
141384
  "use strict";
141370
- import_node_crypto90 = require("node:crypto");
141385
+ import_node_crypto89 = require("node:crypto");
141371
141386
  import_node_fs148 = require("node:fs");
141372
141387
  import_node_http23 = require("node:http2");
141373
141388
  import_node_path150 = __toESM(require("node:path"), 1);
@@ -142599,10 +142614,10 @@ function stageHostBytes(bytes, origin, extension = "") {
142599
142614
  }
142600
142615
  async function stageHostDerivedBytes(input, producer, origin, extension, derive) {
142601
142616
  const directory2 = prepareStagedDirectory();
142602
- const inputDigest = (0, import_node_crypto91.createHash)("sha256").update(input).digest("hex");
142617
+ const inputDigest = (0, import_node_crypto90.createHash)("sha256").update(input).digest("hex");
142603
142618
  const index = import_node_path154.default.join(
142604
142619
  directory2,
142605
- `derived-${(0, import_node_crypto91.createHash)("sha256").update(`${producer}\0${inputDigest}`).digest("hex")}`
142620
+ `derived-${(0, import_node_crypto90.createHash)("sha256").update(`${producer}\0${inputDigest}`).digest("hex")}`
142606
142621
  );
142607
142622
  const recorded = import_node_fs152.default.existsSync(index) ? import_node_fs152.default.readFileSync(index, "utf8") : "";
142608
142623
  if (STAGED_NAME.test(recorded) && import_node_fs152.default.existsSync(import_node_path154.default.join(directory2, recorded))) {
@@ -142613,7 +142628,7 @@ async function stageHostDerivedBytes(input, producer, origin, extension, derive)
142613
142628
  return new URL(STAGED_PREFIX + recorded, origin).toString();
142614
142629
  }
142615
142630
  const staged = writeStagedBytes(await derive(), origin, extension, directory2);
142616
- const temporary = import_node_path154.default.join(directory2, (0, import_node_crypto91.randomUUID)());
142631
+ const temporary = import_node_path154.default.join(directory2, (0, import_node_crypto90.randomUUID)());
142617
142632
  try {
142618
142633
  import_node_fs152.default.writeFileSync(temporary, new URL(staged).pathname.slice(STAGED_PREFIX.length), {
142619
142634
  flag: "wx"
@@ -142640,7 +142655,7 @@ function stageHostMetroAssets(assets2, origin) {
142640
142655
  const name3 = staged.pathname.slice(STAGED_PREFIX.length);
142641
142656
  const destination = import_node_path154.default.join(directory2, index);
142642
142657
  stagedCapture.getStore()?.add(index);
142643
- const temporary = import_node_path154.default.join(directory2, (0, import_node_crypto91.randomUUID)());
142658
+ const temporary = import_node_path154.default.join(directory2, (0, import_node_crypto90.randomUUID)());
142644
142659
  try {
142645
142660
  import_node_fs152.default.writeFileSync(temporary, name3, { flag: "wx" });
142646
142661
  try {
@@ -142665,7 +142680,7 @@ function metroIndexName(url) {
142665
142680
  url.searchParams.get("unstable_path"),
142666
142681
  hashes[0]
142667
142682
  ]);
142668
- return `metro-${(0, import_node_crypto91.createHash)("sha256").update(key2).digest("hex")}`;
142683
+ return `metro-${(0, import_node_crypto90.createHash)("sha256").update(key2).digest("hex")}`;
142669
142684
  }
142670
142685
  function metroRequestIndex(rawUrl) {
142671
142686
  if (!rawUrl?.startsWith("/") || rawUrl.startsWith("//")) return null;
@@ -142693,7 +142708,7 @@ function prepareStagedDirectory() {
142693
142708
  return directory2;
142694
142709
  }
142695
142710
  function writeStagedBytes(bytes, origin, extension, directory2) {
142696
- const digest3 = (0, import_node_crypto91.createHash)("sha256").update(bytes).digest("hex");
142711
+ const digest3 = (0, import_node_crypto90.createHash)("sha256").update(bytes).digest("hex");
142697
142712
  extension = extension.toLowerCase();
142698
142713
  const name3 = STAGED_NAME.test(digest3 + extension) ? digest3 + extension : digest3;
142699
142714
  stagedCapture.getStore()?.add(name3);
@@ -142702,7 +142717,7 @@ function writeStagedBytes(bytes, origin, extension, directory2) {
142702
142717
  if (import_node_fs152.default.existsSync(destination)) {
142703
142718
  import_node_fs152.default.utimesSync(destination, new Date(now), new Date(now));
142704
142719
  } else {
142705
- const temporary = import_node_path154.default.join(directory2, (0, import_node_crypto91.randomUUID)());
142720
+ const temporary = import_node_path154.default.join(directory2, (0, import_node_crypto90.randomUUID)());
142706
142721
  try {
142707
142722
  import_node_fs152.default.writeFileSync(temporary, bytes, { flag: "wx" });
142708
142723
  import_node_fs152.default.renameSync(temporary, destination);
@@ -142774,12 +142789,12 @@ async function handleStagedHostFileRequest(req, res) {
142774
142789
  throw error;
142775
142790
  }
142776
142791
  }
142777
- var import_node_async_hooks5, import_node_crypto91, import_node_fs152, import_node_path154, stagedCapture, STAGED_PREFIX, STAGED_NAME, METRO_INDEX_NAME, STAGED_RETENTION_MS;
142792
+ var import_node_async_hooks5, import_node_crypto90, import_node_fs152, import_node_path154, stagedCapture, STAGED_PREFIX, STAGED_NAME, METRO_INDEX_NAME, STAGED_RETENTION_MS;
142778
142793
  var init_staged_host_files = __esm({
142779
142794
  "src/host/staged-host-files.ts"() {
142780
142795
  "use strict";
142781
142796
  import_node_async_hooks5 = require("node:async_hooks");
142782
- import_node_crypto91 = require("node:crypto");
142797
+ import_node_crypto90 = require("node:crypto");
142783
142798
  import_node_fs152 = __toESM(require("node:fs"), 1);
142784
142799
  import_node_path154 = __toESM(require("node:path"), 1);
142785
142800
  init_uttype_mime();
@@ -142827,7 +142842,7 @@ function writeGeneratedFile(file, content) {
142827
142842
  if (!error || typeof error !== "object" || !("code" in error) || error.code !== "ENOENT")
142828
142843
  throw error;
142829
142844
  }
142830
- const temporary = (0, import_node_path156.join)((0, import_node_path156.dirname)(file), `.${(0, import_node_path156.basename)(file)}.${(0, import_node_crypto92.randomUUID)()}.tmp`);
142845
+ const temporary = (0, import_node_path156.join)((0, import_node_path156.dirname)(file), `.${(0, import_node_path156.basename)(file)}.${(0, import_node_crypto91.randomUUID)()}.tmp`);
142831
142846
  try {
142832
142847
  (0, import_node_fs154.writeFileSync)(temporary, content);
142833
142848
  (0, import_node_fs154.renameSync)(temporary, file);
@@ -143935,7 +143950,7 @@ function nativeSourceContract(file, source) {
143935
143950
  enums,
143936
143951
  defaultView
143937
143952
  });
143938
- const hash = (0, import_node_crypto92.createHash)("sha256").update(canonical).digest("hex");
143953
+ const hash = (0, import_node_crypto91.createHash)("sha256").update(canonical).digest("hex");
143939
143954
  const declarations = structs.map(
143940
143955
  (struct) => `export interface ${struct.name} {${struct.fields.map((field2) => ` ${field2.name}${field2.optional ? "?" : ""}: ${field2.type};`).join("")} }`
143941
143956
  );
@@ -144070,7 +144085,7 @@ function renderSwiftSourceGlue(packageId, contracts, linkedViews = false) {
144070
144085
  throw new Error(`swift package ${packageId} declares ${name3} twice`);
144071
144086
  names.add(name3);
144072
144087
  }
144073
- const hash = (0, import_node_crypto92.createHash)("sha256").update(JSON.stringify({ packageId, modules, views })).digest("hex");
144088
+ const hash = (0, import_node_crypto91.createHash)("sha256").update(JSON.stringify({ packageId, modules, views })).digest("hex");
144074
144089
  const hasMain = contracts.some((contract) => contract.defaultView);
144075
144090
  const bodyName = `OneNativeSourceBody_${packageId}`;
144076
144091
  const className2 = `OneNativeSource_${packageId}`;
@@ -144455,11 +144470,11 @@ function renderSwiftSourceGlue(packageId, contracts, linkedViews = false) {
144455
144470
  ].join("\n");
144456
144471
  return { hash, source };
144457
144472
  }
144458
- var import_node_crypto92, import_node_fs154, import_node_path156, GENERATED_HEADER, DECLARATION_MODIFIERS, PLAIN_ATTRIBUTES, STRUCT_MEMBER_WORDS;
144473
+ var import_node_crypto91, import_node_fs154, import_node_path156, GENERATED_HEADER, DECLARATION_MODIFIERS, PLAIN_ATTRIBUTES, STRUCT_MEMBER_WORDS;
144459
144474
  var init_nativeSourceContract = __esm({
144460
144475
  "../one-bundler/src/nativeSourceContract.ts"() {
144461
144476
  "use strict";
144462
- import_node_crypto92 = require("node:crypto");
144477
+ import_node_crypto91 = require("node:crypto");
144463
144478
  import_node_fs154 = require("node:fs");
144464
144479
  import_node_path156 = require("node:path");
144465
144480
  init_swiftPackageId();
@@ -144531,7 +144546,7 @@ function chunkKey2(lines) {
144531
144546
  return lines.map((item) => item.text).join("\n");
144532
144547
  }
144533
144548
  function stableShardIndex(key2, shardCount) {
144534
- return (0, import_node_crypto93.createHash)("sha256").update(key2).digest().readUInt32BE(0) % shardCount;
144549
+ return (0, import_node_crypto92.createHash)("sha256").update(key2).digest().readUInt32BE(0) % shardCount;
144535
144550
  }
144536
144551
  function shardOneSDKBindingSource(name3, source, shardCount = ONE_SDK_BINDING_SHARDS) {
144537
144552
  if (shardCount <= 1 || !name3.endsWith(".swift") || name3.endsWith(".types.swift") || source.length < ONE_SDK_BINDING_SHARD_MIN_BYTES) {
@@ -144775,11 +144790,11 @@ function shardOneSDKBindingSource(name3, source, shardCount = ONE_SDK_BINDING_SH
144775
144790
  };
144776
144791
  });
144777
144792
  }
144778
- var import_node_crypto93, import_node_path157, ONE_SDK_BINDING_SHARDS, ONE_SDK_BINDING_SHARD_MIN_BYTES;
144793
+ var import_node_crypto92, import_node_path157, ONE_SDK_BINDING_SHARDS, ONE_SDK_BINDING_SHARD_MIN_BYTES;
144779
144794
  var init_one_sdk_shard = __esm({
144780
144795
  "../peach-globals/build/one-sdk-shard.ts"() {
144781
144796
  "use strict";
144782
- import_node_crypto93 = require("node:crypto");
144797
+ import_node_crypto92 = require("node:crypto");
144783
144798
  import_node_path157 = __toESM(require("node:path"), 1);
144784
144799
  init_swift_source_mask();
144785
144800
  ONE_SDK_BINDING_SHARDS = 8;
@@ -148861,7 +148876,7 @@ async function oneNativeControlsPackage(appRoot, linkedGroups, sdk2, appPackages
148861
148876
  ""
148862
148877
  ].join("\n");
148863
148878
  }
148864
- const digest3 = (0, import_node_crypto94.createHash)("sha256").update(manifest);
148879
+ const digest3 = (0, import_node_crypto93.createHash)("sha256").update(manifest);
148865
148880
  for (const [name3, source] of files2)
148866
148881
  digest3.update(name3).update("\0").update(source).update("\0");
148867
148882
  const key2 = digest3.digest("hex").slice(0, 16);
@@ -148884,11 +148899,11 @@ async function oneNativeControlsPackage(appRoot, linkedGroups, sdk2, appPackages
148884
148899
  ...oneSDKShards.size ? { oneSDKShards } : {}
148885
148900
  };
148886
148901
  }
148887
- var import_node_crypto94, import_node_fs157, import_node_module22, import_node_path160, import_node_url8, ONE_SDK_DEFINES, GUEST_ENTRY, BRIDGE_SWIFT, ONE_SDK_RUNTIME_SOURCES, ONE_NATIVE_STYLE_SHARDS, ONE_NATIVE_STYLE_SHARD_MIN_BYTES, DIRECT_HOST_SWIFT_SEEDS, DIRECT_HOST_IOS_FILES;
148902
+ var import_node_crypto93, import_node_fs157, import_node_module22, import_node_path160, import_node_url8, ONE_SDK_DEFINES, GUEST_ENTRY, BRIDGE_SWIFT, ONE_SDK_RUNTIME_SOURCES, ONE_NATIVE_STYLE_SHARDS, ONE_NATIVE_STYLE_SHARD_MIN_BYTES, DIRECT_HOST_SWIFT_SEEDS, DIRECT_HOST_IOS_FILES;
148888
148903
  var init_one_native_controls_package = __esm({
148889
148904
  "src/one-native-controls-package.ts"() {
148890
148905
  "use strict";
148891
- import_node_crypto94 = require("node:crypto");
148906
+ import_node_crypto93 = require("node:crypto");
148892
148907
  import_node_fs157 = __toESM(require("node:fs"), 1);
148893
148908
  import_node_module22 = require("node:module");
148894
148909
  import_node_path160 = __toESM(require("node:path"), 1);
@@ -150223,7 +150238,7 @@ async function readOneWidgetSources(appRoot) {
150223
150238
  if (!Buffer.from(text7).equals(bytes))
150224
150239
  throw new Error(`One widget prebuild source is not UTF-8: ${file}`);
150225
150240
  files2.set(name3, text7);
150226
- sources[import_node_path162.default.relative(root, file).split(import_node_path162.default.sep).join("/")] = (0, import_node_crypto95.createHash)("sha256").update(bytes).digest("hex");
150241
+ sources[import_node_path162.default.relative(root, file).split(import_node_path162.default.sep).join("/")] = (0, import_node_crypto94.createHash)("sha256").update(bytes).digest("hex");
150227
150242
  }
150228
150243
  const contract = files2.get("OneWidgetContract.swift") ?? "";
150229
150244
  const source = files2.get("OneWidget.swift") ?? "";
@@ -150247,17 +150262,17 @@ async function configuredOneWidget(appRoot, bundleUrl, packageUrl) {
150247
150262
  return {
150248
150263
  metadata: source.widget,
150249
150264
  projectRoot: source.root,
150250
- appIdentity: (0, import_node_crypto95.createHash)("sha256").update(JSON.stringify([source.root, source.widget.bundleId])).digest("hex"),
150265
+ appIdentity: (0, import_node_crypto94.createHash)("sha256").update(JSON.stringify([source.root, source.widget.bundleId])).digest("hex"),
150251
150266
  bundleUrl,
150252
150267
  packageUrl,
150253
150268
  urlSchemes: source.urlSchemes
150254
150269
  };
150255
150270
  }
150256
- var import_node_crypto95, import_node_fs159, import_node_path162, ONE_WIDGET_PACKAGE, nonEmpty;
150271
+ var import_node_crypto94, import_node_fs159, import_node_path162, ONE_WIDGET_PACKAGE, nonEmpty;
150257
150272
  var init_one_widget_metadata = __esm({
150258
150273
  "src/one-widget-metadata.ts"() {
150259
150274
  "use strict";
150260
- import_node_crypto95 = require("node:crypto");
150275
+ import_node_crypto94 = require("node:crypto");
150261
150276
  import_node_fs159 = __toESM(require("node:fs"), 1);
150262
150277
  import_node_path162 = __toESM(require("node:path"), 1);
150263
150278
  init_is_record();
@@ -150291,7 +150306,7 @@ async function oneWidgetPackage(appRoot) {
150291
150306
  const packagePath = import_node_path163.default.join(
150292
150307
  import_node_os34.default.tmpdir(),
150293
150308
  "peach-one-widgets",
150294
- (0, import_node_crypto96.createHash)("sha256").update(root).digest("hex"),
150309
+ (0, import_node_crypto95.createHash)("sha256").update(root).digest("hex"),
150295
150310
  ONE_WIDGET_PACKAGE
150296
150311
  );
150297
150312
  import_node_fs160.default.mkdirSync(packagePath, { recursive: true });
@@ -150305,11 +150320,11 @@ async function oneWidgetPackage(appRoot) {
150305
150320
  widget
150306
150321
  };
150307
150322
  }
150308
- var import_node_crypto96, import_node_fs160, import_node_os34, import_node_path163;
150323
+ var import_node_crypto95, import_node_fs160, import_node_os34, import_node_path163;
150309
150324
  var init_one_widget_package = __esm({
150310
150325
  "src/one-widget-package.ts"() {
150311
150326
  "use strict";
150312
- import_node_crypto96 = require("node:crypto");
150327
+ import_node_crypto95 = require("node:crypto");
150313
150328
  import_node_fs160 = __toESM(require("node:fs"), 1);
150314
150329
  import_node_os34 = __toESM(require("node:os"), 1);
150315
150330
  import_node_path163 = __toESM(require("node:path"), 1);
@@ -150525,7 +150540,7 @@ var init_android_view_classes = __esm({
150525
150540
 
150526
150541
  // src/java-module-abi.ts
150527
150542
  async function readJavaModuleSpecs(files2, sdkRoot, toolchain) {
150528
- const digest3 = (0, import_node_crypto97.createHash)("sha256");
150543
+ const digest3 = (0, import_node_crypto96.createHash)("sha256");
150529
150544
  const parent = import_node_path165.default.join(kotlinHome(), "java-specs");
150530
150545
  import_node_fs162.default.mkdirSync(parent, { recursive: true });
150531
150546
  const work = import_node_fs162.default.mkdtempSync(import_node_path165.default.join(parent, ".read-"));
@@ -150622,12 +150637,12 @@ async function compileJavaModuleAbi(input) {
150622
150637
  );
150623
150638
  return library;
150624
150639
  }
150625
- var import_node_child_process74, import_node_crypto97, import_node_fs162, import_node_path165, import_node_util20, run14, JAVA_BINDINGS_INITIALIZER;
150640
+ var import_node_child_process74, import_node_crypto96, import_node_fs162, import_node_path165, import_node_util20, run14, JAVA_BINDINGS_INITIALIZER;
150626
150641
  var init_java_module_abi = __esm({
150627
150642
  "src/java-module-abi.ts"() {
150628
150643
  "use strict";
150629
150644
  import_node_child_process74 = require("node:child_process");
150630
- import_node_crypto97 = require("node:crypto");
150645
+ import_node_crypto96 = require("node:crypto");
150631
150646
  import_node_fs162 = __toESM(require("node:fs"), 1);
150632
150647
  import_node_path165 = __toESM(require("node:path"), 1);
150633
150648
  import_node_util20 = require("node:util");
@@ -151061,7 +151076,7 @@ function zipSources(bytes, where) {
151061
151076
  return entries2;
151062
151077
  }
151063
151078
  function extract(bytes, where) {
151064
- const key2 = (0, import_node_crypto98.createHash)("sha256").update(bytes).digest("hex");
151079
+ const key2 = (0, import_node_crypto97.createHash)("sha256").update(bytes).digest("hex");
151065
151080
  const cached5 = pending.get(key2);
151066
151081
  if (cached5) return cached5;
151067
151082
  const request = (async () => {
@@ -151172,11 +151187,11 @@ async function kotlinSources(bytes, where) {
151172
151187
  if (kotlin.length === 0) throw new Error(`${where}: sources jar has no Kotlin`);
151173
151188
  return kotlin;
151174
151189
  }
151175
- var import_node_crypto98, import_node_fs164, import_node_os35, import_node_path167, import_node_zlib9, pending, MAX_SOURCES_JAR_BYTES, MAX_SOURCE_ENTRY_BYTES, MAX_TOTAL_EXTRACTED_BYTES;
151190
+ var import_node_crypto97, import_node_fs164, import_node_os35, import_node_path167, import_node_zlib9, pending, MAX_SOURCES_JAR_BYTES, MAX_SOURCE_ENTRY_BYTES, MAX_TOTAL_EXTRACTED_BYTES;
151176
151191
  var init_kotlin_maven_sources = __esm({
151177
151192
  "src/kotlin-maven-sources.ts"() {
151178
151193
  "use strict";
151179
- import_node_crypto98 = require("node:crypto");
151194
+ import_node_crypto97 = require("node:crypto");
151180
151195
  import_node_fs164 = __toESM(require("node:fs"), 1);
151181
151196
  import_node_os35 = __toESM(require("node:os"), 1);
151182
151197
  import_node_path167 = __toESM(require("node:path"), 1);
@@ -151266,7 +151281,7 @@ async function compileKotlinGradleLibraries(input) {
151266
151281
  ])
151267
151282
  ];
151268
151283
  const name3 = library.coordinate.replace(/[^a-zA-Z0-9._-]/g, "-");
151269
- const suffix = (0, import_node_crypto99.createHash)("sha256").update(library.coordinate).digest("hex").slice(0, 12);
151284
+ const suffix = (0, import_node_crypto98.createHash)("sha256").update(library.coordinate).digest("hex").slice(0, 12);
151270
151285
  const klib = import_node_path168.default.join(input.output, `${name3}-${suffix}.klib`);
151271
151286
  const kotlinJvmAbi = java.length && kotlin.length && library.jars.length === 1 ? library.jars[0] : void 0;
151272
151287
  const abiPairs = java.length ? dependencies.flatMap(
@@ -151308,11 +151323,11 @@ async function compileKotlinGradleLibraries(input) {
151308
151323
  }
151309
151324
  return [...compiled.values()].map(({ klib }) => klib);
151310
151325
  }
151311
- var import_node_crypto99, import_node_fs165, import_node_path168;
151326
+ var import_node_crypto98, import_node_fs165, import_node_path168;
151312
151327
  var init_kotlin_gradle_library_plan = __esm({
151313
151328
  "src/kotlin-gradle-library-plan.ts"() {
151314
151329
  "use strict";
151315
- import_node_crypto99 = require("node:crypto");
151330
+ import_node_crypto98 = require("node:crypto");
151316
151331
  import_node_fs165 = __toESM(require("node:fs"), 1);
151317
151332
  import_node_path168 = __toESM(require("node:path"), 1);
151318
151333
  init_kotlin_library_sources();
@@ -151548,17 +151563,17 @@ function verifyKotlinSdkDirectory(root, compiler) {
151548
151563
  if (!stat2.isFile() || stat2.nlink !== 1)
151549
151564
  throw new Error(`Kotlin SDK binary is not a regular file: ${name3}`);
151550
151565
  const bytes = import_node_fs166.default.readFileSync(target);
151551
- if (bytes.length !== expected.bytes || (0, import_node_crypto100.createHash)("sha256").update(bytes).digest("hex") !== expected.sha256)
151566
+ if (bytes.length !== expected.bytes || (0, import_node_crypto99.createHash)("sha256").update(bytes).digest("hex") !== expected.sha256)
151552
151567
  throw new Error(`Kotlin SDK binary differs from its manifest: ${name3}`);
151553
151568
  }
151554
151569
  return manifest;
151555
151570
  }
151556
151571
  async function installKotlinSdkArchive(archive, compiler) {
151557
- const sha2565 = (0, import_node_crypto100.createHash)("sha256").update(archive).digest("hex");
151572
+ const sha2564 = (0, import_node_crypto99.createHash)("sha256").update(archive).digest("hex");
151558
151573
  const parent = import_node_path169.default.join(kotlinHome(), "sdk");
151559
- const root = import_node_path169.default.join(parent, sha2565);
151574
+ const root = import_node_path169.default.join(parent, sha2564);
151560
151575
  if (import_node_fs166.default.existsSync(root))
151561
- return { root, sha256: sha2565, manifest: verifyKotlinSdkDirectory(root, compiler) };
151576
+ return { root, sha256: sha2564, manifest: verifyKotlinSdkDirectory(root, compiler) };
151562
151577
  import_node_fs166.default.mkdirSync(parent, { recursive: true });
151563
151578
  const work = import_node_fs166.default.mkdtempSync(import_node_path169.default.join(parent, ".install-"));
151564
151579
  try {
@@ -151578,17 +151593,17 @@ async function installKotlinSdkArchive(archive, compiler) {
151578
151593
  if (!import_node_fs166.default.existsSync(root)) throw error;
151579
151594
  verifyKotlinSdkDirectory(root, compiler);
151580
151595
  }
151581
- return { root, sha256: sha2565, manifest };
151596
+ return { root, sha256: sha2564, manifest };
151582
151597
  } finally {
151583
151598
  import_node_fs166.default.rmSync(work, { recursive: true, force: true });
151584
151599
  }
151585
151600
  }
151586
- var import_node_child_process76, import_node_crypto100, import_node_fs166, import_node_path169, import_node_util21, run15;
151601
+ var import_node_child_process76, import_node_crypto99, import_node_fs166, import_node_path169, import_node_util21, run15;
151587
151602
  var init_kotlin_sdk = __esm({
151588
151603
  "src/kotlin-sdk.ts"() {
151589
151604
  "use strict";
151590
151605
  import_node_child_process76 = require("node:child_process");
151591
- import_node_crypto100 = require("node:crypto");
151606
+ import_node_crypto99 = require("node:crypto");
151592
151607
  import_node_fs166 = __toESM(require("node:fs"), 1);
151593
151608
  import_node_path169 = __toESM(require("node:path"), 1);
151594
151609
  import_node_util21 = require("node:util");
@@ -151724,7 +151739,7 @@ function peachKotlinModuleRoot() {
151724
151739
  if (!IS_STANDALONE) return import_node_path170.default.join(peachsimPackageRoot(), "kotlin");
151725
151740
  if (installedRoot) return installedRoot;
151726
151741
  const files2 = JSON.parse(__PEACH_BUNDLED_KOTLIN__);
151727
- const digest3 = (0, import_node_crypto101.createHash)("sha256").update(__PEACH_BUNDLED_KOTLIN__).digest("hex");
151742
+ const digest3 = (0, import_node_crypto100.createHash)("sha256").update(__PEACH_BUNDLED_KOTLIN__).digest("hex");
151728
151743
  const parent = import_node_path170.default.join(rnxHomeDir(), "kotlin", "modules");
151729
151744
  const root = import_node_path170.default.join(parent, digest3);
151730
151745
  import_node_fs167.default.mkdirSync(parent, { recursive: true });
@@ -151753,11 +151768,11 @@ function peachKotlinModuleRoot() {
151753
151768
  installedRoot = root;
151754
151769
  return root;
151755
151770
  }
151756
- var import_node_crypto101, import_node_fs167, import_node_path170, installedRoot;
151771
+ var import_node_crypto100, import_node_fs167, import_node_path170, installedRoot;
151757
151772
  var init_kotlin_module = __esm({
151758
151773
  "src/kotlin-module.ts"() {
151759
151774
  "use strict";
151760
- import_node_crypto101 = require("node:crypto");
151775
+ import_node_crypto100 = require("node:crypto");
151761
151776
  import_node_fs167 = __toESM(require("node:fs"), 1);
151762
151777
  import_node_path170 = __toESM(require("node:path"), 1);
151763
151778
  init_standalone();
@@ -151791,7 +151806,7 @@ async function resolveAndroidGradleSources(request) {
151791
151806
  const parent = import_node_path171.default.join(kotlinHome(), "gradle-sources");
151792
151807
  import_node_fs168.default.mkdirSync(parent, { recursive: true });
151793
151808
  const work = import_node_fs168.default.mkdtempSync(import_node_path171.default.join(parent, ".query-"));
151794
- const task = `peachAndroidSources${(0, import_node_crypto102.randomBytes)(8).toString("hex")}`;
151809
+ const task = `peachAndroidSources${(0, import_node_crypto101.randomBytes)(8).toString("hex")}`;
151795
151810
  const script = import_node_path171.default.join(work, "sources.gradle");
151796
151811
  const encoded = Buffer.from(
151797
151812
  JSON.stringify({
@@ -151943,12 +151958,12 @@ function readDependencySources(value) {
151943
151958
  };
151944
151959
  });
151945
151960
  }
151946
- var import_node_child_process77, import_node_crypto102, import_node_fs168, import_node_path171, import_node_util22, run16, modelQuery;
151961
+ var import_node_child_process77, import_node_crypto101, import_node_fs168, import_node_path171, import_node_util22, run16, modelQuery;
151947
151962
  var init_android_gradle_sources = __esm({
151948
151963
  "src/android-gradle-sources.ts"() {
151949
151964
  "use strict";
151950
151965
  import_node_child_process77 = require("node:child_process");
151951
- import_node_crypto102 = require("node:crypto");
151966
+ import_node_crypto101 = require("node:crypto");
151952
151967
  import_node_fs168 = __toESM(require("node:fs"), 1);
151953
151968
  import_node_path171 = __toESM(require("node:path"), 1);
151954
151969
  import_node_util22 = require("node:util");
@@ -152363,7 +152378,7 @@ function readExpoTypes(output) {
152363
152378
  });
152364
152379
  }
152365
152380
  async function scanSources(tool, parse19, toolchain, moduleRoot, files2) {
152366
- const digest3 = (0, import_node_crypto103.createHash)("sha256").update(JSON.stringify(toolchain.compiler));
152381
+ const digest3 = (0, import_node_crypto102.createHash)("sha256").update(JSON.stringify(toolchain.compiler));
152367
152382
  const sdk2 = await loadKotlinSdk(moduleRoot, toolchain);
152368
152383
  digest3.update(import_node_fs169.default.readFileSync(import_node_path172.default.join(moduleRoot, "sdk.tar.gz")));
152369
152384
  digest3.update(tool);
@@ -153025,7 +153040,7 @@ async function compileKotlin(input, origin) {
153025
153040
  bytes: import_node_fs169.default.readFileSync(file)
153026
153041
  }));
153027
153042
  const { composeArchive, ...compilerInputs } = toolchain;
153028
- const digest3 = (0, import_node_crypto103.createHash)("sha256");
153043
+ const digest3 = (0, import_node_crypto102.createHash)("sha256");
153029
153044
  digest3.update(
153030
153045
  JSON.stringify({
153031
153046
  format: BUILD_FORMAT,
@@ -153047,7 +153062,7 @@ async function compileKotlin(input, origin) {
153047
153062
  ...gradleLibraries.libraries.flatMap(({ archive, jars }) => [archive, ...jars])
153048
153063
  ]);
153049
153064
  for (const file of files2) {
153050
- digest3.update((0, import_node_crypto103.createHash)("sha256").update(import_node_fs169.default.readFileSync(file)).digest());
153065
+ digest3.update((0, import_node_crypto102.createHash)("sha256").update(import_node_fs169.default.readFileSync(file)).digest());
153051
153066
  }
153052
153067
  }
153053
153068
  if (viewModels) digest3.update(viewModels.toolClass);
@@ -153339,12 +153354,12 @@ async function serveKotlinRequest(pathname, res, app) {
153339
153354
  }
153340
153355
  return true;
153341
153356
  }
153342
- var import_node_child_process78, import_node_crypto103, import_node_fs169, import_node_module23, import_node_path172, import_node_util23, run17, KOTLIN_ARTIFACT_PREFIX, SKIP_DIRS, configureDeviceSource, BUILD_FORMAT, builds, toolScans, BRIDGE_PARAMETERS, BRIDGE_CASTS, BRIDGE_RETURNS, bridgeType, JAVA_CLASSES, argb, escapes2, literal5, CONTENT_TYPES;
153357
+ var import_node_child_process78, import_node_crypto102, import_node_fs169, import_node_module23, import_node_path172, import_node_util23, run17, KOTLIN_ARTIFACT_PREFIX, SKIP_DIRS, configureDeviceSource, BUILD_FORMAT, builds, toolScans, BRIDGE_PARAMETERS, BRIDGE_CASTS, BRIDGE_RETURNS, bridgeType, JAVA_CLASSES, argb, escapes2, literal5, CONTENT_TYPES;
153343
153358
  var init_kotlin_host = __esm({
153344
153359
  "src/kotlin-host.ts"() {
153345
153360
  "use strict";
153346
153361
  import_node_child_process78 = require("node:child_process");
153347
- import_node_crypto103 = require("node:crypto");
153362
+ import_node_crypto102 = require("node:crypto");
153348
153363
  import_node_fs169 = __toESM(require("node:fs"), 1);
153349
153364
  import_node_module23 = require("node:module");
153350
153365
  import_node_path172 = __toESM(require("node:path"), 1);
@@ -153700,7 +153715,7 @@ async function readManagedExpoIdentity(root, platform3, iosTarget, bridgeOrigin)
153700
153715
  url.searchParams.set("root", root);
153701
153716
  const response = await nodeHttpFetch(url.href);
153702
153717
  if (response.ok && response.headers.get("content-type") === revisionType) {
153703
- const environment = (0, import_node_crypto104.createHash)("sha256").update(JSON.stringify(Object.entries(process.env).sort())).digest("hex");
153718
+ const environment = (0, import_node_crypto103.createHash)("sha256").update(JSON.stringify(Object.entries(process.env).sort())).digest("hex");
153704
153719
  const inputs2 = Buffer.from(
153705
153720
  JSON.stringify([
153706
153721
  await response.text(),
@@ -153756,11 +153771,11 @@ function handleManagedExpoInputs(req, res, url) {
153756
153771
  res.writeHead(200, { "Content-Type": revisionType });
153757
153772
  res.end(revision);
153758
153773
  }
153759
- var import_node_crypto104, import_node_fs171, import_node_path174, revisionType;
153774
+ var import_node_crypto103, import_node_fs171, import_node_path174, revisionType;
153760
153775
  var init_managed_expo_identity = __esm({
153761
153776
  "src/managed-expo-identity.ts"() {
153762
153777
  "use strict";
153763
- import_node_crypto104 = require("node:crypto");
153778
+ import_node_crypto103 = require("node:crypto");
153764
153779
  import_node_fs171 = __toESM(require("node:fs"), 1);
153765
153780
  import_node_path174 = __toESM(require("node:path"), 1);
153766
153781
  init_backend_origin();
@@ -153988,8 +154003,8 @@ async function stagePreparedExpoWidgetAssets(preparedApp, origin) {
153988
154003
  const ext = import_node_path177.default.extname(file);
153989
154004
  if (ext.toLowerCase() === ".svg") return stageCatalogSvg(file, scale, origin, bytes);
153990
154005
  if (ext.toLowerCase() === ".pdf") {
153991
- const sha2565 = (0, import_node_crypto105.createHash)("sha256").update(bytes).digest("hex");
153992
- const png = rasterizePdfFiles([{ file: members2.get(file), sha256: sha2565 }]).get(sha2565);
154006
+ const sha2564 = (0, import_node_crypto104.createHash)("sha256").update(bytes).digest("hex");
154007
+ const png = rasterizePdfFiles([{ file: members2.get(file), sha256: sha2564 }]).get(sha2564);
153993
154008
  return stageHostBytes(png, origin, ".png");
153994
154009
  }
153995
154010
  return stageHostBytes(bytes, origin, ext);
@@ -154001,11 +154016,11 @@ async function stageExpoWidgetAssets(appRoot, origin) {
154001
154016
  const prepared = await prepareExpoNativeProject(appRoot);
154002
154017
  return stagePreparedExpoWidgetAssets(prepared.app, origin);
154003
154018
  }
154004
- var import_node_crypto105, import_node_fs173, import_node_path177;
154019
+ var import_node_crypto104, import_node_fs173, import_node_path177;
154005
154020
  var init_expo_widget_assets = __esm({
154006
154021
  "src/expo-widget-assets.ts"() {
154007
154022
  "use strict";
154008
- import_node_crypto105 = require("node:crypto");
154023
+ import_node_crypto104 = require("node:crypto");
154009
154024
  import_node_fs173 = __toESM(require("node:fs"), 1);
154010
154025
  import_node_path177 = __toESM(require("node:path"), 1);
154011
154026
  init_app_catalog();
@@ -154060,11 +154075,11 @@ async function trunkSpecification(lockFile, root, version2, checksum) {
154060
154075
  "specifications",
154061
154076
  `${checksum}.json`
154062
154077
  );
154063
- const sha1 = (value) => (0, import_node_crypto106.createHash)("sha1").update(value).digest("hex");
154078
+ const sha1 = (value) => (0, import_node_crypto105.createHash)("sha1").update(value).digest("hex");
154064
154079
  let text7;
154065
154080
  if (import_node_fs174.default.existsSync(file)) text7 = import_node_fs174.default.readFileSync(file, "utf8");
154066
154081
  else {
154067
- const shard2 = (0, import_node_crypto106.createHash)("md5").update(root).digest("hex").slice(0, 3).split("").join("/");
154082
+ const shard2 = (0, import_node_crypto105.createHash)("md5").update(root).digest("hex").slice(0, 3).split("").join("/");
154068
154083
  const specPath = `Specs/${shard2}/${root}/${version2}/${root}.podspec.json`;
154069
154084
  const response = await fetch(`https://cdn.cocoapods.org/${specPath}`);
154070
154085
  if (!response.ok)
@@ -154193,7 +154208,7 @@ async function collectSwiftSourcePods(lockFile, modules, moduleRoot, headerModul
154193
154208
  "end",
154194
154209
  ""
154195
154210
  ].join("\n");
154196
- const key2 = (0, import_node_crypto106.createHash)("sha256").update(project).update(podfile).update(JSON.stringify([...selected].sort(([a], [b]) => a.localeCompare(b)))).update(
154211
+ const key2 = (0, import_node_crypto105.createHash)("sha256").update(project).update(podfile).update(JSON.stringify([...selected].sort(([a], [b]) => a.localeCompare(b)))).update(
154197
154212
  JSON.stringify(
154198
154213
  Object.entries(specificationChecksums).sort(([a], [b]) => a.localeCompare(b))
154199
154214
  )
@@ -154262,11 +154277,11 @@ async function collectSwiftSourcePods(lockFile, modules, moduleRoot, headerModul
154262
154277
  );
154263
154278
  });
154264
154279
  }
154265
- var import_node_crypto106, import_node_fs174, import_node_path178, APP, record5, project, podModuleName;
154280
+ var import_node_crypto105, import_node_fs174, import_node_path178, APP, record5, project, podModuleName;
154266
154281
  var init_swift_source_pods = __esm({
154267
154282
  "src/swift-source-pods.ts"() {
154268
154283
  "use strict";
154269
- import_node_crypto106 = require("node:crypto");
154284
+ import_node_crypto105 = require("node:crypto");
154270
154285
  import_node_fs174 = __toESM(require("node:fs"), 1);
154271
154286
  import_node_path178 = __toESM(require("node:path"), 1);
154272
154287
  init_browser();
@@ -154947,7 +154962,7 @@ async function prepareNitroCompileInput(options2) {
154947
154962
  input.libraries ??= {};
154948
154963
  input.libraries[nitroProviderTarget({ name: name3 })] = library;
154949
154964
  }
154950
- const key2 = (0, import_node_crypto107.createHash)("sha256").update(
154965
+ const key2 = (0, import_node_crypto106.createHash)("sha256").update(
154951
154966
  collection.providers.map(({ root, hybridObjects }) => `${root}\0${hybridObjects.join(",")}`).join("\0")
154952
154967
  ).update("\0").update(import_node_fs175.default.realpathSync(options2.moduleRoot)).update("\0").update(options2.configuration).digest("hex");
154953
154968
  const packagePath = import_node_path179.default.join(import_node_os36.default.tmpdir(), "peach-nitro-swift", key2, `p${process.pid}`);
@@ -155003,11 +155018,11 @@ function nitrogenGeneratedSources(podDirectory) {
155003
155018
  ...sources(import_node_path179.default.join(generated, "ios"), /\.(h|hpp|c|cpp|mm|swift)$/)
155004
155019
  ];
155005
155020
  }
155006
- var import_node_crypto107, import_node_fs175, import_node_os36, import_node_path179, BUNDLED_CXX_NAMESPACES, REACT_INCLUDE_PATTERN, REACT_LINKING_PATTERN, REACT_VERSION_PATTERN, RN_HEADER_DIR_MAP, RN_COMMON_ROOTS;
155021
+ var import_node_crypto106, import_node_fs175, import_node_os36, import_node_path179, BUNDLED_CXX_NAMESPACES, REACT_INCLUDE_PATTERN, REACT_LINKING_PATTERN, REACT_VERSION_PATTERN, RN_HEADER_DIR_MAP, RN_COMMON_ROOTS;
155007
155022
  var init_nitro_compile = __esm({
155008
155023
  "src/nitro-compile.ts"() {
155009
155024
  "use strict";
155010
- import_node_crypto107 = require("node:crypto");
155025
+ import_node_crypto106 = require("node:crypto");
155011
155026
  import_node_fs175 = __toESM(require("node:fs"), 1);
155012
155027
  import_node_os36 = __toESM(require("node:os"), 1);
155013
155028
  import_node_path179 = __toESM(require("node:path"), 1);
@@ -155084,11 +155099,11 @@ var init_nitro_compile = __esm({
155084
155099
  });
155085
155100
 
155086
155101
  // src/nitro-compiler-digest.ts
155087
- var import_node_crypto108, import_node_fs176, import_node_path180;
155102
+ var import_node_crypto107, import_node_fs176, import_node_path180;
155088
155103
  var init_nitro_compiler_digest = __esm({
155089
155104
  "src/nitro-compiler-digest.ts"() {
155090
155105
  "use strict";
155091
- import_node_crypto108 = require("node:crypto");
155106
+ import_node_crypto107 = require("node:crypto");
155092
155107
  import_node_fs176 = require("node:fs");
155093
155108
  import_node_path180 = __toESM(require("node:path"), 1);
155094
155109
  init_swift_compiler_digest();
@@ -155226,7 +155241,7 @@ var init_nitro_superset = __esm({
155226
155241
  init_nitroContract();
155227
155242
  init_swift_standin_digest();
155228
155243
  NITRO_SUPERSET_ENTRY_NAME = "superset";
155229
- NITRO_COMPILER_DIGEST = true ? "474b8b30de1650e72f19b75c50a0db7090ddaffdf79752b283fb389946014fa7" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
155244
+ NITRO_COMPILER_DIGEST = true ? "9e51ce132e701d77aa700249b4788f66b041f8f00fbd0bac84d9a3c8ed3a7569" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
155230
155245
  nitroSupersetLock = parseLock(nitro_superset_lock_default);
155231
155246
  nitroSupersetKey = (inputs2) => nativeEntryKey({ ...inputs2, compiler: NITRO_COMPILER_DIGEST });
155232
155247
  published3 = /* @__PURE__ */ new Map();
@@ -155592,7 +155607,7 @@ async function compilePreparedOneSDKApp(appRoot, preparedRoot, origin, moduleRoo
155592
155607
  const packagePath = import_node_path184.default.join(
155593
155608
  swiftCacheDir(),
155594
155609
  "peach-one-sdk-swift",
155595
- (0, import_node_crypto109.createHash)("sha256").update(import_node_fs179.default.realpathSync(appRoot)).digest("hex").slice(0, 16),
155610
+ (0, import_node_crypto108.createHash)("sha256").update(import_node_fs179.default.realpathSync(appRoot)).digest("hex").slice(0, 16),
155596
155611
  "sdk"
155597
155612
  );
155598
155613
  const bindingFlags = optimize ? '["-suppress-warnings"]' : '["-suppress-warnings", "-Onone", "-no-whole-module-optimization"]';
@@ -155639,11 +155654,11 @@ async function buildOneSDKBundle(appRoot) {
155639
155654
  assets: await compiledModuleAssets(compiled.artifact)
155640
155655
  };
155641
155656
  }
155642
- var import_node_crypto109, import_node_fs179, import_node_path184, ONE_SDK_ROUTE, handleOneSDKRequest;
155657
+ var import_node_crypto108, import_node_fs179, import_node_path184, ONE_SDK_ROUTE, handleOneSDKRequest;
155643
155658
  var init_one_sdk_bundle = __esm({
155644
155659
  "src/one-sdk-bundle.ts"() {
155645
155660
  "use strict";
155646
- import_node_crypto109 = require("node:crypto");
155661
+ import_node_crypto108 = require("node:crypto");
155647
155662
  import_node_fs179 = __toESM(require("node:fs"), 1);
155648
155663
  import_node_path184 = __toESM(require("node:path"), 1);
155649
155664
  init_one_sdk_shard();
@@ -156361,7 +156376,7 @@ function writeSharedDesktopAuthSession(session) {
156361
156376
  validatedAt: session.validatedAt ?? same?.validatedAt,
156362
156377
  accountId: session.accountId?.trim() || same?.accountId
156363
156378
  };
156364
- const temporary = `${filepath}.${process.pid}.${(0, import_node_crypto110.randomUUID)()}.tmp`;
156379
+ const temporary = `${filepath}.${process.pid}.${(0, import_node_crypto109.randomUUID)()}.tmp`;
156365
156380
  try {
156366
156381
  (0, import_node_fs183.writeFileSync)(temporary, JSON.stringify(normalized, null, 2) + "\n", {
156367
156382
  mode: 384,
@@ -156413,11 +156428,11 @@ async function refreshSharedDesktopAuthSession(originOverride) {
156413
156428
  return readSharedDesktopAuthSession();
156414
156429
  }
156415
156430
  }
156416
- var import_node_crypto110, import_node_fs183, import_node_path189, SESSION_VERSION, SESSION_FILE_ENV, DEFAULT_ORIGIN;
156431
+ var import_node_crypto109, import_node_fs183, import_node_path189, SESSION_VERSION, SESSION_FILE_ENV, DEFAULT_ORIGIN;
156417
156432
  var init_shared_session = __esm({
156418
156433
  "src/auth/shared-session.ts"() {
156419
156434
  "use strict";
156420
- import_node_crypto110 = require("node:crypto");
156435
+ import_node_crypto109 = require("node:crypto");
156421
156436
  import_node_fs183 = require("node:fs");
156422
156437
  import_node_path189 = require("node:path");
156423
156438
  init_home_paths();
@@ -156458,7 +156473,7 @@ var init_run_rnx = __esm({
156458
156473
  // cli/secure-file.ts
156459
156474
  function writeSecureJsonAtomic(filepath, value, { durable = true } = {}) {
156460
156475
  (0, import_node_fs184.mkdirSync)((0, import_node_path190.dirname)(filepath), { recursive: true });
156461
- const temporary = `${filepath}.tmp-${process.pid}-${(0, import_node_crypto111.randomUUID)()}`;
156476
+ const temporary = `${filepath}.tmp-${process.pid}-${(0, import_node_crypto110.randomUUID)()}`;
156462
156477
  let descriptor = null;
156463
156478
  try {
156464
156479
  descriptor = (0, import_node_fs184.openSync)(temporary, "wx", 384);
@@ -156475,11 +156490,11 @@ function writeSecureJsonAtomic(filepath, value, { durable = true } = {}) {
156475
156490
  throw error;
156476
156491
  }
156477
156492
  }
156478
- var import_node_crypto111, import_node_fs184, import_node_path190;
156493
+ var import_node_crypto110, import_node_fs184, import_node_path190;
156479
156494
  var init_secure_file = __esm({
156480
156495
  "cli/secure-file.ts"() {
156481
156496
  "use strict";
156482
- import_node_crypto111 = require("node:crypto");
156497
+ import_node_crypto110 = require("node:crypto");
156483
156498
  import_node_fs184 = require("node:fs");
156484
156499
  import_node_path190 = require("node:path");
156485
156500
  }
@@ -157272,6 +157287,11 @@ async function sha256HexBytes(bytes) {
157272
157287
  for (const byte of new Uint8Array(digest3)) hex += byte.toString(16).padStart(2, "0");
157273
157288
  return hex;
157274
157289
  }
157290
+ async function sha256Hex3(input) {
157291
+ return sha256HexBytes(
157292
+ typeof input === "string" ? new TextEncoder().encode(input) : input
157293
+ );
157294
+ }
157275
157295
  async function assertSelfContainedMetroArtifactAssets(bundle) {
157276
157296
  return visitVerifiedMetroArtifactAssets(
157277
157297
  bundle,
@@ -157371,24 +157391,24 @@ async function separateMetroArtifactAssets(bundle) {
157371
157391
  entry = { fileUris: [], fileHashes: [], scales: descriptor.scales };
157372
157392
  entries2.set(key2, entry);
157373
157393
  }
157374
- const sha2565 = descriptor.fileHashes?.[index];
157394
+ const sha2564 = descriptor.fileHashes?.[index];
157375
157395
  const scale = descriptor.scales[index];
157376
- if (!sha2565 || scale === void 0) {
157396
+ if (!sha2564 || scale === void 0) {
157377
157397
  throw new Error("verified Metro asset variant is incomplete");
157378
157398
  }
157379
157399
  const filename = metroAssetScaleFilename(descriptor.name, descriptor.type, scale);
157380
- const uri = `${PEACH_BUNDLE_ASSET_PREFIX}${sha2565}/${encodeURIComponent(filename)}`;
157400
+ const uri = `${PEACH_BUNDLE_ASSET_PREFIX}${sha2564}/${encodeURIComponent(filename)}`;
157381
157401
  if (!resources.has(uri)) {
157382
157402
  resources.set(uri, {
157383
157403
  uri,
157384
- sha256: sha2565,
157404
+ sha256: sha2564,
157385
157405
  contentType: metroAssetContentType(descriptor.type),
157386
157406
  bytes,
157387
157407
  byteLength: bytes.byteLength
157388
157408
  });
157389
157409
  }
157390
157410
  entry.fileUris.push(uri);
157391
- entry.fileHashes.push(sha2565);
157411
+ entry.fileHashes.push(sha2564);
157392
157412
  },
157393
157413
  (site) => {
157394
157414
  const entry = entries2.get(assetDescriptorKey(site.descriptor));
@@ -158684,7 +158704,7 @@ async function buildRnxCloudArtifact(bundle, options2 = {}) {
158684
158704
  }
158685
158705
  const composed = composeRnxCloudDebugSourceMap(bundleSourceMap, sections);
158686
158706
  sourceMap = {
158687
- id: `sha256:${await sha256HexBytes(new TextEncoder().encode(composed.json))}`,
158707
+ id: `sha256:${await sha256Hex3(composed.json)}`,
158688
158708
  bytes: composed.bytes,
158689
158709
  json: composed.json,
158690
158710
  resolved: composed.resolved,
@@ -158705,7 +158725,7 @@ async function buildRnxCloudArtifact(bundle, options2 = {}) {
158705
158725
  version: 2,
158706
158726
  mode,
158707
158727
  source: {
158708
- sha256: await sha256HexBytes(new TextEncoder().encode(bundle)),
158728
+ sha256: await sha256Hex3(bundle),
158709
158729
  bytes: Buffer.byteLength(bundle, "utf8")
158710
158730
  },
158711
158731
  modules,
@@ -158716,7 +158736,7 @@ async function buildRnxCloudArtifact(bundle, options2 = {}) {
158716
158736
  assets: { ...assets2, encodedBytes: artifactEncoded },
158717
158737
  debug: sourceMap ? { sourceMap: { id: sourceMap.id, bytes: sourceMap.bytes } } : null,
158718
158738
  artifact: {
158719
- sha256: await sha256HexBytes(new TextEncoder().encode(code)),
158739
+ sha256: await sha256Hex3(code),
158720
158740
  bytes: artifactBytes
158721
158741
  }
158722
158742
  }
@@ -158988,7 +159008,7 @@ function projectSessionFile() {
158988
159008
  }
158989
159009
  dir = parent;
158990
159010
  }
158991
- const key2 = (0, import_node_crypto112.createHash)("sha256").update(dir).digest("hex").slice(0, 32);
159011
+ const key2 = (0, import_node_crypto111.createHash)("sha256").update(dir).digest("hex").slice(0, 32);
158992
159012
  return (0, import_node_path192.join)(rnxHomeDir(), "remote-sessions", `${key2}.json`);
158993
159013
  }
158994
159014
  function readCloudSession() {
@@ -159002,11 +159022,11 @@ function readCloudSession() {
159002
159022
  }
159003
159023
  return parseCloudSession(saved.session);
159004
159024
  }
159005
- var import_node_crypto112, import_node_fs186, import_node_path192, CLOUD_SESSION_VERSION, MAX_ENCODED_SESSION_BYTES, PEACH_CLOUD_SESSION_ENV, RNX_SHELL_UPDATE_PREFIX, RNX_SHELL_UPDATE_SET_PREFIX, RNX_SHELL_UPDATE_UNSET, PROJECT_MARKERS;
159025
+ var import_node_crypto111, import_node_fs186, import_node_path192, CLOUD_SESSION_VERSION, MAX_ENCODED_SESSION_BYTES, PEACH_CLOUD_SESSION_ENV, RNX_SHELL_UPDATE_PREFIX, RNX_SHELL_UPDATE_SET_PREFIX, RNX_SHELL_UPDATE_UNSET, PROJECT_MARKERS;
159006
159026
  var init_cloud_session = __esm({
159007
159027
  "cli/cloud-session.ts"() {
159008
159028
  "use strict";
159009
- import_node_crypto112 = require("node:crypto");
159029
+ import_node_crypto111 = require("node:crypto");
159010
159030
  import_node_fs186 = require("node:fs");
159011
159031
  import_node_path192 = require("node:path");
159012
159032
  init_backend_origin();
@@ -159888,7 +159908,7 @@ function listMetroAssetDest(assetsPath) {
159888
159908
  return { directory: directory2, files: files2, truncated };
159889
159909
  }
159890
159910
  function metroDescriptorHash(scaleBytes) {
159891
- const hasher = (0, import_node_crypto113.createHash)("md5");
159911
+ const hasher = (0, import_node_crypto112.createHash)("md5");
159892
159912
  for (const bytes of scaleBytes) hasher.update(bytes);
159893
159913
  return hasher.digest("hex");
159894
159914
  }
@@ -159917,7 +159937,7 @@ function distinctByContent(directory2, options2) {
159917
159937
  } catch {
159918
159938
  continue;
159919
159939
  }
159920
- const digest3 = (0, import_node_crypto113.createHash)("md5").update(bytes).digest("hex");
159940
+ const digest3 = (0, import_node_crypto112.createHash)("md5").update(bytes).digest("hex");
159921
159941
  if (!byContent.has(digest3)) byContent.set(digest3, relative8);
159922
159942
  }
159923
159943
  return [...byContent.values()];
@@ -159965,7 +159985,7 @@ function placeMetroDescriptor(listing, descriptor) {
159965
159985
  continue;
159966
159986
  }
159967
159987
  const identical = fileHashes2 ? bytes.every((file, index) => {
159968
- const digest3 = (0, import_node_crypto113.createHash)("md5").update(file).digest("hex");
159988
+ const digest3 = (0, import_node_crypto112.createHash)("md5").update(file).digest("hex");
159969
159989
  return descriptor.scales.some(
159970
159990
  (scale, declared) => scale === scales[index] && fileHashes2[declared] === digest3
159971
159991
  );
@@ -159990,7 +160010,7 @@ function unverifiedContentKey(dest, fileDigests2) {
159990
160010
  const file = (0, import_node_path194.join)(dest.directory, relative8);
159991
160011
  let digest3 = fileDigests2.get(file);
159992
160012
  if (digest3 === void 0) {
159993
- digest3 = (0, import_node_crypto113.createHash)("sha256").update((0, import_node_fs188.readFileSync)(file)).digest("hex");
160013
+ digest3 = (0, import_node_crypto112.createHash)("sha256").update((0, import_node_fs188.readFileSync)(file)).digest("hex");
159994
160014
  fileDigests2.set(file, digest3);
159995
160015
  }
159996
160016
  return [scale, digest3];
@@ -160145,17 +160165,17 @@ async function producePreviewArtifact(bundlePath) {
160145
160165
  prepared.code
160146
160166
  );
160147
160167
  const bytes = Buffer.from(annotated, "utf8");
160148
- const sha2565 = (0, import_node_crypto113.createHash)("sha256").update(bytes).digest("hex");
160168
+ const sha2564 = (0, import_node_crypto112.createHash)("sha256").update(bytes).digest("hex");
160149
160169
  return {
160150
160170
  bytes,
160151
- sha256: sha2565,
160171
+ sha256: sha2564,
160152
160172
  minified: false,
160153
160173
  receipt: {
160154
160174
  source: {
160155
- sha256: (0, import_node_crypto113.createHash)("sha256").update(prepared.source).digest("hex"),
160175
+ sha256: (0, import_node_crypto112.createHash)("sha256").update(prepared.source).digest("hex"),
160156
160176
  bytes: Buffer.byteLength(prepared.source, "utf8")
160157
160177
  },
160158
- artifact: { sha256: sha2565, bytes: bytes.byteLength }
160178
+ artifact: { sha256: sha2564, bytes: bytes.byteLength }
160159
160179
  },
160160
160180
  warnings: prepared.search.unconfirmed && prepared.dest ? [
160161
160181
  `peach preview could not authenticate asset hashes in ${prepared.dest.directory}; confirm these are the assets this bundle was built against.`
@@ -160308,7 +160328,7 @@ async function produceArtifact(prepared, maxBytes, command) {
160308
160328
  }
160309
160329
  return {
160310
160330
  bytes,
160311
- sha256: (0, import_node_crypto113.createHash)("sha256").update(bytes).digest("hex"),
160331
+ sha256: (0, import_node_crypto112.createHash)("sha256").update(bytes).digest("hex"),
160312
160332
  receipt: artifact.receipt,
160313
160333
  assetsDirectory: prepared.dest?.directory ?? null,
160314
160334
  warnings
@@ -160824,11 +160844,11 @@ async function closeCloudSession(session) {
160824
160844
  throw responseError(response.status, text7);
160825
160845
  }
160826
160846
  }
160827
- var import_node_crypto113, import_node_fs188, import_node_path194, import_node_vm, DEFAULT_RNX_CLOUD_ORIGIN, MAX_RNX_CLOUD_BUNDLE_BYTES, REMOTE_COMMAND, PREVIEW_COMMAND, NanoDevelopmentOnlyError, UnsupportedRemoteHostError, MAX_ASSET_DEST_FILES, ACCOUNT_CHOICE_REFUSALS, PROJECT_ONLY_DIRECTORIES, MAX_PLACEMENT_COMBINATIONS, REMOTE_HAS_NO_LOCAL_SIMS, CloudBridge, CloudBoxBridge, SceneBridge, BoxBootFailedError, BOX_BOOT_WAIT_MS;
160847
+ var import_node_crypto112, import_node_fs188, import_node_path194, import_node_vm, DEFAULT_RNX_CLOUD_ORIGIN, MAX_RNX_CLOUD_BUNDLE_BYTES, REMOTE_COMMAND, PREVIEW_COMMAND, NanoDevelopmentOnlyError, UnsupportedRemoteHostError, MAX_ASSET_DEST_FILES, ACCOUNT_CHOICE_REFUSALS, PROJECT_ONLY_DIRECTORIES, MAX_PLACEMENT_COMBINATIONS, REMOTE_HAS_NO_LOCAL_SIMS, CloudBridge, CloudBoxBridge, SceneBridge, BoxBootFailedError, BOX_BOOT_WAIT_MS;
160828
160848
  var init_cloud_client = __esm({
160829
160849
  "cli/cloud-client.ts"() {
160830
160850
  "use strict";
160831
- import_node_crypto113 = require("node:crypto");
160851
+ import_node_crypto112 = require("node:crypto");
160832
160852
  import_node_fs188 = require("node:fs");
160833
160853
  import_node_path194 = require("node:path");
160834
160854
  import_node_vm = require("node:vm");
@@ -160901,7 +160921,7 @@ var init_cloud_client = __esm({
160901
160921
  const timeoutMs = options2?.timeoutMs ?? this.explicitTimeoutMs ?? options2?.defaultTimeoutMs;
160902
160922
  const agent = commandAgent(command);
160903
160923
  const body = {
160904
- id: (0, import_node_crypto113.randomUUID)(),
160924
+ id: (0, import_node_crypto112.randomUUID)(),
160905
160925
  claimId: this.session.claimId,
160906
160926
  command: cloudCommand(agent ? { ...command, agent } : command)
160907
160927
  };
@@ -160971,7 +160991,7 @@ var init_cloud_client = __esm({
160971
160991
  plane = "cloud";
160972
160992
  async send(command, options2) {
160973
160993
  const timeoutMs = options2?.timeoutMs ?? this.explicitTimeoutMs ?? options2?.defaultTimeoutMs;
160974
- const id = (0, import_node_crypto113.randomUUID)();
160994
+ const id = (0, import_node_crypto112.randomUUID)();
160975
160995
  const agent = commandAgent(command);
160976
160996
  const payload = cloudCommand(agent ? { ...command, agent } : command);
160977
160997
  let response;
@@ -165107,11 +165127,11 @@ function splashImageUrls(spec) {
165107
165127
  if (spec.dark?.backgroundImageUrl) urls.add(spec.dark.backgroundImageUrl);
165108
165128
  return [...urls];
165109
165129
  }
165110
- var import_node_crypto114, import_node_module29, require2;
165130
+ var import_node_crypto113, import_node_module29, require2;
165111
165131
  var init_app_splash = __esm({
165112
165132
  "cli/app-splash.ts"() {
165113
165133
  "use strict";
165114
- import_node_crypto114 = require("node:crypto");
165134
+ import_node_crypto113 = require("node:crypto");
165115
165135
  import_node_module29 = require("node:module");
165116
165136
  init_backend_origin();
165117
165137
  init_cli_runtime();
@@ -165165,7 +165185,7 @@ function extractAppBinaryBundle(binary2) {
165165
165185
  );
165166
165186
  const sidecar = import_node_path199.default.posix.dirname(manifestEntry);
165167
165187
  const appRoot = import_node_path199.default.posix.dirname(sidecar);
165168
- const digest3 = (0, import_node_crypto115.createHash)("sha256").update(import_node_fs193.default.readFileSync(file)).digest("hex");
165188
+ const digest3 = (0, import_node_crypto114.createHash)("sha256").update(import_node_fs193.default.readFileSync(file)).digest("hex");
165169
165189
  const out = import_node_path199.default.join(cacheDir(), "app-binaries", digest3);
165170
165190
  const bundlePath = import_node_path199.default.join(out, "main.js");
165171
165191
  const extracted = import_node_path199.default.join(out, "extracted");
@@ -165183,7 +165203,7 @@ function extractAppBinaryBundle(binary2) {
165183
165203
  const bundle = (0, import_node_zlib12.brotliDecompressSync)(
165184
165204
  import_node_fs193.default.readFileSync(import_node_path199.default.join(extracted, sidecar, PEACH_SIDECAR_BUNDLE))
165185
165205
  );
165186
- if ((0, import_node_crypto115.createHash)("sha256").update(bundle).digest("hex") !== manifest.bundleSha256)
165206
+ if ((0, import_node_crypto114.createHash)("sha256").update(bundle).digest("hex") !== manifest.bundleSha256)
165187
165207
  throw new Error(`${binary2}: the peach sidecar bundle does not match its manifest`);
165188
165208
  const assets2 = manifest.platform === "ios" ? import_node_path199.default.join(extracted, appRoot, "assets") : import_node_path199.default.join(extracted, sidecar, PEACH_SIDECAR_ASSETS);
165189
165209
  if (import_node_fs193.default.existsSync(assets2)) import_node_fs193.default.renameSync(assets2, import_node_path199.default.join(out, "assets"));
@@ -165203,12 +165223,12 @@ function extractAppBinaryBundle(binary2) {
165203
165223
  );
165204
165224
  return { bundlePath, platform: platform3 };
165205
165225
  }
165206
- var import_node_child_process81, import_node_crypto115, import_node_fs193, import_node_path199, import_node_zlib12;
165226
+ var import_node_child_process81, import_node_crypto114, import_node_fs193, import_node_path199, import_node_zlib12;
165207
165227
  var init_binary_sidecar = __esm({
165208
165228
  "cli/binary-sidecar.ts"() {
165209
165229
  "use strict";
165210
165230
  import_node_child_process81 = require("node:child_process");
165211
- import_node_crypto115 = require("node:crypto");
165231
+ import_node_crypto114 = require("node:crypto");
165212
165232
  import_node_fs193 = __toESM(require("node:fs"), 1);
165213
165233
  import_node_path199 = __toESM(require("node:path"), 1);
165214
165234
  import_node_zlib12 = require("node:zlib");
@@ -166044,7 +166064,7 @@ var init_core = __esm({
166044
166064
  // cli/output-redaction.ts
166045
166065
  function mask(value) {
166046
166066
  if (MASKED.test(value)) return value;
166047
- return `<redacted:${(0, import_node_crypto116.createHash)("sha256").update(value).digest("hex").slice(0, 4)}>`;
166067
+ return `<redacted:${(0, import_node_crypto115.createHash)("sha256").update(value).digest("hex").slice(0, 4)}>`;
166048
166068
  }
166049
166069
  function maskQuoted(quoted2) {
166050
166070
  return `${quoted2[0]}${mask(quoted2.slice(1, -1))}${quoted2[0]}`;
@@ -166166,11 +166186,11 @@ function redactText(text7, configurationOnly, decodedString = false) {
166166
166186
  (line, prefix, name3, value) => SECRET_NAME.test(name3) ? `${prefix}${mask(value)}` : line
166167
166187
  ).replace(EMAIL, mask).replace(OPAQUE_ID, mask);
166168
166188
  }
166169
- var import_node_crypto116, import_node_util26, SECRET_NAME, JWT, GOOGLE_API_KEY, BEARER, EMAIL, OPAQUE_ID, STRING, NUMBER, PAIR2, STRING_TOKEN, QUERY_PAIR, HEADER_LINE, MASKED, CONFIG_CONTAINER, utf8;
166189
+ var import_node_crypto115, import_node_util26, SECRET_NAME, JWT, GOOGLE_API_KEY, BEARER, EMAIL, OPAQUE_ID, STRING, NUMBER, PAIR2, STRING_TOKEN, QUERY_PAIR, HEADER_LINE, MASKED, CONFIG_CONTAINER, utf8;
166170
166190
  var init_output_redaction = __esm({
166171
166191
  "cli/output-redaction.ts"() {
166172
166192
  "use strict";
166173
- import_node_crypto116 = require("node:crypto");
166193
+ import_node_crypto115 = require("node:crypto");
166174
166194
  import_node_util26 = require("node:util");
166175
166195
  init_config();
166176
166196
  SECRET_NAME = /^(?:[\w-]*(?:api[-_]?key|token|secret|password|passwd|authorization|cookie|signature|credential)s?|auth|sig|email|uid|[\w-]*(?:user|account|local|device|installation|client|app|project|sender|measurement|tenant)[-_]?id)$/i;
@@ -166673,7 +166693,7 @@ function macDesktopLaunchHome(bridgePort) {
166673
166693
  const dev = readDevBridgeLockfiles().find(
166674
166694
  (lock) => lock.bridgePort === bridgePort && isDevBridgeLockfileFresh(lock)
166675
166695
  );
166676
- const homeKey = (0, import_node_crypto117.createHash)("sha256").update(home).digest("hex");
166696
+ const homeKey = (0, import_node_crypto116.createHash)("sha256").update(home).digest("hex");
166677
166697
  const dir = (0, import_path7.join)((0, import_os4.tmpdir)(), "peach-desktop-launch", homeKey, String(bridgePort));
166678
166698
  (0, import_fs8.mkdirSync)(dir, { recursive: true });
166679
166699
  if ((0, import_fs8.existsSync)(home)) {
@@ -166779,13 +166799,13 @@ function buildMacLaunchUrl(url, opts, nativeApp = false) {
166779
166799
  }
166780
166800
  return deepLink.toString();
166781
166801
  }
166782
- var import_child_process6, import_fs8, import_node_crypto117, import_os4, import_path7, import_url2, import_meta2, _sootsimRoot;
166802
+ var import_child_process6, import_fs8, import_node_crypto116, import_os4, import_path7, import_url2, import_meta2, _sootsimRoot;
166783
166803
  var init_desktop_companion = __esm({
166784
166804
  "cli/desktop-companion.ts"() {
166785
166805
  "use strict";
166786
166806
  import_child_process6 = require("child_process");
166787
166807
  import_fs8 = require("fs");
166788
- import_node_crypto117 = require("node:crypto");
166808
+ import_node_crypto116 = require("node:crypto");
166789
166809
  import_os4 = require("os");
166790
166810
  import_path7 = require("path");
166791
166811
  import_url2 = require("url");
@@ -167520,11 +167540,11 @@ function trackCliDiagnostic(diagnostic) {
167520
167540
  timestamp: (/* @__PURE__ */ new Date()).toISOString()
167521
167541
  });
167522
167542
  }
167523
- var import_node_crypto118, import_node_fs194, import_node_os38, observedRuntimeVersion, queue, CRASH_REPORT_EVERY_MS;
167543
+ var import_node_crypto117, import_node_fs194, import_node_os38, observedRuntimeVersion, queue, CRASH_REPORT_EVERY_MS;
167524
167544
  var init_telemetry = __esm({
167525
167545
  "cli/telemetry.ts"() {
167526
167546
  "use strict";
167527
- import_node_crypto118 = require("node:crypto");
167547
+ import_node_crypto117 = require("node:crypto");
167528
167548
  import_node_fs194 = require("node:fs");
167529
167549
  import_node_os38 = require("node:os");
167530
167550
  init_event_identity();
@@ -173280,18 +173300,18 @@ function stageAppBundleResources(appDir, origin, iosTarget, environment) {
173280
173300
  const content = bytes[index];
173281
173301
  result[base2] = {
173282
173302
  uri: urls[index],
173283
- sha256: (0, import_node_crypto119.createHash)("sha256").update(content).digest("hex"),
173303
+ sha256: (0, import_node_crypto118.createHash)("sha256").update(content).digest("hex"),
173284
173304
  contentType: preferredMimeType(base2) ?? "application/octet-stream",
173285
173305
  byteLength: content.byteLength
173286
173306
  };
173287
173307
  });
173288
173308
  return result;
173289
173309
  }
173290
- var import_node_crypto119, import_node_fs197, import_node_path201;
173310
+ var import_node_crypto118, import_node_fs197, import_node_path201;
173291
173311
  var init_app_bundle_resources = __esm({
173292
173312
  "cli/app-bundle-resources.ts"() {
173293
173313
  "use strict";
173294
- import_node_crypto119 = require("node:crypto");
173314
+ import_node_crypto118 = require("node:crypto");
173295
173315
  import_node_fs197 = __toESM(require("node:fs"), 1);
173296
173316
  import_node_path201 = __toESM(require("node:path"), 1);
173297
173317
  init_uttype_mime();
@@ -173429,7 +173449,7 @@ function materialSymbolFontAssets(fontPaths) {
173429
173449
  const directory2 = import_node_path202.default.dirname(selected[0]);
173430
173450
  const codepointsFile = import_node_path202.default.join(directory2, "MaterialSymbols.codepoints");
173431
173451
  const mirroredFile = import_node_path202.default.join(directory2, "MaterialSymbols.mirrored");
173432
- const digest3 = (0, import_node_crypto120.createHash)("md5");
173452
+ const digest3 = (0, import_node_crypto119.createHash)("md5");
173433
173453
  for (const asset of [...selected, codepointsFile, mirroredFile].sort(
173434
173454
  (a, b) => import_node_path202.default.basename(a) < import_node_path202.default.basename(b) ? -1 : import_node_path202.default.basename(a) > import_node_path202.default.basename(b) ? 1 : 0
173435
173455
  )) {
@@ -173441,11 +173461,11 @@ function materialSymbolFontAssets(fontPaths) {
173441
173461
  mirroredPath: mirroredFile
173442
173462
  };
173443
173463
  }
173444
- var import_node_crypto120, import_node_fs198, import_node_module30, import_node_path202;
173464
+ var import_node_crypto119, import_node_fs198, import_node_module30, import_node_path202;
173445
173465
  var init_material_symbol_fonts2 = __esm({
173446
173466
  "cli/material-symbol-fonts.ts"() {
173447
173467
  "use strict";
173448
- import_node_crypto120 = require("node:crypto");
173468
+ import_node_crypto119 = require("node:crypto");
173449
173469
  import_node_fs198 = __toESM(require("node:fs"), 1);
173450
173470
  import_node_module30 = require("node:module");
173451
173471
  import_node_path202 = __toESM(require("node:path"), 1);
@@ -173684,11 +173704,11 @@ function discoverNativeLinkedAppFontAssets(opts) {
173684
173704
  materialSymbols: materialSymbolFontAssets(materialFonts)
173685
173705
  };
173686
173706
  }
173687
- var import_node_crypto121, import_node_fs199, import_node_module31, import_node_path203, require3;
173707
+ var import_node_crypto120, import_node_fs199, import_node_module31, import_node_path203, require3;
173688
173708
  var init_app_fonts = __esm({
173689
173709
  "cli/app-fonts.ts"() {
173690
173710
  "use strict";
173691
- import_node_crypto121 = require("node:crypto");
173711
+ import_node_crypto120 = require("node:crypto");
173692
173712
  import_node_fs199 = __toESM(require("node:fs"), 1);
173693
173713
  import_node_module31 = require("node:module");
173694
173714
  import_node_path203 = __toESM(require("node:path"), 1);
@@ -174903,11 +174923,11 @@ async function stageMetroBundleAssets(bundleFile, source, origin) {
174903
174923
  return import_node_fs201.default.readFileSync(import_node_path205.default.join(search.dest.directory, relative8));
174904
174924
  });
174905
174925
  const verified2 = perFile && hashes ? bytes.every((content, i) => {
174906
- const hash = (0, import_node_crypto122.createHash)("md5").update(content).digest("hex");
174926
+ const hash = (0, import_node_crypto121.createHash)("md5").update(content).digest("hex");
174907
174927
  return descriptor.scales.some(
174908
174928
  (scale, j) => scale === scales[i] && hashes[j] === hash
174909
174929
  );
174910
- }) : scales.length === descriptor.scales.length && (0, import_node_crypto122.createHash)("md5").update(Buffer.concat(bytes)).digest("hex") === descriptor.hash;
174930
+ }) : scales.length === descriptor.scales.length && (0, import_node_crypto121.createHash)("md5").update(Buffer.concat(bytes)).digest("hex") === descriptor.hash;
174911
174931
  if (!verified2)
174912
174932
  throw new Error(`Metro asset changed while staging: ${descriptor.name}`);
174913
174933
  scales.forEach((scale, i) => {
@@ -174934,11 +174954,11 @@ async function stageMetroBundleAssets(bundleFile, source, origin) {
174934
174954
  });
174935
174955
  stageHostMetroAssets(staged, origin);
174936
174956
  }
174937
- var import_node_crypto122, import_node_fs201, import_node_path205;
174957
+ var import_node_crypto121, import_node_fs201, import_node_path205;
174938
174958
  var init_metro_bundle_assets = __esm({
174939
174959
  "cli/metro-bundle-assets.ts"() {
174940
174960
  "use strict";
174941
- import_node_crypto122 = require("node:crypto");
174961
+ import_node_crypto121 = require("node:crypto");
174942
174962
  import_node_fs201 = __toESM(require("node:fs"), 1);
174943
174963
  import_node_path205 = __toESM(require("node:path"), 1);
174944
174964
  init_metroAssetArtifact();
@@ -175103,7 +175123,7 @@ async function signIn(origin, requestedAccount, chooseLater, announce) {
175103
175123
  ` dev-login not available (${devResult.error}); falling back to browser`
175104
175124
  );
175105
175125
  }
175106
- const state = (0, import_node_crypto123.randomBytes)(16).toString("hex");
175126
+ const state = (0, import_node_crypto122.randomBytes)(16).toString("hex");
175107
175127
  const LOGIN_TIMEOUT_MS = 5 * 60 * 1e3;
175108
175128
  const result = await new Promise((resolve16) => {
175109
175129
  let timer;
@@ -175212,11 +175232,11 @@ async function signIn(origin, requestedAccount, chooseLater, announce) {
175212
175232
  dev: false
175213
175233
  };
175214
175234
  }
175215
- var import_node_crypto123, import_node_http4, import_promises21, REMOTE_DEFAULT_ORIGIN, DEV_LOGIN_WARMUP_MS;
175235
+ var import_node_crypto122, import_node_http4, import_promises21, REMOTE_DEFAULT_ORIGIN, DEV_LOGIN_WARMUP_MS;
175216
175236
  var init_login = __esm({
175217
175237
  "cli/commands/login.ts"() {
175218
175238
  "use strict";
175219
- import_node_crypto123 = require("node:crypto");
175239
+ import_node_crypto122 = require("node:crypto");
175220
175240
  import_node_http4 = __toESM(require("node:http"), 1);
175221
175241
  import_promises21 = require("node:readline/promises");
175222
175242
  init_shared_session();
@@ -175428,7 +175448,7 @@ async function requireAccount(commandLabel, options2 = {}, signedInAgain = false
175428
175448
  if (auth.kind === "github") return;
175429
175449
  const header = authHeaderValue(auth);
175430
175450
  const origin = await billingOriginFor(auth);
175431
- const credential = (0, import_node_crypto124.createHash)("sha256").update(`${origin}
175451
+ const credential = (0, import_node_crypto123.createHash)("sha256").update(`${origin}
175432
175452
  ${header}`).digest("hex");
175433
175453
  const check2 = readCheck();
175434
175454
  const known = check2?.credential === credential ? check2 : null;
@@ -175476,11 +175496,11 @@ ${header}`).digest("hex");
175476
175496
  `${name3} could not reach ${origin} to verify your account${status ? ` (${status})` : ""}; connect once and run it again`
175477
175497
  );
175478
175498
  }
175479
- var import_node_crypto124, import_node_fs202, import_node_path206, import_zod5, REFRESH_AFTER_MS, VALID_FOR_MS, VERIFY_TIMEOUT_MS, checkSchema, ACCOUNT_REQUIRED_HINT, waitlistedSchema;
175499
+ var import_node_crypto123, import_node_fs202, import_node_path206, import_zod5, REFRESH_AFTER_MS, VALID_FOR_MS, VERIFY_TIMEOUT_MS, checkSchema, ACCOUNT_REQUIRED_HINT, waitlistedSchema;
175480
175500
  var init_account_gate = __esm({
175481
175501
  "cli/account-gate.ts"() {
175482
175502
  "use strict";
175483
- import_node_crypto124 = require("node:crypto");
175503
+ import_node_crypto123 = require("node:crypto");
175484
175504
  import_node_fs202 = require("node:fs");
175485
175505
  import_node_path206 = __toESM(require("node:path"), 1);
175486
175506
  import_zod5 = require("peachsim/vendor/zod");