MIT License (scope-limited — read the scope section before assuming this
applies to anything beyond the files explicitly listed below)

Copyright (c) 2026 Sotaro Kato (FileFit)

## Scope

This license applies ONLY to the following files, as distributed inside this
specific package (filefit-heic-decoder-1.0.0-source.tar.gz):

  - README.md
  - BUILD.md
  - REPLACE-WASM.md
  - LICENSE-MAP.md
  - Dockerfile
  - rebuild.sh
  - verify.mjs
  - SOURCE-METADATA.json
  - application-code-candidates/heic-convert.worker.ts

It does NOT apply to, and no permission is granted here for:

  - The FileFit repository as a whole, or any FileFit application code
    outside this package (including FileFit's own copy of
    src/components/image-intake/heic-convert.worker.ts, which this package's
    application-code-candidates/heic-convert.worker.ts is a point-in-time
    copy of -- that repository file's own license status is unchanged by
    this grant; see README.md "FileFit's own code license status").
  - FileFit's user interface, other image-processing features, site design,
    branding, or any other part of the FileFit product.
  - jSquash's files (jsquash/, application-code-candidates/heic_dec.cpp),
    which remain under jSquash's own Apache License 2.0 (see jsquash/LICENSE
    and licenses/apache-2.0.txt).
  - libheif or libde265 (upstream/, and their object code inside any WASM
    built from this package), which remain under their own upstream licenses
    (GNU LGPL v3, or later, for the libraries themselves; MIT for their
    sample applications) -- see licenses/lgpl-3.0.txt and licenses/gpl-3.0.txt.
  - Emscripten runtime support, embind/emval, or musl, which remain under
    their own upstream licenses -- see licenses/mit-emscripten.txt,
    licenses/mit-musl.txt, and licenses/apache-2.0-llvm-exception.txt.

The purpose of this narrow grant is solely to make clear that the files
listed above -- this package's own rebuild/relink/verification support
material -- may be used, copied, and modified for the purpose of rebuilding,
relinking, and verifying the HEIC decoder WASM this package documents,
without requiring separate permission from FileFit for that narrow purpose.
It is not a statement about, and does not change, the license status of any
other FileFit code, and it is not a determination that these files are (or
are not) legally required "Corresponding Application Code" under the GNU
Lesser General Public License -- see README.md and LICENSE-MAP.md for that
discussion.

## Terms

Permission is hereby granted, free of charge, to any person obtaining a copy
of the files listed in the Scope section above, to deal in those files
without restriction, including without limitation the rights to use, copy,
modify, merge, publish, distribute, sublicense, and/or sell copies of those
files, and to permit persons to whom those files are furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of those files.

THOSE FILES ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THOSE FILES OR THE USE OR OTHER DEALINGS IN
THOSE FILES.
