Corresponding source for the Pet Shop browser Director runtime

Upstream: https://github.com/igorlira/dirplayer-rs
Pinned commit: 68376fbb4494a6bbad4c70081ecdcb99814a74c9
License: GPL-3.0-only; see dirplayer-rs/LICENSE.

The dirplayer-rs directory is a snapshot of the actual patched source, including
new Rust modules and the official JavaScript API. Proprietary game media, game
movies/casts, .git directories and credentials are excluded. reproduction/ has
the build script, compatibility patches and documentation used by this project.

To compile this snapshot directly, install Rust with wasm32-unknown-unknown and
wasm-bindgen-cli version 0.2.108. Then run from dirplayer-rs/vm-rust:

CARGO_PROFILE_DEV_OPT_LEVEL=2 CARGO_PROFILE_DEV_DEBUG=0 CARGO_PROFILE_DEV_CODEGEN_UNITS=32 CARGO_BUILD_JOBS=2 cargo build --locked --lib --target wasm32-unknown-unknown
wasm-bindgen target/wasm32-unknown-unknown/debug/vm_rust.wasm --out-dir ../../runner --target web

Copy dirplayer-js-api/index.js to runner/dirplayer-js-api.js. Replace ONLY module
import specifiers 'dirplayer-js-api' in runner/vm_rust.js with the relative module
specifier './dirplayer-js-api.js'. The production asset preparation script makes
that exact change. This keeps one module instance for callbacks/preferences.
Dependencies are pinned by Cargo.lock; cargo obtains those dependencies from
their upstream registries. No original game assets are needed to compile.

For the clean-checkout workflow, clone the public upstream, check out the pinned
commit, and use reproduction/build.sh with the mode matching the included
patches. This build uses mode movie-memory and optimization 2; pass that optimization as build.sh's fourth argument when supported. The original Cargo.toml keeps dev debug assertions and overflow checks disabled, with dependency optimization 2. These semantics are unchanged by the optimized candidate. Do not apply those patches again to this already-patched snapshot.
