peachsim 0.1.2794 → 0.1.2796

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 (128) 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 +28 -12
  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 +2 -2
  25. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  26. package/dist-lib/esm-chunks/{acorn-A7OMJDVK.mjs → acorn-LGYLFTQF.mjs} +3 -3
  27. package/dist-lib/esm-chunks/{chunk-O6HHWO4Y.mjs → chunk-2UTO2QW2.mjs} +1 -1
  28. package/dist-lib/esm-chunks/{chunk-PRYC6EMT.mjs → chunk-4J7QOPIH.mjs} +1 -1
  29. package/dist-lib/esm-chunks/{chunk-GDITZ3K2.mjs → chunk-77KB3ZBF.mjs} +1 -1
  30. package/dist-lib/esm-chunks/{chunk-DLEQ5NZ5.mjs → chunk-AKH4PWFC.mjs} +4 -4
  31. package/dist-lib/esm-chunks/{chunk-AW4Z3K2U.mjs → chunk-AURXY7QP.mjs} +1 -1
  32. package/dist-lib/esm-chunks/{chunk-B3E5ZI2D.mjs → chunk-DASJWAFL.mjs} +1 -1
  33. package/dist-lib/esm-chunks/{chunk-Y6YMRYNX.mjs → chunk-DH7VXRT5.mjs} +6 -6
  34. package/dist-lib/esm-chunks/{chunk-E6KA576K.mjs → chunk-E4KRMCKF.mjs} +1 -1
  35. package/dist-lib/esm-chunks/{chunk-7QNWHCMJ.mjs → chunk-ECG2J3FW.mjs} +14 -14
  36. package/dist-lib/esm-chunks/{chunk-GHGDWJY3.mjs → chunk-GAVBUMYM.mjs} +6 -6
  37. package/dist-lib/esm-chunks/{chunk-OS6YJU3W.mjs → chunk-GXBLVJLK.mjs} +1 -1
  38. package/dist-lib/esm-chunks/{chunk-CIR4VZ22.mjs → chunk-IW3Z5CFY.mjs} +1 -1
  39. package/dist-lib/esm-chunks/{chunk-KVFRYFZI.mjs → chunk-JL62TC2M.mjs} +1 -1
  40. package/dist-lib/esm-chunks/{chunk-2TCGEMEV.mjs → chunk-JOHIOAUI.mjs} +5 -5
  41. package/dist-lib/esm-chunks/{chunk-ANIC22U3.mjs → chunk-K2O3T3CR.mjs} +1 -1
  42. package/dist-lib/esm-chunks/{chunk-CIFEHSEA.mjs → chunk-KLOUSUR3.mjs} +2 -2
  43. package/dist-lib/esm-chunks/{chunk-K7RLWF5X.mjs → chunk-N5LC6Q5M.mjs} +1 -1
  44. package/dist-lib/esm-chunks/{chunk-TJULYSLY.mjs → chunk-NMDEKORZ.mjs} +1 -1
  45. package/dist-lib/esm-chunks/{chunk-NKJ67PFZ.mjs → chunk-Q4ZN4ZNT.mjs} +1 -1
  46. package/dist-lib/esm-chunks/{chunk-ZTDPCBGG.mjs → chunk-QIBSBBCZ.mjs} +3 -3
  47. package/dist-lib/esm-chunks/{chunk-35HEHEYA.mjs → chunk-RUKVZLWD.mjs} +1 -1
  48. package/dist-lib/esm-chunks/{chunk-R6ES6QCH.mjs → chunk-UAORSBAW.mjs} +1 -1
  49. package/dist-lib/esm-chunks/{chunk-V6BE34Q3.mjs → chunk-UM2EOZPN.mjs} +1 -1
  50. package/dist-lib/esm-chunks/{chunk-5RQ3U7WK.mjs → chunk-UTGV76KG.mjs} +1 -1
  51. package/dist-lib/esm-chunks/{metro-layout-parser-WG2ITRQD.mjs → metro-layout-parser-B7M4QJAA.mjs} +3 -3
  52. package/dist-lib/esm-chunks/{swift-package-prebuilt-DN7G5XKR.mjs → swift-package-prebuilt-OJSQGRC4.mjs} +12 -12
  53. package/dist-lib/esm-chunks/{swift-sdk-app-module-3DB4F4Y2.mjs → swift-sdk-app-module-NLXV7PCK.mjs} +16 -16
  54. package/dist-lib/esm-chunks/{swift-sdk-image-JTYM3OQY.mjs → swift-sdk-image-HZOL57ES.mjs} +16 -16
  55. package/dist-lib/esm-chunks/{swift-sdk-image-producer-QQUODPXF.mjs → swift-sdk-image-producer-LRFR4ZI2.mjs} +5 -5
  56. package/dist-lib/expo-swift-bundle.cjs +27 -11
  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 +28 -12
  61. package/dist-lib/host/fetch-proxy-handler.cjs +3 -3
  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 +1 -1
  75. package/dist-lib/native-app-identity-project.mjs +15 -15
  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 +46 -27
  81. package/dist-lib/pdfium-raster.mjs +47 -28
  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 +87 -86
  87. package/dist-lib/public-origins-lib.json +67 -65
  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 +36 -12
  95. package/dist-lib/swift-compile.cjs +1 -1
  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/style/style-field-hash.d.ts +1 -1
  123. package/dist-types/packages/peach-engine/src/render-worker/native-hot-ops.d.ts +3 -3
  124. package/dist-types/packages/peach-globals/src/fnv1a.d.ts +4 -0
  125. package/package.json +1 -1
  126. package/runtime-companion.json +1 -1
  127. package/src/expo-swift-host.ts +31 -9
  128. package/src/pdfium-raster.ts +1 -58
@@ -1,8 +1,8 @@
1
- /*! peach v0.1.2794 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2796 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  import {
3
3
  findBundleFooter
4
- } from "./esm-chunks/chunk-KVFRYFZI.mjs";
5
- import "./esm-chunks/chunk-V6BE34Q3.mjs";
4
+ } from "./esm-chunks/chunk-JL62TC2M.mjs";
5
+ import "./esm-chunks/chunk-UM2EOZPN.mjs";
6
6
 
7
7
  // src/metro-production-bundle.ts
8
8
  var RNXSIM_METRO_MODULE_PATHS_PREFIX = "globalThis.__sootsimModulePaths=";
@@ -131,7 +131,7 @@ function metroCalls(expression) {
131
131
  return [];
132
132
  }
133
133
  async function readRNXMetroBundleLayout(source) {
134
- const { loadMetroLayoutParser } = await import("./esm-chunks/metro-layout-parser-WG2ITRQD.mjs");
134
+ const { loadMetroLayoutParser } = await import("./esm-chunks/metro-layout-parser-B7M4QJAA.mjs");
135
135
  const MetroLayoutParser = await loadMetroLayoutParser();
136
136
  const program = MetroLayoutParser.parse(source, {
137
137
  ecmaVersion: "latest",
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2794 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2796 | (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;
@@ -1,25 +1,25 @@
1
- /*! peach v0.1.2794 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2796 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  import {
3
3
  swiftNativePin
4
- } from "./esm-chunks/chunk-2TCGEMEV.mjs";
5
- import "./esm-chunks/chunk-NKJ67PFZ.mjs";
6
- import "./esm-chunks/chunk-E6KA576K.mjs";
4
+ } from "./esm-chunks/chunk-JOHIOAUI.mjs";
5
+ import "./esm-chunks/chunk-Q4ZN4ZNT.mjs";
6
+ import "./esm-chunks/chunk-E4KRMCKF.mjs";
7
7
  import {
8
8
  NATIVE_GRAPH_SDK_VERSION,
9
9
  cacheDir,
10
10
  sha256Hex
11
- } from "./esm-chunks/chunk-Y6YMRYNX.mjs";
11
+ } from "./esm-chunks/chunk-DH7VXRT5.mjs";
12
12
  import {
13
13
  privateSwiftRelease,
14
14
  swiftEnvironment,
15
15
  swiftToolchainBin
16
- } from "./esm-chunks/chunk-CIR4VZ22.mjs";
17
- import "./esm-chunks/chunk-B3E5ZI2D.mjs";
16
+ } from "./esm-chunks/chunk-IW3Z5CFY.mjs";
17
+ import "./esm-chunks/chunk-DASJWAFL.mjs";
18
18
  import {
19
19
  SWIFT_OBJCXX_LANGUAGE_FLAG,
20
20
  isSwiftNativeTranslationUnit,
21
21
  moduleMapName
22
- } from "./esm-chunks/chunk-R6ES6QCH.mjs";
22
+ } from "./esm-chunks/chunk-UAORSBAW.mjs";
23
23
  import {
24
24
  androidMergedResourceValuesDirectory,
25
25
  extractNativeAppIdentityFromFiles,
@@ -37,22 +37,22 @@ import {
37
37
  xcodeBuildFileBuildsForIos,
38
38
  xcodePathResolver,
39
39
  xcodeTargetMemberVisitor
40
- } from "./esm-chunks/chunk-DLEQ5NZ5.mjs";
41
- import "./esm-chunks/chunk-AW4Z3K2U.mjs";
40
+ } from "./esm-chunks/chunk-AKH4PWFC.mjs";
41
+ import "./esm-chunks/chunk-AURXY7QP.mjs";
42
42
  import {
43
43
  buildPlist,
44
44
  parsePlist,
45
45
  parsePlistSource,
46
46
  parseXmlPlist
47
- } from "./esm-chunks/chunk-35HEHEYA.mjs";
48
- import "./esm-chunks/chunk-O6HHWO4Y.mjs";
49
- import "./esm-chunks/chunk-KVFRYFZI.mjs";
47
+ } from "./esm-chunks/chunk-RUKVZLWD.mjs";
48
+ import "./esm-chunks/chunk-2UTO2QW2.mjs";
49
+ import "./esm-chunks/chunk-JL62TC2M.mjs";
50
50
  import {
51
51
  isRecord
52
- } from "./esm-chunks/chunk-K7RLWF5X.mjs";
52
+ } from "./esm-chunks/chunk-N5LC6Q5M.mjs";
53
53
  import {
54
54
  __publicField
55
- } from "./esm-chunks/chunk-V6BE34Q3.mjs";
55
+ } from "./esm-chunks/chunk-UM2EOZPN.mjs";
56
56
 
57
57
  // src/native-app-identity-project.ts
58
58
  import fs8 from "node:fs";
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2794 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2796 | (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 __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2794 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2796 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  import {
3
3
  NATIVE_APP_IDENTITY_HEADER,
4
4
  applyNativeAppIdentity,
@@ -22,11 +22,11 @@ import {
22
22
  readRootModuleName,
23
23
  readSiriEntitlement,
24
24
  selectNativeAppIdentityReader
25
- } from "./esm-chunks/chunk-DLEQ5NZ5.mjs";
26
- import "./esm-chunks/chunk-AW4Z3K2U.mjs";
27
- import "./esm-chunks/chunk-KVFRYFZI.mjs";
28
- import "./esm-chunks/chunk-K7RLWF5X.mjs";
29
- import "./esm-chunks/chunk-V6BE34Q3.mjs";
25
+ } from "./esm-chunks/chunk-AKH4PWFC.mjs";
26
+ import "./esm-chunks/chunk-AURXY7QP.mjs";
27
+ import "./esm-chunks/chunk-JL62TC2M.mjs";
28
+ import "./esm-chunks/chunk-N5LC6Q5M.mjs";
29
+ import "./esm-chunks/chunk-UM2EOZPN.mjs";
30
30
  export {
31
31
  NATIVE_APP_IDENTITY_HEADER,
32
32
  applyNativeAppIdentity,
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2794 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2796 | (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 __defProp = Object.defineProperty;
@@ -1,8 +1,8 @@
1
- /*! peach v0.1.2794 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2796 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  import {
3
3
  findBundleFooter
4
- } from "./esm-chunks/chunk-KVFRYFZI.mjs";
5
- import "./esm-chunks/chunk-V6BE34Q3.mjs";
4
+ } from "./esm-chunks/chunk-JL62TC2M.mjs";
5
+ import "./esm-chunks/chunk-UM2EOZPN.mjs";
6
6
 
7
7
  // src/native-firebase-metadata.ts
8
8
  var PREFIX = "globalThis.__peachNativeFirebaseConfig=";
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2794 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2796 | (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 __defProp = Object.defineProperty;
@@ -27,52 +27,71 @@ __export(pdfium_raster_exports, {
27
27
  });
28
28
  module.exports = __toCommonJS(pdfium_raster_exports);
29
29
  var import_inline = require("@hyzyla/pdfium/inline");
30
- var CRC_TABLE = Uint32Array.from({ length: 256 }, (_, n) => {
31
- let c = n;
32
- for (let k = 0; k < 8; k++) c = c & 1 ? 3988292384 ^ c >>> 1 : c >>> 1;
33
- return c >>> 0;
30
+
31
+ // ../peach-globals/src/png.ts
32
+ var PNG_SIGNATURE = new Uint8Array([
33
+ 137,
34
+ 80,
35
+ 78,
36
+ 71,
37
+ 13,
38
+ 10,
39
+ 26,
40
+ 10
41
+ ]);
42
+ var CRC_TABLE = Uint32Array.from({ length: 256 }, (_, index) => {
43
+ let value = index;
44
+ for (let bit = 0; bit < 8; bit++)
45
+ value = value & 1 ? 3988292384 ^ value >>> 1 : value >>> 1;
46
+ return value >>> 0;
34
47
  });
35
48
  function crc32(bytes) {
36
- let c = 4294967295;
37
- for (const byte of bytes) c = CRC_TABLE[(c ^ byte) & 255] ^ c >>> 8;
38
- return (c ^ 4294967295) >>> 0;
49
+ let value = 4294967295;
50
+ for (let i = 0; i < bytes.length; i++)
51
+ value = CRC_TABLE[(value ^ bytes[i]) & 255] ^ value >>> 8;
52
+ return (value ^ 4294967295) >>> 0;
39
53
  }
40
- function chunk(type, data) {
54
+ function pngChunk(type, data, checksum = crc32) {
41
55
  const out = new Uint8Array(12 + data.length);
42
56
  const view = new DataView(out.buffer);
43
57
  view.setUint32(0, data.length);
44
58
  for (let i = 0; i < 4; i++) out[4 + i] = type.charCodeAt(i);
45
59
  out.set(data, 8);
46
- view.setUint32(8 + data.length, crc32(out.subarray(4, 8 + data.length)));
60
+ view.setUint32(8 + data.length, checksum(out.subarray(4, 8 + data.length)));
47
61
  return out;
48
62
  }
49
- async function deflate(bytes) {
50
- const stream = new Blob([Uint8Array.from(bytes)]).stream().pipeThrough(new CompressionStream("deflate"));
51
- return new Uint8Array(await new Response(stream).arrayBuffer());
52
- }
53
- async function encodeRgbaPng(width, height, rgba) {
54
- const raw = new Uint8Array((width * 4 + 1) * height);
55
- for (let y = 0; y < height; y++)
56
- raw.set(rgba.subarray(y * width * 4, (y + 1) * width * 4), y * (width * 4 + 1) + 1);
63
+ function encodePngFromScanlines(width, height, colorType, deflatedScanlines, checksum = crc32) {
57
64
  const header = new Uint8Array(13);
58
65
  const view = new DataView(header.buffer);
59
66
  view.setUint32(0, width);
60
67
  view.setUint32(4, height);
61
- header.set([8, 6, 0, 0, 0], 8);
62
- const parts = [
63
- new Uint8Array([137, 80, 78, 71, 13, 10, 26, 10]),
64
- chunk("IHDR", header),
65
- chunk("IDAT", await deflate(raw)),
66
- chunk("IEND", new Uint8Array(0))
67
- ];
68
- const png = new Uint8Array(parts.reduce((total, part) => total + part.length, 0));
68
+ header.set([8, colorType, 0, 0, 0], 8);
69
+ const ihdr = pngChunk("IHDR", header, checksum);
70
+ const idat = pngChunk("IDAT", deflatedScanlines, checksum);
71
+ const iend = pngChunk("IEND", new Uint8Array(0), checksum);
72
+ const png = new Uint8Array(
73
+ PNG_SIGNATURE.length + ihdr.length + idat.length + iend.length
74
+ );
69
75
  let offset = 0;
70
- for (const part of parts) {
76
+ for (const part of [PNG_SIGNATURE, ihdr, idat, iend]) {
71
77
  png.set(part, offset);
72
78
  offset += part.length;
73
79
  }
74
80
  return png;
75
81
  }
82
+ async function deflateZlib(bytes) {
83
+ const stream = new Blob([bytes]).stream().pipeThrough(new CompressionStream("deflate"));
84
+ return new Uint8Array(await new Response(stream).arrayBuffer());
85
+ }
86
+ async function encodeRgbaPng(width, height, rgba) {
87
+ const stride = width * 4;
88
+ const raw = new Uint8Array((stride + 1) * height);
89
+ for (let y = 0; y < height; y++)
90
+ raw.set(rgba.subarray(y * stride, (y + 1) * stride), y * (stride + 1) + 1);
91
+ return encodePngFromScanlines(width, height, 6, await deflateZlib(raw));
92
+ }
93
+
94
+ // src/pdfium-raster.ts
76
95
  async function rasterizePage(library, pdf, scale) {
77
96
  const document = await library.loadDocument(pdf);
78
97
  try {
@@ -1,54 +1,73 @@
1
- /*! peach v0.1.2794 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
- import "./esm-chunks/chunk-V6BE34Q3.mjs";
1
+ /*! peach v0.1.2796 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
+ import "./esm-chunks/chunk-UM2EOZPN.mjs";
3
3
 
4
4
  // src/pdfium-raster.ts
5
5
  import { PDFiumLibrary } from "@hyzyla/pdfium/inline";
6
- var CRC_TABLE = Uint32Array.from({ length: 256 }, (_, n) => {
7
- let c = n;
8
- for (let k = 0; k < 8; k++) c = c & 1 ? 3988292384 ^ c >>> 1 : c >>> 1;
9
- return c >>> 0;
6
+
7
+ // ../peach-globals/src/png.ts
8
+ var PNG_SIGNATURE = new Uint8Array([
9
+ 137,
10
+ 80,
11
+ 78,
12
+ 71,
13
+ 13,
14
+ 10,
15
+ 26,
16
+ 10
17
+ ]);
18
+ var CRC_TABLE = Uint32Array.from({ length: 256 }, (_, index) => {
19
+ let value = index;
20
+ for (let bit = 0; bit < 8; bit++)
21
+ value = value & 1 ? 3988292384 ^ value >>> 1 : value >>> 1;
22
+ return value >>> 0;
10
23
  });
11
24
  function crc32(bytes) {
12
- let c = 4294967295;
13
- for (const byte of bytes) c = CRC_TABLE[(c ^ byte) & 255] ^ c >>> 8;
14
- return (c ^ 4294967295) >>> 0;
25
+ let value = 4294967295;
26
+ for (let i = 0; i < bytes.length; i++)
27
+ value = CRC_TABLE[(value ^ bytes[i]) & 255] ^ value >>> 8;
28
+ return (value ^ 4294967295) >>> 0;
15
29
  }
16
- function chunk(type, data) {
30
+ function pngChunk(type, data, checksum = crc32) {
17
31
  const out = new Uint8Array(12 + data.length);
18
32
  const view = new DataView(out.buffer);
19
33
  view.setUint32(0, data.length);
20
34
  for (let i = 0; i < 4; i++) out[4 + i] = type.charCodeAt(i);
21
35
  out.set(data, 8);
22
- view.setUint32(8 + data.length, crc32(out.subarray(4, 8 + data.length)));
36
+ view.setUint32(8 + data.length, checksum(out.subarray(4, 8 + data.length)));
23
37
  return out;
24
38
  }
25
- async function deflate(bytes) {
26
- const stream = new Blob([Uint8Array.from(bytes)]).stream().pipeThrough(new CompressionStream("deflate"));
27
- return new Uint8Array(await new Response(stream).arrayBuffer());
28
- }
29
- async function encodeRgbaPng(width, height, rgba) {
30
- const raw = new Uint8Array((width * 4 + 1) * height);
31
- for (let y = 0; y < height; y++)
32
- raw.set(rgba.subarray(y * width * 4, (y + 1) * width * 4), y * (width * 4 + 1) + 1);
39
+ function encodePngFromScanlines(width, height, colorType, deflatedScanlines, checksum = crc32) {
33
40
  const header = new Uint8Array(13);
34
41
  const view = new DataView(header.buffer);
35
42
  view.setUint32(0, width);
36
43
  view.setUint32(4, height);
37
- header.set([8, 6, 0, 0, 0], 8);
38
- const parts = [
39
- new Uint8Array([137, 80, 78, 71, 13, 10, 26, 10]),
40
- chunk("IHDR", header),
41
- chunk("IDAT", await deflate(raw)),
42
- chunk("IEND", new Uint8Array(0))
43
- ];
44
- const png = new Uint8Array(parts.reduce((total, part) => total + part.length, 0));
44
+ header.set([8, colorType, 0, 0, 0], 8);
45
+ const ihdr = pngChunk("IHDR", header, checksum);
46
+ const idat = pngChunk("IDAT", deflatedScanlines, checksum);
47
+ const iend = pngChunk("IEND", new Uint8Array(0), checksum);
48
+ const png = new Uint8Array(
49
+ PNG_SIGNATURE.length + ihdr.length + idat.length + iend.length
50
+ );
45
51
  let offset = 0;
46
- for (const part of parts) {
52
+ for (const part of [PNG_SIGNATURE, ihdr, idat, iend]) {
47
53
  png.set(part, offset);
48
54
  offset += part.length;
49
55
  }
50
56
  return png;
51
57
  }
58
+ async function deflateZlib(bytes) {
59
+ const stream = new Blob([bytes]).stream().pipeThrough(new CompressionStream("deflate"));
60
+ return new Uint8Array(await new Response(stream).arrayBuffer());
61
+ }
62
+ async function encodeRgbaPng(width, height, rgba) {
63
+ const stride = width * 4;
64
+ const raw = new Uint8Array((stride + 1) * height);
65
+ for (let y = 0; y < height; y++)
66
+ raw.set(rgba.subarray(y * stride, (y + 1) * stride), y * (stride + 1) + 1);
67
+ return encodePngFromScanlines(width, height, 6, await deflateZlib(raw));
68
+ }
69
+
70
+ // src/pdfium-raster.ts
52
71
  async function rasterizePage(library, pdf, scale) {
53
72
  const document = await library.loadDocument(pdf);
54
73
  try {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2794 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2796 | (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 __defProp = Object.defineProperty;
@@ -1,11 +1,11 @@
1
- /*! peach v0.1.2794 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2796 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  import {
3
3
  buildPlist,
4
4
  parsePlist,
5
5
  parsePlistSource,
6
6
  parseXmlPlist
7
- } from "./esm-chunks/chunk-35HEHEYA.mjs";
8
- import "./esm-chunks/chunk-V6BE34Q3.mjs";
7
+ } from "./esm-chunks/chunk-RUKVZLWD.mjs";
8
+ import "./esm-chunks/chunk-UM2EOZPN.mjs";
9
9
  export {
10
10
  buildPlist as build,
11
11
  buildPlist,
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2794 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2796 | (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;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2794 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2796 | (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 __defProp = Object.defineProperty;