Patched browser HEIC module: local reproducible build

This package contains exact upstream source archives, original licenses, the selected build flags, wrapper and declaration bridge recipe. PROVENANCE.json identifies libheif1.23.7/libde2651.1.3 and all exact source/tool revisions and expected output hashes. The upstream libheif-js source package remains at its original revision; it is not represented as a newly released upstream libheif-js version.

Prerequisites, supplied separately: Windows64, Python3.12.14, Node24.22.1, official Emscripten/LLVM6.0.13 pinned build, CMake4.4.5, Ninja1.13.2, esbuild0.28.2. The existing SDK cache must contain the selected system libraries; FROZEN_CACHE makes missing entries fail rather than downloading. Tool root has emsdk/upstream, cmake/bin/cmake.exe and ninja/ninja.exe. No WSL, administrator access, global installation or system setting changes are required by this recipe. Do not run unverified tool copies.

For each phase run:
  python build.py --tools ABSOLUTE_TOOL_ROOT --node ABSOLUTE_NODE_EXE --esbuild ABSOLUTE_ESBUILD_MAIN_JS --phase PHASE
Phases in order: prepare, de265-configure, de265-build, de265-install, heif-configure, heif-build, link, package, verify.
Each compiler/link/package command runs in a finite Windows Job Object with kill-on-close, process ceiling32, job-memory ceiling and durable logs. Two compilation workers maximum. No command is automatically retried. On a failed/uncertain phase inspect its reports before any next action. Reusing a completed phase is rejected. Fresh build/state/output must be under this package's build/ directory.

Build.py regenerates no external imports or runtime allowlists. The resulting module embeds its WASM and uses the exact upstream170byte wrapper with browser-only esbuild options. Type output adds the source-derived post.js facade types. The verify phase compares the module/WASM/declaration hashes to PROVENANCE.json. This reproduces one Windows toolchain; it is not proof of all platform behavior, vulnerability absence or legal compliance.

The build directory, reports and resulting binary outputs are local generated material and are excluded from the distributed source archive. Preserve source archives, notices, instructions and the selected replacement ABI when providing a modified library. Site hosting/CSP/cache behavior and the protected old immutable decoder assets need separate review before release. There is no deployment operation in this package.
