@osmo.inc/cli 0.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/DEPLOY.md +87 -0
- package/README.md +243 -0
- package/RELEASE.md +164 -0
- package/SETUP.md +60 -0
- package/THIRD_PARTY_NOTICES.md +18 -0
- package/bin/osmo.mjs +12 -0
- package/dist/osmo.js +7817 -0
- package/node_modules/@esbuild/darwin-arm64/README.md +3 -0
- package/node_modules/@esbuild/darwin-arm64/bin/esbuild +0 -0
- package/node_modules/@esbuild/darwin-arm64/package.json +20 -0
- package/node_modules/esbuild/LICENSE.md +21 -0
- package/node_modules/esbuild/README.md +3 -0
- package/node_modules/esbuild/bin/esbuild +223 -0
- package/node_modules/esbuild/install.js +289 -0
- package/node_modules/esbuild/lib/main.d.ts +716 -0
- package/node_modules/esbuild/lib/main.js +2532 -0
- package/node_modules/esbuild/package.json +49 -0
- package/node_modules/fflate/LICENSE +21 -0
- package/node_modules/fflate/esm/index.mjs +2710 -0
- package/node_modules/fflate/package.json +128 -0
- package/node_modules/typescript/LICENSE.txt +55 -0
- package/node_modules/typescript/ThirdPartyNoticeText.txt +193 -0
- package/node_modules/typescript/lib/lib.d.ts +22 -0
- package/node_modules/typescript/lib/lib.decorators.d.ts +384 -0
- package/node_modules/typescript/lib/lib.decorators.legacy.d.ts +22 -0
- package/node_modules/typescript/lib/lib.dom.asynciterable.d.ts +41 -0
- package/node_modules/typescript/lib/lib.dom.d.ts +39429 -0
- package/node_modules/typescript/lib/lib.dom.iterable.d.ts +571 -0
- package/node_modules/typescript/lib/lib.es2015.collection.d.ts +147 -0
- package/node_modules/typescript/lib/lib.es2015.core.d.ts +597 -0
- package/node_modules/typescript/lib/lib.es2015.d.ts +28 -0
- package/node_modules/typescript/lib/lib.es2015.generator.d.ts +77 -0
- package/node_modules/typescript/lib/lib.es2015.iterable.d.ts +605 -0
- package/node_modules/typescript/lib/lib.es2015.promise.d.ts +81 -0
- package/node_modules/typescript/lib/lib.es2015.proxy.d.ts +128 -0
- package/node_modules/typescript/lib/lib.es2015.reflect.d.ts +144 -0
- package/node_modules/typescript/lib/lib.es2015.symbol.d.ts +46 -0
- package/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts +326 -0
- package/node_modules/typescript/lib/lib.es2016.array.include.d.ts +116 -0
- package/node_modules/typescript/lib/lib.es2016.d.ts +21 -0
- package/node_modules/typescript/lib/lib.es2016.full.d.ts +23 -0
- package/node_modules/typescript/lib/lib.es2016.intl.d.ts +31 -0
- package/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts +21 -0
- package/node_modules/typescript/lib/lib.es2017.d.ts +26 -0
- package/node_modules/typescript/lib/lib.es2017.date.d.ts +31 -0
- package/node_modules/typescript/lib/lib.es2017.full.d.ts +23 -0
- package/node_modules/typescript/lib/lib.es2017.intl.d.ts +44 -0
- package/node_modules/typescript/lib/lib.es2017.object.d.ts +49 -0
- package/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts +135 -0
- package/node_modules/typescript/lib/lib.es2017.string.d.ts +45 -0
- package/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts +53 -0
- package/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts +77 -0
- package/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts +53 -0
- package/node_modules/typescript/lib/lib.es2018.d.ts +24 -0
- package/node_modules/typescript/lib/lib.es2018.full.d.ts +24 -0
- package/node_modules/typescript/lib/lib.es2018.intl.d.ts +83 -0
- package/node_modules/typescript/lib/lib.es2018.promise.d.ts +30 -0
- package/node_modules/typescript/lib/lib.es2018.regexp.d.ts +37 -0
- package/node_modules/typescript/lib/lib.es2019.array.d.ts +79 -0
- package/node_modules/typescript/lib/lib.es2019.d.ts +24 -0
- package/node_modules/typescript/lib/lib.es2019.full.d.ts +24 -0
- package/node_modules/typescript/lib/lib.es2019.intl.d.ts +23 -0
- package/node_modules/typescript/lib/lib.es2019.object.d.ts +33 -0
- package/node_modules/typescript/lib/lib.es2019.string.d.ts +37 -0
- package/node_modules/typescript/lib/lib.es2019.symbol.d.ts +24 -0
- package/node_modules/typescript/lib/lib.es2020.bigint.d.ts +765 -0
- package/node_modules/typescript/lib/lib.es2020.d.ts +27 -0
- package/node_modules/typescript/lib/lib.es2020.date.d.ts +42 -0
- package/node_modules/typescript/lib/lib.es2020.full.d.ts +24 -0
- package/node_modules/typescript/lib/lib.es2020.intl.d.ts +474 -0
- package/node_modules/typescript/lib/lib.es2020.number.d.ts +28 -0
- package/node_modules/typescript/lib/lib.es2020.promise.d.ts +47 -0
- package/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts +99 -0
- package/node_modules/typescript/lib/lib.es2020.string.d.ts +44 -0
- package/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts +41 -0
- package/node_modules/typescript/lib/lib.es2021.d.ts +23 -0
- package/node_modules/typescript/lib/lib.es2021.full.d.ts +24 -0
- package/node_modules/typescript/lib/lib.es2021.intl.d.ts +166 -0
- package/node_modules/typescript/lib/lib.es2021.promise.d.ts +48 -0
- package/node_modules/typescript/lib/lib.es2021.string.d.ts +33 -0
- package/node_modules/typescript/lib/lib.es2021.weakref.d.ts +78 -0
- package/node_modules/typescript/lib/lib.es2022.array.d.ts +121 -0
- package/node_modules/typescript/lib/lib.es2022.d.ts +25 -0
- package/node_modules/typescript/lib/lib.es2022.error.d.ts +75 -0
- package/node_modules/typescript/lib/lib.es2022.full.d.ts +24 -0
- package/node_modules/typescript/lib/lib.es2022.intl.d.ts +145 -0
- package/node_modules/typescript/lib/lib.es2022.object.d.ts +26 -0
- package/node_modules/typescript/lib/lib.es2022.regexp.d.ts +39 -0
- package/node_modules/typescript/lib/lib.es2022.string.d.ts +25 -0
- package/node_modules/typescript/lib/lib.es2023.array.d.ts +924 -0
- package/node_modules/typescript/lib/lib.es2023.collection.d.ts +21 -0
- package/node_modules/typescript/lib/lib.es2023.d.ts +22 -0
- package/node_modules/typescript/lib/lib.es2023.full.d.ts +24 -0
- package/node_modules/typescript/lib/lib.es2023.intl.d.ts +56 -0
- package/node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts +65 -0
- package/node_modules/typescript/lib/lib.es2024.collection.d.ts +29 -0
- package/node_modules/typescript/lib/lib.es2024.d.ts +26 -0
- package/node_modules/typescript/lib/lib.es2024.full.d.ts +24 -0
- package/node_modules/typescript/lib/lib.es2024.object.d.ts +29 -0
- package/node_modules/typescript/lib/lib.es2024.promise.d.ts +35 -0
- package/node_modules/typescript/lib/lib.es2024.regexp.d.ts +25 -0
- package/node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts +68 -0
- package/node_modules/typescript/lib/lib.es2024.string.d.ts +29 -0
- package/node_modules/typescript/lib/lib.es5.d.ts +4601 -0
- package/node_modules/typescript/lib/lib.es6.d.ts +23 -0
- package/node_modules/typescript/lib/lib.esnext.array.d.ts +35 -0
- package/node_modules/typescript/lib/lib.esnext.collection.d.ts +96 -0
- package/node_modules/typescript/lib/lib.esnext.d.ts +29 -0
- package/node_modules/typescript/lib/lib.esnext.decorators.d.ts +28 -0
- package/node_modules/typescript/lib/lib.esnext.disposable.d.ts +193 -0
- package/node_modules/typescript/lib/lib.esnext.error.d.ts +24 -0
- package/node_modules/typescript/lib/lib.esnext.float16.d.ts +445 -0
- package/node_modules/typescript/lib/lib.esnext.full.d.ts +24 -0
- package/node_modules/typescript/lib/lib.esnext.intl.d.ts +21 -0
- package/node_modules/typescript/lib/lib.esnext.iterator.d.ts +148 -0
- package/node_modules/typescript/lib/lib.esnext.promise.d.ts +34 -0
- package/node_modules/typescript/lib/lib.esnext.sharedmemory.d.ts +25 -0
- package/node_modules/typescript/lib/lib.scripthost.d.ts +322 -0
- package/node_modules/typescript/lib/lib.webworker.asynciterable.d.ts +41 -0
- package/node_modules/typescript/lib/lib.webworker.d.ts +13150 -0
- package/node_modules/typescript/lib/lib.webworker.importscripts.d.ts +23 -0
- package/node_modules/typescript/lib/lib.webworker.iterable.d.ts +340 -0
- package/node_modules/typescript/lib/typescript.js +382 -0
- package/node_modules/typescript/package.json +57 -0
- package/package.json +54 -0
- package/release.json +136 -0
- package/runtime/apps/native/tools/compile.mjs +217 -0
- package/runtime/packages/scene/scripts/validate-strict.mjs +246 -0
- package/runtime/packages/scene/src/clip.d.mts +14 -0
- package/runtime/packages/scene/src/clip.mjs +15 -0
- package/runtime/packages/scene/src/color-value.d.mts +5 -0
- package/runtime/packages/scene/src/color-value.mjs +19 -0
- package/runtime/packages/scene/src/color.ts +1 -0
- package/runtime/packages/scene/src/effects.ts +213 -0
- package/runtime/packages/scene/src/elements.ts +491 -0
- package/runtime/packages/scene/src/evaluate.ts +919 -0
- package/runtime/packages/scene/src/index.ts +69 -0
- package/runtime/packages/scene/src/jsx-runtime.ts +73 -0
- package/runtime/packages/scene/src/knob-schema.ts +115 -0
- package/runtime/packages/scene/src/knobs.ts +118 -0
- package/runtime/packages/scene/src/mask.d.mts +6 -0
- package/runtime/packages/scene/src/mask.mjs +17 -0
- package/runtime/packages/scene/src/metadata.d.mts +23 -0
- package/runtime/packages/scene/src/metadata.mjs +44 -0
- package/runtime/packages/scene/src/motion-sampling.d.mts +2 -0
- package/runtime/packages/scene/src/motion-sampling.mjs +50 -0
- package/runtime/packages/scene/src/motion.ts +121 -0
- package/runtime/packages/scene/src/shader.ts +57 -0
- package/src/resource-examples/example-image/landscape.svg +7 -0
- package/src/resource-examples/example-image/resource.json +8 -0
- package/src/resource-examples/example-model/gem.glb +0 -0
- package/src/resource-examples/example-model/preview.svg +1 -0
- package/src/resource-examples/example-model/resource.json +7 -0
- package/src/resource-examples/example-scene/resource.json +1 -0
- package/src/resource-examples/example-scene/scene.tsx +8 -0
- package/src/resource-examples/example-shader/effect.wgsl +7 -0
- package/src/resource-examples/example-shader/preview.svg +1 -0
- package/src/resource-examples/example-shader/resource.json +27 -0
- package/src/resource-examples/example-shader/tint.wgsl +7 -0
- package/src/resource-examples/example-video/ambient.mp4 +0 -0
- package/src/resource-examples/example-video/resource.json +9 -0
- package/src/starter/scene.tsx +20 -0
- package/studio/index.html +2 -0
- package/studio/public/check-circle-filled.svg +3 -0
- package/studio/public/comment-cursor/active-outer.svg +3 -0
- package/studio/public/comment-cursor/default.svg +6 -0
- package/studio/public/osmo-studio-logo.svg +12 -0
- package/studio/public/pencil-simple.svg +5 -0
- package/studio/src/active-outer-TVYUEURE.svg +3 -0
- package/studio/src/app.css +4 -0
- package/studio/src/app.js +705 -0
- package/studio/src/default-6CTRH4V5.svg +6 -0
- package/studio/src/engine_bg.wasm +0 -0
- package/studio/src/inter-cyrillic-ext-wght-normal-IYF56FF6.woff2 +0 -0
- package/studio/src/inter-cyrillic-wght-normal-JEOLYBOO.woff2 +0 -0
- package/studio/src/inter-greek-ext-wght-normal-EOVOK2B5.woff2 +0 -0
- package/studio/src/inter-greek-wght-normal-IRE366VL.woff2 +0 -0
- package/studio/src/inter-latin-ext-wght-normal-HA22NDSG.woff2 +0 -0
- package/studio/src/inter-latin-wght-normal-NRMW37G5.woff2 +0 -0
- package/studio/src/inter-vietnamese-wght-normal-CE5GGD3W.woff2 +0 -0
- package/studio/src/osmo-studio-logo-D5R2V77B.svg +12 -0
- package/third-party/cargo/adler2@2.0.1/Cargo.toml +91 -0
- package/third-party/cargo/adler2@2.0.1/LICENSE-0BSD +12 -0
- package/third-party/cargo/adler2@2.0.1/LICENSE-APACHE +201 -0
- package/third-party/cargo/adler2@2.0.1/LICENSE-MIT +23 -0
- package/third-party/cargo/allocator-api2@0.2.21/Cargo.toml +48 -0
- package/third-party/cargo/allocator-api2@0.2.21/LICENSE-APACHE +176 -0
- package/third-party/cargo/allocator-api2@0.2.21/LICENSE-MIT +23 -0
- package/third-party/cargo/arrayref@0.3.9/Cargo.toml +23 -0
- package/third-party/cargo/arrayref@0.3.9/LICENSE +26 -0
- package/third-party/cargo/arrayvec@0.7.8/Cargo.toml +112 -0
- package/third-party/cargo/arrayvec@0.7.8/LICENSE-APACHE +201 -0
- package/third-party/cargo/arrayvec@0.7.8/LICENSE-MIT +25 -0
- package/third-party/cargo/ascii@1.1.0/Cargo.toml +41 -0
- package/third-party/cargo/ascii@1.1.0/LICENSE-APACHE +201 -0
- package/third-party/cargo/ascii@1.1.0/LICENSE-MIT +22 -0
- package/third-party/cargo/ash@0.38.0+1.3.281/Cargo.toml +66 -0
- package/third-party/cargo/ash@0.38.0+1.3.281/LICENSE-APACHE +67 -0
- package/third-party/cargo/ash@0.38.0+1.3.281/LICENSE-MIT +25 -0
- package/third-party/cargo/autocfg@1.5.1/Cargo.toml +75 -0
- package/third-party/cargo/autocfg@1.5.1/LICENSE-APACHE +201 -0
- package/third-party/cargo/autocfg@1.5.1/LICENSE-MIT +25 -0
- package/third-party/cargo/base64@0.13.1/Cargo.toml +53 -0
- package/third-party/cargo/base64@0.13.1/LICENSE-APACHE +201 -0
- package/third-party/cargo/base64@0.13.1/LICENSE-MIT +21 -0
- package/third-party/cargo/base64@0.22.1/Cargo.toml +85 -0
- package/third-party/cargo/base64@0.22.1/LICENSE-APACHE +201 -0
- package/third-party/cargo/base64@0.22.1/LICENSE-MIT +21 -0
- package/third-party/cargo/bit-set@0.10.0/Cargo.toml +108 -0
- package/third-party/cargo/bit-set@0.10.0/LICENSE-APACHE +201 -0
- package/third-party/cargo/bit-set@0.10.0/LICENSE-MIT +25 -0
- package/third-party/cargo/bit-vec@0.9.1/Cargo.toml +94 -0
- package/third-party/cargo/bit-vec@0.9.1/LICENSE-APACHE +201 -0
- package/third-party/cargo/bit-vec@0.9.1/LICENSE-MIT +25 -0
- package/third-party/cargo/bitflags@2.13.0/Cargo.toml +120 -0
- package/third-party/cargo/bitflags@2.13.0/LICENSE-APACHE +201 -0
- package/third-party/cargo/bitflags@2.13.0/LICENSE-MIT +25 -0
- package/third-party/cargo/block2@0.6.2/Cargo.toml +115 -0
- package/third-party/cargo/block2@0.6.2/MIT-terms.txt +22 -0
- package/third-party/cargo/block2@0.6.2/madsmtm-objc2-b4167b582b2f-LICENSE.md +34 -0
- package/third-party/cargo/bumpalo@3.20.3/Cargo.toml +99 -0
- package/third-party/cargo/bumpalo@3.20.3/LICENSE-APACHE +201 -0
- package/third-party/cargo/bumpalo@3.20.3/LICENSE-MIT +25 -0
- package/third-party/cargo/bytemuck@1.25.1/Cargo.toml +153 -0
- package/third-party/cargo/bytemuck@1.25.1/LICENSE-APACHE +61 -0
- package/third-party/cargo/bytemuck@1.25.1/LICENSE-MIT +9 -0
- package/third-party/cargo/bytemuck@1.25.1/LICENSE-ZLIB +11 -0
- package/third-party/cargo/bytemuck_derive@1.11.0/Cargo.toml +60 -0
- package/third-party/cargo/bytemuck_derive@1.11.0/LICENSE-APACHE +61 -0
- package/third-party/cargo/bytemuck_derive@1.11.0/LICENSE-MIT +9 -0
- package/third-party/cargo/bytemuck_derive@1.11.0/LICENSE-ZLIB +11 -0
- package/third-party/cargo/byteorder-lite@0.1.0/Cargo.toml +57 -0
- package/third-party/cargo/byteorder-lite@0.1.0/LICENSE-MIT +21 -0
- package/third-party/cargo/byteorder-lite@0.1.0/UNLICENSE +24 -0
- package/third-party/cargo/byteorder@1.5.0/COPYING +3 -0
- package/third-party/cargo/byteorder@1.5.0/Cargo.toml +54 -0
- package/third-party/cargo/byteorder@1.5.0/LICENSE-MIT +21 -0
- package/third-party/cargo/byteorder@1.5.0/UNLICENSE +24 -0
- package/third-party/cargo/cfg-if@1.0.4/Cargo.toml +47 -0
- package/third-party/cargo/cfg-if@1.0.4/LICENSE-APACHE +201 -0
- package/third-party/cargo/cfg-if@1.0.4/LICENSE-MIT +25 -0
- package/third-party/cargo/cfg_aliases@0.2.1/Cargo.toml +43 -0
- package/third-party/cargo/cfg_aliases@0.2.1/LICENSE +9 -0
- package/third-party/cargo/chunked_transfer@1.5.0/Cargo.toml +27 -0
- package/third-party/cargo/chunked_transfer@1.5.0/LICENSE-APACHE +201 -0
- package/third-party/cargo/chunked_transfer@1.5.0/LICENSE-MIT +22 -0
- package/third-party/cargo/codespan-reporting@0.13.1/Cargo.toml +115 -0
- package/third-party/cargo/codespan-reporting@0.13.1/LICENSE +201 -0
- package/third-party/cargo/color_quant@1.1.0/Cargo.toml +20 -0
- package/third-party/cargo/color_quant@1.1.0/LICENSE +21 -0
- package/third-party/cargo/console_error_panic_hook@0.1.7/Cargo.toml +27 -0
- package/third-party/cargo/console_error_panic_hook@0.1.7/LICENSE-APACHE +201 -0
- package/third-party/cargo/console_error_panic_hook@0.1.7/LICENSE-MIT +25 -0
- package/third-party/cargo/core_maths@0.1.1/Cargo.toml +37 -0
- package/third-party/cargo/core_maths@0.1.1/LICENSE +21 -0
- package/third-party/cargo/cosmic-text@0.19.0/Cargo.toml +214 -0
- package/third-party/cargo/cosmic-text@0.19.0/LICENSE-APACHE +201 -0
- package/third-party/cargo/cosmic-text@0.19.0/LICENSE-MIT +21 -0
- package/third-party/cargo/crc32fast@1.5.0/Cargo.toml +68 -0
- package/third-party/cargo/crc32fast@1.5.0/LICENSE-APACHE +202 -0
- package/third-party/cargo/crc32fast@1.5.0/LICENSE-MIT +21 -0
- package/third-party/cargo/data-url@0.3.2/Cargo.toml +63 -0
- package/third-party/cargo/data-url@0.3.2/LICENSE-APACHE +201 -0
- package/third-party/cargo/data-url@0.3.2/LICENSE-MIT +25 -0
- package/third-party/cargo/dispatch2@0.3.1/Cargo.toml +122 -0
- package/third-party/cargo/dispatch2@0.3.1/MIT-terms.txt +22 -0
- package/third-party/cargo/dispatch2@0.3.1/madsmtm-objc2-8852b424193c-LICENSE.md +34 -0
- package/third-party/cargo/dlib@0.5.3/Cargo.toml +43 -0
- package/third-party/cargo/dlib@0.5.3/LICENSE.txt +19 -0
- package/third-party/cargo/document-features@0.2.12/Cargo.toml +51 -0
- package/third-party/cargo/document-features@0.2.12/LICENSE-APACHE +73 -0
- package/third-party/cargo/document-features@0.2.12/LICENSE-MIT +19 -0
- package/third-party/cargo/equivalent@1.0.2/Cargo.toml +37 -0
- package/third-party/cargo/equivalent@1.0.2/LICENSE-APACHE +201 -0
- package/third-party/cargo/equivalent@1.0.2/LICENSE-MIT +25 -0
- package/third-party/cargo/errno@0.3.14/Cargo.toml +67 -0
- package/third-party/cargo/errno@0.3.14/LICENSE-APACHE +201 -0
- package/third-party/cargo/errno@0.3.14/LICENSE-MIT +25 -0
- package/third-party/cargo/etagere@0.3.0/Cargo.toml +57 -0
- package/third-party/cargo/etagere@0.3.0/LICENSE-APACHE +13 -0
- package/third-party/cargo/etagere@0.3.0/LICENSE-MIT +20 -0
- package/third-party/cargo/euclid@0.22.14/COPYRIGHT +5 -0
- package/third-party/cargo/euclid@0.22.14/Cargo.toml +66 -0
- package/third-party/cargo/euclid@0.22.14/LICENSE-APACHE +201 -0
- package/third-party/cargo/euclid@0.22.14/LICENSE-MIT +25 -0
- package/third-party/cargo/fastrand@2.5.0/Cargo.toml +89 -0
- package/third-party/cargo/fastrand@2.5.0/LICENSE-APACHE +201 -0
- package/third-party/cargo/fastrand@2.5.0/LICENSE-MIT +23 -0
- package/third-party/cargo/fdeflate@0.3.7/Cargo.toml +55 -0
- package/third-party/cargo/fdeflate@0.3.7/LICENSE-APACHE +177 -0
- package/third-party/cargo/fdeflate@0.3.7/LICENSE-MIT +25 -0
- package/third-party/cargo/flate2@1.1.9/Cargo.toml +274 -0
- package/third-party/cargo/flate2@1.1.9/LICENSE-APACHE +201 -0
- package/third-party/cargo/flate2@1.1.9/LICENSE-MIT +25 -0
- package/third-party/cargo/float-cmp@0.9.0/Cargo.toml +39 -0
- package/third-party/cargo/float-cmp@0.9.0/LICENSE +19 -0
- package/third-party/cargo/float_next_after@1.0.0/Cargo.toml +43 -0
- package/third-party/cargo/float_next_after@1.0.0/LICENSE +23 -0
- package/third-party/cargo/foldhash@0.2.0/Cargo.toml +80 -0
- package/third-party/cargo/foldhash@0.2.0/LICENSE +19 -0
- package/third-party/cargo/font-types@0.11.3/Cargo.toml +55 -0
- package/third-party/cargo/font-types@0.11.3/LICENSE-APACHE +67 -0
- package/third-party/cargo/font-types@0.11.3/LICENSE-MIT +25 -0
- package/third-party/cargo/fontdb@0.23.0/Cargo.toml +83 -0
- package/third-party/cargo/fontdb@0.23.0/LICENSE +21 -0
- package/third-party/cargo/futures-core@0.3.32/Cargo.toml +66 -0
- package/third-party/cargo/futures-core@0.3.32/LICENSE-APACHE +202 -0
- package/third-party/cargo/futures-core@0.3.32/LICENSE-MIT +26 -0
- package/third-party/cargo/futures-task@0.3.32/Cargo.toml +58 -0
- package/third-party/cargo/futures-task@0.3.32/LICENSE-APACHE +202 -0
- package/third-party/cargo/futures-task@0.3.32/LICENSE-MIT +26 -0
- package/third-party/cargo/futures-util@0.3.32/Cargo.toml +181 -0
- package/third-party/cargo/futures-util@0.3.32/LICENSE-APACHE +202 -0
- package/third-party/cargo/futures-util@0.3.32/LICENSE-MIT +26 -0
- package/third-party/cargo/getrandom@0.4.3/Cargo.toml +165 -0
- package/third-party/cargo/getrandom@0.4.3/LICENSE-APACHE +201 -0
- package/third-party/cargo/getrandom@0.4.3/LICENSE-MIT +26 -0
- package/third-party/cargo/gif@0.14.2/Cargo.toml +84 -0
- package/third-party/cargo/gif@0.14.2/LICENSE-APACHE +201 -0
- package/third-party/cargo/gif@0.14.2/LICENSE-MIT +21 -0
- package/third-party/cargo/glam@0.33.2/Cargo.toml +354 -0
- package/third-party/cargo/glam@0.33.2/LICENSE-APACHE +201 -0
- package/third-party/cargo/glam@0.33.2/LICENSE-MIT +23 -0
- package/third-party/cargo/glow@0.17.0/Cargo.toml +122 -0
- package/third-party/cargo/glow@0.17.0/LICENSE-APACHE +201 -0
- package/third-party/cargo/glow@0.17.0/LICENSE-MIT +23 -0
- package/third-party/cargo/glow@0.17.0/LICENSE-ZLIB +15 -0
- package/third-party/cargo/gltf-derive@1.4.1/Cargo.toml +34 -0
- package/third-party/cargo/gltf-derive@1.4.1/LICENSE-APACHE +202 -0
- package/third-party/cargo/gltf-derive@1.4.1/LICENSE-MIT +26 -0
- package/third-party/cargo/gltf-json@1.4.1/Cargo.toml +50 -0
- package/third-party/cargo/gltf-json@1.4.1/LICENSE-APACHE +202 -0
- package/third-party/cargo/gltf-json@1.4.1/LICENSE-MIT +26 -0
- package/third-party/cargo/gltf@1.4.1/Cargo.toml +122 -0
- package/third-party/cargo/gltf@1.4.1/LICENSE-APACHE +202 -0
- package/third-party/cargo/gltf@1.4.1/LICENSE-MIT +26 -0
- package/third-party/cargo/glyphon@0.12.0/Cargo.toml +35 -0
- package/third-party/cargo/glyphon@0.12.0/LICENSE-APACHE +201 -0
- package/third-party/cargo/glyphon@0.12.0/LICENSE-MIT +23 -0
- package/third-party/cargo/glyphon@0.12.0/LICENSE-ZLIB +15 -0
- package/third-party/cargo/gpu-allocator@0.28.0/Cargo.toml +180 -0
- package/third-party/cargo/gpu-allocator@0.28.0/LICENSE-APACHE +201 -0
- package/third-party/cargo/gpu-allocator@0.28.0/LICENSE-MIT +7 -0
- package/third-party/cargo/grid@1.0.1/Cargo.toml +77 -0
- package/third-party/cargo/grid@1.0.1/LICENSE +21 -0
- package/third-party/cargo/half@2.7.1/Cargo.toml +137 -0
- package/third-party/cargo/half@2.7.1/LICENSE-APACHE +176 -0
- package/third-party/cargo/half@2.7.1/LICENSE-MIT +19 -0
- package/third-party/cargo/harfrust@0.5.2/Cargo.toml +115 -0
- package/third-party/cargo/harfrust@0.5.2/harfbuzz-harfrust-efdae3142ab7-LICENSE +22 -0
- package/third-party/cargo/hashbrown@0.16.1/Cargo.toml +180 -0
- package/third-party/cargo/hashbrown@0.16.1/LICENSE-APACHE +201 -0
- package/third-party/cargo/hashbrown@0.16.1/LICENSE-MIT +25 -0
- package/third-party/cargo/hashbrown@0.17.1/Cargo.toml +201 -0
- package/third-party/cargo/hashbrown@0.17.1/LICENSE-APACHE +201 -0
- package/third-party/cargo/hashbrown@0.17.1/LICENSE-MIT +25 -0
- package/third-party/cargo/httpdate@1.0.3/Cargo.toml +35 -0
- package/third-party/cargo/httpdate@1.0.3/LICENSE-APACHE +201 -0
- package/third-party/cargo/httpdate@1.0.3/LICENSE-MIT +19 -0
- package/third-party/cargo/image-webp@0.2.4/Cargo.toml +63 -0
- package/third-party/cargo/image-webp@0.2.4/LICENSE-APACHE +177 -0
- package/third-party/cargo/image-webp@0.2.4/LICENSE-MIT +25 -0
- package/third-party/cargo/image@0.25.10/Cargo.toml +248 -0
- package/third-party/cargo/image@0.25.10/LICENSE-APACHE +177 -0
- package/third-party/cargo/image@0.25.10/LICENSE-MIT +25 -0
- package/third-party/cargo/imagesize@0.14.0/Cargo.toml +104 -0
- package/third-party/cargo/imagesize@0.14.0/LICENSE +21 -0
- package/third-party/cargo/indexmap@2.14.0/Cargo.toml +167 -0
- package/third-party/cargo/indexmap@2.14.0/LICENSE-APACHE +201 -0
- package/third-party/cargo/indexmap@2.14.0/LICENSE-MIT +25 -0
- package/third-party/cargo/inflections@1.1.1/Cargo.toml +21 -0
- package/third-party/cargo/inflections@1.1.1/LICENSE +20 -0
- package/third-party/cargo/itoa@1.0.18/Cargo.toml +66 -0
- package/third-party/cargo/itoa@1.0.18/LICENSE-APACHE +176 -0
- package/third-party/cargo/itoa@1.0.18/LICENSE-MIT +23 -0
- package/third-party/cargo/js-sys@0.3.103/Cargo.toml +98 -0
- package/third-party/cargo/js-sys@0.3.103/LICENSE-APACHE +201 -0
- package/third-party/cargo/js-sys@0.3.103/LICENSE-MIT +25 -0
- package/third-party/cargo/khronos-egl@6.0.0/Cargo.toml +82 -0
- package/third-party/cargo/khronos-egl@6.0.0/LICENSE-APACHE +201 -0
- package/third-party/cargo/khronos-egl@6.0.0/LICENSE-MIT +23 -0
- package/third-party/cargo/kurbo@0.13.1/Cargo.toml +230 -0
- package/third-party/cargo/kurbo@0.13.1/LICENSE-APACHE +202 -0
- package/third-party/cargo/kurbo@0.13.1/LICENSE-MIT +25 -0
- package/third-party/cargo/lazy_static@1.5.0/Cargo.toml +46 -0
- package/third-party/cargo/lazy_static@1.5.0/LICENSE-APACHE +201 -0
- package/third-party/cargo/lazy_static@1.5.0/LICENSE-MIT +25 -0
- package/third-party/cargo/libc@0.2.186/Cargo.toml +229 -0
- package/third-party/cargo/libc@0.2.186/LICENSE-APACHE +176 -0
- package/third-party/cargo/libc@0.2.186/LICENSE-MIT +25 -0
- package/third-party/cargo/libloading@0.8.9/Cargo.toml +90 -0
- package/third-party/cargo/libloading@0.8.9/LICENSE +12 -0
- package/third-party/cargo/libm@0.2.16/Cargo.toml +61 -0
- package/third-party/cargo/libm@0.2.16/LICENSE.txt +258 -0
- package/third-party/cargo/linebender_resource_handle@0.1.1/Cargo.toml +107 -0
- package/third-party/cargo/linebender_resource_handle@0.1.1/LICENSE-APACHE +176 -0
- package/third-party/cargo/linebender_resource_handle@0.1.1/LICENSE-MIT +19 -0
- package/third-party/cargo/litrs@1.0.0/Cargo.toml +63 -0
- package/third-party/cargo/litrs@1.0.0/LICENSE-APACHE +176 -0
- package/third-party/cargo/litrs@1.0.0/LICENSE-MIT +25 -0
- package/third-party/cargo/lock_api@0.4.14/Cargo.toml +68 -0
- package/third-party/cargo/lock_api@0.4.14/LICENSE-APACHE +201 -0
- package/third-party/cargo/lock_api@0.4.14/LICENSE-MIT +25 -0
- package/third-party/cargo/log@0.4.33/Cargo.toml +152 -0
- package/third-party/cargo/log@0.4.33/LICENSE-APACHE +201 -0
- package/third-party/cargo/log@0.4.33/LICENSE-MIT +25 -0
- package/third-party/cargo/lru@0.16.4/Cargo.toml +47 -0
- package/third-party/cargo/lru@0.16.4/LICENSE +21 -0
- package/third-party/cargo/lyon_geom@1.0.19/Cargo.toml +69 -0
- package/third-party/cargo/lyon_geom@1.0.19/nical-lyon-56219c95c658-LICENSE-APACHE +13 -0
- package/third-party/cargo/lyon_geom@1.0.19/nical-lyon-56219c95c658-LICENSE-MIT +20 -0
- package/third-party/cargo/lyon_path@1.0.19/Cargo.toml +58 -0
- package/third-party/cargo/lyon_path@1.0.19/nical-lyon-56219c95c658-LICENSE-APACHE +13 -0
- package/third-party/cargo/lyon_path@1.0.19/nical-lyon-56219c95c658-LICENSE-MIT +20 -0
- package/third-party/cargo/lyon_tessellation@1.0.20/Cargo.toml +71 -0
- package/third-party/cargo/lyon_tessellation@1.0.20/nical-lyon-7fa75ea8eea3-LICENSE-APACHE +13 -0
- package/third-party/cargo/lyon_tessellation@1.0.20/nical-lyon-7fa75ea8eea3-LICENSE-MIT +20 -0
- package/third-party/cargo/memchr@2.8.3/COPYING +3 -0
- package/third-party/cargo/memchr@2.8.3/Cargo.toml +89 -0
- package/third-party/cargo/memchr@2.8.3/LICENSE-MIT +21 -0
- package/third-party/cargo/memchr@2.8.3/UNLICENSE +24 -0
- package/third-party/cargo/memmap2@0.9.11/Cargo.toml +59 -0
- package/third-party/cargo/memmap2@0.9.11/LICENSE-APACHE +201 -0
- package/third-party/cargo/memmap2@0.9.11/LICENSE-MIT +26 -0
- package/third-party/cargo/miniz_oxide@0.8.9/Cargo.toml +91 -0
- package/third-party/cargo/miniz_oxide@0.8.9/LICENSE +25 -0
- package/third-party/cargo/miniz_oxide@0.8.9/LICENSE-APACHE.md +177 -0
- package/third-party/cargo/miniz_oxide@0.8.9/LICENSE-MIT.md +24 -0
- package/third-party/cargo/miniz_oxide@0.8.9/LICENSE-ZLIB.md +14 -0
- package/third-party/cargo/moxcms@0.8.1/Cargo.toml +113 -0
- package/third-party/cargo/moxcms@0.8.1/LICENSE-APACHE.md +201 -0
- package/third-party/cargo/moxcms@0.8.1/LICENSE.md +26 -0
- package/third-party/cargo/naga-types@30.0.0/Cargo.toml +94 -0
- package/third-party/cargo/naga-types@30.0.0/LICENSE.APACHE +176 -0
- package/third-party/cargo/naga-types@30.0.0/LICENSE.MIT +21 -0
- package/third-party/cargo/naga@30.0.0/Cargo.toml +246 -0
- package/third-party/cargo/naga@30.0.0/LICENSE.APACHE +176 -0
- package/third-party/cargo/naga@30.0.0/LICENSE.MIT +21 -0
- package/third-party/cargo/num-traits@0.2.19/Cargo.toml +54 -0
- package/third-party/cargo/num-traits@0.2.19/LICENSE-APACHE +201 -0
- package/third-party/cargo/num-traits@0.2.19/LICENSE-MIT +25 -0
- package/third-party/cargo/objc2-core-foundation@0.3.2/Cargo.toml +221 -0
- package/third-party/cargo/objc2-core-foundation@0.3.2/MIT-terms.txt +22 -0
- package/third-party/cargo/objc2-core-foundation@0.3.2/madsmtm-objc2-7b1abfd750a2-LICENSE.md +34 -0
- package/third-party/cargo/objc2-core-graphics@0.3.2/Cargo.toml +331 -0
- package/third-party/cargo/objc2-core-graphics@0.3.2/MIT-terms.txt +22 -0
- package/third-party/cargo/objc2-core-graphics@0.3.2/madsmtm-objc2-7b1abfd750a2-LICENSE.md +34 -0
- package/third-party/cargo/objc2-encode@4.1.0/Cargo.toml +81 -0
- package/third-party/cargo/objc2-encode@4.1.0/MIT-terms.txt +22 -0
- package/third-party/cargo/objc2-encode@4.1.0/madsmtm-objc2-8d214f547736-LICENSE.md +34 -0
- package/third-party/cargo/objc2-foundation@0.3.2/Cargo.toml +529 -0
- package/third-party/cargo/objc2-foundation@0.3.2/MIT-terms.txt +22 -0
- package/third-party/cargo/objc2-foundation@0.3.2/madsmtm-objc2-7b1abfd750a2-LICENSE.md +34 -0
- package/third-party/cargo/objc2-io-surface@0.3.2/Cargo.toml +139 -0
- package/third-party/cargo/objc2-io-surface@0.3.2/MIT-terms.txt +22 -0
- package/third-party/cargo/objc2-io-surface@0.3.2/madsmtm-objc2-7b1abfd750a2-LICENSE.md +34 -0
- package/third-party/cargo/objc2-metal@0.3.2/Cargo.toml +601 -0
- package/third-party/cargo/objc2-metal@0.3.2/MIT-terms.txt +22 -0
- package/third-party/cargo/objc2-metal@0.3.2/madsmtm-objc2-7b1abfd750a2-LICENSE.md +34 -0
- package/third-party/cargo/objc2-quartz-core@0.3.2/Cargo.toml +302 -0
- package/third-party/cargo/objc2-quartz-core@0.3.2/MIT-terms.txt +22 -0
- package/third-party/cargo/objc2-quartz-core@0.3.2/madsmtm-objc2-7b1abfd750a2-LICENSE.md +34 -0
- package/third-party/cargo/objc2@0.6.4/Cargo.toml +232 -0
- package/third-party/cargo/objc2@0.6.4/MIT-terms.txt +22 -0
- package/third-party/cargo/objc2@0.6.4/madsmtm-objc2-8852b424193c-LICENSE.md +34 -0
- package/third-party/cargo/once_cell@1.21.4/Cargo.toml +119 -0
- package/third-party/cargo/once_cell@1.21.4/LICENSE-APACHE +201 -0
- package/third-party/cargo/once_cell@1.21.4/LICENSE-MIT +23 -0
- package/third-party/cargo/ordered-float@5.3.0/Cargo.toml +162 -0
- package/third-party/cargo/ordered-float@5.3.0/LICENSE-MIT +25 -0
- package/third-party/cargo/parking_lot@0.12.5/Cargo.toml +87 -0
- package/third-party/cargo/parking_lot@0.12.5/LICENSE-APACHE +201 -0
- package/third-party/cargo/parking_lot@0.12.5/LICENSE-MIT +25 -0
- package/third-party/cargo/parking_lot_core@0.9.12/Cargo.toml +72 -0
- package/third-party/cargo/parking_lot_core@0.9.12/LICENSE-APACHE +201 -0
- package/third-party/cargo/parking_lot_core@0.9.12/LICENSE-MIT +25 -0
- package/third-party/cargo/pico-args@0.5.0/Cargo.toml +32 -0
- package/third-party/cargo/pico-args@0.5.0/LICENSE +20 -0
- package/third-party/cargo/pin-project-lite@0.2.17/Cargo.toml +198 -0
- package/third-party/cargo/pin-project-lite@0.2.17/LICENSE-APACHE +177 -0
- package/third-party/cargo/pin-project-lite@0.2.17/LICENSE-MIT +23 -0
- package/third-party/cargo/pkg-config@0.3.33/Cargo.toml +43 -0
- package/third-party/cargo/pkg-config@0.3.33/LICENSE-APACHE +201 -0
- package/third-party/cargo/pkg-config@0.3.33/LICENSE-MIT +25 -0
- package/third-party/cargo/png@0.18.1/Cargo.toml +130 -0
- package/third-party/cargo/png@0.18.1/LICENSE-APACHE +201 -0
- package/third-party/cargo/png@0.18.1/LICENSE-MIT +25 -0
- package/third-party/cargo/pollster@0.4.0/Cargo.toml +53 -0
- package/third-party/cargo/pollster@0.4.0/LICENSE-APACHE +201 -0
- package/third-party/cargo/pollster@0.4.0/LICENSE-MIT +25 -0
- package/third-party/cargo/polycool@0.4.0/Cargo.toml +83 -0
- package/third-party/cargo/polycool@0.4.0/LICENSE-APACHE +202 -0
- package/third-party/cargo/polycool@0.4.0/LICENSE-MIT +25 -0
- package/third-party/cargo/pp-rs@0.2.1/Cargo.toml +23 -0
- package/third-party/cargo/pp-rs@0.2.1/LICENSE +29 -0
- package/third-party/cargo/presser@0.3.1/Cargo.toml +58 -0
- package/third-party/cargo/presser@0.3.1/LICENSE-APACHE +201 -0
- package/third-party/cargo/presser@0.3.1/LICENSE-MIT +25 -0
- package/third-party/cargo/proc-macro2@1.0.106/Cargo.toml +105 -0
- package/third-party/cargo/proc-macro2@1.0.106/LICENSE-APACHE +176 -0
- package/third-party/cargo/proc-macro2@1.0.106/LICENSE-MIT +23 -0
- package/third-party/cargo/profiling@1.0.18/Cargo.toml +96 -0
- package/third-party/cargo/profiling@1.0.18/aclysma-profiling-8271551172eb-LICENSE-APACHE +201 -0
- package/third-party/cargo/profiling@1.0.18/aclysma-profiling-8271551172eb-LICENSE-MIT +21 -0
- package/third-party/cargo/pxfm@0.1.30/Cargo.toml +53 -0
- package/third-party/cargo/pxfm@0.1.30/LICENSE-APACHE.md +201 -0
- package/third-party/cargo/pxfm@0.1.30/LICENSE.md +26 -0
- package/third-party/cargo/quick-error@2.0.1/Cargo.toml +24 -0
- package/third-party/cargo/quick-error@2.0.1/LICENSE-APACHE +202 -0
- package/third-party/cargo/quick-error@2.0.1/LICENSE-MIT +19 -0
- package/third-party/cargo/quote@1.0.46/Cargo.toml +70 -0
- package/third-party/cargo/quote@1.0.46/LICENSE-APACHE +176 -0
- package/third-party/cargo/quote@1.0.46/LICENSE-MIT +23 -0
- package/third-party/cargo/rangemap@1.7.1/Cargo.toml +91 -0
- package/third-party/cargo/rangemap@1.7.1/LICENSE-APACHE +191 -0
- package/third-party/cargo/rangemap@1.7.1/LICENSE-MIT +7 -0
- package/third-party/cargo/raw-window-handle@0.6.2/Cargo.toml +56 -0
- package/third-party/cargo/raw-window-handle@0.6.2/LICENSE-APACHE.md +177 -0
- package/third-party/cargo/raw-window-handle@0.6.2/LICENSE-MIT.md +21 -0
- package/third-party/cargo/raw-window-handle@0.6.2/LICENSE-ZLIB.md +11 -0
- package/third-party/cargo/raw-window-metal@1.1.0/Cargo.toml +111 -0
- package/third-party/cargo/raw-window-metal@1.1.0/LICENSE-APACHE +202 -0
- package/third-party/cargo/raw-window-metal@1.1.0/LICENSE-MIT +17 -0
- package/third-party/cargo/read-fonts@0.37.0/Cargo.toml +95 -0
- package/third-party/cargo/read-fonts@0.37.0/LICENSE-APACHE +67 -0
- package/third-party/cargo/read-fonts@0.37.0/LICENSE-MIT +25 -0
- package/third-party/cargo/read-fonts@0.39.2/Cargo.toml +96 -0
- package/third-party/cargo/read-fonts@0.39.2/LICENSE-APACHE +67 -0
- package/third-party/cargo/read-fonts@0.39.2/LICENSE-MIT +25 -0
- package/third-party/cargo/renderdoc-sys@1.1.0/Cargo.toml +39 -0
- package/third-party/cargo/renderdoc-sys@1.1.0/LICENSE-APACHE +201 -0
- package/third-party/cargo/renderdoc-sys@1.1.0/LICENSE-MIT +25 -0
- package/third-party/cargo/resvg@0.47.0/Cargo.toml +112 -0
- package/third-party/cargo/resvg@0.47.0/LICENSE-APACHE +176 -0
- package/third-party/cargo/resvg@0.47.0/LICENSE-MIT +25 -0
- package/third-party/cargo/rgb@0.8.53/Cargo.toml +110 -0
- package/third-party/cargo/rgb@0.8.53/LICENSE +21 -0
- package/third-party/cargo/roxmltree@0.21.1/Cargo.toml +75 -0
- package/third-party/cargo/roxmltree@0.21.1/LICENSE-APACHE +201 -0
- package/third-party/cargo/roxmltree@0.21.1/LICENSE-MIT +21 -0
- package/third-party/cargo/rustc-hash@1.1.0/Cargo.toml +25 -0
- package/third-party/cargo/rustc-hash@1.1.0/LICENSE-APACHE +201 -0
- package/third-party/cargo/rustc-hash@1.1.0/LICENSE-MIT +23 -0
- package/third-party/cargo/rustc-hash@2.1.3/Cargo.toml +50 -0
- package/third-party/cargo/rustc-hash@2.1.3/LICENSE-APACHE +176 -0
- package/third-party/cargo/rustc-hash@2.1.3/LICENSE-MIT +23 -0
- package/third-party/cargo/rustix@1.1.4/COPYRIGHT +29 -0
- package/third-party/cargo/rustix@1.1.4/Cargo.toml +292 -0
- package/third-party/cargo/rustix@1.1.4/LICENSE-APACHE +201 -0
- package/third-party/cargo/rustix@1.1.4/LICENSE-Apache-2.0_WITH_LLVM-exception +220 -0
- package/third-party/cargo/rustix@1.1.4/LICENSE-MIT +23 -0
- package/third-party/cargo/rustversion@1.0.23/Cargo.toml +69 -0
- package/third-party/cargo/rustversion@1.0.23/LICENSE-APACHE +176 -0
- package/third-party/cargo/rustversion@1.0.23/LICENSE-MIT +23 -0
- package/third-party/cargo/rustybuzz@0.20.1/Cargo.toml +110 -0
- package/third-party/cargo/rustybuzz@0.20.1/LICENSE +22 -0
- package/third-party/cargo/scopeguard@1.2.0/Cargo.toml +43 -0
- package/third-party/cargo/scopeguard@1.2.0/LICENSE-APACHE +201 -0
- package/third-party/cargo/scopeguard@1.2.0/LICENSE-MIT +25 -0
- package/third-party/cargo/self_cell@1.2.2/Cargo.toml +33 -0
- package/third-party/cargo/self_cell@1.2.2/LICENSE-APACHE +201 -0
- package/third-party/cargo/self_cell@1.2.2/LICENSE-GPLv2 +339 -0
- package/third-party/cargo/self_cell@1.3.0/Cargo.toml +33 -0
- package/third-party/cargo/self_cell@1.3.0/LICENSE-APACHE +201 -0
- package/third-party/cargo/self_cell@1.3.0/LICENSE-GPLv2 +339 -0
- package/third-party/cargo/serde@1.0.228/Cargo.toml +84 -0
- package/third-party/cargo/serde@1.0.228/LICENSE-APACHE +176 -0
- package/third-party/cargo/serde@1.0.228/LICENSE-MIT +23 -0
- package/third-party/cargo/serde_core@1.0.228/Cargo.toml +87 -0
- package/third-party/cargo/serde_core@1.0.228/LICENSE-APACHE +176 -0
- package/third-party/cargo/serde_core@1.0.228/LICENSE-MIT +23 -0
- package/third-party/cargo/serde_derive@1.0.228/Cargo.toml +87 -0
- package/third-party/cargo/serde_derive@1.0.228/LICENSE-APACHE +176 -0
- package/third-party/cargo/serde_derive@1.0.228/LICENSE-MIT +23 -0
- package/third-party/cargo/serde_json@1.0.150/Cargo.toml +162 -0
- package/third-party/cargo/serde_json@1.0.150/LICENSE-APACHE +176 -0
- package/third-party/cargo/serde_json@1.0.150/LICENSE-MIT +23 -0
- package/third-party/cargo/simd-adler32@0.3.10/Cargo.toml +68 -0
- package/third-party/cargo/simd-adler32@0.3.10/LICENSE.md +21 -0
- package/third-party/cargo/simplecss@0.2.2/Cargo.toml +146 -0
- package/third-party/cargo/simplecss@0.2.2/LICENSE-APACHE +201 -0
- package/third-party/cargo/simplecss@0.2.2/LICENSE-MIT +21 -0
- package/third-party/cargo/siphasher@1.0.3/COPYING +7 -0
- package/third-party/cargo/siphasher@1.0.3/Cargo.toml +64 -0
- package/third-party/cargo/skrifa@0.40.0/Cargo.toml +86 -0
- package/third-party/cargo/skrifa@0.40.0/LICENSE-APACHE +67 -0
- package/third-party/cargo/skrifa@0.40.0/LICENSE-MIT +25 -0
- package/third-party/cargo/skrifa@0.42.1/Cargo.toml +86 -0
- package/third-party/cargo/skrifa@0.42.1/LICENSE-APACHE +67 -0
- package/third-party/cargo/skrifa@0.42.1/LICENSE-MIT +25 -0
- package/third-party/cargo/slab@0.4.12/Cargo.toml +67 -0
- package/third-party/cargo/slab@0.4.12/LICENSE +25 -0
- package/third-party/cargo/slotmap@1.1.1/Cargo.toml +83 -0
- package/third-party/cargo/slotmap@1.1.1/LICENSE +19 -0
- package/third-party/cargo/smallvec@1.15.2/Cargo.toml +103 -0
- package/third-party/cargo/smallvec@1.15.2/LICENSE-APACHE +201 -0
- package/third-party/cargo/smallvec@1.15.2/LICENSE-MIT +25 -0
- package/third-party/cargo/smol_str@0.3.6/Cargo.toml +155 -0
- package/third-party/cargo/smol_str@0.3.6/LICENSE-APACHE +201 -0
- package/third-party/cargo/smol_str@0.3.6/LICENSE-MIT +23 -0
- package/third-party/cargo/spirv@0.4.0+sdk-1.4.341.0/Cargo.toml +56 -0
- package/third-party/cargo/spirv@0.4.0+sdk-1.4.341.0/gfx-rs-rspirv-8afc3d0ac8e1-LICENSE +202 -0
- package/third-party/cargo/static_assertions@1.1.0/Cargo.toml +39 -0
- package/third-party/cargo/static_assertions@1.1.0/LICENSE-APACHE +202 -0
- package/third-party/cargo/static_assertions@1.1.0/LICENSE-MIT +21 -0
- package/third-party/cargo/strict-num@0.1.1/Cargo.toml +35 -0
- package/third-party/cargo/strict-num@0.1.1/LICENSE +19 -0
- package/third-party/cargo/svgtypes@0.16.1/Cargo.toml +57 -0
- package/third-party/cargo/svgtypes@0.16.1/LICENSE-APACHE +201 -0
- package/third-party/cargo/svgtypes@0.16.1/LICENSE-MIT +20 -0
- package/third-party/cargo/swash@0.2.9/Cargo.toml +93 -0
- package/third-party/cargo/swash@0.2.9/LICENSE-APACHE +201 -0
- package/third-party/cargo/swash@0.2.9/LICENSE-MIT +25 -0
- package/third-party/cargo/syn@2.0.118/Cargo.toml +272 -0
- package/third-party/cargo/syn@2.0.118/LICENSE-APACHE +176 -0
- package/third-party/cargo/syn@2.0.118/LICENSE-MIT +23 -0
- package/third-party/cargo/sys-locale@0.3.2/Cargo.toml +73 -0
- package/third-party/cargo/sys-locale@0.3.2/LICENSE-APACHE +201 -0
- package/third-party/cargo/sys-locale@0.3.2/LICENSE-MIT +21 -0
- package/third-party/cargo/taffy@0.12.1/Cargo.toml +171 -0
- package/third-party/cargo/taffy@0.12.1/DioxusLabs-taffy-1c9e37a0a1cf-LICENSE.md +25 -0
- package/third-party/cargo/tempfile@3.27.0/Cargo.toml +105 -0
- package/third-party/cargo/tempfile@3.27.0/LICENSE-APACHE +201 -0
- package/third-party/cargo/tempfile@3.27.0/LICENSE-MIT +25 -0
- package/third-party/cargo/termcolor@1.4.1/COPYING +3 -0
- package/third-party/cargo/termcolor@1.4.1/Cargo.toml +40 -0
- package/third-party/cargo/termcolor@1.4.1/LICENSE-MIT +21 -0
- package/third-party/cargo/termcolor@1.4.1/UNLICENSE +24 -0
- package/third-party/cargo/thiserror-impl@2.0.18/Cargo.toml +52 -0
- package/third-party/cargo/thiserror-impl@2.0.18/LICENSE-APACHE +176 -0
- package/third-party/cargo/thiserror-impl@2.0.18/LICENSE-MIT +23 -0
- package/third-party/cargo/thiserror@2.0.18/Cargo.toml +119 -0
- package/third-party/cargo/thiserror@2.0.18/LICENSE-APACHE +176 -0
- package/third-party/cargo/thiserror@2.0.18/LICENSE-MIT +23 -0
- package/third-party/cargo/tiny-skia-path@0.12.0/Cargo.toml +58 -0
- package/third-party/cargo/tiny-skia-path@0.12.0/LICENSE +30 -0
- package/third-party/cargo/tiny-skia@0.12.0/Cargo.toml +116 -0
- package/third-party/cargo/tiny-skia@0.12.0/LICENSE +30 -0
- package/third-party/cargo/tiny_http@0.12.0/Cargo.toml +82 -0
- package/third-party/cargo/tiny_http@0.12.0/LICENSE-APACHE +201 -0
- package/third-party/cargo/tiny_http@0.12.0/LICENSE-MIT +25 -0
- package/third-party/cargo/tinyvec@1.12.0/Cargo.toml +184 -0
- package/third-party/cargo/tinyvec@1.12.0/LICENSE-APACHE.md +202 -0
- package/third-party/cargo/tinyvec@1.12.0/LICENSE-MIT.md +5 -0
- package/third-party/cargo/tinyvec@1.12.0/LICENSE-ZLIB.md +11 -0
- package/third-party/cargo/tinyvec_macros@0.1.1/Cargo.toml +19 -0
- package/third-party/cargo/tinyvec_macros@0.1.1/LICENSE-APACHE.md +202 -0
- package/third-party/cargo/tinyvec_macros@0.1.1/LICENSE-MIT.md +21 -0
- package/third-party/cargo/tinyvec_macros@0.1.1/LICENSE-ZLIB.md +20 -0
- package/third-party/cargo/ttf-parser@0.25.1/Cargo.toml +101 -0
- package/third-party/cargo/ttf-parser@0.25.1/LICENSE-APACHE +201 -0
- package/third-party/cargo/ttf-parser@0.25.1/LICENSE-MIT +20 -0
- package/third-party/cargo/unicode-bidi-mirroring@0.4.0/Cargo.toml +22 -0
- package/third-party/cargo/unicode-bidi-mirroring@0.4.0/LICENSE-APACHE +201 -0
- package/third-party/cargo/unicode-bidi-mirroring@0.4.0/LICENSE-MIT +21 -0
- package/third-party/cargo/unicode-bidi@0.3.18/COPYRIGHT +8 -0
- package/third-party/cargo/unicode-bidi@0.3.18/Cargo.toml +90 -0
- package/third-party/cargo/unicode-bidi@0.3.18/LICENSE-APACHE +201 -0
- package/third-party/cargo/unicode-bidi@0.3.18/LICENSE-MIT +25 -0
- package/third-party/cargo/unicode-ccc@0.4.0/Cargo.toml +22 -0
- package/third-party/cargo/unicode-ccc@0.4.0/LICENSE-APACHE +201 -0
- package/third-party/cargo/unicode-ccc@0.4.0/LICENSE-MIT +21 -0
- package/third-party/cargo/unicode-ident@1.0.24/Cargo.toml +84 -0
- package/third-party/cargo/unicode-ident@1.0.24/LICENSE-APACHE +176 -0
- package/third-party/cargo/unicode-ident@1.0.24/LICENSE-MIT +23 -0
- package/third-party/cargo/unicode-ident@1.0.24/LICENSE-UNICODE +39 -0
- package/third-party/cargo/unicode-linebreak@0.1.5/Cargo.toml +32 -0
- package/third-party/cargo/unicode-linebreak@0.1.5/LICENSE +201 -0
- package/third-party/cargo/unicode-properties@0.1.4/COPYRIGHT +7 -0
- package/third-party/cargo/unicode-properties@0.1.4/Cargo.toml +65 -0
- package/third-party/cargo/unicode-properties@0.1.4/LICENSE-APACHE +201 -0
- package/third-party/cargo/unicode-properties@0.1.4/LICENSE-MIT +25 -0
- package/third-party/cargo/unicode-script@0.5.8/Cargo.toml +63 -0
- package/third-party/cargo/unicode-script@0.5.8/LICENSE-APACHE +201 -0
- package/third-party/cargo/unicode-script@0.5.8/LICENSE-MIT +27 -0
- package/third-party/cargo/unicode-segmentation@1.13.3/COPYRIGHT +7 -0
- package/third-party/cargo/unicode-segmentation@1.13.3/Cargo.toml +91 -0
- package/third-party/cargo/unicode-segmentation@1.13.3/LICENSE-APACHE +201 -0
- package/third-party/cargo/unicode-segmentation@1.13.3/LICENSE-MIT +25 -0
- package/third-party/cargo/unicode-vo@0.1.0/Cargo.toml +22 -0
- package/third-party/cargo/unicode-vo@0.1.0/LICENSE-APACHE +201 -0
- package/third-party/cargo/unicode-vo@0.1.0/LICENSE-MIT +21 -0
- package/third-party/cargo/unicode-width@0.2.2/COPYRIGHT +7 -0
- package/third-party/cargo/unicode-width@0.2.2/Cargo.toml +77 -0
- package/third-party/cargo/unicode-width@0.2.2/LICENSE-APACHE +201 -0
- package/third-party/cargo/unicode-width@0.2.2/LICENSE-MIT +25 -0
- package/third-party/cargo/unicode-xid@0.2.6/COPYRIGHT +7 -0
- package/third-party/cargo/unicode-xid@0.2.6/Cargo.toml +65 -0
- package/third-party/cargo/unicode-xid@0.2.6/LICENSE-APACHE +201 -0
- package/third-party/cargo/unicode-xid@0.2.6/LICENSE-MIT +25 -0
- package/third-party/cargo/urlencoding@2.1.3/Cargo.toml +41 -0
- package/third-party/cargo/urlencoding@2.1.3/LICENSE +20 -0
- package/third-party/cargo/usvg@0.47.0/Cargo.toml +138 -0
- package/third-party/cargo/usvg@0.47.0/LICENSE-APACHE +176 -0
- package/third-party/cargo/usvg@0.47.0/LICENSE-MIT +25 -0
- package/third-party/cargo/version_check@0.9.5/Cargo.toml +38 -0
- package/third-party/cargo/version_check@0.9.5/LICENSE-APACHE +201 -0
- package/third-party/cargo/version_check@0.9.5/LICENSE-MIT +19 -0
- package/third-party/cargo/wasm-bindgen-futures@0.4.76/Cargo.toml +88 -0
- package/third-party/cargo/wasm-bindgen-futures@0.4.76/LICENSE-APACHE +201 -0
- package/third-party/cargo/wasm-bindgen-futures@0.4.76/LICENSE-MIT +25 -0
- package/third-party/cargo/wasm-bindgen-macro-support@0.2.126/Cargo.toml +83 -0
- package/third-party/cargo/wasm-bindgen-macro-support@0.2.126/LICENSE-APACHE +201 -0
- package/third-party/cargo/wasm-bindgen-macro-support@0.2.126/LICENSE-MIT +25 -0
- package/third-party/cargo/wasm-bindgen-macro@0.2.126/Cargo.toml +73 -0
- package/third-party/cargo/wasm-bindgen-macro@0.2.126/LICENSE-APACHE +201 -0
- package/third-party/cargo/wasm-bindgen-macro@0.2.126/LICENSE-MIT +25 -0
- package/third-party/cargo/wasm-bindgen-shared@0.2.126/Cargo.toml +66 -0
- package/third-party/cargo/wasm-bindgen-shared@0.2.126/LICENSE-APACHE +201 -0
- package/third-party/cargo/wasm-bindgen-shared@0.2.126/LICENSE-MIT +25 -0
- package/third-party/cargo/wasm-bindgen@0.2.126/Cargo.toml +122 -0
- package/third-party/cargo/wasm-bindgen@0.2.126/LICENSE-APACHE +201 -0
- package/third-party/cargo/wasm-bindgen@0.2.126/LICENSE-MIT +25 -0
- package/third-party/cargo/wayland-sys@0.31.11/Cargo.toml +81 -0
- package/third-party/cargo/wayland-sys@0.31.11/LICENSE.txt +19 -0
- package/third-party/cargo/web-sys@0.3.103/Cargo.toml +2823 -0
- package/third-party/cargo/web-sys@0.3.103/LICENSE-APACHE +201 -0
- package/third-party/cargo/web-sys@0.3.103/LICENSE-MIT +25 -0
- package/third-party/cargo/weezl@0.1.12/Cargo.toml +120 -0
- package/third-party/cargo/weezl@0.1.12/LICENSE-APACHE +201 -0
- package/third-party/cargo/weezl@0.1.12/LICENSE-MIT +22 -0
- package/third-party/cargo/wgpu-core-deps-apple@30.0.0/Cargo.toml +53 -0
- package/third-party/cargo/wgpu-core-deps-apple@30.0.0/LICENSE.APACHE +176 -0
- package/third-party/cargo/wgpu-core-deps-apple@30.0.0/LICENSE.MIT +21 -0
- package/third-party/cargo/wgpu-core@30.0.0/Cargo.toml +237 -0
- package/third-party/cargo/wgpu-core@30.0.0/LICENSE.APACHE +176 -0
- package/third-party/cargo/wgpu-core@30.0.0/LICENSE.MIT +21 -0
- package/third-party/cargo/wgpu-hal@30.0.0/Cargo.toml +541 -0
- package/third-party/cargo/wgpu-hal@30.0.0/LICENSE.APACHE +176 -0
- package/third-party/cargo/wgpu-hal@30.0.0/LICENSE.MIT +21 -0
- package/third-party/cargo/wgpu-naga-bridge@30.0.0/Cargo.toml +46 -0
- package/third-party/cargo/wgpu-naga-bridge@30.0.0/LICENSE.APACHE +176 -0
- package/third-party/cargo/wgpu-naga-bridge@30.0.0/LICENSE.MIT +21 -0
- package/third-party/cargo/wgpu-types@30.0.0/Cargo.toml +161 -0
- package/third-party/cargo/wgpu-types@30.0.0/LICENSE.APACHE +176 -0
- package/third-party/cargo/wgpu-types@30.0.0/LICENSE.MIT +21 -0
- package/third-party/cargo/wgpu@30.0.0/Cargo.toml +278 -0
- package/third-party/cargo/wgpu@30.0.0/LICENSE.APACHE +176 -0
- package/third-party/cargo/wgpu@30.0.0/LICENSE.MIT +21 -0
- package/third-party/cargo/xmlwriter@0.1.0/Cargo.toml +23 -0
- package/third-party/cargo/xmlwriter@0.1.0/LICENSE +21 -0
- package/third-party/cargo/yazi@0.2.1/Cargo.toml +45 -0
- package/third-party/cargo/yazi@0.2.1/LICENSE-APACHE +201 -0
- package/third-party/cargo/yazi@0.2.1/LICENSE-MIT +19 -0
- package/third-party/cargo/zeno@0.3.3/Cargo.toml +65 -0
- package/third-party/cargo/zeno@0.3.3/LICENSE-APACHE +201 -0
- package/third-party/cargo/zeno@0.3.3/LICENSE-MIT +25 -0
- package/third-party/cargo/zerocopy-derive@0.8.54/Cargo.toml +209 -0
- package/third-party/cargo/zerocopy-derive@0.8.54/LICENSE-APACHE +202 -0
- package/third-party/cargo/zerocopy-derive@0.8.54/LICENSE-BSD +24 -0
- package/third-party/cargo/zerocopy-derive@0.8.54/LICENSE-MIT +26 -0
- package/third-party/cargo/zerocopy@0.8.54/Cargo.toml +419 -0
- package/third-party/cargo/zerocopy@0.8.54/LICENSE-APACHE +202 -0
- package/third-party/cargo/zerocopy@0.8.54/LICENSE-BSD +24 -0
- package/third-party/cargo/zerocopy@0.8.54/LICENSE-MIT +26 -0
- package/third-party/cargo/zmij@1.0.23/Cargo.toml +90 -0
- package/third-party/cargo/zmij@1.0.23/LICENSE-MIT +23 -0
- package/third-party/cargo/zune-core@0.5.1/Cargo.toml +47 -0
- package/third-party/cargo/zune-core@0.5.1/LICENSE-APACHE +201 -0
- package/third-party/cargo/zune-core@0.5.1/LICENSE-MIT +21 -0
- package/third-party/cargo/zune-core@0.5.1/LICENSE-ZLIB +19 -0
- package/third-party/cargo/zune-jpeg@0.5.15/Cargo.toml +67 -0
- package/third-party/cargo/zune-jpeg@0.5.15/LICENSE-APACHE +201 -0
- package/third-party/cargo/zune-jpeg@0.5.15/LICENSE-MIT +21 -0
- package/third-party/cargo/zune-jpeg@0.5.15/LICENSE-ZLIB +19 -0
- package/third-party/inventory.json +3614 -0
- package/third-party/npm/@esbuild__darwin-arm64@0.27.4/esbuild-0.27.4-LICENSE.md +21 -0
- package/third-party/npm/@esbuild__darwin-arm64@0.27.4/go-LICENSE +27 -0
- package/third-party/npm/@esbuild__darwin-arm64@0.27.4/golang-x-sys-c0bba94af5f8-LICENSE +27 -0
- package/third-party/npm/@esbuild__darwin-arm64@0.27.4/package.json +20 -0
- package/third-party/npm/@floating-ui__core@1.7.5/LICENSE +20 -0
- package/third-party/npm/@floating-ui__core@1.7.5/package.json +63 -0
- package/third-party/npm/@floating-ui__dom@1.7.6/LICENSE +20 -0
- package/third-party/npm/@floating-ui__dom@1.7.6/package.json +71 -0
- package/third-party/npm/@floating-ui__react-dom@2.1.8/LICENSE +20 -0
- package/third-party/npm/@floating-ui__react-dom@2.1.8/package.json +76 -0
- package/third-party/npm/@floating-ui__utils@0.2.11/LICENSE +20 -0
- package/third-party/npm/@floating-ui__utils@0.2.11/package.json +70 -0
- package/third-party/npm/@radix-ui__primitive@1.1.7/LICENSE +21 -0
- package/third-party/npm/@radix-ui__primitive@1.1.7/package.json +79 -0
- package/third-party/npm/@radix-ui__react-arrow@1.1.15/LICENSE +21 -0
- package/third-party/npm/@radix-ui__react-arrow@1.1.15/package.json +68 -0
- package/third-party/npm/@radix-ui__react-collection@1.1.15/LICENSE +21 -0
- package/third-party/npm/@radix-ui__react-collection@1.1.15/package.json +71 -0
- package/third-party/npm/@radix-ui__react-compose-refs@1.1.5/LICENSE +21 -0
- package/third-party/npm/@radix-ui__react-compose-refs@1.1.5/package.json +60 -0
- package/third-party/npm/@radix-ui__react-context-menu@2.3.7/LICENSE +21 -0
- package/third-party/npm/@radix-ui__react-context-menu@2.3.7/package.json +73 -0
- package/third-party/npm/@radix-ui__react-context@1.2.2/LICENSE +21 -0
- package/third-party/npm/@radix-ui__react-context@1.2.2/package.json +60 -0
- package/third-party/npm/@radix-ui__react-direction@1.1.4/LICENSE +21 -0
- package/third-party/npm/@radix-ui__react-direction@1.1.4/package.json +60 -0
- package/third-party/npm/@radix-ui__react-dismissable-layer@1.1.19/LICENSE +21 -0
- package/third-party/npm/@radix-ui__react-dismissable-layer@1.1.19/package.json +74 -0
- package/third-party/npm/@radix-ui__react-focus-guards@1.1.6/LICENSE +21 -0
- package/third-party/npm/@radix-ui__react-focus-guards@1.1.6/package.json +60 -0
- package/third-party/npm/@radix-ui__react-focus-scope@1.1.16/LICENSE +21 -0
- package/third-party/npm/@radix-ui__react-focus-scope@1.1.16/package.json +71 -0
- package/third-party/npm/@radix-ui__react-id@1.1.4/LICENSE +21 -0
- package/third-party/npm/@radix-ui__react-id@1.1.4/package.json +63 -0
- package/third-party/npm/@radix-ui__react-menu@2.1.24/LICENSE +21 -0
- package/third-party/npm/@radix-ui__react-menu@2.1.24/package.json +86 -0
- package/third-party/npm/@radix-ui__react-popper@1.3.7/LICENSE +21 -0
- package/third-party/npm/@radix-ui__react-popper@1.3.7/package.json +78 -0
- package/third-party/npm/@radix-ui__react-portal@1.1.17/LICENSE +21 -0
- package/third-party/npm/@radix-ui__react-portal@1.1.17/package.json +69 -0
- package/third-party/npm/@radix-ui__react-presence@1.1.10/LICENSE +21 -0
- package/third-party/npm/@radix-ui__react-presence@1.1.10/package.json +68 -0
- package/third-party/npm/@radix-ui__react-primitive@2.1.10/LICENSE +21 -0
- package/third-party/npm/@radix-ui__react-primitive@2.1.10/package.json +68 -0
- package/third-party/npm/@radix-ui__react-roving-focus@1.1.19/LICENSE +21 -0
- package/third-party/npm/@radix-ui__react-roving-focus@1.1.19/package.json +78 -0
- package/third-party/npm/@radix-ui__react-slot@1.3.3/LICENSE +21 -0
- package/third-party/npm/@radix-ui__react-slot@1.3.3/package.json +63 -0
- package/third-party/npm/@radix-ui__react-use-callback-ref@1.1.4/LICENSE +21 -0
- package/third-party/npm/@radix-ui__react-use-callback-ref@1.1.4/package.json +60 -0
- package/third-party/npm/@radix-ui__react-use-controllable-state@1.2.6/LICENSE +21 -0
- package/third-party/npm/@radix-ui__react-use-controllable-state@1.2.6/package.json +65 -0
- package/third-party/npm/@radix-ui__react-use-effect-event@0.0.5/LICENSE +21 -0
- package/third-party/npm/@radix-ui__react-use-effect-event@0.0.5/package.json +65 -0
- package/third-party/npm/@radix-ui__react-use-is-hydrated@0.1.3/LICENSE +21 -0
- package/third-party/npm/@radix-ui__react-use-is-hydrated@0.1.3/package.json +61 -0
- package/third-party/npm/@radix-ui__react-use-layout-effect@1.1.4/LICENSE +21 -0
- package/third-party/npm/@radix-ui__react-use-layout-effect@1.1.4/package.json +60 -0
- package/third-party/npm/@radix-ui__react-use-size@1.1.4/LICENSE +21 -0
- package/third-party/npm/@radix-ui__react-use-size@1.1.4/package.json +63 -0
- package/third-party/npm/aria-hidden@1.2.6/LICENSE +21 -0
- package/third-party/npm/aria-hidden@1.2.6/package.json +71 -0
- package/third-party/npm/detect-node-es@1.1.0/LICENSE +21 -0
- package/third-party/npm/detect-node-es@1.1.0/package.json +29 -0
- package/third-party/npm/esbuild@0.27.4/LICENSE.md +21 -0
- package/third-party/npm/esbuild@0.27.4/package.json +49 -0
- package/third-party/npm/fflate@0.8.3/LICENSE +21 -0
- package/third-party/npm/fflate@0.8.3/package.json +128 -0
- package/third-party/npm/get-nonce@1.0.1/LICENSE +21 -0
- package/third-party/npm/get-nonce@1.0.1/package.json +68 -0
- package/third-party/npm/mediabunny@1.52.2/LICENSE +373 -0
- package/third-party/npm/mediabunny@1.52.2/package.json +136 -0
- package/third-party/npm/mediabunny@1.52.2/source/LICENSE +373 -0
- package/third-party/npm/mediabunny@1.52.2/source/package.json +136 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/adts/adts-demuxer.ts +400 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/adts/adts-muxer.ts +124 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/adts/adts-reader.ts +85 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/aes.ts +307 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/codec-data.ts +3178 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/codec.ts +1154 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/conversion.ts +2042 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/custom-coder.ts +212 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/decode.ts +263 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/demuxer.ts +43 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/encode.ts +1412 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/flac/flac-demuxer.ts +813 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/flac/flac-misc.ts +165 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/flac/flac-muxer.ts +350 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/hls/hls-demuxer.ts +995 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/hls/hls-misc.ts +81 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/hls/hls-muxer.ts +1529 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/hls/hls-segmented-input.ts +772 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/id3.ts +972 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/index.ts +319 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/input-format.ts +819 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/input-track.ts +1141 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/input.ts +571 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/isobmff/isobmff-boxes.ts +1911 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/isobmff/isobmff-demuxer.ts +3953 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/isobmff/isobmff-misc.ts +90 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/isobmff/isobmff-muxer.ts +1595 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/isobmff/isobmff-reader.ts +91 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/logging.ts +120 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/matroska/ebml.ts +770 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/matroska/matroska-demuxer.ts +2598 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/matroska/matroska-misc.ts +29 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/matroska/matroska-muxer.ts +1360 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/media-sink.ts +2589 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/media-source.ts +3041 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/metadata.ts +335 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/misc.ts +1336 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/mp3/mp3-demuxer.ts +469 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/mp3/mp3-muxer.ts +169 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/mp3/mp3-reader.ts +61 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/mp3/mp3-writer.ts +121 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/mpeg-ts/mpeg-ts-demuxer.ts +2519 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/mpeg-ts/mpeg-ts-misc.ts +32 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/mpeg-ts/mpeg-ts-muxer.ts +842 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/muxer.ts +80 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/node.ts +11 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/ogg/ogg-demuxer.ts +1087 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/ogg/ogg-misc.ts +116 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/ogg/ogg-muxer.ts +527 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/ogg/ogg-reader.ts +93 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/output-format.ts +1425 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/output.ts +940 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/packet.ts +287 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/pcm.ts +112 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/reader.ts +391 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/resample.ts +287 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/sample.ts +3231 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/segmented-input.ts +575 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/source.ts +2588 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/subtitles.ts +131 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/target.ts +871 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/tsconfig.json +16 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/wave/riff-writer.ts +36 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/wave/wave-demuxer.ts +583 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/wave/wave-muxer.ts +375 -0
- package/third-party/npm/mediabunny@1.52.2/source/src/writer.ts +128 -0
- package/third-party/npm/react-dom@19.3.0/LICENSE +21 -0
- package/third-party/npm/react-dom@19.3.0/package.json +117 -0
- package/third-party/npm/react-remove-scroll-bar@2.3.8/package.json +85 -0
- package/third-party/npm/react-remove-scroll-bar@2.3.8/react-remove-scroll-bar-LICENSE +21 -0
- package/third-party/npm/react-remove-scroll@2.7.2/LICENSE +21 -0
- package/third-party/npm/react-remove-scroll@2.7.2/package.json +98 -0
- package/third-party/npm/react-style-singleton@2.2.3/LICENSE +21 -0
- package/third-party/npm/react-style-singleton@2.2.3/package.json +90 -0
- package/third-party/npm/react@19.3.0/LICENSE +21 -0
- package/third-party/npm/react@19.3.0/package.json +51 -0
- package/third-party/npm/scheduler@0.28.0/LICENSE +21 -0
- package/third-party/npm/scheduler@0.28.0/package.json +27 -0
- package/third-party/npm/tslib@2.8.1/LICENSE.txt +12 -0
- package/third-party/npm/tslib@2.8.1/package.json +47 -0
- package/third-party/npm/typescript@5.9.3/LICENSE.txt +55 -0
- package/third-party/npm/typescript@5.9.3/ThirdPartyNoticeText.txt +193 -0
- package/third-party/npm/typescript@5.9.3/package.json +120 -0
- package/third-party/npm/use-callback-ref@1.3.3/LICENSE +21 -0
- package/third-party/npm/use-callback-ref@1.3.3/package.json +85 -0
- package/third-party/npm/use-sidecar@1.1.3/LICENSE +21 -0
- package/third-party/npm/use-sidecar@1.1.3/package.json +93 -0
- package/third-party/packages/render-engine/assets/OFL.txt +93 -0
- package/third-party/packages/studio/public/fonts/OFL.txt +93 -0
- package/third-party/packages/studio/vendor/osmo-icons/LICENSE +21 -0
- package/third-party/packages/studio/vendor/shadcn/LICENSE +21 -0
- package/third-party/repository-notices.md +41 -0
- package/third-party/rust-standard-library/COPYRIGHT-library.html +5556 -0
- package/third-party/rust-standard-library/licenses/Apache-2.0.txt +73 -0
- package/third-party/rust-standard-library/licenses/BSD-2-Clause.txt +9 -0
- package/third-party/rust-standard-library/licenses/CC-BY-SA-4.0.txt +427 -0
- package/third-party/rust-standard-library/licenses/GCC-exception-3.1.txt +30 -0
- package/third-party/rust-standard-library/licenses/GPL-2.0-only.txt +133 -0
- package/third-party/rust-standard-library/licenses/GPL-3.0-or-later.txt +202 -0
- package/third-party/rust-standard-library/licenses/ISC.txt +7 -0
- package/third-party/rust-standard-library/licenses/LLVM-exception.txt +15 -0
- package/third-party/rust-standard-library/licenses/MIT.txt +9 -0
- package/third-party/rust-standard-library/licenses/NCSA.txt +29 -0
- package/third-party/rust-standard-library/licenses/OFL-1.1.txt +43 -0
- package/third-party/rust-standard-library/licenses/Unicode-3.0.txt +39 -0
- package/third-party/rust-standard-library/version.txt +1 -0
- package/vendor/osmo-lite +0 -0
- package/vendor/osmo-scene-0.1.0.tgz +0 -0
- package/vendor/platform.json +1 -0
|
@@ -0,0 +1,1087 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) 2026-present, Vanilagy and contributors
|
|
3
|
+
*
|
|
4
|
+
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
5
|
+
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
6
|
+
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { OPUS_SAMPLE_RATE } from '../codec';
|
|
10
|
+
import { parseModesFromVorbisSetupPacket, parseOpusIdentificationHeader, readVorbisComments } from '../codec-data';
|
|
11
|
+
import { Demuxer } from '../demuxer';
|
|
12
|
+
import { Input } from '../input';
|
|
13
|
+
import { InputAudioTrackBacking } from '../input-track';
|
|
14
|
+
import { PacketRetrievalOptions } from '../media-sink';
|
|
15
|
+
import { DEFAULT_TRACK_DISPOSITION, MetadataTags, TrackDisposition } from '../metadata';
|
|
16
|
+
import {
|
|
17
|
+
assert,
|
|
18
|
+
AsyncMutex,
|
|
19
|
+
binarySearchLessOrEqual,
|
|
20
|
+
findLast,
|
|
21
|
+
last,
|
|
22
|
+
roundIfAlmostInteger,
|
|
23
|
+
toDataView,
|
|
24
|
+
UNDETERMINED_LANGUAGE,
|
|
25
|
+
} from '../misc';
|
|
26
|
+
import { EncodedPacket, PLACEHOLDER_DATA } from '../packet';
|
|
27
|
+
import { readBytes, Reader } from '../reader';
|
|
28
|
+
import { buildOggMimeType, computeOggPageCrc, extractSampleMetadata, OggCodecInfo } from './ogg-misc';
|
|
29
|
+
import {
|
|
30
|
+
findNextPageHeader,
|
|
31
|
+
MAX_PAGE_HEADER_SIZE,
|
|
32
|
+
MAX_PAGE_SIZE,
|
|
33
|
+
MIN_PAGE_HEADER_SIZE,
|
|
34
|
+
Page,
|
|
35
|
+
readPageHeader,
|
|
36
|
+
} from './ogg-reader';
|
|
37
|
+
|
|
38
|
+
type LogicalBitstream = {
|
|
39
|
+
serialNumber: number;
|
|
40
|
+
bosPage: Page;
|
|
41
|
+
description: Uint8Array | null;
|
|
42
|
+
numberOfChannels: number;
|
|
43
|
+
sampleRate: number;
|
|
44
|
+
codecInfo: OggCodecInfo;
|
|
45
|
+
|
|
46
|
+
lastMetadataPacket: Packet | null;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
type Packet = {
|
|
50
|
+
data: Uint8Array;
|
|
51
|
+
endPage: Page;
|
|
52
|
+
endSegmentIndex: number;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
export class OggDemuxer extends Demuxer {
|
|
56
|
+
reader: Reader;
|
|
57
|
+
|
|
58
|
+
metadataPromise: Promise<void> | null = null;
|
|
59
|
+
bitstreams: LogicalBitstream[] = [];
|
|
60
|
+
trackBackings: OggAudioTrackBacking[] = [];
|
|
61
|
+
metadataTags: MetadataTags = {};
|
|
62
|
+
|
|
63
|
+
constructor(input: Input) {
|
|
64
|
+
super(input);
|
|
65
|
+
|
|
66
|
+
this.reader = input._reader;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
async readMetadata() {
|
|
70
|
+
return this.metadataPromise ??= (async () => {
|
|
71
|
+
let currentPos = 0;
|
|
72
|
+
|
|
73
|
+
while (true) {
|
|
74
|
+
let slice = this.reader.requestSliceRange(currentPos, MIN_PAGE_HEADER_SIZE, MAX_PAGE_HEADER_SIZE);
|
|
75
|
+
if (slice instanceof Promise) slice = await slice;
|
|
76
|
+
if (!slice) break;
|
|
77
|
+
|
|
78
|
+
const page = readPageHeader(slice);
|
|
79
|
+
if (!page) {
|
|
80
|
+
break;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
const isBos = !!(page.headerType & 0x02);
|
|
84
|
+
if (!isBos) {
|
|
85
|
+
// All bos pages for all bitstreams are required to be at the start, so if the page is not bos then
|
|
86
|
+
// we know we've seen all bitstreams (minus chaining)
|
|
87
|
+
break;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
this.bitstreams.push({
|
|
91
|
+
serialNumber: page.serialNumber,
|
|
92
|
+
bosPage: page,
|
|
93
|
+
description: null,
|
|
94
|
+
numberOfChannels: -1,
|
|
95
|
+
sampleRate: -1,
|
|
96
|
+
codecInfo: {
|
|
97
|
+
codec: null,
|
|
98
|
+
vorbisInfo: null,
|
|
99
|
+
opusInfo: null,
|
|
100
|
+
},
|
|
101
|
+
lastMetadataPacket: null,
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
currentPos = page.headerStartPos + page.totalSize;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
for (const bitstream of this.bitstreams) {
|
|
108
|
+
const firstPacket = await this.readPacket(bitstream.bosPage, 0);
|
|
109
|
+
if (!firstPacket) {
|
|
110
|
+
continue;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
if (
|
|
114
|
+
// Check for Vorbis
|
|
115
|
+
firstPacket.data.byteLength >= 7
|
|
116
|
+
&& firstPacket.data[0] === 0x01 // Packet type 1 = identification header
|
|
117
|
+
&& firstPacket.data[1] === 0x76 // 'v'
|
|
118
|
+
&& firstPacket.data[2] === 0x6f // 'o'
|
|
119
|
+
&& firstPacket.data[3] === 0x72 // 'r'
|
|
120
|
+
&& firstPacket.data[4] === 0x62 // 'b'
|
|
121
|
+
&& firstPacket.data[5] === 0x69 // 'i'
|
|
122
|
+
&& firstPacket.data[6] === 0x73 // 's'
|
|
123
|
+
) {
|
|
124
|
+
await this.readVorbisMetadata(firstPacket, bitstream);
|
|
125
|
+
} else if (
|
|
126
|
+
// Check for Opus
|
|
127
|
+
firstPacket.data.byteLength >= 8
|
|
128
|
+
&& firstPacket.data[0] === 0x4f // 'O'
|
|
129
|
+
&& firstPacket.data[1] === 0x70 // 'p'
|
|
130
|
+
&& firstPacket.data[2] === 0x75 // 'u'
|
|
131
|
+
&& firstPacket.data[3] === 0x73 // 's'
|
|
132
|
+
&& firstPacket.data[4] === 0x48 // 'H'
|
|
133
|
+
&& firstPacket.data[5] === 0x65 // 'e'
|
|
134
|
+
&& firstPacket.data[6] === 0x61 // 'a'
|
|
135
|
+
&& firstPacket.data[7] === 0x64 // 'd'
|
|
136
|
+
) {
|
|
137
|
+
await this.readOpusMetadata(firstPacket, bitstream);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
if (bitstream.codecInfo.codec !== null) {
|
|
141
|
+
this.trackBackings.push(new OggAudioTrackBacking(bitstream, this));
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
})();
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
async readVorbisMetadata(firstPacket: Packet, bitstream: LogicalBitstream) {
|
|
148
|
+
let nextPacketPosition = await this.findNextPacketStart(firstPacket);
|
|
149
|
+
if (!nextPacketPosition) {
|
|
150
|
+
return;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
const secondPacket = await this.readPacket(nextPacketPosition.startPage, nextPacketPosition.startSegmentIndex);
|
|
154
|
+
if (!secondPacket) {
|
|
155
|
+
return;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
nextPacketPosition = await this.findNextPacketStart(secondPacket);
|
|
159
|
+
if (!nextPacketPosition) {
|
|
160
|
+
return;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
const thirdPacket = await this.readPacket(nextPacketPosition.startPage, nextPacketPosition.startSegmentIndex);
|
|
164
|
+
if (!thirdPacket) {
|
|
165
|
+
return;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
if (secondPacket.data[0] !== 0x03 || thirdPacket.data[0] !== 0x05) {
|
|
169
|
+
return;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
const lacingValues: number[] = [];
|
|
173
|
+
const addBytesToSegmentTable = (bytes: number) => {
|
|
174
|
+
while (true) {
|
|
175
|
+
lacingValues.push(Math.min(255, bytes));
|
|
176
|
+
|
|
177
|
+
if (bytes < 255) {
|
|
178
|
+
break;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
bytes -= 255;
|
|
182
|
+
}
|
|
183
|
+
};
|
|
184
|
+
|
|
185
|
+
addBytesToSegmentTable(firstPacket.data.length);
|
|
186
|
+
addBytesToSegmentTable(secondPacket.data.length);
|
|
187
|
+
// We don't add the last packet to the segment table, as it is assumed to be whatever bytes remain
|
|
188
|
+
|
|
189
|
+
const description = new Uint8Array(
|
|
190
|
+
1 + lacingValues.length
|
|
191
|
+
+ firstPacket.data.length + secondPacket.data.length + thirdPacket.data.length,
|
|
192
|
+
);
|
|
193
|
+
description[0] = 2; // Num entries in the segment table
|
|
194
|
+
description.set(
|
|
195
|
+
lacingValues, 1,
|
|
196
|
+
);
|
|
197
|
+
description.set(
|
|
198
|
+
firstPacket.data, 1 + lacingValues.length,
|
|
199
|
+
);
|
|
200
|
+
description.set(
|
|
201
|
+
secondPacket.data, 1 + lacingValues.length + firstPacket.data.length,
|
|
202
|
+
);
|
|
203
|
+
description.set(
|
|
204
|
+
thirdPacket.data, 1 + lacingValues.length + firstPacket.data.length + secondPacket.data.length,
|
|
205
|
+
);
|
|
206
|
+
|
|
207
|
+
bitstream.codecInfo.codec = 'vorbis';
|
|
208
|
+
bitstream.description = description;
|
|
209
|
+
bitstream.lastMetadataPacket = thirdPacket;
|
|
210
|
+
|
|
211
|
+
const view = toDataView(firstPacket.data);
|
|
212
|
+
bitstream.numberOfChannels = view.getUint8(11);
|
|
213
|
+
bitstream.sampleRate = view.getUint32(12, true);
|
|
214
|
+
|
|
215
|
+
const blockSizeByte = view.getUint8(28);
|
|
216
|
+
bitstream.codecInfo.vorbisInfo = {
|
|
217
|
+
blocksizes: [
|
|
218
|
+
1 << (blockSizeByte & 0xf),
|
|
219
|
+
1 << (blockSizeByte >> 4),
|
|
220
|
+
],
|
|
221
|
+
modeBlockflags: parseModesFromVorbisSetupPacket(thirdPacket.data).modeBlockflags,
|
|
222
|
+
};
|
|
223
|
+
|
|
224
|
+
readVorbisComments(secondPacket.data.subarray(7), this.metadataTags); // Skip header type and 'vorbis'
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
async readOpusMetadata(firstPacket: Packet, bitstream: LogicalBitstream) {
|
|
228
|
+
// From https://datatracker.ietf.org/doc/html/rfc7845#section-5:
|
|
229
|
+
// "An Ogg Opus logical stream contains exactly two mandatory header packets: an identification header and a
|
|
230
|
+
// comment header."
|
|
231
|
+
const nextPacketPosition = await this.findNextPacketStart(firstPacket);
|
|
232
|
+
if (!nextPacketPosition) {
|
|
233
|
+
return;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
const secondPacket = await this.readPacket(
|
|
237
|
+
nextPacketPosition.startPage,
|
|
238
|
+
nextPacketPosition.startSegmentIndex,
|
|
239
|
+
);
|
|
240
|
+
if (!secondPacket) {
|
|
241
|
+
return;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
bitstream.codecInfo.codec = 'opus';
|
|
245
|
+
bitstream.description = firstPacket.data;
|
|
246
|
+
bitstream.lastMetadataPacket = secondPacket;
|
|
247
|
+
|
|
248
|
+
const header = parseOpusIdentificationHeader(firstPacket.data);
|
|
249
|
+
bitstream.numberOfChannels = header.outputChannelCount;
|
|
250
|
+
bitstream.sampleRate = OPUS_SAMPLE_RATE; // Always the same
|
|
251
|
+
|
|
252
|
+
bitstream.codecInfo.opusInfo = {
|
|
253
|
+
preSkip: header.preSkip,
|
|
254
|
+
};
|
|
255
|
+
|
|
256
|
+
readVorbisComments(secondPacket.data.subarray(8), this.metadataTags); // Skip 'OpusTags'
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
async readPacket(startPage: Page, startSegmentIndex: number): Promise<Packet | null> {
|
|
260
|
+
assert(startSegmentIndex < startPage.lacingValues.length);
|
|
261
|
+
|
|
262
|
+
let startDataOffset = 0;
|
|
263
|
+
for (let i = 0; i < startSegmentIndex; i++) {
|
|
264
|
+
startDataOffset += startPage.lacingValues[i]!;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
let currentPage: Page = startPage;
|
|
268
|
+
let currentDataOffset = startDataOffset;
|
|
269
|
+
let currentSegmentIndex = startSegmentIndex;
|
|
270
|
+
|
|
271
|
+
const chunks: Uint8Array[] = [];
|
|
272
|
+
|
|
273
|
+
outer:
|
|
274
|
+
while (true) {
|
|
275
|
+
// Load the entire page data
|
|
276
|
+
let pageSlice = this.reader.requestSlice(currentPage.dataStartPos, currentPage.dataSize);
|
|
277
|
+
if (pageSlice instanceof Promise) pageSlice = await pageSlice;
|
|
278
|
+
assert(pageSlice);
|
|
279
|
+
const pageData = readBytes(pageSlice, currentPage.dataSize);
|
|
280
|
+
|
|
281
|
+
while (true) {
|
|
282
|
+
if (currentSegmentIndex === currentPage.lacingValues.length) {
|
|
283
|
+
chunks.push(pageData.subarray(startDataOffset, currentDataOffset));
|
|
284
|
+
break;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
const lacingValue = currentPage.lacingValues[currentSegmentIndex]!;
|
|
288
|
+
currentDataOffset += lacingValue;
|
|
289
|
+
|
|
290
|
+
if (lacingValue < 255) {
|
|
291
|
+
chunks.push(pageData.subarray(startDataOffset, currentDataOffset));
|
|
292
|
+
break outer;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
currentSegmentIndex++;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
// The packet extends to the next page; let's find it
|
|
299
|
+
let currentPos = currentPage.headerStartPos + currentPage.totalSize;
|
|
300
|
+
while (true) {
|
|
301
|
+
let headerSlice = this.reader.requestSliceRange(currentPos, MIN_PAGE_HEADER_SIZE, MAX_PAGE_HEADER_SIZE);
|
|
302
|
+
if (headerSlice instanceof Promise) headerSlice = await headerSlice;
|
|
303
|
+
if (!headerSlice) {
|
|
304
|
+
return null;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
const nextPage = readPageHeader(headerSlice);
|
|
308
|
+
if (!nextPage) {
|
|
309
|
+
return null;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
currentPage = nextPage;
|
|
313
|
+
if (currentPage.serialNumber === startPage.serialNumber) {
|
|
314
|
+
break;
|
|
315
|
+
}
|
|
316
|
+
currentPos = currentPage.headerStartPos + currentPage.totalSize;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
startDataOffset = 0;
|
|
320
|
+
currentDataOffset = 0;
|
|
321
|
+
currentSegmentIndex = 0;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
const totalPacketSize = chunks.reduce((sum, chunk) => sum + chunk.length, 0);
|
|
325
|
+
if (totalPacketSize === 0) {
|
|
326
|
+
return null; // Invalid packet, treat it as end of stream
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
const packetData = new Uint8Array(totalPacketSize);
|
|
330
|
+
|
|
331
|
+
let offset = 0;
|
|
332
|
+
for (let i = 0; i < chunks.length; i++) {
|
|
333
|
+
const chunk = chunks[i]!;
|
|
334
|
+
packetData.set(chunk, offset);
|
|
335
|
+
offset += chunk.length;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
return {
|
|
339
|
+
data: packetData,
|
|
340
|
+
endPage: currentPage,
|
|
341
|
+
endSegmentIndex: currentSegmentIndex,
|
|
342
|
+
};
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
async findNextPacketStart(lastPacket: Packet) {
|
|
346
|
+
// If there's another segment in the same page, return it
|
|
347
|
+
if (lastPacket.endSegmentIndex < lastPacket.endPage.lacingValues.length - 1) {
|
|
348
|
+
return { startPage: lastPacket.endPage, startSegmentIndex: lastPacket.endSegmentIndex + 1 };
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
const isEos = !!(lastPacket.endPage.headerType & 0x04);
|
|
352
|
+
if (isEos) {
|
|
353
|
+
// The page is marked as the last page of the logical bitstream, so we won't find anything beyond it
|
|
354
|
+
return null;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
// Otherwise, search for the next page belonging to the same bitstream
|
|
358
|
+
let currentPos = lastPacket.endPage.headerStartPos + lastPacket.endPage.totalSize;
|
|
359
|
+
while (true) {
|
|
360
|
+
let slice = this.reader.requestSliceRange(currentPos, MIN_PAGE_HEADER_SIZE, MAX_PAGE_HEADER_SIZE);
|
|
361
|
+
if (slice instanceof Promise) slice = await slice;
|
|
362
|
+
if (!slice) {
|
|
363
|
+
return null;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
const nextPage = readPageHeader(slice);
|
|
367
|
+
if (!nextPage) {
|
|
368
|
+
return null;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
if (nextPage.serialNumber === lastPacket.endPage.serialNumber) {
|
|
372
|
+
return { startPage: nextPage, startSegmentIndex: 0 };
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
currentPos = nextPage.headerStartPos + nextPage.totalSize;
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
async getMimeType() {
|
|
380
|
+
await this.readMetadata();
|
|
381
|
+
|
|
382
|
+
const codecStrings = await Promise.all(this.trackBackings.map(
|
|
383
|
+
x => x.getDecoderConfig().then(c => c?.codec ?? null),
|
|
384
|
+
));
|
|
385
|
+
|
|
386
|
+
return buildOggMimeType({
|
|
387
|
+
codecStrings: codecStrings.filter(Boolean) as string[],
|
|
388
|
+
});
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
async getTrackBackings() {
|
|
392
|
+
await this.readMetadata();
|
|
393
|
+
return this.trackBackings;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
async getMetadataTags() {
|
|
397
|
+
await this.readMetadata();
|
|
398
|
+
return this.metadataTags;
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
type EncodedPacketMetadata = {
|
|
403
|
+
packet: Packet;
|
|
404
|
+
timestampInSamples: number;
|
|
405
|
+
durationInSamples: number;
|
|
406
|
+
vorbisLastBlockSize: number | null;
|
|
407
|
+
vorbisBlockSize: number | null;
|
|
408
|
+
};
|
|
409
|
+
|
|
410
|
+
class OggAudioTrackBacking implements InputAudioTrackBacking {
|
|
411
|
+
internalSampleRate: number;
|
|
412
|
+
encodedPacketToMetadata = new WeakMap<EncodedPacket, EncodedPacketMetadata>();
|
|
413
|
+
sequentialScanCache: EncodedPacketMetadata[] = [];
|
|
414
|
+
sequentialScanMutex = new AsyncMutex();
|
|
415
|
+
|
|
416
|
+
constructor(public bitstream: LogicalBitstream, public demuxer: OggDemuxer) {
|
|
417
|
+
// Opus always uses a fixed sample rate for its internal calculations, even if the actual rate is different
|
|
418
|
+
this.internalSampleRate = bitstream.codecInfo.codec === 'opus'
|
|
419
|
+
? OPUS_SAMPLE_RATE
|
|
420
|
+
: bitstream.sampleRate;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
getType() {
|
|
424
|
+
return 'audio' as const;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
getId() {
|
|
428
|
+
return this.bitstream.serialNumber;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
getNumber() {
|
|
432
|
+
// All Ogg tracks are audio, so the track's index + 1 is its number
|
|
433
|
+
const index = this.demuxer.trackBackings.findIndex(
|
|
434
|
+
x => x.bitstream === this.bitstream,
|
|
435
|
+
);
|
|
436
|
+
assert(index !== -1);
|
|
437
|
+
|
|
438
|
+
return index + 1;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
getNumberOfChannels() {
|
|
442
|
+
return this.bitstream.numberOfChannels;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
getSampleRate() {
|
|
446
|
+
return this.bitstream.sampleRate;
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
getTimeResolution() {
|
|
450
|
+
return this.bitstream.sampleRate;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
isRelativeToUnixEpoch() {
|
|
454
|
+
return false;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
getUnixTimeForTimestamp() {
|
|
458
|
+
return null;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
getPairingMask() {
|
|
462
|
+
return 1n;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
getBitrate() {
|
|
466
|
+
return null;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
getAverageBitrate() {
|
|
470
|
+
return null;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
async getDurationFromMetadata() {
|
|
474
|
+
return null; // Not stored anywhere
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
async getLiveRefreshInterval() {
|
|
478
|
+
return null;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
getCodec() {
|
|
482
|
+
return this.bitstream.codecInfo.codec;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
getInternalCodecId() {
|
|
486
|
+
return null;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
async getDecoderConfig(): Promise<AudioDecoderConfig | null> {
|
|
490
|
+
assert(this.bitstream.codecInfo.codec);
|
|
491
|
+
|
|
492
|
+
return {
|
|
493
|
+
codec: this.bitstream.codecInfo.codec,
|
|
494
|
+
numberOfChannels: this.bitstream.numberOfChannels,
|
|
495
|
+
sampleRate: this.bitstream.sampleRate,
|
|
496
|
+
description: this.bitstream.description ?? undefined,
|
|
497
|
+
};
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
getName() {
|
|
501
|
+
return null;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
getLanguageCode() {
|
|
505
|
+
return UNDETERMINED_LANGUAGE;
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
getDisposition(): TrackDisposition {
|
|
509
|
+
return {
|
|
510
|
+
...DEFAULT_TRACK_DISPOSITION,
|
|
511
|
+
primary: false,
|
|
512
|
+
};
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
granulePositionToTimestampInSamples(granulePosition: number) {
|
|
516
|
+
if (this.bitstream.codecInfo.codec === 'opus') {
|
|
517
|
+
assert(this.bitstream.codecInfo.opusInfo);
|
|
518
|
+
return granulePosition - this.bitstream.codecInfo.opusInfo.preSkip;
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
return granulePosition;
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
createEncodedPacketFromOggPacket(
|
|
525
|
+
packet: Packet | null,
|
|
526
|
+
additional: {
|
|
527
|
+
timestampInSamples: number;
|
|
528
|
+
vorbisLastBlocksize: number | null;
|
|
529
|
+
},
|
|
530
|
+
options: PacketRetrievalOptions,
|
|
531
|
+
) {
|
|
532
|
+
if (!packet) {
|
|
533
|
+
return null;
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
const { durationInSamples, vorbisBlockSize } = extractSampleMetadata(
|
|
537
|
+
packet.data,
|
|
538
|
+
this.bitstream.codecInfo,
|
|
539
|
+
additional.vorbisLastBlocksize,
|
|
540
|
+
);
|
|
541
|
+
|
|
542
|
+
const encodedPacket = new EncodedPacket(
|
|
543
|
+
options.metadataOnly ? PLACEHOLDER_DATA : packet.data,
|
|
544
|
+
'key',
|
|
545
|
+
Math.max(0, additional.timestampInSamples) / this.internalSampleRate,
|
|
546
|
+
durationInSamples / this.internalSampleRate,
|
|
547
|
+
packet.endPage.headerStartPos + packet.endSegmentIndex,
|
|
548
|
+
packet.data.byteLength,
|
|
549
|
+
);
|
|
550
|
+
|
|
551
|
+
this.encodedPacketToMetadata.set(encodedPacket, {
|
|
552
|
+
packet,
|
|
553
|
+
timestampInSamples: additional.timestampInSamples,
|
|
554
|
+
durationInSamples,
|
|
555
|
+
vorbisLastBlockSize: additional.vorbisLastBlocksize,
|
|
556
|
+
vorbisBlockSize,
|
|
557
|
+
});
|
|
558
|
+
return encodedPacket;
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
async getFirstPacket(options: PacketRetrievalOptions) {
|
|
562
|
+
assert(this.bitstream.lastMetadataPacket);
|
|
563
|
+
const packetPosition = await this.demuxer.findNextPacketStart(this.bitstream.lastMetadataPacket);
|
|
564
|
+
if (!packetPosition) {
|
|
565
|
+
return null;
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
let timestampInSamples = 0;
|
|
569
|
+
if (this.bitstream.codecInfo.codec === 'opus') {
|
|
570
|
+
assert(this.bitstream.codecInfo.opusInfo);
|
|
571
|
+
timestampInSamples -= this.bitstream.codecInfo.opusInfo.preSkip;
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
const packet = await this.demuxer.readPacket(packetPosition.startPage, packetPosition.startSegmentIndex);
|
|
575
|
+
|
|
576
|
+
return this.createEncodedPacketFromOggPacket(
|
|
577
|
+
packet,
|
|
578
|
+
{
|
|
579
|
+
timestampInSamples,
|
|
580
|
+
vorbisLastBlocksize: null,
|
|
581
|
+
},
|
|
582
|
+
options,
|
|
583
|
+
);
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
async getNextPacket(prevPacket: EncodedPacket, options: PacketRetrievalOptions) {
|
|
587
|
+
const prevMetadata = this.encodedPacketToMetadata.get(prevPacket);
|
|
588
|
+
if (!prevMetadata) {
|
|
589
|
+
throw new Error('Packet was not created from this track.');
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
const packetPosition = await this.demuxer.findNextPacketStart(prevMetadata.packet);
|
|
593
|
+
if (!packetPosition) {
|
|
594
|
+
return null;
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
const timestampInSamples = prevMetadata.timestampInSamples + prevMetadata.durationInSamples;
|
|
598
|
+
|
|
599
|
+
const packet = await this.demuxer.readPacket(
|
|
600
|
+
packetPosition.startPage,
|
|
601
|
+
packetPosition.startSegmentIndex,
|
|
602
|
+
);
|
|
603
|
+
|
|
604
|
+
return this.createEncodedPacketFromOggPacket(
|
|
605
|
+
packet,
|
|
606
|
+
{
|
|
607
|
+
timestampInSamples,
|
|
608
|
+
vorbisLastBlocksize: prevMetadata.vorbisBlockSize,
|
|
609
|
+
},
|
|
610
|
+
options,
|
|
611
|
+
);
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
async getPacket(timestamp: number, options: PacketRetrievalOptions) {
|
|
615
|
+
if (this.demuxer.reader.fileSize === null) {
|
|
616
|
+
// No file size known, can't do binary search, but fall back to sequential algo instead
|
|
617
|
+
return this.getPacketSequential(timestamp, options);
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
const timestampInSamples = roundIfAlmostInteger(timestamp * this.internalSampleRate);
|
|
621
|
+
if (timestampInSamples === 0) {
|
|
622
|
+
// Fast path for timestamp 0 - avoids binary search when playing back from the start
|
|
623
|
+
return this.getFirstPacket(options);
|
|
624
|
+
}
|
|
625
|
+
if (timestampInSamples < 0) {
|
|
626
|
+
// There's nothing here
|
|
627
|
+
return null;
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
assert(this.bitstream.lastMetadataPacket);
|
|
631
|
+
const startPosition = await this.demuxer.findNextPacketStart(this.bitstream.lastMetadataPacket);
|
|
632
|
+
if (!startPosition) {
|
|
633
|
+
return null;
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
let lowPage = startPosition.startPage;
|
|
637
|
+
let high = this.demuxer.reader.fileSize;
|
|
638
|
+
|
|
639
|
+
const lowPages: Page[] = [lowPage];
|
|
640
|
+
|
|
641
|
+
// First, let's perform a binary search (bisection search) on the file to find the approximate page where
|
|
642
|
+
// we'll find the packet. We want to find a page whose end packet position is less than or equal to the
|
|
643
|
+
// packet position we're searching for.
|
|
644
|
+
|
|
645
|
+
// Outer loop: Does the binary search
|
|
646
|
+
outer:
|
|
647
|
+
while (lowPage.headerStartPos + lowPage.totalSize < high) {
|
|
648
|
+
const low = lowPage.headerStartPos;
|
|
649
|
+
const mid = Math.floor((low + high) / 2);
|
|
650
|
+
|
|
651
|
+
let searchStartPos = mid;
|
|
652
|
+
|
|
653
|
+
// Inner loop: Does a linear forward scan if the page cannot be found immediately
|
|
654
|
+
while (true) {
|
|
655
|
+
const until = Math.min(
|
|
656
|
+
searchStartPos + MAX_PAGE_SIZE,
|
|
657
|
+
high - MIN_PAGE_HEADER_SIZE,
|
|
658
|
+
);
|
|
659
|
+
|
|
660
|
+
let searchSlice = this.demuxer.reader.requestSlice(searchStartPos, until - searchStartPos);
|
|
661
|
+
if (searchSlice instanceof Promise) searchSlice = await searchSlice;
|
|
662
|
+
assert(searchSlice);
|
|
663
|
+
|
|
664
|
+
const found = findNextPageHeader(searchSlice, until);
|
|
665
|
+
if (!found) {
|
|
666
|
+
high = mid + MIN_PAGE_HEADER_SIZE;
|
|
667
|
+
continue outer;
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
let headerSlice = this.demuxer.reader.requestSliceRange(
|
|
671
|
+
searchSlice.filePos,
|
|
672
|
+
MIN_PAGE_HEADER_SIZE,
|
|
673
|
+
MAX_PAGE_HEADER_SIZE,
|
|
674
|
+
);
|
|
675
|
+
if (headerSlice instanceof Promise) headerSlice = await headerSlice;
|
|
676
|
+
assert(headerSlice);
|
|
677
|
+
|
|
678
|
+
const page = readPageHeader(headerSlice);
|
|
679
|
+
assert(page);
|
|
680
|
+
|
|
681
|
+
let pageValid = false;
|
|
682
|
+
if (page.serialNumber === this.bitstream.serialNumber) {
|
|
683
|
+
// Serial numbers are basically random numbers, and the chance of finding a fake page with
|
|
684
|
+
// matching serial number is astronomically low, so we can be pretty sure this page is legit.
|
|
685
|
+
pageValid = true;
|
|
686
|
+
} else {
|
|
687
|
+
let pageSlice = this.demuxer.reader.requestSlice(page.headerStartPos, page.totalSize);
|
|
688
|
+
if (pageSlice instanceof Promise) pageSlice = await pageSlice;
|
|
689
|
+
assert(pageSlice);
|
|
690
|
+
|
|
691
|
+
// Validate the page by checking checksum
|
|
692
|
+
const bytes = readBytes(pageSlice, page.totalSize);
|
|
693
|
+
const crc = computeOggPageCrc(bytes);
|
|
694
|
+
|
|
695
|
+
pageValid = crc === page.checksum;
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
if (!pageValid) {
|
|
699
|
+
// Keep searching for a valid page
|
|
700
|
+
searchStartPos = page.headerStartPos + 4; // 'OggS' is 4 bytes
|
|
701
|
+
continue;
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
if (pageValid && page.serialNumber !== this.bitstream.serialNumber) {
|
|
705
|
+
// Page is valid but from a different bitstream, so keep searching forward until we find one
|
|
706
|
+
// belonging to the our bitstream
|
|
707
|
+
searchStartPos = page.headerStartPos + page.totalSize;
|
|
708
|
+
continue;
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
const isContinuationPage = page.granulePosition === -1;
|
|
712
|
+
if (isContinuationPage) {
|
|
713
|
+
// No packet ends on this page - keep looking
|
|
714
|
+
searchStartPos = page.headerStartPos + page.totalSize;
|
|
715
|
+
continue;
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
// The page is valid and belongs to our bitstream; let's check its granule position to see where we
|
|
719
|
+
// need to take the bisection search.
|
|
720
|
+
if (this.granulePositionToTimestampInSamples(page.granulePosition) > timestampInSamples) {
|
|
721
|
+
high = page.headerStartPos;
|
|
722
|
+
} else {
|
|
723
|
+
lowPage = page;
|
|
724
|
+
lowPages.push(page);
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
continue outer;
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
// Now we have the last page with a packet position <= the packet position we're looking for, but there
|
|
732
|
+
// might be multiple pages with the packet position, in which case we actually need to find the first of
|
|
733
|
+
// such pages. We'll do this in two steps: First, let's find the latest page we know with an earlier packet
|
|
734
|
+
// position, and then linear scan ourselves forward until we find the correct page.
|
|
735
|
+
|
|
736
|
+
let lowerPage = startPosition.startPage;
|
|
737
|
+
for (const otherLowPage of lowPages) {
|
|
738
|
+
if (otherLowPage.granulePosition === lowPage.granulePosition) {
|
|
739
|
+
break;
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
if (!lowerPage || otherLowPage.headerStartPos > lowerPage.headerStartPos) {
|
|
743
|
+
lowerPage = otherLowPage;
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
let currentPage = lowerPage;
|
|
748
|
+
// Keep track of the pages we traversed, we need these later for backwards seeking
|
|
749
|
+
const previousPages: Page[] = [currentPage];
|
|
750
|
+
|
|
751
|
+
while (true) {
|
|
752
|
+
// This loop must terminate as we'll eventually reach lowPage
|
|
753
|
+
if (
|
|
754
|
+
currentPage.serialNumber === this.bitstream.serialNumber
|
|
755
|
+
&& currentPage.granulePosition === lowPage.granulePosition
|
|
756
|
+
) {
|
|
757
|
+
break;
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
const nextPos = currentPage.headerStartPos + currentPage.totalSize;
|
|
761
|
+
let slice = this.demuxer.reader.requestSliceRange(nextPos, MIN_PAGE_HEADER_SIZE, MAX_PAGE_HEADER_SIZE);
|
|
762
|
+
if (slice instanceof Promise) slice = await slice;
|
|
763
|
+
assert(slice);
|
|
764
|
+
|
|
765
|
+
const nextPage = readPageHeader(slice);
|
|
766
|
+
assert(nextPage);
|
|
767
|
+
|
|
768
|
+
currentPage = nextPage;
|
|
769
|
+
|
|
770
|
+
if (currentPage.serialNumber === this.bitstream.serialNumber) {
|
|
771
|
+
previousPages.push(currentPage);
|
|
772
|
+
}
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
assert(currentPage.granulePosition !== -1);
|
|
776
|
+
|
|
777
|
+
let currentSegmentIndex: number | null = null;
|
|
778
|
+
let currentTimestampInSamples: number;
|
|
779
|
+
let currentTimestampIsCorrect: boolean;
|
|
780
|
+
|
|
781
|
+
// These indicate the end position of the packet that the granule position belongs to
|
|
782
|
+
let endPage = currentPage;
|
|
783
|
+
let endSegmentIndex = 0;
|
|
784
|
+
|
|
785
|
+
if (currentPage.headerStartPos === startPosition.startPage.headerStartPos) {
|
|
786
|
+
currentTimestampInSamples = this.granulePositionToTimestampInSamples(0);
|
|
787
|
+
currentTimestampIsCorrect = true;
|
|
788
|
+
currentSegmentIndex = 0;
|
|
789
|
+
} else {
|
|
790
|
+
currentTimestampInSamples = 0; // Placeholder value! We'll refine it once we can
|
|
791
|
+
currentTimestampIsCorrect = false;
|
|
792
|
+
|
|
793
|
+
// Find the segment index of the next packet
|
|
794
|
+
for (let i = currentPage.lacingValues.length - 1; i >= 0; i--) {
|
|
795
|
+
const value = currentPage.lacingValues[i]!;
|
|
796
|
+
if (value < 255) {
|
|
797
|
+
// We know the last packet ended at i, so the next one starts at i + 1
|
|
798
|
+
currentSegmentIndex = i + 1;
|
|
799
|
+
break;
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
// This must hold: Since this page has a granule position set, that means there must be a packet that
|
|
804
|
+
// ends in this page.
|
|
805
|
+
if (currentSegmentIndex === null) {
|
|
806
|
+
throw new Error('Invalid page with granule position: no packets end on this page.');
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
endSegmentIndex = currentSegmentIndex - 1;
|
|
810
|
+
const pseudopacket: Packet = {
|
|
811
|
+
data: PLACEHOLDER_DATA,
|
|
812
|
+
endPage,
|
|
813
|
+
endSegmentIndex,
|
|
814
|
+
};
|
|
815
|
+
const nextPosition = await this.demuxer.findNextPacketStart(pseudopacket);
|
|
816
|
+
|
|
817
|
+
if (nextPosition) {
|
|
818
|
+
// Let's rewind a single step (packet) - this previous packet ensures that we'll correctly compute
|
|
819
|
+
// the duration for the packet we're looking for.
|
|
820
|
+
const endPosition = findPreviousPacketEndPosition(previousPages, currentPage, currentSegmentIndex);
|
|
821
|
+
assert(endPosition);
|
|
822
|
+
|
|
823
|
+
const startPosition = findPacketStartPosition(
|
|
824
|
+
previousPages, endPosition.page, endPosition.segmentIndex,
|
|
825
|
+
);
|
|
826
|
+
if (startPosition) {
|
|
827
|
+
currentPage = startPosition.page;
|
|
828
|
+
currentSegmentIndex = startPosition.segmentIndex;
|
|
829
|
+
}
|
|
830
|
+
} else {
|
|
831
|
+
// There is no next position, which means we're looking for the last packet in the bitstream. The
|
|
832
|
+
// granule position on the last page tends to be fucky, so let's instead start the search on the
|
|
833
|
+
// page before that. So let's loop until we find a packet that ends in a previous page.
|
|
834
|
+
while (true) {
|
|
835
|
+
const endPosition = findPreviousPacketEndPosition(
|
|
836
|
+
previousPages, currentPage, currentSegmentIndex,
|
|
837
|
+
);
|
|
838
|
+
if (!endPosition) {
|
|
839
|
+
break;
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
const startPosition = findPacketStartPosition(
|
|
843
|
+
previousPages, endPosition.page, endPosition.segmentIndex,
|
|
844
|
+
);
|
|
845
|
+
if (!startPosition) {
|
|
846
|
+
break;
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
currentPage = startPosition.page;
|
|
850
|
+
currentSegmentIndex = startPosition.segmentIndex;
|
|
851
|
+
|
|
852
|
+
if (endPosition.page.headerStartPos !== endPage.headerStartPos) {
|
|
853
|
+
endPage = endPosition.page;
|
|
854
|
+
endSegmentIndex = endPosition.segmentIndex;
|
|
855
|
+
break;
|
|
856
|
+
}
|
|
857
|
+
}
|
|
858
|
+
}
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
let lastEncodedPacket: EncodedPacket | null = null;
|
|
862
|
+
let lastEncodedPacketMetadata: EncodedPacketMetadata | null = null;
|
|
863
|
+
|
|
864
|
+
// Alright, now it's time for the final, granular seek: We keep iterating over packets until we've found the
|
|
865
|
+
// one with the correct timestamp - i.e., the last one with a timestamp <= the timestamp we're looking for.
|
|
866
|
+
while (currentPage !== null) {
|
|
867
|
+
assert(currentSegmentIndex !== null);
|
|
868
|
+
|
|
869
|
+
const packet = await this.demuxer.readPacket(currentPage, currentSegmentIndex);
|
|
870
|
+
if (!packet) {
|
|
871
|
+
break;
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
// We might need to skip the packet if it's a metadata one
|
|
875
|
+
const skipPacket = currentPage.headerStartPos === startPosition.startPage.headerStartPos
|
|
876
|
+
&& currentSegmentIndex < startPosition.startSegmentIndex;
|
|
877
|
+
|
|
878
|
+
if (!skipPacket) {
|
|
879
|
+
let encodedPacket = this.createEncodedPacketFromOggPacket(
|
|
880
|
+
packet,
|
|
881
|
+
{
|
|
882
|
+
timestampInSamples: currentTimestampInSamples,
|
|
883
|
+
vorbisLastBlocksize: lastEncodedPacketMetadata?.vorbisBlockSize ?? null,
|
|
884
|
+
},
|
|
885
|
+
options,
|
|
886
|
+
);
|
|
887
|
+
assert(encodedPacket);
|
|
888
|
+
|
|
889
|
+
let encodedPacketMetadata = this.encodedPacketToMetadata.get(encodedPacket);
|
|
890
|
+
assert(encodedPacketMetadata);
|
|
891
|
+
|
|
892
|
+
if (
|
|
893
|
+
!currentTimestampIsCorrect
|
|
894
|
+
&& packet.endPage.headerStartPos === endPage.headerStartPos
|
|
895
|
+
&& packet.endSegmentIndex === endSegmentIndex
|
|
896
|
+
) {
|
|
897
|
+
// We know this packet end timestamp can be derived from the page's granule position
|
|
898
|
+
currentTimestampInSamples = this.granulePositionToTimestampInSamples(
|
|
899
|
+
currentPage.granulePosition,
|
|
900
|
+
);
|
|
901
|
+
currentTimestampIsCorrect = true;
|
|
902
|
+
|
|
903
|
+
// Let's backpatch the packet we just created with the correct timestamp
|
|
904
|
+
encodedPacket = this.createEncodedPacketFromOggPacket(
|
|
905
|
+
packet,
|
|
906
|
+
{
|
|
907
|
+
timestampInSamples: currentTimestampInSamples - encodedPacketMetadata.durationInSamples,
|
|
908
|
+
vorbisLastBlocksize: lastEncodedPacketMetadata?.vorbisBlockSize ?? null,
|
|
909
|
+
},
|
|
910
|
+
options,
|
|
911
|
+
);
|
|
912
|
+
assert(encodedPacket);
|
|
913
|
+
|
|
914
|
+
encodedPacketMetadata = this.encodedPacketToMetadata.get(encodedPacket);
|
|
915
|
+
assert(encodedPacketMetadata);
|
|
916
|
+
} else {
|
|
917
|
+
currentTimestampInSamples += encodedPacketMetadata.durationInSamples;
|
|
918
|
+
}
|
|
919
|
+
|
|
920
|
+
lastEncodedPacket = encodedPacket;
|
|
921
|
+
lastEncodedPacketMetadata = encodedPacketMetadata;
|
|
922
|
+
|
|
923
|
+
if (
|
|
924
|
+
currentTimestampIsCorrect
|
|
925
|
+
&& (
|
|
926
|
+
// Next timestamp will be too late
|
|
927
|
+
Math.max(currentTimestampInSamples, 0) > timestampInSamples
|
|
928
|
+
// This timestamp already matches
|
|
929
|
+
|| Math.max(encodedPacketMetadata.timestampInSamples, 0) === timestampInSamples
|
|
930
|
+
)
|
|
931
|
+
) {
|
|
932
|
+
break;
|
|
933
|
+
}
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
const nextPosition = await this.demuxer.findNextPacketStart(packet);
|
|
937
|
+
if (!nextPosition) {
|
|
938
|
+
break;
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
currentPage = nextPosition.startPage;
|
|
942
|
+
currentSegmentIndex = nextPosition.startSegmentIndex;
|
|
943
|
+
}
|
|
944
|
+
|
|
945
|
+
return lastEncodedPacket;
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
// A slower but simpler and sequential algorithm for finding a packet in a file
|
|
949
|
+
async getPacketSequential(timestamp: number, options: PacketRetrievalOptions) {
|
|
950
|
+
const release = await this.sequentialScanMutex.acquire(); // Requires exclusivity because we write to a cache
|
|
951
|
+
|
|
952
|
+
try {
|
|
953
|
+
const timestampInSamples = roundIfAlmostInteger(timestamp * this.internalSampleRate);
|
|
954
|
+
timestamp = timestampInSamples / this.internalSampleRate;
|
|
955
|
+
|
|
956
|
+
const index = binarySearchLessOrEqual(
|
|
957
|
+
this.sequentialScanCache,
|
|
958
|
+
timestampInSamples,
|
|
959
|
+
x => x.timestampInSamples,
|
|
960
|
+
);
|
|
961
|
+
|
|
962
|
+
let currentPacket: EncodedPacket | null;
|
|
963
|
+
if (index !== -1) {
|
|
964
|
+
// We don't need to start from the beginning, we can start at a previous scan point
|
|
965
|
+
const cacheEntry = this.sequentialScanCache[index]!;
|
|
966
|
+
currentPacket = this.createEncodedPacketFromOggPacket(
|
|
967
|
+
cacheEntry.packet,
|
|
968
|
+
{
|
|
969
|
+
timestampInSamples: cacheEntry.timestampInSamples,
|
|
970
|
+
vorbisLastBlocksize: cacheEntry.vorbisLastBlockSize,
|
|
971
|
+
},
|
|
972
|
+
options,
|
|
973
|
+
);
|
|
974
|
+
} else {
|
|
975
|
+
currentPacket = await this.getFirstPacket(options);
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
let i = 0;
|
|
979
|
+
|
|
980
|
+
while (currentPacket && currentPacket.timestamp < timestamp) {
|
|
981
|
+
const nextPacket = await this.getNextPacket(currentPacket, options);
|
|
982
|
+
if (!nextPacket || nextPacket.timestamp > timestamp) {
|
|
983
|
+
break;
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
currentPacket = nextPacket;
|
|
987
|
+
i++;
|
|
988
|
+
|
|
989
|
+
if (i === 100) {
|
|
990
|
+
// Add "checkpoints" every once in a while to speed up subsequent random accesses
|
|
991
|
+
i = 0;
|
|
992
|
+
const metadata = this.encodedPacketToMetadata.get(currentPacket);
|
|
993
|
+
assert(metadata);
|
|
994
|
+
|
|
995
|
+
if (this.sequentialScanCache.length > 0) {
|
|
996
|
+
// If we reach this case, we must be at the end of the cache
|
|
997
|
+
assert(last(this.sequentialScanCache)!.timestampInSamples <= metadata.timestampInSamples);
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
this.sequentialScanCache.push(metadata);
|
|
1001
|
+
}
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
return currentPacket;
|
|
1005
|
+
} finally {
|
|
1006
|
+
release();
|
|
1007
|
+
}
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
getKeyPacket(timestamp: number, options: PacketRetrievalOptions) {
|
|
1011
|
+
return this.getPacket(timestamp, options);
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
getNextKeyPacket(packet: EncodedPacket, options: PacketRetrievalOptions) {
|
|
1015
|
+
return this.getNextPacket(packet, options);
|
|
1016
|
+
}
|
|
1017
|
+
}
|
|
1018
|
+
|
|
1019
|
+
/** Finds the start position of a packet given its end position. */
|
|
1020
|
+
const findPacketStartPosition = (pageList: Page[], endPage: Page, endSegmentIndex: number) => {
|
|
1021
|
+
let page = endPage;
|
|
1022
|
+
let segmentIndex = endSegmentIndex;
|
|
1023
|
+
|
|
1024
|
+
outer:
|
|
1025
|
+
while (true) {
|
|
1026
|
+
segmentIndex--;
|
|
1027
|
+
|
|
1028
|
+
for (segmentIndex; segmentIndex >= 0; segmentIndex--) {
|
|
1029
|
+
const lacingValue = page.lacingValues[segmentIndex]!;
|
|
1030
|
+
if (lacingValue < 255) {
|
|
1031
|
+
segmentIndex++; // We know the last packet starts here
|
|
1032
|
+
break outer;
|
|
1033
|
+
}
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
assert(segmentIndex === -1);
|
|
1037
|
+
|
|
1038
|
+
const pageStartsWithFreshPacket = !(page.headerType & 0x01);
|
|
1039
|
+
if (pageStartsWithFreshPacket) {
|
|
1040
|
+
// Fast exit: We know we don't need to look in the previous page
|
|
1041
|
+
segmentIndex = 0;
|
|
1042
|
+
break;
|
|
1043
|
+
}
|
|
1044
|
+
|
|
1045
|
+
const previousPage = findLast(
|
|
1046
|
+
pageList,
|
|
1047
|
+
x => x.headerStartPos < page.headerStartPos,
|
|
1048
|
+
);
|
|
1049
|
+
if (!previousPage) {
|
|
1050
|
+
return null;
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
page = previousPage;
|
|
1054
|
+
segmentIndex = page.lacingValues.length;
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
assert(segmentIndex !== -1);
|
|
1058
|
+
|
|
1059
|
+
if (segmentIndex === page.lacingValues.length) {
|
|
1060
|
+
// Wrap back around to the first segment of the next page
|
|
1061
|
+
const nextPage = pageList[pageList.indexOf(page) + 1];
|
|
1062
|
+
assert(nextPage);
|
|
1063
|
+
|
|
1064
|
+
page = nextPage;
|
|
1065
|
+
segmentIndex = 0;
|
|
1066
|
+
}
|
|
1067
|
+
|
|
1068
|
+
return { page, segmentIndex };
|
|
1069
|
+
};
|
|
1070
|
+
|
|
1071
|
+
/** Finds the end position of a packet given the start position of the following packet. */
|
|
1072
|
+
const findPreviousPacketEndPosition = (pageList: Page[], startPage: Page, startSegmentIndex: number) => {
|
|
1073
|
+
if (startSegmentIndex > 0) {
|
|
1074
|
+
// Easy
|
|
1075
|
+
return { page: startPage, segmentIndex: startSegmentIndex - 1 };
|
|
1076
|
+
}
|
|
1077
|
+
|
|
1078
|
+
const previousPage = findLast(
|
|
1079
|
+
pageList,
|
|
1080
|
+
x => x.headerStartPos < startPage.headerStartPos,
|
|
1081
|
+
);
|
|
1082
|
+
if (!previousPage) {
|
|
1083
|
+
return null;
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
return { page: previousPage, segmentIndex: previousPage.lacingValues.length - 1 };
|
|
1087
|
+
};
|