# Third-party notice: heic-to (CSP build)

`heic-to.csp.js` is the unmodified **CSP build** (`dist/csp/heic-to.js`, the package's `heic-to/csp` export) of **heic-to 1.6.7**.

- **Project:** https://github.com/hoppergee/heic-to
  - The README's CSP section says to use `heic-to/csp` when `'unsafe-eval'` isn't allowed.
- **Package:** https://registry.npmjs.org/heic-to/-/heic-to-1.6.7.tgz
  - npm integrity `sha512-GCPYNl86u6eZ7mr2aa+uQB+PrQOVKSBYfH8esovr8kh2c6EYQSDYIJ6uhXSmM2hPC8PdBVJ/Trn0jnfM9H9gvg==`. The download was checked against it on 2026-11-19.
- **SHA-256 of `heic-to.csp.js`:** `e0a515585872c319c601c33551925c9d5fee31746caf0311291ed7e6364c592c`. Checked by `npm run verify:vendor`.
- **Built from:** `src/lib/libheif-without-unsafe-eval.js` in the same package.
  - It contains no `new Function`, `eval` or `WebAssembly`; its decoder is wasm2js JavaScript.
  - It is an ES module exporting `heicTo` and `isHeic`, so pages can keep a strict `script-src` with no `'unsafe-eval'`.
- **License:** GNU LGPL-3.0-or-later. See `LICENSE`, which is byte-identical to the package's. The LGPL-3.0 builds on the GNU GPL-3.0, whose full text is in `COPYING.GPL-3` (the FSF text, SHA-256 `3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986`, checked by `npm run verify:vendor`).
  - It bundles libheif (https://github.com/strukturag/libheif, LGPL-3.0) and libde265 (https://github.com/strukturag/libde265, LGPL-3.0). Their full sources are at those links.
- **How it runs:**
  - It stays a separate, unmodified, replaceable file.
  - It's loaded with a native dynamic `import()`, and only when someone picks a HEIC/HEIF photo.
  - Decoding runs in heic-to's own blob worker (`worker-src blob:`), and nothing is sent anywhere.
- **Replaced:** the earlier IIFE build (`dist/iife/heic-to.js`, SHA-256 `99e4d122…634b3`). Its worker needed `'unsafe-eval'`.
