# Vendored assets

## mermaid.min.js

- **Version:** mermaid 11.15.0
- **Source:** `npm pack mermaid@11.15.0` → `package/dist/mermaid.min.js`
- **Why this build:** the self-contained UMD bundle (one ~3.2 MB file that exposes
  `globalThis.mermaid`). The ESM build (`mermaid.esm.min.mjs`) splits into ~39 MB
  of relative `chunks/`, which is both far larger to ship and fragile to load over
  a custom URL scheme. The UMD file loads with a single `<script>` tag, fully
  offline, no CDN.

### Updating

```sh
TMP=$(mktemp -d) && (cd "$TMP" && npm pack mermaid@<version> && tar -xzf mermaid-*.tgz)
cp "$TMP/package/dist/mermaid.min.js" Web/mermaid.min.js
```

Then bump the version above and smoke-test rendering in light and dark.
